1/*! For license information please see dependencies.js.LICENSE.txt */ 2!function(){var e={271:function(){var e=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};!function(){"use strict";if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!document.documentElement.className.includes("aem-AuthorLayer-")){var t={"ease-out":n,linear:function(e){return e},"ease-in-out":function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2}};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a()}function n(e){return 1-Math.pow(1-e,3)}function o(e){var t=e.match(/\d[\d,.]*/);return t?t[0].replace(/,/g,""):""}function r(e,t,n){var r,i,a=e.getAttribute("data-motion-raw-value"),l=null!==a&&""!==a?a:o(null!==(r=e.textContent)&&void 0!==r?r:""),c=parseFloat(l.replace(/,/g,""));if(!isNaN(c)){var s=e.innerHTML,u=l.includes("."),d=u?(null!==(i=l.split(".")[1])&&void 0!==i?i:"").length:0,f=null;requestAnimationFrame(function o(r){null===f&&(f=r);var i=Math.min((r-f)/t,1),a=n(i)*c;e.textContent=u?a.toFixed(d):Math.floor(a).toString(),i<1?requestAnimationFrame(o):e.innerHTML=s})}}function i(i){var a,l,c,s,u,d,f;try{var p=null!==(a=i.getAttribute("data-motion-animations"))&&void 0!==a?a:"[]";f=JSON.parse(p)}catch(e){return}var g=f.find(function(e){return"count-up"===e.type});if(g){var v=null!==(l=g.duration)&&void 0!==l?l:1200,h=null!==(c=g.easing)&&void 0!==c?c:"ease-out",m=null!==(s=g.trigger)&&void 0!==s?s:"viewport",y=!1!==g.fireOnce,b=null!==(u=g.delay)&&void 0!==u?u:0,w=null!==(d=t[h])&&void 0!==d?d:n,C=Array.from(i.querySelectorAll("[data-motion-value-span]")),L=Array.from(i.querySelectorAll("[data-motion-raw-value]")).filter(function(e){return!e.hasAttribute("data-motion-value-span")}),A=e(e([],C,!0),L,!0);if(A.length){var S=A.filter(function(e){var t;return""!==o(null!==(t=e.getAttribute("data-motion-raw-value"))&&void 0!==t?t:"")}),E=A.filter(function(e){var t;return""===o(null!==(t=e.getAttribute("data-motion-raw-value"))&&void 0!==t?t:"")}),T=function(e){b>0?setTimeout(function(){return r(e,v,w)},b):r(e,v,w)},k=new Set;E.forEach(function(e){var t=null,n=new MutationObserver(function(){k.add(e),null!==t&&clearTimeout(t),t=setTimeout(function(){var t,r=o(null!==(t=e.textContent)&&void 0!==t?t:""),i=parseFloat(r);r&&i>0?(n.disconnect(),T(e)):k.delete(e)},150)});n.observe(e,{childList:!0,subtree:!0,characterData:!0})});var x=function(){S.forEach(T),E.forEach(function(e){var t;if(k.has(e))k.delete(e);else{var n=o(null!==(t=e.textContent)&&void 0!==t?t:"");n&&parseFloat(n)>0&&T(e)}})};if("immediate"!==m)new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&(y&&t.unobserve(e.target),x())})},{threshold:.25}).observe(i);else x()}}}function a(){Array.from(document.querySelectorAll("[data-motion-animations]")).forEach(i)}}()},389:function(){!function(){"use strict";function e(e){if(!e)return[];try{var t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}}function t(){if(!document.documentElement.className.includes("aem-AuthorLayer-")&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var t=Array.from(document.querySelectorAll("[data-motion-animations]"));if(t.length){var n=[];if(t.forEach(function(t){var o,r,i=e(t.getAttribute("data-motion-animations"));i.length&&(!function(e,t){if(t.length){var n=t[0];null!=n.duration&&e.style.setProperty("--motion-duration","".concat(n.duration,"ms")),null!=n.delay&&e.style.setProperty("--motion-delay","".concat(n.delay,"ms")),n.easing&&e.style.setProperty("--motion-easing",n.easing);var o=t.map(function(e){return e.type}).join(" ");e.setAttribute("data-motion-type",o)}}(t,i),"immediate"===(null!==(r=null===(o=i[0])||void 0===o?void 0:o.trigger)&&void 0!==r?r:"viewport")?t.setAttribute("data-motion-state","entered"):(t.setAttribute("data-motion-state","exited"),n.push(t)))}),n.length){var o=new IntersectionObserver(function(t,n){t.forEach(function(t){var o,r,i,a=t.target,l=e(a.getAttribute("data-motion-animations")),c=null!==(r=null===(o=l[0])||void 0===o?void 0:o.trigger)&&void 0!==r?r:"viewport",s=!1!==(null===(i=l[0])||void 0===i?void 0:i.fireOnce);t.isIntersecting?"viewport"!==c&&"viewport-entry-exit"!==c||(a.setAttribute("data-motion-state","entered"),"viewport"===c&&s&&n.unobserve(a)):"viewport-exit"===c||"viewport-entry-exit"===c?a.setAttribute("data-motion-state","exited"):"viewport"!==c||s||a.removeAttribute("data-motion-state")})},{threshold:.1});
2n.forEach(function(e){return o.observe(e)})}}}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}()},621:function(){!function(){"use strict";function e(e){if(!e)return null;try{var t=JSON.parse(e);if(null==t||"object"!=typeof t||Array.isArray(t))return null;var n=t;return{trigger:"string"==typeof n.trigger?n.trigger:"viewport-entry",fireOnce:!1!==n.fireOnce,pushZoom:"number"==typeof n.pushZoom?n.pushZoom:void 0,blur:"number"==typeof n.blur?n.blur:void 0}}catch(e){return null}}function t(){var t=Array.from(document.querySelectorAll("[data-image-motion]"));if(t.length){var n=[];if(t.forEach(function(t){var o=e(t.getAttribute("data-image-motion"));o&&(o.pushZoom||o.blur)&&(!function(e,t){var n=[];null!=t.pushZoom&&(n.push("push-zoom"),e.style.setProperty("--image-motion-scale",(t.pushZoom/100).toFixed(2))),null!=t.blur&&(n.push("blur"),e.style.setProperty("--image-motion-blur","".concat(t.blur,"px"))),n.length&&e.setAttribute("data-image-motion-type",n.join(" "))}(t,o),t.setAttribute("data-image-motion-state","exited"),n.push(t))}),n.length){var o=new Set,r=new Set,i=new Set,a=new IntersectionObserver(function(t,n){t.forEach(function(t){var a=t.target,l=e(a.getAttribute("data-image-motion"));if(l){var c=l.trigger,s=l.fireOnce;t.isIntersecting?"viewport-entry"!==c&&"viewport-entry-exit"!==c&&"viewport-exit"!==c||(a.setAttribute("data-image-motion-state","entered"),r.add(a),"viewport-entry"===c&&s&&n.unobserve(a),("viewport-exit"===c||"viewport-entry-exit"===c)&&s&&i.has(a)&&n.unobserve(a)):"viewport-exit"===c||"viewport-entry-exit"===c?(a.setAttribute("data-image-motion-state","exited"),(r.has(a)||o.has(a))&&i.add(a)):"viewport-entry"!==c||s||a.setAttribute("data-image-motion-state","exited")}})},{threshold:.1}),l=function(){n.forEach(function(e){var t=e.getBoundingClientRect();t.top<window.innerHeight&&t.bottom>0&&(e.setAttribute("data-image-motion-state","entered"),o.add(e),r.add(e))}),requestAnimationFrame(function(){return requestAnimationFrame(function(){n.forEach(function(e){return a.observe(e)})})})};"complete"===document.readyState?l():window.addEventListener("load",l,{once:!0})}}}window.matchMedia("(prefers-reduced-motion: reduce)").matches||document.documentElement.className.includes("aem-AuthorLayer-")||("loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t())}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}!function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:o,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:a,seal:l,create:c}=Object,{apply:s,construct:u}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),l||(l=function(e){return e}),s||(s=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),u||(u=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const d=_(Array.prototype.forEach),f=_(Array.prototype.lastIndexOf),p=_(Array.prototype.pop),g=_(Array.prototype.push),v=_(Array.prototype.splice),h=Array.isArray,m=_(String.prototype.toLowerCase),y=_(String.prototype.toString),b=_(String.prototype.match),w=_(String.prototype.replace),C=_(String.prototype.indexOf),L=_(String.prototype.trim),A=_(Number.prototype.toString),S=_(Boolean.prototype.toString),E="undefined"==typeof BigInt?null:_(BigInt.prototype.toString),T="undefined"==typeof Symbol?null:_(Symbol.prototype.toString),k=_(Object.prototype.hasOwnProperty),x=_(Object.prototype.toString),M=_(RegExp.prototype.test),F=(O=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(O,t)});var O;function _(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return s(e,t,o)}}function I(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;if(t&&t(e,null),!h(n))return e;let i=n.length;for(;i--;){let t=n[i];if("string"==typeof t){const e=r(t);e!==t&&(o(n)||(n[i]=e),t=e)}e[t]=!0}return e}function R(e){for(let t=0;t<e.length;t++){k(e,t)||(e[t]=null)}return e}function D(t){const n=c(null);for(const[o,r]of e(t)){k(t,o)&&(h(r)?n[o]=R(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=D(r):n[o]=r)}return n}function N(e,t){for(;null!==e;){const n=i(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=r(e)}return function(){return null}}const P=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),B=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=a(["#text"]),V=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),K=a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=a(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),J=l(/<%[\w\W]*|[\w\W]*%>/gm),Q=l(/\$\{[\w\W]*/gm),X=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=l(/^aria-[\-\w]+$/),Z=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=l(/^(?:\w+script|data):/i),te=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=l(/^html$/i),oe=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var re=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:oe,DATA_ATTR:X,DOCTYPE_NAME:ne,ERB_EXPR:J,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:ee,MUSTACHE_EXPR:q,TMPLIT_EXPR:Q});const ie=1,ae=3,le=7,ce=8,se=9,ue=function(){return"undefined"==typeof window?null:window};var de=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue();const o=e=>t(e);if(o.version="3.4.2",o.removed=[],!n||!n.document||n.document.nodeType!==se||!n.Element)return o.isSupported=!1,o;let{document:r}=n;const i=r,l=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:u,Node:O,Element:_,NodeFilter:R,NamedNodeMap:q=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:J,DOMParser:Q,trustedTypes:X}=n,$=_.prototype,ee=N($,"cloneNode"),te=N($,"remove"),oe=N($,"nextSibling"),de=N($,"childNodes"),fe=N($,"parentNode");if("function"==typeof u){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let pe,ge="";const{implementation:ve,createNodeIterator:he,createDocumentFragment:me,getElementsByTagName:ye}=r,{importNode:be}=i;let we={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof e&&"function"==typeof fe&&ve&&void 0!==ve.createHTMLDocument;const{MUSTACHE_EXPR:Ce,ERB_EXPR:Le,TMPLIT_EXPR:Ae,DATA_ATTR:Se,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:Te,ATTR_WHITESPACE:ke,CUSTOM_ELEMENT:xe}=re;let{IS_ALLOWED_URI:Me}=re,Fe=null;const Oe=I({},[...P,...U,...z,...B,...H]);let _e=null;const Ie=I({},[...V,...K,...W,...Y]);let Re=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Ne=null;const Pe=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ue=!0,ze=!0,je=!1,Be=!0,Ge=!1,He=!0,Ve=!1,Ke=!1,We=!1,Ye=!1,qe=!1,Je=!1,Qe=!0,Xe=!1;const $e="user-content-";let Ze=!0,et=!1,tt={},nt=null;const ot=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rt=null;const it=I({},["audio","video","img","source","image","track"]);let at=null;const lt=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ct="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",ut="http://www.w3.org/1999/xhtml";let dt=ut,ft=!1,pt=null;const gt=I({},[ct,st,ut],y);let vt=I({},["mi","mo","mn","ms","mtext"]),ht=I({},["annotation-xml"]);const mt=I({}
vendor: 10,542 bytes, line 2
2,["title","style","font","a","script"]);let yt=null;const bt=["application/xhtml+xml","text/html"];let wt=null,Ct=null;const Lt=r.createElement("form"),At=function(e){return e instanceof RegExp||e instanceof Function},St=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ct&&Ct===e)return;e&&"object"==typeof e||(e={}),e=D(e),yt=-1===bt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,wt="application/xhtml+xml"===yt?y:m,Fe=k(e,"ALLOWED_TAGS")&&h(e.ALLOWED_TAGS)?I({},e.ALLOWED_TAGS,wt):Oe,_e=k(e,"ALLOWED_ATTR")&&h(e.ALLOWED_ATTR)?I({},e.ALLOWED_ATTR,wt):Ie,pt=k(e,"ALLOWED_NAMESPACES")&&h(e.ALLOWED_NAMESPACES)?I({},e.ALLOWED_NAMESPACES,y):gt,at=k(e,"ADD_URI_SAFE_ATTR")&&h(e.ADD_URI_SAFE_ATTR)?I(D(lt),e.ADD_URI_SAFE_ATTR,wt):lt,rt=k(e,"ADD_DATA_URI_TAGS")&&h(e.ADD_DATA_URI_TAGS)?I(D(it),e.ADD_DATA_URI_TAGS,wt):it,nt=k(e,"FORBID_CONTENTS")&&h(e.FORBID_CONTENTS)?I({},e.FORBID_CONTENTS,wt):ot,De=k(e,"FORBID_TAGS")&&h(e.FORBID_TAGS)?I({},e.FORBID_TAGS,wt):D({}),Ne=k(e,"FORBID_ATTR")&&h(e.FORBID_ATTR)?I({},e.FORBID_ATTR,wt):D({}),tt=!!k(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?D(e.USE_PROFILES):e.USE_PROFILES),Ue=!1!==e.ALLOW_ARIA_ATTR,ze=!1!==e.ALLOW_DATA_ATTR,je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ge=e.SAFE_FOR_TEMPLATES||!1,He=!1!==e.SAFE_FOR_XML,Ve=e.WHOLE_DOCUMENT||!1,Ye=e.RETURN_DOM||!1,qe=e.RETURN_DOM_FRAGMENT||!1,Je=e.RETURN_TRUSTED_TYPE||!1,We=e.FORCE_BODY||!1,Qe=!1!==e.SANITIZE_DOM,Xe=e.SANITIZE_NAMED_PROPS||!1,Ze=!1!==e.KEEP_CONTENT,et=e.IN_PLACE||!1,Me=function(e){try{return M(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Z,dt="string"==typeof e.NAMESPACE?e.NAMESPACE:ut,vt=k(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?D(e.MATHML_TEXT_INTEGRATION_POINTS):I({},["mi","mo","mn","ms","mtext"]),ht=k(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?D(e.HTML_INTEGRATION_POINTS):I({},["annotation-xml"]);const t=k(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?D(e.CUSTOM_ELEMENT_HANDLING):c(null);if(Re=c(null),k(t,"tagNameCheck")&&At(t.tagNameCheck)&&(Re.tagNameCheck=t.tagNameCheck),k(t,"attributeNameCheck")&&At(t.attributeNameCheck)&&(Re.attributeNameCheck=t.attributeNameCheck),k(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Ge&&(ze=!1),qe&&(Ye=!0),tt&&(Fe=I({},H),_e=c(null),!0===tt.html&&(I(Fe,P),I(_e,V)),!0===tt.svg&&(I(Fe,U),I(_e,K),I(_e,Y)),!0===tt.svgFilters&&(I(Fe,z),I(_e,K),I(_e,Y)),!0===tt.mathMl&&(I(Fe,B),I(_e,W),I(_e,Y))),Pe.tagCheck=null,Pe.attributeCheck=null,k(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Pe.tagCheck=e.ADD_TAGS:h(e.ADD_TAGS)&&(Fe===Oe&&(Fe=D(Fe)),I(Fe,e.ADD_TAGS,wt))),k(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Pe.attributeCheck=e.ADD_ATTR:h(e.ADD_ATTR)&&(_e===Ie&&(_e=D(_e)),I(_e,e.ADD_ATTR,wt))),k(e,"ADD_URI_SAFE_ATTR")&&h(e.ADD_URI_SAFE_ATTR)&&I(at,e.ADD_URI_SAFE_ATTR,wt),k(e,"FORBID_CONTENTS")&&h(e.FORBID_CONTENTS)&&(nt===ot&&(nt=D(nt)),I(nt,e.FORBID_CONTENTS,wt)),k(e,"ADD_FORBID_CONTENTS")&&h(e.ADD_FORBID_CONTENTS)&&(nt===ot&&(nt=D(nt)),I(nt,e.ADD_FORBID_CONTENTS,wt)),Ze&&(Fe["#text"]=!0),Ve&&I(Fe,["html","head","body"]),Fe.table&&(I(Fe,["tbody"]),delete De.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pe=e.TRUSTED_TYPES_POLICY,ge=pe.createHTML("")}else void 0===pe&&(pe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(X,l)),null!==pe&&"string"==typeof ge&&(ge=pe.createHTML(""));a&&a(e),Ct=e},Et=I({},[...U,...z,...j]),Tt=I({},[...B,...G]),kt=function(e){g(o.removed,{element:e});try{fe(e).removeChild(e)}catch(t){te(e)}},xt=function(e,t){try{g(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ye||qe)try{kt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Mt=function(e){let t=null,n=null;if(We)e="<remove></remove>"+e;else{const t=b(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===yt&&dt===ut&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=pe?pe.createHTML(e):e;if(dt===ut)try{t=(new Q).parseFromString(o,yt)}catch(e){}if(!t||!t.documentElement){t=ve.createDocument(dt,"template",null);try{t.documentElement.innerHTML=ft?ge:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),dt===ut?ye.call(t,Ve?"html":"body")[0]:Ve?t.documentElement:i},Ft=function(e){return he.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},Ot=function(e){return e instanceof J&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof q)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof O&&e instanceof O};function It(e,t,n){d(e,e=>{e.call(o,t,n,Ct)})}const Rt=function(e){let t=null;if(It(we.beforeSanitizeElements,e,null),Ot(e))return kt(e),!0;const n=wt(e.nodeName);if(It(we.uponSanitizeElement,e,{tagName:n,allowedTags:Fe}),He&&e.hasChildNodes()&&!_t(e.firstElementChild)&&M(/<[/\w!]/g,e.innerHTML)&&M(/<[/\w!]/g,e.textContent))return kt(e),!0;if(He&&e.namespaceURI===ut&&"style"===n&&_t(e.firstElementChild))return kt(e),!0;if(e.nodeType===le)return kt(e),!0;if(He&&e.nodeType===ce&&M(/<[/\w]/g,e.data))return kt(e),!0;if(De[n]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(n))&&!Fe[n]){if(!De[n]&&Pt(n)){if(Re.tagNameCheck instanceof RegExp&&M(Re.tagNameCheck,n))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))return!1}if(Ze&&!nt[n]){const t=fe(e)||e.parentNode,n=de(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=ee(n[o],!0);t.insertBefore(r,oe(e))}}}return kt(e),!0}return e instanceof _&&!function(e){let t=fe(e);t&&t.tagName||(t={namespaceURI:dt,tagName:"template"});const n=m(e.tagName),o=m(t.tagName);return!!pt[e.namespaceURI]&&(e.namespaceURI===st?t.namespaceURI===ut?"svg"===n:t.namespaceURI===ct?"svg"===n&&("annotation-xml"===o||vt[o]):Boolean(Et[n]):e.namespaceURI===ct?t.namespaceURI===ut?"math"===n:t.namespaceURI===st?"math"===n&&ht[o]:Boolean(Tt[n]):e.namespaceURI===ut?!(t.namespaceURI===st&&!ht[o])&&!(t.namespaceURI===ct&&!vt[o])&&!Tt[n]&&(mt[n]||!Et[n]):!("application/xhtml+xml"!==yt||!pt[e.namespaceURI]))}(e)?(kt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!M(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ge&&e.nodeType===ae&&(t=e.textContent,d([Ce,Le,Ae],e=>{t=w(t,e," ")}),e.textContent!==t&&(g(o.removed,{element:e.cloneNode()}),e.textContent=t)),It(we.afterSanitizeElements,e,null),!1):(kt(e),!0)},Dt=function(e,t,n){if(Ne[t])return!1;if(Qe&&("id"===t||"name"===t)&&(n in r||n in Lt))return!1;const o=_e[t]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(t,e);if(ze&&!Ne[t]&&M(Se,t));else if(Ue&&M(Ee,t));else if(!o||Ne[t]){if(!(Pt(e)&&(Re.tagNameCheck instanceof RegExp&&M(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&M(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t,e))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&M(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))))return!1}else if(at[t]);else if(M(Me,w(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!rt[e]){if(je&&!M(Te,w(n,ke,"")));else if(n)return!1}else;return!0},Nt=I({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Pt=function(e){return!Nt[m(e)]&&M(xe,e)},Ut=function(e){It(we.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ot(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=wt(a),u=c;let f="value"===a?u:L(u);if(n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,It(we.uponSanitizeAttribute,e,n),f=n.attrValue,!Xe||"id"!==s&&"name"!==s||0===C(f,$e)||(xt(a,e),f=$e+f),He&&M(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){xt(a,e);continue}if("attributename"===s&&b(f,"href")){xt(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){xt(a,e);continue}if(!Be&&M(/\/>/i,f)){xt(a,e);continue}Ge&&d([Ce,Le,Ae],e=>{f=w(f,e," ")});const g=wt(e.nodeName);if(Dt(g,s,f)){if(pe&&"object"==typeof X&&"function"==typeof X.getAttributeType)if(l);else switch(X.getAttributeType(g,s)){case"TrustedHTML":f=pe.createHTML(f);break;case"TrustedScriptURL":f=pe.createScriptURL(f)}if(f!==u)try{l?e.setAttributeNS(l,a,f):e.setAttribute(a,f),Ot(e)?kt(e):p(o.removed)}catch(t){xt(a,e)}}else xt(a,e)}It(we.afterSanitizeAttributes,e,null)},zt=function(e){let t=null;const n=Ft(e);for(It(we.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)It(we.uponSanitizeShadowNode,t,null),Rt(t),Ut(t),t.content instanceof s&&zt(t.content);It(we.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,l=null;if(ft=!e,ft&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return A(e);case"boolean":return S(e);case"bigint":return E?E(e):"0";case"symbol":return T?T(e):"Symbol()";case"undefined":default:return x(e);case"function":case"object":{if(null===e)return x(e);const t=e,n=N(t,"toString");if("function"==typeof n){const e=n(t);
2return"string"==typeof e?e:x(e)}return x(e)}}}(e)))throw F("dirty is not a string, aborting");if(!o.isSupported)return e;if(Ke||St(t),o.removed=[],"string"==typeof e&&(et=!1),et){const t=e.nodeName;if("string"==typeof t){const e=wt(t);if(!Fe[e]||De[e])throw F("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof O)n=Mt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===ie&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Ye&&!Ge&&!Ve&&-1===e.indexOf("<"))return pe&&Je?pe.createHTML(e):e;if(n=Mt(e),!n)return Ye?null:Je?ge:""}n&&We&&kt(n.firstChild);const c=Ft(et?e:n);for(;a=c.nextNode();)Rt(a),Ut(a),a.content instanceof s&&zt(a.content);if(et)return e;if(Ye){if(Ge){n.normalize();let e=n.innerHTML;d([Ce,Le,Ae],t=>{e=w(e,t," ")}),n.innerHTML=e}if(qe)for(l=me.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(_e.shadowroot||_e.shadowrootmode)&&(l=be.call(i,l,!0)),l}let u=Ve?n.outerHTML:n.innerHTML;return Ve&&Fe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&M(ne,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),Ge&&d([Ce,Le,Ae],e=>{u=w(u,e," ")}),pe&&Je?pe.createHTML(u):u},o.setConfig=function(){St(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ke=!0},o.clearConfig=function(){Ct=null,Ke=!1},o.isValidAttribute=function(e,t,n){Ct||St({});const o=wt(e),r=wt(t);return Dt(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&g(we[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=f(we[e],t);return-1===n?void 0:v(we[e],n,1)[0]}return p(we[e])},o.removeHooks=function(e){we[e]=[]},o.removeAllHooks=function(){we={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function pe(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,he(o.key),o)}}function he(e){var t=function(e,t){if("object"!=fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=fe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fe(t)?t:t+""}var me,ye=function(){return e=function e(){var t,n,o,r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="debounceSetLocalStorage",o=this._debounce(function(){try{localStorage.setItem("enabledLogs",JSON.stringify(r.enabledLogs))}catch(e){console.error("%cFailed to save enabled logs to localStorage:","color: red;",e)}},1e3),(n=he(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.componentList=new Set,this.enabledLogs=this.getEnabledLogsFromLocalStorage(),this.logs=new Map,this.elementLogs=new WeakMap,this.globalLoggingEnabled=!1,this.isAuthorMode=this.detectAuthorMode(),this.showLogsOnComponentEnabled=this.getDefaultDisplayState(),this.includedLogLevels=["log","info","warn","error","debug","trace","table"],this.validLogLevels=["log","info","warn","error","debug","trace","table"],this.componentElements=new Map,this.maxLogsPerComponent=1e3,this.initializeLoggingState(),this.initialize()},t=[{key:"initializeLoggingState",value:function(){var e=this,t=new URLSearchParams(window.location.search).get("enableLogs");if("true"===t)this.globalLoggingEnabled=!0,this.showLogsOnComponentEnabled=!0;else if(t){var n=t.split(",").map(function(e){return e.trim()});
2n.forEach(function(t){e.enabledLogs.includes(t)||e.enabledLogs.push(t)}),this.globalLoggingEnabled=!0,this.showLogsOnComponentEnabled=!0,"%cð Logging enabled for specific components via URL: ".concat(n.join(", "))}else this.enabledLogs.length>0&&(this.globalLoggingEnabled=!0,"%cð Restored logging for components from previous session: ".concat(this.enabledLogs.join(", ")));!0!==this.getGlobalLoggingStateFromLocalStorage()||this.globalLoggingEnabled||(this.globalLoggingEnabled=!0),this.isAuthorMode&&(this.globalLoggingEnabled=!0,this.showLogsOnComponentEnabled),this.globalLoggingEnabled&&this.enabledLogs.length>0&&"%cLogging is enabled for components: ".concat(this.enabledLogs.join(", "))}},{key:"getDefaultDisplayState",value:function(){var e=window.location.href;return!!e.includes("/editor.html/")||!!e.includes("wcmmode=edit")||!e.includes("wcmmode=preview")&&!e.includes("wcmmode=disabled")&&!!e.includes("/content/na")}},{key:"initialize",value:function(){var e=this;this.isLoggingEnabled()&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){return e.scanForBackendErrors()}):this.scanForBackendErrors())}},{key:"detectAuthorMode",value:function(){var e=window.location.href,t=window.location.hostname;return!!e.includes("/editor.html/")||!!e.includes("wcmmode=")||null!==document.querySelector(".cq-wcm-edit")||!!(t.includes("author")||t.includes(":4502")||e.includes(":4502/"))}},{key:"isLoggingEnabled",value:function(){return this.globalLoggingEnabled}},{key:"scanForBackendErrors",value:function(){var e=this,t=document.querySelectorAll("[data-component-error]");t.length>0&&"%cð Found ".concat(t.length," backend error(s)"),t.forEach(function(t){var n=t.getAttribute("data-component-error");e.error(t,"Backend Error:",n)})}},{key:"getComponentNameFromElement",value:function(e){if(e.hasAttribute("data-component-name"))return e.getAttribute("data-component-name");var t=Array.from(e.classList).find(function(e){return e.startsWith("cmp-")});return t?t.replace("cmp-","").split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(""):"UnknownComponent"}},{key:"log",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this._log("log",e,n)}},{key:"error",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this._log("error",e,n)}},{key:"warn",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this._log("warn",e,n)}},{key:"info",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this._log("info",e,n)}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this._log("debug",e,n)}},{key:"trace",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this._log("trace",e,n)}},{key:"table",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this._log("table",e,n)}},{key:"detectAndFilterHTMLElements",value:function(e){var t=!1,n=e.map(function(e){return e instanceof HTMLElement?(t=!0,"[HTMLElement: <".concat(e.tagName.toLowerCase()).concat(e.id?' id="'.concat(e.id,'"'):"").concat(e.className?' class="'.concat(e.className,'"'):"",">]")):e instanceof NodeList||e instanceof HTMLCollection?(t=!0,"[".concat(e.constructor.name,": ").concat(e.length," element(s)]")):e});return{hasElements:t,cleanedOutput:n}}},{key:"_log",value:function(e,t,n){if(this.isLoggingEnabled()){var o=t,r=null;t instanceof HTMLElement?(r=t,o=this.getComponentNameFromElement(r),this.componentElements.has(o)||this.componentElements.set(o,new Set),this.componentElements.get(o).add(r)):"string"==typeof t&&(o=t),this.trackComponent(o);var i=this.detectAndFilterHTMLElements(n),a=i.hasElements,l=i.cleanedOutput;a&&console.warn("%c[".concat(o,"] â ï¸ HTML elements detected in log parameters and converted to string representations"),"color: orange; font-weight: bold;");var c=0===this.enabledLogs.length||this.enabledLogs.includes(o);if(this._isLogLevelIncluded(e)&&c){this.storeLog(e,o,l),r&&this.storeElementLog(r,e,l);var s=this._getLogColors(e);if("table"===e)"%c[".concat(o,"]"),"color: ".concat(s.name,"; font-weight: bold;"),1===l.length?console.table(l[0]):l.length>1?console.table(l):console.table();else{var u=console[e]||console.log;u.call.apply(u,[console,"%c[".concat(o,"]"),"color: ".concat(s.name,"; font-weight: bold;")].concat(pe(l)))}this.showLogsOnComponentEnabled&&r&&this._shouldShowInUI(e)?this.updateComponentDisplay(r,o):this._shouldShowInUI(e)&&!r&&console.warn("%c[".concat(o,"] ð¡ This ").concat(e," won't show in UI (no element reference provided)"),"color: orange;")}}}},{key:"_shouldShowInUI",value:function(e){return"warn"===e||"error"===e}},{key:"_storeLogEntry",value:function(e,t,n,o){e.has(t)||e.set(t,[]);var r=e.get(t);r.push({type:n,logOutput:o,timestamp:new Date}),r.length>this.maxLogsPerComponent&&r.shift()}},{key:"storeLog",value:function(e,t,n){this._storeLogEntry(this.logs,t,e,n)}},{key:"storeElementLog",value:function(e,t,n){this._storeLogEntry(this.elementLogs,e,t,n)}},{key:"updateComponentDisplay",value:function(e,t){if(e){var n=this.elementLogs.get(e);if(n&&0!==n.length){var o=n.filter(function(e){return"warn"===e.type||"error"===e.type});if(0===o.length){var r=e.querySelector(".fmc-log-accordion");return r&&r.remove(),void(e.style.outline="")}var i=o.some(function(e){return"error"===e.type}),a=o.some(function(e){return"warn"===e.type}),l=i?"#dc3545":a?"#fd7e14":"#28a745";e.style.outline="3px solid ".concat(l),e.style.position="relative";var c=e.querySelector(".fmc-log-accordion");c?this.updateLogAccordion(c,t,o,l):(c=this.createLogAccordion(t,o,l),e.insertBefore(c,e.firstChild))}}}},{key:"_getAccordionHeaderHTML",value:function(e,t){var n=t.filter(function(e){return"error"===e.type}).length,o=t.filter(function(e){return"warn"===e.type}).length,r=t.length;
2return"\n <span>ð ".concat(e," Issues (").concat(r,") ").concat(n>0?"â ".concat(n):""," ").concat(o>0?"â ï¸ ".concat(o):"",'</span>\n <span class="fmc-log-toggle">â¼</span>\n ')}},{key:"_attachAccordionToggle",value:function(e,t){e&&t&&(e.onclick=function(){var n="none"!==t.style.display;t.style.display=n?"none":"block";var o=e.querySelector(".fmc-log-toggle");o&&(o.textContent=n?"â¼":"â²")})}},{key:"createLogAccordion",value:function(e,t,n){var o=document.createElement("div");o.className="fmc-log-accordion",o.style.cssText="\n background: #f8f9fa;\n border: 2px solid ".concat(n,";\n border-radius: 4px;\n margin-bottom: 10px;\n font-family: monospace;\n font-size: 12px;\n z-index: 9999;\n ");var r=document.createElement("div");r.className="fmc-log-accordion-header",r.style.cssText="\n padding: 8px 12px;\n background: ".concat(n,";\n color: white;\n cursor: pointer;\n font-weight: bold;\n display: flex;\n justify-content: space-between;\n align-items: center;\n "),r.innerHTML=de.sanitize(this._getAccordionHeaderHTML(e,t));var i=document.createElement("div");return i.className="fmc-log-accordion-content",i.style.cssText="\n padding: 12px;\n max-height: 300px;\n overflow-y: auto;\n background: white;\n display: none;\n ",this.renderLogs(i,t),this._attachAccordionToggle(r,i),o.appendChild(r),o.appendChild(i),o}},{key:"updateLogAccordion",value:function(e,t,n,o){var r=e.querySelector(".fmc-log-accordion-header"),i=e.querySelector(".fmc-log-accordion-content");if(e.style.border="2px solid ".concat(o),r){var a;r.style.background=o;var l=(null===(a=r.querySelector(".fmc-log-toggle"))||void 0===a?void 0:a.textContent)||"â¼";r.innerHTML=de.sanitize(this._getAccordionHeaderHTML(t,n));var c=r.querySelector(".fmc-log-toggle");c&&(c.textContent=l),this._attachAccordionToggle(r,i)}this.renderLogs(i,n)}},{key:"renderLogs",value:function(e,t){if(e){for(var n=parseInt(e.dataset.fmcRenderedCount||"0",10);n<t.length;n++){var o=t[n],r=document.createElement("div"),i=this._getLogColors(o.type);r.style.cssText="\n padding: 6px;\n margin-bottom: 4px;\n border-left: 3px solid ".concat(i.hex,";\n background: #f8f9fa;\n ");var a=o.timestamp.toLocaleTimeString(),l=this._getLogIcon(o.type),c="";try{c=o.logOutput.map(function(e){return"object"===fe(e)?JSON.stringify(e,null,2):String(e)}).join(" ")}catch(e){c=String(o.logOutput)}r.innerHTML=de.sanitize('\n <div style="color: #6c757d; font-size: 10px;">'.concat(a,'</div>\n <div style="color: ').concat(i.hex,'; font-weight: bold;">\n ').concat(l," ").concat(o.type.toUpperCase(),'\n </div>\n <div style="white-space: pre-wrap; word-break: break-word;">').concat(this._escapeHtml(c),"</div>\n ")),e.appendChild(r)}e.dataset.fmcRenderedCount=String(t.length)}}},{key:"_getLogColors",value:function(e){return{log:{name:"green",hex:"#28a745"},error:{name:"red",hex:"#dc3545"},warn:{name:"orange",hex:"#fd7e14"},info:{name:"blue",hex:"#007bff"},debug:{name:"gray",hex:"#6c757d"},trace:{name:"magenta",hex:"#6f42c1"},table:{name:"cyan",hex:"#17a2b8"}}[e]||{name:"black",hex:"#000000"}}},{key:"_getLogIcon",value:function(e){return{log:"ð",error:"â",warn:"â ï¸",info:"â¹ï¸",debug:"ð",trace:"ð",table:"ð"}[e]||"ð"}},{key:"_escapeHtml",value:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML}},{key:"showLogsOnComponent",value:function(){this.showLogsOnComponentEnabled=!0,this.refreshUIDisplays()}},{key:"hideLogsOnComponent",value:function(){this.showLogsOnComponentEnabled=!1,this.componentElements.forEach(function(e){e.forEach(function(e){var t=e.querySelector(".fmc-log-accordion");t&&t.remove(),e.style.outline=""})})}},{key:"refreshUIDisplays",value:function(){var e=this;if(this.showLogsOnComponentEnabled){var t=0;
2this.componentElements.forEach(function(n,o){n.forEach(function(n){var r=e.elementLogs.get(n);r&&r.some(function(e){return"warn"===e.type||"error"===e.type})&&(e.updateComponentDisplay(n,o),t++)})}),"%câ
UI refresh complete - Updated ".concat(t," component(s)")}else console.warn("%câ ï¸ UI display is currently disabled. Enable it first with showLogsOnComponent()","color: orange;")}},{key:"trackComponent",value:function(e){this.componentList.add(e)}},{key:"enableLog",value:function(e){this.globalLoggingEnabled=!0,this.enabledLogs.includes(e)||(this.enabledLogs.push(e),this.debounceSetLocalStorage(),"%câ
Logging enabled for: ".concat(e),"%cNote: Only new logs will be captured for ".concat(e))}},{key:"disableLog",value:function(e){var t=this.enabledLogs.indexOf(e);-1!==t&&(this.enabledLogs.splice(t,1),this.debounceSetLocalStorage(),"%cð« Logging disabled for: ".concat(e))}},{key:"disableAllLogs",value:function(){this.enabledLogs=[],this.globalLoggingEnabled=!1,this.setGlobalLoggingStateToLocalStorage(!1),this.debounceSetLocalStorage()}},{key:"enableOnly",value:function(e){this.globalLoggingEnabled=!0,this.enabledLogs=[e],this.debounceSetLocalStorage(),"%cð¯ Logging enabled only for: ".concat(e)}},{key:"enableAllLogs",value:function(){this.globalLoggingEnabled=!0,this.enabledLogs=[],this.setGlobalLoggingStateToLocalStorage(!0)}},{key:"getEnabledLogsFromLocalStorage",value:function(){try{var e=localStorage.getItem("enabledLogs");return e?JSON.parse(e):[]}catch(e){return console.warn("%cFailed to load enabled logs from localStorage:","color: orange;",e),[]}}},{key:"getGlobalLoggingStateFromLocalStorage",value:function(){try{var e=localStorage.getItem("globalLoggingEnabled");return null===e?null:"true"===e}catch(e){return console.warn("%cFailed to load global logging state from localStorage:","color: orange;",e),null}}},{key:"setGlobalLoggingStateToLocalStorage",value:function(e){try{!0===e?localStorage.setItem("globalLoggingEnabled","true"):!1===e?localStorage.setItem("globalLoggingEnabled","false"):localStorage.removeItem("globalLoggingEnabled")}catch(e){console.error("%cFailed to save global logging state to localStorage:","color: red;",e)}}},{key:"_debounce",value:function(e,t){var n,o=this;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){return e.apply(o,i)},t)}}},{key:"_isLogLevelIncluded",value:function(e){return this.includedLogLevels.includes(e)}},{key:"addLogLevel",value:function(e){this.validLogLevels.includes(e)?this.includedLogLevels.includes(e)?console.warn("%cLog level already included: ".concat(e),"color: yellow;"):(this.includedLogLevels.push(e),"%cLog level added: ".concat(e)):console.warn("%cInvalid log level: ".concat(e),"color: red;")}},{key:"removeLogLevel",value:function(e){var t=this.includedLogLevels.indexOf(e);-1!==t?(this.includedLogLevels.splice(t,1),"%cLog level removed: ".concat(e)):console.warn("%cLog level not found: ".concat(e),"color: yellow;")}},{key:"toggleGlobalLogging",value:function(){this.globalLoggingEnabled=!this.globalLoggingEnabled,this.setGlobalLoggingStateToLocalStorage(this.globalLoggingEnabled),"%cGlobal logging ".concat(this.globalLoggingEnabled?"enabled":"disabled"," (persists across refreshes)"),this.globalLoggingEnabled}},{key:"printComponentList",value:function(){var e=this;0!==this.componentList.size&&this.componentList.forEach(function(t){var n=0===e.enabledLogs.length||e.enabledLogs.includes(t),o=e.globalLoggingEnabled&&n?"green":"orange",r=e.componentElements.has(t)?e.componentElements.get(t).size:0;"%c- ".concat(t," (").concat(r," instance").concat(1!==r?"s":"",")"),"color: ".concat(o)})}},{key:"printComponentLogs",value:function(e){var t=this;this.logs.has(e)?("%cLogs for component: ".concat(e),this.logs.get(e).forEach(function(n){var o,r,i=t._getLogColors(n.type);"table"===n.type?("%c[".concat(e,"] ").concat(n.timestamp.toISOString()),"color: ".concat(i.name,";"),(o=console).table.apply(o,pe(n.logOutput))):(r=console)[n.type].apply(r,["%c[".concat(e,"] ").concat(n.timestamp.toISOString()),"color: ".concat(i.name,";")].concat(pe(n.logOutput)))})):"%cNo logs for component: ".concat(e)}},{key:"printAllComponentLogs",value:function(){var e=this;
2this.logs.forEach(function(t,n){e.printComponentLogs(n)})}},{key:"exportLogs",value:function(){var e={};this.logs.forEach(function(t,n){e[n]=t});var t={logs:e,url:window.location.href,isAuthorMode:this.isAuthorMode,globalLoggingEnabled:this.globalLoggingEnabled,exportedAt:(new Date).toISOString()},n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"}),o=URL.createObjectURL(n),r=document.createElement("a");r.href=o;var i=(new Date).toISOString().replace(/[:.]/g,"-").split(".")[0];r.download="fmc-logs-".concat(i,".json"),r.click(),URL.revokeObjectURL(o)}},{key:"getStats",value:function(){var e=this,t={isAuthorMode:this.isAuthorMode,globalLoggingEnabled:this.globalLoggingEnabled,showLogsOnComponentEnabled:this.showLogsOnComponentEnabled,totalComponents:this.componentList.size,enabledComponents:this.enabledLogs.length,totalInstances:0,totalLogs:0,totalErrors:0,totalWarnings:0,logsByComponent:{}};return this.logs.forEach(function(n,o){var r=e.componentElements.has(o)?e.componentElements.get(o).size:0,i=n.filter(function(e){return"error"===e.type}).length,a=n.filter(function(e){return"warn"===e.type}).length;t.logsByComponent[o]={instances:r,logs:n.length,errors:i,warnings:a},t.totalInstances+=r,t.totalLogs+=n.length,t.totalErrors+=i,t.totalWarnings+=a}),t}}],t&&ve(e.prototype,t),n&&ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Se(e,t,n){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Te(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,g=i[2];n>3?(r=g===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<g&&(r=n<3||i[0]>o||o>g)&&(i[4]=n,i[5]=o,f.n=g,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,g){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,g),l=u,c=g;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Te(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Te(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Te(d,"constructor",s),Te(s,"constructor",c),c.displayName="GeneratorFunction",Te(s,r,"GeneratorFunction"),Te(d),Te(d,r,"Generator"),Te(d,o,function(){return this}),Te(d,"toString",function(){return"[object Generator]"}),(Ee=function(){return{w:i,m:f}})()}function Te(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Te=function(e,t,n,o){function i(t,n){Te(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Te(e,t,n,o)}function ke(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function xe(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){ke(i,o,r,a,l,"next",e)}function l(e){ke(i,o,r,a,l,"throw",e)}a(void 0)})}}function Me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fe(o.key),o)}}function Fe(e){var t=function(e,t){if("object"!=be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=be(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==be(t)?t:t+""}window.FMC=Object.assign(window.FMC||{},{Logger:new ye});var Oe=["page_tool","page_toolDescriptor","event_action"],_e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.applicationVariables={},this.pageAction={},this.jsonRegex=/{\(([.,a-zA-Z0-9_: \$]*)\)}/gm,this.firedOncePerVisitDirectActions=new Set,this.substitutions=new Map}return t=e,n=[{key:"shouldSkipOncePerVisitAction",value:function(e,t){return"once per visit"===e&&!!t&&this.firedOncePerVisitDirectActions.has(t)}},{key:"markOncePerVisitActionFired",value:function(e,t){"once per visit"===e&&t&&this.firedOncePerVisitDirectActions.add(t)}},{key:"isDtmLoaded",value:function(){return!!window._satellite}},{key:"waitForDtm",value:(a=xe(Ee().m(function e(){var t,n,o,r,i=arguments;return Ee().w(function(e){for(;;)switch(e.n){case 0:n=i.length>0&&void 0!==i[0]?i[0]:20,o=i.length>1&&void 0!==i[1]?i[1]:100,r=0;case 1:if(!(r<n)){e.n=4;break}if(!window._satellite){e.n=2;break}return e.a(2,!0);case 2:return e.n=3,new Promise(function(e){return setTimeout(e,o)});case 3:r++,e.n=1;break;case 4:return null===(t=window.FMC)||void 0===t||null===(t=t.Logger)||void 0===t||t.error("pmod-metrics","[launch.init] DTM library not loaded after "+n+" attempts."),e.a(2,!1)}},e)})),function(){return a.apply(this,arguments)})},{key:"getDatasetWithDollarPrefix",value:function(e){var t=null==e?void 0:e.dataset,n={};for(var o in t){var r;null!=t&&null!==(r=t.hasOwnProperty)&&void 0!==r&&r.call(t,o)&&(n["$".concat(o)]=t[o])}return n}},{key:"initializeButtons",value:function(){var e=this;this._buttonsInitialized||(this._buttonsInitialized=!0,document.body.addEventListener("click",function(){var t=xe(Ee().m(function t(n){var o,r,i;return Ee().w(function(t){for(;;)switch(t.n){case 0:if(o=n.target.closest("[data-ford-metrics-click]")){t.n=1;break}return t.a(2);case 1:return r=e.getDatasetWithDollarPrefix(o),i={},o.hasAttribute("data-ford-metrics-exclude-content-vars")&&(i.excludeVariables=Oe),t.n=2,e.fireDirect(o.getAttribute("data-ford-metrics-click"),r,i);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()))}},{key:"parseObject",value:function(e){if(e&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){var t;null===(t=window.FMC)||void 0===t||null===(t=t.Logger)||void 0===t||t.error("pmod-metrics","[launch.parseObject] -> Failed to parse object")}return e||null}},{key:"inheritMetricsPlanAction",value:function(e){var t,n,o,r=null===(t=window.FMC)||void 0===t||null===(t=t.context)||void 0===t||null===(t=t.metrics)||void 0===t?void 0:t.actions;if(!r)return console.warn("[pmod-metrics] Metrics plan not available (FMC.context.metrics.actions is undefined). Proceeding with original action."),e;var i,a,l=r.find(function(t){return t.name===e.name});if(!l&&/_copy\d*$/.test(e.name)){var c=e.name.replace(/_copy\d*$/,"");l=r.find(function(e){return e.name===c})}if(!l)return null===(i=window.FMC)||void 0===i||null===(i=i.Logger)||void 0===i||i.log("pmod-metrics","[launch.fireDirect] -> Author Action Not Found in Metrics Plan",{action:e,applicationVariables:this.applicationVariables,metricsPlan:null===(a=window.FMC)||void 0===a||null===(a=a.context)||void 0===a||null===(a=a.metrics)||void 0===a?void 0:a.actions}),e;var s=null!==(n=window.FMC)&&void 0!==n&&null!==(n=n.Metrics)&&void 0!==n&&n.Action?null===(o=new window.FMC.Metrics.Action(l))||void 0===o?void 0:o.variableList:null;if(s){var u,d,f,p,g,v={};for(var h in e.variables)s.hasOwnProperty(h)?"author"===s[h]&&(v[h]=e.variables[h]):v[h]=e.variables[h];for(var m in s)m in e.variables||"author"!==s[m]||(s[m]="");e=Ae(Ae({},e),{},{variables:Ae(Ae({},s),v),actionPath:"/content/na/".concat(null===(u=FMC)||void 0===u||null===(u=u.context)||void 0===u||null===(u=u.site)||void 0===u||null===(u=u.make)||void 0===u?void 0:u.toLowerCase(),"/").concat(null===(d=FMC)||void 0===d||null===(d=d.context)||void 0===d||null===(d=d.site)||void 0===d||null===(d=d.locale)||void 0===d?void 0:d.toLowerCase(),"/metrics.html#").concat(null===(f=e)||void 0===f?void 0:f.name),actionFrequency:(null===(p=l)||void 0===p?void 0:p.actionFrequency)||"",direct:(null===(g=l)||void 0===g?void 0:g.directAction)||e.direct})}return e}},{key:"fireDirect",value:(i=xe(Ee().m(function e(t,n){var o,r,i,a,l,c,s,u,d,f,p,g,v,h=arguments;return Ee().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o=h.length>2&&void 0!==h[2]?h[2]:{},t=this.parseObject(t),n=this.parseObject(n),r=Array.isArray(null==o?void 0:o.excludeVariables)?o.excludeVariables:[],e.p=1,null!==(i=t)&&void 0!==i&&i.name){e.n=2;break}return null===(c=window.FMC)||void 0===c||null===(c=c.Logger)||void 0===c||c.log("pmod-metrics","[launch.fireDirect] -> No Action Authored",{action:t,data:n,applicationVariables:this.applicationVariables}),e.a(2);case 2:if((t=this.inheritMetricsPlanAction(t)).direct||(t.direct=t.name),s=t.actionFrequency,u=t.direct,!this.shouldSkipOncePerVisitAction(s,u)){e.n=3;break}return null===(d=window.FMC)||void 0===d||null===(d=d.Logger)||void 0===d||d.log("pmod-metrics","[launch.fireDirect] -> Skipped direct action (once per visit already fired)",{action:t,data:n,applicationVariables:this.applicationVariables}),e.a(2);case 3:return window.digitaldata=this.getActionDigitalData(t,n,r),e.n=4,this.waitForDtm();case 4:if(e.v){e.n=5;break}return null===(f=window.FMC)||void 0===f||null===(f=f.Logger)||void 0===f||f.error("pmod-metrics","** DTM CALL DISABLED ** [launch.fireDirect] -> ",{action:t,data:n,applicationVariables:this.applicationVariables}),e.a(2);case 5:window._satellite.track(t.direct),this.markOncePerVisitActionFired(s,u),null===(a=window.FMC)||void 0===a||null===(a=a.Logger)||void 0===a||a.log("pmod-metrics","[launch.fireDirect] (direct) -> "+t.direct,{action:t,data:n,applicationVariables:this.applicationVariables}),null!==(l=t)&&void 0!==l&&l.secondary&&(window.digitaldata=this.getActionDigitalData(t,n,r),window._satellite.track(t.secondary),null===(p=window.FMC)||void 0===p||null===(p=p.Logger)||void 0===p||p.log("pmod-metrics","[launch.fireDirect] (secondary) -> "+t.secondary,{action:t,data:n,applicationVariables:this.applicationVariables})),e.n=7;break;case 6:e.p=6,v=e.v,null===(g=window.FMC)||void 0===g||null===(g=g.Logger)||void 0===g||g.error("pmod-metrics","[launch.fireDirect] Uncaught Exception",v,{action:t,data:n,applicationVariables:this.applicationVariables});case 7:return e.a(2)}},e,this,[[1,6]])})),function(e,t){return i.apply(this,arguments)})},{key:"formatMetricsSubstitutionValue",value:function(e){return e&&(e=(e=(e=(e
2=(e=e.toLowerCase()).replaceAll("&","and").replaceAll("&","and")).replaceAll(" "," ")).replace(/[^a-z0-9 /:-]/g," ")).trim()),e}},{key:"substituteMetricsValue",value:function(e,t){var n=this.getVariableValue.bind(this),o=this.formatMetricsSubstitutionValue.bind(this);return e?e.toString().replace(this.jsonRegex,function(e,r){var i=r.split(","),a=i[0],l=n(a,null,t);return null!=(l=o(l))&&""!==l?(i[1]||"")+l+(i[2]||""):""}):""}},{key:"getVariableValue",value:function(e,t,n){var o,r,i,a=null==t||null===(o=t.variables)||void 0===o?void 0:o[e];return a||(a=null==this||null===(r=this.pageAction)||void 0===r||null===(r=r.variables)||void 0===r?void 0:r[e]),a&&(a.includes("{("+e+")")||a.includes("{("+e+","))&&(a=this.checkForInfiniteRecursion(a,e)),!a&&null!=n&&n[e]&&(a=n[e]),"application"!==a&&a||(a=null==this||null===(i=this.applicationVariables)||void 0===i?void 0:i[e]),this.substituteMetricsValue(a,n)}},{key:"checkForInfiniteRecursion",value:function(e,t){var n;return null===(n=FMC)||void 0===n||null===(n=n.Logger)||void 0===n||n.log("pmod-metrics","Infinite Recursion Detected","Variable: "+t,"Authored Value: "+e),e=e.replaceAll("{("+t+")}","Invalid substitution").replaceAll("{("+t+",:)}","Invalid substitution")}},{key:"getActionDigitalData",value:function(e,t){var n,o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},a=[],l=Array.isArray(r)?r:[];return Object.keys(null==e?void 0:e.variables).forEach(function(n){if(!l.includes(n)){i[n]=o.getVariableValue(n,e,t);var r={Variable:n,Authored:e.variables[n],"Digital Data":i[n]};a.push(r)}}),null===(n=window.FMC)||void 0===n||null===(n=n.Logger)||void 0===n||n.table("pmod-metrics",a),this.getVariablesObject(i)}},{key:"getVariablesObject",value:function(e){var t={};return Object.keys(e).forEach(function(n){var o=we(n.split("_"),2),r=o[0],i=o[1],a=e[n];r&&i&&(t[r]=t[r]||{},t[r][i]=a)}),t}},{key:"registerSubstitutions",value:function(){var e,t;null!==(e=window.FMC)&&void 0!==e&&null!==(e=e.Metrics)&&void 0!==e&&null!==(e=e.Launch)&&void 0!==e&&e.setApplicationVariable?this.substitutions.forEach(function(e,t){try{window.FMC.Metrics.Launch.setApplicationVariable("".concat(t),e)}catch(e){var n;null===(n=window.FMC)||void 0===n||null===(n=n.Logger)||void 0===n||n.error("pmod-metrics","Error registering metric for ".concat(t,":"),e)}}):null===(t=window.FMC)||void 0===t||null===(t=t.Logger)||void 0===t||t.warn("pmod-metrics","FMC Metrics not available for registration")}},{key:"processSubstitutions",value:function(){var e=this;try{var t,n=null===(t=window.FMC)||void 0===t||null===(t=t.context)||void 0===t||null===(t=t.metrics)||void 0===t?void 0:t.substitutions;if(!n)return;var o=JSON.parse(n);Array.isArray(o)&&o.forEach(function(t){var n=we(t.split("="),2),o=n[0],r=n[1];o&&void 0!==r&&e.substitutions.set(o.trim(),r.trim())})}catch(e){var r;null===(r=window.FMC)||void 0===r||null===(r=r.Logger)||void 0===r||r.error("pmod-metrics","Error parsing substitutions:",e)}}},{key:"pageLoad",value:(r=xe(Ee().m(function e(t){var n,o,r,i,a=this;return Ee().w(function(e){for(;;)switch(e.n){case 0:if(o=t.applicationVariables,r=t.pageAction,o&&"object"===be(o)&&Object.keys(o).forEach(function(e){a.setApplicationVariable(e,o[e])}),this.pageAction=this.parseObject(r),null!==(n=this.pageAction)&&void 0!==n&&n.app&&(null===(i=window.FMC)||void 0===i||null===(i=i.Logger)||void 0===i||i.log("pmod-metrics","[launch.pageLoad] Metrics Page Load - "+this.pageAction.name,{applicationVariables:o,pageAction:this.pageAction})),!this.pageAction){e.n=1;break}return e.n=1,this.fireDirect(this.pageAction,null);case 1:this.initializeButtons(),this.processSubstitutions(),this.registerSubstitutions();case 2:return e.a(2)}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"setApplicationVariable",value:function(e,t){this.applicationVariables[e]=t}},{key:"setSearchMetricsVariables",value:function(e,t){this.setApplicationVariable("$searchTerm",e),this.setApplicationVariable("$typeahead",t)}},{key:"setDefaultApplicationVariables",value:function(){if(!this.applicationVariables.$sitePrefix){var t,n,o=e._sitePrefixMap||(e._sitePrefixMap={USFord:"fv",USLincoln:"ln",CAFord:"foc",CALincoln:"lnc",MXFord:"fmx",MXLincoln:"lmx",PRFord:"fpr",PRLincoln:"lpr",BZFord:"fblz",CRFord:"fcri",SVFord:"fslv",GTFord:"fgtm",HNFord:"fhnd",NIFord:"fnic",PAFord:"fpan",AGFord:"fatg",AWFord:"fabw",BSFord:"fbhs",BBFord:"fbrb",BMFord:"fbmu",KYFord:"fcym",CWFord:"fcuw",DMFord:"fdma",DOFord:"fdom",GDFord:"fgrd",GYFord:"fguy",HTFord:"fhti",JMFord:"fjam",LCFord:"flca",SXF
2ord:"fsxm",SRFord:"fsur",TTFord:"ftto",CAMFord:"fcam",CARFord:"fcar"}),r=null===(t=window.FMC)||void 0===t||null===(t=t.context)||void 0===t||null===(t=t.site)||void 0===t?void 0:t.country,i=null===(n=window.FMC)||void 0===n||null===(n=n.context)||void 0===n||null===(n=n.site)||void 0===n?void 0:n.make,a=o["".concat(r).concat(i)];a&&this.setApplicationVariable("$sitePrefix",a)}}}],n&&Me(t.prototype,n),o&&Me(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o,r,i,a}(),Ie=new _e;function Re(){var e,t,n=null!==(e=null===(t=window.FMC)||void 0===t||null===(t=t.Metrics)||void 0===t?void 0:t.Launch)&&void 0!==e?e:Ie;n.initializeButtons(),n.setDefaultApplicationVariables()}null!==(me=window.FMC)&&void 0!==me&&null!==(me=me.Metrics)&&void 0!==me&&me.Launch||(window.FMC=window.FMC||{},window.FMC.Metrics=Object.assign(window.FMC.Metrics||{},{Launch:Ie})),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Re):Re();var De=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Ne=new(function(){function e(e){void 0===e&&(e=2550);var t=this;this.categories=new Map,this.DEFAULT_TTL_MINUTES=60,this.GLOBAL_REGISTRY_KEY="globalCacheRegistry",this.registryCache=new Map,this.globalQuotaKB=e,localStorage.getItem(this.GLOBAL_REGISTRY_KEY)||localStorage.setItem(this.GLOBAL_REGISTRY_KEY,JSON.stringify([])),window.addEventListener("storage",function(e){e.key&&(e.key.endsWith("CacheRegistry")||e.key===t.GLOBAL_REGISTRY_KEY)&&t.registryCache.delete(e.key)})}return e.prototype.createCategory=function(e,t,n,o){void 0===t&&(t=512),void 0===n&&(n=this.DEFAULT_TTL_MINUTES),void 0===o&&(o="".concat(e,"Cache_"));var r={maxSizeKB:t,ttlMs:60*n*1e3,prefix:o,registryKey:"".concat(e,"CacheRegistry")};this.categories.set(e,r),localStorage.getItem(r.registryKey)||localStorage.setItem(r.registryKey,JSON.stringify([]))},e.prototype.store=function(e,t,n){var o=this.getCategory(e);if(!o)return!1;var r,i=o.prefix+t,a={data:n,timestamp:Date.now()};try{r=JSON.stringify(a)}catch(e){return console.error("Error serializing data for cache:",e),!1}var l=r.length;try{return this.enforceGlobalQuota(l),this.addToRegistry(o,i,l),this.addToGlobalRegistry(e,i,l),this.enforceCacheSizeLimit(o),localStorage.setItem(i,r),!0}catch(t){if(t instanceof DOMException&&("QuotaExceededError"===t.name||22===t.code)){console.warn("Storage quota exceeded, trying to make room..."),this.emergencyCleanup(l);try{return localStorage.setItem(i,r),!0}catch(e){return console.error("Failed to store item even after cleanup:",e),!1}}return console.error("Error storing cache in category ".concat(e,":"),t),!1}},e.prototype.retrieve=function(e,t){var n=this.getCategory(e);if(!n)return null;var o=n.prefix+t,r=localStorage.getItem(o);if(!r)return null;try{var i=JSON.parse(r);return Date.now()-i.timestamp>n.ttlMs?(this.remove(e,t),null):(this.updateLastAccessed(n,o),this.updateGlobalLastAccessed(e,o),i.data)}catch(n){return this.remove(e,t),null}},e.prototype.remove=function(e,t){var n=this.getCategory(e);if(!n)return!1;var o=n.prefix+t;return localStorage.removeItem(o),this.removeFromRegistry(n,o),this.removeFromGlobalRegistry(e,o),!0},e.prototype.clearCategory=function(e){var t=this,n=this.getCategory(e);return!!n&&(this.getCacheRegistry(n).forEach(function(n){localStorage.removeItem(n.key),t.removeFromGlobalRegistry(e,n.key)}),localStorage.setItem(n.registryKey,JSON.stringify([])),this.registryCache.delete(n.registryKey),!0)},e.prototype.getCategoryInfo=function(e){var t=this.getCategory(e);if(!t)return null;var n,o,r=this.getCacheRegistry(t),i=r.reduce(function(e,t){return e+t.size},0),a=1024*t.maxSizeKB;if(r.length>0){var l=Math.min.apply(Math,r.map(function(e){return e.timestamp}));n=Date.now()-l;var c=Math.min.apply(Math,r.map(function(e){return e.lastAccessed}));o=Date.now()-c}return{name:e,totalItems:r.length,usedSizeBytes:i,maxSizeBytes:a,usagePercentage:i/a*100,oldestItemAge:n,leastRecentlyUsed:o}},e.prototype.getGlobalStorageInfo=function(){var e=this.getGlobalRegistry(),t=this.getGlobalUsageBytes(),n=1024*this.globalQuotaKB,o=new Map;e.forEach(function(e){o.has(e.category)||o.set(e.category,{itemCount:0,bytes:0});var t=o.get(e.category);t.itemCount++,t.bytes+=e.size});var r=Array.from(o.entries()).map(function(e){var t=e[0],o=e[1];return{category:t,itemCount:o.itemCount,bytes:o.bytes,percentage:o.bytes/n*100}});return{usedSizeBytes:t,maxSizeBytes:n,usagePercentage:t/n*100,itemCount:e.length,categoryBreakdown:r}},e.prototype.setGlobalQuota=function(e){if(e<=0)throw new Error("Global quota must be greater than 0 KB");this.globalQuotaKB=e,this.enforceGlobalQuota(0)},e.prototype.createCacheKey=function(e,t){return"".concat(e,":").concat(t.filter(function(e){return void 0!==e}).join(":"))},e.prototype.emergencyCleanup=function(e){var t=this.getGlobalRegistry();
2t.sort(function(e,t){return e.lastAccessed-t.lastAccessed});for(var n=Math.max(2*e,.2*this.getGlobalUsageBytes()),o=0;o<n&&t.length>0;){var r=t.shift();if(r){localStorage.removeItem(r.key),o+=r.size;var i=this.getCategory(r.category);i&&this.removeFromRegistry(i,r.key)}}this.setGlobalRegistry(t)},e.prototype.getCategory=function(e){var t=this.categories.get(e);return t||(console.error('Cache category "'.concat(e,"\" doesn't exist. Create it first with createCategory().")),null)},e.prototype.getCacheRegistry=function(e){if(this.registryCache.has(e.registryKey))return De([],this.registryCache.get(e.registryKey),!0);var t=localStorage.getItem(e.registryKey);if(t)try{var n=JSON.parse(t);return this.registryCache.set(e.registryKey,n),De([],n,!0)}catch(e){return[]}return[]},e.prototype.setCacheRegistry=function(e,t){this.registryCache.set(e.registryKey,De([],t,!0)),localStorage.setItem(e.registryKey,JSON.stringify(t))},e.prototype.addToRegistry=function(e,t,n){var o=this.getCacheRegistry(e),r=Date.now(),i=o.findIndex(function(e){return e.key===t});-1!==i?o[i]={key:t,timestamp:r,size:n,lastAccessed:r}:o.push({key:t,timestamp:r,size:n,lastAccessed:r}),this.setCacheRegistry(e,o)},e.prototype.removeFromRegistry=function(e,t){var n=this.getCacheRegistry(e);n=n.filter(function(e){return e.key!==t}),this.setCacheRegistry(e,n)},e.prototype.updateLastAccessed=function(e,t){var n=this.getCacheRegistry(e),o=n.findIndex(function(e){return e.key===t});-1!==o&&(n[o].lastAccessed=Date.now(),this.setCacheRegistry(e,n))},e.prototype.enforceCacheSizeLimit=function(e){var t=this.getCacheRegistry(e),n=t.reduce(function(e,t){return e+t.size},0),o=1024*e.maxSizeKB;if(n>o){for(t.sort(function(e,t){return e.lastAccessed-t.lastAccessed});n>o&&t.length>0;){var r=t.shift();r&&(localStorage.removeItem(r.key),n-=r.size,this.removeFromGlobalRegistry(e.registryKey.replace("CacheRegistry",""),r.key))}this.setCacheRegistry(e,t)}},e.prototype.getGlobalRegistry=function(){if(this.registryCache.has(this.GLOBAL_REGISTRY_KEY))return De([],this.registryCache.get(this.GLOBAL_REGISTRY_KEY),!0);var e=localStorage.getItem(this.GLOBAL_REGISTRY_KEY);if(e)try{var t=JSON.parse(e);return this.registryCache.set(this.GLOBAL_REGISTRY_KEY,t),De([],t,!0)}catch(e){return[]}return[]},e.prototype.setGlobalRegistry=function(e){this.registryCache.set(this.GLOBAL_REGISTRY_KEY,De([],e,!0)),localStorage.setItem(this.GLOBAL_REGISTRY_KEY,JSON.stringify(e))},e.prototype.addToGlobalRegistry=function(e,t,n){var o=this.getGlobalRegistry(),r=Date.now(),i=o.findIndex(function(n){return n.key===t&&n.category===e});-1!==i?o[i]={key:t,category:e,timestamp:r,size:n,lastAccessed:r}:o.push({key:t,category:e,timestamp:r,size:n,lastAccessed:r}),this.setGlobalRegistry(o)},e.prototype.removeFromGlobalRegistry=function(e,t){var n=this.getGlobalRegistry();n=n.filter(function(n){return!(n.key===t&&n.category===e)}),this.setGlobalRegistry(n)},e.prototype.updateGlobalLastAccessed=function(e,t){var n=this.getGlobalRegistry(),o=n.findIndex(function(n){return n.key===t&&n.category===e});-1!==o&&(n[o].lastAccessed=Date.now(),this.setGlobalRegistry(n))},e.prototype.getGlobalUsageBytes=function(){return this.getGlobalRegistry().reduce(function(e,t){return e+t.size},0)},e.prototype.enforceGlobalQuota=function(e){var t=this.getGlobalRegistry(),n=this.getGlobalUsageBytes(),o=1024*this.globalQuotaKB;if(n+e>o){for(t.sort(function(e,t){return e.lastAccessed-t.lastAccessed});n+e>o&&t.length>0;){var r=t.shift();if(r){var i=this.getCategory(r.category);i&&(localStorage.removeItem(r.key),this.removeFromRegistry(i,r.key),n-=r.size)}}this.setGlobalRegistry(t)}},e}()),Pe=(n(271),function(e,t,n){void 0===n&&(n={});var o=n.days,r=void 0===o?7:o,i=n.path,a=void 0===i?"/":i,l=n.domain,c=void 0===l?window.location.hostname:l,s=n.secure,u=void 0===s?"https:"===window.location.protocol:s,d=n.sameSite,f=void 0===d?"Lax":d,p=n.encode,g=void 0===p||p,v=new Date;v.setTime(v.getTime()+24*r*60*60*1e3);var h=["".concat(e,"=").concat(g?encodeURIComponent(t):t),"expires=".concat(v.toUTCString()),"path=".concat(a),"domain=".concat(c)];u&&h.push("secure"),h.push("SameSite=".concat(f)),document.cookie=h.join("; ")}
2),Ue=[".ford.com",".ford.ca",".lincoln.com",".lincolncanada.com"],ze=function(){for(var e,t,n,o=0,r=Ue;o<r.length;o++){var i=r[o];if(null===(t=null===(e=window.location)||void 0===e?void 0:e.origin)||void 0===t?void 0:t.includes(i))return i}return null===(n=window.location)||void 0===n?void 0:n.hostname},je=function(e){return new URLSearchParams(window.location.search).get(e)};var Be=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},Ge=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},He=void 0,Ve=void 0,Ke=null,We="preferreddealer",Ye=function(){localStorage.setItem(We,JSON.stringify(He))},qe=function(){return null!=He||(He=function(){var e=localStorage.getItem(We);if(!e)return{};try{return JSON.parse(e)}catch(e){window.FMC.Logger.log("dealer-util","getStoredPreferredDealer - JSON Parse error",e)}return{}}()),He};document.addEventListener("zipCodeUpdated",function(){Ke=null});var Je,Qe=function(){return Be(void 0,void 0,void 0,function(){var e,t,n,o,r;return Ge(this,function(i){switch(i.label){case 0:return Ke?[2,Ke]:[4,mn(null!==(o=null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.make)&&void 0!==o?o:"",50,3,10,null===(r=Nt())||void 0===r?void 0:r.postalCode,void 0,pn()?"DirectDealers":"","true",void 0)];case 1:return[2,i.sent()]}})})},Xe="",$e="",Ze=!1,et=null,tt=function(e){return Be(void 0,void 0,void 0,function(){var t,n,o,r,i,a,l,c;return Ge(this,function(s){return t=je("dealer"),e=e||(null===(r=window.FMC.util.user.getLocation())||void 0===r?void 0:r.postalCode),n=qe(),o=JSON.stringify(n||{}),e===Xe&&$e===o&&Ve?[2,Ve]:e?Ze?(null===(c=null===(l=window.FMC)||void 0===l?void 0:l.Logger)||void 0===c||c.log("dealer-util","getClosestOrPreferredDealer - request already in progress"),[2,et]):(Ze=!0,et=Be(void 0,void 0,void 0,function(){var r,i,a,l,c,s,u,d,f;return Ge(this,function(p){switch(p.label){case 0:return p.trys.push([0,2,3,4]),Xe=e,$e=o,[4,Qe()];case 1:return r=p.sent(),(null===(c=null===(l=null==r?void 0:r.Response)||void 0===l?void 0:l.Dealer)||void 0===c?void 0:c.length)?t&&(i=r.Response.Dealer.find(function(e){return e.PACode===t}))?(Ve=i,He=i,Ye(),[2,Ve]):(null==n?void 0:n.PACode)&&(i=r.Response.Dealer.find(function(e){return e.PACode===n.PACode}))?[2,Ve=i]:[2,Ve=r.Response.Dealer[0]]:(null===(u=null===(s=window.FMC)||void 0===s?void 0:s.Logger)||void 0===u||u.log("dealer-util","getClosestOrPreferredDealer - no dealers returned"),[2,Ve||null]);case 2:return a=p.sent(),null===(f=null===(d=window.FMC)||void 0===d?void 0:d.Logger)||void 0===f||f.log("dealer-util","getClosestOrPreferredDealer - error",a),[2,Ve||null];case 3:return Ze=!1,[7];case 4:return[2]}})}),[2,et]):(null===(a=null===(i=window.FMC)||void 0===i?void 0:i.Logger)||void 0===a||a.log("dealer-util","getClosestOrPreferredDealer - no postal code available yet"),[2,Ve||null])})})};!function(e){e.Author="author",e.Dev="wwwdev",e.QA="wwwqa",e.Perf="wwwperf",e.Local="localhost",e.LocalInternal="internal",e.Preview="brandpreview"}(Je||(Je={}));var nt=function(){var e=window.location.origin,t=[];return(e.includes(Je.Author)||""!==window.location.port)&&t.push(Je.Author),e.includes(Je.Dev)&&t.push(Je.Dev),e.includes(Je.QA)&&t.push(Je.QA),e.includes(Je.Perf)&&t.push(Je.Perf),e.includes(Je.Preview)&&t.pu
2sh(Je.Preview),e.includes(Je.Local)&&t.push(Je.Local),e.includes(Je.LocalInternal)&&t.push(Je.LocalInternal),t},ot=function(){return nt().includes(Je.Author)},rt=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},it=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function at(e){try{var t=new URL(e,window.location.origin);t.origin===window.location.origin&&(window.location.href=t.href)}catch(e){}}var lt=function(e){return rt(void 0,void 0,void 0,function(){var t,n;return it(this,function(o){switch(o.label){case 0:return[4,gt(e)];case 1:return t=o.sent(),n=st(),[2,t!==n]}})})},ct=function(){return ot()?"/content/na/ford/en_us/local/":"/local/"},st=function(){var e,t,n=ct(),o=null===(t=null===(e=window.location.href.split(n)[1])||void 0===e?void 0:e.split("/")[0])||void 0===t?void 0:t.split(".")[0];return o&&vt(o)?o:null};var ut=je("bfnRedirect");setTimeout(function(){return rt(void 0,void 0,void 0,function(){var e;return it(this,function(t){switch(t.label){case 0:return pn()&&!ot()||ot()&&ut?(e=function(){return rt(void 0,void 0,void 0,function(){var e,t,n,o;return it(this,function(r){switch(r.label){case 0:return[4,tt()];case 1:return e=r.sent(),[4,gt(null==e?void 0:e.GeoKey)];case 2:return t=r.sent(),(null===(o=null===(n=window.FMC)||void 0===n?void 0:n.context)||void 0===o?void 0:o.tier2)&&(window.FMC.context.tier2.pageLoadDealer={dealer:e,region:t}),function(){var e,t,n,o,r,i,a,l,c,s,u,d;if(sessionStorage.getItem("locationVerificationDismissed"))return!1;var f=null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.util)||void 0===t?void 0:t.cookie)||void 0===n?void 0:n.get("FPI");if(f){var p=null===(i=null===(r=null===(o=window.FMC)||void 0===o?void 0:o.util)||void 0===r?void 0:r.url)||void 0===i?void 0:i.getQueryParams(f);if(null==p?void 0:p.zip)return!1}var g=document.querySelector(".cmp-location-verification-modal");if("true"===(null===(a=null==g?void 0:g.dataset)||void 0===a?void 0:a.locVerifyDisableModal))return!1;var v=(null===(s=null===(c=null===(l=window.FMC)||void 0===l?void 0:l.context)||void 0===c?void 0:c.tier2)||void 0===s?void 0:s.regionList)||[],h=ct(),m=null===(d=null===(u=window.location.href.split(h)[1])||void 0===u?void 0:u.split("/")[0])||void 0===d?void 0:d.split(".")[0];if(!m)return!1;var y=v.find(function(e){var t;return null===(t=e.regionPath)||void 0===t?void 0:t.endsWith(m)});return!0!==(null==y?void 0:y.disableLocationVerification)}()?[2]:(function(e){var t,n;if(e&&!window.location.href.includes(e)){var o=ct(),r=ot()?".html":"/",i=null===(n=null===(t=window.location.href.split(o)[1])||void 0===t?void 0:t.split("/")[0])||void 0===n?void 0:n.split(".")[0];vt(i)?at(window.location.href.replace(i,e)):at("".concat(window.location.origin).concat(o).concat(e).concat(r).concat(window.location.search))}}(t),[2])}})})},[4,e()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},0);var dt=function(){return rt(void 0,void 0,void 0,function(){var e;return it(this,function(t){switch(t.label){case 0:return[4,tt()];case 1:return[2,null==(e=t.sent())?void 0:e.GeoKey]}})})},ft=function(e){return rt(void 0,void 0,void 0,function(){var t;return it(this,function(n){switch(n.label){case 0:return e?[3,2]:[4,dt()];case 1:e=n.sent(),n.label=2;case 2:return[2,null===(t=null==e?void 0:e.split("|"))||void 0===t?void 0:t[0]]}})})},pt=function(e){return rt(void 0,void 0,void 0,function(){var t;return it(this,function(n){switch(n.label){case 0:return e?[3,2]:[4,dt()];case 1:e=n.sent(),n.label=2;case 2:return[2,null===(t=null==e?void 0:e.split("|"))||void 0===t?void 0:t[1]]}})})},gt=function(e){return rt(void 0,void 0,void 0,function(){var t,n,o,r,i,a,l,c,s,u,d,f,p;return it(this,function(g){switch(g.label){case 0:return window.FMC.Logger.log("dealer","getRegionFromGeoKey",e,null===(i=null===(r=null===(o=window.FMC)||void 0===o?void 0:o.context)||void 0===r?void 0:r.site)||void 0===i?void 0:i.location),[4,ft(e||(null===(s=null===(c=null===(l=null===(a=window.FMC)||void 0===a?void 0:a.context)||void 0===l?void 0:l.site)||void 0===c?void 0:c.location)||void 0===s?void 0:s.geoKey))];case 1:return t=g.sent(),[4,pt(e||(null===(p=null===(f=null===(d=null===(u=window.FMC)||void 0===u?void 0:u.context)||void 0===d?void 0:d.site)||void 0===f?void 0:f.location)||void 0===p?void 0:p.geoKey))];case 2:return"F71B"===(n=g.sent())&&"HI"===t?[2,"honolulu-aiea-kahului"]:[2,ht[n]]}})})};function vt(e){return Object.values(ht).includes(e)||"honolulu-aiea-kahului"===e}var ht={F48B:"detroit-ann-arbor-troy",F48G:"toledo-fort-wayne-south-bend",F27A:"baltimore-washington-dc",F13S:"paramus-bridgeport-white-plains",F13T:"paramus-bridgeport-white-plains",F11A:"boston-burlington-providence",F27B:"richmond-norfolk-roanoke",F13F:"albany-schenectady-saratoga-springs",F16A:"philadelphia-harrisburg-allentown",F31D:"charlotte-raleigh-greenville",F21A:"atlanta-birmingham-savannah",F24A:"tampa-orlando-jacksonville",F24B:"miami-fort-lauderdale-west-palm-beach",F41B:"chicago-cedar-rapids-quad-cities",F41C:"milwaukee-green-bay-madison",F47B:"cincinnati-columbus-indianapolis",F47A:"louisville-evansville-charleston-wv",F44B:"pittsburgh-johnstown-morgantown",F44C:"buffalo-erie-rochester",F58A:"minneapolis-sioux-falls-fargo",F44E:"cleveland-youngstown-canton",F52A:"el-paso-waco-midland",F52B:"tulsa-okc-lawton",F52C:"dallas-plano-arlington",F33G:"san-antonio-austin-corpus-christi",F33H:"houston-dickinson-spring",F53B:"kansas-city-omaha-wichita",F
253F:"st-louis-county-columbia-st-louis",F23A:"nashville-little-rock-memphis",F23B:"new-orleans-baton-rouge-lafayette",F70F:"phoenix-las-vegas-tucson",F56A:"denver-salt-lake-city-colorado-springs",F70E:"albuquerque-new-mexico",F72C:"san-francisco-sacramento-fresno",F74B:"portland-seattle-spokane",F71B:"san-diego-vista-carlsbad",F71A:"los-angeles",F48C:"grand-rapids-lansing-flint"},mt=function(){return mt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},mt.apply(this,arguments)},yt=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},bt=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},wt=null,Ct=null,Lt="FPI",At="userInfo",St="FPI",Et="Akamai",Tt="Url",kt="Default",xt="48120",Mt="L6J5E4",Ft=function(){var e,t,n;if(wt)for(var o=0,r=((0,window.FMC.util.cookie.get)(At)||"").split(",");o<r.length;o++){var i=r[o];if(i.startsWith("zip=")){wt.postalCode=i.substring(4,"CA"===(null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.country)?10:9),wt.postalCodeSource=Et;break}}},Ot=function(){var e,t,n,o,r,i;wt&&("CA"!==(null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.country)||(null==wt?void 0:wt.postalCode)&&/^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]\d[A-Za-z] *\d[A-Za-z]\d$/.test(wt.postalCode)?"US"!==(null===(i=null===(r=null===(o=window.FMC)||void 0===o?void 0:o.context)||void 0===r?void 0:r.site)||void 0===i?void 0:i.country)||(null==wt?void 0:wt.postalCode)&&/^\d{5}$/.test(wt.postalCode)||(wt.postalCode=xt,wt.postalCodeSource=kt):(wt.postalCode=Mt,wt.postalCodeSource=kt))};var _t=function(){if(wt={},pn()){var e=je("postalcode");e&&(wt={postalCode:e,postalCodeSource:Tt},t="postalcode",(n=new URL(window.location.href)).searchParams.delete(t),window.history.pushState({},"",n.toString())),wt.postalCode&&It(wt.postalCode).catch(function(e){var t,n;null===(n=null===(t=window.FMC)||void 0===t?void 0:t.Logger)||void 0===n||n.error("location-util","[getLocation]","Failed to update FPI cookie",e)})}var t,n;return wt.postalCode||function(){if(wt){var e=window.FMC.util.cookie.get,t=window.FMC.util.url.getQueryParams,n=e(Lt);if(n){var o=t(n);(null==o?void 0:o.zip)&&(wt.postalCode=o.zip,wt.postalCodeSource=St),(null==o?void 0:o.geoPACode)&&(wt.geoPACode=o.geoPACode)}}}(),wt.postalCode||Ft(),Ot(),Dt(wt.postalCode),mt({},wt)};document.addEventListener("DOMContentLoaded",function(){var e,t,n,o=null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.country;["US","CA"].includes(o)&&(_t(),function(){var e,t,n,o,r,i,a,l,c,s=(null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.make)||"",u=(null===(i=null===(r=null===(o=window.FMC)||void 0===o?void 0:o.context)||void 0===r?void 0:r.vehicle)||void 0===i?void 0:i.nasapiModelName)||"",d=(null===(c=null===(l=null===(a=window.FMC)||void 0===a?void 0:a.context)||void 0===l?void 0:l.vehicle)||void 0===c?void 0:c.modelYear)||"",f=ze(),p=Rt
2(Lt);if(p&&p.get("make")===s&&p.get("model")===u&&p.get("year")===d)return;var g=new URLSearchParams((null==p?void 0:p.toString())||"");g.set("html","false"),s&&g.set("make",s);u&&g.set("model",u);d&&g.set("year",d);Pe(Lt,g.toString(),{days:7,path:"/",domain:f,encode:!1})}())});var It=function(e){return yt(void 0,void 0,void 0,function(){var t,n,o,r,i,a,l,c,s,u,d,f,p,g,v,h,m,y,b,w;return bt(this,function(C){switch(C.label){case 0:return e?(t=(null===(g=null===(p=null===(f=window.FMC)||void 0===f?void 0:f.context)||void 0===p?void 0:p.site)||void 0===g?void 0:g.make)||"",n=(null===(m=null===(h=null===(v=window.FMC)||void 0===v?void 0:v.context)||void 0===h?void 0:h.vehicle)||void 0===m?void 0:m.nasapiModelName)||"",o=(null===(w=null===(b=null===(y=window.FMC)||void 0===y?void 0:y.context)||void 0===b?void 0:b.vehicle)||void 0===w?void 0:w.modelYear)||"",r=ze(),i=Rt(Lt),a=null==i?void 0:i.get("zip"),l=a!==e,i&&!l&&i.get("make")===t&&i.get("model")===n&&i.get("year")===o?[2]:((c=new URLSearchParams((null==i?void 0:i.toString())||"")).set("zip",e),c.set("html","false"),t&&c.set("make",t),n&&c.set("model",n),o&&c.set("year",o),Pe(Lt,c.toString(),{days:7,path:"/",domain:r,encode:!1}),l?[4,Dt(e)]:[3,6])):(null===(d=null===(u=window.FMC)||void 0===u?void 0:u.Logger)||void 0===d||d.warn("location-util","[updateFPICookie]","Attempted to update FPI cookie with invalid zipcode"),[2]);case 1:return C.sent(),(s=pn())?[4,lt()]:[3,3];case 2:s=C.sent(),C.label=3;case 3:return s?[4,rt(void 0,void 0,void 0,function(){var e,t,n,o;return it(this,function(r){switch(r.label){case 0:return e=st(),[4,gt()];case 1:return t=r.sent(),null===(o=null===(n=window.FMC)||void 0===n?void 0:n.Logger)||void 0===o||o.log("bfn-region-page-redirect","updateBFNRegionOnZipCodeUpdate",{urlRegion:e,newRegion:t}),t&&e&&t!==e&&vt(t)&&at(window.location.href.replace(e,t)),[2]}})})]:[3,5];case 4:return C.sent(),[3,6];case 5:L=new CustomEvent("zipCodeUpdated",{detail:{zipCode:e}}),document.dispatchEvent(L),C.label=6;case 6:return[2]}var L})})};function Rt(e){var t=document.cookie.split("; ").find(function(t){return t.startsWith(e+"=")});if(!t)return null;var n=decodeURIComponent(t.split("".concat(e,"="))[1]);return new URLSearchParams(n)}function Dt(e){var t,n,o,r,i,a,l,c,s,u,d,f,p,g,v;return yt(this,void 0,void 0,function(){var h,m,y,b,w,C,L;return bt(this,function(A){switch(A.label){case 0:return gn()?[2,Ct||{}]:[4,hn(e)];case 1:return h=A.sent(),(m=null===(t=null==h?void 0:h.Response)||void 0===t?void 0:t.PostalCode)?(Ct={},"CA"===window.FMC.context.site.country?Ct={geoKey:null===(i=null===(r=null==m?void 0:m.Provinces)||void 0===r?void 0:r.Province)||void 0===i?void 0:i.content,province:null===(l=null===(a=null==m?void 0:m.Provinces)||void 0===a?void 0:a.Province)||void 0===l?void 0:l.content,regions:null,regionDetails:null}:(y=Array.isArray(null===(c=null==m?void 0:m.Regions)||void 0===c?void 0:c.Region)?m.Regions.Region:[null===(s=null==m?void 0:m.Regions)||void 0===s?void 0:s.Region].filter(Boolean),Ct={geoKey:null==m?void 0:m.GeoKey,state:null===(d=null===(u=null==m?void 0:m.States)||void 0===u?void 0:u.State)||void 0===d?void 0:d.content,regions:y.reduce(function(e,t){return t&&t.type&&(e[t.type]=t.Code),e},{}),regionDetails:y.reduce(function(e,t){return t&&t.type&&(e[t.type]=t),e},{})}),(b=pn())?[4,lt(null==Ct?void 0:Ct.geoKey)]:[3,3]):(null===(o=null===(n=window.FMC)||void 0===n?void 0:n.Logger)||void 0===o||o.warn("location-util","[fetchNewPostalCodes]","Invalid response from getPostalCodes"),[2,Ct||{}]);case 2:b=A.sent(),A.label=3;case 3:if(b)return window.FMC.context.site.location=mt({},Ct),[2];if(!(w=e||(null==wt?void 0:wt.postalCode)))return[3,7];A.label=4;case 4:return A.trys.push([4,6,,7]),[4,tt(w)];case 5:return(C=A.sent())&&(Ct.closestDealer=C,Ct.paCode=C.PACode||""),[3,7];case 6:return L=A.sent(),null===(p=null===(f=window.FMC)||void 0===f?void 0:f.Logger)||void 0===p||p.error("location-util","[fetchNewPostalCodes]","Failed to get closest dealer",L),[3,7];case 7:return(null===(v=null===(g=window.FMC)||void 0===g?void 0:g.context)||void 0===v?void 0:v.site)&&e&&h&&(window.FMC.context.site.zipcode=e,window.FMC.context.site.location=mt({},Ct)),[2,mt({},Ct)]}})})}
2var Nt=_t,Pt=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},Ut=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function zt(e,t){void 0===t&&(t=300);var n=null,o=null;return function(){for(var r=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(o)return o;var l=new Promise(function(a,l){n&&clearTimeout(n),n=setTimeout(function(){n=null;try{e.apply(r,i).then(a,l).finally(function(){o=null})}catch(e){o=null,l(e)}},t)});return o=l,l}}var jt=new Map;var Bt=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},Gt=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Ht={size:64,ttl:60},Vt={size:64,ttl:60},Kt={size:384,ttl:60},Wt="/incentives/SpecialOffers.json",Yt="/geo/PostalCodes.json",qt="/dealer/Dealers.json",Jt="/competitive-compare/CompetitivePhotoCompare.json",Qt="/competitive-compare/CompetitiveCompare.json",Xt=250,$t=350,Zt=500,en="/cxservices",tn=new Map,nn=function(e,t,n){var o,r,i=t.filter(function(t){return!e[t]});if(i.length>0){var a="".concat(n,": Missing required parameters - ").concat(i.join(", "));throw null===(r=null===(o=window.FMC)||void 0===o?void 0:o.Logger)||void 0===r||r.error(a),new Error(a)}},on=function(e,t){return Ne.createCacheKey(e,t)},rn=function(e,t,n){return Bt(void 0,void 0,void 0,function(){var o,r,i;return Gt(this,function(a){return o="".concat(e,":").concat(t),tn.has(o)?[2,tn.get(o)]:(r=Ne.retrieve(e,t))?[2,r]:(i=n().then(function(n){return vn(n)&&Ne.store(e,t,n),n}).finally(function(){tn.delete(o)}),tn.set(o,i),[2,i])})})};function an(e,t){for(var n=cn(),o=new URL(e,n),r=0,i=Object.entries(t);r<i.length;r++){var a=i[r],l=a[0],c=a[1];void 0!==c&&o.searchParams.append(l,String(c))}return o.toString()}function ln(e){var t,n,o;return function(e,t){return Pt(this,void 0,void 0,function(){var n,o,r,i;return Ut(this,function(a){switch(a.label){case 0:if(jt.has(e))return[2,jt.get(e)];a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(e,t)];case 2:if(!(n=a.sent()).ok)throw window.FMC.Logger.error("[pmod-services]","Network response was not ok for: ".concat(e,". Status: ").concat(n.status)),new Error("HTTP error! Status: ".concat(n.status));return[4,n.text()];
2case 3:if(!(o=a.sent()))return window.FMC.Logger.warn("[pmod-services]","Empty response body for: ".concat(e)),[2,null];r=void 0;try{r=JSON.parse(o)}catch(t){throw window.FMC.Logger.error("[pmod-services]","Error parsing JSON for: ".concat(e,". Response text: ").concat(o),t),t}return window.FMC.Logger.log("[pmod-services]","Network request success. Endpoint: ".concat(e),{response:r}),jt.set(e,r),[2,r];case 4:throw i=a.sent(),window.FMC.Logger.error("[pmod-services]","Error fetching data from ".concat(e,":"),i),i;case 5:return[2]}})})}(e,{headers:{"application-id":je("nasapiappid")||(null===(o=null===(n=null===(t=window.FMC)||void 0===t?void 0:t.context)||void 0===n?void 0:n.site)||void 0===o?void 0:o.nasapiId)}})}function cn(){var e,t,n;return je("nasapidomain")||(null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.nasapiDomain)||window.location.origin}function sn(e,t){var n,o;try{var r=Nt(),i="".concat(en).concat(e);return!t.postalCode&&r.postalCode&&(t.postalCode=r.postalCode),ln(an(i,t))}catch(e){throw null===(o=null===(n=window.FMC)||void 0===n?void 0:n.Logger)||void 0===o||o.error("fetchDataFromEndpoint failed: ".concat(e)),e}}var un=null,dn=null,fn=function(){var e=window.location.href;return dn!==e&&(dn=e,un=e.includes("/local/")||e.includes("/local.html")?"T2":"ngbs_sploffr"),un},pn=function(){return"T2"===fn()},gn=function(){var e,t,n;return["ZA","AU","NZ","PH","TH","VN","KW","LB","OM","SA","QA","BH","IQ","AE","YE","JO"].includes(null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.country)},vn=function(e){var t;return"OK"===(null===(t=null==e?void 0:e.Response)||void 0===t?void 0:t.status)};Ne.createCategory("PostalCodes",Ht.size,Ht.ttl);var hn=zt(function(e){return Bt(void 0,void 0,void 0,function(){var t,n,o,r,i,a,l;return Gt(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),gn()?[2,void 0]:(e=e||Nt().postalCode,t=on("PostalCodes",[e,null===(i=null===(r=null===(o=window.FMC)||void 0===o?void 0:o.context)||void 0===r?void 0:r.site)||void 0===i?void 0:i.locale]),[4,rn("PostalCodes",t,function(){return sn(Yt,{postalCode:e})})]);case 1:return[2,c.sent()];case 2:throw n=c.sent(),null===(l=null===(a=window.FMC)||void 0===a?void 0:a.Logger)||void 0===l||l.error("getPostalCodes failed: ".concat(n)),n;case 3:return[2]}})})},Xt);Ne.createCategory("Dealers",Vt.size,Vt.ttl);var mn=zt(function(e,t,n,o,r,i,a,l,c){return Bt(void 0,void 0,void 0,function(){var s,u,d,f,p,g,v,h,m,y,b;return Gt(this,function(w){switch(w.label){case 0:return w.trys.push([0,2,,3]),nn({make:e,radius:t,minDealers:n,maxDealers:o},["make","radius","minDealers","maxDealers"],"getDealers"),s="en_us"!==(null===(g=null===(p=null===(f=window.FMC)||void 0===f?void 0:f.context)||void 0===p?void 0:p.site)||void 0===g?void 0:g.locale)?void 0:l,u=on("Dealers",[e,t,n,o,r,i,a,s,c,null===(m=null===(h=null===(v=window.FMC)||void 0===v?void 0:v.context)||void 0===h?void 0:h.site)||void 0===m?void 0:m.locale]),[4,rn("Dealers",u,function(){return sn(qt,{make:e,radius:t,minDealers:n,maxDealers:o,postalCode:r,prefDealerPACode:i,filter:a,fdafFilter:s,mobileDevice:c})})];case 1:return[2,w.sent()];case 2:throw d=w.sent(),null===(b=null===(y=window.FMC)||void 0===y?void 0:y.Logger)||void 0===b||b.error("getDealers failed: ".concat(d)),d;case 3:return[2]}})})},Zt);Ne.createCategory("CompetitiveCompare",Kt.size,Kt.ttl);zt(function(e,t){return Bt(void 0,void 0,void 0,function(){var n,o,r,i,a;return Gt(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),nn({baseVehicleId:e,compareVehicleIds:t},["baseVehicleId","compareVehicleIds"],"getCompetitivePhotoCompare"),n=Array.isArray(t)?t.join(";"):String(t),o=on("CompetitiveCompare",["photo",e,n]),[4,rn("CompetitiveCompare",o,function(){return sn(Jt,{baseVehicleId:e,compareVehicleIds:n})})];case 1:return[2,l.sent()];case 2:throw r=l.sent(),null===(a=null===(i=window.FMC)||void 0===i?void 0:i.Logger)||void 0===a||a.error("getCompetitivePhotoCompare failed: ".concat(r)),r;case 3:return[2]}})})},$t);zt(function(e,t){return Bt(void 0,void 0,void 0,function(){var n,o,r,i,a;return Gt(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),nn({baseVehicleId:e,compareVehicleIds:t},["baseVehicleId","compareVehicleIds"],"getCompetitiveCompare"),n=Array.isArray(t)?t.join(";"):String(t),o=on("CompetitiveCompare",["general",e,n]),[4,rn("CompetitiveCompare",o,function(){return sn(Qt,{baseVehicleId:e,compareVehicleIds:n})})];case 1:return[2,l.sent()];case 2:throw r=l.sent(),null===(a=null===(i=window.FMC)||void 0===i?void 0:i.Logger)||void 0===a||a.error("getCompetitiveCompare failed: ".concat(r)),r;case 3:return[2]}})})},$t);var yn,bn=new(function(){function e(){this.eventHandlers=new Map,this.throttledEvents=new Map}return e.prototype.on=function(e,t,n){var o=this,r=(null==n?void 0:n.target)||document;this.eventHandlers.has(e)||this.eventHandlers.set(e,new Map);var i=this.eventHandlers.get(e);if(i.has(r)||(i.set(r,new Set),r.addEventListener(e,function(t){o.dispatch(e,r,t)})),i.get(r).add(t),null==n?void 0:n.throttle){var a="".concat(e.toString(),"_").concat(r===window?"window":"document");this.throttledEvents.set(a,{timer:null,delay:n.throttle})}},e.prototype.off=function(e,t,n){void 0===n&&(n=document);var o=this.eventHandlers.get(e);if(o){var r=o.get(n);r&&r.delete(t)}},e.prototype.dispatch=function(e,t,n){var o=this.eventHandlers.get(e);if(o){var r=o.get(t);if(r){var i="".concat(e,"_").concat(t===window?"window":"document"),a=this.throttledEvents.get(i);a?null===a.timer&&(this.executeHandlers(r,n),a.timer=window.setTimeout(function(){a.timer=null},a.delay)):this.executeHandlers(r,n)}}},e.prototype.executeHandlers=function(e,t){e.forEach(function(e){try{e(t)}catch(e){console.error("Error in event handler:",e)}})},e.prototype.destroy=function(){this.eventHandlers.clear(),this.throttledEvents.clear()},e}());!function(e){e.MOBILE="mobile",e.TABLET="tablet",e.DESKTOP="desktop"}(yn||(yn={}));var wn=768,Cn=991,Ln="deviceTypeChanged",An=null,Sn=new Set;var En=function(){return window.matchMedia("(max-width: ".concat(wn,"px)")).matches},Tn=function(){return!En()&&window.matchMedia("(max-width: ".concat(Cn,"px)")).matches},kn=function(){return En()?yn.MOBILE:Tn()?yn.TABLET:yn.DESKTOP};function xn(){var e=kn();return{width:window.innerWidth,height:window.innerHeight,deviceType:e,isMobile:e===yn.MOBILE,isTablet:e===yn.TABLET,isDesktop:e===yn.DESKTOP}}"undefined"!=typeof window&&(An=kn(),bn.on("resize",function(){var e=xn(),t=e.deviceType;if(Sn.forEach(function(t){try{t(e)}catch(e){console.error("Error in resize callback:",e)}}),t!==An){var n=An;An=t;var o={oldDeviceType:n,newDeviceType:t,width:e.width,height:e.height},r=new CustomEvent(Ln,{detail:o});document.dispatchEvent(r)}},{throttle:100,target:window}));n(621);var Mn=function(){return Mn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Mn.apply(this,arguments)},Fn="FMC inAppBrowser",On="fmc-inapp-browser-banner",_n="fmc_inapp_banner_dismissed",In={bannerTextAndroid:"For the best experience, open this page in y
2our browser.",openInBrowser:"Open in browser",bannerTextIos:"For the best experience, open this page in Safari.",copyLink:"Copy link",copied:"Copied!",copyFailed:"Copy failed",dismiss:"Dismiss"};var Rn=[/FBAN|FBAV|FB_IAB|FBIOS/i,/Instagram/i,/Twitter(?!bot)/i,/musical_ly|BytedanceWebview/i,/LinkedInApp/i,/Snapchat/i,/Pinterest/i,/MicroMessenger/i,/ Line\//i,/GSA\//i];function Dn(e,t){if(!document.getElementById(On)&&!function(){try{return"1"===sessionStorage.getItem(_n)}catch(e){return!1}}()){var n=function(){var e,t,n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.inAppBrowser)||void 0===t?void 0:t.strings;if(!n)return In;var o=Mn({},In);return Object.keys(In).forEach(function(e){var t=n[e];"string"==typeof t&&""!==t.trim()&&(o[e]=t)}),o}(),o=document.createElement("div");o.id=On,o.setAttribute("role","alert"),o.setAttribute("aria-live","polite"),Object.assign(o.style,{position:"fixed",top:"0",left:"0",right:"0",zIndex:"99999",backgroundColor:"#003478",color:"#ffffff",padding:"12px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px",fontFamily:"inherit",fontSize:"14px",lineHeight:"1.4",boxSizing:"border-box"});var r=document.createElement("span");if(t){r.textContent=n.bannerTextIos;var i=document.createElement("button");i.type="button",i.textContent=n.copyLink,Object.assign(i.style,{background:"none",border:"1px solid #ffffff",borderRadius:"4px",color:"#ffffff",fontWeight:"600",fontSize:"13px",cursor:"pointer",padding:"4px 10px",whiteSpace:"nowrap",flexShrink:"0"}),i.addEventListener("click",function(){navigator.clipboard.writeText(window.location.href).then(function(){var e,t;i.textContent=n.copied,setTimeout(function(){i.textContent=n.copyLink},2e3),null===(t=null===(e=window.FMC)||void 0===e?void 0:e.Logger)||void 0===t||t.log(Fn,"URL copied to clipboard")}).catch(function(){i.textContent=n.copyFailed,setTimeout(function(){i.textContent=n.copyLink},2e3)})}),r.appendChild(document.createTextNode("Â ")),r.appendChild(i)}else{r.textContent=n.bannerTextAndroid;var a=e&&/^intent:/i.test(e)?e:null;if(a){var l=document.createElement("a");l.setAttribute("href",a),l.textContent=n.openInBrowser,Object.assign(l.style,{color:"#ffffff",fontWeight:"600",textDecoration:"underline",whiteSpace:"nowrap",flexShrink:"0"}),r.appendChild(document.createTextNode("Â ")),r.appendChild(l)}}var c=document.createElement("button");c.type="button",c.setAttribute("aria-label",n.dismiss),c.textContent="Ã",Object.assign(c.style,{background:"none",border:"none",color:"#ffffff",fontSize:"20px",lineHeight:"1",cursor:"pointer",padding:"0 4px",flexShrink:"0"}),c.addEventListener("click",function(){var e,t;o.remove(),function(){try{sessionStorage.setItem(_n,"1")}catch(e){}}(),null===(t=null===(e=window.FMC)||void 0===e?void 0:e.Logger)||void 0===t||t.log(Fn,"Banner dismissed")},{once:!0}),o.appendChild(r),o.appendChild(c),document.body.insertBefore(o,document.body.firstChild)}}!function(){var e,t,n,o,r,i;if(!ot()&&(a=navigator.userAgent,Rn.some(function(e){return e.test(a)}
2))){var a,l=window.location.href,c=function(){var e=navigator.userAgent;return/iPhone|iPad|iPod/i.test(e)?"ios":/Android/i.test(e)?"android":null}();if(null===(t=null===(e=window.FMC)||void 0===e?void 0:e.Logger)||void 0===t||t.log(Fn,"In-app browser detected (OS: ".concat(null!=c?c:"unknown",")")),"android"===c||"ios"===c){var s="android"===c?function(e){if(!/^https?:\/\//i.test(e))return null;var t;try{t=new URL(e)}catch(e){return null}var n="".concat(t.host).concat(t.pathname).concat(t.search),o=encodeURIComponent(e);return"intent://".concat(n,"#Intent;scheme=https;package=com.android.chrome;S.browser_fallback_url=").concat(o,";end")}(l):null,u="ios"===c;if("android"===c&&s)try{window.location.replace(s)}catch(e){null===(i=null===(r=window.FMC)||void 0===r?void 0:r.Logger)||void 0===i||i.log(Fn,"Android intent redirect threw â banner only",e)}var d=function(){return Dn(s,u)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d,{once:!0}):d()}else null===(o=null===(n=window.FMC)||void 0===n?void 0:n.Logger)||void 0===o||o.log(Fn,"In-app browser on non-mobile OS detected â no redirect applied")}}();var Nn=function(e){var t,n=window.FMC.context.site.country,o=window.FMC.util.cookie.get,r=window.FMC.util.url.getQueryParams,i=!0;if(n&&"US"===n){var a=o("OptanonConsent");if(a){var l=r(a,!1)||{};if(l&&Object.hasOwn(l,"groups")){var c=null===(t=l.groups)||void 0===t?void 0:t.split(",");c&&c.indexOf("".concat(e,":0"))>=0&&(i=!1)}}}return i},Pn=(n(389),function(){var e,t,n=null===(e=window.FMC.context.header)||void 0===e?void 0:e.medalliaFormId;if(n)try{(null===(t=window.KAMPYLE_ONSITE_SDK)||void 0===t?void 0:t.showForm)?window.KAMPYLE_ONSITE_SDK.showForm(n):window.FMC.Logger.error("FMC external","KAMPYLE_ONSITE_SDK is not on the global scope.")}catch(e){window.FMC.Logger.error("FMC external","Error triggering the Medallia comment card.")}else window.FMC.Logger.error("FMC external","No Medallia Form Id authored.")});var Un="fmc:util-ready";window.FMC.util={cookie:{get:function(e){for(var t=0,n=document.cookie.split(";");t<n.length;t++){var o=n[t].trim();if(o.startsWith("".concat(e,"="))){var r=o.substring(e.length+1);return decodeURIComponent(r)}}return null},set:Pe,delete:function(e,t,n){void 0===t&&(t="/"),void 0===n&&(n=window.location.hostname),Pe(e,"",{days:-1,path:t,domain:n})}},services:{postalCodes:hn,dealers:mn,specialOffers:function(e,t,n,o,r,i){return Bt(void 0,void 0,void 0,function(){var a,l,c,s,u,d,f,p,g,v,h,m,y,b,w,C;return Gt(this,function(L){try{return r||(r=fn()),e=e||(null===(s=null===(c=null===(l=window.FMC)||void 0===l?void 0:l.context)||void 0===c?void 0:c.site)||void 0===s?void 0:s.make),t=t||(null===(f=null===(d=null===(u=window.FMC)||void 0===u?void 0:u.context)||void 0===d?void 0:d.vehicle)||void 0===f?void 0:f.nasapiModelName),n=n||(null===(v=null===(g=null===(p=window.FMC)||void 0===p?void 0:p.context)||void 0===g?void 0:g.vehicle)||void 0===v?void 0:v.modelYear),i=i||(null===(b=null===(y=null===(m=null===(h=window.FMC)||void 0===h?void 0:h.context)||void 0===m?void 0:m.site)||void 0===y?void 0:y.language)||void 0===b?void 0:b.toUpperCase()),nn({make:e,model:t,year:n,language:i},["make","model","year","language"],"getSpecialOffers"),a="specialOffers:".concat(e,":").concat(t,":").concat(n,":").concat(o||"",":").concat(r,":").concat(i),[2,(A=a,S=function(){return sn(Wt,{appContext:r,make:e,model:t,year:n,postalCode:o,language:i})},Bt(void 0,void 0,void 0,function(){var e;return Gt(this,function(t){return tn.has(A)?[2,tn.get(A)]:(e=S().finally(function(){tn.delete(A)}),tn.set(A,e),[2,e])})}))]}catch(e){return null===(C=null===(w=window.FMC)||void 0===w?void 0:w.Logger)||void 0===C||C.error("getSpecialOffers failed: ".concat(e)),[2,void 0]}var A,S})})}},parameters:{encode:function(e,t){var n=[];Object.keys(e).forEach(function(t){n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]))});var o=n.join("&");if(t){var r=[],i=Math.floor(223*Math.random()+33);r.push(String.fromCharCode(i));for(var a=0;a<o.length;a++)i=o.charCodeAt(a)^255&i,r.push(String.fromCharCode(i));
2o=btoa(r.join(""))}return o},decode:function(e){var t={};return(e||"").split("&").forEach(function(e){var n=e.indexOf("=");n>=0&&(t[decodeURIComponent(e.substring(0,n))]=decodeURIComponent(e.substring(n+1)))}),t}},url:{getQueryParams:function(e,t){void 0===t&&(t=!0);var n=t&&e.startsWith("?")?e.slice(1):e,o=new URLSearchParams(n),r={};return o.forEach(function(e,t){r[t]=e||null}),r},toQueryString:function(e){return Object.entries(e).map(function(e){var t=e[0],n=e[1];return null==n?"":Array.isArray(n)?n.map(function(e){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))}).join("&"):"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n))}).filter(function(e){return""!==e}).join("&")}},user:{getLocation:Nt,fetchNewPostalCodes:Dt,updateFPICookie:It},external:{showCommentCard:Pn},lang:{handleLanguageChange:function(e){e.preventDefault();window.FMC.util.cookie.set;var t=e.target,n=t;"A"!==t.tagName&&(n=t.closest("a"));var o,r,i=n.dataset.languageCode,a=n.dataset.languageDomain;i&&a&&(Pe("lang",i,{days:30,path:"/",domain:(o=a,r=o.split("."),r.length>2?".".concat(r.slice(-2).join(".")):".".concat(r.join("."))),encode:!1}),window.location.assign(function(e){var t=window.location.pathname;"/"===t&&(t="");var n="";if(!t.startsWith("/content/"))return(n=t).endsWith(".html")&&(n=n.slice(0,-5)),n.length>0&&!n.endsWith("/")&&(n+="/"),"//".concat(e).concat(n).concat(window.location.search);for(var o=t.split("/"),r=5;r<o.length;r++)n+="/",n+=o[r]}("//".concat(a))))},loadMCPSalesforce:function(){var e,t,n,o,r,i,a,l;if("US"===(null===(n=null===(t=null===(e=window.FMC)||void 0===e?void 0:e.context)||void 0===t?void 0:t.site)||void 0===n?void 0:n.country)){var c=null===(i=null===(r=null===(o=window.FMC)||void 0===o?void 0:o.context)||void 0===r?void 0:r.salesforce)||void 0===i?void 0:i.mcpConfigUrl;if(c){if(/^(https:)?\/\/cdn\.evgnet\.com\//.test(c))if(Nn("4")){var s=document.getElementById("mcp-salesforce");if(!s){(s=document.createElement("script")).id="mcp-salesforce",s.async=!0,s.src=de.sanitize(c);var u=document.getElementsByTagName("script")[0];u&&u.parentNode.insertBefore(s,u)}}else null===(l=window.FMC.Logger)||void 0===l||l.log("FMC lang","MCP Salesforce script not loaded due to privacy settings");else null===(a=window.FMC.Logger)||void 0===a||a.log("FMC lang","MCP Salesforce script blocked â URL does not match allowed pattern")}}},loadMotionPoint:function(){var e=window.FMC.context.header.mpEasyLinkUrlFord;Nn("1")||window.FMC.Logger.log("FMC lang","MotionPoint library not loaded due to privacy settings");var t=document.getElementById("mpelid");if(e&&!t){(t=document.createElement("script")).id="mpelid",t.async=!0,t.src=e;var n=document.getElementsByTagName("script")[0];n&&(n.parentNode.insertBefore(t,n),window.mp_var={SrcUrl:decodeURIComponent("mp_js_orgin_url"),UrlLang:"mp_js_current_lang",oSite:decodeURIComponent("mp_js_origin_baseUrl"),tSite:decodeURIComponent("mp_js_translated_baseUrl")})}}},device:{isMobile:En,isTablet:Tn,isDesktop:function(){return!En()&&!Tn()},isMobileDevice:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},getDeviceType:kn}},document.dispatchEvent(new CustomEvent(Un))}()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.