try{!function(e,n,r,t,o){"use strict";var a=function(){},i=function(e,n,r){var t=e[n];e[n]=function(){var e=t.apply(this,arguments);return r.apply(this,arguments),e}},c=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=e.obApi;s.version="1.0.10";var u=function(){var e,n=[],t=!1,o=function(r){return e?i(r):!1===e?void a():(n.push(r),void(t||(t=!0,d.checkHasConsent(function(r){if(e=!!r)for(var t=0;t<n.length;t++)i(n[t]);else for(var o=0;o<n.length;o++)a(n[o])}))))},a=function(){(new Image).src="//tr.outbrain.com/log?obApiVersion="+obApi.version+"&msg="+encodeURIComponent('{"error":"NO CONSENT",  "obApiVersion": '+obApi.version+', "marketerID": '+obApi.marketerId+"}")},i=function(e){var n=Math.random().toString().replace(".","");((new r).src="//tr.outbrain.com/pixel?"+u(e)+"&bust="+n,"PAGE_VIEW"===e.name)&&((new r).src="//amplifypixel.outbrain.com/pixel?mid="+e.marketerId+"&"+u({dl:e.dl||""})+"&bust="+n)},u=function(e){var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r+"="+encodeURIComponent(e[r]));return n.join("&")},f=function(){var e="";try{e=window.top.location.href}catch(n){e=document.location.href}return e};return function(){var e,n=arguments,r=n[0],t=n[2]&&"object"==typeof n[2]?n[2]:{};for(!1===c(s.marketerId)&&(s.marketerId=[s.marketerId]),e=0;e<s.marketerId.length;e++)switch(t.marketerId=s.marketerId[e],t.obApiVersion=s.version,t.name=n[1].replace(/ /g,"-"),t.dl=f(),r){case"track":p(t,r),o(t);break;default:m(m.LOG_TYPES.ERROR,"Command type "+r+" is not recognized",t.name)}}}();obApi.dispatch=u;var d=function(){var e=0;return{checkHasConsent:function(n){var r=function(){clearTimeout(e),window.removeEventListener?window.removeEventListener("message",t,!1):window.detachEvent&&window.detachEvent("message",t,!1),n.apply(n,arguments)},t=function(e){var n;try{n=e&&"string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){r(!0)}n&&n.__cmpReturn&&o(r,n.returnValue,n.success)},o=function(e,n,r){if(!r||!n||!n.vendorConsents||void 0===n.vendorConsents[164]||!0===n.vendorConsents[164])return e(!0);e(!1)};try{if(e=setTimeout(function(){r.call(n,!0)},500),window.__cmp)!function(e){"function"==typeof window.__cmp?window.__cmp("getVendorConsents",[164],function(n,r){o(e,n,r)}):e(!0)}(r);else{var a,i=window;try{for(;!a&&(i.frames.__cmpLocator&&(a=i),i!==window.top);)i=i.parent}catch(e){a=window.top}if(window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent&&window.attachEvent("message",t,!1),!a)return void r({msg:"CMP not found"},!1);var c={__cmpCall:{command:"getVendorConsents",parameter:[164],callId:"obamplify"}};a.postMessage(c,"*")}}catch(e){throw r(!0),e}}}}(),m=(function(){var n;if(t.pushState&&t.replaceState&&e.addEventListener){var r=function(){o.href!==n&&(n=o.href,obApi("track","PAGE_VIEW"))};i(t,"pushState",r),i(t,"replaceState",r),e.addEventListener("popstate",r,!1)}}(),function(){var n=e.postMessage||a,r=function(e,r,t){n({action:"log",type:e,message:r,name:t?t.replace(/ /g,"-"):""},"*")};return r.LOG_TYPES={LOG:"log",WARNING:"warning",INFO:"info",ERROR:"error"},r}()),p=function(){var e={USD:1,CAD:1,EUR:1,GBP:1,ILS:1,AUD:1,MXN:1,BRL:1,SEK:1,SGD:1,RUB:1,NZD:1,INR:1,JPY:1,PHP:1,CHF:1},n=new RegExp("^[A-Za-z0-9]+[A-Za-z0-9-]*$"),r=new RegExp("^[0-9]+[.0-9]*$");return function(t,o){return t.orderValue&&!t.currency?(m(m.LOG_TYPES.WARNING,"Order value reported but no currency is declared",t.name),!1):t.currency&&!e.hasOwnProperty(t.currency)?(m(m.LOG_TYPES.WARNING,"Currency not recognized",t.name),!1):t.orderValue&&!r.test(t.orderValue)?(m(m.LOG_TYPES.WARNING,"Order value can only be a positive number",t.name),!1):"PAGE_VIEW"===t.name||n.test(t.name)?!("PAGE_VIEW"!==t.name&&t.name.length>20)||(m(m.LOG_TYPES.WARNING,"Event name length cannot exceed 20 characters",t.name),!1):(m(m.LOG_TYPES.WARNING,"Event Name invalid",t.name),!1)}}();!function(){for(var e=!1;s.queue.length;){var n=s.queue.shift();if("PAGE_VIEW"===n[1]&&!n[2]){if(e)continue;e=!0}s.dispatch.apply(s,n)}}()}(window,document,Image,history,location)}catch(e){(new Image).src="//tr.outbrain.com/log?obApiVersion="+obApi.version+"&msg="+encodeURIComponent('{"error":"LOAD", "obApiVersion": '+obApi.version+', "marketerID": '+obApi.marketerId+', "referrer": '+document.referrer+', "extra": {"name":"'+e.name+'","line":"'+(e.lineNumber||e.line)+'","script":"'+(e.fileName||e.sourceURL||e.script)+'","stack":"'+(e.stackTrace||e.stack)+'","message":"'+e.message+'"}}')}