a55504372f1c7a96eb94b1cfb4c9e965021be7fea88f453aa1fbd5d485e013f5

Source Code:

function string_replace(e,t,i){if(t=t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e&&t){var n=new RegExp(t,"ig");e=e.replace(n,i)}return e}var makeCRCTable=function(){try{for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}catch(e){return null}},crc32=function(e){try{for(var t=window.crcTable||(window.crcTable=makeCRCTable()),i=-1,n=0;n<e.length;n++)i=i>>>8^t[255&(i^e.charCodeAt(n))];return(-1^i)>>>0}catch(e){return 0}},cpm_decode=function(e){if(e){for(var t=e.match(/\d+/)+"",i=t.length,n=parseInt(t),a=[],r=0;r<e.length-i;r++)a.push(String.fromCharCode(e.charCodeAt(r)-52));var o=a.join("");return 0<n?parseFloat(o.substring(0,o.length-n)+"."+o.substring(o.length-n,o.length)):parseFloat(o)}return 0};function shuffleArray(e){var t=e.concat(),i=[];if(t&&"object"==typeof t&&0<t.length)for(;0<t.length;){var n=Math.floor(Math.random()*t.length);i.push(t.splice(n,1)[0])}else i=t;return i}function getHostnameFromUrl(e){var t="";if(e)try{var i=document.createElement("a");0==e.toLowerCase().indexOf("http")||0==e.toLowerCase().indexOf("//")?i.href=e:i.href="https://"+e,t=i.hostname.toLowerCase()}catch(e){t=""}return t}function getParameterByName(e,t){try{e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null==i?"":decodeURIComponent(i[1].replace(/\+/g," "))}catch(e){return""}}function dntSetting(){var e=0;try{window.navigator.doNotTrack&&"undefined"!=window.navigator.doNotTrack&&"null"!=window.navigator.doNotTrack&&"unspecified"!=window.navigator.doNotTrack?e=window.navigator.doNotTrack:window.doNotTrack&&"undefined"!=window.doNotTrack&&"null"!=window.doNotTrack&&"unspecified"!=window.doNotTrack&&(e=window.doNotTrack),e&&"yes"==e?e=1:e&&"no"==e&&(e=0)}catch(e){}return e=e||0}function mobile_check(){var e=!1;try{void 0!==window.orientation&&"ontouchstart"in window&&(!navigator.platform||0!=navigator.platform.indexOf("iP")&&0!=navigator.platform.indexOf("Android")&&0!=navigator.platform.indexOf("Linux")||(e=!0))}catch(e){}return e}function isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function isNode(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}function deepCopy(e){if(!isNode(e)&&!isElement(e)){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],i=0,n=e.length;i<n;i++)t[i]=arguments.callee(e[i]);return t}if("object"==typeof e){if(e){t={};for(i in e)t[i]=arguments.callee(e[i]);return t}return null}}return e}function fif_check(){var e=!1;try{var t;if(window.parent&&window.parent.document)try{(t=document.createElement("div")).style.display="none",t.id="lkqd-fif-check",window.parent.document.body.appendChild(t),window.parent.document.getElementById("lkqd-fif-check")?(e=!0,window.parent.document.getElementById("lkqd-fif-check").parentNode.removeChild(window.parent.document.getElementById("lkqd-fif-check"))):t.parentNode&&t.parentNode.removeChild(t),t=null}catch(e){t=null}}catch(e){}return e}function top_access_check(){var e=!1;try{if(window.top&&window.top.document)try{var t=document.createElement("div");t.style.display="none",t.id="lkqd_wt_check",window.top.document.body.appendChild(t),window.top.document.getElementById("lkqd_wt_check")&&(e=!0,window.top.document.getElementById("lkqd_wt_check").parentNode.removeChild(window.top.document.getElementById("lkqd_wt_check")))}catch(e){}}catch(e){}return e}function element_position(e){var t=-1,i=-1,n=-1,a=-1;try{if(e&&e.getBoundingClientRect){var r=e.getBoundingClientRect();r&&(t=r.left,i=r.top,t=Math.floor(t),i=Math.floor(i),pxr=r.right,pyb=r.bottom,pxr=Math.floor(pxr),pyb=Math.floor(pyb),n=pxr-t,a=pyb-i,5e3<n&&(n=-1),5e3<a&&(a=-1))}}catch(e){a=n=i=t=-1}return[t,i,n,a]}function element_dimensions(e){var t;if(e)try{var i,n;if(e.style&&(e.style.width&&(i=(i=e.style.width).replace("px","")),e.style.height&&(n=(n=e.style.height).replace("px",""))),(!i||!n||0<i.indexOf("%")||0<n.indexOf("%")||0<i.indexOf("em")||0<n.indexOf("em"))&&e.getBoundingClientRect){var a=e.getBoundingClientRect();a&&(px=a.left,py=a.top,px=Math.floor(px),py=Math.floor(py),pxr=a.right,pyb=a.bottom,pxr=Math.floor(pxr),pyb=Math.floor(pyb),i=pxr-px,n=pyb-py,5e3<i&&(i=0),5e3<n&&(n=0))}if(10<i&&10<n){try{i=parseInt(i),n=parseInt(n)}catch(e){}t=[i,n]}}catch(e){}return t}function element_style(e,t){var i;try{window.getComputedStyle?i=window.getComputedStyle(e,null)[t]:document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,"")[t]:e.currentStyle?(i=e.currentStyle[t])&&"auto"!=i&&"undefined"!=i&&"NaN"!=i||("height"==t?i=e.clientHeight:"width"==t&&(i=e.clientWidth)):i=e.style[t]}catch(e){}return i}function window_dimensions(e){var t,i,n=[0,0];try{if(e.innerWidth&&"number"==typeof e.innerWidth)t=Math.floor(e.innerWidth);else{t=e.document.documentElement.clientWidth||e.document.body.clientWidth;try{t=Number(t.replace("px",""))}catch(e){}}e.innerHeight&&"number"==typeof e.innerHeight&&(i=Math.floor(e.innerHeight))}catch(e){}return t&&i&&(n=[t,i]),n}function xml_node_value(e,t){var i="";if(e&&e.nodeValue)try{0==(i=e.nodeValue.trim()).toLowerCase().indexOf("<![cdata[")&&(i=(i=i.substring(9,i.length-3)).trim())}catch(e){}if(!i&&e&&(!e.nodeValue||""==e.nodeValue.trim())&&e.parentNode&&e.parentNode.childNodes[1]&&e.parentNode.childNodes[1].nodeValue)try{0==(i=e.parentNode.childNodes[1].nodeValue.trim()).toLowerCase().indexOf("<![cdata[")&&(i=(i=i.substring(9,i.length-3)).trim())}catch(e){}try{if(i&&e&&e.parentNode&&e.parentNode.childNodes[1]&&e.parentNode.childNodes[1].nodeValue&&0==e.parentNode.childNodes[1].nodeValue.indexOf("-"))for(var n=0;n<e.parentNode.childNodes.length;n++)e.parentNode.childNodes[n].nodeValue&&(e.parentNode.childNodes[n].nodeValue==i||(i+=e.parentNode.childNodes[n].nodeValue))}catch(e){}return 1==t&&(i&&0==i.toLowerCase().indexOf("http")||(i=i&&0==i.indexOf("//")?wlp+i:"")),i}function Timer(e,t){var i,n,a=t;this.pause=function(){window.clearTimeout(i),a-=new Date-n},this.resume=function(){n=new Date,window.clearTimeout(i),i=window.setTimeout(e,a)},this.resume()}var loading_icon="data:image/png;base64,R0lGODlhKAAoAMQfAMXFxRkZGSgoKBMTE6SkpLCwsCAgIDMzM2hoaAMDA09PT3p6elVVVZiYmGNjYz4+Pg0NDVxcXIODgwcHB4+Pj0RERDo6Ov///9ra2uvr60pKSnFxcc7Ozr6+vgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCAAfACwAAAAAKAAoAAAF/+AnjmRpnmiqksuyvrB4XWUSxLhMk1Fm5LEZKZHheIAw4UiT0SCTu4+Hk0kAPdjVADISZCKlCWGiwmZxBuvIgMEcVubjU9BmwOLISluQO+fYP0+CZXKDKQM3Ih4TEwl+hh8TDwUAAHIeCQmMjZAfG5UADQ+FipqkgpMKXJ2sra6sZq0QE6sjELe4p08JBL29FCK0s4y6SB4KERG9CK/Nzs8pHrOGBgdqKIsB2oYbEhICxTbaEMU4CQfeG4kkEAHkrQkaEm8ljyIQ1ysJAyaOMAkCAr1QgKBWjgQGBORTAQFBhIUvPAQQwK+LhUsK6Ik4gMACEAgBC3mwcHGEAgUiCSuu+xeA1AQLfEYcUEBmRAIEFQcNsJDzwwAFK1sJsFAzWEZnB0qSEBAT2qAQACH5BAkIAB8ALAAAAAAoACgAAAX/4CeOZGmeaKqubPt5HpsEbgrHq3MZ9XnjqMQFA+yRbirFRWF8lX5BzCVh9CSoRxjqcHGUJoWJyjOZYEXalOH8MWQylpXVXKwJ3pHWnO3SvAU1VnUtbjxNhzKDiCYDhh8JEBB0i18VHRhEaJCREHyHC5gYBBV1CROdlCKWDBCprq+wsSNXnoicJQG5uopGCQC/vwUiA7mcvD0eERsbvxKyz9DRKZuUAg+1Ix4QAgKOhxQEBAeKEAbcA8ctCQ/hFN4iAQIB6T0TEQQPJmnZ8y6QJhPowbNAQ4aEDWKaTLBwAJuJAxIYNElwwEKrEQcU4BiAwJEHBhLesRBgwZsHBRpFMEBAUIFEAgkSErooV2SCggMkECAoEgBhqgAKCqpCcFFWRpkfAnSEViHliIVCpSEKAQAh+QQJCAAfACwAAAAAKAAoAAAF/+AnjmRpnmiqkp63vmhbynAtJlMyu3btTROeiNaD4YQfYnE2y7GQyxsEeuwZCLpUAgLJDqErx+USWG27UY/4YjByvTbCBVP2BZcODCTKN4P7JQFtNwEBAwl/URMaHBkZPB4QA4UBe4AfEo4ZBRpUEAFwfIwRA5emp6ipQwmIqFyWQwKysoOXCRi4uB0is5OwgB4ICwu4FKrHyMkpHpWAEQeJQwMWFgd9EwAABXUmEAfUAdEwEBvZDb8iARYGoX0BDQDcIx6hHgbiJBAK3TUGCgI1FhCwtkRfhXYoEhAggO5FggoKflVAkCWABIAjBBBYgDDFgX8sECDgAUECgxIRCCo86AFBABwICCqQkCABiYcIDYsYQFDrAwMJOS9N/GXgIrIII0ks6qksSggAIfkECQgAHwAsAAAAACgAKAAABf/gJ45kaZ5oqpLJtL5o4pWTS3oznCaQPdYlXE5n8kAgww9wJCSmJpAEaSlqOj/JDw8y9WFxV09ASjpmmeBrIhDgolVpNRt5rWPZA3vdSNb7/yYygCgeBnkiCQICARNnegEOFxcETAMGigKHfh4YkpMHgQMCfX4EAAqkg6qrrJsJr6sQA26IFra2AqoJGby8HCK3BoaqHhsSErwNrcvMxDqFmnYEC7QnYgoKFX4THRgYDKkiEBXYBo5ECQfeGAYmBgqjqwkMGNVVqR7xMAKgegII/VYkAAAgGhEICCL0mRBuhAAABc7tiIBAU4JjIwwQCPghAoAIVyogsEBigAQNIwYwEEBwowCAAE4GWEhyQEK7EQQIJIGgEJADCV4QEDA46KKEEgI2LvOgIVeZCE6b/QkBACH5BAkIAB8ALAAAAAAoACgAAAX/4CeOZGmeaKqSELS+aOKVbenNcAoFLtuPiQkuZ0oEAsNPbeSZyIioXcJHCk6hn+THOKCKPEGttijQDgJXUzP9vakgAgHbnaK37ahJ/Ie94VMJe1hZfkQeSIOFg4srh0+MRBMWkzxjkGoTAZMWAZc5HhAGbJ6kpaanpmujjB4DEF1ACrKyD6UGF7i4CyKzcZ2kExQUALi1qMfIWckmEAoClxsWliMTFQgICpATGRkcBigC1wp8ixAS3AXkHwERiLYFGd8vHgerKAMIzDkHEsYvBBgqLBogYUOaBD9ApZmAAYO6FQk2SPglYgGBCSIOAMg24gAGAtNQMJCgoQoBAtQALjQosQADAygBNCQJQCACCQAA5ix4COUBgWcjIgCgeMoiH40cUSmwWeUArGWQQgAAIfkECQgAHwAsAAAAACgAKAAABf/gJ45kaZ5oqpLBsL7o5JVBUHoznA6Cy9qkBCShQyUEgpyoRvJAIMoiTTD5BYdSUfRzNFi1z+3WlDhASgYB8SRcjzwy1cRiAWrHwWhiEleV63grHnt9K38CWVwTCYEnHgFVWYONiZVvBoWWKDgjEAqfAlCaTTicYAKfCl6jH6WlJh48bpqurLa3uLmLEDVnuSUJCMLCEb8mdHUBvsbMzcaUL9AjAw4HowAUPjEMEhIOmhMYFxcOsyMH3Q7algkP4xerJAYbBtI6CQ4X6ykeD+YpAixoekBAAYwEGTLYkRKAAIVIHyYsc+JGQAYO9khMoEAg3ocGACIdwMCAxIYMG7I6ICBQbEQCAABGhCPQhEMGjy8MRIgSAEDKERgwzIKw4V8WBQCsjXCAAectkMs+jCxpLMJPlxb2OUsUAgAh+QQJCAAfACwAAAAAKAAoAAAF/+AnjmRpnmiqkoawvijklYJLegmsBlZA2yNIIKc7JSyW2ah2CwSURZPBAiExR5PAJCqCiiYW4Of68Ti95VWiUrU+tsZAe5SAEFEThcJASqBLfn0QMmoVCgJ/Lx4Tg3cqawoHXB+MhDoeAnNFi4mTniWYlp8oOHcQCKgHA46fHjgTsEoeEAeoCGKfCbAJgYADFnCjZX6dwsbHyMa6EwbNya5oEtLTrJ7Q1yICGhrNPsjXrsni46TkKAELD+YlpwQEC+sjD+4L3vFjFIj3jw0DOuijJABQoAPABYKTHgBoAIURHTtYLlzwF2UAAACaCGCAYyFDBBIPLgAodqIAAHV0MDBgwJKhQAkKFxxEmSCJBQZ4IzJkcOSBAsVRDDDUFLEhAx9yGjV1/EgOAU46PfaNCgEAIfkECQgAHwAsAAAAACgAKAAABf/gJ45kaZ5oqpLHsb4o5JWWVSYynBqKQdukgCChQyUUitmoRkoIfEWUQAEhMUcDwSQq2pIgiocV+PE8lSN0DHFQPxRek7PaDBBTiQiigvaoTX5fAXYrHhUICndRHhCDiioeFohcH40BfysDjzqMmJSfJwKaoJAJigkSqQwGm58eCRMQsmgQBxupG6QjsbKmgAMPAboisAmew8jJyqATsQLPyn5/BNTVcaQezdp3BxERz1DDr6bNrcvn58foAQ0KutIqEBIAAA3v0p4K9A3C4vgmBwq0WQYPBoUK6FBUwEAgoYkBGDDEiUViwDVQCTpgcDGiQAYvCS4AQIYAA4UmGTIokLhwwdyiA48MZJBAYsGFcMsiZCDz4cEFBwk90ukiMuEtEw84OtQVAgAh+QQJCAAfACwAAAAAKAAoAAAF/+AnjmRpnmiqklW1vig0lYpSejOcQohN1qWAJaczeSIIyM8n8lgOniLKgDgsSQPLQNosJRCIxAjYPFiiJHQqsQmUBAj3CWKRjyYC8U4isY5wKhNqHwMCeSsTGxIPgzoehYcviRIMXIQCBo0qHg9bXB4BmpajJwehpJsTSiIJBK4IAkSoHgkDAbdqAw8UrhSoI7a3E3ppAQoGv6wQCaLJzs/QpKoQB9XQHtglANvcsqQeEOHiIg8bG9UCzzgT097R7/DNjjoGBJWoCcwqEBQYGAS/ErDTZ4KBPwLIkuUbaOJAhwPEktHKp6OBBkfyXmjIUABjxhQBMmQgMsHTCWzZpDEk4JDBAgkAF9z9SVlkQ4YGJBJcuLACpRQnEQ1c8NXz4wsHFx7AQwHT5FISC4g+XRoCACH5BAkIAB8ALAAAAAAoACgAAAX/4CeOZGmeaKqSUbS+KDSVCGJCsDpIDm2TEIUhh/JsJLhRrfRQJIgogeRBWo4SCgFU5CklJJKnyCoSKJKjrmpCGZIOErcJSwVaZqkBgVDn4lETYiIBFncrEBQECmpQHoSGL2wEP1CEB4IvHgoBWx8JBpidoikPAaGjJR4QA1cArhIHf6geEwECt4wDCgWuBagjtgIGA6eOEVq/nsSMyc3Oz9AQ0s8J1SUdGNnZp52OAd/fIhTZCwsIzKOq0t+s0O7vJOhb8igGBS6oCRDcIxANGRl8oZImg1sEgAXk5CN4ygIHC/y66YtYQlEODxRXKLgAIEeCQKICXLggKxUjWhPoKalIgOFCHxMeYpL4mEAligUXCKyIyYxmowcZecarCU8oPJgyjyJVmiwEACH5BAkIAB8ALAAAAAAoACgAAAX/4CeOZGmeaKqSj5Ss8AlBpSZN5RCrAbHUNxIEIdihPBSCbmTDjRQIp9F0IChIzdEEYZmKPKUEgfASZUUWBI0EVk0KRRYhbkogrkLFGjUAAPBfeycTUh8GCgqFMgUAEW1THgKIgilvABJeH5IVZTEeEQGZCQKdmaYqFQalp4NSCRiwFAeKpwkDBxYWjwMMHbAdrCMGuRYCA49fBkTBIrcBq8zR0tPSEAOUrAnaJRwZ3t7QmZEC5AIGIg3eEhIbyKceAwMB5KHU9vdswe4pAxQAwdbCjUjg4MIFDNiMyAtw7IQBgxceCDRiK0AAbAMuOJjoxcOEZ/g84kMxgyMkZB4eL3mYsc9UyjYeSyVgyewlCULIJkAwCcPmwAkogdZMSSLBBJ7iiI6IGXJfgpYjvYQAACH5BAkIAB8ALAAAAAAoACgAAAX/4CeOZGmeaKqSFLW+6ACVBGEGsBoADW2TA8khh/IUAANSreSQTIioByCi/IkmEg1U5CklAIDEaDnSSJIksWrSEZQUgOEpIXGUBohZaoDBMEgeeigTTyMCCHkrEB0YCF1bHgeIgmuMLluSEWowHggGWx8JFpugpSoaBqSmc2ihGa8NFoWrXBAPCgqzAREcrxy0IgO4ChWpJR4GG27AEwoClMDR0tPTMq3ACdklGBfd3aqlHhbj43IE3S0Lj7QeAQYG48vU8/TT6/UmA8b4JQYCAgHA1UvgT8A1foEMQEvh4Z6KBAuJNHS4J8AsKBPXNQSkMUBAUBPTTHgUiNKEAAMoKqoIOcIDIRIQINyDECAiw40tJ5CaAIFUIIFQEuhM03PgSEAxB4LTxo9WCAAh+QQJCAAfACwAAAAAKAAoAAAF/+AnjmRpnmiqkkWxvmiSlABgGrA6dAttkwHCIxfDYCakWmlBgBBRDAwj+RNBCJGnyFOCYDpckXIUIQS0E45giVmfJoQeKeFApgKZTHY0OcxQE04jAxISOCoQHBkbYVoBhQcwaRkNWh8ChWc5HhuHT4QDlqIwAX+jKgmaHx4XFwAKoadzAwoICIIeCgCtFxiyIgG2CBECplYIGA6/HxAIB4LL0dLT1NEJE8bVI7kK3QoV2tsC492R4efo2h7rshABjSjr7KcHFhYD8Nvy86MeAfbPTOyTlsCABVUk8n1IoDBGrDkNBWLLYUAAtCcerjWSF29cthcZJ45IAOGPv4fMBC8YiBgDGzwIEBoFeAdEAEqQDBPCJDGgVEKaskjaETEhwNBpJI2lumltQr6d6UaFAAAh+QQJCAAfACwAAAAAKAAoAAAF/+AnjmRpnmiqkl23vmgAlRhWJgOsGllB2yQFIKBDeTgZ4qhGSgAKniJKk9mQmKMH4CFFJTKZxBL48RQA4ubKQ5mUIhkLSgBQlAwEJepwuRiaMykBaSIPBAQ5Kg99B10iHgqHejt9Do6RbUUDGJZdExFujqKjpCUQiaUrEwIbEhJRqSkarhIOArCxJ6wHobm+v8CjHsO+E8Ylw8nEqQkIzs4Rj8q4pR4HFhbOFcHc3d7ICYSiAwbUJh4JxuKOFQoKAeYi4erxUh4G7hWBTRMJ9aIJBCj4gyyePx0TJsn7dwPCvhUCLKCy55AQuhQJsK174WEChF4fBsB7JGASBAu3pDEkcIjLQ4BJAlKOMGBB4ZoJ1BLIIBFAgLh7G7tACAASgoCHvkSKC2gzlkMTASZ+cxQCACH5BAkIAB8ALAAAAAAoACgAAAX/4CeOZGmeaKqSHLe+aJKUWVYmA6wGGEXbJAbGoItdLhNSjZTAdDxFlOPiUAJFFUwlihpcMFDRUuTpYGbcE+VyQAkwjNKkkeROHuiTIf8JAABtaVECfwqCUQ9/AodRfgGMkCceYZEnA48jk5qVIhMHFAQElJqbkRGhBAsHlGSlkJ8PEJyztLWQrrYiCRO8vKyHHhLCGhoPurwyCb+CCRvCwlW5JsjS1ZUeMpABAnwm2BDgkBEICAbLHwngEMqQCQLkETk3EBPnzBYIiyWT090p6SbYvUgQANOLBwpkpfFQ0B8KCAoq2Evh4ZJCEdvCeLCgT4QABR11TCg4SoAAShYsKYxCKE9HOj7uDH4QYKGOroSRIAi4+AGChZa0tvGZwDGXgZMlDMi0liYEADs=",version=395;if(lkqdinstance)throw pixel_fire("https://t.lkqd.net/t?ev=198&rnd="+Math.round(1e9*Math.random())),new Error("This is not an error. This is to prevent duplicate ad loads.");var instance_id,topWindowWithAccess,lkqdinstance="lkqd",time_start=(new Date).getTime(),xhrTrackingWindow=document.createElement("iframe");xhrTrackingWindow.style.display="none",document.documentElement.appendChild(xhrTrackingWindow);var downstreamOfLkqd=!1;try{if(window!=window.top)for(var windowToCheck=window,windowToCheckPrevious=window,w=0;w<100;w++){try{windowToCheck.lkqd&&windowToCheck.lkqd.instance&&(downstreamOfLkqd=!0)}catch(e){}var windowAccess=!1;try{windowToCheck.lkqd&&windowToCheck.lkqd.time?windowAccess=!0:(windowToCheck.lkqd?windowToCheck.lkqd.time=time_start:windowToCheck.lkqd={time:time_start},windowToCheck.lkqd.time&&(windowAccess=!0))}catch(e){}if(0==windowAccess){topWindowWithAccess=windowToCheckPrevious;break}if(!windowToCheck.parent||windowToCheck==window.top){topWindowWithAccess=windowToCheck;break}windowToCheck=(windowToCheckPrevious=windowToCheck).parent}else topWindowWithAccess=window.top;topWindowWithAccess.lkqd||(topWindowWithAccess.lkqd={})}catch(e){}try{window.lkqd?window.lkqd.instance=lkqdinstance:window.lkqd={instance:lkqdinstance}}catch(e){}var lkqdExecution,lkqdPlacement,lkqdPlayerSettings,lkqdFormatVersion,verticalVideo,pubSupportMode,lkqdPlayer,playerContainer,player,playerMidRollTime,playerTimeUpdateDispatch,playerWidth,playerHeight,playerWidthInitial,playerHeightInitial,adResizeOnImpressionWindow,viewable_timer,viewability_fps_timer,viewability_timer,first_quartile_timer,lkqdContainer,lkqdContainerWindow,lkqdControls,max_slots=3,preserve_slots=!1,is_mobile=!1,isFIF=!1,maxOpps=1,stopOnAdVAST=!0,controls=!1,disableControls=!1,pubSupport="html5",mlwscan=!1,dfpSuppressError=!1,dfpSuppress901=!1,dfpAdX=!1,targetMediaFile="video/mp4",playerControlsRemoved=!1,playerMirroring=!1,playerOffsetX=0,playerOffsetY=0,volume=1,playState="loading",adResizeOnImpression=!0,lkqd_vpaidjs_src=get_vpaidjs_src(),ebda_ewp=getParameterByName("ewp",lkqd_vpaidjs_src),ebda_epid=getParameterByName("epid",lkqd_vpaidjs_src),is_formats=getParameterByName("formats",lkqd_vpaidjs_src);if(!is_formats){var cookieSync=document.createElement("iframe");cookieSync.style.display="none",cookieSync.setAttribute("src","https://ad.lkqd.net/cookie-sync/usync.html"),document.documentElement.appendChild(cookieSync)}var adserver_json,sspUrlFinal,winning_ad,isMP,adselection_timeout,durmaxInterval,durmaxCheckTime,durmaxTotal,lkqdPixelQueue,disableClick=!1,lastLookAvailable=!1,lastLookAttempt=!1,firstLookXhrWaitFired=!1,pid=0,sid=0,spid=0,svpaidAd=!1,impressionTime=(new Date).getTime(),headerBiddingTimeout=3500,vpsr_total=0,betaEnabled=!1,betaEnabledB=!1,betaEnabledC=!1,centerAlign=!1,pubVPAIDSubs={},pubVPAIDCalls={},pubVPAIDEvents=[];lkqdPixelQueue=lkqdPixelQueue||[];var pixel_base_url,pixel_base_url_toplevel_supply,adselection_start_time,adCountDownUpdater,moat_api,resizeObserver,elementResizeHandler,pageResizeHandler,threeSecondTimer,clickTimestamp,offsetPixelBatchEnabled=!0,offsetPixelBatchQueue=[],offsetPixelBatchInterval=setInterval(offsetPixelBatch,200),pixels_fired=[],ad_audible=!1,adselection_complete=!1,adselection_ready=!1,header_bidding_response_sent=!1,ad_requests_completed=!1,adloaded_completed=!1,startad=!1,adLoadedDelay=!1,resizeObserverConfig={attributes:!0,childList:!1,characterData:!1,attributeOldValue:!0},mobile_autoplay=!1,mobile_video_autoplay=!1,clickTimeout=1e3,vpaidMobileWhitelist=["serving-sys.com","innovid.com","yumenetworks.com","yume.com","lkqd.net","pubmatic.com","adap.tv","vidible.tv","tidaltv.com","videologygroup.com","vindicosuite.com","loopme.me","mixpo.com","spotxchange.com","spotxcdn.com","adsafeprotected.com","wootag.com","moatads.com","btrll.com","appspot.com","doubleclick.net","googleapis.com","doubleverify.com","spotx.tv","facebook.net","facebook.com","celtra.com","stickyadstv.com","hiberniacdn.com","lijit.com","adtags.mobi","adnxs.com","rubiconproject.com","spotxchange-a.akamaihd.net","tubemogul.com","altitude-arena.com","lkqd.com","eyeviewads.com","everesttech.net","fwmrm.net","tremorhub.com","zedo.com","springserve.com","springserve.net","beachfrontmedia.com","ztkcdn.net","grabit.video","mediabong.com","videmob.com","extremereach.io","casalemedia.com"],vpaidDesktopWhitelist=["lkqd.net","btrll.com","vdopia.com","tidaltv.com","provenpixel.com","optimatic.com","yumenetworks.com","vindicosuite.com","tubemogul.com","loopme.me","pubmatic.com","springserve.com","springserve.net","adotube.com","adap.tv","stickyadstv.com","adnxs.com","admedia.com","doubleclick.net","innovid.com","lijit.com","rubiconproject.com","serving-sys.com","appspot.com","adsrvr.org","viralize.tv","1rx.io","videe.tv","telemetryverification.net","videologygroup.com","sekindo.com","altitude-arena.com","adsafeprotected.com","moatads.com","cliipa.com","rllcll.com","contextweb.com","flashtalking.com","videostat.com","vertamedia.com","adtelligent.com","adform.net","mixpo.com","wootag.com","googleapis.com","doubleverify.com","altitudeplatform.com","yume.com","visiblemeasures.com","vispot.io","dotomi.com","cloudfront.net","tribalfusion.com","brainient.com","streamrail.com","facebook.net","facebook.com","celtra.com","videohub.tv","tagsrvcs.com","vidible.tv","babaroll.com","measuread.com","evania-video.com","extremereach.io","weborama.fr","eyeviewads.com","watchingthat.com","everesttech.net","sascdn.com","coullmedia.com","beachfrontmedia.com","unocdn.com","spotxcdn.com","dashbid.io","adforgecdn.com","adhigh.net","jivox.com","yimg.com","spotx.tv","akamaihd.net","clearstream.tv","fyber.com","mediabong.com","dynstc.com","tremormedia.com","mathtag.com","virool.com","akamaized.net","rfihub.net","amp.live","mxcdn.net","2mdn.net","vj-vid.com","videojam.tv","atlassbx.com","break.com","lkqd.com","zentrick.com","ztkcdn.net","tout.com","kicklight.com","giantmedia.com","fwmrm.net","tremorhub.com","spotxchange.com","zedo.com","pilotxcdn.com","bfmio.com","grabit.video","kervinteractive.com","casalemedia.com"],vpaidDesktopBlacklist=["hiberniacdn.com"],tagBlacklistDFP=["pubmatic.com","1rx.io"],vpaidAdserverDirect=["vindicosuite.com","doubleclick.net","innovid.com","serving-sys.com","telemetryverification.net","adsafeprotected.com","moatads.com","flashtalking.com","mixpo.com","doubleverify.com","brainient.com","celtra.com","tagsrvcs.com","measuread.com","eyeviewads.com","adtags.mobi","yimg.com"],vpaidPremiumExchange=[],vpaidPremiumExchangeDesktop=["btrll.com","vdopia.com","tidaltv.com","tubemogul.com","adnxs.com","adsrvr.org","1rx.io","videologygroup.com","adform.net","googleapis.com","yume.com","yumenetworks.com","dotomi.com","facebook.net","facebook.com","videohub.tv","extremereach.io","rubiconproject.com","clearstream.tv","loopme.me","wootag.com","appspot.com","pubmatic.com","spotx.tv","mediabong.com","adhigh.net","spotxcdn.com","spotxchange.com","spotx.tv","contextweb.com","provenpixel.com","tribalfusion.com","dynstc.com","mathtag.com","visiblemeasures.com","videostat.com","tremormedia.com","weborama.fr","rfihub.net","jivox.com","everesttech.net","atlassbx.com","giantmedia.com","fwmrm.net","ranker.com","undertone.com","tremorhub.com","amazon-adsystem.com","contextweb.com","openx.net","vntsm.com"],vpaidPremiumExchangeMobile=["btrll.com","vdopia.com","tidaltv.com","tubemogul.com","adnxs.com","adsrvr.org","1rx.io","videologygroup.com","adform.net","googleapis.com","yume.com","yumenetworks.com","dotomi.com","facebook.net","facebook.com","videohub.tv","extremereach.io","rubiconproject.com","clearstream.tv","loopme.me","wootag.com","appspot.com","spotxcdn.com","spotx.tv","spotxchange.com","eyeviewads.com","everesttech.net","mathtag.com","fwmrm.net","ranker.com","undertone.com","tremorhub.com","amazon-adsystem.com","contextweb.com","jivox.com","smaato.net","openx.net","vntsm.com"],vpaidDisabled=["posumeads","rubiconproject","adnxs.","adform.","turn.","openx."],adservers_blocked=["advertisingstory.com","commercialadsdistributor.com","sitewebvideo.com"],mobile_blocked_mfs=["secure-ds.serving-sys.com/BurstingScript/VASTLoader.swf","?VPAID=1&content_page_url=","imasdk.googleapis.com/flash/sdkloader/vpaid2video.swf","link.videoplatform.limelight.com/media/?mediaId=87176a3128994994971a30e2485312a6","rtr.innovid.com/d/501/","vstatic.fastclick.net/static/iterations/10/63/2089958/m2089958","cdn.altitude-arena.com/flash/flex-vpaid.swf","cdn.optimatic.com/redux/optivpaid.swf","objects.tremormedia.com/embed/swf/vpaidacudeo.swf","redir.adap.tv/redir/client/VPAIDClient.swf","vpaid/VPAIDIRollPackage.swf","cdn.vidible.tv/prod/player/swf/latest/vpaid-shim.swf","swf/vpaidacudeo.swf","vid1.cdns.turn.com/content-data","vid1.turninc.com/content-data","d3h8av4a0dy1g.cloudfront.net/request/4","ssp.lkqd.net/ad","v.lkqd.net/ad","s.lkqd.net/ad","vpaid.doubleverify.com/js/vpaid-wrapper","imasdk.googleapis.com/js/sdkloader/vpaid_adapter.js","level3cdn-ssl.screen9.com/M/V/t/l/tlMCBWpQrcmldyHqxmRGlg_low_h264m.mp4","level3cdn.screen9.com/M/V/t/l/tlMCBWpQrcmldyHqxmRGlg_low_h264m.mp4","predicta.net/261001-262000/261444.mp4","mf.adsymptotic.com/i/00/00/09/86/2131_PTTQ0062000H_Patro","mf.adsymptotic.com/i/00/00/09/86/9756_PTTQ0062000H_Patro","clips.vorwaerts-gmbh.de/big_buck_bunny.mp4","2018_1L_Bigger_is_Better_HD_15.mp4","ec57e13f852e309ee4a21447504ca202.mp4","49df5facee3f14958c94cac8813d42dc.mp4","782a0d20-a3b6-4041-8768-258d9dd2c295.mov","5bd005c7-2639-4007-b87f-edec0879f3f0.mov","video.turncdn.com/content-data/2018_01/25bb8a4629f14b6da69d1b2529660bae.mp4","video.turncdn.com/content-data/2018_01/cb42784377404495a15799d212d3a851.mp4","video.turncdn.com/content-data/2018_01/c196f073205f452caf3061f912eb67d1.mp4","video.turncdn.com/content-data/2018_01/25bb8a4629f14b6da69d1b2529660bae.mp4","cdn.flashtalking.com/79291/DIG_22193_JD_Power_OLV_Graphics_032018_Sound_1280_720_2000_2997.mp4","skipit.xml","ads.w55c.net/t/v/0_ceCddIdS_m.mp4","revolutionmessagingplatform","youtube.com/watch","cdn.adap.tv/fullsixmedia/Bepanthen","i.loopme.me/html/vpaid_tpl/sources/video21.mp4","cdn.video.playwire.com/1981/videos/5180117/video-sd.mp4?hosting_id=1981","cdn-static.liverail.com/js/LiveRail.AdManager-1.0.js"];if(window.parent)try{window.parent.mobile_blocked_mfs=mobile_blocked_mfs}catch(e){}var wlp="http:";try{(window.location.protocol&&"https:"==window.location.protocol||window.parent&&window.parent.location.protocol&&"https:"==window.parent.location.protocol||window.parent.parent&&window.parent.parent.location.protocol&&"https:"==window.parent.parent.location.protocol)&&(wlp="https:")}catch(e){}var wlp_pixel=wlp,lkqd_cdn="https://ad.lkqd.net/vpaid/",user_agent=window.navigator.userAgent.toLowerCase(),requestAnimationFrameSupport=!1,requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;requestAnimationFrame&&setTimeout(function(){requestAnimationFrame(function(){requestAnimationFrameSupport=!0})},0);var getVPAIDAd=function(){return{subscribe:function(e,t,i){t&&(pubVPAIDSubs[t]||(pubVPAIDSubs[t]=[]),pubVPAIDSubs[t].push({callback:e,context:i}))},unsubscribe:function(e,t){if(pubVPAIDSubs[t])for(var i=0;i<pubVPAIDSubs[t].length;i++)try{if(pubVPAIDSubs[t][i].callback&&pubVPAIDSubs[t][i].callback.toString()==e.toString()){pubVPAIDSubs[t].splice(i,1);break}}catch(e){}},handshakeVersion:function(e){return e},initAd:function(e,t,i,n,a,r){lkqdinitAd(e,t,i,n,a,r)},resizeAd:function(e,t,i){lkqdresizeAd(e,t,i)},startAd:function(){startad=!0,lkqdstartAd()},stopAd:function(){winning_ad||0!=adselection_complete||setTimeout(function(){publisher_event_notify("AdUnavailableAborted")},450),lkqdstopAd()},pauseAd:function(){lkqdpauseAd()},resumeAd:function(){lkqdresumeAd()},expandAd:function(){},collapseAd:function(){},skipAd:function(){lkqdskipAd()},adLinear:function(){return!0},getAdLinear:function(){return!0},adWidth:function(){return playerWidth},getAdWidth:function(){return playerWidth},adHeight:function(){return playerHeight},getAdHeight:function(){return playerHeight},adExpanded:function(){return!1},getAdExpanded:function(){return!1},adSkippableState:function(){return!1},getAdSkippableState:function(){return!1},adRemainingTime:function(){return lkqdadRemainingTime()},getAdRemainingTime:function(){return lkqdadRemainingTime()},adDuration:function(){return lkqdadDuration()},getAdDuration:function(){return lkqdadDuration()},adCompanions:function(){return""},getAdCompanions:function(){return""},adIcons:function(){return!1},getAdIcons:function(){return!1},getLKQDAd:function(){return winning_ad},getAdVolume:function(){return volume},getLKQDWinningAdCPM:function(){return cpm_decode(winning_ad.pidSidTagIds[0][5])},adVolume:function(e){if(null==e)return volume;0<=e&&e<=1?(volume=e,lkqdadVolume()):1<e&&e<=100&&(volume=e/100,lkqdadVolume()),refreshControls()},setAdVolume:function(e){try{0<=e&&e<=1?(volume=e,lkqdadVolume()):1<e&&e<=100&&(volume=e/100,lkqdadVolume()),refreshControls()}catch(e){}}}};function publisher_event_notify(e){if(pubVPAIDEvents.push(e),"AdError"!=e||1!=dfpSuppressError){if(pubVPAIDSubs&&pubVPAIDSubs[e])try{for(var t=0;t<pubVPAIDSubs[e].length;t++){var i=null;void 0!==pubVPAIDSubs[e][t].context&&(i=pubVPAIDSubs[e][t].context);try{pubVPAIDSubs[e][t].callback.apply(i,[])}catch(e){}}}catch(e){}try{if(moat_api){var n={type:e,adVolume:volume};moat_api.dispatchEvent(n)}}catch(e){}}}function checkMaxDuration(){null!=adserver_json.site.durmax&&0<adserver_json.site.durmax&&(durmaxInterval||(durmaxTotal=0,durmaxCheckTime=(new Date).getTime(),durmaxInterval=setInterval(function(){try{var e=(new Date).getTime();"playing"==playState&&(durmaxTotal+=(e-durmaxCheckTime)/1e3)>adserver_json.site.durmax+10&&lkqdstopAd(),durmaxCheckTime=e}catch(e){}},1e3)))}function HTML5Alive(){return!0}function adVpaidEvent(e,t,i,n){if(e==instance_id&&null!=t&&i){if(null==t.adTagId&&adserver_json&&adserver_json.adgroups)for(var a=0;a<adserver_json.adgroups.length;a++)for(var r=0;r<adserver_json.adgroups[a].ads.length;r++)if(adserver_json.adgroups[a].ads[r].support&&"flash"==adserver_json.adgroups[a].ads[r].support&&adserver_json.adgroups[a].ads[r].adTagId==t){t=adserver_json.adgroups[a].ads[r];break}if(i&&("AdRemainingTimeChange"==i||"AdLog"==i||"AdInfo"==i)||debug("VPAID.JS","adVpaidEvent:: event:"+i+" adid: "+t.adTagId+" instance:"+e+" value:"+n),n){0;try{n=JSON.parse(n)}catch(e){}}if("AdInfo"!=i&&(!(t&&0<=t.events.indexOf(i))||"AdVideoStart"!=i&&"AdStarted"!=i&&"AdImpression"!=i&&"AdVideoFirstQuartile"!=i&&"AdVideoMidpoint"!=i&&"AdVideoThirdQuartile"!=i&&"AdVideoComplete"!=i&&"AdReady"!=i&&"AdLoaded"!=i&&"AdException"!=i&&"AdAlive"!=i))if(t.events.push(i),winning_ad){if(t==winning_ad)if("AdVideoStart"==i){if(0==mobile_video_autoplay){try{t.vpaid.setAdVolume(volume)}catch(e){}try{t.vpaid.adVolume(volume)}catch(e){}setTimeout(function(){try{t&&t.dom&&t.dom.volume!=volume&&(t.dom.volume=volume,t.dom.muted=0==volume)}catch(e){}},100)}refreshControls()}else if("AdImpression"!=i)if("AdStopped"==i)setTimeout(function(){lkqdstopAd()},900);else if("AdUnmeasurable"!=i)if("AdViewable"==i){publisher_event_notify(i);var o="";try{var d=window.parent==window.top;o="&top="+d+"&obs="+intersection_observer_support}catch(e){}winning_ad.viewability||(winning_ad.viewability={measurable:!0,laststate:"AdViewable",success:!1},find_and_fire_pixels(64,winning_ad,o)),winning_ad.viewability.laststate="AdViewable",0==winning_ad.viewability.success&&(viewable_timer=setTimeout(function(){winning_ad.viewability.success=!0,find_and_fire_pixels(65,winning_ad,o)},2e3))}else if("AdNotViewable"==i){if(publisher_event_notify(i),!winning_ad.viewability){winning_ad.viewability={measurable:!0,laststate:"AdNotViewable",success:!1};o="";try{d=window.parent==window.top;o="&top="+d+"&obs="+intersection_observer_support}catch(e){}find_and_fire_pixels(64,winning_ad,o)}winning_ad.viewability.laststate="AdNotViewable";try{clearTimeout(viewable_timer)}catch(e){}viewable_timer=""}else if("AdClickThru"==i){if(0==disableClick&&lkqdinstance&&winning_ad&&winning_ad.events&&winning_ad.events.indexOf("AdStopped")<0&&winning_ad.events.indexOf("AdVideoComplete")<0&&(winning_ad.support&&"html5"==winning_ad.support&&400!=pid&&(267==pid||846108==winning_ad.adTagId||0!=preserve_slots&&null==lkqdExecution||null==lkqdControls||adserver_json.site.sspUrl&&getParameterByName("playbackcontrols",adserver_json.site.sspUrl)&&"false"==getParameterByName("playbackcontrols",adserver_json.site.sspUrl)||winning_ad.adTagUrl&&0<winning_ad.adTagUrl.indexOf("pli=26140633")||usePlaybackControls||enablePlaybackControls(),lkqdpauseAd()),find_and_fire_pixels(8,winning_ad),0==betaEnabled&&publisher_event_notify("AdClickThru"),n&&n.playerHandles&&1==n.playerHandles&&n.url))if(null!=lkqdPlayerSettings&&null!=lkqdPlayerSettings.clickFrame&&1==lkqdPlayerSettings.clickFrame)try{parent.window.document.getElementById(lkqdPlayerSettings.lkqdId).contentWindow.clickAdIframe(n.url,topWindowWithAccess)}catch(e){}else try{if(clickTimestamp&&"number"==typeof clickTimestamp){var s=(new Date).getTime()-clickTimestamp;if(clickTimeout<s)clickTimestamp=(new Date).getTime(),window.open(n.url,"_blank").focus()}else{clickTimestamp=(new Date).getTime(),window.open(n.url,"_blank").focus()}}catch(e){}}else if("AdPaused"==i)0<=winning_ad.events.indexOf("AdVideoComplete")||0<=winning_ad.events.indexOf("AdStopped")||(0<=winning_ad.events.indexOf("AdVideoThirdQuartile")?setTimeout(function(){0<=winning_ad.events.indexOf("AdVideoComplete")||0<=winning_ad.events.indexOf("AdStopped")||(playState="paused",null!=lkqdControls&&usePlaybackControls&&togglePlaybackControls(!0),publisher_event_notify("AdPaused"))},1250):(playState="paused",null!=lkqdControls&&usePlaybackControls&&togglePlaybackControls(!0),publisher_event_notify("AdPaused")));else{var l=0;if("AdVideoFirstQuartile"==i){var c=t.events.indexOf("AdImpression")<0;find_and_fire_pixels(4,winning_ad,"",null,c)}else if("AdStarted"==i){if(0==mobile_video_autoplay){try{winning_ad.vpaid.setAdVolume(volume)}catch(e){}try{winning_ad.vpaid.adVolume(volume)}catch(e){}}}else if("AdVideoMidpoint"==i){c=t.events.indexOf("AdImpression")<0||t.events.indexOf("AdVideoFirstQuartile")<0;find_and_fire_pixels(5,winning_ad,"",null,c)}else if("AdVideoThirdQuartile"==i){c=t.events.indexOf("AdImpression")<0||t.events.indexOf("AdVideoFirstQuartile")<0||t.events.indexOf("AdVideoMidpoint")<0;find_and_fire_pixels(6,winning_ad,"",null,c)}else if("AdVideoComplete"==i){l=700;c=t.events.indexOf("AdImpression")<0||t.events.indexOf("AdVideoFirstQuartile")<0||t.events.indexOf("AdVideoMidpoint")<0||t.events.indexOf("AdVideoThirdQuartile")<0;find_and_fire_pixels(7,winning_ad,"",null,c);t.adTagId&&0<=[742130,742132,742150,742137,742140,742151,742145,742147,742148,749352,742144,742146,742153,751331,742133,742135,742136,742149,742131,742138,742142,742152,742154,742155,742134,742139,742141,742143,743975,764398,764389,764411,764390,780536,764395,764410,764388,764414,764401,764404,764385,764409,764402,764391,764387,764397,764392,764386,764408,764396,764413,764405,764412,764406,764400,764394,764399,764403,764393].indexOf(t.adTagId)?setTimeout(function(){lkqdstopAd()},5e3):setTimeout(function(){lkqdstopAd()},925);try{winning_ad.dom&&0<winning_ad.dom.volume&&!winning_ad.dom.muted&&create_and_fire_pixels(274,winning_ad)}catch(e){}}else if("AdError"==i)l=650,find_and_fire_pixels(9,winning_ad,n),setTimeout(function(){lkqdstopAd()},850);else if("AdSkipped"==i)setTimeout(function(){lkqdstopAd()},0);else if("AdSkippableStateChange"!=i&&"AdSizeChange"!=i&&"AdLinearChange"!=i&&"AdDurationChange"!=i&&"AdExpandedChange"!=i&&"AdRemainingTimeChange"!=i)if("AdVolumeChange"==i)try{volume=winning_ad.vpaid.adVolume(),refreshControls()}catch(e){}else"AdPlaying"==i&&(playState="playing",null!=lkqdControls&&usePlaybackControls&&togglePlaybackControls(!1));0==betaEnabled&&(m=i,setTimeout(function(){publisher_event_notify(m)},l))}}else if("AdReady"==i){try{t.vpaid.handshakeVersion("2.0")}catch(e){}var p="";t.adParameters&&t.adParameters.content&&(p=t.adParameters.content),p=encodeURIComponent(p),t.timing.initad=(new Date).getTime();try{t.vpaid.initAd(playerWidth,playerHeight,"normal",600,p,"")}catch(e){pixel_fire(wlp+"//t.lkqd.net/t?ev=179&pid="+pid+"&sid="+sid+"&vrs="+version+"&instanceid="+instance_id)}}else if("AdStarted"==i){try{t.linear=t.vpaid.adLinear()}catch(e){}if(!t.linear)try{t.linear=t.vpaid.getAdLinear()}catch(e){}if(0==mobile_video_autoplay){try{t.vpaid.setAdVolume(volume)}catch(e){}try{t.vpaid.adVolume(volume)}catch(e){}setTimeout(function(){try{t&&t.dom&&t.dom.volume!=volume&&(t.dom.volume=volume,t.dom.muted=0==volume)}catch(e){}},100)}0<=t.events.indexOf("AdImpression")&&(0<=t.events.indexOf("AdVideoStart")||t.vpaidAvsExclusion)&&(t.success=!0,"html5"==t.support&&"vpaid"==t.type?setTimeout(adselection_controller,450):adselection_controller())}else if("AdVideoStart"==i){try{t.linear=t.vpaid.adLinear()}catch(e){}if(!t.linear)try{t.linear=t.vpaid.getAdLinear()}catch(e){}if(0==mobile_video_autoplay){try{t.vpaid.setAdVolume(volume)}catch(e){}try{t.vpaid.adVolume(volume)}catch(e){}setTimeout(function(){try{t&&t.dom&&t.dom.volume!=volume&&(t.dom.volume=volume,t.dom.muted=0==volume)}catch(e){}},250)}0<=t.events.indexOf("AdImpression")&&0<=t.events.indexOf("AdStarted")&&(t.success=!0,"html5"==t.support&&"vpaid"==t.type?setTimeout(adselection_controller,450):adselection_controller())}else if("AdImpression"==i){try{t.linear=t.vpaid.adLinear()}catch(e){}if(!t.linear)try{t.linear=t.vpaid.getAdLinear()}catch(e){}if(0==mobile_video_autoplay){try{t.vpaid.setAdVolume(volume)}catch(e){}try{t.vpaid.adVolume(volume)}catch(e){}setTimeout(function(){try{t&&t.dom&&t.dom.volume!=volume&&(t.dom.volume=volume,t.dom.muted=0==volume)}catch(e){}},100)}0<=t.events.indexOf("AdStarted")&&(0<=t.events.indexOf("AdVideoStart")||t.vpaidAvsExclusion)&&(t.success=!0,"html5"==t.support&&"vpaid"==t.type?setTimeout(adselection_controller,450):adselection_controller())}else if("AdException"==i||"AdError"==i||"AdStopped"==i||"AdVideoComplete"==i&&t.events.indexOf("AdImpression")<0)t.fail||("vpaid"==t.type?"AdException"==i?find_and_fire_pixels(156,t,"&instanceid="+instance_id):t.adTagId&&362800==t.adTagId?(h=t,_="&adTagUrl="+encodeURIComponent(h.adTagUrl),h.adParameters&&h.adParameters.content&&(_+="&adParameters="+encodeURIComponent(h.adParameters.content)),h.mediaFiles[0]&&h.mediaFiles[0].url&&(_+="&mfurl="+encodeURIComponent(h.mediaFiles[0].url)),h.mediaFiles[0]&&h.mediaFiles[0].apiFramework&&(_+="&apiFramework="+encodeURIComponent(h.mediaFiles[0].apiFramework)),h.mediaFiles[0]&&h.mediaFiles[0].mimeType&&(_+="&mimeType="+encodeURIComponent(h.mediaFiles[0].mimeType)),find_and_fire_pixels(147,h,_)):find_and_fire_pixels(147,t):"AdError"==i&&(v=n,f="&errorcode=aderror",(g=t).videoSelected&&g.videoSelected.url&&(f+="&mfurl="+encodeURIComponent(g.videoSelected.url)),v&&v.code?f+="&debug="+encodeURIComponent(v.code):v&&(f+="&debug="+encodeURIComponent(v)),v&&v.message&&(f+="&debugmessage="+encodeURIComponent(v.message)),find_and_fire_pixels(9,g,f)),removeAd(t));else if("AdLoaded"==i){if(0==mobile_video_autoplay){try{t.vpaid.setAdVolume(volume)}catch(e){}try{t.vpaid.adVolume(volume)}catch(e){}setTimeout(function(){try{t&&t.dom&&t.dom.volume!=volume&&(t.dom.volume=volume,t.dom.muted=0==volume)}catch(e){}},100)}try{t.linear=t.vpaid.adLinear()}catch(e){}if(!t.linear)try{t.linear=t.vpaid.getAdLinear()}catch(e){}if(0==mlwscan){if("vpaid"==t.type){var u=t.domdiv.getElementsByTagName("video");u&&1<u.length&&u[1]&&u[1]!=t.dom&&1==mobile_video_autoplay&&(u[1].muted=!0,u[1].volume=0,u[1].setAttribute("webkit-playsinline","webkit-playsinline"),u[1].setAttribute("playsinline","playsinline"),u[1].addEventListener("loadedmetadata",playerLoadedMetadata,!1))}debug("startAd-html5-vpaid",t.adTagId);try{t.vpaid.startAd()}catch(e){}}}}var m,g,v,f,h,_}function removeAd(e){debug("remove-ad",e.adTagId),e.fail=!0;try{if(e.events&&0<=e.events.indexOf("AdImpression")&&(e.events.indexOf("AdStarted")<0||e.events.indexOf("AdVideoStart")<0&&!e.vpaidAvsExclusion)){var t="&adid="+e.adTagId+"&support="+e.support+"&type="+e.type;e.videoSelected&&e.videoSelected.url&&(t+="&mfurl="+encodeURIComponent(getHostnameFromUrl(e.videoSelected.url))),0<=e.events.indexOf("AdVideoStart")&&(t+="&advideostart=true"),0<=e.events.indexOf("AdStarted")&&(t+="&adstarted=true"),create_and_fire_pixels(225,t)}}catch(e){}e.vpsr&&(vpsr_total-=e.vpsr);try{e.vpaid.stopAd()}catch(e){}try{e.vpaid=""}catch(e){}if(e.vpaidFrame)try{e.vpaidFrame.removeAttribute("onerror"),e.vpaidFrame.removeAttribute("onload")}catch(e){}setTimeout(function(){try{if(e){if(e.vpaidFrame)try{e.vpaidFrame.parentNode.removeChild(e.vpaidFrame)}catch(e){}if(0==preserve_slots){if(e.domdiv)try{e.domdiv.parentNode.removeChild(e.domdiv)}catch(e){}try{e.domdiv="",e.dom=""}catch(e){}}}}catch(e){}},125),adselection_controller()}function cleanupAds(e,t){if(debug("cleanupAds","cleanupAds"),0==preserve_slots&&lkqdContainer){if(adserver_json&&adserver_json.adgroups)for(var i=0;i<adserver_json.adgroups.length;i++)for(var n=0;n<adserver_json.adgroups[i].ads.length;n++)adserver_json.adgroups[i].ads[n].timing&&!adserver_json.adgroups[i].ads[n].fail&&(null!=t&&t==adserver_json.adgroups[i].ads[n]?debug("leave",t.adTagId):removeAd(adserver_json.adgroups[i].ads[n]));if(null==t){try{lkqdContainer.innerHTML=""}catch(e){}var a=lkqdContainer.ownerDocument;if(a){var r=a.defaultView||a.parentWindow;if(r)try{for(var o=r.document.body.getElementsByTagName("div"),d=0;d<o.length;d++)if(o[d].getAttribute("id")&&0==o[d].getAttribute("id").indexOf("adaptvSpotDiv"))try{o[d].innerHTML="",o[d].parentNode.removeChild(o[d]),--d}catch(e){}}catch(e){}}}}}function set_container_placement(e){var t=!1,i=element_position(e),n=element_position(lkqdContainer);if(!(-1==i[0]||-1==i[1]||i[2]<0||i[3]<0||-1==n[0]||-1==n[1])){if(i[1]!=n[1]){var a=Number(lkqdContainer.style.top.replace("px",""));n[1]>i[1]?lkqdContainer.style.top=a+(i[1]-n[1])+"px":lkqdContainer.style.top=a+Math.abs(i[1]-n[1])+"px"}if(playerOffsetY&&(lkqdContainer.style.top=Number(lkqdContainer.style.top.replace("px",""))+playerOffsetY+"px"),i=element_position(e),n=element_position(lkqdContainer),i[0]!=n[0]){var r=Number(lkqdContainer.style.left.replace("px",""));n[0]>i[0]?lkqdContainer.style.left=r+(i[0]-n[0])+"px":lkqdContainer.style.left=r+Math.abs(i[0]-n[0])+"px"}playerOffsetX&&(lkqdContainer.style.left=Number(lkqdContainer.style.left.replace("px",""))+playerOffsetX+"px"),t=!0}return t}isFIF=!!fif_check(),is_mobile=!!mobile_check();var controlOptionsPauseResume,controlOptionsFullscreen,controlOptionsMuteUnmute,controlOptionsVolumeSlider,lkqdControlsAnimationTimeout,lkqdControlsAnimationInStartTime,lkqdControlsAnimationOutStartTime,controlsBarPadding=5,controlsBarSpacing=5,controlsBarHeight=40,controlsButtonWidth=34,controlsButtonHeight=28,controlsButtonCornerRadius=6,controlsIconWidth=18,controlsIconHeight=16,controlButtonBackgroundBlurColor="rgba(103, 103, 103, 0.4)",controlButtonBackgroundHoverColor="rgba(155, 155, 155, 0.6)",controlsVolumeSliderHeight=60,controlsVolumeSliderWidth=4,controlsVolumeSliderMargin=12,controlsVolumeSliderControlRadius=8,controlIconMuteData2X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAZRJREFUWAntlD1Ow0AQhROEQPxUhI6egIS4QDgJEg00HCSHoEAiBXTkDHAGhBCiouICIAQ05ntOxtk1liJPbNN4pJednd15bzKZTafTWtsBZweSJFkHV870xdIQ3gePIFmMyZGN5gn4kLjMQeFLQWsNXEo0NB9bySwE++AhFDa/JFX56wgdg3cTzK/lGeOMZduK2Pwm16UmxYq0Ki+ARmpebkEvFGS/VxTP7nDosoxg6kAi8TdwD9IiWCWu/w3Fh/mcdM+By/JkkGwDiVsRA3wTv8FfDXO6tuHANYRdzDhshUrffAx2LcZ6B065/h3EZq4K8NiMIfbgOgLqgvAKduIbk13lQyhaxPosFxOJzg/rClD7o8HUeeUFTMXV/i2gtg/AC9DPMS4qgnhaNWflLU0OPmCwV5ANHLEesMGs/RVIbAiiaWev1/Ennk0wh5W9gqAhc91sBvScigyGc/A1l6nOCzTnEDyrS3mrUzfiRngTXP9bAVYNBZyBTyvE4o2uiB+AJxXRqHAohvYGGIWx1m874OnAL1FHkmqT29miAAAAAElFTkSuQmCC",controlIconUnmuteData2X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAmtJREFUWAntls9LVFEUx50MKgdnEQaSJC7CSNKFJSlKbdwJugsJWkn07wQtWkWCGKmrFkGbWoQgoqsSFyI0FEiLEApEg+L5+d6553GdH+/NjPN2c+A75957ft4z9517Ozra1K5AkxWIoqgLvG7S/HxmBL4NdkCU5AlxAcyCGdBZTfditcWkNRw9Qf4S5FP0FPAuGAGKcw3blVwud8w4plw8ShlgfAWVF2AhVMVhog/s+tCfB92gCJYw+Q93lGhsSji5xXgNDNua8bQEpId9AfYUKIktbN7DHV2wQS2O8WNk26AieLkNunnwUDyUEfAP87fgHxhDPgB3FFeAxcQDZQblPKwALmaRj4K/4B2y3VAf+TTzKfAD2SvJUisgpXoI59rMV7AHLoFHrA3BQ1pncgJuIOuVoGUJsKMIfANv8PtJzqE5AsV/BzIFV5Iil1zLEij5LP0S6DMjq8T9UMZ438/7xTNJwAfY8HzQc2M//aBHPMsEDnygq54bO/ID9ZVME7CAiTzLClz3kQ/LMrBD6VpylglM+MA6jCG5z4+FX1rMJAE+vQf41uFTQ9oEId30k+/iuqVaQgRVIxoA2rmdfHVDO3S6Ey4js5buumTLEiAQ/iM5t51XtGJkasNKQq3YfY5xAizE9wIKMeH0GZPnQIZp9BGF32Abd/HOZYQfXcvjGkPSc1Q1qAmNY6xHxSrQtXyGaiUeKmHf/HUsRwT5ArsHljVvhPzO7S1QxPZDaF9XBUIDHOpFpJeR62S1KoCenmT6GiaB/uoiqHiSsdY44fwO2AWJbwjEqY/SxqN7C5zr9bPYtIO2YbsCvgKnv2/cU9Aqw4MAAAAASUVORK5CYII=",controlIconPlayData2X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAASlJREFUWAntVrERwjAMDNzRUbMAGzAD7AAzADUlzADMADvADDABC1DTURBedxROYjuSLZsCfPd3jqToFSUvpyj+y9GBsixPwMjhTm8GOa0XcACG6RlrDMRurCf2W2BQC0t3aZCb2wcu1kA/HfMns8lq2d9hmwO9ZIVYSG2mG4xToKNeiI3NY7vAN1YtwkPmc+lJ18fS4iPpHoE46baQcNwk3R0QJl0OAzMmTLrM5JIwku4C4ElXklkYW5GuU7+UVFVWzWRXmFbdpj2rxdmAQthWSTi9ghngJqceSDIyY+kjXALZP0KS4QaQnaC4IXbRINoD2QfRV0fxGU+s8x8p7D8dxxNVATMLqEy1nAXI5npIZY4OhElKoYC4sz2iAB1JBRagJ6mQAn7mnjeRiFQYoN5dcwAAAABJRU5ErkJggg==",controlIconPauseData2X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAEdJREFUWAnt17EKACAIBUDt//+5WtpsaCro3iIoYtxWxO/JHUCfqWY5U/VX73SvrcVb1QMIECBAgAABAgQIECBA4NaP7J27AxT1CDj6xo1AAAAAAElFTkSuQmCC",controlIconFullscreenData2X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAONJREFUWAntloENgyAQRbU72CU6RSd3CTuFQ7T/EzBXAkLMcSbKJSgK4X0+eDIMPe7uwKhlwBdRM9aIkP0e8uFydZgyoSx0J4TZJAGU8E2EiYAEnGJcNBcASjzziVDPr9qoh0Xm4CYC9uDNBZTgewK088AHsDdyzUqoacCFJ50whd4T1txqAFyk7EVDSDJMrSrrXf0VeOAMYa+UOLV3bvq4yAEJRwk/FLXZS8ZWjwWYwqlCCjCHSwGnwCMBNmtOqIywBP7edsMB/HdCpRCCpaBcPT7d5vqV3lfngdJAvb07cNSBH03UaqqzTZfZAAAAAElFTkSuQmCC",controlIconTitleTrackData2X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAB9ElEQVR42u2Zv0sDMRzF/Qe6Ojk7ODg4ObuIFCdBXAoiCOoquDroKi46WNy6VQqCgrh1EQeFioM/BhdBJxUKBaXViy8Sl2LTJJf7EXwfeKTQ672XfNNckw4MEEIIIYQQQgghhBBzhBAT0By0qNrRkH1MgsxEUXQIPeN1R/zNO96/RbsNFfLsYxOoBD0Ie2T4at58bDt/LGKCSj2iGc6Dj03HC9CN8ATCNdGMpeHjZQBwo3vhly9oOg0fH9WvJdD5pax8bDs/BX0aLjwNVLCMdkOt2k2Lzqfi4zIAFwahzqGhHp8/MgmVlo9L9Tt9QlUM1o8tqKXpfCo+LgtfuU+os5B8XGZAQxOqDY2H5OPy3H/TBKuH5OMa7FUTrBqSj+9gEbQckk8SldkNySeJ72Y1JB/XYE+6nVZIPq7P5xPdRgtaD8nHpTqrKkCv6shfXSOG95rP2ieJ7+fvvn7SZDeJa0+z9HEdhB2zc4efaVzs+uwCdNd1bS1LH6dZoA4jTU9gWtCLPKTUXLaflY/rIMwa7tWN88vT26x8XAdhU+2zfYYrpeHjcz1Y6TPlbA4rr3qd3/v28f1oHMRNr2Nk+oD28uITazaoKrYNA8nf+xXbf23S8ok7GGsIeYD2Uv49pSSrV1ePt2JIPoQQQgghhBBCCCHkP/ENfNS8DiqK/rMAAAAASUVORK5CYII=",controlIconMuteImage=controlIconMuteData2X,controlIconUnmuteImage=controlIconUnmuteData2X,controlIconPlayImage=controlIconPlayData2X,controlIconPauseImage=controlIconPauseData2X,controlIconFullscreenImage=controlIconFullscreenData2X,controlIconTitleTrackImage=controlIconTitleTrackData2X,lkqdControlsSetup=!1,useAudioControls=!1,usePlaybackControls=!1,useFullscreenControls=!1,useTitleTrackControls=!1,lkqdControlsEventVolumechange=!1,lkqdControlsPaused=!1,volumeSliderMouseOver=!1,volumeSliderApply=!1,volumeSlidervalue=volume,lkqdControlsAnimationDelay=3e3,lkqdControlsAnimationApply=!1,lkqdControlsAnimationMouseOver=!1,lkqdControlsAnimationInActive=!1,lkqdControlsAnimationInId=-1,lkqdControlsAnimationInDuration=100,lkqdControlsAnimationOutActive=!1,lkqdControlsAnimationOutId=-1,lkqdControlsAnimationOutDuration=200;function setupControls(){if(!lkqdPlayer&&!disableControls&&null!=!lkqdControls&&!lkqdControlsSetup&&lkqdContainer){lkqdControlsSetup=!0;var e=document.createElement("div");e.setAttribute("style","pointer-events: none; z-index:10000001; opacity:1.0; position:absolute; bottom:0px; left:0px; display:none; height: "+controlsBarHeight+"px !important; width: 100% !important; background-color: transparent;"),lkqdContainer.appendChild(e),lkqdControls=e,createFullscreenControls(),createTitleTrackControls(),createAudioControls(),createPlaybackControls(),lkqdContainer.addEventListener("mouseover",lkqdControlsShow,!1),lkqdContainer.addEventListener("mouseout",lkqdControlsHide,!1)}lkqdControlsEventVolumechange||winning_ad&&winning_ad.dom&&(lkqdControlsEventVolumechange=!0,winning_ad.dom.addEventListener("volumechange",volumeChange,!1)),refreshControls()}function applyControlsOptions(){lkqdPlayerSettings&&lkqdPlayerSettings.controlOptions&&(controlOptionsPauseResume=lkqdPlayerSettings.controlOptions.pauseResume,controlOptionsFullscreen=lkqdPlayerSettings.controlOptions.fullscreen,controlOptionsMuteUnmute=lkqdPlayerSettings.controlOptions.muteUnmute,controlOptionsVolumeSlider=lkqdPlayerSettings.controlOptions.volumeSlider,controlOptionsPauseResume&&enablePlaybackControls(),controlOptionsFullscreen&&winning_ad&&"flash"!=winning_ad.support&&enableFullscreenControls(),controlOptionsMuteUnmute&&enableAudioControls(),0==controlOptionsVolumeSlider&&(volumeSliderApply=!1))}function refreshControls(){if(!lkqdPlayer&&!disableControls&&null!=lkqdControls){useAudioControls&&(lkqdControls&&lkqdControls.domaudiocontainer&&lkqdControls.domaudiobackground&&(lkqdControls.domaudiocontainer.style.display="",lkqdControls.domaudiobackground.style.display=""),!(0<volume)||winning_ad&&winning_ad.dom&&winning_ad.dom.muted?toggleAudioControls(!0):toggleAudioControls(!1),refreshVolumeSlider()),usePlaybackControls&&winning_ad&&togglePlaybackControls(!!lkqdControlsPaused),lkqdControls.domfullscreen&&(lkqdControls.domfullscreen.style.display=useFullscreenControls?"":"none"),lkqdControls.domtitletrack&&(lkqdControls.domtitletrack.style.display=useTitleTrackControls?"":"none"),lkqdControls.style.display=useAudioControls||usePlaybackControls||useFullscreenControls||useTitleTrackControls?"":"none";var e=0;useAudioControls&&e++,usePlaybackControls&&e++,useFullscreenControls&&e++,useTitleTrackControls&&e++,1<e?is_mobile||(lkqdControlsAnimationApply=!0,lkqdControlsAnimationMouseOver||lkqdControlsHide()):lkqdControlsAnimationApply=!1}}function updateVolumeSliderPosition(e){var t=e.clientY-e.target.getBoundingClientRect().top;(t-=controlsVolumeSliderMargin)<0&&(t=0),controlsVolumeSliderHeight<t&&(t=controlsVolumeSliderHeight),refreshVolumeSlider(volumeSlidervalue=1-t/controlsVolumeSliderHeight)}function updateVolume(){getVPAIDAd().adVolume(volumeSlidervalue)}function refreshVolumeSlider(e){e||0==e||(e=volume),lkqdControls.domvolumesliderfill.style.height=controlsVolumeSliderHeight*e+"px",lkqdControls.domvolumeslidercontrol.style.bottom=controlsButtonHeight+controlsVolumeSliderMargin-controlsVolumeSliderControlRadius/2+controlsVolumeSliderHeight*e,volumeSlidervalue=e}function addMouseDownListeners(){lkqdControls.domvolumesliderhitbox.addEventListener("mousemove",updateVolumeSliderPosition,!1),lkqdControls.domvolumesliderhitbox.addEventListener("mouseup",volumeSliderMouseUp,!1),lkqdControls.domvolumesliderhitbox.addEventListener("mouseleave",volumeSliderMouseLeave,!1)}function removeMouseDownListeners(){lkqdControls.domvolumesliderhitbox.removeEventListener("mousemove",updateVolumeSliderPosition,!1),lkqdControls.domvolumesliderhitbox.removeEventListener("mouseup",volumeSliderMouseUp,!1),lkqdControls.domvolumesliderhitbox.removeEventListener("mouseleave",volumeSliderMouseLeave,!1)}function volumeSliderMouseUp(){removeMouseDownListeners(),updateVolume()}function volumeSliderMouseLeave(){removeMouseDownListeners(),refreshVolumeSlider()}function volumeSliderMouseClick(e){updateVolumeSliderPosition(e),updateVolume()}function createAudioControls(){if(!lkqdPlayer&&!disableControls&&lkqdControls&&!lkqdControls.domaudiocontainer){var e=document.createElement("div");e.setAttribute("style","pointer-events: all; z-index:10000001; position:relative; background-color: transparent; float:right; border-radius: "+controlsButtonCornerRadius+"px; top:"+Math.round((controlsBarHeight-controlsButtonHeight)/2)+"px; right:"+controlsBarPadding+"px; display:none; width: "+controlsButtonWidth+"px; height: "+controlsButtonHeight+"px !important; cursor:pointer;"),e.addEventListener("mouseover",volumeSliderShow,!1),e.addEventListener("mouseout",volumeSliderHide,!1),lkqdControls.appendChild(e),lkqdControls.domaudiocontainer=e;var t=document.createElement("div");t.setAttribute("style","pointer-events: all; z-index:10000001; position:absolute; float:right; background-repeat: no-repeat; background-color: "+controlButtonBackgroundBlurColor+"; border-radius: "+controlsButtonCornerRadius+"px; bottom:0px; display:none; width: "+controlsButtonWidth+"px; height: "+controlsButtonHeight+"px !important; overflow:hidden; cursor:pointer;"),lkqdControls.domaudiocontainer.appendChild(t),lkqdControls.domaudiobackground=t;var i=document.createElement("div");i.setAttribute("style","pointer-events: all; z-index:10000002; position:absolute; bottom:"+(controlsButtonHeight+controlsVolumeSliderMargin)+"px; left:"+(controlsButtonWidth-4)/2+"px; width:"+controlsVolumeSliderWidth+"px !important; height:"+controlsVolumeSliderHeight+"px !important; background-color: gray; cursor:pointer;"),lkqdControls.domaudiobackground.appendChild(i),lkqdControls.domvolumeslidertrack=i;var n=document.createElement("div");n.setAttribute("style","pointer-events: all; z-index:10000003; position:absolute; bottom:"+(controlsButtonHeight+controlsVolumeSliderMargin)+"px; left:"+(controlsButtonWidth-controlsVolumeSliderWidth)/2+"px; width:"+controlsVolumeSliderWidth+"px !important; height:"+controlsVolumeSliderHeight+"px !important; background-color: lightgray; cursor:pointer;"),lkqdControls.domaudiobackground.appendChild(n),lkqdControls.domvolumesliderfill=n;var a=document.createElement("div");a.setAttribute("style","pointer-events: all; z-index:10000004; position:absolute; bottom:"+(controlsButtonHeight+controlsVolumeSliderMargin-controlsVolumeSliderControlRadius/2)+"px; left:"+((controlsButtonWidth-controlsVolumeSliderWidth)/2+controlsVolumeSliderWidth/2-controlsVolumeSliderControlRadius/2)+"px; border-radius: "+controlsVolumeSliderControlRadius+"px;width:"+controlsVolumeSliderControlRadius+"px !important; height:"+controlsVolumeSliderControlRadius+"px !important; background-color: white; cursor:pointer;"),lkqdControls.domaudiobackground.appendChild(a),lkqdControls.domvolumeslidercontrol=a;var r=document.createElement("div");r.setAttribute("style","pointer-events: all; z-index:10000005; position:absolute; bottom:"+controlsButtonHeight+"px; left:0px; width:"+controlsButtonWidth+"px !important; height:"+(controlsVolumeSliderHeight+2*controlsVolumeSliderMargin)+"px !important; cursor:pointer; background-color: transparent;"),lkqdControls.domaudiobackground.appendChild(r),lkqdControls.domvolumesliderhitbox=r,lkqdControls.domvolumesliderhitbox.addEventListener("mousedown",addMouseDownListeners,!1),lkqdControls.domvolumesliderhitbox.addEventListener("click",volumeSliderMouseClick,!1),refreshVolumeSlider()}if(!lkqdPlayer&&!disableControls&&lkqdControls&&!lkqdControls.domaudioon){var o=document.createElement("div");o.setAttribute("style",'pointer-events: all; z-index:10000001; position:absolute; float:right; background-image: url("'+controlIconMuteImage+'"); background-color: transparent; background-size: auto '+controlsIconHeight+"px; background-repeat: no-repeat; background-position: center; bottom:0px; display:none; width: "+controlsButtonWidth+"px; height: "+controlsButtonHeight+"px !important; cursor:pointer;"),o.onclick=function(e){if(getVPAIDAd().adVolume(1),publisher_event_notify("AdVolumeOn"),1==mobile_video_autoplay){try{winning_ad.vpaid.setAdVolume(volume)}catch(e){}try{winning_ad.vpaid.adVolume(volume)}catch(e){}winning_ad.dom.muted=!1}winning_ad.domaudio&&winning_ad.domaudio.play(),refreshControls();try{e.stopPropagation()}catch(e){}},lkqdControls.domaudiocontainer.appendChild(o),lkqdControls.domaudioon=o}if(!lkqdPlayer&&!disableControls&&lkqdControls&&!lkqdControls.domaudiooff){var d=document.createElement("div");d.setAttribute("style",'pointer-events: all; z-index:10000001; position:absolute; float:right; background-image: url("'+controlIconUnmuteImage+'"); background-color: transparent; background-size: auto '+controlsIconHeight+"px; background-repeat: no-repeat; background-position: center; bottom:0px; display:none; width: "+controlsButtonWidth+"px; height: "+controlsButtonHeight+"px !important; cursor:pointer;"),d.onclick=function(e){if(getVPAIDAd().adVolume(0),publisher_event_notify("AdVolumeOff"),1==mobile_video_autoplay){try{winning_ad.vpaid.setAdVolume(volume)}catch(e){}try{winning_ad.vpaid.adVolume(volume)}catch(e){}winning_ad.dom.muted=!0}winning_ad.domaudio&&winning_ad.domaudio.pause(),refreshControls();try{e.stopPropagation()}catch(e){}},lkqdControls.domaudiocontainer.appendChild(d),lkqdControls.domaudiooff=d}}function createPlaybackControls(){if(!lkqdPlayer&&!disableControls&&lkqdControls&&!lkqdControls.dompause){var e=document.createElement("div");e.setAttribute("style",'pointer-events: all; z-index:10000001; position:relative; float:float; background-image: url("'+controlIconPauseImage+'"); background-size: auto '+controlsIconHeight+"px; background-repeat: no-repeat; background-position: center; background-color: "+controlButtonBackgroundBlurColor+"; border-radius: "+controlsButtonCornerRadius+"px; top:"+Math.round((controlsBarHeight-controlsButtonHeight)/2)+"px; left:"+controlsBarPadding+"px; display:none; width: "+controlsButtonWidth+"px; height: "+controlsButtonHeight+"px !important; cursor:pointer;"),e.onclick=function(e){lkqdpauseAd();try{e.stopPropagation()}catch(e){}},lkqdControls.appendChild(e),lkqdControls.dompause=e}if(!lkqdPlayer&&!disableControls&&lkqdControls&&!lkqdControls.domplay){var t=document.createElement("div");t.setAttribute("style",'pointer-events: all; z-index:10000001; position:relative; float:left; background-image: url("'+controlIconPlayImage+'"); background-size: auto '+controlsIconHeight+"px; background-repeat: no-repeat; background-position: center; background-color: "+controlButtonBackgroundBlurColor+"; border-radius: "+controlsButtonCornerRadius+"px; top:"+Math.round((controlsBarHeight-controlsButtonHeight)/2)+"px; left:"+controlsBarPadding+"px; display:none; width: "+controlsButtonWidth+"px; height: "+controlsButtonHeight+"px !important; cursor:pointer;"),t.onclick=function(e){lkqdresumeAd();try{e.stopPropagation()}catch(e){}},lkqdControls.appendChild(t),lkqdControls.domplay=t}}function createFullscreenControls(){if(!lkqdPlayer&&!disableControls&&lkqdControls&&!lkqdControls.domfullscreen){var e=document.createElement("div");e.setAttribute("style",'pointer-events: all; z-index:10000001; position:relative; float:right; background-image: url("'+controlIconFullscreenImage+'"); background-size: auto '+controlsIconHeight+"px; background-repeat: no-repeat; background-position: center; background-color: "+controlButtonBackgroundBlurColor+"; border-radius: "+controlsButtonCornerRadius+"px; top:"+Math.round((controlsBarHeight-controlsButtonHeight)/2)+"px; right:"+controlsBarPadding+"px; display:none; width: "+controlsButtonWidth+"px; margin-left:5px; height: "+controlsButtonHeight+"px !important; cursor:pointer;"),e.onclick=function(e){getVPAIDAd().resizeAd(playerWidth,playerHeight,"fullscreen");try{e.stopPropagation()}catch(e){}},lkqdControls.appendChild(e),lkqdControls.domfullscreen=e}}function createTitleTrackControls(){if(!lkqdPlayer&&!disableControls&&lkqdControls&&!lkqdControls.domtitletrack){var e=document.createElement("div");e.setAttribute("style",'pointer-events: all; z-index:10000001; position:relative; float:right; background-image: url("'+controlIconTitleTrackImage+'"); background-size: auto '+controlsIconHeight+"px; background-repeat: no-repeat; background-position: center; background-color: "+controlButtonBackgroundBlurColor+"; border-radius: "+controlsButtonCornerRadius+"px; top:"+Math.round((controlsBarHeight-controlsButtonHeight)/2)+"px; right:"+controlsBarPadding+"px; display:none; width: "+controlsButtonWidth+"px; margin-left:5px; height: "+controlsButtonHeight+"px !important; cursor:pointer;"),e.onclick=function(e){try{if(winning_ad&&winning_ad.dom)for(var t=0;t<winning_ad.dom.textTracks.length;t++)if("disabled"!=winning_ad.dom.textTracks[t].mode){"hidden"==winning_ad.dom.textTracks[t].mode?winning_ad.dom.textTracks[t].mode="showing":"showing"==winning_ad.dom.textTracks[t].mode&&(winning_ad.dom.textTracks[t].mode="hidden");break}e.stopPropagation()}catch(e){}},lkqdControls.appendChild(e),lkqdControls.domtitletrack=e}}function enableAudioControls(){lkqdPlayer||disableControls||useAudioControls||(volumeSliderApply=!is_mobile&&0!=controlOptionsVolumeSlider,useAudioControls=!0,refreshControls())}function enablePlaybackControls(){lkqdPlayer||disableControls||usePlaybackControls||(usePlaybackControls=!0,refreshControls())}function enableFullscreenControls(){if(!lkqdPlayer&&!disableControls&&!useFullscreenControls){var e=!0;if(0<getPageInfo().iframe_cnt&&lkqdContainer)try{var t=lkqdContainer.ownerDocument;if(t){var i=(document_context=t).defaultView||t.parentWindow;if(i&&i!=window){var n=i.frameElement;n.hasAttribute("allowfullscreen")||n.hasAttribute("webkitallowfullscreen")||n.hasAttribute("mozallowfullscreen")||(e=!1)}}}catch(e){}e&&(useFullscreenControls=!0,lkqdContainer.addEventListener("webkitfullscreenchange",fullscreenChange,!1),lkqdContainer.addEventListener("mozscreenchange",fullscreenChange,!1),lkqdContainer.addEventListener("screenchange",fullscreenChange,!1),refreshControls())}}function enableTitleTrackControls(){lkqdPlayer||disableControls||useTitleTrackControls||(useTitleTrackControls=!0,refreshControls())}function toggleAudioControls(e){lkqdControls&&lkqdControls.domaudioon&&lkqdControls.domaudiooff&&(e?(lkqdControls.domaudioon.style.display="",lkqdControls.domaudiooff.style.display="none"):(lkqdControls.domaudioon.style.display="none",lkqdControls.domaudiooff.style.display=""))}function togglePlaybackControls(e){lkqdControlsPaused=e,lkqdControls&&lkqdControls.domplay&&lkqdControls.dompause&&(e?(lkqdControls.domplay.style.display="",lkqdControls.dompause.style.display="none"):(lkqdControls.domplay.style.display="none",lkqdControls.dompause.style.display=""))}function fullscreenChange(e){refreshControls()}function volumeChange(e){try{var t=e.target.volume,i=e.target.muted,n=t;i&&(n=0),t!=n&&getVPAIDAd().adVolume(n),refreshVolumeSlider(n)}catch(e){}}function volumeSliderShow(){volumeSliderApply&&(volumeSliderMouseOver=!0,volumeSliderExpand())}function volumeSliderHide(){volumeSliderApply&&(volumeSliderMouseOver=!1,volumeSliderContract())}function volumeSliderExpand(){lkqdControls.domaudiobackground.style.setProperty("transition-timing-function","ease"),lkqdControls.domaudiobackground.style.setProperty("-webkit-transition","height 0.2s"),lkqdControls.domaudiobackground.style.setProperty("-moz-transition","height 0.2s"),lkqdControls.domaudiobackground.style.setProperty("-o-transition","height 0.2s"),lkqdControls.domaudiobackground.style.setProperty("transition","height 0.2s"),lkqdControls.domaudiobackground.style.height=controlsButtonHeight+(controlsVolumeSliderHeight+2*controlsVolumeSliderMargin)+"px"}function volumeSliderContract(){lkqdControls.domaudiobackground.style.setProperty("transition-timing-function","ease"),lkqdControls.domaudiobackground.style.setProperty("-webkit-transition","height 0.3s"),lkqdControls.domaudiobackground.style.setProperty("-moz-transition","height 0.3s"),lkqdControls.domaudiobackground.style.setProperty("-o-transition","height 0.3s"),lkqdControls.domaudiobackground.style.setProperty("transition","height 0.3s"),lkqdControls.domaudiobackground.style.height=controlsButtonHeight+"px"}function lkqdControlsShow(){if(lkqdControlsAnimationApply){lkqdControlsAnimationMouseOver=!0;try{lkqdControlsAnimationTimeout&&clearTimeout(lkqdControlsAnimationTimeout)}catch(e){}lkqdControlsAlphaIn()}}function lkqdControlsHide(){if(lkqdControlsAnimationApply){lkqdControlsAnimationMouseOver=!1;try{lkqdControlsAnimationTimeout&&clearTimeout(lkqdControlsAnimationTimeout)}catch(e){}lkqdControlsAnimationTimeout=setTimeout(lkqdControlsAlphaOut,lkqdControlsAnimationDelay)}}function lkqdControlsAlphaIn(){if(lkqdControlsAnimationMouseOver&&lkqdControls&&0==lkqdControls.style.opacity&&!lkqdControlsAnimationInActive){lkqdControlsAnimationInActive=!(lkqdControlsAnimationOutActive=!1),lkqdControlsAnimationInStartTime=(new Date).getTime();lkqdControlsAnimationInId=setInterval(function(){if(lkqdControls){var e=(new Date).getTime();if(lkqdControlsAnimationInStartTime+lkqdControlsAnimationInDuration<=e)clearInterval(lkqdControlsAnimationInId),lkqdControlsAnimationInActive=!(lkqdControlsAnimationInId=-1),lkqdControls.style.opacity=1;else if(lkqdControlsAnimationInActive){var t=(e-lkqdControlsAnimationInStartTime)/lkqdControlsAnimationInDuration*1;lkqdControls.style.opacity=t}else clearInterval(lkqdControlsAnimationInId),lkqdControlsAnimationInId=-1}},25)}}function lkqdControlsAlphaOut(){if(!lkqdControlsAnimationMouseOver&&lkqdControls&&1==lkqdControls.style.opacity&&!lkqdControlsAnimationOutActive){lkqdControlsAnimationOutActive=!(lkqdControlsAnimationInActive=!1),lkqdControlsAnimationOutStartTime=(new Date).getTime();lkqdControlsAnimationOutId=setInterval(function(){if(lkqdControls){var e=(new Date).getTime();if(lkqdControlsAnimationOutStartTime+lkqdControlsAnimationOutDuration<=e)clearInterval(lkqdControlsAnimationOutId),lkqdControlsAnimationOutActive=!(lkqdControlsAnimationOutId=-1),lkqdControls.style.opacity=0;else if(lkqdControlsAnimationOutActive){var t=1-(e-lkqdControlsAnimationOutStartTime)/lkqdControlsAnimationOutDuration*1;lkqdControls.style.opacity=t}else clearInterval(lkqdControlsAnimationOutId),lkqdControlsAnimationOutId=-1}},25)}}function cleanupControls(){try{lkqdContainer.removeEventListener("webkitfullscreenchange",fullscreenChange,!1),lkqdContainer.removeEventListener("mozfullscreenchange",fullscreenChange,!1),lkqdContainer.removeEventListener("fullscreenchange",fullscreenChange,!1),lkqdContainer.removeEventListener("mouseover",lkqdControlsShow,!1),lkqdContainer.removeEventListener("mouseout",lkqdControlsHide,!1);try{lkqdControlsAnimationTimeout&&clearTimeout(lkqdControlsAnimationTimeout)}catch(e){}window.controlIconPauseData2X=null,window.controlIconPauseImage=null,window.controlIconPlayData2X=null,window.controlIconPlayImage=null,window.controlIconFullscreenData2X=null,window.controlIconFullscreenImage=null,window.controlIconMuteData2X=null,window.controlIconMuteImage=null,window.controlIconUnmuteData2X=null,window.controlIconUnmuteImage=null,window.controlIconTitleTrackData2X=null,lkqdControls&&lkqdControls.domaudiocontainer&&(lkqdControls.domaudiobackground&&(lkqdControls.domvolumeslidertrack&&lkqdControls.domaudiobackground.removeChild(lkqdControls.domvolumeslidertrack),lkqdControls.domvolumesliderfill&&lkqdControls.domaudiobackground.removeChild(lkqdControls.domvolumesliderfill),lkqdControls.domvolumeslidercontrol&&lkqdControls.domaudiobackground.removeChild(lkqdControls.domvolumeslidercontrol),lkqdControls.domvolumesliderhitbox&&(lkqdControls.domvolumesliderhitbox.removeEventListener("mousedown",addMouseDownListeners,!1),lkqdControls.domvolumesliderhitbox.removeEventListener("click",volumeSliderMouseClick,!1),lkqdControls.domvolumesliderhitbox.removeEventListener("mousemove",updateVolumeSliderPosition,!1),lkqdControls.domvolumesliderhitbox.removeEventListener("mouseup",volumeSliderMouseUp,!1),lkqdControls.domvolumesliderhitbox.removeEventListener("mouseleave",volumeSliderMouseLeave,!1),lkqdControls.domaudiobackground.removeChild(lkqdControls.domvolumesliderhitbox)),lkqdControls.domaudiocontainer.removeChild(lkqdControls.domaudiobackground)),lkqdControls.domaudioon&&(lkqdControls.domaudioon.removeAttribute("onclick"),lkqdControls.domaudiocontainer.removeChild(lkqdControls.domaudioon),lkqdControls.domaudioon=null),lkqdControls.domaudiooff&&(lkqdControls.domaudiooff.removeAttribute("onclick"),lkqdControls.domaudiocontainer.removeChild(lkqdControls.domaudiooff),lkqdControls.domaudiooff=null),lkqdControls.domaudiocontainer.removeEventListener("mouseover",volumeSliderShow,!1),lkqdControls.domaudiocontainer.removeEventListener("mouseout",volumeSliderHide,!1),lkqdControls.removeChild(lkqdControls.domaudiocontainer)),lkqdControls.domfullscreen&&(lkqdControls.domfullscreen.removeAttribute("onclick"),lkqdControls.removeChild(lkqdControls.domfullscreen)),lkqdControls.domplay&&(lkqdControls.domplay.removeAttribute("onclick"),lkqdControls.removeChild(lkqdControls.domplay)),lkqdControls.dompause&&(lkqdControls.dompause.removeAttribute("onclick"),lkqdControls.removeChild(lkqdControls.dompause)),lkqdControls.domtitletrack&&(lkqdControls.domtitletrack.removeAttribute("onclick"),lkqdControls.removeChild(lkqdControls.domtitletrack)),lkqdContainer.removeChild(lkqdControls)}catch(e){}}function lkqdAdRequest(r,o){var e=r.replace("&output="+getParameterByName("output",r),"&output=json2");e.indexOf("dev-ssp.lkqd.net")<0&&(e=(e=e.replace("ssp.lkqd.net","v.lkqd.net")).replace("s.lkqd.net","v.lkqd.net"));try{e=(e=(e=(e=(e=(e=e.replace("&ip="+getParameterByName("ip",e),"")).replace("?ip="+getParameterByName("ip",e),"")).replace("&ip="+encodeURIComponent(getParameterByName("ip",e)),"")).replace("?ip="+encodeURIComponent(getParameterByName("ip",e)),"")).replace("&ip=","&ignoreip=")).replace("?ip=","?ignoreip=")}catch(e){}try{e=(e=(e=(e=(e=(e=e.replace("&ua="+getParameterByName("ua",e),"")).replace("?ua="+getParameterByName("ua",e),"")).replace("&ua="+encodeURIComponent(getParameterByName("ua",e)),"")).replace("?ua="+encodeURIComponent(getParameterByName("ua",e)),"")).replace("&ua=","&ignoreua=")).replace("?ua=","?ignoreua=")}catch(e){}getParameterByName("mlwscan",e)&&(mlwscan=!0),!lkqdExecution&&0<e.indexOf("&dfp=true")&&(dfpSuppressError=!0);0<e.toLowerCase().indexOf("&support=")?e=e.replace("&support="+getParameterByName("support",e),"&support=html5"):e+="&support=html5",adserver_json.site.envid<=2&&(e+="&ismd="+is_mobile);var t=0;if(lkqdExecution&&"outstream"==lkqdExecution)e+="&rtv="+(t=1);else if(lkqdContainer&&playerWidth&&playerHeight&&lkqdContainerWindow&&lkqdContainerWindow==window.top)e+="&rtv="+(t=viewability_check(lkqdContainer,playerWidth,playerHeight,lkqdContainerWindow,!1)?1:0);else if(1==top_access_check()){var i=get_window_top_reference();i&&(e+="&rtv="+(t=viewability_check(i.frameElement,playerWidth,playerHeight,window.top,!1)?1:0))}var n="auto";if((adserver_json.site.playinit&&"user"==adserver_json.site.playinit||is_mobile&&lkqdExecution&&"instream"==lkqdExecution)&&(n="user"),0<e.toLowerCase().indexOf("&playinit="))try{e=(e=e.replace("&playinit="+getParameterByName("playinit",e),"&playinit="+n)).replace("&playinit="+encodeURIComponent(getParameterByName("playinit",e)),"&playinit="+n)}catch(e){}else e+="&playinit="+n;var a=getParameterByName("execution",e);if(333==pid||267==pid||lkqdPlayerSettings&&lkqdPlayerSettings.supplyContentVideo&&lkqdPlayerSettings.supplyContentVideo.url?a="instream":1==t?a="outstream":!lkqdExecution&&(300==playerWidth&&250==playerHeight||300==playerWidth&&170==playerHeight)&&(a="inbanner"),0<e.toLowerCase().indexOf("&execution="))try{e=(e=e.replace("&execution="+getParameterByName("execution",e),"&execution="+a)).replace("&execution="+encodeURIComponent(getParameterByName("execution",e)),"&execution="+a)}catch(e){}else e+="&execution="+a;if(0<e.toLowerCase().indexOf("&width="))try{e=(e=e.replace("&width="+getParameterByName("width",e),"&width="+playerWidthInitial)).replace("&width="+encodeURIComponent(getParameterByName("width",e)),"&width="+playerWidthInitial)}catch(e){}else e+="&width="+playerWidthInitial;if(0<e.toLowerCase().indexOf("&height="))try{e=(e=e.replace("&height="+getParameterByName("height",e),"&height="+playerHeightInitial)).replace("&height="+encodeURIComponent(getParameterByName("height",e)),"&height="+playerHeightInitial)}catch(e){}else e+="&height="+playerHeightInitial;if(0<e.toLowerCase().indexOf("&pageurl=")?(!getParameterByName("pageurl",e)||"[PAGEURL]"==getParameterByName("pageurl",e)||getParameterByName("pageurl",e).indexOf(".")<1)&&(e=e.replace("&pageurl="+getParameterByName("pageurl",e),"&pageurl="+getPageInfo().top_hostname)):e+="&pageurl="+getPageInfo().top_hostname,2==adserver_json.site.envid&&0<e.toLowerCase().indexOf("&pageurl="))try{e=(e=e.replace("&pageurl="+getParameterByName("pageurl",e),"")).replace("&pageurl="+encodeURIComponent(getParameterByName("pageurl",e)),"")}catch(e){}var d=getPageInfo(),s="";if((d.ancestor_origin_support||top_access_check())&&(s=d.top_hostname),s&&("localhost"==s||0<=s.indexOf("ampproject.org")||0<=s.indexOf("google.com"))&&(s=""),0<e.toLowerCase().indexOf("&thost="))try{e=(e=e.replace("&thost="+getParameterByName("thost",e),"&thost="+s)).replace("&thost="+encodeURIComponent(getParameterByName("thost",e)),"&thost="+s)}catch(e){}else e+="&thost="+s;if(lkqdPlayerSettings&&(lkqdPlayerSettings.flrd&&(e+="&flrd="+lkqdPlayerSettings.flrd),lkqdPlayerSettings.flrmp&&(e+="&flrmp="+lkqdPlayerSettings.flrmp),lkqdPlayerSettings.schain&&"string"==typeof lkqdPlayerSettings.schain&&(e+="&schain="+lkqdPlayerSettings.schain),lkqdPlayerSettings.us_privacy&&"string"==typeof lkqdPlayerSettings.us_privacy&&(e+="&us_privacy="+lkqdPlayerSettings.us_privacy)),0<e.toLowerCase().indexOf("&volume="))try{e=(e=e.replace("&volume="+getParameterByName("volume",e),"&volume="+Math.floor(100*volume))).replace("&volume="+encodeURIComponent(getParameterByName("volume",e)),"&volume="+Math.floor(100*volume))}catch(e){}else e+="&volume="+Math.floor(100*volume);if(pubSupportMode&&"strict"==pubSupportMode&&e.toLowerCase().indexOf("&supportmode=strict")<0&&(e+="&supportmode=strict"),0<e.toLowerCase().indexOf("&dnt=")){if(!(0<e.toLowerCase().indexOf("&dnt=1")||0<e.toLowerCase().indexOf("&dnt=true")))try{e=(e=e.replace("&dnt="+getParameterByName("dnt",e),"&dnt="+dntSetting())).replace("&dnt="+encodeURIComponent(getParameterByName("dnt",e)),"&dnt="+dntSetting())}catch(e){}}else e+="&dnt="+dntSetting();if(0<e.toLowerCase().indexOf("&dnt=1")||0<e.toLowerCase().indexOf("&dnt=true"))try{e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("&idfa="+getParameterByName("idfa",e),"&idfa=")).replace("&idfa="+encodeURIComponent(getParameterByName("idfa",e)),"&idfa=")).replace("&aid="+getParameterByName("aid",e),"&aid=")).replace("&aid="+encodeURIComponent(getParameterByName("aid",e)),"&aid=")).replace("&loclat="+getParameterByName("loclat",e),"&loclat=")).replace("&loclat="+encodeURIComponent(getParameterByName("loclat",e)),"&loclat=")).replace("&loclong="+getParameterByName("loclong",e),"&loclong=")).replace("&loclong="+encodeURIComponent(getParameterByName("loclong",e)),"&loclong=")).replace("&loc="+getParameterByName("loc",e),"&loc=")).replace("&loc="+encodeURIComponent(getParameterByName("loc",e)),"&loc=")}catch(e){}if(sspUrlFinal=e,getParameterByName("output",r)&&"svpaid"==getParameterByName("output",r)){svpaidAd=!0,sspUrlFinal=sspUrlFinal.replace("&output="+getParameterByName("output",sspUrlFinal),"&output=svpaid");var l=!0,c=(getParameterByName("width",r),getParameterByName("height",r),getHostnameFromUrl(getParameterByName("pageurl",r)));if(2!=adserver_json.site.envid&&4!=adserver_json.site.envid&&262!=pid&&(!c||s&&-1==s.toLowerCase().indexOf(c.toLowerCase()))&&(l=!1),l){if(adserver_json&&adserver_json.blocks&&1<=adserver_json.blocks.length)for(var p=0;p<adserver_json.blocks.length;p++)adservers_blocked.push(adserver_json.blocks[p]);if(adserver_json&&adserver_json.adgroups){null!=lkqdExecution&&adserver_json.site&&adserver_json.site.wob&&1==adserver_json.site.wob&&publisher_event_notify("LkqdEvent1");for(var u=0;u<adserver_json.adgroups.length;u++)if("lastlook"==adserver_json.adgroups[u].type){lastLookAvailable=!0;break}if(prepare_adserver_json(),adLoadedDelay){var m=!1;if(adserver_json&&adserver_json.adgroups&&0<adserver_json.adgroups.length)for(u=0;u<adserver_json.adgroups.length;u++)if(adserver_json.adgroups[u].ads&&0<adserver_json.adgroups[u].ads.length){m=!0;break}publisher_event_notify(m?"AdOpportunity":"AdNonOpportunity")}}}else create_and_fire_pixels(258),lkqdstopAd()}else{var g,v=!1;pixel_base_url&&getParameterByName("uimp",pixel_base_url)&&(g={impressionId:getParameterByName("uimp",pixel_base_url)});try{var f=new XMLHttpRequest;"withCredentials"in f?g?f.open("POST",e,!0):f.open("GET",e,!0):"undefined"!=typeof XDomainRequest&&(f=new XDomainRequest,g?f.open("POST",e,!0):f.open("GET",e)),0<e.indexOf("&xhrwc=false")||(f.withCredentials=!0),g&&f.setRequestHeader("Content-Type","application/json"),f.onload=function(e){if(!f.readyState||4==f.readyState)if(f.responseText&&50<f.responseText.length){var t;try{t=JSON.parse(f.responseText)}catch(e){null!=lkqdExecution&&o<2&&(v=!0,lkqdAdRequest(r,o+1))}if(t&&t.site&&t.site.pixelbase&&((pixel_base_url=t.site.pixelbase)&&0==pixel_base_url.indexOf("https")&&(wlp_pixel="https:"),t.site.domain&&(adserver_json.site.domain=t.site.domain)),t&&t.blocks&&1<=t.blocks.length)for(var i=0;i<t.blocks.length;i++)"dyntrk.com"==t.blocks[i]&&3==t.site.envid||adservers_blocked.push(t.blocks[i]);if(t&&t.sync&&0==dfpAdX&&0==dfpSuppressError&&0==dntSetting())for(i=0;i<t.sync.length;i++)pixel_fire(t.sync[i]);if(t&&t.adgroups){adserver_json.adgroups=deepCopy(t.adgroups),adserver_json.publishers=deepCopy(t.publishers),adserver_json.verification=deepCopy(t.verification),adserver_json.pixels=deepCopy(t.pixels),t.site.maderequest&&(adserver_json.site.maderequest=t.site.maderequest),null!=lkqdExecution&&t.site&&t.site.wob&&1==t.site.wob&&publisher_event_notify("LkqdEvent1"),t.adgroups=null,t.publishers=null,t.verification=null,t.pixels=null,t.site=null;for(var n=0;n<adserver_json.adgroups.length;n++)if("lastlook"==adserver_json.adgroups[n].type){lastLookAvailable=!0;break}if(prepare_adserver_json(),adLoadedDelay){var a=!1;if(adserver_json&&adserver_json.adgroups&&0<adserver_json.adgroups.length)for(n=0;n<adserver_json.adgroups.length;n++)if(adserver_json.adgroups[n].ads&&0<adserver_json.adgroups[n].ads.length){a=!0;break}(a||adserver_json.site.maderequest)&&find_and_fire_pixels(1),publisher_event_notify(a?"AdOpportunity":"AdNonOpportunity")}}else 0==v&&(setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd());t=null}else null!=lkqdExecution&&o<2?(v=!0,lkqdAdRequest(r,o+1)):(setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd());f.onload=null},f.timeout=5500,f.onerror=function(e){create_and_fire_pixels(202),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd(),f.onload=null},f.ontimeout=function(e){create_and_fire_pixels(202),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd(),f.onload=null},f.onabort=function(e){create_and_fire_pixels(202),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd(),f.onload=null},g?f.send(JSON.stringify(g)):f.send(null)}catch(e){setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd(),f.onload=null}}}function getPageInfo(){var e,t,i="",n=top_access_check(),a="",r="",o=0,d=0,s=window,l=document;if(lkqdContainer)try{var c=lkqdContainer.ownerDocument;if(c){var p=(l=c).defaultView||c.parentWindow;p&&p!=window&&(s=p)}}catch(e){s=window,l=document}try{window.location.ancestorOrigins&&void 0!==window.location.ancestorOrigins&&(o=1)}catch(e){}if(s!=top){if(d=1,s.parent.window!=top){if(d=2,1==o)try{d=window.location.ancestorOrigins.length}catch(e){}if(n)try{t=window.top.document}catch(e){t=null}}else try{t=s.parent.window.document}catch(e){t=null}t&&t.location&&t.location.href&&0==t.location.href.indexOf("http")?i=getHostnameFromUrl(t.location.href):l&&l.referrer&&0==l.referrer.indexOf("http")&&(i=getHostnameFromUrl(l.referrer))}else i=getHostnameFromUrl(l.location.href);if(1==o)try{if(window.location.ancestorOrigins&&1<=window.location.ancestorOrigins.length){var u=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1];u&&"null"!=u&&(i=getHostnameFromUrl(u))}}catch(e){}return e=i,a=l.location.href,l.referrer&&(r=l.referrer),s!=top&&(s.parent.window!=top?e&&(a="http://"+e+"/"):r&&0<=r.indexOf(e)&&r.indexOf(e)<50&&0==r.indexOf("http")?(a=r,r=""):1==o&&e&&(a="http://"+e+"/")),{hostname:e,top_hostname:i,top_domain:"",page_url:a,page_referrer:r,ancestor_origin_support:o,iframe_cnt:d}}function debug(e,t){e&&t&&window&&window.console&&null!=adserver_json&&adserver_json.site&&adserver_json.site.clientSideDebug}function blocked_adserver(e){var t=!1;if(e){var i=getHostnameFromUrl(e);if(i)if(0<e.toLowerCase().indexOf("adserv.com/vast.xml?key"))t=!0;else for(var n=0;n<adservers_blocked.length;n++)if(0<=i.toLowerCase().indexOf(adservers_blocked[n])){t=!0;break}}return t}function blocked_adserver_dfp(e){var t=!1;if(e){var i=getHostnameFromUrl(e);if(i)for(var n=0;n<tagBlacklistDFP.length;n++)if(0<=i.toLowerCase().indexOf(tagBlacklistDFP[n])){t=!0;break}}return t}function get_vpaidjs_src(){var e="";if(lkqd_vpaidjs_src&&""!=lkqd_vpaidjs_src)e=lkqd_vpaidjs_src;else try{var t=[].slice.call(document.getElementsByTagName("script")).pop();if(t){var i=t.getAttribute("src"),n=i.split("/").pop().split(".").shift(),a=i.split("/").pop().split("?").shift().split(".").pop(),r=0<=i.indexOf("//")?i.split("//").pop().split("/").shift():"";"ad.lkqd.net"!=r&&"ad-dev.lkqd.net"!=r&&"dev-local.lkqd.com"!=r&&"s3-us-west-2.amazonaws.com"!=r&&"creative.lkqd.net"!=r||"vpaid"!=n||"js"!=a||(e=i)}}catch(e){}return e}function videoMediaFile(e){var t;return e.dom&&((t=e.dom.getAttribute("src"))||e.dom.childNodes&&0<e.dom.childNodes.length&&e.dom.childNodes[0]&&e.dom.childNodes[0].tagName&&"source"==e.dom.childNodes[0].tagName.toLowerCase()&&(t=e.dom.childNodes[0].getAttribute("src"))),t}function replace_macros(e,t,i,n,a,r,o,d){var s=e.toString();if(s&&(0<s.indexOf("t.lkqd.net")&&s.indexOf("t.lkqd.net")<=10||0==s.indexOf("${"))){if(0<=s.indexOf("${"))try{if(s=string_replace(s,"${BASE_URL}",pixel_base_url),t&&(s=string_replace(s,"${EVENT_ID}",t)),s=string_replace(s,"${VERSION}",lkqdFormatVersion?version+"&fvrs="+lkqdFormatVersion:version),s=string_replace(s,"${VOLUME}",100*volume),s=string_replace(s,"${TIME_TOTAL}",(new Date).getTime()-time_start),s=string_replace(s,"${TIME_FROM_STARTAD}",""),s=string_replace(s,"${TIME_FROM_INITAD}",i||""),s=n&&isNumber(n)?string_replace(s,"${AD_DURATION}",n=Math.min(180,5*Math.round(n/5))):string_replace(s,"${AD_DURATION}",""),s=adserver_json&&adserver_json.site&&null!=adserver_json.site.domain&&adserver_json.site.envid&&2!=adserver_json.site.envid?string_replace(s,"${PAGE_DOMAIN}",adserver_json.site.domain):string_replace(s,"${PAGE_DOMAIN}",""),adserver_json&&adserver_json.site&&adserver_json.site.envid&&2!=adserver_json.site.envid){var l=getPageInfo();s=l.ancestor_origin_support||top_access_check()?string_replace(s,"${PAGE_DOMAIN_DETECTED}",l.top_hostname):string_replace(s,"${PAGE_DOMAIN_DETECTED}",""),l=null}else s=string_replace(s,"${PAGE_DOMAIN_DETECTED}","");s=string_replace(s,"${PAGE_URL}",""),s=string_replace(s,"${PAGE_REFERRER}",""),s=string_replace(s,"${PLAYER_HOSTNAME}",""),s=string_replace(s,"${FLASH_VERSION}",""),s=string_replace(s,"${RENDER}",null!=a?a:""),s=string_replace(s,"${WIDTH}",playerWidthInitial),s=string_replace(s,"${HEIGHT}",playerHeightInitial),s=string_replace(s+="&vmt="+adLoadedDelay,"tagtype=json2&","tagtype=vastvpaid&"),"html5"==a&&mobile_video_autoplay&&(s+="&mva=true"),r&&(s+="&type="+r),d&&(s+="&hybrid="+d),o&&(s+="&mfhost="+encodeURIComponent(o))}catch(e){}if(null!=lkqdExecution)try{s=string_replace(s,"&pubtagtype=vastvpaid&","&pubtagtype=lkqd-formats&"),s=string_replace(s,"&lkqdtagtype=vastvpaid&","&lkqdtagtype=lkqd-formats&")}catch(e){}}return s}function find_and_fire_pixels(e,t,i,n,a){var r;if(r=(i=i||"").concat(),t&&t.pixels){var o="";t.timing&&t.timing.initad&&(o=(new Date).getTime()-t.timing.initad);var d="";if(t.durationMs&&(d=Math.round(t.durationMs/1e3)),t.ima&&(i+="&ima=true"),3==e){t.priority&&(i+="&aipri="+t.priority),t.type&&(i+="&aitpe="+t.type),t.support&&(i+="&aispt="+t.support),t.vpsr&&(i+="&vpsr="+t.vpsr),t.type&&"vast"!=t.type&&(i+="&aitsia="+o);var s=getPageInfo();if(s.ancestor_origin_support&&(i+="&ifs="+s.iframe_cnt,Math.random()<.01))try{for(var l="",c=0;c<location.ancestorOrigins.length-1;c++)0<l.length&&(l+=","),l+=location.ancestorOrigins[c];i+="&ifd="+encodeURIComponent(l)}catch(e){}i+="&ismd="+is_mobile}else 1==e?i+="&ismd="+is_mobile:8==e&&(i+="&tsai="+((new Date).getTime()-impressionTime));for(var p=0;p<t.pixels.length;p++)if(t.pixels[p].eventId==e){if(t.pixels[p].pixelUrls&&1<=t.pixels[p].pixelUrls.length)for(c=0;c<t.pixels[p].pixelUrls.length;c++){var u=t.pixels[p].pixelUrls[c],m=getParameterByName("pid",u);(0<u.indexOf("t.lkqd.net")&&u.indexOf("t.lkqd.net")<=10||0==u.indexOf("${BASE_URL}"))&&(i&&u&&m&&m==pid?u+=i:r&&0<=r.indexOf("&epid=")&&0<=r.indexOf("&ewp=")&&m&&m!=pid&&3==e&&(u+=r));var g="";t.videoSelected&&t.videoSelected.url&&(g=getHostnameFromUrl(t.videoSelected.url));var v=replace_macros(u,e,o,d,t.support,t.type,g,t.hybrid);n?n.push(v):startad?offsetPixelBatchEnabled&&"t.lkqd.net"==getHostnameFromUrl(v)?offsetPixelBatchQueue.push(v):pixel_fire(v,a):lkqdPixelQueue.push(v),v=null}break}try{if(t.pidSidTagIds&&adserver_json&&adserver_json.publishers)for(var f=0;f<adserver_json.publishers.length;f++)for(var h=0;h<t.pidSidTagIds.length;h++)if(adserver_json.publishers[f].pid==t.pidSidTagIds[h][0]){if(adserver_json.publishers[f].pixels)for(var _=0;_<adserver_json.publishers[f].pixels.length;_++)if(e==adserver_json.publishers[f].pixels[_].eventId)for(var A=0;A<adserver_json.publishers[f].pixels[_].pixelUrls.length;A++)adserver_json.publishers[f].pixels[_].pixelUrls[A]=string_replace(adserver_json.publishers[f].pixels[_].pixelUrls[A],"${ADID}",winning_ad.pidSidTagIds[h][2]),adserver_json.publishers[f].pixels[_].pixelUrls[A]=string_replace(adserver_json.publishers[f].pixels[_].pixelUrls[A],"${DEALID}",winning_ad.pidSidTagIds[h][3]),adserver_json.publishers[f].pixels[_].pixelUrls[A]=string_replace(adserver_json.publishers[f].pixels[_].pixelUrls[A],"${SITEID}",winning_ad.pidSidTagIds[h][1]),6<=winning_ad.pidSidTagIds[h].length&&(adserver_json.publishers[f].pixels[_].pixelUrls[A]=string_replace(adserver_json.publishers[f].pixels[_].pixelUrls[A],"${CPM}",cpm_decode(winning_ad.pidSidTagIds[h][5]))),winning_ad.pidSidTagIds[h][6]&&(adserver_json.publishers[f].pixels[_].pixelUrls[A]=string_replace(adserver_json.publishers[f].pixels[_].pixelUrls[A],"${ORDERID}",winning_ad.pidSidTagIds[h][6])),pixel_fire(adserver_json.publishers[f].pixels[_].pixelUrls[A]);if(3==e&&adserver_json.publishers[f].scripts)for(_=0;_<adserver_json.publishers[f].scripts.length;_++)if(adserver_json.publishers[f].scripts[_]&&(0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf("script.anura.io/request.js")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf(".yabidos.com/")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf("videosec.mobi/j/")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf(".glotgrx.com/")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf(".lporirxe.com/")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf("js.ad-score.com/score.min.js")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf("c.fqtag.com/tag/implement-r.js")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf("adlooxtracking.com/ads/js")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf("adrta.com")&&0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf(".js")||0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf("doubleverify.com")&&0<adserver_json.publishers[f].scripts[_].toLowerCase().indexOf(".js"))){var y=document.createElement("script");adserver_json.publishers[f].scripts[_]=string_replace(adserver_json.publishers[f].scripts[_],"${ADID}",winning_ad.pidSidTagIds[h][2]),adserver_json.publishers[f].scripts[_]=string_replace(adserver_json.publishers[f].scripts[_],"${DEALID}",winning_ad.pidSidTagIds[h][3]),adserver_json.publishers[f].scripts[_]=string_replace(adserver_json.publishers[f].scripts[_],"${SITEID}",winning_ad.pidSidTagIds[h][1]),winning_ad.pidSidTagIds[h][6]&&(adserver_json.publishers[f].scripts[_]=string_replace(adserver_json.publishers[f].scripts[_],"${ORDERID}",winning_ad.pidSidTagIds[h][6])),y.src=adserver_json.publishers[f].scripts[_];try{lkqdContainer.appendChild(y)}catch(e){}}}}catch(e){}}else if(adserver_json){if(winning_ad&&winning_ad.ima&&(i+="&ima=true"),adserver_json.pixels)for(p=0;p<adserver_json.pixels.length;p++)if(adserver_json.pixels[p].eventId==e){if(adserver_json.pixels[p].pixelUrls)for(c=0;c<adserver_json.pixels[p].pixelUrls.length;c++){v=replace_macros(adserver_json.pixels[p].pixelUrls[c]+i,e,"","","html5");offsetPixelBatchEnabled&&"t.lkqd.net"==getHostnameFromUrl(v)?offsetPixelBatchQueue.push(v):pixel_fire(v),v=null}break}if(adserver_json.publishers&&0<adserver_json.publishers.length)for(f=0;f<adserver_json.publishers.length;f++)if(adserver_json.publishers[f].pid==pid)for(_=0;_<adserver_json.publishers[f].pixels.length;_++)if(e==adserver_json.publishers[f].pixels[_].eventId)for(A=0;A<adserver_json.publishers[f].pixels[_].pixelUrls.length;A++)adserver_json.publishers[f].pixels[_].pixelUrls[A]=string_replace(adserver_json.publishers[f].pixels[_].pixelUrls[A],"${ADID}",""),adserver_json.publishers[f].pixels[_].pixelUrls[A]=string_replace(adserver_json.publishers[f].pixels[_].pixelUrls[A],"${SITEID}",sid),pixel_fire(adserver_json.publishers[f].pixels[_].pixelUrls[A])}}function create_and_fire_pixels(e,t){var i;if(pixel_base_url){!getParameterByName("pid",i=pixel_base_url)&&pixel_base_url_toplevel_supply&&(i+=pixel_base_url_toplevel_supply),winning_ad&&winning_ad.ima&&(t+="&ima=true"),t&&(i+=t);var n=replace_macros(i,e,"","");offsetPixelBatchEnabled&&"t.lkqd.net"==getHostnameFromUrl(n)?offsetPixelBatchQueue.push(n):pixel_fire(n),n=null}}function pixel_fire(e,t){if(void 0===t&&(t=!1),e){try{"https:"==wlp&&0==e.toLowerCase().indexOf("http://")&&(e="https://"+e.substring(7)),0==e.indexOf("//")&&(e="https:"+e)}catch(e){}if(0<e.indexOf("t.lkqd.net")&&e.indexOf("t.lkqd.net")<=10&&(e=lkqd_tracking_pixel_prep(e,t),1==mlwscan&&(e="")),e&&0==blocked_adserver(e))if((0==e.indexOf("http://pixel.adsafeprotected.com")||0==e.indexOf("https://pixel.adsafeprotected.com"))&&0<e.indexOf("skeleton.js"))try{var i=document.createElement("script");i.src=e,lkqdContainer.appendChild(i)}catch(e){}else try{(new Image).src=e}catch(e){}}}function lkqd_tracking_pixel_prep(e,t){if(e){try{"https:"!=wlp&&"https:"!=wlp_pixel||0==e.toLowerCase().indexOf("http://")&&(e="https://"+e.substring(7))}catch(e){}var i=getParameterByName("ev",e);getParameterByName("pid",e);getParameterByName("cs",e)&&(e=e.replace("&cs="+getParameterByName("cs",e),"")),0<e.toLowerCase().indexOf("&vrs=")&&(e=e.replace("&vrs="+getParameterByName("vrs",e),"&vrs="+version)),getParameterByName("cb",e)?(new Date).getTime():e+="&cb="+Math.round((new Date).getTime()/2).toString(),e+="&rnd="+Math.round(1e9*Math.random()),t||(e+="&cs="+crc32(e));var n=getParameterByName("sid",e);n=n||0;var a=getParameterByName("adid",e);a=a||0;var r=getParameterByName("render",e),o=i+"-"+n+"-"+a+"-"+(r=r||"html5");i&&1==i&&(o=i+"-"+n);0<=["173","179","178","177","187","9833","175","209","254","21","265"].indexOf(i)||pixels_fired.indexOf(o)<0?pixels_fired.push(o):e=""}return e}function batch_and_fire_pixels(e){if(e&&0<e.length){var t;"withCredentials"in new XMLHttpRequest&&(t={queryStrings:[]});for(var i=0;i<e.length;i++)if(0<e[i].indexOf("t.lkqd.net")&&e[i].indexOf("t.lkqd.net")<=10)if(t){var n=lkqd_tracking_pixel_prep(e[i],!1);n&&(n=n.substring(n.indexOf("?")+1),t.queryStrings.push(n))}else!function(e){setTimeout(function(){pixel_fire(e)},0)}(e[i]);else!function(e){setTimeout(function(){pixel_fire(e)},0)}(e[i]);if(t&&t.queryStrings&&0<t.queryStrings.length&&0==mlwscan){var a,r=wlp_pixel+"//t.lkqd.net/t";try{a=new xhrTrackingWindow.contentWindow.XMLHttpRequest}catch(e){offsetPixelBatchEnabled=!1,create_and_fire_pixels(272)}if(a)try{a.open("POST",r,!0),a.withCredentials=!0,a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(t))}catch(e){}}}}function offsetPixelBatch(){offsetPixelBatchEnabled&&offsetPixelBatchQueue&&0<offsetPixelBatchQueue.length&&(batch_and_fire_pixels(offsetPixelBatchQueue),offsetPixelBatchQueue.length=0)}function lkqdinitAd(e,t,i,n,a,r){if(!pubVPAIDCalls.initAd){if(debug("VPAID.JS","received::initAd:: width:"+e+" height:"+t+" viewMode:"+i+" desiredBitrate:"+n+" creativeData:"+a+" environmentVars:"+r),pubVPAIDCalls.initAd=(new Date).getTime(),instance_id=instance_id||(new Date).getTime().toString()+Math.round(1e9*Math.random()).toString(),setTimeout(function(){pubVPAIDCalls.startAd&&pubVPAIDEvents.indexOf("AdImpression")<0&&pubVPAIDEvents.indexOf("AdStopped")<0&&lkqdstopAd()},42500),e&&t){try{if("string"==typeof e&&"string"==typeof t&&("100%"!=e||"100%"!=t)){var o=parseInt(e),d=parseInt(t);o&&d&&!isNaN(o)&&!isNaN(d)&&0<o&&0<d&&(t=100==o&&100==d?e="100%":(e=o,d))}}catch(e){}if("number"==typeof e&&"number"==typeof t){if(!is_mobile&&screen&&(e>screen.width||t>screen.height)&&r&&r.slot)if(r.slot.clientWidth>screen.width||r.slot.clientHeight>screen.height){var s,l;try{s=r.slot.ownerDocument.defaultView.innerWidth,l=r.slot.ownerDocument.defaultView.innerHeight}catch(e){}s&&l&&(e>screen.width&&(e=s),t>screen.height&&(t=l))}else e>screen.width&&(e=r.slot.clientWidth),t>screen.height&&(t=r.slot.clientHeight);playerWidth=Math.round(e),playerHeight=Math.round(t),playerWidthInitial=5*Math.round(e/5),playerHeightInitial=5*Math.round(t/5)}else if("string"==typeof e&&"string"==typeof t&&"100%"==e&&"100%"==t&&r&&r.slot)try{r.lkqdSettings&&r.lkqdSettings.resizeTarget?(playerWidth=element_dimensions(r.lkqdSettings.resizeTarget)[0],playerHeight=element_dimensions(r.lkqdSettings.resizeTarget)[1],MutationObserver&&(elementResizeHandler=function(e){try{if("style"==e[0].attributeName&&lkqdPlayerSettings.resizeTarget&&lkqdPlayerSettings.resizeTarget){var t=element_dimensions(lkqdPlayerSettings.resizeTarget);lkqdresizeAd(t[0],t[1],"normal")}}catch(e){}},(resizeObserver=new MutationObserver(elementResizeHandler)).observe(r.lkqdSettings.resizeTarget,resizeObserverConfig),pageResizeHandler=function(e){try{if(lkqdPlayerSettings.resizeTarget&&lkqdPlayerSettings.resizeTarget){var t=element_dimensions(lkqdPlayerSettings.resizeTarget);lkqdresizeAd(t[0],t[1],"normal")}}catch(e){}},window.parent.addEventListener("resize",pageResizeHandler))):(playerWidth=window_dimensions(window.parent)[0],playerHeight=window_dimensions(window.parent)[1],pageResizeHandler=function(e){try{var t=window_dimensions(window.parent);lkqdresizeAd(t[0],t[1],"normal")}catch(e){}},window.parent.addEventListener("resize",pageResizeHandler)),playerWidthInitial=5*Math.round(playerWidth/5),playerHeightInitial=5*Math.round(playerHeight/5)}catch(e){}}if(playerOffsetY=playerOffsetX=0,r){try{playerContainer=r.slot}catch(e){}try{player=r.videoSlot}catch(e){}try{isNumber(playerOffsetX=r.offsetx)||(playerOffsetX=0)}catch(e){}try{isNumber(playerOffsetY=r.offsety)||(playerOffsetY=0)}catch(e){}if(null!=r.lkqdSettings&&null!=r.lkqdSettings.pid&&(lkqdPlayerSettings=r.lkqdSettings),null!=r.lkqdExecution&&(lkqdExecution=r.lkqdExecution),null!=r.lkqdPlacement&&(lkqdPlacement=r.lkqdPlacement),null!=r.maxOpps&&(maxOpps=r.maxOpps),null!=r.controls&&(controls=r.controls),null!=r.pubSupport&&(pubSupport=r.pubSupport),null!=r.lkqdPlayer&&(lkqdPlayer=r.lkqdPlayer),r.formatVersion&&(lkqdFormatVersion=r.formatVersion),null!=r.dfp&&(dfpAdX=r.dfp),r.blockedTags&&null!=r.blockedTags)try{if(r.blockedTags=decodeURIComponent(r.blockedTags),r.blockedTags=r.blockedTags.split(","),1<=r.blockedTags.length)for(var c=0;c<r.blockedTags.length;c++)adservers_blocked.push(r.blockedTags[c])}catch(e){}if(lkqdExecution&&lkqdPlacement&&"interstitial"==lkqdExecution&&"vertical"==lkqdPlacement&&(verticalVideo=!0),1==dfpAdX||1==dfpSuppressError){if(topWindowWithAccess&&topWindowWithAccess.lkqd)try{topWindowWithAccess.lkqd.dfp=!0}catch(e){}}else if(topWindowWithAccess&&topWindowWithAccess.lkqd)try{topWindowWithAccess.lkqd.dfp&&(dfpAdX=!0)}catch(e){}playerOffsetX&&playerOffsetX<0&&(playerOffsetX=0),playerOffsetY&&playerOffsetY<0&&(playerOffsetY=0),lkqdPlayerSettings&&lkqdPlayerSettings.headerBiddingTimeout&&100<lkqdPlayerSettings.headerBiddingTimeout&&(headerBiddingTimeout=lkqdPlayerSettings.headerBiddingTimeout)}if(!playerWidth||0==playerWidth||!playerHeight||0==playerHeight){if(player)try{playerWidth=element_dimensions(player)[0],playerHeight=element_dimensions(player)[1],playerWidthInitial=5*Math.round(playerWidth/5),playerHeightInitial=5*Math.round(playerHeight/5)}catch(e){}if((!playerWidth||0==playerWidth||!playerHeight||0==playerHeight)&&playerContainer)try{playerWidth=element_dimensions(playerContainer)[0],playerHeight=element_dimensions(playerContainer)[1],playerWidthInitial=5*Math.round(playerWidth/5),playerHeightInitial=5*Math.round(playerHeight/5)}catch(e){}playerContainer&&window!=top&&window.location.href&&0<=window.location.href.indexOf("google")&&playerContainer.ownerDocument&&(playerWidthInitial=e&&0<e?(playerWidth=e,5*Math.round(playerWidth/5)):(playerWidth=800,0),playerHeightInitial=t&&0<t?(playerHeight=t,5*Math.round(playerHeight/5)):(playerHeight=600,0),adResizeOnImpression=!0,adResizeOnImpressionWindow=playerContainer.ownerDocument.defaultView||playerContainer.ownerDocument.parentWindow)}if(a&&a.AdParameters&&playerWidth&&0<playerWidth&&playerHeight&&0<playerHeight&&0==betaEnabledC){var p;try{p=inflate(a.AdParameters)}catch(e){}if(p)try{adserver_json=JSON.parse(p)}catch(e){}if(adserver_json&&adserver_json.site&&adserver_json.site.pixelbase){if(adserver_json.site.domain||(adserver_json.site.domain=""),(pixel_base_url=adserver_json.site.pixelbase)&&adserver_json.pixels)try{for(var u=0;u<adserver_json.pixels.length;u++)if(183==adserver_json.pixels[u].eventId){pixel_base_url_toplevel_supply=adserver_json.pixels[u].pixelUrls[0].replace("${BASE_URL}","");break}}catch(e){}if(pixel_base_url&&0==pixel_base_url.indexOf("https")&&(wlp=wlp_pixel="https:"),pid=adserver_json.site.pid,sid=adserver_json.site.sid,spid=adserver_json.site.spid,adResizeOnImpression&&adResizeOnImpressionWindow&&adserver_json.site.sspUrl){if(getParameterByName("width",adserver_json.site.sspUrl))try{playerWidthInitial=parseInt(getParameterByName("width",adserver_json.site.sspUrl))}catch(e){}if(getParameterByName("height",adserver_json.site.sspUrl))try{playerHeightInitial=parseInt(getParameterByName("height",adserver_json.site.sspUrl))}catch(e){}}74==pid?vpaidDesktopWhitelist.push("anyclip.com"):456==pid?vpaidDesktopWhitelist.push("connatix.com"):121==pid&&adserver_json.site.envid&&2==adserver_json.site.envid?vpaidMobileWhitelist.push("springserve.com"):284==pid&&(vpaidPremiumExchangeDesktop.push("bfmio.com"),vpaidPremiumExchangeMobile.push("bfmio.com")),(!lkqdExecution&&!lkqdPlayer&&getParameterByName("formats",adserver_json.site.sspUrl)&&"true"==getParameterByName("formats",adserver_json.site.sspUrl)||adserver_json.site.envid&&2==adserver_json.site.envid&&0==is_mobile&&98!=pid)&&(betaEnabledC=betaEnabledB=!0),adserver_json.site.envid&&4==adserver_json.site.envid&&(betaEnabledC=!0);var m=getPageInfo();if(m.ancestor_origin_support||m.iframe_cnt<=1){var g=m.top_hostname;if(0<=g.toLowerCase().indexOf("google")&&g.toLowerCase().indexOf("developers")<0&&(g.length<=18||0==is_mobile||2!=adserver_json.site.envid))create_and_fire_pixels(234),betaEnabledC=!0;else if(g&&vpaidDisabled)for(var v=0;v<vpaidDisabled.length;v++)if(0<=g.toLowerCase().indexOf(vpaidDisabled[v])){create_and_fire_pixels(234),betaEnabledC=!0;break}}if(lkqdExecution||(getParameterByName("vpaidmode",adserver_json.site.sspUrl)&&"progressive"==getParameterByName("vpaidmode",adserver_json.site.sspUrl)?adLoadedDelay=!1:getParameterByName("dfp",adserver_json.site.sspUrl)&&"true"==getParameterByName("dfp",adserver_json.site.sspUrl)?(dfpSuppressError=!(adLoadedDelay=!1),getParameterByName("s901",adserver_json.site.sspUrl)&&"true"==getParameterByName("s901",adserver_json.site.sspUrl)&&(adLoadedDelay=dfpSuppress901=!0)):adLoadedDelay=!(!getParameterByName("vpaidmode",adserver_json.site.sspUrl)||"traditional"!=getParameterByName("vpaidmode",adserver_json.site.sspUrl))||(!(!getParameterByName("spotx",adserver_json.site.sspUrl)||"true"!=getParameterByName("spotx",adserver_json.site.sspUrl))||410!=pid),adLoadedDelay||464==pid||449==pid||488==pid||setTimeout(function(){if(!pubVPAIDCalls.startAd&&pubVPAIDEvents.indexOf("AdStopped")<0&&!betaEnabled&&!betaEnabledB&&!betaEnabledC){try{(new Image).src="https://t.lkqd.net/t?ev=250&pid="+(pid||0)+"&sid="+(sid||0)+"&cb="+Math.round((new Date).getTime()/2).toString()}catch(e){}lkqdstopAd()}},12500)),(getParameterByName("disableclick",adserver_json.site.sspUrl)||lkqdPlayerSettings&&lkqdPlayerSettings.disableClick)&&(disableClick=!0),getParameterByName("targetmf",adserver_json.site.sspUrl)&&(targetMediaFile=decodeURIComponent(getParameterByName("targetmf",adserver_json.site.sspUrl))),0==playerWidthInitial&&getParameterByName("width",adserver_json.site.sspUrl))try{playerWidthInitial=5*Math.round(getParameterByName("width",adserver_json.site.sspUrl)/5)}catch(e){}if(0==playerHeightInitial&&getParameterByName("height",adserver_json.site.sspUrl))try{playerHeightInitial=5*Math.round(getParameterByName("height",adserver_json.site.sspUrl)/5)}catch(e){}(50==playerHeight||90==playerHeight||160==playerWidth&&600==playerHeight)&&(betaEnabledB=!0),vpaidPremiumExchange=adserver_json.site.envid&&3==adserver_json.site.envid?vpaidPremiumExchangeDesktop:vpaidPremiumExchangeMobile,(0<=user_agent.indexOf("msie")||adserver_json.ipua&&adserver_json.ipua.browser&&adserver_json.ipua.browserversionmajor&&"internet explorer"==adserver_json.ipua.browser.toLowerCase()&&adserver_json.ipua.browserversionmajor<10)&&(null!=lkqdExecution||(betaEnabledB=!0)),267!=pid&&333!=pid&&adserver_json.ipua&&adserver_json.ipua.isp&&null!=adserver_json.ipua.isp&&0<=adserver_json.ipua.isp.toLowerCase().indexOf("google")&&adserver_json.ipua.isp.toLowerCase().indexOf("fiber")<0&&(create_and_fire_pixels(234),betaEnabledB=betaEnabledC=!0);var f=0;if(0==betaEnabledB&&topWindowWithAccess&&topWindowWithAccess.lkqd){try{if(topWindowWithAccess.lkqd.instances){topWindowWithAccess.lkqd.instances.push({id:instance_id,init:(new Date).getTime()});for(var h=0;h<topWindowWithAccess.lkqd.instances.length;h++)!topWindowWithAccess.lkqd.instances[h].stop&&(new Date).getTime()-topWindowWithAccess.lkqd.instances[h].init<5e3&&++f}else topWindowWithAccess.lkqd.instances=[],topWindowWithAccess.lkqd.instances.push({id:instance_id,init:(new Date).getTime()}),f=1}catch(e){}lkqdExecution||((playerWidth<180||playerHeight<100||300==playerWidth&&250==playerHeight)&&2<=f||1==adserver_json.site.envid&&3<=f||2==adserver_json.site.envid&&4<=f||3==adserver_json.site.envid&&3<=f)&&(betaEnabledB=!0)}if(lkqdPlayerSettings&&lkqdPlayerSettings.supportMode&&"strict"==lkqdPlayerSettings.supportMode&&(pubSupportMode="strict",topWindowWithAccess&&topWindowWithAccess.lkqd))try{topWindowWithAccess.lkqd.pubSupportMode="strict"}catch(e){}if(getParameterByName("supportmode",adserver_json.site.sspUrl)&&"strict"==getParameterByName("supportmode",adserver_json.site.sspUrl)&&(pubSupportMode="strict",topWindowWithAccess&&topWindowWithAccess.lkqd))try{topWindowWithAccess.lkqd.pubSupportMode="strict"}catch(e){}if(adserver_json.site.strictMode&&1==adserver_json.site.strictMode&&(pubSupportMode="strict",topWindowWithAccess&&topWindowWithAccess.lkqd))try{topWindowWithAccess.lkqd.pubSupportMode="strict"}catch(e){}if(!pubSupportMode&&topWindowWithAccess&&topWindowWithAccess.lkqd)try{topWindowWithAccess.lkqd.pubSupportMode&&"strict"==topWindowWithAccess.lkqd.pubSupportMode&&(pubSupportMode="strict")}catch(e){}if(getParameterByName("controls",adserver_json.site.sspUrl)&&"true"==getParameterByName("controls",adserver_json.site.sspUrl)?controls=!0:getParameterByName("controls",adserver_json.site.sspUrl)&&"false"==getParameterByName("controls",adserver_json.site.sspUrl)&&(disableControls=!0),create_and_fire_pixels(162,"&vpaidcnt="+f),null!=adserver_json.site.volume&&(volume=adserver_json.site.volume/100),(getParameterByName("clientsidedebug",adserver_json.site.sspUrl)&&"true"==getParameterByName("clientsidedebug",adserver_json.site.sspUrl)||lkqdPlayerSettings&&lkqdPlayerSettings.clientSideDebug)&&(adserver_json.site.clientSideDebug=!0),adserver_json.sync&&0==dfpAdX&&0==dfpSuppressError&&0==dntSetting())for(c=0;c<adserver_json.sync.length;c++)pixel_fire(adserver_json.sync[c]);if(adserver_json.site.slots&&(6<(max_slots=adserver_json.site.slots)&&(max_slots=6),is_mobile&&4<max_slots&&(max_slots=4),window.parent))try{var _=160<window.parent.outerWidth-window.parent.innerWidth,A=160<window.parent.outerHeight-window.parent.innerHeight;window.parent==window.top&&(0<=user_agent.indexOf("chrome")||0<=user_agent.indexOf("firefox")||0<=user_agent.indexOf("safari"))&&(_||A)&&(max_slots=1)}catch(e){}if(null!=lkqdExecution&&max_slots<5&&topWindowWithAccess&&topWindowWithAccess.lkqd)try{topWindowWithAccess.lkqd.maxSlots=max_slots}catch(e){}if(topWindowWithAccess&&topWindowWithAccess.lkqd)try{topWindowWithAccess.lkqd.maxSlots&&topWindowWithAccess.lkqd.maxSlots<max_slots&&(max_slots=topWindowWithAccess.lkqd.maxSlots)}catch(e){}if(("strict"==pubSupportMode||0<=user_agent.indexOf("trident")||0<=user_agent.indexOf("msie"))&&3<max_slots&&(max_slots=3),1!=betaEnabledB&&0==betaEnabledB&&0==betaEnabledC)if(player||playerContainer){var y=!0;if(!player||player.tagName&&"video"==player.tagName.toLowerCase()||!playerContainer){if(player)try{player.element&&player.element.tagName&&"video"==player.element.tagName.toLowerCase()&&(player=player.element)}catch(e){}}else player="";try{!lkqdExecution&&player&&player.getAttribute("id")&&0==player.getAttribute("id").indexOf("lkqdad")&&(max_slots=1)}catch(e){}try{!lkqdExecution&&playerContainer&&playerContainer.getAttribute("id")&&0==playerContainer.getAttribute("id").indexOf("lkqdad")&&(max_slots=1)}catch(e){}if(getParameterByName("spotx",adserver_json.site.sspUrl)&&"true"==getParameterByName("spotx",adserver_json.site.sspUrl)&&(max_slots=1,preserve_slots=!0),playerContainer&&player&&player.tagName&&"video"==player.tagName.toLowerCase()&&(adserver_json.site.playinit&&"user"==adserver_json.site.playinit||1==max_slots||adserver_json.site&&adserver_json.site.sspUrl&&("true"==getParameterByName("hapticplayer",adserver_json.site.sspUrl)||"svpaid"==getParameterByName("output",adserver_json.site.sspUrl)||"TRUE"==getParameterByName("hapticplayer",adserver_json.site.sspUrl)||"true"==getParameterByName("useslot",adserver_json.site.sspUrl)))&&(preserve_slots=!0,(max_slots=1)==is_mobile&&adserver_json.site.playinit&&"auto"==adserver_json.site.playinit&&0<volume&&(volume=0)),0==preserve_slots&&1==is_mobile&&adserver_json.site.playinit&&"user"==adserver_json.site.playinit&&(max_slots=1),getParameterByName("forcerender",adserver_json.site.sspUrl)&&"html5"==getParameterByName("forcerender",adserver_json.site.sspUrl)||lkqdPlayerSettings&&lkqdPlayerSettings.forceRender&&"html5"==lkqdPlayerSettings.forceRender?is_mobile&&(mobile_video_autoplay=!0):is_mobile&&0==preserve_slots&&(mobile_video_autoplay=!0),1==preserve_slots)lkqdContainer=playerContainer;else{var w,k;if(player){try{k=Number(element_style(player,"z-index"))}catch(e){k=""}w=k&&isNumber(k)?k+1:1}lkqdContainer=document.createElement("div");var b=(new Date).getTime().toString()+Math.round(1e9*Math.random()).toString();if(lkqdContainer.id=b,w&&(lkqdContainer.style.zIndex=w),lkqdContainer.style.backgroundColor=null!=lkqdExecution&&"interstitial"==lkqdExecution&&lkqdPlacement&&"overlay"==lkqdPlacement?"rgba(0, 0, 0, 0.35)":"#000000",lkqdContainer.style.width=playerWidth+"px",lkqdContainer.style.height=playerHeight+"px",lkqdContainer.style.overflow="hidden",lkqdContainer.style.margin="0",lkqdContainer.style.padding="0",lkqdContainer.style.lineHeight="0px",lkqdContainer.style.verticalAlign="top",lkqdContainer.style.border="0",lkqdContainer.style.fontSize="0px",lkqdContainer.style.position="relative",lkqdContainer.style.left="0px",lkqdContainer.style.top="0px",lkqdContainer.style.textAlign="center",lkqdContainer.style.display="table-cell",lkqdContainer.style.backgroundImage='url("'+loading_icon+'")',lkqdContainer.style.backgroundSize="40px auto",lkqdContainer.style.backgroundPosition="center",lkqdContainer.style.backgroundRepeat="no-repeat",centerAlign&&(lkqdContainer.style.top="35px",lkqdContainer.style.left="-10px"),player&&294!=pid){var x=player.parentNode;if(x.childNodes.length<=1)x.appendChild(lkqdContainer);else for(c=0;c<x.childNodes.length;c++)x.childNodes[c]==player&&(c==x.childNodes.length-1?x.appendChild(lkqdContainer):x.insertBefore(lkqdContainer,x.childNodes[c+1]));y=set_container_placement(player),0==preserve_slots&&player.parentNode&&playerContainer&&player.parentNode==playerContainer&&0==element_position(player)[0]&&0==element_position(player)[1]&&0==element_position(lkqdContainer)[0]&&0==element_position(lkqdContainer)[1]&&399==pid&&(lkqdContainer.style.position="absolute")}else playerContainer.childNodes&&0<playerContainer.childNodes.length?playerContainer.insertBefore(lkqdContainer,playerContainer.childNodes[0]):playerContainer.appendChild(lkqdContainer);lkqdContainer.ownerDocument.getElementById(b)||(y=!1)}if(1==y){try{var C=lkqdContainer.ownerDocument;if(C){var I=C.defaultView||C.parentWindow;lkqdContainerWindow=I}}catch(e){}if(!adserver_json.site.sspUrl||0!=adserver_json.site.sspUrl.indexOf("http://")&&0!=adserver_json.site.sspUrl.indexOf("https://")?(sspUrlFinal=adserver_json.site.sspUrl,prepare_adserver_json()):lkqdAdRequest(adserver_json.site.sspUrl,0),0==preserve_slots&&!lkqdExecution){var q;if(window.parent)try{if(window.parent.window.frames)for(var T=0;T<window.parent.window.frames.length;T++)window.parent.window.frames[T]==window&&(q=window.parent.window.frames[T])}catch(e){}if(q&&lkqdContainer)try{if(!window.parent.adCleanUpHelper){var E=window.parent.document.createElement("script");E.text="function adCleanUpHelper(p,w){ var cleanUpCheck = setInterval(function(){ try { if (p && (!w || !w.HTML5Alive() || !w.frameElement)){ clearInterval(cleanUpCheck); try { p.parentNode.removeChild(p); } catch (f) {} } else { } } catch (e) { clearInterval(cleanUpCheck); } }, 1000); }",window.parent.document.documentElement.appendChild(E)}window.parent.adCleanUpHelper(lkqdContainer,q)}catch(e){}}}else debug("Error","Player or Player Container not set Accurately"),create_and_fire_pixels(161),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd()}else debug("Error","Player or Player Container not Defined"),create_and_fire_pixels(161),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd()}else debug("Error","AdParameters not Valid"),pixel_fire(wlp+"//t.lkqd.net/t?ev=165&pid="+pid+"&sid="+sid+"&vrs="+version),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd()}else debug("Error","AdParameters or Width/Height Not Available on initAd or BC"),betaEnabledC||pixel_fire(wlp+"//t.lkqd.net/t?ev=166&pid="+pid+"&sid="+sid+"&vrs="+version),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd()}}function lkqdstartAd(){if(!pubVPAIDCalls.startAd)if(debug("VPAID.JS","received::startAd"),pubVPAIDCalls.startAd=(new Date).getTime(),lkqdContainer&&0==betaEnabledB&&0==betaEnabledC){if(!adLoadedDelay&&!svpaidAd){var e=!1;if(adserver_json&&adserver_json.adgroups&&0<adserver_json.adgroups.length)for(var t=0;t<adserver_json.adgroups.length;t++)if(adserver_json.adgroups[t].ads&&0<adserver_json.adgroups[t].ads.length){e=!0;break}(e||adserver_json.site.maderequest)&&find_and_fire_pixels(1),publisher_event_notify(e?"AdOpportunity":"AdNonOpportunity")}batch_and_fire_pixels(lkqdPixelQueue),lkqdPixelQueue.length=0;var i=2e4;if(adserver_json.site&&null!=adserver_json.site.scsrt?(i=adserver_json.site.scsrt)<5e3?i=5e3:25e3<i&&(i=25e3):null==lkqdExecution||!adserver_json.site.pid||267!=adserver_json.site.pid&&333!=adserver_json.site.pid?lkqdExecution&&"inbanner"==lkqdExecution&&(1==is_mobile?5<=maxOpps&&(i=8750):5<maxOpps?i=12850:3<=maxOpps&&(i=17e3)):i=18500,1==mlwscan&&(i=6e5),preserve_slots&&player&&null!=lkqdExecution)try{player.currentTime&&2<player.currentTime&&(player.pause(),playerMidRollTime=player.currentTime)}catch(e){}adselection_start_time=(new Date).getTime(),adselection_timeout=setTimeout(function(){adselection_controller(!0)},i),setTimeout(adselection_controller,0)}else 0==betaEnabledB&&0==betaEnabledC?(debug("Error","Missing Container or StartAd called too early"),create_and_fire_pixels(163),setTimeout(function(){publisher_event_notify("AdLoadFailure")},450),lkqdstopAd()):setTimeout(lkqdstopAd,3e4)}function lkqdpauseAd(){if(debug("VPAID.JS","received::pauseAd"),winning_ad){playState="paused",threeSecondTimer&&threeSecondTimer.pause();try{clearTimeout(first_quartile_timer)}catch(e){}first_quartile_timer="";try{winning_ad.vpaid.pauseAd()}catch(e){}null!=lkqdControls&&usePlaybackControls&&togglePlaybackControls(!0)}}function lkqdresumeAd(){if(debug("VPAID.JS","received::resumeAd"),winning_ad){playState="playing",threeSecondTimer&&threeSecondTimer.resume();try{winning_ad.vpaid.resumeAd()}catch(e){}null!=lkqdControls&&usePlaybackControls&&togglePlaybackControls(!1)}}function lkqdskipAd(){if(debug("VPAID.JS","received::skipAd"),winning_ad)try{winning_ad.vpaid.stopAd()}catch(e){}create_and_fire_pixels(70),setTimeout(function(){publisher_event_notify("AdSkipped")},150),lkqdstopAd()}function lkqdadDuration(){var e=-2;if(winning_ad)try{e=Math.round(winning_ad.durationMs/1e3)}catch(e){}return e}function lkqdadRemainingTime(){var e=-2;if(winning_ad)try{e=winning_ad.vpaid.adRemainingTime()}catch(e){}return e}function lkqdresizeAd(e,t,i){if(debug("VPAID.JS","received::resizeAd: width:"+e+" height:"+t+" viewMode:"+i),i)if("fullscreen"!=i.toLowerCase()){if(playerWidth=e,playerHeight=t,0==preserve_slots&&lkqdContainer&&(lkqdContainer.style.width=playerWidth+"px",lkqdContainer.style.height=playerHeight+"px"),winning_ad)if(0==preserve_slots){if(winning_ad.dom&&(winning_ad.dom.setAttribute("width",playerWidth),lkqdContainer.style.width=playerWidth+"px",winning_ad.dom.setAttribute("height",playerHeight),lkqdContainer.style.height=playerHeight+"px"),winning_ad.domdiv&&(lkqdPlayerSettings&&lkqdPlayerSettings.playerWidth&&"100%"==lkqdPlayerSettings.playerWidth&&lkqdPlayerSettings.playerHeight&&"100%"==lkqdPlayerSettings.playerHeight?winning_ad.domdiv.setAttribute("style","height: 100% !important; width: 100% !important; overflow:hidden !important; text-align:left;"):winning_ad.domdiv.setAttribute("style","height: "+playerHeight+"px !important; width: "+playerWidth+"px !important; position: inherit; top: inherit; overflow:hidden !important; text-align:left;")),winning_ad.domdivimg&&winning_ad.domimg){if(lkqdPlayerSettings&&lkqdPlayerSettings.playerWidth&&"100%"==lkqdPlayerSettings.playerWidth&&lkqdPlayerSettings.playerHeight&&"100%"==lkqdPlayerSettings.playerHeight)winning_ad.domdivimg.style.width="100%",winning_ad.domdivimg.style.height="100%",winning_ad.domimg.style.width="100%",winning_ad.domimg.style.height="100%";else{winning_ad.domdivimg.style.width=playerWidth+"px",winning_ad.domdivimg.style.height=playerHeight+"px",winning_ad.domimg.style.width=playerWidth+"px";try{winning_ad.domimg.style.height=Math.round(playerWidth/winning_ad.aspectRatio)+"px"}catch(e){winning_ad.domimg.style.height=playerHeight+"px"}}lkqdExecution&&"inbanner"!=lkqdExecution&&(lkqdContainer.style.background="")}if(player&&367==pid)set_container_placement(player);try{winning_ad.vpaid.resizeAd(playerWidth,playerHeight,i)}catch(e){}}else if(1==preserve_slots)try{winning_ad.vpaid.resizeAd(playerWidth,playerHeight,i)}catch(e){}}else if(333==pid)publisher_event_notify("AdSizeRequestFullScreen");else{try{winning_ad.vpaid.resizeAd(playerWidth,playerHeight,i)}catch(e){}"vpaid"==winning_ad.type&&winning_ad.dom&&videoMediaFile(winning_ad)&&(document.isFullscreen,document.isFullscreen=function(){return document.webkitIsFullscreen||document.mozFullScreen||void 0!==document.msFullscreenElement},setTimeout(function(){try{winning_ad&&winning_ad.dom&&(document.isFullscreen()||(winning_ad.dom.webkitEnterFullscreen?winning_ad.dom.webkitEnterFullscreen():winning_ad.dom.enterFullScreen?winning_ad.dom.enterFullScreen():winning_ad.dom.requestFullScreen?winning_ad.dom.requestFullScreen():winning_ad.dom.msRequestFullscreen?winning_ad.dom.msRequestFullscreen():winning_ad.dom.mozRequestFullScreen?winning_ad.dom.mozRequestFullScreen():winning_ad.dom.webkitRequestFullScreen&&winning_ad.dom.webkitRequestFullScreen()))}catch(e){}},500))}}function lkqdadVolume(){if(debug("VPAID.JS","received::adVolume: volume:"+volume),winning_ad&&(0==mobile_video_autoplay||adserver_json.site.playinit&&"user"==adserver_json.site.playinit)){try{winning_ad.vpaid.setAdVolume(volume)}catch(e){}try{winning_ad.vpaid.adVolume(volume)}catch(e){}setTimeout(function(){try{winning_ad&&winning_ad.dom&&winning_ad.dom.volume!=volume&&(winning_ad.dom.volume=volume,winning_ad.dom.muted=0==volume)}catch(e){}},100),"html5"==winning_ad.support&&winning_ad.dom&&(0==is_mobile||adserver_json.site.playinit&&"user"==adserver_json.site.playinit)&&(winning_ad.dom.muted=!(0<volume))}}function updateAdAudible(){if(winning_ad&&winning_ad.dom){try{winning_ad.dom.removeEventListener("timeupdate",updateAdAudible,!1)}catch(e){}if(!ad_audible&&0<winning_ad.dom.volume&&!winning_ad.dom.muted){ad_audible=!0,create_and_fire_pixels(275,winning_ad);try{winning_ad.dom.removeEventListener("volumechange",updateAdAudible,!1)}catch(e){}}}}function playerLoadedData(){if(player&&3<=player.readyState)try{player.removeEventListener("loadeddata",playerLoadedData,!1),player.currentTime=playerMidRollTime,playerMidRollTime=0,player.play()}catch(e){}}function playerLoadedMetadata(e){var t=e.target;if(t)if(window.Promise){var i=t.play();void 0!==i&&i.then(function(){}).catch(function(e){t.muted=!0,t.volume=0,mobile_video_autoplay=!(volume=0),enableAudioControls(),t.play()})}else t.play()}function lkqdstopAd(e){if(adselection_complete=!0,adserver_json&&adserver_json.adgroups)try{for(var t=0;t<adserver_json.adgroups.length;t++)for(var i=0;i<adserver_json.adgroups[t].ads.length;i++)508889==adserver_json.adgroups[t].ads[i].adDealId&&adserver_json.adgroups[t].ads[i].xhr&&adserver_json.adgroups[t].ads[i].xhr.tagResponse&&(adserver_json.adgroups[t].ads[i].mediaFiles||create_and_fire_pixels(21,"&final=true&adid="+adserver_json.adgroups[t].ads[i].adTagId+"&response="+encodeURIComponent(adserver_json.adgroups[t].ads[i].xhr.tagResponse)))}catch(e){}try{clearTimeout(adselection_timeout)}catch(e){}adselection_timeout="";try{clearTimeout(viewable_timer)}catch(e){}viewable_timer="";try{clearInterval(viewability_fps_timer)}catch(e){}viewability_fps_timer="";try{clearInterval(viewability_timer)}catch(e){}viewability_timer="";try{clearTimeout(first_quartile_timer)}catch(e){}first_quartile_timer="";try{clearTimeout(durmaxInterval)}catch(e){}if(durmaxInterval="",offsetPixelBatchEnabled){offsetPixelBatchEnabled=!1;try{clearInterval(offsetPixelBatchInterval)}catch(e){}offsetPixelBatchInterval="",offsetPixelBatchQueue&&0<offsetPixelBatchQueue.length&&(batch_and_fire_pixels(offsetPixelBatchQueue),offsetPixelBatchQueue.length=0)}try{playerContainer.removeEventListener("click",playerClick,!1),null!=lkqdControls&&(cleanupControls(),lkqdControls=null),winning_ad&&winning_ad.dom&&(winning_ad.dom.removeEventListener("volumechange",volumeChange,!1),winning_ad.dom.removeEventListener("volumechange",updateAdAudible,!1),winning_ad.dom.removeEventListener("timeupdate",updateAdAudible,!1)),intersection_observer&&intersection_observer_target&&intersection_observer.unobserve(intersection_observer_target)}catch(e){}try{player.removeEventListener("click",adClick,!1)}catch(e){}if(adCountDownUpdater){try{clearInterval(adCountDownUpdater)}catch(e){}adCountDownUpdater=""}if(pageResizeHandler)try{resizeObserver&&(resizeObserver.disconnect(),elementResizeHandler=resizeObserver=null),window.parent.removeEventListener("resize",pageResizeHandler),pageResizeHandler=null}catch(e){}try{if(topWindowWithAccess&&topWindowWithAccess.lkqd&&topWindowWithAccess.lkqd.instances)for(var n=0;n<topWindowWithAccess.lkqd.instances.length;n++)topWindowWithAccess.lkqd.instances[n].id&&topWindowWithAccess.lkqd.instances[n].id==instance_id&&(topWindowWithAccess.lkqd.instances[n].stop=(new Date).getTime())}catch(e){}if(preserve_slots&&player&&playerMidRollTime&&0<playerMidRollTime&&lkqdinstance)try{player.removeAttribute("src"),player.addEventListener("loadeddata",playerLoadedData,!0),player.load()}catch(e){}setTimeout(function(){if(cleanupAds(!1),0==preserve_slots&&lkqdContainer)try{lkqdContainer.parentNode.removeChild(lkqdContainer)}catch(e){}if(player&&playerControlsRemoved)try{player.controls=!0}catch(e){}null!=e&&1==e&&(publisher_event_notify("AdUnavailable"),publisher_event_notify("AdError")),pubVPAIDEvents&&0<=pubVPAIDEvents.indexOf("AdStopped")||dfpSuppress901&&!winning_ad||publisher_event_notify("AdStopped"),adserver_json&&(adserver_json.adgroups&&(adserver_json.adgroups=null),adserver_json.publishers&&(adserver_json.publishers=null),adserver_json.verification&&(adserver_json.verification=null),adserver_json.pixels&&(adserver_json.pixels=null));try{pixels_fired.length=0}catch(e){}try{xhrTrackingWindow.parentNode.removeChild(xhrTrackingWindow)}catch(e){}},500),lkqdinstance=null;try{mobile_check=fif_check=null}catch(e){}try{pako=null}catch(e){}}function adselection_controller(e){if(0==adselection_complete&&1==adselection_ready&&1==startad){var t=[],i=0,n=0,a=0,r=0;if(adserver_json.adgroups)for(var o=0;o<adserver_json.adgroups.length;o++)for(var d=0;d<adserver_json.adgroups[o].ads.length;d++)++n,adserver_json.adgroups[o].ads[d].fail?++i:adserver_json.adgroups[o].ads[d].success&&(!adserver_json.adgroups[o].ads[d].linear||1!=adserver_json.adgroups[o].ads[d].linear&&"linear"!=adserver_json.adgroups[o].ads[d].linear?(++i,adserver_json.adgroups[o].ads[d].success=!1,removeAd(adserver_json.adgroups[o].ads[d])):t.push(adserver_json.adgroups[o].ads[d])),adserver_json.adgroups[o].ads[d].timing&&++a,!adserver_json.adgroups[o].ads[d].adTagUrl||adserver_json.adgroups[o].ads[d].xhr&&adserver_json.adgroups[o].ads[d].xhr.processed||++r;if(debug("ASC","count_total: "+n+" count_attempts: "+a+" count_fails: "+i+" count_waiting_xhr: "+r+" success: "+t.length+" final: "+e),1<=t.length&&!winning_ad){if(adselection_complete=!0,1<t.length){winning_ad=t[0];for(d=0;d<t.length;d++){var s="";t[d].videoSelected&&t[d].videoSelected.url&&(s=t[d].videoSelected.url),create_and_fire_pixels(151,"&adid="+t[d].adTagId+"&mfurl="+encodeURIComponent(s))}}else winning_ad=t[0];if(impressionTime=(new Date).getTime(),setupControls(),cleanupAds(!1,winning_ad),winning_ad.pidSidTagIds)try{for(var l=0;l<winning_ad.pidSidTagIds.length;l++)if(6==winning_ad.pidSidTagIds[l][0]){isMP=!0;break}}catch(e){}0==mobile_video_autoplay&&setTimeout(function(){try{winning_ad&&winning_ad.dom&&winning_ad.dom.volume!=volume&&(winning_ad.dom.volume=volume,winning_ad.dom.muted=0==volume)}catch(e){}},1e3),winning_ad.dom.addEventListener("timeupdate",updateAdAudible,!1),winning_ad.dom.addEventListener("volumechange",updateAdAudible,!1),player&&!lkqdExecution&&player.addEventListener("click",adClick,!1);try{winning_ad.adDuration()?winning_ad.durationMs=Math.round(1e3*winning_ad.adDuration()):winning_ad.durationMs=Math.round(1e3*winning_ad.adRemainingTime())}catch(e){}if(checkMaxDuration(),playState="playing",winning_ad.dom){try{winning_ad.dom.scrollIntoView=function(){return!1}}catch(e){}try{Object.defineProperty(winning_ad.dom,"scrollIntoView",{get:function(){}})}catch(e){}}if(winning_ad.domdiv){try{winning_ad.domdiv.scrollIntoView=function(){return!1}}catch(e){}try{Object.defineProperty(winning_ad.domdiv,"scrollIntoView",{get:function(){}})}catch(e){}}if(lkqdContainer){try{lkqdContainer.scrollIntoView=function(){return!1}}catch(e){}try{Object.defineProperty(lkqdContainer,"scrollIntoView",{get:function(){}})}catch(e){}}if(lkqdPlayerSettings&&lkqdPlayerSettings.placement&&("inform-ui"==lkqdPlayerSettings.placement||"inform-inview"==lkqdPlayerSettings.placement||"inform-promo"==lkqdPlayerSettings.placement)){(m=document.createElement("div")).style.position="absolute",m.style.zIndex=1001,m.style.right="0px",m.style.top="0px",m.style.width="80px",m.style.height="17px",m.style.overflow="hidden",m.style.backgroundColor="#ccc";if((g=document.createElement("img")).style.border="0",g.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAQCAYAAACBSfjBAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAWGSURBVFiF7ZhpqJZFFIAft/Rq6RVT617LcsnKBbExyDSjGrBMo5v+kCSxzUlIqUglyFJb1MQ0FyaEClKj7CZWFHly34rGNBMNvabmklxTy1yu69ePOa++vn7pVQgJPH9m3nPmnDlz9u+rksvluAwXD1UutQKXGqwPtYBngTJxZvaF8OZyOar+N2r9r2AQMBb4zPqw0vrQ6UKYq+dDWh+uA1qKM/PPxWx9KAKuF2e+S+FqqFJtgPXAeHHmuNKaAw3T5ysD1odrgDuAr8SZIxfCWwm4UddNQAdgmfVhFjBMnPn1fMz/FoGzgXnWh9bn4R8NLE8+rA8W2AM8DlwNOGC39eEWPTIU+Pp8SuWB9sB7QL2L4D0fHNO1O1AAvAv0BjZZH8ZZH646F/NZBrQ+NCV6AuCFfEzWhxbWh2rAPuCE4hoAc4FScaa1ONNDnGkG/AGsU9adyZ3Wh5bWh5p5ZNewPrTJoAUoIjonOVeYckxWRhutbVl8Y+vDrRl0tWQVZyrEGQc0Bebp+/dbHwbnuwfyR+BIYAVwD9A/6wEN74XESOoArFTScABxpn9G3p3AKN3vBQ6rjDnANutDj5TsfsAOYLb1YYdGNEBHYAZQS88NBcqAL60Py60PTRTf2fqwhZhB260PT6ZkvwSsBuZYH9ZaH9orKRlDEtk9gClAN6AnMQAmWB+2WR/6VMaAjwEfijML9Pu5lBKlQC8V/hqxLtVWck9gUVaYOFMuzgxP3dcYWAs8APwAfK6yLfAB0YH3Kn6u9aG+Pu5hceag9aGEWDoGAPcBtwMzrQ/1gPnAJHGmJdAHmGZ9aGd96AC8DnQBWgFXAl51OpExZIWeqSvOfCHONCSWniZ6j6SjuOrAwc8XpwyURMN0XUuBISl7lAB9xZm14sxiYAzQSGkFwPasATNQBBwSZ0aIM1uA91O0ocBacWayOPObOPOMPu5pYANwXLNhCCDiTKk4sxloDrwC9AVqAD9aH7oDB1TuaOBv3fcDmokzNwBJdCcpnEAFseQk/IgzYzndbO4DvrU+FEOMiH0p5qd0nWt9CETv1tEumMDR1P57oFz35UA78kCq3h0DDqZIDVL7QmBJhvVPoJhomJOqb01gV+pxWzVbmgJHiBE8ApgIfAMsEWc2EpvEYGCj9WEV0DKfrsDdwENEZyf6twXeSL3/TdRu1adOHH9IDxUCPYjeXK9K7wZmEWvCIyrgVMQSvdJY99OAd7LaWB9uAwKxK+8iejiB9CB/DMh2/QJi9FQFDoozf2kUFqTkNwQMUAc4Kc50yaPDtcBCcaau9cGoAVbq/Xv1WJLCRwDEmS3Wh8bAOGJ0Q5wERmn2wIAzB+lxyjhSnJklzswUZwSYAJRYH6oCnwIvWx8KrA+1gbeA+so/FdhrfShLFfXWarx14swe4CZipCWQblBvA3dZHzor7wBifZ2ud9RXHaYDvXRWBVhMdJ4HCqwPLyp/kfXhkKZzM+Cg9eFmcSZw5iiV2CDJrAPKX0p0eF+9o6M488Qp42WYIXbdGZwNY4ip9Kg40xvYBmwmplsZccRAnDlB7MoVwCpNkxVKb6uy9hMH1gTKgHLrQ31x5hNgMrG+rNH9IHFmPXH+KwcaiTOvAh8Bq60P65T2oDjzM3H+HKv8vxC77lJxZhmxM6+2PqwGhhHrIZyeLQ/peljXEtW1mzjTVQ1/FpxKIetDkTizM98hTZtCcWabfpcA+8SZBdaHWuJMReZ8Z6AFsSmEFL4mUEOcOZCRfUScOarf7YiDs4gzvyvuCmLtO5z6VdMVKBZnZmbubgjcD2wVZxZlaJ2ItU+St1ofxhMnjaXEkvUxscH8JM5MymePBHK53OU/E6wPU4CBKVQrcWZDZXgv/5kQYTawhtgoiytrvAT+AfgANtwoAEXuAAAAAElFTkSuQmCC"),m.appendChild(g),m.style.cursor="pointer",m.addEventListener("click",function(){window.open("http://assets.newsinc.com/info/adchoices.html","_blank").focus()},!1),lkqdContainer.appendChild(m),"inform-ui"==lkqdPlayerSettings.placement||"inform-inview"==lkqdPlayerSettings.placement){var c=Math.round(winning_ad.durationMs/1e3);try{winning_ad.dom&&winning_ad.dom.duration&&!isNaN(winning_ad.dom.duration)?c=parseInt(winning_ad.dom.duration):winning_ad.vpaid&&(c=(c=parseInt(winning_ad.vpaid.getAdDuration()))||parseInt(winning_ad.vpaid.getAdRemainingTime()))}catch(e){}if(c&&"number"==typeof c&&!isNaN(c)&&0<c&&c<1e3){var p=document.createElement("div");function u(){try{if(lkqdContainer&&lkqdContainer.domcountdown){var e=!1;if(winning_ad.dom&&(e=winning_ad.dom.paused),"playing"==playState&&!e){var t=Math.floor(c/60),i=Math.floor(c%60);if(c<0&&(p.style.display="none",adCountDownUpdater)){try{clearInterval(adCountDownUpdater)}catch(e){}adCountDownUpdater=""}try{lkqdContainer.domcountdown.innerHTML="AD ("+t+":"+("0"+i).slice(-2)+")"}catch(e){}c--}}}catch(e){}}p.style.backgroundColor="rgba(103, 103, 103, 0.4)",p.style.position="absolute",p.style.zIndex=1001,p.style.borderBottomLeftRadius="4px",p.style.right="80px",p.style.top="0px",p.style.setProperty("color","#fff","important"),p.style.setProperty("font-size","12px","important"),p.style.setProperty("line-height","12px","important"),p.style.setProperty("text-align","left","important"),p.style.setProperty("padding","3px 5px 2px 5px","important"),p.style.setProperty("font-family","'Trebuchet MS', Helvetica, Verdana, Arial","important"),lkqdContainer.appendChild(p),lkqdContainer.domcountdown=p,adCountDownUpdater=setInterval(u,1e3),u()}}}else if(winning_ad.adChoicesIcon){var m,g;(m=document.createElement("div")).style.position="absolute",m.style.zIndex=1001,m.style.left=winning_ad.adChoicesIcon.xPosition+"px",m.style.top=winning_ad.adChoicesIcon.yPosition+"px",m.style.width=winning_ad.adChoicesIcon.width+"px",m.style.height=winning_ad.adChoicesIcon.height+"px",m.style.overflow="hidden",m.style.backgroundColor="#ccc",(g=document.createElement("img")).style.border="0",g.setAttribute("src",winning_ad.adChoicesIcon.imageUrl),g.setAttribute("width",winning_ad.adChoicesIcon.width),g.setAttribute("height",winning_ad.adChoicesIcon.height),m.appendChild(g),g.style.width=winning_ad.adChoicesIcon.width+"px",g.style.height=winning_ad.adChoicesIcon.height+"px",m.style.cursor="pointer",m.addEventListener("click",function(){window.open(winning_ad.adChoicesIcon.clickThroughUrl,"_blank").focus()},!1),lkqdContainer.appendChild(m)}if(null==lkqdExecution||0!=volume&&1!=controls&&1!=mobile_video_autoplay||lkqdPlayerSettings&&lkqdPlayerSettings.controlOptions&&null!=lkqdPlayerSettings.controlOptions.muteUnmute&&0==lkqdPlayerSettings.controlOptions.muteUnmute||enableAudioControls(),1==controls&&(lkqdPlayerSettings&&lkqdPlayerSettings.controlOptions&&null!=lkqdPlayerSettings.controlOptions.pauseResume&&0==lkqdPlayerSettings.controlOptions.pauseResume||enablePlaybackControls(),lkqdPlayerSettings&&lkqdPlayerSettings.controlOptions&&null!=lkqdPlayerSettings.controlOptions.fullscreen&&0==lkqdPlayerSettings.controlOptions.fullscreen||enableFullscreenControls(),lkqdPlayerSettings&&lkqdPlayerSettings.controlOptions&&null!=lkqdPlayerSettings.controlOptions.muteUnmute&&0==lkqdPlayerSettings.controlOptions.muteUnmute||enableAudioControls()),null!=lkqdControls&&applyControlsOptions(),0==preserve_slots&&(winning_ad.domdiv&&winning_ad.domdiv.setAttribute("style","height: "+playerHeight+"px !important; width: "+playerWidth+"px !important; overflow:hidden !important; text-align:left;"),winning_ad.dom&&(winning_ad.dom.style.visibility="visible"),lkqdresizeAd(playerWidth,playerHeight,"normal"),lkqdContainer.style.visibility="visible"),"html5"==winning_ad.support)if(viewability_init(winning_ad),lkqdContainerWindow&&lkqdContainerWindow==window.top)viewability_timer=setInterval(function(){viewability_check(lkqdContainer,playerWidth,playerHeight,lkqdContainerWindow,!0)},250);else if(1==top_access_check()){var v=get_window_top_reference();v?viewability_timer=setInterval(function(){viewability_check(v.frameElement,playerWidth,playerHeight,window.top,!0)},250):intersection_observer_support&&intersection_observer_initiated&&(viewability_timer=setInterval(function(){viewability_check("","","","",!0)},250))}else intersection_observer_support&&intersection_observer_initiated&&(viewability_timer=setInterval(function(){viewability_check("","","","",!0)},250));postImpVerificationLoad(),0==betaEnabled&&(adLoadedDelay&&publisher_event_notify("AdLoaded"),publisher_event_notify("AdAvailable"),pubVPAIDEvents.indexOf("AdStarted")<0&&publisher_event_notify("AdStarted"),publisher_event_notify("AdImpression"),publisher_event_notify("AdVideoStart")),1==adResizeOnImpression&&adResizeOnImpressionWindow&&(setTimeout(function(){0<window_dimensions(adResizeOnImpressionWindow)[0]&&0<window_dimensions(adResizeOnImpressionWindow)[1]&&lkqdresizeAd(window_dimensions(adResizeOnImpressionWindow)[0],window_dimensions(adResizeOnImpressionWindow)[1],"normal")},500),setTimeout(function(){0<window_dimensions(adResizeOnImpressionWindow)[0]&&0<window_dimensions(adResizeOnImpressionWindow)[1]&&lkqdresizeAd(window_dimensions(adResizeOnImpressionWindow)[0],window_dimensions(adResizeOnImpressionWindow)[1],"normal")},1250),setTimeout(function(){0<window_dimensions(adResizeOnImpressionWindow)[0]&&0<window_dimensions(adResizeOnImpressionWindow)[1]&&lkqdresizeAd(window_dimensions(adResizeOnImpressionWindow)[0],window_dimensions(adResizeOnImpressionWindow)[1],"normal")},2e3));var f="";try{"html5"==winning_ad.support&&winning_ad.dom&&winning_ad.dom.getAttribute("src")&&5<winning_ad.dom.getAttribute("src").toString().length&&(f="&mfurl="+encodeURIComponent(winning_ad.dom.getAttribute("src").toString().substring(0,1e3)))}catch(e){}var h="";ebda_epid&&""!=ebda_epid&&ebda_ewp&&""!=ebda_ewp&&(h="&epid="+ebda_epid+"&ewp="+encodeURIComponent(ebda_ewp));var _=[];if("vpaid"==winning_ad.type){find_and_fire_pixels(36,winning_ad,"",_);try{find_and_fire_pixels(154,winning_ad,"&mfurl="+encodeURIComponent(winning_ad.videoSelected.url),_)}catch(e){}}find_and_fire_pixels(15,winning_ad,"",_),find_and_fire_pixels(3,winning_ad,h,_),lkqd_vpaidjs_src&&""!=lkqd_vpaidjs_src||create_and_fire_pixels(277),find_and_fire_pixels(2,winning_ad,f,_),batch_and_fire_pixels(_),find_and_fire_pixels(118);var A=Math.max(3e4,Math.round(winning_ad.durationMs/2));try{(!A||A<2500)&&(A=3e4)}catch(e){A=3e4}if(first_quartile_timer=setTimeout(function(){winning_ad.events.indexOf("AdVideoFirstQuartile")<0&&lkqdstopAd()},A),"true"==getParameterByName("close",adserver_json.site.sspUrl)){var y=7e3;if(getParameterByName("closedelay",adserver_json.site.sspUrl))isNumber(w=parseInt(getParameterByName("closedelay",adserver_json.site.sspUrl)))&&(y=w);setTimeout(function(){if(winning_ad.domdiv){800<playerWidth&&600<playerHeight&&(button_close_height=45);var e=document.createElement("div");e.setAttribute("style","pointer-events:all; cursor:pointer; z-index:10000002; position:absolute; top: "+controlsBarPadding+"px; right: "+controlsBarPadding+"px; height: 28px !important; width: 28px !important; background-color: "+controlButtonBackgroundBlurColor+"; border-radius: "+controlsButtonCornerRadius+'px; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAQBJREFUWAntlgEKwjAMRVfvoJfwFHrxXULxEB6i/owJWwnpTzIHwgrFtUne/8sgOAzHOjqgdKDWepathEJXYF1o3iz+wK/stIke72S80hWxMWNirh3BERa/Fq7xGOtEmpEBZGpXbYqAIjUr0fbgAXpyWx3zzICZHFOkF7QErFiP64prQtqdC+pNbgRfOMuWtcngovxATEb1V1jE5Tk0Na1JSJnZPUneFFvaLWvfTwDBpfj0zbW7n3TFErJim5hhBJickBkP2JNLmYkAIzWqmQwoUzuZSQNACTPChUofGZY1CZ9g3kopb4VNXc21dyQLi19wzv+NJrBb8wjJI+WPOvABrHGlkT5P4ckAAAAASUVORK5CYII="); background-size: auto 24px; background-repeat: no-repeat; background-position: center;'),e.onclick=function(e){try{e.stopPropagation()}catch(e){}lkqdskipAd()},winning_ad.domdiv.appendChild(e)}},y)}if("true"==getParameterByName("skip",adserver_json.site.sspUrl)||winning_ad.skipOffset&&0<winning_ad.skipOffset||winning_ad.videoSelected&&winning_ad.videoSelected.skip){var w,k=7e3;if(getParameterByName("skiptime",adserver_json.site.sspUrl))isNumber(w=parseInt(getParameterByName("skiptime",adserver_json.site.sspUrl)))&&(k=w);else winning_ad.skipOffset&&0<winning_ad.skipOffset&&(k=1e3*winning_ad.skipOffset);var b=document.createElement("div");if(b.onclick=function(e){try{e.stopPropagation()}catch(e){}lkqdskipAd()},b.setAttribute("style","pointer-events:none; cursor:pointer; z-index:10000000; position:absolute; bottom:40px; right:0px; height: 35px !important; line-height: 35px !important; text-align:center; width: 95px !important; background-color:rgba(0, 0, 0, 0.5); border:1px solid #777; color:#FFFFFF; font-size: 16px !important; font-family: 'Trebuchet MS', Helvetica, Verdana, Arial; display:none"),"true"==getParameterByName("skipcountdown",adserver_json.site.sspUrl)){var x=Math.floor(k/1e3),C=k%1e3;0<C?setTimeout(function(){I(b,x)},C):I(b,x)}else setTimeout(function(){q(b)},k);function I(e,t){if(winning_ad.domdiv){if(!winning_ad.skipdiv){winning_ad.domdiv.appendChild(b),winning_ad.skipdiv=b;try{winning_ad.skipdiv.style.display="",winning_ad.skipdiv.style.width="260px"}catch(e){}}if(0<t){var i="";1<t&&(i="s"),e.innerHTML="You can skip this ad in "+t+" second"+i,setTimeout(function(){I(e,t-1)},1e3)}else q(e)}}function q(e){if(winning_ad.domdiv){e.innerHTML="Skip Ad",winning_ad.skipdiv||(winning_ad.domdiv.appendChild(e),winning_ad.skipdiv=e);try{winning_ad.skipdiv.style.display="",winning_ad.skipdiv.style.pointerEvents="all",winning_ad.skipdiv.style.width="95px"}catch(e){}}}}try{if(S=lkqdContainer.getElementsByTagName("div"))for(var T=0;T<S.length;T++)if(S[T].className&&"fb_learn_more"==S[T].className&&(S[T].style.overflow="visible",S[T].childNodes))for(var E=0;E<S[T].childNodes.length;E++)S[T].childNodes[E].getAttribute("id")&&"an_skip_button"==S[T].childNodes[E].getAttribute("id")&&(S[T].childNodes[E].style.pointerEvents="auto")}catch(e){}try{if(S=lkqdContainer.getElementsByTagName("section"))for(T=0;T<S.length;T++)if(S[T].id&&"brainient-unit"==S[T].id&&S[T].getAttribute("data-placement")){S[T].style.opacity=0;break}}catch(e){}try{if(playerContainer&&playerContainer.id&&"pluginElement_3"==playerContainer.id)try{"10001"!=player.style.zIndex&&10001!=player.style.zIndex||(player.style.zIndex=11001,lkqdContainer.style.zIndex=11002)}catch(e){}}catch(e){}winning_ad.dom&&winning_ad.adTagId&&(560564==winning_ad.adTagId||582475==winning_ad.adTagId||582476==winning_ad.adTagId)&&0==preserve_slots&&(winning_ad.dom.style.display="none"),winning_ad.googleima&&winning_ad.dom&&winning_ad.domdiv&&!videoMediaFile(winning_ad.dom)&&(winning_ad.dom.style.display="none",winning_ad.domdiv.style.backgroundImage="",lkqdContainer.style.backgroundImage="");try{var S;if(0==preserve_slots&&winning_ad.dom&&winning_ad.domdiv&&!videoMediaFile(winning_ad.dom))if(S=winning_ad.domdiv.getElementsByTagName("div"))for(T=0;T<S.length;T++)if(S[T].id&&(0==S[T].id.indexOf("vdb_")||0==S[T].id.indexOf("ftdiv"))||S[T].getAttribute("class")&&"vast-kicklight-container"==S[T].getAttribute("class")){S[T].style.position="absolute",S[T].style.top="0px";break}}catch(e){}}else if(i==n)adselection_complete=!0,find_and_fire_pixels(118),setTimeout(function(){publisher_event_notify("AdUnavailableNonSuccess")},450),debug("AdError","Out of Ads"),lkqdstopAd(!0);else if(1!=e||lastLookAvailable){if(adserver_json.adgroups&&!winning_ad){var B=!1,j=!1,P=!1,U=!1,O=!1,D=0,N=0;for(o=0;o<adserver_json.adgroups.length;o++){267==pid&&"firstlook"==adserver_json.adgroups[o].type&&adserver_json.adgroups[o].ads[0].adTagUrl&&adserver_json.adgroups[o].ads[0].xhr&&!adserver_json.adgroups[o].ads[0].xhr.processed&&!adserver_json.adgroups[o].ads[0].mediaFiles&&(P=!0,adserver_json.adgroups[o].ads[0].topAdTagId);for(d=0;d<adserver_json.adgroups[o].ads.length;d++)!adserver_json.adgroups[o].ads[d].mediaFiles||adserver_json.adgroups[o].ads[d].fail||adserver_json.adgroups[o].ads[d].success||(adserver_json.adgroups[o].ads[d].timing&&(++D,null!=adserver_json.adgroups[o].ads[d].hybrid&&++N),"onlylook"==adserver_json.adgroups[o].type&&(B=!0),"firstlook"==adserver_json.adgroups[o].type&&(j=!0),"guaranteed"==adserver_json.adgroups[o].type&&(U=!0),"non-guaranteed"!=adserver_json.adgroups[o].type&&"other"!=adserver_json.adgroups[o].type||(O=!0))}if(!lastLookAvailable||1!=e&&1!=lastLookAttempt){if(B){for(o=0;o<adserver_json.adgroups.length;o++)if(adserver_json.adgroups[o].type&&"onlylook"==adserver_json.adgroups[o].type){if(adserver_json.adgroups[o].ads[0].mediaFiles&&!adserver_json.adgroups[o].ads[0].timing&&!adserver_json.adgroups[o].ads[0].fail&&!adserver_json.adgroups[o].ads[0].success)(M=processAd(adserver_json.adgroups[o].ads[0],"onlylook")).attempting&&++D;break}}else if(j)for(o=0;o<adserver_json.adgroups.length;o++)if(adserver_json.adgroups[o].type&&"firstlook"==adserver_json.adgroups[o].type){if(vpsr_total<.9&&D-N<max_slots)if(adserver_json.adgroups[o].ads[0].mediaFiles&&!adserver_json.adgroups[o].ads[0].timing&&!adserver_json.adgroups[o].ads[0].fail&&!adserver_json.adgroups[o].ads[0].success)(M=processAd(adserver_json.adgroups[o].ads[0],"firstlook")).attempting?++D:j=!1;break}}else for(var o=0;o<adserver_json.adgroups.length;o++)if(adserver_json.adgroups[o].type&&"lastlook"==adserver_json.adgroups[o].type){if(!adserver_json.adgroups[o].ads[0].mediaFiles||adserver_json.adgroups[o].ads[0].timing||adserver_json.adgroups[o].ads[0].fail||adserver_json.adgroups[o].ads[0].success)adserver_json.adgroups[o].ads[0].fail&&(lastLookAvailable=!1);else(M=processAd(adserver_json.adgroups[o].ads[0],"lastlook")).attempting?(++D,lastLookAttempt=!0):lastLookAvailable=!1;break}if(U&&(!j||0==D)){P&&!firstLookXhrWaitFired&&(firstLookXhrWaitFired=!0);for(o=0;o<adserver_json.adgroups.length;o++)if(adserver_json.adgroups[o].type&&"guaranteed"==adserver_json.adgroups[o].type)for(d=0;d<adserver_json.adgroups[o].ads.length;d++){if(vpsr_total<.9&&D-N<max_slots)if(adserver_json.adgroups[o].ads[d].mediaFiles&&!adserver_json.adgroups[o].ads[d].timing&&!adserver_json.adgroups[o].ads[d].fail&&!adserver_json.adgroups[o].ads[d].success)(M=processAd(adserver_json.adgroups[o].ads[d],"guaranteed")).attempting&&(++D,M.vpsr<.1?vpsr_total+=.5:vpsr_total=1)}}if(O&&(!j&&!U||0==D))for(o=0;o<adserver_json.adgroups.length;o++)if("non-guaranteed"==adserver_json.adgroups[o].type||"other"==adserver_json.adgroups[o].type){var L;for(d=0;d<adserver_json.adgroups[o].ads.length;d++)if(adserver_json.adgroups[o].ads[d].mediaFiles&&!adserver_json.adgroups[o].ads[d].timing&&!adserver_json.adgroups[o].ads[d].fail&&!adserver_json.adgroups[o].ads[d].success){var F=select_mediafile(adserver_json.adgroups[o].ads[d].mediaFiles,!1,!1),V=F.videoSelected,W=F.mediaFileBlocked;if(V&&V.url&&V.mimeType&&0==W){L=adserver_json.adgroups[o].ads[d];break}}if(L){if(vpsr_total<.9&&D-N<max_slots)(M=processAd(L,"non-guaranteed")).attempting&&(++D,vpsr_total+=M.vpsr)}else for(d=0;d<adserver_json.adgroups[o].ads.length;d++){var M;if(vpsr_total<.9&&D-N<max_slots)if(adserver_json.adgroups[o].ads[d].mediaFiles&&!adserver_json.adgroups[o].ads[d].timing&&!adserver_json.adgroups[o].ads[d].fail&&!adserver_json.adgroups[o].ads[d].success)(M=processAd(adserver_json.adgroups[o].ads[d],"non-guaranteed",adserver_json.adgroups[o].ads.length)).attempting&&(++D,vpsr_total+=M.vpsr)}}0==adselection_complete&&0==D&&0==r&&vpsr_total<.9&&(1!=lastLookAvailable||lastLookAttempt?(adselection_complete=!0,find_and_fire_pixels(118),setTimeout(function(){publisher_event_notify("AdUnavailableNonSuccess")},450),debug("AdError","Out of Ads-2"),lkqdstopAd(!0)):(lastLookAttempt=!0,adselection_controller()))}}else{if(adselection_complete=!0,adserver_json.adgroups)for(var o=0;o<adserver_json.adgroups.length;o++)for(var d=0;d<adserver_json.adgroups[o].ads.length;d++)!adserver_json.adgroups[o].ads[d].timing||adserver_json.adgroups[o].ads[d].fail||adserver_json.adgroups[o].ads[d].success||"vpaid"==adserver_json.adgroups[o].ads[d].type&&find_and_fire_pixels(148,adserver_json.adgroups[o].ads[d]);find_and_fire_pixels(118),setTimeout(function(){publisher_event_notify("AdUnavailableTimeout")},450),debug("AdError","Ad Selection Timeout"),lkqdstopAd(!0)}}}function processAd(e,t,i){var n,a,r=!1,o=0;if(null!=e.durationMs&&5e3<e.durationMs&&adserver_json&&adserver_json.site&&null!=adserver_json.site.durmax&&0<adserver_json.site.durmax&&e.durationMs/1e3>adserver_json.site.durmax&&e.mediaFiles&&e.mediaFiles[0]&&e.mediaFiles[0].url&&e.mediaFiles[0].url.indexOf("zedo.com")<0&&(e.fail=!0),44==pid||437==pid||467==pid&&getPageInfo().top_hostname&&0<=getPageInfo().top_hostname.indexOf("theactivetimes.com")){if(e.pixels)for(var d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(var s=0;s<e.pixels[d].pixelUrls.length;s++)if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s])&&("casumo.com"==getParameterByName("radomain",e.pixels[d].pixelUrls[s])||"crtv.com"==getParameterByName("radomain",e.pixels[d].pixelUrls[s])||"abbvie.com"==getParameterByName("radomain",e.pixels[d].pixelUrls[s]))){e.fail=!0;break}}else if(262==pid){if(e.pixels)for(d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(s=0;s<e.pixels[d].pixelUrls.length;s++){if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s]))if(0<=["activision.com","battle.net","blizzard.com","callofduty.com","hp.com","microsoft.com","playstation.com","ea.com","ubisoft.com","xbox.com","nintendo.com","worldofwarcraft.com","drinkbai.com","dell.com"].indexOf(getParameterByName("radomain",e.pixels[d].pixelUrls[s]).toLowerCase())){e.fail=!0;break}}}else if(333==pid){if(e.pixels)for(d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(s=0;s<e.pixels[d].pixelUrls.length;s++){if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s]))if(0<=["chase.com","farmers.com","sonicdrivein.com","amtrak.com","honda.com","kroger.com"].indexOf(getParameterByName("radomain",e.pixels[d].pixelUrls[s]).toLowerCase())){e.fail=!0;break}}}else if(567==pid){if(e.pixels)for(d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(s=0;s<e.pixels[d].pixelUrls.length;s++){if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s]))if(0<=["weatherbug.com","aws.com","accuweather.com","baronservices.com","customweather.com","my-cast.com","digitalcyclone.com","fleetweather.com","foreca.com","nbcweatherplus.com","planalytics.com","theweathernetwork.com","meteorlogix.com","weathernews.com"].indexOf(getParameterByName("radomain",e.pixels[d].pixelUrls[s]).toLowerCase())){e.fail=!0;break}}}else if(476==pid||304==pid){if(e.pixels)for(d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(s=0;s<e.pixels[d].pixelUrls.length;s++){if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s]))if(0<=["wmcactionnews5.com","pokerstars.dk","pokerstars.eu","pokerstars.net","pokerstars.in","pokerstars.com"].indexOf(getParameterByName("radomain",e.pixels[d].pixelUrls[s]).toLowerCase())){e.fail=!0;break}}}else if(697581==sid||697581==sid){if(e.pixels)for(d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(s=0;s<e.pixels[d].pixelUrls.length;s++){if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s]))if(0<=["aamco.com","emoryhealthcare.org","gng.com","gradyhealth.org","high.org","kroger.com","montlick.com","ngwindows.com","orlandofirm.com","truenaturalgas.com"].indexOf(getParameterByName("radomain",e.pixels[d].pixelUrls[s]).toLowerCase())){e.fail=!0;break}}}else if(732691==sid||620924==sid||620948==sid){if(e.pixels)for(d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(s=0;s<e.pixels[d].pixelUrls.length;s++){if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s]))if(0<=["havastorage.com","londonbridgeresort.com","nauticalbeachfrontresort.com","totalbattle.com","worldofwarships.com","beenverified.com","instantcheckmate.com"].indexOf(getParameterByName("radomain",e.pixels[d].pixelUrls[s]).toLowerCase())){e.fail=!0;break}}}else if((716906==sid||776660==sid||776664==sid)&&e.pixels)for(d=0;d<e.pixels.length;d++)if(3==e.pixels[d].eventId&&e.pixels[d].pixelUrls&&1<=e.pixels[d].pixelUrls.length)for(s=0;s<e.pixels[d].pixelUrls.length;s++){if(e.pixels[d].pixelUrls[s]&&getParameterByName("radomain",e.pixels[d].pixelUrls[s]))if(0<=["aberdeen-asset.com","alliancebernstein.com","americancentury.com","mattpaulson.com/my-projects","amigobulls.com","angelpub.com","apiaryfund.com","axa.com","bbssecurities.com","goldmoney.com","blackrock.com","bmocm.com","capitalone.com","cffp.edu","schwab.com","cit.com","cmegroup.com","dvddiamonds.com","randdvd.com","delawareinvestments.com","delawarefunds.com","macquarie.com","direxioninvestments.com","economyandmarkets.com","estimize.com","etfsecurities.com","wisdomtree.eu","etrade.com","faisalmohammad.com","federated.net","fidelity.com","forcerank.com","franklintempleton.com","horizonsetfs.com","interactivebrokers.com","invesco.com","invescopowershares.com","invesco.ca","investorplace.com","ishares.com","janus.com","janushenderson.com","johnhancock.com","leggmason.com","lendingclub.com","chaikinanalytics.com","markettraders.com","massmutual.com","merrilledge.com","metlife.com","mfs.com","nadex.com","nasdaq.com","nationwidefinancial.com","natixis.com","nyu.edu","nuveen.com","oanda.com","tradingacademy.com","oppenheimer.com","opco.com","optionseducation.org","optionshouse.com","prudential.com","questrade.com","schroders.com","scotiabank.com","scoutfin.com","sectorspdr.com","alpsfunds.com","mysynchrony.com","tagoil.com","tdameritrade.com","amtd.com","tdcanadatrust.com","td.com","tdbank.com","theetfbully.com","fool.com","topsteptrader.com","tortoiseadvisors.com","tradestation.com","vaneck.com","vanguard.com","vectorvest.com","moneyandmarkets.com","weissresearchissues.com","zacks.com","investors.com"].indexOf(getParameterByName("radomain",e.pixels[d].pixelUrls[s]).toLowerCase())){e.fail=!0;break}}if(!e.timing&&!e.fail&&!e.success&&e.mediaFiles){e.adGroup=t;var l=select_mediafile(e.mediaFiles,!0,!1),c=l.videoSelected,p=l.mediaFileBlocked;if(c&&c.url&&c.mimeType&&0==p){e.events=[],e.timing={dom:(new Date).getTime()},0==c.url.indexOf("//")&&(c.url="http:"+c.url);try{"https:"==wlp&&0==c.url.toLowerCase().indexOf("http://")&&(c.url="https://"+c.url.substring(7))}catch(e){}e.videoSelected=c,0==preserve_slots&&(a=e,setTimeout(function(){if(!a.success&&!a.fail&&0==adselection_complete){var e="&errorcode=timeout";a.videoSelected&&a.videoSelected.url&&(e+="&mfurl="+encodeURIComponent(a.videoSelected.url)),e+="&maply="+mobile_autoplay,e+="&vpaidloader="+a.vpaidLoader,videoMediaFile(a)&&(e+="&mfurlsrc="+encodeURIComponent(videoMediaFile(a)));try{e+="&readystate="+a.dom.readyState}catch(e){}a.events&&0<=a.events.indexOf("AdLoaded")&&(e+="&adloadedevent=true");var t=0;try{void 0!==document.addEventListener&&void 0!==viewability_tab_hidden&&(t=document[viewability_tab_hidden]?2:1)}catch(e){t=0}find_and_fire_pixels(9,a,e+="&atab="+t),removeAd(a)}},6750)),r=!0,o=1,e.vpsr=1,debug("attempt-vast",e.adTagId),n=e,setTimeout(function(){load_ad(n,"vast")},0)}else if(0==r&&e.mediaFiles[0].url&&e.mediaFiles[0].apiFramework&&0==e.mediaFiles[0].apiFramework.toLowerCase().indexOf("vpaid")&&!verticalVideo){e.events=[],e.timing={dom:(new Date).getTime()};var u=e.mediaFiles[0].url,m="";e.mediaFiles[0].mimeType&&(m=e.mediaFiles[0].mimeType);var g="";if(e.mediaFiles[0].apiFramework&&(g=e.mediaFiles[0].apiFramework),1<e.mediaFiles.length&&e.mediaFiles[1].url&&e.mediaFiles[1].mimeType&&e.mediaFiles[1].apiFramework&&0==e.mediaFiles[1].apiFramework.toLowerCase().indexOf("vpaid")&&(0<m.toLowerCase().indexOf("javascript")||(0<e.mediaFiles[1].mimeType.toLowerCase().indexOf("javascript")?(u=e.mediaFiles[1].url,m=e.mediaFiles[1].mimeType,g=e.mediaFiles[1].apiFramework):e.fail=!0)),0==is_mobile&&vpaidDesktopBlacklist&&1<=vpaidDesktopBlacklist.length&&getHostnameFromUrl(u))for(var v=0;v<vpaidDesktopBlacklist.length;v++)if(0<=getHostnameFromUrl(u).toLowerCase().indexOf(vpaidDesktopBlacklist[v])){e.vpaidDesktopBlacklist=!0;break}if(dfpAdX&&tagBlacklistDFP&&0<tagBlacklistDFP.length&&1==blocked_adserver_dfp(u)&&(e.vpaidDesktopBlacklist=!0),getHostnameFromUrl(u)||(e.vpaidDesktopBlacklist=!0),0==is_mobile&&vpaidDesktopWhitelist&&1<=vpaidDesktopWhitelist.length&&getHostnameFromUrl(u)){var f=!1;for(v=0;v<vpaidDesktopWhitelist.length;v++)if(0<=getHostnameFromUrl(u).toLowerCase().indexOf(vpaidDesktopWhitelist[v])){f=!0;break}0==f&&(e.vpaidDesktopBlacklist=!0)}if(vpaidAdserverDirect&&1<=vpaidAdserverDirect.length&&getHostnameFromUrl(u))for(v=0;v<vpaidAdserverDirect.length;v++)if(0<=getHostnameFromUrl(u).toLowerCase().indexOf(vpaidAdserverDirect[v])){e.vpaidAdserverDirect=!0,(null==e.vpsr||e.vpsr<.5)&&(e.vpsr=.5);break}if(vpaidPremiumExchange&&1<=vpaidPremiumExchange.length&&getHostnameFromUrl(u))for(v=0;v<vpaidPremiumExchange.length;v++)if(0<=getHostnameFromUrl(u).toLowerCase().indexOf(vpaidPremiumExchange[v])){e.vpaidPremiumExchange=!0;break}getHostnameFromUrl(u)&&getHostnameFromUrl(u).toLowerCase().indexOf("yume")<0&&(e.vpaidAvsExclusion=!0);var h=!0;null==e.vpsr&&(e.vpsr=.005),2!=pid&&21!=pid&&null!=adserver_json.site.minvpsr&&0<adserver_json.site.minvpsr&&(null!=e.vpsr&&e.vpsr>=adserver_json.site.minvpsr||(getParameterByName("adid",adserver_json.site.sspUrl)?h=!0:e.vpaidAdserverDirect||(h=!!(i&&0<i&&i<3))),0==h&&"guaranteed"==t&&Math.ceil(100*Math.random())<=4&&(h=!0),0==h&&"onlylook"==t&&(h=!0),0==h&&"firstlook"==t&&Math.ceil(100*Math.random())<=7&&(h=!0),0==h&&462907==e.adTagId&&(h=!0));for(var _=0;_<e.pidSidTagIds.length;_++)if(6==e.pidSidTagIds[_][0]){333==pid&&(e.vpaidAdserverDirect||e.vpaidPremiumExchange||1==is_mobile||null!=e.vpsr&&.051<=e.vpsr||(h=!1));break}if(pubSupportMode&&"strict"==pubSupportMode&&(e.vpaidAdserverDirect||e.vpaidPremiumExchange||"guaranteed"==t||(e.vpaidDesktopBlacklist=!0)),(333==pid&&e.adParameters&&e.adParameters.content&&0<e.adParameters.content.indexOf("columbusstate.edu")||333==pid&&310295==sid&&0<=u.toLowerCase().indexOf("videologygroup.com"))&&(e.vpaidDesktopBlacklist=!0),1==is_mobile?109!=pid&&0<=u.toLowerCase().indexOf("altitude-arena.com")&&e.vpsr<.01?e.vpaidDesktopBlacklist=!0:109==pid&&0<=u.toLowerCase().indexOf("altitude-arena.com")&&(h=!0):(333==pid||415==pid||244==pid)&&0<=u.toLowerCase().indexOf("clearstream.tv")?e.vpaidDesktopBlacklist=!0:(0<=u.toLowerCase().indexOf("streamrail")||0<=u.toLowerCase().indexOf("vertamedia")||0<=u.toLowerCase().indexOf("adtelligent.com"))&&(e.vpsr<.0099||333==pid||267==pid||284==pid)?463!=pid&&(e.vpaidDesktopBlacklist=!0):(0<=u.toLowerCase().indexOf("optimatic")||0<=u.toLowerCase().indexOf("dashbid.io"))&&e.vpsr<.0099&&(e.vpaidDesktopBlacklist=!0),g&&0==g.toLowerCase().indexOf("vpaid")&&m&&0<m.toLowerCase().indexOf("javascript")&&1==h){if(e.vpaidDesktopBlacklist&&2!=pid&&21!=pid||0<u.indexOf("ad.lkqd.net/vpaid/")&&(e.vpaidDesktopBlacklist=!0),e.vpaidDesktopBlacklist&&2!=pid&&21!=pid)e.fail=!0;else if(0<m.toLowerCase().indexOf("javascript")){var A=!1,y=getHostnameFromUrl(u);if(vpaidMobileWhitelist&&1<=vpaidMobileWhitelist.length&&y){for(var w=0;w<vpaidMobileWhitelist.length;w++)if(0<=y.indexOf(vpaidMobileWhitelist[w])){A=!0;break}0==A&&0<=y.indexOf("spotxchange-a.akamaihd.net")&&(A=!0)}0!=is_mobile&&1!=A&&2!=pid&&21!=pid&&553112!=e.adTagId||(r=!0,o=e.vpsr,debug("attempt-html5-vpaid",e.adTagId),load_ad(e,"vpaid","html5",u,t))}}else g&&0==g.toLowerCase().indexOf("vpaid")&&m&&0<m.toLowerCase().indexOf("flash")&&1==h&&(e.fail=!0)}}return 0!=r&&1!=e.fail||(e.fail=!0),{attempting:r,vpsr:o}}function select_mediafile(e,t,i){var n="",a=!1,r=!1,o=0,d=0,s=0,l=0,c=1500;1==is_mobile&&(c=900),verticalVideo&&(i=!1);for(var p=0;p<e.length;p++){var u=e[p].apiFramework&&0==e[p].apiFramework.toLowerCase().indexOf("vpaid");if((!e[p].apiFramework||!u)&&e[p].mimeType&&""!=e[p].mimeType&&e[p].url&&(0==e[p].url.toLowerCase().indexOf("http")||0==e[p].url.toLowerCase().indexOf("//")))if(n){var m=e[p].width*e[p].height,g=Math.abs(playerHeight*playerWidth-m),v=Math.abs(c-e[p].bitrate);g<s||v<l?e[p].mimeType!=targetMediaFile&&n.mimeType==targetMediaFile||(n=e[p],o=e[p].bitrate,e[p].width,e[p].height,d=m,s=g,l=v):n.mimeType!=targetMediaFile&&e[p].mimeType==targetMediaFile&&(n=e[p],o=e[p].bitrate,e[p].width,e[p].height,d=m,s=g,l=v)}else{n=e[p],o=e[p].bitrate,e[p].width,e[p].height;try{d=e[p].width*e[p].height}catch(e){d=0}try{s=Math.abs(playerHeight*playerWidth-d)}catch(e){s=0}try{l=Math.abs(c-o)}catch(e){l=0}}}if(!n)for(p=0;p<e.length;p++){u=e[p].apiFramework&&0==e[p].apiFramework.toLowerCase().indexOf("vpaid");if(i&&u&&e[p].url&&(0==e[p].url.toLowerCase().indexOf("http")||0==e[p].url.toLowerCase().indexOf("//"))&&vpaidAdserverDirect&&1<=vpaidAdserverDirect.length&&getHostnameFromUrl(e[p].url))for(var f=0;f<vpaidAdserverDirect.length;f++)if(0<=getHostnameFromUrl(e[p].url).toLowerCase().indexOf(vpaidAdserverDirect[f])){var h=!1;if(vpaidMobileWhitelist&&1<=vpaidMobileWhitelist.length)for(var _=0;_<vpaidMobileWhitelist.length;_++)if(0<=getHostnameFromUrl(e[p].url).indexOf(vpaidMobileWhitelist[_])){h=!0;break}var A=!1;if(vpaidDesktopWhitelist&&1<=vpaidDesktopWhitelist.length)for(_=0;_<vpaidDesktopWhitelist.length;_++)if(0<=getHostnameFromUrl(e[p].url).indexOf(vpaidDesktopWhitelist[_])){A=!0;break}if(is_mobile&&1==h){n=e[p],a=!0;break}if(0==is_mobile&&1==A){n=e[p],a=!0;break}}}if(n&&n.url&&(0==n.url.indexOf("//")||0==n.url.indexOf("http"))||(n=null),0==a)if(n&&n.url&&n.mimeType){if(mobile_blocked_mfs){for(var y=0;y<mobile_blocked_mfs.length;y++)if(0<=n.url.toLowerCase().indexOf(mobile_blocked_mfs[y].toLowerCase())){r=!0,create_and_fire_pixels(71,"&mfurl="+encodeURIComponent(mobile_blocked_mfs[y].toLowerCase()));break}0==r&&((n.url.length<14||n.url.indexOf("/",10)<0)&&(r=!0),(0<n.url.toLowerCase().indexOf(".swf?")||n.url.toLowerCase().indexOf(".swf")==n.url.length-4)&&(r=!0))}}else;return{videoSelected:n,mediaFileBlocked:r,videoSelectedVpaid:a}}function load_ima_ad(r,e,t){var o=!1;player&&playerContainer&&Math.ceil(100*Math.random())<5&&(o=!0);var d=document.createElement("iframe");d.style.display="none",create_and_fire_pixels(901,"&adid="+r.adTagId+"&ptest="+o);var i=function(){var a=d.contentWindow.document.createElement("script");a.src="https://imasdk.googleapis.com/js/sdkloader/ima3.js",a.onload=function(){var e,t;try{r.vpaidLoader=!0,e={subscribe:function(e,t,i){},unsubscribe:function(e,t){},handshakeVersion:function(e){return e},initAd:function(e,t,i,n,a,r){},resizeAd:function(e,t,i){},startAd:function(){},stopAd:function(){},pauseAd:function(){},resumeAd:function(){},setAdVolume:function(e){},expandAd:function(){},collapseAd:function(){},skipAd:function(){},adLinear:function(){return!0},getAdLinear:function(){return!0},adWidth:function(){return playerWidth},getAdWidth:function(){return playerWidth},adHeight:function(){return playerHeight},getAdHeight:function(){return playerHeight},adExpanded:function(){return!1},getAdExpanded:function(){return!1},adSkippableState:function(){return!1},adRemainingTime:function(){return-1},getAdRemainingTime:function(){return-1},adDuration:function(){return-1},getAdDuration:function(){return-1},adVolume:function(){return volume},getAdVolume:function(){return volume},adCompanions:function(){return""},getAdCompanions:function(){return""},adIcons:function(){return!1},getAdIcons:function(){return!1},adSkippableState:function(){return!1},getAdSkippableState:function(){return!1}},r.vpaid=e}catch(e){}r.timing.initad=(new Date).getTime(),(t=1==o?new d.contentWindow.google.ima.AdDisplayContainer(playerContainer,player):new d.contentWindow.google.ima.AdDisplayContainer(r.domdiv,r.dom)).initialize();var i=new d.contentWindow.google.ima.AdsLoader(t);i.getSettings().setVpaidMode(d.contentWindow.google.ima.ImaSdkSettings.VpaidMode.INSECURE),i.addEventListener(d.contentWindow.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(e){var n;create_and_fire_pixels(902,"&adid="+r.adTagId),n=1==o?e.getAdsManager(player):e.getAdsManager(r.dom),r.vpaid.resizeAd=function(e,t,i){try{n.resize(e,t,i)}catch(e){}},r.vpaid.startAd=function(){try{n.start()}catch(e){}},r.vpaid.stopAd=function(){try{n.stop()}catch(e){}},r.vpaid.pauseAd=function(){try{n.pause()}catch(e){}},r.vpaid.resumeAd=function(){try{n.resume()}catch(e){}},r.vpaid.setAdVolume=function(e){try{n.setVolume(e)}catch(e){}},r.vpaid.expandAd=function(){try{n.expand()}catch(e){}},r.vpaid.collapseAd=function(){try{n.collapse()}catch(e){}},r.vpaid.skipAd=function(){try{n.skip()}catch(e){}},n.addEventListener(d.contentWindow.google.ima.AdErrorEvent.Type.AD_ERROR,function(){adVpaidEvent(instance_id,r,"AdError")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.LOADED,function(){adVpaidEvent(instance_id,r,"AdLoaded")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.STARTED,function(){adVpaidEvent(instance_id,r,"AdStarted")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.IMPRESSION,function(){adVpaidEvent(instance_id,r,"AdImpression")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.FIRST_QUARTILE,function(){adVpaidEvent(instance_id,r,"AdVideoFirstQuartile")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.MIDPOINT,function(){adVpaidEvent(instance_id,r,"AdVideoMidpoint")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.THIRD_QUARTILE,function(){adVpaidEvent(instance_id,r,"AdVideoThirdQuartile")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.COMPLETE,function(){adVpaidEvent(instance_id,r,"AdVideoComplete")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.SKIPPED,function(){adVpaidEvent(instance_id,r,"AdSkipped")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.LINEAR_CHANGED,function(){adVpaidEvent(instance_id,r,"AdLinearChange")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.DURATION_CHANGE,function(){adVpaidEvent(instance_id,r,"AdDurationChange")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.VOLUME_CHANGED,function(){adVpaidEvent(instance_id,r,"AdVolumeChange")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.CLICK,function(){adVpaidEvent(instance_id,r,"AdClickThru")}),n.addEventListener(d.contentWindow.google.ima.AdEvent.Type.PAUSED,function(){adVpaidEvent(instance_id,r,"AdPaused")});try{n.init(playerWidth,playerHeight,d.contentWindow.google.ima.ViewMode.NORMAL)}catch(e){}},!1),i.addEventListener(d.contentWindow.google.ima.AdErrorEvent.Type.AD_ERROR,function(e){e.getError()&&e.getError().h&&1009!=e.getError().h&&create_and_fire_pixels(903,"&adid="+r.adTagId);try{adsManager.destroy()}catch(e){}adVpaidEvent(instance_id,r,"AdError")},!1);var n=new d.contentWindow.google.ima.AdsRequest;n.linearAdSlotWidth=playerWidth,n.linearAdSlotHeight=playerHeight,n.nonLinearAdSlotWidth=playerWidth,n.nonLinearAdSlotHeight=playerHeight,n.adTagUrl=r.adTagUrl,i.requestAds(n),a=null},d.contentWindow.document.body.appendChild(a),d.onload=null,d.onerror=null,i=null};d.onload=i,d.onerror=i,r.vpaidFrame=d,1==o?playerContainer.appendChild(d):r.domdiv.appendChild(d)}function load_ad(i,e,t,n,a){var r,o,d,s,l=i.adTagId;if(null!=i.hybrid||find_and_fire_pixels(1,i),n&&"https:"==wlp&&0==n.toLowerCase().indexOf("http://")&&(n="https://"+n.substring(7)),n&&1==blocked_adserver(n))removeAd(i);else if("vast"==e){i.type="vast",i.support="html5",s=[],find_and_fire_pixels(15,i,"&mfurl="+encodeURIComponent(i.videoSelected.url),s),batch_and_fire_pixels(s);var c="";if(i.clickThroughUrl&&(c=i.clickThroughUrl),1==preserve_slots){if(i.dom=player,i.domdiv=playerContainer,player.volume=volume,player.muted=0==volume,!lkqdExecution&&playerContainer&&(playerContainer.addEventListener("click",playerClick,!1),is_mobile&&(0<user_agent.toLowerCase().indexOf("ipad;")||0<user_agent.toLowerCase().indexOf("iphone;"))&&"body"==playerContainer.tagName.toLowerCase())){var p=document.createElement("div");p.setAttribute("style","width:100%;height:100%;"),p.addEventListener("click",function(e){playerClick(),e.stopPropagation()},!1),playerContainer.appendChild(p)}}else{(x=document.createElement("div")).id="lkqdad"+l,x.setAttribute("style","height: "+playerHeight+"px !important; width: "+playerWidth+"px !important; overflow:hidden !important; position: absolute; top:0px;"),lkqdContainer.appendChild(x),(C=document.createElement("video")).id="lkqdadvid"+l,C.name="lkqdadvid"+l;try{C.setAttribute("webkit-playsinline","webkit-playsinline"),C.setAttribute("playsinline","playsinline"),C.setAttribute("controlsList","nodownload"),C.setAttribute("preload","auto")}catch(e){}adserver_json.site.playinit&&"user"==adserver_json.site.playinit||C.addEventListener("loadedmetadata",playerLoadedMetadata,!1),0==is_mobile||1==mobile_video_autoplay?0==volume||mobile_video_autoplay?(C.volume=0,C.muted=!0,lkqdPlayerSettings&&lkqdPlayerSettings.controlOptions&&null!=lkqdPlayerSettings.controlOptions.muteUnmute&&0==lkqdPlayerSettings.controlOptions.muteUnmute||enableAudioControls()):0<volume&&(C.volume=volume,C.muted=!1):(C.volume=volume,C.muted=0==volume),C.setAttribute("poster","data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="),C.setAttribute("style","position:relative; top:0px; left:0px; display:block; line-height:0px; margin:0; padding:0"),lkqdPlayerSettings&&lkqdPlayerSettings.playerWidth&&"100%"==lkqdPlayerSettings.playerWidth&&lkqdPlayerSettings.playerHeight&&"100%"==lkqdPlayerSettings.playerHeight?(C.setAttribute("width","100%"),C.setAttribute("height","100%")):(C.setAttribute("width",playerWidth),C.setAttribute("height",playerHeight)),C.style.backgroundColor="#000000",C.style.backgroundImage='url("'+loading_icon+'")',C.style.backgroundSize="40px auto",C.style.backgroundPosition="center",C.style.backgroundRepeat="no-repeat",verticalVideo&&C.setAttribute("object-fit","fill"),x.appendChild(C),i.dom=C,i.domdiv=x}if(i.dom&&i.ccUrl&&"string"==typeof i.ccUrl&&""!=i.ccUrl&&0==i.ccUrl.indexOf("http")){i.dom.setAttribute("crossorigin","");var u=!1;if(player)try{u=0<=player.className.indexOf("jwplayer")||0<=player.className.indexOf("jw-video")}catch(e){}if(!u)try{if(playerContainer&&playerContainer.ownerDocument.defaultView.player){var m=playerContainer.ownerDocument.defaultView.player.className;(0<=m.indexOf("jwplayer")||0<=m.indexOf("jw-video"))&&(u=!0)}}catch(e){}var g=i.dom.appendChild(document.createElement("style")).sheet;try{g.insertRule("video::-webkit-media-text-track-container { bottom: 40px; overflow: visible !important; }",0)}catch(e){}if(u)try{g.insertRule("video::-webkit-media-text-track-container { display: inline-block !important; max-height: none !important; }",0)}catch(e){}var v=function(e){try{if(i&&i.dom){if(i.dom.textTracks)for(var t=0;t<i.dom.textTracks.length;t++)if("disabled"!=i.dom.textTracks[t].mode){"true"==getParameterByName("showcaptions",adserver_json.site.sspUrl)?i.dom.textTracks[t].mode="showing":i.dom.textTracks[t].mode="hidden";break}i.dom.removeEventListener("loadeddata",v,!1)}}catch(e){}},f=function(){if(i&&i.dom&&!i.dom.vttLoaded){i.dom.vttLoaded=!0;try{var l=new XMLHttpRequest;l.addEventListener("load",function(e){for(var t,i=vttList=l.responseText.split("\n"),n=[],a=0;a<i.length;a++){var r=i[a];if(r.match(" --\x3e ")){t={text:""};var o=r.split(" ")[0],d=r.split(" ")[2];t.startTime=h(o),t.endTime=h(d)}else t&&("\r"==r&&(t&&null!=t.startTime&&!isNaN(t.startTime)&&null!=t.endTime&&!isNaN(t.endTime)&&t.text&&""!=t.text&&n.push(new VTTCue(t.startTime,t.endTime,t.text)),t={text:""}),r.match(/\S/)&&(t.text+=r+"\n"))}if(t&&null!=t.startTime&&!isNaN(t.startTime)&&null!=t.endTime&&!isNaN(t.endTime)&&t.text&&""!=t.text&&n.push(new VTTCue(t.startTime,t.endTime,t.text)),n.length){for(var s=0;s<n.length;s++)_.track.addCue(n[s]);v()}},!1)}catch(e){}l.open("GET",i.ccUrl),l.send()}};function h(e){var t=e.split(":").reverse(),i=parseFloat(t[0]);return i+=60*parseInt(t[1]),2<t.length&&(i+=3600*parseInt(t[2])),i}var _=document.createElement("track");_.setAttribute("kind","captions"),_.setAttribute("type","text/vtt"),_.setAttribute("default",""),_.setAttribute("src",i.ccUrl),_.addEventListener("error",f,!1),i.dom.addEventListener("loadeddata",v,!1),i.dom.appendChild(_),enableTitleTrackControls()}var A=lkqd_cdn+"ad.js",y={AdParameters:{videoSelected:i.videoSelected,clickThru:c,xmlDuration:Math.round(i.durationMs/1e3)}};load_html5_ad(i,A,y)}else if("vpaid"==e&&"flash"==t)i.fail=!0,removeAd(i);else if("vpaid"==e&&"html5"==t){i.type="vpaid",i.support="html5",i.videoSelected={url:n},find_and_fire_pixels(106,i);var w=12500,k=6e3,b=15e3;if(i.timeout?(w=i.timeout,k=i.timeout,b=i.timeout):1==is_mobile&&(w=9e3,k=7500),i.fltimeout&&(k=i.fltimeout),1==mlwscan&&(w=1e4),a&&"lastlook"==a&&(w=3750),0==preserve_slots&&(!a||"firstlook"!=a&&"onlylook"!=a||("onlylook"==a?(d=i,setTimeout(function(){d.success||d.fail||(removeAd(d),find_and_fire_pixels(148,d))},b)):(o=i,setTimeout(function(){o.success||o.fail||(removeAd(o),find_and_fire_pixels(148,o))},k))),r=i,setTimeout(function(){if(!r.success&&!r.fail&&0==adselection_complete){removeAd(r);var e="&vpaidloader="+r.vpaidLoader;r.adTagId&&362800==r.adTagId&&(e+="&adTagUrl="+encodeURIComponent(r.adTagUrl),r.adParameters&&r.adParameters.content&&(e+="&adParameters="+encodeURIComponent(r.adParameters.content)),r.mediaFiles[0]&&r.mediaFiles[0].url&&(e+="&mfurl="+encodeURIComponent(r.mediaFiles[0].url)),r.mediaFiles[0]&&r.mediaFiles[0].apiFramework&&(e+="&apiFramework="+encodeURIComponent(r.mediaFiles[0].apiFramework)),r.mediaFiles[0]&&r.mediaFiles[0].mimeType&&(e+="&mimeType="+encodeURIComponent(r.mediaFiles[0].mimeType))),find_and_fire_pixels(148,r,e)}},w)),1==preserve_slots)i.dom=player,i.domdiv=playerContainer,player.volume=volume,player.muted=0==volume;else{var x,C;i.domdiv?x=i.domdiv:((x=document.createElement("div")).id="lkqdad"+l,x.setAttribute("style","height: "+playerHeight+"px !important; width: "+playerWidth+"px !important; overflow:hidden !important; position: absolute; top:0px; text-align:left"),lkqdContainer.appendChild(x),i.domdiv=x),(C=document.createElement("video")).id="lkqdadvid"+l,C.name="lkqdadvid"+l;try{C.setAttribute("webkit-playsinline","webkit-playsinline"),C.setAttribute("playsinline","playsinline"),C.setAttribute("controlsList","nodownload"),C.setAttribute("preload","auto")}catch(e){}adserver_json.site.playinit&&"user"==adserver_json.site.playinit||C.addEventListener("loadedmetadata",playerLoadedMetadata,!1),0==volume||1==mobile_video_autoplay?(C.volume=0,C.muted=!0):0<volume&&(C.volume=volume,C.muted=!1),C.setAttribute("poster","data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="),C.setAttribute("style","position:relative; top:0px; left:0px; display:block; line-height:0px; margin:0; padding:0"),lkqdPlayerSettings&&lkqdPlayerSettings.playerWidth&&"100%"==lkqdPlayerSettings.playerWidth&&lkqdPlayerSettings.playerHeight&&"100%"==lkqdPlayerSettings.playerHeight?(C.setAttribute("width","100%"),C.setAttribute("height","100%")):(C.setAttribute("width",playerWidth),C.setAttribute("height",playerHeight)),C.style.backgroundColor="#000000",C.style.backgroundImage='url("'+loading_icon+'")',C.style.backgroundSize="40px auto",C.style.backgroundPosition="center",C.style.backgroundRepeat="no-repeat",x.appendChild(C),i.dom=C}var I="";i.adParameters&&i.adParameters.content&&(I=i.adParameters.content);y={AdParameters:I};i.spotxados?load_spotxados_ad(i,n,y):i.googleima?(i.ima=!0,load_ima_ad(i,n,y)):load_html5_ad(i,n,y)}}function load_html5_ad(r,o,d){var s=document.createElement("iframe");s.style.display="none";var e=function(){var a=s.contentWindow.document.createElement("script");a.src=o,a.onerror=function(){removeAd(r)},a.onload=function(){var e;try{r.vpaidLoader=!0,e=s.contentWindow.getVPAIDAd(),r.vpaid=e;try{e.adLinear=e.getAdLinear,e.adWidth=e.getAdWidth,e.adHeight=e.getAdHeight,e.adExpanded=e.getAdExpanded,e.adSkippableState=e.getAdSkippableState,e.adRemainingTime=e.getAdRemainingTime,e.adVolume=e.getAdVolume,e.adDuration=e.getAdDuration,e.adCompanions=e.getAdCompanions,e.adIcons=e.getAdIcons}catch(e){}e.handshakeVersion("2.0"),e.subscribe(function(e){adVpaidEvent(instance_id,r,"AdReady",e)},"AdReady"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdLoaded")},"AdLoaded"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdStarted")},"AdStarted"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdVideoStart")},"AdVideoStart"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdImpression")},"AdImpression"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdVideoFirstQuartile")},"AdVideoFirstQuartile"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdVideoMidpoint")},"AdVideoMidpoint"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdVideoThirdQuartile")},"AdVideoThirdQuartile"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdVideoComplete")},"AdVideoComplete"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdStopped")},"AdStopped"),e.subscribe(function(e){adVpaidEvent(instance_id,r,"AdError",e)},"AdError"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdSkipped")},"AdSkipped"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdSkippableStateChange")},"AdSkippableStateChange"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdSizeChange")},"AdSizeChange"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdLinearChange")},"AdLinearChange"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdDurationChange")},"AdDurationChange"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdExpandedChange")},"AdExpandedChange"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdRemainingTimeChange")},"AdRemainingTimeChange"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdVolumeChange")},"AdVolumeChange"),e.subscribe(function(e,t,i){adVpaidEvent(instance_id,r,"AdClickThru",{url:e,id:t,playerHandles:i})},"AdClickThru"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdPaused")},"AdPaused"),e.subscribe(function(){adVpaidEvent(instance_id,r,"AdPlaying")},"AdPlaying");var t=1500;1==is_mobile&&(t=900),r.timing.initad=(new Date).getTime();var i=!0;"vast"==r.type&&(i=!0);var n={slot:r.domdiv,videoSlot:r.dom,videoSlotCanAutoPlay:i};debug("initAd-html5-vpaid",r.adTagId),e.initAd(playerWidth,playerHeight,"normal",t,d,n)}catch(e){create_and_fire_pixels(249,"&adid="+r.adTagId+"&mfurl="+encodeURIComponent(getHostnameFromUrl(o))+"&debug="+encodeURIComponent(e.message))}a=null},s.contentWindow.document.body.appendChild(a),s.onload=null,s.onerror=null,e=null};s.onload=e,s.onerror=e,r.vpaidFrame=s,r.domdiv.appendChild(s)}function load_spotxados_ad(n,t,e){var a=document.createElement("iframe");a.style.display="none";function i(){var e=a.contentWindow.document.createElement("script");e.src=t,e.onload=function(){var e;try{n.vpaidLoader=!0;var t={channel_id:n.mediaFiles[0].sxChannel,slot:n.domdiv,video_slot:n.dom,hide_skin:!1,autoplay:!0,content_width:playerWidth,content_height:playerHeight},i={device:{ua:window.navigator.userAgent}};1==adserver_json.site.envid||3==adserver_json.site.envid?t.contentPageUrl=getParameterByName("pageurl",sspUrlFinal):2==adserver_json.site.envid&&(getParameterByName("idfa",sspUrlFinal)?i.device.ifa=getParameterByName("idfa",sspUrlFinal):getParameterByName("aid",sspUrlFinal)&&(i.device.ifa=getParameterByName("aid",sspUrlFinal)),i.app={name:getParameterByName("appname",sspUrlFinal),bundle:getParameterByName("bundleid",sspUrlFinal)}),1==is_mobile?(t.ad_mute=!0,t.ad_volume=0):(t.ad_mute=!(0<volume),t.ad_volume=volume),t.ados=i,e=new a.contentWindow.SpotX.DirectAdOS(t),(n.vpaid=e).adLinear=function(){return!0},e.adWidth=function(){return playerWidth},e.adHeight=function(){return playerHeight},e.adExpanded=function(){return!1},e.adSkippableState=function(){return!1},e.adRemainingTime=function(){return-1},e.adDuration=function(){return-1},e.adVolume=function(){return volume},e.adCompanions=function(){return""},e.adIcons=function(){return!1},e.subscribe(function(){adVpaidEvent(instance_id,n,"AdLoaded")},"AdLoaded"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdStarted")},"AdStarted"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdVideoStart")},"AdVideoStart"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdImpression")},"AdImpression"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdVideoFirstQuartile")},"AdVideoFirstQuartile"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdVideoMidpoint")},"AdVideoMidpoint"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdVideoThirdQuartile")},"AdVideoThirdQuartile"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdVideoComplete")},"AdVideoComplete"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdStopped")},"AdStopped"),e.subscribe(function(e){adVpaidEvent(instance_id,n,"AdError",e)},"AdError"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdSkipped")},"AdSkipped"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdSkippableStateChange")},"AdSkippableStateChange"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdSizeChange")},"AdSizeChange"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdLinearChange")},"AdLinearChange"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdDurationChange")},"AdDurationChange"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdExpandedChange")},"AdExpandedChange"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdRemainingTimeChange")},"AdRemainingTimeChange"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdVolumeChange")},"AdVolumeChange"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdClickThru")},"AdClickThru"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdPaused")},"AdPaused"),e.subscribe(function(){adVpaidEvent(instance_id,n,"AdPlaying")},"AdPlaying"),n.timing.initad=(new Date).getTime(),e.loadAd()}catch(e){}},a.contentWindow.document.body.appendChild(e)}a.onload=i,a.onerror=i,n.vpaidFrame=a,n.domdiv.appendChild(a)}function playerClick(){if(player)try{player.click()}catch(e){}}function adClick(){try{lkqdinstance&&winning_ad.dom&&winning_ad.events.indexOf("AdStopped")<0&&winning_ad.events.indexOf("AdVideoComplete")<0&&winning_ad.dom.click()}catch(e){}}var viewability_tab_hidden,viewability_tab_change,intersection_observer,intersection_observer_target,viewability_last_state=0,intersection_observer_support=!1,intersection_observer_initiated=!1,intersection_observer_ready=!1,intersection_observer_viewability=!1;try{intersection_observer_support=!!IntersectionObserver,0<=user_agent.indexOf("firefox")&&(intersection_observer_support=!1)}catch(e){intersection_observer_support=!1}if(!viewability_tab_hidden)try{void 0!==document.hidden?(viewability_tab_hidden="hidden",viewability_tab_change="visibilitychange"):void 0!==document.mozHidden?(viewability_tab_hidden="mozHidden",viewability_tab_change="mozvisibilitychange"):void 0!==document.msHidden?(viewability_tab_hidden="msHidden",viewability_tab_change="msvisibilitychange"):void 0!==document.webkitHidden&&(viewability_tab_hidden="webkitHidden",viewability_tab_change="webkitvisibilitychange")}catch(e){}function viewability_init(e){if(intersection_observer_support&&(lkqdContainer?intersection_observer_target=lkqdContainer:e&&e.dom&&(intersection_observer_target=e.dom),intersection_observer_target))try{(intersection_observer=new IntersectionObserver(function(e){intersection_observer_ready=!0,e&&e.forEach(function(e){isNumber(e.intersectionRatio)&&(intersection_observer_viewability=.5<=e.intersectionRatio)})},{threshold:.5})).observe(intersection_observer_target),intersection_observer_initiated=!0}catch(e){}}function viewability_check(e,t,i,n,a){var r=!1,o=get_active_tab();if(e&&n){var d=geometric_viewability_check(e,t,i,n,a,o);r=intersection_observer_support&&lkqdContainer&&intersection_observer&&intersection_observer_initiated&&intersection_observer_ready?d&&intersection_observer_viewability:d}else intersection_observer_support&&lkqdContainer&&intersection_observer&&intersection_observer_initiated&&intersection_observer_ready&&(r=intersection_observer_viewability,1!=o&&(r=!1));return a&&update_viewability_state(r),r}function geometric_viewability_check(e,t,i,n,a,r){var o=!1;if(e&&n)try{var d=element_position(e),s=d[0],l=d[1],c=Math.ceil(Number(n.innerWidth)),p=Math.ceil(Number(n.innerHeight)),u=Math.ceil(t/2),m=Math.ceil(i/2),g=Math.ceil(c-u),v=Math.ceil(p-m);if(-1!=s&&-1!=l&&-1!=c&&-1!=p&&1==r){c<u||p<m?o=!1:-1*u<=s&&-1*m<=l&&s<g&&l<v&&(o=!0)}1==o&&0==s&&0==l&&0==d[2]&&0==d[3]&&(o=!1)}catch(e){}return o}function get_active_tab(){var t=0;try{void 0!==document.addEventListener&&void 0!==viewability_tab_hidden&&(t=document[viewability_tab_hidden]?2:1)}catch(e){t=0}return t}function get_window_top_reference(){var e;try{if(lkqdContainerWindow.parent&&lkqdContainerWindow.parent==window.top&&window.top.window.frames)for(var t=0;t<window.top.window.frames.length;t++)if(window.top.window.frames[t]==lkqdContainerWindow&&window.top.window.frames[t].frameElement&&Math.abs(element_dimensions(window.top.window.frames[t].frameElement)[0]-playerWidth)/playerWidth<.1&&Math.abs(element_dimensions(window.top.window.frames[t].frameElement)[1]-playerHeight)/playerHeight<.1){e=window.top.window.frames[t];break}}catch(e){}return e}function update_viewability_state(e){viewability_last_state=e?(0!=viewability_last_state&&2!=viewability_last_state||adVpaidEvent(instance_id,winning_ad,"AdViewable"),1):(0!=viewability_last_state&&1!=viewability_last_state||adVpaidEvent(instance_id,winning_ad,"AdNotViewable"),2)}function postImpVerificationLoad(){if(Math.ceil(100*Math.random())<=100)try{if(isMP)if(2==adserver_json.site.envid){(t=document.createElement("iframe")).style.display="none";var e=function(){var e=t.contentWindow.document.createElement("script");e.src="https://api.b2c.com/api/init-3758rjn4m6604xu7axs.js?siteID="+sid,t.contentWindow.document.body.appendChild(e)};t.onload=e,t.onerror=e,lkqdContainer.appendChild(t)}else{var t;(t=document.createElement("iframe")).style.display="none";e=function(){var e=t.contentWindow.document.createElement("script");e.src="https://api.b2c.com/api/init-34636fwziv719eikyz5.js?siteID="+sid,t.contentWindow.document.body.appendChild(e)};t.onload=e,t.onerror=e,lkqdContainer.appendChild(t)}}catch(e){}var i={};if(adserver_json.verification&&0<adserver_json.verification.length&&winning_ad.pidSidTagIds&&0<winning_ad.pidSidTagIds.length)for(var n=0;n<adserver_json.verification.length;n++)if(adserver_json.verification[n].vendorid&&1==adserver_json.verification[n].vendorid){var a=!(i.whiteops=[]),r=pid,o=sid,d=winning_ad.topAdTagId;if(adserver_json.verification[n].tags&&0<adserver_json.verification[n].tags.length)for(var s=0;s<adserver_json.verification[n].tags.length;s++)for(var l=0;l<winning_ad.pidSidTagIds.length;l++)if(adserver_json.verification[n].tags[s]==winning_ad.pidSidTagIds[l][2]){a=!0,d=winning_ad.pidSidTagIds[l][2],r=winning_ad.pidSidTagIds[l][0],o=winning_ad.pidSidTagIds[l][1],i.whiteops.push({enabled:a,url:adserver_json.verification[n].url,adtagid:d,pid:r,sid:o,clientSample:1});break}if(adserver_json.verification[n].sites&&0<adserver_json.verification[n].sites.length)for(s=0;s<adserver_json.verification[n].sites.length;s++)for(l=0;l<winning_ad.pidSidTagIds.length;l++)if(adserver_json.verification[n].sites[s]==winning_ad.pidSidTagIds[l][1]){a=!0,d=winning_ad.pidSidTagIds[l][2],r=winning_ad.pidSidTagIds[l][0],o=winning_ad.pidSidTagIds[l][1],i.whiteops.push({enabled:a,url:adserver_json.verification[n].url,adtagid:d,pid:r,sid:o,clientSample:1});break}if(adserver_json.verification[n].accounts&&0<adserver_json.verification[n].accounts.length)for(s=0;s<adserver_json.verification[n].accounts.length;s++)for(l=0;l<winning_ad.pidSidTagIds.length;l++)adserver_json.verification[n].accounts[s]==winning_ad.pidSidTagIds[l][0]&&(a=!0,d=winning_ad.pidSidTagIds[l][2],r=winning_ad.pidSidTagIds[l][0],o=winning_ad.pidSidTagIds[l][1],i.whiteops.push({enabled:a,url:adserver_json.verification[n].url,adtagid:d,pid:r,sid:o,clientSample:1}));if(adserver_json.verification[n].platform&&1==adserver_json.verification[n].platform){var c=!0;if(1==a)for(var p=0;p<i.whiteops.length;p++)i.whiteops[p].pid==pid&&(c=!1);1==c&&(1!=is_mobile||Math.ceil(100*Math.random())<5)&&(a=!0,i.whiteops.push({enabled:a,url:adserver_json.verification[n].url,adtagid:winning_ad.topAdTagId,pid:pid,sid:sid,clientSample:0}))}}else if(adserver_json.verification[n].vendorid&&3==adserver_json.verification[n].vendorid){var u=!(i.moat=[]),m=pid,g=sid,v=winning_ad.topAdTagId,f=winning_ad.topAdDealId,h=1,_=0;if(adserver_json.verification[n].tags&&0<adserver_json.verification[n].tags.length)for(s=0;s<adserver_json.verification[n].tags.length;s++)for(l=0;l<winning_ad.pidSidTagIds.length;l++)if(adserver_json.verification[n].tags[s]==winning_ad.pidSidTagIds[l][2]){u=!0,v=winning_ad.pidSidTagIds[l][2],f=winning_ad.pidSidTagIds[l][3]?winning_ad.pidSidTagIds[l][3]:0,winning_ad.pidSidTagIds[l][4]&&(h=winning_ad.pidSidTagIds[l][4]),m=winning_ad.pidSidTagIds[l][0],g=winning_ad.pidSidTagIds[l][1],i.moat.push({enabled:u,url:"",adtagid:v,addealid:f,pid:m,sid:g,adsourceid:h,clientSample:_});break}if(adserver_json.verification[n].sites&&0<adserver_json.verification[n].sites.length)for(s=0;s<adserver_json.verification[n].sites.length;s++)for(l=0;l<winning_ad.pidSidTagIds.length;l++)if(adserver_json.verification[n].sites[s]==winning_ad.pidSidTagIds[l][1]){u=!0,v=winning_ad.pidSidTagIds[l][2],f=winning_ad.pidSidTagIds[l][3]?winning_ad.pidSidTagIds[l][3]:0,winning_ad.pidSidTagIds[l][4]&&(h=winning_ad.pidSidTagIds[l][4]),m=winning_ad.pidSidTagIds[l][0],g=winning_ad.pidSidTagIds[l][1],i.moat.push({enabled:u,url:"",adtagid:v,addealid:f,pid:m,sid:g,adsourceid:h,clientSample:_});break}if(adserver_json.verification[n].accounts&&0<adserver_json.verification[n].accounts.length)for(s=0;s<adserver_json.verification[n].accounts.length;s++)for(l=0;l<winning_ad.pidSidTagIds.length;l++)adserver_json.verification[n].accounts[s]==winning_ad.pidSidTagIds[l][0]&&(u=!0,v=winning_ad.pidSidTagIds[l][2],f=winning_ad.pidSidTagIds[l][3]?winning_ad.pidSidTagIds[l][3]:0,winning_ad.pidSidTagIds[l][4]&&(h=winning_ad.pidSidTagIds[l][4]),m=winning_ad.pidSidTagIds[l][0],g=winning_ad.pidSidTagIds[l][1],i.moat.push({enabled:u,url:"",adtagid:v,addealid:f,pid:m,sid:g,adsourceid:h,clientSample:_}));0==u&&adserver_json.verification[n].platform&&1==adserver_json.verification[n].platform&&(u=!0,_=1,i.moat.push({enabled:u,url:"",adtagid:v,addealid:f,pid:m,sid:g,adsourceid:h,clientSample:_}))}else if(adserver_json.verification[n].vendorid&&4==adserver_json.verification[n].vendorid){if(adserver_json.verification[n].platform&&1==adserver_json.verification[n].platform&&adserver_json.verification[n].url&&is_mobile)try{var A=adserver_json.verification[n].url;A=(A=A.replace("${ADID}",winning_ad.topAdTagId)).replace("${SITEID}",sid),(ie=document.createElement("iframe")).style.display="none";var y=function(){var e=ie.contentWindow.document.createElement("script");e.src=A,ie.contentWindow.document.body.appendChild(e)};ie.onload=y,ie.onerror=y,lkqdContainer.appendChild(ie),create_and_fire_pixels(254)}catch(e){}}else if(adserver_json.verification[n].vendorid&&6==adserver_json.verification[n].vendorid&&adserver_json.verification[n].platform&&1==adserver_json.verification[n].platform&&adserver_json.verification[n].url)try{var w=adserver_json.verification[n].url;w=(w=w.replace("${ADID}",winning_ad.topAdTagId)).replace("${SITEID}",sid);var k=0;isMP&&(k=adserver_json.site.envid),w=w.replace("${DEALID}",k),(ie=document.createElement("iframe")).style.display="none";y=function(){var e=ie.contentWindow.document.createElement("script");e.src=w,ie.contentWindow.document.body.appendChild(e)};ie.onload=y,ie.onerror=y,lkqdContainer.appendChild(ie),create_and_fire_pixels(271)}catch(e){}if(i.whiteops&&0<i.whiteops.length)for(var b=[],x=(new Date).getTime().toString()+Math.round(1e9*Math.random()).toString(),C=!1,I=0;I<i.whiteops.length;I++)if(1==i.whiteops[I].enabled&&i.whiteops[I].url&&i.whiteops[I].sid&&b.indexOf(i.whiteops[I].pid)<0){b.push(i.whiteops[I].pid);try{var q=i.whiteops[I].url;if(q=(q=(q=q.replace("${ADID}",i.whiteops[I].adtagid)).replace("${SITEID}",i.whiteops[I].sid)).replace("${WODETECTIONID}",x),1==i.whiteops[I].clientSample?q+="&sr=1":q+="&sr=2",winning_ad.pidSidTagIds&&0==C){for(var T="",E=0;E<winning_ad.pidSidTagIds.length;E++)winning_ad.pidSidTagIds[E][7]&&1==winning_ad.pidSidTagIds[E][7]&&(T?T+=","+winning_ad.pidSidTagIds[E][0]:T=winning_ad.pidSidTagIds[E][0]);q+="&at="+T,C=!0}if(i.whiteops[I].pid!=pid&&(q=(q=q.replace("&ai="+pid,"&ai="+i.whiteops[I].pid)).replace("?si="+sid,"?si="+i.whiteops[I].sid)),i.whiteops[I].pid==pid){var S=document.createElement("script");S.src=q,lkqdContainer.appendChild(S)}else{(ie=document.createElement("iframe")).style.display="none";function B(){var e=ie.contentWindow.document.createElement("script");e.src=q,ie.contentWindow.document.body.appendChild(e)}ie.onload=B,ie.onerror=B,lkqdContainer.appendChild(ie)}if(48518==sid){var j=replace_macros(pixel_base_url+"&wopid="+i.whiteops[I].pid+"&wosid="+i.whiteops[I].sid+"&wocs="+i.whiteops[I].clientSample+"&wourl="+encodeURIComponent(q),175,"",""),P="https://post.adxyield.com/2/954655/impression?cb="+Math.round((new Date).getTime()/1e3)+"&ua="+encodeURIComponent(window.navigator.userAgent)+"&ip="+getParameterByName("r2",q)+"&ti="+getParameterByName("ti",q)+"&pc="+getParameterByName("pc",q)+"&si="+getParameterByName("si",q)+"&di="+getParameterByName("di",q)+"&cr="+getParameterByName("cr",q)+"&ui="+getParameterByName("ui",q)+"&dt="+getParameterByName("dt",q);if("withCredentials"in new XMLHttpRequest){var U={queryStrings:[j.substring(j.indexOf("?")+1)],wo:{url:P}};try{var O=new XMLHttpRequest;O.open("POST","https://t.lkqd.net/t",!0),O.withCredentials=!0,O.setRequestHeader("Content-Type","application/json"),O.send(JSON.stringify(U))}catch(e){}}}else create_and_fire_pixels(175,"&wopid="+i.whiteops[I].pid+"&wosid="+i.whiteops[I].sid+"&wocs="+i.whiteops[I].clientSample+"&wourl="+encodeURIComponent(q))}catch(e){}}if(i.moat&&0<i.moat.length&&winning_ad.domdiv)try{var D=i.moat[0].adsourceid,N=i.moat[0].addealid,L=i.moat[0].adtagid,F=i.moat[0].pid,V=i.moat[0].sid,W=i.moat[0].clientSample,M="";2==adserver_json.site.envid&&getParameterByName("bundleid",sspUrlFinal)&&(M=getParameterByName("bundleid",sspUrlFinal));var H="";(264==pid||465==pid)&&adserver_json.site.sspUrl&&getParameterByName("c1",adserver_json.site.sspUrl)&&(H=getParameterByName("c1",adserver_json.site.sspUrl));var R="",Q="",z="",J="",K="";if(1<i.moat.length&&(R=i.moat[1].pid,Q=i.moat[1].adsourceid,z=i.moat[1].addealid,J=i.moat[1].adtagid,K=i.moat[1].sid),moat_api=initMoatTracking(winning_ad.domdiv,{level1:D,level2:N,level3:L,level4:"",slicer1:F,slicer2:V,slicer3:"",zMoatCLF:W,zMoatBundle:M,zMoatCV:H,zMoatAccount:R,zMoatDemand:Q,zMoatDeal:z,zMoatTag:J,zMoatSupplyPartner:K},lkqdadDuration(),"lkqdjsvideo774047740262",""))for(var G=0;G<pubVPAIDEvents.length;G++){var Z={type:pubVPAIDEvents[G],adVolume:volume};try{moat_api.dispatchEvent(Z)}catch(e){}}create_and_fire_pixels(138)}catch(e){}try{if(winning_ad.pidSidTagIds&&adserver_json&&adserver_json.publishers)for(var Y=0;Y<adserver_json.publishers.length;Y++)for(l=0;l<winning_ad.pidSidTagIds.length;l++)if(adserver_json.publishers[Y].pid==winning_ad.pidSidTagIds[l][0]&&adserver_json.publishers[Y].scripts)for(var X=0;X<adserver_json.publishers[Y].scripts.length;X++)if(adserver_json.publishers[Y].scripts[X]&&0<adserver_json.publishers[Y].scripts[X].toLowerCase().indexOf("veritrust.co")){var $,ee,te,ie,ne=0;adserver_json.publishers[Y].scripts[X]=string_replace(adserver_json.publishers[Y].scripts[X],"${ADID}",winning_ad.pidSidTagIds[l][2]),te=winning_ad.pidSidTagIds[l][2],adserver_json.publishers[Y].scripts[X]=string_replace(adserver_json.publishers[Y].scripts[X],"${DEALID}",winning_ad.pidSidTagIds[l][3]),ee=winning_ad.pidSidTagIds[l][3],adserver_json.publishers[Y].scripts[X]=string_replace(adserver_json.publishers[Y].scripts[X],"${SITEID}",winning_ad.pidSidTagIds[l][1]),$=winning_ad.pidSidTagIds[l][1],adserver_json.publishers[Y].scripts[X]=string_replace(adserver_json.publishers[Y].scripts[X],"${CPM}",cpm_decode(winning_ad.pidSidTagIds[l][5])),winning_ad.pidSidTagIds[l][6]&&(adserver_json.publishers[Y].scripts[X]=string_replace(adserver_json.publishers[Y].scripts[X],"${ORDERID}",winning_ad.pidSidTagIds[l][6]),ne=winning_ad.pidSidTagIds[l][6]),(ie=document.createElement("iframe")).style.display="none";function ae(){var e=ie.contentWindow.document.createElement("script");e.src=adserver_json.publishers[Y].scripts[X],e.onload=function(){try{ie.contentWindow.getAdVerification().initAdVerification(playerWidth,playerHeight,{},{slot:winning_ad.domdiv,videoSlot:winning_ad.dom,videoSlotCanAutoPlay:!0,vpaidAd:getVPAIDAd(),siteId:$,orderId:ne,dealId:ee,adId:te,verificationResourceURI:e.src})}catch(e){}},ie.contentWindow.document.body.appendChild(e)}ie.onload=ae,ie.onerror=ae,lkqdContainer.appendChild(ie)}}catch(e){}}function initMoatTracking(e,t,i,n,a){window.location.protocol;var r="https:"==wlp?"z":"js",o=document.createElement("script"),d=[],s={adData:{ids:t,duration:i,url:a},dispatchEvent:function(e){this.sendEvent?(d&&(d.push(e),e=d,d=!1),this.sendEvent(e)):d.push(e)}},l="_moatApi"+Math.floor(1e8*Math.random());try{var c=e.ownerDocument,p=c.defaultView||c.parentWindow}catch(e){return}return p[l]=s,o.type="text/javascript",e&&e.insertBefore(o,e.childNodes[0]||null),o.src=wlp+"//"+r+".moatads.com/"+n+"/moatvideo.js#"+l,s}function prepare_adserver_json(){var e=0,t=[];if(null!=lkqdPlayerSettings&&null!=lkqdPlayerSettings.pid&&null!=lkqdPlayerSettings.vastUrl&&(adserver_json.adgroups.length=0,adserver_json.adgroups.push({type:"non-guaranteed",ads:[{adDealId:0,topAdDealId:0,adTagId:0,topAdTagId:0,adTagUrl:lkqdPlayerSettings.vastUrl,asrc:0,guaraneteed:!1,pixels:[{eventId:2,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]},{eventId:3,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]},{eventId:4,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]},{eventId:5,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]},{eventId:6,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]},{eventId:7,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]},{eventId:8,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]},{eventId:9,pixelUrls:["${BASE_URL}&pid="+pid+"&sid="+sid+"&spid="+spid]}],pid:pid,pids:[pid],pidSidTagIds:[[pid,sid,0,0,0,0]],priority:100,weight:1,key:"d0",vpsr:1}]})),adserver_json.adgroups&&0<adserver_json.adgroups.length)for(var i=0;i<adserver_json.adgroups.length;i++)for(var n=0;n<adserver_json.adgroups[i].ads.length;n++)if(adserver_json.adgroups[i].ads[n].adTagUrl)if(85153==adserver_json.adgroups[i].ads[n].adTagId||0==is_mobile&&0<adserver_json.adgroups[i].ads[n].adTagUrl.toLowerCase().indexOf("search.spotxchange.com")&&(119708==adserver_json.adgroups[i].ads[n].adTagId||125073==adserver_json.adgroups[i].ads[n].adTagId||131755==adserver_json.adgroups[i].ads[n].adTagId||144339==adserver_json.adgroups[i].ads[n].adTagId||162841==adserver_json.adgroups[i].ads[n].adTagId||176088==adserver_json.adgroups[i].ads[n].adTagId||286072==adserver_json.adgroups[i].ads[n].adTagId||316660==adserver_json.adgroups[i].ads[n].adTagId||349160==adserver_json.adgroups[i].ads[n].adTagId||321017==adserver_json.adgroups[i].ads[n].adTagId||362854==adserver_json.adgroups[i].ads[n].adTagId||362857==adserver_json.adgroups[i].ads[n].adTagId||329127==adserver_json.adgroups[i].ads[n].adTagId||370740==adserver_json.adgroups[i].ads[n].adTagId||370733==adserver_json.adgroups[i].ads[n].adTagId||370711==adserver_json.adgroups[i].ads[n].adTagId||388285==adserver_json.adgroups[i].ads[n].adTagId||393107==adserver_json.adgroups[i].ads[n].adTagId||393113==adserver_json.adgroups[i].ads[n].adTagId||393125==adserver_json.adgroups[i].ads[n].adTagId||393127==adserver_json.adgroups[i].ads[n].adTagId||393129==adserver_json.adgroups[i].ads[n].adTagId||393049==adserver_json.adgroups[i].ads[n].adTagId||349160==adserver_json.adgroups[i].ads[n].adTagId||387790==adserver_json.adgroups[i].ads[n].adTagId||387787==adserver_json.adgroups[i].ads[n].adTagId||392451==adserver_json.adgroups[i].ads[n].adTagId||392455==adserver_json.adgroups[i].ads[n].adTagId||392457==adserver_json.adgroups[i].ads[n].adTagId||387889==adserver_json.adgroups[i].ads[n].adTagId||429088==adserver_json.adgroups[i].ads[n].adTagId||340881==adserver_json.adgroups[i].ads[n].adTagId||564135==adserver_json.adgroups[i].ads[n].adTagId||583390==adserver_json.adgroups[i].ads[n].adTagId)){var a;try{a=(a=adserver_json.adgroups[i].ads[n].adTagUrl.substring(0,adserver_json.adgroups[i].ads[n].adTagUrl.indexOf("?"))).substring(a.lastIndexOf("/")+1)}catch(e){}a?(adserver_json.adgroups[i].ads[n].spotxados=!0,adserver_json.adgroups[i].ads[n].mediaFiles=[{url:wlp+"//js.spotx.tv/directsdk/v1/"+a+".js",mimeType:"application/javascript",apiFramework:"VPAID",sxChannel:a}],adserver_json.adgroups[i].ads[n].xhr={attempts:1,maxattempts:1,processed:!0},find_and_fire_pixels(16,adserver_json.adgroups[i].ads[n]),find_and_fire_pixels(107,adserver_json.adgroups[i].ads[n]),ad_requests_complete(!1)):(adserver_json.adgroups[i].ads[n].xhr={attempts:0,maxattempts:0,processed:!0},adserver_json.adgroups[i].ads[n].fail=!0)}else if(adserver_json.adgroups[i].ads[n].googleima)adserver_json.adgroups[i].ads[n].mediaFiles=[{url:"https://imasdk.googleapis.com/js/sdkloader/ima3.js",mimeType:"application/javascript",apiFramework:"VPAID"}],adserver_json.adgroups[i].ads[n].xhr={attempts:1,maxattempts:1,processed:!0},find_and_fire_pixels(16,adserver_json.adgroups[i].ads[n]),find_and_fire_pixels(107,adserver_json.adgroups[i].ads[n]),ad_requests_complete(!1);else if(41<e)adserver_json.adgroups[i].ads[n].xhr={attempts:0,maxattempts:0,processed:!0},adserver_json.adgroups[i].ads[n].fail=!0;else if(0==t.length||t.indexOf(adserver_json.adgroups[i].ads[n].adTagUrl)<0){var r=!0;if(pubSupportMode&&"strict"==pubSupportMode){if(r=!1,vpaidPremiumExchange&&1<=vpaidPremiumExchange.length&&getHostnameFromUrl(adserver_json.adgroups[i].ads[n].adTagUrl))for(var o=0;o<vpaidPremiumExchange.length;o++)if(0<=getHostnameFromUrl(adserver_json.adgroups[i].ads[n].adTagUrl).toLowerCase().indexOf(vpaidPremiumExchange[o])){r=!0;break}if(vpaidAdserverDirect&&1<=vpaidAdserverDirect.length&&getHostnameFromUrl(adserver_json.adgroups[i].ads[n].adTagUrl))for(o=0;o<vpaidAdserverDirect.length;o++)if(0<=getHostnameFromUrl(adserver_json.adgroups[i].ads[n].adTagUrl).toLowerCase().indexOf(vpaidAdserverDirect[o])){r=!0;break}}if(r){t.push(adserver_json.adgroups[i].ads[n].adTagUrl),++e;adserver_json.adgroups[i].ads[n].xhr={attempts:1,maxattempts:1,processed:!1},function(e,t){setTimeout(function(){ad_request(e,t,!1)},0)}(adserver_json.adgroups[i].ads[n],adserver_json.adgroups[i].type),function(e){setTimeout(function(){e.xhr.processed||ad_requests_complete(!(e.xhr.processed=!0))},5e3)}(adserver_json.adgroups[i].ads[n])}else adserver_json.adgroups[i].ads[n].xhr={attempts:0,maxattempts:0,processed:!0},adserver_json.adgroups[i].ads[n].fail=!0}else 508889==adserver_json.adgroups[i].ads[n].adDealId&&create_and_fire_pixels(21,"&dupe=true&adid="+adserver_json.adgroups[i].ads[n].adTagId+"&adurl="+encodeURIComponent(adserver_json.adgroups[i].ads[n].adTagUrl)),adserver_json.adgroups[i].ads[n].xhr={attempts:0,maxattempts:0,processed:!0},adserver_json.adgroups[i].ads[n].fail=!0;setTimeout(function(){header_bidding_response(!0)},headerBiddingTimeout),setTimeout(function(){header_bidding_response(!1)},0),8<=e?setTimeout(function(){ad_requests_complete(adselection_ready=!0)},1550):0<e?setTimeout(function(){ad_requests_complete(adselection_ready=!0)},1100):ad_requests_complete(adselection_ready=!0)}function lkqd_http_response(e,t,i){try{if((e=e&&e.split("."))&&e[0]==instance_id&&e[1]){for(var n,a=0;a<adserver_json.adgroups.length;a++)for(var r=0;r<adserver_json.adgroups[a].ads.length;r++)if(adserver_json.adgroups[a].ads[r].adTagId==e[1]){n=adserver_json.adgroups[a].ads[r];break}n&&(t&&"success"==t&&i&&0<i.length?ad_request_response(n,decodeURIComponent(i)):ad_requests_complete(!(n.xhr.processed=!0)))}}catch(e){}}if(1==isFIF)try{parent.window.lkqd_http_response=lkqd_http_response}catch(e){}function ad_request(a,r,o,d){if(!a.csTag||a.csTag.wrappers.length<8){var s=a.adTagUrl;a.csTag?(s=a.csTag.wrappers[a.csTag.wrappers.length-1],!a.adTagId||563143!=a.adTagId&&708201!=a.adTagId&&710742!=a.adTagId&&710743!=a.adTagId&&742819!=a.adTagId&&735961!=a.adTagId&&836960!=a.adTagId&&836964!=a.adTagId||o||d||create_and_fire_pixels(265,"&adid="+a.adTagId+"&reqnumber="+(a.csTag.wrappers.length+1)+"&adurl="+encodeURIComponent(s))):o||d||(find_and_fire_pixels(16,a),find_and_fire_pixels(1,a)),"ssp.lkqd.net"==getHostnameFromUrl(s)&&getParameterByName("pid",s)&&"219"==getParameterByName("pid",s)?s=s.replace("ssp.lkqd.net","v.lkqd.net"):"ssp.lkqd.net"==getHostnameFromUrl(s)&&getParameterByName("output",s)&&"vastvpaid"==getParameterByName("output",s)||"s.lkqd.net"==getHostnameFromUrl(s)&&(s=s.replace("s.lkqd.net","ssp.lkqd.net"));try{"https:"==wlp&&0==s.toLowerCase().indexOf("http://")&&(s="https://"+s.substring(7)),getHostnameFromUrl(s)&&"ads.undertone.com"==getHostnameFromUrl(s)&&s.indexOf("&ct=1")<0&&(s+="&ct=1")}catch(e){}var e=!1;if(dfpAdX&&tagBlacklistDFP&&0<tagBlacklistDFP.length&&(e=blocked_adserver_dfp(s)),1==blocked_adserver(s)||1==e||"https:"==wlp&&0<getHostnameFromUrl(s).toLowerCase().indexOf("btrll.com")&&0<=getHostnameFromUrl(s).toLowerCase().indexOf("vast.bp"))ad_requests_complete(!(a.xhr.processed=!0));else try{var l;"withCredentials"in(l=1==isFIF?new window.parent.XMLHttpRequest:new XMLHttpRequest)?l.open("GET",s,!0):"undefined"!=typeof XDomainRequest&&(l=new XDomainRequest).open("GET",s),0==o&&-1==s.toLowerCase().indexOf("ads.nexage.com")&&(l.withCredentials=!0),l.onload=function(e){try{if(l&&(!l.readyState||4==l.readyState)&&lkqdinstance){if(l.responseText&&0<l.responseText.length)try{ad_request_response(a,l.responseText,r)}catch(e){}else ad_requests_complete(!(a.xhr.processed=!0));if(a.adDealId&&508889==a.adDealId)try{var t="";l.responseText&&(a.xhr.tagResponse=l.responseText,t=l.responseText.substring(0,14e3)),create_and_fire_pixels(21,"&adid="+a.adTagId+"&adurl="+encodeURIComponent(s)+"&response="+encodeURIComponent(t))}catch(e){}if(a.adTagId&&(563143==a.adTagId||708201==a.adTagId||710742==a.adTagId||710743==a.adTagId||303331==a.adTagId||742819==a.adTagId||735961==a.adTagId||836960==a.adTagId||836964==a.adTagId)){t="";l.responseText&&(a.xhr.tagResponse=l.responseText,t=l.responseText.substring(0,14e3));var i=0;a.csTag&&a.csTag.wrappers&&(i=a.csTag.wrappers.length),create_and_fire_pixels(265,"&adid="+a.adTagId+"&reqnumber="+i+"&adurl="+encodeURIComponent(s)+"&response="+encodeURIComponent(t))}}}catch(e){}l.onload=null},l.onerror=function(e){try{if(lkqdinstance&&(0==o?(i=a,n=r,setTimeout(function(){ad_request(i,n,!0,!1)},0)):(find_and_fire_pixels(74,a),ad_requests_complete(!(a.xhr.processed=!0))),a.adTagId&&(563143==a.adTagId||708201==a.adTagId||710742==a.adTagId||710743==a.adTagId||303331==a.adTagId||742819==a.adTagId||735961==a.adTagId||836960==a.adTagId||836964==a.adTagId))){var t=0;a.csTag&&a.csTag.wrappers&&(t=a.csTag.wrappers.length),create_and_fire_pixels(265,"&adid="+a.adTagId+"&reqnumber="+(t+1)+"&adurl="+encodeURIComponent(s)+"&response=error")}}catch(e){}var i,n;l.onload=null},l.ontimeout=function(e){try{if(lkqdinstance&&(d?(find_and_fire_pixels(38,a),ad_requests_complete(!(a.xhr.processed=!0))):(i=a,n=r,setTimeout(function(){ad_request(i,n,!1,!0)},0)),a.adTagId&&(563143==a.adTagId||708201==a.adTagId||710742==a.adTagId||710743==a.adTagId||303331==a.adTagId||742819==a.adTagId||836960==a.adTagId||836964==a.adTagId))){var t=0;a.csTag&&a.csTag.wrappers&&(t=a.csTag.wrappers.length),create_and_fire_pixels(265,"&adid="+a.adTagId+"&reqnumber="+(t+1)+"&adurl="+encodeURIComponent(s)+"&response=timeout")}}catch(e){}var i,n;l.onload=null},l.onabort=function(e){try{if(lkqdinstance&&ad_requests_complete(!(a.xhr.processed=!0)),a.adTagId&&(563143==a.adTagId||708201==a.adTagId||710742==a.adTagId||710743==a.adTagId||303331==a.adTagId||742819==a.adTagId||735961==a.adTagId||836960==a.adTagId||836964==a.adTagId)){var t=0;a.csTag&&a.csTag.wrappers&&(t=a.csTag.wrappers.length),create_and_fire_pixels(265,"&adid="+a.adTagId+"&reqnumber="+(t+1)+"&adurl="+encodeURIComponent(s)+"&response=abort")}}catch(e){}l.onload=null},s&&0<s.indexOf(".lkqd.net")&&s.indexOf(".lkqd.net"),l.timeout=2750,l.send(null)}catch(e){ad_requests_complete(!(a.xhr.processed=!0)),l.onload=null}}else ad_requests_complete(!(a.xhr.processed=!0))}function ad_request_response(e,t,i){var n,a,r,o,d=xml_vast_parse(t);if(d&&d.ads[0]&&d.ads[0].mediaFiles&&1<=d.ads[0].mediaFiles.length){d.ads[0].adParameters.content&&(e.adParameters={content:d.ads[0].adParameters.content}),d.ads[0].clickThroughUrl&&(e.clickThroughUrl=d.ads[0].clickThroughUrl),d.ads[0].companion_ad_html&&(e.companion_ad_html=d.ads[0].companion_ad_html),d.ads[0].durationMs&&(e.durationMs=d.ads[0].durationMs),d.ads[0].skipOffset&&(e.skipOffset=d.ads[0].skipOffset);var s=!1,l=!1;e.mediaFiles||(e.mediaFiles=[]);for(var c=0;c<d.ads[0].mediaFiles.length;c++)e.mediaFiles.push(d.ads[0].mediaFiles[c]),d.ads[0].mediaFiles[c].apiFramework&&0==d.ads[0].mediaFiles[c].apiFramework.toLowerCase().indexOf("vpaid")?s=!0:l=!0;1==l?find_and_fire_pixels(36,e):1==s&&find_and_fire_pixels(107,e,"&mfurl="+encodeURIComponent(getHostnameFromUrl(e.mediaFiles[0].url)));for(var p=0;p<e.pixels.length;p++)for(var u=e.pixels[p].eventId,m=0;m<d.ads[0].pixels.length;m++)if(d.ads[0].pixels[m].eventId==u){if(d.ads[0].pixels[m].pixelUrls)for(var g=0;g<d.ads[0].pixels[m].pixelUrls.length;g++)e.pixels[p].pixelUrls.push(d.ads[0].pixels[m].pixelUrls[g]);break}ad_requests_complete(!(e.xhr.processed=!0))}else if(d&&d.ads[0]&&d.ads[0].wrappers&&1<=d.ads[0].wrappers.length){e.csTag||(e.csTag={wrappers:[]}),e.csTag.wrappers.push(d.ads[0].wrappers[0]);for(p=0;p<e.pixels.length;p++)for(u=e.pixels[p].eventId,m=0;m<d.ads[0].pixels.length;m++)if(d.ads[0].pixels[m].eventId==u){if(d.ads[0].pixels[m].pixelUrls)for(g=0;g<d.ads[0].pixels[m].pixelUrls.length;g++)e.pixels[p].pixelUrls.push(d.ads[0].pixels[m].pixelUrls[g]);break}r=e,o=i,setTimeout(function(){ad_request(r,o,!1)},0)}else e.xhr&&e.xhr.attempts<e.xhr.maxattempts?(e.xhr.attempts=e.xhr.attempts+1,n=e,a=i,setTimeout(function(){ad_request(n,a,!1)},0)):ad_requests_complete(!(e.xhr.processed=!0));d=null}function header_bidding_response(e){if(0==header_bidding_response_sent){var t=0,i=0,n=0;try{for(var a=0;a<adserver_json.adgroups.length;a++)for(var r=0;r<adserver_json.adgroups[a].ads.length;r++)if(adserver_json.adgroups[a].ads[r].adTagUrl&&(++n,(adserver_json.adgroups[a].ads[r].fail||adserver_json.adgroups[a].ads[r].xhr&&adserver_json.adgroups[a].ads[r].xhr.processed)&&--n),adserver_json.adgroups[a].ads[r].mediaFiles){var o=select_mediafile(adserver_json.adgroups[a].ads[r].mediaFiles,!1,!0);o.videoSelected&&(o.videoSelectedVpaid?++i:++t)}}catch(e){}0==header_bidding_response_sent&&(0<t||0<i?(header_bidding_response_sent=!0,publisher_event_notify("AdAvailableHeaderBidding")):1==e||0==n?(header_bidding_response_sent=!0,publisher_event_notify("AdUnavailableHeaderBidding")):setTimeout(function(){header_bidding_response(!1)},250))}}function ad_requests_complete(e){if(0==adselection_ready){for(var t=0,i=0,n=0;n<adserver_json.adgroups.length;n++)for(var a=0;a<adserver_json.adgroups[n].ads.length;a++)adserver_json.adgroups[n].ads[a].adTagUrl&&(++t,adserver_json.adgroups[n].ads[a].xhr&&adserver_json.adgroups[n].ads[a].xhr.processed&&++i);t==i&&(adselection_ready=!0)}1==adselection_ready&&(adLoadedDelay?(startad=!0,lkqdstartAd()):pubVPAIDEvents.indexOf("AdLoaded")<0&&publisher_event_notify("AdLoaded")),adselection_controller()}function xml_vast_parse(e){var t,i={ads:[]};if(e&&window&&window.DOMParser)try{t=(new DOMParser).parseFromString(e.trim(),"application/xml")}catch(e){t=""}if(t&&t.getElementsByTagName("Ad"))for(var n=0;n<t.getElementsByTagName("Ad").length;n++){var a={pixels:[{eventId:2,pixelUrls:[]},{eventId:3,pixelUrls:[]},{eventId:4,pixelUrls:[]},{eventId:5,pixelUrls:[]},{eventId:6,pixelUrls:[]},{eventId:7,pixelUrls:[]},{eventId:8,pixelUrls:[]},{eventId:9,pixelUrls:[]}],wrappers:[],mediaFiles:[],durationMs:"",clickThroughUrl:"",skipOffset:"",adParameters:{content:""},companion:{height:"",width:"",resourceType:"",mimeType:"",companionAsset:"",clickThroughUrl:""}},r=t.getElementsByTagName("Ad")[n],o=r.getElementsByTagName("VASTAdTagURI");if(o&&0<o.length)try{var d=xml_node_value(o[0].childNodes[0],!0);d&&a.wrappers.push(d.toString()),d=null}catch(e){}var s=r.getElementsByTagName("Impression");if(s&&0<s.length)for(var l=0;l<s.length;l++){var c=xml_node_value(s[l].childNodes[0],!0);if(c)for(var p=0;p<a.pixels.length;p++)if(3==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(c.toString()),c=null;break}}var u=r.getElementsByTagName("Error");if(u&&0<u.length)for(l=0;l<u.length;l++){var m=xml_node_value(u[l].childNodes[0],!0);if(m)for(p=0;p<a.pixels.length;p++)if(9==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(m.toString()),m=null;break}}var g=r.getElementsByTagName("Creatives");if(g&&0<g.length){var v=g[0].getElementsByTagName("Creative");if(v&&0<v.length)for(var f=!1,h=!1,_=0;_<v.length;_++){var A=v[_];if(A){var y=A.getElementsByTagName("Linear"),w=A.getElementsByTagName("CompanionAds");if(!f&&y&&0<y.length){f=!0;var k=r.getElementsByTagName("AdParameters")[0];if(k&&k.childNodes)for(l=0;l<k.childNodes.length;l++)if(a.adParameters.content){var b=xml_node_value(k.childNodes[l],!1);b!=a.adParameters.content&&(a.adParameters.content+=xml_node_value(k.childNodes[l],!1)),b=null}else a.adParameters.content=xml_node_value(k.childNodes[l],!1).toString();var x=r.getElementsByTagName("MediaFiles")[0];if(x){var C=x.getElementsByTagName("MediaFile");if(C&&0<C.length)for(l=0;l<C.length;l++)try{!xml_node_value(C[l].childNodes[0],!0)||xml_node_value(C[l].childNodes[0],!0).length<14||xml_node_value(C[l].childNodes[0],!0).indexOf("/",10)<0?pixel_fire(wlp+"//t.lkqd.net/t?ev=72&mfurl="+encodeURIComponent(xml_node_value(C[l].childNodes[0]))+"&debug="+encodeURIComponent(e)):a.mediaFiles.push({url:xml_node_value(C[l].childNodes[0],!0),height:C[l].getAttribute("height"),width:C[l].getAttribute("width"),mimeType:C[l].getAttribute("type"),apiFramework:C[l].getAttribute("apiFramework"),bitrate:C[l].getAttribute("bitrate"),delivery:C[l].getAttribute("delivery")})}catch(e){}}var I=15,q=r.getElementsByTagName("Duration")[0];if(q){if(I=xml_node_value(q.childNodes[0],!1))try{if(0<I.indexOf(":")){var T=I.split(":").reverse(),E=0;for(l=0;l<T.length;l++)E+=parseInt(T[l])*Math.pow(60,l);I=E}I=Number(I)}catch(e){I=15}I&&0!=I&&isNumber(I)||(I=15)}a.durationMs=Math.round(1e3*I);var S=r.getElementsByTagName("Linear")[0];if(S){var B,j=S.getAttribute("skipoffset");if(j)try{if(0<j.indexOf(":")){for(T=j.split(":").reverse(),E=0,l=0;l<T.length;l++)E+=parseInt(T[l])*Math.pow(60,l);B=E,B=Number(E)}}catch(e){}B&&(a.skipOffset=B)}var P=r.getElementsByTagName("Icons")[0];if(P){var U=P.getElementsByTagName("Icon")[0];if(U)for(var O=0;O<U.length;O++){var D=U[O];if("AdChoices"==D.getAttribute("program")){var N={};N.width=parseInt(D.getAttribute("width")),N.height=parseInt(D.getAttribute("height")),N.xPosition=parseInt(D.getAttribute("xPosition")),N.yPosition=parseInt(D.getAttribute("yPosition"));var L=D.getElementsByTagName("StaticResource")[0];if(L){var F=xml_node_value(L.childNodes[0],!0);F&&(N.imageUrl=F.toString())}var V=D.getElementsByTagName("IconClicks")[0];if(V){var W=V.getElementsByTagName("IconClickThrough")[0];if(W)(H=xml_node_value(W.childNodes[0],!0))&&(N.clickThroughUrl=H.toString())}N.width&&N.height&&N.xPosition&&N.yPosition&&N.imageUrl&&N.clickThroughUrl&&(a.adChoicesIcon=N)}}}var M=r.getElementsByTagName("VideoClicks")[0];if(M){var H,R=M.getElementsByTagName("ClickThrough")[0];if(R)((H=xml_node_value(R.childNodes[0],!0))||(H=xml_node_value(R.childNodes[0],!1))&&0==H.indexOf("tel:"))&&(a.clickThroughUrl=H.toString()),H=null;var Q=M.getElementsByTagName("ClickTracking");if(Q)for(l=0;l<Q.length;l++){var z=xml_node_value(Q[l].childNodes[0],!0);if(z)for(p=0;p<a.pixels.length;p++)if(8==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(z.toString()),z=null;break}}}var J=A.getElementsByTagName("TrackingEvents")[0];if(J){var K=J.getElementsByTagName("Tracking");if(K)for(l=0;l<K.length;l++)try{var G=K[l].getAttribute("event");if(G){G=G.toLowerCase();var Z=xml_node_value(K[l].childNodes[0],!0);if("start"==G){for(p=0;p<a.pixels.length;p++)if(2==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(Z.toString()),Z=null;break}}else if("firstquartile"==G){for(p=0;p<a.pixels.length;p++)if(4==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(Z.toString()),Z=null;break}}else if("midpoint"==G){for(p=0;p<a.pixels.length;p++)if(5==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(Z.toString()),Z=null;break}}else if("thirdquartile"==G){for(p=0;p<a.pixels.length;p++)if(6==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(Z.toString()),Z=null;break}}else if("complete"==G){for(p=0;p<a.pixels.length;p++)if(7==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(Z.toString()),Z=null;break}}else if("creativeview"==G)for(p=0;p<a.pixels.length;p++)if(3==a.pixels[p].eventId){a.pixels[p].pixelUrls.push(Z.toString()),Z=null;break}}}catch(e){}}}else if(!h&&w&&0<w.length){h=!0;try{var Y=w[0].getElementsByTagName("Companion");if(Y&&0<Y.length)for(var X=0;X<Y.length;X++){var $=Y[X],ee=parseInt($.getAttribute("width")),te=parseInt($.getAttribute("height")),ie="",ne=($.getElementsByTagName("TrackingEvents"),$.getElementsByTagName("CompanionClickThrough"));if(ne&&0<ne.length)xml_node_value(ne[0].childNodes[0],!0);if(isNumber(ee)&&0<ee&&isNumber(te)&&0<te){var ae=$.getElementsByTagName("IFrameResource");if(ae&&0<ae.length){var re=ae[0];re&&re.childNodes&&0<re.childNodes.length&&(ie=xml_node_value(re.childNodes[0],!0))&&""!=ie&&0}var oe=$.getElementsByTagName("HTMLResource");if(oe&&0<oe.length){var de=oe[0];de&&de.childNodes&&0<de.childNodes.length&&xml_node_value(de.childNodes[0],!1)}var se=$.getElementsByTagName("StaticResource");if(se&&0<se.length){var le=se[0];le&&le.childNodes&&0<le.childNodes.length&&(ie=xml_node_value(le.childNodes[0],!0))&&""!=ie&&0}}}}catch(e){}}}}}i.ads.push(a)}return i}function inflate(e){var t;if(t=window.atob?atob(e):base64.decode(e)){var i=t.split("").map(function(e){return e.charCodeAt(0)}),n=new Uint8Array(i);t=_arrayBufferToBase64(pako.inflate(n))}return t}function _arrayBufferToBase64(e){for(var t="",i=new Uint8Array(e),n=i.byteLength,a=0;a<n;a++)t+=String.fromCharCode(i[a]);return t}!function(){try{new Uint8Array(1);return}catch(e){}function n(e,t){return this.slice(e,t)}function a(e,t){arguments.length<2&&(t=0);for(var i=0,n=e.length;i<n;++i,++t)this[t]=255&e[i]}function e(e){var t;if("number"==typeof e){t=new Array(e);for(var i=0;i<e;++i)t[i]=0}else t=e.slice(0);return t.subarray=n,(t.buffer=t).byteLength=t.length,t.set=a,"object"==typeof e&&e.buffer&&(t.buffer=e.buffer),t}window.Uint8Array=e,window.Uint32Array=e,window.Int32Array=e}();var base64={PADCHAR:"=",ALPHA:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",getbyte64:function(e,t){var i=base64.ALPHA.indexOf(e.charAt(t));return-1===i?"":i},decode:function(e){e=""+e;var t,i,n,a=base64.getbyte64,r=e.length;if(0===r)return e;if(r%4!=0)return"";t=0,e.charAt(r-1)===base64.PADCHAR&&(t=1,e.charAt(r-2)===base64.PADCHAR&&(t=2),r-=4);var o=[];for(i=0;i<r;i+=4)n=a(e,i)<<18|a(e,i+1)<<12|a(e,i+2)<<6|a(e,i+3),o.push(String.fromCharCode(n>>16,n>>8&255,255&n));switch(t){case 1:n=a(e,i)<<18|a(e,i+1)<<12|a(e,i+2)<<6,o.push(String.fromCharCode(n>>16,n>>8&255));break;case 2:n=a(e,i)<<18|a(e,i+1)<<12,o.push(String.fromCharCode(n>>16))}return o.join("")},getbyte:function(e,t){var i=e.charCodeAt(t);return 255<i?"":i},encode:function(e){if(1!==arguments.length)throw new SyntaxError("Not enough arguments");var t,i,n=base64.PADCHAR,a=base64.ALPHA,r=base64.getbyte,o=[],d=(e=""+e).length-e.length%3;if(0===e.length)return e;for(t=0;t<d;t+=3)i=r(e,t)<<16|r(e,t+1)<<8|r(e,t+2),o.push(a.charAt(i>>18)),o.push(a.charAt(i>>12&63)),o.push(a.charAt(i>>6&63)),o.push(a.charAt(63&i));switch(e.length-d){case 1:i=r(e,t)<<16,o.push(a.charAt(i>>18)+a.charAt(i>>12&63)+n+n);break;case 2:i=r(e,t)<<16|r(e,t+1)<<8,o.push(a.charAt(i>>18)+a.charAt(i>>12&63)+a.charAt(i>>6&63)+n)}return o.join("")}};!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=e()}}(function(){return function r(o,d,s){function l(i,e){if(!d[i]){if(!o[i]){var t="function"==typeof require&&require;if(!e&&t)return t(i,!0);if(c)return c(i,!0);var n=new Error("Cannot find module '"+i+"'");throw n.code="MODULE_NOT_FOUND",n}var a=d[i]={exports:{}};o[i][0].call(a.exports,function(e){var t=o[i][1][e];return l(t||e)},a,a.exports,r,o,d,s)}return d[i].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,i,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),a);else for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){var t,i,n,a,r,o;for(t=n=0,i=e.length;t<i;t++)n+=e[t].length;for(o=new Uint8Array(n),t=a=0,i=e.length;t<i;t++)r=e[t],o.set(r,a),a+=r.length;return o}},r={arraySet:function(e,t,i,n,a){for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,r))},i.setTyped(n)},{}],2:[function(e,t,i){"use strict";function s(e,t){if(t<65537&&(e.subarray&&r||!e.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(e,t));for(var i="",n=0;n<t;n++)i+=String.fromCharCode(e[n]);return i}var l=e("./common"),a=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var c=new l.Buf8(256),n=0;n<256;n++)c[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;c[254]=c[254]=1,i.string2buf=function(e){var t,i,n,a,r,o=e.length,d=0;for(a=0;a<o;a++)55296==(64512&(i=e.charCodeAt(a)))&&a+1<o&&(56320==(64512&(n=e.charCodeAt(a+1)))&&(i=65536+(i-55296<<10)+(n-56320),a++)),d+=i<128?1:i<2048?2:i<65536?3:4;for(t=new l.Buf8(d),a=r=0;r<d;a++)55296==(64512&(i=e.charCodeAt(a)))&&a+1<o&&(56320==(64512&(n=e.charCodeAt(a+1)))&&(i=65536+(i-55296<<10)+(n-56320),a++)),i<128?t[r++]=i:(i<2048?t[r++]=192|i>>>6:(i<65536?t[r++]=224|i>>>12:(t[r++]=240|i>>>18,t[r++]=128|i>>>12&63),t[r++]=128|i>>>6&63),t[r++]=128|63&i);return t},i.buf2binstring=function(e){return s(e,e.length)},i.binstring2buf=function(e){for(var t=new l.Buf8(e.length),i=0,n=t.length;i<n;i++)t[i]=e.charCodeAt(i);return t},i.buf2string=function(e,t){var i,n,a,r,o=t||e.length,d=new Array(2*o);for(i=n=0;i<o;)if((a=e[i++])<128)d[n++]=a;else if(4<(r=c[a]))d[n++]=65533,i+=r-1;else{for(a&=2===r?31:3===r?15:7;1<r&&i<o;)a=a<<6|63&e[i++],r--;1<r?d[n++]=65533:a<65536?d[n++]=a:(a-=65536,d[n++]=55296|a>>10&1023,d[n++]=56320|1023&a)}return s(d,n)},i.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return!(i<0)&&0!==i&&i+c[e[i]]>t?i:t}},{"./common":1}],3:[function(e,t,i){"use strict";t.exports=function(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){for(i-=o=2e3<i?2e3:i;r=r+(a=a+t[n++]|0)|0,--o;);a%=65521,r%=65521}return a|r<<16|0}},{}],4:[function(e,t,i){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,i){"use strict";var d=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t,i,n){var a=d,r=n+i;e^=-1;for(var o=n;o<r;o++)e=e>>>8^a[255&(e^t[o])];return-1^e}},{}],6:[function(e,t,i){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],7:[function(e,t,i){"use strict";t.exports=function(e,t){var i,n,a,r,o,d,s,l,c,p,u,m,g,v,f,h,_,A,y,w,k,b,x,C,I;i=e.state,n=e.next_in,C=e.input,a=n+(e.avail_in-5),r=e.next_out,I=e.output,o=r-(t-e.avail_out),d=r+(e.avail_out-257),s=i.dmax,l=i.wsize,c=i.whave,p=i.wnext,u=i.window,m=i.hold,g=i.bits,v=i.lencode,f=i.distcode,h=(1<<i.lenbits)-1,_=(1<<i.distbits)-1;e:do{g<15&&(m+=C[n++]<<g,g+=8,m+=C[n++]<<g,g+=8),A=v[m&h];t:for(;;){if(m>>>=y=A>>>24,g-=y,0===(y=A>>>16&255))I[r++]=65535&A;else{if(!(16&y)){if(0==(64&y)){A=v[(65535&A)+(m&(1<<y)-1)];continue t}if(32&y){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}w=65535&A,(y&=15)&&(g<y&&(m+=C[n++]<<g,g+=8),w+=m&(1<<y)-1,m>>>=y,g-=y),g<15&&(m+=C[n++]<<g,g+=8,m+=C[n++]<<g,g+=8),A=f[m&_];i:for(;;){if(m>>>=y=A>>>24,g-=y,!(16&(y=A>>>16&255))){if(0==(64&y)){A=f[(65535&A)+(m&(1<<y)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(k=65535&A,g<(y&=15)&&(m+=C[n++]<<g,(g+=8)<y&&(m+=C[n++]<<g,g+=8)),s<(k+=m&(1<<y)-1)){e.msg="invalid distance too far back",i.mode=30;break e}if(m>>>=y,g-=y,(y=r-o)<k){if(c<(y=k-y)&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(x=u,(b=0)===p){if(b+=l-y,y<w){for(w-=y;I[r++]=u[b++],--y;);b=r-k,x=I}}else if(p<y){if(b+=l+p-y,(y-=p)<w){for(w-=y;I[r++]=u[b++],--y;);if(b=0,p<w){for(w-=y=p;I[r++]=u[b++],--y;);b=r-k,x=I}}}else if(b+=p-y,y<w){for(w-=y;I[r++]=u[b++],--y;);b=r-k,x=I}for(;2<w;)I[r++]=x[b++],I[r++]=x[b++],I[r++]=x[b++],w-=3;w&&(I[r++]=x[b++],1<w&&(I[r++]=x[b++]))}else{for(b=r-k;I[r++]=I[b++],I[r++]=I[b++],I[r++]=I[b++],2<(w-=3););w&&(I[r++]=I[b++],1<w&&(I[r++]=I[b++]))}break}}break}}while(n<a&&r<d);n-=w=g>>3,m&=(1<<(g-=w<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=r<d?d-r+257:257-(r-d),i.hold=m,i.bits=g}},{}],8:[function(e,t,i){"use strict";function E(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function a(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new j.Buf16(320),this.work=new j.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function n(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=W,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new j.Buf32(c),t.distcode=t.distdyn=new j.Buf32(p),t.sane=1,t.back=-1,F):V}function r(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,n(e)):V}function o(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?V:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,r(e))):V}function d(e,t){var i,n;return e?(n=new a,(e.state=n).window=null,(i=o(e,t))!==F&&(e.state=null),i):V}function S(e){if(u){var t;for(s=new j.Buf32(512),l=new j.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(D(N,e.lens,0,288,s,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;D(L,e.lens,0,32,l,0,e.work,{bits:5}),u=!1}e.lencode=s,e.lenbits=9,e.distcode=l,e.distbits=5}function B(e,t,i,n){var a,r=e.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new j.Buf8(r.wsize)),n>=r.wsize?(j.arraySet(r.window,t,i-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(n<(a=r.wsize-r.wnext)&&(a=n),j.arraySet(r.window,t,i-n,a,r.wnext),(n-=a)?(j.arraySet(r.window,t,i-n,n,0),r.wnext=n,r.whave=r.wsize):(r.wnext+=a,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=a))),0}var s,l,j=e("../utils/common"),P=e("./adler32"),U=e("./crc32"),O=e("./inffast"),D=e("./inftrees"),N=1,L=2,F=0,V=-2,W=1,c=852,p=592,u=!0;i.inflateReset=r,i.inflateReset2=o,i.inflateResetKeep=n,i.inflateInit=function(e){return d(e,15)},i.inflateInit2=d,i.inflate=function(e,t){var i,n,a,r,o,d,s,l,c,p,u,m,g,v,f,h,_,A,y,w,k,b,x,C,I=0,q=new j.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return V;12===(i=e.state).mode&&(i.mode=13),o=e.next_out,a=e.output,s=e.avail_out,r=e.next_in,n=e.input,d=e.avail_in,l=i.hold,c=i.bits,p=d,u=s,b=F;e:for(;;)switch(i.mode){case W:if(0===i.wrap){i.mode=13;break}for(;c<16;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(2&i.wrap&&35615===l){q[i.check=0]=255&l,q[1]=l>>>8&255,i.check=U(i.check,q,2,0),c=l=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&l)){e.msg="unknown compression method",i.mode=30;break}if(c-=4,k=8+(15&(l>>>=4)),0===i.wbits)i.wbits=k;else if(k>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<k,e.adler=i.check=1,i.mode=512&l?10:12,c=l=0;break;case 2:for(;c<16;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(i.flags=l,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=l>>8&1),512&i.flags&&(q[0]=255&l,q[1]=l>>>8&255,i.check=U(i.check,q,2,0)),c=l=0,i.mode=3;case 3:for(;c<32;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}i.head&&(i.head.time=l),512&i.flags&&(q[0]=255&l,q[1]=l>>>8&255,q[2]=l>>>16&255,q[3]=l>>>24&255,i.check=U(i.check,q,4,0)),c=l=0,i.mode=4;case 4:for(;c<16;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}i.head&&(i.head.xflags=255&l,i.head.os=l>>8),512&i.flags&&(q[0]=255&l,q[1]=l>>>8&255,i.check=U(i.check,q,2,0)),c=l=0,i.mode=5;case 5:if(1024&i.flags){for(;c<16;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}i.length=l,i.head&&(i.head.extra_len=l),512&i.flags&&(q[0]=255&l,q[1]=l>>>8&255,i.check=U(i.check,q,2,0)),c=l=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(d<(m=i.length)&&(m=d),m&&(i.head&&(k=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),j.arraySet(i.head.extra,n,r,m,k)),512&i.flags&&(i.check=U(i.check,n,m,r)),d-=m,r+=m,i.length-=m),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===d)break e;for(m=0;k=n[r+m++],i.head&&k&&i.length<65536&&(i.head.name+=String.fromCharCode(k)),k&&m<d;);if(512&i.flags&&(i.check=U(i.check,n,m,r)),d-=m,r+=m,k)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===d)break e;for(m=0;k=n[r+m++],i.head&&k&&i.length<65536&&(i.head.comment+=String.fromCharCode(k)),k&&m<d;);if(512&i.flags&&(i.check=U(i.check,n,m,r)),d-=m,r+=m,k)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;c<16;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(l!==(65535&i.check)){e.msg="header crc mismatch",i.mode=30;break}c=l=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;c<32;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}e.adler=i.check=E(l),c=l=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=o,e.avail_out=s,e.next_in=r,e.avail_in=d,i.hold=l,i.bits=c,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){l>>>=7&c,c-=7&c,i.mode=27;break}for(;c<3;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}switch(i.last=1&l,--c,3&(l>>>=1)){case 0:i.mode=14;break;case 1:if(S(i),i.mode=20,6!==t)break;l>>>=2,c-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}l>>>=2,c-=2;break;case 14:for(l>>>=7&c,c-=7&c;c<32;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&l,c=l=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(m=i.length){if(d<m&&(m=d),s<m&&(m=s),0===m)break e;j.arraySet(a,n,r,m,o),d-=m,r+=m,s-=m,o+=m,i.length-=m;break}i.mode=12;break;case 17:for(;c<14;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(i.nlen=257+(31&l),l>>>=5,c-=5,i.ndist=1+(31&l),l>>>=5,c-=5,i.ncode=4+(15&l),l>>>=4,c-=4,286<i.nlen||30<i.ndist){e.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;c<3;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}i.lens[T[i.have++]]=7&l,l>>>=3,c-=3}for(;i.have<19;)i.lens[T[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,x={bits:i.lenbits},b=D(0,i.lens,0,19,i.lencode,0,i.work,x),i.lenbits=x.bits,b){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;h=(I=i.lencode[l&(1<<i.lenbits)-1])>>>16&255,_=65535&I,!((f=I>>>24)<=c);){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(_<16)l>>>=f,c-=f,i.lens[i.have++]=_;else{if(16===_){for(C=f+2;c<C;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(l>>>=f,c-=f,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}k=i.lens[i.have-1],m=3+(3&l),l>>>=2,c-=2}else if(17===_){for(C=f+3;c<C;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}c-=f,k=0,m=3+(7&(l>>>=f)),l>>>=3,c-=3}else{for(C=f+7;c<C;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}c-=f,k=0,m=11+(127&(l>>>=f)),l>>>=7,c-=7}if(i.have+m>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;m--;)i.lens[i.have++]=k}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,x={bits:i.lenbits},b=D(N,i.lens,0,i.nlen,i.lencode,0,i.work,x),i.lenbits=x.bits,b){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,x={bits:i.distbits},b=D(L,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,x),i.distbits=x.bits,b){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(6<=d&&258<=s){e.next_out=o,e.avail_out=s,e.next_in=r,e.avail_in=d,i.hold=l,i.bits=c,O(e,u),o=e.next_out,a=e.output,s=e.avail_out,r=e.next_in,n=e.input,d=e.avail_in,l=i.hold,c=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;h=(I=i.lencode[l&(1<<i.lenbits)-1])>>>16&255,_=65535&I,!((f=I>>>24)<=c);){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(h&&0==(240&h)){for(A=f,y=h,w=_;h=(I=i.lencode[w+((l&(1<<A+y)-1)>>A)])>>>16&255,_=65535&I,!(A+(f=I>>>24)<=c);){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}l>>>=A,c-=A,i.back+=A}if(l>>>=f,c-=f,i.back+=f,i.length=_,0===h){i.mode=26;break}if(32&h){i.back=-1,i.mode=12;break}if(64&h){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&h,i.mode=22;case 22:if(i.extra){for(C=i.extra;c<C;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}i.length+=l&(1<<i.extra)-1,l>>>=i.extra,c-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;h=(I=i.distcode[l&(1<<i.distbits)-1])>>>16&255,_=65535&I,!((f=I>>>24)<=c);){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(0==(240&h)){for(A=f,y=h,w=_;h=(I=i.distcode[w+((l&(1<<A+y)-1)>>A)])>>>16&255,_=65535&I,!(A+(f=I>>>24)<=c);){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}l>>>=A,c-=A,i.back+=A}if(l>>>=f,c-=f,i.back+=f,64&h){e.msg="invalid distance code",i.mode=30;break}i.offset=_,i.extra=15&h,i.mode=24;case 24:if(i.extra){for(C=i.extra;c<C;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}i.offset+=l&(1<<i.extra)-1,l>>>=i.extra,c-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===s)break e;if(m=u-s,i.offset>m){if((m=i.offset-m)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}g=m>i.wnext?(m-=i.wnext,i.wsize-m):i.wnext-m,m>i.length&&(m=i.length),v=i.window}else v=a,g=o-i.offset,m=i.length;for(s<m&&(m=s),s-=m,i.length-=m;a[o++]=v[g++],--m;);0===i.length&&(i.mode=21);break;case 26:if(0===s)break e;a[o++]=i.length,s--,i.mode=21;break;case 27:if(i.wrap){for(;c<32;){if(0===d)break e;d--,l|=n[r++]<<c,c+=8}if(u-=s,e.total_out+=u,i.total+=u,u&&(e.adler=i.check=(i.flags?U:P)(i.check,a,u,o-u)),u=s,(i.flags?l:E(l))!==i.check){e.msg="incorrect data check",i.mode=30;break}c=l=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;c<32;){if(0===d)break e;d--,l+=n[r++]<<c,c+=8}if(l!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=30;break}c=l=0}i.mode=29;case 29:b=1;break e;case 30:b=-3;break e;case 31:return-4;case 32:default:return V}return e.next_out=o,e.avail_out=s,e.next_in=r,e.avail_in=d,i.hold=l,i.bits=c,(i.wsize||u!==e.avail_out&&i.mode<30&&(i.mode<27||4!==t))&&B(e,e.output,e.next_out,u-e.avail_out)?(i.mode=31,-4):(p-=e.avail_in,u-=e.avail_out,e.total_in+=p,e.total_out+=u,i.total+=u,i.wrap&&u&&(e.adler=i.check=(i.flags?U:P)(i.check,a,u,e.next_out-u)),e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0===p&&0===u||4===t)&&b===F&&(b=-5),b)},i.inflateEnd=function(e){if(!e||!e.state)return V;var t=e.state;return t.window&&(t.window=null),e.state=null,F},i.inflateGetHeader=function(e,t){var i;return e&&e.state?0==(2&(i=e.state).wrap)?V:((i.head=t).done=!1,F):V},i.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?V:11===i.mode&&P(1,t,n,0)!==i.check?-3:B(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,F):V},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,i){"use strict";var U=e("../utils/common"),O=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],D=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],N=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],L=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,i,n,a,r,o,d){var s,l,c,p,u,m,g,v,f,h=d.bits,_=0,A=0,y=0,w=0,k=0,b=0,x=0,C=0,I=0,q=0,T=null,E=0,S=new U.Buf16(16),B=new U.Buf16(16),j=null,P=0;for(_=0;_<=15;_++)S[_]=0;for(A=0;A<n;A++)S[t[i+A]]++;for(k=h,w=15;1<=w&&0===S[w];w--);if(w<k&&(k=w),0===w)return a[r++]=20971520,a[r++]=20971520,d.bits=1,0;for(y=1;y<w&&0===S[y];y++);for(k<y&&(k=y),_=C=1;_<=15;_++)if(C<<=1,(C-=S[_])<0)return-1;if(0<C&&(0===e||1!==w))return-1;for(B[1]=0,_=1;_<15;_++)B[_+1]=B[_]+S[_];for(A=0;A<n;A++)0!==t[i+A]&&(o[B[t[i+A]]++]=A);if(m=0===e?(T=j=o,19):1===e?(T=O,E-=257,j=D,P-=257,256):(T=N,j=L,-1),_=y,u=r,c=-1,p=(I=1<<(b=k))-1,1===e&&852<I||2===e&&592<I)return 1;for(x=A=q=0;;){for(g=_-x,f=o[A]<m?(v=0,o[A]):o[A]>m?(v=j[P+o[A]],T[E+o[A]]):(v=96,0),s=1<<_-x,y=l=1<<b;a[u+(q>>x)+(l-=s)]=g<<24|v<<16|f|0,0!==l;);for(s=1<<_-1;q&s;)s>>=1;if(0!==s?(q&=s-1,q+=s):q=0,A++,0==--S[_]){if(_===w)break;_=t[i+o[A]]}if(k<_&&(q&p)!==c){for(0===x&&(x=k),u+=y,C=1<<(b=_-x);b+x<w&&!((C-=S[b+x])<=0);)b++,C<<=1;if(I+=1<<b,1===e&&852<I||2===e&&592<I)return 1;a[c=q&p]=k<<24|b<<16|u-r|0}}return 0!==q&&(a[u+q]=_-x<<24|64<<16|0),d.bits=k,0}},{"../utils/common":1}],10:[function(e,t,i){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(e,t,i){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/inflate.js":[function(e,t,i){"use strict";function n(e){if(!(this instanceof n))return new n(e);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var i=u.inflateInit2(this.strm,t.windowBits);if(i!==v.Z_OK)throw new Error(r[i]);this.header=new d,u.inflateGetHeader(this.strm,this.header)}function a(e,t){var i=new n(t);if(i.push(e,!0),i.err)throw i.msg;return i.result}var u=e("./zlib/inflate"),m=e("./utils/common"),g=e("./utils/strings"),v=e("./zlib/constants"),r=e("./zlib/messages"),o=e("./zlib/zstream"),d=e("./zlib/gzheader"),f=Object.prototype.toString;n.prototype.push=function(e,t){var i,n,a,r,o,d,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,p=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?v.Z_FINISH:v.Z_NO_FLUSH,"string"==typeof e?s.input=g.binstring2buf(e):"[object ArrayBuffer]"===f.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new m.Buf8(l),s.next_out=0,s.avail_out=l),(i=u.inflate(s,v.Z_NO_FLUSH))===v.Z_NEED_DICT&&c&&(d="string"==typeof c?g.string2buf(c):"[object ArrayBuffer]"===f.call(c)?new Uint8Array(c):c,i=u.inflateSetDictionary(this.strm,d)),i===v.Z_BUF_ERROR&&!0===p&&(i=v.Z_OK,p=!1),i!==v.Z_STREAM_END&&i!==v.Z_OK)return this.onEnd(i),!(this.ended=!0);s.next_out&&(0!==s.avail_out&&i!==v.Z_STREAM_END&&(0!==s.avail_in||n!==v.Z_FINISH&&n!==v.Z_SYNC_FLUSH)||("string"===this.options.to?(a=g.utf8border(s.output,s.next_out),r=s.next_out-a,o=g.buf2string(s.output,a),s.next_out=r,s.avail_out=l-r,r&&m.arraySet(s.output,s.output,a,r,0),this.onData(o)):this.onData(m.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(p=!0)}while((0<s.avail_in||0===s.avail_out)&&i!==v.Z_STREAM_END);return i===v.Z_STREAM_END&&(n=v.Z_FINISH),n===v.Z_FINISH?(i=u.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===v.Z_OK):(n===v.Z_SYNC_FLUSH&&(this.onEnd(v.Z_OK),s.avail_out=0),!0)},n.prototype.onData=function(e){this.chunks.push(e)},n.prototype.onEnd=function(e){e===v.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=n,i.inflate=a,i.inflateRaw=function(e,t){return(t=t||{}).raw=!0,a(e,t)},i.ungzip=a},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")});