Last active
April 16, 2026 18:05
-
-
Save benedikt-buchert/d2e0ae74c393898dd3f3e56cc1d722c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //No Custom JavaScript | |
| /** | |
| * @license | |
| * at.js 2.11.8 | (c) Adobe Systems Incorporated | All rights reserved | |
| * zepto.js | (c) 2010-2016 Thomas Fuchs | zeptojs.com/license | |
| */ | |
| window.adobe=window.adobe||{},window.adobe.target=function(){"use strict";var e=window,t=document,n=!t.documentMode||t.documentMode>=11;var r,o,i,c=t.compatMode&&"CSS1Compat"===t.compatMode&&n&&(r=window.navigator.userAgent,o=r.indexOf("MSIE ")>0,i=r.indexOf("Trident/")>0,!(o||i)),s=e.targetGlobalSettings;if(!c||s&&!1===s.enabled){function u(){}function a(e){var t={then:function(n,r){return n(e),t},catch:function(e){return t},finally:function(n){return n(e),t}};return t}return e.adobe=e.adobe||{},e.adobe.target={VERSION:"",event:{},getOffer:u,getOffers:a,applyOffer:u,applyOffers:a,sendNotifications:a,trackEvent:u,triggerView:u,registerExtension:u,init:u},e.mboxCreate=u,e.mboxDefine=u,e.mboxUpdate=u,"console"in e&&"warn"in e.console&&(c||e.console.warn("AT: Adobe Target content delivery is disabled. Update your DOCTYPE to support Standards mode."),e.console.warn("AT: Adobe Target content delivery is disabled in targetGlobalSettings.")),e.adobe.target}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t} | |
| /* | |
| object-assign | |
| (c) Sindre Sorhus | |
| @license MIT | |
| */var d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function m(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var g=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=m(e),i=1;i<arguments.length;i++){for(var c in n=Object(arguments[i]))p.call(n,c)&&(o[c]=n[c]);if(d){r=d(n);for(var s=0;s<r.length;s++)h.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function v(e){return null==e}const{isArray:y}=Array,{prototype:b}=Object,{toString:x}=b;function w(e){return function(e){return x.call(e)}(e)}function S(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)}function E(e){return!!S(e)&&"[object Function]"===w(e)}function T(e){return e}function C(e){return E(e)?e:T}function k(e){return v(e)?[]:Object.keys(e)}const I=(e,t)=>t.forEach(e),N=(e,t)=>{I(n=>e(t[n],n),k(t))},O=(e,t)=>t.filter(e),_=(e,t)=>{const n={};return N((t,r)=>{e(t,r)&&(n[r]=t)},t),n};function A(e,t){if(v(t))return[];return(y(t)?O:_)(C(e),t)}function P(e){return v(e)?[]:[].concat.apply([],e)}function q(e){var t=this;const n=e?e.length:0;let r=n;for(;r-=1;)if(!E(e[r]))throw new TypeError("Expected a function");return function(){let r=0;for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];let s=n?e[r].apply(t,i):i[0];for(;(r+=1)<n;)s=e[r].call(t,s);return s}}function M(e,t){if(v(t))return;(y(t)?I:N)(C(e),t)}function D(e){return null!=e&&"object"==typeof e}function R(e){return"string"==typeof e||!y(e)&&D(e)&&"[object String]"===w(e)}function L(e){if(!R(e))return-1;let t=0;const{length:n}=e;for(let r=0;r<n;r+=1)t=(t<<5)-t+e.charCodeAt(r)&4294967295;return t}function j(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!E(e)}const V=(e,t)=>t.map(e);function H(e){return v(e)?[]:j(e)?R(e)?e.split(""):function(e){let t=0;const{length:n}=e,r=Array(n);for(;t<n;)r[t]=e[t],t+=1;return r}(e):(t=k(e),n=e,V(e=>n[e],t));var t,n}const{prototype:U}=Object,{hasOwnProperty:B}=U;function F(e){if(null==e)return!0;if(j(e)&&(y(e)||R(e)||E(e.splice)))return!e.length;for(const t in e)if(B.call(e,t))return!1;return!0}const{prototype:z}=String,{trim:$}=z;function J(e){return v(e)?"":$.call(e)}function Z(e){return R(e)?!J(e):F(e)}const G=e=>!Z(e);function K(e){return"number"==typeof e||D(e)&&"[object Number]"===w(e)}const{prototype:W}=Function,{prototype:X}=Object,{toString:Y}=W,{hasOwnProperty:Q}=X,ee=Y.call(Object);function te(e){if(!D(e)||"[object Object]"!==w(e))return!1;const t=function(e){return Object.getPrototypeOf(Object(e))}(e);if(null===t)return!0;const n=Q.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Y.call(n)===ee}function ne(e,t){return y(t)?t.join(e||""):""}const re=(e,t)=>{const n={};return N((t,r)=>{n[r]=e(t,r)},t),n};function oe(e,t){if(v(t))return[];return(y(t)?V:re)(C(e),t)}function ie(){return(new Date).getTime()}const ce=(e,t,n)=>n.reduce(e,t),se=(e,t,n)=>{let r=t;return N((t,n)=>{r=e(r,t,n)},n),r};function ue(e,t,n){if(v(n))return t;return(y(n)?ce:se)(C(e),t,n)}const{prototype:ae}=Array,{reverse:fe}=ae;function le(e,t){return Z(t)?[]:t.split(e||"")}function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,Number(t)||0)}function pe(e){clearTimeout(e)}const he="server-side",me="edge",ge="local";function ve(e){return void 0===e}function ye(e){return!ve(e)}const be=()=>{},xe=e=>Promise.resolve(e);function we(e){return!!e.execute&&!!e.execute.pageLoad}function Se(e){return!!e.execute&&!!e.execute.mboxes&&e.execute.mboxes.length||0}function Ee(e){return!!e.prefetch&&!!e.prefetch.pageLoad}function Te(e){return!!e.prefetch&&!!e.prefetch.mboxes&&e.prefetch.mboxes.length||0}function Ce(e){return!!e.prefetch&&!!e.prefetch.views&&e.prefetch.views.length||0}function ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(e&&K(e))return+e.toFixed(t)}function Ie(){let e=[];return{addEntry:function(t){e.push(t)},getAndClearEntries:function(){const t=e;return e=[],t},hasEntries:function(){return e.length>0}}}var Ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Oe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){(function(){var t,n,r,o,i,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),c=1e9*process.uptime(),i=o-c):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(Ne)}));const _e=function(){let e={},t={},n={};function r(t){const n=(ye(e[t])?e[t]:0)+1;return e[t]=n,""+t+n}return{timeStart:function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=n?r(e):e;return ve(t[o])&&(t[o]=Oe()),o},timeEnd:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(ve(t[e]))return-1;const o=Oe()-t[e]-r;return n[e]=o,o},getTimings:()=>n,getTiming:e=>n[e],clearTiming:function(r){delete e[r],delete t[r],delete n[r]},reset:function(){e={},t={},n={}}}}();const Ae=new Uint8Array(256),Pe=function(){const e=window.crypto||window.msCrypto;return!v(e)&&e.getRandomValues&&E(e.getRandomValues)&&e.getRandomValues.bind(e)}();function qe(){return Pe(Ae)}const Me=function(){const e=[];for(let t=0;t<256;t+=1)e.push((t+256).toString(16).substr(1));return e}();function De(e){const t=e();return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e){const t=[];for(let n=0;n<16;n+=1)t.push(Me[e[n]]);return ne("",t).toLowerCase()}(t)}function Re(){return De(qe)}const Le="type",je="content",Ve="selector",He="src",Ue='Adobe Target content delivery is disabled. Ensure that you can save cookies to your current domain, there is no "mboxDisable" cookie and there is no "mboxDisable" parameter in query string.',Be="options argument is required",Fe="Action has no content",ze="No actions to be rendered",$e="error",Je="valid",Ze="success",Ge="___target_traces",Ke="display";var We=document,Xe=window;const Ye=/^(?!0)(?!.*\.$)((1?\d?\d|25[0-5]|2[0-4]\d)(\.|$)){4}$/,Qe=/^(com|edu|gov|net|mil|org|nom|co|name|info|biz)$/i;let et={};const tt=["enabled","clientCode","imsOrgId","serverDomain","crossDomain","cookieDomain","timeout","mboxParams","globalMboxParams","defaultContentHiddenStyle","defaultContentVisibleStyle","deviceIdLifetime","bodyHiddenStyle","bodyHidingEnabled","selectorsPollingTimeout","visitorApiTimeout","overrideMboxEdgeServer","overrideMboxEdgeServerTimeout","optoutEnabled","optinEnabled","secureOnly","supplementalDataIdParamTimeout","authoringScriptUrl","urlSizeLimit","endpoint","pageLoadEnabled","viewsEnabled","analyticsLogging","serverState","decisioningMethod","pollingInterval","artifactLocation","artifactFormat","artifactPayload","environment","cdnEnvironment","telemetryEnabled","cdnBasePath","cspScriptNonce","cspStyleNonce","globalMboxName","allowHighEntropyClientHints","aepSandboxId","aepSandboxName","deviceDetectionEnabled"];function nt(e){if(function(e){return Ye.test(e)}(e))return e;const t=null==(n=le(".",e))?n:fe.call(n);var n;const r=t.length;return r>=3&&Qe.test(t[1])?t[2]+"."+t[1]+"."+t[0]:1===r?t[0]:t[1]+"."+t[0]}function rt(e,t,n){let r="";"file:"===e.location.protocol||(r=nt(e.location.hostname)),n.cookieDomain=r,n.enabled=function(e){const{compatMode:t}=e;return t&&"CSS1Compat"===t}(t)&&function(e){const{documentMode:t}=e;return!t||t>=10}(t),function(e,t){e.enabled&&(v(t.globalMboxAutoCreate)||(e.pageLoadEnabled=t.globalMboxAutoCreate),M(n=>{v(t[n])||(e[n]=t[n])},tt))}(n,e.targetGlobalSettings||{})}function ot(e){rt(Xe,We,e);const t="file:"===Xe.location.protocol;et=g({},e),et.deviceIdLifetime=e.deviceIdLifetime/1e3,et.sessionIdLifetime=e.sessionIdLifetime/1e3,et.scheme=et.secureOnly||t?"https:":""}function it(){return et}var ct={exports:{}}; | |
| /*! | |
| * JavaScript Cookie v2.2.1 | |
| * https://github.com/js-cookie/js-cookie | |
| * | |
| * Copyright 2006, 2015 Klaus Hartl & Fagner Brack | |
| * Released under the MIT license | |
| */ct.exports=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+s}}function c(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var s=i[c].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var a=t(s[0]);if(u=(r.read||r)(u,a)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[a]=u,e===a)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return c(e,!1)},o.getJSON=function(e){return c(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}();var st=ct.exports,ut={get:st.get,set:st.set,remove:st.remove},at={};function ft(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var lt=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};at.decode=at.parse=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var c=1e3;r&&"number"==typeof r.maxKeys&&(c=r.maxKeys);var s=e.length;c>0&&s>c&&(s=c);for(var u=0;u<s;++u){var a,f,l,d,p=e[u].replace(i,"%20"),h=p.indexOf(n);h>=0?(a=p.substr(0,h),f=p.substr(h+1)):(a=p,f=""),l=decodeURIComponent(a),d=decodeURIComponent(f),ft(o,l)?Array.isArray(o[l])?o[l].push(d):o[l]=[o[l],d]:o[l]=d}return o},at.encode=at.stringify=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(lt(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(lt(e))})).join(t):o+encodeURIComponent(lt(e[r]))})).join(t):r?encodeURIComponent(lt(r))+n+encodeURIComponent(lt(e)):""};var dt=at,pt={parse:function(e){return"string"==typeof e&&(e=e.trim().replace(/^[?#&]/,"")),dt.parse(e)},stringify:function(e){return dt.stringify(e)}};const{parse:ht,stringify:mt}=pt,gt=We.createElement("a"),vt={};function yt(e){try{return window.URLSearchParams?[...new URLSearchParams(decodeURIComponent(e)).entries()].reduce((e,t)=>{let[n,r]=t;return e[n]=r,e},{}):ht(e)}catch(e){return{}}}function bt(e){try{return mt(e)}catch(e){return""}}function xt(e){try{return decodeURIComponent(e)}catch(t){return e}}function wt(e){try{return encodeURIComponent(e)}catch(t){return e}}function St(e){if(vt[e])return vt[e];gt.href=e;const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;const n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/}},r=n.parser[t.strictMode?"strict":"loose"].exec(e),o={};let i=14;for(;i--;)o[n.key[i]]=r[i]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,(function(e,t,r){t&&(o[n.q.name][t]=r)})),o}(gt.href);return t.queryKey=yt(t.query),vt[e]=t,vt[e]}const{get:Et,set:Tt,remove:Ct}=ut;function kt(e,t,n){return{name:e,value:t,expires:n}}const It={};function Nt(e,t,n){Tt(e,t,n),It[e]=t.toString()}function Ot(e){return void 0!==It[e]||(It[e]=Et(e)),It[e]}function _t(e){const t=le("#",e);return F(t)||t.length<3||isNaN(parseInt(t[2],10))?null:kt(xt(t[0]),xt(t[1]),Number(t[2]))}let At,Pt={};function qt(){const e=Ot("mbox");if(At===e)return Pt;At=e;const t=oe(_t,Z(n=e)?[]:le("|",n));var n;const r=Math.ceil(ie()/1e3);return Pt=ue((e,t)=>(e[t.name]=t,e),{},A(e=>S(e)&&r<=e.expires,t)),Pt}let Mt={};function Dt(e){Mt=qt();const t=Mt[e];return S(t)?t.value:""}function Rt(e){return ne("#",[wt(e.name),wt(e.value),e.expires])}function Lt(e){return e.expires}function jt(e,t,n){Mt=e;const r=H(Mt),o=Math.abs(1e3*function(e){const t=oe(Lt,e);return Math.max.apply(null,t)}(r)-ie()),i=ne("|",oe(Rt,r)),c=new Date(ie()+o);Nt("mbox",i,g({domain:t,expires:c,secure:n},n?{sameSite:"None"}:{}))}function Vt(e){const{name:t,value:n,expires:r,domain:o,secure:i}=e;Mt||(Mt=qt()),Mt[t]=kt(t,n.toString(),Math.ceil(r+ie()/1e3)),jt(Mt,o,i)}function Ht(e,t,n){return function(e){return G(Ot(e))}(n)||function(e,t){const{location:n}=e,{search:r}=n,o=yt(r);return G(o[t])}(e,n)||function(e,t){const{referrer:n}=e;if(window.URL)return new URL(n,window.location).searchParams.has(t);const r=St(n).queryKey;return!v(r)&&G(r[t])}(t,n)}function Ut(){const e=it(),t=e.cookieDomain,n=e.secureOnly;Nt("at_check","true",g({domain:t,secure:n},n?{sameSite:"None"}:{}));const r="true"===Ot("at_check");var o;return Ct(o="at_check"),delete It[o],r}function Bt(){return it().enabled&&Ut()&&!Ht(Xe,We,"mboxDisable")}function Ft(){return Ht(Xe,We,"mboxDebug")}function zt(){return Ht(Xe,We,"mboxEdit")}const $t="AT:";function Jt(e,t){const{console:n}=e;return!v(n)&&E(n[t])}function Zt(e,t){const{console:n}=e;Jt(e,"warn")&&n.warn.apply(n,[$t].concat(t))}function Gt(e,t){const{console:n}=e;Jt(e,"debug")&&Ft()&&n.debug.apply(n,[$t].concat(t))}function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Zt(Xe,t)}function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Gt(Xe,t)}function Xt(e,t,n){const r=e[Ge]||[];if(e[Ge]=r,!n)return;const o=r.push;r.version="1",r.settings=function(e){return ue((t,n)=>(t[n]=e[n],t),{},tt)}(t),r.clientTraces=[],r.serverTraces=[],r.push=function(e){r.serverTraces.push(g({timestamp:ie()},e)),o.call(this,e)}}function Yt(e,t,n,r){"serverTraces"===t&&e[Ge].push(n),r&&"serverTraces"!==t&&e[Ge][t].push(g({timestamp:ie()},n))}function Qt(e){Yt(Xe,"serverTraces",e,Ft())}function en(e){Yt(Xe,"clientTraces",e,Ft())}var tn=setTimeout;function nn(e){return Boolean(e&&void 0!==e.length)}function rn(){}function on(e){if(!(this instanceof on))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],ln(e,this)}function cn(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,on._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void un(t.promise,e)}sn(t.promise,r)}else(1===e._state?sn:un)(t.promise,e._value)}))):e._deferreds.push(t)}function sn(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof on)return e._state=3,e._value=t,void an(e);if("function"==typeof n)return void ln((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,an(e)}catch(t){un(e,t)}var r,o}function un(e,t){e._state=2,e._value=t,an(e)}function an(e){2===e._state&&0===e._deferreds.length&&on._immediateFn((function(){e._handled||on._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)cn(e,e._deferreds[t]);e._deferreds=null}function fn(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function ln(e,t){var n=!1;try{e((function(e){n||(n=!0,sn(t,e))}),(function(e){n||(n=!0,un(t,e))}))}catch(e){if(n)return;n=!0,un(t,e)}}on.prototype['catch']=function(e){return this.then(null,e)},on.prototype.then=function(e,t){var n=new this.constructor(rn);return cn(this,new fn(e,t,n)),n},on.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},on.all=function(e){return new on((function(t,n){if(!nn(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var s=c.then;if("function"==typeof s)return void s.call(c,(function(t){i(e,t)}),n)}r[e]=c,0==--o&&t(r)}catch(e){n(e)}}for(var c=0;c<r.length;c++)i(c,r[c])}))},on.resolve=function(e){return e&&"object"==typeof e&&e.constructor===on?e:new on((function(t){t(e)}))},on.reject=function(e){return new on((function(t,n){n(e)}))},on.race=function(e){return new on((function(t,n){if(!nn(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)on.resolve(e[r]).then(t,n)}))},on._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){tn(e,0)},on._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var dn=l(Object.freeze({__proto__:null,default:on})),pn="undefined"!=typeof window&&window.Promise||void 0!==f&&f.Promise||dn.default||dn,hn=function(e){var t=function(){var t,n,r,o,i,c=[],s=c.concat,u=c.filter,a=c.slice,f=e.document,l={},d={},p={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},h=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,g=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,v=/^(?:body|html)$/i,y=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],x=f.createElement("table"),w=f.createElement("tr"),S={tr:f.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:w,th:w,"*":f.createElement("div")},E=/complete|loaded|interactive/,T=/^[\w-]*$/,C={},k=C.toString,I={},N=f.createElement("div"),O={tabindex:"tabIndex",readonly:"readOnly",'for':"htmlFor",'class':"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},_=Array.isArray||function(e){return e instanceof Array};function A(e){return null==e?String(e):C[k.call(e)]||"object"}function P(e){return"function"==A(e)}function q(e){return null!=e&&e==e.window}function M(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function D(e){return"object"==A(e)}function R(e){return D(e)&&!q(e)&&Object.getPrototypeOf(e)==Object.prototype}function L(e){var t=!!e&&"length"in e&&e.length,r=n.type(e);return"function"!=r&&!q(e)&&("array"==r||0===t||"number"==typeof t&&t>0&&t-1 in e)}function j(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function V(e){return e in d?d[e]:d[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function H(e,t){return"number"!=typeof t||p[j(e)]?t:t+"px"}function U(e){return"children"in e?a.call(e.children):n.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function B(e,t){var n,r=e?e.length:0;for(n=0;n<r;n++)this[n]=e[n];this.length=r,this.selector=t||""}function F(e,n,r){for(t in n)r&&(R(n[t])||_(n[t]))?(R(n[t])&&!R(e[t])&&(e[t]={}),_(n[t])&&!_(e[t])&&(e[t]=[]),F(e[t],n[t],r)):void 0!==n[t]&&(e[t]=n[t])}function z(e,t){return null==t?n(e):n(e).filter(t)}function $(e,t,n,r){return P(t)?t.call(e,n,r):t}function J(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Z(e,t){var n=e.className||"",r=n&&void 0!==n.baseVal;if(void 0===t)return r?n.baseVal:n;r?n.baseVal=t:e.className=t}function K(e){try{return e?"true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?n.parseJSON(e):e):e}catch(t){return e}}function W(e,t){t(e);for(var n=0,r=e.childNodes.length;n<r;n++)W(e.childNodes[n],t)}function X(e,t,n){const r=e.getElementsByTagName("script")[0];if(!r)return;const o=r.parentNode;if(!o)return;const i=e.createElement("script");i.innerHTML=t,G(n)&&i.setAttribute("nonce",n),o.appendChild(i),o.removeChild(i)}return I.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var r,o=e.parentNode,i=!o;return i&&(o=N).appendChild(e),r=~I.qsa(o,t).indexOf(e),i&&N.removeChild(e),r},o=function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},i=function(e){return u.call(e,(function(t,n){return e.indexOf(t)==n}))},I.fragment=function(e,t,r){var o,i,c;return m.test(e)&&(o=n(f.createElement(RegExp.$1))),o||(e.replace&&(e=e.replace(g,"<$1></$2>")),void 0===t&&(t=h.test(e)&&RegExp.$1),t in S||(t="*"),(c=S[t]).innerHTML=""+e,o=n.each(a.call(c.childNodes),(function(){c.removeChild(this)}))),R(r)&&(i=n(o),n.each(r,(function(e,t){b.indexOf(e)>-1?i[e](t):i.attr(e,t)}))),o},I.Z=function(e,t){return new B(e,t)},I.isZ=function(e){return e instanceof I.Z},I.init=function(e,t){var r,o;if(!e)return I.Z();if("string"==typeof e)if("<"==(e=e.trim())[0]&&h.test(e))r=I.fragment(e,RegExp.$1,t),e=null;else{if(void 0!==t)return n(t).find(e);r=I.qsa(f,e)}else{if(P(e))return n(f).ready(e);if(I.isZ(e))return e;if(_(e))o=e,r=u.call(o,(function(e){return null!=e}));else if(D(e))r=[e],e=null;else if(h.test(e))r=I.fragment(e.trim(),RegExp.$1,t),e=null;else{if(void 0!==t)return n(t).find(e);r=I.qsa(f,e)}}return I.Z(r,e)},(n=function(e,t){return I.init(e,t)}).extend=function(e){var t,n=a.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach((function(n){F(e,n,t)})),e},I.qsa=function(e,t){var n,r="#"==t[0],o=!r&&"."==t[0],i=r||o?t.slice(1):t,c=T.test(i);return e.getElementById&&c&&r?(n=e.getElementById(i))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:a.call(c&&!r&&e.getElementsByClassName?o?e.getElementsByClassName(i):e.getElementsByTagName(t):e.querySelectorAll(t))},n.contains=f.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},n.type=A,n.isFunction=P,n.isWindow=q,n.isArray=_,n.isPlainObject=R,n.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},n.isNumeric=function(e){var t=Number(e),n=typeof e;return null!=e&&"boolean"!=n&&("string"!=n||e.length)&&!isNaN(t)&&isFinite(t)||!1},n.inArray=function(e,t,n){return c.indexOf.call(t,e,n)},n.camelCase=o,n.trim=function(e){return null==e?"":String.prototype.trim.call(e)},n.uuid=0,n.support={},n.expr={},n.noop=function(){},n.map=function(e,t){var r,o,i,c,s=[];if(L(e))for(o=0;o<e.length;o++)null!=(r=t(e[o],o))&&s.push(r);else for(i in e)null!=(r=t(e[i],i))&&s.push(r);return(c=s).length>0?n.fn.concat.apply([],c):c},n.each=function(e,t){var n,r;if(L(e)){for(n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e}else for(r in e)if(!1===t.call(e[r],r,e[r]))return e;return e},n.grep=function(e,t){return u.call(e,t)},e.JSON&&(n.parseJSON=JSON.parse),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){C["[object "+t+"]"]=t.toLowerCase()})),n.fn={constructor:I.Z,length:0,forEach:c.forEach,reduce:c.reduce,push:c.push,sort:c.sort,splice:c.splice,indexOf:c.indexOf,concat:function(){var e,t,n=[];for(e=0;e<arguments.length;e++)t=arguments[e],n[e]=I.isZ(t)?t.toArray():t;return s.apply(I.isZ(this)?this.toArray():this,n)},map:function(e){return n(n.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return n(a.apply(this,arguments))},ready:function(e){return E.test(f.readyState)&&f.body?e(n):f.addEventListener("DOMContentLoaded",(function(){e(n)}),!1),this},get:function(e){return void 0===e?a.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){for(var t,n=this.length,r=0;r<n&&(t=this[r],!1!==e.call(t,r,t));)r++;return this},filter:function(e){return P(e)?this.not(this.not(e)):n(u.call(this,(function(t){return I.matches(t,e)})))},add:function(e,t){return n(i(this.concat(n(e,t))))},is:function(e){return this.length>0&&I.matches(this[0],e)},not:function(e){var t=[];if(P(e)&&void 0!==e.call)this.each((function(n){e.call(this,n)||t.push(this)}));else{var r="string"==typeof e?this.filter(e):L(e)&&P(e.item)?a.call(e):n(e);this.forEach((function(e){r.indexOf(e)<0&&t.push(e)}))}return n(t)},has:function(e){return this.filter((function(){return D(e)?n.contains(this,e):n(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!D(e)?e:n(e)},last:function(){var e=this[this.length-1];return e&&!D(e)?e:n(e)},find:function(e){var t=this;return e?"object"==typeof e?n(e).filter((function(){var e=this;return c.some.call(t,(function(t){return n.contains(t,e)}))})):1==this.length?n(I.qsa(this[0],e)):this.map((function(){return I.qsa(this,e)})):n()},closest:function(e,t){var r=[],o="object"==typeof e&&n(e);return this.each((function(n,i){for(;i&&!(o?o.indexOf(i)>=0:I.matches(i,e));)i=i!==t&&!M(i)&&i.parentNode;i&&r.indexOf(i)<0&&r.push(i)})),n(r)},parents:function(e){for(var t=[],r=this;r.length>0;)r=n.map(r,(function(e){if((e=e.parentNode)&&!M(e)&&t.indexOf(e)<0)return t.push(e),e}));return z(t,e)},parent:function(e){return z(i(this.pluck("parentNode")),e)},children:function(e){return z(this.map((function(){return U(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||a.call(this.childNodes)}))},siblings:function(e){return z(this.map((function(e,t){return u.call(U(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return n.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){var e,t,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(e=this.nodeName,l[e]||(t=f.createElement(e),f.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),l[e]=n),l[e]))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=P(e);if(this[0]&&!t)var r=n(e).get(0),o=r.parentNode||this.length>1;return this.each((function(i){n(this).wrapAll(t?e.call(this,i):o?r.cloneNode(!0):r)}))},wrapAll:function(e){if(this[0]){var t;for(n(this[0]).before(e=n(e));(t=e.children()).length;)e=t.first();n(e).append(this)}return this},wrapInner:function(e){var t=P(e);return this.each((function(r){var o=n(this),i=o.contents(),c=t?e.call(this,r):e;i.length?i.wrapAll(c):o.append(c)}))},unwrap:function(){return this.parent().each((function(){n(this).replaceWith(n(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(e){return this.each((function(){var t=n(this);(void 0===e?"none"==t.css("display"):e)?t.show():t.hide()}))},prev:function(e){return n(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return n(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var r=this.innerHTML;n(this).empty().append($(this,e,t,r))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var n=$(this,e,t,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(e,n){var r;return"string"!=typeof e||1 in arguments?this.each((function(r){if(1===this.nodeType)if(D(e))for(t in e)J(this,t,e[t]);else J(this,e,$(this,n,r,this.getAttribute(e)))})):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(e))?r:void 0},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){J(this,e)}),this)}))},prop:function(e,t){return e=O[e]||e,1 in arguments?this.each((function(n){this[e]=$(this,t,n,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=O[e]||e,this.each((function(){delete this[e]}))},data:function(e,t){var n="data-"+e.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,t):this.attr(n);return null!==r?K(r):void 0},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=$(this,e,t,this.value)}))):this[0]&&(this[0].multiple?n(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each((function(e){var r=n(this),o=$(this,t,e,r.offset()),i=r.offsetParent().offset(),c={top:o.top-i.top,left:o.left-i.left};"static"==r.css("position")&&(c.position="relative"),r.css(c)}));if(!this.length)return null;if(f.documentElement!==this[0]&&!n.contains(f.documentElement,this[0]))return{top:0,left:0};var r=this[0].getBoundingClientRect();return{left:r.left+e.pageXOffset,top:r.top+e.pageYOffset,width:Math.round(r.width),height:Math.round(r.height)}},css:function(e,r){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[o(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(_(e)){if(!i)return;var c={},s=getComputedStyle(i,"");return n.each(e,(function(e,t){c[t]=i.style[o(t)]||s.getPropertyValue(t)})),c}}var u="";if("string"==A(e))r||0===r?u=j(e)+":"+H(e,r):this.each((function(){this.style.removeProperty(j(e))}));else for(t in e)e[t]||0===e[t]?u+=j(t)+":"+H(t,e[t])+";":this.each((function(){this.style.removeProperty(j(t))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(e){return e?this.indexOf(n(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&c.some.call(this,(function(e){return this.test(Z(e))}),V(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){r=[];var o=Z(this);$(this,e,t,o).split(/\s+/g).forEach((function(e){n(this).hasClass(e)||r.push(e)}),this),r.length&&Z(this,o+(o?" ":"")+r.join(" "))}})):this},removeClass:function(e){return this.each((function(t){if("className"in this){if(void 0===e)return Z(this,"");r=Z(this),$(this,e,t,r).split(/\s+/g).forEach((function(e){r=r.replace(V(e)," ")})),Z(this,r.trim())}}))},toggleClass:function(e,t){return e?this.each((function(r){var o=n(this);$(this,e,r,Z(this)).split(/\s+/g).forEach((function(e){(void 0===t?!o.hasClass(e):t)?o.addClass(e):o.removeClass(e)}))})):this},scrollTop:function(e){if(this.length){var t="scrollTop"in this[0];return void 0===e?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var t="scrollLeft"in this[0];return void 0===e?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),r=this.offset(),o=v.test(t[0].nodeName)?{top:0,left:0}:t.offset();return r.top-=parseFloat(n(e).css("margin-top"))||0,r.left-=parseFloat(n(e).css("margin-left"))||0,o.top+=parseFloat(n(t[0]).css("border-top-width"))||0,o.left+=parseFloat(n(t[0]).css("border-left-width"))||0,{top:r.top-o.top,left:r.left-o.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||f.body;e&&!v.test(e.nodeName)&&"static"==n(e).css("position");)e=e.offsetParent;return e}))}},n.fn.detach=n.fn.remove,["width","height"].forEach((function(e){var t=e.replace(/./,(function(e){return e[0].toUpperCase()}));n.fn[e]=function(r){var o,i=this[0];return void 0===r?q(i)?i["inner"+t]:M(i)?i.documentElement["scroll"+t]:(o=this.offset())&&o[e]:this.each((function(t){(i=n(this)).css(e,$(this,r,t,i[e]()))}))}})),["after","prepend","before","append"].forEach((function(e,t){var r=t%2;n.fn[e]=function(){var e,o,i=n.map(arguments,(function(t){var r=[];return"array"==(e=A(t))?(t.forEach((function(e){return void 0!==e.nodeType?r.push(e):n.zepto.isZ(e)?r=r.concat(e.get()):void(r=r.concat(I.fragment(e)))})),r):"object"==e||null==t?t:I.fragment(t)})),c=this.length>1;return i.length<1?this:this.each((function(e,s){o=r?s:s.parentNode,s=0==t?s.nextSibling:1==t?s.firstChild:2==t?s:null;const u=n.contains(f.documentElement,o),a=/^(text|application)\/(javascript|ecmascript)$/,l=it(),d=l.cspScriptNonce,p=l.cspStyleNonce;i.forEach((function(e){if(c)e=e.cloneNode(!0);else if(!o)return n(e).remove();G(d)&&"SCRIPT"===e.tagName&&e.setAttribute("nonce",d),G(p)&&"STYLE"===e.tagName&&e.setAttribute("nonce",p),o.insertBefore(e,s),u&&W(e,(function(e){null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&!a.test(e.type.toLowerCase())||e.src||X(f,e.innerHTML,e.nonce)}))}))}))},n.fn[r?e+"To":"insert"+(t?"Before":"After")]=function(t){return n(t)[e](this),this}})),I.Z.prototype=B.prototype=n.fn,I.uniq=i,I.deserializeValue=K,n.zepto=I,n}();return function(t){var n=1,r=Array.prototype.slice,o=t.isFunction,i=function(e){return"string"==typeof e},c={},s={},u="onfocusin"in e,a={focus:"focusin",blur:"focusout"},f={mouseenter:"mouseover",mouseleave:"mouseout"};function l(e){return e._zid||(e._zid=n++)}function d(e,t,n,r){if((t=p(t)).ns)var o=(i=t.ns,new RegExp("(?:^| )"+i.replace(" "," .* ?")+"(?: |$)"));var i;return(c[l(e)]||[]).filter((function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||o.test(e.ns))&&(!n||l(e.fn)===l(n))&&(!r||e.sel==r)}))}function p(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function h(e,t){return e.del&&!u&&e.e in a||!!t}function m(e){return f[e]||u&&a[e]||e}function g(e,n,r,o,i,s,u){var a=l(e),d=c[a]||(c[a]=[]);n.split(/\s/).forEach((function(n){if("ready"==n)return t(document).ready(r);var c=p(n);c.fn=r,c.sel=i,c.e in f&&(r=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return c.fn.apply(this,arguments)}),c.del=s;var a=s||r;c.proxy=function(t){if(!(t=S(t)).isImmediatePropagationStopped()){t.data=o;var n=a.apply(e,null==t._args?[t]:[t].concat(t._args));return!1===n&&(t.preventDefault(),t.stopPropagation()),n}},c.i=d.length,d.push(c),"addEventListener"in e&&e.addEventListener(m(c.e),c.proxy,h(c,u))}))}function v(e,t,n,r,o){var i=l(e);(t||"").split(/\s/).forEach((function(t){d(e,t,n,r).forEach((function(t){delete c[i][t.i],"removeEventListener"in e&&e.removeEventListener(m(t.e),t.proxy,h(t,o))}))}))}s.click=s.mousedown=s.mouseup=s.mousemove="MouseEvents",t.event={add:g,remove:v},t.proxy=function(e,n){var c=2 in arguments&&r.call(arguments,2);if(o(e)){var s=function(){return e.apply(n,c?c.concat(r.call(arguments)):arguments)};return s._zid=l(e),s}if(i(n))return c?(c.unshift(e[n],e),t.proxy.apply(null,c)):t.proxy(e[n],e);throw new TypeError("expected function")},t.fn.bind=function(e,t,n){return this.on(e,t,n)},t.fn.unbind=function(e,t){return this.off(e,t)},t.fn.one=function(e,t,n,r){return this.on(e,t,n,r,1)};var y=function(){return!0},b=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(e,n){if(n||!e.isDefaultPrevented){n||(n=e),t.each(w,(function(t,r){var o=n[t];e[t]=function(){return this[r]=y,o&&o.apply(n,arguments)},e[r]=b}));try{e.timeStamp||(e.timeStamp=(new Date).getTime())}catch(e){}(void 0!==n.defaultPrevented?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=y)}return e}function E(e){var t,n={originalEvent:e};for(t in e)x.test(t)||void 0===e[t]||(n[t]=e[t]);return S(n,e)}t.fn.delegate=function(e,t,n){return this.on(t,e,n)},t.fn.undelegate=function(e,t,n){return this.off(t,e,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,c,s,u){var a,f,l=this;return e&&!i(e)?(t.each(e,(function(e,t){l.on(e,n,c,t,u)})),l):(i(n)||o(s)||!1===s||(s=c,c=n,n=void 0),void 0!==s&&!1!==c||(s=c,c=void 0),!1===s&&(s=b),l.each((function(o,i){u&&(a=function(e){return v(i,e.type,s),s.apply(this,arguments)}),n&&(f=function(e){var o,c=t(e.target).closest(n,i).get(0);if(c&&c!==i)return o=t.extend(E(e),{currentTarget:c,liveFired:i}),(a||s).apply(c,[o].concat(r.call(arguments,1)))}),g(i,e,s,c,n,f||a)})))},t.fn.off=function(e,n,r){var c=this;return e&&!i(e)?(t.each(e,(function(e,t){c.off(e,n,t)})),c):(i(n)||o(r)||!1===r||(r=n,n=void 0),!1===r&&(r=b),c.each((function(){v(this,e,r,n)})))},t.fn.trigger=function(e,n){return(e=i(e)||t.isPlainObject(e)?t.Event(e):S(e))._args=n,this.each((function(){e.type in a&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)}))},t.fn.triggerHandler=function(e,n){var r,o;return this.each((function(c,s){(r=E(i(e)?t.Event(e):e))._args=n,r.target=s,t.each(d(s,e.type||e),(function(e,t){if(o=t.proxy(r),r.isImmediatePropagationStopped())return!1}))})),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}})),t.Event=function(e,t){i(e)||(e=(t=e).type);var n=document.createEvent(s[e]||"Events"),r=!0;if(t)for(var o in t)"bubbles"==o?r=!!t[o]:n[o]=t[o];return n.initEvent(e,r,!0),S(n)}}(t),function(){try{getComputedStyle(void 0)}catch(n){var t=getComputedStyle;e.getComputedStyle=function(e,n){try{return t(e,n)}catch(e){return null}}}}(),function(e){var t=e.zepto,n=t.qsa,r=/^\s*>/,o="Zepto"+ +new Date,i=function(t,i){var c,s,u=i;try{u?r.test(u)&&(s=e(t).addClass(o),u="."+o+" "+u):u="*",c=n(t,u)}catch(e){throw e}finally{s&&s.removeClass(o)}return c};t.qsa=function(e,t){var n=t.split(":shadow");if(n.length<2)return i(e,t);for(var r=e,o=0;o<n.length;o++){var c=n[o].trim();if(""!==c){if(0===c.indexOf(">")){var s=":host ";(r instanceof Element||r instanceof HTMLDocument)&&(s=":scope "),c=s+c}var u=i(r,c);if(0===u.length||!u[0]||!u[0].shadowRoot)return u;r=u[0].shadowRoot}else r=r.shadowRoot}}}(t),t}(window);const mn=Xe.MutationObserver||Xe.WebkitMutationObserver;function gn(){return E(mn)}function vn(e){return new mn(e)}function yn(){const e=We.createTextNode(""),t=[];return vn(()=>{const e=t.length;for(let n=0;n<e;n+=1)t[n]();t.splice(0,e)}).observe(e,{characterData:!0}),n=>{t.push(n),e.textContent=e.textContent.length>0?"":"a"}}function bn(e){return new pn(e)}function xn(e){return pn.resolve(e)}function wn(e){return pn.reject(e)}function Sn(e){return y(e)?pn.all(e):wn(new TypeError("Expected an array of promises"))}function En(e,t,n){let r=-1;const o=bn((e,o)=>{r=de(()=>o(new Error(n)),t)});return(i=[e,o],y(i)?pn.race(i):wn(new TypeError("Expected an array of promises"))).then(e=>(pe(r),e),e=>{throw pe(r),e});var i}function Tn(e){if(v(e.adobe))return!1;const t=e.adobe;if(v(t.optIn))return!1;const n=t.optIn;return E(n.fetchPermissions)&&E(n.isApproved)}function Cn(e,t){if(!Tn(e))return!0;const n=e.adobe.optIn,r=(e.adobe.optIn.Categories||{})[t];return n.isApproved(r)}function kn(){const e=it().optinEnabled;return function(e,t){return!!t&&Tn(e)}(Xe,e)}function In(){return Cn(Xe,"TARGET")}function Nn(){return function(e,t){if(!Tn(e))return xn(!0);const n=e.adobe.optIn,r=(e.adobe.optIn.Categories||{})[t];return bn((e,t)=>{n.fetchPermissions(()=>{n.isApproved(r)?e(!0):t("Adobe Target is not opted in")},!0)})}(Xe,"TARGET")}pn._setImmediateFn&&(gn()?pn._setImmediateFn(yn()):-1!==Xe.navigator.userAgent.indexOf("MSIE 10")&&pn._setImmediateFn(e=>{let t=hn("<script>");t.on("readystatechange",()=>{t.on("readystatechange",null),t.remove(),t=null,e()}),hn(We.documentElement).append(t)}));const On=Re();function _n(e){!function(e,t){Vt({name:"session",value:e,expires:t.sessionIdLifetime,domain:t.cookieDomain,secure:t.secureOnly})}(e,it())}const An=function(e,t){let n=0;return function(){const r=Date.now();r-n>=t&&(e(...arguments),n=r)}}(e=>_n(e),300);function Pn(){if(kn()&&!In())return On;const e=function(){const{location:e}=Xe,{search:t}=e;return yt(t).mboxSession}();if(G(e))return _n(e),Dt("session");const t=Dt("session");return Z(t)?_n(On):An(t),Dt("session")}function qn(){return Dt("PC")}const Mn=/.*\.(\d+)_\d+/;function Dn(e){const t=it();if(!t.overrideMboxEdgeServer)return;const n=t.cookieDomain,r=new Date(ie()+t.overrideMboxEdgeServerTimeout),o=t.secureOnly,i=Ot("mboxEdgeCluster"),c=g({domain:n,expires:r,secure:o},o?{sameSite:"None"}:{});if(G(i))return void Nt("mboxEdgeCluster",i,c);const s=function(e){if(Z(e))return"";const t=Mn.exec(e);return F(t)||2!==t.length?"":t[1]}(e);Z(s)||Nt("mboxEdgeCluster",s,c)}function Rn(e,t,n,r){const o=new e.CustomEvent(n,{detail:r});t.dispatchEvent(o)}!function(e,t){function n(e,n){const r=t.createEvent("CustomEvent");return n=n||{bubbles:!1,cancelable:!1,detail:void 0},r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}E(e.CustomEvent)||(n.prototype=e.Event.prototype,e.CustomEvent=n)}(Xe,We);function Ln(e,t){let n;try{n=JSON.parse(JSON.stringify(t))}catch(e){n=t}const{mbox:r,error:o,url:i,analyticsDetails:c,responseTokens:s,execution:u}=n,a={type:e,tracking:function(e,t){const n=e(),r=t(),o={};return o.sessionId=n,G(r)?(o.deviceId=r,o):o}(Pn,qn)};return v(r)||(a.mbox=r),v(o)||(a.error=o),v(i)||(a.url=i),F(c)||(a.analyticsDetails=c),F(s)||(a.responseTokens=s),F(u)||(a.execution=u),a}function jn(e){const t=Ln("at-request-start",e);Rn(Xe,We,"at-request-start",t)}function Vn(e,t){const n=Ln("at-request-succeeded",e);n.redirect=t,Rn(Xe,We,"at-request-succeeded",n)}function Hn(e){const t=Ln("at-request-failed",e);Rn(Xe,We,"at-request-failed",t)}function Un(e){const t=Ln("at-content-rendering-start",e);Rn(Xe,We,"at-content-rendering-start",t)}function Bn(e){const t=Ln("at-content-rendering-succeeded",e);Rn(Xe,We,"at-content-rendering-succeeded",t)}function Fn(e){const t=Ln("at-content-rendering-failed",e);Rn(Xe,We,"at-content-rendering-failed",t)}function zn(e){const t=Ln("at-content-rendering-no-offers",e);Rn(Xe,We,"at-content-rendering-no-offers",t)}function $n(e){const t=Ln("at-content-rendering-redirect",e);Rn(Xe,We,"at-content-rendering-redirect",t)}var Jn=pn,Zn=function(e){var t=document.createElement("script");t.src=e,t.async=!0;var n=function(e,t){return new Jn((function(n,r){t.onload=function(){n(t)},t.onerror=function(){r(new Error("Failed to load script "+e))}}))}(e,t);return document.getElementsByTagName("head")[0].appendChild(t),n};function Gn(e){return D(e)&&1===e.nodeType&&!te(e)}const Kn=":eq(".length,Wn=/((\.|#)(-)?\d{1})/g;function Xn(e){const t=e.charAt(0),n=e.charAt(1),r=e.charAt(2),o={key:e};return o.val="-"===n?""+t+n+"\\3"+r+" ":t+"\\3"+n+" ",o}function Yn(e){if(Gn(e))return hn(e);if(!R(e))return hn(e);const t=function(e){const t=e.match(Wn);return F(t)?e:ue((e,t)=>e.replace(t.key,t.val),e,oe(Xn,t))}(e);if(-1===t.indexOf(":eq("))return hn(t);const n=function(e){const t=[];let n,r,o,i,c=J(e),s=c.indexOf(":eq(");for(;-1!==s;)n=J(c.substring(0,s)),r=J(c.substring(s)),i=r.indexOf(")"),o=J(r.substring(Kn,i)),c=J(r.substring(i+1)),s=c.indexOf(":eq("),n&&o&&t.push({sel:n,eq:Number(o)});return c&&t.push({sel:c}),t}(t);return ue((e,t)=>{const{sel:n,eq:r}=t;return e=e.find(n),K(r)&&(e=e.eq(r)),e},hn(We),n)}function Qn(e){return Yn(e).length>0}function er(e){return hn("<div/>").append(e)}function tr(e){return Yn(e).parent()}function nr(e,t){return Yn(t).find(e)}const rr="clickHandlerForExperienceEditor";function or(){if(!zt())return;Xe._AT=Xe._AT||{},Xe._AT.querySelectorAll=Yn;const e=it().authoringScriptUrl;Wt("Loading target-vec.js"),Zn(e).then(()=>{We.addEventListener("click",e=>{E(Xe._AT[rr])&&Xe._AT[rr](e)},!0)})['catch'](()=>Kt("Unable to load target-vec.js"))}const ir=e=>!v(e);function cr(e){const t=function(e){return parseInt(e,10)}(e);return isNaN(t)?null:t}function sr(e){return le("_",e)}function ur(e){const t=le("_",e),n=cr(t[0]);if(v(n))return null;const r={};r.activityIndex=n;const o=cr(t[1]);return v(o)||(r.experienceIndex=o),r}function ar(e){return A(ir,oe(ur,e))}function fr(e){const t=yt(e),n=t.at_preview_token;if(Z(n))return null;const r={};r.token=n;const o=t.at_preview_listed_activities_only;G(o)&&"true"===o&&(r.listedActivitiesOnly=!0);const i=t.at_preview_evaluate_as_true_audience_ids;G(i)&&(r.evaluateAsTrueAudienceIds=sr(i));const c=t.at_preview_evaluate_as_false_audience_ids;G(c)&&(r.evaluateAsFalseAudienceIds=sr(c));const s=t.at_preview_index;return F(s)||(r.previewIndexes=y(u=s)?ar(u):ar([u])),r;var u}function lr(e){const t=function(e){const t=yt(e).at_preview;return Z(t)?null:{token:t}}(e.location.search);if(v(t))return;const n=new Date(ie()+186e4),r=it().secureOnly,o=g({expires:n,secure:r},r?{sameSite:"None"}:{});Nt("at_preview_mode",JSON.stringify(t),o)}function dr(e){return Yn(e).empty().remove()}function pr(e,t){return Yn(t).after(e)}function hr(e,t){return Yn(t).before(e)}function mr(e,t){return Yn(t).append(e)}function gr(e){return Yn(e).html()}function vr(e,t){return'<style id="'+e+'" class="at-flicker-control">'+t+"</style>"}function yr(e,t){if(F(t))return;const n=A(e=>!Qn("#at-"+L(e)),t);if(F(n))return;const r=e.defaultContentHiddenStyle;mr(ne("\n",oe(e=>function(e,t){return vr("at-"+L(t),t+" {"+e+"}")}(r,e),n)),"head")}function br(e,t){if(F(t)||Qn("#at-views"))return;mr(function(e,t){return vr("at-views",t+" {"+e+"}")}(e.defaultContentHiddenStyle,ne(", ",t)),"head")}function xr(){!function(e){if(!0!==e.bodyHidingEnabled)return;if(Qn("#at-body-style"))return;mr(vr("at-body-style",e.bodyHiddenStyle),"head")}(it())}function wr(){!function(e){!0===e.bodyHidingEnabled&&Qn("#at-body-style")&&dr("#at-body-style")}(it())}function Sr(e){return!v(e.id)}function Er(e){return!v(e.authState)}function Tr(e){return Sr(e)||Er(e)}function Cr(e,t){return ue((e,n,r)=>{const o={};return o.integrationCode=r,Sr(n)&&(o.id=n.id),Er(n)&&(o.authenticatedState=function(e){switch(e){case 0:return"unknown";case 1:return"authenticated";case 2:return"logged_out";default:return"unknown"}}(n.authState)),o[Le]=t,function(e){return e.primary}(n)&&(o.primary=!0),e.push(o),e},[],A(Tr,e))}function kr(e){if(v(e))return[];if(!E(e.getCustomerIDs))return[];const t=e.getCustomerIDs(!0);return S(t)?function(e){if(!e.nameSpaces&&!e.dataSources)return Cr(e,"DS");const t=[];return e.nameSpaces&&t.push.apply(t,Cr(e.nameSpaces,"NS")),e.dataSources&&t.push.apply(t,Cr(e.dataSources,"DS")),t}(t):[]}function Ir(e){return Wt("Visitor API requests error",e),{}}function Nr(e,t,n){if(v(e))return xn({});return En(function(e,t){if(!E(e.getVisitorValues))return xn({});const n=["MCMID","MCAAMB","MCAAMLH"];return t&&n.push("MCOPTOUT"),bn(t=>{e.getVisitorValues(e=>t(e),n)})}(e,n),t,"Visitor API requests timed out")['catch'](Ir)}function Or(e,t){return v(e)?{}:function(e,t){if(!E(e.getVisitorValues))return{};const n=["MCMID","MCAAMB","MCAAMLH"];t&&n.push("MCOPTOUT");const r={};return e.getVisitorValues(e=>g(r,e),n),r}(e,t)}function _r(){const e=it(),t=e.imsOrgId,n=e.supplementalDataIdParamTimeout;return function(e,t,n){if(Z(t))return null;if(v(e.Visitor))return null;if(!E(e.Visitor.getInstance))return null;const r=e.Visitor.getInstance(t,{sdidParamExpiry:n});return S(r)&&E(r.isAllowed)&&r.isAllowed()?r:null}(Xe,t,n)}function Ar(e){return function(e,t){return v(e)?null:E(e.getSupplementalDataID)?e.getSupplementalDataID(t):null}(_r(),e)}function Pr(e){return function(e,t){if(v(e))return null;const n=e[t];return v(n)?null:n}(_r(),e)}const qr={};function Mr(e,t){qr[e]=t}function Dr(e){return qr[e]}function Rr(e){const t=e.name;if(!R(t)||F(t))return!1;const n=e.version;if(!R(n)||F(n))return!1;const r=e.timeout;if(!v(r)&&!K(r))return!1;return!!E(e.provider)}function Lr(e,t,n,r,o,i){const c={};c[e]=t,c[n]=r,c[o]=i;const s={};return s.dataProvider=c,s}function jr(e){const t=e.name,n=e.version,r=e.timeout||2e3;return En(function(e){return bn((t,n)=>{e((e,r)=>{v(e)?t(r):n(e)})})}(e.provider),r,"timed out").then(e=>{const r=Lr("name",t,"version",n,"params",e);return Wt("Data provider",Ze,r),en(r),e})['catch'](e=>{const r=Lr("name",t,"version",n,$e,e);return Wt("Data provider",$e,r),en(r),{}})}function Vr(e){const t=ue((e,t)=>g(e,t),{},e);return Mr("dataProviders",t),t}function Hr(e){if(!function(e){const t=e.targetGlobalSettings;if(v(t))return!1;const n=t.dataProviders;return!(!y(n)||F(n))}(e))return xn({});return Sn(oe(jr,A(Rr,e.targetGlobalSettings.dataProviders))).then(Vr)}function Ur(){return function(){const e=Dr("dataProviders");return v(e)?{}:e}()}function Br(){const e=function(e){const{location:t}=e,{search:n}=t,r=yt(n).authorization;return Z(r)?null:r}(Xe),t=function(){const e=Ot("mboxDebugTools");return Z(e)?null:e}();return e||t}function Fr(e){return!F(e)&&2===e.length&&G(e[0])}function zr(e,t,n,r){M((e,o)=>{S(e)?(t.push(o),zr(e,t,n,r),t.pop()):F(t)?n[r(o)]=e:n[r(ne(".",t.concat(o)))]=e},e)}function $r(e){if(!E(e))return{};let t=null;try{t=e()}catch(e){return{}}return v(t)?{}:y(t)?function(e){const t=ue((e,t)=>(e.push(function(e){const t=e.indexOf("=");return-1===t?[]:[e.substr(0,t),e.substr(t+1)]}(t)),e),[],A(G,e));return ue((e,t)=>(e[xt(J(t[0]))]=xt(J(t[1])),e),{},A(Fr,t))}(t):R(t)&&G(t)?A((e,t)=>G(t),yt(t)):S(t)?function(e,t){const n={};return v(t)?zr(e,[],n,T):zr(e,[],n,t),n}(t):{}}function Jr(){const{userAgentData:e}=window.navigator;return e}function Zr(e){return g({},e,$r(Xe.targetPageParamsAll))}function Gr(e){const t=it(),n=t.globalMboxName,r=t.mboxParams,o=t.globalMboxParams;return n!==e?Zr(r||{}):g(Zr(r||{}),function(e){return g({},e,$r(Xe.targetPageParams))}(o||{}))}const Kr=["architecture","bitness","model","platformVersion","fullVersionList"];function Wr(){let{devicePixelRatio:e}=Xe;if(!v(e))return e;e=1;const{screen:t}=Xe,{systemXDPI:n,logicalXDPI:r}=t;return!v(n)&&!v(r)&&n>r&&(e=n/r),e}function Xr(e){if(!y(e)||0===e.length)return"";let t="";return e.forEach((n,r)=>{const{brand:o,version:i}=n,c=r<e.length-1?", ":"";t+='"'+o+'";v="'+i+'"'+c}),t}function Yr(e){const{mobile:t,platform:n,brands:r}=e;return{mobile:t,platform:n,browserUAWithMajorVersion:Xr(r)}}function Qr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return e.getHighEntropyValues(Kr).then(e=>{const{platformVersion:n,architecture:r,bitness:o,model:i,fullVersionList:c}=e;return g({},t,{model:i,platformVersion:n,browserUAWithFullVersion:Xr(c),architecture:r,bitness:o})})}catch(e){return xn(t)}}function eo(e){return Mr("clientHints",e),e}function to(e){return xn(e).then(eo)}function no(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Dr("clientHints");if(ye(n))return to(n);if(ve(e))return to({});const r=Yr(e);return to(t?Qr(e,r):r)}function ro(){const{screen:e}=Xe,{orientation:t,width:n,height:r}=e;if(v(t))return n>r?"landscape":"portrait";if(v(t.type))return null;const o=le("-",t.type);if(F(o))return null;const i=o[0];return v(i)?null:i}function oo(){return function(){const e=We.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(v(t))return null;const n=t.getExtension("WEBGL_debug_renderer_info");if(v(n))return null;const r=t.getParameter(n.UNMASKED_RENDERER_WEBGL);return v(r)?null:r}()}function io(e){return-1!==e.indexOf("profile.")}function co(e){return io(e)||function(e){return"mbox3rdPartyId"===e}(e)||function(e){return"at_property"===e}(e)||function(e){return"orderId"===e}(e)||function(e){return"orderTotal"===e}(e)||function(e){return"productPurchasedId"===e}(e)||function(e){return"productId"===e}(e)||function(e){return"categoryId"===e}(e)}function so(e){return e.substring("profile.".length)}function uo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ue((e,t,n)=>(co(n)||(e[n]=v(t)?"":t),e),{},e)}function ao(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ue((e,n,r)=>{const o=t?so(r):r;return t&&!io(r)||Z(o)||(e[o]=v(n)?"":n),e},{},e)}function fo(e){let{url:t,headers:n,body:r,timeout:o,async:i}=e;return bn((e,c)=>{let s=new window.XMLHttpRequest;s=function(e,t,n){return e.onload=()=>{const r=1223===e.status?204:e.status;if(r<100||r>599)return void n(new Error("Network request failed"));let o;try{const t=Oe();o=JSON.parse(e.responseText),o.parsingTime=Oe()-t,o.responseSize=new Blob([e.responseText]).size}catch(e){return void n(new Error("Malformed response JSON"))}const i=e.getAllResponseHeaders();t({status:r,headers:i,response:o})},e}(s,e,c),s=function(e,t){return e.onerror=()=>{t(new Error("Network request failed"))},e}(s,c),s.open("POST",t,i),s.withCredentials=!0,s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return M((t,n)=>{y(t)&&M(t=>{e.setRequestHeader(n,t)},t)},t),e}(s,n),i&&(s=function(e,t,n){return e.timeout=t,e.ontimeout=()=>{n(new Error("Request timed out"))},e}(s,o,c)),s.send(JSON.stringify(r))}).then(e=>{const{response:t}=e,{status:n,message:r}=t;if(!v(n)&&!v(r))throw new Error(r);return t})}function lo(e,t){return K(t)?t<0?e.timeout:t:e.timeout}function po(e){const t=e.serverDomain;if(!e.overrideMboxEdgeServer)return t;const n=function(){if(!it().overrideMboxEdgeServer)return"";const e=Ot("mboxEdgeCluster");return Z(e)?"":e}();return Z(n)?t:"mboxedge"+n+".tt.omtrdc.net"}function ho(e){return e.scheme+"//"+po(e)+e.endpoint+"?"+bt({client:e.clientCode,sessionId:Pn(),version:e.version})}function mo(e,t,n){const r=it(),o=ho(r),i={"Content-Type":["text/plain"]},c=lo(r,t),s={url:o,headers:i,body:e,timeout:c,async:!0};return _e.timeStart(e.requestId),fo(s).then(t=>{const r={execution:_e.timeEnd(e.requestId),parsing:t.parsingTime};delete t.parsingTime;const i=function(e,t){if(!performance)return null;const n=performance.getEntriesByType("resource").find(t=>t.name.endsWith(e));if(!n)return null;const r={};return n.domainLookupEnd&&n.domainLookupStart&&(r.dns=n.domainLookupEnd-n.domainLookupStart),n.secureConnectionStart&&n.connectEnd&&(r.tls=n.connectEnd-n.secureConnectionStart),n.responseStart&&(r.timeToFirstByte=n.responseStart-n.requestStart),n.responseEnd&&n.responseStart&&(r.download=n.responseEnd-n.responseStart),n.encodedBodySize?r.responseSize=n.encodedBodySize:t.responseSize&&(r.responseSize=t.responseSize,delete t.responseSize),r}(o,t);return i&&(r.request=i),t.telemetryServerToken&&(r.telemetryServerToken=t.telemetryServerToken),window.__target_telemetry.addDeliveryRequestEntry(e,r,t,n),g(t,{decisioningMethod:he})})}const go=e=>!F(e);let vo;function yo(e){if(e.MCOPTOUT)throw new Error("Disabled due to optout");return e}function bo(){const e=function(){const e=_r(),t=it();return Nr(e,t.visitorApiTimeout,t.optoutEnabled)}(),t=Hr(Xe);return Sn([e.then(yo),t])}function xo(){return[Or(_r(),it().optoutEnabled),Ur()]}function wo(){const{screen:e}=Xe;return{width:e.width,height:e.height,orientation:ro(),colorDepth:e.colorDepth,pixelRatio:Wr()}}function So(){const{documentElement:e}=We;return{width:e.clientWidth,height:e.clientHeight}}function Eo(e){const{location:t}=Xe;return e.deviceDetectionEnabled?{host:t.hostname,webGLRenderer:oo()}:{host:t.hostname}}function To(){const{location:e}=Xe;return{url:e.href,referringUrl:We.referrer}}function Co(e){const{id:t,integrationCode:n,authenticatedState:r,type:o,primary:i}=e,c={};return G(t)&&(c.id=t),G(n)&&(c.integrationCode=n),G(r)&&(c.authenticatedState=r),G(o)&&(c.type=o),i&&(c.primary=i),c}function ko(e,t,n,r,o){const i={};G(t)&&(i.tntId=t),G(n)&&(i.thirdPartyId=n),G(e.thirdPartyId)&&(i.thirdPartyId=e.thirdPartyId);const c=r.MCMID;return G(c)&&(i.marketingCloudVisitorId=c),G(e.marketingCloudVisitorId)&&(i.marketingCloudVisitorId=e.marketingCloudVisitorId),F(e.customerIds)?(F(o)||(i.customerIds=function(e){return oe(Co,e)}(o)),i):(i.customerIds=e.customerIds,i)}function Io(e,t){const n={},r=function(e,t){if(!v(e))return e;const n={};if(F(t))return n;const r=t.MCAAMLH,o=parseInt(r,10);isNaN(o)||(n.locationHint=o);const i=t.MCAAMB;return G(i)&&(n.blob=i),n}(e.audienceManager,t);return F(r)||(n.audienceManager=r),F(e.analytics)||(n.analytics=e.analytics),F(e.platform)||(n.platform=e.platform),n}function No(e){return v(e)?function(){const e=Ot("at_preview_mode");if(Z(e))return{};try{return JSON.parse(e)}catch(e){return{}}}():e}function Oo(e){return v(e)?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ot;const t=e("at_qa_mode");if(Z(t))return{};try{return JSON.parse(t)}catch(e){return{}}}():e}function _o(e){const t={},n=function(e){return e.orderId}(e);v(n)||(t.id=n);const r=function(e){return e.orderTotal}(e),o=parseFloat(r);isNaN(o)||(t.total=o);const i=function(e){const t=oe(J,le(",",e.productPurchasedId));return A(G,t)}(e);return F(i)||(t.purchasedProductIds=i),t}function Ao(e,t){const n={},r=g({},uo(t),uo(e.parameters||{})),o=g({},ao(t),ao(e.profileParameters||{},!1)),i=g({},_o(t),e.order||{}),c=g({},function(e){const t={},n=function(e){return e.productId}(e);v(n)||(t.id=n);const r=function(e){return e.categoryId}(e);return v(r)||(t.categoryId=r),t}(t),e.product||{});return F(r)||(n.parameters=r),F(o)||(n.profileParameters=o),F(i)||(n.order=i),F(c)||(n.product=c),n}function Po(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=it(),o=r.globalMboxName,{index:i,name:c,address:s}=e,u=g({},c===o?t:n,Gr(c)),a=Ao(e,u);return v(i)||(a.index=i),G(c)&&(a.name=c),F(s)||(a.address=s),a}function qo(e,t,n){const{prefetch:r={}}=e,o={};if(F(r))return o;const{mboxes:i}=r;v(i)||!y(i)||F(i)||(o.mboxes=oe(e=>Po(e,t,n),i));const{views:c}=r;return v(c)||!y(c)||F(c)||(o.views=oe(e=>function(e,t){const{name:n,address:r}=e,o=Ao(e,t);return G(n)&&(o.name=n),F(r)||(o.address=r),o}(e,t),c)),o}function Mo(e,t){if(kn()&&!Cn(Xe,"ANALYTICS"))return null;const n=it(),r=Ar(e),o=Pr("trackingServer"),i=Pr("trackingServerSecure"),{experienceCloud:c={}}=t,{analytics:s={}}=c,{logging:u,supplementalDataId:a,trackingServer:f,trackingServerSecure:l}=s,d={};return v(u)?d.logging=n.analyticsLogging:d.logging=u,v(a)||(d.supplementalDataId=a),G(r)&&(d.supplementalDataId=r),v(f)||(d.trackingServer=f),G(o)&&(d.trackingServer=o),v(l)||(d.trackingServerSecure=l),G(i)&&(d.trackingServerSecure=i),F(d)?null:d}function Do(e,t,n){const r=function(e){const t=it().globalMboxName;return g({},e,Gr(t))}(n),o=qn(),i=r.mbox3rdPartyId;const c=kr(_r()),s=ko(e.id||{},o,i,t,c),u=function(e,t){if(!v(e)&&G(e.token))return e;const n={},r=t.at_property;return G(r)&&(n.token=r),n}(e.property,r),a=Io(e.experienceCloud||{},t),f=function(e){if(!v(e)&&G(e.authorizationToken))return e;const t={},n=Br();return G(n)&&(t.authorizationToken=n),t}(e.trace),l=No(e.preview),d=Oo(e.qaMode),p=function(e,t,n){const{execute:r={}}=e,o={};if(F(r))return o;const{pageLoad:i}=r;v(i)||(o.pageLoad=Ao(i,t));const{mboxes:c}=r;if(!v(c)&&y(c)&&!F(c)){const e=A(go,oe(e=>Po(e,t,n),c));F(e)||(o.mboxes=e)}return o}(e,r,n),h=qo(e,r,n),{notifications:m}=e;let b={};return b.requestId=Re(),b.context=function(e){if(!v(e)&&"web"===e.channel)return e;const t=it(),n=Dr("clientHints")||{},r=e||{},{beacon:o}=r;return{userAgent:Xe.navigator.userAgent,clientHints:n,timeOffsetInMinutes:-(new Date).getTimezoneOffset(),channel:"web",screen:wo(),window:So(),browser:Eo(t),address:To(),geo:e&&e.geo,crossDomain:t.crossDomain,beacon:o}}(e.context),F(s)||(b.id=s),F(u)||(b.property=u),F(f)||(b.trace=f),F(a)||(b.experienceCloud=a),F(l)||(b.preview=l),F(d)||(b.qaMode=d),F(p)||(b.execute=p),F(h)||(b.prefetch=h),F(m)||(b.notifications=m),b=Xe.__target_telemetry.addTelemetryToDeliveryRequest(b),b}function Ro(e,t,n){const r=n[0],o=n[1];return Do(e,r,g({},o,t))}function Lo(e,t){const n=it();return Sn([bo(),no(Jr(),n.allowHighEntropyClientHints)]).then(n=>{let[r]=n;return Ro(e,t,r)})}function jo(e,t){return Wt("request",e),en({request:e}),mo(e,t,he).then(t=>(Wt("response",t),en({response:t}),{request:e,response:t}))}const Vo=e=>t=>t[e],Ho=e=>t=>!e(t),Uo=Ho(v),Bo=Ho(Z),Fo=e=>t=>A(e,t),zo=e=>e.status===$e,$o=e=>"actions"===e.type,Jo=e=>"redirect"===e.type,Zo=Fo(Uo),Go=Fo(Bo),Ko=Vo("options"),Wo=Vo(je),Xo=Vo("eventToken"),Yo=Vo("responseTokens"),Qo=e=>G(e.name),ei=e=>S(e)&&Qo(e),ti=e=>S(e)&&Qo(e)&&(e=>!v(e.index))(e),ni=e=>S(e)&&Qo(e),ri=Vo("data"),oi=q([ri,Uo]);function ii(e,t){return{status:Ze,type:e,data:t}}function ci(e,t){return{status:$e,type:e,data:t}}function si(e){return S(e)}function ui(e){return!!si(e)&&G(e.eventToken)}function ai(e){return!F(e)&&!Z(e.type)&&G(e.eventToken)}function fi(e){return!!ai(e)&&G(e.selector)}function li(e){const{id:t}=e;return S(t)&&G(t.tntId)}function di(e){const{response:t}=e;return li(t)&&function(e){const t=it();Vt({name:"PC",value:e,expires:t.deviceIdLifetime,domain:t.cookieDomain,secure:t.secureOnly})}(t.id.tntId),e}function pi(e){const{response:t}=e;if(li(t)){const{id:e}=t,{tntId:n}=e;Dn(n)}return Dn(null),e}function hi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{trace:t}=e;F(t)||Qt(t)}function mi(e){const{response:t}=e,{execute:n={},prefetch:r={},notifications:o={}}=t,{pageLoad:i={},mboxes:c=[]}=n,{mboxes:s=[],views:u=[]}=r;return hi(i),M(hi,c),M(hi,s),M(hi,u),M(hi,o),e}function gi(e){if(window.URL){const t=e.searchParams.get("adobe_mc_sdid");if(!R(t)||Z(t))return e.search;const n=Math.round(ie()/1e3);return e.searchParams.set("adobe_mc_sdid",t.replace(/\|TS=\d+/,"|TS="+n)),e.search}const t=e.queryKey,n=t.adobe_mc_sdid;if(!R(n))return t;if(Z(n))return t;const r=Math.round(ie()/1e3);return t.adobe_mc_sdid=n.replace(/\|TS=\d+/,"|TS="+r),t}function vi(e){return window.URL?e.search:e.queryKey}function yi(e,t,n){if(window.URL){const r=new URL(e,window.location);return r.search=n(r),Object.entries(t).forEach(e=>{let[t,n]=e;r.searchParams.set(t,n)}),r.href}const r=St(e),{protocol:o}=r,{host:i}=r,{path:c}=r,s=""===r.port?"":":"+r.port,u=Z(r.anchor)?"":"#"+r.anchor,a=n(r),f=bt(g({},a,t));return o+"://"+i+s+c+(Z(f)?"":"?"+f)+u}function bi(e,t){return yi(e,t,gi)}function xi(e){const t=e.method||"GET",n=e.url||function(e){throw new Error(e)}("URL is required"),r=e.headers||{},o=e.data||null,i=e.credentials||!1,c=e.timeout||3e3,s=!!v(e.async)||!0===e.async,u={};return u.method=t,u.url=n,u.headers=r,u.data=o,u.credentials=i,u.timeout=c,u.async=s,u}function wi(e,t){const n=xi(t),r=n.method,o=n.url,i=n.headers,c=n.data,s=n.credentials,u=n.timeout,a=n.async;return bn((t,n)=>{let f=new e.XMLHttpRequest;f=function(e,t,n){return e.onload=()=>{const r=1223===e.status?204:e.status;if(r<100||r>599)return void n(new Error("Network request failed"));const o=e.responseText,i=e.getAllResponseHeaders();t({status:r,headers:i,response:o})},e}(f,t,n),f=function(e,t){return e.onerror=()=>{t(new Error("Network request failed"))},e}(f,n),f.open(r,o,a),f=function(e,t){return!0===t&&(e.withCredentials=t),e}(f,s),f=function(e,t){return M((t,n)=>{M(t=>e.setRequestHeader(n,t),t)},t),e}(f,i),a&&(f=function(e,t,n){return e.timeout=t,e.ontimeout=()=>{n(new Error("Request timed out"))},e}(f,u,n)),f.send(c)})}function Si(e){return wi(Xe,e)}function Ei(e,t,n){const r={method:"GET"};return r.url=function(e,t){return yi(e,t,vi)}(e,t),r.timeout=n,r}function Ti(e){const{status:t}=e;if(!function(e){return e>=200&&e<300||304===e}(t))return null;const n=e.response;if(Z(n))return null;const r={type:"html"};return r.content=n,r}const Ci=/CLKTRK#(\S+)/,ki=/CLKTRK#(\S+)\s/;function Ii(e){const t=e[je],n=function(e){const t=e[Ve];if(Z(t))return"";const n=Ci.exec(t);return F(n)||2!==n.length?"":n[1]}(e);if(Z(n)||Z(t))return e;const r=e[Ve];return e[Ve]=r.replace(ki,""),e[je]=function(e,t){const n=document.createElement("div");n.innerHTML=t;const r=n.firstElementChild;return v(r)?t:(r.id=e,r.outerHTML)}(n,t),e}const Ni=e=>!v(e);function Oi(e){const{selector:t}=e;return!v(t)}function _i(e){const t=e[Le];if(Z(t))return null;switch(t){case"setHtml":return function(e){if(!Oi(e))return null;const t=Ii(e);return R(t[je])?t:(Wt(Fe,t),null)}(e);case"setText":return function(e){if(!Oi(e))return null;const t=Ii(e);return R(t[je])?t:(Wt(Fe,t),null)}(e);case"appendHtml":return function(e){if(!Oi(e))return null;const t=Ii(e);return R(t[je])?t:(Wt(Fe,t),null)}(e);case"prependHtml":return function(e){if(!Oi(e))return null;const t=Ii(e);return R(t[je])?t:(Wt(Fe,t),null)}(e);case"replaceHtml":return function(e){if(!Oi(e))return null;const t=Ii(e);return R(t[je])?t:(Wt(Fe,t),null)}(e);case"insertBefore":return function(e){if(!Oi(e))return null;const t=Ii(e);return R(t[je])?t:(Wt(Fe,t),null)}(e);case"insertAfter":return function(e){if(!Oi(e))return null;const t=Ii(e);return R(t[je])?t:(Wt(Fe,t),null)}(e);case"customCode":return function(e){return Oi(e)?R(e[je])?e:(Wt(Fe,e),null):null}(e);case"setAttribute":return function(e){return Oi(e)?S(e[je])?e:(Wt("Action has no attributes",e),null):null}(e);case"setImageSource":return function(e){return Oi(e)?R(e[je])?e:(Wt("Action has no image url",e),null):null}(e);case"setStyle":return function(e){return Oi(e)?S(e[je])?e:(Wt("Action has no CSS properties",e),null):null}(e);case"resize":return function(e){return Oi(e)?S(e[je])?e:(Wt("Action has no height or width",e),null):null}(e);case"move":return function(e){return Oi(e)?S(e[je])?e:(Wt("Action has no left, top or position",e),null):null}(e);case"remove":return function(e){return Oi(e)?e:null}(e);case"rearrange":return function(e){return Oi(e)?S(e[je])?e:(Wt("Action has no from or to",e),null):null}(e);case"redirect":return function(e){const{content:t}=e;return Z(t)?(Wt("Action has no url",e),null):(e.content=bi(t,{}),e)}(e);default:return null}}function Ai(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t}=e;return y(t)?F(t)?[]:Zo(oe(Yo,t)):[]}function Pi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{execute:t={}}=e,{pageLoad:n={},mboxes:r=[]}=t,o=Ko(n)||[],i=P(Zo(oe(Ko,r))),c=P([o,i]),s=P(oe(Wo,A($o,c))),u=A(Jo,c),a=A(Jo,s),f=u.concat(a),l={};if(F(f))return l;const d=f[0],p=d.content;return Z(p)||(l.url=p),l}function qi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{analytics:t}=e;return F(t)?[]:[t]}function Mi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{execute:t={},prefetch:n={}}=e,{pageLoad:r={},mboxes:o=[]}=t,{mboxes:i=[],views:c=[],metrics:s=[]}=n,u=qi(r),a=P(oe(qi,o)),f=P(oe(qi,i)),l=P(oe(qi,c)),d=P(oe(qi,s));return P([u,a,f,l,d])}function Di(e,t){e.parameters=t.parameters,e.profileParameters=t.profileParameters,e.order=t.order,e.product=t.product}function Ri(e,t){const n=t[0],r=t[1],o=!F(n),i=!F(r);return o||i?(o&&(e.options=n),i&&(e.metrics=r),e):e}function Li(e){const{type:t}=e;switch(t){case"redirect":return xn(function(e){const t=e.content;if(Z(t))return Wt("Action has no url",e),null;const n=g({},e);return n.content=bi(t,{}),n}(e));case"dynamic":return function(e){const{content:t}=e;return Si(Ei(t,{},it().timeout)).then(Ti)['catch'](()=>null)}(e);case"actions":return xn(function(e){const t=e[je];if(!y(t))return null;if(F(t))return null;const n=A(Ni,oe(_i,t));if(F(n))return null;const r=g({},e);return r.content=n,r}(e));default:return xn(e)}}function ji(e,t){if(!y(e))return xn([]);if(F(e))return xn([]);const n=A(t,e);if(F(n))return xn([]);return Sn(oe(e=>Li(e),n)).then(Zo)}function Vi(e,t){return y(e)?F(e)?xn([]):xn(A(t,e)):xn([])}function Hi(e){const{name:t,analytics:n,options:r,metrics:o}=e,i={name:t,analytics:n};return Sn([ji(r,si),Vi(o,ai)]).then(e=>Ri(i,e))}function Ui(e,t){const{index:n,name:r,state:o,analytics:i,options:c,metrics:s}=t,u=function(e,t,n){const{prefetch:r={}}=e,{mboxes:o=[]}=r;return F(o)?null:(i=A(e=>function(e,t,n){return e.index===t&&e.name===n}(e,t,n),o))&&i.length?i[0]:void 0;var i}(e,n,r),a={name:r,state:o,analytics:i};return v(u)||Di(a,u),Sn([ji(c,ui),Vi(s,ai)]).then(e=>Ri(a,e))}function Bi(e,t){const{name:n,state:r,analytics:o,options:i,metrics:c}=t,s=function(e){const{prefetch:t={}}=e,{views:n=[]}=t;return F(n)?null:n[0]}(e),u={name:n.toLowerCase(),state:r,analytics:o};return v(s)||Di(u,s),Sn([ji(i,ui),Vi(c,fi)]).then(e=>Ri(u,e))}function Fi(e){if(v(e)||Z(e.id))return xn(null);const{id:t}=e;return xn({id:t})}function zi(e){const t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],c=e[5],s=e[6],u={},a={};S(t)&&(a.pageLoad=t),F(n)||(a.mboxes=n);const f={};return F(r)||(f.mboxes=r),F(o)||(f.views=o),F(i)||(f.metrics=i),F(a)||(u.execute=a),F(f)||(u.prefetch=f),F(c)||(u.meta=c),F(s)||(u.notifications=s),u}function $i(e){const t=q([mi,di,pi])(e),n=function(e){const{response:t}=e,{execute:n}=t;if(!S(n))return xn(null);const{pageLoad:r}=n;if(!S(r))return xn(null);const{analytics:o,options:i,metrics:c}=r,s=F(o)?{}:{analytics:o};return Sn([ji(i,si),Vi(c,fi)]).then(e=>Ri(s,e))}(t),r=function(e){const{response:t}=e,{execute:n}=t;if(!S(n))return xn([]);const{mboxes:r}=n;return!y(r)||F(r)?xn([]):Sn(oe(Hi,A(ei,r))).then(Zo)}(t),o=function(e){const{request:t,response:n}=e,{prefetch:r}=n;if(!S(r))return xn([]);const{mboxes:o}=r;return!y(o)||F(o)?xn([]):Sn(oe(e=>Ui(t,e),A(ti,o))).then(Zo)}(t),i=function(e){const{request:t,response:n}=e,{prefetch:r}=n;if(!S(r))return xn([]);const{views:o}=r;return!y(o)||F(o)?xn([]):Sn(oe(e=>Bi(t,e),A(ni,o))).then(Zo)}(t),c=function(e){const{response:t}=e,{prefetch:n}=t;if(!S(n))return xn([]);const{metrics:r}=n;return Vi(r,fi)}(t),s=function(e){const{response:t}=e,{remoteMboxes:n,remoteViews:r,decisioningMethod:o}=t,i={};return S(n)&&(i.remoteMboxes=n),S(r)&&(i.remoteViews=r),R(o)&&(i.decisioningMethod=o),xn(i)}(t),u=function(e){const{response:t}=e,{notifications:n}=t;return y(n)?Sn(oe(Fi,n)).then(Zo):xn([])}(t);return Sn([n,r,o,i,c,s,u]).then(zi)}function Ji(e){return!F(Pi(e))}function Zi(e){const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{execute:t={},prefetch:n={}}=e,{pageLoad:r={},mboxes:o=[]}=t,{mboxes:i=[],views:c=[]}=n,s=Ai(r),u=P(oe(Ai,o)),a=P(oe(Ai,i)),f=P(oe(Ai,c));return P([s,u,a,f])}(e),n={};return F(t)||(n.responseTokens=t),n}function Gi(e){const t=e.aepSandboxId,n=e.aepSandboxName,r={};return F(t)||(r.sandboxId=t),F(n)||(r.sandboxName=n),r}function Ki(e){const t=it(),{mbox:n,timeout:r}=e,o=S(e.params)?e.params:{},i=function(e,t){const n=e.globalMboxName,{mbox:r}=t,o={},i={},c={};r===n?i.pageLoad={}:i.mboxes=[{index:0,name:r}],o.execute=i;const s=Mo(r,o);F(s)||(c.analytics=s);const u=Gi(e);return F(u)||(c.platform=u),F(c)||(o.experienceCloud=c),o}(t,e);return jn({mbox:n}),Lo(i,o).then(e=>jo(e,r)).then($i).then(e=>function(e,t){const n=Zi(t);n.mbox=e;const r=Mi(t);return F(r)||(n.analyticsDetails=r),Wt("request succeeded",t),Vn(n,Ji(t)),xn(t)}(n,e))['catch'](e=>function(e,t){return Kt("request failed",t),Hn({mbox:e,error:t}),wn(t)}(n,e))}function Wi(e,t){const n=e.globalMboxName,{consumerId:r=n,request:o,page:i=!0}=t,c=Mo(r,o);o.impressionId=o.impressionId||function(e){return!e&&vo||(vo=Re()),vo}(i);const s=o.experienceCloud||{};F(c)||(s.analytics=c);const u=Gi(e);return F(u)||(s.platform=u),F(s)||(o.experienceCloud=s),o}function Xi(e){const t=it(),{timeout:n}=e,r=Wi(t,e);return jn({}),Lo(r,{}).then(e=>jo(e,n)).then($i).then(e=>function(e){const t=Zi(e),n=Mi(e);return F(n)||(t.analyticsDetails=n),Wt("request succeeded",e),Vn(t,Ji(e)),xn(e)}(e))['catch'](e=>function(e){return Kt("request failed",e),Hn({error:e}),wn(e)}(e))}function Yi(e,t){return Yn(t).addClass(e)}function Qi(e,t){return Yn(t).css(e)}function ec(e,t){return Yn(t).attr(e)}function tc(e,t,n){return Yn(n).attr(e,t)}function nc(e,t){return Yn(t).removeAttr(e)}function rc(e,t,n){const r=ec(e,n);G(r)&&(nc(e,n),tc(t,r,n))}function oc(e){return new Error("Could not find: "+e)}function ic(e,t,n){return bn((r,o)=>{const i=vn(()=>{const t=n(e);F(t)||(i.disconnect(),r(t))});de(()=>{i.disconnect(),o(oc(e))},t),i.observe(We,{childList:!0,subtree:!0})})}function cc(){return"visible"===We.visibilityState}function sc(e,t,n){return bn((r,o)=>{!function t(){const o=n(e);F(o)?Xe.requestAnimationFrame(t):r(o)}(),de(()=>{o(oc(e))},t)})}function uc(e,t,n){return bn((r,o)=>{!function t(){const o=n(e);F(o)?de(t,100):r(o)}(),de(()=>{o(oc(e))},t)})}function ac(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it().selectorsPollingTimeout,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yn;const r=n(e);return F(r)?gn()?ic(e,t,n):cc()?sc(e,t,n):uc(e,t,n):xn(r)}function fc(e){return ec("data-at-src",e)}function lc(e){return G(ec("data-at-src",e))}function dc(e){return M(e=>rc(He,"data-at-src",e),H(nr("img",e))),e}function pc(e){return M(e=>rc("data-at-src",He,e),H(nr("img",e))),e}function hc(e){return Wt("Loading image",e),ec(He,tc(He,e,hn("<img/>")))}function mc(e){const t=A(lc,H(nr("img",e)));return F(t)||M(hc,oe(fc,t)),e}function gc(e){const t=ec(He,e);return G(t)?t:null}function vc(e,t){return Kt("Unexpected error",t),en({action:e,error:t}),e}function yc(e,t){const n=Yn(t[Ve]),r=function(e){return q([dc,mc,pc])(e)}(er(t[je])),o=function(e){return A(G,oe(gc,H(nr("script",e))))}(r);let i;try{i=xn(e(n,r))}catch(e){return wn(vc(t,e))}return F(o)?i.then(()=>t)['catch'](e=>vc(t,e)):i.then(()=>function(e){return ue((e,t)=>e.then(()=>(Wt("Script load",t),en({remoteScript:t}),Zn(t))),xn(),e)}(o)).then(()=>t)['catch'](e=>vc(t,e))}function bc(e){const t=g({},e),n=t[je];if(Z(n))return t;const r=Yn(t[Ve]);return o="head",Yn(r).is(o)?(t[Le]="appendHtml",t[je]=function(e){return ne("",ue((e,t)=>(e.push(gr(er(t))),e),[],H(nr("script,link,style",er(e)))))}(n),t):t;var o}function xc(e){return e.length>2&&-1!==e.lastIndexOf("px")?e:e+"px"}function wc(e,t){return n=gr(t),Yn(e).html(n);var n}function Sc(e){const t=Yn(e[Ve]),n=e[je];return Wt("Rendering action",e),en({action:e}),function(e,t){Yn(t).text(e)}(n,t),xn(e)}function Ec(e,t){return mr(gr(t),e)}function Tc(e,t){return n=gr(t),Yn(e).prepend(n);var n}function Cc(e,t){const n=tr(e);return dr(hr(gr(t),e)),n}function kc(e,t){return Yn(hr(gr(t),e)).prev()}function Ic(e,t){return Yn(pr(gr(t),e)).next()}function Nc(e,t){return tr(hr(gr(t),e))}function Oc(e){const t=Yn(e[Ve]),n=e[je],r=n.priority;return Wt("Rendering action",e),en({action:e}),Z(r)?Qi(n,t):function(e,t,n){M(e=>{M((t,r)=>e.style.setProperty(r,t,n),t)},H(e))}(t,n,r),xn(e)}function _c(e){const t=Yn(e[Ve]),n=e[je],r=Number(n.from),o=Number(n.to);if(isNaN(r)&&isNaN(o))return Wt('Rearrange has incorrect "from" and "to" indexes',e),wn(e);const i=H(Yn(t).children());const c=i[r],s=i[o];return Qn(c)&&Qn(s)?(Wt("Rendering action",e),en({action:e}),r<o?pr(c,s):hr(c,s),xn(e)):(Wt("Rearrange elements are missing",e),wn(e))}function Ac(e){const t=bc(e);switch(t[Le]){case"setHtml":return function(e){return Wt("Rendering action",e),yc(wc,e)}(t);case"setText":return Sc(t);case"appendHtml":return function(e){return Wt("Rendering action",e),yc(Ec,e)}(t);case"prependHtml":return function(e){return Wt("Rendering action",e),yc(Tc,e)}(t);case"replaceHtml":return function(e){return Wt("Rendering action",e),yc(Cc,e)}(t);case"insertBefore":return function(e){return Wt("Rendering action",e),yc(kc,e)}(t);case"insertAfter":return function(e){return Wt("Rendering action",e),yc(Ic,e)}(t);case"customCode":return function(e){return Wt("Rendering action",e),yc(Nc,e)}(t);case"setAttribute":return function(e){const t=e[je],n=Yn(e[Ve]);return Wt("Rendering action",e),en({action:e}),M((e,t)=>tc(t,e,n),t),xn(e)}(t);case"setImageSource":return function(e){const t=e[je],n=Yn(e[Ve]);return Wt("Rendering action",e),en({action:e}),nc(He,n),tc(He,hc(t),n),xn(e)}(t);case"setStyle":return Oc(t);case"resize":return function(e){const t=Yn(e[Ve]),n=e[je];return n.width=xc(n.width),n.height=xc(n.height),Wt("Rendering action",e),en({action:e}),Qi(n,t),xn(e)}(t);case"move":return function(e){const t=Yn(e[Ve]),n=e[je];return n.left=xc(n.left),n.top=xc(n.top),Wt("Rendering action",e),en({action:e}),Qi(n,t),xn(e)}(t);case"remove":return function(e){const t=Yn(e[Ve]);return Wt("Rendering action",e),en({action:e}),dr(t),xn(e)}(t);case"rearrange":return _c(t);default:return xn(t)}}function Pc(e){const t=e[Ve];return G(t)||Gn(t)}function qc(e){const t=e.cssSelector;Z(t)||dr("#at-"+L(t))}function Mc(e){if(!Pc(e))return void qc(e);const t=e[Ve];!function(e){return"trackClick"===e[Le]||"signalClick"===e[Le]}(e)?(Yi("at-element-marker",t),qc(e)):Yi("at-element-click-tracking",t)}function Dc(e){return function(e){const{key:t}=e;if(Z(t))return!0;if("customCode"===e[Le])return e.page;const n=ec("at-action-key",e[Ve]);return n!==t||n===t&&!e.page}(e)?Ac(e).then(()=>(Wt("Action rendered successfully",e),en({action:e}),function(e){const{key:t}=e;if(Z(t))return;if(!Pc(e))return;tc("at-action-key",t,e[Ve])}(e),Mc(e),e))['catch'](t=>{Kt("Unexpected error",t),en({action:e,error:t}),Mc(e);const n=g({},e);return n[$e]=!0,n}):(Mc(e),e)}function Rc(e){const t=A(e=>!0===e[$e],e);return F(t)?xn():(function(e){M(Mc,e)}(t),wn(e))}function Lc(e){return function(e){return ac(e[Ve]).then(()=>e)['catch'](()=>{const t=g({},e);return t[$e]=!0,t})}(e).then(Dc)}function jc(e,t,n){return Yn(n).on(e,t)}function Vc(e){const t=e.name,n=Dr("views")||{};n[t]=e,Mr("views",n)}function Hc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{page:n=!0}=t,r=Dr("views")||{},o=r[e];if(v(o))return o;const{impressionId:i}=t;return v(i)?o:g({page:n,impressionId:i},o)}function Uc(e){const t=Mo(e,{}),n={context:{beacon:!0}};if(!F(t)){const e={};e.analytics=t,n.experienceCloud=e}return n}function Bc(e,t,n){const r=function(e,t){return Ro(e,t,xo())}(Uc(e),t);return r.notifications=n,r}function Fc(e,t,n){const r=Re(),o=ie(),{parameters:i,profileParameters:c,order:s,product:u}=e,a={id:r,type:t,timestamp:o,parameters:i,profileParameters:c,order:s,product:u};return F(n)||(a.tokens=n),a}function zc(e){return new Promise((t,n)=>{const r=ho(it());if(function(e,t){return"navigator"in(n=Xe)&&"sendBeacon"in n.navigator?function(e,t,n){return e.navigator.sendBeacon(t,n)}(Xe,e,t):function(e,t,n){const r={"Content-Type":["text/plain"]},o={method:"POST"};o.url=t,o.data=n,o.credentials=!0,o.async=!1,o.headers=r;try{e(o)}catch(e){return!1}return!0}(Si,e,t);var n}(r,JSON.stringify(e)))return Wt("Beacon data sent",r,e),void t();Kt("Beacon data sent failed",r,e),n()})}function $c(e,t,n){const r=Gr(it().globalMboxName),o=Fc(Ao({},r),t,[n]),i=Bc(Re(),r,[o]);Wt("Event handler notification",e,o),en({source:e,event:t,request:i}),zc(i)}function Jc(e,t,n){const r=Gr(e),o=Fc(Ao({},r),t,[n]);o.mbox={name:e};const i=Bc(Re(),r,[o]);Wt("Mbox event handler notification",e,o),en({mbox:e,event:t,request:i}),zc(i)}function Zc(e){const t=it().globalMboxName,n=[],r=Ke;if(M(e=>{const{mbox:t,data:o}=e;if(v(o))return;const{eventTokens:i=[]}=o;F(i)||n.push(function(e,t,n){const{name:r,state:o}=e,i=Fc(e,t,n);return i.mbox={name:r,state:o},i}(t,r,i))},e),F(n))return;const o=Bc(t,{},n);Wt("Mboxes rendered notification",n),en({source:"prefetchMboxes",event:"rendered",request:o}),zc(o)}function Gc(e,t,n){const r=Gr(it().globalMboxName),o=Fc(Ao({},r),t,[n]);o.view={name:e};const i=Bc(Re(),r,[o]);Wt("View event handler notification",e,o),en({view:e,event:t,request:i}),zc(i)}function Kc(e){const{viewName:t,impressionId:n}=e,r=Gr(it().globalMboxName),o=Fc(Ao({},r),Ke,[]);o.view={name:t},Wt("View triggered notification",t),function(e,t,n){return Lo(Uc(e),t).then(e=>(e.notifications=n,e))}(t,r,[o]).then(e=>{e.impressionId=n,en({view:t,event:"triggered",request:e}),zc(e)})}function Wc(e){if(v(e))return;const{view:t,data:n={}}=e,{eventTokens:r=[]}=n,{name:o,impressionId:i}=t,c=Hc(o);if(v(c))return;const s=Bc(o,{},[function(e,t,n){const{name:r,state:o}=e,i=Fc(e,t,n);return i.view={name:r,state:o},i}(c,Ke,r)]);s.impressionId=i,Wt("View rendered notification",o,r),en({view:o,event:"rendered",request:s}),zc(s)}const Xc={},Yc=Vo("metrics"),Qc=()=>ii("metric"),es=e=>ci("metric",e);function ts(e,t,n){if(!v(Xc[e]))return;const r=k(Xc);F(r)||M(e=>{M(r=>{const o=Xc[e][r];!function(e,t,n){Yn(n).off(e,t)}(t,o,n)},k(Xc[e])),delete Xc[e]},r)}function ns(e,t,n,r){const{type:o,selector:i,eventToken:c}=n,s=L(o+":"+i+":"+c),u=()=>r(e,o,c);!function(e,t){"click"===e&&Yi("at-element-click-tracking",t)}(o,i),t?function(e,t){return!v(Xc[e])&&!v(Xc[e][t])}(e,s)||(ts(e,o,i),function(e,t,n){Xc[e]=Xc[e]||{},Xc[e][t]=n}(e,s,u),jc(o,u,i)):jc(o,u,i)}function rs(e,t,n,r){return function(e){return ac(e[Ve]).then(()=>{en({metric:e});return g({found:!0},e)})['catch'](()=>(Kt("metric element not found",e),en({metric:e,message:"metric element not found"}),e))}(n).then(n=>{n.found&&ns(e,t,n,r)})}function os(e,t,n,r){return Sn(oe(n=>rs(e,t,n,r),n)).then(Qc)['catch'](es)}function is(e){const{name:t}=e;return os(t,!1,Yc(e),Jc)}function cs(e){const{name:t}=e;return os(t,!0,Yc(e),Gc)}function ss(e){return os("pageLoadMetrics",!1,Yc(e),$c)}function us(e){return os("prefetchMetrics",!1,Yc(e),$c)}const as=Vo(je),fs=Vo("cssSelector"),ls=e=>Ho(zo)(e)&&oi(e);function ds(e){const t=oe(fs,e);var n;n=Go(t),yr(it(),n)}function ps(e){const t=oe(fs,e);var n;n=Zo(t),br(it(),n)}function hs(e){const t=A($o,Ko(e));return P(oe(as,t))}function ms(e){return S(e)&&"setJson"!==e.type}function gs(e,t,n){const{eventToken:r,responseTokens:o,content:i}=e;return function(e){return Sn(oe(Lc,e)).then(Rc)}(function(e,t,n){return oe(e=>g({key:t,page:n},e),A(ms,e))}(i,t,n)).then(()=>ii("render",{eventToken:r,responseTokens:o}))['catch'](e=>((e,t)=>{const n=y(e)?{errors:e}:{errors:[e]};return ci("render",g(n,t))})(e,{eventToken:r,responseTokens:o}))}function vs(e){return S(e)&&"json"!==e.type}function ys(e,t){return oe(e,A(vs,Ko(t)))}function bs(e,t,n){const r={status:Ze,[e]:t},o=oe(ri,A(zo,n)),i={};return F(o)||(r.status=$e,i.errors=o),F(i)||(r.data=i),r}function xs(e,t,n){return Sn(ys(e=>gs(e,!0),e)).then(t).then(t=>(n(e),t))}function ws(e,t,n,r){const{name:o}=t;return Sn(ys(e=>gs(e,o,n),t)).then(n=>function(e,t,n){const r={status:Ze,[e]:t},o=oe(ri,A(zo,n)),i=oe(ri,A(ls,n)),c=Zo(oe(Xo,i)),s=Zo(oe(Yo,i)),u={};return F(o)||(r.status=$e,u.errors=o),F(c)||(u.eventTokens=c),F(s)||(u.responseTokens=s),F(u)||(r.data=u),r}(e,t,n)).then(e=>(r(t),e))}function Ss(e){return xs(e,t=>bs("mbox",e,t),is)}function Es(e){return ws("mbox",e,!0,is)}function Ts(e){ds(hs(e))}function Cs(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return;const{execute:n={}}=e,{pageLoad:r={}}=n;F(r)||Ts(r)}function ks(e){ds(hs(e)),Qn("#at-views")&&dr("#at-views")}var Is={exports:{}};function Ns(){}Ns.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,c=r.length;i<c;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},Is.exports=Ns,Is.exports.TinyEmitter=Ns;const Os=new(0,Is.exports);function _s(e,t){!function(e,t,n){e.emit(t,n)}(Os,e,t)}function As(e,t){!function(e,t,n){e.on(t,n)}(Os,e,t)}function Ps(e){return{type:"redirect",content:e.url}}function qs(e){const t={};if(F(e))return t;const n=[],r=[],o=[];M(e=>{switch(e.action){case"setContent":G((t=e).selector)&&G(t.cssSelector)?o.push(function(e){const t={type:"setHtml"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e)):n.push({type:"html",content:e.content});break;case"setJson":F(e.content)||M(e=>n.push({type:"json",content:e}),e.content);break;case"setText":o.push(function(e){const t={type:"setText"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"appendContent":o.push(function(e){const t={type:"appendHtml"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"prependContent":o.push(function(e){const t={type:"prependHtml"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"replaceContent":o.push(function(e){const t={type:"replaceHtml"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"insertBefore":o.push(function(e){const t={type:"insertBefore"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"insertAfter":o.push(function(e){const t={type:"insertAfter"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"customCode":o.push(function(e){const t={type:"customCode"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"setAttribute":o.push(function(e){const t={};if(t.selector=e.selector,t.cssSelector=e.cssSelector,e.attribute===He)return t.type="setImageSource",t.content=e.value,t;t.type="setAttribute";const n={};return n[e.attribute]=e.value,t.content=n,t}(e));break;case"setStyle":o.push(function(e){const{style:t={}}=e,n={};return n.selector=e.selector,n.cssSelector=e.cssSelector,v(t.left)||v(t.top)?v(t.width)||v(t.height)?(n.type="setStyle",n.content=t,n):(n.type="resize",n.content=t,n):(n.type="move",n.content=t,n)}(e));break;case"remove":o.push(function(e){const t={type:"remove"};return t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"rearrange":o.push(function(e){const t={};t.from=e.from,t.to=e.to;const n={type:"rearrange"};return n.selector=e.selector,n.cssSelector=e.cssSelector,n.content=t,n}(e));break;case"redirect":n.push(Ps(e));break;case"trackClick":r.push({type:"click",selector:e.selector,eventToken:e.clickTrackId})}var t},e);const i={};!F(o)&&n.push({type:"actions",content:o});!F(n)&&(i.options=n);if(!F(r)&&(i.metrics=r),F(i))return t;const c={};return c.pageLoad=i,t.execute=c,t}function Ms(e,t,n){return n?qs(t):function(e,t){const n={};if(F(t))return n;const r=[],o=[];M(e=>{switch(e.action){case"setContent":r.push({type:"html",content:e.content});break;case"setJson":F(e.content)||M(e=>r.push({type:"json",content:e}),e.content);break;case"redirect":r.push(Ps(e));break;case"signalClick":o.push({type:"click",eventToken:e.clickTrackId})}},t);const i={name:e};if(!F(r)&&(i.options=r),!F(o)&&(i.metrics=o),F(i))return n;const c={},s=[i];return c.mboxes=s,n.execute=c,n}(e,t)}const Ds=e=>!F(A(zo,e));function Rs(e){const{status:t,data:n}=e,r={status:t,pageLoad:!0};return v(n)||(r.data=n),r}function Ls(e){const{status:t,mbox:n,data:r}=e,{name:o}=n,i={status:t,mbox:o};return v(r)||(i.data=r),i}function js(e){const{status:t,view:n,data:r}=e,{name:o}=n,i={status:t,view:o};return v(r)||(i.data=r),i}function Vs(e){const{status:t,data:n}=e,r={status:t,prefetchMetrics:!0};return v(n)||(r.data=n),r}function Hs(e){if(v(e))return[null];const t=oe(Rs,[e]);return Ds(t)&&Kt("Page load rendering failed",e),t}function Us(e){if(v(e))return[null];const t=oe(Ls,e);return Ds(t)&&Kt("Mboxes rendering failed",e),t}function Bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zc;if(v(e))return[null];const n=oe(Ls,e);return Ds(n)&&Kt("Mboxes rendering failed",e),t(e),n}function Fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wc;if(v(e))return[null];const n=oe(js,[e]);Ds(n)&&Kt("View rendering failed",e);const{view:r}=e;return r.page?(t(e),n):n}function zs(e){if(v(e))return[null];const t=oe(Vs,[e]);return Ds(t)&&Kt("Prefetch rendering failed",e),t}function $s(e){const t=P([Hs(e[0]),Us(e[1]),Bs(e[2]),zs(e[3])]),n=A(Uo,t),r=A(zo,n);return F(r)?xn(n):wn(r)}function Js(e){return wn(e)}function Zs(e,t){if(F(t))return;const{options:n}=t;F(n)||M(t=>{if("html"!==t.type)return;const{content:n}=t;t.type="actions",t.content=[{type:"setHtml",selector:e,content:n}]},n)}function Gs(e,t){const{metrics:n}=t;if(F(n))return;const{name:r}=t;M(t=>{t.name=r,t.selector=t.selector||e},n)}function Ks(e,t){const n=g({},t),{execute:r={},prefetch:o={}}=n,{pageLoad:i={},mboxes:c=[]}=r,{mboxes:s=[]}=o;return Zs(e,i),M(t=>Zs(e,t),c),M(t=>Gs(e,t),c),M(t=>Zs(e,t),s),M(t=>Gs(e,t),s),n}function Ws(e){const{prefetch:t={}}=e,{views:n=[]}=t;F(n)||function(e){M(Vc,e)}(n)}function Xs(e){const t=[],{execute:n={}}=e,{pageLoad:r={},mboxes:o=[]}=n;F(r)?t.push(xn(null)):t.push(function(e){return xs(e,t=>bs("pageLoad",e,t),ss)}(r)),F(o)?t.push(xn(null)):t.push(function(e){return Sn(oe(Ss,e))}(o));const{prefetch:i={}}=e,{mboxes:c=[],metrics:s=[]}=i;return F(c)?t.push(xn(null)):t.push(function(e){return Sn(oe(Es,e))}(c)),y(s)&&!F(s)?t.push(function(e){return Sn([us(e)]).then(bs)}(i)):t.push(xn(null)),wr(),Sn(t).then($s)['catch'](Js)}function Ys(e,t){de(()=>e.location.replace(t))}function Qs(e){return G(e)||Gn(e)?e:"head"}function eu(e){Yi("at-element-marker",e)}function tu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{prefetch:t={}}=e,{execute:n={}}=e,{pageLoad:r={}}=n,{mboxes:o=[]}=n,{pageLoad:i={}}=t,{views:c=[]}=t,{mboxes:s=[]}=t;return F(r)&&F(o)&&F(i)&&F(c)&&F(s)}function nu(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{selector:n,response:r}=e;if(tu(r))return Wt(ze),eu(n),wr(),zn({}),_s("no-offers-event"),xn();const o=Ks(n,r),i=Pi(o);if(!F(i)){const{url:e}=i;return Wt("Redirect action",i),$n({url:e}),_s("redirect-offer-event"),Ys(Xe,e),xn()}return Un({}),Ws(o),_s("cache-updated-event"),Cs(o,t),Xs(o).then(e=>{F(e)||Bn({execution:e})})['catch'](e=>Fn({error:e}))}const ru="[page-init]";function ou(e){Kt(ru,"View delivery error",e),_s("no-offers-event"),en({source:ru,error:e}),wr()}function iu(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={selector:"head",response:e};Wt(ru,"response",e),en({source:ru,response:e}),nu(n,t)['catch'](ou)}function cu(e){const t=function(e){return e.serverState}(e),{request:n,response:r}=t;Wt(ru,"Using server state"),en({source:ru,serverState:t});const o=function(e,t){const n=g({},t),{execute:r,prefetch:o}=n,i=e.pageLoadEnabled,c=e.viewsEnabled;return r&&(n.execute.mboxes=void 0),r&&!i&&(n.execute.pageLoad=void 0),o&&(n.prefetch.mboxes=void 0),o&&!c&&(n.prefetch.views=void 0),n}(e,r);Cs(o),function(e){const{prefetch:t={}}=e,{views:n=[]}=t;if(F(n))return;ps(P(oe(hs,n)))}(o),function(e){window.__target_telemetry.addServerStateEntry(e)}(n),$i({request:n,response:o}).then(e=>iu(e,!0))['catch'](ou)}function su(){if(!Bt())return Kt(ru,Ue),void en({source:ru,error:Ue});const e=it();if(function(e){const t=e.serverState;if(F(t))return!1;const{request:n,response:r}=t;return!F(n)&&!F(r)}(e))return void cu(e);const t=e.pageLoadEnabled,n=e.viewsEnabled;if(!t&&!n)return Wt(ru,"Page load disabled"),void en({source:ru,error:"Page load disabled"});xr();const r={};if(t){const e={pageLoad:{}};r.execute=e}if(n){const e={views:[{}]};r.prefetch=e}const o=e.timeout;Wt(ru,"request",r),en({source:ru,request:r});const i={request:r,timeout:o};kn()&&!In()?Nn().then(()=>{Xi(i).then(iu)['catch'](ou)})['catch'](ou):Xi(i).then(iu)['catch'](ou)}function uu(){const e={valid:!0};return e}function au(e){const t={valid:!1};return t[$e]=e,t}function fu(e){return Z(e)?au("mbox option is required"):e.length>250?au("mbox option is too long"):uu()}function lu(e){return{action:"redirect",url:e.content}}function du(e){const t=[];return M(e=>{const{type:n}=e;switch(n){case"setHtml":t.push(function(e){const t={action:"setContent"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"setText":t.push(function(e){const t={action:"setText"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"appendHtml":t.push(function(e){const t={action:"appendContent"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"prependHtml":t.push(function(e){const t={action:"prependContent"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"replaceHtml":t.push(function(e){const t={action:"replaceContent"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"insertBefore":t.push(function(e){const t={action:"insertBefore"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"insertAfter":t.push(function(e){const t={action:"insertAfter"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"customCode":t.push(function(e){const t={action:"customCode"};return t.content=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"setAttribute":t.push(function(e){const t=k(e.content)[0],n={action:"setAttribute"};return n.attribute=t,n.value=e.content[t],n.selector=e.selector,n.cssSelector=e.cssSelector,n}(e));break;case"setImageSource":t.push(function(e){const t={action:"setAttribute"};return t.attribute=He,t.value=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"setStyle":t.push(function(e){const t={action:"setStyle"};return t.style=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"resize":t.push(function(e){const t={action:"setStyle"};return t.style=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"move":t.push(function(e){const t={action:"setStyle"};return t.style=e.content,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"remove":t.push(function(e){const t={action:"remove"};return t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"rearrange":t.push(function(e){const t={action:"rearrange"};return t.from=e.content.from,t.to=e.content.to,t.selector=e.selector,t.cssSelector=e.cssSelector,t}(e));break;case"redirect":t.push(lu(e))}},e),t}function pu(e){if(F(e))return[];const t=[];return M(e=>{"click"===e.type&&(G(e.selector)?t.push({action:"trackClick",selector:e.selector,clickTrackId:e.eventToken}):t.push({action:"signalClick",clickTrackId:e.eventToken}))},e),t}function hu(e){if(F(e))return[];const t=[],n=[],r=[],{options:o=[],metrics:i=[]}=e;M(e=>{const{type:o}=e;switch(o){case"html":t.push(e.content);break;case"json":n.push(e.content);break;case"redirect":r.push(lu(e));break;case"actions":r.push.apply(r,du(e.content))}},o),F(t)||r.push({action:"setContent",content:t.join("")}),F(n)||r.push({action:"setJson",content:n});const c=pu(i);return F(c)||r.push.apply(r,c),r}const mu="[getOffer()]";function gu(e,t){const n=function(e){const{execute:t={}}=e,{pageLoad:n={}}=t,{mboxes:r=[]}=t,o=[];return o.push.apply(o,hu(n)),o.push.apply(o,P(oe(hu,r))),o}(t);e[Ze](n)}function vu(e){const t=function(e){if(!S(e))return au(Be);const t=fu(e.mbox);return t[Je]?E(e[Ze])?E(e[$e])?uu():au("error option is required"):au("success option is required"):t}(e),n=t[$e];if(!t[Je])return Kt(mu,n),void en({source:mu,options:e,error:n});if(!Bt())return de(e[$e]("warning",Ue)),Kt(mu,Ue),void en({source:mu,options:e,error:Ue});const r=t=>gu(e,t),o=t=>function(e,t){const n=t.status||"unknown";e[$e](n,t)}(e,t);Wt(mu,e),en({source:mu,options:e}),kn()&&!In()?Nn().then(()=>{Ki(e).then(r)['catch'](o)}):Ki(e).then(r)['catch'](o)}const yu="[getOffers()]";function bu(e){const t=function(e){if(!S(e))return au(Be);const{request:t}=e;if(!S(t))return au("request option is required");const{execute:n,prefetch:r}=t;return S(n)||S(r)?uu():au("execute or prefetch is required")}(e),n=t[$e];return t[Je]?Bt()?(Wt(yu,e),en({source:yu,options:e}),!kn()||In()?Xi(e):Nn().then(()=>Xi(e))):(Kt(yu,Ue),en({source:yu,options:e,error:Ue}),wn(new Error(Ue))):(Kt(yu,n),en({source:yu,options:e,error:n}),wn(t))}const xu="[applyOffer()]";function wu(e){const t=Qs(e.selector),n=L(t);_e.timeStart(n);const r=function(e){if(!S(e))return au(Be);const t=fu(e.mbox);if(!t[Je])return t;const n=e.offer;return y(n)?uu():au("offer option is required")}(e),o=r[$e];if(!r[Je])return Kt(xu,e,o),en({source:xu,options:e,error:o}),void eu(t);if(!Bt())return Kt(xu,Ue),en({source:xu,options:e,error:Ue}),void eu(t);e.selector=t,Wt(xu,e),en({source:xu,options:e}),function(e){const{mbox:t,selector:n,offer:r}=e,o=it(),i=t===o.globalMboxName;if(F(r))return Wt(ze),eu(n),wr(),void zn({mbox:t});const c=Ks(n,Ms(t,r,i)),s=Pi(c);if(!F(s)){const{url:e}=s;return Wt("Redirect action",s),$n({url:e}),void Ys(Xe,e)}Un({mbox:t}),Cs(c),Xs(c).then(e=>{F(e)||Bn({mbox:t,execution:e})})['catch'](e=>Fn({error:e}))}(e);const i=_e.timeEnd(n);_e.clearTiming(n),window.__target_telemetry.addRenderEntry(n,i)}function Su(e){const t=Qs(e.selector),n=L(t);_e.timeStart(n);const r=function(e){if(!S(e))return au(Be);const{response:t}=e;return S(t)?uu():au("response option is required")}(e),o=r[$e];return r[Je]?Bt()?(e.selector=t,Wt("[applyOffers()]",e),en({source:"[applyOffers()]",options:e}),nu(e).then(()=>{const e=_e.timeEnd(n);_e.clearTiming(n),window.__target_telemetry.addRenderEntry(n,e)})):(Kt("[applyOffers()]",Ue),en({source:"[applyOffers()]",options:e,error:Ue}),eu(t),wn(new Error(Ue))):(Kt("[applyOffers()]",e,o),en({source:"[applyOffers()]",options:e,error:o}),eu(t),wn(r))}function Eu(e){const t=it().globalMboxName,{consumerId:n=t,request:r}=e,o=function(e){if(!S(e))return au(Be);const{request:t}=e;if(!S(t))return au("request option is required");const{execute:n,prefetch:r,notifications:o}=t;return S(n)||S(r)?au("execute or prefetch is not allowed"):y(o)?uu():au("notifications are required")}(e),i=o[$e];if(!o[Je])return Kt("[sendNotifications()]",i),void en({source:"[sendNotifications()]",options:e,error:i});if(!Bt())return Kt("[sendNotifications()]",Ue),void en({source:"[sendNotifications()]",options:e,error:Ue});Wt("[sendNotifications()]",e),en({source:"[sendNotifications()]",options:e});const{notifications:c}=r,s=Bc(n,{},c);!kn()||In()?zc(s):Kt("[sendNotifications()]","Adobe Target is not opted in")}const Tu="[trackEvent()]";function Cu(e){if(kn()&&!In())return Kt("Track event request failed","Adobe Target is not opted in"),void e[$e]($e,"Adobe Target is not opted in");!function(e){const{mbox:t,type:n=Ke}=e,r=S(e.params)?e.params:{},o=g({},Gr(t),r),i=Fc(Ao({},o),n,[]);i.mbox={name:t},zc(Bc(t,o,[i])).then(()=>{Wt("Track event request succeeded",e),e[Ze]()})['catch'](()=>{Kt("Track event request failed",e),e[$e]("unknown","Track event request failed")})}(e)}function ku(e){const t=e[Ve],n=e[Le],r=H(Yn(t)),o=()=>function(e){return Cu(e),!e.preventDefault}(e);M(e=>jc(n,o,e),r)}function Iu(e){const t=function(e){if(!S(e))return au(Be);const t=fu(e.mbox);return t[Je]?uu():t}(e),n=t[$e];if(!t[Je])return Kt(Tu,n),void en({source:Tu,options:e,error:n});const r=function(e,t){const n=t.mbox,r=g({},t),o=S(t.params)?t.params:{};return r.params=g({},Gr(n),o),r.timeout=lo(e,t.timeout),r[Ze]=E(t[Ze])?t[Ze]:be,r[$e]=E(t[$e])?t[$e]:be,r}(it(),e);if(!Bt())return Kt(Tu,Ue),de(r[$e]("warning",Ue)),void en({source:Tu,options:e,error:Ue});Wt(Tu,r),en({source:Tu,options:r}),function(e){const t=e[Le],n=e[Ve];return G(t)&&(G(n)||Gn(n))}(r)?ku(r):Cu(r)}const Nu=[];let Ou=0;function _u(e){return ks(e),function(e){const{page:t}=e;return ws("view",e,t,cs)}(e).then(Fs).then(e=>{F(e)||Bn({execution:e})})['catch'](e=>{Kt("View rendering failed",e),Fn({error:e})})}function Au(){for(;Nu.length>0;){const e=Nu.pop(),{viewName:t,page:n}=e,r=Hc(t,e);v(r)?n&&Kc(e):_u(r)}}function Pu(){Ou=1,Au()}function qu(e,t){if(!it().viewsEnabled)return void Kt("[triggerView()]","Views are not enabled");if(!R(e)||Z(e))return Kt("[triggerView()]","View name should be a non-empty string",e),void en({source:"[triggerView()]",view:e,error:"View name should be a non-empty string"});const n=e.toLowerCase(),r=function(e,t){const n={};return n.viewName=e,n.impressionId=Re(),n.page=!0,F(t)||(n.page=!!t.page),n}(n,t);Wt("[triggerView()]",n,r),zt()?function(e){const t=e.viewName;Xe._AT.currentView=t}(r):(en({source:"[triggerView()]",view:n,options:r}),function(e){Nu.push(e),0!==Ou&&Au()}(r))}As("cache-updated-event",Pu),As("no-offers-event",Pu),As("redirect-offer-event",Pu);const Mu="function has been deprecated. Please use getOffer() and applyOffer() functions instead.",Du="adobe.target.registerExtension() function has been deprecated. Please review the documentation for alternatives.",Ru="mboxCreate() "+Mu,Lu="mboxDefine() "+Mu,ju="mboxUpdate() "+Mu;function Vu(){Kt(Du,arguments)}function Hu(){Kt(Ru,arguments)}function Uu(){Kt(Lu,arguments)}function Bu(){Kt(ju,arguments)}const Fu=/^tgt:.+/i,zu=e=>Fu.test(e);function $u(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){Object.keys(localStorage).filter(zu).forEach(e=>localStorage.removeItem(e))}}function Ju(){function e(e){return"tgt:tlm:"+e}function t(e){const t=localStorage.getItem(e);let n=parseInt(t,10);return Number.isNaN(n)&&(n=-1),n}function n(e,t){localStorage.setItem(e,t)}function r(t){const n=e(t),r=localStorage.getItem(n);return localStorage.removeItem(n),r}return{addEntry:function(r){!function(t,n){$u(e(t),n)}(function(){const e=t("tgt:tlm:upper")+1;return n("tgt:tlm:upper",e),e}(),r)},getAndClearEntries:function(){return function(){const e=[],o=t("tgt:tlm:lower")||-1,i=t("tgt:tlm:upper")||-1;for(let t=i;t>o;t-=1){const n=r(t);n&&e.push(JSON.parse(n))}return n("tgt:tlm:lower",i),e}()},hasEntries:function(){const n=e(t("tgt:tlm:upper"));return!!localStorage.getItem(n)}}}return{init:function(e,t,n){if(e.adobe&&e.adobe.target&&void 0!==e.adobe.target.getOffer)return void Kt("Adobe Target has already been initialized.");ot(n);const r=it(),o=r.version;if(e.adobe.target.VERSION=o,e.adobe.target.event={LIBRARY_LOADED:"at-library-loaded",REQUEST_START:"at-request-start",REQUEST_SUCCEEDED:"at-request-succeeded",REQUEST_FAILED:"at-request-failed",CONTENT_RENDERING_START:"at-content-rendering-start",CONTENT_RENDERING_SUCCEEDED:"at-content-rendering-succeeded",CONTENT_RENDERING_FAILED:"at-content-rendering-failed",CONTENT_RENDERING_NO_OFFERS:"at-content-rendering-no-offers",CONTENT_RENDERING_REDIRECT:"at-content-rendering-redirect"},!r.enabled)return function(e){e.adobe=e.adobe||{},e.adobe.target={VERSION:"",event:{},getOffer:be,getOffers:xe,applyOffer:be,applyOffers:xe,sendNotifications:be,trackEvent:be,triggerView:be,registerExtension:be,init:be},e.mboxCreate=be,e.mboxDefine=be,e.mboxUpdate=be}(e),void Kt(Ue);e.__target_telemetry=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:he,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ie();function r(e){return e.edgeHost?me:ge}function o(e){const t={},n=we(e),r=Se(e),o=Ee(e),i=Te(e),c=Ce(e);return n&&(t.executePageLoad=n),r&&(t.executeMboxCount=r),o&&(t.prefetchPageLoad=o),i&&(t.prefetchMboxCount=i),c&&(t.prefetchViewCount=c),t}function i(e){const t={};return e.dns&&(t.dns=ke(e.dns)),e.tls&&(t.tls=ke(e.tls)),e.timeToFirstByte&&(t.timeToFirstByte=ke(e.timeToFirstByte)),e.download&&(t.download=ke(e.download)),e.responseSize&&(t.responseSize=ke(e.responseSize)),t}function c(e){const t={};return e.execution&&(t.execution=ke(e.execution)),e.parsing&&(t.parsing=ke(e.parsing)),e.request&&(t.request=i(e.request)),g(e,t)}function s(e){n.addEntry(c(e))}function u(t){e&&s({requestId:t.requestId,timestamp:ie()})}function a(t,n){e&&s({requestId:t,timestamp:ie(),execution:n})}function f(e,t){s(g(t,{requestId:e,timestamp:ie()}))}function l(t,n){e&&n&&f(t,n)}function d(n,i,c){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t;if(!e||!i)return;const{requestId:u}=n,a=g(o(n),{decisioningMethod:s}),l={mode:r(c),features:a},d=g(i,l);f(u,d)}function p(){return n.getAndClearEntries()}function h(){return n.hasEntries()}function m(e){return h()?g(e,{telemetry:{entries:p()}}):e}return{addDeliveryRequestEntry:d,addArtifactRequestEntry:l,addRenderEntry:a,addServerStateEntry:u,getAndClearEntries:p,hasEntries:h,addTelemetryToDeliveryRequest:m}}(r.telemetryEnabled,r.decisioningMethod,function(){try{const e=window.localStorage,t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}}()?Ju():void 0),Xt(Xe,it(),Ft()),or(),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nt;const n=fr(e.location.search);if(v(n))return;const r=new Date(ie()+186e4),o=it(),i=o.secureOnly,c=o.cookieDomain,s=g({expires:r,secure:i,domain:c},i?{sameSite:"None"}:{});t("at_qa_mode",JSON.stringify(n),s)}(e),lr(e),su(),e.adobe.target.getOffer=vu,e.adobe.target.getOffers=bu,e.adobe.target.applyOffer=wu,e.adobe.target.applyOffers=Su,e.adobe.target.sendNotifications=Eu,e.adobe.target.trackEvent=Iu,e.adobe.target.triggerView=qu,e.adobe.target.registerExtension=Vu,e.mboxCreate=Hu,e.mboxDefine=Uu,e.mboxUpdate=Bu,function(){const e=Ln("at-library-loaded",{});Rn(Xe,We,"at-library-loaded",e)}()}}}(),window.adobe.target.init(window,document,{clientCode:"comwrapemeapartnersa",imsOrgId:"5E6C0AAF5CE3D56D0A495C60@AdobeOrg",serverDomain:"comwrapemeapartnersa.tt.omtrdc.net",crossDomain:"disabled",timeout:Number("5000"),globalMboxName:"target-global-mbox",version:"2.11.8",defaultContentHiddenStyle:"visibility: hidden;",defaultContentVisibleStyle:"visibility: visible;",bodyHiddenStyle:"body {opacity: 0 !important}",bodyHidingEnabled:!0,deviceIdLifetime:632448e5,sessionIdLifetime:186e4,selectorsPollingTimeout:5e3,visitorApiTimeout:2e3,overrideMboxEdgeServer:!0,overrideMboxEdgeServerTimeout:186e4,optoutEnabled:!1,optinEnabled:!1,secureOnly:!1,supplementalDataIdParamTimeout:30,authoringScriptUrl:"//cdn.tt.omtrdc.net/cdn/target-vec.js",urlSizeLimit:2048,endpoint:"/rest/v1/delivery",pageLoadEnabled:"true"===String("true"),viewsEnabled:!0,analyticsLogging:"server_side",serverState:{},decisioningMethod:"server-side",legacyBrowserSupport:!1,allowHighEntropyClientHints:!1,aepSandboxId:null,aepSandboxName:null,deviceDetectionEnabled:!0}); | |
| //No Custom JavaScript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment