!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.0.14"},f.ruid="bundler=rspack@1.0.14";(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(){var t=p();return 0,t[h()]},_=function(t){try{var e=y()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}};function d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(e,r,n,i){var a=Object.create((r&&r.prototype instanceof v?r:v).prototype);return o(a,"_invoke",{value:function(e,r,n){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=function e(r,n){var o=n.method,i=r.iterator[o];if(i===t)return n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=t,e(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),_;var a=f(i,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,_;var c=a.arg;return c?c.done?(n[r.resultName]=c.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,_):c:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,_)}(c,n);if(u){if(u===_)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:"suspendedYield",s.arg===_)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}(e,n,new S(i||[]))}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",h="executing",y="completed",_={};function v(){}function g(){}function b(){}var m={};s(m,a,function(){return this});var w=Object.getPrototypeOf,O=w&&w(w(j([])));O&&O!==r&&n.call(O,a)&&(m=O);var E=b.prototype=v.prototype=Object.create(m);function I(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function T(t,e){var r;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(r,a){!function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,c)})}c(u.arg)}(o,i,r,a)})}return r=r?r.then(a,a):a()}})}function N(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),_}},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;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),_}},e}function v(t,e){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}var b={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?function(t,e,r){if(g())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&v(o,r.prototype),o}(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}),!function(){if(!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)}}}(),!function(){var t=h();function e(t){if(null===t)return"NULL";if(void 0===t)return"UNDEFINED";if("[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t))return JSON.stringify(t);return t.toString()}/function Map\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())?window[t]._ttq_map=Map:!window[t]._ttq_map&&(window[t]._ttq_map=function(){this.items={},this.size=0},window[t]._ttq_map.prototype.set=function(t,r){return!this.has(t)&&(this.items[e(t)]=r,this.size++),this},window[t]._ttq_map.prototype.get=function(t){return this.items[e(t)]},window[t]._ttq_map.prototype.has=function(t){return void 0!==this.items[e(t)]},window[t]._ttq_map.prototype.delete=function(t){return this.has(t)&&(delete this.items[e(t)],this.size--),this},window[t]._ttq_map.prototype.clear=function(){this.items={},this.size=0},window[t]._ttq_map.prototype.keys=function(){var t=d().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(r);function n(){return d().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[t]._ttq_map.prototype.values=function(){var t=d().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(this.items[r]);function n(){return d().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):_("Monitor")&&b.error.push({event:t,err:e,detail:r,withoutJSB:n})}catch(t){}}(u.INIT_ERROR,t)}}();!function(){var t={9515:function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}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;of;)if((c=s[f++])!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},6767:function(t,e,n){var r=n(4277),o=n(6610),i=n(6430),a=n(5074),c=n(3759),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,p=5==t||l;return function(h,d,v,_){for(var g,y,m=i(h),w=o(m),E=r(d,v,3),b=a(w.length),O=0,I=_||c,T=e?I(h,b):n?I(h,0):void 0;b>O;O++)if((p||O in w)&&(y=E(g=w[O],O,m),t)){if(e)T[O]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:s.call(T,g)}else if(f)return!1}return l?-1:u||f?f:T}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},3759:function(t,e,n){var r=n(8501),o=n(9618),i=n(8305)("species");t.exports=function(t,e){var n;return o(t)&&("function"==typeof(n=t.constructor)&&(n===Array||o(n.prototype))?n=void 0:r(n)&&null===(n=n[i])&&(n=void 0)),new(void 0===n?Array:n)(0===e?0:e)}},2746:function(t,e,n){var r=n(6087);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},4674:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},7404:function(t,e,n){var r=n(5997),o=n(4674),i=n(8305)("toStringTag"),a="Arguments"==o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},236:function(t,e,n){var r=n(3229),o=n(4820),i=n(3996),a=n(1337);t.exports=function(t,e){for(var n=o(e),c=a.f,s=i.f,u=0;ud;d++)if((_=f?m(r(y=t[d])[0],y[1]):m(t[d]))&&_ instanceof u)return _;return new u(!1)}p=h.call(t)}for(g=p.next;!(y=g.call(p)).done;)if("object"==typeof(_=s(p,m,y.value,f))&&_&&_ instanceof u)return _;return new u(!1)}).stop=function(t){return new u(!0,t)}},4348:function(t){t.exports={}},1426:function(t,e,n){var r=n(4808);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},907:function(t,e,n){var r=n(753),o=n(4174),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},5290:function(t,e,n){"use strict";var r=n(3260),o=n(4808),i=n(6612),a=n(7155),c=n(1933),s=n(6430),u=n(6610),f=Object.assign,l=Object.defineProperty;t.exports=!f||o(function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||i(f({},e)).join("")!=o})?function(t,e){for(var n=s(t),o=arguments.length,f=1,l=a.f,p=c.f;o>f;){for(var h,d=u(arguments[f++]),v=l?i(d).concat(l(d)):i(d),_=v.length,g=0;_>g;)h=v[g++],(!r||p.call(d,h))&&(n[h]=d[h])}return n}:f},1453:function(t,e,n){var r,o=n(6087),i=n(494),a=n(8563),c=n(2466),s=n(78),u=n(5115),f=n(1717),l="prototype",p="script",h=f("IE_PROTO"),d=function(){},v=function(t){return"<"+p+">"+t+""},_=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){var t,e=u("iframe");return e.style.display="none",s.appendChild(e),e.src=String("java"+p+":"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F},y=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}y=r?_(r):g();for(var t=a.length;t--;)delete y[l][a[t]];return y()};c[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d[l]=o(t),n=new d,d[l]=null,n[h]=t):n=y(),void 0===e?n:i(n,e)}},494:function(t,e,n){var r=n(3260),o=n(1337),i=n(6087),a=n(6612);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,s=0;c>s;)o.f(t,n=r[s++],e[n]);return t}},1337:function(t,e,n){var r=n(3260),o=n(532),i=n(6087),a=n(5114),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},3996:function(t,e,n){var r=n(3260),o=n(1933),i=n(2939),a=n(1333),c=n(5114),s=n(3229),u=n(532),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),u)try{return f(t,e)}catch(t){}if(s(t,e))return i(!o.f.call(t,e),t[e])}},9666:function(t,e,n){var r=n(1333),o=n(2931).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?c(t):o(r(t))}},2931:function(t,e,n){var r=n(4560),o=n(8563).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},7155:function(t,e){e.f=Object.getOwnPropertySymbols},211:function(t,e,n){var r=n(3229),o=n(6430),i=n(1717),a=n(776),c=i("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return r(t=o(t),c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},4560:function(t,e,n){var r=n(3229),o=n(1333),i=n(4773).indexOf,a=n(2466);t.exports=function(t,e){var n,c=o(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~i(u,n)||u.push(n));return u}},6612:function(t,e,n){var r=n(4560),o=n(8563);t.exports=Object.keys||function(t){return r(t,o)}},1933:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},706:function(t,e,n){"use strict";var r=n(1424),o=n(753),i=n(4808);t.exports=r||!i(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete o[t]})},4362:function(t,e,n){var r=n(6087),o=n(2354);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},2529:function(t,e,n){var r=n(3260),o=n(6612),i=n(1333),a=n(1933).f,c=function(t){return function(e){for(var n,c=i(e),s=o(c),u=s.length,f=0,l=[];u>f;)n=s[f++],(!r||a.call(c,n))&&l.push(t?[n,c[n]]:c[n]);return l}};t.exports={entries:c(!0),values:c(!1)}},9778:function(t,e,n){"use strict";var r=n(5997),o=n(7404);t.exports=r?({}).toString:function(){return"[object "+o(this)+"]"}},4820:function(t,e,n){var r=n(9078),o=n(2931),i=n(7155),a=n(6087);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},3701:function(t,e,n){var r=n(753);t.exports=r},5170:function(t,e,n){var r=n(753),o=n(5018),i=n(3229),a=n(6021),c=n(4174),s=n(5640),u=s.get,f=s.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;if("function"==typeof n&&("string"==typeof e&&!i(n,"name")&&o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t===r){u?t[e]=n:a(e,n);return}s?!p&&t[e]&&(u=!0):delete t[e];u?t[e]=n:o(t,e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||c(this)})},3301:function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},6241:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},6021:function(t,e,n){var r=n(753),o=n(5018);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},9960:function(t,e,n){var r=n(1337).f,o=n(3229),i=n(8305)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},1717:function(t,e,n){var r=n(9269),o=n(898),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6099:function(t,e,n){var r=n(753),o=n(6021),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},9269:function(t,e,n){var r=n(1424),o=n(6099);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},7568:function(t,e,n){var r=n(9335),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},1333:function(t,e,n){var r=n(6610),o=n(3301);t.exports=function(t){return r(o(t))}},9335:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},5074:function(t,e,n){var r=n(9335),o=Math.min;t.exports=function(t){return t>0?o(r(t),0x1fffffffffffff):0}},6430:function(t,e,n){var r=n(3301);t.exports=function(t){return Object(r(t))}},5114:function(t,e,n){var r=n(8501);t.exports=function(t,e){var n,o;if(!r(t))return t;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t))||"function"==typeof(n=t.valueOf)&&!r(o=n.call(t))||!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},5997:function(t,e,n){var r=n(8305)("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},898:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},8399:function(t,e,n){var r=n(1426);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9279:function(t,e,n){var r=n(8305);e.f=r},8305:function(t,e,n){var r=n(753),o=n(9269),i=n(3229),a=n(898),c=n(1426),s=n(8399),u=o("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return!i(u,t)&&(c&&i(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},1573:function(t,e,n){var r=n(753);n(9960)(r.JSON,"JSON",!0)},837:function(t,e,n){n(9960)(Math,"Math",!0)},4252:function(t,e,n){var r=n(2865),o=n(5290);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},1668:function(t,e,n){n(2865)({target:"Object",stat:!0,sham:!n(3260)},{create:n(1453)})},557:function(t,e,n){"use strict";var r=n(2865),o=n(3260),i=n(706),a=n(6430),c=n(7002),s=n(1337);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,e){s.f(a(this),t,{get:c(e),enumerable:!0,configurable:!0})}})},6455:function(t,e,n){var r=n(2865),o=n(3260);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(494)})},162:function(t,e,n){var r=n(2865),o=n(3260);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(1337).f})},818:function(t,e,n){"use strict";var r=n(2865),o=n(3260),i=n(706),a=n(6430),c=n(7002),s=n(1337);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(t,e){s.f(a(this),t,{set:c(e),enumerable:!0,configurable:!0})}})},923:function(t,e,n){var r=n(2865),o=n(2529).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},7304:function(t,e,n){var r=n(2865),o=n(1603),i=n(4808),a=n(8501),c=n(5732).onFreeze,s=Object.freeze;r({target:"Object",stat:!0,forced:i(function(){s(1)}),sham:!o},{freeze:function(t){return s&&a(t)?s(c(t)):t}})},2483:function(t,e,n){var r=n(2865),o=n(4412),i=n(1854);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return o(t,function(t,n){i(e,t,n)},void 0,!0),e}})},8510:function(t,e,n){var r=n(2865),o=n(4808),i=n(1333),a=n(3996).f,c=n(3260),s=o(function(){a(1)});r({target:"Object",stat:!0,forced:!c||s,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},4025:function(t,e,n){var r=n(2865),o=n(3260),i=n(4820),a=n(1333),c=n(3996),s=n(1854);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=c.f,u=i(r),f={},l=0;u.length>l;)void 0!==(n=o(r,e=u[l++]))&&s(f,e,n);return f}})},3109:function(t,e,n){var r=n(2865),o=n(4808),i=n(9666).f;r({target:"Object",stat:!0,forced:o(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:i})},3927:function(t,e,n){var r=n(2865),o=n(4808),i=n(6430),a=n(211),c=n(776);r({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},9809:function(t,e,n){var r=n(2865),o=n(4808),i=n(8501),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o(function(){a(1)})},{isExtensible:function(t){return!!i(t)&&(!a||a(t))}})},8519:function(t,e,n){var r=n(2865),o=n(4808),i=n(8501),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o(function(){a(1)})},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},492:function(t,e,n){var r=n(2865),o=n(4808),i=n(8501),a=Object.isSealed;r({target:"Object",stat:!0,forced:o(function(){a(1)})},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},1268:function(t,e,n){n(2865)({target:"Object",stat:!0},{is:n(6241)})},9898:function(t,e,n){var r=n(2865),o=n(6430),i=n(6612);r({target:"Object",stat:!0,forced:n(4808)(function(){i(1)})},{keys:function(t){return i(o(t))}})},8701:function(t,e,n){"use strict";var r=n(2865),o=n(3260),i=n(706),a=n(6430),c=n(5114),s=n(211),u=n(3996).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(t){var e,n=a(this),r=c(t,!0);do if(e=u(n,r))return e.get;while(n=s(n))}})},9386:function(t,e,n){"use strict";var r=n(2865),o=n(3260),i=n(706),a=n(6430),c=n(5114),s=n(211),u=n(3996).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(t){var e,n=a(this),r=c(t,!0);do if(e=u(n,r))return e.set;while(n=s(n))}})},5724:function(t,e,n){var r=n(2865),o=n(8501),i=n(5732).onFreeze,a=n(1603),c=n(4808),s=Object.preventExtensions;r({target:"Object",stat:!0,forced:c(function(){s(1)}),sham:!a},{preventExtensions:function(t){return s&&o(t)?s(i(t)):t}})},1448:function(t,e,n){var r=n(2865),o=n(8501),i=n(5732).onFreeze,a=n(1603),c=n(4808),s=Object.seal;r({target:"Object",stat:!0,forced:c(function(){s(1)}),sham:!a},{seal:function(t){return s&&o(t)?s(i(t)):t}})},4182:function(t,e,n){n(2865)({target:"Object",stat:!0},{setPrototypeOf:n(4362)})},1:function(t,e,n){var r=n(5997),o=n(5170),i=n(9778);!r&&o(Object.prototype,"toString",i,{unsafe:!0})},7161:function(t,e,n){var r=n(2865),o=n(2529).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},4758:function(t,e,n){"use strict";var r=n(2865),o=n(753),i=n(9078),a=n(1424),c=n(3260),s=n(1426),u=n(8399),f=n(4808),l=n(3229),p=n(9618),h=n(8501),d=n(6087),v=n(6430),_=n(1333),g=n(5114),y=n(2939),m=n(1453),w=n(6612),E=n(2931),b=n(9666),O=n(7155),I=n(3996),T=n(1337),S=n(1933),N=n(5018),R=n(5170),P=n(9269),A=n(1717),L=n(2466),x=n(898),C=n(8305),k=n(9279),D=n(7424),M=n(9960),j=n(5640),U=n(6767).forEach,F=A("hidden"),q="Symbol",G="prototype",H=C("toPrimitive"),V=j.set,B=j.getterFor(q),K=Object[G],W=o.Symbol,Y=i("JSON","stringify"),J=I.f,X=T.f,Q=b.f,z=S.f,Z=P("symbols"),$=P("op-symbols"),tt=P("string-to-symbol-registry"),te=P("symbol-to-string-registry"),tn=P("wks"),tr=o.QObject,to=!tr||!tr[G]||!tr[G].findChild,ti=c&&f(function(){return 7!=m(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=J(K,e);r&&delete K[e],X(t,e,n),r&&t!==K&&X(K,e,r)}:X,ta=function(t,e){var n=Z[t]=m(W[G]);return V(n,{type:q,tag:t,description:e}),!c&&(n.description=e),n},tc=u?function(t){return"symbol"==typeof t}:function(t){return Object(t) instanceof W},ts=function(t,e,n){t===K&&ts($,e,n),d(t);var r=g(e,!0);return(d(n),l(Z,r))?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=m(n,{enumerable:y(0,!1)})):(!l(t,F)&&X(t,F,y(1,{})),t[F][r]=!0),ti(t,r,n)):X(t,r,n)},tu=function(t,e){d(t);var n=_(e);return U(w(n).concat(th(n)),function(e){(!c||tf.call(n,e))&&ts(t,e,n[e])}),t},tf=function(t){var e=g(t,!0),n=z.call(this,e);return(!(this===K&&l(Z,e))||!!l($,e))&&(!(n||!l(this,e)||!l(Z,e)||l(this,F)&&this[F][e])||n)},tl=function(t,e){var n=_(t),r=g(e,!0);if(!(n===K&&l(Z,r))||l($,r)){var o=J(n,r);return o&&l(Z,r)&&!(l(n,F)&&n[F][r])&&(o.enumerable=!0),o}},tp=function(t){var e=Q(_(t)),n=[];return U(e,function(t){!l(Z,t)&&!l(L,t)&&n.push(t)}),n},th=function(t){var e=t===K,n=Q(e?$:_(t)),r=[];return U(n,function(t){l(Z,t)&&(!e||l(K,t))&&r.push(Z[t])}),r};!s&&(R((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=x(t),n=function(t){this===K&&n.call($,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),ti(this,e,y(1,t))};return c&&to&&ti(K,e,{configurable:!0,set:n}),ta(e,t)})[G],"toString",function(){return B(this).tag}),R(W,"withoutSetter",function(t){return ta(x(t),t)}),S.f=tf,T.f=ts,I.f=tl,E.f=b.f=tp,O.f=th,k.f=function(t){return ta(C(t),t)},c&&(X(W[G],"description",{configurable:!0,get:function(){return B(this).description}}),!a&&R(K,"propertyIsEnumerable",tf,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:W}),U(w(tn),function(t){D(t)}),r({target:q,stat:!0,forced:!s},{for:function(t){var e=String(t);if(l(tt,e))return tt[e];var n=W(e);return tt[e]=n,te[n]=e,n},keyFor:function(t){if(!tc(t))throw TypeError(t+" is not a symbol");if(l(te,t))return te[t]},useSetter:function(){to=!0},useSimple:function(){to=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(t,e){return void 0===e?m(t):tu(m(t),e)},defineProperty:ts,defineProperties:tu,getOwnPropertyDescriptor:tl}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:tp,getOwnPropertySymbols:th}),r({target:"Object",stat:!0,forced:f(function(){O.f(1)})},{getOwnPropertySymbols:function(t){return O.f(v(t))}}),Y&&r({target:"JSON",stat:!0,forced:!s||f(function(){var t=W();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))})},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,!(!h(e)&&void 0===t||tc(t)))return!p(e)&&(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!tc(e))return e}),o[1]=e,Y.apply(null,o)}}),!W[G][H]&&N(W[G],H,W[G].valueOf),M(W,q),L[F]=!0},9042:function(){!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw Error("Could not prevent default")}catch(t){var e=function(t,e){var n,r;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},n};e.prototype=window.Event.prototype,window.CustomEvent=e}}()},6505:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){!("isIntersecting"in window.IntersectionObserverEntry.prototype)&&Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});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),f=r.entry=new n({time:function(){return window.performance&&performance.now&&performance.now()}(),target:o,boundingClientRect:i,rootBounds:e,intersectionRect:u});s?t&&c?this._hasCrossedThreshold(s,f)&&this._queuedEntries.push(f):s&&s.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},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?1:0}function r(t,e){var n=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=function(t,e){var n=null;return function(){!n&&(n=setTimeout(function(){t(),n=null},e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.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}}()},5278: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]",f="[object Map]",l="[object Number]",p="[object Object]",h="[object Promise]",d="[object RegExp]",v="[object Set]",_="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",b="[object Float64Array]",O="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",N="[object Uint8ClampedArray]",R="[object Uint16Array]",P="[object Uint32Array]",A=/\w*$/,L=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[m]=C[w]=C[a]=C[c]=C[E]=C[b]=C[O]=C[I]=C[T]=C[f]=C[l]=C[p]=C[d]=C[v]=C[_]=C[g]=C[S]=C[N]=C[R]=C[P]=!0,C["[object Error]"]=C[s]=C[y]=!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 H(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o-1},tS.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};function tR(t){this.__data__=new tS(t)}tN.prototype.clear=function(){this.__data__={hash:new tT,map:new(th||tS),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};tR.prototype.clear=function(){this.__data__=new tS},tR.prototype.delete=function(t){return this.__data__.delete(t)},tR.prototype.get=function(t){return this.__data__.get(t)},tR.prototype.has=function(t){return this.__data__.has(t)},tR.prototype.set=function(t,e){var n=this.__data__;if(n instanceof tS){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};function tP(t,e,n){var r=t[e];(!($.call(t,e)&&tF(r,n))||void 0===n&&!(e in t))&&(t[e]=n)}function tA(t,e){for(var n=t.length;n--;)if(tF(t[n][0],e))return n;return -1}function tL(t){var e=new t.constructor(t.byteLength);return new to(e).set(new to(t)),e}function tx(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o-1&&t%1==0&&t<=0x1fffffffffffff}(t.length)&&!tV(t)}var tH=tf||function(){return!1};function tV(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 tK(t){return tG(t)?function(t,e){var n=tq(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&tG(t)}(t)&&$.call(t,"callee")&&(!tc.call(t,"callee")||tt.call(t)==i)}(t)?function(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&t0||e._partner===t},P=function(t){try{var e=E()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}},A=function(){var t;try{var e=E()._ppf;return null===(t=e.printAndClear)||void 0===t?void 0:t.call(e)}catch(t){}},L={info:[],error:[]};function x(t,e,n){void 0===e&&(e={}),void 0===n&&(n=!1);try{var r=E(),o=r.getPlugin&&r.getPlugin("Monitor")||null;o&&o.info&&"function"==typeof o.info?o.info.call(o,t,e,n):P("Monitor")&&L.info.push({event:t,detail:e,withoutJSB:n})}catch(t){}}function C(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r=!1);try{var o=E(),i=o.getPlugin&&o.getPlugin("Monitor")||null;i&&i.error&&"function"==typeof i.error?i.error.call(i,t,e,n,r):P("Monitor")&&L.error.push({event:t,err:e,detail:n,withoutJSB:r})}catch(t){}}function k(t,e){try{var n=E(),r=n.getPlugin&&n.getPlugin("DiagnosticsConsole")||null;r&&r.warn.apply(r,[t,e])}catch(t){}}function D(){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,r=n&&n.getAttribute("data-id")||"",o=w()||"ttq";e={pixelCode:r,lib:o}}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}(ig=an||(an={})).LOAD_START="load_start",ig.LOAD_END="load_end",ig.BEFORE_INIT="before_init",ig.INIT_START="init_start",ig.INIT_END="init_end",ig.JSB_INIT_START="jsb_init_start",ig.JSB_INIT_END="jsb_init_end",ig.BEFORE_AD_INFO_INIT_START="before_ad_info_init_start",ig.AD_INFO_INIT_START="ad_info_init_start",ig.AD_INFO_INIT_END="ad_info_init_end",ig.IDENTIFY_INIT_START="identify_init_start",ig.IDENTIFY_INIT_END="identify_init_end",ig.PLUGIN_INIT_START="_init_start",ig.PLUGIN_INIT_END="_init_end",ig.PIXEL_SEND="pixel_send",ig.PIXEL_SEND_PCM="pixel_send_PCM",ig.JSB_SEND="jsb_send",ig.HTTP_SEND="http_send",ig.HANDLE_CACHE="handle_cache",ig.INIT_ERROR="init_error",ig.PIXEL_EMPTY="pixel_empty",ig.JSB_ERROR="jsb_error",ig.API_ERROR="api_error",ig.PLUGIN_ERROR="plugin_error",ig.CUSTOM_INFO="custom_info",ig.CUSTOM_ERROR="custom_error",ig.CUSTOM_TIMER="custom_timer",(iy=ar||(ar={}))[iy.NOT_SURE=0]="NOT_SURE",iy[iy.INVOKE_METHOD_ENABLED=1]="INVOKE_METHOD_ENABLED",iy[iy.INVOKE_METHOD_NOT_ENABLED=2]="INVOKE_METHOD_NOT_ENABLED",(im=ao||(ao={})).NORMAL="1",im.NOT_CROSS_DOMAIN_IFRAME="2",im.CROSS_DOMAIN_IFRAME="3",im.WEB_WORKER="4",im.SANDBOX_IFRAME="5",im.GTM_IFRAME="6",im.URL_IN_QUERY_IFRAME="7",im.UNKNOWN_IFRAME="8";function M(t){var e=Error(t);return e.source="ulid",e}var j="0123456789ABCDEFGHJKMNPQRSTVWXYZ",U=j.length,F=0xffffffffffff;var q=(!iw&&(iw=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];!e&&(e="undefined"!=typeof window?window:null);var r=e&&(e.crypto||e.msCrypto);if(r)return function(){var t=new Uint8Array(1);return r.getRandomValues(t),t[0]/255};try{var o=n(6616);return function(){return o.randomBytes(1).readUInt8()/255}}catch(t){}if(t)return function(){return Math.random()};throw M("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>F)throw M("cannot encode time greater than "+F);if(t<0)throw M("time must be positive");if(!1===Number.isInteger(t))throw M("time must be an integer");for(var n=void 0,r="";e>0;e--)n=t%U,r=j.charAt(n)+r,t=(t-n)/U;return r}(t,10)+function(t,e){for(var n="";t>0;t--)n=function(t){var e=Math.floor(t()*U);return e===U&&(e=U-1),j.charAt(e)}(e)+n;return n}(16,iw)});(iE=ai||(ai={})).EMPTY_VALUE="empty_value",iE.WRONG_FORMAT="wrong_format",iE.CORRECT_FORMAT="correct_format",iE.HASHED="hashed",iE.HASHED_ERR="hashed_err",iE.HASHED_CORRECT="hashed_correct",iE.PLAINTEXT_EMAIL="plaintext_email",iE.PLAINTEXT_PHONE="plaintext_phone",(ib=aa||(aa={})).EMPTY_VALUE="empty_value",ib.PLAIN_EMAIL="plain_email",ib.PLAIN_PHONE="plain_phone",ib.HASHED="hashed",ib.FILTER_EVENTS="filter_events",ib.UNKNOWN_INVALID="unknown_invalid",ib.BASE64_STRING_HASHED="base64_string_hashed",ib.BASE64_HEX_HASHED="base64_hex_hashed",ib.PLAIN_MDN_EMAIL="plain_mdn_email",ib.ZIP_CODE_IS_NOT_HASHED="zip_code_is_not_hashed",ib.ZIP_CODE_IS_NOT_US="zip_code_is_not_us",ib.ZIP_CODE_IS_HASHED="zip_code_is_hashed",ib.ZIP_CODE_IS_US="zip_code_is_us",(iO=ac||(ac={})).Manual="manual",iO.ManualV2="manual_v2",iO.Auto="auto",(iI=as||(as={})).empty="empty",iI.whitespace="whitespace",iI.hardcode="hardcode",iI.encode="encode",(iT=au||(au={})).letterCase="letter_case",iT.isNotValidEmail="is_not_valid_email",iT.isNotPossibleEmail="is_not_possible_email",iT.domainTypo="domain_typo",iT.addressFormat="address_format",(iS=af||(af={})).invalidCountry="invalid_country",iS.notANumber="not_a_number",iS.tooShort="too_short",iS.tooLong="too_long",iS.invalidLength="invalid_length",iS.emptyCountryCodeThroughIP="empty_country_code_through_ip",iS.invalidCountryAfterInjectPlus="invalid_country_after_inject_plus",iS.notANumberAfterInjectPlus="not_a_number_after_inject_plus",iS.tooShortAfterInjectPlus="too_short_after_inject_plus",iS.tooLongAfterInjectPlus="too_long_after_inject_plus",iS.invalidLengthAfterInjectPlus="invalid_length_after_inject_plus",iS.invalidCountryAfterInjectCountry="invalid_country_after_inject_country",iS.notANumberAfterInjectCountry="not_a_number_after_inject_country",iS.tooShortAfterInjectCountry="too_short_after_inject_country",iS.tooLongAfterInjectCountry="too_long_after_inject_country",iS.invalidLengthAfterInjectCountry="invalid_length_after_inject_country",(iN=al||(al={})).missing="missing",iN.valid="valid",iN.invalid="invalid";var G={raw_email:{label:al.missing},raw_auto_email:{label:al.missing},raw_phone:{label:al.missing},raw_auto_phone:{label:al.missing},hashed_email:{label:al.missing},hashed_phone:{label:al.missing}};(iR=ap||(ap={}))[iR.UNKNOWN=0]="UNKNOWN",iR[iR.HOLD=1]="HOLD",iR[iR.REVOKE=2]="REVOKE",iR[iR.GRANT=3]="GRANT";var H=["phone_number","email","external_id"],V={EMAIL_IS_HASHED:"email_is_hashed",PHONE_IS_HASHED:"phone_is_hashed",SHA256_EMAIL:"sha256_email",SHA256_PHONE:"sha256_phone"},B="auto_trigger_type",K=function(t){return"[object Object]"===Object.prototype.toString.call(t)},W=function(t){return t+"-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},Y=function(t,e,n){return void 0===n&&(n="-"),""+t+n+e};function J(t,e){void 0===e&&(e=500);var n=-1;return function(){var r=Array.prototype.slice.apply(arguments);Date.now()-n>=e&&(t.apply(void 0,r),n=Date.now())}}var X=function(t){return/^(0|([1-9]\d*))$/.test(""+t)};function Q(){Q=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function z(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}var Z=function(t){return t},$=function(t){},tt=function(t){return!!t},te=function(t){return void 0!==t.metric_name},tn=function(t){var e;return Object.keys((null===(e=null==t?void 0:t.context)||void 0===e?void 0:e.user)||{}).some(function(t){return -1!==H.indexOf(t)})};function tr(t,e){var n,r=t;return function(){if(r){for(var o=arguments.length,i=Array(o),a=0;a62?t+="-":t+="_",t},"")},ti=function(){for(var t=q(Date.now());27!==t.length;)t.length>27?t=t.slice(0,27):t+="_";return t},ta=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]=[ai.EMPTY_VALUE],t[e]){var r=t[e]||[ai.EMPTY_VALUE];n.identity_params&&(n.identity_params[e]=[].concat(r))}})}),n},tc=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]||[ai.EMPTY_VALUE];n.identity_params[r]=[].concat(o)}else n.identity_params[r]=[ai.EMPTY_VALUE]}}),n)};function ts(t,e){var n=Object.assign({},t);return e.forEach(function(t){null!==n[t]&&void 0!==n[t]&&delete n[t]}),n}var tu=function(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){e[r]&&(n[r]=t[r])}),n};function tf(t,e,n){var r;return function(){for(var o=arguments.length,i=Array(o),a=0;a-1){e=i;break}}try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}return e},ty=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&&tg(t);r&&(tm(r)&&(n="isInHead"),tE(r)&&(n="isInBodyTop10"))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}return n},tm=function t(e){var n=e.parentElement;return!!n&&("HEAD"===n.tagName||t(n))},tw=function(t,e){for(var n,r=[document.body],o=0;o<=t&&r.length;){var i=r.pop();if(i===e)return!0;if((null==i?void 0:i.tagName.toLowerCase())==="script"&&(null===(n=i.src)||void 0===n?void 0:n.indexOf("analytics.tiktok.com"))>-1)continue;if(o++,"object"==typeof i&&!!i.children)for(var a=i.children.length-1;a>=0;a--)r.push(i.children[a])}return!1},tE=function(t){return tw(10,t)};(iP=ah||(ah={})).EXTERNAL="external",iP.APP="app",iP.TIKTOK="tiktok";var tb={ID:Symbol.for("ID"),Type:Symbol.for("type"),Partner:Symbol.for("partner"),Options:Symbol.for("Options"),Plugins:Symbol.for("Plugins"),Rules:Symbol.for("Rules"),Info:Symbol.for("Info"),ExtraParams:Symbol.for("extraParams"),WebLibraryInfo:Symbol.for("WebLibraryInfo"),SignalType:Symbol.for("SignalType"),IsOnsitePage:Symbol.for("IsOnsitePage")};(iA=ad||(ad={}))[iA.OFFSITE=0]="OFFSITE",iA[iA.ONSITE=1]="ONSITE";var tO=function(){var t,e;return(null===(e=null===(t=E())||void 0===t?void 0:t._env)||void 0===e?void 0:e.env)||ah.EXTERNAL},tI=function(){var t,e;return null!==(e=null===(t=E())||void 0===t?void 0:t._is_onsite)&&void 0!==e?e:ad.OFFSITE},tT=function(t){return(t||tO())!==ah.EXTERNAL},tS=function(t){return(t||tO())===ah.TIKTOK},tN=function(){var t=I();return/windows phone/i.test(t)?at.WINDOWS_PHONE:/android/i.test(t)?at.ANDROID:/iPad|iPhone|iPod/.test(t)?at.IOS:at.PC},tR=function(){try{return navigator.userAgentData.getHighEntropyValues(["model","platformVersion"])}catch(t){return Promise.resolve({})}},tP=function(){return"android"===tN()},tA=function(){return"ios"===tN()},tL=function(){return!1},tx=function(){return window.top!==window},tC=tr(function(){return/open_news/i.test(I())}),tk=tr(function(){return/ultralite/i.test(I())}),tD=function(){try{return window&&window.top&&window.top.location.href,!1}catch(t){return!0}},tM=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}},tj=function(){try{if(!tD())return ao.NOT_CROSS_DOMAIN_IFRAME;if(tM())return ao.URL_IN_QUERY_IFRAME;if(window.google_tag_manager)return ao.GTM_IFRAME;if(window.name&&"web-pixel-sandbox"===window.name)return ao.SANDBOX_IFRAME;return ao.CROSS_DOMAIN_IFRAME}catch(t){return ao.UNKNOWN_IFRAME}},tU=function(){var t=I();if(!!t)for(var e=0,n=Object.values(ae);ea)return!1}return!0},tV=function(t){var e=tU();return void 0!==e&&t.has(e)},tB=function(){var t=m();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},tK=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){if(!e[r])continue;if(n+="; "+r,!0!==e[r])n+="="+e[r].split(";")[0]}return n},tW=function(t,e,n,r){void 0===n&&(n="/"),void 0===r&&(r=new Date(Date.now()+864e5).toUTCString()),tZ(t,e,{path:n,expires:r})},tY=function(t){return t&&t.cde?Object.assign({},d,{expires:t.cde}):d},tJ=0,tX=0,tQ=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]||""},tz=function(t){if(0===document.cookie.length)return"";var e=tQ(t);return e?unescape(e):""},tZ=function(t,e,n){try{if(n){var r=window.location.hostname.split(".");if(tX=r.length,(tJ=t1())&&tJ=3&&e.includes("tt")&&!isNaN(Number(e[2]))&&Number(e[2])>0},t1=function(){if(tJ)return tJ;var t=tz(u);return t&&t0(t)?Number(t.split(".")[2]):0},t2=function(t,e,n){if(t===u&&!t0(e)){var r;e=(r=e)?r.split(".")[0]+".tt."+(tB()?0:t1()):""}return document.cookie=t+"="+e+tK(n),e===tz(t)},t3=function(){function t(){}return t.interceptCookies=function(){var t=Object.getOwnPropertyDescriptor(Document.prototype,"cookie");if(!t||!!t.configurable){var e=this;Object.defineProperty(document,"cookie",Object.assign(Object.assign({},t),{set:function(n){if(t&&"function"==typeof t.set)try{var r=tz(u),o=t.set.call(this,n);if(e.ttpCookieRegex.test(n)){var i=tz(u);x(an.CUSTOM_INFO,{custom_name:"cookie_set",extJSON:{message:r+"||"+i,stack:Error().stack||""}})}return o}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"cookie_set_error"})}}}))}},t.interceptSessionStorage=function(){var t=sessionStorage.setItem.bind(sessionStorage),e=sessionStorage.clear.bind(sessionStorage),n=sessionStorage.removeItem.bind(sessionStorage);sessionStorage.clear=function(){try{var t=e();return x(an.CUSTOM_INFO,{custom_name:"sessionStorage_clear",extJSON:{stack:Error().stack||""}}),t}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"sessionStorage_clear_error"})}},sessionStorage.setItem=function(e,n){try{var r=sessionStorage.getItem(e),o=t(e,n);return e===f&&x(an.CUSTOM_INFO,{custom_name:"sessionStorage_set",extJSON:{message:r+"||"+n,stack:Error().stack||""}}),o}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"sessionStorage_set_error"})}},sessionStorage.removeItem=function(t){try{var e=n(t);return t===f&&x(an.CUSTOM_INFO,{custom_name:"sessionStorage_remove",extJSON:{stack:Error().stack||""}}),e}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"sessionStorage_remove_error"})}}},t.listenPageLeave=function(){window.addEventListener("beforeunload",function(){try{var t=tz(u);x(an.CUSTOM_INFO,{custom_name:"track_beforeunload",extJSON:{message:""+t}})}catch(t){}})},t}();t3.ttpCookieRegex=/_ttp=/,t3.init=tr(function(){try{t3.interceptCookies(),t3.interceptSessionStorage(),t3.listenPageLeave()}catch(t){C(an.API_ERROR,t,{custom_name:"StorageObserver_init_error"})}});var t6=function(){var t=E();return"object"==typeof t&&t._i?t._i:{}},t5=function(t,e){var n=t6()||{};Object.keys(n).forEach(function(r){var o=n[r];if(!o._init)o.push([t].concat(e))})},t8=function(t,e,n){var r=(t6()||{})[t];if(r){if(r._init)return;r.push([e].concat(n))}};(iL=av||(av={})).PIXEL_CODE="pixelCode",iL.EVENT_SOURCE_ID="eventSourceId",iL.SHOP_ID="shopId";var t4={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")};(ix=a_||(a_={})).INIT_START="initStart",ix.INIT_END="initEnd",ix.CONTEXT_INIT_START="contextInitStart",ix.CONTEXT_INIT_END="contextInitEnd",ix.PAGE_URL_WILL_CHANGE="pageUrlWillChange",ix.PAGE_URL_DID_CHANGE="pageUrlDidChange",ix.PAGE_DID_LOAD="pageDidLoad",ix.PAGE_WILL_LEAVE="pageWillLeave",ix.AD_INFO_INIT_START="adInfoInitStart",ix.AD_INFO_INIT_END="adInfoInitEnd",ix.BEFORE_AD_INFO_INIT_START="beforeAdInfoInitStart",ix.PIXEL_SEND="pixelSend",ix.PIXEL_DID_MOUNT="pixelDidMount",(iC=ag||(ag={})).UNKNOWN="-1",iC.LOADING="0",iC.INTERACTIVE="1",iC.COMPLETE="2",(ik=ay||(ay={})).HISTORY_CHANGE="hc",ik.URL_CHANGE="uc";var t9=["page","track","identify"],t7=["holdConsent","revokeConsent","grantConsent"],et=["identify"],ee=["instance","instances","loadPixel","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];(iD=am||(am={})).EMPTY_EVENT_TYPE_NAME="EMPTY_EVENT_TYPE_NAME",iD.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT="MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT",iD.LONG_EVENT_TYPE_NAME="LONG_EVENT_TYPE_NAME",iD.MISSING_VALUE_PARAMETER="MISSING_VALUE_PARAMETER",iD.MISSING_CURRENCY_PARAMETER="MISSING_CURRENCY_PARAMETER",iD.MISSING_CONTENT_ID="MISSING_CONTENT_ID",iD.MISSING_EMAIL_AND_PHONE="MISSING_EMAIL_AND_PHONE",iD.INVALID_EVENT_PARAMETER_VALUE="INVALID_EVENT_PARAMETER_VALUE",iD.INVALID_CURRENCY_CODE="INVALID_CURRENCY_CODE",iD.INVALID_CONTENT_ID="INVALID_CONTENT_ID",iD.INVALID_CONTENT_TYPE="INVALID_CONTENT_TYPE",iD.INVALID_EMAIL_FORMAT="INVALID_EMAIL_FORMAT",iD.INVALID_PHONE_NUMBER_FORMAT="INVALID_PHONE_NUMBER_FORMAT",iD.INVALID_EMAIL_INFORMATION="INVALID_EMAIL_INFORMATION",iD.INVALID_PHONE_NUMBER_INFORMATION="INVALID_PHONE_NUMBER_INFORMATION",iD.DUPLICATE_PIXEL_CODE="DUPLICATE_PIXEL_CODE",iD.MISSING_PIXEL_CODE="MISSING_PIXEL_CODE",iD.INVALID_PIXEL_CODE="INVALID_PIXEL_CODE";var en=function(t,e,n){t.isBound(e)?t.rebind(e).toConstantValue(n):t.bind(e).toConstantValue(n)},er=function(){var t=E();return t&&t._i||{}},eo=function(t,e,n){void 0===n&&(n=ad.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){}en(t,t4.ENV,e),en(t,tb.SignalType,n);var o=t.get(t4.TTQ);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}return o},ei=function(t,e){var n,r=e.id,o=e.type,i=void 0===o?av.PIXEL_CODE:o,a=e.info,c=e.options,s=e.plugins,u=void 0===s?{}:s,f=e.rules;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var l={taskName:window.ttq._pf_tn,functionName:"webReporterFactory",start:performance.now()}}catch(t){}var p=t.get(t4.TTQ),h=t.get(t4.TTQ_REPORTERS);if(!h.some(function(t){return t.getReporterId()===r})){en(t,tb.ID,r),en(t,tb.Type,i),en(t,tb.Info,a||((n={})[i]=r,n)),en(t,tb.Options,void 0===c?{}:c),en(t,tb.Plugins,u),en(t,tb.Rules,void 0===f?[]:f),p.enableFirstPartyCookie((null==a?void 0:a.firstPartyCookieEnabled)||!1);var d=t.get(t4.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(a_.PIXEL_SEND,t,e,n,r,o)}),h.push(d),t.rebind(t4.TTQ_REPORTERS).toConstantValue(h),p.dispatch(a_.PIXEL_DID_MOUNT,d);try{window.ttq&&window.ttq._ppf&&(l.end=performance.now(),window.ttq._ppf.push(l))}catch(t){}return d}},ea=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(){x(an.CUSTOM_INFO,{pixelCode:a,custom_name:e})}),t[e].apply(t,n)}catch(t){return C(an.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),t9.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 t5(e,n),t[e].apply(t,n)}catch(t){return C(an.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),n[r]._mounted=!0,n[r].initialize=!0,y(n[r]);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},ef=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){}el(e),Object.entries(er()).forEach(function(r){var o=r[0],i=r[1];if(!i._init&&("Tealium"===N(o)||!!O()||!!i.info)){if(e.getReporter(o)?k(am.DUPLICATE_PIXEL_CODE):(n||ei)(t,{id:o,type:av.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)continue;var c=a[0],s=a.slice(1),u=e.instance(o);if(!!u)switch(c){case"identify":e.identify(s[0],s[1]);break;case"page":e.page(s[0]);break;case"track":u.track(s[0],s[1],s[2]||{});break;default:u[c]?u[c](s[0],s[1],s[2]||{}):C(an.CUSTOM_ERROR,Error("action not find: "+u[c]))}}}}),ep(e);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},el=function(t){try{var e=E();[].concat(t7,et).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){C(an.API_ERROR,t,{extJSON:{api:"handleP0APICache"}})}},ep=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=E();if(n.length>0)for(;n.length;){var r=n.shift();if(!!r){var o=r[0],i=r.slice(1);switch(!R("Tealium")&&t5(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 eh(t,e){return(eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ed(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ed=function(){return!!t})()}var ev="_ttq_inject",e_=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[ev]||[]).map(function(t){try{return e.get(t.identifier)}catch(e){if(t.optional)return;throw e}});return function(t,e,n){if(ed())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&eh(o,n.prototype),o}(t,n)},t}();function eg(){return function(t){}}function ey(t){return function(e,n,r){e[ev]=e[ev]||[],e[ev][r]=Object.assign({},e[ev][r],{identifier:t})}}function em(){return function(t,e,n){t[ev]=t[ev]||[],t[ev][n]=Object.assign({},t[ev][n],{optional:!0})}}function ew(t,e){try{var n=new URL(t).searchParams.getAll(e);return n[n.length-1]||""}catch(t){return""}}(iM=aw||(aw={})).BIND="bind",iM.REBIND="rebind";var eE=function(t,e,n){try{var r=ew(e,t);if(r)return r;return ew(n||"",t)}catch(t){}return""},eb=function(){if(!tx())return{url:window.location.href,referrer:document.referrer};if(!tD())return{url:(null===(t=null==window?void 0:window.top)||void 0===t?void 0:t.location.href)||"",referrer:(null===(e=null==window?void 0:window.top)||void 0===e?void 0:e.document.referrer)||""};var t,e,n=window.location.href,r=document.referrer;if(/doubleclick\.net/.test(window.location.hostname)){var o=window.location.pathname,i={};return o.split(";").forEach(function(t){var e=t.split("="),n=e[0],r=e[1];i[n]=decodeURIComponent(r)}),{url:i["~oref"]||n,referrer:document.referrer}}return{url:n,referrer:r}},eO=function(t){var e=eb().url;try{return new URL(t||e)}catch(t){}return null},eI=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch(t){return null}},eT=function(t){try{window.sessionStorage.removeItem(t)}catch(t){}},eS=function(t,e){try{var n=JSON.stringify(e);window.sessionStorage.setItem(t,n)}catch(t){}},eN="https://analytics.tiktok.com/api/v2",eR=eN+"/pixel",eP=eN+"/performance",eA=eN+"/interaction",eL=eN+"/performance_interaction",ex=eN+"/pixel/perf",eC=eN+"/pixel/inter",ek=eN+"/pixel/act",eD="https://analytics-ipv6.tiktokw.us/ipv6/enrich_ipv6",eM="ttclid",ej="_toutiao_params",eU=function(t,e){try{var n=eE(eM,t,e)||void 0,r=eE("ext_params",t,e)||void 0,o=eE(ej,t,e)||void 0,i=parseInt(eE("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,f=void 0===u?void 0:u,l=a.cid,p=void 0===l?void 0:l;return{callback:n,ext_params:r,log_extra:s,creative_id:p,idc:f,ttuts:i,ad_info_from:(s||f||p)&&"url"}}catch(t){return{}}},eF=function(t,e){try{var n=t.log_extra,r=t.ttuts;if(!tA())return!0;if(!tS(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}},eq=function(t,e){var n={};try{var r=t.creative_id,o=t.callback,i=t.idc,a=t.convert_id,c=t.ad_info_from,s=t.ad_info_status,u=t.log_extra,f=t.ext_params,l=t.ATTStatus;if(r&&(n.creative_id=r),i&&(n.idc=i),a&&(n.convert_id=a),c&&(n.ad_info_from=c),s&&(n.ad_info_status=s),f&&(n.ext_params=f),l&&(n.ATTStatus=l),u){var p=JSON.parse(u),h=p.ad_user_agent,d=p.ad_id,v=p.rit,_=p.ocbs,g=p.vid,y=p.idc,m=p.country_id;d&&(n.ad_id=d),v&&(n.rit=v),h&&(n.ad_user_agent=h),_&&(n.ocbs=_),g&&(n.vid=g),y&&(n.idc=y),m&&(n.country_id=m)}return n}catch(t){return e&&e(t),n}},eG=function(t,e,n){void 0===t&&(t=""),void 0===e&&(e="");try{var r=eE("tt_test_id",t,n);return r&&r!==e&&tW("tt_test_id",r,void 0,"session"),r||e}catch(t){return""}},eH=function(){var t=new Date().getTime();return{sessionId:t.toString()+"::"+to(20),sessionCount:1,lastEventTS:t,isSessionStart:!0}},eV=function(t){var e={};return t.split("; ").forEach(function(t){var n=t.split("="),r=n[0],o=n[1];if(r.startsWith(p)){var i=r.replace(p,"").replace("_",""),a=o.split("."),c=a[0],s=a[1],u=a[2];c&&X(s)&&X(u)&&(e[i]={sessionId:c,sessionCount:Number(s),lastEventTS:Number(u)})}}),e},eB=function(t){var e=t.sessionCount,n=t.lastEventTS,r=new Date().getTime();return r-n>18e5?{sessionId:r.toString()+"::"+to(20),sessionCount:e+1,lastEventTS:r,isSessionStart:!0}:Object.assign(Object.assign({},t),{lastEventTS:r,isSessionStart:!1})},eK=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}:{})},eW=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 eH()},e.setCookieBasedSession=function(t){},t}();new eW("empty");var eY=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(a_.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(a_.CONTEXT_INIT_END)},e.setPageIndex=function(t){},e.setPageInfo=function(t,e){var n=this.context.getPageInfo().url;if(n!==t){this.dispatch(a_.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(a_.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?e:(C(an.PIXEL_EMPTY,Error(""),{pixelCode:t}),new eW(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=t_(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()===ad.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;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function eX(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}eY=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}([eg()],eY);var eQ=(iU=(ij=eJ().mark(function t(e,n){return eJ().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",eQ.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]])}),function(){var t=this,e=arguments;return new Promise(function(n,r){var o=ij.apply(t,e);function i(t){eX(o,n,r,i,a,"next",t)}function a(t){eX(o,n,r,i,a,"throw",t)}i(void 0)})}),function(t,e){return iU.apply(this,arguments)});(iF=aE||(aE={})).TRACK="track",iF.PERFORMANCE="performance",iF.INTERACTION="interaction",iF.PCM="PCM",iF.PERFORMANCE_INTERACTION="performance_interaction",iF.SELFHOST="selfhost",iF.AUTO_CONFIG="auto_config",iF.PAGE="Pf",iF.PAGE_PERFORMANCE="page_performance",iF.PAGE_INTERACTION="page_interaction";var ez=["EnrichAM"];(iq=ab||(ab={})).LDU="limited_data_use",iq.EVENTID="eventID",iq.EVENT_ID="event_id",(iG=aO||(aO={}))[iG.defaultReport=0]="defaultReport",iG[iG.httpReport=1]="httpReport",iG[iG.htmlHttpReport=2]="htmlHttpReport",(iH=aI||(aI={}))[iH.P0=0]="P0",iH[iH.P1=1]="P1",iH[iH.P2=2]="P2";var eZ=["ttuts","ad_info_from"],e$="Pageview",e0=[],e1=["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"],e2=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}([eg()],e2);var e3=function(t,e){if("selfhost"===t&&e&&T(e))return"https://"+T(e)+"/api/v2/pixel";var n={track:eR,performance:eP,interaction:eA,performance_interaction:eL,auto_config:ek,page_performance:ex,page_interaction:eC}[t];return n?n:null};function e6(t,e){return(e6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var e5=function(t){function e(e,n){var r;return(r=t.call(this)||this).reporterInfo={},r.options={},r.plugins={},r.rules=[],r.reportEventHistory={},r.reportResultSet=[],r.selfHostConfig={},r.currentHref="",r.advancedMatchingAvailableProperties={external_id:!0,partner_id:!0},r.session=eH(),r.reportService=n,r.context=e,r}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,e6(n,r);var n,r,o=e.prototype;return o.getParameterInfo=function(){var t=this;return this.getInstance().then(function(){var e=t.reporterInfo,n=e.name,r=e.status,o=e.setupMode,i=e.advertiserID,a=e.is_onsite;return{pixelCode:t.getReporterId(),name:void 0===n?"":n,status:void 0===r?1:r,setupMode:void 0===o?0:o,advertiserID:(void 0===i?"":i).toString(),partner:t.getReporterPartner()||"",is_onsite:void 0!==a&&a,advancedMatchingAvailableProperties:t.advancedMatchingAvailableProperties,rules:t.rules}})},o.getInstance=function(){return this.pixelPromise=Promise.resolve(this)},o.getReporterId=function(){return""},o.getReporterUniqueLoadId=function(){return""+this.getReporterId()},o.getReporterPartner=function(){},o.getReporterInfo=function(){return{pixel:{code:this.getReporterId()}}},o.setAdvancedMatchingAvailableProperties=function(t){this.advancedMatchingAvailableProperties=Object.assign({},this.advancedMatchingAvailableProperties,t)},o.isOnsite=function(){return!1},o.isPartnerReporter=function(){return!1},o.getReportResultSet=function(){return this.reportResultSet},o.getUserInfo=function(t){return{}},o.getReporterMatchedUserFormatInfo=function(){return{}},o.getReporterMatchedUserFormatInfoV2=function(){return{}},o.getReportEventHistoryKey=function(t){return"tiktok"},o.getCookieBasedSession=function(){return this.session},o.setCookieBasedSession=function(t){t&&(this.session=t)},o.clearHistory=function(){this.reportEventHistory={}},o.pushReport=function(t,e){void 0===e&&(e="tiktok"),!this.reportEventHistory[e]&&(this.reportEventHistory[e]=[]),this.reportEventHistory[e].push(t)},o.hasReportEventHistory=function(t,e){var n=this.getReportEventHistoryKey(e);return this.reportEventHistory[n]?!!(e0.includes(t)&&this.reportEventHistory[n].includes(t))||!1:(this.reportEventHistory[n]=[],!1)},o.page=function(t){void 0===t&&(t={})},o.track=function(t,e,n,r,o){var i=this,a=r||aE.TRACK,c=o||aO.defaultReport;return!this.reportService||this.hasReportEventHistory(t,c)?Promise.resolve(null):(this.pushReport(t,this.getReportEventHistoryKey(c)),this.reportService.reportPreTasks.then(function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"track_after_report_preposition",functionName:window.ttq._pf_tn&&"track_after_report_preposition",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_after_report_preposition")}}catch(t){}var o=i.getReporterId(),s=i.trackSync(o,t,e,n,a,c);i.trackPostTask({reporterId:o,eventType:t,properties:e,eventConfig:n,type:a,reportType:c,reportData:s});try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"track_after_report_preposition"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return Promise.resolve({reporterId:o,eventType:t,properties:e,eventConfig:n,type:a,reportType:c,reportData:s})}))},o.getEventType=function(t){return t},o.trackPostTask=function(t){},o.trackSync=function(t,e,n,r,o,i,a){void 0===o&&(o=aE.TRACK),void 0===i&&(i=aO.defaultReport);var c=o!==aE.SELFHOST?this.assemblyData(t,e,n,r,o):this.assemblySelfHostData(t,e,n,r,o),s=a||e3(o,t);if(null!==s&&!!this.reportService)return this.emit("beforeReport",t,e,c,r,o),this.reportResultSet.push(this.reportService.report(s,c,i,aI.P0)),c},o.handlePropertiesToOptions=function(t,e){var n={};return e.forEach(function(e){n[e]=t[e],delete t[e]}),n},o.assemblyData=function(t,e,n,r,o){void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=aE.TRACK);var i,a=this.context.getAllData(),c=a.adInfo,s=a.userInfo,u=a.appInfo,f=a.pageSign,l=a.libraryInfo,p=a.pageInfo,h=a.signalType,d=f.sessionId,v=f.variationId,_=Object.assign({},n),g=_&&_.pixelMethod||"";_&&_.pixelMethod&&delete _.pixelMethod;var y=Object.assign({},l,{version:this.context.isLegacyPixel(t)?"legacy-"+l.version:l.version}),m=Object.assign({},ts(c,eZ),{device_id:u.device_id,uid:u.user_id}),w=this.handlePropertiesToOptions(_,[ab.LDU,ab.EVENTID,ab.EVENT_ID]),E=this.options.limited_data_use,O=null!==w.limited_data_use&&void 0!==w.limited_data_use?w.limited_data_use:E;null==O?delete w.limited_data_use:w.limited_data_use=!!O;var I=r&&(r.event_id||r.eventID)||"";w.event_id=I||w.event_id||w.eventID||"",delete w.eventID;var T=this.getReporterInfo();T.pixel&&(T.pixel.runtime=b()?ao.WEB_WORKER:tx()?tj():ao.NORMAL,g&&(T.pixel.mode=g));var S=this.getUserInfo(ac.Manual)||{},N=this.getUserInfo(ac.ManualV2)||{},R=this.getReporterMatchedUserFormatInfoV2()||{},P=this.getUserInfo(ac.Auto)||{};P.auto_trigger_type&&(Object.assign(_,{auto_trigger_type:P.auto_trigger_type}),delete P.auto_trigger_type),tP()&&Object.assign(_,{android_version:u.android_version,device_model:u.device_model});var A={};s.anonymous_id&&(A.anonymous_id=s.anonymous_id);var L=this.getEventType(e),x=o!==aE.AUTO_CONFIG&&(null===(i=this.reporterInfo)||void 0===i?void 0:i.firstPartyCookieEnabled)?eK(this.getCookieBasedSession(),this.context.getPageCookieBasedSession()):{};return Object.assign({event:L,event_id:I,message_id:Y(W("messageId"),t),is_onsite:!!h,timestamp:new Date().toJSON(),context:Object.assign(Object.assign(Object.assign({ad:m,device:{platform:u.platform},user:Object.assign({},A,S,N,P)},T),{page:Object.assign({},p),library:Object.assign({},y),session_id:Y(d,t),pageview_id:Y(this.context.getPageViewId(),this.getReporterUniqueLoadId(),"::"),variation_id:v||""}),x),_inspection:R,properties:_},w)},o.assemblySelfHostData=function(t,e,n,r,o){return void 0===n&&(n={}),void 0===r&&(r={}),this.assemblyData(t,e,n,r,o)},e}(e2);e5=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}([eg()],e5);var e8={ViewForm:"ViewContent",ViewConsultationPage:"ViewContent",ViewDownloadPage:"ViewContent",Checkout:"PlaceAnOrder",Purchase:"CompletePayment",Registration:"CompleteRegistration",AddBilling:"AddPaymentInfo",StartCheckout:"InitiateCheckout",ClickInDownloadPage:"ClickButton",ClickInConsultationPage:"ClickButton",ClickForm:"ClickButton",ClickToDownload:"Download",Consult:"Contact",ConsultByPhone:"Contact"},e4=["event_experiment","dynamic_parameter_config","eb_version","tf"],e9=function(t){var e;return t.context.ad={},Object.keys((null===(e=null==t?void 0:t.context)||void 0===e?void 0:e.user)||{}).forEach(function(e){t.context.user[e]=""}),t},e7=function(t){var e=t.getUserInfo().anonymous_id,n=tz(u);e!==n&&(t.setUserInfoWithoutIdentifyPlugin({anonymous_id:n}),x(an.CUSTOM_INFO,{custom_name:"undetected_cookie_set",extJSON:{message:e+"||"+n}}))},nt=function(t,e,n){try{var r=window.location.hostname.split(".");if(void 0!==aT&&aT=0;o--){var i="."+r.slice(o).join(".");if(document.cookie=t+"="+e+tK(Object.assign({},n,{domain:i})),tz(t)===e){aT=o;break}}}catch(t){}},ne=function(t,e,n){var r,o=eH();return e&&(o=eB(e)),nt(t?p+"_"+t:p,(r=o).sessionId+"."+r.sessionCount+"."+r.lastEventTS,tY(n)),o};function nn(t,e){return(nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nr=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,f=e.reportService,l=e.plugins,p=e.rules,h=e.options;return(r=t.call(this,c,f)||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===l?{}:l)||{},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}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,nn(n,r);var n,r,o=e.prototype;return o.identify=function(t,e){var n=t_(t,e);this.context.setUserInfo(n)},o.getReporterId=function(){return this.id||""},o.getReporterUniqueLoadId=function(){return this.reporterInfo.loadId+"-"+this.getReporterId()},o.getReporterPartner=function(){var t;return(null===(t=this.reporterInfo)||void 0===t?void 0:t.partner)||""},o.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)},o.getInstance=function(){return Promise.resolve(this)},o.getReporterInfo=function(){return this.reporterInfo.pixelCode?t.prototype.getReporterInfo.call(this):{shop_id:this.reporterInfo.shopId,eventSourceId:this.reporterInfo.eventSourceId}},o.getUserInfo=function(t){var e=this.context.getUserInfo(),n=tu(e,Object.assign({},this.advancedMatchingAvailableProperties));switch(t){case ac.Manual:return tu(this.isPartnerReporter()?n:e,{external_id:!0,email:!0,phone_number:!0,ttoclid:!0});case ac.ManualV2:return tu(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 ac.Auto:var r=tu(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}},o.getReporterMatchedUserFormatInfo=function(){var t=this.context.getUserFormatInfo(),e=tc(t,this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0}),n=tu(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},o.getReporterMatchedUserFormatInfoV2=function(){return ta(this.context.getUserFormatInfoV2(),this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0,first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0})},o.isOnsite=function(){var t;return!!(null===(t=this.reporterInfo)||void 0===t?void 0:t.is_onsite)},o.isPartnerReporter=function(){var t=this.getReporterPartner();return!!(t&&"None"!==t)},o.getSignalDiagnosticLabels=function(){var t=this.context.getSignalDiagnosticLabels();if(!t)return Object.assign({},G);var e=this.advancedMatchingAvailableProperties,n=e.email,r=e.phone_number,o=e.auto_email,i=e.auto_phone_number;return n=!this.isPartnerReporter()||n,Object.assign({},G,tu(t,{raw_email:n,raw_phone:r=!this.isPartnerReporter()||r,hashed_email:n,hashed_phone:r,raw_auto_email:o,raw_auto_phone:i}))},o.setCookieBasedSession=function(t){t&&(this.session=t)},o.assemblyData=function(e,n,r,o,i){void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=aE.TRACK);var a,c,s,u=t.prototype.assemblyData.call(this,e,n,r,o,i);u.is_onsite=this.isOnsitePage.value;var f=N(e)||this.ttqPartner;f&&(u.partner=f),u.signal_diagnostic_labels=this.getSignalDiagnosticLabels();var l=I();l&&(u.context.userAgent=l);var p=function(){try{var t=document.readyState;if("loading"==t)return ag.LOADING;if("interactive"==t)return ag.INTERACTIVE;else if("complete"==t)return ag.COMPLETE;return ag.UNKNOWN}catch(t){return ag.UNKNOWN}}();return p&&(u.context.page.load_progress=p),u._inspection=(a=e4,c=u.properties,void 0===(s=u._inspection)&&(s={}),a.forEach(function(t){c.hasOwnProperty(t)&&(s[t]=c[t],delete c[t])}),s),i!==aE.PAGE&&(u._inspection.ppf=A()),u._inspection.vids=this.context.getVids(),u.context.ad.sdk_env=tO(),u.context.ad.jsb_status=function(){var t;try{return[ar.INVOKE_METHOD_ENABLED,ar.INVOKE_METHOD_NOT_ENABLED][[!!(null===(t=null==window?void 0:window.ToutiaoJSBridge)||void 0===t?void 0:t.invokeMethod),!0].findIndex(function(t){return t})]}catch(t){return ar.NOT_SURE}}(),(i===aE.INTERACTION||i===aE.PERFORMANCE||i===aE.PERFORMANCE_INTERACTION)&&!1===this.context.getEnableAdTracking()&&!this.isOnsitePage.value&&(u.context.user={},u.context.ad=this.context.getOffsiteAdInfo(),u.context.ad=ts(u.context.ad,eZ)),u},o.page=function(t){void 0===t&&(t={});var e=eb().url;if(e!==this.currentHref)this.currentHref=e,this.track(e$,t,{})},o.track=function(e,n,r,o,i){var a=this;void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=aE.TRACK),void 0===i&&(i=aO.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(ez.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:Y(W("default_eventId"),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)},o.getEventType=function(t){return e8[t]||t},o.trackSync=function(e,n,r,o,i,a,c){if(void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=aE.TRACK),void 0===a&&(a=aO.defaultReport),"track"===i&&x(an.PIXEL_SEND,{pixelCode:e,extJSON:{event:n}}),i!==aE.TRACK){t.prototype.trackSync.call(this,e,n,r,o,i,a,c);return}r&&"string"==typeof r.currency&&(r.currency=r.currency.toUpperCase());var s,u=this.context.getTestID();if(u){var f=this.assemblyData(e,n,r,o);f.tt_test_id=u;var l=e9(f);return null===(s=this===null||void 0===this?void 0:this.reportService)||void 0===s||s.report(c||eR,l,aO.htmlHttpReport,aI.P0),l}if(r&&"object"==typeof r){var p,h,d,v=r,_=v.value,g=v.currency;if(void 0!==_&&!(!isNaN(p=_)&&p>=0))x(an.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_value",extJSON:{event:n,value:_,currency:g}});if(void 0!==g&&(h=g,void 0===(d=this.currency_list)&&(d=null),!(d||e1).includes(h)))x(an.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_currency",extJSON:{event:n,value:_,currency:g}})}return t.prototype.trackSync.call(this,e,n,r,o,i,a,c)},o.trackPostTask=function(t){var e=t.reporterId,n=t.eventType,r=t.properties,o=t.eventConfig;if(!ez.includes(n))this.selfHostConfig[e]&&!this.hasReportEventHistory(n,aO.htmlHttpReport)&&(this.pushReport(n,this.getReportEventHistoryKey(aO.htmlHttpReport)),this.trackSync(e,n,r,o,aE.SELFHOST,aO.htmlHttpReport))},o.getReportEventHistoryKey=function(t){return t===aO.htmlHttpReport?this.selfHostConfig[this.getReporterId()]:"tiktok"},o.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}(e5);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,r,o,i,a,c,s,u,f){return t.call(this,{id:e,type:n,isOnsitePage:r,context:o,reporterInfo:i,ttqOptions:a,reportService:c,plugins:s,rules:u,options:f})||this}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,no(n,r);var n,r,o=e.prototype;return o.getInstance=function(){var t,e=this;if(this.pixelPromise)return this.pixelPromise;var n=(t=this.id,t6()[t]||{});return O()||n&&n.info?(this.loaded=!0,this.pixelPromise=Promise.resolve(this)):(this.pixelPromise=new Promise(function(t,n){var r,o,i=eO();eQ((r=e.id,o=(null==i?void 0:i.hostname)||"",(tL()?"/static/config.js":"https://analytics.tiktok.com/i18n/pixel/config.js")+"?sdkid="+r+"&hostname="+o)).then(function(){e.loaded=!0,t(e)}).catch(function(t){e.pixelPromise=null,n(t)})}),this.pixelPromise)},o.setCookieBasedSession=function(e){var n=ne(this.pixelCode,e,this.ttqOptions);t.prototype.setCookieBasedSession.call(this,n)},o.track=function(e,n,r,o,i){if(void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=aE.TRACK),void 0===i&&(i=aO.defaultReport),r&&r.pixel_code&&this.getReporterId()!==r.pixel_code)return Promise.resolve(null);if(this.reporterInfo.firstPartyCookieEnabled){var a=eV(document.cookie);this.setCookieBasedSession(a[this.getReporterId()]),this.context.setPageCookieBasedSession(a[""])}return t.prototype.track.call(this,e,n,r,o,i)},e}(nr);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}([eg(),ni(0,ey(tb.ID)),ni(1,ey(tb.Type)),ni(2,ey(tb.IsOnsitePage)),ni(3,ey(t4.CONTEXT)),ni(4,ey(tb.Info)),ni(5,ey(t4.TTQ_GLOBAL_OPTIONS)),ni(6,ey(t4.REPORT_SERVICE)),ni(7,ey(tb.Plugins)),ni(7,em()),ni(8,ey(tb.Rules)),ni(8,em()),ni(9,ey(tb.Options)),ni(9,em())],na);function nc(t,e){return(nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ns=function(t){function e(){return t.apply(this,arguments)||this}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,nc(n,r);var n,r,o=e.prototype;return o.getInstance=function(){return this.pixelPromise=Promise.resolve(this),this.pixelPromise},o.track=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),t8(this.getReporterId(),"track",[t,e,n]),Promise.resolve(null)},e}(na);function nu(){nu=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function nf(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function nl(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){nf(i,r,o,a,c,"next",t)}function c(t){nf(i,r,o,a,c,"throw",t)}a(void 0)})}}function np(t,e){return(np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nh=function(t,e){return function(n,r){e(n,r,t)}},nd=function(t){function e(e,n,r,o,i,a,c,s,u,f,l,p,h,d,v,_,g,y,m,w,E,b,O){(I=t.call(this,e,i)||this).context=e,I.env=s,I.reporters=n,I.cookieService=a,I.reportService=i,I.consentService=c,I.adService=r,I.appService=o,I.historyObserver=b,I.autoAdvancedMatchingPlugin=f,I.callbackPlugin=l,I.identifyPlugin=p,I.monitorPlugin=u,I.webFLPlugin=h,I.shopifyPlugin=d,I.autoConfigPlugin=v,I.diagnosticsConsolePlugin=_,I.competitorInsightPlugin=g,I.pangleCookieMatchingPlugin=y,I.eventBuilderPlugin=m,I.pagedataPlugin=E,I.enrichIpv6Plugin=w,I.runtimeMeasurementPlugin=O,I.historyObserver&&I.useObserver(I.historyObserver),I.autoAdvancedMatchingPlugin&&I.usePlugin(I.autoAdvancedMatchingPlugin),I.callbackPlugin&&I.usePlugin(I.callbackPlugin),I.identifyPlugin&&I.usePlugin(I.identifyPlugin),I.monitorPlugin&&I.usePlugin(I.monitorPlugin),I.webFLPlugin&&I.usePlugin(I.webFLPlugin),I.shopifyPlugin&&I.usePlugin(I.shopifyPlugin),I.autoConfigPlugin&&I.usePlugin(I.autoConfigPlugin),I.diagnosticsConsolePlugin&&I.usePlugin(I.diagnosticsConsolePlugin),I.competitorInsightPlugin&&I.usePlugin(I.competitorInsightPlugin),I.pangleCookieMatchingPlugin&&I.usePlugin(I.pangleCookieMatchingPlugin),I.eventBuilderPlugin&&I.usePlugin(I.eventBuilderPlugin),I.enrichIpv6Plugin&&I.usePlugin(I.enrichIpv6Plugin),I.runtimeMeasurementPlugin&&I.usePlugin(I.runtimeMeasurementPlugin),I.monitorPlugin&&(L.info.forEach(function(t){var e;null===(e=I.monitorPlugin)||void 0===e||e.info(t.event,t.detail,t.withoutJSB)}),L.error.forEach(function(t){var e;null===(e=I.monitorPlugin)||void 0===e||e.error(t.event,t.err,t.detail,t.withoutJSB)}),L.info=[],L.error=[]),I.dispatch(a_.INIT_START),I.pagedataPlugin&&I.usePlugin(I.pagedataPlugin),I.onPageLoaded(),I.onPageLeave();var I,T=eb(),S=T.url,N=T.referrer;return I.init(S,N),I.setPageInfo(S,N),I.dispatch(a_.INIT_END),I}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,np(n,r);var n,r,o,i=e.prototype;return i.initAdInfo=function(t,e){this.dispatch(a_.BEFORE_AD_INFO_INIT_START);var n=eI(a);if(n){this.initAdCache(n);return}if(tG()){var r=eU(t,e);r&&(r.creative_id&&r.log_extra||r.callback)&&(this.dispatch(a_.AD_INFO_INIT_START),eS(a,r),this.setAdInfo(r),this.initOffsiteAdInfo(r));return}this.initBaseAdInfo(t,e)},i.initAdCache=function(t){this.dispatch(a_.AD_INFO_INIT_START),t.ad_info_from="cache",t.ad_info_status="fulfilled(cache)",this.setAdInfo(t),this.initOffsiteAdInfo(t)},i.initBaseAdInfo=function(t,e){var n=this;this.adService.webBridgeService.jsbridge&&this.dispatch(a_.AD_INFO_INIT_START),this.reportService.pushPreposition(nl(nu().mark(function r(){var o;return nu().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),C(an.INIT_ERROR,r.t0,{extJSON:{position:"initAdInfo"}});case 11:case"end":return r.stop()}},r,null,[[0,8]])}))())},i.initOffsiteAdInfo=function(t){var e=eq(t,function(t){C(an.INIT_ERROR,t,{extJSON:{position:"handleAdInfoOfficial"}})});this.context.setOffsiteAdInfo(e);var n=eF(t,this.env);this.context.setEnableAdTracking(n),this.dispatch(a_.AD_INFO_INIT_END,{extJSON:{enabledAdTracking:n}})},i.initAppInfo=function(t,e){var n=this,r=eI(c);if(r){this.context.setAppInfo(r);return}this.reportService.pushPreposition(nl(nu().mark(function r(){var o;return nu().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)}))())},i.initBaseAppInfo=(o=nl(nu().mark(function t(e,n){var r;return nu().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)})),function(t,e){return o.apply(this,arguments)}),i.initTestId=function(t,e){if(!this.context.getTestID()){var n=eG(t,tz("tt_test_id"),e);this.context.setTestID(n)}},i.initUserInfo=function(){this.setCookieInfo()},i.initLocalServiceInfo=function(){var t,e,n=eI(v);if(n){this.context.setUserInfoWithoutIdentifyPlugin(((t={})[v]=n,t));return}var r=eb(),o=r.url,i=r.referrer,a=eE(_[location.hostname]?_[location.hostname]:v,o,i);a&&(eS(v,a),this.context.setUserInfoWithoutIdentifyPlugin(((e={})[v]=a,e)))},i.setPageIndex=function(t){t&&t$(t)},i.instance=function(t){this.beforeAPIExecution();var e=this.getReporter(t);return e?e:new ns(t,av.PIXEL_CODE,{value:!1},this.context,{pixelCode:t},{},{})},i.instances=function(){return this.beforeAPIExecution(),this.reporters},i.page=function(e){this.beforeAPIExecution();var n=eb(),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))},i.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 ns)&&a.track(e,n,r)}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o))}catch(t){}},i.identify=function(e,n){this.beforeAPIExecution(),t.prototype.identify.call(this,e,n)},i.setAdInfo=function(t){this.context.setAdInfo(t)},i.enableFirstPartyCookie=function(t){this.cookieService.enableFirstPartyCookie(t),t&&this.setCookieInfo()},i.enableCookie=function(){this.cookieService.enableFirstPartyCookie(!0),this.setCookieInfo(),this.cookieService.enableCookie()},i.disableCookie=function(){this.cookieService.disableCookie(),this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:void 0}),this.disablePangleCookie()},i.holdConsent=function(){this.consentService.setConsentMode(ap.HOLD)},i.revokeConsent=function(){this.consentService.setConsentMode(ap.REVOKE)},i.grantConsent=function(){this.consentService.setConsentMode(ap.GRANT)},i.disablePangleCookie=function(){this.pangleCookieMatchingPlugin&&this.pangleCookieMatchingPlugin.disablePangleCookie()},i.setAnonymousId=function(t){this.cookieService.setAnonymousId(t),this.initUserInfo()},i.resetCookieExpires=function(){this.cookieService.resetExpires()},i.setCookieInfo=function(){if(!this.cookieService.canUseCookie())return;var t=this.cookieService.getAnonymousId();if(!!t)this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:t})},i.onPageLoaded=function(){var t=this;window.addEventListener("load",function(){t.dispatch(a_.PAGE_DID_LOAD)},{once:!0})},i.onPageLeave=function(){var t=this,e=function(){var e=Date.now();t.dispatch(a_.PAGE_WILL_LEAVE,e),t.consentService.updateCache()};window.addEventListener("beforeunload",e,{once:!0}),tA()&&window.addEventListener("onpagehide"in window?"pagehide":"unload",e)},i.beforeAPIExecution=function(){try{var t,e;t=this.context,eb().url===t.getPageInfo().url||this.setPageInfo(eb().url),e=this.context,tz(u)===e.getUserInfo().anonymous_id||e7(this.context)}catch(t){C(an.API_ERROR,t,{extJSON:{position:"beforeAPIExecution"}})}},i.loadPixel=function(t,e){if(!!t){if(this.reporters.find(function(e){return e.getReporterId()===t})){k(am.DUPLICATE_PIXEL_CODE);return}E().load(t,e||{})}},e}(eY),nv=nd=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}([eg(),nh(0,ey(t4.CONTEXT)),nh(1,ey(t4.TTQ_REPORTERS)),nh(2,ey(t4.AD_SERVICE)),nh(3,ey(t4.APP_SERVICE)),nh(4,ey(t4.REPORT_SERVICE)),nh(5,ey(t4.COOKIE_SERVICE)),nh(6,ey(t4.CONSENT_SERVICE)),nh(7,ey(t4.ENV)),nh(8,ey(t4.MONITOR_PLUGIN)),nh(8,em()),nh(9,ey(t4.AUTO_ADVANCED_MATCHING_PLUGIN)),nh(9,em()),nh(10,ey(t4.CALLBACK_PLUGIN)),nh(10,em()),nh(11,ey(t4.IDENTIFY_PLUGIN)),nh(11,em()),nh(12,ey(t4.WEB_FL_PLUGIN)),nh(12,em()),nh(13,ey(t4.SHOPIFY_PLUGIN)),nh(13,em()),nh(14,ey(t4.AUTO_CONFIG_PLUGIN)),nh(14,em()),nh(15,ey(t4.DIAGNOSTICS_CONSOLE_PLUGIN)),nh(15,em()),nh(16,ey(t4.COMPETITOR_INSIGHT_PLUGIN)),nh(16,em()),nh(17,ey(t4.PANGLE_COOKIE_MATCHING_PLUGIN)),nh(17,em()),nh(18,ey(t4.EVENT_BUILDER_PLUGIN)),nh(18,em()),nh(19,ey(t4.ENRICH_IPV6_PLUGIN)),nh(19,em()),nh(20,ey(t4.PAGEDATA_PLUGIN)),nh(20,em()),nh(21,ey(t4.HISTORY_OBSERVER)),nh(21,em()),nh(22,ey(t4.RUNTIME_MEASUREMENT_PLUGIN)),nh(22,em())],nd),n_=function(){function t(t){this.userFormatInfo={},this.userFormatInfoV2={},this.enableAdTracking=!0,this.offsiteAdInfo={},this.tt_test_id="",this.signalDiagnosticLabels=Object.assign({},G),this.pageCookieBasedSession=eH(),this.init(t)}var e=t.prototype;return e.init=function(t){this.userInfo={},this.adInfo={},this.appInfo={},this.pageInfo={url:"",referrer:""},this.pageSign={sessionId:"",pageId:""},this.libraryInfo=t},e.getAllData=function(){return{userInfo:this.userInfo,adInfo:this.adInfo,appInfo:this.appInfo,libraryInfo:this.libraryInfo,pageInfo:this.pageInfo,pageSign:this.pageSign,signalType:this.signalType,userFormatInfo:this.userFormatInfo,userFormatInfoV2:this.userFormatInfoV2,enableAdTracking:this.enableAdTracking,offsiteAdInfo:this.offsiteAdInfo,tt_test_id:this.tt_test_id}},e.getLibraryInfo=function(){return this.libraryInfo},e.setSignalType=function(t){this.signalType=t},e.getSignalType=function(){return this.signalType},e.setTestID=function(t){this.tt_test_id=t},e.getTestID=function(){return this.tt_test_id},e.setEnableAdTracking=function(t){this.enableAdTracking=t},e.getEnableAdTracking=function(){return this.enableAdTracking},e.setOffsiteAdInfo=function(t){this.offsiteAdInfo=Object.assign({},this.offsiteAdInfo,t)},e.getOffsiteAdInfo=function(){return this.offsiteAdInfo},e.getUserFormatInfo=function(){return this.userFormatInfo},e.setUserFormatInfo=function(t){void 0===t&&(t={}),Object.assign(this.userFormatInfo,t)},e.getUserFormatInfoV2=function(){return this.userFormatInfoV2},e.setUserFormatInfoV2=function(t){void 0===t&&(t={}),Object.assign(this.userFormatInfoV2,t)},e.setUserInfo=function(t){void 0===t&&(t={}),Object.assign(this.userInfo,t)},e.setUserInfoWithoutIdentifyPlugin=function(t){if(!!t)Object.assign(this.userInfo,t)},e.getUserInfo=function(){return this.userInfo},e.getAdInfo=function(){return this.adInfo},e.setAdInfo=function(t){if(!!t)this.adInfo?this.adInfo=Object.assign({},this.adInfo,t):this.adInfo=t},e.getAppInfo=function(){return this.appInfo},e.setAppInfo=function(t){if(!!t)this.appInfo=Object.assign({},this.appInfo,t)},e.getPageInfo=function(){return this.pageInfo},e.getPageSign=function(){return this.pageSign},e.setPageInfo=function(t,e){var n=Object.assign({},this.pageInfo),r=Object.assign({},this.pageSign);if(n.url!==t){var o=n.url;if(void 0!==n.url&&(n.referrer=n.url),void 0!==e&&(n.referrer=e),void 0!==r.pageIndex){var i=r.pageIndex,a=i.index,c=i.sub,s=i.main;r.pageIndex={index:++a,sub:++c,main:s}}return n.url=t,this.pageInfo=n,this.pageSign=r,{from:o,pageIndex:r.pageIndex}}},e.setPageInfoData=function(t){this.pageInfo=Object.assign({},this.pageInfo,t)},e.getSessionIdFromCache=function(){return null},e.setSessionIdToCache=function(t){},e.setSignalDiagnosticLabels=function(t){Object.assign(this.signalDiagnosticLabels,t)},e.getSignalDiagnosticLabels=function(){return this.signalDiagnosticLabels},e.getPageId=function(t){return void 0===t&&(t=""+Date.now()),t+"-"+to(5)},e.getPageViewId=function(){var t=this.pageSign,e=t.pageId,n=t.pageIndex;return""+e+(n?"."+n.main+"."+n.sub:"")},e.getVariationId=function(){return""},e.getVids=function(){return""},e.isLegacyPixel=function(t){return!1},e.initPageSign=function(){var t=this.getSessionIdFromCache();null===t&&(t=W("sessionId"),this.setSessionIdToCache(t));var e={sessionId:t,pageId:W("pageId")};this.pageSign=e},e.getPageCookieBasedSession=function(){return this.pageCookieBasedSession},e.setPageCookieBasedSession=function(t){t&&(this.pageCookieBasedSession=t)},t}();n_=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}([eg()],n_);function ng(t,e){return(ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ny=function(t,e){return function(n,r){e(n,r,t)}},nm=function(t){function e(e,n,r,o,i){var a;return(a=t.call(this,e)||this).setSignalType(i||ad.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(),tS(o)&&tA()&&(a.enableAdTracking=!1),a.data=a,a}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,ng(n,r);var n,r,o=e.prototype;return o.getSessionIdFromCache=function(){var t=null;try{t=JSON.parse(sessionStorage.getItem(f)||"")}catch(t){}return t},o.setSessionIdToCache=function(t){eS(f,t)},o.getVariationId=function(){return this.variationId},o.getVids=function(){return this.vids},o.isLegacyPixel=function(t){return S(t,this.legacy)},o.assignPageInfo=function(t){Object.assign(this.pageInfo,t)},o.getSessionIndex=function(){var t={main:-1,sub:-1,index:-1};try{var e=JSON.parse(sessionStorage.getItem(l)||"{}");if(e)return Object.assign({},t,e)}catch(t){}return t},o.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===B){e.setUserInfoWithoutIdentifyPlugin(((r={})[B]=i,r));return}n[o]=String(i).trim()}});var r=E(),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()||{},f=e.getUserFormatInfoV2()||{},l=e.getSignalDiagnosticLabels()||{};if(e.setUserFormatInfo(Object.assign({},u,c)),e.setUserFormatInfoV2(Object.assign({},f,s)),e.setSignalDiagnosticLabels(Object.assign({},l,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(ac.Manual),p.getUserInfo(ac.Auto))):[];p&&h.length&&p.track("EnrichAM",{},{},aE.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){C(an.API_ERROR,t,{extJSON:{api:"identify"}})}))}},o.initPageSign=function(){var t,e,n=this.getSessionIdFromCache();if(null===n){;n=(t=this.serverUniqueId)?""+t+"::"+to(20):W("sessionId"),this.setSessionIdToCache(n)}var r=this.getPageId((e=n)?e.split("::")[0]:""),o=this.getVariationId(),i=this.getSessionIndex();i.main++,this.pageSign={sessionId:n,pageId:r,variationId:o,pageIndex:i}},o.setPageCookieBasedSession=function(e){var n=ne("",e,this.ttqOptions);t.prototype.setPageCookieBasedSession.call(this,n)},e}(n_);nm=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}([eg(),ny(0,ey(tb.WebLibraryInfo)),ny(1,ey(t4.REPORT_SERVICE)),ny(2,ey(t4.TTQ_GLOBAL_OPTIONS)),ny(3,ey(t4.ENV)),ny(3,em()),ny(4,ey(tb.SignalType)),ny(4,em())],nm);var nw=String.fromCharCode.bind(String),nE=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),nb=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+=nE[(e=n<<16|r<<8|o)>>18&63]+nE[e>>12&63]+nE[e>>6&63]+nE[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},nO=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?nw(192|e>>>6)+nw(128|63&e):nw(224|e>>>12&15)+nw(128|e>>>6&63)+nw(128|63&e)}var n=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return nw(240|n>>>18&7)+nw(128|n>>>12&63)+nw(128|n>>>6&63)+nw(128|63&n)},nI=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,nT=function(t){return nb(t.replace(nI,nO)).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"})},nS=function(t){return nT(JSON.stringify(t))};function nN(){nN=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function nR(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}var nP=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)},r.report=(n=(e=nN().mark(function t(e,n,r,o){return nN().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)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){nR(i,r,o,a,c,"next",t)}function c(t){nR(i,r,o,a,c,"throw",t)}a(void 0)})}),function(t,e,r,o){return n.apply(this,arguments)}),t}();nP=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}([eg()],nP);var nA=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()},nL=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;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function nk(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function nD(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){nk(i,r,o,a,c,"next",t)}function c(t){nk(i,r,o,a,c,"throw",t)}a(void 0)})}}function nM(t,e){return(nM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nj=function(t,e){return function(n,r){e(n,r,t)}},nU=function(t){function e(e,n,r,o){var i;return(i=t.call(this,e,n,new nx)||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,aI.P0)})}),i.env=o,i}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,nM(n,r);var n,r,o,i,a,c=e.prototype;return c.send=(o=nD(nC().mark(function t(e,n,r){var o,i,a,c,s,u,f;return nC().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 u=!!(s=n).context&&(null===(i=null===(o=s.context)||void 0===o?void 0:o.ad)||void 0===i?void 0:i.ad_info_status)==="timeout",f={},t.prev=5,t.next=8,this.bridgeService.send(s,u);case 8:if(!(!(f=t.sent)||1!==f.code)){t.next=11;break}throw Error("[fetch bridge] sendLog error: code "+(f&&f.code)+", data: "+(f&&JSON.stringify(f)));case 11:return tt(s.event)&&x(an.JSB_SEND,{pixelCode:null===(a=s.context.pixel)||void 0===a?void 0:a.code,app_name:tk()?"ultralite":"",extJSON:{event:s.event,event_id:s.event_id,need_inject_ad_info:u}}),t.abrupt("return",f);case 15:t.prev=15,t.t0=t.catch(5),tt(s.event)&&C(an.JSB_ERROR,t.t0,{pixelCode:null===(c=s.context.pixel)||void 0===c?void 0:c.code,custom_name:"sendReportData",custom_enum:f&&f.code?""+f.code:"non",app_name:tU()||"",extJSON:{position:"sendReportData"}}),tk()&&tP()&&this.sendHttpReport(e,s,r);case 19:case"end":return t.stop()}},t,this,[[5,15]])})),function(t,e,n){return o.apply(this,arguments)}),c.sendHttpReport=(i=nD(nC().mark(function t(e,n,r,o,i){var a;return nC().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&&x(an.HTTP_SEND,{pixelCode:null===(a=n.context.pixel)||void 0===a?void 0:a.code,extJSON:{event:n.event,event_id:n.event_id}});case 6:case"end":return t.stop()}},t,this)})),function(t,e,n,r,o){return i.apply(this,arguments)}),c.beforeReport=function(t,e,n){void 0===n&&(n=aO.defaultReport);var r=this.consentService.getConsentMode();return r!==ap.REVOKE&&(r!==ap.HOLD||(this.consentService.cacheReportTask(t,e,n),!1))},c.report=(a=nD(nC().mark(function t(e,n,r,o){var i,a,c,s;return nC().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=aO.defaultReport),void 0===o&&(o=aI.P0),!(o!==aI.P0)){t.next=8;break}return t.next=5,tl(0);case 5:return t.next=7,this.report(e,n,r,aI.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=nS(n),!(r===aO.defaultReport&&this.bridgeService.jsbridge)){t.next=16;break}return t.next=15,this.send(e,n,i);case 16:if(!(r===aO.httpReport&&this.bridgeService.jsbridge&&tS(this.env)&&!tC()&&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(s=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,s;case 27:if(1!==c){t.next=29;break}return t.abrupt("return");case 29:throw s;case 32:t.prev=32,t.t0=t.catch(18),C(an.CUSTOM_ERROR,t.t0,{custom_name:"sendAnalyticsEvent",custom_enum:String(c)},!0);case 35:this.sendHttpReport(e,n,i,!!(tt(n.event)&&tn(n)),n.action?3:void 0);case 36:case"end":return t.stop()}},t,this,[[18,32]])})),function(t,e,n,r){return a.apply(this,arguments)}),c.reportFL=function(t){this.bridgeService.jsbridge&&this.bridgeService.updateWebFlData(t)},e}(nP);function nF(){nF=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function nq(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}nU=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}([eg(),nj(0,ey(t4.HTTP_SERVICE)),nj(1,ey(t4.BRIDGE_SERVICE)),nj(2,ey(t4.CONSENT_SERVICE)),nj(3,ey(t4.ENV)),nj(3,em())],nU);var nG=function(){function t(t){this.webBridgeService=t}var e,n,r=t.prototype;return r.getAdInfo=(n=(e=nF().mark(function t(e,n){var r,o,i;return nF().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)&&eS(a,i),t.abrupt("return",i);case 12:case"end":return t.stop()}},t,this)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){nq(i,r,o,a,c,"next",t)}function c(t){nq(i,r,o,a,c,"throw",t)}a(void 0)})}),function(t,e){return n.apply(this,arguments)}),r.getAdInfoFromURL=function(t,e){return eU(t,e)},t}();function nH(){nH=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function nV(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}nG=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}([eg(),(iB=0,iK=ey(t4.BRIDGE_SERVICE),function(t,e){iK(t,e,0)})],nG);var nB=function(){function t(t){this.webBridgeService=t}var e,n,r=t.prototype;return r.getAppInfo=(n=(e=nH().mark(function t(e,n){var r,o,i,a;return nH().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.getAppInfoFromURL(e,n)).platform=tN(),!tP()){t.next=10;break}return t.next=5,tR();case 5:i=(o=t.sent).model,a=o.platformVersion,r.device_model=i,r.android_version=a;case 10:if("{}"!==JSON.stringify(r))eS(c,r);return t.abrupt("return",r);case 12:case"end":return t.stop()}},t,this)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){nV(i,r,o,a,c,"next",t)}function c(t){nV(i,r,o,a,c,"throw",t)}a(void 0)})}),function(t,e){return n.apply(this,arguments)}),r.getAppInfoFromURL=function(t,e){try{var n=eE(ej,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}();nB=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}([eg(),(iW=0,iY=ey(t4.BRIDGE_SERVICE),function(t,e){iY(t,e,0)})],nB);var nK="ad_analytics_msg";function nW(){nW=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function nY(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function nJ(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){nY(i,r,o,a,c,"next",t)}function c(t){nY(i,r,o,a,c,"throw",t)}a(void 0)})}}var nX=function(t,e){return function(n,r){e(n,r,t)}},nQ=function(){function t(t,e){this.env=t,tT(this.env)&&(this.jsbridge=e),this.bridgeTimeout=400}var e,n,r,o,i,a,c,s=t.prototype;return s.getAdInfo=(e=nJ(nW().mark(function t(){var e=this;return nW().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=3;break}return C(an.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=nJ(nW().mark(function t(n){var r;return nW().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({}),C(an.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)})),function(){return e.apply(this,arguments)}),s.callAdInfo=(n=nJ(nW().mark(function t(){var e,n;return nW().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.call("adInfo",{},tx()?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 x(an.CUSTOM_INFO,{custom_name:"ad_info_init_timeout"}),t.abrupt("return",{ad_info_status:"timeout"});case 17:return C(an.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}}),t.abrupt("return",{});case 19:case"end":return t.stop()}},t,this,[[0,10]])})),function(){return n.apply(this,arguments)}),s.getAppInfo=(r=nJ(nW().mark(function t(){return nW().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)})),function(){return r.apply(this,arguments)}),s.send=(o=nJ(nW().mark(function t(e,n){var r,o,i,a,c,s,u,f,l,p,h,d;return nW().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?void 0:r.ad)||void 0===o?void 0:o.creative_id)||"0",a=nS(e),c=te(e)?"insight_log_monitor":"insight_log",s={analytics_message:a,trackLogData:JSON.stringify(e),category:"ad_analytics_msg",tag:nK,label:c},l={eventName:nK,labelName:c,value:i,extValue:"0",extJson:s},"insight_log_monitor"===c&&tV(new Set([ae.MUSICAL_LY,ae.TRILL,ae.ULTRALITE]))?(f="x.reportAppLog",p={eventName:"insight_log_monitor",params:s},u=this.call("x.reportAppLog",p,this.bridgeTimeout)):tG()||te(e)?(f="sendLog",u=this.call("sendLog",l,this.bridgeTimeout)):tS(this.env)?tA()&&n?(h={eventName:c,params:s},f="sendLogWithAdInfo",u=this.call("sendLogWithAdInfo",h,this.bridgeTimeout)):(f="sendLog",u=this.call("sendLog",l,this.bridgeTimeout)):(d={event_name:c,version:2,properties:s},f="track_event",u=this.call("track_event",d,400)),setTimeout(function(){x(an.CUSTOM_INFO,{custom_name:"send_report_data",extJSON:{api_name:f}})}),t.abrupt("return",u);case 10:case"end":return t.stop()}},t,this)})),function(t,e){return o.apply(this,arguments)}),s.call=(i=nJ(nW().mark(function t(e,n,r,o){var i=this;return nW().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&&C(an.JSB_ERROR,Error("JSBRIDGE ERROR"),{extJSON:{position:"getCallPromise"}});return}r>0&&(c=window.setTimeout(function(){a("JSBRIDGE TIMEOUT"),o&&C(an.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,r={};try{if("string"==typeof t)r.data=JSON.parse(t);else{;if((n=t).code&&n.data&&n.ret?0:1){if(void 0!==t.code){var o=Object.assign({},t),i=o.code;r.code=i,delete o.code,o.data?r.data=o.data:r.data=o}else r.data=t}else(r=t).__data&&(r.data=r.__data)}}catch(t){e&&C(an.JSB_ERROR,t,{extJSON:{position:"getCallPromise bridge.call"}})}return r}(e,o)),window.clearTimeout(c)})}));case 4:case"end":return t.stop()}},t)})),function(t,e,n,r){return i.apply(this,arguments)}),s.sendAnalyticsEvent=(a=nJ(nW().mark(function t(e){var n,r,o,i,a;return nW().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)})),function(t){return a.apply(this,arguments)}),s.updateWebFlData=(c=nJ(nW().mark(function t(e){return nW().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(tS(this.env)&&tA())){t.next=2;break}return t.abrupt("return",this.call("updateFLLocalConv",e,this.bridgeTimeout));case 2:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)}),t}();function nz(){nz=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function nZ(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}nQ=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}([eg(),nX(0,ey(t4.ENV)),nX(0,em()),nX(1,ey(t4.JS_BRIDGE)),nX(1,em())],nQ);var n$=function(){function t(){}var e,n,r=t.prototype;return r.send=(n=(e=nz().mark(function t(e,n,r){var o;return nz().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,tl(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]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){nZ(i,r,o,a,c,"next",t)}function c(t){nZ(i,r,o,a,c,"throw",t)}a(void 0)})}),function(t,e,r){return n.apply(this,arguments)}),r.sendByImage=function(t,e){new Image().src=nA(t,e)},t}();function n0(){n0=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function n1(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}n$=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}([eg()],n$);var n2=function(){function t(t){this.cookieExpireOption=tY(t)}var e,n,r=t.prototype;return r.genCookieID=function(){return ti()},r.enableCookie=(n=(e=n0().mark(function t(){return n0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return tZ(s,"1",this.cookieExpireOption),t.abrupt("return",eQ(tL()?"/static/enable_cookie.js":"https://analytics.tiktok.com/i18n/pixel/enable_cookie"));case 2:case"end":return t.stop()}},t,this)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){n1(i,r,o,a,c,"next",t)}function c(t){n1(i,r,o,a,c,"throw",t)}a(void 0)})}),function(){return n.apply(this,arguments)}),r.enableFirstPartyCookie=function(t){if(!!t){tZ(s,"1",this.cookieExpireOption);var e=this.getAnonymousId();this.setAnonymousId(e||this.genCookieID())}},r.disableCookie=function(){tZ(s,"0",this.cookieExpireOption),tZ(u,"",Object.assign(this.cookieExpireOption,{expires:-1})),eQ(tL()?"/static/disable_cookie.js":"https://analytics.tiktok.com/i18n/pixel/disable_cookie")},r.setAnonymousId=function(t){var e=this.getAnonymousId()||t;if(!!e)tZ(u,e.split(".")[0],this.cookieExpireOption)},r.getAnonymousId=function(){return tz(u)||""},r.canUseCookie=function(){try{return"0"!==tz(s)}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=tz(s);e&&tZ(s,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}();n2=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}([eg(),(iJ=0,iX=ey(t4.TTQ_GLOBAL_OPTIONS),function(t,e){iX(t,e,0)})],n2),(iQ=aN||(aN={}))[iQ.P0=4]="P0",iQ[iQ.P1=3]="P1",iQ[iQ.P2=2]="P2",iQ[iQ.P3=1]="P3";function n3(t,e){return(n3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var n6="tt_hold_events",n5=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.consentMode=ap.UNKNOWN,e.queue=[],e.debounceUpdateCache=tf(function(){e.updateCache()},200,e),e.handleHistoryQueue=tr(function(){var t=eI(n6);Array.isArray(t)&&(e.queue=e.queue.concat(t),e.changeQueueWithConsent())}),e}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,n3(n,r);var n,r,o=e.prototype;return o.on=function(e,n){t.prototype.on.call(this,e,n),this.handleHistoryQueue()},o.setConsentMode=function(t){this.consentMode=t,this.changeQueueWithConsent()},o.changeQueueWithConsent=function(){switch(this.consentMode){case ap.REVOKE:this.cleanQueue();break;case ap.GRANT:this.releaseQueue(),this.cleanQueue();case ap.HOLD:case ap.UNKNOWN:}},o.getConsentMode=function(){return this.consentMode},o.cacheReportTask=function(t,e,n){void 0===n&&(n=aO.defaultReport),this.queue.push({url:t,data:e,type:n}),this.debounceUpdateCache()},o.cleanQueue=function(){this.queue=[],eT(n6)},o.updateCache=function(){this.queue&&this.queue.length>0&&eS(n6,this.queue)},o.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)},o.getEventPriority=function(t){return t.event&&t.event.length>0?aN.P0:t.action&&t.action.length>0?aN.P1:""===t.event?aN.P2:aN.P3},e}(e2);n5=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}([eg()],n5);var n8=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}();n8=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}([eg()],n8);function n4(t,e){return(n4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var n9=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return e=r,n=t,e.prototype=Object._ttq_create(n.prototype),e.prototype.constructor=e,n4(e,n),r}(n8);function n7(t,e){return(n7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rt=function(t,e){return function(n,r){e(n,r,t)}},re=function(t){var e,n;function r(e,n){var r;return(r=t.call(this,{name:"Callback",reporters:n,context:e})||this).ttclidCookieValue="undefined"!=typeof document?tz(eM):"",r}return e=r,n=t,e.prototype=Object._ttq_create(n.prototype),e.prototype.constructor=e,n7(e,n),r.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=eb(),r=eE(eM,n.url,n.referrer);r&&this.ttclidCookieValue!==r&&tW(eM,r);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},r}(n9);re=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}([eg(),rt(0,ey(t4.CONTEXT)),rt(1,ey(t4.TTQ_REPORTERS))],re);var rn={isHash:function(t){return!1},genIdentifierLabelByUserProperties:function(t){return{}}},rr={validatePhoneNumberLength:function(t){},parsePhoneNumberFromString:function(t){}},ro={tryDecodeHashedBase64String:function(t){return null},tryDecodeHashedBase64Hex:function(t){return null}},ri={checkEmailFormat:function(t){return!1},checkMDNEmailFormat:function(t){return!1}},ra=function(t){var e=t.parsePhoneNumberFromString,n=t.validatePhoneNumberLength;rr.parsePhoneNumberFromString=e,rr.validatePhoneNumberLength=n},rc=function(t){var e=t.isHash,n=t.genIdentifierLabelByUserProperties;rn.isHash=e,rn.genIdentifierLabelByUserProperties=n},rs=function(t){var e=t.tryDecodeHashedBase64String,n=t.tryDecodeHashedBase64Hex;ro.tryDecodeHashedBase64String=e,ro.tryDecodeHashedBase64Hex=n},ru=function(t){var e=t.checkEmailFormat,n=t.checkMDNEmailFormat;ri.checkEmailFormat=e,ri.checkMDNEmailFormat=n},rf=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;ru({checkEmailFormat:c,checkMDNEmailFormat:s}),rs({tryDecodeHashedBase64String:i,tryDecodeHashedBase64Hex:a}),rc({isHash:r,genIdentifierLabelByUserProperties:o}),ra({parsePhoneNumberFromString:e,validatePhoneNumberLength:n}),$(u)},rl=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=rr.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},rp=["(null)","","''\"",void 0,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","eb045d78d273107348b0300c01d29b7552d622abbc6faf81b3ec55359aa9950c","not set",null,"6181738008c985a1b5f106b796c98e719efcc3c0ff68ddcd14a049825f4900a8","2a539d6520266b56c3b0c525b9e6128858baeccb5ee9b694a2906e123c8d6dd3","c6e52c372287175a895926604fa738a0ad279538a67371cd56909c7917e69ea1","None","74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b","f24f02d3c35894296522abac8c4b2439b1c1b650e1fb4c97c0f3c50b580b0a3c","no","a683c5c5349f6f7fb903ba8a9e7e55d0ba1b8f03579f95be83f4954c33e81098","f18a2548c063c5a2b1560c6f2b9ec44bf9ed9017884404016d74f330119aaefe","449f06574cd639e1826848ff5d70ba95904574be84f34e61baa526d517dfb493","fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa","NA","bc857c49633bbc75644c51f36b16b2f768cc0ee13f65402ec7c32c96308272dd","42cbf37902c6911d7b4e371fe8f8708a0ceda6946249d4a3e23de8d5e60ae8b7"];function rh(t,e){return(rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rd=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}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,rh(n,r);var n,r,o=e.prototype;return o.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,f=t.getCookieDeprecationLabel,l=t.getAllTopics;rf({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===f?function(){}:f,this.getAllTopics=void 0===l?function(){}:l},o.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=rn.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=ro.tryDecodeHashedBase64Hex(c);if(null!==u)t[r]=u,null!==s&&(i=n.updateUserDataFormatV2Label(s,aa.BASE64_HEX_HASHED,i));else{var f=ro.tryDecodeHashedBase64String(c);f&&(t[r]=f,null!==s&&(i=n.updateUserDataFormatV2Label(s,aa.BASE64_STRING_HASHED,i)))}}switch("zip_code"===r&&c&&(rn.isHash(c)?i=n.updateUserDataFormatV2Label("zip_code",aa.ZIP_CODE_IS_HASHED,i):(i=n.updateUserDataFormatV2Label("zip_code",aa.ZIP_CODE_IS_NOT_HASHED,i),n.isZipFromUs(t)?(t.zip_code=n.sha256(n.truncateString(c,5)),i=n.updateUserDataFormatV2Label("zip_code",aa.ZIP_CODE_IS_US,i)):(t.zip_code=n.sha256(c),i=n.updateUserDataFormatV2Label("zip_code",aa.ZIP_CODE_IS_NOT_US,i)))),r){case"email":t.email=rn.isHash(c)&&!n.checkEmailFormat(c)?c:n.sha256(n.handleEmail(c));break;case"phone_number":t.phone_number=rn.isHash(c)?c: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=rn.isHash(c)?c:n.sha256(c);break;case"last_name":t.last_name=rn.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}}},o.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,"email",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&&H.includes(s)&&(n[s]=[ai.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]=[ai.CORRECT_FORMAT]}}),n},o.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,V.EMAIL_IS_HASHED,n);break;case"phone_number":e.handlePixelValidation(i,V.PHONE_IS_HASHED,n);break;case"sha256_email":e.handlePixelValidation(i,V.SHA256_EMAIL,n);break;case"sha256_phone_number":e.handlePixelValidation(i,V.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]=[aa.UNKNOWN_INVALID]}}),n},o.updateUserDataFormatV2Label=function(t,e,n){var r,o;return(null===n[t]||void 0===n[t]||(null===(r=n[t])||void 0===r?void 0:r.includes(aa.UNKNOWN_INVALID)))&&(n[t]=[]),null===(o=n[t])||void 0===o||o.push(e),n},o.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},o.handlePIIDiagnostics=function(t){},o.handleEmail=function(t){return t.toLowerCase()},o.handlePhoneNumber=function(t,e){return void 0===e&&(e=this.parsePhoneNumberFromString),rl(t,"",e)},o.handleCheckHashedEmailValue=function(t,e,n){return(void 0===n&&(n=this.checkEmailFormat),e.email=e.email||[],rn.isHash(t))?(null==e||e.email.push(ai.HASHED_CORRECT),t):n(t)?(null==e||e.email.push(ai.PLAINTEXT_EMAIL),this.sha256(this.handleEmail(String(t)))):(null==e||e.email.push(ai.HASHED_ERR),this.sha256(t))},o.handleCheckHashedPhoneValue=function(t,e,n){return(void 0===n&&(n=this.parsePhoneNumberFromString),e.phone_number=e.phone_number||[],rn.isHash(t))?(null==e||e.phone_number.push(ai.HASHED_CORRECT),t):n(t)?(e.phone_number.push(ai.PLAINTEXT_PHONE),this.sha256(this.handlePhoneNumber(String(t),n))):(null==e||e.phone_number.push(ai.HASHED_ERR),this.sha256(t))},o.handlePixelValidation=function(t,e,n){n[e]=[],rp.includes(t)&&n[e].push(aa.FILTER_EVENTS),t&&rn.isHash(t)&&n[e].push(aa.HASHED),t&&this.checkEmailFormat(t)&&n[e].push(aa.PLAIN_EMAIL),t&&this.checkMDNEmailFormat(t)&&n[e].push(aa.PLAIN_MDN_EMAIL),t&&this.parsePhoneNumberFromString(t)&&n[e].push(aa.PLAIN_PHONE),t&&0===n[e].length&&n[e].push(aa.UNKNOWN_INVALID)},o.isZipFromUs=function(t){var e;return(null===(e=t.country)||void 0===e?void 0:e.toLowerCase())==="us"},o.truncateString=function(t,e){var n=Array.from(t);return n.length<=e?t:n.slice(0,e).join("")},o.handlePhoneNumberFormat=function(t,e,n){var r=this.handleCheckPhoneNumber(String(t),this.parsePhoneNumberFromString);n[e]=r},o.handleCheckPhoneNumber=function(t,e){void 0===e&&(e=this.parsePhoneNumberFromString);var n=[];return t?rn.isHash(t)?(n.push(ai.HASHED),n):e(t)?(n.push(ai.CORRECT_FORMAT),n):(n.push(ai.WRONG_FORMAT),n):(n.push(ai.EMPTY_VALUE),n)},o.handleCheckEmail=function(t,e){void 0===e&&(e=this.checkEmailFormat);var n=[];return t?rn.isHash(t)?(n.push(ai.HASHED),n):e(t)?(n.push(ai.CORRECT_FORMAT),n):(n.push(ai.WRONG_FORMAT),n):(n.push(ai.EMPTY_VALUE),n)},o.handleEmailFormat=function(t,e,n){var r=this.handleCheckEmail(String(t),this.checkEmailFormat);!(n&&n[e]&&(n[e]||[]).includes(ai.HASHED))&&(n[e]=r)},o.handleNewPiisFormat=function(t,e,n){t&&(n[e]=[ai.CORRECT_FORMAT])},e}(n9);function rv(){rv=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(e,n,r,i){var a=Object._ttq_create((n&&n.prototype instanceof _?n:_).prototype);return o(a,"_invoke",{value:function(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=l(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(c,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=l(e,n,r);if("normal"===u.type){if(o=r.done?d:"suspendedYield",u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=d,r.method="throw",r.arg=u.arg)}}}(e,r,new N(i||[]))}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",h="executing",d="completed",v={};function _(){}function g(){}function y(){}var m={};u(m,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(R([])));E&&E!==n&&r.call(E,a)&&(m=E);var b=y.prototype=_.prototype=Object._ttq_create(m);function O(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function I(t,e){var n;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(n,a){!function n(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&&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){u.value=t,a(u)},function(t){return n("throw",t,a,c)})}c(s.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function T(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},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;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function r_(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function rg(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){r_(i,r,o,a,c,"next",t)}function c(t){r_(i,r,o,a,c,"throw",t)}a(void 0)})}}function ry(t,e){return(ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rm=function(t,e){return function(n,r){e(n,r,t)}},rw=function(t){function e(e,n){var r;return(r=t.call(this,{name:"Identify",reporters:n,context:e})||this).init(),r}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,ry(n,r);var n,r,o,i,a=e.prototype;return a.init=function(){var t=this;return this.pluginPromise?this.pluginPromise:(x(an.IDENTIFY_INIT_START),this.pluginPromise=eQ(tL()?"/static/identify.js":"https://analytics.tiktok.com/i18n/pixel/static/identify_965479e7.js").then(function(){t.detectTopics(),x(an.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)},a.handleUserProperties=(o=rg(rv().mark(function t(e,n){return rv().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)})),function(t,e){return o.apply(this,arguments)}),a.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,s=void 0===c?[]:c;if(n.includes(aa.UNKNOWN_INVALID)||o.includes(aa.UNKNOWN_INVALID)){k(am.INVALID_EMAIL_FORMAT);return}if(a.includes(aa.UNKNOWN_INVALID)||s.includes(aa.UNKNOWN_INVALID)){k(am.INVALID_PHONE_NUMBER_FORMAT);return}if(n.includes(aa.FILTER_EVENTS)||o.includes(aa.FILTER_EVENTS)){k(am.INVALID_EMAIL_INFORMATION);return}if(a.includes(aa.FILTER_EVENTS)||s.includes(aa.FILTER_EVENTS)){k(am.INVALID_PHONE_NUMBER_INFORMATION);return}}catch(t){}},a.detectTopics=(i=rg(rv().mark(function t(){var e,n;return rv().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)&&x(an.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]])})),function(){return i.apply(this,arguments)}),e}(rd);rw=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}([eg(),rm(0,ey(t4.CONTEXT)),rm(1,ey(t4.TTQ_REPORTERS))],rw);function rE(t,e){return(rE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rb=function(t,e){return function(n,r){e(n,r,t)}},rO=function(t){function e(e,n,r,o){var i;return(i=t.call(this,{name:"WebFL",reporters:n,context:e})||this).reportService=r,i.ttqOptions=o,i.useExchangeRate=o.usd_exchange_rate,i}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,rE(n,r);var n,r,o=e.prototype;return o.pixelSend=function(t,e,n){var r,o;(null===(o=null===(r=this.ttqOptions)||void 0===r?void 0:r.plugins)||void 0===o?void 0:o.WebFL)&&n&&this.reportFlConv(n)},o.reportFlConv=function(t){if(!!t&&"Pageview"!==t.event){var e,n,r,o,i,a=t.context,c=t.properties,s=void 0===c?{}:c,u=void 0!==a.ad.log_extra?a.ad.log_extra:"{}";try{i=JSON.parse(u)}catch(t){i={}}var f={req_id:i.req_id||"",cid:a.ad.creative_id||"",value:s.value||"",currency:s.currency||"",raw:Object.assign({},s)},l=s.value,p=s.currency,h=this.useExchangeRate||null;var d=(e=l,n=p,r=h,isNaN(e)||e<0||null===r||!r[n]?"":(e/r[n]*1e5).toFixed(0)),v=a.pixel?a.pixel.code:"";d&&(f.usd_value=d,x(an.CUSTOM_INFO,{pixelCode:v,custom_name:"odfl_rate_exchange",extJSON:{message_id:t.message_id,cid:f.cid,event:t.event,value:l,currency:p,usdValue:d}}));var _={business:"devicefl_join_label",entrance:"app_to_web_conversion",inputParams:{message_id:t.message_id,event:t.event,event_props:f,event_source_id:null===(o=a.pixel)||void 0===o?void 0:o.code,event_source_type:"web"}};this.reportService&&this.reportService.reportFL&&(this.reportService.reportFL(_),x(an.CUSTOM_INFO,{pixelCode:v,custom_name:"fl_jsb_report",extJSON:{message_id:t.message_id,cid:f.cid,event:t.event}}))}},e}(n9);rO=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}([eg(),rb(0,ey(t4.CONTEXT)),rb(1,ey(t4.TTQ_REPORTERS)),rb(2,ey(t4.REPORT_SERVICE)),rb(3,ey(t4.TTQ_GLOBAL_OPTIONS))],rO),(iz=aR||(aR={})).ERROR_FORMAT="error_format",iz.OVER_LENGTH="over_length_3e4",iz.FILTER_SENSITIVE_FIELDS="filter_sensitive_fields";var rI="form_detail_error";(iZ=aP||(aP={})).GET_ELEMENTS_ERROR="get_elements_error",iZ.INIT_ERROR="init_error",iZ.ASSEMBLE_FORM_DETAIL_ERROR="assemble_form_detail_error",iZ.DETECT_FORM_ELEMENT_ERROR="detect_form_element_error",iZ.GET_OVERALL_FORM_DETAIL_ERROR="get_overall_form_detail_error",iZ.FORM_OBSERVER_ERROR="form_observer_error",iZ.OVER_LENGTH="over_length_3e4",(i$=aA||(aA={})).METADATA="Metadata",i$.CLICK="Click",(i0=aL||(aL={})).AUTO_COLLECTION="AUTO_COLLECTION",i0.AUTO_FORM="AUTO_FORM",i0.AUTO_CLICK="AUTO_CLICK",i0.AUTO_VC="AUTO_VC",i0.AUTO_VC_REVERSE="AUTO_VC_REVERSE",(i1=ax||(ax={})).AUTO_FORM="form_rules",i1.AUTO_VC="vc_rules",i1.AUTO_VC_REVERSE="vc_rules_reverse",(i2=aC||(aC={})).PAGE_LEAVE="PageLeave",i2.PAGE_VIEW="PageView",i2.DOM_CHANGE="DomChange",i2.URL_CHANGE="UrlChange",i2.CLICK="Click",i2.SCROLL="Scroll";var rT=["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 rS(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)||rT.some(function(e){return t.toLowerCase().indexOf(e.toLowerCase())>-1})}var rN=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 rR(t){return rN(t)}function rP(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]=rq(t[r],e));return n}function rG(t){return Array.isArray(t)?t.some(function(t){return rG(t)}):"string"==typeof t&&(t=t.toLowerCase().replace(/https?:\/\/schema\.org\//,""),rT.some(function(e){return t===e.toLowerCase()}))}var rH=["form","[id*=form], [class*=form]"],rV=["label"],rB=["input,select,textarea"],rK=["radio","checkbox"],rW=["hidden","reset","submit","password"];function rY(t,e){try{for(var n=0;n0)return Array.from(r)}return[]}catch(t){return C(an.CUSTOM_ERROR,t,{custom_name:rI,custom_enum:aP.GET_ELEMENTS_ERROR}),[]}}(i3=ak||(ak={}))[i3.CONTAIN=0]="CONTAIN",i3[i3.ID=1]="ID",i3[i3.SELECTOR=2]="SELECTOR";function rJ(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 rX(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 rQ(t){var e=t.getAttribute("type");return!!e&&rW.indexOf(e)>-1}function rz(t){return t&&rS(t)?"__Text__":t}var rZ=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[ax.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){C(an.CUSTOM_ERROR,t,{custom_name:rI,custom_enum:aP.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){C(an.CUSTOM_ERROR,t,{custom_name:rI,custom_enum:aP.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=tf(function(){var r,o,i=n.assembleFormDetail(t);if(!t.formDetail||i&&(r=i,o=t.formDetail,Object.keys(function t(e,n){var r={};for(var o in e)if(e.hasOwnProperty(o)&&!n.hasOwnProperty(o))r[o]=e[o];else if(e.hasOwnProperty(o)&&n.hasOwnProperty(o)&&e[o]!==n[o]){if("object"==typeof e[o]&&"object"==typeof n[o]){var i=t(e[o],n[o]);Object.keys(i).length>0&&(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}(r,o)).length>0))t.formDetail=i,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){C(an.CUSTOM_ERROR,t,{custom_name:rI,custom_enum:aP.FORM_OBSERVER_ERROR})}},e.detectFormElement=function(){try{var t,e,n=[0,0,0];var r=(t=this.rules,(e=rY(t||rH,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,rY(rV,e)),i=new Set([]);o.forEach(function(e){var r=function(t,e){var n,r=rY(rB,t);if(r&&r.length)return{els:r,from:ak.CONTAIN};var o=t.getAttribute("for");if(o){;if(r=rY(["input[id='"+(n=o)+"'],select[id='"+n+"'],textarea[id='"+n+"']"],e))return{els:r,from:ak.ID}}return!1}(e,t.el);if(r){var o=r.els,a=r.from,c=o.filter(function(t){return!rQ(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,rY(rB,r)).filter(function(t){return!rQ(t)}).forEach(function(e){if(!i.has(e)){n[ak.SELECTOR]=1;var r,o,a=(r=e,o=t.el,function t(e){return null==e||e.isSameNode(o)?o:rJ(e).length>0?e:t(e.parentNode)}(r.parentNode));t.questions.push({el:a,answers:[{el:e,from:ak.SELECTOR}]})}})}),x(an.CUSTOM_INFO,{custom_name:"form_detail_answer_from",custom_enum:n.join("")}),o}catch(t){return C(an.CUSTOM_ERROR,t,{custom_name:rI,custom_enum:aP.DETECT_FORM_ELEMENT_ERROR}),[]}},e.calculateQuestionFilledTime=function(t){var e=t.el,n=t.answers,r=rN(e),o=n.reduce(function(t,e){var n=e.el,r=n.getAttribute("type");return r&&rK.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;if(this.answerMap[r].value=o,a===o){delete this.answerMap[r].filledTime;return}return c||(this.answerMap[r].filledTime=+new Date)},e.assembleFormDetail=function(t){var e=this,n=t.el,r=t.questions;try{var o,i={xpath:(o=n,rN(o)),id:n.id,name:rz(n.getAttribute("name")),tag:n.tagName.toLowerCase(),class_name:n.className,questions:[],width:n.offsetWidth,height:n.offsetHeight,is_visible:rX(n)};return i.questions=r.map(function(t){var n,r=t.el,o=t.answers;var i={xpath:(n=r,rN(n)),id:r.id,name:rz(rJ(r)),tag:r.tagName.toLowerCase(),class_name:r.className,filled_time:e.calculateQuestionFilledTime(t),answers:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:rX(r)};return o.forEach(function(t){var e,n=t.el,r=t.from;if(n&&"SELECT"===n.tagName.toUpperCase())i.answers=i.answers.concat(Array.from(n.querySelectorAll("option")).map(function(t){var e;return{xpath:(e=t,rN(e)),id:t.id,name:rz(t.value||t.innerText),tag:t.tagName.toLowerCase(),class_name:t.className,from:r,width:t.offsetWidth,height:t.offsetHeight,is_visible:rX(n)}}));else{;i.answers.push({xpath:(e=n,rN(e)),id:n.id,name:rz(n.getAttribute("name")),tag:n.tagName.toLowerCase(),class_name:n.className,input_type:n.getAttribute("type"),placeholder:rz(n.getAttribute("placeholder")),from:r,width:n.offsetWidth,height:n.offsetHeight,is_visible:rX(n)})}}),i}),i}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:rI,custom_enum:aP.ASSEMBLE_FORM_DETAIL_ERROR});return}},t}(),r$=["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()}),r0=["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 r1(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 r2(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r2(t,e):void 0}}(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 r2(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n:null}catch(t){return C(an.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_parameter_inference"}),null}},on=function(t,e){var n=null;for(var r in e)if(t.includes(r))return n=e[r];return null},or=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=n.length-3&&(i=!0),i&&(r=r.slice(0,o-(n.length-1))+"."+r.slice(o-(n.length-1))),r}return null}(r):null,textContent:r}},oo=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?void 0:e.textContent,r=((null==n?void 0:n.trim())?r0.includes(n.toUpperCase().trim()):null)?null==n?void 0:n.toUpperCase().trim():null;return{currencyCode:n,currencyCodeFromeXpath:r}},oi=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?void 0:e.textContent,r=((null==n?void 0:n.trim())?r$.includes(n.toUpperCase().trim()):null)?null==n?void 0:n.toUpperCase().trim():null;return{countryCode:n,countryCodeFromXpath:r}},oa=function(t){try{var e=new URL(t).hostname.split(".");for(var n in e)if(r$.includes(e[n].toUpperCase()))return e[n].toUpperCase()}catch(t){}return null},oc=function(t,e,n){try{if(t)for(var r,o=r1(t);!(r=o()).done;){var i=r.value;if(i.valueXpath&&i.currency&&i.currency.val){var a=i.currency.val,c=or(i.valueXpath,i.currency.val),s=c.textContent,u=c.priceNumberString;if(u&&s){var f=oo(i.currency.xpath),l=f.currencyCode,p=f.currencyCodeFromeXpath;l&&x(an.CUSTOM_INFO,{custom_name:"auto_value_currency_currency_code_form_xpath",extJSON:{url:e,currencyCode:l,vcConfig:n}});var h=oi(i.countryCodeXpath),d=h.countryCode,v=h.countryCodeFromXpath;d&&x(an.CUSTOM_INFO,{custom_name:"auto_value_currency_country_form_xpath",extJSON:{url:e,country:d,vcConfig:n}});var _={value:u,currency:p||a,ori_value:s,rule_key:i.rule_key,country_code:v};if(!v){var g=oa(e);_.country_code=g}return x(an.CUSTOM_INFO,{custom_name:"auto_value_currency_update_info",extJSON:{url:e,autoProperties:_,vcConfig:n}}),os(ol,_),_}}}return null}catch(t){return C(an.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"updateAutoVCData"}),null}},os=function(t,e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch(t){}},ou=function(t){try{var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return null}},of=function(t){try{sessionStorage.removeItem(t)}catch(t){}},ol="value_currency_rule",op="parameter_inference_rule",oh=[aC.CLICK,aC.SCROLL],od=function(){function t(t){var e=this;this.handlerArray=t,oh.forEach(function(t){window.addEventListener(t.toLowerCase(),tf(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}(),ov=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}(),o_=function(){function t(t,e,n){this.context=t,this.reportHistory=new ov,this.reporters=e,this.reportService=n}var e=t.prototype;return e.report=function(t,e,n){var r=this,o=e3(aE.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,aO.defaultReport,aI.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!!rA(e)&&rL(e,t)}).filter(function(e){var o=e.getReporterId();return!([aL.AUTO_COLLECTION,aL.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=eV(document.cookie),r=t.filter(function(t){var e;return!!(null===(e=null==t?void 0:t.reporterInfo)||void 0===e?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(eK(t.getCookieBasedSession(),o,r))}),e},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=this.getCookieBasedSessions(n),c=n[0],s=c.assemblyData(c.getReporterId(),"",{},{},aE.AUTO_CONFIG);return delete s.event,s.action=t,s.auto_collected_properties=e,!s.context.pixel&&(s.context.pixel={}),s.context.pixel.code=o[0],s.context.pixel.codes=o.join("|"),s.context.index=null===(r=i.pageIndex)||void 0===r?void 0:r.index,s.context.session_id=i.sessionId,s.context.pageview_id=Y(this.context.getPageViewId(),c.reporterInfo.loadId,"::"),s.context.sessions=a,s.message_id=s.message_id.replace(/-[^-]*$/,""),s}},t}();function og(t,e){return(og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var oy=function(t,e){return function(n,r){e(n,r,t)}},om="AutoConfig",ow=function(t){function e(e,n,r,o){var i;return(i=t.call(this,{name:om,reporters:n,context:e})||this).autoCollectedMetadata={},i.initialize=!1,i.autoFormUpdateHandler=tf(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){C(an.CUSTOM_ERROR,{message:""+String(i.autoCollectedFormDetail.length)},{custom_name:rI,custom_enum:aP.OVER_LENGTH});return}i.actTracker.report(aA.METADATA,aL.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,i),i.autoCollectionUpdateHandler=tf(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(!rj.getMetaData)return"[]";for(var t=document.querySelectorAll("[itemscope]"),e=[],n=rF(),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?rU(e):""}(f);if(null!=p){var h=c[l];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,l)?Array.isArray(h)?c[l].push(p):c[l]=[h,p]:c[l]=p}}}}e.unshift({schema:{dimensions:{h:i.clientHeight,w:i.clientWidth},properties:rG(a)?{}:c,subscopes:[],type:a},scope:i})}}for(var d=[],v=[],_=0;_=0;w--){if(d[w].scope.contains(y)){d[w].schema.subscopes.push(m);break}d.pop()}0===d.length&&v.push(m),d.push({schema:m,scope:y})}var E=JSON.stringify(v);return E.length>3e4&&(E="[]",rj.getMicroData=!1),E}()}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"microdata"})}try{var n=function(){if(!rj.getJSONLD)return{data:"[]",errors:[]};for(var t=[],e=[],n=document.querySelectorAll('script[type="application/ld+json"]'),r=0,o=0;o3e4)return rj.getJSONLD=!1,{data:JSON.stringify([]),errors:[{name:aR.OVER_LENGTH,message:""+String(r)}]};var a=void 0;try{a=JSON.parse(i.replace(/[\n\r\t]+/g," "))}catch(t){e.push({name:aR.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){if("@type"!==o&&"@context"!==o)"object"==typeof n[o]?n[o]=t(n[o]):r&&rG(r)&&delete n[o]}return n}(a)}catch(t){return{data:JSON.stringify([]),errors:[{name:aR.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;C(an.CUSTOM_ERROR,{message:n},{custom_name:"parse_json_ld_failed",custom_enum:e})})}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"json_ld"})}try{e.open_graph=function(t){if(!rj.getOpenGraph)return"{}";for(var e=rF(["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}([eg(),oy(0,ey(t4.CONTEXT)),oy(1,ey(t4.TTQ_REPORTERS)),oy(2,ey(t4.TTQ_GLOBAL_OPTIONS)),oy(3,ey(t4.REPORT_SERVICE))],ow);var oE=n("5278"),ob=n.n(oE),oO={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:""}},oI=/^[a-zA-Z\d]([a-zA-Z_\-\d ]{0,}[a-zA-Z_\-\d])?$/,oT=["product","product_group","destination","hotel","flight","vehicle"],oS=["email_is_hashed","phone_is_hashed","sha256_email","sha256_phone"],oN=["CompletePayment","InitiateCheckout","AddToCart","PlaceAnOrder","ViewContent","AddToWishlist"],oR=function(t){return void 0===t},oP=function(t,e){if(!!am[t]){var n=m(),r=oO[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)}};(i6=aD||(aD={}))[i6.Live=0]="Live",i6[i6.NoRecord=1]="NoRecord";var oA="CompletePayment",oL=function(t){var e=t.event,n=void 0===e?"":e;return!!(["null","undefined"].includes(n)||/^\s*$/.test(n))||!n},ox=function(t){var e=t.event;return!!oL(t)||oI.test(void 0===e?"":e)},oC=function(t){var e=t.event;return(void 0===e?"":e).length<=50},ok=function(t){var e=t.event,n=t._inspection;if(e===oA){var r=(void 0===n?{}:n).identity_params,o=void 0===r?{}:r;return 0===Object.keys(o).length||oS.every(function(t){return(o[t]||[]).includes(aa.EMPTY_VALUE)})}return!1},oD=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.email_is_hashed||[]).includes(aa.FILTER_EVENTS)||(n.identity_params.sha256_email||[]).includes(aa.FILTER_EVENTS))},oM=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.email_is_hashed||[]).includes(aa.UNKNOWN_INVALID)||(n.identity_params.sha256_email||[]).includes(aa.UNKNOWN_INVALID))},oj=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.phone_is_hashed||[]).includes(aa.FILTER_EVENTS)||(n.identity_params.sha256_phone||[]).includes(aa.FILTER_EVENTS))},oU=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.phone_is_hashed||[]).includes(aa.UNKNOWN_INVALID)||(n.identity_params.sha256_phone||[]).includes(aa.UNKNOWN_INVALID))},oF=function(t){var e=t.event,n=t.properties,r=void 0===n?{}:n;if(oN.includes(void 0===e?"":e)){if(oR(r.contents)&&oR(r.content_id))return!0;if(!oR(r.contents))return!Array.isArray(r.contents)||!!(r.contents.length<1)||!r.contents.every(function(t){return t&&!oR(t.content_id)})}return!1},oq=function(t){var e=t.properties,n=void 0===e?{}:e,r=n.content_id,o=n.contents;return!(!oR(r)&&/^\s*$/.test(r))&&(!(!oR(o)&&Array.isArray(o))||o.every(function(t){return t&&!oR(t.content_id)&&!/^\s*$/.test(t.content_id)}))},oG=function(t){var e=t.properties.content_type;return!e||oT.includes(e)},oH=function(t){var e=t.properties.value;if(e)return!!("number"==typeof e||"string"==typeof e&&(/^\d+(\.\d+)?$/.test(e)||/^\d+$/.test(e)))||!1;return!0},oV=function(t){var e=t.event,n=t.properties,r=void 0===n?{}:n;return!!((void 0===e?"":e)===oA&&oR(r.value)||!oR(r.currency)&&oR(r.value))||!1},oB=function(t){var e=t.properties.currency;return!e||e1.includes(e)},oK=function(t){var e=t.event,n=t.properties,r=void 0===n?{}:n;return!!((void 0===e?"":e)===oA&&oR(r.currency)||!oR(r.value)&&oR(r.currency))||!1};function oW(t,e){return(oW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var oY=function(t,e){return function(n,r){e(n,r,t)}},oJ=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?void 0:i.DiagnosticsConsole),o}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,oW(n,r);var n,r,o=e.prototype;return o.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?void 0:e.diagnostics)&&!(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.diagnostics)});return!0}catch(t){return!1}},o.warn=function(t,e){try{if(this.isDisableDiagnosticsConsole())return;oP(t,e)}catch(e){C(an.CUSTOM_ERROR,e,{custom_name:"diagnostics_console",custom_enum:t})}},o.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){C(an.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){}},o.pixelSend=function(t,e,n,r,o){void 0===r&&(r={});try{(!r||!r._i)&&o===aE.TRACK&&e!==e$&&this.handleEventPayloadValidate(ob()(n||{}))}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"track"})}},o.handlePixelInfoValidate=function(t){if(t.status!==aD.Live){this.warn(am.INVALID_PIXEL_CODE);return}},o.handleEventPayloadValidate=function(t){!t.properties&&(t.properties={}),oL(t)&&this.warn(am.EMPTY_EVENT_TYPE_NAME),!ox(t)&&this.warn(am.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT),!oC(t)&&this.warn(am.LONG_EVENT_TYPE_NAME),ok(t)&&this.warn(am.MISSING_EMAIL_AND_PHONE),oD(t)&&this.warn(am.INVALID_EMAIL_INFORMATION),oM(t)&&this.warn(am.INVALID_EMAIL_FORMAT),oj(t)&&this.warn(am.INVALID_PHONE_NUMBER_INFORMATION),oU(t)&&this.warn(am.INVALID_PHONE_NUMBER_FORMAT),oF(t)&&this.warn(am.MISSING_CONTENT_ID),!oq(t)&&this.warn(am.INVALID_CONTENT_ID),!oG(t)&&this.warn(am.INVALID_CONTENT_TYPE),!oH(t)&&this.warn(am.INVALID_EVENT_PARAMETER_VALUE),oV(t)&&this.warn(am.MISSING_VALUE_PARAMETER),!oB(t)&&this.warn(am.INVALID_CURRENCY_CODE),oK(t)&&this.warn(am.MISSING_CURRENCY_PARAMETER,{learn_more:""})},e}(n9);oJ=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}([eg(),oY(0,ey(t4.CONTEXT)),oY(1,ey(t4.TTQ_REPORTERS)),oY(2,ey(t4.TTQ_GLOBAL_OPTIONS))],oJ);function oX(t,e){return(oX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var oQ=function(t,e){return function(n,r){e(n,r,t)}},oz=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}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,oX(n,r);var n,r,o=e.prototype;return o.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},o.disablePangleCookie=function(){this.isPixelPangleCookieMatching()&&eQ("https://analytics.pangle-ads.com/api/v2/pangle_disable_cookie")},o.pixelSend=function(t,e,n,r,o){void 0===r&&(r={});try{var i,a=this.context.getPageSign();if((null===(i=a.pageIndex)||void 0===i?void 0:i.index)===0&&!tT(this.env)&&n&&n.message_id&&this.isPixelPangleCookieMatching(t)&&!this.hasReport){var c=n.event,s=n.message_id,u=n.context.library,f={event:c,message_id:s,context:{library:u},timestamp:new Date().toJSON()};this.hasReport=!0,this.reportService.report("https://analytics.pangle-ads.com/api/v2/pangle_pixel",f,aO.httpReport)}}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"pangle_report"})}},e}(n9);oz=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}([eg(),oQ(0,ey(t4.CONTEXT)),oQ(1,ey(t4.TTQ_REPORTERS)),oQ(2,ey(t4.REPORT_SERVICE)),oQ(3,ey(t4.ENV))],oz);var oZ="https://analytics.tiktok.com/i18n/pixel/eb.js",o$="_tt_event_builder";(i5=aM||(aM={})).EVENT_BUILD_BOOTSTRAP_ACK="event_builder_bootstrap_ack",i5.EVENT_BUILD_WRONG_CODE="event_builder_wrong_code",i5.EVENT_BUILD_BOOTSTRAP="event_builder_bootstrap";function o0(t,e){return(o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var o1=function(t,e){return function(n,r){e(n,r,t)}},o2=function(t){var e,n;function r(e,n){var r;return(r=t.call(this,{name:"EventBuilder",reporters:n,context:e})||this).pluginMounted=!1,r}return e=r,n=t,e.prototype=Object._ttq_create(n.prototype),e.prototype.constructor=e,o0(e,n),r.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=E(),o=function(t){t.data.type===aM.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,eS(o$,t.data),eQ(oZ).then(function(){window.opener.window.postMessage({type:aM.EVENT_BUILD_BOOTSTRAP_ACK},"*")}).catch(function(t){C(an.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:aM.EVENT_BUILD_WRONG_CODE},"*")},5e3),r._event_builder_pickup_sdk_verify_flag=!0))};!r._event_builder_pickup_sdk_loaded&&(eI(o$)?eQ(oZ).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){}}},r}(n9);o2=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}([eg(),o1(0,ey(t4.CONTEXT)),o1(1,ey(t4.TTQ_REPORTERS))],o2);function o3(t,e){return(o3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var o6=function(t,e){return function(n,r){e(n,r,t)}},o5="tt_pixel_is_enrich_ipv6_triggered_by_enrich_am",o8=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}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,o3(n,r);var n,r,o=e.prototype;return o.isPixelEnrichIpv6=function(){var t=this.reporters;return!!t&&0!==t.length&&t.every(function(t){return t&&t.plugins&&!0===t.plugins.EnrichIpv6})},o.isEnrichIpv6V2SwitchOn=function(){var t="EnrichIpv6V2";try{var e=E()._plugins||{};if(null!=e[t])return!!e[t];return!1}catch(t){return!1}},o.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})},o.pixelSend=function(t,e,n,r,o){void 0===r&&(r={});try{if(o!==aE.TRACK)return;if(!("Shopify"===N(t)||this.isEnrichIpv6V2SwitchOn()))return;if(tT(this.env)||!(n&&n.message_id))return;var i,a=this.context.getPageSign();if((null===(i=a.pageIndex)||void 0===i?void 0:i.index)===0&&!this.hasReported&&this.isPixelEnrichIpv6()&&(this.hasReported=!0,this.reportService.report(eD,this.buildEnrichIpv6Data(n),aO.htmlHttpReport)),"true"===sessionStorage.getItem(o5))return;"EnrichAM"===e&&(this.shouldReportAfterEnrichAM=!0),this.shouldReportAfterEnrichAM&&this.isPixelEnrichIpv6()&&(this.shouldReportAfterEnrichAM=!1,sessionStorage.setItem(o5,"true"),this.reportService.report(eD,this.buildEnrichIpv6Data(n),aO.htmlHttpReport))}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"enrich_ipv6_report"})}},e}(n9);o8=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}([eg(),o6(0,ey(t4.CONTEXT)),o6(1,ey(t4.TTQ_REPORTERS)),o6(2,ey(t4.REPORT_SERVICE)),o6(3,ey(t4.ENV))],o8);(i8=aj||(aj={})).FIRST_CONTENTFUL_PAINT="fcp",i8.LARGEST_CONTENTFUL_PAINT="lcp",i8.FIRST_INPUT_DELAY="fid",i8.TIME_TO_FIRST_BYTE="ttfb",i8.PAGE_LEAVE="pl",i8.LOAD_FINISH="lf",i8.TIME_WINDOW_TRACKER="twt",i8.TIME_TO_INTERACTIVE="tti";function o4(t,e){return function(){for(var n=arguments.length,r=Array(n),o=0;o0){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(aj.LOAD_FINISH,e)}).catch(function(e){t(aj.LOAD_FINISH,-1)})};"complete"===window.document.readyState?e():window.addEventListener("load",e)},ii,ia,ic,is,iu,il,ip,ih,id,iv,i_,ig,iy,im,iw,iE,ib,iO,iI,iT,iS,iN,iR,iP,iA,iL,ix,iC,ik,iD,iM,ij,iU,iF,iq,iG,iH,iV,iB,iK,iW,iY,iJ,iX,iQ,iz,iZ,i$,i0,i1,i2,i3,i6,i5,i8,i4,i9,i7,at,ae,an,ar,ao,ai,aa,ac,as,au,af,al,ap,ah,ad,av,a_,ag,ay,am,aw,aE,ab,aO,aI,aT,aS,aN,aR,aP,aA,aL,ax,aC,ak,aD,aM,aj,aU,aF,aq,aG,aH=-1,aV=function(t){addEventListener("pageshow",function(e){e.persisted&&(aH=e.timeStamp,t(e))},!0)},aB=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},aK=function(){var t=aB();return t&&t.activationStart||0},aW=function(t,e){var n=aB(),r="navigate";return aH>=0?r="back-forward-cache":n&&(document.prerendering||aK()>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}},aY=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){}},aJ=function(t,e,n,r){var o,i;return function(a){var c,s;e.value>=0&&(a||r)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,e.rating=(c=e.value,c>(s=n)[1]?"poor":c>s[0]?"needs-improvement":"good"),t(e))}},aX=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},aQ=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},az=function(t){var e=!1;return function(n){e||(t(n),e=!0)}},aZ=-1,a$=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},a0=function(t){"hidden"===document.visibilityState&&aZ>-1&&(aZ="visibilitychange"===t.type?t.timeStamp:0,a2())},a1=function(){addEventListener("visibilitychange",a0,!0),addEventListener("prerenderingchange",a0,!0)},a2=function(){removeEventListener("visibilitychange",a0,!0),removeEventListener("prerenderingchange",a0,!0)},a3=function(){return aZ<0&&(aZ=a$(),a1(),aV(function(){setTimeout(function(){aZ=a$(),a1()},0)})),{get firstHiddenTime(){return aZ}}},a6=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},a5=[1800,3e3],a8=function(t,e){e=e||{},a6(function(){var n,r=a3(),o=aW("FCP"),i=aY("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=aY("layout-shift",a);c&&(n=aJ(t,r,a4,e.reportAllChanges),aQ(function(){a(c.takeRecords()),n(!0)}),aV(function(){o=0,n=aJ(t,r=aW("CLS",0),a4,e.reportAllChanges),aX(function(){return n()})}),setTimeout(n,0))}))},a7={passive:!0,capture:!0},ct=new Date,ce=function(t,e){aU||(aU=e,aF=t,aq=new Date,co(removeEventListener),cn())},cn=function(){if(aF>=0&&aF1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=a,n=t,r=function(){ce(e,n),i()},o=function(){i()},i=function(){removeEventListener("pointerup",r,a7),removeEventListener("pointercancel",o,a7)},addEventListener("pointerup",r,a7),addEventListener("pointercancel",o,a7)):ce(a,t)}},co=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,cr,a7)})},ci=[100,300],ca=function(t,e){e=e||{},a6(function(){var n,r=a3(),o=aW("FID"),i=function(t){t.startTimeperformance.now())return;n.value=Math.max(i-aK(),0),n.entries=[o],r(!0),aV(function(){(r=aJ(t,n=aW("TTFB",0),cf,e.reportAllChanges))(!0)})}})};function ch(t,e){return(ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cd=function(t,e){return function(n,r){e(n,r,t)}},cv=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}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,ch(n,r);var n,r,o=e.prototype;return o.init=function(){a9(this.clsHandler.bind(this),{reportAllChanges:!0}),cp(this.webVitalHandler.bind(this)),a8(this.webVitalHandler.bind(this)),cu(this.webVitalHandler.bind(this),{reportAllChanges:!0}),ca(this.webVitalHandler.bind(this)),ir(this.baseHandler.bind(this)),io(this.baseHandler.bind(this))},o.getResult=function(t){var e,n=Math.floor(performance&&performance.timing?Date.now()-performance.timing.navigationStart:-1),r={ttns:n,cls:o9(this.cls),idx:this.getSessionIndex(),pep:o9(this.getPep())},o=["cls","idx","pep"];o.unshift(t);var i={metrics_type:o.join("|"),cls:r.cls,idx:r.idx,pep:r.pep};return i[t]=n,{action_event:t,perf:r,page_perf:i}},o.resetAfterReport=function(){},o.clsHandler=function(t){this.cls=t.value||-1},o.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?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){}},o.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?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){}},o.getSessionIndex=function(){var t,e=null===(t=this.context.getPageSign().pageIndex)||void 0===t?void 0:t.main;return null==e?-1:e},o.getCurrScrollPosition=function(){return document.documentElement.scrollTop||document.body.scrollTop},o.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},o.getMaxHeight=function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)},o.getPep=function(){var t=this.getCurrScrollPosition(),e=this.getViewportHeight(),n=this.getMaxHeight();return(t+e)/n},e}(o7);cv=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}([cd(0,ey(t4.CONTEXT)),cd(1,ey(t4.TTQ_REPORTERS)),cd(2,ey(t4.REPORT_SERVICE))],cv);function c_(t,e){return(c_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cg=function(t,e){return function(n,r){e(n,r,t)}},cy=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}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,c_(n,r);var n,r,o=e.prototype;return o.init=function(){if(!!this.isPageDataEnabled()){var t=this.isHitNewVersion();this.interactionMonitor=new ie(this.context,this.reporters,this.reportService,t?e3(aE.PAGE_INTERACTION):e3(aE.AUTO_CONFIG)),this.performanceMonitor=new cv(this.context,this.reporters,this.reportService,t?e3(aE.PAGE_PERFORMANCE):e3(aE.AUTO_CONFIG)),this.monitors.push(this.performanceMonitor),this.monitors.push(this.interactionMonitor)}},o.isPageDataEnabled=function(){var t,e;return null===(e=null===(t=this.ttqOptions)||void 0===t?void 0:t.plugins)||void 0===e?void 0:e.PageData},o.isHitNewVersion=function(){var t,e;return null===(e=null===(t=this.ttqOptions)||void 0===t?void 0:t.plugins)||void 0===e?void 0:e.HitReservoir},o.report=function(t){var e=this.performanceMonitor,n=this.interactionMonitor,r=this.performanceMonitor.getResult(t),o=this.interactionMonitor.getResult(t),i=this.mergeReportData(t,o,r);e.report(i),n.report(i),this.interactionMonitor.resetAfterReport(),this.performanceMonitor.resetAfterReport()},o.mergeReportData=function(t,e,n){var r={action_event:t};return r.perf=n.perf,r.inter=e.inter,r.page_perf=n.page_perf,r.page_inter=e.page_inter,r},o.pageWillLeave=function(t){this.report(aj.PAGE_LEAVE)},o.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}(n9);cy=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}([eg(),cg(0,ey(t4.CONTEXT)),cg(1,ey(t4.TTQ_REPORTERS)),cg(2,ey(t4.REPORT_SERVICE)),cg(3,ey(t4.TTQ_GLOBAL_OPTIONS))],cy);var cm={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},cw={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:[cm.initAllModule,cm.webTtqFactory,cm.handleCache,cm.webReporterFactory,cm.initAutoForm,cm.freezeAPI,cm.handlePixelRules,cm.resetExpires,cm.mergeWebGlobalTtq,cm.auto_config_plugin_pixelDidMount,cm.callback_plugin_pixelDidMount,cm.console_plugin_pixelDidMount,cm.event_builder_plugin_pixelDidMount,cm.shopify_plugin_pixelDidMount,cm.page_plugin_pixelDidMount,cm.competitor_insight_plugin_init,cm.getPixelInstalledPosition,cm.getPixelScriptByPixelCode,cm.handleGlobalCache,cm.basettq_init_context_info,cm.initAutoForm_getOverallFormDetail,cm.web_track_handler,cm.identify_api_handler,cm.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:[]}},cE=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=cw[t])||void 0===e?void 0:e.id},e.getFunctionIdFromName=function(t){return cm[t]},t}();function cb(t,e){return(cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cO=function(t,e){return function(n,r){e(n,r,t)}},cI=function(t){var e,n;function r(e,n){var r;return(r=t.call(this,{name:"RuntimeMeasurement",reporters:n,context:e})||this).initialize=!1,r.init(),r}return e=r,n=t,e.prototype=Object._ttq_create(n.prototype),e.prototype.constructor=e,cb(e,n),r.prototype.init=function(){if(!this.initialize){this.performanceDataQueue=new cE;var t=E();t&&t._ppf&&(this.performanceDataQueue.handleCache(t._ppf),t._ppf=this.performanceDataQueue),this.initialize=!0}},r}(n9);cI=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}([eg(),cO(0,ey(t4.CONTEXT)),cO(1,ey(t4.TTQ_REPORTERS))],cI);var cT=[{identifier:t4.CALLBACK_PLUGIN,to:re,name:"Callback"},{identifier:t4.IDENTIFY_PLUGIN,to:rw,name:"Identify",required:!0},{identifier:t4.WEB_FL_PLUGIN,to:rO,name:"WebFL"},{identifier:t4.AUTO_CONFIG_PLUGIN,to:ow,name:"AutoConfig"},{identifier:t4.DIAGNOSTICS_CONSOLE_PLUGIN,to:oJ,name:"DiagnosticsConsole"},{identifier:t4.PANGLE_COOKIE_MATCHING_PLUGIN,to:oz,name:"PangleCookieMatching"},{identifier:t4.EVENT_BUILDER_PLUGIN,to:o2,name:"EventBuilder"},{identifier:t4.ENRICH_IPV6_PLUGIN,to:o8,name:"EnrichIpv6"},{identifier:t4.PAGEDATA_PLUGIN,to:cy,name:"PageData"},{identifier:t4.RUNTIME_MEASUREMENT_PLUGIN,to:cI,name:"RuntimeMeasurement"}],cS=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/,cN=function(t){return"function"==typeof Element?t instanceof Element:t&&"object"==typeof t&&t.nodeType===Node.ELEMENT_NODE&&"string"==typeof t.nodeName},cR=function(t,e){var n=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||null;return!!(null!==n&&n.call(t,e.join(",")))||t instanceof HTMLButtonElement&&!!e.includes("button[type='"+t.type+"']")},cP=function(t){if(!t||t===document.body)return!1;if(t.getBoundingClientRect&&"function"==typeof t.getBoundingClientRect){var e=t.getBoundingClientRect().height||t.offsetHeight||11;return e>10&&e<600}return!0},cA=function(t){return t.trim().toLowerCase()},cL=function(t,e){return!!t&&!!e&&t.indexOf(e)>=0},cx=function(t){return"string"==typeof t&&cS.test(t)},cC=function(t){if(!t)return null;for(var e=t.parentElement,n=t,r="";n;)(n=n.previousElementSibling)&&(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(r=n.value,n=null);if(!r||"string"!=typeof r||!e||0>(e.innerText||e.textContent||"").indexOf("@"))return null;var o=r+"@"+t.value;return cx(o)?o:null},ck=function(t,e){var n=t.id,r=t.name,o=t.placeholder,i=void 0===o?"":o,a=t.value,c=void 0===a?"":a;return e.filter(function(t){return t.length>2?cL(r,t)||cL(n,t)||cL(i,t)||cL(c,t):r===t||n===t||i===t||c===t})};function cD(t,e){return(cD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cM=function(t,e){return function(n,r){e(n,r,t)}},cj=function(t){function e(e,n,r){var o;return(o=t.call(this,{name:"AutoAdvancedMatching",reporters:n,context:e})||this).rateMS=1e3,o.lastTime=0,o.lastElement=null,o.matchHistory=[],o.config=r.aam||{in_form:!0,selectors:{},exclude_selectors:[],phone_regex:"",phone_selectors:[],restricted_keywords:[]},o.phoneRegex=o.config.phone_regex?new RegExp(o.config.phone_regex):null,o.init(),o}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,cD(n,r);var n,r,o=e.prototype;return o.init=function(){var t=this;document.addEventListener("click",function(e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"auto_advanced_matching_handler",functionName:window.ttq._pf_tn&&"auto_advanced_matching_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_advanced_matching_handler")}}catch(t){}try{var r=E()||[],o=e&&e.target&&e.target instanceof Node&&cN(e.target)?e.target:null;if(!o||!t.throttle(o))return;var i=t.getWrappingButton(o);if(!i)return;var a=t.getFormByButton(i);if(t.config.in_form&&!a)return;var c=t.getUserDataByForm(a);if(0===Object.keys(c).length)return;null==r||r.identify(Object.assign(c||{},{auto_trigger_type:t.getTriggerType(i,!!a)})),t.matchHistory.push(Object.assign({},c))}catch(t){x(an.CUSTOM_ERROR,{pixelCode:D().pixelCode,custom_name:"advancedMatching"})}try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"auto_advanced_matching_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},{capture:!0,once:!1,passive:!0})},o.throttle=function(t){var e=!1;return(!this.lastElement||!this.lastTime||Date.now()-this.lastTime>=this.rateMS||this.lastElement!==t)&&(e=!0),this.lastElement=t,this.lastTime=Date.now(),e},o.getWrappingButton=function(t){if(!t||!cP(t)||(this.config.exclude_selectors||[]).length>0&&cR(t,this.config.exclude_selectors||[]))return null;if(cR(t,Object.keys(this.config.selectors||{})))return t;var e=t.parentNode;return e&&cN(e)?this.getWrappingButton(e):null},o.getFormByButton=function(t){if(t instanceof HTMLInputElement)return t.form;for(var e=t;"FORM"!==e.nodeName.toUpperCase();){var n=e.parentElement;if(!n)return null;e=n}return e},o.getUserDataByForm=function(t){for(var e={},n=t||document,r=n.querySelectorAll("input,textarea,select"),o=0;o0)return cx(r)&&x(an.CUSTOM_INFO,{custom_name:"aam_hit_restricted",custom_enum:a.join(",")}),null;if(cx(r))return{auto_email:cA(r)};var c=cC(t);if(c)return{auto_email:cA(c)};if("US"===((E()||[])._cc||"").toUpperCase()&&r.replace(/\D/g,"").length<10)return null;var s=!(this.config.phone_selectors.length>0)||"tel"===e||"tel"===n||ck(Object.assign(i,{placeholder:o}),this.config.phone_selectors).length>0,u=!this.phoneRegex||this.phoneRegex.test(r);return s&&u?{auto_phone_number:r}:null},o.getTriggerType=function(t,e){var n=this;try{var r=[];if(Object.keys(this.config.selectors).forEach(function(e){cR(t,[e])&&r.push(n.config.selectors[e])}),0===r.length)return"";return r.join(",")+"-"+(e?1:0)}catch(t){return""}},e}(n9);cj=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}([eg(),cM(0,ey(t4.CONTEXT)),cM(1,ey(t4.TTQ_REPORTERS)),cM(2,ey(t4.TTQ_GLOBAL_OPTIONS))],cj);var cU=function(t,e){var n,r;ii=e,ia=t;if(!ia.isBound(t4.AUTO_ADVANCED_MATCHING_PLUGIN)&&ia.bind(t4.AUTO_ADVANCED_MATCHING_PLUGIN).to(cj).inSingletonScope(),n=t4.AUTO_ADVANCED_MATCHING_PLUGIN,r="AutoAdvancedMatching",ii._mounted&&!ii.getPlugin(r)&&ia.isBound(n))ii.usePlugin(ia.get(t4.AUTO_ADVANCED_MATCHING_PLUGIN))};function cF(t,e){return(cF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cq=function(t){function e(e){var n;return(n=t.call(this,e)||this).observers=new Set([]),n}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,cF(n,r);var n,r,o=e.prototype;return o.addObserver=function(t){!this.observers.has(t)&&this.observers.add(t)},o.removeObserver=function(t){this.observers.delete(t)},o.notifyObservers=function(t,e){this.observers.forEach(function(n){return n.call(e,t)})},e}(n8),cG="HistoryObserver";(ic||(ic={})).DYNAMIC_WEB_PAGEVIEW="dynamic_web_pageview";var cH=["GoogleTagManagerClient","GoogleTagManagerServer"];function cV(t,e){var n=history[t];return function(){var t=Array.prototype.slice.call(arguments);n.apply(history,t),e()}}function cB(t){var e=t.options,n=t.plugins;return e&&!1!==e.historyObserver&&n&&n[cG]}function cK(t,e){var n,r=eb().url,o=t.context.getPageInfo().url;if(r!==o){var i=t.context.setPageInfo(r,o);i&&i.pageIndex&&t$(i.pageIndex),t.reporters.filter((n=ic.DYNAMIC_WEB_PAGEVIEW,function(t){var e=t.plugins;return!!(cB(t)&&e[cG]&&e[cG][n])})).forEach(function(t){setTimeout(function(){t.page(e)})})}}function cW(t,e){return(cW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cY=function(t,e){return function(n,r){e(n,r,t)}},cJ=function(t){function e(e,n){var r;return(r=t.call(this,{name:cG,reporters:n,context:e})||this).enableListenSPAHistoryChange=!1,r.listenSPAHistoryChange=tr(function(){var t,e=function(){r.enableListenSPAHistoryChange&&r.notifyObservers({tf:ay.HISTORY_CHANGE})};var n=(t=e,function(){setTimeout(t)});window.addEventListener("popstate",n),history.pushState=cV("pushState",e),history.replaceState=cV("replaceState",e)}),r.dynamicWebPageviewHandler=cK.bind(null,r),r}n=e,r=t,n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,cW(n,r);var n,r,o=e.prototype;return o.initListener=function(t){this.enableListenSPAHistoryChange=function(t){if(!t)return!1;var e=N(),n=t.getReporterPartner();return!(e&&!cH.includes(e)||n&&t.isPartnerReporter()&&!cH.includes(n))&&!0}(t),this.enableListenSPAHistoryChange&&this.listenSPAHistoryChange()},o.pixelSend=function(t,e){var n=this.reporters.find(function(e){return e.getReporterId()===t});if(!!n&&!!cB(n))e&&"pageview"===e.toLowerCase()&&this.addObserver(this.dynamicWebPageviewHandler),this.initListener(n)},o.pageUrlWillChange=function(){if(this.enableListenSPAHistoryChange){this.notifyObservers({tf:ay.HISTORY_CHANGE});return}this.notifyObservers({tf:ay.URL_CHANGE,event_experiment:"pageview"})},e}(cq);cJ=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}([eg(),cY(0,ey(t4.CONTEXT)),cY(1,ey(t4.TTQ_REPORTERS))],cJ);var cX=[{identifier:t4.HISTORY_OBSERVER,to:cJ,name:"HistoryObserver"}],cQ=E(),cz=(null==cQ?void 0:cQ._container)||new e_,cZ=(null==cQ?void 0:cQ._container)?aw.REBIND:aw.BIND;tO();var c$=cz[cZ](t4.ENV),c0=cz[cZ](tb.SignalType);cz[cZ](tb.ID),cz[cZ](tb.Type),cz[cZ](tb.Options),cz[cZ](tb.Plugins),cz[cZ](tb.Rules),cz[cZ](tb.Info);var c1=cz[cZ](tb.WebLibraryInfo),c2=cz[cZ](t4.TTQ_GLOBAL_OPTIONS);try{if(!cz.get(t4.TTQ_GLOBAL_OPTIONS))throw Error("")}catch(t){c2.toConstantValue({})}var c3=function(t,e){var n,r=tI();c1.toConstantValue({name:"pixel.js",version:"2.2.1",options:void 0}),c$.toConstantValue(e),c0.toConstantValue(r)},c6=function(t){!(null==t?void 0:t._container)&&(cz.bind(t4.TTQ).to(nv).inSingletonScope(),cz.bind(t4.CONTEXT).to(nm).inSingletonScope(),cz.bind(t4.REPORTER).to(na),cz.bind(t4.TTQ_REPORTERS).toConstantValue([]),cz.bind(t4.REPORT_SERVICE).to(nU).inSingletonScope(),cz.bind(t4.AD_SERVICE).to(nG).inSingletonScope(),cz.bind(t4.APP_SERVICE).to(nB).inSingletonScope(),cz.bind(t4.BRIDGE_SERVICE).to(nQ).inSingletonScope(),cz.bind(t4.HTTP_SERVICE).to(n$).inSingletonScope(),cz.bind(tb.IsOnsitePage).toConstantValue({value:!1}),cz.bind(t4.COOKIE_SERVICE).to(n2).inSingletonScope(),cz.bind(t4.CONSENT_SERVICE).to(n5).inSingletonScope()),t&&!t._container&&(t._container=cz)},c5=function(){cT.forEach(function(t){var e=t.to,n=t.name,r=t.required,o=t.identifier;(void 0!==r&&r||P(void 0===n?"":n))&&!cz.isBound(o)&&cz.bind(o).to(e).inSingletonScope()})},c8=function(){cX.forEach(function(t){var e=t.to,n=t.name,r=t.identifier;P(void 0===n?"":n)&&!cz.isBound(r)&&cz.bind(r).to(e).inSingletonScope()})},c4=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){}c3(t,n),es(e,t),c8(),c6(t),c5(),cU(e,t);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},c9=function(){try{var t=cz.get(t4.MONITOR_PLUGIN);if(t)return t;return null}catch(t){return null}};n("7028");var c7=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)})})},st=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;iNumber(n.opacity))&&!0},sP=function(t){var e=t;if("string"==typeof t)try{e=decodeURI(t)}catch(n){e=t}return e},sA=function(t,e){try{var n=new URL(t);return n.searchParams.delete(e),n.toString()}catch(e){return t}},sL='"pixelMethod":"standard"',sx=function(t,e){try{var n=t.split(sL),r="";if(e&&(r+=',"is_button":"true"'),r)return n[0]+sL+r+n[1];return t}catch(e){return t}},sC=function(t){try{var e=t.split(sL);return e[0]+sL+',"is_standard_mode":"1"'+e[1]}catch(e){return t}},sk=function(t,e){try{var n=t.split(sL);return n[0]+sL+(',"eb_version":"'+e)+'"'+n[1]}catch(e){return t}},sD=/[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g,sM=/((([a-z])(?=[A-Z]))|(([A-Z])(?=[A-Z][a-z])))/g,sj=/\s+/g,sU={TOKENIZE_TEXT:"rule_compute_tokenize_text_error",IMG_SRC:"rule_compute_img_src_error",ELEMENT_V2:"rule_compute_element_v2_xpath_error"},sF=function(t){var e;if(null===t)return null;return(null===(e=t.innerText)||void 0===e?void 0:e.length)>0?t.innerText.replace(sD," ").replace(sM,function(t){return t+" "}).replace(sj," ").toLowerCase().trim():null},sq=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?void 0:e[0])||void 0===n?void 0:n.getAttribute("src"))||null},sG=function(t,e){var n;return(null===(n=sF(t))||void 0===n?void 0:n.toLowerCase())===e||!1},sH=function(t,e){return sq(t)===e||!1},sV=function(t,e){var n;return(null===(n=null==t?void 0:t.matches)||void 0===n?!!void 0:!!n.call(t,e))||!1},sB=function(t,e,n,r){var o=!1,i=null,a=null;switch(e){case"TOKENIZE_TEXT":a=sG;break;case"IMG_SRC":a=sH;break;case"ELEMENT_V2":a=sV}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 sK=function(t,e,n,r){switch(e){case"EQUALS":if([il.TOKENIZE_TEXT,il.IMG_SRC,il.ELEMENT_V2].includes(r))try{return sB(t,r,n,!1)}catch(t){C(an.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:sU[r]});break}else 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(sb(t,n,!0))return!0;break;case"DOSE_NOT_MATCHES_CSS_SELECTOR":if(sb(t,n,!1))return!0}return!1};function sW(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.")}(a);!(c=s()).done;){var u=c.value;if(sY[u].indexOf(i)>-1){var f=void 0;switch(u){case"click":f=this.click(i,n);break;case"pageview":f=this.pageview(i);break;case"history_change":f=this.history_change(i,n,r);break;case"visibility":f=this.visibility(i,e.value,o)}return f}}},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=sA(location.href,sJ);break;case"PAGE_HOSTNAME":e=location.hostname;break;case"PAGE_PATH":e=location.pathname;break;case"REFERRER":e=sA(document.referrer,sJ);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}(),sQ=n("9515"),sz=n.n(sQ);function sZ(t,e){return(sZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var s$=function(t){var e,n;function r(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=r,n=t,e.prototype=Object._ttq_create(n.prototype),e.prototype.constructor=e,sZ(e,n),r.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)},r}(sz());(o=ip||(ip={}))[o.WRONG=-1]="WRONG",o[o.KEEP=0]="KEEP",o[o.ARRAY=-2]="ARRAY",o[o.TURNINTOINTEGER=1]="TURNINTOINTEGER",o[o.TURNINTODECIMAL=2]="TURNINTODECIMAL",(i=ih||(ih={}))[i.CLICK_EVENT=0]="CLICK_EVENT",i[i.DESTINATION_URL=1]="DESTINATION_URL";var s0=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=s1(null===(e=r.innerHTML)||void 0===e?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===ih.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===ih.DESTINATION_URL){var a=new URL(location.href);if(t.contents[0].content_id.startsWith("path")){var c=a.pathname.split("/"),s=t.contents[0].content_id.split("|")[1];n.content_id=c[s]}if(t.contents[0].content_id.startsWith("search")){var u=new URLSearchParams(a.search),f=t.contents[0].content_id.split("|")[1];n.content_id=u.get(f)}}}return n}catch(t){return C(an.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v1_error"}),n}},s1=function(t,e,n){var r="";if(-1===e||void 0===e){var o=s3(t)[0];r=void 0!==o?s2(o,n):""}else{var i=s3(t)[e];r=void 0!==i?s2(i,n):""}return r},s2=function(t,e){var n="";if((e===ip.KEEP||e===ip.WRONG)&&(n=t),e===ip.TURNINTOINTEGER&&(n=t.replace(/[,\.]/g,"")),e===ip.TURNINTODECIMAL){var r=t.split(/[,\.]/g),o="";r.forEach(function(t,e){e0&&(r.contents=[],s8(t.contents,r.contents,e)),r}catch(t){return C(an.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_error"}),r}},s9=function(t,e,n){try{var r=t.split(sL),o="";if(Object.keys(e).forEach(function(t){if(null!==e[t]||void 0!==e[t]){if("contents"===t){var n=e[t];o+=',"'+t+'":[',null==n||n.map(function(t,e){o+="{";var r=Object.keys(t);r.forEach(function(e,n){"content_id"===e&&t[e]&&(t[e]=encodeURIComponent(t[e])),o+='"'+e+'":"'+t[e]+'"'+(n===(null==r?void 0:r.length)-1?"":",")}),o+="}"+(e===(null==n?void 0:n.length)-1?"":",")}),o+="]"}else o+=',"'+t+'":"'+("value"!==t?encodeURIComponent(e[t]):e[t])+'"'}}),n&&(o+=',"dynamic_parameter_config":'+JSON.stringify(n)),o)return r[0]+sL+o+r[1];return t}catch(e){return C(an.CUSTOM_ERROR,e,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_transform_error"}),t}};function s7(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 ut(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(t,e):void 0}}(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 ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n-1){var e=un.dispatcher("visibility",t,null,null,n.document),c="_"+t.value;e&&sR(n,e)&&!r[c]&&(i.push(sT(e,"",t)),r[c]=!0)}else{var s=un.dispatcher("visibility",t),u=sK(s,t.operator,t.value,t.variable_type);!u&&(o=!1),a.push(Object.assign(t,{cur_value:s,result:u}))}}),i.length>0&&Promise.all(i).then(function(n){for(var r=!0,i,c=s7(n);!(i=c()).done;){var s=i.value;a.push(Object.assign(s.condition,{cur_value:s.curValue,result:s.result})),(!s.result||!o)&&(r=!1)}r&&sO(t.code),e("jelly.visibility",t.code_id,a)},function(){})})}};function ui(t,e){return(ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ua=function(t){var e,n;function r(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])return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r);self._jelly_sdks[e]=!0;var o,i=r.dispatch();o=0,r.trigger=new ur(i,n,e,function(t){r.emit("jelly_message",t)})}return r}return e=r,n=t,e.prototype=Object._ttq_create(n.prototype),e.prototype.constructor=e,ui(e,n),r.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},r}(sz());window.TiktokJelly=ua;var uc=w();try{!function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var t={taskName:window.ttq._pf_tn||"init",functionName:window.ttq._pf_tn&&"init",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="init")}}catch(t){}var e=D().pixelCode,n=E(),r=tO(),o=tI();if(c4(n,cz,r),P("Monitor")){var i=c9();null==i||i.info(an.BEFORE_INIT,{pixelCode:e,extJSON:{stack:ty(e)}}),t3.init()}if(!!n){n._mounted?(x(an.HANDLE_CACHE,{pixelCode:e}),ef(cz,n)):(id=eo(cz,r,o),window[uc]=ea(n,id),n.resetCookieExpires&&n.resetCookieExpires(),ef(cz,id),eu(id));var a=cz.get(tb.IsOnsitePage);a.value=o===ad.ONSITE||n.reporters.every(function(t){return t.isOnsite()}),cz.rebind(tb.IsOnsitePage).toConstantValue(a),!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:"handlePixelRules",start:performance.now()}}catch(t){}t.reporters.forEach(function(t){t.rules&&new ua(t.getReporterId(),t.rules)});try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}}(n);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){C(an.INIT_ERROR,t)}}()}();