@adv-re/segment-wrapper 4.36.2 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -45
- package/dist/index.d.mts +17 -92
- package/dist/index.d.ts +17 -92
- package/dist/index.js +198 -308
- package/dist/index.mjs +195 -306
- package/package.json +2 -2
- package/umd/index.js +1 -1
package/umd/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var _i=Object.create;var xt=Object.defineProperty;var Ci=Object.getOwnPropertyDescriptor;var hi=Object.getOwnPropertyNames;var Ii=Object.getPrototypeOf,yi=Object.prototype.hasOwnProperty;var Si=(o,d)=>()=>(d||o((d={exports:{}}).exports,d),d.exports);var Ai=(o,d,p,m)=>{if(d&&typeof d=="object"||typeof d=="function")for(let y of hi(d))!yi.call(o,y)&&y!==p&&xt(o,y,{get:()=>d[y],enumerable:!(m=Ci(d,y))||m.enumerable});return o};var vi=(o,d,p)=>(p=o!=null?_i(Ii(o)):{},Ai(d||!o||!o.__esModule?xt(p,"default",{value:o,enumerable:!0}):p,o));var Ft=Si(()=>{"use strict";var Er=(function(){"use strict";function o(t){"@babel/helpers - typeof";return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function d(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function p(){return{callbacks:{},add:function(t,r){this.callbacks[t]=this.callbacks[t]||[];var a=this.callbacks[t].push(r)-1,i=this;return function(){i.callbacks[t].splice(a,1)}},execute:function(t,r){if(this.callbacks[t]){r=r===void 0?[]:r,r=r instanceof Array?r:[r];try{for(;this.callbacks[t].length;){var a=this.callbacks[t].shift();typeof a=="function"?a.apply(null,r):a instanceof Array&&a[1].apply(a[0],r)}delete this.callbacks[t]}catch{}}},executeAll:function(t,r){(r||t&&!x.isObjectEmpty(t))&&Object.keys(this.callbacks).forEach(function(a){var i=t[a]!==void 0?t[a]:"";this.execute(a,i)},this)},hasCallbacks:function(){return!!Object.keys(this.callbacks).length}}}function m(t,r,a){var i=t?.[r];return i===void 0?a:i}function y(t){for(var r=/^\d+$/,a=0,i=t.length;a<i;a++)if(!r.test(t[a]))return!1;return!0}function P(t,r){for(;t.length<r.length;)t.push("0");for(;r.length<t.length;)r.push("0")}function F(t,r){for(var a=0;a<t.length;a++){var i=parseInt(t[a],10),c=parseInt(r[a],10);if(i>c)return 1;if(c>i)return-1}return 0}function L(t,r){if(t===r)return 0;var a=t.toString().split("."),i=r.toString().split(".");return y(a.concat(i))?(P(a,i),F(a,i)):NaN}function te(t){return t===Object(t)&&Object.keys(t).length===0}function Ce(t){return typeof t=="function"||t instanceof Array&&t.length}function he(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};this.log=$e("log",t,r),this.warn=$e("warn",t,r),this.error=$e("error",t,r)}function Ie(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.isEnabled,a=t.cookieName,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=i.cookies;return r&&a&&c?{remove:function(){c.remove(a)},get:function(){var u=c.get(a),f={};try{f=JSON.parse(u)}catch{f={}}return f},set:function(u,f){f=f||{},c.set(a,JSON.stringify(u),{domain:f.optInCookieDomain||"",cookieLifetime:f.optInStorageExpiry||3419e4,expires:!0})}}:{get:Me,set:Me,remove:Me}}function fe(t){this.name=this.constructor.name,this.message=t,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}function be(){function t(O,V){var J=qe(O);return J.length?J.every(function(pe){return!!V[pe]}):Zn(V)}function r(){ie(z),B(ge.COMPLETE),j(v.status,v.permissions),e.set(v.permissions,{optInCookieDomain:I,optInStorageExpiry:C}),R.execute(kt)}function a(O){return function(V,J){if(!ze(V))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return B(ge.CHANGED),Object.assign(z,bt(qe(V),O)),J||r(),v}}var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.doesOptInApply,u=i.previousPermissions,f=i.preOptInApprovals,h=i.isOptInStorageEnabled,I=i.optInCookieDomain,C=i.optInStorageExpiry,_=i.isIabContext,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=T.cookies,A=ii(u);wt(A,"Invalid `previousPermissions`!"),wt(f,"Invalid `preOptInApprovals`!");var e=Ie({isEnabled:!!h,cookieName:"adobeujs-optin"},{cookies:M}),v=this,j=$n(v),R=Tt(),H=Mt(A),Y=Mt(f),X=e.get(),q={},G=(function(O,V){return Je(O)||V&&Je(V)?ge.COMPLETE:ge.PENDING})(H,X),ne=(function(O,V,J){var pe=bt(Ne,!c);return c?Object.assign({},pe,O,V,J):pe})(Y,H,X),z=ei(ne),B=function(O){return G=O},ie=function(O){return ne=O};v.deny=a(!1),v.approve=a(!0),v.denyAll=v.deny.bind(v,Ne),v.approveAll=v.approve.bind(v,Ne),v.isApproved=function(O){return t(O,v.permissions)},v.isPreApproved=function(O){return t(O,Y)},v.fetchPermissions=function(O){var V=arguments.length>1&&arguments[1]!==void 0&&arguments[1],J=V?v.on(ge.COMPLETE,O):Me;return!c||c&&v.isComplete||f?O(v.permissions):V||R.add(kt,function(){return O(v.permissions)}),J},v.complete=function(){v.status===ge.CHANGED&&r()},v.registerPlugin=function(O){if(!O||!O.name||typeof O.onRegister!="function")throw new Error(si);q[O.name]||(q[O.name]=O,O.onRegister.call(O,v))},v.execute=ai(q),Object.defineProperties(v,{permissions:{get:function(){return ne}},status:{get:function(){return G}},Categories:{get:function(){return ye}},doesOptInApply:{get:function(){return!!c}},isPending:{get:function(){return v.status===ge.PENDING}},isComplete:{get:function(){return v.status===ge.COMPLETE}},__plugins:{get:function(){return Object.keys(q)}},isIabContext:{get:function(){return _}}})}function ft(t,r){function a(){c=null,t.call(t,new fe("The call took longer than you wanted!"))}function i(){c&&(clearTimeout(c),t.apply(t,arguments))}if(r===void 0)return t;var c=setTimeout(a,r);return i}function gt(){if(window.__cmp)return window.__cmp;var t=window;if(t===window.top)return void xe.error("__cmp not found");for(var r;!r;){t=t.parent;try{t.frames.__cmpLocator&&(r=t)}catch{}if(t===window.top)break}if(!r)return void xe.error("__cmp not found");var a={};return window.__cmp=function(i,c,u){var f=Math.random()+"",h={__cmpCall:{command:i,parameter:c,callId:f}};a[f]=u,r.postMessage(h,"*")},window.addEventListener("message",function(i){var c=i.data;if(typeof c=="string")try{c=JSON.parse(i.data)}catch{}if(c.__cmpReturn){var u=c.__cmpReturn;a[u.callId]&&(a[u.callId](u.returnValue,u.success),delete a[u.callId])}},!1),window.__cmp}function vn(){var t=this;t.name="iabPlugin",t.version="0.0.1";var r=Tt(),a={allConsentData:null},i=function(I){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a[I]=C};t.fetchConsentData=function(I){var C=I.callback,_=I.timeout,T=ft(C,_);c({callback:T})},t.isApproved=function(I){var C=I.callback,_=I.category,T=I.timeout;if(a.allConsentData)return C(null,h(_,a.allConsentData.vendorConsents,a.allConsentData.purposeConsents));var M=ft(function(A){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=e.vendorConsents,j=e.purposeConsents;C(A,h(_,v,j))},T);c({category:_,callback:M})},t.onRegister=function(I){var C=Object.keys(Xe),_=function(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=M.purposeConsents,e=M.gdprApplies,v=M.vendorConsents;!T&&e&&v&&A&&(C.forEach(function(j){var R=h(j,v,A);I[R?"approve":"deny"](j,!0)}),I.complete())};t.fetchConsentData({callback:_})};var c=function(I){var C=I.callback;if(a.allConsentData)return C(null,a.allConsentData);r.add("FETCH_CONSENT_DATA",C);var _={};f(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=T.purposeConsents,A=T.gdprApplies,e=T.vendorConsents;arguments.length>1&&arguments[1]&&(_={purposeConsents:M,gdprApplies:A,vendorConsents:e},i("allConsentData",_)),u(function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};arguments.length>1&&arguments[1]&&(_.consentString=v.consentData,i("allConsentData",_)),r.execute("FETCH_CONSENT_DATA",[null,a.allConsentData])})})},u=function(I){var C=gt();C&&C("getConsentData",null,I)},f=function(I){var C=oi(Xe),_=gt();_&&_("getVendorConsents",C,I)},h=function(I){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=!!C[Xe[I]];return T&&(function(){return qn[I].every(function(M){return _[M]})})()}}var w=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Object.assign=Object.assign||function(t){for(var r,a,i=1;i<arguments.length;++i){a=arguments[i];for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t};var Pe,Re,En={HANDSHAKE:"HANDSHAKE",GETSTATE:"GETSTATE",PARENTSTATE:"PARENTSTATE"},Dn={MCMID:"MCMID",MCAID:"MCAID",MCAAMB:"MCAAMB",MCAAMLH:"MCAAMLH",MCOPTOUT:"MCOPTOUT",CUSTOMERIDS:"CUSTOMERIDS"},Tn={MCMID:"getMarketingCloudVisitorID",MCAID:"getAnalyticsVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",ALLFIELDS:"getVisitorValues"},bn={CUSTOMERIDS:"getCustomerIDs"},Mn={MCMID:"getMarketingCloudVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",MCAID:"getAnalyticsVisitorID",CUSTOMERIDS:"getCustomerIDs",ALLFIELDS:"getVisitorValues"},On={MC:"MCMID",A:"MCAID",AAM:"MCAAMB"},wn={MCMID:"MCMID",MCOPTOUT:"MCOPTOUT",MCAID:"MCAID",MCAAMLH:"MCAAMLH",MCAAMB:"MCAAMB"},kn={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},Pn={GLOBAL:"global"},Z={MESSAGES:En,STATE_KEYS_MAP:Dn,ASYNC_API_MAP:Tn,SYNC_API_MAP:bn,ALL_APIS:Mn,FIELDGROUP_TO_FIELD:On,FIELDS:wn,AUTH_STATE:kn,OPT_OUT:Pn},pt=Z.STATE_KEYS_MAP,Rn=function(t){function r(){}function a(i,c){var u=this;return function(){var f=t(0,i),h={};return h[i]=f,u.setStateAndPublish(h),c(f),f}}this.getMarketingCloudVisitorID=function(i){i=i||r;var c=this.findField(pt.MCMID,i),u=a.call(this,pt.MCMID,i);return c!==void 0?c:u()},this.getVisitorValues=function(i){this.getMarketingCloudVisitorID(function(c){i({MCMID:c})})}},Ln=Z.MESSAGES,mt=Z.ASYNC_API_MAP,_t=Z.SYNC_API_MAP,Nn=function(){function t(){}function r(c,u){var f=this;return function(){return f.callbackRegistry.add(c,u),f.messageParent(Ln.GETSTATE),""}}function a(c){this[mt[c]]=function(u){u=u||t;var f=this.findField(c,u),h=r.call(this,c,u);return f!==void 0?f:h()}}function i(c){this[_t[c]]=function(){return this.findField(c,t)||{}}}Object.keys(mt).forEach(a,this),Object.keys(_t).forEach(i,this)},Ct=Z.ASYNC_API_MAP,xn=function(){Object.keys(Ct).forEach(function(t){this[Ct[t]]=function(r){this.callbackRegistry.add(t,r)}},this)},x=(function(t,r){return r={exports:{}},t(r,r.exports),r.exports})(function(t,r){r.isObjectEmpty=function(i){return i===Object(i)&&Object.keys(i).length===0},r.isValueEmpty=function(i){return i===""||r.isObjectEmpty(i)};var a=function(){var i=navigator.appName,c=navigator.userAgent;return i==="Microsoft Internet Explorer"||c.indexOf("MSIE ")>=0||c.indexOf("Trident/")>=0&&c.indexOf("Windows NT 6")>=0};r.getIeVersion=function(){return document.documentMode?document.documentMode:a()?7:null},r.encodeAndBuildRequest=function(i,c){return i.map(encodeURIComponent).join(c)},r.isObject=function(i){return i!==null&&o(i)==="object"&&Array.isArray(i)===!1},r.defineGlobalNamespace=function(){return window.adobe=r.isObject(window.adobe)?window.adobe:{},window.adobe},r.pluck=function(i,c){return c.reduce(function(u,f){return i[f]&&(u[f]=i[f]),u},Object.create(null))},r.parseOptOut=function(i,c,u){c||(c=u,i.d_optout&&i.d_optout instanceof Array&&(c=i.d_optout.join(",")));var f=parseInt(i.d_ottl,10);return isNaN(f)&&(f=7200),{optOut:c,d_ottl:f}},r.normalizeBoolean=function(i){var c=i;return i==="true"?c=!0:i==="false"&&(c=!1),c}}),Vn=(x.isObjectEmpty,x.isValueEmpty,x.getIeVersion,x.encodeAndBuildRequest,x.isObject,x.defineGlobalNamespace,x.pluck,x.parseOptOut,x.normalizeBoolean,p),Fn=Z.MESSAGES,Un={0:"prefix",1:"orgID",2:"state"},ht=function(t,r){this.parse=function(a){try{var i={};return a.data.split("|").forEach(function(c,u){c!==void 0&&(i[Un[u]]=u!==2?c:JSON.parse(c))}),i}catch{}},this.isInvalid=function(a){var i=this.parse(a);if(!i||Object.keys(i).length<2)return!0;var c=t!==i.orgID,u=!r||a.origin!==r,f=Object.keys(Fn).indexOf(i.prefix)===-1;return c||u||f},this.send=function(a,i,c){var u=i+"|"+t;c&&c===Object(c)&&(u+="|"+JSON.stringify(c));try{a.postMessage(u,r)}catch{}}},It=Z.MESSAGES,Gn=function(t,r,a,i){function c(R){Object.assign(A,R)}function u(R){Object.assign(A.state,R),Object.assign(A.state.ALLFIELDS,R),A.callbackRegistry.executeAll(A.state)}function f(R){if(!j.isInvalid(R)){v=!1;var H=j.parse(R);A.setStateAndPublish(H.state)}}function h(R){!v&&e&&(v=!0,j.send(i,R))}function I(){c(new Rn(a._generateID)),A.getMarketingCloudVisitorID(),A.callbackRegistry.executeAll(A.state,!0),w.removeEventListener("message",C)}function C(R){if(!j.isInvalid(R)){var H=j.parse(R);v=!1,w.clearTimeout(A._handshakeTimeout),w.removeEventListener("message",C),c(new Nn(A)),w.addEventListener("message",f),A.setStateAndPublish(H.state),A.callbackRegistry.hasCallbacks()&&h(It.GETSTATE)}}function _(){e&&postMessage?(w.addEventListener("message",C),h(It.HANDSHAKE),A._handshakeTimeout=setTimeout(I,250)):I()}function T(){w.s_c_in||(w.s_c_il=[],w.s_c_in=0),A._c="Visitor",A._il=w.s_c_il,A._in=w.s_c_in,A._il[A._in]=A,w.s_c_in++}function M(){function R(H){H.indexOf("_")!==0&&typeof a[H]=="function"&&(A[H]=function(){})}Object.keys(a).forEach(R),A.getSupplementalDataID=a.getSupplementalDataID,A.isAllowed=function(){return!0}}var A=this,e=r.whitelistParentDomain;A.state={ALLFIELDS:{}},A.version=a.version,A.marketingCloudOrgID=t,A.cookieDomain=a.cookieDomain||"",A._instanceType="child";var v=!1,j=new ht(t,e);A.callbackRegistry=Vn(),A.init=function(){T(),M(),c(new xn(A)),_()},A.findField=function(R,H){if(A.state[R]!==void 0)return H(A.state[R]),A.state[R]},A.messageParent=h,A.setStateAndPublish=u},Le=Z.MESSAGES,yt=Z.ALL_APIS,jn=Z.ASYNC_API_MAP,Hn=Z.FIELDGROUP_TO_FIELD,Bn=function(t,r){function a(){var C={};return Object.keys(yt).forEach(function(_){var T=yt[_],M=t[T]();x.isValueEmpty(M)||(C[_]=M)}),C}function i(){var C=[];return t._loading&&Object.keys(t._loading).forEach(function(_){if(t._loading[_]){var T=Hn[_];C.push(T)}}),C.length?C:null}function c(C){return function _(T){var M=i();if(M){var A=jn[M[0]];t[A](_,!0)}else C()}}function u(C,_){var T=a();r.send(C,_,T)}function f(C){I(C),u(C,Le.HANDSHAKE)}function h(C){c(function(){u(C,Le.PARENTSTATE)})()}function I(C){function _(M){T.call(t,M),r.send(C,Le.PARENTSTATE,{CUSTOMERIDS:t.getCustomerIDs()})}var T=t.setCustomerIDs;t.setCustomerIDs=_}return function(C){r.isInvalid(C)||(r.parse(C).prefix===Le.HANDSHAKE?f:h)(C.source)}},Wn=function(t,r){function a(f){return function(h){i[f]=h,c++,c===u&&r(i)}}var i={},c=0,u=Object.keys(t).length;Object.keys(t).forEach(function(f){var h=t[f];if(h.fn){var I=h.args||[];I.unshift(a(f)),h.fn.apply(h.context||null,I)}})},Ae={get:function(t){t=encodeURIComponent(t);var r=(";"+document.cookie).split(" ").join(";"),a=r.indexOf(";"+t+"="),i=a<0?a:r.indexOf(";",a+1);return a<0?"":decodeURIComponent(r.substring(a+2+t.length,i<0?r.length:i))},set:function(t,r,a){var i=m(a,"cookieLifetime"),c=m(a,"expires"),u=m(a,"domain"),f=m(a,"secure"),h=f?"Secure":"";if(c&&i!=="SESSION"&&i!=="NONE"){var I=r!==""?parseInt(i||0,10):-60;if(I)c=new Date,c.setTime(c.getTime()+1e3*I);else if(c===1){c=new Date;var C=c.getYear();c.setYear(C+2+(C<1900?1900:0))}}else c=0;return t&&i!=="NONE"?(document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(r)+"; path=/;"+(c?" expires="+c.toGMTString()+";":"")+(u?" domain="+u+";":"")+h,this.get(t)===r):0},remove:function(t,r){var a=m(r,"domain");a=a?" domain="+a+";":"",document.cookie=encodeURIComponent(t)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+a}},St=function(t){var r;!t&&w.location&&(t=w.location.hostname),r=t;var a,i=r.split(".");for(a=i.length-2;a>=0;a--)if(r=i.slice(a).join("."),Ae.set("test","cookie",{domain:r}))return Ae.remove("test",{domain:r}),r;return""},At={compare:L,isLessThan:function(t,r){return L(t,r)<0},areVersionsDifferent:function(t,r){return L(t,r)!==0},isGreaterThan:function(t,r){return L(t,r)>0},isEqual:function(t,r){return L(t,r)===0}},vt=!!w.postMessage,Ke={postMessage:function(t,r,a){var i=1;r&&(vt?a.postMessage(t,r.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):r&&(a.location=r.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+t))},receiveMessage:function(t,r){var a;try{vt&&(t&&(a=function(i){if(typeof r=="string"&&i.origin!==r||Object.prototype.toString.call(r)==="[object Function]"&&r(i.origin)===!1)return!1;t(i)}),w.addEventListener?w[t?"addEventListener":"removeEventListener"]("message",a):w[t?"attachEvent":"detachEvent"]("onmessage",a))}catch{}}},Yn=function(t){var r,a,i="0123456789",c="",u="",f=8,h=10,I=10;if(t==1){for(i+="ABCDEF",r=0;16>r;r++)a=Math.floor(Math.random()*f),c+=i.substring(a,a+1),a=Math.floor(Math.random()*f),u+=i.substring(a,a+1),f=16;return c+"-"+u}for(r=0;19>r;r++)a=Math.floor(Math.random()*h),c+=i.substring(a,a+1),r===0&&a==9?h=3:((r==1||r==2)&&h!=10&&2>a||2<r)&&(h=10),a=Math.floor(Math.random()*I),u+=i.substring(a,a+1),r===0&&a==9?I=3:((r==1||r==2)&&I!=10&&2>a||2<r)&&(I=10);return c+u},Kn=function(t,r){return{corsMetadata:(function(){var a="none",i=!0;return typeof XMLHttpRequest<"u"&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?a="XMLHttpRequest":typeof XDomainRequest<"u"&&XDomainRequest===Object(XDomainRequest)&&(i=!1),Object.prototype.toString.call(w.HTMLElement).indexOf("Constructor")>0&&(i=!1)),{corsType:a,corsCookiesEnabled:i}})(),getCORSInstance:function(){return this.corsMetadata.corsType==="none"?null:new w[this.corsMetadata.corsType]},fireCORS:function(a,i,c){function u(I){var C;try{if((C=JSON.parse(I))!==Object(C))return void f.handleCORSError(a,null,"Response is not JSON")}catch(A){return void f.handleCORSError(a,A,"Error parsing response as JSON")}try{for(var _=a.callback,T=w,M=0;M<_.length;M++)T=T[_[M]];T(C)}catch(A){f.handleCORSError(a,A,"Error forming callback function")}}var f=this;i&&(a.loadErrorHandler=i);try{var h=this.getCORSInstance();h.open("get",a.corsUrl+"&ts="+new Date().getTime(),!0),this.corsMetadata.corsType==="XMLHttpRequest"&&(h.withCredentials=!0,h.timeout=t.loadTimeout,h.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),h.onreadystatechange=function(){this.readyState===4&&this.status===200&&u(this.responseText)}),h.onerror=function(I){f.handleCORSError(a,I,"onerror")},h.ontimeout=function(I){f.handleCORSError(a,I,"ontimeout")},h.send(),t._log.requests.push(a.corsUrl)}catch(I){this.handleCORSError(a,I,"try-catch")}},handleCORSError:function(a,i,c){t.CORSErrors.push({corsData:a,error:i,description:c}),a.loadErrorHandler&&(c==="ontimeout"?a.loadErrorHandler(!0):a.loadErrorHandler(!1))}}},K={POST_MESSAGE_ENABLED:!!w.postMessage,DAYS_BETWEEN_SYNC_ID_CALLS:1,MILLIS_PER_DAY:864e5,ADOBE_MC:"adobe_mc",ADOBE_MC_SDID:"adobe_mc_sdid",VALID_VISITOR_ID_REGEX:/^[0-9a-fA-F\-]+$/,ADOBE_MC_TTL_IN_MIN:5,VERSION_REGEX:/vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/,FIRST_PARTY_SERVER_COOKIE:"s_ecid"},Xn=function(t,r){var a=w.document;return{THROTTLE_START:3e4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(i){if(typeof i=="string"){var c=i.split("/");return c[0]+"//"+c[2]}},subdomain:null,url:null,getUrl:function(){var i,c="http://fast.",u="?d_nsid="+t.idSyncContainerID+"#"+encodeURIComponent(a.location.origin);return this.subdomain||(this.subdomain="nosubdomainreturned"),t.loadSSL&&(c=t.idSyncSSLUseAkamai?"https://fast.":"https://"),i=c+this.subdomain+".demdex.net/dest5.html"+u,this.iframeHost=this.getIframeHost(i),this.id="destination_publishing_iframe_"+this.subdomain+"_"+t.idSyncContainerID,i},checkDPIframeSrc:function(){var i="?d_nsid="+t.idSyncContainerID+"#"+encodeURIComponent(a.location.href);typeof t.dpIframeSrc=="string"&&t.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(t._subdomain||this.subdomain||new Date().getTime())+"_"+t.idSyncContainerID,this.iframeHost=this.getIframeHost(t.dpIframeSrc),this.url=t.dpIframeSrc+i)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,iframeLoadedCallbacks:[],regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],messageSendingInterval:K.POST_MESSAGE_ENABLED?null:100,onPageDestinationsFired:[],jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframePreliminary:function(){return!(t.idSyncDisableSyncs||t.disableIdSyncs||t.idSyncDisable3rdPartySyncing||t.disableThirdPartyCookies||t.disableThirdPartyCalls)},readyToAttachIframe:function(){return this.readyToAttachIframePreliminary()&&(this.doAttachIframe||t._doAttachIframe)&&(this.subdomain&&this.subdomain!=="nosubdomainreturned"||t._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function i(){f=a.createElement("iframe"),f.sandbox="allow-scripts allow-same-origin",f.title="Adobe ID Syncing iFrame",f.id=u.id,f.name=u.id+"_name",f.style.cssText="display: none; width: 0; height: 0;",f.src=u.url,u.newIframeCreated=!0,c(),a.body.appendChild(f)}function c(h){f.addEventListener("load",function(){f.className="aamIframeLoaded",u.iframeHasLoaded=!0,u.fireIframeLoadedCallbacks(h),u.requestToProcess()})}this.startedAttachingIframe=!0;var u=this,f=a.getElementById(this.id);f?f.nodeName!=="IFRAME"?(this.id+="_2",this.iframeIdChanged=!0,i()):(this.newIframeCreated=!1,f.className!=="aamIframeLoaded"?(this.originalIframeHasLoadedAlready=!1,c("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=f,this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."),this.requestToProcess())):i(),this.iframe=f},fireIframeLoadedCallbacks:function(i){this.iframeLoadedCallbacks.forEach(function(c){typeof c=="function"&&c({message:i||"The destination publishing iframe was attached and loaded successfully."})}),this.iframeLoadedCallbacks=[]},requestToProcess:function(i){function c(){f.jsonForComparison.push(i),f.jsonWaiting.push(i),f.processSyncOnPage(i)}var u,f=this;if(i===Object(i)&&i.ibs)if(u=JSON.stringify(i.ibs||[]),this.jsonForComparison.length){var h,I,C,_=!1;for(h=0,I=this.jsonForComparison.length;h<I;h++)if(C=this.jsonForComparison[h],u===JSON.stringify(C.ibs||[])){_=!0;break}_?this.jsonDuplicates.push(i):c()}else c();if((this.receivedThirdPartyCookiesNotification||!K.POST_MESSAGE_ENABLED||this.iframeHasLoaded)&&this.jsonWaiting.length){var T=this.jsonWaiting.shift();this.process(T),this.requestToProcess()}t.idSyncDisableSyncs||t.disableIdSyncs||!this.iframeHasLoaded||!this.messages.length||this.sendingMessages||(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout(function(){f.messageSendingInterval=K.POST_MESSAGE_ENABLED?null:150},this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},getRegionAndCheckIfChanged:function(i,c){var u=t._getField("MCAAMLH"),f=i.d_region||i.dcs_region;return u?f&&(t._setFieldExpire("MCAAMLH",c),t._setField("MCAAMLH",f),parseInt(u,10)!==f&&(this.regionChanged=!0,this.timesRegionChanged++,t._setField("MCSYNCSOP",""),t._setField("MCSYNCS",""),u=f)):(u=f)&&(t._setFieldExpire("MCAAMLH",c),t._setField("MCAAMLH",u)),u||(u=""),u},processSyncOnPage:function(i){var c,u,f,h;if((c=i.ibs)&&c instanceof Array&&(u=c.length))for(f=0;f<u;f++)h=c[f],h.syncOnPage&&this.checkFirstPartyCookie(h,"","syncOnPage")},process:function(i){var c,u,f,h,I,C=encodeURIComponent,_=!1;if((c=i.ibs)&&c instanceof Array&&(u=c.length))for(_=!0,f=0;f<u;f++)h=c[f],I=[C("ibs"),C(h.id||""),C(h.tag||""),x.encodeAndBuildRequest(h.url||[],","),C(h.ttl||""),"","",h.fireURLSync?"true":"false"],h.syncOnPage||(this.canSetThirdPartyCookies?this.addMessage(I.join("|")):h.fireURLSync&&this.checkFirstPartyCookie(h,I.join("|")));_&&this.jsonProcessed.push(i)},checkFirstPartyCookie:function(i,c,u){var f=u==="syncOnPage",h=f?"MCSYNCSOP":"MCSYNCS";t._readVisitor();var I,C,_=t._getField(h),T=!1,M=!1,A=Math.ceil(new Date().getTime()/K.MILLIS_PER_DAY);_?(I=_.split("*"),C=this.pruneSyncData(I,i.id,A),T=C.dataPresent,M=C.dataValid,T&&M||this.fireSync(f,i,c,I,h,A)):(I=[],this.fireSync(f,i,c,I,h,A))},pruneSyncData:function(i,c,u){var f,h,I,C=!1,_=!1;for(h=0;h<i.length;h++)f=i[h],I=parseInt(f.split("-")[1],10),f.match("^"+c+"-")?(C=!0,u<I?_=!0:(i.splice(h,1),h--)):u>=I&&(i.splice(h,1),h--);return{dataPresent:C,dataValid:_}},manageSyncsSize:function(i){if(i.join("*").length>this.MAX_SYNCS_LENGTH)for(i.sort(function(c,u){return parseInt(c.split("-")[1],10)-parseInt(u.split("-")[1],10)});i.join("*").length>this.MAX_SYNCS_LENGTH;)i.shift()},fireSync:function(i,c,u,f,h,I){var C=this;if(i){if(c.tag==="img"){var _,T,M,A,e=c.url,v=t.loadSSL?"https:":"http:";for(_=0,T=e.length;_<T;_++){M=e[_],A=/^\/\//.test(M);var j=new Image;j.addEventListener("load",(function(R,H,Y,X){return function(){C.onPagePixels[R]=null,t._readVisitor();var q,G=t._getField(h),ne=[];if(G){q=G.split("*");var z,B,ie;for(z=0,B=q.length;z<B;z++)ie=q[z],ie.match("^"+H.id+"-")||ne.push(ie)}C.setSyncTrackingData(ne,H,Y,X)}})(this.onPagePixels.length,c,h,I)),j.src=(A?v:"")+M,this.onPagePixels.push(j)}}}else this.addMessage(u),this.setSyncTrackingData(f,c,h,I)},addMessage:function(i){var c=encodeURIComponent,u=c(t._enableErrorReporting?"---destpub-debug---":"---destpub---");this.messages.push((K.POST_MESSAGE_ENABLED?"":u)+i)},setSyncTrackingData:function(i,c,u,f){i.push(c.id+"-"+(f+Math.ceil(c.ttl/60/24))),this.manageSyncsSize(i),t._setField(u,i.join("*"))},sendMessages:function(){var i,c=this,u="",f=encodeURIComponent;this.regionChanged&&(u=f("---destpub-clear-dextp---"),this.regionChanged=!1),this.messages.length?K.POST_MESSAGE_ENABLED?(i=u+f("---destpub-combined---")+this.messages.join("%01"),this.postMessage(i),this.messages=[],this.sendingMessages=!1):(i=this.messages.shift(),this.postMessage(u+i),setTimeout(function(){c.sendMessages()},this.messageSendingInterval)):this.sendingMessages=!1},postMessage:function(i){Ke.postMessage(i,this.url,this.iframe.contentWindow),this.messagesPosted.push(i)},receiveMessage:function(i){var c,u=/^---destpub-to-parent---/;typeof i=="string"&&u.test(i)&&(c=i.replace(u,"").split("|"),c[0]==="canSetThirdPartyCookies"&&(this.canSetThirdPartyCookies=c[1]==="true",this.receivedThirdPartyCookiesNotification=!0,this.requestToProcess()),this.messagesReceived.push(i))},processIDCallData:function(i){(this.url==null||i.subdomain&&this.subdomain==="nosubdomainreturned")&&(typeof t._subdomain=="string"&&t._subdomain.length?this.subdomain=t._subdomain:this.subdomain=i.subdomain||"",this.url=this.getUrl()),i.ibs instanceof Array&&i.ibs.length&&(this.doAttachIframe=!0),this.readyToAttachIframe()&&(t.idSyncAttachIframeOnWindowLoad?(r.windowLoaded||a.readyState==="complete"||a.readyState==="loaded")&&this.attachIframe():this.attachIframeASAP()),typeof t.idSyncIDCallResult=="function"?t.idSyncIDCallResult(i):this.requestToProcess(i),typeof t.idSyncAfterIDCallResult=="function"&&t.idSyncAfterIDCallResult(i)},canMakeSyncIDCall:function(i,c){return t._forceSyncIDCall||!i||c-i>K.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function i(){c.startedAttachingIframe||(a.body?c.attachIframe():setTimeout(i,30))}var c=this;i()}}},Et={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{},disableThirdPartyCalls:{},discardTrackingServerECID:{},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{},disableThirdPartyCookies:{},idSyncDisableSyncs:{},disableIdSyncs:{},idSyncIDCallResult:{},idSyncSSLUseAkamai:{},isCoopSafe:{},isIabContext:{},isOptInStorageEnabled:{},loadSSL:{},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},whitelistIframeDomains:{},whitelistParentDomain:{}},Dt={getConfigNames:function(){return Object.keys(Et)},getConfigs:function(){return Et},normalizeConfig:function(t){return typeof t!="function"?t:t()}},$n=function(t){var r={};return t.on=function(a,i,c){if(!i||typeof i!="function")throw new Error("[ON] Callback should be a function.");r.hasOwnProperty(a)||(r[a]=[]);var u=r[a].push({callback:i,context:c})-1;return function(){r[a].splice(u,1),r[a].length||delete r[a]}},t.off=function(a,i){r.hasOwnProperty(a)&&(r[a]=r[a].filter(function(c){if(c.callback!==i)return c}))},t.publish=function(a){if(r.hasOwnProperty(a)){var i=[].slice.call(arguments,1);r[a].slice(0).forEach(function(c){c.callback.apply(c.context,i)})}},t.publish},ge={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},ye={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",MEDIA_ANALYTICS:"mediaaa"},Xe=(Pe={},d(Pe,ye.AAM,565),d(Pe,ye.ECID,565),Pe),qn=(Re={},d(Re,ye.AAM,[1,2,5]),d(Re,ye.ECID,[1,2,5]),Re),Ne=(function(t){return Object.keys(t).map(function(r){return t[r]})})(ye),Tt=function(){var t={};return t.callbacks=Object.create(null),t.add=function(r,a){if(!Ce(a))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");t.callbacks[r]=t.callbacks[r]||[];var i=t.callbacks[r].push(a)-1;return function(){t.callbacks[r].splice(i,1)}},t.execute=function(r,a){if(t.callbacks[r]){a=a===void 0?[]:a,a=a instanceof Array?a:[a];try{for(;t.callbacks[r].length;){var i=t.callbacks[r].shift();typeof i=="function"?i.apply(null,a):i instanceof Array&&i[1].apply(i[0],a)}delete t.callbacks[r]}catch{}}},t.executeAll=function(r,a){(a||r&&!te(r))&&Object.keys(t.callbacks).forEach(function(i){var c=r[i]!==void 0?r[i]:"";t.execute(i,c)},t)},t.hasCallbacks=function(){return!!Object.keys(t.callbacks).length},t},zn=function(){},Jn=function(t){var r=window,a=r.console;return!!a&&typeof a[t]=="function"},$e=function(t,r,a){return a()?function(){if(Jn(t)){for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];console[t].apply(console,[r].concat(c))}}:zn},Qn=he,xe=new Qn("[ADOBE OPT-IN]"),Ve=function(t,r){return o(t)===r},qe=function(t,r){return t instanceof Array?t:Ve(t,"string")?[t]:r||[]},Zn=function(t){var r=Object.keys(t);return!!r.length&&r.every(function(a){return t[a]===!0})},ze=function(t){return!(!t||ti(t))&&qe(t).every(function(r){return Ne.indexOf(r)>-1})},bt=function(t,r){return t.reduce(function(a,i){return a[i]=r,a},{})},ei=function(t){return JSON.parse(JSON.stringify(t))},ti=function(t){return Object.prototype.toString.call(t)==="[object Array]"&&!t.length},Mt=function(t){if(Ot(t))return t;try{return JSON.parse(t)}catch{return{}}},Je=function(t){return t===void 0||(Ot(t)?ze(Object.keys(t)):ni(t))},ni=function(t){try{var r=JSON.parse(t);return!!t&&Ve(t,"string")&&ze(Object.keys(r))}catch{return!1}},Ot=function(t){return t!==null&&Ve(t,"object")&&Array.isArray(t)===!1},Me=function(){},ii=function(t){return Ve(t,"function")?t():t},wt=function(t,r){Je(t)||xe.error("".concat(r))},ri=function(t){return Object.keys(t).map(function(r){return t[r]})},oi=function(t){return ri(t).filter(function(r,a,i){return i.indexOf(r)===a})},ai=function(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=r.command,i=r.params,c=i===void 0?{}:i,u=r.callback,f=u===void 0?Me:u;if(!a||a.indexOf(".")===-1)throw new Error("[OptIn.execute] Please provide a valid command.");try{var h=a.split("."),I=t[h[0]],C=h[1];if(!I||typeof I[C]!="function")throw new Error("Make sure the plugin and API name exist.");var _=Object.assign(c,{callback:f});I[C].call(I,_)}catch(T){xe.error("[execute] Something went wrong: "+T.message)}}};fe.prototype=Object.create(Error.prototype),fe.prototype.constructor=fe;var kt="fetchPermissions",si="[OptIn#registerPlugin] Plugin is invalid.";be.Categories=ye,be.TimeoutError=fe;var Qe=Object.freeze({OptIn:be,IabPlugin:vn}),ci=function(t,r){t.publishDestinations=function(a){var i=arguments[1],c=arguments[2];try{c=typeof c=="function"?c:a.callback}catch{c=function(){}}var u=r;if(!u.readyToAttachIframePreliminary())return void c({error:"The destination publishing iframe is disabled in the Visitor library."});if(typeof a=="string"){if(!a.length)return void c({error:"subdomain is not a populated string."});if(!(i instanceof Array&&i.length))return void c({error:"messages is not a populated array."});var f=!1;if(i.forEach(function(_){typeof _=="string"&&_.length&&(u.addMessage(_),f=!0)}),!f)return void c({error:"None of the messages are populated strings."})}else{if(!x.isObject(a))return void c({error:"Invalid parameters passed."});var h=a;if(typeof(a=h.subdomain)!="string"||!a.length)return void c({error:"config.subdomain is not a populated string."});var I=h.urlDestinations;if(!(I instanceof Array&&I.length))return void c({error:"config.urlDestinations is not a populated array."});var C=[];I.forEach(function(_){x.isObject(_)&&(_.hideReferrer?_.message&&u.addMessage(_.message):C.push(_))}),(function _(){C.length&&setTimeout(function(){var T=new Image,M=C.shift();T.src=M.url,u.onPageDestinationsFired.push(M),_()},100)})()}u.iframe?(c({message:"The destination publishing iframe is already attached and loaded."}),u.requestToProcess()):!t.subdomain&&t._getField("MCMID")?(u.subdomain=a,u.doAttachIframe=!0,u.url=u.getUrl(),u.readyToAttachIframe()?(u.iframeLoadedCallbacks.push(function(_){c({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(_.message||"no result")})}),u.attachIframe()):c({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):u.iframeLoadedCallbacks.push(function(_){c({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(_.message||"no result")})})}},li=function t(r){function a(ne,z){return ne>>>z|ne<<32-z}for(var i,c,u=Math.pow,f=u(2,32),h="",I=[],C=8*r.length,_=t.h=t.h||[],T=t.k=t.k||[],M=T.length,A={},e=2;M<64;e++)if(!A[e]){for(i=0;i<313;i+=e)A[i]=e;_[M]=u(e,.5)*f|0,T[M++]=u(e,1/3)*f|0}for(r+="\x80";r.length%64-56;)r+="\0";for(i=0;i<r.length;i++){if((c=r.charCodeAt(i))>>8)return;I[i>>2]|=c<<(3-i)%4*8}for(I[I.length]=C/f|0,I[I.length]=C,c=0;c<I.length;){var v=I.slice(c,c+=16),j=_;for(_=_.slice(0,8),i=0;i<64;i++){var R=v[i-15],H=v[i-2],Y=_[0],X=_[4],q=_[7]+(a(X,6)^a(X,11)^a(X,25))+(X&_[5]^~X&_[6])+T[i]+(v[i]=i<16?v[i]:v[i-16]+(a(R,7)^a(R,18)^R>>>3)+v[i-7]+(a(H,17)^a(H,19)^H>>>10)|0);_=[q+((a(Y,2)^a(Y,13)^a(Y,22))+(Y&_[1]^Y&_[2]^_[1]&_[2]))|0].concat(_),_[4]=_[4]+q|0}for(i=0;i<8;i++)_[i]=_[i]+j[i]|0}for(i=0;i<8;i++)for(c=3;c+1;c--){var G=_[i]>>8*c&255;h+=(G<16?0:"")+G.toString(16)}return h},Pt=function(t,r){return r!=="SHA-256"&&r!=="SHA256"&&r!=="sha256"&&r!=="sha-256"||(t=li(t)),t},Rt=function(t){return String(t).trim().toLowerCase()},di=Qe.OptIn;x.defineGlobalNamespace(),window.adobe.OptInCategories=di.Categories;var Ze=function(t,r,a){function i(n){var s=n;return function(l){var g=l||Y.location.href;try{var S=e._extractParamFromUri(g,s);if(S)return W.parsePipeDelimetedKeyValues(S)}catch{}}}function c(n){function s(l,g,S){l&&l.match(K.VALID_VISITOR_ID_REGEX)&&(S===G&&(H=!0),g(l))}s(n[G],e.setMarketingCloudVisitorID,G),e._setFieldExpire(O,-1),s(n[B],e.setAnalyticsVisitorID)}function u(n){n=n||{},e._supplementalDataIDCurrent=n.supplementalDataIDCurrent||"",e._supplementalDataIDCurrentConsumed=n.supplementalDataIDCurrentConsumed||{},e._supplementalDataIDLast=n.supplementalDataIDLast||"",e._supplementalDataIDLastConsumed=n.supplementalDataIDLastConsumed||{}}function f(n){function s(S,E,D){return D=D&&(D+="|"),D+=S+"="+encodeURIComponent(E)}function l(S,E){var D=E[0],N=E[1];return N!=null&&N!==V&&(S=s(D,N,S)),S}var g=n.reduce(l,"");return(function(S){var E=W.getTimestampInSeconds();return S=S&&(S+="|"),S+="TS="+E})(g)}function h(n){var s=n.minutesToLive,l="";return(e.idSyncDisableSyncs||e.disableIdSyncs)&&(l=l||"Error: id syncs have been disabled"),typeof n.dpid=="string"&&n.dpid.length||(l=l||"Error: config.dpid is empty"),typeof n.url=="string"&&n.url.length||(l=l||"Error: config.url is empty"),s===void 0?s=20160:(s=parseInt(s,10),(isNaN(s)||s<=0)&&(l=l||"Error: config.minutesToLive needs to be a positive number")),{error:l,ttl:s}}function I(){return!!e.configs.doesOptInApply&&!(v.optIn.isComplete&&C())}function C(){return e.configs.doesOptInApply&&e.configs.isIabContext?v.optIn.isApproved(v.optIn.Categories.ECID)&&R:v.optIn.isApproved(v.optIn.Categories.ECID)}function _(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach(function(n){var s=n[0],l=n.length===2?n[1]:"",g=e[s];e[s]=function(S){return C()&&e.isAllowed()?g.apply(e,arguments):(typeof S=="function"&&e._callCallback(S,[l]),l)}})}function T(n,s){if(R=!0,n)throw new Error("[IAB plugin] : "+n);s.gdprApplies&&(j=s.consentString),e.init(),A()}function M(){v.optIn.isComplete&&(v.optIn.isApproved(v.optIn.Categories.ECID)?e.configs.isIabContext?v.optIn.execute({command:"iabPlugin.fetchConsentData",callback:T}):(e.init(),A()):(_(),A()))}function A(){v.optIn.off("complete",M)}if(!a||a.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var e=this,v=window.adobe,j="",R=!1,H=!1;e.version="4.6.0";var Y=w,X=Y.Visitor;X.version=e.version,X.AuthState=Z.AUTH_STATE,X.OptOut=Z.OPT_OUT,Y.s_c_in||(Y.s_c_il=[],Y.s_c_in=0),e._c="Visitor",e._il=Y.s_c_il,e._in=Y.s_c_in,e._il[e._in]=e,Y.s_c_in++,e._instanceType="regular",e._log={requests:[]},e.marketingCloudOrgID=t,e.cookieName="AMCV_"+t,e.sessionCookieName="AMCVS_"+t,e.cookieDomain=St(),e.loadSSL=!0,e.loadTimeout=3e4,e.CORSErrors=[],e.marketingCloudServer=e.audienceManagerServer="dpm.demdex.net",e.sdidParamExpiry=30;var q=null,G="MCMID",ne="MCIDTS",z="A",B="MCAID",ie="AAM",O="MCAAMB",V="NONE",J=function(n){return!Object.prototype[n]},pe=Kn(e);e.FIELDS=Z.FIELDS,e.cookieRead=function(n){return Ae.get(n)},e.cookieWrite=function(n,s,l){var g=e.cookieLifetime?(""+e.cookieLifetime).toUpperCase():"",S=!1;return e.configs&&e.configs.secureCookie&&location.protocol==="https:"&&(S=!0),Ae.set(n,""+s,{expires:l,domain:e.cookieDomain,cookieLifetime:g,secure:S})},e.resetState=function(n){n?e._mergeServerState(n):u()},e._isAllowedDone=!1,e._isAllowedFlag=!1,e.isAllowed=function(){return e._isAllowedDone||(e._isAllowedDone=!0,(e.cookieRead(e.cookieName)||e.cookieWrite(e.cookieName,"T",1))&&(e._isAllowedFlag=!0)),e.cookieRead(e.cookieName)==="T"&&e._helpers.removeCookie(e.cookieName),e._isAllowedFlag},e.setMarketingCloudVisitorID=function(n){e._setMarketingCloudFields(n)},e._use1stPartyMarketingCloudServer=!1,e.getMarketingCloudVisitorID=function(n,s){e.marketingCloudServer&&e.marketingCloudServer.indexOf(".demdex.net")<0&&(e._use1stPartyMarketingCloudServer=!0);var l=e._getAudienceManagerURLData("_setMarketingCloudFields"),g=l.url;return e._getRemoteField(G,g,n,s,l)};var pi=function(n,s){var l={};e.getMarketingCloudVisitorID(function(){s.forEach(function(g){l[g]=e._getField(g,!0)}),s.indexOf("MCOPTOUT")!==-1?e.isOptedOut(function(g){l.MCOPTOUT=g,n(l)},null,!0):n(l)},!0)};e.getVisitorValues=function(n,s){var l={MCMID:{fn:e.getMarketingCloudVisitorID,args:[!0],context:e},MCOPTOUT:{fn:e.isOptedOut,args:[void 0,!0],context:e},MCAID:{fn:e.getAnalyticsVisitorID,args:[!0],context:e},MCAAMLH:{fn:e.getAudienceManagerLocationHint,args:[!0],context:e},MCAAMB:{fn:e.getAudienceManagerBlob,args:[!0],context:e}},g=s&&s.length?x.pluck(l,s):l;s&&s.indexOf("MCAID")===-1?pi(n,s):Wn(g,n)},e._currentCustomerIDs={},e._customerIDsHashChanged=!1,e._newCustomerIDsHash="",e.setCustomerIDs=function(n,s){function l(){e._customerIDsHashChanged=!1}if(!e.isOptedOut()&&n){if(!x.isObject(n)||x.isObjectEmpty(n))return!1;e._readVisitor();var g,S,E;for(g in n)if(J(g)&&(S=n[g],s=S.hasOwnProperty("hashType")?S.hashType:s,S))if(o(S)==="object"){var D={};if(S.id){if(s){if(!(E=Pt(Rt(S.id),s)))return;S.id=E,D.hashType=s}D.id=S.id}S.authState!=null&&(D.authState=S.authState),e._currentCustomerIDs[g]=D}else if(s){if(!(E=Pt(Rt(S),s)))return;e._currentCustomerIDs[g]={id:E,hashType:s}}else e._currentCustomerIDs[g]={id:S};var N=e.getCustomerIDs(),b=e._getField("MCCIDH"),$="";b||(b=0);for(g in N)J(g)&&(S=N[g],$+=($?"|":"")+g+"|"+(S.id?S.id:"")+(S.authState?S.authState:""));e._newCustomerIDsHash=String(e._hash($)),e._newCustomerIDsHash!==b&&(e._customerIDsHashChanged=!0,e._mapCustomerIDs(l))}},e.getCustomerIDs=function(){e._readVisitor();var n,s,l={};for(n in e._currentCustomerIDs)J(n)&&(s=e._currentCustomerIDs[n],s.id&&(l[n]||(l[n]={}),l[n].id=s.id,s.authState!=null?l[n].authState=s.authState:l[n].authState=X.AuthState.UNKNOWN,s.hashType&&(l[n].hashType=s.hashType)));return l},e.setAnalyticsVisitorID=function(n){e._setAnalyticsFields(n)},e.getAnalyticsVisitorID=function(n,s,l){if(!W.isTrackingServerPopulated()&&!l)return e._callCallback(n,[""]),"";var g="";if(l||(g=e.getMarketingCloudVisitorID(function(se){e.getAnalyticsVisitorID(n,!0)})),g||l){var S=l?e.marketingCloudServer:e.trackingServer,E="";e.loadSSL&&(l?e.marketingCloudServerSecure&&(S=e.marketingCloudServerSecure):e.trackingServerSecure&&(S=e.trackingServerSecure));var D={};if(S){var N="http"+(e.loadSSL?"s":"")+"://"+S+"/id",b="d_visid_ver="+e.version+"&mcorgid="+encodeURIComponent(e.marketingCloudOrgID)+(g?"&mid="+encodeURIComponent(g):"")+(e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies?"&d_coppa=true":""),$=["s_c_il",e._in,"_set"+(l?"MarketingCloud":"Analytics")+"Fields"];E=N+"?"+b+"&callback=s_c_il%5B"+e._in+"%5D._set"+(l?"MarketingCloud":"Analytics")+"Fields",D.corsUrl=N+"?"+b,D.callback=$}return D.url=E,e._getRemoteField(l?G:B,E,n,s,D)}return""},e.getAudienceManagerLocationHint=function(n,s){if(e.getMarketingCloudVisitorID(function(E){e.getAudienceManagerLocationHint(n,!0)})){var l=e._getField(B);if(!l&&W.isTrackingServerPopulated()&&(l=e.getAnalyticsVisitorID(function(E){e.getAudienceManagerLocationHint(n,!0)})),l||!W.isTrackingServerPopulated()){var g=e._getAudienceManagerURLData(),S=g.url;return e._getRemoteField("MCAAMLH",S,n,s,g)}}return""},e.getLocationHint=e.getAudienceManagerLocationHint,e.getAudienceManagerBlob=function(n,s){if(e.getMarketingCloudVisitorID(function(E){e.getAudienceManagerBlob(n,!0)})){var l=e._getField(B);if(!l&&W.isTrackingServerPopulated()&&(l=e.getAnalyticsVisitorID(function(E){e.getAudienceManagerBlob(n,!0)})),l||!W.isTrackingServerPopulated()){var g=e._getAudienceManagerURLData(),S=g.url;return e._customerIDsHashChanged&&e._setFieldExpire(O,-1),e._getRemoteField(O,S,n,s,g)}}return""},e._supplementalDataIDCurrent="",e._supplementalDataIDCurrentConsumed={},e._supplementalDataIDLast="",e._supplementalDataIDLastConsumed={},e.getSupplementalDataID=function(n,s){e._supplementalDataIDCurrent||s||(e._supplementalDataIDCurrent=e._generateID(1));var l=e._supplementalDataIDCurrent;return e._supplementalDataIDLast&&!e._supplementalDataIDLastConsumed[n]?(l=e._supplementalDataIDLast,e._supplementalDataIDLastConsumed[n]=!0):l&&(e._supplementalDataIDCurrentConsumed[n]&&(e._supplementalDataIDLast=e._supplementalDataIDCurrent,e._supplementalDataIDLastConsumed=e._supplementalDataIDCurrentConsumed,e._supplementalDataIDCurrent=l=s?"":e._generateID(1),e._supplementalDataIDCurrentConsumed={}),l&&(e._supplementalDataIDCurrentConsumed[n]=!0)),l};var Fe=!1;e._liberatedOptOut=null,e.getOptOut=function(n,s){var l=e._getAudienceManagerURLData("_setMarketingCloudFields"),g=l.url;if(C())return e._getRemoteField("MCOPTOUT",g,n,s,l);if(e._registerCallback("liberatedOptOut",n),e._liberatedOptOut!==null)return e._callAllCallbacks("liberatedOptOut",[e._liberatedOptOut]),Fe=!1,e._liberatedOptOut;if(Fe)return null;Fe=!0;var S="liberatedGetOptOut";return l.corsUrl=l.corsUrl.replace(/dpm\.demdex\.net\/id\?/,"dpm.demdex.net/optOutStatus?"),l.callback=[S],w[S]=function(E){if(E===Object(E)){var D,N,b=x.parseOptOut(E,D,V);D=b.optOut,N=1e3*b.d_ottl,e._liberatedOptOut=D,setTimeout(function(){e._liberatedOptOut=null},N)}e._callAllCallbacks("liberatedOptOut",[D]),Fe=!1},pe.fireCORS(l),null},e.isOptedOut=function(n,s,l){s||(s=X.OptOut.GLOBAL);var g=e.getOptOut(function(S){var E=S===X.OptOut.GLOBAL||S.indexOf(s)>=0;e._callCallback(n,[E])},l);return g?g===X.OptOut.GLOBAL||g.indexOf(s)>=0:null},e._fields=null,e._fieldsExpired=null,e._hash=function(n){var s,l,g=0;if(n)for(s=0;s<n.length;s++)l=n.charCodeAt(s),g=(g<<5)-g+l,g&=g;return g},e._generateID=Yn,e._generateLocalMID=function(){var n=e._generateID(0);return ae.isClientSideMarketingCloudVisitorID=!0,n},e._callbackList=null,e._callCallback=function(n,s){try{typeof n=="function"?n.apply(Y,s):n[1].apply(n[0],s)}catch{}},e._registerCallback=function(n,s){s&&(e._callbackList==null&&(e._callbackList={}),e._callbackList[n]==null&&(e._callbackList[n]=[]),e._callbackList[n].push(s))},e._callAllCallbacks=function(n,s){if(e._callbackList!=null){var l=e._callbackList[n];if(l)for(;l.length>0;)e._callCallback(l.shift(),s)}},e._addQuerystringParam=function(n,s,l,g){var S=encodeURIComponent(s)+"="+encodeURIComponent(l),E=W.parseHash(n),D=W.hashlessUrl(n);if(D.indexOf("?")===-1)return D+"?"+S+E;var N=D.split("?"),b=N[0]+"?",$=N[1];return b+W.addQueryParamAtLocation($,S,g)+E},e._extractParamFromUri=function(n,s){var l=new RegExp("[\\?&#]"+s+"=([^&#]*)"),g=l.exec(n);if(g&&g.length)return decodeURIComponent(g[1])},e._parseAdobeMcFromUrl=i(K.ADOBE_MC),e._parseAdobeMcSdidFromUrl=i(K.ADOBE_MC_SDID),e._attemptToPopulateSdidFromUrl=function(n){var s=e._parseAdobeMcSdidFromUrl(n),l=1e9;s&&s.TS&&(l=W.getTimestampInSeconds()-s.TS),s&&s.SDID&&s.MCORGID===t&&l<e.sdidParamExpiry&&(e._supplementalDataIDCurrent=s.SDID,e._supplementalDataIDCurrentConsumed.SDID_URL_PARAM=!0)},e._attemptToPopulateIdsFromUrl=function(){var n=e._parseAdobeMcFromUrl();if(n&&n.TS){var s=W.getTimestampInSeconds(),l=s-n.TS;if(Math.floor(l/60)>K.ADOBE_MC_TTL_IN_MIN||n.MCORGID!==t)return;c(n)}},e._mergeServerState=function(n){if(n)try{if(n=(function(l){return W.isObject(l)?l:JSON.parse(l)})(n),n[e.marketingCloudOrgID]){var s=n[e.marketingCloudOrgID];(function(l){W.isObject(l)&&e.setCustomerIDs(l)})(s.customerIDs),u(s.sdid)}}catch{throw new Error("`serverState` has an invalid format.")}},e._timeout=null,e._loadData=function(n,s,l,g){s=e._addQuerystringParam(s,"d_fieldgroup",n,1),g.url=e._addQuerystringParam(g.url,"d_fieldgroup",n,1),g.corsUrl=e._addQuerystringParam(g.corsUrl,"d_fieldgroup",n,1),ae.fieldGroupObj[n]=!0,g===Object(g)&&g.corsUrl&&pe.corsMetadata.corsType==="XMLHttpRequest"&&pe.fireCORS(g,l,n)},e._clearTimeout=function(n){e._timeout!=null&&e._timeout[n]&&(clearTimeout(e._timeout[n]),e._timeout[n]=0)},e._settingsDigest=0,e._getSettingsDigest=function(){if(!e._settingsDigest){var n=e.version;e.audienceManagerServer&&(n+="|"+e.audienceManagerServer),e.audienceManagerServerSecure&&(n+="|"+e.audienceManagerServerSecure),e._settingsDigest=e._hash(n)}return e._settingsDigest},e._readVisitorDone=!1,e._readVisitor=function(){if(!e._readVisitorDone){e._readVisitorDone=!0;var n,s,l,g,S,E,D=e._getSettingsDigest(),N=!1,b=e.cookieRead(e.cookieName),$=new Date;if(b||H||e.discardTrackingServerECID||(b=e.cookieRead(K.FIRST_PARTY_SERVER_COOKIE)),e._fields==null&&(e._fields={}),b&&b!=="T")for(b=b.split("|"),b[0].match(/^[\-0-9]+$/)&&(parseInt(b[0],10)!==D&&(N=!0),b.shift()),b.length%2==1&&b.pop(),n=0;n<b.length;n+=2)s=b[n].split("-"),l=s[0],g=b[n+1],s.length>1?(S=parseInt(s[1],10),E=s[1].indexOf("s")>0):(S=0,E=!1),N&&(l==="MCCIDH"&&(g=""),S>0&&(S=$.getTime()/1e3-60)),l&&g&&(e._setField(l,g,1),S>0&&(e._fields["expire"+l]=S+(E?"s":""),($.getTime()>=1e3*S||E&&!e.cookieRead(e.sessionCookieName))&&(e._fieldsExpired||(e._fieldsExpired={}),e._fieldsExpired[l]=!0)));!e._getField(B)&&W.isTrackingServerPopulated()&&(b=e.cookieRead("s_vi"))&&(b=b.split("|"),b.length>1&&b[0].indexOf("v1")>=0&&(g=b[1],n=g.indexOf("["),n>=0&&(g=g.substring(0,n)),g&&g.match(K.VALID_VISITOR_ID_REGEX)&&e._setField(B,g)))}},e._appendVersionTo=function(n){var s="vVersion|"+e.version,l=n?e._getCookieVersion(n):null;return l?At.areVersionsDifferent(l,e.version)&&(n=n.replace(K.VERSION_REGEX,s)):n+=(n?"|":"")+s,n},e._writeVisitor=function(){var n,s,l=e._getSettingsDigest();for(n in e._fields)J(n)&&e._fields[n]&&n.substring(0,6)!=="expire"&&(s=e._fields[n],l+=(l?"|":"")+n+(e._fields["expire"+n]?"-"+e._fields["expire"+n]:"")+"|"+s);l=e._appendVersionTo(l),e.cookieWrite(e.cookieName,l,1)},e._getField=function(n,s){return e._fields==null||!s&&e._fieldsExpired&&e._fieldsExpired[n]?null:e._fields[n]},e._setField=function(n,s,l){e._fields==null&&(e._fields={}),e._fields[n]=s,l||e._writeVisitor()},e._getFieldList=function(n,s){var l=e._getField(n,s);return l?l.split("*"):null},e._setFieldList=function(n,s,l){e._setField(n,s?s.join("*"):"",l)},e._getFieldMap=function(n,s){var l=e._getFieldList(n,s);if(l){var g,S={};for(g=0;g<l.length;g+=2)S[l[g]]=l[g+1];return S}return null},e._setFieldMap=function(n,s,l){var g,S=null;if(s){S=[];for(g in s)J(g)&&(S.push(g),S.push(s[g]))}e._setFieldList(n,S,l)},e._setFieldExpire=function(n,s,l){var g=new Date;g.setTime(g.getTime()+1e3*s),e._fields==null&&(e._fields={}),e._fields["expire"+n]=Math.floor(g.getTime()/1e3)+(l?"s":""),s<0?(e._fieldsExpired||(e._fieldsExpired={}),e._fieldsExpired[n]=!0):e._fieldsExpired&&(e._fieldsExpired[n]=!1),l&&(e.cookieRead(e.sessionCookieName)||e.cookieWrite(e.sessionCookieName,"1"))},e._findVisitorID=function(n){return n&&(o(n)==="object"&&(n=n.d_mid?n.d_mid:n.visitorID?n.visitorID:n.id?n.id:n.uuid?n.uuid:""+n),n&&(n=n.toUpperCase())==="NOTARGET"&&(n=V),n&&(n===V||n.match(K.VALID_VISITOR_ID_REGEX))||(n="")),n},e._setFields=function(n,s){if(e._clearTimeout(n),e._loading!=null&&(e._loading[n]=!1),ae.fieldGroupObj[n]&&ae.setState(n,!1),n==="MC"){ae.isClientSideMarketingCloudVisitorID!==!0&&(ae.isClientSideMarketingCloudVisitorID=!1);var l=e._getField(G);if(!l||e.overwriteCrossDomainMCIDAndAID){if(!(l=o(s)==="object"&&s.mid?s.mid:e._findVisitorID(s))){if(e._use1stPartyMarketingCloudServer&&!e.tried1stPartyMarketingCloudServer)return e.tried1stPartyMarketingCloudServer=!0,void e.getAnalyticsVisitorID(null,!1,!0);l=e._generateLocalMID()}e._setField(G,l)}l&&l!==V||(l=""),o(s)==="object"&&((s.d_region||s.dcs_region||s.d_blob||s.blob)&&e._setFields(ie,s),e._use1stPartyMarketingCloudServer&&s.mid&&e._setFields(z,{id:s.id})),e._callAllCallbacks(G,[l])}if(n===ie&&o(s)==="object"){var g=604800;s.id_sync_ttl!=null&&s.id_sync_ttl&&(g=parseInt(s.id_sync_ttl,10));var S=re.getRegionAndCheckIfChanged(s,g);e._callAllCallbacks("MCAAMLH",[S]);var E=e._getField(O);(s.d_blob||s.blob)&&(E=s.d_blob,E||(E=s.blob),e._setFieldExpire(O,g),e._setField(O,E)),E||(E=""),e._callAllCallbacks(O,[E]),!s.error_msg&&e._newCustomerIDsHash&&e._setField("MCCIDH",e._newCustomerIDsHash)}if(n===z){var D=e._getField(B);D&&!e.overwriteCrossDomainMCIDAndAID||(D=e._findVisitorID(s),D?D!==V&&e._setFieldExpire(O,-1):D=V,e._setField(B,D)),D&&D!==V||(D=""),e._callAllCallbacks(B,[D])}if(e.idSyncDisableSyncs||e.disableIdSyncs)re.idCallNotProcesssed=!0;else{re.idCallNotProcesssed=!1;var N={};N.ibs=s.ibs,N.subdomain=s.subdomain,re.processIDCallData(N)}if(s===Object(s)){var b,$;C()&&e.isAllowed()&&(b=e._getField("MCOPTOUT"));var se=x.parseOptOut(s,b,V);b=se.optOut,$=se.d_ottl,e._setFieldExpire("MCOPTOUT",$,!0),e._setField("MCOPTOUT",b),e._callAllCallbacks("MCOPTOUT",[b])}},e._loading=null,e._getRemoteField=function(n,s,l,g,S){var E,D="",N=W.isFirstPartyAnalyticsVisitorIDCall(n),b={MCAAMLH:!0,MCAAMB:!0};if(C()&&e.isAllowed())if(e._readVisitor(),D=e._getField(n,b[n]===!0),(function(){return(!D||e._fieldsExpired&&e._fieldsExpired[n])&&(!e.disableThirdPartyCalls||N)})()){if(n===G||n==="MCOPTOUT"?E="MC":n==="MCAAMLH"||n===O?E=ie:n===B&&(E=z),E)return!s||e._loading!=null&&e._loading[E]||(e._loading==null&&(e._loading={}),e._loading[E]=!0,e._loadData(E,s,function($){if(!e._getField(n)){$&&ae.setState(E,!0);var se="";n===G?se=e._generateLocalMID():E===ie&&(se={error_msg:"timeout"}),e._setFields(E,se)}},S)),e._registerCallback(n,l),D||(s||e._setFields(E,{id:V}),"")}else D||(n===G?(e._registerCallback(n,l),D=e._generateLocalMID(),e.setMarketingCloudVisitorID(D)):n===B?(e._registerCallback(n,l),D="",e.setAnalyticsVisitorID(D)):(D="",g=!0));return n!==G&&n!==B||D!==V||(D="",g=!0),l&&g&&e._callCallback(l,[D]),D},e._setMarketingCloudFields=function(n){e._readVisitor(),e._setFields("MC",n)},e._mapCustomerIDs=function(n){e.getAudienceManagerBlob(n,!0)},e._setAnalyticsFields=function(n){e._readVisitor(),e._setFields(z,n)},e._setAudienceManagerFields=function(n){e._readVisitor(),e._setFields(ie,n)},e._getAudienceManagerURLData=function(n){var s=e.audienceManagerServer,l="",g=e._getField(G),S=e._getField(O,!0),E=e._getField(B),D=E&&E!==V?"&d_cid_ic=AVID%01"+encodeURIComponent(E):"";if(e.loadSSL&&e.audienceManagerServerSecure&&(s=e.audienceManagerServerSecure),s){var N,b,$=e.getCustomerIDs();if($)for(N in $)J(N)&&(b=$[N],D+="&d_cid_ic="+encodeURIComponent(N)+"%01"+encodeURIComponent(b.id?b.id:"")+(b.authState?"%01"+b.authState:""));n||(n="_setAudienceManagerFields");var se="http"+(e.loadSSL?"s":"")+"://"+s+"/id",Nt="d_visid_ver="+e.version+(j&&se.indexOf("demdex.net")!==-1?"&gdpr=1&gdpr_force=1&gdpr_consent="+j:"")+"&d_rtbd=json&d_ver=2"+(!g&&e._use1stPartyMarketingCloudServer?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(e.marketingCloudOrgID)+"&d_nsid="+(e.idSyncContainerID||0)+(g?"&d_mid="+encodeURIComponent(g):"")+(e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies?"&d_coppa=true":"")+(q===!0?"&d_coop_safe=1":q===!1?"&d_coop_unsafe=1":"")+(S?"&d_blob="+encodeURIComponent(S):"")+D,mi=["s_c_il",e._in,n];return l=se+"?"+Nt+"&d_cb=s_c_il%5B"+e._in+"%5D."+n,{url:l,corsUrl:se+"?"+Nt,callback:mi}}return{url:l}},e.appendVisitorIDsTo=function(n){try{var s=[[G,e._getField(G)],[B,e._getField(B)],["MCORGID",e.marketingCloudOrgID]];return e._addQuerystringParam(n,K.ADOBE_MC,f(s))}catch{return n}},e.appendSupplementalDataIDTo=function(n,s){if(!(s=s||e.getSupplementalDataID(W.generateRandomString(),!0)))return n;try{var l=f([["SDID",s],["MCORGID",e.marketingCloudOrgID]]);return e._addQuerystringParam(n,K.ADOBE_MC_SDID,l)}catch{return n}};var W={parseHash:function(n){var s=n.indexOf("#");return s>0?n.substr(s):""},hashlessUrl:function(n){var s=n.indexOf("#");return s>0?n.substr(0,s):n},addQueryParamAtLocation:function(n,s,l){var g=n.split("&");return l=l??g.length,g.splice(l,0,s),g.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(n,s,l){if(n!==B)return!1;var g;return s||(s=e.trackingServer),l||(l=e.trackingServerSecure),!(typeof(g=e.loadSSL?l:s)!="string"||!g.length)&&g.indexOf("2o7.net")<0&&g.indexOf("omtrdc.net")<0},isObject:function(n){return!!(n&&n===Object(n))},removeCookie:function(n){Ae.remove(n,{domain:e.cookieDomain})},isTrackingServerPopulated:function(){return!!e.trackingServer||!!e.trackingServerSecure},getTimestampInSeconds:function(){return Math.round(new Date().getTime()/1e3)},parsePipeDelimetedKeyValues:function(n){return n.split("|").reduce(function(s,l){var g=l.split("=");return s[g[0]]=decodeURIComponent(g[1]),s},{})},generateRandomString:function(n){n=n||5;for(var s="",l="abcdefghijklmnopqrstuvwxyz0123456789";n--;)s+=l[Math.floor(Math.random()*l.length)];return s},normalizeBoolean:function(n){return n==="true"||n!=="false"&&n},parseBoolean:function(n){return n==="true"||n!=="false"&&null},replaceMethodsWithFunction:function(n,s){for(var l in n)n.hasOwnProperty(l)&&typeof n[l]=="function"&&(n[l]=s);return n}};e._helpers=W;var re=Xn(e,X);e._destinationPublishing=re,e.timeoutMetricsLog=[];var ae={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(n,s){switch(n){case"MC":s===!1?this.MCIDCallTimedOut!==!0&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=s;break;case z:s===!1?this.AnalyticsIDCallTimedOut!==!0&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=s;break;case ie:s===!1?this.AAMIDCallTimedOut!==!0&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=s}}};e.isClientSideMarketingCloudVisitorID=function(){return ae.isClientSideMarketingCloudVisitorID},e.MCIDCallTimedOut=function(){return ae.MCIDCallTimedOut},e.AnalyticsIDCallTimedOut=function(){return ae.AnalyticsIDCallTimedOut},e.AAMIDCallTimedOut=function(){return ae.AAMIDCallTimedOut},e.idSyncGetOnPageSyncInfo=function(){return e._readVisitor(),e._getField("MCSYNCSOP")},e.idSyncByURL=function(n){if(!e.isOptedOut()){var s=h(n||{});if(s.error)return s.error;var l,g,S=n.url,E=encodeURIComponent,D=re;return S=S.replace(/^https:/,"").replace(/^http:/,""),l=x.encodeAndBuildRequest(["",n.dpid,n.dpuuid||""],","),g=["ibs",E(n.dpid),"img",E(S),s.ttl,"",l],D.addMessage(g.join("|")),D.requestToProcess(),"Successfully queued"}},e.idSyncByDataSource=function(n){if(!e.isOptedOut())return n===Object(n)&&typeof n.dpuuid=="string"&&n.dpuuid.length?(n.url="//dpm.demdex.net/ibs:dpid="+n.dpid+"&dpuuid="+n.dpuuid,e.idSyncByURL(n)):"Error: config or config.dpuuid is empty"},ci(e,re),e._getCookieVersion=function(n){n=n||e.cookieRead(e.cookieName);var s=K.VERSION_REGEX.exec(n);return s&&s.length>1?s[1]:null},e._resetAmcvCookie=function(n){var s=e._getCookieVersion();s&&!At.isLessThan(s,n)||W.removeCookie(e.cookieName)},e.setAsCoopSafe=function(){q=!0},e.setAsCoopUnsafe=function(){q=!1},(function(){if(e.configs=Object.create(null),W.isObject(r))for(var n in r)J(n)&&(e[n]=r[n],e.configs[n]=r[n])})(),_();var Lt;e.init=function(){I()&&(v.optIn.fetchPermissions(M,!0),!v.optIn.isApproved(v.optIn.Categories.ECID))||Lt||(Lt=!0,(function(){if(W.isObject(r)){e.idSyncContainerID=e.idSyncContainerID||0,q=typeof e.isCoopSafe=="boolean"?e.isCoopSafe:W.parseBoolean(e.isCoopSafe),e.resetBeforeVersion&&e._resetAmcvCookie(e.resetBeforeVersion),e._attemptToPopulateIdsFromUrl(),e._attemptToPopulateSdidFromUrl(),e._readVisitor();var n=e._getField(ne),s=Math.ceil(new Date().getTime()/K.MILLIS_PER_DAY);e.idSyncDisableSyncs||e.disableIdSyncs||!re.canMakeSyncIDCall(n,s)||(e._setFieldExpire(O,-1),e._setField(ne,s)),e.getMarketingCloudVisitorID(),e.getAudienceManagerLocationHint(),e.getAudienceManagerBlob(),e._mergeServerState(e.serverState)}else e._attemptToPopulateIdsFromUrl(),e._attemptToPopulateSdidFromUrl()})(),(function(){if(!e.idSyncDisableSyncs&&!e.disableIdSyncs){re.checkDPIframeSrc();var n=function(){var s=re;s.readyToAttachIframe()&&s.attachIframe()};Y.addEventListener("load",function(){X.windowLoaded=!0,n()});try{Ke.receiveMessage(function(s){re.receiveMessage(s.data)},re.iframeHost)}catch{}}})(),(function(){e.whitelistIframeDomains&&K.POST_MESSAGE_ENABLED&&(e.whitelistIframeDomains=e.whitelistIframeDomains instanceof Array?e.whitelistIframeDomains:[e.whitelistIframeDomains],e.whitelistIframeDomains.forEach(function(n){var s=new ht(t,n),l=Bn(e,s);Ke.receiveMessage(l,n)}))})())}};Ze.config=Dt,w.Visitor=Ze;var ve=Ze,ui=function(t){if(x.isObject(t))return Object.keys(t).filter(function(r){return t[r]!==""}).reduce(function(r,a){var i=Dt.normalizeConfig(t[a]),c=x.normalizeBoolean(i);return r[a]=c,r},Object.create(null))},fi=Qe.OptIn,gi=Qe.IabPlugin;return ve.getInstance=function(t,r){if(!t)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");t.indexOf("@")<0&&(t+="@AdobeOrg");var a=(function(){var C=w.s_c_il;if(C)for(var _=0;_<C.length;_++){var T=C[_];if(T&&T._c==="Visitor"&&T.marketingCloudOrgID===t)return T}})();if(a)return a;var i=ui(r);(function(C){w.adobe.optIn=w.adobe.optIn||(function(){var _=x.pluck(C,["doesOptInApply","previousPermissions","preOptInApprovals","isOptInStorageEnabled","optInStorageExpiry","isIabContext"]),T=C.optInCookieDomain||C.cookieDomain;T=T||St(),T=T===window.location.hostname?"":T,_.optInCookieDomain=T;var M=new fi(_,{cookies:Ae});if(_.isIabContext&&_.doesOptInApply){var A=new gi(window.__cmp);M.registerPlugin(A)}return M})()})(i||{});var c=t,u=c.split("").reverse().join(""),f=new ve(t,null,u);x.isObject(i)&&i.cookieDomain&&(f.cookieDomain=i.cookieDomain),(function(){w.s_c_il.splice(--w.s_c_in,1)})();var h=x.getIeVersion();if(typeof h=="number"&&h<10)return f._helpers.replaceMethodsWithFunction(f,function(){});var I=(function(){try{return w.self!==w.parent}catch{return!0}})()&&!(function(C){return C.cookieWrite("TEST_AMCV_COOKIE","T",1),C.cookieRead("TEST_AMCV_COOKIE")==="T"&&(C._helpers.removeCookie("TEST_AMCV_COOKIE"),!0)})(f)&&w.parent?new Gn(t,i,f,w.parent):new ve(t,i,u);return f=null,I.init(),I},(function(){function t(){ve.windowLoaded=!0}w.addEventListener?w.addEventListener("load",t):w.attachEvent&&w.attachEvent("onload",t),ve.codeLoadEnd=new Date().getTime()})(),ve})()});var Ee="__mpi",ee=typeof window<"u",Vt=()=>ee?window:void 0;function k(o){let p=Vt()?.[Ee]?.segmentWrapper||{};return o?p[o]:p}var me=(o,d)=>{let p=Vt();if(!p){console.warn("[segment-wrapper] Cannot set config in non-browser environment");return}p[Ee]=p[Ee]||{},p[Ee].segmentWrapper=p[Ee].segmentWrapper||{},p[Ee].segmentWrapper[o]=d};var Oe,et=()=>({ADOBE_ORG_ID:window.__SEGMENT_WRAPPER?.ADOBE_ORG_ID,DEFAULT_DEMDEX_VERSION:window.__SEGMENT_WRAPPER?.DEFAULT_DEMDEX_VERSION??"3.3.0",TIME_BETWEEN_RETRIES:window.__SEGMENT_WRAPPER?.TIME_BETWEEN_RETRIES??15,TIMES_TO_RETRY:window.__SEGMENT_WRAPPER?.TIMES_TO_RETRY??80,SERVERS:{trackingServer:window.__SEGMENT_WRAPPER?.TRACKING_SERVER,trackingServerSecure:window.__SEGMENT_WRAPPER?.TRACKING_SERVER}}),Ut=()=>{let o=et();if(window.Visitor&&o.ADOBE_ORG_ID)return window.Visitor.getInstance(o.ADOBE_ORG_ID,o.SERVERS)},Ei=o=>o?.getMarketingCloudVisitorID(),Gt=()=>{let o=Ut(),d=et(),p=o?.version??d.DEFAULT_DEMDEX_VERSION,{trackingServer:m}=d.SERVERS;return Promise.resolve({trackingServer:m,version:p})},jt=()=>{if(Oe)return Promise.resolve(Oe);let o=et();return new Promise(d=>{function p(m){if(m===0)return d("");let y=Ut();Oe=Ei(y),Oe?d(Oe):window.setTimeout(()=>p(--m),o.TIME_BETWEEN_RETRIES)}p(o.TIMES_TO_RETRY)})},Di=async()=>(await Promise.resolve().then(()=>vi(Ft())),jt()),Ue=async()=>{let o=k("getCustomAdobeVisitorId");return typeof o=="function"?o():k("importAdobeVisitorId")===!0?Di():jt()};var Ht={GA4_INIT_EVENT_SENT:"ga4InitEventSent"};var tt={spaReferrer:"",referrer:""},Ge={getDocumentReferrer:()=>document.referrer,getActualLocation:()=>{let{origin:o,pathname:d}=window.location;return`${o}${d}`},getActualQueryString:()=>{let{search:o}=window.location;return o}},Bt=({isPageTrack:o=!1}={})=>{let{referrer:d,spaReferrer:p}=tt;return(o?d:p)||Ge.getDocumentReferrer()},Ti=()=>{tt.spaReferrer=Bt({isPageTrack:!0}),tt.referrer=Ge.getActualLocation()},Wt=({payload:o,next:d})=>{let{obj:{context:p}}=o,{isPageTrack:m}=p,y=Bt({isPageTrack:m});o.obj.context={...p,page:{...p.page,referrer:y}},m&&Ti(),d(o)};var Yt={clientId:"client_id",sessionId:"session_id"},nt="dataLayer",le={granted:"granted",denied:"denied"},bi=1,Mi=2,we={QUERY:"stc",SPLIT_SYMBOL:"-",CAMPAIGN_SPLIT_SYMBOL:":"},Oi="utm_campaign",wi="utm_medium",ki="utm_source",Pi="utm_content",Ri="utm_id",Li="utm_term",Ni={aff:"affiliate",dis:"display",em:"email",met:"paid-metasearch",sem:"paid-search",rt:"display",sm:"social-media",sp:"paid-social",pn:"push-notification",cs:"cross-sites"},xi="na",Vi="sui",Fi={medium:null,source:null,campaign:null},Ui=async o=>new Promise(function(d,p){let m=document.createElement("script");m.src=o,m.onload=()=>d(),m.onerror=p,document.head.appendChild(m)}),Kt=async()=>{let o=k("googleAnalyticsMeasurementId"),d=k("googleAnalyticsDataLayer")||nt;if(!o)return Promise.resolve(!1);let p=`https://www.googletagmanager.com/gtag/js?id=${o}&l=${d}`;return Ui(p).then(()=>!0)},Gi=o=>{let d=k("googleAnalyticsInitEvent")??Vi,p=`ga_event_${d}_`,m=`${p}${o}`;if(!(typeof window.gtag>"u")){if(!localStorage.getItem(m)&&(window.gtag("event",d),console.log(`Sending GA4 event "${d}" for the session "${o}"`),localStorage.setItem(m,"true"),typeof window.dispatchEvent=="function")){let y=new CustomEvent(Ht.GA4_INIT_EVENT_SENT,{detail:{eventName:d,sessionId:o}});window.dispatchEvent(y)}Object.keys(localStorage).forEach(y=>{y.startsWith(p)&&y!==m&&localStorage.removeItem(y)})}},Xt=async o=>{let d=k("googleAnalyticsMeasurementId");return d?new Promise(p=>{window.gtag?.("get",d,o,p)}):Promise.resolve(void 0)},ji={STC:"stc",UTM:"utm"},je=({needsTransformation:o=!0}={})=>{let{medium:d,source:p,campaign:m,content:y,term:P}=Hi();if(!d||!p||!m)return null;let[F,L]=m.split(we.CAMPAIGN_SPLIT_SYMBOL);if(!F&&!L)return null;let te=typeof y<"u"&&y!==xi;return{campaign:{medium:o&&Ni[d]||d,...typeof L<"u"&&{id:F},name:L??F,source:p,...te&&{content:y},...typeof P<"u"&&{term:P}}}};function Hi(){let o=Ge.getActualQueryString(),d=new URLSearchParams(o);return k("trackingTagsType")===ji.UTM?Bi(d):$t(d)}function $t(o){if(!qt(o))return Fi;let d=o.get(we.QUERY),[p,m,y,P,F]=d?.split(we.SPLIT_SYMBOL)||[];return{medium:p,source:m,campaign:y,content:P,term:F}}function qt(o){return o.has(we.QUERY)}function Bi(o){let d=o.get(Ri),p=o.get(Oi),m=o.get(wi),y=o.get(ki),P=o.get(Pi),F=o.get(Li),L=d?`${d}${we.CAMPAIGN_SPLIT_SYMBOL}${p}`:p;return(!m||!y||!L)&&qt(o)?$t(o):{campaign:L,medium:m,source:y,content:P??void 0,term:F??void 0}}var zt=async()=>Xt(Yt.clientId),Jt=async()=>{let o=await Xt(Yt.sessionId);return o&&Gi(o),o};function De(o="analytics_storage"){try{let d=window.google_tag_data?.ics?.getConsentState?.(o);return d===bi?le.granted:d===Mi?le.denied:void 0}catch{return}}var Qt=()=>De()??le.denied,Zt=o=>{!k("googleAnalyticsMeasurementId")||!o||window.gtag?.("set","user_id",o)},He=(o="default",d)=>{window.gtag?.("consent",o,d||{analytics_storage:le.denied,ad_user_data:le.denied,ad_personalization:le.denied,ad_storage:le.denied})};var Wi="borosTcf",Yi=2,Ki={channel:"GDPR"},en={analytics:[1,8,10],advertising:[3]},it={LOADED:"tcloaded",USER_ACTION_COMPLETE:"useractioncomplete"},rt="CMP Submitted",ce={ACCEPTED:"accepted",DECLINED:"declined",UNKNOWN:"unknown"},de={listeners:[],value:void 0,addListener:o=>de.listeners.push(o),get:()=>de.value,set:o=>{let{analytics:d,advertising:p}=o||{};de.value={analytics:d,advertising:p},de.listeners.forEach(m=>m(o)),de.listeners=[]}};function Xi(o){if(!ee)return null;let p=new RegExp(o+"=([^;]+)").exec(document.cookie);return p!==null?unescape(p[1]):null}var $i=()=>{if(k("initialized"))return!1;let o=!!window.__tcfapi;return o||console.warn("[tcfTracking] window.__tcfapi is not available on client and TCF won't be tracked."),o},qi=o=>en.analytics.every(d=>o[`${d}`]),zi=o=>en.advertising.every(d=>o[`${d}`]),Ji=({gdprPrivacy:o})=>Be.track(rt,{...Ki,...k("tcfTrackDefaultProperties")||{}},{gdpr_privacy:o.analytics,gdpr_privacy_advertising:o.advertising}),Te=()=>{let o=de.get();return o!==void 0?Promise.resolve(o):new Promise(d=>{de.addListener(p=>d(p))})},Se=o=>o?.analytics===ce.ACCEPTED,tn=o=>{let d=qi(o),p=zi(o),m=d?ce.ACCEPTED:ce.DECLINED,y=p?ce.ACCEPTED:ce.DECLINED;return de.set({analytics:m,advertising:y}),{analytics:m,advertising:y}},nn=()=>{let o=Xi(Wi);if(o)try{let{purpose:d}=JSON.parse(window.atob(o)),{consents:p}=d;return p}catch(d){console.error(d);return}},Qi=()=>{let o=nn();o&&tn(o)},Zi=()=>{let o=nn();me("isFirstVisit",!o)};function ot(){if(ee){if(Qi(),Zi(),!$i()){de.get()?.analytics===void 0&&de.set({analytics:ce.UNKNOWN,advertising:ce.UNKNOWN});return}me("initialized",!0),window.__tcfapi?.("addEventListener",Yi,({eventStatus:o,purpose:d},p)=>{if(!p)return Promise.resolve();if(o===it.USER_ACTION_COMPLETE||o===it.LOADED){let{consents:m}=d,y=tn(m);if(o===it.USER_ACTION_COMPLETE){let{analytics:P,advertising:F}=y,L={analytics:P,advertising:F};return!(ee&&window.sessionStorage.getItem("didomi-migration"))&&Ji({gdprPrivacy:L})}}})}}function rn(o){if(typeof document>"u")return null;let p=new RegExp(`${o}=([^;]+)`).exec(document.cookie);return p!==null?unescape(p[1]):null}function on(o,d,p={}){if(typeof document>"u"||typeof window>"u")return;let{maxAge:m=31536e3,path:y="/",reduceDomain:P=!0,sameSite:F="Lax"}=p,L=P?sn():window.location.hostname,te=[`${o}=${d}`,`domain=${L}`,`path=${y}`,`max-age=${m}`,`SameSite=${F}`].join(";");document.cookie=te}function an(o,d={}){if(typeof document>"u"||typeof window>"u")return;let{path:p="/",reduceDomain:m=!0}=d,y=m?sn():window.location.hostname;document.cookie=`${o}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${p}; domain=${y}`}var sn=o=>{let d=o!==void 0?o:typeof window<"u"?window.location.hostname:"",p=".",m=d.split(p).reverse();if(m.length===1)return m[0];let y=[];for(let P of m)if(y.push(P),P.length>3)break;return`${p}${y.reverse().join(p)}`};var er="https://secure.adnxs.com/getuidj?consent=1",at="adit-xandr-id",tr=0;function nr(){return ee?window.fetch(er,{credentials:"include"}).then(o=>o.json()).then(o=>o?.uid).catch(()=>null):Promise.resolve(null)}function cn({gdprPrivacyValueAdvertising:o}){if(!ee)return null;if(o!==ce.ACCEPTED)return an(at),null;let d=y=>y!==null&&Number(y)>tr,p=rn(at),m=d(p);return m||nr().then(y=>{typeof y=="string"&&on(at,y)}),me("xandrId",p),m?p:null}var ir={platform:"web"},rr={All:!1},or={All:!0},ar=o=>{let d=k("userIdPrefix");return d&&(typeof o=="number"||typeof o=="string"&&!o.startsWith(d))?`${d}${o}`:o},st=()=>({...ir,...k("defaultProperties")}),sr=async({gdprPrivacyValue:o,event:d})=>{let p=Se(o),m,y,P;try{p&&(m=await Ue()),y=await Jt(),P=await zt()}catch(L){console.error(L)}return{...cr({isGdprAccepted:p,event:d}),"Adobe Analytics":m?{marketingCloudVisitorId:m}:!0,"Google Analytics 4":P&&y?{clientId:P,sessionId:y}:!0}},cr=({isGdprAccepted:o,event:d})=>d==="CMP Submitted"?or:o?{}:rr,lr=({context:o,xandrId:d})=>{let p=k("sendXandrId")!==!1,m=d&&parseInt(d)!==0;if(!p||!m)return{};let L=[...Array.isArray(o?.externalIds)?o.externalIds:[],{collection:"users",encoding:"none",id:d,type:"xandr_id"}];return{externalIds:L.filter(({id:Ce,type:he},Ie)=>Ie===L.findIndex(({id:fe,type:be})=>Ce===fe&&he===be))}},We=o=>o===ce.ACCEPTED?le.granted:le.denied,ct=async({event:o="",context:d={}})=>{let p=await Te(),{analytics:m,advertising:y}=p||{},P=Se(p),[F,L]=await Promise.all([sr({gdprPrivacyValue:p,event:o}),cn({gdprPrivacyValueAdvertising:y})]),te=De("analytics_storage")??We(m),Ce=De("ad_user_data")??We(y),he=De("ad_personalization")??We(y),Ie=De("ad_storage")??We(y);P||(d.integrations={...d.integrations??{},Personas:!1,Webhooks:!0,Webhook:!0});let fe={analytics_storage:te,ad_user_data:Ce,ad_personalization:he,ad_storage:Ie};return{...d,...!P&&{ip:"0.0.0.0"},...lr({context:d,xandrId:L}),analytics_storage:Qt(),clientVersion:"segment-wrapper@4.36.2",gdpr_privacy:m,gdpr_privacy_advertising:y,google_consents:fe,integrations:{...d.integrations,...F}}},ln=(o,d,p={},m)=>new Promise(y=>{(async()=>{let F=await ct({context:p,event:o}),L={...st(),...d},te=async(...he)=>{m&&m(...he);let[Ie]=await Promise.all([Te()]);Se(Ie),y()};k("googleAnalyticsConsentManagement")&&o===rt&&He("update",F.google_consents),window.analytics.track(o,L,{...F,context:{integrations:{...F.integrations}}},te)})()}),dr=async(o,d,p,m)=>{let y=await Te(),P=ar(o);return Zt(P),window.analytics.identify(P,Se(y)?d:{},p,m)},ur=(o,d,p={},m)=>(p.isPageTrack=!0,ln(o??"",d,p,m)),fr=()=>Promise.resolve(window.analytics.reset()),Be={page:ur,identify:dr,track:ln,reset:fr};var un="__mpi_patch";function dn(){let{track:o}=window.analytics;window.analytics.track=(...d)=>{let[p,m,y,P]=d,F={...st(),...m};return ct({context:y,event:p}).then(L=>{o.call(window.analytics,p,F,L,P)}),window.analytics},window.analytics[un]=!0}ee&&(window.analytics?window.analytics[un]||(window.analytics.initialized?dn():window.analytics.ready(dn)):console.warn("[segment-wrapper] Segment Analytics is not loaded so patch is not applied."));var fn=({payload:o,next:d})=>{if(k("googleAnalyticsMeasurementId")){let m=je();o.obj.context={...o.obj.context,...m}}d(o)};var gr={platform:"web"},gn=({payload:o,next:d})=>{let p=k("defaultContext")||{};o.obj.context={...gr,...p,...o.obj.context},d(o)};var pr=()=>{let o=null;return({payload:d,next:p})=>{try{let{obj:m}=d,{event:y,type:P}=m;if(P!=="track"){p(d);return}if(typeof y=="string"&&y.endsWith("Viewed")){let{page_name:F,page_type:L}=m.properties||{};o={name:F,type:L},p(d);return}if(!o){p(d);return}p({...d,obj:{...m,properties:{...m.properties,page_name_origin:o.name,page_type:m.properties?.page_type||o.type}}})}catch(m){console.error(m),p(d)}}},pn=pr();var mn=({payload:o,next:d})=>{o.obj.context={...o.obj.context,screen:{height:window.innerHeight,width:window.innerWidth,density:window.devicePixelRatio}},d(o)};var mr=o=>{let d=k("isUserTraitsEnabled"),p=window.analytics.user?.(),m=Se(o),y=p?.id();return{anonymousId:p?.anonymousId(),...y&&{userId:y},...m&&d&&p?.traits()||{}}},_n=async({payload:o,next:d})=>{let p=await Te(),m;try{m=mr(p)}catch(y){console.error(y)}o.obj.context={...o.obj.context,traits:{...o.obj.context.traits||{},...m}},d(o)};for(Cn=[],Ye=0;Ye<64;)Cn[Ye]=0|4294967296*Math.sin(++Ye%Math.PI);var Cn,Ye;for(oe=18,ke=[],lt=[];oe>1;oe--)for(U=oe;U<320;)ke[U+=oe]=1;var U,oe,ke,lt;function Q(o,d){return 4294967296*Math.pow(o,1/d)|0}for(U=0;U<64;)ke[++oe]||(lt[U]=Q(oe,2),ke[U++]=Q(oe,3));function ue(o,d){return o>>>d|o<<-d}function hn(o){var d=lt.slice(oe=U=0,8),p=[],m=unescape(encodeURI(o))+"\x80",y=m.length;for(p[o=--y/4+2|15]=8*y;~y;)p[y>>2]|=m.charCodeAt(y)<<8*~y--;for(y=[];oe<o;oe+=16){for(Q=d.slice();U<64;Q.unshift(m+(ue(m=Q[0],2)^ue(m,13)^ue(m,22))+(m&Q[1]^Q[1]&Q[2]^Q[2]&m)))Q[3]+=m=0|(y[U]=U<16?~~p[U+oe]:(ue(m=y[U-2],17)^ue(m,19)^m>>>10)+y[U-7]+(ue(m=y[U-15],7)^ue(m,18)^m>>>3)+y[U-16])+Q.pop()+(ue(m=Q[4],6)^ue(m,11)^ue(m,25))+(m&Q[5]^~m&Q[6])+ke[U++];for(U=8;U;)d[--U]+=Q[U]}for(m="";U<64;)m+=(d[U>>3]>>4*(7-U++)&15).toString(16);return m}var _r=/\.|\+.*$/g;function Cr(o){if(typeof o!="string")return"";let p=o.toLowerCase().split(/@/);if(p.length!==2)return"";let[m,y]=p;return`${m.replace(_r,"")}@${y}`}function In(o){let d=Cr(o);return d?hn(d):""}var hr="USER_DATA_READY",Ir=()=>k("universalId"),yr=()=>{let o=Ir();if(o)return dt(),o;let d=k("userEmail");if(d)return o=In(d),Sr(o),dt(),o;dt()},yn=()=>{if(!ee)return;let o=yr(),d=k("userEmail");if(typeof window<"u"&&typeof window.dispatchEvent=="function"){let p=new CustomEvent(hr,{detail:{universalId:o,userEmail:d}});window.dispatchEvent(p)}return{universalId:o,userEmail:d}},dt=()=>{me("universalIdInitialized",!0)},Sr=o=>{me("universalId",o)};var Sn=()=>{if(typeof window>"u")return;let o=window,d=o.analytics;if(!d){console.warn("[segment-wrapper] Analytics is not available");return}let p=o.__SEGMENT_WRAPPER?.SEGMENT_ID_USER_WITHOUT_CONSENTS??"anonymous_user";d.user?.()?.anonymousId()===p&&"setAnonymousId"in d&&typeof d.setAnonymousId=="function"&&d.setAnonymousId(null)};ot();try{yn()}catch(o){console.error("[segment-wrapper] UniversalID could not be initialized",o)}var An=()=>{let o=k("experimentalPageDataMiddleware");window.analytics.addSourceMiddleware?.(_n),window.analytics.addSourceMiddleware?.(gn),window.analytics.addSourceMiddleware?.(fn),window.analytics.addSourceMiddleware?.(mn),window.analytics.addSourceMiddleware?.(Wt),o&&window.analytics.addSourceMiddleware?.(pn)};if(ee&&window.analytics){let o=k("googleAnalyticsMeasurementId"),d=k("googleAnalyticsDataLayer")||nt,p=k("googleAnalyticsConsentManagement");if(o){let m=k("googleAnalyticsConfig");window[d]=window[d]||[],window.gtag=window.gtag||function(){window[d].push(arguments)},window.gtag("js",new Date),p&&He(),window.gtag("config",o,{cookie_prefix:"segment",send_page_view:!1,...m,...je()}),Kt().catch(y=>{console.error("[segment-wrapper] Failed to load Google Analytics",y)})}window.analytics.ready(Sn),window.analytics.addSourceMiddleware?An():window.analytics.ready(An)}var ut=Be;var _e=window;_e.sui=_e.sui||{};_e.sui.analytics=_e.sui.analytics||ut;_e.sui.analytics.getAdobeVisitorData=_e.sui.analytics.getAdobeVisitorData||Gt;_e.sui.analytics.getAdobeMCVisitorID=_e.sui.analytics.getAdobeMCVisitorID||Ue;var xo=ut;})();
|
|
1
|
+
"use strict";(()=>{var ri=Object.create;var Ot=Object.defineProperty;var oi=Object.getOwnPropertyDescriptor;var ai=Object.getOwnPropertyNames;var si=Object.getPrototypeOf,ci=Object.prototype.hasOwnProperty;var ui=(s,d)=>()=>(d||s((d={exports:{}}).exports,d),d.exports);var di=(s,d,p,_)=>{if(d&&typeof d=="object"||typeof d=="function")for(let S of ai(d))!ci.call(s,S)&&S!==p&&Ot(s,S,{get:()=>d[S],enumerable:!(_=oi(d,S))||_.enumerable});return s};var li=(s,d,p)=>(p=s!=null?ri(si(s)):{},di(d||!s||!s.__esModule?Ot(p,"default",{value:s,enumerable:!0}):p,s));var wt=ui(()=>{"use strict";var cr=(function(){"use strict";function s(t){"@babel/helpers - typeof";return(s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function d(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function p(){return{callbacks:{},add:function(t,r){this.callbacks[t]=this.callbacks[t]||[];var o=this.callbacks[t].push(r)-1,i=this;return function(){i.callbacks[t].splice(o,1)}},execute:function(t,r){if(this.callbacks[t]){r=r===void 0?[]:r,r=r instanceof Array?r:[r];try{for(;this.callbacks[t].length;){var o=this.callbacks[t].shift();typeof o=="function"?o.apply(null,r):o instanceof Array&&o[1].apply(o[0],r)}delete this.callbacks[t]}catch{}}},executeAll:function(t,r){(r||t&&!N.isObjectEmpty(t))&&Object.keys(this.callbacks).forEach(function(o){var i=t[o]!==void 0?t[o]:"";this.execute(o,i)},this)},hasCallbacks:function(){return!!Object.keys(this.callbacks).length}}}function _(t,r,o){var i=t?.[r];return i===void 0?o:i}function S(t){for(var r=/^\d+$/,o=0,i=t.length;o<i;o++)if(!r.test(t[o]))return!1;return!0}function P(t,r){for(;t.length<r.length;)t.push("0");for(;r.length<t.length;)r.push("0")}function L(t,r){for(var o=0;o<t.length;o++){var i=parseInt(t[o],10),c=parseInt(r[o],10);if(i>c)return 1;if(c>i)return-1}return 0}function x(t,r){if(t===r)return 0;var o=t.toString().split("."),i=r.toString().split(".");return S(o.concat(i))?(P(o,i),L(o,i)):NaN}function de(t){return t===Object(t)&&Object.keys(t).length===0}function ve(t){return typeof t=="function"||t instanceof Array&&t.length}function Ae(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};this.log=Be("log",t,r),this.warn=Be("warn",t,r),this.error=Be("error",t,r)}function je(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.isEnabled,o=t.cookieName,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=i.cookies;return r&&o&&c?{remove:function(){c.remove(o)},get:function(){var l=c.get(o),f={};try{f=JSON.parse(l)}catch{f={}}return f},set:function(l,f){f=f||{},c.set(o,JSON.stringify(l),{domain:f.optInCookieDomain||"",cookieLifetime:f.optInStorageExpiry||3419e4,expires:!0})}}:{get:Ee,set:Ee,remove:Ee}}function me(t){this.name=this.constructor.name,this.message=t,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}function De(){function t(O,V){var J=We(O);return J.length?J.every(function(fe){return!!V[fe]}):Gn(V)}function r(){ie(z),H(le.COMPLETE),j(A.status,A.permissions),e.set(A.permissions,{optInCookieDomain:I,optInStorageExpiry:C}),w.execute(Dt)}function o(O){return function(V,J){if(!Ye(V))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return H(le.CHANGED),Object.assign(z,yt(We(V),O)),J||r(),A}}var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.doesOptInApply,l=i.previousPermissions,f=i.preOptInApprovals,h=i.isOptInStorageEnabled,I=i.optInCookieDomain,C=i.optInStorageExpiry,m=i.isIabContext,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=b.cookies,v=Yn(l);At(v,"Invalid `previousPermissions`!"),At(f,"Invalid `preOptInApprovals`!");var e=je({isEnabled:!!h,cookieName:"adobeujs-optin"},{cookies:M}),A=this,j=Nn(A),w=It(),G=St(v),Y=St(f),X=e.get(),$={},U=(function(O,V){return Ke(O)||V&&Ke(V)?le.COMPLETE:le.PENDING})(G,X),ne=(function(O,V,J){var fe=yt(Pe,!c);return c?Object.assign({},fe,O,V,J):fe})(Y,G,X),z=Hn(ne),H=function(O){return U=O},ie=function(O){return ne=O};A.deny=o(!1),A.approve=o(!0),A.denyAll=A.deny.bind(A,Pe),A.approveAll=A.approve.bind(A,Pe),A.isApproved=function(O){return t(O,A.permissions)},A.isPreApproved=function(O){return t(O,Y)},A.fetchPermissions=function(O){var V=arguments.length>1&&arguments[1]!==void 0&&arguments[1],J=V?A.on(le.COMPLETE,O):Ee;return!c||c&&A.isComplete||f?O(A.permissions):V||w.add(Dt,function(){return O(A.permissions)}),J},A.complete=function(){A.status===le.CHANGED&&r()},A.registerPlugin=function(O){if(!O||!O.name||typeof O.onRegister!="function")throw new Error($n);$[O.name]||($[O.name]=O,O.onRegister.call(O,A))},A.execute=qn($),Object.defineProperties(A,{permissions:{get:function(){return ne}},status:{get:function(){return U}},Categories:{get:function(){return _e}},doesOptInApply:{get:function(){return!!c}},isPending:{get:function(){return A.status===le.PENDING}},isComplete:{get:function(){return A.status===le.COMPLETE}},__plugins:{get:function(){return Object.keys($)}},isIabContext:{get:function(){return m}}})}function ot(t,r){function o(){c=null,t.call(t,new me("The call took longer than you wanted!"))}function i(){c&&(clearTimeout(c),t.apply(t,arguments))}if(r===void 0)return t;var c=setTimeout(o,r);return i}function at(){if(window.__cmp)return window.__cmp;var t=window;if(t===window.top)return void Re.error("__cmp not found");for(var r;!r;){t=t.parent;try{t.frames.__cmpLocator&&(r=t)}catch{}if(t===window.top)break}if(!r)return void Re.error("__cmp not found");var o={};return window.__cmp=function(i,c,l){var f=Math.random()+"",h={__cmpCall:{command:i,parameter:c,callId:f}};o[f]=l,r.postMessage(h,"*")},window.addEventListener("message",function(i){var c=i.data;if(typeof c=="string")try{c=JSON.parse(i.data)}catch{}if(c.__cmpReturn){var l=c.__cmpReturn;o[l.callId]&&(o[l.callId](l.returnValue,l.success),delete o[l.callId])}},!1),window.__cmp}function ln(){var t=this;t.name="iabPlugin",t.version="0.0.1";var r=It(),o={allConsentData:null},i=function(I){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return o[I]=C};t.fetchConsentData=function(I){var C=I.callback,m=I.timeout,b=ot(C,m);c({callback:b})},t.isApproved=function(I){var C=I.callback,m=I.category,b=I.timeout;if(o.allConsentData)return C(null,h(m,o.allConsentData.vendorConsents,o.allConsentData.purposeConsents));var M=ot(function(v){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=e.vendorConsents,j=e.purposeConsents;C(v,h(m,A,j))},b);c({category:m,callback:M})},t.onRegister=function(I){var C=Object.keys(He),m=function(b){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=M.purposeConsents,e=M.gdprApplies,A=M.vendorConsents;!b&&e&&A&&v&&(C.forEach(function(j){var w=h(j,A,v);I[w?"approve":"deny"](j,!0)}),I.complete())};t.fetchConsentData({callback:m})};var c=function(I){var C=I.callback;if(o.allConsentData)return C(null,o.allConsentData);r.add("FETCH_CONSENT_DATA",C);var m={};f(function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=b.purposeConsents,v=b.gdprApplies,e=b.vendorConsents;arguments.length>1&&arguments[1]&&(m={purposeConsents:M,gdprApplies:v,vendorConsents:e},i("allConsentData",m)),l(function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};arguments.length>1&&arguments[1]&&(m.consentString=A.consentData,i("allConsentData",m)),r.execute("FETCH_CONSENT_DATA",[null,o.allConsentData])})})},l=function(I){var C=at();C&&C("getConsentData",null,I)},f=function(I){var C=Xn(He),m=at();m&&m("getVendorConsents",C,I)},h=function(I){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=!!C[He[I]];return b&&(function(){return Vn[I].every(function(M){return m[M]})})()}}var k=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Object.assign=Object.assign||function(t){for(var r,o,i=1;i<arguments.length;++i){o=arguments[i];for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t};var Oe,ke,fn={HANDSHAKE:"HANDSHAKE",GETSTATE:"GETSTATE",PARENTSTATE:"PARENTSTATE"},gn={MCMID:"MCMID",MCAID:"MCAID",MCAAMB:"MCAAMB",MCAAMLH:"MCAAMLH",MCOPTOUT:"MCOPTOUT",CUSTOMERIDS:"CUSTOMERIDS"},pn={MCMID:"getMarketingCloudVisitorID",MCAID:"getAnalyticsVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",ALLFIELDS:"getVisitorValues"},mn={CUSTOMERIDS:"getCustomerIDs"},_n={MCMID:"getMarketingCloudVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",MCAID:"getAnalyticsVisitorID",CUSTOMERIDS:"getCustomerIDs",ALLFIELDS:"getVisitorValues"},Cn={MC:"MCMID",A:"MCAID",AAM:"MCAAMB"},hn={MCMID:"MCMID",MCOPTOUT:"MCOPTOUT",MCAID:"MCAID",MCAAMLH:"MCAAMLH",MCAAMB:"MCAAMB"},In={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},yn={GLOBAL:"global"},Z={MESSAGES:fn,STATE_KEYS_MAP:gn,ASYNC_API_MAP:pn,SYNC_API_MAP:mn,ALL_APIS:_n,FIELDGROUP_TO_FIELD:Cn,FIELDS:hn,AUTH_STATE:In,OPT_OUT:yn},st=Z.STATE_KEYS_MAP,Sn=function(t){function r(){}function o(i,c){var l=this;return function(){var f=t(0,i),h={};return h[i]=f,l.setStateAndPublish(h),c(f),f}}this.getMarketingCloudVisitorID=function(i){i=i||r;var c=this.findField(st.MCMID,i),l=o.call(this,st.MCMID,i);return c!==void 0?c:l()},this.getVisitorValues=function(i){this.getMarketingCloudVisitorID(function(c){i({MCMID:c})})}},vn=Z.MESSAGES,ct=Z.ASYNC_API_MAP,ut=Z.SYNC_API_MAP,An=function(){function t(){}function r(c,l){var f=this;return function(){return f.callbackRegistry.add(c,l),f.messageParent(vn.GETSTATE),""}}function o(c){this[ct[c]]=function(l){l=l||t;var f=this.findField(c,l),h=r.call(this,c,l);return f!==void 0?f:h()}}function i(c){this[ut[c]]=function(){return this.findField(c,t)||{}}}Object.keys(ct).forEach(o,this),Object.keys(ut).forEach(i,this)},dt=Z.ASYNC_API_MAP,Dn=function(){Object.keys(dt).forEach(function(t){this[dt[t]]=function(r){this.callbackRegistry.add(t,r)}},this)},N=(function(t,r){return r={exports:{}},t(r,r.exports),r.exports})(function(t,r){r.isObjectEmpty=function(i){return i===Object(i)&&Object.keys(i).length===0},r.isValueEmpty=function(i){return i===""||r.isObjectEmpty(i)};var o=function(){var i=navigator.appName,c=navigator.userAgent;return i==="Microsoft Internet Explorer"||c.indexOf("MSIE ")>=0||c.indexOf("Trident/")>=0&&c.indexOf("Windows NT 6")>=0};r.getIeVersion=function(){return document.documentMode?document.documentMode:o()?7:null},r.encodeAndBuildRequest=function(i,c){return i.map(encodeURIComponent).join(c)},r.isObject=function(i){return i!==null&&s(i)==="object"&&Array.isArray(i)===!1},r.defineGlobalNamespace=function(){return window.adobe=r.isObject(window.adobe)?window.adobe:{},window.adobe},r.pluck=function(i,c){return c.reduce(function(l,f){return i[f]&&(l[f]=i[f]),l},Object.create(null))},r.parseOptOut=function(i,c,l){c||(c=l,i.d_optout&&i.d_optout instanceof Array&&(c=i.d_optout.join(",")));var f=parseInt(i.d_ottl,10);return isNaN(f)&&(f=7200),{optOut:c,d_ottl:f}},r.normalizeBoolean=function(i){var c=i;return i==="true"?c=!0:i==="false"&&(c=!1),c}}),En=(N.isObjectEmpty,N.isValueEmpty,N.getIeVersion,N.encodeAndBuildRequest,N.isObject,N.defineGlobalNamespace,N.pluck,N.parseOptOut,N.normalizeBoolean,p),bn=Z.MESSAGES,Tn={0:"prefix",1:"orgID",2:"state"},lt=function(t,r){this.parse=function(o){try{var i={};return o.data.split("|").forEach(function(c,l){c!==void 0&&(i[Tn[l]]=l!==2?c:JSON.parse(c))}),i}catch{}},this.isInvalid=function(o){var i=this.parse(o);if(!i||Object.keys(i).length<2)return!0;var c=t!==i.orgID,l=!r||o.origin!==r,f=Object.keys(bn).indexOf(i.prefix)===-1;return c||l||f},this.send=function(o,i,c){var l=i+"|"+t;c&&c===Object(c)&&(l+="|"+JSON.stringify(c));try{o.postMessage(l,r)}catch{}}},ft=Z.MESSAGES,Mn=function(t,r,o,i){function c(w){Object.assign(v,w)}function l(w){Object.assign(v.state,w),Object.assign(v.state.ALLFIELDS,w),v.callbackRegistry.executeAll(v.state)}function f(w){if(!j.isInvalid(w)){A=!1;var G=j.parse(w);v.setStateAndPublish(G.state)}}function h(w){!A&&e&&(A=!0,j.send(i,w))}function I(){c(new Sn(o._generateID)),v.getMarketingCloudVisitorID(),v.callbackRegistry.executeAll(v.state,!0),k.removeEventListener("message",C)}function C(w){if(!j.isInvalid(w)){var G=j.parse(w);A=!1,k.clearTimeout(v._handshakeTimeout),k.removeEventListener("message",C),c(new An(v)),k.addEventListener("message",f),v.setStateAndPublish(G.state),v.callbackRegistry.hasCallbacks()&&h(ft.GETSTATE)}}function m(){e&&postMessage?(k.addEventListener("message",C),h(ft.HANDSHAKE),v._handshakeTimeout=setTimeout(I,250)):I()}function b(){k.s_c_in||(k.s_c_il=[],k.s_c_in=0),v._c="Visitor",v._il=k.s_c_il,v._in=k.s_c_in,v._il[v._in]=v,k.s_c_in++}function M(){function w(G){G.indexOf("_")!==0&&typeof o[G]=="function"&&(v[G]=function(){})}Object.keys(o).forEach(w),v.getSupplementalDataID=o.getSupplementalDataID,v.isAllowed=function(){return!0}}var v=this,e=r.whitelistParentDomain;v.state={ALLFIELDS:{}},v.version=o.version,v.marketingCloudOrgID=t,v.cookieDomain=o.cookieDomain||"",v._instanceType="child";var A=!1,j=new lt(t,e);v.callbackRegistry=En(),v.init=function(){b(),M(),c(new Dn(v)),m()},v.findField=function(w,G){if(v.state[w]!==void 0)return G(v.state[w]),v.state[w]},v.messageParent=h,v.setStateAndPublish=l},we=Z.MESSAGES,gt=Z.ALL_APIS,On=Z.ASYNC_API_MAP,kn=Z.FIELDGROUP_TO_FIELD,wn=function(t,r){function o(){var C={};return Object.keys(gt).forEach(function(m){var b=gt[m],M=t[b]();N.isValueEmpty(M)||(C[m]=M)}),C}function i(){var C=[];return t._loading&&Object.keys(t._loading).forEach(function(m){if(t._loading[m]){var b=kn[m];C.push(b)}}),C.length?C:null}function c(C){return function m(b){var M=i();if(M){var v=On[M[0]];t[v](m,!0)}else C()}}function l(C,m){var b=o();r.send(C,m,b)}function f(C){I(C),l(C,we.HANDSHAKE)}function h(C){c(function(){l(C,we.PARENTSTATE)})()}function I(C){function m(M){b.call(t,M),r.send(C,we.PARENTSTATE,{CUSTOMERIDS:t.getCustomerIDs()})}var b=t.setCustomerIDs;t.setCustomerIDs=m}return function(C){r.isInvalid(C)||(r.parse(C).prefix===we.HANDSHAKE?f:h)(C.source)}},Pn=function(t,r){function o(f){return function(h){i[f]=h,c++,c===l&&r(i)}}var i={},c=0,l=Object.keys(t).length;Object.keys(t).forEach(function(f){var h=t[f];if(h.fn){var I=h.args||[];I.unshift(o(f)),h.fn.apply(h.context||null,I)}})},he={get:function(t){t=encodeURIComponent(t);var r=(";"+document.cookie).split(" ").join(";"),o=r.indexOf(";"+t+"="),i=o<0?o:r.indexOf(";",o+1);return o<0?"":decodeURIComponent(r.substring(o+2+t.length,i<0?r.length:i))},set:function(t,r,o){var i=_(o,"cookieLifetime"),c=_(o,"expires"),l=_(o,"domain"),f=_(o,"secure"),h=f?"Secure":"";if(c&&i!=="SESSION"&&i!=="NONE"){var I=r!==""?parseInt(i||0,10):-60;if(I)c=new Date,c.setTime(c.getTime()+1e3*I);else if(c===1){c=new Date;var C=c.getYear();c.setYear(C+2+(C<1900?1900:0))}}else c=0;return t&&i!=="NONE"?(document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(r)+"; path=/;"+(c?" expires="+c.toGMTString()+";":"")+(l?" domain="+l+";":"")+h,this.get(t)===r):0},remove:function(t,r){var o=_(r,"domain");o=o?" domain="+o+";":"",document.cookie=encodeURIComponent(t)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+o}},pt=function(t){var r;!t&&k.location&&(t=k.location.hostname),r=t;var o,i=r.split(".");for(o=i.length-2;o>=0;o--)if(r=i.slice(o).join("."),he.set("test","cookie",{domain:r}))return he.remove("test",{domain:r}),r;return""},mt={compare:x,isLessThan:function(t,r){return x(t,r)<0},areVersionsDifferent:function(t,r){return x(t,r)!==0},isGreaterThan:function(t,r){return x(t,r)>0},isEqual:function(t,r){return x(t,r)===0}},_t=!!k.postMessage,Ge={postMessage:function(t,r,o){var i=1;r&&(_t?o.postMessage(t,r.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):r&&(o.location=r.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+t))},receiveMessage:function(t,r){var o;try{_t&&(t&&(o=function(i){if(typeof r=="string"&&i.origin!==r||Object.prototype.toString.call(r)==="[object Function]"&&r(i.origin)===!1)return!1;t(i)}),k.addEventListener?k[t?"addEventListener":"removeEventListener"]("message",o):k[t?"attachEvent":"detachEvent"]("onmessage",o))}catch{}}},Rn=function(t){var r,o,i="0123456789",c="",l="",f=8,h=10,I=10;if(t==1){for(i+="ABCDEF",r=0;16>r;r++)o=Math.floor(Math.random()*f),c+=i.substring(o,o+1),o=Math.floor(Math.random()*f),l+=i.substring(o,o+1),f=16;return c+"-"+l}for(r=0;19>r;r++)o=Math.floor(Math.random()*h),c+=i.substring(o,o+1),r===0&&o==9?h=3:((r==1||r==2)&&h!=10&&2>o||2<r)&&(h=10),o=Math.floor(Math.random()*I),l+=i.substring(o,o+1),r===0&&o==9?I=3:((r==1||r==2)&&I!=10&&2>o||2<r)&&(I=10);return c+l},Ln=function(t,r){return{corsMetadata:(function(){var o="none",i=!0;return typeof XMLHttpRequest<"u"&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?o="XMLHttpRequest":typeof XDomainRequest<"u"&&XDomainRequest===Object(XDomainRequest)&&(i=!1),Object.prototype.toString.call(k.HTMLElement).indexOf("Constructor")>0&&(i=!1)),{corsType:o,corsCookiesEnabled:i}})(),getCORSInstance:function(){return this.corsMetadata.corsType==="none"?null:new k[this.corsMetadata.corsType]},fireCORS:function(o,i,c){function l(I){var C;try{if((C=JSON.parse(I))!==Object(C))return void f.handleCORSError(o,null,"Response is not JSON")}catch(v){return void f.handleCORSError(o,v,"Error parsing response as JSON")}try{for(var m=o.callback,b=k,M=0;M<m.length;M++)b=b[m[M]];b(C)}catch(v){f.handleCORSError(o,v,"Error forming callback function")}}var f=this;i&&(o.loadErrorHandler=i);try{var h=this.getCORSInstance();h.open("get",o.corsUrl+"&ts="+new Date().getTime(),!0),this.corsMetadata.corsType==="XMLHttpRequest"&&(h.withCredentials=!0,h.timeout=t.loadTimeout,h.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),h.onreadystatechange=function(){this.readyState===4&&this.status===200&&l(this.responseText)}),h.onerror=function(I){f.handleCORSError(o,I,"onerror")},h.ontimeout=function(I){f.handleCORSError(o,I,"ontimeout")},h.send(),t._log.requests.push(o.corsUrl)}catch(I){this.handleCORSError(o,I,"try-catch")}},handleCORSError:function(o,i,c){t.CORSErrors.push({corsData:o,error:i,description:c}),o.loadErrorHandler&&(c==="ontimeout"?o.loadErrorHandler(!0):o.loadErrorHandler(!1))}}},K={POST_MESSAGE_ENABLED:!!k.postMessage,DAYS_BETWEEN_SYNC_ID_CALLS:1,MILLIS_PER_DAY:864e5,ADOBE_MC:"adobe_mc",ADOBE_MC_SDID:"adobe_mc_sdid",VALID_VISITOR_ID_REGEX:/^[0-9a-fA-F\-]+$/,ADOBE_MC_TTL_IN_MIN:5,VERSION_REGEX:/vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/,FIRST_PARTY_SERVER_COOKIE:"s_ecid"},xn=function(t,r){var o=k.document;return{THROTTLE_START:3e4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(i){if(typeof i=="string"){var c=i.split("/");return c[0]+"//"+c[2]}},subdomain:null,url:null,getUrl:function(){var i,c="http://fast.",l="?d_nsid="+t.idSyncContainerID+"#"+encodeURIComponent(o.location.origin);return this.subdomain||(this.subdomain="nosubdomainreturned"),t.loadSSL&&(c=t.idSyncSSLUseAkamai?"https://fast.":"https://"),i=c+this.subdomain+".demdex.net/dest5.html"+l,this.iframeHost=this.getIframeHost(i),this.id="destination_publishing_iframe_"+this.subdomain+"_"+t.idSyncContainerID,i},checkDPIframeSrc:function(){var i="?d_nsid="+t.idSyncContainerID+"#"+encodeURIComponent(o.location.href);typeof t.dpIframeSrc=="string"&&t.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(t._subdomain||this.subdomain||new Date().getTime())+"_"+t.idSyncContainerID,this.iframeHost=this.getIframeHost(t.dpIframeSrc),this.url=t.dpIframeSrc+i)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,iframeLoadedCallbacks:[],regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],messageSendingInterval:K.POST_MESSAGE_ENABLED?null:100,onPageDestinationsFired:[],jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframePreliminary:function(){return!(t.idSyncDisableSyncs||t.disableIdSyncs||t.idSyncDisable3rdPartySyncing||t.disableThirdPartyCookies||t.disableThirdPartyCalls)},readyToAttachIframe:function(){return this.readyToAttachIframePreliminary()&&(this.doAttachIframe||t._doAttachIframe)&&(this.subdomain&&this.subdomain!=="nosubdomainreturned"||t._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function i(){f=o.createElement("iframe"),f.sandbox="allow-scripts allow-same-origin",f.title="Adobe ID Syncing iFrame",f.id=l.id,f.name=l.id+"_name",f.style.cssText="display: none; width: 0; height: 0;",f.src=l.url,l.newIframeCreated=!0,c(),o.body.appendChild(f)}function c(h){f.addEventListener("load",function(){f.className="aamIframeLoaded",l.iframeHasLoaded=!0,l.fireIframeLoadedCallbacks(h),l.requestToProcess()})}this.startedAttachingIframe=!0;var l=this,f=o.getElementById(this.id);f?f.nodeName!=="IFRAME"?(this.id+="_2",this.iframeIdChanged=!0,i()):(this.newIframeCreated=!1,f.className!=="aamIframeLoaded"?(this.originalIframeHasLoadedAlready=!1,c("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=f,this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."),this.requestToProcess())):i(),this.iframe=f},fireIframeLoadedCallbacks:function(i){this.iframeLoadedCallbacks.forEach(function(c){typeof c=="function"&&c({message:i||"The destination publishing iframe was attached and loaded successfully."})}),this.iframeLoadedCallbacks=[]},requestToProcess:function(i){function c(){f.jsonForComparison.push(i),f.jsonWaiting.push(i),f.processSyncOnPage(i)}var l,f=this;if(i===Object(i)&&i.ibs)if(l=JSON.stringify(i.ibs||[]),this.jsonForComparison.length){var h,I,C,m=!1;for(h=0,I=this.jsonForComparison.length;h<I;h++)if(C=this.jsonForComparison[h],l===JSON.stringify(C.ibs||[])){m=!0;break}m?this.jsonDuplicates.push(i):c()}else c();if((this.receivedThirdPartyCookiesNotification||!K.POST_MESSAGE_ENABLED||this.iframeHasLoaded)&&this.jsonWaiting.length){var b=this.jsonWaiting.shift();this.process(b),this.requestToProcess()}t.idSyncDisableSyncs||t.disableIdSyncs||!this.iframeHasLoaded||!this.messages.length||this.sendingMessages||(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout(function(){f.messageSendingInterval=K.POST_MESSAGE_ENABLED?null:150},this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},getRegionAndCheckIfChanged:function(i,c){var l=t._getField("MCAAMLH"),f=i.d_region||i.dcs_region;return l?f&&(t._setFieldExpire("MCAAMLH",c),t._setField("MCAAMLH",f),parseInt(l,10)!==f&&(this.regionChanged=!0,this.timesRegionChanged++,t._setField("MCSYNCSOP",""),t._setField("MCSYNCS",""),l=f)):(l=f)&&(t._setFieldExpire("MCAAMLH",c),t._setField("MCAAMLH",l)),l||(l=""),l},processSyncOnPage:function(i){var c,l,f,h;if((c=i.ibs)&&c instanceof Array&&(l=c.length))for(f=0;f<l;f++)h=c[f],h.syncOnPage&&this.checkFirstPartyCookie(h,"","syncOnPage")},process:function(i){var c,l,f,h,I,C=encodeURIComponent,m=!1;if((c=i.ibs)&&c instanceof Array&&(l=c.length))for(m=!0,f=0;f<l;f++)h=c[f],I=[C("ibs"),C(h.id||""),C(h.tag||""),N.encodeAndBuildRequest(h.url||[],","),C(h.ttl||""),"","",h.fireURLSync?"true":"false"],h.syncOnPage||(this.canSetThirdPartyCookies?this.addMessage(I.join("|")):h.fireURLSync&&this.checkFirstPartyCookie(h,I.join("|")));m&&this.jsonProcessed.push(i)},checkFirstPartyCookie:function(i,c,l){var f=l==="syncOnPage",h=f?"MCSYNCSOP":"MCSYNCS";t._readVisitor();var I,C,m=t._getField(h),b=!1,M=!1,v=Math.ceil(new Date().getTime()/K.MILLIS_PER_DAY);m?(I=m.split("*"),C=this.pruneSyncData(I,i.id,v),b=C.dataPresent,M=C.dataValid,b&&M||this.fireSync(f,i,c,I,h,v)):(I=[],this.fireSync(f,i,c,I,h,v))},pruneSyncData:function(i,c,l){var f,h,I,C=!1,m=!1;for(h=0;h<i.length;h++)f=i[h],I=parseInt(f.split("-")[1],10),f.match("^"+c+"-")?(C=!0,l<I?m=!0:(i.splice(h,1),h--)):l>=I&&(i.splice(h,1),h--);return{dataPresent:C,dataValid:m}},manageSyncsSize:function(i){if(i.join("*").length>this.MAX_SYNCS_LENGTH)for(i.sort(function(c,l){return parseInt(c.split("-")[1],10)-parseInt(l.split("-")[1],10)});i.join("*").length>this.MAX_SYNCS_LENGTH;)i.shift()},fireSync:function(i,c,l,f,h,I){var C=this;if(i){if(c.tag==="img"){var m,b,M,v,e=c.url,A=t.loadSSL?"https:":"http:";for(m=0,b=e.length;m<b;m++){M=e[m],v=/^\/\//.test(M);var j=new Image;j.addEventListener("load",(function(w,G,Y,X){return function(){C.onPagePixels[w]=null,t._readVisitor();var $,U=t._getField(h),ne=[];if(U){$=U.split("*");var z,H,ie;for(z=0,H=$.length;z<H;z++)ie=$[z],ie.match("^"+G.id+"-")||ne.push(ie)}C.setSyncTrackingData(ne,G,Y,X)}})(this.onPagePixels.length,c,h,I)),j.src=(v?A:"")+M,this.onPagePixels.push(j)}}}else this.addMessage(l),this.setSyncTrackingData(f,c,h,I)},addMessage:function(i){var c=encodeURIComponent,l=c(t._enableErrorReporting?"---destpub-debug---":"---destpub---");this.messages.push((K.POST_MESSAGE_ENABLED?"":l)+i)},setSyncTrackingData:function(i,c,l,f){i.push(c.id+"-"+(f+Math.ceil(c.ttl/60/24))),this.manageSyncsSize(i),t._setField(l,i.join("*"))},sendMessages:function(){var i,c=this,l="",f=encodeURIComponent;this.regionChanged&&(l=f("---destpub-clear-dextp---"),this.regionChanged=!1),this.messages.length?K.POST_MESSAGE_ENABLED?(i=l+f("---destpub-combined---")+this.messages.join("%01"),this.postMessage(i),this.messages=[],this.sendingMessages=!1):(i=this.messages.shift(),this.postMessage(l+i),setTimeout(function(){c.sendMessages()},this.messageSendingInterval)):this.sendingMessages=!1},postMessage:function(i){Ge.postMessage(i,this.url,this.iframe.contentWindow),this.messagesPosted.push(i)},receiveMessage:function(i){var c,l=/^---destpub-to-parent---/;typeof i=="string"&&l.test(i)&&(c=i.replace(l,"").split("|"),c[0]==="canSetThirdPartyCookies"&&(this.canSetThirdPartyCookies=c[1]==="true",this.receivedThirdPartyCookiesNotification=!0,this.requestToProcess()),this.messagesReceived.push(i))},processIDCallData:function(i){(this.url==null||i.subdomain&&this.subdomain==="nosubdomainreturned")&&(typeof t._subdomain=="string"&&t._subdomain.length?this.subdomain=t._subdomain:this.subdomain=i.subdomain||"",this.url=this.getUrl()),i.ibs instanceof Array&&i.ibs.length&&(this.doAttachIframe=!0),this.readyToAttachIframe()&&(t.idSyncAttachIframeOnWindowLoad?(r.windowLoaded||o.readyState==="complete"||o.readyState==="loaded")&&this.attachIframe():this.attachIframeASAP()),typeof t.idSyncIDCallResult=="function"?t.idSyncIDCallResult(i):this.requestToProcess(i),typeof t.idSyncAfterIDCallResult=="function"&&t.idSyncAfterIDCallResult(i)},canMakeSyncIDCall:function(i,c){return t._forceSyncIDCall||!i||c-i>K.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function i(){c.startedAttachingIframe||(o.body?c.attachIframe():setTimeout(i,30))}var c=this;i()}}},Ct={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{},disableThirdPartyCalls:{},discardTrackingServerECID:{},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{},disableThirdPartyCookies:{},idSyncDisableSyncs:{},disableIdSyncs:{},idSyncIDCallResult:{},idSyncSSLUseAkamai:{},isCoopSafe:{},isIabContext:{},isOptInStorageEnabled:{},loadSSL:{},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},whitelistIframeDomains:{},whitelistParentDomain:{}},ht={getConfigNames:function(){return Object.keys(Ct)},getConfigs:function(){return Ct},normalizeConfig:function(t){return typeof t!="function"?t:t()}},Nn=function(t){var r={};return t.on=function(o,i,c){if(!i||typeof i!="function")throw new Error("[ON] Callback should be a function.");r.hasOwnProperty(o)||(r[o]=[]);var l=r[o].push({callback:i,context:c})-1;return function(){r[o].splice(l,1),r[o].length||delete r[o]}},t.off=function(o,i){r.hasOwnProperty(o)&&(r[o]=r[o].filter(function(c){if(c.callback!==i)return c}))},t.publish=function(o){if(r.hasOwnProperty(o)){var i=[].slice.call(arguments,1);r[o].slice(0).forEach(function(c){c.callback.apply(c.context,i)})}},t.publish},le={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},_e={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",MEDIA_ANALYTICS:"mediaaa"},He=(Oe={},d(Oe,_e.AAM,565),d(Oe,_e.ECID,565),Oe),Vn=(ke={},d(ke,_e.AAM,[1,2,5]),d(ke,_e.ECID,[1,2,5]),ke),Pe=(function(t){return Object.keys(t).map(function(r){return t[r]})})(_e),It=function(){var t={};return t.callbacks=Object.create(null),t.add=function(r,o){if(!ve(o))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");t.callbacks[r]=t.callbacks[r]||[];var i=t.callbacks[r].push(o)-1;return function(){t.callbacks[r].splice(i,1)}},t.execute=function(r,o){if(t.callbacks[r]){o=o===void 0?[]:o,o=o instanceof Array?o:[o];try{for(;t.callbacks[r].length;){var i=t.callbacks[r].shift();typeof i=="function"?i.apply(null,o):i instanceof Array&&i[1].apply(i[0],o)}delete t.callbacks[r]}catch{}}},t.executeAll=function(r,o){(o||r&&!de(r))&&Object.keys(t.callbacks).forEach(function(i){var c=r[i]!==void 0?r[i]:"";t.execute(i,c)},t)},t.hasCallbacks=function(){return!!Object.keys(t.callbacks).length},t},Fn=function(){},Un=function(t){var r=window,o=r.console;return!!o&&typeof o[t]=="function"},Be=function(t,r,o){return o()?function(){if(Un(t)){for(var i=arguments.length,c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];console[t].apply(console,[r].concat(c))}}:Fn},jn=Ae,Re=new jn("[ADOBE OPT-IN]"),Le=function(t,r){return s(t)===r},We=function(t,r){return t instanceof Array?t:Le(t,"string")?[t]:r||[]},Gn=function(t){var r=Object.keys(t);return!!r.length&&r.every(function(o){return t[o]===!0})},Ye=function(t){return!(!t||Bn(t))&&We(t).every(function(r){return Pe.indexOf(r)>-1})},yt=function(t,r){return t.reduce(function(o,i){return o[i]=r,o},{})},Hn=function(t){return JSON.parse(JSON.stringify(t))},Bn=function(t){return Object.prototype.toString.call(t)==="[object Array]"&&!t.length},St=function(t){if(vt(t))return t;try{return JSON.parse(t)}catch{return{}}},Ke=function(t){return t===void 0||(vt(t)?Ye(Object.keys(t)):Wn(t))},Wn=function(t){try{var r=JSON.parse(t);return!!t&&Le(t,"string")&&Ye(Object.keys(r))}catch{return!1}},vt=function(t){return t!==null&&Le(t,"object")&&Array.isArray(t)===!1},Ee=function(){},Yn=function(t){return Le(t,"function")?t():t},At=function(t,r){Ke(t)||Re.error("".concat(r))},Kn=function(t){return Object.keys(t).map(function(r){return t[r]})},Xn=function(t){return Kn(t).filter(function(r,o,i){return i.indexOf(r)===o})},qn=function(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=r.command,i=r.params,c=i===void 0?{}:i,l=r.callback,f=l===void 0?Ee:l;if(!o||o.indexOf(".")===-1)throw new Error("[OptIn.execute] Please provide a valid command.");try{var h=o.split("."),I=t[h[0]],C=h[1];if(!I||typeof I[C]!="function")throw new Error("Make sure the plugin and API name exist.");var m=Object.assign(c,{callback:f});I[C].call(I,m)}catch(b){Re.error("[execute] Something went wrong: "+b.message)}}};me.prototype=Object.create(Error.prototype),me.prototype.constructor=me;var Dt="fetchPermissions",$n="[OptIn#registerPlugin] Plugin is invalid.";De.Categories=_e,De.TimeoutError=me;var Xe=Object.freeze({OptIn:De,IabPlugin:ln}),zn=function(t,r){t.publishDestinations=function(o){var i=arguments[1],c=arguments[2];try{c=typeof c=="function"?c:o.callback}catch{c=function(){}}var l=r;if(!l.readyToAttachIframePreliminary())return void c({error:"The destination publishing iframe is disabled in the Visitor library."});if(typeof o=="string"){if(!o.length)return void c({error:"subdomain is not a populated string."});if(!(i instanceof Array&&i.length))return void c({error:"messages is not a populated array."});var f=!1;if(i.forEach(function(m){typeof m=="string"&&m.length&&(l.addMessage(m),f=!0)}),!f)return void c({error:"None of the messages are populated strings."})}else{if(!N.isObject(o))return void c({error:"Invalid parameters passed."});var h=o;if(typeof(o=h.subdomain)!="string"||!o.length)return void c({error:"config.subdomain is not a populated string."});var I=h.urlDestinations;if(!(I instanceof Array&&I.length))return void c({error:"config.urlDestinations is not a populated array."});var C=[];I.forEach(function(m){N.isObject(m)&&(m.hideReferrer?m.message&&l.addMessage(m.message):C.push(m))}),(function m(){C.length&&setTimeout(function(){var b=new Image,M=C.shift();b.src=M.url,l.onPageDestinationsFired.push(M),m()},100)})()}l.iframe?(c({message:"The destination publishing iframe is already attached and loaded."}),l.requestToProcess()):!t.subdomain&&t._getField("MCMID")?(l.subdomain=o,l.doAttachIframe=!0,l.url=l.getUrl(),l.readyToAttachIframe()?(l.iframeLoadedCallbacks.push(function(m){c({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(m.message||"no result")})}),l.attachIframe()):c({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):l.iframeLoadedCallbacks.push(function(m){c({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(m.message||"no result")})})}},Jn=function t(r){function o(ne,z){return ne>>>z|ne<<32-z}for(var i,c,l=Math.pow,f=l(2,32),h="",I=[],C=8*r.length,m=t.h=t.h||[],b=t.k=t.k||[],M=b.length,v={},e=2;M<64;e++)if(!v[e]){for(i=0;i<313;i+=e)v[i]=e;m[M]=l(e,.5)*f|0,b[M++]=l(e,1/3)*f|0}for(r+="\x80";r.length%64-56;)r+="\0";for(i=0;i<r.length;i++){if((c=r.charCodeAt(i))>>8)return;I[i>>2]|=c<<(3-i)%4*8}for(I[I.length]=C/f|0,I[I.length]=C,c=0;c<I.length;){var A=I.slice(c,c+=16),j=m;for(m=m.slice(0,8),i=0;i<64;i++){var w=A[i-15],G=A[i-2],Y=m[0],X=m[4],$=m[7]+(o(X,6)^o(X,11)^o(X,25))+(X&m[5]^~X&m[6])+b[i]+(A[i]=i<16?A[i]:A[i-16]+(o(w,7)^o(w,18)^w>>>3)+A[i-7]+(o(G,17)^o(G,19)^G>>>10)|0);m=[$+((o(Y,2)^o(Y,13)^o(Y,22))+(Y&m[1]^Y&m[2]^m[1]&m[2]))|0].concat(m),m[4]=m[4]+$|0}for(i=0;i<8;i++)m[i]=m[i]+j[i]|0}for(i=0;i<8;i++)for(c=3;c+1;c--){var U=m[i]>>8*c&255;h+=(U<16?0:"")+U.toString(16)}return h},Et=function(t,r){return r!=="SHA-256"&&r!=="SHA256"&&r!=="sha256"&&r!=="sha-256"||(t=Jn(t)),t},bt=function(t){return String(t).trim().toLowerCase()},Qn=Xe.OptIn;N.defineGlobalNamespace(),window.adobe.OptInCategories=Qn.Categories;var qe=function(t,r,o){function i(n){var a=n;return function(u){var g=u||Y.location.href;try{var y=e._extractParamFromUri(g,a);if(y)return B.parsePipeDelimetedKeyValues(y)}catch{}}}function c(n){function a(u,g,y){u&&u.match(K.VALID_VISITOR_ID_REGEX)&&(y===U&&(G=!0),g(u))}a(n[U],e.setMarketingCloudVisitorID,U),e._setFieldExpire(O,-1),a(n[H],e.setAnalyticsVisitorID)}function l(n){n=n||{},e._supplementalDataIDCurrent=n.supplementalDataIDCurrent||"",e._supplementalDataIDCurrentConsumed=n.supplementalDataIDCurrentConsumed||{},e._supplementalDataIDLast=n.supplementalDataIDLast||"",e._supplementalDataIDLastConsumed=n.supplementalDataIDLastConsumed||{}}function f(n){function a(y,D,E){return E=E&&(E+="|"),E+=y+"="+encodeURIComponent(D)}function u(y,D){var E=D[0],R=D[1];return R!=null&&R!==V&&(y=a(E,R,y)),y}var g=n.reduce(u,"");return(function(y){var D=B.getTimestampInSeconds();return y=y&&(y+="|"),y+="TS="+D})(g)}function h(n){var a=n.minutesToLive,u="";return(e.idSyncDisableSyncs||e.disableIdSyncs)&&(u=u||"Error: id syncs have been disabled"),typeof n.dpid=="string"&&n.dpid.length||(u=u||"Error: config.dpid is empty"),typeof n.url=="string"&&n.url.length||(u=u||"Error: config.url is empty"),a===void 0?a=20160:(a=parseInt(a,10),(isNaN(a)||a<=0)&&(u=u||"Error: config.minutesToLive needs to be a positive number")),{error:u,ttl:a}}function I(){return!!e.configs.doesOptInApply&&!(A.optIn.isComplete&&C())}function C(){return e.configs.doesOptInApply&&e.configs.isIabContext?A.optIn.isApproved(A.optIn.Categories.ECID)&&w:A.optIn.isApproved(A.optIn.Categories.ECID)}function m(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach(function(n){var a=n[0],u=n.length===2?n[1]:"",g=e[a];e[a]=function(y){return C()&&e.isAllowed()?g.apply(e,arguments):(typeof y=="function"&&e._callCallback(y,[u]),u)}})}function b(n,a){if(w=!0,n)throw new Error("[IAB plugin] : "+n);a.gdprApplies&&(j=a.consentString),e.init(),v()}function M(){A.optIn.isComplete&&(A.optIn.isApproved(A.optIn.Categories.ECID)?e.configs.isIabContext?A.optIn.execute({command:"iabPlugin.fetchConsentData",callback:b}):(e.init(),v()):(m(),v()))}function v(){A.optIn.off("complete",M)}if(!o||o.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var e=this,A=window.adobe,j="",w=!1,G=!1;e.version="4.6.0";var Y=k,X=Y.Visitor;X.version=e.version,X.AuthState=Z.AUTH_STATE,X.OptOut=Z.OPT_OUT,Y.s_c_in||(Y.s_c_il=[],Y.s_c_in=0),e._c="Visitor",e._il=Y.s_c_il,e._in=Y.s_c_in,e._il[e._in]=e,Y.s_c_in++,e._instanceType="regular",e._log={requests:[]},e.marketingCloudOrgID=t,e.cookieName="AMCV_"+t,e.sessionCookieName="AMCVS_"+t,e.cookieDomain=pt(),e.loadSSL=!0,e.loadTimeout=3e4,e.CORSErrors=[],e.marketingCloudServer=e.audienceManagerServer="dpm.demdex.net",e.sdidParamExpiry=30;var $=null,U="MCMID",ne="MCIDTS",z="A",H="MCAID",ie="AAM",O="MCAAMB",V="NONE",J=function(n){return!Object.prototype[n]},fe=Ln(e);e.FIELDS=Z.FIELDS,e.cookieRead=function(n){return he.get(n)},e.cookieWrite=function(n,a,u){var g=e.cookieLifetime?(""+e.cookieLifetime).toUpperCase():"",y=!1;return e.configs&&e.configs.secureCookie&&location.protocol==="https:"&&(y=!0),he.set(n,""+a,{expires:u,domain:e.cookieDomain,cookieLifetime:g,secure:y})},e.resetState=function(n){n?e._mergeServerState(n):l()},e._isAllowedDone=!1,e._isAllowedFlag=!1,e.isAllowed=function(){return e._isAllowedDone||(e._isAllowedDone=!0,(e.cookieRead(e.cookieName)||e.cookieWrite(e.cookieName,"T",1))&&(e._isAllowedFlag=!0)),e.cookieRead(e.cookieName)==="T"&&e._helpers.removeCookie(e.cookieName),e._isAllowedFlag},e.setMarketingCloudVisitorID=function(n){e._setMarketingCloudFields(n)},e._use1stPartyMarketingCloudServer=!1,e.getMarketingCloudVisitorID=function(n,a){e.marketingCloudServer&&e.marketingCloudServer.indexOf(".demdex.net")<0&&(e._use1stPartyMarketingCloudServer=!0);var u=e._getAudienceManagerURLData("_setMarketingCloudFields"),g=u.url;return e._getRemoteField(U,g,n,a,u)};var ni=function(n,a){var u={};e.getMarketingCloudVisitorID(function(){a.forEach(function(g){u[g]=e._getField(g,!0)}),a.indexOf("MCOPTOUT")!==-1?e.isOptedOut(function(g){u.MCOPTOUT=g,n(u)},null,!0):n(u)},!0)};e.getVisitorValues=function(n,a){var u={MCMID:{fn:e.getMarketingCloudVisitorID,args:[!0],context:e},MCOPTOUT:{fn:e.isOptedOut,args:[void 0,!0],context:e},MCAID:{fn:e.getAnalyticsVisitorID,args:[!0],context:e},MCAAMLH:{fn:e.getAudienceManagerLocationHint,args:[!0],context:e},MCAAMB:{fn:e.getAudienceManagerBlob,args:[!0],context:e}},g=a&&a.length?N.pluck(u,a):u;a&&a.indexOf("MCAID")===-1?ni(n,a):Pn(g,n)},e._currentCustomerIDs={},e._customerIDsHashChanged=!1,e._newCustomerIDsHash="",e.setCustomerIDs=function(n,a){function u(){e._customerIDsHashChanged=!1}if(!e.isOptedOut()&&n){if(!N.isObject(n)||N.isObjectEmpty(n))return!1;e._readVisitor();var g,y,D;for(g in n)if(J(g)&&(y=n[g],a=y.hasOwnProperty("hashType")?y.hashType:a,y))if(s(y)==="object"){var E={};if(y.id){if(a){if(!(D=Et(bt(y.id),a)))return;y.id=D,E.hashType=a}E.id=y.id}y.authState!=null&&(E.authState=y.authState),e._currentCustomerIDs[g]=E}else if(a){if(!(D=Et(bt(y),a)))return;e._currentCustomerIDs[g]={id:D,hashType:a}}else e._currentCustomerIDs[g]={id:y};var R=e.getCustomerIDs(),T=e._getField("MCCIDH"),q="";T||(T=0);for(g in R)J(g)&&(y=R[g],q+=(q?"|":"")+g+"|"+(y.id?y.id:"")+(y.authState?y.authState:""));e._newCustomerIDsHash=String(e._hash(q)),e._newCustomerIDsHash!==T&&(e._customerIDsHashChanged=!0,e._mapCustomerIDs(u))}},e.getCustomerIDs=function(){e._readVisitor();var n,a,u={};for(n in e._currentCustomerIDs)J(n)&&(a=e._currentCustomerIDs[n],a.id&&(u[n]||(u[n]={}),u[n].id=a.id,a.authState!=null?u[n].authState=a.authState:u[n].authState=X.AuthState.UNKNOWN,a.hashType&&(u[n].hashType=a.hashType)));return u},e.setAnalyticsVisitorID=function(n){e._setAnalyticsFields(n)},e.getAnalyticsVisitorID=function(n,a,u){if(!B.isTrackingServerPopulated()&&!u)return e._callCallback(n,[""]),"";var g="";if(u||(g=e.getMarketingCloudVisitorID(function(se){e.getAnalyticsVisitorID(n,!0)})),g||u){var y=u?e.marketingCloudServer:e.trackingServer,D="";e.loadSSL&&(u?e.marketingCloudServerSecure&&(y=e.marketingCloudServerSecure):e.trackingServerSecure&&(y=e.trackingServerSecure));var E={};if(y){var R="http"+(e.loadSSL?"s":"")+"://"+y+"/id",T="d_visid_ver="+e.version+"&mcorgid="+encodeURIComponent(e.marketingCloudOrgID)+(g?"&mid="+encodeURIComponent(g):"")+(e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies?"&d_coppa=true":""),q=["s_c_il",e._in,"_set"+(u?"MarketingCloud":"Analytics")+"Fields"];D=R+"?"+T+"&callback=s_c_il%5B"+e._in+"%5D._set"+(u?"MarketingCloud":"Analytics")+"Fields",E.corsUrl=R+"?"+T,E.callback=q}return E.url=D,e._getRemoteField(u?U:H,D,n,a,E)}return""},e.getAudienceManagerLocationHint=function(n,a){if(e.getMarketingCloudVisitorID(function(D){e.getAudienceManagerLocationHint(n,!0)})){var u=e._getField(H);if(!u&&B.isTrackingServerPopulated()&&(u=e.getAnalyticsVisitorID(function(D){e.getAudienceManagerLocationHint(n,!0)})),u||!B.isTrackingServerPopulated()){var g=e._getAudienceManagerURLData(),y=g.url;return e._getRemoteField("MCAAMLH",y,n,a,g)}}return""},e.getLocationHint=e.getAudienceManagerLocationHint,e.getAudienceManagerBlob=function(n,a){if(e.getMarketingCloudVisitorID(function(D){e.getAudienceManagerBlob(n,!0)})){var u=e._getField(H);if(!u&&B.isTrackingServerPopulated()&&(u=e.getAnalyticsVisitorID(function(D){e.getAudienceManagerBlob(n,!0)})),u||!B.isTrackingServerPopulated()){var g=e._getAudienceManagerURLData(),y=g.url;return e._customerIDsHashChanged&&e._setFieldExpire(O,-1),e._getRemoteField(O,y,n,a,g)}}return""},e._supplementalDataIDCurrent="",e._supplementalDataIDCurrentConsumed={},e._supplementalDataIDLast="",e._supplementalDataIDLastConsumed={},e.getSupplementalDataID=function(n,a){e._supplementalDataIDCurrent||a||(e._supplementalDataIDCurrent=e._generateID(1));var u=e._supplementalDataIDCurrent;return e._supplementalDataIDLast&&!e._supplementalDataIDLastConsumed[n]?(u=e._supplementalDataIDLast,e._supplementalDataIDLastConsumed[n]=!0):u&&(e._supplementalDataIDCurrentConsumed[n]&&(e._supplementalDataIDLast=e._supplementalDataIDCurrent,e._supplementalDataIDLastConsumed=e._supplementalDataIDCurrentConsumed,e._supplementalDataIDCurrent=u=a?"":e._generateID(1),e._supplementalDataIDCurrentConsumed={}),u&&(e._supplementalDataIDCurrentConsumed[n]=!0)),u};var xe=!1;e._liberatedOptOut=null,e.getOptOut=function(n,a){var u=e._getAudienceManagerURLData("_setMarketingCloudFields"),g=u.url;if(C())return e._getRemoteField("MCOPTOUT",g,n,a,u);if(e._registerCallback("liberatedOptOut",n),e._liberatedOptOut!==null)return e._callAllCallbacks("liberatedOptOut",[e._liberatedOptOut]),xe=!1,e._liberatedOptOut;if(xe)return null;xe=!0;var y="liberatedGetOptOut";return u.corsUrl=u.corsUrl.replace(/dpm\.demdex\.net\/id\?/,"dpm.demdex.net/optOutStatus?"),u.callback=[y],k[y]=function(D){if(D===Object(D)){var E,R,T=N.parseOptOut(D,E,V);E=T.optOut,R=1e3*T.d_ottl,e._liberatedOptOut=E,setTimeout(function(){e._liberatedOptOut=null},R)}e._callAllCallbacks("liberatedOptOut",[E]),xe=!1},fe.fireCORS(u),null},e.isOptedOut=function(n,a,u){a||(a=X.OptOut.GLOBAL);var g=e.getOptOut(function(y){var D=y===X.OptOut.GLOBAL||y.indexOf(a)>=0;e._callCallback(n,[D])},u);return g?g===X.OptOut.GLOBAL||g.indexOf(a)>=0:null},e._fields=null,e._fieldsExpired=null,e._hash=function(n){var a,u,g=0;if(n)for(a=0;a<n.length;a++)u=n.charCodeAt(a),g=(g<<5)-g+u,g&=g;return g},e._generateID=Rn,e._generateLocalMID=function(){var n=e._generateID(0);return ae.isClientSideMarketingCloudVisitorID=!0,n},e._callbackList=null,e._callCallback=function(n,a){try{typeof n=="function"?n.apply(Y,a):n[1].apply(n[0],a)}catch{}},e._registerCallback=function(n,a){a&&(e._callbackList==null&&(e._callbackList={}),e._callbackList[n]==null&&(e._callbackList[n]=[]),e._callbackList[n].push(a))},e._callAllCallbacks=function(n,a){if(e._callbackList!=null){var u=e._callbackList[n];if(u)for(;u.length>0;)e._callCallback(u.shift(),a)}},e._addQuerystringParam=function(n,a,u,g){var y=encodeURIComponent(a)+"="+encodeURIComponent(u),D=B.parseHash(n),E=B.hashlessUrl(n);if(E.indexOf("?")===-1)return E+"?"+y+D;var R=E.split("?"),T=R[0]+"?",q=R[1];return T+B.addQueryParamAtLocation(q,y,g)+D},e._extractParamFromUri=function(n,a){var u=new RegExp("[\\?&#]"+a+"=([^&#]*)"),g=u.exec(n);if(g&&g.length)return decodeURIComponent(g[1])},e._parseAdobeMcFromUrl=i(K.ADOBE_MC),e._parseAdobeMcSdidFromUrl=i(K.ADOBE_MC_SDID),e._attemptToPopulateSdidFromUrl=function(n){var a=e._parseAdobeMcSdidFromUrl(n),u=1e9;a&&a.TS&&(u=B.getTimestampInSeconds()-a.TS),a&&a.SDID&&a.MCORGID===t&&u<e.sdidParamExpiry&&(e._supplementalDataIDCurrent=a.SDID,e._supplementalDataIDCurrentConsumed.SDID_URL_PARAM=!0)},e._attemptToPopulateIdsFromUrl=function(){var n=e._parseAdobeMcFromUrl();if(n&&n.TS){var a=B.getTimestampInSeconds(),u=a-n.TS;if(Math.floor(u/60)>K.ADOBE_MC_TTL_IN_MIN||n.MCORGID!==t)return;c(n)}},e._mergeServerState=function(n){if(n)try{if(n=(function(u){return B.isObject(u)?u:JSON.parse(u)})(n),n[e.marketingCloudOrgID]){var a=n[e.marketingCloudOrgID];(function(u){B.isObject(u)&&e.setCustomerIDs(u)})(a.customerIDs),l(a.sdid)}}catch{throw new Error("`serverState` has an invalid format.")}},e._timeout=null,e._loadData=function(n,a,u,g){a=e._addQuerystringParam(a,"d_fieldgroup",n,1),g.url=e._addQuerystringParam(g.url,"d_fieldgroup",n,1),g.corsUrl=e._addQuerystringParam(g.corsUrl,"d_fieldgroup",n,1),ae.fieldGroupObj[n]=!0,g===Object(g)&&g.corsUrl&&fe.corsMetadata.corsType==="XMLHttpRequest"&&fe.fireCORS(g,u,n)},e._clearTimeout=function(n){e._timeout!=null&&e._timeout[n]&&(clearTimeout(e._timeout[n]),e._timeout[n]=0)},e._settingsDigest=0,e._getSettingsDigest=function(){if(!e._settingsDigest){var n=e.version;e.audienceManagerServer&&(n+="|"+e.audienceManagerServer),e.audienceManagerServerSecure&&(n+="|"+e.audienceManagerServerSecure),e._settingsDigest=e._hash(n)}return e._settingsDigest},e._readVisitorDone=!1,e._readVisitor=function(){if(!e._readVisitorDone){e._readVisitorDone=!0;var n,a,u,g,y,D,E=e._getSettingsDigest(),R=!1,T=e.cookieRead(e.cookieName),q=new Date;if(T||G||e.discardTrackingServerECID||(T=e.cookieRead(K.FIRST_PARTY_SERVER_COOKIE)),e._fields==null&&(e._fields={}),T&&T!=="T")for(T=T.split("|"),T[0].match(/^[\-0-9]+$/)&&(parseInt(T[0],10)!==E&&(R=!0),T.shift()),T.length%2==1&&T.pop(),n=0;n<T.length;n+=2)a=T[n].split("-"),u=a[0],g=T[n+1],a.length>1?(y=parseInt(a[1],10),D=a[1].indexOf("s")>0):(y=0,D=!1),R&&(u==="MCCIDH"&&(g=""),y>0&&(y=q.getTime()/1e3-60)),u&&g&&(e._setField(u,g,1),y>0&&(e._fields["expire"+u]=y+(D?"s":""),(q.getTime()>=1e3*y||D&&!e.cookieRead(e.sessionCookieName))&&(e._fieldsExpired||(e._fieldsExpired={}),e._fieldsExpired[u]=!0)));!e._getField(H)&&B.isTrackingServerPopulated()&&(T=e.cookieRead("s_vi"))&&(T=T.split("|"),T.length>1&&T[0].indexOf("v1")>=0&&(g=T[1],n=g.indexOf("["),n>=0&&(g=g.substring(0,n)),g&&g.match(K.VALID_VISITOR_ID_REGEX)&&e._setField(H,g)))}},e._appendVersionTo=function(n){var a="vVersion|"+e.version,u=n?e._getCookieVersion(n):null;return u?mt.areVersionsDifferent(u,e.version)&&(n=n.replace(K.VERSION_REGEX,a)):n+=(n?"|":"")+a,n},e._writeVisitor=function(){var n,a,u=e._getSettingsDigest();for(n in e._fields)J(n)&&e._fields[n]&&n.substring(0,6)!=="expire"&&(a=e._fields[n],u+=(u?"|":"")+n+(e._fields["expire"+n]?"-"+e._fields["expire"+n]:"")+"|"+a);u=e._appendVersionTo(u),e.cookieWrite(e.cookieName,u,1)},e._getField=function(n,a){return e._fields==null||!a&&e._fieldsExpired&&e._fieldsExpired[n]?null:e._fields[n]},e._setField=function(n,a,u){e._fields==null&&(e._fields={}),e._fields[n]=a,u||e._writeVisitor()},e._getFieldList=function(n,a){var u=e._getField(n,a);return u?u.split("*"):null},e._setFieldList=function(n,a,u){e._setField(n,a?a.join("*"):"",u)},e._getFieldMap=function(n,a){var u=e._getFieldList(n,a);if(u){var g,y={};for(g=0;g<u.length;g+=2)y[u[g]]=u[g+1];return y}return null},e._setFieldMap=function(n,a,u){var g,y=null;if(a){y=[];for(g in a)J(g)&&(y.push(g),y.push(a[g]))}e._setFieldList(n,y,u)},e._setFieldExpire=function(n,a,u){var g=new Date;g.setTime(g.getTime()+1e3*a),e._fields==null&&(e._fields={}),e._fields["expire"+n]=Math.floor(g.getTime()/1e3)+(u?"s":""),a<0?(e._fieldsExpired||(e._fieldsExpired={}),e._fieldsExpired[n]=!0):e._fieldsExpired&&(e._fieldsExpired[n]=!1),u&&(e.cookieRead(e.sessionCookieName)||e.cookieWrite(e.sessionCookieName,"1"))},e._findVisitorID=function(n){return n&&(s(n)==="object"&&(n=n.d_mid?n.d_mid:n.visitorID?n.visitorID:n.id?n.id:n.uuid?n.uuid:""+n),n&&(n=n.toUpperCase())==="NOTARGET"&&(n=V),n&&(n===V||n.match(K.VALID_VISITOR_ID_REGEX))||(n="")),n},e._setFields=function(n,a){if(e._clearTimeout(n),e._loading!=null&&(e._loading[n]=!1),ae.fieldGroupObj[n]&&ae.setState(n,!1),n==="MC"){ae.isClientSideMarketingCloudVisitorID!==!0&&(ae.isClientSideMarketingCloudVisitorID=!1);var u=e._getField(U);if(!u||e.overwriteCrossDomainMCIDAndAID){if(!(u=s(a)==="object"&&a.mid?a.mid:e._findVisitorID(a))){if(e._use1stPartyMarketingCloudServer&&!e.tried1stPartyMarketingCloudServer)return e.tried1stPartyMarketingCloudServer=!0,void e.getAnalyticsVisitorID(null,!1,!0);u=e._generateLocalMID()}e._setField(U,u)}u&&u!==V||(u=""),s(a)==="object"&&((a.d_region||a.dcs_region||a.d_blob||a.blob)&&e._setFields(ie,a),e._use1stPartyMarketingCloudServer&&a.mid&&e._setFields(z,{id:a.id})),e._callAllCallbacks(U,[u])}if(n===ie&&s(a)==="object"){var g=604800;a.id_sync_ttl!=null&&a.id_sync_ttl&&(g=parseInt(a.id_sync_ttl,10));var y=re.getRegionAndCheckIfChanged(a,g);e._callAllCallbacks("MCAAMLH",[y]);var D=e._getField(O);(a.d_blob||a.blob)&&(D=a.d_blob,D||(D=a.blob),e._setFieldExpire(O,g),e._setField(O,D)),D||(D=""),e._callAllCallbacks(O,[D]),!a.error_msg&&e._newCustomerIDsHash&&e._setField("MCCIDH",e._newCustomerIDsHash)}if(n===z){var E=e._getField(H);E&&!e.overwriteCrossDomainMCIDAndAID||(E=e._findVisitorID(a),E?E!==V&&e._setFieldExpire(O,-1):E=V,e._setField(H,E)),E&&E!==V||(E=""),e._callAllCallbacks(H,[E])}if(e.idSyncDisableSyncs||e.disableIdSyncs)re.idCallNotProcesssed=!0;else{re.idCallNotProcesssed=!1;var R={};R.ibs=a.ibs,R.subdomain=a.subdomain,re.processIDCallData(R)}if(a===Object(a)){var T,q;C()&&e.isAllowed()&&(T=e._getField("MCOPTOUT"));var se=N.parseOptOut(a,T,V);T=se.optOut,q=se.d_ottl,e._setFieldExpire("MCOPTOUT",q,!0),e._setField("MCOPTOUT",T),e._callAllCallbacks("MCOPTOUT",[T])}},e._loading=null,e._getRemoteField=function(n,a,u,g,y){var D,E="",R=B.isFirstPartyAnalyticsVisitorIDCall(n),T={MCAAMLH:!0,MCAAMB:!0};if(C()&&e.isAllowed())if(e._readVisitor(),E=e._getField(n,T[n]===!0),(function(){return(!E||e._fieldsExpired&&e._fieldsExpired[n])&&(!e.disableThirdPartyCalls||R)})()){if(n===U||n==="MCOPTOUT"?D="MC":n==="MCAAMLH"||n===O?D=ie:n===H&&(D=z),D)return!a||e._loading!=null&&e._loading[D]||(e._loading==null&&(e._loading={}),e._loading[D]=!0,e._loadData(D,a,function(q){if(!e._getField(n)){q&&ae.setState(D,!0);var se="";n===U?se=e._generateLocalMID():D===ie&&(se={error_msg:"timeout"}),e._setFields(D,se)}},y)),e._registerCallback(n,u),E||(a||e._setFields(D,{id:V}),"")}else E||(n===U?(e._registerCallback(n,u),E=e._generateLocalMID(),e.setMarketingCloudVisitorID(E)):n===H?(e._registerCallback(n,u),E="",e.setAnalyticsVisitorID(E)):(E="",g=!0));return n!==U&&n!==H||E!==V||(E="",g=!0),u&&g&&e._callCallback(u,[E]),E},e._setMarketingCloudFields=function(n){e._readVisitor(),e._setFields("MC",n)},e._mapCustomerIDs=function(n){e.getAudienceManagerBlob(n,!0)},e._setAnalyticsFields=function(n){e._readVisitor(),e._setFields(z,n)},e._setAudienceManagerFields=function(n){e._readVisitor(),e._setFields(ie,n)},e._getAudienceManagerURLData=function(n){var a=e.audienceManagerServer,u="",g=e._getField(U),y=e._getField(O,!0),D=e._getField(H),E=D&&D!==V?"&d_cid_ic=AVID%01"+encodeURIComponent(D):"";if(e.loadSSL&&e.audienceManagerServerSecure&&(a=e.audienceManagerServerSecure),a){var R,T,q=e.getCustomerIDs();if(q)for(R in q)J(R)&&(T=q[R],E+="&d_cid_ic="+encodeURIComponent(R)+"%01"+encodeURIComponent(T.id?T.id:"")+(T.authState?"%01"+T.authState:""));n||(n="_setAudienceManagerFields");var se="http"+(e.loadSSL?"s":"")+"://"+a+"/id",Mt="d_visid_ver="+e.version+(j&&se.indexOf("demdex.net")!==-1?"&gdpr=1&gdpr_force=1&gdpr_consent="+j:"")+"&d_rtbd=json&d_ver=2"+(!g&&e._use1stPartyMarketingCloudServer?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(e.marketingCloudOrgID)+"&d_nsid="+(e.idSyncContainerID||0)+(g?"&d_mid="+encodeURIComponent(g):"")+(e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies?"&d_coppa=true":"")+($===!0?"&d_coop_safe=1":$===!1?"&d_coop_unsafe=1":"")+(y?"&d_blob="+encodeURIComponent(y):"")+E,ii=["s_c_il",e._in,n];return u=se+"?"+Mt+"&d_cb=s_c_il%5B"+e._in+"%5D."+n,{url:u,corsUrl:se+"?"+Mt,callback:ii}}return{url:u}},e.appendVisitorIDsTo=function(n){try{var a=[[U,e._getField(U)],[H,e._getField(H)],["MCORGID",e.marketingCloudOrgID]];return e._addQuerystringParam(n,K.ADOBE_MC,f(a))}catch{return n}},e.appendSupplementalDataIDTo=function(n,a){if(!(a=a||e.getSupplementalDataID(B.generateRandomString(),!0)))return n;try{var u=f([["SDID",a],["MCORGID",e.marketingCloudOrgID]]);return e._addQuerystringParam(n,K.ADOBE_MC_SDID,u)}catch{return n}};var B={parseHash:function(n){var a=n.indexOf("#");return a>0?n.substr(a):""},hashlessUrl:function(n){var a=n.indexOf("#");return a>0?n.substr(0,a):n},addQueryParamAtLocation:function(n,a,u){var g=n.split("&");return u=u??g.length,g.splice(u,0,a),g.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(n,a,u){if(n!==H)return!1;var g;return a||(a=e.trackingServer),u||(u=e.trackingServerSecure),!(typeof(g=e.loadSSL?u:a)!="string"||!g.length)&&g.indexOf("2o7.net")<0&&g.indexOf("omtrdc.net")<0},isObject:function(n){return!!(n&&n===Object(n))},removeCookie:function(n){he.remove(n,{domain:e.cookieDomain})},isTrackingServerPopulated:function(){return!!e.trackingServer||!!e.trackingServerSecure},getTimestampInSeconds:function(){return Math.round(new Date().getTime()/1e3)},parsePipeDelimetedKeyValues:function(n){return n.split("|").reduce(function(a,u){var g=u.split("=");return a[g[0]]=decodeURIComponent(g[1]),a},{})},generateRandomString:function(n){n=n||5;for(var a="",u="abcdefghijklmnopqrstuvwxyz0123456789";n--;)a+=u[Math.floor(Math.random()*u.length)];return a},normalizeBoolean:function(n){return n==="true"||n!=="false"&&n},parseBoolean:function(n){return n==="true"||n!=="false"&&null},replaceMethodsWithFunction:function(n,a){for(var u in n)n.hasOwnProperty(u)&&typeof n[u]=="function"&&(n[u]=a);return n}};e._helpers=B;var re=xn(e,X);e._destinationPublishing=re,e.timeoutMetricsLog=[];var ae={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(n,a){switch(n){case"MC":a===!1?this.MCIDCallTimedOut!==!0&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=a;break;case z:a===!1?this.AnalyticsIDCallTimedOut!==!0&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=a;break;case ie:a===!1?this.AAMIDCallTimedOut!==!0&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=a}}};e.isClientSideMarketingCloudVisitorID=function(){return ae.isClientSideMarketingCloudVisitorID},e.MCIDCallTimedOut=function(){return ae.MCIDCallTimedOut},e.AnalyticsIDCallTimedOut=function(){return ae.AnalyticsIDCallTimedOut},e.AAMIDCallTimedOut=function(){return ae.AAMIDCallTimedOut},e.idSyncGetOnPageSyncInfo=function(){return e._readVisitor(),e._getField("MCSYNCSOP")},e.idSyncByURL=function(n){if(!e.isOptedOut()){var a=h(n||{});if(a.error)return a.error;var u,g,y=n.url,D=encodeURIComponent,E=re;return y=y.replace(/^https:/,"").replace(/^http:/,""),u=N.encodeAndBuildRequest(["",n.dpid,n.dpuuid||""],","),g=["ibs",D(n.dpid),"img",D(y),a.ttl,"",u],E.addMessage(g.join("|")),E.requestToProcess(),"Successfully queued"}},e.idSyncByDataSource=function(n){if(!e.isOptedOut())return n===Object(n)&&typeof n.dpuuid=="string"&&n.dpuuid.length?(n.url="//dpm.demdex.net/ibs:dpid="+n.dpid+"&dpuuid="+n.dpuuid,e.idSyncByURL(n)):"Error: config or config.dpuuid is empty"},zn(e,re),e._getCookieVersion=function(n){n=n||e.cookieRead(e.cookieName);var a=K.VERSION_REGEX.exec(n);return a&&a.length>1?a[1]:null},e._resetAmcvCookie=function(n){var a=e._getCookieVersion();a&&!mt.isLessThan(a,n)||B.removeCookie(e.cookieName)},e.setAsCoopSafe=function(){$=!0},e.setAsCoopUnsafe=function(){$=!1},(function(){if(e.configs=Object.create(null),B.isObject(r))for(var n in r)J(n)&&(e[n]=r[n],e.configs[n]=r[n])})(),m();var Tt;e.init=function(){I()&&(A.optIn.fetchPermissions(M,!0),!A.optIn.isApproved(A.optIn.Categories.ECID))||Tt||(Tt=!0,(function(){if(B.isObject(r)){e.idSyncContainerID=e.idSyncContainerID||0,$=typeof e.isCoopSafe=="boolean"?e.isCoopSafe:B.parseBoolean(e.isCoopSafe),e.resetBeforeVersion&&e._resetAmcvCookie(e.resetBeforeVersion),e._attemptToPopulateIdsFromUrl(),e._attemptToPopulateSdidFromUrl(),e._readVisitor();var n=e._getField(ne),a=Math.ceil(new Date().getTime()/K.MILLIS_PER_DAY);e.idSyncDisableSyncs||e.disableIdSyncs||!re.canMakeSyncIDCall(n,a)||(e._setFieldExpire(O,-1),e._setField(ne,a)),e.getMarketingCloudVisitorID(),e.getAudienceManagerLocationHint(),e.getAudienceManagerBlob(),e._mergeServerState(e.serverState)}else e._attemptToPopulateIdsFromUrl(),e._attemptToPopulateSdidFromUrl()})(),(function(){if(!e.idSyncDisableSyncs&&!e.disableIdSyncs){re.checkDPIframeSrc();var n=function(){var a=re;a.readyToAttachIframe()&&a.attachIframe()};Y.addEventListener("load",function(){X.windowLoaded=!0,n()});try{Ge.receiveMessage(function(a){re.receiveMessage(a.data)},re.iframeHost)}catch{}}})(),(function(){e.whitelistIframeDomains&&K.POST_MESSAGE_ENABLED&&(e.whitelistIframeDomains=e.whitelistIframeDomains instanceof Array?e.whitelistIframeDomains:[e.whitelistIframeDomains],e.whitelistIframeDomains.forEach(function(n){var a=new lt(t,n),u=wn(e,a);Ge.receiveMessage(u,n)}))})())}};qe.config=ht,k.Visitor=qe;var Ie=qe,Zn=function(t){if(N.isObject(t))return Object.keys(t).filter(function(r){return t[r]!==""}).reduce(function(r,o){var i=ht.normalizeConfig(t[o]),c=N.normalizeBoolean(i);return r[o]=c,r},Object.create(null))},ei=Xe.OptIn,ti=Xe.IabPlugin;return Ie.getInstance=function(t,r){if(!t)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");t.indexOf("@")<0&&(t+="@AdobeOrg");var o=(function(){var C=k.s_c_il;if(C)for(var m=0;m<C.length;m++){var b=C[m];if(b&&b._c==="Visitor"&&b.marketingCloudOrgID===t)return b}})();if(o)return o;var i=Zn(r);(function(C){k.adobe.optIn=k.adobe.optIn||(function(){var m=N.pluck(C,["doesOptInApply","previousPermissions","preOptInApprovals","isOptInStorageEnabled","optInStorageExpiry","isIabContext"]),b=C.optInCookieDomain||C.cookieDomain;b=b||pt(),b=b===window.location.hostname?"":b,m.optInCookieDomain=b;var M=new ei(m,{cookies:he});if(m.isIabContext&&m.doesOptInApply){var v=new ti(window.__cmp);M.registerPlugin(v)}return M})()})(i||{});var c=t,l=c.split("").reverse().join(""),f=new Ie(t,null,l);N.isObject(i)&&i.cookieDomain&&(f.cookieDomain=i.cookieDomain),(function(){k.s_c_il.splice(--k.s_c_in,1)})();var h=N.getIeVersion();if(typeof h=="number"&&h<10)return f._helpers.replaceMethodsWithFunction(f,function(){});var I=(function(){try{return k.self!==k.parent}catch{return!0}})()&&!(function(C){return C.cookieWrite("TEST_AMCV_COOKIE","T",1),C.cookieRead("TEST_AMCV_COOKIE")==="T"&&(C._helpers.removeCookie("TEST_AMCV_COOKIE"),!0)})(f)&&k.parent?new Mn(t,i,f,k.parent):new Ie(t,i,l);return f=null,I.init(),I},(function(){function t(){Ie.windowLoaded=!0}k.addEventListener?k.addEventListener("load",t):k.attachEvent&&k.attachEvent("onload",t),Ie.codeLoadEnd=new Date().getTime()})(),Ie})()});var ye="__mpi",te=typeof window<"u",kt=()=>te?window:void 0;function W(s){let p=kt()?.[ye]?.segmentWrapper||{};return s?p[s]:p}var ge=(s,d)=>{let p=kt();if(!p){console.warn("[segment-wrapper] Cannot set config in non-browser environment");return}p[ye]=p[ye]||{},p[ye].segmentWrapper=p[ye].segmentWrapper||{},p[ye].segmentWrapper[s]=d};var be,$e=()=>({ADOBE_ORG_ID:window.__SEGMENT_WRAPPER?.ADOBE_ORG_ID,DEFAULT_DEMDEX_VERSION:window.__SEGMENT_WRAPPER?.DEFAULT_DEMDEX_VERSION??"3.3.0",TIME_BETWEEN_RETRIES:window.__SEGMENT_WRAPPER?.TIME_BETWEEN_RETRIES??15,TIMES_TO_RETRY:window.__SEGMENT_WRAPPER?.TIMES_TO_RETRY??80,SERVERS:{trackingServer:window.__SEGMENT_WRAPPER?.TRACKING_SERVER,trackingServerSecure:window.__SEGMENT_WRAPPER?.TRACKING_SERVER}}),Pt=()=>{let s=$e();if(window.Visitor&&s.ADOBE_ORG_ID)return window.Visitor.getInstance(s.ADOBE_ORG_ID,s.SERVERS)},fi=s=>s?.getMarketingCloudVisitorID(),Rt=()=>{let s=Pt(),d=$e(),p=s?.version??d.DEFAULT_DEMDEX_VERSION,{trackingServer:_}=d.SERVERS;return Promise.resolve({trackingServer:_,version:p})},Lt=()=>{if(be)return Promise.resolve(be);let s=$e();return new Promise(d=>{function p(_){if(_===0)return d("");let S=Pt();be=fi(S),be?d(be):window.setTimeout(()=>p(--_),s.TIME_BETWEEN_RETRIES)}p(s.TIMES_TO_RETRY)})},gi=async()=>(await Promise.resolve().then(()=>li(wt())),Lt()),Ne=async()=>{let s=W("getCustomAdobeVisitorId");return typeof s=="function"?s():W("importAdobeVisitorId")===!0?gi():Lt()};var pi="borosTcf",mi=2,_i={channel:"GDPR"},xt={analytics:[1,8,10],advertising:[3]},ze={LOADED:"tcloaded",USER_ACTION_COMPLETE:"useractioncomplete"},Ci="CMP Submitted",ee={ACCEPTED:"accepted",DECLINED:"declined",UNKNOWN:"unknown"},ce={listeners:[],value:void 0,addListener:s=>ce.listeners.push(s),get:()=>ce.value,set:s=>{let{analytics:d,advertising:p}=s||{};ce.value={analytics:d,advertising:p},ce.listeners.forEach(_=>_(s)),ce.listeners=[]}};function hi(s){if(!te)return null;let p=new RegExp(s+"=([^;]+)").exec(document.cookie);return p!==null?unescape(p[1]):null}var Ii=()=>{if(W("initialized"))return!1;let s=!!window.__tcfapi;return s||console.warn("[tcfTracking] window.__tcfapi is not available on client and TCF won't be tracked."),s},yi=s=>xt.analytics.every(d=>s[`${d}`]),Si=s=>xt.advertising.every(d=>s[`${d}`]),vi=({gdprPrivacy:s})=>{let d=s.analytics===ee.ACCEPTED,p=s.advertising===ee.ACCEPTED;return Ve.track(Ci,{..._i,...W("tcfTrackDefaultProperties")||{}},{google_consents:{analytics_storage:d?"granted":"denied",ad_storage:p?"granted":"denied",ad_user_data:p?"granted":"denied",ad_personalization:p?"granted":"denied"},gdpr_privacy:s.analytics,gdpr_privacy_advertising:s.advertising})},Se=()=>{let s=ce.get();return s!==void 0?Promise.resolve(s):new Promise(d=>{ce.addListener(p=>d(p))})},Nt=()=>ce.get(),Ce=s=>s?.analytics===ee.ACCEPTED,Vt=s=>{let d=yi(s),p=Si(s),_=d?ee.ACCEPTED:ee.DECLINED,S=p?ee.ACCEPTED:ee.DECLINED;return ce.set({analytics:_,advertising:S}),{analytics:_,advertising:S}},Ft=()=>{let s=hi(pi);if(s)try{let{purpose:d}=JSON.parse(window.atob(s)),{consents:p}=d;return p}catch(d){console.error(d);return}},Ai=()=>{let s=Ft();s&&Vt(s)},Di=()=>{let s=Ft();ge("isFirstVisit",!s)};function Je(){if(te){if(Ai(),Di(),!Ii()){ce.get()?.analytics===void 0&&ce.set({analytics:ee.UNKNOWN,advertising:ee.UNKNOWN});return}ge("initialized",!0),window.__tcfapi?.("addEventListener",mi,({eventStatus:s,purpose:d},p)=>{if(!p)return Promise.resolve();if(s===ze.USER_ACTION_COMPLETE||s===ze.LOADED){let{consents:_}=d,S=Vt(_);if(s===ze.USER_ACTION_COMPLETE){let{analytics:P,advertising:L}=S;vi({gdprPrivacy:{analytics:P,advertising:L}})}}})}}function Ut(s){if(typeof document>"u")return null;let p=new RegExp(`${s}=([^;]+)`).exec(document.cookie);return p!==null?unescape(p[1]):null}function jt(s,d,p={}){if(typeof document>"u"||typeof window>"u")return;let{maxAge:_=31536e3,path:S="/",reduceDomain:P=!0,sameSite:L="Lax"}=p,x=P?Ht():window.location.hostname,de=[`${s}=${d}`,`domain=${x}`,`path=${S}`,`max-age=${_}`,`SameSite=${L}`].join(";");document.cookie=de}function Gt(s,d={}){if(typeof document>"u"||typeof window>"u")return;let{path:p="/",reduceDomain:_=!0}=d,S=_?Ht():window.location.hostname;document.cookie=`${s}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${p}; domain=${S}`}var Ht=s=>{let d=s!==void 0?s:typeof window<"u"?window.location.hostname:"",p=".",_=d.split(p).reverse();if(_.length===1)return _[0];let S=[];for(let P of _)if(S.push(P),P.length>3)break;return`${p}${S.reverse().join(p)}`};var Ei="https://secure.adnxs.com/getuidj?consent=1",Qe="adit-xandr-id",bi=0;function Ti(){return te?window.fetch(Ei,{credentials:"include"}).then(s=>s.json()).then(s=>s?.uid).catch(()=>null):Promise.resolve(null)}function Bt({gdprPrivacyValueAdvertising:s}){if(!te)return null;if(s!==ee.ACCEPTED)return Gt(Qe),null;let d=S=>S!==null&&Number(S)>bi,p=Ut(Qe),_=d(p);return _||Ti().then(S=>{typeof S=="string"&&jt(Qe,S)}),ge("xandrId",p),_?p:null}var Mi={platform:"web"},Oi={All:!1},ki={All:!0},wi=s=>{let d=W("userIdPrefix");return d&&(typeof s=="number"||typeof s=="string"&&!s.startsWith(d))?`${d}${s}`:s},Ze=()=>({...Mi,...W("defaultProperties")}),Pi=async({gdprPrivacyValue:s,event:d})=>{let p=Ce(s),_;try{p&&(_=await Ne())}catch(P){console.error(P)}return{...Ri({isGdprAccepted:p,event:d}),"Adobe Analytics":_?{marketingCloudVisitorId:_}:!0,"Google Analytics 4 Web":!0}},Ri=({isGdprAccepted:s,event:d})=>d==="CMP Submitted"?ki:s?{}:Oi,Li=({context:s,xandrId:d})=>{let p=W("sendXandrId")!==!1,_=d&&parseInt(d)!==0;if(!p||!_)return{};let x=[...Array.isArray(s?.externalIds)?s.externalIds:[],{collection:"users",encoding:"none",id:d,type:"xandr_id"}];return{externalIds:x.filter(({id:ve,type:Ae},je)=>je===x.findIndex(({id:me,type:De})=>ve===me&&Ae===De))}},et=async({event:s="",context:d={}})=>{let p=await Se(),{analytics:_,advertising:S}=p||{},P=Ce(p),[L,x]=await Promise.all([Pi({gdprPrivacyValue:p,event:s}),Bt({gdprPrivacyValueAdvertising:S})]);return P||(d.integrations={...d.integrations??{},Personas:!1,Webhooks:!0,Webhook:!0}),{...d,...!P&&{ip:"0.0.0.0"},...Li({context:d,xandrId:x}),clientVersion:"segment-wrapper@5.0.0-beta.1",gdpr_privacy:_,gdpr_privacy_advertising:S,integrations:{...d.integrations,...L}}},Wt=(s,d,p={},_)=>new Promise(S=>{(async()=>{let L=await et({context:p,event:s}),x={...Ze(),...d},de=async(...ve)=>{_&&_(...ve);let[Ae]=await Promise.all([Se()]);Ce(Ae),S()};window.analytics.track(s,x,{...L,context:{integrations:{...L.integrations}}},de)})()}),xi=async(s,d,p,_)=>{let S=await Se(),P=wi(s);return window.analytics.identify(P,Ce(S)?d:{},p,_)},Ni=(s,d,p={},_)=>(p.isPageTrack=!0,Wt(s??"",d,p,_)),Vi=()=>Promise.resolve(window.analytics.reset()),Ve={page:Ni,identify:xi,track:Wt,reset:Vi};var Kt="__mpi_patch";function Yt(){let{track:s}=window.analytics;window.analytics.track=(...d)=>{let[p,_,S,P]=d,L={...Ze(),..._};return et({context:S,event:p}).then(x=>{s.call(window.analytics,p,L,x,P)}),window.analytics},window.analytics[Kt]=!0}te&&(window.analytics?window.analytics[Kt]||(window.analytics.initialized?Yt():window.analytics.ready(Yt)):console.warn("[segment-wrapper] Segment Analytics is not loaded so patch is not applied."));var tt={spaReferrer:"",referrer:""},Fe={getDocumentReferrer:()=>document.referrer,getActualLocation:()=>{let{origin:s,pathname:d}=window.location;return`${s}${d}`},getActualQueryString:()=>{let{search:s}=window.location;return s}},Xt=({isPageTrack:s=!1}={})=>{let{referrer:d,spaReferrer:p}=tt;return(s?d:p)||Fe.getDocumentReferrer()},Fi=()=>{tt.spaReferrer=Xt({isPageTrack:!0}),tt.referrer=Fe.getActualLocation()},qt=({payload:s,next:d})=>{let{obj:{context:p}}=s,{isPageTrack:_}=p,S=Xt({isPageTrack:_});s.obj.context={...p,page:{...p.page,referrer:S}},_&&Fi(),d(s)};var Te={QUERY:"stc",SPLIT_SYMBOL:"-",CAMPAIGN_SPLIT_SYMBOL:":"},Ui="utm_campaign",ji="utm_medium",Gi="utm_source",Hi="utm_content",Bi="utm_id",Wi="utm_term",Yi={aff:"affiliate",dis:"display",em:"email",met:"paid-metasearch",sem:"paid-search",rt:"display",sm:"social-media",sp:"paid-social",pn:"push-notification",cs:"cross-sites"},Ki="na",Xi={medium:null,source:null,campaign:null},qi={STC:"stc",UTM:"utm"},$t=({needsTransformation:s=!0}={})=>{let{medium:d,source:p,campaign:_,content:S,term:P}=$i();if(!d||!p||!_)return null;let[L,x]=_.split(Te.CAMPAIGN_SPLIT_SYMBOL);if(!L&&!x)return null;let de=typeof S<"u"&&S!==Ki;return{campaign:{medium:s&&Yi[d]||d,...typeof x<"u"&&{id:L},name:x??L,source:p,...de&&{content:S},...typeof P<"u"&&{term:P}}}};function $i(){let s=Fe.getActualQueryString(),d=new URLSearchParams(s);return W("trackingTagsType")===qi.UTM?zi(d):zt(d)}function zt(s){if(!Jt(s))return Xi;let d=s.get(Te.QUERY),[p,_,S,P,L]=d?.split(Te.SPLIT_SYMBOL)||[];return{medium:p,source:_,campaign:S,content:P,term:L}}function Jt(s){return s.has(Te.QUERY)}function zi(s){let d=s.get(Bi),p=s.get(Ui),_=s.get(ji),S=s.get(Gi),P=s.get(Hi),L=s.get(Wi),x=d?`${d}${Te.CAMPAIGN_SPLIT_SYMBOL}${p}`:p;return(!_||!S||!x)&&Jt(s)?zt(s):{campaign:x,medium:_,source:S,content:P??void 0,term:L??void 0}}var Qt=({payload:s,next:d})=>{let p=$t();s.obj.context={...s.obj.context,...p},d(s)};var Zt=({payload:s,next:d})=>{let p=Nt();if(p){let{analytics:_,advertising:S}=p,P=_===ee.ACCEPTED,L=S===ee.ACCEPTED;s.obj.context={...s.obj.context,google_consents:{analytics_storage:P?"granted":"denied",ad_storage:L?"granted":"denied",ad_user_data:L?"granted":"denied",ad_personalization:L?"granted":"denied"}}}d(s)};var Ji={platform:"web"},en=({payload:s,next:d})=>{let p=W("defaultContext")||{};s.obj.context={...Ji,...p,...s.obj.context},d(s)};var Qi=()=>{let s=null;return({payload:d,next:p})=>{try{let{obj:_}=d,{event:S,type:P}=_;if(P!=="track"){p(d);return}if(typeof S=="string"&&S.endsWith("Viewed")){let{page_name:L,page_type:x}=_.properties||{};s={name:L,type:x},p(d);return}if(!s){p(d);return}p({...d,obj:{..._,properties:{..._.properties,page_name_origin:s.name,page_type:_.properties?.page_type||s.type}}})}catch(_){console.error(_),p(d)}}},tn=Qi();var nn=({payload:s,next:d})=>{s.obj.context={...s.obj.context,screen:{height:window.innerHeight,width:window.innerWidth,density:window.devicePixelRatio}},d(s)};var Zi=s=>{let d=W("isUserTraitsEnabled"),p=window.analytics.user?.(),_=Ce(s),S=p?.id();return{anonymousId:p?.anonymousId(),...S&&{userId:S},..._&&d&&p?.traits()||{}}},rn=async({payload:s,next:d})=>{let p=await Se(),_;try{_=Zi(p)}catch(S){console.error(S)}s.obj.context={...s.obj.context,traits:{...s.obj.context.traits||{},..._}},d(s)};for(on=[],Ue=0;Ue<64;)on[Ue]=0|4294967296*Math.sin(++Ue%Math.PI);var on,Ue;for(oe=18,Me=[],nt=[];oe>1;oe--)for(F=oe;F<320;)Me[F+=oe]=1;var F,oe,Me,nt;function Q(s,d){return 4294967296*Math.pow(s,1/d)|0}for(F=0;F<64;)Me[++oe]||(nt[F]=Q(oe,2),Me[F++]=Q(oe,3));function ue(s,d){return s>>>d|s<<-d}function an(s){var d=nt.slice(oe=F=0,8),p=[],_=unescape(encodeURI(s))+"\x80",S=_.length;for(p[s=--S/4+2|15]=8*S;~S;)p[S>>2]|=_.charCodeAt(S)<<8*~S--;for(S=[];oe<s;oe+=16){for(Q=d.slice();F<64;Q.unshift(_+(ue(_=Q[0],2)^ue(_,13)^ue(_,22))+(_&Q[1]^Q[1]&Q[2]^Q[2]&_)))Q[3]+=_=0|(S[F]=F<16?~~p[F+oe]:(ue(_=S[F-2],17)^ue(_,19)^_>>>10)+S[F-7]+(ue(_=S[F-15],7)^ue(_,18)^_>>>3)+S[F-16])+Q.pop()+(ue(_=Q[4],6)^ue(_,11)^ue(_,25))+(_&Q[5]^~_&Q[6])+Me[F++];for(F=8;F;)d[--F]+=Q[F]}for(_="";F<64;)_+=(d[F>>3]>>4*(7-F++)&15).toString(16);return _}var er=/\.|\+.*$/g;function tr(s){if(typeof s!="string")return"";let p=s.toLowerCase().split(/@/);if(p.length!==2)return"";let[_,S]=p;return`${_.replace(er,"")}@${S}`}function sn(s){let d=tr(s);return d?an(d):""}var nr="USER_DATA_READY",ir=()=>W("universalId"),rr=()=>{let s=ir();if(s)return it(),s;let d=W("userEmail");if(d)return s=sn(d),or(s),it(),s;it()},cn=()=>{if(!te)return;let s=rr(),d=W("userEmail");if(typeof window<"u"&&typeof window.dispatchEvent=="function"){let p=new CustomEvent(nr,{detail:{universalId:s,userEmail:d}});window.dispatchEvent(p)}return{universalId:s,userEmail:d}},it=()=>{ge("universalIdInitialized",!0)},or=s=>{ge("universalId",s)};var un=()=>{if(typeof window>"u")return;let s=window,d=s.analytics;if(!d){console.warn("[segment-wrapper] Analytics is not available");return}let p=s.__SEGMENT_WRAPPER?.SEGMENT_ID_USER_WITHOUT_CONSENTS??"anonymous_user";d.user?.()?.anonymousId()===p&&"setAnonymousId"in d&&typeof d.setAnonymousId=="function"&&d.setAnonymousId(null)};Je();try{cn()}catch(s){console.error("[segment-wrapper] UniversalID could not be initialized",s)}var dn=()=>{let s=W("experimentalPageDataMiddleware");window.analytics.addSourceMiddleware?.(rn),window.analytics.addSourceMiddleware?.(en),window.analytics.addSourceMiddleware?.(Zt),window.analytics.addSourceMiddleware?.(Qt),window.analytics.addSourceMiddleware?.(nn),window.analytics.addSourceMiddleware?.(qt),s&&window.analytics.addSourceMiddleware?.(tn)};te&&window.analytics&&(window.analytics.ready(un),window.analytics.addSourceMiddleware?dn():window.analytics.ready(dn));var rt=Ve;var pe=window;pe.sui=pe.sui||{};pe.sui.analytics=pe.sui.analytics||rt;pe.sui.analytics.getAdobeVisitorData=pe.sui.analytics.getAdobeVisitorData||Rt;pe.sui.analytics.getAdobeMCVisitorID=pe.sui.analytics.getAdobeMCVisitorID||Ne;var ho=rt;})();
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Adobe Visitor API for JavaScript version: 4.6.0
|