PageSourceSearch

https://tracking-cdn.figpii.com/1888276374.js

js figpii.com collected 2026-09-24 09:45:52 UTC 165,376 bytes, 15 lines download raw bytes

1(()=>{var gh=Object.create;var Pu=Object.defineProperty;var mh=Object.getOwnPropertyDescriptor;var ph=Object.getOwnPropertyNames;var yh=Object.getPrototypeOf,vh=Object.prototype.hasOwnProperty;var Tu=(d,e)=>()=>(e||d((e={exports:{}}).exports,e),e.exports);var Eh=(d,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ph(e))!vh.call(d,n)&&n!==r&&Pu(d,n,{get:()=>e[n],enumerable:!(i=mh(e,n))||i.enumerable});return d};var Ih=(d,e,r)=>(r=d!=null?gh(yh(d)):{},Eh(e||!d||!d.__esModule?Pu(r,"default",{value:d,enumerable:!0}):r,d));var dc=(d,e,r)=>{if(!e.has(d))throw TypeError("Cannot "+r)};var t=(d,e,r)=>(dc(d,e,"read from private field"),r?r.call(d):e.get(d)),o=(d,e,r)=>{if(e.has(d))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(d):e.set(d,r)},m=(d,e,r,i)=>(dc(d,e,"write to private field"),i?i.call(d,r):e.set(d,r),r),fc=(d,e,r,i)=>({set _(n){m(d,e,n,r)},get _(){return t(d,e,i)}}),h=(d,e,r)=>(dc(d,e,"access private method"),r);var Au=Tu((xu,hc)=>{(function(d){if(typeof xu=="object"&&typeof hc!="undefined")hc.exports=d();else if(typeof define=="function"&&define.amd)define([],d);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.Bugsnag=d()}})(function(){var d,e,r,i=["navigation","request","process","log","user","state","error","manual"],n=function(s,a,u){for(var l=u,g=0,p=s.length;g<p;g++)l=a(l,s[g],g,s);return l},c=function(s,a){return n(s,function(u,l,g,p){return a(l,g,p)?u.concat(l):u},[])},f=function(s,a){return n(s,function(u,l,g,p){return u===!0||l===a},!1)},y=function(s){return Object.prototype.toString.call(s)==="[object Array]"},E=!{toString:null}.propertyIsEnumerable("toString"),S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],R=function(s){var a=[],u;for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&a.push(u);if(!E)return a;for(var l=0,g=S.length;l<g;l++)Object.prototype.hasOwnProperty.call(s,S[l])&&a.push(S[l]);return a},L=function(s,a){return s===void 0&&(s=1),a===void 0&&(a=1/0),function(u){return typeof u=="number"&&parseInt(""+u,10)===u&&u>=s&&u<=a}},w=function(s){return typeof s=="function"||y(s)&&c(s,function(a){return typeof a=="function"}).length===s.length},M=function(s){return typeof s=="string"&&!!s.length},x={},H=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};x.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:M},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(s){return s===void 0||M(s)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(s){return s===void 0||M(s)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(s){return s===!0||s===!1}},enabledErrorTypes:{defaultValue:function(){return H()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(s){if(typeof s!="object"||!s)return!1;var a=R(s),u=R(H());return!(c(a,function(l){return f(u,l)}).length<a.length||c(R(s),function(l){return typeof s[l]!="boolean"}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:w},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:w},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:w},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(s){return s&&typeof s=="object"&&M(s.notify)&&M(s.sessions)&&c(R(s),function(a){return!f(["notify","sessions"],a)}).length===0}},autoTrackSessions:{defaultValue:function(s){return!0},message:"should be true|false",validate:function(s){return s===!0||s===!1}},enabledReleaseStages:{defaultValue:function(){return null}
1,message:"should be an array of strings",validate:function(s){return s===null||y(s)&&c(s,function(a){return typeof a=="string"}).length===s.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(s){return typeof s=="string"&&s.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(s){return L(0,100)(s)}},enabledBreadcrumbTypes:{defaultValue:function(){return i},message:"should be null or a list of available breadcrumb types ("+i.join(",")+")",validate:function(s){return s===null||y(s)&&n(s,function(a,u){return a===!1?a:f(i,u)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(s){return s===void 0||typeof s=="string"}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(s){return s===null||s&&n(R(s),function(a,u){return a&&f(["id","email","name"],u)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(s){return typeof s=="object"&&s!==null}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(s){return!s||s&&n(["debug","info","warn","error"],function(a,u){return a&&typeof s[u]=="function"},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(s){return y(s)&&s.length===c(s,function(a){return typeof a=="string"||a&&typeof a.test=="function"}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(s){return y(s)&&s.length===c(s,function(a){return a&&typeof a=="object"&&typeof a.load=="function"}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(s){return y(s)&&s.length===c(s,function(a){return a&&typeof a=="object"&&typeof a.name=="string"}).length}}};var B=function(s){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])}return s},D=function(s,a){return n(s,function(u,l,g,p){return u.concat(a(l,g,p))},[])};function te(){return te=Object.assign?Object.assign.bind():function(s){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])}return s},te.apply(this,arguments)}var j=x.schema,V={releaseStage:B({},j.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:te({},j.appType,{defaultValue:function(){return"browser"}}),logger:B({},j.logger,{defaultValue:function(){return typeof console!="undefined"&&typeof console.debug=="function"?Y():void 0}})},Y=function(){var s={},a=console.log;return D(["debug","info","warn","error"],function(u){var l=console[u];s[u]=typeof l=="function"?l.bind(console,"[bugsnag]"):a.bind(console,"[bugsnag]")}),s},q=function(){function s(u,l,g,p){p===void 0&&(p=new Date),this.type=g,this.message=u,this.metadata=l,this.timestamp=p}var a=s.prototype;return a.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},s}(),ye=q,Te={};(function(s,a){"use strict";typeof d=="function"&&d.amd?d("stackframe",[],a):typeof Te=="object"?Te=a():s.StackFrame=a()})(this,function(){"use strict";function s(C){return!isNaN(parseFloat(C))&&isFinite(C)}function a(C){return C.charAt(0).toUpperCase()+C.substring(1)}function u(C){return function(){return this[C]}}var l=["isConstructor","isEval","isNative","isToplevel"],g=["columnNumber","lineNumber"],p=["fileName","functionName","source"],v=["args"],_=l.concat(g,p,v);function I(C){if(C instanceof Object)for(var N=0;N<_.length;N++)C.hasOwnProperty(_[N])&&C[_[N]]!==void 0&&this["set"+a(_[N])](C[_[N]])}I.prototype={getArgs:function(){return this.args},setArgs:function(C){if(Object.prototype.toString.call(C)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=C},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(C){if(C instanceof I)this.evalOrigin=C;else if(C instanceof Object)this.evalOrigin=new I(C);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var C=this.getFunctionName()||"{anonymous}",N="("+(this.getArgs()||[]).join(",")+")",ne=this.getFileName()?"@"+this.getFileName():"",ee=s(this.getLineNumber())?":"+this.getLineNumber():"",U=s(this.getColumnNumber())?":"+this.getColumnNumber():"";return C+N+ne+ee+U}};for(var O=0;O<l.length;O++)I.prototype["get"+a(l[O])]=u(l[O]),I.prototype["set"+a(l[O])]=function(C){return function(N){this[
1C]=!!N}}(l[O]);for(var P=0;P<g.length;P++)I.prototype["get"+a(g[P])]=u(g[P]),I.prototype["set"+a(g[P])]=function(C){return function(N){if(!s(N))throw new TypeError(C+" must be a Number");this[C]=Number(N)}}(g[P]);for(var F=0;F<p.length;F++)I.prototype["get"+a(p[F])]=u(p[F]),I.prototype["set"+a(p[F])]=function(C){return function(N){this[C]=String(N)}}(p[F]);return I});var _t={};(function(s,a){"use strict";typeof d=="function"&&d.amd?d("error-stack-parser",["stackframe"],a):typeof _t=="object"?_t=a(Te):s.ErrorStackParser=a(s.StackFrame)})(this,function(a){"use strict";var u=/(^|@)\S+\:\d+/,l=/^\s*at .*(\S+\:\d+|\(native\))/m,g=/^(eval@)?(\[native code\])?$/;return{parse:function(v){if(typeof v.stacktrace!="undefined"||typeof v["opera#sourceloc"]!="undefined")return this.parseOpera(v);if(v.stack&&v.stack.match(l))return this.parseV8OrIE(v);if(v.stack)return this.parseFFOrSafari(v);throw new Error("Cannot parse given Error object")},extractLocation:function(v){if(v.indexOf(":")===-1)return[v];var _=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/,I=_.exec(v.replace(/[\(\)]/g,""));return[I[1],I[2]||void 0,I[3]||void 0]},parseV8OrIE:function(v){var _=v.stack.split(`
2`).filter(function(I){return!!I.match(l)},this);return _.map(function(I){I.indexOf("(eval ")>-1&&(I=I.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var O=I.replace(/^\s+/,"").replace(/\(eval code/g,"("),P=O.match(/ (\((.+):(\d+):(\d+)\)$)/);O=P?O.replace(P[0],""):O;var F=O.split(/\s+/).slice(1),C=this.extractLocation(P?P[1]:F.pop()),N=F.join(" ")||void 0,ne=["eval","<anonymous>"].indexOf(C[0])>-1?void 0:C[0];return new a({functionName:N,fileName:ne,lineNumber:C[1],columnNumber:C[2],source:I})},this)},parseFFOrSafari:function(v){var _=v.stack.split(`
3`).filter(function(I){return!I.match(g)},this);return _.map(function(I){if(I.indexOf(" > eval")>-1&&(I=I.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),I.indexOf("@")===-1&&I.indexOf(":")===-1)return new a({functionName:I});var O=/((.*".+"[^@]*)?[^@]*)(?:@)/,P=I.match(O),F=P&&P[1]?P[1]:void 0,C=this.extractLocation(I.replace(O,""));return new a({functionName:F,fileName:C[0],lineNumber:C[1],columnNumber:C[2],source:I})},this)},parseOpera:function(v){return!v.stacktrace||v.message.indexOf(`
4`)>-1&&v.message.split(`
5`).length>v.stacktrace.split(`
6`).length?this.parseOpera9(v):v.stack?this.parseOpera11(v):this.parseOpera10(v)},parseOpera9:function(v){for(var _=/Line (\d+).*script (?:in )?(\S+)/i,I=v.message.split(`
7`),O=[],P=2,F=I.length;P<F;P+=2){var C=_.exec(I[P]);C&&O.push(new a({fileName:C[2],lineNumber:C[1],source:I[P]}))}return O},parseOpera10:function(v){for(var _=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,I=v.stacktrace.split(`
8`),O=[],P=0,F=I.length;P<F;P+=2){var C=_.exec(I[P]);C&&O.push(new a({functionName:C[3]||void 0,fileName:C[2],lineNumber:C[1],source:I[P]}))}return O},parseOpera11:function(v){var _=v.stack.split(`
9`).filter(function(I){return!!I.match(u)&&!I.match(/^Error created at/)},this);return _.map(function(I){var O=I.split("@"),P=this.extractLocation(O.pop()),F=O.shift()||"",C=F.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0,N;F.match(/\(([^\)]*)\)/)&&(N=F.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var ne=N===void 0||N==="[arguments not available]"?void 0:N.split(",");return new a({functionName:C,args:ne,fileName:P[0],lineNumber:P[1],columnNumber:P[2],source:I})},this)}}});var Z=_t,Nt=function(s,a,u,l){var g=l&&l.redactedKeys?l.redactedKeys:[],p=l&&l.redactedPaths?l.redactedPaths:[];return JSON.stringify(Jr(s,g,p),a,u)},ie=20,Oe=25e3,Kr=8,Yr="...";function Jl(s){return s instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(s))}function ao(s){return"[Throws: "+(s?s.message:"?")+"]"}function fe(s,a){for(var u=0,l=s.length;u<l;u++)if(s[u]===a)return!0;return!1}function he(s,a){for(var u=0,l=s.length;u<l;u++)if(a.indexOf(s[u])===0)return!0;return!1}function bt(s,a){for(var u=0,l=s.length;u<l;u++)if(typeof s[u]=="string"&&s[u].toLowerCase()===a.toLowerCase()||s[u]&&typeof s[u].test=="function"&&s[u].test(a))return!0;return!1}function en(s){return Object.prototype.toString.call(s)==="[object Array]"}function ut(s,a){try{return s[a]}catch(u){return ao(u)}}function Jr(s,a,u){var l=[],g=0;function p(v,_){function I(){return _.length>Kr&&g>Oe}if(g++,_.length>ie||I())return Yr;if(v===null||typeof v!="object")return v;if(fe(l,v))return"[Circular]";if(l.push(v),typeof v.toJSON=="function")try{g--;var O=p(v.toJSON(),_);return l.pop(),O}catch(G){return ao(G)}var P=Jl(v);
9if(P){g--;var F=p({name:v.name,message:v.message},_);return l.pop(),F}if(en(v)){for(var C=[],N=0,ne=v.length;N<ne;N++){if(I()){C.push(Yr);break}C.push(p(v[N],_.concat("[]")))}return l.pop(),C}var ee={};try{for(var U in v)if(Object.prototype.hasOwnProperty.call(v,U)){if(he(u,_.join("."))&&bt(a,U)){ee[U]="[REDACTED]";continue}if(I()){ee[U]=Yr;break}ee[U]=p(ut(v,U),_.concat(U))}}catch(G){}return l.pop(),ee}return p(s,[])}function ur(s,a,u,l){if(typeof u=="string"){l===void 0?l=null:l!==null&&typeof l!="string"&&(l=Nt(l));var g=a[u];if(typeof g=="number"){s[g]={name:u,variant:l};return}s.push({name:u,variant:l}),a[u]=s.length-1}}function tn(s,a,u){if(y(a)){for(var l=0;l<a.length;++l){var g=a[l];g===null||typeof g!="object"||ur(s,u,g.name,g.variant)}return s}}function rn(s){return D(c(s,Boolean),function(a){var u=a.name,l=a.variant,g={featureFlag:u};return typeof l=="string"&&(g.variant=l),g})}function Xl(s,a,u){var l=a[u];typeof l=="number"&&(s[l]=null,delete a[u])}var dt={add:ur,clear:Xl,merge:tn,toEventApi:rn},je=function(s){return!!s&&(!!s.stack||!!s.stacktrace||!!s["opera#sourceloc"])&&typeof(s.stack||s.stacktrace||s["opera#sourceloc"])=="string"&&s.stack!==s.name+": "+s.message},lo=co;function co(s){switch(Object.prototype.toString.call(s)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return s instanceof Error}}var dr=lo,W=function(s,a,u,l){var g;if(a){var p;if(u===null)return xe(s,a);typeof u=="object"&&(p=u),typeof u=="string"&&(p=(g={},g[u]=l,g)),p&&(a==="__proto__"||a==="constructor"||a==="prototype"||(s[a]||(s[a]={}),s[a]=B({},s[a],p)))}},ke=function(s,a,u){if(typeof a=="string"){if(!u)return s[a];if(s[a])return s[a][u]}},xe=function(s,a,u){if(typeof a=="string"){if(!u){delete s[a];return}a==="__proto__"||a==="constructor"||a==="prototype"||s[a]&&delete s[a][u]}},J={add:W,get:ke,clear:xe},Ft={};(function(s,a){"use strict";typeof d=="function"&&d.amd?d("stack-generator",["stackframe"],a):typeof Ft=="object"?Ft=a(Te):s.StackGenerator=a(s.StackFrame)})(this,function(s){return{backtrace:function(u){var l=[],g=10;typeof u=="object"&&typeof u.maxStackSize=="number"&&(g=u.maxStackSize);for(var p=arguments.callee;p&&l.length<g&&p.arguments;){for(var v=new Array(p.arguments.length),_=0;_<v.length;++_)v[_]=p.arguments[_];/function(?:\s+([\w$]+))+\s*\(/.test(p.toString())?l.push(new s({functionName:RegExp.$1||void 0,args:v})):l.push(new s({args:v}));try{p=p.caller}catch(I){break}}return l}}});function jt(){return jt=Object.assign?Object.assign.bind():function(s){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])}return s},jt.apply(this,arguments)}var Ve=function(){function s(u,l,g,p,v){g===void 0&&(g=[]),p===void 0&&(p=uo()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=v,this._handledState=p,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this.errors=[ho(u,l,s.__type,g)]}var a=s.prototype;return a.addMetadata=function(l,g,p){return J.add(this._metadata,l,g,p)},a.setTraceCorrelation=function(l,g){typeof l=="string"&&(this._correlation=jt({traceId:l},typeof g=="string"?{spanId:g}:{}))},a.getMetadata=function(l,g){return J.get(this._metadata,l,g)},a.clearMetadata=function(l,g){return J.clear(this._metadata,l,g)},a.addFeatureFlag=function(l,g){g===void 0&&(g=null),dt.add(this._features,this._featuresIndex,l,g)},a.addFeatureFlags=function(l){dt.merge(this._features,l,this._featuresIndex)},a.getFeatureFlags=function(){return dt.toEventApi(this._features)},a.clearFeatureFlag=function(l){dt.clear(this._features,this._featuresIndex,l)},a.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},a.getUser=function(){return this._user},a.setUser=function(l,g,p){this._user={id:l,email:g,name:p}},a.toJSON=function(){return{payloadVersion:"4",exceptions:D(this.errors,function(l){return B({},l,{message:l.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},s}(),Gt=function(s){var a={file:s.fileName,method:Xr(s.functionName),lineNumber:s.lineNumber,columnNumber:s.columnNumber,code:void 0,inProject:void 0};return a.lineNumber>-1&&!a.file&&!a.method&&(a.file="global code"),a},Xr=function(s){return/^global code$/i.test(s)?"global code":s},uo=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},fo=function(s){return typeof s=="string"?s:""};function ho(s,a,u,l){return{errorClass:fo(s),errorMessage:fo(a),type:u,stacktrace:n(l,function(g,p){var v=Gt(p);try{return JSON.stringify(v)==="{}"?g:g.concat(v)}catch(_){return g}},[])}}function nn(s){return s.cause?[s].concat(nn(s.cause)):[s]}Ve.getStacktrace=function(s,a,u){if(je(s))return Z.parse(s).slice(a);try{return c(Ft.backtrace(),function(l){return(l.functionName||"").indexOf("StackGenerator$$")===-1}).slice(1+u)}catch(l){return[]}},Ve.create=function(s,a,u,l,g,p){g===void 0&&(g=0);var v=mo(s,a,l,p),_=v[0],I=v[1],O;try{var P=Ve.getStacktrace(_,I>0?1+I+g:0,1+g);O=new Ve(_.name,_.message,P,u,s)}catch(ne){O=new Ve(_.name,_.message,[],u,s)}if(_.name==="InvalidError"&&O.addMetadata(""+l,"non-error parameter",go(s)),_.cause){var F,C=nn(_).slice(1),N=D(C,function(ne){var ee=dr(ne)&&je(ne)?Z.parse(ne):[],U=mo(ne,!0,"error cause"),G=U[0];return G.name==="InvalidError"&&O.addMetadata("error cause",go(ne)),ho(G.name,G.message,Ve.__type,ee)});(F=O.errors).push.apply(F,N)}return O};var go=function(s){return s===null?"null":s===void 0?"undefined":s},mo=function(s,a,u,l){var g,p=0,v=function(_){var I=u==="error cause"?"was":"received";l&&l.warn(u+" "+I+' a non-error: "'+_+'"');var O=new Error(u+" "+I+' a non-error. See "'+u+'" tab for more detail.');return O.name="InvalidError",O};if(!a)dr(s)?g=s:(g=v(typeof s),p+=2);else switch(typeof s){case"string":case"number":case"boolean":g=new Error(String(s)),p+=1;break;case"function":g=v("function"),p+=2;break;case"object":s!==null&&dr(s)?g=s:s!==null&&zl(s)?(g=new Error(s.message||s.errorMessage),g.name=s.name||s.errorClass,p+=1):(g=v(s===null?"null":"unsupported object"),p+=2);break;default:g=v("nothing"),p+=2}if(!je(g))try{throw g}catch(_){je(_)&&(g=_,p=1)}return[g,p]};Ve.__type="browserjs";var zl=function(s){return(typeof s.name=="string"||typeof s.errorClass=="string")&&(typeof s.message=="string"||typeof s.errorMessage=="string")},sn=Ve,_f=function(s,a,u){var l=0,g=function(){if(l>=s.length)return u(null,!0);a(s[l],function(p,v){if(p)return u(p);if(v===!1)return u(null,!1);l++,g()})};g()},bf=function(s,a,u,l){var g=function(p,v){if(typeof p!="function")return v(null);try{if(p.length!==2){var _=p(a);return _&&typeof _.then=="function"?_.then(function(I){return setTimeout(function(){return v(null,I)})}
9,function(I){setTimeout(function(){return u(I),v(null,!0)})}):v(null,_)}p(a,function(I,O){if(I)return u(I),v(null);v(null,O)})}catch(I){u(I),v(null)}};_f(s,g,l)},Zc=function(s,a,u,l){for(var g=!1,p=s.slice();!g&&p.length;)try{g=p.pop()(a)===!1}catch(v){l.error("Error occurred in "+u+" callback, continuing anyway\u2026"),l.error(v)}return g},Zl=function(a,u){var l="000000000"+a;return l.substr(l.length-u)},eu=typeof window=="object"?window:self,tu=0;for(var Sf in eu)Object.hasOwnProperty.call(eu,Sf)&&tu++;var Cf=navigator.mimeTypes?navigator.mimeTypes.length:0,Rf=Zl((Cf+navigator.userAgent.length).toString(36)+tu.toString(36),4),ru=function(){return Rf},on=0,ec=4,po=36,iu=Math.pow(po,ec);function nu(){return Zl((Math.random()*iu<<0).toString(po),ec)}function Pf(){return on=on<iu?on:0,on++,on-1}function su(){var s="c",a=new Date().getTime().toString(po),u=Zl(Pf().toString(po),ec),l=ru(),g=nu()+nu();return s+a+u+l+g}su.fingerprint=ru;var Tf=su,Of=function(){function s(){this.id=Tf(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var a=s.prototype;return a.getUser=function(){return this._user},a.setUser=function(l,g,p){this._user={id:l,email:g,name:p}},a.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},a._track=function(l){this[l._handledState.unhandled?"_unhandled":"_handled"]+=1},s}(),tc=Of,xf=dt.add,Af=dt.clear,rc=dt.merge,Bt=function(){},Df=function(){function s(u,l,g,p){var v=this;l===void 0&&(l=x.schema),g===void 0&&(g=[]),this._notifier=p,this._config={},this._schema=l,this._delivery={sendSession:Bt,sendEvent:Bt},this._logger={debug:Bt,info:Bt,warn:Bt,error:Bt},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=s,this.Event=sn,this.Breadcrumb=ye,this.Session=tc,this._config=this._configure(u,g),D(g.concat(this._config.plugins),function(O){O&&v._loadPlugin(O)}),this._depth=1;var _=this,I=this.notify;this.notify=function(){return I.apply(_,arguments)}}var a=s.prototype;return a.addMetadata=function(l,g,p){return J.add(this._metadata,l,g,p)},a.getMetadata=function(l,g){return J.get(this._metadata,l,g)},a.clearMetadata=function(l,g){return J.clear(this._metadata,l,g)},a.addFeatureFlag=function(l,g){g===void 0&&(g=null),xf(this._features,this._featuresIndex,l,g)},a.addFeatureFlags=function(l){rc(this._features,l,this._featuresIndex)},a.clearFeatureFlag=function(l){Af(this._features,this._featuresIndex,l)},a.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},a.getContext=function(){return this._context},a.setContext=function(l){this._context=l},a._configure=function(l,g){var p=n(g,function(O,P){return P&&P.configSchema?B({},O,P.configSchema):O},this._schema),v=n(R(p),function(O,P){var F=p[P].defaultValue(l[P]);if(l[P]!==void 0){var C=p[P].validate(l[P]);C?p[P].allowPartialObject?O.config[P]=B(F,l[P]):O.config[P]=l[P]:(O.errors[P]=p[P].message,O.config[P]=F)}else O.config[P]=F;return O},{errors:{},config:{}}),_=v.errors,I=v.config;if(p.apiKey){if(!I.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(I.apiKey)||(_.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=B({},I.metadata),rc(this._features,I.featureFlags,this._featuresIndex),this._user=B({},I.user),this._context=I.context,I.logger&&(this._logger=I.logger),I.onError&&(this._cbs.e=this._cbs.e.concat(I.onError)),I.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(I.onBreadcrumb)),I.onSession&&(this._cbs.s=this._cbs.s.concat(I.onSession)),R(_).length&&this._logger.warn(wf(_,l)),I},a.getUser=function(){return this._user},a.setUser=function(l,g,p){this._user={id:l,email:g,name:p}},a._loadPlugin=function(l){var g=l.load(this);return l.name&&(this._plugins["~"+l.name+"~"]=g),this},a.getPlugin=function(l){return this._plugins["~"+l+"~"]},a._setDelivery=function(l){this._delivery=l(this)},a.startSession=function(){var l=new tc;l.app.releaseStage=this._config.releaseStage,l.app.version=this._config.appVersion,l.app.type=this._config.appType,l._user=B({},this._user);var g=Zc(this._cbs.s,l,"onSession",this._logger);return g?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,l)},a.addOnError=function(l,g){g===void 0&&(g=!1),this._cbs.e[g?"unshift":"push"](l)},a.removeOnError=function(l){this._cbs.e=c(this._cbs.e,function(g){return g!==l})},a._addOnSessionPayload=function(l){this._cbs.sp.push(l)},a.addOnSession=function(l){this._cbs.s.push(l)},a.removeOnSession=function(l){this._cbs.s=c(this._cbs.s,function(g){return g!==l})},a.addOnBreadcrumb=function(l,g){g===void 0&&(g=!1),this._cbs.b[g?"unshift":"push"](l)},a.removeOnBreadcrumb=function(l){this._cbs.b=c(this._cbs.b,function(g){return g!==l})},a.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},a.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},a.leaveBreadcrumb=function(l,g,p){if(l=typeof l=="string"?l:"",p=typeof p=="string"&&f(i,p)?p:"manual",g=typeof g=="object"&&g!==null?g:{},!!l){var v=new ye(l,g,p),_=Zc(this._cbs.b,v,"onBreadcrumb",this._logger);if(_){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(v),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},a._isBreadcrumbTypeEnabled=function(l){var g=this._config.enabledBreadcrumbTypes;return g===null||f(g,l)},a.notify=function(l,g,p){p===void 0&&(p=Bt);var v=sn.create(l,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(v,g,p)},a._notify=function(l,g,p){var v=this;if(p===void 0&&(p=Bt),l.app=B({},l.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),l.context=l.context||this._context,l._metadata=B({},l._metadata,this._metadata),l._user=B({},l._user,this._user),l.breadcrumbs=this._breadcrumbs.slice(),rc(l._features,this._features,l._featuresIndex),this._config.enabledReleaseStages!==null&&!f(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),p(null,l);var _=l.severity,I=function(P){v._logger.error("Error occurred in onError callback, continuing anyway\u2026"),v._logger.error(P)},O=[].concat(this._cbs.e).concat(g);bf(O,l,I,function(P,F){if(P&&I(P),!F)return v._logger.debug("Event not sent due to onError callback"),p(null,l);v._isBreadcrumbTypeEnabled("error")&&s.prototype.leaveBreadcrumb.call(v,l.errors[0].errorClass,{errorClass:l.errors[0].errorClass,errorMessage:l.errors[0].errorMessage,severity:l.severity},"error"),_!==l.severity&&(l._handledState.severityReason={type:"userCallbackSetSeverity"}),l.unhandled!==l._handledState.unhandled&&(l._handledState.severityReason.unhandledOverrid
9den=!0,l._handledState.unhandled=l.unhandled),v._session&&(v._session._track(l),l._session=v._session),v._delivery.sendEvent({apiKey:l.apiKey||v._config.apiKey,notifier:v._notifier,events:[l]},function(C){return p(C,l)})})},s}(),wf=function(s,a){var u=new Error(`Invalid configuration
10`+D(R(s),function(l){return"  - "+l+" "+s[l]+", got "+Lf(a[l])}).join(`
11
12`));return u},Lf=function(s){switch(typeof s){case"string":case"number":case"object":return JSON.stringify(s);default:return String(s)}},ic=Df,zr={},ou=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];zr.event=function(s,a){var u=Nt(s,null,null,{redactedPaths:ou,redactedKeys:a});return u.length>1e6&&(s.events[0]._metadata={notifier:`WARNING!
13Serialized payload was `+u.length/1e6+`MB (limit = 1MB)
14metadata was removed`},u=Nt(s,null,null,{redactedPaths:ou,redactedKeys:a})),u},zr.session=function(s,a){var u=Nt(s,null,null);return u};var nc={};nc=function(s,a){return a===void 0&&(a=window),{sendEvent:function(u,l){l===void 0&&(l=function(){});var g=au(s._config,"notify","4",a),p=zr.event(u,s._config.redactedKeys),v=new a.XDomainRequest;v.onload=function(){l(null)},v.onerror=function(){var _=new Error("Event failed to send");s._logger.error("Event failed to send\u2026",_),p.length>1e6&&s._logger.warn("Event oversized ("+(p.length/1e6).toFixed(2)+" MB)"),l(_)},v.open("POST",g),setTimeout(function(){try{v.send(p)}catch(_){s._logger.error(_),l(_)}},0)},sendSession:function(u,l){l===void 0&&(l=function(){});var g=au(s._config,"sessions","1",a),p=new a.XDomainRequest;p.onload=function(){l(null)},p.open("POST",g),setTimeout(function(){try{p.send(zr.session(u,s._config.redactedKeys))}catch(v){s._logger.error(v),l(v)}},0)}}};var au=function(s,a,u,l){var g=JSON.parse(JSON.stringify(new Date)),p=kf(s.endpoints[a],l.location.protocol);return p+"?apiKey="+encodeURIComponent(s.apiKey)+"&payloadVersion="+u+"&sentAt="+encodeURIComponent(g)},kf=nc._matchPageProtocol=function(s,a){return a==="http:"?s.replace(/^https:/,"http:"):s},Vf=function(s,a){return a===void 0&&(a=window),{sendEvent:function(u,l){l===void 0&&(l=function(){});try{var g=s._config.endpoints.notify,p=new a.XMLHttpRequest,v=zr.event(u,s._config.redactedKeys);p.onreadystatechange=function(){if(p.readyState===a.XMLHttpRequest.DONE){var _=p.status;if(_===0||_>=400){var I=new Error("Request failed with status "+_);s._logger.error("Event failed to send\u2026",I),v.length>1e6&&s._logger.warn("Event oversized ("+(v.length/1e6).toFixed(2)+" MB)"),l(I)}else l(null)}},p.open("POST",g),p.setRequestHeader("Content-Type","application/json"),p.setRequestHeader("Bugsnag-Api-Key",u.apiKey||s._config.apiKey),p.setRequestHeader("Bugsnag-Payload-Version","4"),p.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),p.send(v)}catch(_){s._logger.error(_)}},sendSession:function(u,l){l===void 0&&(l=function(){});try{var g=s._config.endpoints.sessions,p=new a.XMLHttpRequest;p.onreadystatechange=function(){if(p.readyState===a.XMLHttpRequest.DONE){var v=p.status;if(v===0||v>=400){var _=new Error("Request failed with status "+v);s._logger.error("Session failed to send\u2026",_),l(_)}else l(null)}},p.open("POST",g),p.setRequestHeader("Content-Type","application/json"),p.setRequestHeader("Bugsnag-Api-Key",s._config.apiKey),p.setRequestHeader("Bugsnag-Payload-Version","1"),p.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),p.send(zr.session(u,s._config.redactedKeys))}catch(v){s._logger.error(v)}}}},lu=new Date,Uf=function(){lu=new Date},Mf={name:"appDuration",load:function(s){return s.addOnError(function(a){var u=new Date;a.app.duration=u-lu},!0),{reset:Uf}}},Nf=function(s){return s===void 0&&(s=window),{load:function(a){a.addOnError(function(u){u.context===void 0&&(u.context=s.location.pathname)},!0)}}},sc=function(a,u){var l="000000000"+a;return l.substr(l.length-u)},cu=typeof window=="object"?window:self,uu=0;for(var Ff in cu)Object.hasOwnProperty.call(cu,Ff)&&uu++;var jf=navigator.mimeTypes?navigator.mimeTypes.length:0,Gf=sc((jf+navigator.userAgent.length).toString(36)+uu.toString(36),4),du=function(){return Gf},an=0,oc=4,yo=36,fu=Math.pow(yo,oc);function hu(){return sc((Math.random()*fu<<0).toString(yo),oc)}function Bf(){return an=an<fu?an:0,an++,an-1}function gu(){var s="c",a=new Date().getTime().toString(yo),u=sc(Bf().toString(yo),oc),l=du(),g=hu()+hu();return s+a+u+l+g}gu.fingerprint=du;var qf=gu,mu="bugsnag-anonymous-id",Qf=function(s){try{var a=s.localStorage,u=a.getItem(mu);return u&&/^c[a-z0-9]{20,32}$/.test(u)||(u=qf(),a.setItem(mu,u)),u}catch(l){}},Wf=function(s,a){return s===void 0&&(s=navigator),a===void 0&&(a=window),{load:function(u){var l={locale:s.browserLanguage||s.systemLanguage||s.userLanguage||s.language,userAgent:s.userAgent};a&&a.screen&&a.screen.orientation&&a.screen.orientation.type?l.orientation=a.screen.orientation.type:a&&a.document&&(l.orientation=a.document.documentElement.clientWidth>a.document.documentElement.clientHeight?"landscape":"portrait"),u._config.generateAnonymousId&&(l.id=Qf(a)),u.addOnSession(function(g){g.device=B({},g.device,l),u._config.collectUserIp||pu(g)}),u.addOnError(function(g){g.device=B({},g.device,l,{time:new Date}),u._config.collectUserIp||pu(g)},!0)},configSchema:{generateAnonymousId:{validate:function(u){return u===!0||u===!1},defaultValue:function(){return!0},message:"should be true|false"}}}},pu=function(s){var a=s.getUser();(!a||!a.id)&&s.setUser(s.device.id)},Hf=function(s){return s===void 0&&(s=window),{load:function(a){a.addOnError(function(u){u.request&&u.request.url||(u.request=B({},u.request,{url:s.location.href}))},!0)}}},$f={load:function(s){s._sessionDelegate=Kf}},Kf={startSession:function(s,a){var u=s;return u._session=a,u._pausedSession=null,u._config.enabledReleaseStages!==null&&!f(u._config.enabledReleaseStages,u._config.releaseStage)?(u._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),u):(u._delivery.sendSession({notifier:u._notifier,device:a.device,app:a.app,sessions:[{id:a.id,startedAt:a.startedAt,user:a._user}]}),u)},resumeSession:function(s){return s._session?s:s._pausedSession?(s._session=s._pausedSession,s._pausedSession=null,s):s.startSession()},pauseSession:function(s){s._pausedSession=s._session,s._session=null}},Yf={load:function(s){s._config.collectUserIp||s.addOnError(function(a){a._user&&typeof a._user.id=="undefined"&&delete a._user.id,a._user=B({id:"[REDACTED]"},a._user),a.request=B({clientIp:"[REDACTED]"},a.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(s){return s===!0||s===!1}}}},yu={};
14yu.load=function(s){var a=/^(local-)?dev(elopment)?$/.test(s._config.releaseStage);a||!s._isBreadcrumbTypeEnabled("log")||D(Jf,function(u){var l=console[u];console[u]=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];s.leaveBreadcrumb("Console output",n(p,function(_,I,O){var P="[Unknown value]";try{P=String(I)}catch(F){}if(P==="[object Object]")try{P=JSON.stringify(I)}catch(F){}return _["["+O+"]"]=P,_},{severity:u.indexOf("group")===0?"log":u}),"log"),l.apply(console,p)},console[u]._restore=function(){console[u]=l}})};var Jf=c(["log","debug","info","warn","error"],function(s){return typeof console!="undefined"&&typeof console[s]=="function"}),vu=200,Eu=5e5,Xf=function(s,a){return s===void 0&&(s=document),a===void 0&&(a=window),{load:function(u){if(!u._config.trackInlineScripts)return;var l=a.location.href,g="",p=!!s.attachEvent,v=p?s.readyState==="complete":s.readyState!=="loading",_=function(){return s.documentElement.outerHTML};g=_();var I=s.onreadystatechange;s.onreadystatechange=function(){s.readyState==="interactive"&&(g=_(),v=!0);try{I.apply(this,arguments)}catch(U){}};var O=null,P=function(U){O=U},F=function(){var U=s.currentScript||O;if(!U&&!v){var G=s.scripts||s.getElementsByTagName("script");U=G[G.length-1]}return U},C=function(U){(!v||!g)&&(g=_());var G=["<!-- DOC START -->"].concat(g.split(`
15`)),ce=U-1,le=Math.max(ce-3,0),Ze=Math.min(ce+3,G.length);return n(G.slice(le,Ze),function(ue,ln,uc){return ue[le+1+uc]=ln.length<=vu?ln:ln.substr(0,vu),ue},{})};u.addOnError(function(U){U.errors[0].stacktrace=c(U.errors[0].stacktrace,function(ue){return!/__trace__$/.test(ue.method)});var G=U.errors[0].stacktrace[0],ce=function(ue){return ue.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!(G&&G.file&&ce(G.file)!==ce(l))){var le=F();if(le){var Ze=le.innerHTML;U.addMetadata("script","content",Ze.length<=Eu?Ze:Ze.substr(0,Eu)),G&&G.lineNumber&&(G.code=C(G.lineNumber))}}},!0);var N=D(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(U){return ac(a,U,function(G){return ee(G,function(ce){return{get:function(){return ce[0]},replace:function(le){ce[0]=le}}})})}),ne=N[0];D(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],function(U){!a[U]||!a[U].prototype||!Object.prototype.hasOwnProperty.call(a[U].prototype,"addEventListener")||(ac(a[U].prototype,"addEventListener",function(G){return ee(G,Iu)}),ac(a[U].prototype,"removeEventListener",function(G){return ee(G,Iu,!0)}))});function ee(U,G,ce){return ce===void 0&&(ce=!1),function(){var le=[].slice.call(arguments);try{var Ze=G(le),ue=Ze.get();if(ce&&U.apply(this,le),typeof ue!="function")return U.apply(this,le);if(ue.__trace__)Ze.replace(ue.__trace__);else{var ln=F();ue.__trace__=function(){P(ln),ne(function(){P(null)},0);var hh=ue.apply(this,arguments);return P(null),hh},ue.__trace__.__trace__=ue.__trace__,Ze.replace(ue.__trace__)}}catch(uc){}if(U.apply)return U.apply(this,le);switch(le.length){case 1:return U(le[0]);case 2:return U(le[0],le[1]);default:return U()}}}},configSchema:{trackInlineScripts:{validate:function(u){return u===!0||u===!1},defaultValue:function(){return!0},message:"should be true|false"}}}};function ac(s,a,u){var l=s[a];if(!l)return l;var g=u(l);return s[a]=g,l}function Iu(s){var a=!!s[1]&&typeof s[1].handleEvent=="function";return{get:function(){return a?s[1].handleEvent:s[1]},replace:function(u){a?s[1].handleEvent=u:s[1]=u}}}var zf=function(s){return s===void 0&&(s=window),{load:function(a){"addEventListener"in s&&a._isBreadcrumbTypeEnabled("user")&&s.addEventListener("click",function(u){var l,g;try{l=eh(u.target),g=_u(u.target,s)}catch(p){l="[hidden]",g="[hidden]",a._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}a.leaveBreadcrumb("UI click",{targetText:l,targetSelector:g},"user")},!0)}}},Zf=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function eh(s){var a=s.textContent||s.innerText||"";return!a&&(s.type==="submit"||s.type==="button")&&(a=s.value),a=a.replace(Zf,"$1"),a.length>140?a.slice(0,135)+"(...)":a}function _u(s,a){var u=[s.tagName];if(s.id&&u.push("#"+s.id),s.className&&s.className.length&&u.push("."+s.className.split(" ").join(".")),!a.document.querySelectorAll||!Array.prototype.indexOf)return u.join("");try{if(a.document.querySelectorAll(u.join("")).length===1)return u.join("")}catch(g){return u.join("")}if(s.parentNode.childNodes.length>1){var l=Array.prototype.indexOf.call(s.parentNode.childNodes,s)+1;u.push(":nth-child("+l+")")}return a.document.querySelectorAll(u.join("")).length===1?u.join(""):s.parentNode?_u(s.parentNode,a)+" > "+u.join(""):u.join("")}var bu={};bu=function(s){s===void 0&&(s=window);var a={load:function(u){if("addEventListener"in s&&u._isBreadcrumbTypeEnabled("navigation")){var l=function(g){return function(){return u.leaveBreadcrumb(g,{},"navigation")}};s.addEventListener("pagehide",l("Page hidden"),!0),s.addEventListener("pageshow",l("Page shown"),!0),s.addEventListener("load",l("Page loaded"),!0),s.document.addEventListener("DOMContentLoaded",l("DOMContentLoaded"),!0),s.addEventListener("load",function(){return s.addEventListener("popstate",l("Navigated back"),!0)}),s.addEventListener("hashchange",function(g){var p=g.oldURL?{from:vo(g.oldURL,s),to:vo(g.newURL,s),state:Cu(s)}:{to:vo(s.location.href,s)};
15u.leaveBreadcrumb("Hash changed",p,"navigation")},!0),s.history.replaceState&&Su(u,s.history,"replaceState",s),s.history.pushState&&Su(u,s.history,"pushState",s)}}};return a};var vo=function(s,a){var u=a.document.createElement("A");return u.href=s,""+u.pathname+u.search+u.hash},th=function(s,a,u,l){var g=vo(s.location.href,s);return{title:u,state:a,prevState:Cu(s),to:l||g,from:g}},Su=function(s,a,u,l){var g=a[u];a[u]=function(p,v,_){s.leaveBreadcrumb("History "+u,th(l,p,v,_),"navigation"),typeof s.resetEventCount=="function"&&s.resetEventCount(),s._config.autoTrackSessions&&s.startSession(),g.apply(a,[p,v].concat(_!==void 0?_:[]))}},Cu=function(s){try{return s.history.state}catch(a){}},Zr="request",rh=function(s,a){s===void 0&&(s=[]),a===void 0&&(a=window);var u=[],l={load:function(g){if(!g._isBreadcrumbTypeEnabled("request"))return;var p=[g._config.endpoints.notify,g._config.endpoints.sessions].concat(s);v(),O();function v(){if("addEventListener"in a.XMLHttpRequest.prototype){var C=a.XMLHttpRequest.prototype.open;a.XMLHttpRequest.prototype.open=function(ne,ee){var U=this,G=!1,ce=function(){return I(ne,ee)},le=function(){return _(ne,ee,U.status)};G&&(this.removeEventListener("load",le),this.removeEventListener("error",ce)),this.addEventListener("load",le),this.addEventListener("error",ce),G=!0,C.apply(this,arguments)}}}function _(C,N,ne){if(N===void 0){g._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}if(!(typeof N=="string"&&f(p,N.replace(/\?.*$/,"")))){var ee={status:ne,request:C+" "+N};ne>=400?g.leaveBreadcrumb("XMLHttpRequest failed",ee,Zr):g.leaveBreadcrumb("XMLHttpRequest succeeded",ee,Zr)}}function I(C,N){if(N===void 0){g._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}typeof N=="string"&&f(p,N.replace(/\?.*$/,""))||g.leaveBreadcrumb("XMLHttpRequest error",{request:C+" "+N},Zr)}function O(){if(!(!("fetch"in a)||a.fetch.polyfill)){var C=a.fetch;a.fetch=function(){var ne=arguments,ee=arguments[0],U=arguments[1],G,ce=null;return ee&&typeof ee=="object"?(ce=ee.url,U&&"method"in U?G=U.method:ee&&"method"in ee&&(G=ee.method)):(ce=ee,U&&"method"in U&&(G=U.method)),G===void 0&&(G="GET"),new Promise(function(le,Ze){C.apply(void 0,ne).then(function(ue){P(ue,G,ce),le(ue)}).catch(function(ue){F(G,ce),Ze(ue)})})}}}var P=function(C,N,ne){var ee={status:C.status,request:N+" "+ne};C.status>=400?g.leaveBreadcrumb("fetch() failed",ee,Zr):g.leaveBreadcrumb("fetch() succeeded",ee,Zr)},F=function(C,N){g.leaveBreadcrumb("fetch() error",{request:C+" "+N},Zr)}}};return l},ih={load:function(s){var a=0;s.addOnError(function(u){if(a>=s._config.maxEvents)return s._logger.warn("Cancelling event send due to maxEvents per session limit of "+s._config.maxEvents+" being reached"),!1;a++}),s.resetEventCount=function(){a=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer \u2264100",validate:function(s){return L(1,100)(s)}}}},lc={};lc={load:function(s){s.addOnError(function(a){var u=n(a.errors,function(l,g){return l.concat(g.stacktrace)},[]);D(u,function(l){l.file=nh(l.file)})})}};var nh=lc._strip=function(s){return typeof s=="string"?s.replace(/\?.*$/,"").replace(/#.*$/,""):s},sh=function(s,a){return s===void 0&&(s=window),a===void 0&&(a="window onerror"),{load:function(u){if(!u._config.autoDetectErrors||!u._config.enabledErrorTypes.unhandledExceptions)return;function l(p,v,_,I,O){if(_===0&&/Script error\.?/.test(p))u._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var P={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},F;if(O)F=u.Event.create(O,!0,P,a,1),Ru(F.errors[0].stacktrace,v,_,I);else if(typeof p=="object"&&p!==null&&(!v||typeof v!="string")&&!_&&!I&&!O){var C=p.type?"Event: "+p.type:"Error",N=p.message||p.detail||"";F=u.Event.create({name:C,message:N},!0,P,a,1),F.originalError=p,F.addMetadata(a,{event:p,extraParameters:v})}else F=u.Event.create(p,!0,P,a,1),Ru(F.errors[0].stacktrace,v,_,I);u._notify(F)}typeof g=="function"&&g.apply(this,arguments)}var g=s.onerror;s.onerror=l}}},Ru=function(s,a,u,l){s[0]||s.push({});var g=s[0];
15!g.file&&typeof a=="string"&&(g.file=a),!g.lineNumber&&cc(u)&&(g.lineNumber=u),g.columnNumber||(cc(l)?g.columnNumber=l:window.event&&cc(window.event.errorCharacter)&&(g.columnNumber=window.event.errorCharacter))},cc=function(s){return typeof s=="number"&&String.call(s)!=="NaN"},oh,ah=function(s){s===void 0&&(s=window);var a={load:function(u){if(!(!u._config.autoDetectErrors||!u._config.enabledErrorTypes.unhandledRejections)){var l=function(g){var p=g.reason,v=!1;try{g.detail&&g.detail.reason&&(p=g.detail.reason,v=!0)}catch(I){}var _=u.Event.create(p,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,u._logger);v&&D(_.errors[0].stacktrace,lh(p)),u._notify(_,function(I){if(dr(I.originalError)&&!I.originalError.stack){var O;I.addMetadata("unhandledRejection handler",(O={},O[Object.prototype.toString.call(I.originalError)]={name:I.originalError.name,message:I.originalError.message,code:I.originalError.code},O))}})};"addEventListener"in s?s.addEventListener("unhandledrejection",l):s.onunhandledrejection=function(g,p){l({detail:{reason:g,promise:p}})},oh=l}}};return a},lh=function(s){return function(a){a.file!==s.toString()&&a.method&&(a.method=a.method.replace(/^\s+/,""))}},fr={},ch="Bugsnag JavaScript",uh="7.25.0",dh="https://github.com/bugsnag/bugsnag-js",fh=B({},x.schema,V),Ae={_client:null,createClient:function(s){typeof s=="string"&&(s={apiKey:s}),s||(s={});var a=[Mf,Wf(),Nf(),Hf(),ih,$f,Yf,lc,sh(),ah(),bu(),zf(),rh(),yu,Xf()],u=new ic(s,fh,a,{name:ch,version:uh,url:dh});return u._setDelivery(window.XDomainRequest?nc:Vf),u._logger.debug("Loaded!"),u.leaveBreadcrumb("Bugsnag loaded",{},"state"),u._config.autoTrackSessions?u.startSession():u},start:function(s){return Ae._client?(Ae._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),Ae._client):(Ae._client=Ae.createClient(s),Ae._client)},isStarted:function(){return Ae._client!=null}};return D(["resetEventCount"].concat(R(ic.prototype)),function(s){/^_/.test(s)||(Ae[s]=function(){if(Ae._client){Ae._client._depth+=1;var a=Ae._client[s].apply(Ae._client,arguments);return Ae._client._depth-=1,a}})}),fr=Ae,fr.Client=ic,fr.Event=sn,fr.Session=tc,fr.Breadcrumb=ye,fr.default=Ae,fr})});var wu=Tu((Nh,Du)=>{Du.exports=Au()});var b={TARGETING_MULTI_PAGE_KEY:"FIGPII_MPK",DEBUG_DEBUG_QUERY_PARAM:"FIGPII_DEBUG",DEBUG_DISABLE_QUERY_PARAM:"FIGPII_DISABLE",DEBUG_VERIFY_QUERY_PARAM:"FIGPII_VERIFY",PREVIEW_TOOL_ID_QUERY_PARAM:"FIGPII_PREVIEW_REPO",PREVIEW_VARIATION_ID_PARAM:"FIGPII_PREVIEW_VAR",PREVIEW_PATCH_QUERY_PARAM:"FIGPII_PREVIEW_PATCH",PREVIEW_NO_WIDGET_QUERY_PARAM:"FIGPII_PREVIEW_NO_WIDGET",PREVIEW_SESSION_STORAGE_KEY:"_fp_activePreviewSession",CROSS_DOMAIN_VISITOR_ID_QUERY_PARAM:"fp_vid",CROSS_DOMAIN_VISITOR_ID_TIMEOUT:"180",CROSS_DOMAIN_VARIATIONS_QUERY_PARAM:"fp_var",RETAKE_TOKEN_QUERY_PARAM:"FIGPII_RETAKE_TOKEN",RETAKE_TOOL_ID_QUERY_PARAM:"FIGPII_RETAKE_SCREENSHOT",GLOBAL_EVENT_ARRAY_NAME:"_fpEvent",CLIENT_INFO_COOKIE_NAME:"_FPCI",CLIENT_INFO_CONSENT_COOKIE_NAME:"_FPACO",CLIENT_INFO_SESSION_ID_KEY:"_fp_sessionId",CLIENT_INFO_SESSION_PROCESSED_BASE_KEY:"_fp_isSessionProcessed-TestingEngine-",CLIENT_INFO_DOMAIN_PROCESSED_KEY:"_fp_isDomainProcessed",CLIENT_INFO_VISIT_INTERVAL:"1800",EXPERIMENT_COOKIE_BASE_NAME:"FIGPII_TE",EXPERIMENT_GA_MAX_RETRIES:"20",EXPERIMENT_GA_RETRY_INTERVAL:"100",RECORDER_SESSION_TIMEOUT:"600000",RECORDER_MAX_RETRIES:"3",RECORDER_SEND_INTERVAL:"1000",RECORDER_WEBSOCKET_INSTANCE_KEY:"recorder",RECORDER_WEBSOCKET_ERROR_BIG_MESSAGE_CODE:"1009",RECORDER_WEBSOCKET_MAX_SIZE:"26000",BEACON_MAX_SIZE:"64000",RECORDER_MOUSE_LISTENER_BOUNCE_TIME:"30",RECORDER_INPUT_LISTENER_BOUNCE_TIME:"100",RECORDER_WINDOW_LISTENER_BOUNCE_TIME:"100",RECORDER_VERIFY_TIMEOUT:"10000",POLL_ANSWERED_COOKIE_NAME:"FIGPII_POLL",POLL_MINIFIED_COOKIE_NAME:"FIGPII_POLL_MIN",EDITOR_SESSION_STORAGE_KEY:"_fp_activeEditorSession",EDITOR_TOKEN_STORAGE_KEY:"_fp_editorToken",EDITOR_REFRESH_LEAD_SECONDS:"300",EDITOR_PENDING_QUERY_PARAM:"FIGPII_EDIT_PENDING",EDITOR_STANDALONE_QUERY_PARAM:"FIGPII_EDIT_STANDALONE",EDITOR_TOKEN_QUERY_PARAM:"FIGPII_EDIT_TOKEN",EDITOR_PAGE_NAME_QUERY_PARAM:"FIGPII_EDIT_PAGE_NAME",APP_VERSION:"2.28.4-beta",DOMAIN_SETTINGS_U
15RL:"https://tracking-settings.figpii.com/32c291b0eb64d7f439ae91c7465ccc54.json",BUGSNAG_API_KEY:"465ea043759a7e320b7a44e46a8aa7c2",BUGSNAG_RELEASE_STAGE:"production",BUGSNAG_APP_VERSION:"2.28.4-beta",BUGSNAG_WATCHED_DOMAINS:'["\\/\\/statics-cdn.figpii.com","\\/\\/tracking-cdn.figpii.com"]',PREVIEW_PATCH_FILE_BASE_URL:"https://tracking-patches-cdn.figpii.com",RR_URL_PREFIX:"https://rr.figpii.com",CDN_STATICS_URL_PREFIX:"https://statics-cdn.figpii.com/v2.28.4-beta",TD_URL_PREFIX:"https://tdh.figpii.com/v1",EXPERIMENT_ANALYTICS_TRACKER_URL:"https://analytics.figpii.com/tracker.php",EXPERIMENT_ANALYTICS_TRACKER_SINGLE_INSTANCE_URL:"https://eu-analytics.figpii.com/js/",RECORDER_WEBSOCKET_ENDPOINT:"wss://tdw.figpii.com/v1",RETAKE_MODULE_URL:"https://statics-cdn.figpii.com/v2.28.4-beta/screenshot-retaker.min.js",RETAKE_VERIFY_URL:"https://rr.figpii.com/tool/heatmap/retake/",CLIENT_INFO_REGISTER_URL:"https://rr.figpii.com/visitor/register",CLIENT_INFO_INFO_URL:"https://rr.figpii.com/visitor/info",CLIENT_INFO_TRAFFIC_URL:"https://rr.figpii.com/visitor/traffic",CLIENT_INFO_VERIFY_URL:"https://rr.figpii.com/domain/ping",EXPERIMENT_DECIDE_URL:"https://rr.figpii.com/ab/decide",EXPERIMENT_SIZZLE_URL:"https://statics-cdn.figpii.com/v2.28.4-beta/sizzle.min.js",EXPERIMENT_JQUERY_URL:"https://statics-cdn.figpii.com/v2.28.4-beta/jquery.min.js",EXPERIMENT_TOOL_DECIDE_URL:"https://rr.figpii.com/ab/tool/decide",RECORDER_MODULE_URL:"https://statics-cdn.figpii.com/v2.28.4-beta/recorder.min.js",RECORDER_HTTP_ENDPOINT:"https://tdh.figpii.com/v1/recorder/post",POLL_MODULE_URL:"https://statics-cdn.figpii.com/v2.28.4-beta/poll.min.js",POLL_ENDPOINT:"https://tdh.figpii.com/v1/poll/post",PREVIEW_WIDGET_MODULE_URL:"https://statics-cdn.figpii.com/v2.28.4-beta/preview-widget.min.js",EDITOR_MODULE_URL:"https://statics-cdn.figpii.com/v2.28.4-beta/editor.min.js",EDITOR_API_BASE_URL:"https://www.figpii.com",EDITOR_TINYMCE_URL:"https://cdnjs.cloudflare.com/ajax/libs/tinymce/8.1.2/tinymce.min.js",EDITOR_CODEMIRROR_URL:"https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.js",EDITOR_CODEMIRROR_CSS_URL:"https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.css",EDITOR_CODEMIRROR_XML_URL:"https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/xml/xml.min.js",EDITOR_CODEMIRROR_JS_URL:"https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/javascript/javascript.min.js",EDITOR_CODEMIRROR_CSS_MODE_URL:"https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/css/css.min.js",EDITOR_CODEMIRROR_THEME_URL:"https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/theme/material-darker.min.css",EDITOR_CODEMIRROR_THEME_NAME:"material-darker",FIGPII_USAGE_ENDPOINT:"https://visitor.figpii.com/js/"};function Ou(){return{domain:{settingsUrl:b.DOMAIN_SETTINGS_URL},targeting:{multiPageKey:b.TARGETING_MULTI_PAGE_KEY},bugsnag:{apiKey:b.BUGSNAG_API_KEY,releaseStage:b.BUGSNAG_RELEASE_STAGE,appVersion:b.BUGSNAG_APP_VERSION,watchedDomains:b.BUGSNAG_WATCHED_DOMAINS?JSON.parse(b.BUGSNAG_WATCHED_DOMAINS):[]},bootstrap:{debugQueryParam:b.DEBUG_DEBUG_QUERY_PARAM,disableQueryParam:b.DEBUG_DISABLE_QUERY_PARAM,verifyQueryParam:b.DEBUG_VERIFY_QUERY_PARAM,globalEventArrayName:b.GLOBAL_EVENT_ARRAY_NAME,figpiiUsageEndpoint:b.FIGPII_USAGE_ENDPOINT},preview:{moduleUrl:b.PREVIEW_WIDGET_MODULE_URL,toolIdQueryParam:b.PREVIEW_TOOL_ID_QUERY_PARAM,variationIdQueryParam:b.PREVIEW_VARIATION_ID_PARAM,patchQueryParam:b.PREVIEW_PATCH_QUERY_PARAM,patchFileBaseUrl:b.PREVIEW_PATCH_FILE_BASE_URL,sessionStorageKey:b.PREVIEW_SESSION_STORAGE_KEY,noWidgetQueryParam:b.PREVIEW_NO_WIDGET_QUERY_PARAM},crossDomain:{visitorIdQueryParam:b.CROSS_DOMAIN_VISITOR_ID_QUERY_PARAM,visitorIdTimeout:parseInt(b.CROSS_DOMAIN_VISITOR_ID_TIMEOUT),variationsQueryParam:b.CROSS_DOMAIN_VARIATIONS_QUERY_PARAM},screenshotRetake:{moduleUrl:b.RETAKE_MODULE_URL,tokenQueryParam:b.RETAKE_TOKEN_QUERY_PARAM,toolIdQueryParam:b.RETAKE_TOOL_ID_QUERY_PARAM,verifyUrl:b.RETAKE_VERIFY_URL},clientInfo:{registerUrl:b.CLIENT_INFO_REGISTER_URL,infoUrl:b.CLIENT_INFO_INFO_URL,trafficUrl:b.CLIENT_INFO_TRAFFIC_URL,verifyUrl:b.CLIENT_INFO_VERIFY_URL,cookieName:b.CLIENT_INFO_COOKIE_NAME,consentCookieName:b.CLIENT_INFO_CONSENT_COOKIE_NAME,sessionIdKey:b.CLIENT_INFO_SESSION_ID_KEY,sessionProcessedBaseKey:b.CLIENT_INFO_SESSION_PROCESSED_BASE_KEY,domainProcessedKey:b.CLIENT_INFO_DOMAIN_PROCESSED_KEY,visitInterval:parseInt(b.CLIENT_INFO_VISIT_INTERVAL)},experiment:{jqueryUrl:b.EXPERIMENT_JQUERY_URL,sizzleUrl:b.EXPERIMENT_SIZZLE_URL,analyticsTrackerUrl:b.EXPERIMENT_ANALYTICS_TRACKER_URL,analyticsTrackerSingleInstanceUrl:b.EXPERIMENT_ANALYTICS_TRACKER_SINGLE_INSTANCE_URL,decideUrl:b.EXPERIMENT_DECIDE_URL,decideToolUrl:b.EXPERIMENT_TOOL_DECIDE_URL,cookieBaseName:b.EXPERIMENT_COOKIE_BASE_NAME,gaRequestMaxRetries:parseInt(b.EXPERIMENT_GA_MAX_RETRIES)||20,gaRequestRetryInterval:parseInt(b.EXPERIMENT_GA_RETRY_INTERVAL)||100},recorder:{moduleUrl:b.RECORDER_MODULE_URL,sessionTimeout:parseInt(b.RECORDER_SESSION_TIMEOUT)||6e5,maxRetries:parseInt(b.RECORDER_MAX_RETRIES)||3,sendInterval:parseInt(b.RECORDER_SEND_INTERVAL)||200,websocketInstanceKey:b.RECORDER_WEBSOCKET_INSTANCE_KEY||"recorder",websocketErrorBigMessageCode:parseInt(b.RECORDER_WEBSOCKET_ERROR_BIG_MESSAGE_CODE)||1009,websocketMaxSize:parseInt(b.RECORDER_WEBSOCKET_MAX_SIZE)||27e3,websocketEndpoint:b.RECORDER_WEBSOCKET_ENDPOINT,beaconMaxSize:parseInt(b.BEACON_MAX_SIZE)||64e3,httpEndpoint:b.RECORDER_HTTP_ENDPOINT,mouseListenerDebounceTime:parseInt(b.RECORDER_MOUSE_LISTENER_BOUNCE_TIME)||30,inputListenerDebounceTime:parseInt(b.RECORDER_INPUT_LISTENER_BOUNCE_TIME)||100,windowListenerDebounceTime:parseInt(b.RECORDER_WINDOW_LISTENER_BOUNCE_TIME)||100,verifyTimeout:parseInt(b.RECORDER_VERIFY_TIMEOUT)||1e4},poll:{moduleUrl:b.POLL_MODULE_URL,endpoint:b.POLL_ENDPOINT,answeredPollsCookieName:b.POLL_ANSWERED_COOKIE_NAME,minifiedPollsCookieName:b.POLL_MINIFIED_COOKIE_NAME},editor:{moduleUrl:b.EDITOR_MODULE_URL,apiBaseUrl:b.EDITOR_API_BASE_URL,sessionStorageKey:b.EDITOR_SESSION_STORAGE_KEY,tokenStorageKey:b.EDITOR_TOKEN_STORAGE_KEY,refreshLeadSeconds:parseInt(b.EDITOR_REFRESH_LEAD_SECONDS)||300,tinymceUrl:b.EDITOR_TINYMCE_URL||"",codemirrorUrl:b.EDITOR_CODEMIRROR_URL||"",codemirrorCssUrl:b.EDITOR_CODEMIRROR_CSS_URL||"",codemirrorXmlUrl:b.EDITOR_CODEMIRROR_XML_URL||"",codemirrorJsUrl:b.EDITOR_CODEMIRROR_JS_URL||"",codemirrorCssModeUrl:b.EDITOR_CODEMIRROR_CSS_MODE_URL||"",codemirrorThemeUrl:b.EDITOR_CODEMIRROR_THEME_URL||"",codemirrorThemeName:b.EDITOR_CODEMIRROR_THEME_NAME||"default",pendingQueryParam:b.EDITOR_PENDING_QUERY_PARAM,standaloneQueryParam:b.EDITOR_STANDALONE_QUERY_PARAM,tokenQueryParam:b.EDITOR_TOKEN_QUERY_PARAM,pageNameQueryParam:b.EDITOR_PAGE_NAME_QUERY_PARAM},internalQueryParameters:[b.DEBUG_DEBUG_QUERY_PARAM,b.DEBUG_DISABLE_QUERY_PARAM,b.DEBUG_VERIFY_QUERY_PARAM,b.PREVIEW_VARIATION_ID_PARAM,b.PREVIEW_TOOL_ID_QUERY_PARAM,b.PREVIEW_PATCH_QUERY_PARAM,b.PREVIEW_NO_WIDGET_QUERY_PARAM,b.CROSS_DOMAIN_VARIATIONS_QUERY_PARAM,b.CROSS_DOMAIN_VISITOR_ID_QUERY_PARAM,b.RETAKE_TOOL_ID_QUERY_PARAM,b.RETAKE_TOKEN_QUERY_PARAM,b.EDITOR_PENDING_QUERY_PARAM,b.EDITOR_STANDALONE_QUERY_PARAM,b.EDITOR_TOKEN_QUERY_PARAM,b.EDITOR_PAGE_NAME_QUERY_PARAM]}}var gc=Ih(wu());var un,dn,fn,mc,Eo,Lu,cn=class{constructor(e){o(this,fn);o(this,Eo);o(this,un,[]);o(this,dn,null);m(this,un,e.bugsnag.watchedDomains),e.bugsnag.apiKey&&gc.default.start({apiKey:e.bugsnag.apiKey,releaseStage:e.bugsnag.releaseStage,appVersion:e.bugsnag.appVersion,onError:h(this,Eo,Lu).bind(this),enabledReleaseStages:["production"],enabledBreadcrumbTypes:["error","request","user"]})}setSettings(e){m(this,dn,e)}notify(e,r){try{gc.default.notify(new Error(e),i=>{i.addMetadata("data",r)}
15)}catch(i){}}};un=new WeakMap,dn=new WeakMap,fn=new WeakSet,mc=function(e){return t(this,un).some(r=>e.indexOf(r)!==-1)},Eo=new WeakSet,Lu=function(e){for(let r of e.errors){let i=r.stacktrace[0];if(!i||!i.file||r.errorClass==="TypeError"&&(r.errorMessage.startsWith("Failed to fetch")||r.errorMessage.startsWith("Load failed"))||r.errorClass==="AbortError"||i.method==="HTMLDocument.addEventListener"||i.method==="Ml</</ac/load/ce/<"&&r.stacktrace[1]&&!h(this,fn,mc).call(this,r.stacktrace[1].file))return!1;if(h(this,fn,mc).call(this,i.file))return e.addMetadata("settings",t(this,dn)),!0}return!1};var hr,gn,He,gr,hn=class{constructor(e,r){o(this,hr,void 0);o(this,gn,void 0);o(this,He,{});o(this,gr,void 0);m(this,hr,e),m(this,gn,r)}setDebug(e){m(this,gr,e)}info(...e){t(this,gr)&&t(this,hr).info(...e)}warn(...e){t(this,gr)&&t(this,hr).warn(...e)}error(e,r){try{t(this,hr).error(e,r)}catch(i){}t(this,gr)||t(this,gn).notify(e,r)}startBenchmark(e,r="default"){t(this,He)[e]||(t(this,He)[e]={}),t(this,He)[e][r]||(t(this,He)[e][r]={}),t(this,He)[e][r]={start:Date.now(),end:null}}endBenchmark(e,r="default"){return t(this,He)[e][r].end=Date.now(),t(this,He)[e][r].end-t(this,He)[e][r].start}getBenchmarks(){return t(this,He)}};hr=new WeakMap,gn=new WeakMap,He=new WeakMap,gr=new WeakMap;var mr,ei,mn=class{constructor(e,r){o(this,mr,void 0);o(this,ei,void 0);m(this,mr,e),m(this,ei,typeof r=="string"?r:null)}getItem(e,r){var i=[];if(!e){for(var n=/(?:^|;\s?)(.*?)=([^;]*)/gm,c;(c=n.exec(t(this,mr).cookie))!==null;)c.index===n.lastIndex&&n.lastIndex++,i.push([c[1],c[2]]);return Object.fromEntries(i)}return i=t(this,mr).cookie.match(new RegExp(`(?:^|; )${e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")}=([^;]*)`)),i?decodeURIComponent(i[1]):r}setItem(e,r,i){let n={path:"/"};t(this,ei)!==null&&(n.domain=t(this,ei)),typeof i=="undefined"&&(i=365);let c=new Date;c.setDate(c.getDate()+i),n.expires=c.toUTCString();let f=Object.keys(n).map(y=>`${y}=${n[y]}`).join("; ");t(this,mr).cookie=`${encodeURIComponent(e)}=${encodeURIComponent(r)}; ${f}`}removeItem(e){this.setItem(e,"",-1)}};mr=new WeakMap,ei=new WeakMap;var pr,pn=class{constructor(){o(this,pr,void 0);m(this,pr,{})}getItem(e,r){var i;return(i=t(this,pr)[e])!=null?i:r}setItem(e,r){t(this,pr)[e]=r}removeItem(e){delete t(this,pr)[e]}};pr=new WeakMap;var ti,Ie,Ue,Ge,St,vn,pc,yr,yn,Io,ku,ri=class{constructor(e,r,i,n,c){o(this,vn);o(this,yr);o(this,Io);o(this,ti,["cookies","localStorage","sessionStorage","memory"]);o(this,Ie,{});o(this,Ue,void 0);o(this,Ge,void 0);o(this,St,{});e&&(t(this,Ie)["cookies"]=new mn(e,c)),r&&(t(this,Ie)["localStorage"]=r),i&&(t(this,Ie)["sessionStorage"]=i),t(this,Ie)["memory"]=new pn,m(this,Ue,n)}getType(){return t(this,Ge)}useStorageType(e){if(!h(this,yr,yn).call(this,e)){do t(this,Ue).warn(`${e} is not available`),e=h(this,vn,pc).call(this,e),t(this,Ue).warn(`falling back to ${t(this,Ge)}`);while(e&&!h(this,yr,yn).call(this,e));e||t(this,Ue).error("Storage Error :: useStorageType",{message:"StorageType is not available"})}return Object.assign({},this,{get:(r,i)=>this.getWithType(e,r,i),set:(r,i,n)=>this.setWithType(e,r,i,n),unset:r=>{this.unsetWithType(e,r)}})}setStorageType(e){if(m(this,Ge,e),h(this,yr,yn).call(this,e))m(this,Ge,e);else{do t(this,Ue).warn(`${e} is not available`),e=h(this,vn,pc).call(this,e),t(this,Ue).warn(`falling back to ${e}`),m(this,Ge,e);while(e&&!h(this,yr,yn).call(this,e));e?m(this,Ge,e):t(this,Ue).error("Storage Error :: setStorageType",{message:"StorageType is not available"})}return this}select(e){return this.setStorageType(e)}get(e,r){return this.getWithType(t(this,Ge),e,r)}getWithType(e,r,i){var n,c,f;if(!t(this,Ie).hasOwnProperty(e))return t(this,Ue).info("Storage Error :: getWithType",{message:`Storage type ${e} is not available`}),i;switch(e){case"cookies":return(n=t(this,Ie)[e].getItem(r,i))!=null?n:i;case"localStorage":case"sessionStorage":return(c=t(this,Ie)[e].getItem(r))!=null?c:i;case"memory":return(f=t(this,Ie)[e].getItem(r,i))!=null?f:i}}set(e,r,i){return this.setWithType(t(this,Ge),e,r,i)}setWithType(e,r,i,n){if(!t(this,Ie).hasOwnProperty(e))return t(this,Ue).info("Storage Error :: setWithType",{message:`Storage type ${e} is not available`}),!1;switch(e){case"cookies":t(this,Ie)[e].setItem(r,i,n);break;default:t(this,Ie)[e].setItem(r,i)}return!0}unset(e){return this.unsetWithType(t(this,Ge),e)}unsetWithType(e,r){return t(this,Ie).hasOwnProperty(e)?(t(this,Ie)[e].removeItem(r),!0):(t(this,Ue).info("Storage Error :: unsetWithType",{message:`Storage type ${e} is not available`}),!1)}};ti=new WeakMap,Ie=new WeakMap,Ue=new WeakMap,Ge=new WeakMap,St=new WeakMap,vn=new WeakSet,pc=function(e){var i;e=e||t(this,Ge);let r=t(this,ti).indexOf(e);return r===-1?null:(i=t(this,ti)[r+1])!=null?i:null},yr=new WeakSet,yn=function(e){if(e=e||this.getType(),h(this,Io,ku).
15call(this,e))return t(this,St)[e];try{if(!t(this,ti).includes(e))return t(this,St)[e]=!1,!1;if(!t(this,Ie).hasOwnProperty(e))return t(this,St)[e]=!1,!1;let r="test";return this.setWithType(e,"check-storage",r),this.unsetWithType(e,"check-storage"),t(this,St)[e]=!0,!0}catch(r){t(this,Ue).error("Storage Error :: test",r),t(this,St)[e]=!1}return!1},Io=new WeakSet,ku=function(e){return e=e||this.getType(),t(this,St).hasOwnProperty(e)};var In,_n,yc,En=class{constructor(e,r){o(this,In,void 0);o(this,_n,void 0);o(this,yc,void 0);m(this,In,(...i)=>e(...i)),m(this,_n,r)}async request(e,r){var y;let i={method:(y=e.method)!=null?y:"GET"};if(typeof r!="undefined"&&r!==null){let E=r&&r.constructor&&r.constructor.name,S=typeof r=="string"||r instanceof Uint8Array||typeof FormData!="undefined"&&r instanceof FormData||typeof Blob!="undefined"&&r instanceof Blob||typeof URLSearchParams!="undefined"&&r instanceof URLSearchParams||typeof ArrayBuffer!="undefined"&&r instanceof ArrayBuffer||E==="FormData"||E==="Blob"||E==="URLSearchParams"||E==="ReadableStream";i.body=S?r:t(this,_n).stringify(r)}e.headers&&(i.headers=e.headers),e.cache===!1&&(i.cache="no-cache");let n=await t(this,In).call(this,e.url,i),c;if((n.headers.get("Content-Type")||"").includes("application/json"))try{c=await n.json()}catch(E){if(E.name==="SyntaxError")c=null;else throw E}else c=await n.text();return{headers:n.headers,body:c,status:n.status}}};In=new WeakMap,_n=new WeakMap,yc=new WeakMap;var _o={A:"accountId",u:"url",d:"extraDomains",j:"extraJsUrl",c:"requireConsent",r:"decideVariationRemotely",w:"waitForTrackingBeforeVariation",I:"excludedIpAddresses",up:"updated",p:"platform",m:"maskedCssSelectors",s:"isSinglePageApplication",i:"id",n:"name",l:"launched",t:"type",T:"targetingGroups",Ti:"inclusion",Tr:"rules",Tk:"key",Tv:"value",E:"experiments",Ea:"analyticsId",EV:"analyticsVersion",Er:"redirectUrl",Ert:"redirectUrlType",EAp:"advancedUrlType",EAg:"advancedUrlTarget",EAF:"advancedUrlFrom",EAT:"advancedUrlTo",EgT:"gaTrackerName",EgA:"gaDimension",Ev:"variations",Es:"status",Ew:"winnerVariationId",Eg:"exclusionGroup",Ec:"customCssPath",Ej:"customJsPath",El:"loadJquery",Evp:"targetVisitorPercentage",EW:"weight",e:"elements",es:"selector",eA:"actions",ea:"action",ep:"params",eq:"sequence",P:"polls",PC:"showCondition",PF:"showFrequency",Ps:"showDelay",Pq:"questions",Pt:"templateParameters",PT:"thankYouMessage",R:"recordings",Ra:"allowKeyboardInput"};var ft="-1";var Mu=d=>new Promise(e=>{d.readyState==="loading"?d.addEventListener("readystatechange",()=>{d.readyState==="interactive"&&e()}):e()}),vc=d=>new Promise(e=>{let r=d||window.document;r.readyState==="complete"?e():r.addEventListener("readystatechange",()=>{r.readyState==="complete"&&e()})}),Nu=(d,e,r=500,i=2e5,n=document,c)=>{let f=Date.now();(function y(){let E=n.querySelectorAll(d);if(E.length){e.call(E[0],E);return}else setTimeout(function(){if(i&&Date.now()-f>i){typeof c=="function"&&c();return}y()},r)})()},Fu=(d,e,r=500,i=2e5,n)=>{let c=0,f=d();if(f){e(f);return}let y=window.setInterval(()=>{c+=r;let E=d();E?(window.clearInterval(y),e(E)):c>=i&&(window.clearInterval(y),typeof n=="function"&&n())},r)},ju=(d,e=500,r=2e5)=>new Promise((i,n)=>{try{let c=0;if(d()){i(!0);return}let f=setInterval(()=>{c+=e,d()?(clearInterval(f),i(!0)):c>=r&&(clearInterval(f),i(!1))},e)}catch(c){n(c)}}),Ec=(d,e,r,i=!1,n=document)=>{typeof n=="string"&&(n=document.querySelector(n)),n.addEventListener(d,c=>{Array.from(n.querySelectorAll(e)).some(y=>y.contains(c.target))&&Ch(r,i)})},Sh=()=>{let d=window;return d._fpEvent=d._fpEvent||[],d._fpEvent},Ch=(d,e=!0)=>{let r=Sh(),i="eventConversion";e&&r.some(n=>typeof n[1]!="undefined"&&"value"in n[1]&&n[1].value===d&&n[0]===i)||r.push([i,{value:d}])};var Rh=d=>!(d instanceof Array)&&d-parseFloat(d)+1>=0;function bn(d,e){return new RegExp("(\\.|^)"+e.replace(/\./,"\\.")+"$").test(d)}function Co(d,e){if(bn(d,e.url))return"."+e.url;for(let r of e.extraDomains)if(bn(d,r))return"."+r;return d}function bo(d,e){return typeof d!="object"||d===null||Array.isArray(d)?d:Object.keys(d||{}).reduce((r,i)=>{let n=e(i),c=d[i],f=c;return Array.isArray(c)?f=c.map(y=>bo(y,e)):typeof c=="object"&&(f=bo(c,e)),{...r,[n]:f}},{})}function Gu(d,e){return bo(d,r=>e[r]||r)}function Bu(d,e){return bo(d,r=>e[r]||r)}function ii(d){try{return d===1/0||Rh(d)&&isNaN(d)||d===void 0||d===null?"":typeof d.valueOf=="function"?d.valueOf():typeof d.toString=="function"?d.toString():String(d)}catch(e){return""}}function qu(d,e,r=null){if(!d)return r;let i,n;for(i=e.replace(/\[/g,".").replace(/\]/g,"").split(".");i.length;)if(n=i.shift(),!d||(d=d[n],d===void 0))return r;return d}function Ro(d,e,r=!1){return r&&(d=d.map(i=>i.catch(()=>null))),new Promise((i,n)=>{for(let c of d)c.then(f=>e(f)&&i(!0));Promise.all(d).then(c=>i(c.some(f=>e(f)))).catch(n)})}var Qu=(d=8,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")=>{let r="";for(let i=0;i<d;i++)r+=e.charAt(Math.floor(Math.random()*e.length));return r};function Wu(d,e){return Math.floor(Math.random()*(e-d)+d)}var Ic=()=>new Promise(d=>{let e=i=>"connectEnd"in i&&!!i.connectEnd&&!!i.duration;if(typeof window.performance.getEntriesByType!="function"){d(!1);return}if(window.performance.getEntriesByType("navigation").some(e))d(!0);else{let i,n=c=>{c.getEntries().some(e)&&(i.disconnect(),d(!0))};try{i=new PerformanceObserver(n),i.observe({entryTypes:["navigation"]})}catch(c){d(!1)}}}),Hu=d=>{let e="",r,i;for(let n in d)i=d[n],r=typeof i=="string"?`'${i}'`:i,e+=`${n}=${r};`;return e},Vu=d=>d.split(".").map(e=>parseInt(e,10).toString(2).padStart(8,"0")).join(""),Ph=(d,e)=>{let[r,i]=d.split("/"),n=parseInt(i,10);return Vu(r).slice(0,n)===Vu(e).slice(0,n)},Th=d=>{if(d==="::")return"0000:0000:0000:0000:0000:0000:0000:0000";let e=d.split(":").length-1;if(d.includes("::")){let r=d.split("::"),i=8-e,n=Array(i).fill("0000").join(":");d=(r[0]?r[0]+":":"")+n+(r[1]?":"+r[1]:"")}return d.split(":").map(r=>r.padStart(4,"0")).join(":")},Uu=d=>Th(d).split(":").map(r=>parseInt(r,16).toString(2).padStart(16,"0")).join(""),Oh=(d,e)=>{let[r,i]=d.split("/"),n=parseInt(i,10);return Uu(r).slice(0,n)===Uu(e).slice(0,n)},Po=(d,e)=>d.includes("/")?d.includes(".")?Ph(d,e):Oh(d,e):d===e,de=(d,e)=>{let r=e.toUpperCase();for(let[i,n]of d.entries())if(i.toUpperCase()===r)return n;return null},_c=(d,e)=>{let r=e.toUpperCase();for(let i of d.keys())if(i.toUpperCase()===r){d.delete(i);return}},Sn=d=>{let e=(V,Y)=>V<<Y|V>>>32-Y,r=V=>{let Y="",q,ye;for(q=7;q>=0;q--)ye=V>>>q*4&15,Y+=ye.toString(16);return Y},i,n,c,f=[],y=1732584193,E=4023233417,S=2562383102,R=271733878,L=3285377520,w,M,x,H,B,D,te,j=[];for(d=unescape(encodeURIComponent(d)),te=d.length,n=0;n<te-3;
15n+=4)c=d.charCodeAt(n)<<24|d.charCodeAt(n+1)<<16|d.charCodeAt(n+2)<<8|d.charCodeAt(n+3),j.push(c);switch(te&3){case 0:n=2147483648;break;case 1:n=d.charCodeAt(te-1)<<24|8388608;break;case 2:n=d.charCodeAt(te-2)<<24|d.charCodeAt(te-1)<<16|32768;break;case 3:n=d.charCodeAt(te-3)<<24|d.charCodeAt(te-2)<<16|d.charCodeAt(te-1)<<8|128;break}for(j.push(n);(j.length&15)!==14;)j.push(0);for(j.push(te>>>29),j.push(te<<3&4294967295),i=0;i<j.length;i+=16){for(n=0;n<16;n++)f[n]=j[i+n];for(n=16;n<=79;n++)f[n]=e(f[n-3]^f[n-8]^f[n-14]^f[n-16],1);for(w=y,M=E,x=S,H=R,B=L,n=0;n<=19;n++)D=e(w,5)+(M&x|~M&H)+B+f[n]+1518500249&4294967295,B=H,H=x,x=e(M,30),M=w,w=D;for(n=20;n<=39;n++)D=e(w,5)+(M^x^H)+B+f[n]+1859775393&4294967295,B=H,H=x,x=e(M,30),M=w,w=D;for(n=40;n<=59;n++)D=e(w,5)+(M&x|M&H|x&H)+B+f[n]+2400959708&4294967295,B=H,H=x,x=e(M,30),M=w,w=D;for(n=60;n<=79;n++)D=e(w,5)+(M^x^H)+B+f[n]+3395469782&4294967295,B=H,H=x,x=e(M,30),M=w,w=D;y=y+w&4294967295,E=E+M&4294967295,S=S+x&4294967295,R=R+H&4294967295,L=L+B&4294967295}return D=r(y)+r(E)+r(S)+r(R)+r(L),D.toLowerCase()};function se(){let d,e,r=new Promise((n,c)=>{d=n,e=c}),i={promise:r,isResolved:!1,resolve:n=>{i.isResolved=!0,d(n)},reject:e};return i}function k(d){let e=se();return e.resolve(d),e}async function $u(d,e=!1){return e?await d.promise:d.isResolved?await d.promise:null}var Yu=(E=>(E.VisitorId="visitorId",E.WindowId="windowId",E.SessionId="sessionId",E.IsMobile="IsMobile",E.IsCrawler="IsCrawler",E.VisitCount="visitCount",E.LastActionTime="lastActionTime",E.LimitReached="limitReached",E))(Yu||{});var vr,be,qt,De,Qt,$e,Ke,oe,Me,Rn,T,Ct,Er,Rt,si,et,Be,ht,tt,Wt,Pn,Ht,Oo,Ju,xo,Xu,Ao,zu,$t,ni,Do,Zu,wo,ed,Tn,bc,On,Sc,Lo,td,ko,rd,xn,Cc,Vo,id,Uo,nd,Mo,sd,An,Rc,No,od,Fo,ad,oi,To,Cn=class{constructor(e,r,i,n,c,f,y,E,S,R,L,w,M){o(this,Oo);o(this,xo);o(this,Ao);o(this,$t);o(this,Do);o(this,wo);o(this,Tn);o(this,On);o(this,Lo);o(this,ko);o(this,xn);o(this,Vo);o(this,Uo);o(this,Mo);o(this,An);o(this,No);o(this,Fo);o(this,oi);o(this,vr,void 0);o(this,be,void 0);o(this,qt,void 0);o(this,De,void 0);o(this,Qt,void 0);o(this,$e,void 0);o(this,Ke,void 0);o(this,oe,void 0);o(this,Me,void 0);o(this,Rn,void 0);o(this,T,void 0);o(this,Ct,void 0);o(this,Er,void 0);o(this,Rt,void 0);o(this,si,void 0);o(this,et,void 0);o(this,Be,void 0);o(this,ht,void 0);o(this,tt,void 0);o(this,Wt,void 0);o(this,Pn,void 0);o(this,Ht,void 0);m(this,vr,e),m(this,be,r),m(this,qt,i),m(this,De,n),m(this,Qt,c),m(this,$e,f),m(this,Ke,y),m(this,Rn,E),m(this,oe,S),m(this,Me,R),m(this,Wt,L),m(this,Er,w),m(this,Ht,M),m(this,T,{}),m(this,ht,{}),m(this,et,se()),m(this,Be,se()),m(this,Rt,se()),m(this,Ct,se()),m(this,tt,se()),m(this,si,!1),typeof t(this,vr)[S.bootstrap.globalEventArrayName]!="object"&&(t(this,vr)[S.bootstrap.globalEventArrayName]=[]),m(this,Pn,t(this,vr)[S.bootstrap.globalEventArrayName])}prepare(e){if(typeof e=="string"?t(this,T)["visitorId"]=e:h(this,xo,Xu).call(this),h(this,An,Rc).call(this),"sessionId"in t(this,T)||h(this,Fo,ad).call(this),t(this,Me).requireConsent?h(this,Do,Zu).call(this):t(this,Be).resolve(!0),h(this,Oo,Ju).call(this))t(this,De).info("Info exists"),t(this,tt).resolve(!1);else{t(this,Ht).isIdentified?(t(this,De).info("Info identified"),t(this,T)["IsCrawler"]=t(this,Ht).isCrawler,t(this,T)["IsMobile"]=t(this,Ht).isMobile,t(this,T)["visitorId"]=this.getVisitorId()):(t(this,De).info("Info requested"),h(this,Tn,bc).call(this));let r=!1,i=()=>{r||this.isTrackingAllowed(!0).then(n=>{n&&(this.sendRegisterRequest(),r=!0)})};t(this,Er).once("experiment.tool.activated",i),t(this,Er).once("recorder.tool.activated",i),t(this,Er).once("poll.tool.activated",i)}h(this,On,Sc).call(this),t(this,Ht).isIdentified&&h(this,$t,ni).call(this),t(this,et).resolve(t(this,T)),t(this,tt).promise.then(r=>!r&&h(this,$t,ni).call(this))}reset(){h(this,An,Rc).call(this),h(this,On,Sc).call(this),h(this,$t,ni).call(this),m(this,ht,{})}getVisitCount(){return Object.prototype.hasOwnProperty.call(t(this,T),"visitCount")?Promise.resolve(t(this,T)["visitCount"]):t(this,et).promise.then(e=>e["visitCount"])}getVisitorId(){return"visitorId"in t(this,T)?t(this,T)["visitorId"]:h(this,No,od).call(this)}getVisitorIdIfExists(){return t(this,T)["visitorId"]}getAccountId(){return t(this,Me).accountId}getDomainId(){return t(this,Me).id}getFingerPrint(){return this.getVisitorId()}getWindowId(){return Object.prototype.hasOwnProperty.call(t(this,T),"windowId")?Promise.resolve(t(this,T)["windowId"]):t(this,et).promise.then(e=>e["windowId"])}getSessionId(){return Object.prototype.hasOwnProperty.call(t(this,T),"sessionId")?Promise.resolve(t(this,T)["sessionId"]):t(this,et).promise.then(e=>e["sessionId"])}async getTrafficResponse(e,r){if(e in t(this,ht))return t(this,ht)[e];let i=await t(this,qt).request({url:t(this,oe).clientInfo.trafficUrl,method:"POST"},await h(this,Mo,sd).call(this,e,r));return i.status!==204||i.headers.get("X-Error")?(t(this,De).warn("Failed to sent client ping.",i.headers.get("X-Error"),i.body),t(this,ht)[e]=!1):t(this,ht)[e]=i.headers.get("X-Result")==="true",t(this,ht)[e]}isMobile(){return Object.prototype.hasOwnProperty.call(t(this,T),"IsMobile")?Promise.resolve(t(this,T)["IsMobile"]):t(this,et).promise.then(e=>e["IsMobile"])}isCrawler(){return Object.prototype.hasOwnProperty.call(t(this,T),"IsCrawler")?Promise.resolve(t(this,T)["IsCrawler"]):t(this,et).promise.then(e=>e["IsCrawler"])}isLimitReached(){return Object.prototype.hasOwnProperty.call(t(this,T),"limitReached")?Promise.resolve(t(this,T)["limitReached"]):t(this,et).promise.then(e=>e["limitReached"])}async isTrackingAllowed(e=!1){var f;let r=new URLSearchParams(t(this,Qt).search),i=t(this,be).getWithType("sessionStorage",t(this,oe).preview.sessionStorageKey);if(de(r,t(this,oe).preview.toolIdQueryParam)!==null&&de(r,t(this,oe).preview.variationIdQueryParam)!==null||typeof i!="undefined"||de(r,t(this,oe).screenshotRetake.tokenQueryParam)!==null&&de(r,t(this,oe).screenshotRetake.toolIdQueryParam)!==null||await this.isCrawler()||!e&&await t(this,tt).promise)return!1;let n=(f=t(this,Me).excludedIpAddresses)!=null?f:[];if(n.length==0&&!t(this,Me).requireConsent)return!0;
15if(!await t(this,Be).promise)return!1;let c=await this.getIp();return!n.some(y=>Po(y,c))}async getIp(){return t(this,Wt).ip?t(this,Ct).resolve(t(this,Wt).ip):await h(this,Tn,bc).call(this),t(this,Ct).promise}async verify(){let e=await t(this,qt).request({url:t(this,oe).clientInfo.verifyUrl,method:"POST"},h(this,Lo,td).call(this));e.status===204?t(this,De).info("Client verified.",e):t(this,De).warn("Failed to sent client ping.",e.body)}setConsent(e){return t(this,Be).resolve(e),h(this,wo,ed).call(this)}isConsentGiven(){return t(this,Be).promise}isConsentPending(){return!t(this,Be).isResolved}async sendRegisterRequest(){t(this,De).info("Registration requested");let e=await t(this,qt).request({url:t(this,oe).clientInfo.registerUrl,method:"POST"},await h(this,xn,Cc).call(this));if(e.headers.get("X-Error"))t(this,De).warn("Domain visitor limit reached."),t(this,tt).resolve(!0),t(this,T)["limitReached"]=!0;else if(e.status===201&&e.body.result){let r=e.body.result;!("IsMobile"in t(this,T))&&"IsMobile"in r&&(t(this,T)["IsMobile"]=r["IsMobile"]),!("IsCrawler"in t(this,T))&&"IsCrawler"in r&&(t(this,T)["IsCrawler"]=r["IsCrawler"]),!("visitorId"in t(this,T))&&"visitorId"in r&&(t(this,T)["visitorId"]=r["visitorId"]),t(this,tt).resolve(!1),t(this,T)["limitReached"]=!1}else t(this,tt).resolve(!1),t(this,T)["limitReached"]=!1,t(this,De).warn("Failed to fetch client info.",e.body);h(this,$t,ni).call(this)}getUserLocation(){return t(this,Wt)}};vr=new WeakMap,be=new WeakMap,qt=new WeakMap,De=new WeakMap,Qt=new WeakMap,$e=new WeakMap,Ke=new WeakMap,oe=new WeakMap,Me=new WeakMap,Rn=new WeakMap,T=new WeakMap,Ct=new WeakMap,Er=new WeakMap,Rt=new WeakMap,si=new WeakMap,et=new WeakMap,Be=new WeakMap,ht=new WeakMap,tt=new WeakMap,Wt=new WeakMap,Pn=new WeakMap,Ht=new WeakMap,Oo=new WeakSet,Ju=function(){return"IsCrawler"in t(this,T)&&"IsMobile"in t(this,T)&&"visitorId"in t(this,T)&&"windowId"in t(this,T)&&"sessionId"in t(this,T)&&"visitCount"in t(this,T)&&"lastActionTime"in t(this,T)},xo=new WeakSet,Xu=function(){let e=t(this,be).getWithType("cookies",t(this,oe).clientInfo.cookieName);if(typeof e!="undefined"){let i=JSON.parse(e),n=Object.values(Yu);for(let c in i)n.indexOf(c)===-1&&delete i[c];Object.assign(t(this,T),i),typeof t(this,T)["limitReached"]=="boolean"&&t(this,tt).resolve(t(this,T)["limitReached"])}let r=t(this,be).getWithType("sessionStorage",t(this,oe).clientInfo.sessionIdKey);r&&(t(this,T)["sessionId"]=r)},Ao=new WeakSet,zu=function(){return{["IsMobile"]:t(this,T)["IsMobile"],["IsCrawler"]:t(this,T)["IsCrawler"],["lastActionTime"]:t(this,T)["lastActionTime"],["visitCount"]:t(this,T)["visitCount"],["visitorId"]:t(this,T)["visitorId"],["limitReached"]:t(this,T)["limitReached"]}},$t=new WeakSet,ni=function(){t(this,be).setWithType("cookies",t(this,oe).clientInfo.cookieName,JSON.stringify(h(this,Ao,zu).call(this))),t(this,be).setWithType("sessionStorage",t(this,oe).clientInfo.sessionIdKey,t(this,T)["sessionId"])},Do=new WeakSet,Zu=function(){let e=!1,r=!1;if(t(this,Pn).some(n=>{n[0]==="setConsent"&&typeof n[1].value=="boolean"&&(e=!0,r=n[1].value)}),e)return t(this,Be).resolve(r);let i=t(this,be).getWithType("cookies",t(this,oe).clientInfo.consentCookieName);if(typeof i!="undefined"){let n=JSON.parse(i);t(this,Be).resolve(!!n.consent)}},wo=new WeakSet,ed=async function(){t(this,be).setWithType("cookies",t(this,oe).clientInfo.consentCookieName,JSON.stringify({consent:await t(this,Be).promise}))},Tn=new WeakSet,bc=async function(){if(!t(this,Rt).isResolved&&!t(this,si)){m(this,si,!0);let e=await t(this,qt).request({url:t(this,oe).clientInfo.infoUrl,method:"POST"},await h(this,xn,Cc).call(this));if(e.status===204)try{let r=JSON.parse(e.headers.get("X-Result"));t(this,Wt).ip=r.ip,t(this,Ct).resolve(r.ip),t(this,T)["IsMobile"]=r.IsMobile,t(this,T)["IsCrawler"]=r.IsCrawler,h(this,$t,ni).call(this),t(this,Rt).resolve(!0)}catch(r){t(this,De).error("Failed to parse client response headers.",e.headers),t(this,Ct).resolve(""),t(this,Rt).resolve(!1)}else t(this,De).warn("Failed to fetch client info.",e.body),t(this,Ct).resolve(""),t(this,Rt).resolve(!1)}return t(this,Rt).promise},On=new WeakSet,Sc=function(){let e=Date.now()/1e3||0;"lastActionTime"in t(this,T)&&"visitCount"in t(this,T)?(e-t(this,T)["lastActionTime"]>=t(this,oe).clientInfo.visitInterval&&++t(this,T)["visitCount"],t(this,T)["lastActionTime"]=e):(t(this,T)["lastActionTime"]=e,t(this,T)["visitCount"]=1)},Lo=new WeakSet,td=function(){return{domain_id:t(this,Me).id,url:t(this,Qt).href}},ko=new WeakSet,rd=async function(){let e=new Date,r={domain_id:t(this,Me).id,url:encodeURI(t(this,Qt).href),language:t(this,$e).languages?t(this,$e).languages[0]:t(this,$e).language||t(this,$e).userLanguage,languages:t(this,$e).languages?t(this,$e).languages:[t(this,$e).language||t(this,$e).userLanguage],screen:{current:{width:t(this,Ke).width,height:t(this,Ke).height}
15,available:{width:t(this,Ke).availWidth,height:t(this,Ke).availHeight}},time:e.getTime(),timezone:e.toString().split("GMT")[1].split(" (")[0],timezone_offset:e.getTimezoneOffset()};return t(this,Me).requireConsent&&!await t(this,Be).promise&&(delete r.language,delete r.languages,delete r.screen,delete r.timezone,delete r.timezone_offset),r},xn=new WeakSet,Cc=async function(){return{visitorId:this.getVisitorId(),visitorData:await h(this,ko,rd).call(this)}},Vo=new WeakSet,id=function(){return t(this,be).getWithType("sessionStorage",t(this,oe).clientInfo.domainProcessedKey)==="true"?!0:(t(this,be).setWithType("sessionStorage",t(this,oe).clientInfo.domainProcessedKey,"true"),!1)},Uo=new WeakSet,nd=function(e){let r=t(this,oe).clientInfo.sessionProcessedBaseKey+e.toString();return t(this,be).getWithType("sessionStorage",r)==="true"?!0:(t(this,be).setWithType("sessionStorage",r,"true"),!1)},Mo=new WeakSet,sd=async function(e,r){return{visitorId:t(this,T)["visitorId"],domain_id:t(this,Me).id.toString(),account_id:t(this,Me).accountId.toString(),session_id:await this.get
15SessionId(),window_id:await this.getWindowId(),tool_type:r,tool_id:e.toString(),is_new:t(this,T)["visitCount"]===1,is_sl_processed:h(this,Uo,nd).call(this,e),is_dl_processed:h(this,Vo,id).call(this),trafficData:{source:t(this,Qt).href,referrer:t(this,Rn).getReferrerUrl(),window:{current:{width:t(this,Ke).width,height:t(this,Ke).height},available:{width:t(this,Ke).availWidth,height:t(this,Ke).availHeight}}}}},An=new WeakSet,Rc=function(){return t(this,T)["windowId"]=h(this,oi,To).call(this,32),t(this,T)["windowId"]},No=new WeakSet,od=function(){return t(this,T)["visitorId"]=h(this,oi,To).call(this,19,null,!1),t(this,T)["visitorId"]},Fo=new WeakSet,ad=function(){return t(this,T)["sessionId"]=h(this,oi,To).call(this,32),t(this,be).setWithType("sessionStorage",t(this,oe).clientInfo.sessionIdKey,t(this,T)["sessionId"]),t(this,T)["sessionId"]},oi=new WeakSet,To=function(e,r,i=!0){let n=i?new Date().getTime().toString():"",c=[n];for(e=e||32,r=r||"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz";--e-n.length>=0;)c.push(r.charAt(Math.floor(Math.random()*r.length)));return c.join("")};var Ln,Ye,Kt,jo,rt,ve,kn,Pt,Go,ld,Bo,cd,qo,ud,Qo,dd,wn=class{constructor(e,r,i,n,c,f){o(this,Go);o(this,Bo);o(this,qo);o(this,Qo);o(this,Ln,void 0);o(this,Ye,void 0);o(this,Kt,void 0);o(this,jo,void 0);o(this,rt,void 0);o(this,ve,void 0);o(this,kn,void 0);o(this,Pt,void 0);m(this,Ln,e),m(this,Ye,r),m(this,Kt,c),m(this,ve,i),m(this,kn,n),m(this,jo,f),m(this,rt,[i.href]),m(this,Pt,[]),f.isSinglePageApplication&&(h(this,Bo,cd).call(this),h(this,Go,ld).call(this),h(this,qo,ud).call(this),h(this,Qo,dd).call(this))}addListener(e){t(this,Pt).push(e)}getReferrerUrl(){return t(this,rt).length>1?t(this,rt)[t(this,rt).length-2]:t(this,kn).referrer}};Ln=new WeakMap,Ye=new WeakMap,Kt=new WeakMap,jo=new WeakMap,rt=new WeakMap,ve=new WeakMap,kn=new WeakMap,Pt=new WeakMap,Go=new WeakSet,ld=function(){let e=t(this,Ye).pushState;t(this,Ye).pushState=(...r)=>{let i=t(this,ve).href,n=e.apply(t(this,Ye),r);if(i===t(this,ve).href)return n;t(this,Kt).info("History Url Change Detected",{method:"pushState",previousUrl:i,currentUrl:t(this,ve).href}),t(this,rt).push(t(this,ve).href);for(let c of t(this,Pt))c.apply(null,[i]);return n}},Bo=new WeakSet,cd=function(){let e=t(this,Ye).replaceState;t(this,Ye).replaceState=(...r)=>{let i=t(this,ve).href,n=e.apply(t(this,Ye),r);if(i===t(this,ve).href)return n;t(this,Kt).info("History Url Change Detected",{method:"replaceState",previousUrl:i,currentUrl:t(this,ve).href}),t(this,rt).push(t(this,ve).href);for(let c of t(this,Pt))c.apply(null,[i]);return n}},qo=new WeakSet,ud=function(){let e=t(this,Ye).go;t(this,Ye).go=r=>{let i=t(this,ve).href,n=e.apply(history,arguments);if(i===t(this,ve).href)return n;t(this,Kt).info("History Url Change Detected",{method:"go",previousUrl:i,currentUrl:t(this,ve).href}),t(this,rt).push(t(this,ve).href);for(let c of t(this,Pt))c.apply(null,[i]);return n}},Qo=new WeakSet,dd=function(){t(this,Ln).addEventListener("popstate",e=>{if(e.state){t(this,rt).push(t(this,ve).href),t(this,Kt).info("History Url Change Detected",{method:"popstate",previousUrl:null,currentUrl:t(this,ve).href});for(let i of t(this,Pt))i.apply(null,[null])}})};var Yt,Wo,Tt,ai=class{constructor(e,r){o(this,Yt,void 0);o(this,Wo,void 0);o(this,Tt,{});m(this,Yt,e),m(this,Wo,r)}insertScript(e,r=!1,i){if(t(this,Tt).hasOwnProperty(e))return t(this,Tt)[e];let n=new Promise((c,f)=>{let y=t(this,Yt).createElement("script");y.src=e,y.onload=()=>{c()},y.onerror=E=>{f(E.error)},r&&(y.async=!0),i&&(y.crossOrigin=i),t(this,Yt).head.insertAdjacentElement("beforeend",y)});return t(this,Tt)[e]=n,n}insertStyle(e){if(t(this,Tt).hasOwnProperty(e))return t(this,Tt)[e];let r=new Promise((i,n)=>{var c=t(this,Yt).createElement("link");c.rel="stylesheet",c.href=e,c.onload=()=>{i()},c.onerror=f=>{n(f.error)},t(this,Yt).head.insertAdjacentElement("beforeend",c)});return t(this,Tt)[e]=r,r}};Yt=new WeakMap,Wo=new WeakMap,Tt=new WeakMap;var Ir,Vn,Se,Un,Ot,Mn,Ho,fd,it=class{constructor(e,r=[]){o(this,Ho);o(this,Ir,null);o(this,Vn,void 0);o(this,Se,void 0);this.defaultProtocol="https";o(this,Un,!1);o(this,Ot,{});o(this,Mn,{});m(this,Vn,r),m(this,Ir,e),t(this,Ir)&&this.parseUrl(e.href)}getQueryVarsFromString(e){let r,i={},n;if(e=e.substring(0,1)==="?"?e.substring(1):e,e.length===0)return i;r=e.split("&"),n=r.length;for(let c=0;c<n;++c){let f=r[c].split("=");f.length&&(h(this,Ho,fd).call(this,f[0])&&(f[0]=f[0].toUpperCase()),typeof i[f[0]]=="undefined"&&(i[f[0]]=[]),i[f[0]].push(f.length>
151?decodeURIComponent(f[1]):""))}return i}getQueryVarValue(e){return typeof t(this,Ot)[e]!="undefined"?t(this,Ot)[e]:[]}removeQueryVar(e){var r=this.getLocation(),i=r.indexOf("?");if(i===-1)return this.parseUrl(r);var n=r.substr(i+1),c=r.substr(0,i);if(n){var f="",y=n.indexOf("#");y!==-1&&(f=n.substr(y+1),n=n.substr(0,y));var E,S=n.split("&"),R=S.length-1;for(R;R>=0;R--)E=S[R].split("=")[0],E===e&&S.splice(R,1);var L=S.join("&");L&&(c=c+"?"+L),f&&(c+="#"+f)}return this.parseUrl(c)}addQueryVar(e,r){var i=this.getLocation();r||(r="");var n=i.indexOf("#"),c=i.length;n===-1&&(n=c);var f=i.substr(0,n),y=i.substr(n,c-n);return f.indexOf("?")===-1?f+="?":f.indexOf("?",f.length-1)===-1&&(f+="&"),this.parseUrl(f+encodeURIComponent(e)+"="+encodeURIComponent(r)+y)}parseUrl(e){var i;e.indexOf("http")!==0&&(e=(t(this,Ir)?t(this,Ir).protocol:this.defaultProtocol)+"//"+e),e.indexOf("www.")!==-1&&(e=e.replace("www.",""));var r=/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;return m(this,Se,e.match(r)),t(this,Se)[4]=((i=t(this,Se)[4])!=null?i:"").replace(":",""),m(this,Ot,this.getQueryVarsFromString(this.getQueryString())),this}getDomain(){var e=t(this,Se)[11];return typeof e!="undefined"&&e.substring(0,4)==="www."?e.substring(4):e}getPath(){return typeof t(this,Se)[13]=="undefined"||t(this,Se)[13]===""?"/":t(this,Se)[13]}getFullPath(){return this.getPath()+this.getQueryString()}getQueryString(){return!t(this,Se)||typeof t(this,Se)[16]=="undefined"?"":t(this,Se)[16]}getQueryVars(e=!1){if(e){if(!t(this,Un)){for(let r in t(this,Ot))t(this,Mn)[r]=t(this,Ot)[r].filter((i,n,c)=>c.indexOf(i)==n);m(this,Un,!0)}return t(this,Mn)}return t(this,Ot)}getFragment(){return typeof t(this,Se)[17]=="undefined"?"":t(this,Se)[17]}getLocation(){return t(this,Se)[0]}};Ir=new WeakMap,Vn=new WeakMap,Se=new WeakMap,Un=new WeakMap,Ot=new WeakMap,Mn=new WeakMap,Ho=new WeakSet,fd=function(e){let r=e.toUpperCase();return t(this,Vn).indexOf(r)!==-1};var $o=(x=>(x.Device="device",x.Domain="domain",x.Subdomain="subdomain",x.Ip="ip",x.Page="page",x.Referrer="referrer",x.Visitor="visitor",x.Campaign="campaign",x.Experiment="experiment",x.Cookie="cookie",x.Css="css",x.Js="js",x.GeoLocation="geolocation",x.Event="event",x))($o||{});var Qg=["js_variable","variation","selector","custom_event","mpk"];function Ah(){return{["device"]:k(!0),["domain"]:k(!0),["subdomain"]:k(!0),["ip"]:k(!0),["page"]:k(!0),["referrer"]:k(!0),["visitor"]:k(!0),["campaign"]:k(!0),["experiment"]:k(!0),["cookie"]:k(!0),["css"]:k(!0),["js"]:k(!0),["geolocation"]:k(!0),["event"]:k(!0),all:k(!0)}}function Dh(){return{["device"]:k(!1),["domain"]:k(!1),["subdomain"]:k(!1),["ip"]:k(!1),["page"]:k(!1),["referrer"]:k(!1),["visitor"]:k(!1),["campaign"]:k(!1),["experiment"]:k(!1),["cookie"]:k(!1),["css"]:k(!1),["js"]:k(!1),["geolocation"]:k(!1),["event"]:k(!1),all:k(!1)}}var ge,Xt,Ko,At,jn,nt,ci,Ne,Gn,ui,di,Dt,wt,_r,Lt,br,Yo,hd,Jo,gd,Xo,md,zo,pd,Zo,yd,ea,vd,gt,Jt,Bn,Pc,ta,Ed,ra,Id,zt,li,xc,wh,ia,_d,Ac,Lh,Cr,Nn,na,bd,qn,Tc,sa,Sd,Qn,Oc,oa,Cd,st,xt,kt,Sr,aa,Rd,Fn=class{constructor(e,r,i,n,c,f,y,E,S,R){o(this,wt);o(this,Lt);o(this,Yo);o(this,Jo);o(this,Xo);o(this,zo);o(this,Zo);o(this,ea);o(this,gt);o(this,Bn);o(this,ta);o(this,ra);o(this,zt);o(this,xc);o(this,ia);o(this,Ac);o(this,Cr);o(this,na);o(this,qn);o(this,sa);o(this,Qn);o(this,oa);o(this,st);o(this,kt);o(this,aa);o(this,ge,void 0);o(this,Xt,void 0);o(this,Ko,void 0);o(this,At,void 0);o(this,jn,void 0);o(this,nt,void 0);o(this,ci,void 0);o(this,Ne,void 0);o(this,Gn,void 0);o(this,ui,void 0);o(this,di,{});o(this,Dt,void 0);m(this,ge,e),m(this,Xt,r),m(this,Ko,i),m(this,At,n),m(this,jn,c),m(this,nt,f),m(this,ci,y),m(this,Ne,E),m(this,Gn,S),m(this,ui,R),m(this,Dt,new Map)}perform(e){let r=Ah();r.all=se();try{let i={};for(let f of e){let y=h(this,aa,Rd).call(this,f);r[f.type]=se(),typeof i[f.type]=="undefined"&&(i[f.type]=[]),i[f.type].push(y.promise)}Object.keys(i).map(f=>{Ro(i[f],y=>!y).then(y=>r[f].resolve(!y))});let n=[],c=Object.values($o);for(let f of c)n.push(r[f].promise);return Ro(n,f=>!f,!0).then(f=>{f&&e.filter(y=>y.type==="css").forEach(y=>
15y.rules.forEach(E=>{t(this,Dt).has(E)&&t(this,Dt).get(E)()}))}),Promise.all(n).then(f=>{let y={};for(let E=0;E<f.length;++E)y[c[E]]=f[E];t(this,At).info("Targeting fully resolved",e,y),r.all.resolve(f.every(E=>E===!0))}),r}catch(i){return t(this,At).error("Targeting Error",{message:i}),Dh()}}static async getObjectFromTargetingResult(e,r=!0){r&&await e.all.promise;let i={},n;for(n in e)i[n]=await $u(e[n],r);return i}};ge=new WeakMap,Xt=new WeakMap,Ko=new WeakMap,At=new WeakMap,jn=new WeakMap,nt=new WeakMap,ci=new WeakMap,Ne=new WeakMap,Gn=new WeakMap,ui=new WeakMap,di=new WeakMap,Dt=new WeakMap,wt=new WeakSet,_r=function(e,r=!0,i=!0){return e=String(e),r&&e.startsWith("/")&&(e=e.slice(1)),i&&e.endsWith("/")&&(e=e.slice(0,-1)),e},Lt=new WeakSet,br=function(e){if(e.length===0)return"";if(t(this,di).hasOwnProperty(e))return t(this,di)[e];let r=new URLSearchParams(e);for(let[n]of r.entries())for(let c of t(this,nt).internalQueryParameters)n.toUpperCase()===c.toUpperCase()&&r.delete(n);let i=r.toString();return i.length!==0&&(i="?"+i),t(this,di)[e]=i,i},Yo=new WeakSet,hd=function(e){let r=t(this,ge).hostname;switch(e.type){case"device":if(e.value==="all"){let D=se();return D.resolve(!0),D}let i=se();return t(this,Xt).isMobile().then(D=>{i.resolve(D&&e.value==="mobile"||!D&&e.value==="desktop")}),i;case"subdomain":return e.value==="*"?k(!0):e.value===""?k(r===t(this,ci).url):k(r===e.value+"."+t(this,ci).url);case"domain":let n=e.value.length;return e.value==="*"?k(!0):k(r.substr(0-n)===e.value&&(r.length===n||r[r.length-n-1]==="."));case"ip":if(!e.value){let D=se();return D.resolve(!1),D}let c=se();return t(this,Xt).getIp().then(D=>D?c.resolve(Po(e.value,D)):(t(this,At).warn("Targeting with ip but ip is not set."),c.resolve(!1))),c;case"visitor":let f=se();return t(this,Xt).getVisitCount().then(D=>{f.resolve(e.value==="all"||e.value==="new"&&D<=1||e.value==="returning"&&D>1)}),f;case"variation":let y=se();return h(this,Jo,gd).call(this,e.value).then(D=>{y.resolve(D)}),y;case"selector":let E=se();return h(this,Xo,md).call(this,e).then(D=>{E.resolve(D)}),E;case"referrer":if(e.comparator){let D=t(this,ui).getReferrerList(),te=Object.values(D).filter(j=>h(this,gt,Jt).call(this,e,j));return k(te.length!==0)}else return k(t(this,ui).checkIfUrlExists(e.value));case"cookie_variable":return k(h(this,gt,Jt).call(this,e,t(this,jn).getWithType("cookies",e.key,void 0)));case"pathname":let S=t(this,ge).pathname+h(this,Lt,br).call(this,t(this,ge).search);return e.comparator==="simple"&&(S=t(this,ge).pathname),k(h(this,gt,Jt).call(this,e,S));case"query_key":let L=new it(t(this,ge),t(this,nt).internalQueryParameters).getQueryVarsFromString(h(this,Lt,br).call(this,t(this,ge).search));return typeof L[e.key]=="undefined"?k(!1):e.comparator?k(h(this,gt,Jt).call(this,e,L[e.key])):e.value==="*"?k(L.hasOwnProperty(e.key)):k(L[e.key].indexOf(e.value)!==-1);case"simple":return k(h(this,wt,_r).call(this,t(this,ge).pathname)===h(this,wt,_r).call(this,e.value));case"exact":return k(t(this,ge).pathname+h(this,Lt,br).call(this,t(this,ge).search)===e.value);case"contains":return k((t(this,ge).pathname+h(this,Lt,br).call(this,t(this,ge).search)).indexOf(e.value)!==-1);case"starts_with":return k(h(this,wt,_r).call(this,t(this,ge).pathname+h(this,Lt,br).call(this,t(this,ge).search),!0,!1).indexOf(h(this,wt,_r).call(this,e.value,!0,!1))===0);case"regex":let w=new RegExp(e.value);return k(w.test(t(this,ge).pathname+h(this,Lt,br).call(this,t(this,ge).search)));case"mpk":let M=se();return h(this,zo,pd).call(this,e).then(D=>{M.resolve(D)}),M;case"js_variable":let x=se();return h(this,Zo,yd).call(this,e).then(D=>{x.resolve(D)}),x;case"country":let H=t(this,Xt).getUserLocation();return H.country?k(e.value.toString().toUpperCase()===H.country.toString().toUpperCase()&&(e.key===null||!!H.region&&e.key.toString().toUpperCase()===H.region.toString().toUpperCase())):k(!1);case"custom_event":let B=se();return h(this,ea,vd).call(this,e).then(D=>{B.resolve(D)}),B;default:return t(this,At).error("Targeting Error",{message:e.type+" type is not implemented"}),k(!1)}},Jo=new WeakSet,gd=function(e){let r=()=>t(this,Gn).getHistoryByEventName("experiment.variation.decided").filter(c=>parseInt(c.variationId)===parseInt(e)).length>0;return new Promise(i=>{if(r())i(!0);else{let f=0,y=setInterval(()=>{r()&&(clearInterval(y),i(!0)),f+=100,f>=5e3&&(clearInterval(y),i(!1))},100)}})},Xo=new WeakSet,md=function(e){return new Promise((r,i)=>{let n,c=(E=!0)=>{r(E),n&&n.disconnect()},f=(E,S)=>E.nodeType!==t(this,Ne).Node.ELEMENT_NODE?!1:E.matches(S)?!0:E.querySelector(S)!==null,y=E=>{for(let S of E)if(f(S.target,e.value)&&c(),S.addedNodes&&S.addedNodes.length>0)for(let R of S.addedNodes)f(R,e.value)&&c()};t(this,Ne).document.querySelector(e.value)!==null?c():(n=new(t(this,Ne)).MutationObserver(y),n.observe(t(this,Ne).document,{attributes:!0,childList:!0,subtree:!0}),t(this,Dt).set(e,()=>c(!1)))})},zo=new WeakSet,pd=function(e){return new Promise(r=>{let i=()=>{e.comparator?r(h(this,gt,Jt).call(this,e,t(this,Ne)[t(this,nt).targeting.multiPageKey])):r(h(this,zt,li).call(this,t(this,Ne)[t(this,nt).targeting.multiPageKey],e.value,!1))};if(typeof t(this,Ne)[t(this,nt).targeting.multiPageKey]!="undefined")i();else{let f=0,y=setInterval(()=>{typeof t(this,Ne)[t(this,nt).targeting.multiPageKey]!="undefined"&&(clearInterval(y),i()),f+=100,f>=5e3&&(clearInterval(y),r(!1))},100)}})},Zo=new WeakSet,yd=function(e){let r=()=>{let i=qu(t(this,Ne),e.key);return i!==void 0?h(this,gt,Jt).call(this,e,i):"is_not_defined"===e.comparator?!0:("is_defined"===e.comparator,null)};return new Promise(i=>{if(r())i(!0);else{let f=0,y=setInterval(()=>{let E=r();E!==null&&(clearInterval(y),i(E)),f+=500,f>=3e4&&(clearInterval(y),i(!1))},500)}})},ea=new WeakSet,vd=function(e){let r=()=>{var y;let i=(y=t(this,Ne)[t(this,nt).bootstrap.globalEventArrayName])!=null?y:[],n=["eventConversion","custom"],c=i.filter(E=>typeof E[1]!="undefined"&&"value"in E[1]&&n.indexOf(E[0])!==-1);if(c.length===0)return null;let f=c.map(E=>{let S=E;return"name"in E[1],S=E,h(this,gt,Jt).call(this,e,S[1].value)});return f.length===0?null:f.some(E=>E===!0)};return new Promise(i=>{if(r())i(!0);else{let f=setInterval(()=>{let y=r();y!==null&&(clearInterval(f),i(y))},500)}})},gt=new WeakSet,Jt=function(e,r){switch(e.comparator){case"is_defined":return!(r===void 0||r===""||r===null);case"is_not_defined":return r===void 0||r===""||r===null;case"contains":return h(this,Bn,Pc).call(this,r,e.value);case"not_contains":return h(this,ta,Ed).call(this,r,e.value);case"exact":return h(this,zt,li).call(this,r,e.value,!1);case"simple":return h(this,zt,li).call(this,r,e.value,!0);case"starts_with":return h(this,ra,Id).call(this,r,e.value);case"regex":return h(this,ia,_d).call(this,r,e.value);case"equal":return h(this,Cr,Nn).call(this,r,e.value);case"not_equal":return h(this,na,bd).call(this,r,e.value);case"greater_than":return h(this,qn,Tc).call(this,r,e.value);case"greater_or_equal":return h(this,sa,Sd).call(this,r,e.value);case"less_than":return h(this,Qn,Oc).call(this,r,e.value);case"less_or_equal":return h(this,oa,Cd).call(this,r,e.value);default:return t(this,At).error("Targeting Error, Comparator missing",{message:e.comparator+" comparator is not implemented: "+JSON.stringify(e)}),!1}},Bn=new WeakSet,Pc=function(e,r){return e=h(this,st,xt).call(this,e,!0),r=h(this,st,xt).call(this,r,!0),e.indexOf(r)!==-1},ta=new WeakSet,Ed=function(e,r){return!h(this,Bn,Pc).call(this,e,r)},ra=new WeakSet,Id=function(e,r){return e=h(this,st,xt).call(this,e,!0),r=h(this,st,xt).call(this,r,!0),e.indexOf(r)===0},zt=new WeakSet,li=function(e,r,i=!1){return e=h(this,wt,_r).call(this,h(this,st,xt).call(this,e,i)),r=h(this,wt,_r).call(this,h(this,st,xt).call(this,r,i)),e===r},xc=new WeakSet,wh=function(e,r,i=!1){return!h(this,zt,li).call(this,e,r,i)},ia=new WeakSet,_d=function(e,r){return e=h(this,st,xt).call(this,e,!1),r=h(this,st,xt).call(this,r,!1),new RegExp(r).test(e)},Ac=new WeakSet,Lh=function(e,r){return e=h(this,kt,Sr).call(this,e),r=h(this,kt,Sr).call(this,r),isNaN(r)||isNaN(e)?!1:e===r},Cr=new WeakSet,Nn=function(e,r){let i=ii(e),n=ii(r);return h(this,zt,li).call(this,i,n)},na=new WeakSet,bd=function(e,r){return!h(this,Cr,Nn).call(this,e,r)},qn=new WeakSet,Tc=function(e,r){return e=h(this,kt,Sr).call(this,e),r=h(this,kt,Sr).call(this,r),isNaN(r)||isNaN(e)?!1:e>r},sa=new WeakSet,Sd=function(e,r){return h(this,Cr,Nn).call(this,e,r)||h(this,qn,Tc).call(this,e,r)},Qn=new WeakSet,Oc=function(e,r){return e=h(this,kt,Sr).call(this,e),r=h(this,kt,Sr).call(this,r),isNaN(r)||isNaN(e)?!1:e<r},oa=new WeakSet,Cd=function(e,r){return h(this,Cr,Nn).call(this,e,r)||h(this,Qn,Oc).call(this,e,r)},st=new WeakSet,xt=function(e,r=!1){return r?e.toString().toLowerCase():e.toString()},kt=new WeakSet,Sr=function(e){return parseFloat(e.toString())},aa=new WeakSet,Rd=function(e){let r=se(),i=[];if(e.rules.length===0)r.resolve(e.inclusion&&!0||!e.inclusion&&!1);else{for(let n of e.rules){let c=h(this,Yo,hd).call(this,n);i.push(c.promise)}Ro(i,n=>n===!0,!0).then(n=>{r.resolve(e.inclusion&&n||!e.inclusion&&!n),e.type==="css"&&e.rules.forEac
15h(c=>{t(this,Dt).has(c)&&t(this,Dt).get(c)()})})}return r};var la,mt,Rr,Wn,ca,Pd,Hn=class{constructor(e){o(this,Rr);o(this,ca);o(this,la,void 0);o(this,mt,void 0);m(this,la,e),m(this,mt,{})}connect(e,r){return t(this,mt)[e]=new WebSocket(r),t(this,mt)[e]}disconnect(e){t(this,mt)[e]&&t(this,mt)[e].close(),delete t(this,mt)[e]}isConnected(e){let r=h(this,Rr,Wn).call(this,e);return r?r.readyState===WebSocket.OPEN:!1}addEventListener(e,r,i){let n=h(this,Rr,Wn).call(this,e);n&&i&&n.addEventListener(r,i)}send(e,r){return this.isConnected(e)?(typeof r=="string"||r instanceof Uint8Array?h(this,Rr,Wn).call(this,e).send(r):h(this,Rr,Wn).call(this,e).send(h(this,ca,Pd).call(this,r)),!0):!1}};la=new WeakMap,mt=new WeakMap,Rr=new WeakSet,Wn=function(e){return t(this,mt)[e]},ca=new WeakSet,Pd=function(e){try{return JSON.stringify(e)}catch(r){throw new Error(r)}};var Pr,ua,we,Tr,Zt,fi,$n=class{constructor(e){o(this,Zt);o(this,Pr,void 0);o(this,ua,"figpii::");o(this,we,{});o(this,Tr,{});m(this,Pr,e)}getHistoryByEventName(e){var r;return(r=t(this,Tr)[e])!=null?r:[]}addHistory(e,r){return Object.prototype.hasOwnProperty.call(t(this,Tr),e)||(t(this,Tr)[e]=[]),t(this,Tr)[e].push(r),this}addListener(e,r){return h(this,Zt,fi).call(this,e)||(t(this,we)[e]=[]),t(this,we)[e].push(r),this}removeListener(e,r){let i=h(this,Zt,fi).call(this,e)?t(this,we)[e]:[];return t(this,we)[e]=i.filter(n=>n!==r),this}removeAllListeners(e){if(e)h(this,Zt,fi).call(this,e)&&delete t(this,we)[e];else for(let r in t(this,we))delete t(this,we)[r];return this}listListeners(e){return t(this,we)[e]||[]}dispatchEvent(e,r=null){if(this.addHistory(e,r),t(this,Pr)){let n=new(t(this,Pr)).CustomEvent(t(this,ua)+e,{detail:r});t(this,Pr).dispatchEvent(n)}return h(this,Zt,fi).call(this,e)?(t(this,we)[e].forEach(n=>n(r)),!0):!1}once(e,r){h(this,Zt,fi).call(this,e)||(t(this,we)[e]=[]);let i=n=>{r(n),this.off(e,i)};return t(this,we)[e].push(i),this}off(e,r){return this.removeListener(e,r)}};Pr=new WeakMap,ua=new WeakMap,we=new WeakMap,Tr=new WeakMap,Zt=new WeakSet,fi=function(e){return Object.prototype.hasOwnProperty.call(t(this,we),e)};var Td=(d,e)=>{let r=d.getWithType("sessionStorage",e);return typeof r=="undefined"?{}:JSON.parse(r)},Od=(d,e,r,i)=>{let n=de(d,e),c=de(d,r),f=de(d,i);return n!==null&&c!==null&&f!==null?[n,c,f]:null};var Dc=(d,e,r)=>{e.setWithType("sessionStorage",r,JSON.stringify(d))},xd=(d,e,r,i,n)=>de(d,i)!==null&&de(d,n)!==null||!!e.getWithType("sessionStorage",r);var Xn,K,Ee,re,at,hi,me,Q,lt,gi,mi,pi,yi,pt,tr,yt,Or,z,vi,xr,rr,Ei,ct,Ar,Xe,Ii,Dr,qe,ot,zn,wc,pa,Ad,ya,Dd,va,wd,Ea,Ld,Zn,Lc,Fe,Je,Ia,kd,es,kc,ts,Vc,_a,Vd,_i,da,ba,Ud,Sa,Md,rs,Uc,Ca,Nd,Ra,Fd,Pa,jd,Ta,Gd,bi,fa,wr,Kn,Si,ha,Oa,Bd,Ci,ga,xa,qd,Ri,ma,Aa,Qd,is,Mc,ns,Nc,Da,Wd,ss,Fc,wa,Hd,La,$d,ka,Kd,Va,Yd,os,jc,Ua,Jd,Ma,Xd,Na,zd,Lr,Yn,as,Gc,Fa,Zd,ls,Bc,ja,ef,kr,Jn,cs,qc,Ga,tf,us,Qc,ds,Wc,Ba,rf,fs,Hc,qa,nf,Ce=class{constructor(e,r,i,n,c,f,y,E,S,R,L,w){o(this,pa);o(this,ya);o(this,va);o(this,Ea);o(this,Zn);o(this,Fe);o(this,Ia);o(this,es);o(this,ts);o(this,_a);o(this,_i);o(this,ba);o(this,Sa);o(this,rs);o(this,Ca);o(this,Ra);o(this,Pa);o(this,Ta);o(this,bi);o(this,wr);o(this,Si);o(this,Oa);o(this,Ci);o(this,xa);o(this,Ri);o(this,Aa);o(this,is);o(this,ns);o(this,Da);o(this,ss);o(this,wa);o(this,La);o(this,ka);o(this,Va);o(this,os);o(this,Ua);o(this,Ma);o(this,Na);o(this,Lr);o(this,as);o(this,Fa);o(this,ls);o(this,ja);o(this,kr);o(this,cs);o(this,Ga);o(this,us);o(this,ds);o(this,Ba);o(this,fs);o(this,qa);o(this,K,void 0);o(this,Ee,void 0);o(this,re,void 0);o(this,at,void 0);o(this,hi,void 0);o(this,me,void 0);o(this,Q,void 0);o(this,lt,void 0);o(this,gi,void 0);o(this,mi,void 0);o(this,pi,void 0);o(this,yi,!1);o(this,pt,void 0);o(this,tr,void 0);o(this,yt,{});o(this,Or,void 0);o(this,z,{});o(this,vi,void 0);o(this,xr,void 0);o(this,rr,void 0);o(this,Ei,!1);o(this,ct,{});o(this,Ar,void 0);o(this,Xe,void 0);o(this,Ii,void 0);o(this,Dr,!1);m(this,me,E),m(this,re,e),m(this,at,r),m(this,Q,i),m(this,lt,n),m(this,gi,c),m(this,mi,f),m(this,pi,y),m(this,Ee,S),m(this,K,R),m(this,hi,L),m(this,vi,new Set),m(this,xr,new Set),m(this,rr,new Set),m(this,pt,w),m(this,Or,se());for(let M in t(this,K).experiments)t(this,K).experiments[M].status===19||t(this,K).experiments[M].analyticsVersion==="v2"||(t(this,yt)[M]=se());typeof t(this,re)[S.bootstrap.globalEventArrayName]!="object"&&(t(this,re)[S.bootstrap.globalEventArrayName]=[]),m(this,Ar,t(this,re)[S.bootstrap.globalEventArrayName]),m(this,Ii,se())}setCrossDomain(e){m(this,tr,e)}
15async init(){if(m(this,Dr,!1),t(this,rr).clear(),t(this,hi).sendVisitorId(t(this,at).getVisitorId()),t(this,tr)&&h(this,Si,ha).call(this,t(this,tr).getVariationsFromCurrentUrl()),t(this,at).isTrackingAllowed(!0).then(e=>{e&&(h(this,Aa,Qd).call(this),h(this,va,wd).call(this),h(this,Ea,Ld).call(this))}),await h(this,Ta,Gd).call(this),Object.keys(t(this,K).experiments).length===0){t(this,Q).info("No active experiment tools!");return}await h(this,rs,Uc).call(this),h(this,Ba,rf).call(this)||h(this,bi,fa).call(this)}getTargetingResultForExperimentId(e){let r=t(this,K).experiments[e];return r?h(this,pa,Ad).call(this,t(this,gi).perform(r.targetingGroups),r):Promise.resolve(0)}async reset(){m(this,Dr,!1),m(this,yi,!1),h(this,qa,nf).call(this),t(this,rr).clear(),await h(this,rs,Uc).call(this)}getActiveInstances(){let e=[];for(let r in t(this,z))t(this,z)[r].isActive&&e.push(t(this,K).experiments[r]);return e}decideTrafficAllocationOnFrontend(e){if(e.targetVisitorPercentage>=100)return!0;let r=e.targetVisitorPercentage/100;return Math.random()<r}getActiveVariations(){let e={};for(let r in t(this,z))t(this,z)[r].isActive&&t(this,z)[r].variationId!==null&&(e[r]=t(this,z)[r].variationId);return e}getAllChosenVariations(){let e={};for(let r in t(this,z))t(this,z)[r].variationId!==null&&(e[r]=t(this,z)[r].variationId);for(let r in t(this,K).experiments){if(e[r])continue;let i=h(this,wr,Kn).call(this,r);i!==null&&(e[r]=i)}return e}getRunningInstances(){return Object.values(t(this,K).experiments)}setVariationChoice(e,r){t(this,ct)[e]&&(t(this,ct)[e].variationId=r,Dc(t(this,ct),t(this,lt),t(this,Ee).preview.sessionStorageKey)),h(this,Si,ha).call(this,{[e]:r})}isExperimentLoaded(e,r){return e=e.toString(),r=r?r.toString():null,Object.prototype.hasOwnProperty.call(t(this,z),e)&&(r&&t(this,z)[e].variationId===r||!r)?t(this,z)[e].loading.promise:Promise.resolve(!1)}previewPatchLoaded(){return t(this,Ii).promise}},er=Ce;Xn=new WeakMap,K=new WeakMap,Ee=new WeakMap,re=new WeakMap,at=new WeakMap,hi=new WeakMap,me=new WeakMap,Q=new WeakMap,lt=new WeakMap,gi=new WeakMap,mi=new WeakMap,pi=new WeakMap,yi=new WeakMap,pt=new WeakMap,tr=new WeakMap,yt=new WeakMap,Or=new WeakMap,z=new WeakMap,vi=new WeakMap,xr=new WeakMap,rr=new WeakMap,Ei=new WeakMap,ct=new WeakMap,Ar=new WeakMap,Xe=new WeakMap,Ii=new WeakMap,Dr=new WeakMap,qe=new WeakSet,ot=function(e){return typeof e=="string"?parseFloat(e):e},zn=new WeakSet,wc=function(e){return typeof e=="string"?parseInt(e):e},pa=new WeakSet,Ad=async function(e,r){return await h(this,ns,Nc).call(this,e,r)?2:await h(this,is,Mc).call(this,e)?1:0},ya=new WeakSet,Dd=function(e){let r=e.length;if(r===0)return null;if(r===1)return e[0];let i=Math.random()*100,n=0;for(let c=0;c<r;c++)if(n+=e[c].percent,i<n)return e[c];return e[e.length-1]},va=new WeakSet,wd=function(){let e=[].push;t(this,Ar).push=(...r)=>{for(let i=0,n=r.length;i<n;++i)h(this,Zn,Lc).call(this,r[i]);return e.apply(t(this,Ar),r)}},Ea=new WeakSet,Ld=function(){t(this,Ar).forEach(h(this,Zn,Lc).bind(this))},Zn=new WeakSet,Lc=function(e){var i,n,c,f,y,E,S,R,L,w,M;function r(x){return typeof x=="string"||x instanceof String?x.toString().trim().substring(0,32):typeof x=="number"?x:null}switch(e[0]){case"addRevenue":{if(e[1]===void 0||e[1].revenue===void 0){t(this,Q).warn("AddRevenue needs `revenue`");break}let x=h(i=Ce,qe,ot).call(i,e[1].revenue);h(this,Fe,Je).call(this,"ecommerce.set_revenue",{revenue:x}),t(this,me).dispatchEvent("addRevenue",{value:x});break}case"eventConversion":{if(e[1]===void 0||e[1].value===void 0){t(this,Q).warn("EventConversion needs `value`");break}h(this,Fe,Je).call(this,"analytics.event_conversion",{name:e[1].value,category:t(Ce,Xn)}),t(this,me).dispatchEvent("eventConversion",{value:e[1].value});break}case"addItem":{if(e[1]===void 0||e[1].id===void 0||e[1].price===void 0){t(this,Q).warn("AddItem needs `id` and `price`");break}let x=e[1].quantity?h(n=Ce,zn,wc).call(n,e[1].quantity):1;h(this,ts,Vc).call(this,e[1].id,e[1].price,x,(c=e[1].name)!=null?c:null,(f=e[1].category)!=null?f:null);break}case"removeItem":{if(e[1]===void 0||e[1].id===void 0){t(this,Q).warn("RemoveItem needs `id`");break}h(this,Fe,Je).call(this,"ecommerce.cart_item_removed",{sku:e[1].id});break}case"updateCartAmount":{if(e[1]===void 0||e[1].total===void 0){t(this,Q).warn("UpdateCartAmount needs `total`");break}h(this,Fe,Je).call(this,"ecommerce.cart_amount_updated",{grandTotal:h(y=Ce,qe,ot).call(y,e[1].total)});break}case"clearItems":{h(this,Fe,Je).call(this,"ecommerce.cart_items_cleared");break}case"addItemView":{if(e[1]===void 0||e[1].id===void 0){t(this,Q).warn("AddItemView needs `id`");break}let x=h(this,_i,da).call(this,(E=e[1].category)!=null?E:null);h(this,Fe,Je).call(this,"ecommerce.add_item_view",{sku:e[1].id,name:(S=e[1].name)!=null?S:null,category:x,price:h(L=Ce,qe,ot).call(L,(R=e[1].price)!=null?R:null)});break}case"addCategoryView":{if(e[1]===void 0||e[1].category===void 0){t(this,Q).warn("AddCategoryView needs `category`");break}let x=h(this,_i,da).call(this,(w=e[1].category)!=null?w:null);h(this,Fe,Je).call(this,"ecommerce.add_category_view",{sku:!1,name:!1,category:x});break}case"processOrder":{if(e[1]===void 0||e[1].revenue===void 0){t(this,Q).warn("ProcessOrder needs `revenue`");break}h(this,_a,Vd).call(this,e[1].orderId,h(M=Ce,qe,ot).call(M,e[1].revenue));break}case"setCustomVisitsVariable":{let x=Object.keys(e[1]).length>0?e[1]:null;if(x){let H=Hu(x);h(this,Fe,Je).call(this,"analytics.set_custom_variable",{index:4,name:"userDefinedCustomVariable",value:H,scope:"visit"})}break}case"setVisitorId":if(e[1]===void 0||e[1].value===void 0){t(this,Q).warn("Visitor ID needs `value`");break}h(this,Fe,Je).call(this,"analytics.set_custom_variable",{index:5,name:"userDefinedVisitorId",value:e[1].value,scope:"visit"}),t(this,me).dispatchEvent("setVisitorId",{value:e[1].value});break;default:if(e[0]&&e[1]){let x=r(e[0]),H=r(e[1].value);x&&H!==null&&t(this,me).dispatchEvent("custom",{name:x,value:H})}break}},Fe=new WeakSet,Je=function(e,r){h(this,Ia,kd).call(this,e,r);for(let i in t(this,yt))h(this,es,kc).call(this,i,e,r)},Ia=new WeakSet,kd=function(e,r){t(this,K).analyticsId!==null&&(t(this,Or).isResolved?t(this,me).dispatchEvent(e,r):t(this,Or).promise.then(()=>{t(this,me).dispatchEvent(e,r)}))},es=new WeakSet,kc=function(e,r,i){if(!Object.prototype.hasOwnProperty.call(t(this,yt),e))return;let n={toolId:e,...i};t(this,yt)[e].isResolved?t(this,me).dispatchEvent(r,n):t(this,yt)[e].promise.then(()=>{t(this,me).dispatchEvent(r,n)})},ts=new WeakSet,Vc=function(e,r,i=1,n=null,c=null){var f,y;c=h(this,_i,da).call(this,c),h(this,Fe,Je).call(this,"ecommerce.cart_item_added",{sku:e,name:n,category:c,price:h(f=Ce,qe,ot).call(f,r),quantity:h(y=Ce,zn,wc).call(y,i)})},_a=new WeakSet,Vd=function(e,r,i,n,c,f=!1,y=[]){var E,S,R,L,w;y.length!==0&&y.map(M=>{h(this,ts,Vc).call(this,M.id,M.price,M.quantity,M.name,M.category)}),h(this,Fe,Je).call(this,"ecommerce.process_order",{orderId:e,grandTotal:h(E=Ce,qe,ot).call(E,r),subTotal:i?h(S=Ce,qe,ot).call(S,i):void 0,tax:n?h(R=Ce,qe,ot).call(R,n):void 0,shipping:c?h(L=Ce,qe,ot).call(L,c):void 0,discount:f?h(w=Ce,qe,ot).call(w,f):!1})},_i=new WeakSet,da=function(e){return e?(Array.isArray(e)?(e.length>5&&(t(this,Q).warn("Item categories should not have more than 5 categories. Using first 5 categories."),e=e.splice(0,5)),e=e.map(r=>ii(r))):e=ii(e),e):null},ba=new WeakSet,Ud=async function(e,r){if(!(t(this,Ei)||e.status!==5))if(await t(this,at).isTrackingAllowed(!0)&&await h(this,is,Mc).call(this,r)){t(this,Q).info(`Experiments: Page view should be tracked for #${e.id}`);let i=h(this,ss,Fc).call(this,e);i&&i!==ft&&(t(this,Q).info(`Experiments: Custom Dimensions for #${e.id}:${i}`),h(this,Ri,ma).call(this,e,i)),await h(this,Da,Wd).call(this,e,i)}else t(this,Q).warn(`Experiments: Page view shouldn't be tracked for #${e.id}:`)},Sa=new WeakSet,Md=async function(e,r,i){if(await h(this,ns,Nc).call(this,r,e)){t(this,Q).info(`Experiments: Variation should be shown for #${e.id}:`);let c=h(this,ss,Fc).call(this,e),f=c||await h(this,ka,Kd).call(this,e);h(this,cs,qc).call(this,e.id,f),f&&f!==ft&&(!t(this,yi)&&e.status===5&&(m(this,yi,!0),t(this,me).dispatchEvent("experiment.tool.activated")),e.status===5&&await t(this,at).isTrackingAllowed()&&h(this,Ri,ma).call(this,e,f)&&e.analyticsVersion!=="v2"&&(t(this,Q).info(`Experiments: Late Custom Dimensions for #${e.id}:${f}`),h(this,es,kc).call(this,e.id,"analytics.set_async_custom_dimension",{name:"_set_async_custom_dimension",category:t(Ce,Xn)}))),f&&f!==ft&&(e.status===5&&t(this,hi).sendExperimentVariationEvent(e.id,f),t(this,me).dispatchEvent("experiment.variation.decided",{toolId:e.id,variationId:f}),f in e.variations&&(e.variations[f].redirectUrl?i.then(()=>h(this,os,jc).call(this,e,f)).then(y=>!y&&h(this,bi,fa).bind(this)()):(t(this,K).waitForTrackingBeforeVariation&&await i,h(this,os,jc).call(this,e,f).then(y=>!y&&h(this,bi,fa).bind(this)()).then(()=>{t(this,me).dispatchEvent("experiment.variation.loaded",{toolId:e.id,variationId:f}),h(this,fs,Hc).call(this,e.id,f,!0)}))))}else t(this,Q).info(`Experiments: Variation shouldn't be shown for #${e.id}:`),h(this,fs,Hc).call(this,e.id,null,!1)},rs=new WeakSet,Uc=async function(){h(this,Ca,Nd).call(this);let e=[],r,i={};for(let n in t(this,K).experiments){let c=t(this,K).experiments[n],f=t(this,gi).perform(c.targetingGroups);i[c.id]=[c,f]}
15r=await h(this,Pa,jd).call(this,i);for(let n in t(this,K).experiments){let c=t(this,K).experiments[n];h(this,kr,Jn).call(this,c.id);let f;if(c.exclusionGroup?f=Object.prototype.hasOwnProperty.call(r,c.id)?r[c.id][1]:null:f=i[c.id][1],f){let y=h(this,ba,Ud).call(this,c,f);t(this,at).isConsentPending()&&(y=Promise.resolve()),t(this,K).waitForTrackingBeforeVariation&&(y=new Promise(S=>{t(this,me).addListener("analytics.page_view_track_request_succeeded",R=>{(!R.toolId||R.toolId&&R.toolId===n)&&S()})}));let E=h(this,Sa,Md).call(this,c,f,y);e.push(y),e.push(E)}else t(this,Q).info(`Experiment ${c.id} is ignored by excluded group settings`)}await Promise.all(e),t(this,Q).info("Processing All Experiments finished.")},Ca=new WeakSet,Nd=function(){m(this,Xe,{}),Object.values(t(this,K).experiments).forEach(e=>h(this,Ra,Fd).call(this,e))},Ra=new WeakSet,Fd=function(e){e.exclusionGroup&&(Object.prototype.hasOwnProperty.call(t(this,Xe),e.exclusionGroup)||(t(this,Xe)[e.exclusionGroup]={groupName:e.exclusionGroup,status:1,tools:[],toolDecision:null}),t(this,Xe)[e.exclusionGroup].tools.push(e.id))},Pa=new WeakSet,jd=async function(e){let r={},i=(n,c=null)=>{c&&(t(this,Xe)[n].toolDecision=c,t(this,Xe)[n].status=0,r[c]=e[c])};for(let n in t(this,Xe)){let c=t(this,Xe)[n],f=h(this,Oa,Bd).call(this,c.groupName);if(f&&t(this,Xe)[n].tools.indexOf(f)!==-1)i(n,f);else if(c.tools.length===1)h(this,Ci,ga).call(this,c.groupName,c.tools[0]),i(n,c.tools[0]);else{let y=c.tools.filter(E=>h(this,wr,Kn).call(this,E)!==null);if(y.length===1)h(this,Ci,ga).call(this,c.groupName,y[0]),i(n,y[0]);else{let E=await h(this,Va,Yd).call(this,c);i(n,E)}}}return r},Ta=new WeakSet,Gd=async function(){m(this,ct,Td(t(this,lt),t(this,Ee).preview.sessionStorageKey));let e=Od(new URLSearchParams(t(this,re).location.search),t(this,Ee).preview.toolIdQueryParam,t(this,Ee).preview.variationIdQueryParam,t(this,Ee).preview.patchQueryParam);e&&(t(this,Q).info("Experiments: Preview query parameters found."),t(this,ct)[e[0]]={sessionId:await t(this,at).getSessionId(),variationId:e[1],patch:e[2]},Dc(t(this,ct),t(this,lt),t(this,Ee).preview.sessionStorageKey)),(await Promise.all(Object.values(t(this,ct)).map(i=>t(this,mi).request({url:`${t(this,Ee).preview.patchFileBaseUrl}/${i.patch}.json?rand=${Date.now()}`}).then(n=>{let c=Bu(n.body,_o);t(this,Q).info("Experiments: Preview patch loaded:",c),c.status=5,t(this,K).experiments[c.id]=c,h(this,cs,qc).call(this,c.id,i.variationId,!0)})))).length>0&&m(this,Ei,!0),t(this,Ii).resolve()},bi=new WeakSet,fa=function(){t(this,re)._fpHide&&typeof t(this,re)._fpHide.show=="function"&&t(this,re)._fpHide.show()},wr=new WeakSet,Kn=function(e){var r;return(r=t(this,lt).getWithType("cookies",t(this,Ee).experiment.cookieBaseName+"-"+e))!=null?r:null},Si=new WeakSet,ha=function(e){for(let r in e)t(this,lt).setWithType("cookies",t(this,Ee).experiment.cookieBaseName+"-"+r,e[r])},Oa=new WeakSet,Bd=function(e){var r;return(r=t(this,lt).getWithType("cookies",t(this,Ee).experiment.cookieBaseName+"-"+e))!=null?r:null},Ci=new WeakSet,ga=function(e,r){t(this,lt).setWithType("cookies",t(this,Ee).experiment.cookieBaseName+"-"+e,r)},xa=new WeakSet,qd=async function(e,r){let i={toolId:e.id,variationId:r};t(this,me).dispatchEvent("figpiiexperiment",i),t(this,Q).info("Custom dimension/ experiment activation is set for experiment id",e.id)},Ri=new WeakSet,ma=function(e,r){return t(this,xr).has(e.id)?(t(this,Q).info("Custom dimension set is already done for experiment id",e.id),!1):(h(this,xa,qd).call(this,e,r),t(this,xr).add(e.id),!0)},Aa=new WeakSet,Qd=function(){for(let e in t(this,K).experiments){let r=h(this,wr,Kn).call(this,e);t(this,K).experiments[e].status===5&&r in t(this,K).experiments[e].variations&&(h(this,Ri,ma).call(this,t(this,K).experiments[e],r),t(this,xr).add(e))}},is=new WeakSet,Mc=async function(e){return await e["device"].promise&&await e["ip"].promise&&await e["geolocation"].promise},ns=new WeakSet,Nc=async function(e,r){return t(this,Ei)&&t(this,ct)[r.id]&&await e["domain"].promise&&await e["subdomain"].promise&&await e["page"].promise&&await e["css"].promise||await e.all.promise},Da=new WeakSet,Wd=function(e,r){if(t(this,rr).has(e.id)){t(this,Q).warn("Page view set is already done for experiment id",e.id);return}return t(this,rr).add(e.id),new Promise(i=>{let n=t(this,re).document.title;e.analyticsVersion==="v2"?(t(this,Dr)||(t(this,me).dispatchEvent("analytics.track_page_view",{action:n}),m(this,Dr,!0)),t(this,Or).resolve()):t(this,me).dispatchEvent("analytics.track_page_view",{toolId:e.id,action:n}),t(this,yt)[e.id]&&t(this,yt)[e.id].resolve(),t(this,Q).info(`Experiments: page view tracked for #${e.id}:${r}`),i()})},ss=new WeakSet,Fc=function(e){if(e.status===19)return e.winnerVariationId;if(h(this,ds,Wc).call(this,e.id)!==null)return h(this,ds,Wc).call(this,e.id);let r=h(this,wr,Kn).call(this,e.id);return r!==null&&r===ft||Object.keys(e.variations).indexOf(r)!==-1?r:null},wa=new WeakSet,Hd=function(e){let r=null,i=[];for(let n of Object.values(e.variations))i.push({percent:n.weight,i
15d:n.id});return r=h(this,ya,Dd).call(this,i),r?r.id:null},La=new WeakSet,$d=async function(e){let r;try{r=await t(this,mi).request({url:t(this,Ee).experiment.decideUrl,method:"POST"},{visitorId:t(this,at).getVisitorId(),account_id:t(this,K).accountId,domain_id:t(this,K).id,tool_id:e.id})}catch(f){t(this,Q).error("Experiments: error when connecting to RR",f)}let i=r.headers.get("X-Result"),n=r.headers.get("X-Error"),c=null;return n===null?(c=parseInt(i).toString(),c!==ft&&Object.keys(e.variations).indexOf(c)===-1&&(c=null,t(this,Q).error(`Experiments: Invalid decision for #${e.id}: ${i}`,t(this,K)))):t(this,Q).error(`Experiments: Error on decision for #${e.id} with error`,Object.assign({error:n},t(this,K))),c},ka=new WeakSet,Kd=function(e){return h(this,us,Qc).call(this,e.id)||h(this,Ga,tf).call(this,e.id,(async()=>{let r=null;t(this,K).decideVariationRemotely?r=await h(this,La,$d).call(this,e):this.decideTrafficAllocationOnFrontend(e)&&(r=h(this,wa,Hd).call(this,e)),r===null&&(r=ft);let i=null;return r!==null?(i=parseInt(r).toString(),i!==ft&&Object.keys(e.variations).indexOf(i)===-1?(i=null,t(this,Q).error(`Experiments: Invalid decision for #${e.id}: ${r}`,t(this,K))):h(this,Si,ha).call(this,{[e.id]:i})):t(this,Q).warn(`Experiments: Got error when deciding for #${e.id}`,t(this,K)),i})()),h(this,us,Qc).call(this,e.id)},Va=new WeakSet,Yd=async function(e){if(e.tools.length===0)return null;if(e.tools.length===1)return e.tools[0];let r=Wu(0,e.tools.length),i=e.tools[r];return h(this,Ci,ga).call(this,e.groupName,i),i},os=new WeakSet,jc=async function(e,r){if(t(this,vi).has(r))return!1;t(this,vi).add(r);let i=e.variations[r];if(i.redirectUrl||i.redirectUrlType)return h(this,Ua,Jd).call(this,i);h(this,ja,ef).call(this,i.elements);let n=i.customJsPath?t(this,pi).insertScript(i.customJsPath,!0,"anonymous"):Promise.resolve(),c=i.customCssPath?t(this,pi).insertStyle(i.customCssPath):Promise.resolve();return await Promise.all([n,c]),!1},Ua=new WeakSet,Jd=function(e){let r=null;if(e.redirectUrl||e.redirectUrlType==="sim"){if(t(this,Q).info("Simple Url Redirection"),e.redirectUrl){let n=new it(t(this,re).location,t(this,Ee).internalQueryParameters).getQueryVars(!0);if(r=e.redirectUrl,Object.keys(n).length>0&&r){let c=new it(t(this,re).location,t(this,Ee).internalQueryParameters);c.parseUrl(e.redirectUrl.toString());let f=c.getQueryVars(!0),y=[];for(let E in n){let S=[];if(Object.prototype.hasOwnProperty.call(f,E)||(S=n[E]),S.length>0)for(let R of S)y.push(E+"="+encodeURIComponent(R))}y.length>0&&(r=r+(Object.keys(f).length>0?"&":"?")+y.join("&")),r===t(this,re).location.href&&(r=null)}}}else if(e.redirectUrlType==="adv"){t(this,Q).info("Advanced Url Redirection",e.advancedUrlTarget,e.advancedUrlType,e.advancedUrlFrom,e.advancedUrlTo);let i=t(this,re).location.origin,n=t(this,re).location.search,c=t(this,re).location.hash;switch(e.advancedUrlTarget==="url"?r=t(this,re).location.href:r=t(this,re).location.pathname,e.advancedUrlType){case"replace":r=r.replace(e.advancedUrlFrom,e.advancedUrlTo);break;case"addition":e.advancedUrlFrom.indexOf("?")!==-1?(r+n).indexOf(e.advancedUrlFrom)===-1&&(n="&"+n.substring(1),r=r+e.advancedUrlFrom):r=r+e.advancedUrlFrom;break;case"remove":{r=r.replace(e.advancedUrlFrom,"");break}case"regex":{let f=new RegExp(e.advancedUrlFrom);r=r.replace(f,e.advancedUrlTo);break}default:return!1}e.advancedUrlTarget==="path"&&(r=i+r+n+c)}return r&&t(this,re).location.href!==r?(t(this,re).document.body.style.visibility="hidden",t(this,tr)&&(r=t(this,tr).checkAndAddCrossDomainParameterToUrl(r)),t(this,re).location.assign(r),!0):!1},Ma=new WeakSet,Xd=function(e){let r=".pii-element-"+e,i=t(this,pt).call(this,r)[0];return i!=null?i:null},Na=new WeakSet,zd=function(e,r){let i=t(this,pt).call(this,r)[0],n="pii-element-"+e;return i.classList.add(n),i!=null?i:null},Lr=new WeakSet,Yn=function(e,r){r.parentNode.insertBefore(e,r.nextSibling)},as=new WeakSet,Gc=function(e){return Array.from(e.parentNode.children).indexOf(e)},Fa=new WeakSet,Zd=function(e,r){if(!e||!r)return!1;let i=e.parentElement,n=r.parentElement,c=h(this,as,Gc).call(this,e),f=h(this,as,Gc).call(this,r),y=e.previousElementSibling,E=r.previousElementSibling;return n==i&&Math.abs(c-f)===1?(c>f?h(this,Lr,Yn).call(this,r,e):h(this,Lr,Yn).call(this,e,r),!0):(c===0?i.prepend(r):h(this,Lr,Yn).call(this,r,y),f===0?n.prepend(e):
15h(this,Lr,Yn).call(this,e,E),!0)},ls=new WeakSet,Bc=function(e){if(t(this,pt)===null)return t(this,Q).warn("Experiments: selector function did not load");let r=e.id,i=e.selector.trim(),n,c;for(let f of e.actions){if(n=h(this,Ma,Xd).call(this,r)||h(this,Na,zd).call(this,r,i),!n)return;let y=JSON.parse(f.params);switch(f.action){case"hide":n.style.visibility="hidden";break;case"edit":{let E=t(this,re).document.createElement("div");if(E.innerHTML=y.change.html,E.childNodes.length===0)c=t(this,re).document.createElement("pii_deleted_item"),c.className="pii-element-"+r,n.replaceWith(c);else{let S=n.nextSibling,R=n.parentNode;E.childNodes[0].nodeType===Node.ELEMENT_NODE&&E.childNodes[0].classList.add("pii-element-"+r),n.replaceWith(E.childNodes[0]);let L=E.childNodes.length;for(let w=0;w<L;++w)E.childNodes[0].nodeType===Node.ELEMENT_NODE&&E.childNodes[0].classList.add("pii-element-"+r),R.insertBefore(E.childNodes[0],S)}break}case"style-change":case"resize":{for(let E in y.change)n.style[E]=y.change[E];break}case"flip":{let E=t(this,pt).call(this,y.original.flipDom)[0];h(this,Fa,Zd).call(this,n,E);break}case"remove":{c=t(this,re).document.createElement("pii_deleted_item"),c.className="pii-element-"+r,n.replaceWith(c);break}case"add-text":n.insertAdjacentHTML("beforeend","<div>"+y.change.html+"</div>");break;case"add-image":n.classList.add(`pii-element-${r}`),n.insertAdjacentHTML("beforeend",y.change.html);break}}},ja=new WeakSet,ef=function(e){let r=new Set;e.forEach(i=>{if(i.actions&&i.actions.length<1)return;t(this,pt).call(this,i.selector).length>0&&!r.has(i.id)&&(r.add(i.id),h(this,ls,Bc).call(this,i));let n=new MutationObserver(()=>{t(this,pt).call(this,i.selector).length>0&&(r.has(i.id)?n.disconnect():(r.add(i.id),h(this,ls,Bc).call(this,i)))});n.observe(t(this,re).document,{attributes:!0,childList:!0,subtree:!0})})},kr=new WeakSet,Jn=function(e,r){Object.prototype.hasOwnProperty.call(t(this,z),e)||(t(this,z)[e]={variationId:r||null,isActive:!1,isPreviewed:!1,loading:se(),decision:null})},cs=new WeakSet,qc=function(e,r,i=!1){h(this,kr,Jn).call(this,e),t(this,z)[e].variationId===null&&(t(this,z)[e].variationId=r),i?t(this,z)[e].isPreviewed=!0:t(this,z)[e].isActive=!0},Ga=new WeakSet,tf=function(e,r){h(this,kr,Jn).call(this,e),t(this,z)[e].decision=r},us=new WeakSet,Qc=function(e){var r;return(r=t(this,z)[e].decision)!=null?r:null},ds=new WeakSet,Wc=function(e){var r;return(r=t(this,z)[e].variationId)!=null?r:null},Ba=new WeakSet,rf=function(){for(let e in t(this,z))if(t(this,z)[e].isActive)return!0},fs=new WeakSet,Hc=function(e,r,i){h(this,kr,Jn).call(this,e,r),t(this,z)[e].variationId===r&&t(this,z)[e].loading.resolve(i)},qa=new WeakSet,nf=function(){for(let e in t(this,z))t(this,z)[e].isActive=!1},o(er,qe),o(er,zn),o(er,Xn,"ManualConversion");var Pi,Ti,gs,Oi,Vr,Qa,Qe,xi,Wa,sf,ms,$c,Ha,of,ps,Kc,$a,af,ys,Yc,Ka,lf,Ya,cf,Ja,uf,Xa,df,za,ff,hs=class{constructor(e,r,i,n,c,f,y,E){o(this,Wa);o(this,ms);o(this,Ha);o(this,ps);o(this,$a);o(this,ys);o(this,Ka);o(this,Ya);o(this,Ja);o(this,Xa);o(this,za);o(this,Pi,void 0);o(this,Ti,void 0);o(this,gs,void 0);o(this,Oi,void 0);o(this,Vr,void 0);o(this,Qa,void 0);o(this,Qe,void 0);o(this,xi,void 0);m(this,Pi,e),m(this,Ti,i),m(this,gs,n),m(this,Oi,c),m(this,Vr,new URL(r.href)),m(this,Qa,f),m(this,Qe,y),m(this,xi,E),h(this,Xa,df).call(this),h(this,za,ff).call(this)}getVisitorIdFromCurrentUrl(){let e=de(t(this,Vr).searchParams,t(this,Qe).crossDomain.visitorIdQueryParam);if(e===null)return null;let r=new RegExp("^[a-zA-Z0-9]+$");if(e.length===48&&r.test(e)){let i=e.substring(32);if(h(this,Wa,sf).call(this,i))return e.substring(0,32)}return null}getFingerprintFromCurrentUrl(){return this.getVisitorIdFromCurrentUrl()}getVariationsFromCurrentUrl(){let e=de(t(this,Vr).searchParams,t(this,Qe).crossDomain.variationsQueryParam),r={};return e===null||e.split(".").forEach(n=>{let c=n.split("-");if(c.length!==2)return null;r[c[0]]=c[1]}),r}addCrossDomainParameterToUrl(e){let r=new URL(e);_c(r.searchParams,t(this,Qe).crossDomain.visitorIdQueryParam);let i=h(this,ys,Yc).call(this),n=h(this,Ka,lf).call(this);return r.searchParams.set(t(this,Qe).crossDomain.visitorIdQueryParam,i),n.length>0&&(_c(r.searchParams,t(this,Qe).crossDomain.variationsQueryParam),r.searchParams.set(t(this,Qe).crossDomain.variationsQueryParam,n)),r.toString()}
15checkAndAddCrossDomainParameterToUrl(e){return h(this,ps,Kc).call(this,e)?this.addCrossDomainParameterToUrl(e):e}};Pi=new WeakMap,Ti=new WeakMap,gs=new WeakMap,Oi=new WeakMap,Vr=new WeakMap,Qa=new WeakMap,Qe=new WeakMap,xi=new WeakMap,Wa=new WeakSet,sf=function(e){let r=h(this,ms,$c).call(this),i=r.length,n=e.substring(e.length-i),c=parseInt(e.substring(0,e.length-i),10);if(c&&n&&n===r){let f=Math.floor(new Date().getTime()/1e3);if(t(this,Qe).crossDomain.visitorIdTimeout<=0||f>=c&&f<=c+t(this,Qe).crossDomain.visitorIdTimeout)return!0}return!1},ms=new WeakSet,$c=function(){return Sn((t(this,Ti).userAgent||"")+(t(this,Ti).platform||"")).slice(0,6)},Ha=new WeakSet,of=function(e){return e.indexOf("//")===0||e.indexOf("http://")===0||e.indexOf("https://")===0},ps=new WeakSet,Kc=function(e){if(!h(this,Ha,of).call(this,e))return!1;let i=new URL(e).hostname;i.startsWith("www.")&&(i=i.substring(4));let n=t(this,Vr).hostname;return n.startsWith("www.")&&(n=n.substring(4)),!(i===n||i!==t(this,xi).url&&t(this,xi).extraDomains.indexOf(i)===-1)},$a=new WeakSet,af=function(){var e=Math.floor(new Date().getTime()/1e3),r=h(this,ms,$c).call(this);return String(e)+r},ys=new WeakSet,Yc=function(){return t(this,gs).getVisitorId()+h(this,$a,af).call(this)},Ka=new WeakSet,lf=function(){if(t(this,Oi)===null)return"";let e=[],r=t(this,Oi).getAllChosenVariations();if(Object.keys(r).length>0)for(let i in r)e.push(i+"-"+r[i]);return e.join(".")},Ya=new WeakSet,cf=function(e){let r=e.target,i=r.attributes.href?r.attributes.href.value:null;if(!i)return;let n=this.checkAndAddCrossDomainParameterToUrl(i);n!==i&&r.setAttribute("href",n)},Ja=new WeakSet,uf=function(e){let r=e.target.action;!r||!h(this,ps,Kc).call(this,r)||(!e.target.method||e.target.method.toUpperCase()==="GET"?e.target.insertAdjacentHTML("beforeend",`<input type="hidden" name="${t(this,Qe).crossDomain.visitorIdQueryParam}" value="${h(this,ys,Yc).call(this)}"/>'`):e.target.setAttribute("action",this.addCrossDomainParameterToUrl(e.target.action)))},Xa=new WeakSet,df=function(){let e=t(this,Pi).links;if(e)for(let r=0;r<e.length;++r)e[r].addEventListener("click",h(this,Ya,cf).bind(this))},za=new WeakSet,ff=function(){let e=t(this,Pi).forms;if(e)for(let r=0;r<e.length;++r)e[r].addEventListener("submit",h(this,Ja,uf).bind(this))};var Ai,Di,Es,Is,wi,We,_s,Jc,Za,hf,el,gf,vs=class{constructor(e,r,i,n){o(this,_s);o(this,Za);o(this,el);o(this,Ai,void 0);o(this,Di,void 0);o(this,Es,void 0);o(this,Is,void 0);o(this,wi,void 0);o(this,We,{});this.storageKey="referrers";this.maxItemCount=1;m(this,Ai,e),m(this,Di,r),m(this,Es,i),m(this,wi,n),m(this,Is,new it(t(this,Ai).location,t(this,wi).internalQueryParameters)),h(this,Za,hf).call(this)}decideReferrerListValue(e){if(!e&&e!=="")return t(this,Es).warn("ReferrerManager Error :: invalid referrer"),null;if(e==="")e="noReferrer";else{let r=new it(t(this,Ai).location,t(this,wi).internalQueryParameters);r.parseUrl(e),t(this,Is).getDomain()===r.getDomain()?e="sameDomain":e=e.toLowerCase()}return e}checkIfUrlExists(e){let r=this.decideReferrerListValue(e);return r!==null?h(this,_s,Jc).call(this,r):null}add(e,r){return r=r||new Date().getTime(),e=this.decideReferrerListValue(e),e!==null&&e!=="sameDomain"?(h(this,_s,Jc).call(this,e)===!1&&(t(this,We)[r]=e,h(this,el,gf).call(this)),e):null}getReferrerList(){return t(this,We)}getLast(){var r;let e=Math.max.apply(null,Object.keys(t(this,We)));return(r=t(this,We)[e])!=null?r:null}};Ai=new WeakMap,Di=new WeakMap,Es=new WeakMap,Is=new WeakMap,wi=new WeakMap,We=new WeakMap,_s=new WeakSet,Jc=function(e){return e===null?null:Object.values(t(this,We)).filter(i=>i.indexOf(e.toLowerCase())!==-1).length!==0},Za=new WeakSet,hf=function(){m(this,We,JSON.parse(t(this,Di).getWithType("localStorage",this.storageKey,"{}")))},el=new WeakSet,gf=function(){if(Object.keys(t(this,We)).length>this.maxItemCount){let e=Math.min.apply(null,Object.keys(t(this,We)));delete t(this,We)[e]}t(this,Di).setWithType("localStorage",this.storageKey,JSON.stringify(t(this,We)))};var A,Ss,Cs,ki,Vi,Rs,Ui,Ps,Ts,Os,xs,Mi,vt,As,Ni,Ds,Fi,ws,Ur,Ls,ir,Vt,ji,Mr,nr,ks,tl,sr,Et,Gi,Le,ae,Bi,rl,Nr,Fr,qi,Qi,Wi,It,Vs,Hi,jr,Gr,Us,Ms,$i,Br,il,Ns,Ut,Fs,_e,js,nl,qr,sl,Gs,or,ol,al,Xc,Qr,ar,ll,X,Wr,bs,cl,Ki,Hr,Bs,qs,Qs,Ws,Hs,$s,Yi,Ks,ul,dl,fl,hl,gl,Ys,ml,pl,yl,vl,Js,lr,El,ze,Il,_l,bl,Sl,Cl,Rl,cr,Pl,Tl,Ol,xl,Al,Ji,Xi,Dl,wl,Xs,Re=class{constructor(e,r,i,n,c){o(this,Wr);o(this,A,void 0);o(this,Ss,void 0);o(this,Cs,void 0);o(this,ki,void 0);o(this,Vi,void 0);o(this,Rs,void 0);o(this,Ui,void 0);o(this,Ps,void 0);o(this,Ts,void 0);o(this,Os,void 0);o(this,xs,void 0);o(this,Mi,void 0);o(this,vt,void 0);o(this,As,void 0);o(this,Ni,void 0);o(this,Ds,void 0);o(this,Fi,void 0);o(this,ws,void 0);o(this,Ur,void 0);o(this,Ls,void 0);o(this,ir,void 0);o(this,Vt,void 0);o(this,ji,void 0);o(this,Mr,void 0);o(this,nr,void 0);o(this,ks,void 0);o(this,tl,void 0);o(this,sr,void 0);o(this,Et,void 0);o(this,Gi,void 0);o(this,Le,void 0);o(this,ae,void 0);o(this,Bi,void 0);o(this,rl,void 0);o(this,Nr,void 0);o(this,Fr,void 0);o(this,qi,void 0);o(this,Qi,void 0);o(this,Wi,void 0);o(this,It,void 0);o(this,Vs,void 0);o(this,Hi,void 0);o(this,jr,void 0);o(this,Gr,void 0);o(this,Us,void 0);o(this,Ms,void 0);o(this,$i,void 0);o(this,Br,void 0);o(this,il,void 0);o(this,Ns,void 0);o(this,Ut,void 0);o(this,Fs,void 0);o(this,js,e=>{let r=e.length;return e.charAt(--r)==="."&&(e=e.slice(0,r)),e.slice(0,2)==="*."&&(e=e.slice(1)),e.
15indexOf("/")!==-1&&(e=e.substr(0,e.indexOf("/"))),e});this.urlFixup=(e,r,i)=>(e||(e=""),r||(r=""),e==="translate.googleusercontent.com"?(i===""&&(i=r),r=t(this,qr).call(this,r,"u"),e=h(this,Wr,bs).call(this,r)):(e==="cc.bingj.com"||e==="webcache.googleusercontent.com"||e.slice(0,5)==="74.6.")&&(r=t(this,A).document.links[0].href,e=h(this,Wr,bs).call(this,r)),[e,r,i]);o(this,nl,(e,r)=>{if(e&&e.indexOf)return e.indexOf(r);if(!t(this,X).call(this,e)||e===null||!e.length)return-1;let i=e.length;if(i===0)return-1;let n=0;for(;n<i;){if(e[n]===r)return n;n++}return-1});o(this,qr,(e,r)=>{let i="[\\?&#]"+r+"=([^&#]*)",c=new RegExp(i).exec(e);return c?t(this,A).decodeURIComponent(c[1]):""});o(this,sl,e=>{if(!e||!t(this,Qr).call(this,e))return;let r=Object.keys(e);r.sort();let i={};for(let n of r)i[n]=e[n];return i});o(this,Gs,e=>{let r,i;for(let n=0;n<t(this,Mr).length;n++)if(r=t(this,js).call(this,t(this,Mr)[n].toLowerCase()),e===r||r.slice(0,1)==="."&&(e===r.slice(1)||(i=e.length-r.length,i>0&&e.slice(i)===r)))return!0;return!1});o(this,or,e=>t(this,X).call(this,e)&&(t(this,al).call(this,e)||t(this,ar).call(this,e)&&e.length));o(this,ol,e=>{if(!e)return!0;let r;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r))return!1;return!0});o(this,al,e=>typeof e=="number"||e instanceof Number);o(this,Xc,e=>typeof e=="function");o(this,Qr,e=>typeof e=="object");o(this,ar,e=>typeof e=="string"||e instanceof String);o(this,ll,e=>{try{e=e.toString()}catch(r){return!1}return/^[0-9]+(?:\.[0-9]+)?$/.test(e)});o(this,X,e=>typeof e!=="undefined");o(this,cl,()=>{let e="";try{e=t(this,A).top.document.referrer}catch(r){if(t(this,A).parent)try{e=t(this,A).parent.document.referrer}catch(i){e=""}}return e===""&&(e=t(this,A).document.referrer),e});o(this,Ki,(e,r)=>{if(e=e.toString(),e.indexOf("?"+r+"=")===-1&&e.indexOf("&"+r+"=")===-1)return e;let i=e.indexOf("?");if(i===-1)return e;let n=e.substr(i+1),c=e.substr(0,i);if(n){let f="",y=n.indexOf("#");y!==-1&&(f=n.substr(y+1),n=n.substr(0,y));let E,S=n.split("&");for(let L=S.length-1;L>=0;L--)E=S[L].split("=")[0],E===r&&S.splice(L,1);let R=S.join("&");R&&(c=c+"?"+R),f&&(c+="#"+f)}return c});o(this,Hr,e=>(e=t(this,Ki).call(this,e,t(this,Ss).crossDomain.visitorIdQueryParam),e=t(this,Ki).call(this,e,"ignore_referrer"),e=t(this,Ki).call(this,e,"ignore_referer"),e));this.setCustomVariable=(e,r,i,n)=>{let c;t(this,X).call(this,n)||(n="visit"),t(this,X).call(this,r)&&(t(this,X).call(this,i)||(i=""),e>0&&(r=t(this,ar).call(this,r)?r:r.toString(),i=t(this,ar).call(this,i)?i:i.toString(),c=[r.slice(0,t(this,Vi)),i.slice(0,t(this,Vi))],n==="visit"||n===2?(t(this,wl).call(this),t(this,Le)[e]=c):n==="page"||n===3?t(this,Et)[e]=c:n==="event"&&(t(this,Gi)[e]=c)))};this.setCustomDimension=(e,r)=>{e=parseInt(e.toString(),10),e>0&&(t(this,X).call(this,r)||(r=""),t(this,ar).call(this,r)||(r=r.toString()),t(this,sr)[e]=r)};this.setUserId=e=>{t(this,or).call(this,e)&&m(this,qi,e)};this.setTrackerUrl=e=>{m(this,Ui,e)};o(this,Bs,(e,r)=>e!==""?e+r.charAt(0).toUpperCase()+r.slice(1):r);o(this,qs,e=>{let i=new Date().getTime()+e;(!t(this,Qi)||i>t(this,Qi))&&m(this,Qi,i)});o(this,Qs,e=>{let i=new Date().getTime();if(m(this,Ns,i),t(this,It)&&i<t(this,It)){let n=t(this,It)-i;t(this,A).setTimeout(e,n),t(this,qs).call(this,n+50),m(this,It,t(this,It)+50);return}t(this,It)===0&&m(this,It,i+800),e()});o(this,Ws,(e,r,i)=>{let n={type:"application/x-www-form-urlencoded; charset=UTF-8"},c=!1;try{let f=new Blob([e.toString()],n);c=t(this,A).navigator.sendBeacon(i,f)}catch(f){return!1}return c});o(this,Hs,async(e,r)=>{let i={type:"application/x-www-form-urlencoded; charset=UTF-8"},n=new Blob([e.toString()],i);await fetch(r,{method:"POST",body:n})});o(this,$s,(e,r,i)=>{if(!e)return"";let n="",c,f;for(let y in t(this,Ut))if(Object.prototype.hasOwnProperty.call(t(this,Ut),y)){let E=t(this,Ut)[y];E[e]&&typeof E[e]=="function"&&(c=E[e],f=c(r||{},i),f&&(n+=f))}return n});o(this,Yi,(e,r,i,n=0)=>{let c=(ie,Oe)=>{let Kr=JSON.stringify(ie);return Kr.length>2?"&"+Oe+"="+t(this,A).encodeURIComponent(Kr):""},f=new Date,y=Math.round(f.getTime()/1e3),E,S,R=1024,L,w,M=t(this,Le),x=t(this,ze).call(this,"ses"),H=t(this,ze).call(this,"ref"),B=t(this,ze).call(this,"cvar"),D=t(this,lr).call(this,x),te=t(this,El).call(this),j=t(this,rl)||t(this,Bi),V,Y,q=t(this,Ji).call(this),ye=t(this,A).document.characterSet||t(this,A).document.charset;if((!ye||ye.toLowerCase()==="utf-8")&&(ye=null),V=te[0],Y=te[1],E=te[2],S=te[3],!D){let ie=t(this,Ur)/1e3;if((!q.lastVisitTs||y-q.lastVisitTs>ie)&&(q.visitCount++,q.lastVisitTs=q.currentVisitTs),!t(this,Hi)||!V.length){for(let Oe in t(this,jr))if(Object.prototype.hasOwnProperty.call(t(this,jr),Oe)&&(V=t(this,qr).call(this,j,t(this,jr)[Oe]),V.length))break;for(let Oe in t(this,Gr))if(Object.prototype.hasOwnProperty.call(t(this,Gr),Oe)&&(Y=t(this,qr).call(this,j,t(this,Gr)[Oe]),Y.length))break}
15L=h(this,Wr,bs).call(this,t(this,nr)),w=S.length?h(this,Wr,bs).call(this,S):"",L.length&&!t(this,Gs).call(this,L)&&(!t(this,Hi)||!w.length||t(this,Gs).call(this,w))&&(S=t(this,nr)),(S.length||V.length)&&(E=y,te=[V,Y,E,t(this,Hr).call(this,S.slice(0,R))],t(this,cr).call(this,H,JSON.stringify(te),t(this,Ls),t(this,ir),t(this,Vt)))}e+="&idsite="+t(this,ki)+"&rec=1&r="+Math.random().toString().slice(2,8)+"&h="+f.getHours()+"&m="+f.getMinutes()+"&s="+f.getSeconds()+"&url="+t(this,A).encodeURIComponent(t(this,Hr).call(this,j))+(t(this,nr).length?"&urlref="+t(this,A).encodeURIComponent(t(this,Hr).call(this,t(this,nr))):"")+(t(this,or).call(this,t(this,qi))?"&uid="+t(this,A).encodeURIComponent(t(this,qi)):"")+"&_id="+q.uuid+"&_idts="+q.createTs+"&_idvc="+q.visitCount+"&_idn="+q.newVisitor+(V.length?"&_rcn="+t(this,A).encodeURIComponent(V):"")+(Y.length?"&_rck="+t(this,A).encodeURIComponent(Y):"")+"&_refts="+E+"&_viewts="+q.lastVisitTs+(q.lastEcommerceOrderTs&&q.lastEcommerceOrderTs.toString().length?"&_ects="+q.lastEcommerceOrderTs:"")+(S.length?"&_ref="+t(this,A).encodeURIComponent(t(this,Hr).call(this,S.slice(0,R))):"")+(t(this,Fr)!==null?"&revenue="+t(this,A).encodeURIComponent(t(this,Fr)):"")+(ye?"&cs="+t(this,A).encodeURIComponent(ye):"")+"&send_image=0";let Te=[];if(r){for(let ie in r)if(Object.prototype.hasOwnProperty.call(r,ie)&&/^dimension\d+$/.test(ie)){let Oe=ie.replace("dimension","");Te.push(parseInt(Oe,10)),Te.push(Oe.toString()),e+="&"+ie+"="+t(this,A).encodeURIComponent(r[ie]),delete r[ie]}}r&&t(this,ol).call(this,r)&&(r=null);for(let ie in t(this,sr))Object.prototype.hasOwnProperty.call(t(this,sr),ie)&&t(this,nl).call(this,Te,ie)===-1&&(e+="&dimension"+ie+"="+t(this,A).encodeURIComponent(t(this,sr)[ie]));r&&(e+="&data="+t(this,A).encodeURIComponent(JSON.stringify(r)));let _t=ie=>t(this,sl).call(this,ie),Z=_t(t(this,Et)),Nt=_t(t(this,Gi));if(e+=c(Z,"cvar"),e+=c(Nt,"e_cvar"),t(this,Le)){e+=c(t(this,Le),"_cvar");for(let ie in M)Object.prototype.hasOwnProperty.call(M,ie)&&(t(this,Le)[ie][0]===""||t(this,Le)[ie][1]==="")&&delete t(this,Le)[ie];t(this,ks)&&t(this,cr).call(this,B,JSON.stringify(t(this,Le)),t(this,Ur),t(this,ir),t(this,Vt))}return t(this,Ds)&&(t(this,Fi)?e+="&gt_ms="+t(this,Fi):t(this,A).performance&&t(this,A).performance.timing&&t(this,A).performance.timing.requestStart&&t(this,A).performance.timing.responseEnd&&(e+="&gt_ms="+(t(this,A).performance.timing.responseEnd-t(this,A).performance.timing.requestStart))),t(this,Mi)&&(e+="&pv_id="+t(this,Mi)),q.lastEcommerceOrderTs=n>0?n:q.lastEcommerceOrderTs,t(this,Tl).call(this,q),t(this,Rl).call(this),e+=t(this,$s).call(this,i,{tracker:this,request:e}),t(this,Ni).length&&(e+="&"+t(this,Ni)),e});o(this,Ks,(e,r,i=!0)=>(m(this,il,!0),e?new Promise(n=>{t(this,Qs).call(this,()=>{i?(t(this,Ws).call(this,e,!0,r),n()):t(this,Hs).call(this,e,r).then(n)})}):Promise.resolve()));o(this,ul,(e,r)=>{if(!r||r>=e.length)return[e];let i=e.length,n=[];for(let c=0;c<i;c+=r)n.push(e.slice(c,c+r));return n});o(this,dl,(e,r,i,n=!0)=>e&&e.length<2?Promise.resolve():new Promise(c=>{t(this,Qs).call(this,()=>{let f=t(this,ul).call(this,e,50),y,E=[];for(let S=0;S<f.length;S++)y='{"requests":["?'+f[S].join('","?')+'"],"send_image":0}',n?t(this,Ws).call(this,y,!1,i):E.push(t(this,Hs).call(this,y,i)),t(this,qs).call(this,100);Promise.all(E).then(()=>c())})}));o(this,fl,e=>{let r=e;if(!t(this,ar).call(this,e)){let i=t(this,A).document.getElementsByTagName("title");i&&t(this,X).call(this,i[0])&&(r=i[0].text)}return r});o(this,hl,()=>Math.floor(new Date().getTime()/1e3));o(this,gl,()=>Sn((t(this,A).navigator.userAgent||"")+(t(this,A).navigator.platform||"")).slice(0,6));o(this,Ys,(e,r,i,n,c,f)=>{let y="idgoal=0",E,S=new Date,R=[],L=e.toString().length;if(L&&(y+="&ec_id="+t(this,A).encodeURIComponent(e),E=Math.round(S.getTime()/1e3)),y+="&revenue="+r,t(this,X).call(this,i)&&i.toString().length&&(y+="&ec_st="+i),t(this,X).call(this,n)&&n.toString().length&&(y+="&ec_tx="+n),t(this,X).call(this,c)&&c.toString().length&&(y+="&ec_sh="+c),t(this,X).call(this,f)&&f.toString().length&&(y+="&ec_dt="+f),t(this,ae)){for(let w in t(this,ae))Object.prototype.hasOwnProperty.call(t(this,ae),w)&&(t(this,X).c
15all(this,t(this,ae)[w][1])||(t(this,ae)[w][1]=""),t(this,X).call(this,t(this,ae)[w][2])||(t(this,ae)[w][2]=""),(!t(this,X).call(this,t(this,ae)[w][3])||t(this,ae)[w][3].toString().length===0)&&(t(this,ae)[w][3]=0),(!t(this,X).call(this,t(this,ae)[w][4])||t(this,ae)[w][4].toString().length===0)&&(t(this,ae)[w][4]=1),R.push(t(this,ae)[w]));y+="&ec_items="+t(this,A).encodeURIComponent(JSON.stringify(R))}y=t(this,Yi).call(this,y,{},"ecommerce",E),t(this,Xi).call(this,y),L&&m(this,ae,{})});o(this,ml,(e,r,i,n,c,f)=>{e.toString().length&&t(this,X).call(this,r)&&t(this,Ys).call(this,e,r,i,n,c,f)});o(this,pl,e=>{t(this,X).call(this,e)&&t(this,Ys).call(this,"",e,"","","",!1)});o(this,yl,(e,r,i=!0,n)=>{t(this,Os)||m(this,Mi,t(this,Xs).call(this,6));let c=t(this,Yi).call(this,"action_name="+t(this,A).encodeURI(t(this,fl).call(this,e||t(this,Rs))),r,"log");t(this,Xi).call(this,c,null,i,n)});this.trackPageView=(e,r,i=!0,n)=>{fc(this,Vs)._++,this.trackCallback(()=>{t(this,yl).call(this,e,r,i,n)})};o(this,vl,(e,r,i,n)=>"e_c="+t(this,A).encodeURIComponent(e)+"&e_a="+t(this,A).encodeURIComponent(r)+(t(this,X).call(this,i)?"&e_n="+t(this,A).encodeURIComponent(i):"")+(t(this,X).call(this,n)?"&e_v="+t(this,A).encodeURIComponent(n):"")+(e==="figpiiexperiment"?"&ca=1":""));this.logEvent=(e,r,i,n,c,f)=>{if(!t(this,or).call(this,e)||!t(this,or).call(this,r))return t(this,Cs).warn("Error while logging event: Parameters category and action must not be empty or filled with whitespaces"),!1;let y=t(this,Yi).call(this,t(this,vl).call(this,e,r,i,n),c,"event");t(this,Xi).call(this,y,t(this,Br))};this.trackCallback=e=>{let r,i=["","webkit","ms","moz"],n;if(!t(this,Fs)){for(let c=0;c<i.length;c++)if(n=i[c],Object.prototype.hasOwnProperty.call(t(this,A).document,t(this,Bs).call(this,n,"hidden"))){t(this,A).document[t(this,Bs).call(this,n,"visibilityState")]==="prerender"&&(r=!0);break}}if(r){t(this,A).document.addEventListener(n+"visibilitychange",function c(){t(this,A).document.removeEventListener(n+"visibilitychange",c,!1),e()});return}e()};this.trackEvent=(e,r,i,n,c,f)=>{this.trackCallback(()=>{this.logEvent(e,r,i,n,c,f)})};this.setRevenue=e=>{t(this,X).call(this,e)&&t(this,ll).call(this,e)&&m(this,Fr,e)};this.setEcommerceView=(e,r,i,n)=>{!t(this,X).call(this,i)||!i.length?i="":i instanceof Array&&(i=JSON.stringify(i)),t(this,Et)[5]=["_pkc",i],t(this,X).call(this,n)&&String(n).length&&(t(this,Et)[2]=["_pkp",n]),!((!t(this,X).call(this,e)||!e.length)&&(!t(this,X).call(this,r)||!r.length))&&(t(this,X).call(this,e)&&e.length&&(t(this,Et)[3]=["_pks",e]),(!t(this,X).call(this,r)||!r.length)&&(r=""),t(this,Et)[4]=["_pkn",r])};this.addEcommerceItem=(e,r,i,n,c)=>{t(this,or).call(this,e)&&(t(this,ae)[e]=[e,r,i,n,c])};this.removeEcommerceItem=e=>{e.length&&delete t(this,ae)[e]};this.clearEcommerceCart=()=>{m(this,ae,{})};this.trackEcommerceOrder=(e,r,i,n,c,f)=>{t(this,ml).call(this,e,r,i,n,c,f)};this.trackEcommerceCartUpdate=e=>{t(this,pl).call(this,e)};o(this,Js,()=>{let e;for(let r in t(Re,_e).requestQueues)e=t(Re,_e).requestQueues[r],t(Re,_e).requestQueues[r]=[],e&&(e.length===1?t(this,Ks).call(this,e[0].body,r,e[0].useBeacon).then(()=>e[0].callback&&e[0].callback()):t(this,dl).call(this,e.map(i=>i.body),t(this,Br),r,e.reduce((i,n)=>i&&n.useBeacon,!0)).then(()=>e.forEach(i=>i.callback&&i.callback())))});this.beforeUnloadHandler=()=>{m(this,Wi,!0),t(this,$s).call(this,"unload")};o(this,lr,e=>{let r=new RegExp("[=|]"+e+"=([^;|]*)"),i=r.exec(t(this,A).document.cookie);if(i)return t(this,A).decodeURIComponent(i[1]);let n=new RegExp("(^|;)[ ]*"+e+"=([^;]*)"),c=n.exec(t(this,A).document.cookie);return c?t(this,A).decodeURIComponent(c[2]):0});o(this,El,()=>{let e=t(this,lr).call(this,t(this,ze).call(this,"ref"));if(e.length)try{if(e=JSON.parse(e),t(this,Qr).call(this,e))return e}catch(r){}return["","",0,""]});o(this,ze,e=>t(this,Us)+e+"."+t(this,As));o(this,Il,()=>{if(!t(this,X).call(this,t(this,A).navigator.cookieEnabled)){let e=t(this,ze).call(this,"testcookie");return t(this,cr).call(this,e,"1",null,null,null,null,"_FPAC_TEST"),t(this,lr).call(this,e)==="1"?"1":"0"}return t(this,A).navigator.cookieEnabled?"1":"0"});o(this,_l,(e="_FPAC")=>{let r=new RegExp(e+"=([^;]*)"),i=r.exec(t(this,A).document.cookie);return i?i[1]:null});o(this,bl,e=>{let r={},i={},n=e.split("|");for(let c in n)Object.prototype.hasOwnProperty.call(n,c)&&(i=n[c].split("="),r[i[0]]=i[1]);return r});o(this,Sl,e=>{let r=t(this,_l).call(this,e),i={};return r&&(i=t(this,bl).call(this,r)),i});o(this,Cl,(e,r="_FPAC")=>{let i=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&i.push(n+"="+e[n]);return r+"="+i.join("|")});o(this,Rl,()=>{t(this,cr).call(this,t(this,ze).call(this,"ses"),"*",t(this,Ur),t(this,ir),t(this,Vt),t(this,ji),"_FPA
15C_S")});o(this,cr,(e,r,i,n,c,f,y)=>{let E;i&&(E=new Date,E.setTime(E.getTime()+i));let S=t(this,Sl).call(this,y);S[e]=t(this,A).encodeURIComponent(r);let R=t(this,Cl).call(this,S,y);t(this,A).document.cookie=R+(i?";expires="+E.toUTCString():"")+";path="+(n||"/")+(c?";domain="+c:"")+(f?";secure":"")});o(this,Pl,()=>{let e=new Date,r=e.getTime(),i=t(this,Ji).call(this).createTs;return parseInt(i.toString(),10)*1e3+t(this,ws)-r});o(this,Tl,e=>{if(!t(this,ki))return;let r=new Date,i=Math.round(r.getTime()/1e3);t(this,X).call(this,e)||(e=t(this,Ji).call(this));let n=e.uuid+"."+e.createTs+"."+e.visitCount+"."+i+"."+e.lastVisitTs+"."+e.lastEcommerceOrderTs;t(this,cr).call(this,t(this,ze).call(this,"id"),n,t(this,Pl).call(this),t(this,ir),t(this,Vt),t(this,ji))});o(this,Ol,e=>{e=e.toString();let r=t(this,gl).call(this),i=r.length,n=e.substr(-1*i,i),c=parseInt(e.substr(0,e.length-i),10);if(c&&n&&n===r){let f=t(this,hl).call(this);if(t(this,$i)<=0||f>=c&&f<=c+t(this,$i))return!0}return!1});o(this,xl,e=>{if(!t(this,xs))return"";let r=t(this,qr).call(this,e,t(this,Ms));if(!r)return"";r=r.toString();let i=new RegExp("^[a-zA-Z0-9]+$");if(r.length===32&&i.test(r)){let n=r.substr(16,32);if(t(this,Ol).call(this,n))return r.substr(0,16)}return""});o(this,Al,()=>{t(this,vt)||m(this,vt,t(this,xl).call(this,t(this,Bi)));let e=new Date,r=Math.round(e.getTime()/1e3),i=t(this,ze).call(this,"id"),n=t(this,lr).call(this,i),c,f;return n?(c=n.split("."),c.unshift("0"),t(this,vt).length&&(c[1]=t(this,vt)),c):(t(this,vt).length?f=t(this,vt):t(this,Il).call(this)==="0"?f="":f=t(this,Xs).call(this),c=["0",f,r,0,r,"",""],c)});o(this,Ji,()=>{let e=t(this,Al).call(this),r=e[0],i=e[1],n=e[2],c=e[3],f=e[4],y=e[5],E=e[6]||0;return{newVisitor:r,uuid:i,createTs:n,visitCount:c,currentVisitTs:f,lastVisitTs:y||"",lastEcommerceOrderTs:E||""}});o(this,Xi,(e,r=t(this,Br),i=!0,n)=>{let c=null;if(t(this,Wi)){t(this,Ks).call(this,e,t(this,Ui),i).then(n);return}t(Re,_e).pushRequestToQueue(t(this,Ui),e,i,n),t(Re,_e).timeout!==null&&(t(this,A).clearTimeout(t(Re,_e).timeout),t(Re,_e).timeout=null),t(Re,_e).timeout=t(this,A).setTimeout(()=>{t(Re,_e).timeout=null,t(this,Js).call(this)},r);let f="this.request"+t(this,Ts);Object.prototype.hasOwnProperty.call(t(this,Ut),f)||(t(this,Ut)[f]={unload:()=>{t(Re,_e).timeout&&clearTimeout(t(Re,_e).timeout),t(this,Js).call(this)}})});o(this,Dl,()=>{let e=t(this,ze).call(this,"cvar"),r=t(this,lr).call(this,e);return r.length&&(r=JSON.parse(r),t(this,Qr).call(this,r))?r:{}});o(this,wl,()=>{t(this,Qr).call(this,t(this,Le))&&Object.keys(t(this,Le)).length===0&&m(this,Le,t(this,Dl).call(this))});o(this,Xs,(e=16)=>{let r="0123456789ABCDEF",i="";for(let n=0;n<e;n++)i+=r.charAt(Math.floor(Math.random()*r.length));return i});m(this,A,e),m(this,Ss,r),m(this,Cs,i),m(this,ki,n),m(this,Vi,200),m(this,Ps,0),m(this,Ts,fc(this,Ps)._++),m(this,Wi,!1),m(this,Vs,0),m(this,ji,!1),m(this,ks,!1),m(this,Hi,!1),m(this,jr,["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"]),m(this,Gr,["pk_kwd","piwik_kwd","utm_term"]),m(this,Us,"_pk_"),m(this,Ms,"pk_vid"),m(this,$i,180),m(this,Br,500),m(this,vt,""),m(this,Ni,""),m(this,Ds,!0),m(this,Fi,0),m(this,ws,339552e5),m(this,Ur,18e5),m(this,Ls,15768e6),m(this,Ns,null),m(this,It,0),m(this,tl,{}),m(this,sr,{}),m(this,Gi,{}),m(this,Et,{}),m(this,Le,{}),m(this,ae,{}),m(this,Rs,e.document.title||""),m(this,Os,!1),m(this,xs,!1),m(this,Ut,{}),m(this,Fs,!1),m(this,Fr,null),m(this,Nr,this.urlFixup(t(this,A).document.domain,t(this,A).location.href,t(this,cl).call(this))),m(this,Bi,t(this,A).decodeURIComponent(t(this,Nr)[1])),m(this,nr,t(this,A).decodeURIComponent(t(this,Nr)[2])),m(this,Vt,c),m(this,Mr,t(this,js).call(this,t(this,Nr)[0])),m(this,As,Sn((t(this,Vt)||t(this,Mr))+(t(this,ir)||"/")).slice(0,4)),t(this,A).addEventListener("beforeunload",this.beforeUnloadHandler,!1)}},Li=Re;A=new WeakMap,Ss=new WeakMap,Cs=new WeakMap,ki=new WeakMap,Vi=new WeakMap,Rs=new WeakMap,Ui=new WeakMap,Ps=new WeakMap,Ts=new WeakMap,Os=new WeakMap,xs=new WeakMap,Mi=new WeakMap,vt=new WeakMap,As=new WeakMap,Ni=new WeakMap,Ds=new WeakMap,Fi=new WeakMap,ws=new WeakMap,Ur=new WeakMap,Ls=new WeakMap,ir=new WeakMap,Vt=new WeakMap,ji=new WeakMap,Mr=new WeakMap,nr=new WeakMap,ks=new WeakMap,tl=new WeakMap,sr=new WeakMap,Et=new WeakMap,Gi=new WeakMap,Le=new WeakMap,ae=new WeakMap,Bi=new WeakMap,rl=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,qi=new WeakMap,Qi=new WeakMap,Wi=new WeakMap,It=new WeakMap,Vs=new WeakMap,Hi=new WeakMap,jr=new WeakMap,Gr=new WeakMap,Us=new WeakMap,Ms=new WeakMap,$i=new WeakMap,Br=new WeakMap,il=new WeakMap,Ns=new WeakMap,Ut=ne
15w WeakMap,Fs=new WeakMap,_e=new WeakMap,js=new WeakMap,nl=new WeakMap,qr=new WeakMap,sl=new WeakMap,Gs=new WeakMap,or=new WeakMap,ol=new WeakMap,al=new WeakMap,Xc=new WeakMap,Qr=new WeakMap,ar=new WeakMap,ll=new WeakMap,X=new WeakMap,Wr=new WeakSet,bs=function(e){let r=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),i=r.exec(e);return i?i[1]:e},cl=new WeakMap,Ki=new WeakMap,Hr=new WeakMap,Bs=new WeakMap,qs=new WeakMap,Qs=new WeakMap,Ws=new WeakMap,Hs=new WeakMap,$s=new WeakMap,Yi=new WeakMap,Ks=new WeakMap,ul=new WeakMap,dl=new WeakMap,fl=new WeakMap,hl=new WeakMap,gl=new WeakMap,Ys=new WeakMap,ml=new WeakMap,pl=new WeakMap,yl=new WeakMap,vl=new WeakMap,Js=new WeakMap,lr=new WeakMap,El=new WeakMap,ze=new WeakMap,Il=new WeakMap,_l=new WeakMap,bl=new WeakMap,Sl=new WeakMap,Cl=new WeakMap,Rl=new WeakMap,cr=new WeakMap,Pl=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,xl=new WeakMap,Al=new WeakMap,Ji=new WeakMap,Xi=new WeakMap,Dl=new WeakMap,wl=new WeakMap,Xs=new WeakMap,o(Li,_e,{requestQueues:{},pushRequestToQueue:(e,r,i=!0,n)=>{t(Re,_e).requestQueues[e]=t(Re,_e).requestQueues[e]||[],t(Re,_e).requestQueues[e].push({body:r,useBeacon:i,callback:n})},timeout:null});var Zs,zi,pe,eo,$,$r,to,ro,Zi,Ll,Pe,kl,Vl,Ul,Ml,Nl,Fl,jl,Gl,Bl,ql,Ql,Wl,Hl,$l,zs=class{constructor(e,r,i,n,c,f,y){o(this,Zs,void 0);o(this,zi,void 0);o(this,pe,void 0);o(this,eo,void 0);o(this,$,void 0);o(this,$r,void 0);o(this,to,void 0);o(this,ro,void 0);o(this,Zi,{});this.init=async()=>{t(this,pe).addListener("figpiiexperiment",t(this,Vl)),t(this,pe).addListener("analytics.track_page_view",t(this,Ul)),t(this,pe).addListener("analytics.event_conversion",t(this,Ml)),t(this,pe).addListener("ecommerce.process_order",t(this,Nl)),t(this,pe).addListener("ecommerce.cart_items_cleared",t(this,Fl)),t(this,pe).addListener("ecommerce.cart_item_added",t(this,jl)),t(this,pe).addListener("ecommerce.cart_item_removed",t(this,Gl)),t(this,pe).addListener("ecommerce.add_item_view",t(this,Bl)),t(this,pe).addListener("ecommerce.add_category_view",t(this,ql)),t(this,pe).addListener("ecommerce.cart_amount_updated",t(this,Hl)),t(this,pe).addListener("ecommerce.set_revenue",t(this,$l)),t(this,pe).addListener("analytics.set_async_custom_dimension",t(this,Ql)),t(this,pe).addListener("analytics.set_custom_variable",t(this,Wl)),t(this,eo).addListener(t(this,kl))};o(this,Ll,(e,r)=>{let i=new Li(t(this,Zs),t(this,$r),t(this,to),e,Co(t(this,ro).hostname,t(this,$)));i.setTrackerUrl(r);let n=t(this,zi).getVisitorId();return i.setUserId(n),i});o(this,Pe,(e,r)=>{var n;let i=r==="v1"?t(this,$r).experiment.analyticsTrackerUrl:t(this,$r).experiment.analyticsTrackerSingleInstanceUrl;return(n=t(this,Zi)[e])!=null?n:t(this,Zi)[e]=t(this,Ll).call(this,e,i)});o(this,kl,()=>{m(this,Zi,{})});o(this,Vl,e=>{let r=t(this,$).experiments[e.toolId].analyticsVersion==="v2"?"v2":"v1",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId,n=t(this,Pe).call(this,i,r);r==="v1"?(n.setCustomDimension(1,e.toolId),n.setCustomDimension(2,e.variationId)):t(this,zi).isTrackingAllowed().then(c=>{c&&n.trackEvent("figpiiexperiment",e.toolId,e.variationId)})});o(this,Ul,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId,n=t(this,Pe).call(this,i,r);t(this,$).waitForTrackingBeforeVariation?n.trackPageView(e.action,null,!1,()=>t(this,pe).dispatchEvent("analytics.page_view_track_request_succeeded",{toolId:e.toolId})):(n.trackPageView(e.action),t(this,pe).dispatchEvent("analytics.page_view_track_request_succeeded",{toolId:e.toolId}))});o(this,Ml,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).trackEvent(e.name,e.category)});o(this,Nl,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).trackEcommerceOrder(e.orderId,e.grandTotal,e.subTotal?e.subTotal:"undefined",e.tax?e.tax:"undefined",e.shipping?e.shipping:"undefined",e.discount?e.discount:!1)});o(this,Fl,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).clearEcommerceCart()});o(this,jl,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).addEcommerceItem(e.sku,e.name,e.category,e.price,e.quantity)});o(this,Gl,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).removeEcommerceItem(e.sku)});o(this,Bl,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).setEcommerceView(e.sku,e.name,e.category,e.price)});o(this,ql,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).setEcommerceView(e.sku,e.name,e.category)});o(this,Ql,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).trackEvent(e.name,e.category)});o(this,Wl,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).setCustomVariable(e.index,e.name,e.value,e.scope)});o(this,Hl,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).trackEcommerceCartUpdate(e.grandTotal)});o(this,$l,e=>{let r=e.toolId?"v1":"v2",i=r==="v2"?t(this,$).analyticsId:t(this,$).experiments[e.toolId].analyticsId;t(this,Pe).call(this,i,r).setRevenue(e.revenue)});m(this,Zs,e),m(this,zi,r),m(this,pe,i),m(this,eo,n),m(this,$,c),m(this,$r,f),m(this,to,y),m(this,ro,e.location)}};Zs=new WeakMap,zi=new WeakMap,pe=new WeakMap,eo=new WeakMap,$=new WeakMap,$r=new WeakMap,to=new WeakMap,ro=new WeakMap,Zi=new WeakMap,Ll=new WeakMap,Pe=new WeakMap,kl=new WeakMap,Vl=new WeakMap,Ul=new WeakMap,Ml=new WeakMap,Nl=new WeakMap,Fl=new WeakMap,jl=new WeakMap,Gl=new WeakMap,Bl=new WeakMap,ql=new WeakMap,Ql=new WeakMap,Wl=new WeakMap,Hl
15=new WeakMap,$l=new WeakMap;var no,Mt,Kl,so,oo,zc,Yl,mf,io=class{constructor(e,r,i){o(this,oo);o(this,Yl);o(this,no,"FIG");o(this,Mt,void 0);o(this,Kl,void 0);o(this,so,void 0);m(this,Kl,r),m(this,Mt,e),m(this,so,i)}setupGA(){t(this,Mt).dataLayer=t(this,Mt).dataLayer||[]}sendVisitorId(e){h(this,oo,zc).call(this,"figpii-id-push-ga4",{figpii_visitor_id:e})}sendExperimentVariationEvent(e,r){r!==ft&&(h(this,oo,zc).call(this,"figpii-data-push-ga4",{figpii_exp_variant_string:`${t(this,no)}-${e}-${r}`}),h(this,Yl,mf).call(this,"experience_impression",{exp_variant_string:`${t(this,no)}-${e}-${r}`}))}};no=new WeakMap,Mt=new WeakMap,Kl=new WeakMap,so=new WeakMap,oo=new WeakSet,zc=function(e,r){let i={event:e};i=Object.assign(i,r),t(this,Mt).dataLayer.push(i)},Yl=new WeakSet,mf=function(e,r){if(typeof t(this,Mt).gtag!="function"){t(this,so).warn("`window.gtag` is missing.");return}t(this,Mt).gtag("event",e,r)};var pf=(d,e)=>{try{return new URLSearchParams(d.location.search).get(e)==="1"}catch(r){return!1}},yf=(d,e)=>{try{return new URLSearchParams(d.location.search).get(e)==="1"}catch(r){return!1}},vf=(d,e,r)=>{try{let i=d.sessionStorage.getItem(e);if(!i)return!1;let n=null;try{n=JSON.parse(i)}catch(f){}if(!n||!n.testId||!n.pageId||typeof n.expiresAt=="number"&&n.expiresAt<Date.now()){try{d.sessionStorage.removeItem(e),r&&d.sessionStorage.removeItem(r)}catch(f){}return!1}return!0}catch(i){return!1}},Ef=(d,e)=>{try{let r=new URLSearchParams(d.location.search);if(r.get(e.standaloneQueryParam)!=="1")return null;let i=r.get(e.tokenQueryParam),n=r.get(e.toolIdQueryParam),c=r.get(e.variationIdQueryParam);if(!i||!n||!c)return null;let f=r.get(e.pageNameQueryParam)||"Variation";return{token:i,testId:n,pageId:c,pageName:f}}catch(r){return null}},If=(d,e)=>{try{let r=new URLSearchParams(d.location.search),i=!1,n=y=>{r.has(y)&&(r.delete(y),i=!0)};if(n(e.pendingQueryParam),n(e.standaloneQueryParam),n(e.tokenQueryParam),n(e.pageNameQueryParam),n(e.toolIdQueryParam),n(e.variationIdQueryParam),!i)return;let c=r.toString(),f=d.location.pathname+(c?"?"+c:"")+d.location.hash;d.history.replaceState({},"",f)}catch(r){}};var Vh=3e4;(async(d,e)=>{var H,B,D,te;function r(j){for(let V in j.experiments)for(let Y in j.experiments[V].variations){let q=j.experiments[V].variations[Y];if(q.loadJquery)return 0;if(q.elements.length>0)return 1}return 2}function i(j,V){if(/localhost?$/.test(d.location.hostname)||d.location.hostname==="127.0.0.1"||bn(j,V.url))return!0;for(let Y of V.extraDomains)if(bn(j,Y))return!0;return!1}if(typeof d.FIGPII=="object"||typeof Promise!="function"||typeof fetch!="function")return;let n=new URLSearchParams(d.location.search);if(de(n,e.bootstrap.disableQueryParam)==="1")return;let c=new cn(e),f=new hn(console,c);de(n,e.bootstrap.debugQueryParam)==="1"&&f.setDebug(!0);let y=new En(fetch.bind(d),JSON),E=new ri(d.document,d.localStorage,d.sessionStorage,f),S=new $n(d),R={constructors:{},helpers:{documentReady:Mu.bind(null,[d.document]),documentComplete:vc,waitForElementToDisplay:Nu,waitForCondition:Fu,waitForConditionPromise:ju,track:Ec},track:Ec};d.FIGPII=R;let L=e.editor,w=L?pf(d,L.pendingQueryParam):!1,M=L?yf(d,L.standaloneQueryParam):!1,x=L?vf(d,L.sessionStorageKey,L.tokenStorageKey):!1;if(L&&(w||M||x)){let j={pendingQueryParam:L.pendingQueryParam,standaloneQueryParam:L.standaloneQueryParam,tokenQueryParam:L.tokenQueryParam,pageNameQueryParam:L.pageNameQueryParam,toolIdQueryParam:e.preview.toolIdQueryParam,variationIdQueryParam:e.preview.variationIdQueryParam},V=M?Ef(d,j):null;V&&(d.__FIGPII_STANDALONE_PARAMS__=V,d.setTimeout(()=>{try{delete d.__FIGPII_STANDALONE_PARAMS__}catch(q){}},Vh)),(M||w)&&If(d,j);let Y=new ai(d.document,f);Y.insertScript(L.moduleUrl,!0,"anonymous").then(()=>{let q=R.constructors.Editor;if(!q){f.error("Editor module loaded but constructor missing",{});return}let ye=new q(d,f,e,y,E,Y,w,M);R.editor=ye,ye.init().catch(Te=>f.error("Editor init failed: "+(Te&&Te.message||String(Te)),{}))}).catch(q=>f.error("Editor module load failed: "+(q&&q.message||String(q)),{}));return}d._FJQ=null,typeof d[e.bootstrap.globalEventArrayName]!="object"&&(d[e.bootstrap.globalEventArrayName]=[]);
15try{let Xl=function(){let W=fe.getWithType("cookies","fp_16HexString")||fe.getWithType("localStorage","fp_16HexString")||fe.getWithType("sessionStorage","fp_16HexString")||fe.getWithType("memory","fp_16HexString");return W||(W=Qu(16,"0123456789abcdef"),fe.setWithType("cookies","fp_16HexString",W)||fe.setWithType("localStorage","fp_16HexString",W)||fe.setWithType("sessionStorage","fp_16HexString",W)||fe.setWithType("memory","fp_16HexString",W)),W},dt=function(W=!0){if(!e.bootstrap.figpiiUsageEndpoint)return;let ke=Xl(),xe=new URL(e.bootstrap.figpiiUsageEndpoint),J=xe.searchParams;J.append("idsite","4"),J.append("send_image","0"),J.append("rec","1"),J.append("action_name",`${d.document.title}`),J.append("url",`${d.location.href}`),J.append("_id",`${ke}`),J.append("rand",`${Date.now()}`),J.append("apiv","1");let Ft=he.getAccountId();J.append("dimension1",`${Ft}`);let jt=he.getDomainId();J.append("dimension2",`${jt}`),document.referrer!==""&&J.append("urlref",`${document.referrer}`);let Ve=he.getVisitorIdIfExists();if(Ve&&J.append("uid",`${Ve}`),W&&d.performance&&d.performance.timing){let{connectEnd:Gt=0,fetchStart:Xr=0,responseStart:uo=0,responseEnd:fo=0,requestStart:ho=0,domInteractive:nn=0,domLoading:go=0,domComplete:mo=0,loadEventEnd:zl=0,loadEventStart:sn=0}=d.performance.timing;J.append("pf_net",`${Gt-Xr}`),J.append("pf_srv",`${uo-ho}`),J.append("pf_tfr",`${fo-uo}`),J.append("pf_dm1",`${nn-go}`),J.append("pf_dm2",`${mo-nn}`),J.append("pf_onl",`${zl-sn}`)}he.isConsentGiven().then(Gt=>{Gt&&y.request({url:xe.toString()})})},j=await y.request({url:e.domain.settingsUrl});if(j.body===null||typeof j.body=="string")return;let V=Gu(j.body,_o);R.settings=V;let Y=new wn(d,d.history,d.location,d.document,f,V);R.historyListener=Y,c.setSettings(V);let q=Object.keys(V.polls).length>0,ye=Object.keys(V.experiments).length>0,Te=Object.keys(V.recordings).length>0,_t=new io(d,V,f);if(_t.setupGA(),!i(d.location.hostname,V)){f.warn("Domain is not allowed.");return}let Z=j.headers,Nt=()=>{var jt,Ve,Gt,Xr;let W={isIdentified:!1,isCrawler:!1,isMobile:!1},ke=((jt=Z==null?void 0:Z.get("x-is-crawler"))==null?void 0:jt.trim())==="1",xe=(Ve=Z==null?void 0:Z.get("x-client-hwtype"))==null?void 0:Ve.trim().toLocaleLowerCase().includes("desktop"),J=((Gt=Z==null?void 0:Z.get("x-is-mobile"))==null?void 0:Gt.trim())==="1",Ft=((Xr=Z==null?void 0:Z.get("x-is-tablet"))==null?void 0:Xr.trim())==="1";return W.isIdentified=ke||J||Ft||xe,W.isMobile=J||Ft,W.isCrawler=ke,W},ie=(H=Z==null?void 0:Z.get("x-figpii-city"))==null?void 0:H.trim(),Oe=(B=Z==null?void 0:Z.get("x-figpii-region"))==null?void 0:B.trim(),Kr=(D=Z==null?void 0:Z.get("x-figpii-country"))==null?void 0:D.trim(),Yr=(te=Z==null?void 0:Z.get("x-client-ip"))==null?void 0:te.trim(),Jl={city:ie,region:Oe,country:Kr,ip:Yr},ao=Nt(),fe=new ri(d.document,d.localStorage,d.sessionStorage,f,Co(d.location.hostname,V)),he=new Cn(d,fe,y,f,d.location,d.navigator,d.screen,Y,e,V,Jl,S,ao),bt=xd(n,fe,e.preview.sessionStorageKey,e.preview.toolIdQueryParam,e.preview.variationIdQueryParam);Y.addListener(()=>he.reset()),R.clientInfo=he,R.setConsent=W=>he.setConsent(W);let en=new vs(d,fe,f,e);en.getLast()||en.add(d.document.referrer);let ut=new ai(d.document,f);if(V.extraJsUrl&&ut.insertScript(V.extraJsUrl,!0,"anonymous"),de(n,e.bootstrap.verifyQueryParam)==="1"){await he.verify();return}let Jr,ur=bt?0:r(V);ur===0?Jr=ut.insertScript(e.experiment.jqueryUrl,!0,"anonymous"):ur===1?Jr=ut.insertScript(e.experiment.sizzleUrl,!0,"anonymous"):Jr=Promise.resolve();let tn;bt?tn=ut.insertScript(e.preview.moduleUrl,!0,"anonymous"):tn=Promise.resolve();let rn=new Fn(d.location,he,Y,f,fe,e,V,d,S,en),je=V.extraDomains.length>0?new hs(d.document,d.location,d.navigator,he,null,f,e,V):null;if(!ye&&!bt){d._fpHide&&typeof d._fpHide.show=="function"&&d._fpHide.show();let W=je===null?null:je.getVisitorIdFromCurrentUrl();he.prepare(W)}else new zs(d,he,S,Y,V,e,f).init(),Promise.all([Jr,tn]).then(()=>{let ke=ur===0&&typeof d._FJQ=="function"?d._FJQ:ur===1&&typeof d.Sizzle=="function"?d.Sizzle:null,xe=new er(d,he,f,fe,rn,y,ut,S,e,V,_t,ke);R.experimentManager=xe;let J=null;je!==null&&(xe!==null&&xe.setCrossDomain(je),R.crossDomain=je,J=typeof je.getVisitorIdFromCurrentUrl=="function"?je.getVisitorIdFromCurrentUrl():je.getFingerprintFromCurrentUrl()),bt&&(R.previewWidget=new R.constructors.PreviewWidget(d,fe,xe,e,f),R.previewWidget.init()),he.prepare(J),xe!==null&&(xe.init(),Y.addListener(()=>{xe.reset()}))});Promise.all([vc(d.document),Ic()]).then(([W,ke])=>dt(ke)),Y.addListener(()=>{Ic().then(W=>dt(W))});let lo=de(n,e.screenshotRetake.toolIdQueryParam)!==null&&de(n,e.screenshotRetake.tokenQueryParam)!==null;if(lo&&ut.insertScript(e.screenshotRetake.moduleUrl,!0,"anonymous").then(()=>{new R.constructors.ScreenshotRetaker(d,fe,he,y,f,e,V).init()}),!(ye||q||Te||bt)){f.warn("Tools are not present.");return}q&&!bt&&ut.insertScript(e.poll.moduleUrl,!0,"anonymous").then(()=>{let W=new R.constructors.PollManager(V,e,d,y,rn,he,f,fe,S);R.pollManager=W,W.init(),Y.addListener(()=>{W.reset()})});let co=!1,dr=()=>{let W=new Hn(f);ut.insertScript(e.recorder.moduleUrl,!0,"anonymous").then(()=>{let ke=new R.constructors.RecorderManager(W,y,rn,he,fe,d,f,S,e,V);R.recorderManager=ke,ke.init(),Y.addListener(()=>{ke.reset()}),co&&S.dispatchEvent("eventConversion",{value:"recorder_on_load"})})};if(Te&&!lo&&!bt){let W=d.document.getElementById("piiTester");W&&W.getAttribute("data-wait-for-on-load")==="true"&&d.document.readyState!=="complete"?(co=!0,d.addEventListener("load",dr)):dr()}}catch(j){let V=j&&j.message||String(j);!V.startsWith("Failed to fetch")&&!V.startsWith("Load failed")&&f.error((j&&j.name||"Error")+": "+V,{})}})(window,Ou());})();

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