eex-gateway.fr011.ttecfed.com
Open in
urlscan Pro
208.95.152.110
Public Scan
URL:
https://eex-gateway.fr011.ttecfed.com/code/19.18.0-fs/fs.utils.js
Submission Tags: falconsandbox
Submission: On December 02 via api from US — Scanned from US
Submission Tags: falconsandbox
Submission: On December 02 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
/*************************************** * @preserve * Copyright (c) 2022 Verint Systems, Inc. All rights reserved. * ForeSee Web SDK: Utils Library * Version: 19.18.0 * Built: September 30, 2022 at 10:15:46 CDT ***************************************/ _fsDefine(["fs",_fsNormalizeUrl("$fs.compress.js"),"exports"],(function(e,t,i){var n=window,r=n.document,s=!!n.sessionStorage,o=r.getElementsByTagName("head"),a=n.sessionStorage;o=o&&o.length>0?o[0]:r.body;try{s&&(a.setItem("_",""),a.removeItem("_"))}catch(Ie){s=!1}var c=function(t,i){var n,r,s,o;for(e.isNodeList(t)||e.isArray(t)||(t=[t]),i=i.trim().split(" "),n=0,r=t.length;n<r;n++)if(o=t[n],e.isElement(o))for(s=0;s<i.length;s++)o.classList.add(i[s])},l=function(t,i){var n,r,s,o;for(e.isNodeList(t)||e.isArray(t)||(t=[t]),i=i.trim().split(" "),n=0,r=t.length;n<r;n++)if(o=t[n],e.isElement(o))for(s=0;s<i.length;s++)o.classList.remove(i[s])},u=function(t,i){return e.isElement(t)&&t.classList&&t.classList.contains(i)},d=function(e,t){return e.contains?e.contains(t):!!e.documentElement&&e.documentElement.contains(t)},f={},h={},g=[],p=function(e){var t="default";if(e.indexOf(":")>-1){var i=e.split(":");t=i[0],e=i[1]}return h[t]||(h[t]={}),h[t][e]||(h[t][e]=[]),{ns:t,en:e}},v=function(t,i,s,o){if(t&&i){if(e.isArray(i))return void i.forEach((function(e){f.Bind.call(null,t,e,s,o)}));var a=p(i);if(h[a.ns][a.en].push({elem:t,cb:s,ub:o||!1}),i.indexOf("unload")>-1&&(t===n||t===r))return void g.push(s);t._zone$addEventListener?t._zone$addEventListener(a.en,s,"boolean"==typeof o||null==o?!o:o):t.__zone_symbol__addEventListener?t.__zone_symbol__addEventListener(a.en,s,"boolean"==typeof o||null==o?!o:o):"propertychange"!=a.en&&t.addEventListener?t.addEventListener(a.en,s,"boolean"==typeof o||null==o?!o:o):t.attachEvent&&t.attachEvent("on"+a.en,s)}};f.Bind=v;var m=function(t,i,n,r){if(t&&i){if(e.isArray(i))return void i.forEach((function(e){f.BindOnce.call(null,t,e,n,r)}));f.Bind(t,i,(function e(){f.Unbind(t,i,e,r),n.apply(this,arguments)}),r)}};f.BindOnce=m;function y(t,i,n,r){var s,o,a,c;if(e.isArray(i))i.forEach((function(e){f.Unbind.call(null,t,e,n,r)}));else{if(i&&i.indexOf("unload")>-1)for(c=0;c<g.length;c++)if(g[c]==n)return void g.splice(c,1);if(0===arguments.length)for(var l in h)f.Unbind(l+":*"),delete h[l];else if("string"==typeof t){if("default"==(s=p(t)).ns){for(var u in h)if(e.hasProp(h,u))for(var d in o=h[u])if(e.hasProp(o,d)&&(d==s.en||"*"==s.en))for(c=0;c<o[d].length;c++)a=o[d][c],f._runActualUnBind(d,a.elem,a.cb,a.ub),o[d].splice(c--,1)}else for(var v in o=h[s.ns])if(e.hasProp(o,v)&&(v==s.en||"*"==s.en))for(c=0;c<o[v].length;c++)a=o[v][c],f._runActualUnBind(v,a.elem,a.cb,a.ub),o[v].splice(c--,1)}else if(t&&!i){for(var m in h)if(e.hasProp(h,m))for(var y in o=h[m])if(e.hasProp(o,y))for(c=0;c<o[y].length;c++)(a=o[y][c]).elem===t&&(f._runActualUnBind(y,a.elem,a.cb,a.ub),o[y].splice(c--,1))}else if(t&&i)if("default"==(s=p(i)).ns){for(var b in h)if(e.hasProp(h,b))for(var _ in o=h[b])if(e.hasProp(o,_)&&(_==s.en||"*"==s.en))for(c=0;c<o[_].length;c++)(a=o[_][c]).elem===t&&(f._runActualUnBind(_,a.elem,n||a.cb,a.ub),o[_].splice(c--,1))}else for(var S in s=p(i),o=h[s.ns])if(e.hasProp(o,S)&&(S==s.en||"*"==s.en))for(c=0;c<o[S].length;c++)(a=o[S][c]).elem===t&&(f._runActualUnBind(S,a.elem,n||a.cb,a.ub),o[S].splice(c--,1))}}f._runActualUnBind=function(e,t,i,n){t&&(t.parentNode||t.window||9==t.nodeType)&&(t._zone$removeEventListener?t._zone$removeEventListener(e,i,!n):t.__zone_symbol__removeEventListener?t.__zone_symbol__removeEventListener(e,i,!n):"propertychange"!=e&&t.removeEventListener?t.removeEventListener(e,i,!n):t.detachEvent&&t.detachEvent("on"+e,i))},f.Unbind=y;var b=!1,_=function(){if(!b){for(var t=g.length-1;t>=0;t--)try{g[t].call()}catch(Ie){}e.dispose(g),f.Unbind()}};r.addEventListener?(n.addEventListener("beforeunload",_,!0),n.addEventListener("pagehide",_,!0),r.addEventListener("unload",_,!0)):r.attachEvent&&n.attachEvent("onunload",_);var S=function(e){return e instanceof KeyboardEvent&&"string"==typeof e.key?" "==e.key?"spacebar":e.key.toLowerCase():""},w=["shift","meta","alt","escape","control","apps","capslock"],k=function(){function e(){this.id="_"+Math.round(99999*Math.random()),this.subscriptions=[],this.didFire=!1}var t=e.prototype;return t.subscribe=function(e,t,i){return this.subscriptions.push({once:!!t,cb:e}),i&&this.didFire&&(this.prevArgs?this.fire.apply(this,this.prevArgs):this.fire()),{unsubscribe:(n=this,r=e,function(){n.unsubscribe(r)})};var n,r},t.unsubscribe=function(e){for(var t=0;t<this.subscriptions.length;t++)this.subscriptions[t].cb==e&&(this.subscriptions.splice(t,1),t--)},t.unsubscribeAll=function(){this.subscriptions=[]},t.fire=function(){this.didFire=!0,this.prevArgs=arguments;for(var e=0;e<this.subscriptions.length;e++){var t=this.subscriptions[e];t.once&&this.subscriptions.splice(e--,1),t.cb.apply(this,arguments)}},t.chain=function(t,i,n){t&&t.constructor===e&&t.subscribe(function(){this.fire.apply(this,arguments)}.bind(this),i,n)},e}(),C=new k;if(history&&history.pushState){n.addEventListener("popstate",(function(){b||C.fire()}));var I=history.pushState;history.pushState=function(){I.apply(history,arguments),b||C.fire()}}var O=function(){function t(e,t,i){this.url=e,this.instcfg=t,this.deviceType=i}var i=t.prototype;return i.show=function(){var e=this.generateModalStyleTag();o.appendChild(e);var t=this.generateModalHTML();r.body.appendChild(t)},i.remove=function(){var e=r.querySelector(".fsr-modal-backdrop");e&&e.parentNode.removeChild(e)},i.generateModalHTML=function(){var t=this,i=r.createElement("div");i.className="fsr-modal-backdrop",i.addEventListener("click",this.remove);var n=r.createElement("div");n.className="fsr-modal-wrapper";var s=r.createElement("div");s.className="fsr-modal-top",s.role="presentation";var o=r.createElement("img");o.src=e.makeURI("$templates/feedback/"+(this.instcfg.template||"default")+"/closeBtn.svg"),o.className="fsr-modal-close-button",o.alt="Close Button",o.tabIndex="0",o.role="button",o.addEventListener("click",this.remove),o.addEventListener("keypress",(function(e){13===(window.event?e.which:e.keyCode)&&t.remove()})),s.appendChild(o);var a=r.createElement("iframe");a.className="fsr-modal-iframe",a.src=this.url;var c=r.createElement("script"),l=r.createTextNode('\n let iframe = document.querySelector(".fsr-modal-iframe");\n \n window.addEventListener(\'message\', function(e) {\n // message that was passed from iframe page\n let message = e.data;\n \n if (message.height) iframe.style.height = \'min(\'+message.height+\',\'+(window.innerHeight*.8)+\'px)\';\n // if (message.width) iframe.style.width = message.width;\n if (message.moveXButton) {\n const xContainer = document.querySelector(".fsr-modal-top");\n xContainer.style.display = "inline";\n xContainer.style.position = "absolute";\n xContainer.style.top = message.moveXButton.top || "-1.5rem";\n xContainer.style.right = message.moveXButton.right || 0;\n }\n } , false);\n ');return c.appendChild(l),i.appendChild(n),n.appendChild(s),n.appendChild(a),n.appendChild(c),this._trapKeyBoard(i,o),i},i.generateModalStyleTag=function(){var e=this.deviceType,t=this.instcfg&&this.instcfg.active_surveydef&&this.instcfg.active_surveydef.display||{},i=t[e]&&t[e][0]||{},n=1.1*i.popupWindowWidth||768,s=1.125*i.popupWindowHeight||450,o=i.modalPosition||"",a=!1,c=!1,l=!1,u=!1,d="0%",f="0%";o&&(o.indexOf("top")>-1&&(l="1rem"),o.indexOf("bottom")>-1&&(u="1rem"),o.indexOf("left")>-1&&(a="1rem"),o.indexOf("right")>-1&&(c="1rem")),l||u||(l="50%",f="-50%"),a||c||(a="50%",d="-50%");var h="\n .fsr-modal-backdrop {\n position: fixed;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n background-color: rgba(52, 57, 65, 0.85);\n z-index: 2000202;\n }\n \n .fsr-modal-wrapper {\n position: absolute;\n "+((u?"bottom: "+u:"top: "+l)+";\n "+(c?"right: "+c:"left: "+a)+";\n transform: translate("+d+", "+f+");")+"\n }\n \n .fsr-modal-top {\n clear: both;\n height: 20px;\n margin-bottom: 5px;\n opacity: 1;\n }\n \n .fsr-modal-close-button {\n cursor: pointer;\n float: right;\n height: 1em!important;\n width: 1em!important;\n }\n \n .fsr-modal-iframe {\n border: none;\n transition: height 0.6s ease 0s;\n }\n \n @media screen and (max-width: 497px) {\n .fsr-modal-iframe {\n height: "+s+"px;\n width: "+n/2.13+"px;\n }\n }\n \n @media screen and (min-width: 498px) and (max-width: 816px) {\n .fsr-modal-iframe {\n height: "+s+"px;\n width: "+n/1.7+"px;\n }\n }\n \n @media screen and (min-width: 817px) {\n .fsr-modal-iframe {\n height: "+s+"px;\n width: "+n+"px;\n }\n }\n ",g=r.createElement("style");return g.type="text/css",g.appendChild(r.createTextNode(h)),g},i._trapKeyBoard=function(e,t){t=t||e,v(r.body,"triggerModal:focus",(function(i){var n=(i=i||window.event).target||i.srcElement;d(e,n)||t&&(i.stopPropagation(),t.focus())}),!1)},t}(),x=function(e){return(e||"").toString().replace(/([.*+?^${}()|[\]\\])/g,"\\$1")};function E(e){for(var t=e.split("*"),i=0;i<t.length;i++)t[i]=x(t[i]).replace(/[/]/g,"/+").replace(/\/\+\/\+/g,"/*");return("^"+t.join("[^/]*")+"$").replace(/\[\^\/\]\*\[\^\/\]\*/g,".*")}function B(e){for(var t=e.split("*"),i=0;i<t.length;i++)t[i]=x(t[i]);var n=t.join(".*");return 1===t.length&&(n=n.replace(/\/$/,"")),"^"+n+"/?$"}function T(t,i){if(null==t||"string"!=typeof i)return!1;if("*"===t)return!0;if(t instanceof RegExp)return t.test(i);if("string"!=typeof t)return!1;var n;if(0===(t=e.toLowerCase(t.replace(/^\s+|\s+$/g,""))).indexOf("re:"))n=t.substr(3);else if(0===t.indexOf("glob:"))n=E(t.substr(5));else{if(-1==t.indexOf("*")&&-1==t.indexOf("//")&&""!==t)return i.indexOf(t)>-1;n=B(t)}return new RegExp(n).test(i)}var D=function(t,i){if(null==t||"string"!=typeof i)return!1;if(i=e.toLowerCase(i),"*"===t)return!0;if(t instanceof RegExp)return t.test(i);if("string"!=typeof t)return!1;var n;if(0===(t=e.toLowerCase(t.replace(/^\s+|\s+$/g,""))).indexOf("re:"))n=t.substr(3);else if(0===t.indexOf("glob:")){if(t=t.substr(5),i=i.replace(/^(?:https?:)?\/\//,""),t.indexOf("?")>-1){var r=i.split("?"),s=t.split("?"),o=L(E(s[0]),r[0]),a=L(E(s[1]),r[1]);return o&&a}i=i.replace(/\?.*$/,""),n=E(t)}else{if(-1==t.indexOf("*")&&-1==t.indexOf("//")&&""!==t)return i.indexOf(t)>-1;n=B(t)}return L(n,i)};function L(e,t){return new RegExp(e).test(t)}var N=function(t){t=(t=e.toLowerCase(t||document.domain)).replace("https://","").replace("http://","");for(var i,n=["/","?",":"],r=n.length,s=0;s<r;s++)(i=t.indexOf(n[s]))>-1&&(t=t.substr(0,i));if(t.indexOf("localhost")>-1||0===t.replace(/[0-9.]/g,"").length)return t;var o=t.split("."),a=o.length,c=a>1?o[a-2]+"."+o[a-1]:t;return a>2&&function(e,t){return["com","co","org","gov","edu","net","mil"].indexOf(e)>-1||["dni.us","isa.us","nsn.us","fed.us","qc.ca"].indexOf(t)>-1}(o[a-2],c)?o[a-3]+"."+c:c},M=function(){function t(t){this.options=e.ext({method:"POST",data:{},contentType:"application/x-www-form-urlencoded",success:function(){},failure:function(){}},t)}var i=t.prototype;return i.send=function(t){var i=e.ext({},this.options,t||{});this._sendViaXHR(i),i=null},i.dispose=function(){e.dispose(this.options)},i._sendViaXHR=function(t){var i=new window.XMLHttpRequest,n=!1;/json/i.test(t.contentType)?(n=JSON.stringify(t.data),"GET"==t.method&&(n=e.enc(n))):(n=t.data,!0!==t.skipEncode&&(n=e.toQueryString(t.data)));var r=t.url;t.failure=t.failure||function(){},"GET"==t.method&&n&&n.length>0&&(r.indexOf("?")>-1?r+="&":r+="?",r+=n),t.sync=t.sync||!1;try{i.open(t.method,r,!t.sync)}catch(Ie){return}if("GET"!==t.method&&(/json/i.test(t.contentType)?i.setRequestHeader("Content-Type","application/json"):/video/i.test(t.contentType)?i.setRequestHeader("Content-Type","video/webm"):i.setRequestHeader("Content-Type","application/x-www-form-urlencoded")),e.isObject(t.headers))for(var s in t.headers)e.isDefined(s)&&e.isDefined(t.headers[s])&&i.setRequestHeader(s,t.headers[s]);t.blob&&(i.responseType="blob"),i.timeout=t.timeout||0,i.onreadystatechange=function(e,t){return function(){4==t.readyState&&200==t.status?e.success&&(e.blob?e.success.apply(e,[t.response]):e.success.apply(e,[t.responseText])):4==t.readyState&&200!=t.status&&e.failure&&e.failure.apply(e,[t.responseText,t.status])}}(t,i),i.send(n)},t}();M.initialize=function(e){e.call(M)};var P=window,A={TRIGGER:"funcxm",FEEDBACK:"funfbk",BEHAVIOR:"fs_behavioral_data"},R={StorageInstances:{}},j=function(){return+new Date},V=j(),U={CK:"COOKIE",MC:"MICROCOOKIE",CL:"COOKIELESS",DS:"DOMSTORAGE",CK_Hybrid:"HYBRID",MC_Hybrid:"MICRO_HYBRID"},F=function(t){var i=e.getVendorConfig("fs"),n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+7),s=new Date(n.getFullYear(),n.getMonth(),n.getDate()+i.cookieExpiration),o=s;return t.browser&&t.browser.isITPEnabled&&s.getTime()>r.getTime()&&(o=r),{path:"/",domain:t.selectCookieDomain(i.cookieDomain,window.location.toString()),secure:!1,encode:!0,expires:o.toUTCString()}},H=function(){function t(t){var i=this,n=e.getVendorConfig("fs");this.pers=(n.storage||"").toUpperCase(),e.ext(this,{isReady:!1,defaultExpire:7776e6,ready:new k,onCommit:new k,onSync:new k,_readyState:new k,maxExpire:-1,timeOffset:0,_keyEvents:{},_updateTimeout:6e4,_data:{when:0,keys:{}},isStale:!1,lock:null,lastMaint:j(),lastSave:j(),lastSync:j(),isSyncing:!1},!1),this.browser=t,this._unloadHandler=function(){i.save(!0)},v(window,"unload",this._unloadHandler)}var i=t.prototype;return i.selectCookieDomain=function(t,i){if(!e.isDefined(t)||!Array.isArray(t)||t.length<1)return N();for(var n,r=0;r<t.length;r++){var s=t[r];if(s&&s.path&&s.domain&&D(s.path,i)){n=s;break}}return n&&e.isString(n.domain)?n.domain:null},i.setUpdateInterval=function(e){var t=this;e&&!isNaN(e)&&(this._updateTimeout=e,clearInterval(this._updateInterval),this._updateInterval=setInterval((function(){t._sync()}),e))},i.stopUpdateInterval=function(){clearInterval(this._updateInterval),this._updateInterval=null},i._fireChangeEvents=function(t){var i,n=this;for(var r in t)(!(i=this._data.keys[r])||i.t<t[r].t||i.x!==t[r].x)&&(this._keyEvents[r]||(this._keyEvents[r]=new k),e.nextTick(function(e){return function(){t[e]&&n._keyEvents[e].fire(e,n._data.keys[e],t[e].v)}}(r)))},i.save=function(e){if(e)this._commit();else{var t=j();!this.lock&&this.isStale&&(this.lock=setTimeout(this._commit.bind(this),Math.max(0,this.cThreshold-(t-this.lastSave))))}},i._maint=function(e){var t,i=j(),n=!1,r=this._data.keys;if(i-this.lastMaint>5e3||e){for(var s in r)t=r[s],i-this.timeOffset>t.x&&(delete r[s],n=!0,this.isStale=!0);this.lastMaint=i}!n||this.pers!=U.CK&&this.pers!=U.CK_Hybrid&&this.pers!=U.DS||this._commit()},i.set=function(t,i,n,r,s){var o=this;this._readyState.subscribe((function(){o._data.keys||(o._data.keys={});var a=o._data.keys[t],c=j(),l=null;if(n)if("number"==typeof n)l=n,o.maxExpire>0&&o.maxExpire<n&&(l=n=o.maxExpire),n=c+n;else if(n instanceof Date){if(n=n.getTime()+n,o.maxExpire>0)n-c>o.maxExpire&&(l=n=o.maxExpire,n=c+n)}if(a){var u={};u[t]={v:i,x:n||a.x,t:c},o._fireChangeEvents(u),a.v="cp"==t||"ckcpps"==t?e.ext(a.v,i):i,a.x=n||a.x,l&&(a.ttl=l),a.t=c,a.d&&(a.d=0)}else{var d={};d[t]={v:i,x:n||o.defaultExpire+c,t:c},l&&(d[t].ttl=l),o._fireChangeEvents(d),o._data.keys[t]=d[t]}o.isStale=!0,s&&o.onCommit.subscribe(s,!0,!1),o._maint(),o.save(!!r)}),!0,!0)},i.get=function(e){if(Array.isArray(e)){for(var t={},i=0;i<e.length;i++)t[e[i]]=this.get(e[i]);return t}this._maint(),this._data.keys||(this._data.keys={});var n=this._data.keys[e];return"object"!=typeof n||n.d?null:n.v},i.all=function(){return this._data.keys},i.erase=function(e,t,i){if(Array.isArray(e)){for(var n=0;n<e.length;n++)this.erase(e[n]);t&&this.onCommit.subscribe(t,!0,!1)}else this._maint(),this._data.keys[e]&&this._delete(e),this.isStale=!0,t&&this.onCommit.subscribe(t,!0,!1),this.save(!!i)},i._delete=function(e){delete this._data.keys[e]},i.reset=function(t,i,n){if(t&&this.onCommit.subscribe(t,!0,!1),n||(this.ckie&&this.ckie.kill(e.keyStorage),this.pers==U.CK_Hybrid&&this.browser.supportsLocalStorage&&localStorage.removeItem(e.key4CStorageLegacy),this.pers==U.MC_Hybrid&&this.browser.supportsLocalStorage&&localStorage.removeItem(e.key4CMicroStorage),this.browser.supportsSessionStorage&&(sessionStorage.removeItem(e.key4CMicroStorage,this.uid),sessionStorage.removeItem(e.key4CEnableStorage)),this.browser.supportsLocalStorage&&localStorage.removeItem(e.key4CEnableStorage)),this.pers==U.CK||this.pers==U.CK_Hybrid){if(this._data.keys={},localStorage&&e.supportsDomStorage)for(var r in localStorage)/^(_fsr|__fsFr)/.test(r)&&localStorage.removeItem(r);this.onCommit.fire()}else this.pers==U.DS&&(this._data.keys={},localStorage.removeItem(e.key4CStorageLegacy),this.onCommit.fire())},i.setMaxKeyExpiration=function(e){this.maxExpire=this.defaultExpire=e;var t,i=j(),n=this._data.keys;for(var r in n){var s=(t=n[r]).x-i;(s>e||t.ttl>e)&&(t.ttl=e,t.x&&(t.x-=s-e))}this.save(!0)},i.getMaxKeyExpiration=function(){var e=j(),t=this._data.keys,i=0;for(var n in t)i=Math.max(i,t[n].x-e);return i},i.watchForChanges=function(e,t,i,n){Array.isArray(e)||(e=[e]);for(var r=0;r<e.length;r++){var s=e[r];this._keyEvents[s]||(this._keyEvents[s]=new k),this._keyEvents[s].subscribe(t,i,n)}},i.dispose=function(){clearInterval(this._updateInterval),y(window,"unload",this._unloadHandler)},t}(),K=function(){var t=(e.getVendorConfig("fs").storage||"").toUpperCase();return t===U.CK||t===U.MC?"cookie":t===U.CK_Hybrid||t===U.MC_Hybrid||t===U.DS?"windowStorage":null},W=function(){if(!1===e.getVendorConfig("fs").enableStorage){if("cookie"===K()){var t=R.StorageInstances.generalStorage||R.StorageInstances.brainStorage,i=t&&t.ckie&&t.ckie.getByNestedCookieName(e.key4CEnableStorage);return!0===i||"true"===i}if("windowStorage"===K()){var n=localStorage.getItem(e.key4CEnableStorage);return!0===n||"true"===n}return!1}return!0},J=function(){function t(t,i){var n=this;t||(t="STORAGE"),this.guid="FSR_"+t.replace(/[- _.&]/g,"").toUpperCase(),this.StorageFull=new k,this.storageLimit=45e5,this.kill(),this.sync(),e.isDefined(i)&&!i||e.nextTick((function(){v(window,"unload",(function(){n.commit()}))}))}var i=t.prototype;return i.size=function(){return this.storageBytesObj+this.storageBytesBlob},i.testStorageLimit=function(){return this.size()>=this.storageLimit&&(this.StorageFull.fire(this),!0)},i.dispose=function(e){this._data_obj[e]&&(delete this._data_obj[e],this.storageBytesObj=JSON.stringify(this._data_obj).length)},i.kill=function(){this.storageBytesObj=0,this.storageBytesBlob=0,this._data_obj={},this._data_blob="",this.isNewStorage=!0},i.eraseAll=function(){this.kill(),this.commit()},i.get=function(e){return this._data_obj[e]},i.getBlob=function(){return this._data_blob},i.erase=function(e){delete this._data_obj[e],this.storageBytesObj=JSON.stringify(this._data_obj).length,this.isNewStorage=!1,this.testStorageLimit()},i.set=function(e,t){t&&(this._data_obj[e]=t,this.storageBytesObj=JSON.stringify(this._data_obj).length,this.isNewStorage=!1,this.testStorageLimit())},i.setBlob=function(e){this._data_blob=e,this.storageBytesBlob=this._data_blob.length,this.isNewStorage=!1,this.testStorageLimit()},i.isNew=function(){var e;return window.opener&&!this.get("isNew")&&(e=!0,this.set("isNew",e)),e||this.isNewStorage},i.sync=function(){var e;try{(e=localStorage.getItem(this.guid+"_OBJ"))&&e.length>0&&(this._data_obj=JSON.parse(e),this.storageBytesObj=e.length,this.isNewStorage=!1)}catch(Ie){}try{(e=localStorage.getItem(this.guid+"_BLOB"))&&e.length>0&&(this._data_blob=e,this.storageBytesBlob=e.length,this.isNewStorage=!1)}catch(Ie){}},i.commit=function(){try{this.setItem(this.guid+"_OBJ",JSON.stringify(this._data_obj)),this.setItem(this.guid+"_BLOB",this._data_blob)}catch(Ie){}},i.setItem=function(e,t,i){(i||W())&&localStorage.setItem(e,t)},t}();function z(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,G(e,t)}function G(e,t){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}J.initialize=function(e){e.apply(J)},J.isSupported=function(){return!!localStorage};var X=function(e){function t(t,i,n){var r;return(r=e.call(this,t,i)||this).storageLimit=n||45e5,r}z(t,e);var i=t.prototype;return i.sync=function(){var e;try{(e=a.getItem(this.guid+"_OBJ"))&&e.length>0&&(this._data_obj=JSON.parse(e),this.storageBytesObj=e.length,this.isNewStorage=!1)}catch(Ie){}try{(e=a.getItem(this.guid+"_BLOB"))&&e.length>0&&(this._data_blob=e,this.storageBytesBlob=e.length,this.isNewStorage=!1)}catch(Ie){}},i.commit=function(){try{this.setItem(this.guid+"_OBJ",JSON.stringify(this._data_obj)),this.setItem(this.guid+"_BLOB",this._data_blob)}catch(Ie){}},i.setItem=function(e,t){W()&&a.setItem(e,t)},t}(J);X.isSupported=function(){return e.supportsDomStorage};var $,Y=function(t){var i=e.getVendorConfig("fs"),n=this,r=t||navigator.userAgent,s=e.toLowerCase(r);e.ext(n,{agent:r,os:{name:"",version:0},browser:{name:"",version:0,actualVersion:0},isMobile:/iphone|ipad|ipod|android|kindle|silk|bntv|nook|blackberry|playbook|mini|windows\sce|windows\sphone|palm|bb10|avantgo|blazer|compal|elaine|fennec|hiptop|iris|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|webos|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|xda|xiino/i.test(r)||e.isDefined(window.orientation),isTablet:/ipad|playbook|nook|bntv/i.test(r),isWinPhone:/Windows Phone/i.test(r),isITPEnabled:!1,supportsLocalStorage:!1,supportsPostMessage:!!window.postMessage,isIE:!1,isEdge:!1,isZoomable:!0,supportsSVG:document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),isReady:!1,ready:new k,_internalReady:new k,isIos:!1,servUrl:i.deviceDetectionUrl?i.deviceDetectionUrl+"/detect?accessToken=":""},!1);try{localStorage&&(J.prototype.setItem("a","b"),localStorage.removeItem("a"),n.supportsLocalStorage=!0)}catch(Ie){}try{sessionStorage&&(X.prototype.setItem("a","b"),sessionStorage.removeItem("a"),n.supportsSessionStorage=!0)}catch(Ie){}n._internalReady.subscribe((function(){n.ready.fire(n)})),n.isMobile&&/iphone|ipad|ipod/i.test(r)&&!n.isWinPhone&&(n.isIos=!0);var o,a,c,l,u=function(t){return s.indexOf(e.toLowerCase(t))>-1},d=function(e,t){for(;e>=t;)e/=10;return e},f=function(t){var i,n,r="Unknown";null!==(n=t.match(/Opera[/\s](\d+\.\d+)/))?r="Opera":null!==(n=t.match(/Edge\/([0-9.]*)/))?r="Edge":null!==(n=t.match(/opr[/\s](\d+\.\d+)/i))?r="Opera":null!==(n=t.match(/Windows Phone[/\s](\d+\.\d+)/))?r="IEMobile":null!==(n=t.match(/Trident\/7.0/))?(r="IE",i=11):null!==(n=t.match(/MSIE (\d+\.\d+)/))?r="IE":null!==(n=t.match(/Navigator[/\s](\d+\.\d+)/))?r="Netscape":null!==(n=t.match(/Chrome[/\s](\d+\.\d+)/))||null!==(n=t.match(/CriOS[/\s](\d+\.\d+)/))?r="Chrome":null!==(n=t.match(/Version\/([0-9.]*)[\w\W]*Safari/i))?r="Safari":null!==(n=t.match(/Firefox[/\s](\d+\.\d+)/))?r="Firefox":null!==(n=t.match(/googlebot/gi))?(r="Chrome",i=44):e.hasProp(window,"ActiveXObject")&&!window.ActiveXObject&&(r="IE",i=11);return{name:r,version:i||(null!==n?parseFloat(n[1]):void 0)}}(r),h=function(){var t,i,s,o,a,c,l,h,g;n.browser.name=f.name,n.browser.version=f.version,n.browser.actualVersion=(t=n.browser.name,i=n.browser.version,"IE"!==t||i<=6||i>=10?i:u("Trident")||7!=i?u("Trident/6.0")&&i<=10?10:u("Trident/5.0")&&i<=9?9:u("Trident/4.0")&&i<9?u("WOW64")?8:7==i?i:8:i:7),n.os.name=n.isMobile?u("Windows Phone")?"Winphone":u("iPod")?"iPod":u("iPad")?"iPad":u("iPhone")?"iPhone":(u("blackberry")||u("playbook")||u("BB10"))&&u("applewebkit")?"Blackberry":u("Kindle")||u("Silk")?"Kindle":u("BNTV")||u("Nook")?"Nook":u("Android")?"Android":e.isDefined(window.orientation)?"Mobile":"Other":u("Windows")?"Windows":u("OS X")?"Mac":u("Linux")||u("Googlebot")?"Linux":u("Mac")?"Mac":"Other",n.isMobile=Z(n.os.name,n.isMobile),n.os.version=(s=r,n.isMobile,u("windows phone")||!u("ipad")&&!u("iphone")?u("googlebot")?1:u("mac os x")?(a=(o=/OS X ([0-9_]*)/gi.exec(s))[1].split("_"),c=parseInt(a[0],10),h=parseInt(a[1],10),g=parseInt(a[2],10),h+=d(g,1),c+d(h,1)):u("Windows NT")?(a=(o=/Windows NT ([0-9.]*)/gi.exec(s))[1].split("."),c=parseInt(a[0],10),h=parseInt(a[1],10),c+d(h,1)):(o=s.match(/Windows Phone OS[/\s](\d+\.?\d+)/)||s.match(/Windows Phone[/\s](\d+\.?\d+)/)||s.match(/Android[/\s](\d+\.?\d+)/),c=e.isDefined(o)?o[1]:1,l=parseFloat(c),!isNaN(l)&&l>0?l:c):(a=(o=/OS ([0-9_]*) like/gi.exec(s))[1].split("_"),c=parseInt(a[0],10),h=parseInt(a[1],10),c+d(h,1))),n.isITPEnabled="Safari"===n.browser.name&&"number"==typeof n.browser.version&&n.browser.version>=12.1},g=function(){n.isZoomable=function(){if("Winphone"!=n.os.name){var t=document.querySelectorAll("head meta[name=viewport],head meta[name=VIEWPORT],head meta[name=Viewport]")||[];if(Array.isArray(t)||(t=[t]),t.length>0){for(var i=function(e,t){var i=new RegExp("[\\w\\W]*"+t+"[\\s]*=[\\s]*([^\\s,;]*)[\\w\\W]*","i");return e?e.match(i):null},r=0;r<t.length;r++){var s=t[r].content,o=i(s,"user-scalable"),a=i(s,"initial-scale"),c=i(s,"maximum-scale");if(o&&o.length>1&&("0"==o[1]||"no"==e.toLowerCase(o[1])))return!1;if(a&&c)return!(a.length>1&&c.length>1&&1==parseFloat(a[1])&&1==parseFloat(c[1]))}return!0}return!0}return!1}(),n.isReady=!0,n._internalReady.fire()},p=function(){h()};if(n.isMobile)if(n.isIos||""===n.servUrl||n.isTablet||n.isWinPhone||!i.deviceDetectionEndpointEnable)p(),g();else{var v,m=function(e){var t=JSON.parse(e);n.browser.name=t.browser.name,n.browser.version=n.browser.actualVersion=t.browser.version,n.os.name=t.os.name,n.os.version=parseFloat(t.os.version),n.isMobile=Z(n.os.name,t.isMobile),n.isTablet=t.isTablet,g()},y=this.supportsLocalStorage;if(y&&!t&&(v=sessionStorage.getItem("ACS_BROWSER")),v)m(v);else{var b={method:"GET",url:n.servUrl+function(e){var t,i=0;if(0===e.length)return i;for(t=0;t<e.length;t++)i=(i<<5)-i+e.charCodeAt(t),i&=i;return i}((o=new Date,a=o.getFullYear().toString(),c=(o.getMonth()+1).toString(),l=o.getDate().toString(),a+(c[1]?c:"0"+c[0])+(l[1]?l:"0"+l[0])+"ForeSee"+(location.origin||"null")))+"&ua="+r,type:"*/*",contentType:"application/x-www-form-urlencoded",success:function(e){y&&X.prototype.setItem("ACS_BROWSER",e),m(e)},failure:function(){p(),g()}};new M(b,!0).send()}}else h(),n.isReady=!0,n.isIE="IE"==n.browser.name,n._internalReady.fire()},Q=function(){return $||($=new Y)};var Z=function(t,i){"Other"!==t&&"Unknown"!==t||e.getVendorConfig("fs").deviceDetectionFallbackToMobile&&(i=!0);return i},ee={},te=0,ie={_id:"",has:function(){try{return!!(P.s&&e.isFunction(P.s.c_r)&&P.s.c_r("s_vi").indexOf("[CE]")>-1)}catch(Ie){return!1}},intervals:{uid:"",mcid:""},sgi:function(){if(void 0!==P.s_c_il)for(var e=0;e<P.s_c_il.length;e++)if("s_c"===P.s_c_il[e]._c)return P.s_c_il[e];return!1},uid:function(e,t){var i,n,r=this,s=0;e&&(clearInterval(this.intervals.uid),this.intervals.uid=setInterval((function(){i=r.sgi(e),s++<10&&i?(i.visitorID?n={name:"OMTR_VID",value:i.visitorID}:i.analyticsVisitorID?n={name:"OMTR_VID",value:i.analyticsVisitorID}:i.fid&&(n={name:"OMTR_FID",value:i.fid}),n&&(t(n),clearInterval(r.intervals.uid))):clearInterval(r.intervals.uid)}),1e3))},mcid:function(e,t){var i,n,r=this,s=0;clearInterval(this.intervals.mcid),this.intervals.mcid=setInterval((function(){i=r.sgi(e),s++<10&&i?(i.marketingCloudVisitorID&&(n={name:"OMTR_MCID",value:i.marketingCloudVisitorID}),n&&(t(n),clearInterval(r.intervals.mcid))):clearInterval(r.intervals.mcid)}),1e3)},beacon:function(t){if(ie._id)return ie._id;var i,n,r,s=["AQB","mid","aid","vid","fid","AQE"];function o(e,t){for(var i="",n=t.split("&"),r=0;r<n.length;r++)for(var s=n[r].split("="),o=0;o<e.length;o++)if(e[o]==s[0]){i+=s[0]+"="+s[1]+"&";break}return"&"==i.substr(i.length-1)&&(i=i.substr(0,i.length-1)),i}function a(e){var i,n,r;i=e.substring(0,e.indexOf("?")),n=e.substring(e.indexOf("?")+1),r=o(s,n),P.s&&P.s.trackingServerSecure&&(i="https://"+P.s.trackingServerSecure+e.substring(e.indexOf("/b/ss/"),e.indexOf("?")),n=e.substring(e.indexOf("?")+1),r=o(s,n));var a=i+"?"+r;return a.length<3?a=null:ie._id=a,a?t(a):a}var c="";for(n in window)if("s_i_"==n.substring(0,4)&&window[n].src&&(i=window[n].src).indexOf("/b/ss/")>=0){c=i;break}if(!c&&P.s_c_il&&P.s_c_il.length)for(r=0;r<P.s_c_il.length&&!c;r++)for(n in P.s_c_il[r])if(i=P.s_c_il[r][n],e.isString(i)&&i.indexOf("/b/ss/")>=0&&i.indexOf("AQB=1")>=0&&i.indexOf("AQE=1")>=0&&i.indexOf("mid=")>=0){c=i;break}if(!c&&P.document.images)for(var l=0;l<P.document.images.length;l++)if(i=P.document.images[l].src,e.isString(i)&&i.indexOf("/b/ss/")>=0){c=i;break}if(c&&e.isString(c))return a(c);if(P.s_c_il)for(r=0;r<P.s_c_il.length;r++)if(P.s_c_il[r].registerPreTrackCallback){P.s_c_il[r].registerPreTrackCallback(a);break}}},ne={has:function(){var e=P.ga;return"function"==typeof e&&e.getAll&&e.getAll().length},intervals:{uid:""},uid:function(t){var i=this,n=0;clearInterval(this.intervals.uid),this.intervals.uid=setInterval((function(){var r=e.nextTick;n++<10?ne.has()&&(clearInterval(i.intervals.uid),P.ga((function(e){r((function(){if(e)return t(e.get("clientId"));try{return t(P.ga.getAll()[0].get("clientId"))}catch(Ie){return t()}}))}))):(r((function(){return t()})),clearInterval(i.intervals.uid))}),1e3)}},re={GA:ne,OM:ie},se=function(){function t(e,t,i){this.isParallel=!!e,this._queue=[],this.success=t,this.fail=i,this.isPending=!0}var i=t.prototype;return i.enqueue=function(t){this._queue.push({fn:t,resolved:!1}),(this.isParallel||1==this._queue.length)&&t.apply(this,[{resolve:function(){var t=this;e.nextTick((function(){t.ctx.resolve(t.cb)}))}.bind({cb:t,ctx:this}),error:function(){this.ctx.error(this.cb)}.bind({cb:t,ctx:this})}])},i.resolve=function(e){if(this.isPending){if(!e)throw new Error("Missing caller argument.");var t,i,n=!1;for(t=0;t<this._queue.length;t++)(i=this._queue[t]).fn===e?i.resolved=!0:i.resolved||(n=!0);if(!this.isParallel&&n){var r;for(t=0;t<this._queue.length;t++)if(!1===(i=this._queue[t]).resolved){r=i;break}if(r)return void r.fn.apply(this,[{resolve:function(){this.ctx.resolve(this.cb)}.bind({cb:r.fn,ctx:this}),error:function(){this.ctx.error(this.cb)}.bind({cb:r.fn,ctx:this})}])}n||(this.isPending=!1,this.success.call(this))}},i.error=function(){this.isPending=!1,this.fail&&this.fail.call(this)},t}();function oe(){var e=new Uint8Array(16);(window.crypto||window.msCrypto).getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;for(var t="",i=0;i<16;i++)t+=(e[i]+256).toString(16).substring(1);return t.substring(0,8)+"-"+t.substring(8,12)+"-"+t.substring(12,16)+"-"+t.substring(16,20)+"-"+t.substring(20)}var ae,ce=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},le=function(t){var i=t.getByCookieName(e.key4CStorageLegacy);if(i)try{JSON.parse(i)}catch(Ie){t.kill(e.key4CStorageLegacy),t.set(e.key4CStorage,i)}var n=t.getByCookieName(e.key4CMicroStorage);n&&(t.setBrainId(n),t.kill(e.key4CMicroStorage))},ue=function(){function t(e){this.opts=e||{}}var i=t.prototype;return i.set=function(t,i,n,r){var s=this.getNestedStorage();s[t]=i;var o=JSON.stringify(s);(r||W())&&this.__writeDataToCookie(e.keyStorage,o,n)},i.rmKey=function(t,i,n){if(n||W()){var r=this.getNestedStorage();delete r[t];var s=JSON.stringify(r);this.__writeDataToCookie(e.keyStorage,s,i)}},i.setBrainId=function(t){this.set(e.key4CMicroStorage,t)},i.__writeDataToCookie=function(t,i,n){var s,o=e.getVendorConfig("fs"),a=this.opts;for(var c in n&&(a=e.ext({},a,n)),i=e.isDefined(a.encode)?e.enc(i):i,t=e.enc(t),"localhost"==a.domain&&delete a.domain,o.cookieSecure&&"false"!==o.cookieSecure&&"false"!==e.hasSSL&&(i+=";SameSite=Strict;secure"),a)if(a[c])switch(s=a[c],i+=";"+("duration"==c?"expires":c),c){case"expires":i+="="+(e.isDate(s)?s.toUTCString():s)+";";break;case"duration":i+="="+new Date(j()+864e5*s).toUTCString()+";";break;default:i+="="+s}r.cookie=t+"="+i},i.getByNestedCookieName=function(e){var t=this.getNestedStorage();return t&&t[e]?t[e]:null},i.getNestedStorage=function(){if(!r.cookie)return{};var t=r.cookie.match("(?:^|;)\\s*"+x(e.keyStorage)+"=([^;]*)");if(!t)return{};var i=decodeURIComponent(t[1]);return JSON.parse(i)},i.getByCookieName=function(e){if(!r.cookie)return null;var t=r.cookie.match("(?:^|;)\\s*"+x(e)+"=([^;]*)");if(!t)return null;try{return decodeURIComponent(t[1])}catch(Ie){return t[1]}},i.kill=function(e){var t=new Date;t.setTime(t.getTime()-9999),this.__writeDataToCookie(e,"",{expires:t.toUTCString()})},t}(),de=function(t){function i(i,n,r,s,o){var a;a=t.call(this,i,n)||this;var c=e.getVendorConfig("fs");return a.brainUrl=s||c.brainUrl,a.siteKey=r||c.siteKey,a.disableMicrocookieSyncInterval=c.disableMicrocookieSyncInterval,a.forSynchronizationOnly=o,n&&(a.uid=n),e.ext(q(a),{_serverFails:0,cThreshold:600},!1),a.ckie=new ue(F(q(a))),i.ready.subscribe((function(){a._initialize()}),!0,!0),a}z(i,t);var n=i.prototype;return n._initialize=function(){var e=U;this.ajax=new M,this.pers==e.MC||this.pers==e.MC_Hybrid?this._initializeMicrostorage():this.pers==e.CL&&this._initializeCookieless(),this.__continueStartup()},n.__continueStartup=function(){var e=this;this._sync((function(){e._initialSync()}))},n._initializeMicrostorage=function(){var t=U;le(this.ckie),this.uid||(this.uid=this.ckie.getByNestedCookieName(e.key4CMicroStorage)),this.uid||(this.pers!==t.MC_Hybrid&&this.browser.supportsSessionStorage&&(this.uid=e.sessionStorage.getItem(e.key4CMicroStorage)),this.pers===t.MC_Hybrid&&this.browser.supportsLocalStorage&&(this.uid=e.localStorage.getItem(e.key4CMicroStorage))),(!this.uid||this.uid&&(this.uid.length>64||this.uid.indexOf("{")>-1))&&(this.uid=oe()),this.browser.supportsSessionStorage&&this.pers===t.MC_Hybrid&&X.prototype.setItem(e.key4CMicroStorage,this.uid),this.browser.supportsLocalStorage&&this.pers===t.MC_Hybrid&&J.prototype.setItem(e.key4CMicroStorage,this.uid),this.forSynchronizationOnly||this.ckie.setBrainId(this.uid)},n._initializeCookieless=function(){this.ckie=new ue(F(this))},n._initialSync=function(){this.get("rid")?this.uid=this.get("rid"):(this.uid=this.uid||oe(),this.set("rid",this.uid)),this.disableMicrocookieSyncInterval||this.setUpdateInterval(this._updateTimeout),this._readyState.fire(this),this.ready.fire(this)},n._sync=function(t){var i,n=this;this.isSyncing||(this._serverFails>5||(this.isSyncing=!0,t=t||function(){},this.ajax.send({method:"GET",url:this.brainUrl+"/state/"+this.siteKey+"/"+this.uid,success:function(r){n.lastSync=j(),i=JSON.parse(r),n.timeOffset=ce(i._asof_)?j()-i._asof_:0,n._fireChangeEvents(i.keys),n.mergeBrainData(n._data,i),n.syncWithGeneralStorage(),n.isSyncing=!1,e.nextTick((function(){n.onSync.fire(n),n._readyState.fire(n)})),t()},failure:function(){n.lastSync=j(),n.isSyncing=!1,n._serverFails++,n._readyState.fire(n)}})))},n._commit=function(){var t=this;clearTimeout(this.lock),this.lock=null,this.lastSave=this._data.when=j(),this.browser.supportsLocalStorage&&this.pers===U.MC_Hybrid&&(J.prototype.setItem(e.key4CMicroStorage,this.uid),this.ckie&&!this.forSynchronizationOnly&&this.ckie.setBrainId(this.uid)),!this.ckie||this.forSynchronizationOnly||this.ckie.getByNestedCookieName(e.key4CMicroStorage)||this.ckie.setBrainId(this.uid),this._serverFails>5||(this.ajax.send({method:"POST",url:this.brainUrl+"/state/"+this.siteKey+"/"+this.uid,data:this._data,contentType:"application/json",success:function(e){t._lastSync=j();var i=JSON.parse(e);t.timeOffset=ce(i._asof_)?j()-i._asof_:0,t._fireChangeEvents(i.keys),t.mergeBrainData(t._data,i),t.syncWithGeneralStorage(),t.onCommit.fire(t._data),t._readyState.fire(t)},failure:function(){t._serverFails++,t._readyState.fire(t)}}),this.isStale=!1)},n._delete=function(e){this._data.keys[e].d=1,this._data.keys[e].t=j(),this._data.keys[e].x=j()+this._updateInterval},n.reset=function(t,i,n){var r=this,s=document.getElementById("acsOverrideSettings"),o=document.getElementById("acsClearStateWaitMessage"),a=!!s&&!!o;a&&(c(s,"acsNoDisplay"),l(o,"acsNoDisplay")),t&&this.onCommit.subscribe(t,!0,!1),n||(this.uid=oe(),this.ckie.kill(e.keyStorage),this.browser.supportsSessionStorage&&e.sessionStorage.removeItem(e.key4CMicroStorage)),this._readyState.didFire&&(this._readyState=new k);var u=Object.keys(this._data.keys);this.erase(u,(function(t){r._lastSync=j(),r.timeOffset=ce(t._asof_)?j()-t._asof_:0,r._fireChangeEvents(t.keys),r.mergeBrainData(r._data,t),r.syncWithGeneralStorage(),a&&(l(s,"acsNoDisplay"),c(o,"acsNoDisplay")),r.onCommit.fire(),r._readyState.fire(r),W()||(r.browser.supportsLocalStorage&&(e.localStorage.removeItem(e.key4CStorageLegacy),e.localStorage.removeItem(e.key4CMicroStorage)),r.browser.supportsSessionStorage&&(e.sessionStorage.removeItem(e.key4CStorageLegacy),e.sessionStorage.removeItem(e.key4CMicroStorage)))}),!0)},n.syncWithGeneralStorage=function(){var e=R.StorageInstances.generalStorage;if(e){var t=this._data.keys.tracker_hb;t?(e.set("tracker_hb",t.v,t.x),e.save(!0)):e.erase("tracker_hb")}},n.mergeBrainData=function(e,t){var i,n,r,s=e.keys,o=t.keys;for(i in o)if(n=s[i],r=o[i],n&&"cp"===i){var a=o.cp.v||{},c=s.cp.v||{};for(var l in a)c[l]=a[l];s.cp.v=c}else n?r.t>n.t&&(1===r.d?delete s[i]:s[i]=r):n||1===r.d||(s[i]=r);return e},i}(H),fe=function(e,t,i,n,r){var s=R.StorageInstances;return s.brainStorage||(s.brainStorage=new de(e,t,i,n,r)),s.brainStorage},he={VISIT_EXPIRY_DESKTOP:18e5,VISIT_EXPIRY_MOBILE:3e5,POPUP_EXPIRY:72e5},ge=function(){function t(t){var i=e.getVendorConfig("fs");t=t||{},this.customerId=t.customerId,this.throttleDuration=t.throttleDuration||400,this.browser=t.browser,this.config=i,this.stg=t.stg,this.stg.get||(this.stg.get=function(){}),this.appId=t.appId,e.isString(this.appId)||(this.appId=""),this.useSessionId=!!t.useSessionId,this.usePopupId=!!t.usePopupId,this.ajax=new M,this.url=i.analyticsUrl,this.data={customerId:this.customerId||"NULL",appId:this.appId||"NULL",userId:this.stg.uid||this.stg.get("rid")||"00000000-0000-0000-0000-00000000000",deviceProfile:{fs_os:this.browser.os.name,fs_osVersion:this.browser.os.version,fs_sdkVersion:i.codeVer,fs_browserName:this.browser.browser.name,fs_browserVersion:this.browser.browser.version,fs_type:this.browser.isTablet?"Tablet":this.browser.isMobile?"Mobile":"Desktop",fs_productType:"web sdk"},events:[]},this.eventsDefault={properties:{fs_pageUrl:[location.href],fs_siteKey:[i.siteKey],fs_deployType:[e.isSelfHosted?"on-prem":"cloud"]}}}var i=t.prototype;return i.addEventsDefault=function(t,i){if(!t||["properties","metrics","data"].indexOf(t)<0)return this.eventsDefault;if(!he.validateEventObject(t,i))return this.eventsDefault;for(var n in i)e.hasProp(i,n)&&Array.isArray(i[n])&&i[n].length>0&&(i[n]=i[n].filter(e.isDefined),i[n].length<1&&delete i[n]);return this.eventsDefault=this.eventsDefault||{},this.eventsDefault[t]=e.ext(this.eventsDefault[t],i),this.eventsDefault},i.setKey=function(t,i){return!!e.isObject(i)&&(this.data[t]=i,this.data.events.length||this.addEventString("fs_setKey"),!0)},i.addEvent=function(e){var t=typeof e;switch(t){case"string":this.addEventString(e);break;case"object":this.addEventObj(e);break;default:console.error("ForeSee: event is not a valid type: ",t)}},i.addEventObj=function(e){if(e.timestamp||(e.timestamp=(new Date).toISOString()),e.timezone||(e.timezone=(new Date).getTimezoneOffset()),e.name&&e.name.length>0&&he.validateEventObject("properties",e.properties)&&he.validateEventObject("metrics",e.metrics)&&he.validateEventObject("data",e.data)){if(this._updateVisitId(),this._updatePopupId(),!this._isEventAllowed(e.name))return;e=he.applyEventsDefault(e,this.eventsDefault),this.data.events.push(e),this.send()}},i.addEventString=function(e){this._updateVisitId(),this._updatePopupId(),this._isEventAllowed(e)&&(this.data.events.push(he.applyEventsDefault({name:e,timestamp:(new Date).toISOString(),timezone:(new Date).getTimezoneOffset()},this.eventsDefault)),this.send())},i._isEventAllowed=function(e){if(!this.config)return!1;if(!this.config.journeyEvents)return!0;var t=this.config.journeyEvents;return"never"===t.transmit?!(t.list.indexOf(e)>-1):"only"===t.transmit&&t.list.indexOf(e)>-1},i._updateVisitId=function(){if(this.useSessionId&&this.stg.set){var e=this.stg.get("vi");e||(e=oe()),this.stg.set("vi",e,this.browser.isMobile?he.VISIT_EXPIRY_MOBILE:he.VISIT_EXPIRY_DESKTOP),this.addEventsDefault("data",{fs_session_id:e})}},i.initPopupId=function(){var t=e.getVendorConfig("fs"),i=fe(this.browser,this.stg.uid,t.siteKey,null,!0),n=this.stg.get("pid")||i.get("pid")||oe();this.stg.set("pid",n,he.POPUP_EXPIRY),i.set("pid",n,he.POPUP_EXPIRY)},i._updatePopupId=function(){if(this.stg.set){var e=this.stg.get("pid");e?(this.usePopupId&&this.stg.set("pid",e,he.POPUP_EXPIRY),this.addEventsDefault("data",{fs_popup_id:e})):this.usePopupId}},i.send=function(e){var t=this;e?he._send(this):this._svT||(this._svT=setTimeout((function(){he._send(t)}),this.throttleDuration))},t}();he.applyEventsDefault=function(t,i){return["properties","metrics","data"].reduce((function(t,n){return i[n]&&(t[n]=e.ext(t[n],i[n])),t}),t)},he._send=function(t){if(t._svT=null,t.data.events.length>0){var i=e.ext({},t.data);t.data.events=[],t.url&&t.ajax.send({url:t.url,contentType:"application/json",headers:{"Request-API-Version":"1.0.0"},data:i,method:"POST",failure:function(){t.data.events=i.events}})}},he.validateEventObject=function(e,t){var i;switch(e){case"properties":if(t)for(i in t)if(!Array.isArray(t[i]))return console.error("ForeSee: Invalid properties"),!1;break;case"metrics":if(t)for(i in t)if(!ce(t[i]))return console.error("ForeSee: Invalid metrics"),!1}return!0};var pe=function(e,t){for(var i=e||window,n=t.split("."),r=0;r<n.length&&i;)i=i[n[r++]];return void 0!==i&&r===n.length?i:void 0},ve=function(t){return e.isDefined(t.get("tracker_hb"))};var me={};var ye=function(){function t(t){this.options=e.ext({data:{},success:function(){},failure:function(){}},t)}return t.prototype.send=function(t){var i=e.ext(this.options,t),n=new Image;n.onerror=i.failure,n.onload=function(){i.success({width:n.width,height:n.height})},n.src=e.toQueryString(i.data,i.url,!1)},t}(),be=function(){function t(t){this.opts=e.ext({success:function(){},failure:function(){},timeout:5e3},t)}return t.prototype.get=function(t){var i=this,n=e.getVendorConfig("fs"),r=t.replace(".html","___html.js"),s=setTimeout((function(){i.opts.failure("timedout")}),this.opts.timeout),o=[r],a=e.isSelfHosted||n.sanitizeHTML;a&&o.push(e.makeURI("$fs.sanitize.js")),window._fsRequire(o,(function(e,t){clearTimeout(s),a?i.opts.success((function(i){var n=t.sanitizeObject(i);return e(n)})):i.opts.success(e)}))},t}(),_e=function(){function t(t,i){var n=e.getVendorConfig("fs");this.gs=t,this.onSet=new k,this.exp=i||864e5,this.config=n}var i=t.prototype;return i._isCPPEnabled=function(e){return!this.config.disableCpps||this.config.disableCpps.indexOf(e)<0},i.set=function(e,t){if(this._isCPPEnabled(e)){var i=this.all();i[e]=""+t,this.gs.set("cp",i,this.exp),this.onSet.fire(e,t)}},i.get=function(e){return this.all()[e]},i.all=function(){return this.gs.get("cp")||{}},i.toQueryString=function(t){void 0===t&&(t=[]);var i=[],n=this.all();for(var r in n)t.indexOf(r)<0&&i.push("cpp["+e.enc(r)+"]="+e.enc(n[r]));return i.join("&")},i.erase=function(e){var t=this.all();delete t[e],this.gs.set("cp",t)},i.save=function(){this.gs.save()},i.append=function(e,t,i,n,r){if(void 0===i&&(i=void 0),void 0===n&&(n=!1),void 0===r&&(r=","),this._isCPPEnabled(e)){var s=this.all(),o="string"==typeof s[e]&&s[e].split(r)||[];(null!=t&&n?t!==o[o.length-1]&&""!==t:""!==t)&&(o.push(t),"number"==typeof i&&o.length>i&&(o=o.splice(-1*i)),s[e]=o.join(r),this.gs.set("cp",s))}},t}(),Se=function(i){function n(t,n){var r;r=i.call(this,t,n)||this,e.ext(q(r),{cThreshold:2e3},!1);var s=U;return r.pers==s.CK||r.pers==s.CK_Hybrid?(r.ckie=new ue(F(q(r))),le(r.ckie)):r.pers==s.DS?r.cThreshold=500:n&&(r.uid=n),t.ready.subscribe((function(){r.__continueStartup()}),!0,!0),r}z(n,i);var r=n.prototype;return r.__continueStartup=function(){var e=this;this._sync((function(){e.get("rid")?e.uid=e.get("rid"):(e.uid=e.uid||oe(),e.set("rid",e.uid)),e.setUpdateInterval(e._updateTimeout),e._maint(!0),e._readyState.fire(e),e.ready.fire(e)}))},r._sync=function(i){var n,r,s=this;if(!this.isSyncing)if(this.isSyncing=!0,i=i||function(){},this.pers==U.CK||this.pers==U.CK_Hybrid){if(!(n=this.ckie.getByNestedCookieName(e.key4CStorage))&&this.pers==U.CK_Hybrid&&this.browser.supportsLocalStorage){var o=localStorage.getItem(e.key4CStorageLegacy);o&&(this.ckie.set(e.key4CStorage,o),n=o)}if(n)return this.pers==U.CK_Hybrid&&this.browser.supportsLocalStorage&&J.prototype.setItem(e.key4CStorageLegacy,n),n=t.decompress(n),this._lastSync=j(),r=JSON.parse(n),this._fireChangeEvents(r.keys),r.keys=r.keys||{},this._data=r,this.onSync.fire(this),this.isSyncing=!1,void e.nextTick(i);this.isSyncing=!1,e.nextTick(i)}else if(this.pers==U.DS){if(n=localStorage.getItem(e.key4CStorageLegacy)){if(n=t.decompress(n),this.lastSync=j(),(r=JSON.parse(n)).keys=r.keys||{},this._fireChangeEvents(r.keys),this._data=r,e.nextTick((function(){s.onSync.fire(s)})),j()-this._data.when<3e5)return this.isSyncing=!1,void e.nextTick(i);this.lastSync=j(),this._data={when:j(),keys:{}}}this.isSyncing=!1,e.nextTick(i)}},r._commit=function(){clearTimeout(this.lock),this.lock=null,this.lastSave=j(),this._data.when=this.lastSave;var i="";try{i=JSON.stringify(this._data)}catch(Ie){return}if(this.pers==U.CK||this.pers==U.CK_Hybrid){var n=e.ext({},this._data);for(var r in n.keys)delete n.keys[r].t;i=JSON.stringify(n);var s=t.compress(i);this.ckie.set(e.key4CStorage,s),this.pers==U.CK_Hybrid&&this.browser.supportsLocalStorage&&J.prototype.setItem(e.key4CStorageLegacy,s),this.onCommit.fire(this._data)}else this.pers==U.DS&&(J.prototype.setItem(e.key4CStorageLegacy,t.compress(i)),this.onCommit.fire(this._data));this.isStale=!1},n}(H),we=window.name,ke=function(){function t(e,t){this.guid="FSR_"+e.replace(/[^a-zA-Z0-9]/g,"").toUpperCase(),this.storageLimit=t||10485760,this.StorageFull=new k,this.kill(),this.sync()}var i=t.prototype;return i.size=function(){return this.storageBytesObj+this.storageBytesBlob},i.testStorageLimit=function(){return this.size()>=this.storageLimit&&(this.StorageFull.fire(this),!0)},i.dispose=function(e){this._data_obj[e]&&(delete this._data_obj[e],this.storageBytesObj=JSON.stringify(this._data_obj).length)},i.kill=function(){this.storageBytesObj=0,this.storageBytesBlob=0,this._data_obj={},this._data_blob="",this.isNewStorage=!0},i.get=function(e){return this._data_obj[e]},i.getBlob=function(){return this._data_blob},i.erase=function(e){delete this._data_obj[e],this.storageBytesObj=JSON.stringify(this._data_obj).length,this.isNewStorage=!1,this.testStorageLimit()},i.eraseAll=function(){this.kill(),this.commit()},i.set=function(e,t){t&&(this._data_obj[e]=t,this.storageBytesObj=JSON.stringify(this._data_obj).length,this.isNewStorage=!1,this.testStorageLimit())},i.setBlob=function(e){this._data_blob=e,this.storageBytesBlob=this._data_blob.length,this.isNewStorage=!1,this.testStorageLimit()},i.isNew=function(){return this.isNewStorage},i.sync=function(){var e=we||window.name||"",t=this.guid+"_",i="",n=e.indexOf(t+"BEGIN_OBJ");n>-1&&(i=e.substr(n+(t+"BEGIN_OBJ").length,e.indexOf(t+"END_OBJ")-(n+(t+"BEGIN_OBJ").length)));try{i.length>0&&(this._data_obj=JSON.parse(i),this.storageBytesObj=i.length,this.isNewStorage=!1)}catch(Ie){return}i="",(n=e.indexOf(t+"BEGIN_BLOB"))>-1&&(i=e.substr(n+(t+"BEGIN_BLOB").length,e.indexOf(t+"END_BLOB")-(n+(t+"BEGIN_BLOB").length))),i.length>0&&(this._data_blob=i,this.storageBytesBlob=i.length,this.isNewStorage=!1)},i.commit=function(){var t=window.name;e.isDefined(t)||(t="");var i=this.guid+"_",n=t.indexOf(i+"BEGIN_OBJ"),r=i+"BEGIN_OBJ"+JSON.stringify(this._data_obj)+i+"END_OBJ";n>-1?t=t.substr(0,n)+r+t.substr(t.indexOf(i+"END_OBJ")+(i+"END_OBJ").length):t+=r,n=t.indexOf(i+"BEGIN_BLOB"),r=i+"BEGIN_BLOB"+this._data_blob+i+"END_BLOB",n>-1?t=t.substr(0,n)+r+t.substr(t.indexOf(i+"END_BLOB")+(i+"END_BLOB").length):t+=r,window.name=we=t,this.storageBytes=window.name.length},t}();ke.initialize=function(e){e.apply(ke)},ke.isSupported=function(){return!0};var Ce=function(){function t(e,t,i,n){this.stg=e,this.cfg=t,this.cpps=i,this.browser=n}var i=t.prototype;return i.browserCheck=function(e,t){return!(!e.isMobile&&t.config.browserCutoff[e.browser.name]&&e.browser.actualVersion<t.config.browserCutoff[e.browser.name])},i.featureCheck=function(e,t){return!(t.config.persistence==U.DS&&!e.supportsLocalStorage)},i.platformCheck=function(e,t){return!(t.config.platformCutoff[e.os.name]&&e.os.version<t.config.platformCutoff[e.os.name])},i.checkDeviceBlacklist=function(t,i){for(var n=0;n<i.config.deviceBlacklist.length;n++)if(e.toLowerCase(t.agent).indexOf(e.toLowerCase(i.config.deviceBlacklist[n]))>-1)return!1;return!0},i._match=function(e,t,i){var n=e.definitionWhitelist,r=e[i||"triggerBlacklist"];if(e.criteria){if(!e.criteria.supportsSmartPhones&&!t.isTablet&&t.isMobile)return!1;if(!e.criteria.supportsTablets&&t.isTablet)return!1;if(!e.criteria.supportsDesktop&&!t.isMobile)return!1}if(r&&this.runAllTests(r,t,!1,!0))return!1;return!n||this.runAllTests(n,t,!1,!0)},i.runAllTests=function(t,i,n,r){var s,o=new ue({}),a={urls:P.location.href.toString(),referrers:document.referrer.toString(),userAgents:P.navigator.userAgent};function c(e,t){Array.isArray(t)||(t=[t]);for(var i=0,n=t.length;i<n;i++)if("string"==typeof t[i]&&(t[i]=t[i].replace(/-_DS_-/gi,"$$")),D(t[i],e))return!0;return!1}for(var l in t){var u=t[l];if(u.length>0){if(s=!1,a[l])s=c(a[l],u);else if("browsers"==l)for(var d=i.browser.name,f=i.browser.actualVersion,h=0;h<u.length;h++)e.toLowerCase(d).indexOf(e.toLowerCase(u[h].name))>-1&&(u[h].comparison?("lt"==u[h].comparison&&f<u[h].version||"eq"==u[h].comparison&&f==u[h].version||"gt"==u[h].comparison&&f>u[h].version)&&(s=!0):s=!0);else if("cookies"==l)for(var g=0;g<u.length;g++){var p=u[g],v=o.getByCookieName(p.name);(e.isDefined(p.value)&&v==p.value||!e.isDefined(p.value)&&v)&&(s=!0)}else if("variables"==l)for(var m=0;m<u.length;m++){var y=u[m],b=pe(P,y.name);b||(b="boolean"!=typeof b&&"");var _=e.isDefined(y.value);(_&&b===y.value||_&&D(y.value,b)||!_&&b)&&(s=!0)}else if("css"==l)for(var S=function(e){for(var t=u[e],i=document.querySelectorAll(t.name),n=[],r=0;r<i.length;r++)n.push(i[r]);t.visible&&(n=n.filter((function(e){for(var t=e.getClientRects(),i=0;i<t.length;i++){var n=t[i];if(n.width>0&&n.height>0)return!0}return!1}))),t.value&&(n=n.filter((function(e){return c(e.innerText,t.value)}))),n.length&&(s=!0)},w=0;w<u.length;w++)S(w);else if("cpps"==l)for(var k=this.cpps.all(),C=0;C<u.length;C++){var I=u[C],O=I.name,x=I.value;if(O&&void 0!==typeof x){var E=k[O];void 0!==typeof E&&(E===x||T(x,E))&&(s=!0)}}if(!s&&n)return!0;if(s&&r)return!0}}return!1},i.doesPassCriteria=function(){var e="DIDNOTPASSCRITERIA",t={passed:!1};return this.platformCheck(this.browser,this.cfg)?this.browserCheck(this.browser,this.cfg)?this.checkDeviceBlacklist(this.browser,this.cfg)?this.featureCheck(this.browser,this.cfg)?t.passed=!0:(t.inviteStatus=e,t.reason="BROWSER"):(t.inviteStatus=e,t.reason="DEVICE"):(t.inviteStatus=e,t.reason="BROWSER"):(t.inviteStatus=e,t.reason="PLATFORM"),t},i.getFittingDisplay=function(t,i,n,r){n=n||this.cpps.get("locale")||"en";var s,o,a,c,l={},u={};if(s=(r=r||this.browser).isMobile&&t.display.mobile?t.display.mobile:t.display.desktop)for(c=0;c<s.length;c++)u=l.dialog||{},l=e.ext({},l),l=e.ext(l,s[c]),s[c].dialog&&l.dialog&&(l.dialog=e.ext(e.ext({},u),s[c].dialog)),s[c]=l;if(i){for(c=0;c<s.length;c++)if(s[c].displayname==i){a=s[c];break}}else a=s[Math.round(999999999999*Math.random())%s.length];return a.dialog.locales&&a.dialog.locales[n]&&(o=a.dialog.locales[n],a.dialog=e.ext(a.dialog,o),o.localeImages&&(a=e.ext(a,o.localeImages))),e.ext({inviteLogo:"",inviteThankyouLogo:"",trackerLogo:"",siteLogoAlt:""},a)},i.incrementGeneralPageViewCount=function(){var e=(this.stg.get("pv")||0)+1;this.stg.set("pv",e,this.cfg.config.pageViewsResetTimeout||864e5),this.cpps.set("pv",e,this.cfg.config.pageViewsResetTimeout||864e5)},i.getMeasureIdForDefinition=function(e,t,i){return[e.name,e.site,e.section,t,i?i.qualifiesValue:null].filter((function(e){return e})).join("-")},i.getShortSurveyOptions=function(e,t){var i=this.cpps.get("locale")||"en",n=this.getMeasureIdForDefinition(e,i),r=this.stg.get(n+"pc")||0;return!(!this.stg.get(n+"li")&&t.shortSurvey.idleViewsBeforeStop<=r)&&{presentedCount:r}},i.getPageViewCountForDefinition=function(e){var t=this.cpps.get("locale")||"en",i=this.getMeasureIdForDefinition(e,t);return this.stg.get(i+"pv")||0},i.incrementPageViewCountForDefinition=function(e){var t=this.cpps.get("locale")||"en",i=this.getMeasureIdForDefinition(e,t),n=this.getPageViewCountForDefinition(e);this.stg.set(i+"pv",n+1,this.cfg.config.pageViewsResetTimeout||864e5)},i.evalLoyaltySampling=function(e,t){var i=this.getPageViewCountForDefinition(e),n=e[t]||e.criteria,r=(this.stg.get("pl"),n.sp.reg||0),s=100*Math.random();return i>=n.lf&&s<=r},t}();return i.APPID=A,i.AjaxTransport=M,i.Async=se,i.Bind=v,i.BindOnce=m,i.Browser=Y,i.CPPS=_e,i.Cookie=ue,i.DOMContains=d,i.DomStorage=J,i.FSEvent=k,i.INT=re,i.ImageTransport=ye,i.Journey=ge,i.ModalIFrame=O,i.SeshStorage=X,i.TemplateFetcher=be,i.TriggerCriteria=Ce,i.Unbind=y,i.WindowStorage=ke,i._brainStorage=de,i._preventUnloadFor=function(e){b=!0,setTimeout((function(){b=!1}),e)},i.addClass=c,i.b64DecodeUnicode=function(t){return e.dec(Array.prototype.map.call(atob(t).split(""),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},i.checkFeedbackTopicAllowed=function(t){var i=window._acsURL||window.location.toString();function n(e){if(!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(D(e[t],i))return!0;return!1}return i=e.toLowerCase(i),(!t.whitelistActive||n(t.whitelistData))&&(!t.blacklistActive||!n(t.blacklistData))},i.checkIfStorageIsEnabled=W,i.checkRegexOption=T,i.compile=function(e){var t=[].constructor.constructor;delete[].constructor.constructor;var i=new[].constructor.constructor("var v = ''; try { v = "+e+"} catch(err) {}return v;");return[].constructor.constructor=t,i.call(window)},i.debounce=function(e,t,i){var n,r=0,s=!1,o=function(){var o=this,a=arguments,c=j()-r;clearTimeout(n);var l=function(){s=!1,r=j(),e.apply(o,a)};i&&s&&c>i&&c<i+t+1?l():(s=!0,n=setTimeout(l,t))};return o.cancel=function(){r=j(),clearTimeout(n)},o},i.decodeHTMLEntities=function(e){return""===e?"":(new DOMParser).parseFromString(e,"text/html").documentElement.textContent},i.findMatchingDefFromList=function(e,t){var i=t.name||"",n=t.section||"",r=t.site||"",s=i+"-"+n+"-"+r;return e.filter((function(e){var t=e.name||"",i="*"===e.section?n:e.section||"",o="*"===e.site?r:e.site||"";return s===t+"-"+i+"-"+o}))[0]||null},i.findSurveyDefinition=function(t,i,n,r){for(var s,o,a,c,l=t.surveydefs,u=function(t,i){if(!e.isDefined(t))return null;var n=null;return"number"==typeof t&&t>=0&&t<i.length?n=i[t].uid:"string"!=typeof t||(n=t),n}(n.get("def"),l),d=0;d<l.length;d++){if(!(a=l[d]).uid||"string"!=typeof a.uid)throw new Error('All survey definitions need a "uid" string property.');e.isDefined(u)&&a.uid==u&&(o=d,s=a),c&&(a=e.ext(c,a),!l[d].site&&c.site&&delete a.site,!l[d].section&&c.section&&delete a.section,l[d]=a),c=e.ext({},a)}if(s&&"default"!=s.definitionPriorityMethod&&"pin"!=s.definitionPriorityMethod){if(s)return{def:s}}else for(var f,h=s&&"pin"==s.definitionPriorityMethod?o+1:l.length,g=0;g<h;g++)if(f=l[g],o==g&&"pin"==s.definitionPriorityMethod||i._match(f,r))return"x"===n.get("i")&&n.set("def",f.uid,t.config.surveyDefResetTimeout||864e5),{def:f};return s&&ve(n)?{def:s,showTracker:!0}:null},i.generateGUID=function(){return oe().replace(/-/g,"")},i.getBrainStorage=fe,i.getBrowserInstance=Q,i.getGeneralStorage=function(t,i){var n=e.getVendorConfig("fs").storage.toUpperCase(),r=R.StorageInstances,s=U;return t.supportsLocalStorage||n!=s.DS?t.isMobile&&n==s.CL&&(n=s.MC):n=s.CK,n==U.CK||n==U.DS||n==U.CK_Hybrid?(r.generalStorage||(r.generalStorage=new Se(t,i)),r.generalStorage):(r.brainStorage||(r.brainStorage=new de(t,i)),r.brainStorage)},i.getHashParm=function(t){var i=window.location.hash.toString();if(i&&i.length>0)for(var n=i.split("&"),r=0;r<n.length;r++){var s=n[r].split("=");if(e.toLowerCase(s[0]).trim()==e.toLowerCase(t)){if(s.length>1)return decodeURIComponent(s[1]);break}}},i.getKeyCode=S,i.getRootDomain=N,i.getScreenResolution=function(){var t=window.screen;return e.isDefined(t)&&e.isDefined(t.width)&&"number"==typeof t.width?{w:t.width,h:t.height}:{w:0,h:0}},i.getScroll=function(e){var t=0,i=0,n=e.document,r=n.documentElement;return"number"==typeof e.pageYOffset?(i=e.pageYOffset,t=e.pageXOffset):n.body&&(n.body.scrollLeft||n.body.scrollTop)?(i=n.body.scrollTop,t=n.body.scrollLeft):r&&(r.scrollLeft||r.scrollTop)&&(i=r.scrollTop,t=r.scrollLeft),{x:t,y:i}},i.getSize=function(e){var t=0,i=0,n=e.document,r=n.documentElement;return"number"==typeof e.innerWidth?(t=e.innerWidth,i=e.innerHeight):r&&(r.clientWidth||r.clientHeight)?(t=r.clientWidth,i=r.clientHeight):n.body&&(n.body.clientWidth||n.body.clientHeight)&&(t=n.body.clientWidth,i=n.body.clientHeight),{w:t,h:i}},i.hasClass=u,i.hash=function(e){var t=e.split("_");return""+(3*t[0]+1357)+(9*t[1]+58)},i.imgInfo=function(t,i){var n=function(){};i=i||n;var r=new Image;if(r.onload=function(){i(r.width,r.height)},r.onerror=function(){i()},t.indexOf("//")>-1?r.src=t:r.src=e.makeURI("$"+t),r.width)return r.onload=r.onerror=n,i(r.width,r.height)},i.initBehavioralData=function(t,i,n,r){var s;if(ae!==location.href){ae=location.href;var o=new ge({customerId:t,appId:A.BEHAVIOR,stg:i,browser:n,throttleDuration:0,useSessionId:!0,usePopupId:!1}),a={fs_pageUrl:[location.href],fs_referrer:[document.referrer],fs_utmSource:[e.getParam("utm_source")],fs_utmMedium:[e.getParam("utm_medium")],fs_utmCampaign:[e.getParam("utm_campaign")],fs_utmTerm:[e.getParam("utm_term")],fs_utmContent:[e.getParam("utm_content")]};for(s in a)a[s][0]||delete a[s];var c=document.querySelector('meta[name="description"]')||document.querySelector('meta[property="og:description"]')||document.querySelector('meta[name="og:description"]'),l={fs_ga_uid:r.get("GA_UID"),fs_adobe_uid:r.get("OMTR_MCID"),fs_pageTitle:String(document.title),fs_pageDescription:c&&String(c.getAttribute("content"))};for(s in l)l[s]||delete l[s];o.addEvent({name:"fs_pageView",properties:a,data:l})}},i.isControlKey=function(e){return e instanceof KeyboardEvent&&-1==w.indexOf(S(e))},i.isTrackerAlive=ve,i.loadCSS=function(e,t,i){var n=ee[e];if(n){if(n.link.parentElement)return n.success.subscribe(t||function(){},!0,!0),n.fail.subscribe(i||function(){},!0,!0),n.link;delete ee[e]}var s="fs-css-"+ ++te,o=r.createElement("link");o.setAttribute("id",s),o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css");var a={link:o,url:e,didfail:!1,didsucceed:!1,success:new k,fail:new k};a.success.subscribe(t||function(){},!0,!0),a.fail.subscribe(i||function(){},!0,!0),ee[e]=a,o.addEventListener("load",(function(){a.didsucceed=!0,a.success.fire(o)}),!1),o.addEventListener("error",(function(){a.didfail=!0,a.fail.fire(o)}),!1);var c=r.documentElement,l=r.getElementsByTagName("head");return l&&l.length>0&&(c=l[0]),c.appendChild(o),o.setAttribute("href",e),o},i.now=j,i.pageNavEvent=C,i.preventDefault=function(e){e&&e.preventDefault?e.preventDefault():n.event&&n.event.returnValue?n.eventReturnValue=!1:e.returnValue=!1},i.products=me,i.registerProduct=function(e,t){t=t||{},me[e]=t},i.removeClass=l,i.retrieveNestedVariable=pe,i.sendWithoutWaiting=function(t,i,n){var r=n?"application/json":"application/x-www-form-urlencoded";if(void 0===n&&(n=!0),"function"==typeof navigator.sendBeacon)try{navigator.sendBeacon(t,n?JSON.stringify(i):e.toQueryString(i))}catch(Ie){}else(new M).send({method:"POST",url:t,data:i,contentType:r,timeout:1e4,sync:!0})},i.setScroll=function(e,t,i){e.scrollTo(t,i)},i.setStorageIsEnabled=function(t){if(!0===t){if("cookie"===K()){var i=R.StorageInstances.generalStorage||R.StorageInstances.brainStorage;i.ckie.set(e.key4CEnableStorage,t,!0,!0),i._commit()}else if("windowStorage"===K()){var n=R.StorageInstances.generalStorage||R.StorageInstances.brainStorage;localStorage.setItem(e.key4CEnableStorage,t,!0),n._commit()}}else window.FSR.clearState()},i.startTime=V,i.storageTypes=U,i.testAgainstSearch=D,i.testSameDomain=function(t,i){var n=document.createElement("a"),r=n.hostname,s=n.protocol;n.href=t;var o=n.hostname||r,a=0===n.protocol.indexOf("http")?n.protocol:s;n.href=i;var c=n.hostname||r,l=0===n.protocol.indexOf("http")?n.protocol:s;return e.toLowerCase(o)==e.toLowerCase(c)&&e.toLowerCase(a)==e.toLowerCase(l)},i.toggleClass=function(e,t,i){return u(e,t)&&!1!==i||!0===i?(c(e,t),!0):(l(e,t),!1)},i}));