!function(u){var s=window.pbjsChunk;window.pbjsChunk=function(e,t,n){for(var r,i,o,a=0,c=[];a<e.length;a++)i=e[a],d[i]&&c.push(d[i][0]),d[i]=0;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);for(s&&s(e,t,n);c.length;)c.shift()();if(n)for(a=0;a<n.length;a++)o=f(f.s=n[a]);return o};var n={},d={234:0};function f(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return u[e].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=u,f.c=n,f.d=function(e,t,n){f.o(e,t)||Object.defineProperty(e,
t,{configurable:!1,enumerable:!0,get:n})},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,"a",t),t},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.p="",f.oe=function(e){throw console.error(e),e;},f(f.s=600)}({0:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"internal",function(){return C}),n.d(t,"bind",function(){return B}),t.replaceTokenInString=function(i,e,o){return ne(e,function(e,t){e=void 0===
e?"":e;var n=o+t.toUpperCase()+o,r=new RegExp(n,"g");i=i.replace(r,e)}),i},t.getUniqueIdentifierStr=R,t.generateUUID=function e(t){return t?(t^N()>>t/4).toString(16):([1E7]+-1E3+-4E3+-8E3+-1E11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){if(t&&t[e])return t[e];return""},t.tryAppendQueryString=function(e,t,n){if(n)return e+=t+"\x3d"+encodeURIComponent(n)+"\x26";return e},t.parseQueryStringParameters=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"\x3d"+encodeURIComponent(e[n])+
"\x26");return t},t.transformAdServerTargetingObj=function(t){return t&&0<Object.getOwnPropertyNames(t).length?le(t).map(function(e){return"".concat(e,"\x3d").concat(encodeURIComponent(ge(t,e)))}).join("\x26"):""},t.getAdUnitSizes=function(e){if(!e)return;var t=[];if(e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)){var n=e.mediaTypes.banner.sizes;Array.isArray(n[0])?t=n:t.push(n)}else Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?t=e.sizes:t.push(e.sizes));return t},
t.parseSizesInput=function(e){var t=[];if("string"==typeof e){var n=e.split(","),r=/^(\d)+x(\d)+$/i;if(n)for(var i in n)ie(n,i)&&n[i].match(r)&&t.push(n[i])}else if("object"===g(e)){var o=e.length;if(0<o)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(k(e));else for(var a=0;a<o;a++)t.push(k(e[a]))}return t},t.parseGPTSingleSizeArray=k,t.getTopWindowLocation=x,t.getTopFrameReferrer=P,t.getAncestorOrigins=M,t.getWindowTop=q,t.getWindowSelf=G,t.getWindowLocation=W,t.getTopWindowUrl=function(){var t;
try{t=C.getTopWindowLocation().href}catch(e){t=""}return t},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logMessage=L,t.logInfo=z,t.logWarn=F,t.logError=H,t.hasConsoleLogger=function(){return I},t.debugTurnedOn=K,t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=R(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",
e.frameBorder="0",e.src="about:blank",e.style.display="none",e},t.getParameterByName=J,t.hasValidBidRequest=function(e,n,t){var r=!1;function i(e,t){t===n[o]&&(r=!0)}for(var o=0;o<n.length;o++)if(r=!1,ne(e,i),!r)return H("Params are missing for bid request. One of these required paramaters are missing: "+n,t),!1;return!0},t.addEventHandler=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent&&e.attachEvent("on"+t,n)},t.isA=Y,t.isFn=Q,t.isStr=X,t.isArray=$,t.isNumber=Z,t.isPlainObject=
ee,t.isBoolean=function(e){return Y(e,E)},t.isEmpty=te,t.isEmptyStr=function(e){return X(e)&&(!e||0===e.length)},t._each=ne,t.contains=function(e,t){if(te(e))return!1;if(Q(e.indexOf))return-1!==e.indexOf(t);var n=e.length;for(;n--;)if(e[n]===t)return!0;return!1},n.d(t,"indexOf",function(){return re}),t._map=function(n,r){if(te(n))return[];if(Q(n.map))return n.map(r);var i=[];return ne(n,function(e,t){i.push(r(e,t,n))}),i},t.insertElement=oe,t.triggerPixel=ae,t.callBurl=function(e){var t=e.source,
n=e.burl;t===p.S2S.SRC&&n&&C.triggerPixel(n)},t.insertHtmlIntoIframe=function(e){if(!e)return;var t=document.createElement("iframe");t.id=R(),t.width=0,t.height=0,t.hspace="0",t.vspace="0",t.marginWidth="0",t.marginHeight="0",t.style.display="none",t.style.height="0px",t.style.width="0px",t.scrolling="no",t.frameBorder="0",t.allowtransparency="true",C.insertElement(t,document,"body"),t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close()},t.insertUserSyncIframe=
ce,t.createTrackPixelHtml=function(e){if(!e)return"";var t=encodeURI(e),n='\x3cdiv style\x3d"position:absolute;left:0px;top:0px;visibility:hidden;"\x3e';return n+='\x3cimg src\x3d"'+t+'"\x3e\x3c/div\x3e'},t.createTrackPixelIframeHtml=ue,t.getIframeDocument=function(e){if(!e)return;var t;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){C.logError("Cannot get iframe document",e)}return t},t.getValueString=se,t.uniques=de,
t.flatten=fe,t.getBidRequest=function(n,e){return n?(e.some(function(e){var t=c()(e.bids,function(t){return["bidId","adId","bid_id"].some(function(e){return t[e]===n})});return t&&(r=t),t}),r):void 0;var r},t.getKeys=le,t.getValue=ge,t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits).map(function(e){return e.bids.map(function(e){return e.bidder}).reduce(fe,[])}).reduce(fe).filter(de)},
t.isGptPubadsDefined=function(){if(window.googletag&&Q(window.googletag.pubads)&&Q(window.googletag.pubads().getSlots))return!0},n.d(t,"getHighestCpm",function(){return pe}),n.d(t,"getOldestHighestCpmBid",function(){return be}),n.d(t,"getLatestHighestCpmBid",function(){return ve}),t.shuffle=function(e){var t=e.length;for(;0<t;){var n=Math.floor(Math.random()*t),r=e[--t];e[t]=e[n],e[n]=r}return e},t.adUnitsFilter=function(e,t){return s()(e,t&&t.adUnitCode)},t.isSrcdocSupported=function(e){return e.defaultView&&
e.defaultView.frameElement&&"srcdoc"in e.defaultView.frameElement&&!/firefox/i.test(navigator.userAgent)},t.deepClone=he,t.inIframe=me,t.isSafariBrowser=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},t.replaceAuctionPrice=function(e,t){if(!e)return;return e.replace(/\$\{AUCTION_PRICE\}/g,t)},t.timestamp=function(){return(new Date).getTime()},t.checkCookieSupport=Se,t.cookiesAreEnabled=function(){if(C.checkCookieSupport())return!0;return window.document.cookie="prebid.cookieTest",
-1!=window.document.cookie.indexOf("prebid.cookieTest")},t.getCookie=function(e){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*\x3d\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null},t.setCookie=function(e,t,n){document.cookie="".concat(e,"\x3d").concat(encodeURIComponent(t)).concat(""!==n?"; expires\x3d".concat(n):"","; path\x3d/")},t.localStorageIsEnabled=function(){try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){return!1}},
t.delayExecution=function(e,t){if(t<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(t));var n=0;return function(){++n===t&&e.apply(null,arguments)}},t.groupBy=function(e,n){return e.reduce(function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e},{})},t.deepAccess=function(e,t){if(!e)return;t=String(t).split(".");for(var n=0;n<t.length;n++)if(void 0===(e=e[t[n]]))return;return e},t.createContentToExecuteExtScriptInFriendlyFrame=function(e){return e?'\x3c!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"\x3e\x3chtml\x3e\x3chead\x3e\x3cbase target\x3d"_top" /\x3e\x3cscript\x3einDapIF\x3dtrue;\x3c/script\x3e\x3c/head\x3e\x3cbody\x3e\x3c!--PRE_SCRIPT_TAG_MACRO--\x3e\x3cscript src\x3d"'.concat(e,
'"\x3e\x3c/script\x3e\x3c!--POST_SCRIPT_TAG_MACRO--\x3e\x3c/body\x3e\x3c/html\x3e'):""},t.getDefinedParams=function(n,e){return e.filter(function(e){return n[e]}).reduce(function(e,t){return l(e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n[t]))},{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];if(!Object.keys(e).every(function(e){return s()(t,e)}))return!1;if(e.video&&e.video.context)return s()(["instream",
"outstream","adpod"],e.video.context);return!0},t.getBidderRequest=function(e,t,n){return c()(e,function(e){return 0<e.bids.filter(function(e){return e.bidder===t&&e.adUnitCode===n}).length})||{start:null,auctionId:null}},t.getUserConfiguredParams=function(e,t,n){return e.filter(function(e){return e.code===t}).map(function(e){return e.bids}).reduce(fe,[]).filter(function(e){return e.bidder===n}).map(function(e){return e.params||{}})},t.getOrigin=function(){return window.location.origin?window.location.origin:
window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},t.getDNT=function(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(t){return function(e){return Ee(t,e)}},t.isSlotMatchingAdUnitCode=function(t){return function(e){return Ee(e,t)}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n    ".concat(e.code,
" is a ").concat(n," ad unit\n    containing bidders that don't support ").concat(n,": ").concat(t,".\n    This bidder won't fetch demand.\n  ")},t.deletePropertyFromObject=function(e,t){var n=l({},e);return delete n[t],n},t.isInteger=Ae,t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|\.?)([A-Z])/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,"")},t.transformBidderParamKeywords=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"keywords",i=[];return ne(e,
function(e,t){if($(e)){var n=[];ne(e,function(e){((e=se(r+"."+t,e))||""===e)&&n.push(e)}),e=n}else{if(!X(e=se(r+"."+t,e)))return;e=[e]}i.push({key:t,value:e})}),i},t.convertTypes=function(t,n){return Object.keys(t).forEach(function(e){n[e]&&(Q(t[e])?n[e]=t[e](n[e]):n[e]=function(e,t){return"string"===e?t&&t.toString():"number"===e?Number(t):t}(t[e],n[e]),isNaN(n[e])&&delete n.key)}),n},t.setDataInLocalStorage=function(e,t){Te()&&window.localStorage.setItem(e,t)},t.getDataFromLocalStorage=function(e){if(Te())return window.localStorage.getItem(e)},
t.hasLocalStorage=Te,t.isArrayOfNums=function(e,t){return $(e)&&(!t||e.length===t)&&e.every(function(e){return Ae(e)})},t.fill=function(e,t){for(var n=[],r=0;r<t;r++){var i=ee(e)?he(e):e;n.push(i)}return n},t.chunk=function(e,t){for(var n=[],r=0;r<Math.ceil(e.length/t);r++){var i=r*t,o=i+t;n.push(e.slice(i,o))}return n},t.getMinValueFromArray=function(e){return Math.min.apply(Math,f(e))},t.getMaxValueFromArray=function(e){return Math.max.apply(Math,f(e))},t.compareOn=function(n){return function(e,
t){return e[n]<t[n]?1:e[n]>t[n]?-1:0}};var r=n(3),i=n(91),o=n.n(i),a=n(11),c=n.n(a),u=n(8),s=n.n(u),d=n(10);function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}function l(){return(l=Object.assign||function(e){for(var t=
1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=n(4),b=!1,v="Array",y="String",h="Function",m="Number",S="Object",E="Boolean",A=Object.prototype.toString,T=Boolean(window.console),
I=Boolean(T&&window.console.log),O=Boolean(T&&window.console.info),w=Boolean(T&&window.console.warn),_=Boolean(T&&window.console.error),C={checkCookieSupport:Se,createTrackPixelIframeHtml:ue,getWindowSelf:G,getWindowTop:q,getAncestorOrigins:M,getTopFrameReferrer:P,getWindowLocation:W,getTopWindowLocation:x,insertUserSyncIframe:ce,insertElement:oe,isFn:Q,triggerPixel:ae,logError:H,logWarn:F,logMessage:L,logInfo:z},j={},B=function(e,t){return t}.bind(null,1,j)()===j?Function.prototype.bind:function(e){var t=
this,n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,n.concat(Array.prototype.slice.call(arguments)))}};var U,D=(U=0,function(){return++U});function R(){return D()+Math.random().toString(16).substr(2)}function N(){return window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random()}function k(e){if($(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1]))return e[0]+"x"+e[1]}function x(){if(me()){var e;try{e=C.getAncestorOrigins()||
C.getTopFrameReferrer()}catch(e){z("could not obtain top window location",e)}if(e)return Object(d.c)(e,{decodeSearchAsString:!0})}return C.getWindowLocation()}function P(){try{window.top.location.toString();for(var e,t="";(e=e?e.parent:window).document&&e.document.referrer&&(t=e.document.referrer),e!==window.top;);return t}catch(e){return window.document.referrer}}function M(){if(window.document.location&&window.document.location.ancestorOrigins&&1<=window.document.location.ancestorOrigins.length)return window.document.location.ancestorOrigins[window.document.location.ancestorOrigins.length-
1]}function q(){return window.top}function G(){return window.self}function W(){return window.location}function L(){K()&&I&&console.log.apply(console,V(arguments,"MESSAGE:"))}function z(){K()&&O&&console.info.apply(console,V(arguments,"INFO:"))}function F(){K()&&w&&console.warn.apply(console,V(arguments,"WARNING:"))}function H(){K()&&_&&console.error.apply(console,V(arguments,"ERROR:"))}function V(e,t){return e=[].slice.call(e),t&&e.unshift(t),e.unshift("display: inline-block; color: #fff; background: #3b88c3; padding: 1px 4px; border-radius: 3px;"),
e.unshift("%cPrebid"),e}function K(){if(!1===r.config.getConfig("debug")&&!1===b){var e="TRUE"===J(p.DEBUG_MODE).toUpperCase();r.config.setConfig({debug:e}),b=!0}return!!r.config.getConfig("debug")}function J(e){var t=(new RegExp("[\\?\x26]"+e+"\x3d([^\x26#]*)")).exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function Y(e,t){return A.call(e)==="[object "+t+"]"}function Q(e){return Y(e,h)}function X(e){return Y(e,y)}function $(e){return Y(e,v)}function Z(e){return Y(e,
m)}function ee(e){return Y(e,S)}function te(e){if(!e)return!0;if($(e)||X(e))return!(0<e.length);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}function ne(e,t){if(!te(e)){if(Q(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(0<r)for(;n<r;n++)t(e[n],n,e);else for(n in e)hasOwnProperty.call(e,n)&&t.call(this,e[n],n)}}var re=function(){if(Array.prototype.indexOf)return Array.prototype.indexOf}();var ie=function(e,t){return e.hasOwnProperty?e.hasOwnProperty(t):void 0!==e[t]&&e.constructor.prototype[t]!==
e[t]};function oe(e,t,n,r){var i;t=t||document,i=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if((i=i.length?i:t.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function ae(e,t){var n=new Image;t&&C.isFn(t)&&(n.addEventListener("load",t),n.addEventListener("error",t)),n.src=e}function ce(e,t){var n=C.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),r=document.createElement("div");r.innerHTML=n;var i=
r.firstChild;t&&C.isFn(t)&&(i.addEventListener("load",t),i.addEventListener("error",t)),C.insertElement(i,document,"html",!0)}function ue(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";return e?(t&&(e=encodeURI(e)),n&&(n='sandbox\x3d"'.concat(n,'"')),"\x3ciframe ".concat(n,' id\x3d"').concat(R(),'"\n      frameborder\x3d"0"\n      allowtransparency\x3d"true"\n      marginheight\x3d"0" marginwidth\x3d"0"\n      width\x3d"0" hspace\x3d"0" vspace\x3d"0" height\x3d"0"\n      style\x3d"height:0px;width:0px;display:none;"\n      scrolling\x3d"no"\n      src\x3d"').concat(e,
'"\x3e\n    \x3c/iframe\x3e')):""}function se(e,t,n){return null==t?n:X(t)?t:Z(t)?t.toString():void C.logWarn("Unsuported type for param: "+e+" required type: String")}function de(e,t,n){return n.indexOf(e)===t}function fe(e,t){return e.concat(t)}function le(e){return Object.keys(e)}function ge(e,t){return e[t]}var pe=ye("timeToRespond",function(e,t){return t<e}),be=ye("responseTimestamp",function(e,t){return t<e}),ve=ye("responseTimestamp",function(e,t){return e<t});function ye(n,r){return function(e,
t){return e.cpm===t.cpm?r(e[n],t[n])?t:e:e.cpm<t.cpm?t:e}}function he(e){return o()(e)}function me(){try{return C.getWindowSelf()!==C.getWindowTop()}catch(e){return!0}}function Se(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}var Ee=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t};function Ae(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Te(){try{return!!window.localStorage}catch(e){H("Local storage api disabled")}}
},1:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerBidder=function(t){var n=Array.isArray(t.supportedMediaTypes)?{supportedMediaTypes:t.supportedMediaTypes}:void 0;function r(e){var t=O(e);a.default.registerBidAdapter(t,e.code,n)}r(t),Array.isArray(t.aliases)&&t.aliases.forEach(function(e){a.default.aliasRegistry[e]=t.code,r(A({},t,{code:e}))})},t.newBidder=O,t.preloadBidderMappingFile=w,t.getIabSubCategory=function(t,e){var n=a.default.getBidAdapter(t);if(n.getSpec().getMappingFileInfo){var r=
n.getSpec().getMappingFileInfo(),i=r.localStorageKey?r.localStorageKey:n.getBidderCode(),o=Object(h.getDataFromLocalStorage)(i);if(o){try{o=JSON.parse(o)}catch(e){Object(h.logError)("Failed to parse ".concat(t," mapping data stored in local storage"))}return o.mapping[e]?o.mapping[e]:null}}},t.isValid=_;var r=n(45),a=n(7),i=n(3),b=n(22),o=n(24),c=n(27),u=n(46),s=n(4),v=n.n(s),d=n(9),y=n.n(d),f=n(8),l=n.n(f),g=n(5),h=n(0),p=n(2),m=n(17);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||
function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o;}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}()}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===
Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var T=["requestId","cpm","ttl","creativeId","netRevenue","currency"],I=1;function O(l){return A(new r.a(l.code),{getSpec:function(){return Object.freeze(l)},registerSyncs:g,callBids:function(o,a,e,n,c){if(Array.isArray(o.bids)){var u={},s=[],
t=o.bids.filter(p);if(0!==t.length){var d={};t.forEach(function(e){(d[e.bidId]=e).adUnitCode||(e.adUnitCode=e.placementCode)});var r=l.buildRequests(t,o);if(r&&0!==r.length){Array.isArray(r)||(r=[r]);var f=Object(h.delayExecution)(i,r.length);r.forEach(function(i){switch(i.method){case "GET":n("".concat(i.url).concat(function(e){if(e)return"?".concat("object"===E(e)?Object(h.parseQueryStringParameters)(e):e);return""}(i.data)),{success:e,error:t},void 0,A({method:"GET",withCredentials:!0},i.options));
break;case "POST":n(i.url,{success:e,error:t},"string"==typeof i.data?i.data:JSON.stringify(i.data),A({method:"POST",contentType:"text/plain",withCredentials:!0},i.options));break;default:Object(h.logWarn)("Skipping invalid request from ".concat(l.code,". Request type ").concat(i.type," must be GET or POST")),f()}function e(e,t){c(l.code);try{e=JSON.parse(e)}catch(e){}var n;e={body:e,headers:{get:t.getResponseHeader.bind(t)}},s.push(e);try{n=l.interpretResponse(e,i)}catch(e){return Object(h.logError)("Bidder ".concat(l.code,
" failed to interpret the server's response. Continuing without bids"),null,e),void f()}function r(e){var t=d[e.requestId];if(t){var n=A(Object(b.a)(v.a.STATUS.GOOD,t),e);!function(e,t){u[e]=!0,_(e,t,[o])&&a(e,t)}(t.adUnitCode,n)}else Object(h.logWarn)("Bidder ".concat(l.code," made bid for unknown request ID: ").concat(e.requestId,". Ignoring."))}n&&(n.forEach?n.forEach(r):r(n)),f(n)}function t(e){c(l.code),Object(h.logError)("Server call for ".concat(l.code," failed: ").concat(e,". Continuing without bids.")),
f()}})}else i()}else i()}function i(){e(),y.a.emit(v.a.EVENTS.BIDDER_DONE,o),g(s,o.gdprConsent)}}});function g(e,t){if(l.getUserSyncs){var n=i.config.getConfig("userSync.filterSettings"),r=l.getUserSyncs({iframeEnabled:!!(i.config.getConfig("userSync.iframeEnabled")||n&&(n.iframe||n.all)),pixelEnabled:!!(i.config.getConfig("userSync.pixelEnabled")||n&&(n.image||n.all))},e,t);r&&(Array.isArray(r)||(r=[r]),r.forEach(function(e){o.a.registerSync(e.type,l.code,e.url)}))}}function p(e){return!!l.isBidRequestValid(e)||
(Object(h.logWarn)("Invalid bid sent to bidder ".concat(l.code,": ").concat(JSON.stringify(e))),!1)}}function w(e,t){if(!i.config.getConfig("adpod.brandCategoryExclusion"))return e.call(this,t);t.filter(function(e){return Object(h.deepAccess)(e,"mediaTypes.video.context")===p.a}).map(function(e){return e.bids.map(function(e){return e.bidder})}).reduce(h.flatten,[]).filter(h.uniques).forEach(function(n){var e=a.default.getBidAdapter(n);if(e.getSpec().getMappingFileInfo){var t=e.getSpec().getMappingFileInfo(),
r=t.refreshInDays?t.refreshInDays:I,i=t.localStorageKey?t.localStorageKey:e.getSpec().code,o=Object(h.getDataFromLocalStorage)(i);(!o||Object(h.timestamp)()<o.lastUpdated+24*r*60*60*1E3)&&Object(g.a)(t.url,{success:function(e){try{e=JSON.parse(e);var t={lastUpdated:Object(h.timestamp)(),mapping:e.mapping};Object(h.setDataInLocalStorage)(i,JSON.stringify(t))}catch(e){Object(h.logError)("Failed to parse ".concat(n," bidder translation mapping file"))}},error:function(){Object(h.logError)("Failed to load ".concat(n,
" bidder translation file"))}})}}),e.call(this,t)}function _(e,t,n){function r(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?(i=Object.keys(t),T.every(function(e){return l()(i,e)&&!l()([void 0,null],t[e])})?"native"!==t.mediaType||Object(c.f)(t,n)?"video"!==t.mediaType||Object(u.c)(t,n)?!("banner"===t.mediaType&&!function(e,t,n){if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,
10),!0;var r=Object(h.getBidderRequest)(n,t.bidderCode,e),i=r&&r.bids&&r.bids[0]&&r.bids[0].sizes,o=Object(h.parseSizesInput)(i);if(1!==o.length)return!1;var a=S(o[0].split("x"),2),c=a[0],u=a[1];return t.width=parseInt(c,10),t.height=parseInt(u,10),!0}(e,t,n))||(Object(h.logError)(r("Banner bids require a width and height")),!1):(Object(h.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):(Object(h.logError)(r("Native bid missing some required properties.")),!1):(Object(h.logError)(r("Bidder ".concat(t.bidderCode,
" is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1)):(Object(h.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):(Object(h.logWarn)("No adUnitCode was supplied to addBidResponse."),!1);var i}Object(m.a)("checkAdUnitSetup").before(w)},10:function(e,t,n){function r(e){return Object.keys(e).map(function(t){return Array.isArray(e[t])?e[t].map(function(e){return"".concat(t,"[]\x3d").concat(e)}).join("\x26"):"".concat(t,
"\x3d").concat(e[t])}).join("\x26")}t.b=r,t.c=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var r=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:r?n.search:function(e){return e?e.replace(/^\?/,"").split("\x26").reduce(function(e,t){var n=t.split("\x3d"),r=function(e,
t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o;}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}()}(n,2),i=r[0],o=r[1];return/\[\]$/.test(i)?(i=i.replace("[]",""),e[i]=e[i]||[],e[i].push(o)):e[i]=o||"",e},{}):
{}}(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.a=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(r(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}},11:function(e,t,n){n(83),e.exports=n(14).Array.find},12:function(e,t,n){t.a=i,t.c=function(e){return!(!e||!e.url)},t.b=function(e,t){e.render(t)};var u=n(47),s=n(0),r=n(11),d=n.n(r);function i(e){var t=this,n=e.url,r=e.config,
i=e.id,o=e.callback,a=e.loaded,c=e.adUnitCode;this.url=n,this.config=r,this.handlers={},this.id=i,this.loaded=a,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):s.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=o||function(){t.loaded=!0,t.process()},!function(t){var e=pbjs.adUnits,n=d()(e,function(e){return e.code===t});return!!(n&&n.renderer&&n.renderer.url&&n.renderer.render)}(c)?Object(u.b)(n,this.callback,!0):s.logWarn("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(c))}
i.install=function(e){return new i({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},i.prototype.getConfig=function(){return this.config},i.prototype.setRender=function(e){this.render=e},i.prototype.setEventHandlers=function(e){this.handlers=e},i.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),s.logMessage("Prebid Renderer event for id ".concat(t," type ").concat(n))},i.prototype.process=
function(){for(;0<this.cmd.length;)try{this.cmd.shift().call()}catch(e){s.logError("Error processing Renderer command: ",e)}}},13:function(e,t,n){var b=n(18),v=n(14),y=n(23),h=n(20),m=n(26),S="prototype",E=function(e,t,n){var r,i,o,a=e&E.F,c=e&E.G,u=e&E.S,s=e&E.P,d=e&E.B,f=e&E.W,l=c?v:v[t]||(v[t]={}),g=l[S],p=c?b:u?b[t]:(b[t]||{})[S];for(r in c&&(n=t),n)(i=!a&&p&&void 0!==p[r])&&m(l,r)||(o=i?p[r]:n[r],l[r]=c&&"function"!=typeof p[r]?n[r]:d&&i?y(o,b):f&&p[r]==o?function(r){var e=function(e,t,n){if(this instanceof
r){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return r.apply(this,arguments)};return e[S]=r[S],e}(o):s&&"function"==typeof o?y(Function.call,o):o,s&&((l.virtual||(l.virtual={}))[r]=o,e&E.R&&g&&!g[r]&&h(g,r,o)))};E.F=1,E.G=2,E.S=4,E.P=8,E.B=16,E.W=32,E.U=64,E.R=128,e.exports=E},130:function(e,t,n){var r=n(13),i=n(40)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,
e,1<arguments.length?arguments[1]:void 0)}}),n(34)(o)},132:function(e,t,n){t.a=function(){addEventListener("message",g,!1)};var r=n(9),o=n.n(r),a=n(27),i=n(4),d=(n.n(i),n(0)),c=n(37),u=n(11),f=n.n(u),l=n(12),s=i.EVENTS.BID_WON;function g(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId){var r=f()(c.a.getBidsReceived(),function(e){return e.adId===n.adId});if("Prebid Request"===n.message&&(function(e,t,n){var r=e.adId,i=e.ad,o=e.adUrl,a=e.width,c=e.height,
u=e.renderer,s=e.cpm;Object(l.c)(u)?Object(l.b)(u,e):r&&(function(e){var r=e.adUnitCode,i=e.width,o=e.height;function a(e){var t=function(e){return window.googletag?function(e){return f()(window.googletag.pubads().getSlots().filter(Object(d.isSlotMatchingAdUnitCode)(e)),function(e){return e}).getSlotElementId()}(e):window.apntag?function(e){var t=window.apntag.getTag(e);return t&&t.targetId}(e):e}(r),n=document.getElementById(t);return n&&n.querySelector(e)}["div","iframe"].forEach(function(e){var t=
a(e);if(t){var n=t.style;n.width=i+"px",n.height=o+"px"}else Object(d.logWarn)("Unable to locate matching page element for adUnitCode ".concat(r,".  Can't resize it to ad's dimensions.  Please review setup."))})}(e),n.postMessage(JSON.stringify({message:"Prebid Response",ad:Object(d.replaceAuctionPrice)(i,s),adUrl:Object(d.replaceAuctionPrice)(o,s),adId:r,width:a,height:c}),t))}(r,n.adServerDomain,e.source),c.a.addWinningBid(r),o.a.emit(s,r)),"Prebid Native"===n.message){if("assetRequest"===n.action){var i=
Object(a.c)(n,r);return void e.source.postMessage(JSON.stringify(i),e.origin)}if("click"===Object(a.b)(n,r))return;c.a.addWinningBid(r),o.a.emit(s,r)}}}},133:function(e,t,n){t.a=function(e){var t;try{e=e||window.sessionStorage,t=JSON.parse(e.getItem(u))}catch(e){}t&&f(t,!0)};var r=n(3),o=n(0),i=n(36);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
var c,u="pbjs:debugging";function s(e){Object(o.logMessage)("DEBUG: "+e)}function d(){i.c.getHooks({hook:c}).remove()}function f(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];r.config.setConfig({debug:!0}),s("bidder overrides enabled".concat(t?" from session":"")),d(),c=function(e,r,i){if(Array.isArray(this.bidders)&&-1===this.bidders.indexOf(i.bidderCode))return void function(e){Object(o.logWarn)("DEBUG: "+e)}("bidder '".concat(i.bidderCode,"' excluded from auction by bidder overrides"));
Array.isArray(this.bids)&&this.bids.forEach(function(n){n.bidder&&n.bidder!==i.bidderCode||n.adUnitCode&&n.adUnitCode!==r||(i=a({},i),Object.keys(n).filter(function(e){return-1===["bidder","adUnitCode"].indexOf(e)}).forEach(function(e){var t=n[e];s("bidder overrides changed '".concat(r,"/").concat(i.bidderCode,"' bid.").concat(e," from '").concat(i[e],"' to '").concat(t,"'")),i[e]=t}))});e(r,i)}.bind(e),i.c.before(c,5)}function l(e){if(e.enabled){try{window.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){}f(e)}else{d(),
s("bidder overrides disabled");try{window.sessionStorage.removeItem(u)}catch(e){}}}r.config.getConfig("debugging",function(e){return l(e.debugging)})},134:function(e,t,n){n(135),n(67),n(144),n(146),n(150),n(153),n(155),e.exports=n(14).Set},135:function(e,t){},136:function(e,t,n){var u=n(42),s=n(32);e.exports=function(c){return function(e,t){var n,r,i=String(s(e)),o=u(t),a=i.length;return o<0||a<=o?c?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?c?i.charAt(o):
n:c?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}}},137:function(e,t,n){e.exports=n(20)},138:function(e,t,n){var r=n(68),i=n(39),o=n(51),a={};n(20)(a,n(15)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},139:function(e,t,n){var a=n(19),c=n(25),u=n(140);e.exports=n(21)?Object.defineProperties:function(e,t){c(e);for(var n,r=u(t),i=r.length,o=0;o<i;)a.f(e,n=r[o++],t[n]);return e}},14:function(e,t){var n=e.exports={version:"2.6.5"};"number"==
typeof __e&&(__e=n)},140:function(e,t,n){var r=n(141),i=n(69);e.exports=Object.keys||function(e){return r(e,i)}},141:function(e,t,n){var a=n(26),c=n(44),u=n(59)(!1),s=n(50)("IE_PROTO");e.exports=function(e,t){var n,r=c(e),i=0,o=[];for(n in r)n!=s&&a(r,n)&&o.push(n);for(;t.length>i;)a(r,n=t[i++])&&(~u(o,n)||o.push(n));return o}},142:function(e,t,n){var r=n(18).document;e.exports=r&&r.documentElement},143:function(e,t,n){var r=n(26),i=n(41),o=n(50)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||
function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},144:function(e,t,n){n(145);for(var r=n(18),i=n(20),o=n(28),a=n(15)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),
u=0;u<c.length;u++){var s=c[u],d=r[s],f=d&&d.prototype;f&&!f[a]&&i(f,a,s),o[s]=o.Array}},145:function(e,t,n){var r=n(34),i=n(70),o=n(28),a=n(44);e.exports=n(49)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},146:function(e,t,n){var r=n(147),i=n(78);e.exports=n(149)("Set",function(e){return function(){return e(this,
0<arguments.length?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},147:function(e,t,n){var a=n(19).f,c=n(68),u=n(71),s=n(23),d=n(72),f=n(38),r=n(49),i=n(70),o=n(148),l=n(21),g=n(77).fastKey,p=n(78),b=l?"_s":"size",v=function(e,t){var n,r=g(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,o,n,r){var i=e(function(e,t){d(e,i,o,"_i"),e._t=o,e._i=c(null),e._f=void 0,e._l=void 0,e[b]=0,null!=t&&f(t,n,e[r],e)});
return u(i.prototype,{clear:function(){for(var e=p(this,o),t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var t=p(this,o),n=v(t,e);if(n){var r=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),t._f==n&&(t._f=r),t._l==n&&(t._l=i),t[b]--}return!!n},forEach:function(e){p(this,o);for(var t,n=s(e,1<arguments.length?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!v(p(this,o),e)}}),l&&
a(i.prototype,"size",{get:function(){return p(this,o)[b]}}),i},def:function(e,t,n){var r,i,o=v(e,t);return o?o.v=n:(e._l=o={i:i=g(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[b]++,"F"!==i&&(e._i[i]=o)),e},getEntry:v,setStrong:function(e,n,t){r(e,n,function(e,t){this._t=p(e,n),this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?i(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,i(1))},t?"entries":"values",!t,
!0),o(n)}}},148:function(e,t,n){var r=n(18),i=n(14),o=n(19),a=n(21),c=n(15)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[c]&&o.f(t,c,{configurable:!0,get:function(){return this}})}},149:function(e,t,n){var f=n(18),l=n(13),g=n(77),p=n(30),b=n(20),v=n(71),y=n(38),h=n(72),m=n(16),S=n(51),E=n(19).f,A=n(40)(0),T=n(21);e.exports=function(n,e,t,r,i,o){var a=f[n],c=a,u=i?"set":"add",s=c&&c.prototype,d={};return T&&"function"==typeof c&&(o||s.forEach&&!p(function(){(new c).entries().next()}))?
(c=e(function(e,t){h(e,c,n,"_c"),e._c=new a,null!=t&&y(t,i,e[u],e)}),A("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(r){var i="add"==r||"set"==r;r in s&&(!o||"clear"!=r)&&b(c.prototype,r,function(e,t){if(h(this,c,r),!i&&o&&!m(e))return"get"==r&&void 0;var n=this._c[r](0===e?0:e,t);return i?this:n})}),o||E(c.prototype,"size",{get:function(){return this._c.size}})):(c=r.getConstructor(e,n,i,u),v(c.prototype,t),g.NEED=!0),S(c,n),d[n]=c,l(l.G+l.W+l.F,d),o||r.setStrong(c,
n,i),c}},15:function(e,t,n){var r=n(57)("wks"),i=n(43),o=n(18).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},150:function(e,t,n){var r=n(13);r(r.P+r.R,"Set",{toJSON:n(151)("Set")})},151:function(e,t,n){var r=n(76),i=n(152);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},152:function(e,t,n){var r=n(38);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},
153:function(e,t,n){n(154)("Set")},154:function(e,t,n){var r=n(13);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},155:function(e,t,n){n(156)("Set")},156:function(e,t,n){var r=n(13),a=n(53),c=n(23),u=n(38);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,i,o=arguments[1];return a(this),(t=void 0!==o)&&a(o),null==e?new this:(n=[],t?(r=0,i=c(o,arguments[2],2),u(e,!1,function(e){n.push(i(e,r++))})):u(e,!1,
n.push,n),new this(n))}})}},157:function(e,t,n){n(67),n(158),e.exports=n(14).Array.from},158:function(e,t,n){var l=n(23),r=n(13),g=n(41),p=n(73),b=n(74),v=n(33),y=n(159),h=n(75);r(r.S+r.F*!n(160)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,i,o=g(e),a="function"==typeof this?this:Array,c=arguments.length,u=1<c?arguments[1]:void 0,s=void 0!==u,d=0,f=h(o);if(s&&(u=l(u,2<c?arguments[2]:void 0,2)),null==f||a==Array&&b(f))for(n=new a(t=v(o.length));d<t;d++)y(n,d,s?u(o[d],d):o[d]);else for(i=
f.call(o),n=new a;!(r=i.next()).done;d++)y(n,d,s?p(i,u,[r.value,d],!0):r.value);return n.length=d,n}})},159:function(e,t,n){var r=n(19),i=n(39);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},16:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},160:function(e,t,n){var o=n(15)("iterator"),a=!1;try{var r=[7][o]();r.return=function(){a=!0},Array.from(r,function(){throw 2;})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r=[7],
i=r[o]();i.next=function(){return{done:n=!0}},r[o]=function(){return i},e(r)}catch(e){}return n}},17:function(e,t,n){n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),t.c=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:15;0===e.getHooks({hook:t}).length&&e.before(t,n)};var r=n(90),i=n.n(r),o=i()({ready:i.a.SYNC|i.a.ASYNC|i.a.QUEUE}),a=o.get},18:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==
Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},19:function(e,t,n){var r=n(25),i=n(84),o=n(85),a=Object.defineProperty;t.f=n(21)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},2:function(e,t,n){n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r="native",
i="video",o="banner",a="adpod"},20:function(e,t,n){var r=n(19),i=n(39);e.exports=n(21)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},21:function(e,t,n){e.exports=!n(30)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},22:function(e,t,n){t.a=function(e,t){return new r(e,t)};var i=n(0);function r(e,t){var n=t&&t.src||"client",r=e||0;this.bidderCode=t&&t.bidder||"",this.width=0,this.height=0,this.statusMessage=function(){switch(r){case 0:return"Pending";
case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}(),this.adId=i.getUniqueIdentifierStr(),this.requestId=t&&t.bidId,this.mediaType="banner",this.source=n,this.getStatusCode=function(){return r},this.getSize=function(){return this.width+"x"+this.height}}},23:function(e,t,n){var o=n(53);e.exports=function(r,i,e){if(o(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,
e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}}},24:function(e,t,n){n.d(t,"a",function(){return o});var s=n(0),d=n(3),r=n(8),f=n.n(r);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o;}}return n}(e,
t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}()}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}d.config.setDefaults({userSync:{syncEnabled:!0,pixelEnabled:!0,syncsPerBidder:5,syncDelay:3E3}});var i=!s.isSafariBrowser()&&s.cookiesAreEnabled(),o=function(e){var r={},i={image:[],iframe:[]},t=!1,o=
{},a={image:!1,iframe:!1},c=e.config;function n(){if(c.syncEnabled&&e.browserSupportsCookies&&(c.enableOverride||!t)){try{(c.pixelEnabled||a.image)&&s.shuffle(i.image).forEach(function(e){var t=l(e,2),n=t[0],r=t[1];s.logMessage("Invoking image pixel user sync for bidder: ".concat(n)),s.triggerPixel(r)}),(c.iframeEnabled||a.iframe)&&s.shuffle(i.iframe).forEach(function(e){var t=l(e,2),n=t[0],r=t[1];s.logMessage("Invoking iframe user sync for bidder: ".concat(n)),s.insertUserSyncIframe(r)})}catch(e){return s.logError("Error firing user syncs",
e)}i={image:[],iframe:[]},t=!0}}function u(e,t){var n=c.filterSettings;if(function(e,t){if(e.all&&e[t])return s.logWarn('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(t,'" in userSync config.  You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var n=e.all?e.all:e[t],r=e.all?"all":t;if(!n)return!1;var i=n.filter,o=n.bidders;return i&&"include"!==i&&"exclude"!==i?(s.logWarn('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,
"' is not a valid option; use either 'include' or 'exclude'.")),!1):!!("*"===o||Array.isArray(o)&&0<o.length&&o.every(function(e){return s.isStr(e)&&"*"!==e}))||(s.logWarn('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1)}(n,e)){a[e]=!0;var r=n.all?n.all:n[e],i="*"===r.bidders?[t]:r.bidders;return{include:function(e,t){return!f()(e,t)},exclude:function(e,t){return f()(e,t)}}[r.filter||"include"](i,
t)}return!1}return d.config.getConfig("userSync",function(e){c=g(c,e.userSync)}),r.registerSync=function(e,t,n){return c.syncEnabled&&s.isArray(i[e])?t?0!==c.syncsPerBidder&&Number(o[t])>=c.syncsPerBidder?s.logWarn('Number of user syncs exceeded for "'.concat(t,'"')):r.canBidderRegisterSync(e,t)?(i[e].push([t,n]),void(o=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(o,t))):s.logWarn('Bidder "'.concat(t,'" not permitted to register their "').concat(e,'" userSync pixels.')):s.logWarn("Bidder is required for registering sync"):
s.logWarn('User sync type "'.concat(e,'" not supported'))},r.syncUsers=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(n,Number(e));n()},r.triggerUserSyncs=function(){c.enableOverride&&r.syncUsers()},r.canBidderRegisterSync=function(e,t){if(c.filterSettings){if(u(e,t))return!1}else{if(c.enabledBidders&&c.enabledBidders.length&&c.enabledBidders.indexOf(t)<0)return!1;if("iframe"===e&&!c.iframeEnabled&&!a.iframe)return!1;if("image"===e&&!c.pixelEnabled&&
!a.image)return!1}return!0},r}({config:d.config.getConfig("userSync"),browserSupportsCookies:i})},25:function(e,t,n){var r=n(16);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},26:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},27:function(e,t,n){n.d(t,"e",function(){return o}),n.d(t,"a",function(){return s}),t.g=function(e){if(e&&e.type&&function(e){return!(!e||!c()(Object.keys(d),e))||(Object(a.logError)("".concat(e," nativeParam is not supported")),
!1)}(e.type))return d[e.type];return e},t.f=function(t,e){var n=Object(a.getBidRequest)(t.requestId,e);if(!n)return!1;if(!Object(a.deepAccess)(t,"native.clickUrl"))return!1;if(Object(a.deepAccess)(t,"native.image")&&(!Object(a.deepAccess)(t,"native.image.height")||!Object(a.deepAccess)(t,"native.image.width")))return!1;if(Object(a.deepAccess)(t,"native.icon")&&(!Object(a.deepAccess)(t,"native.icon.height")||!Object(a.deepAccess)(t,"native.icon.width")))return!1;var r=n.nativeParams;if(!r)return!0;
var i=Object.keys(r).filter(function(e){return r[e].required}),o=Object.keys(t.native).filter(function(e){return t.native[e]});return i.every(function(e){return c()(o,e)})},t.b=function(e,t){var n;"click"===e.action?n=t.native&&t.native.clickTrackers:(n=t.native&&t.native.impressionTrackers,t.native&&t.native.javascriptTrackers&&Object(a.insertHtmlIntoIframe)(t.native.javascriptTrackers));return(n||[]).forEach(a.triggerPixel),e.action},t.d=function(r,i){var o={};return Object.keys(r.native).forEach(function(e){var t=
u.NATIVE_KEYS[e],n=f(r.native[e]);Object(a.deepAccess)(i,"mediaTypes.native.".concat(e,".sendId"))&&(n="".concat(t,":").concat(r.adId)),t&&n&&(o[t]=n)}),o},t.c=function(e,r){var i={message:"assetResponse",adId:e.adId,assets:[]};return e.assets.forEach(function(e){var t=Object(a.getKeyByValue)(u.NATIVE_KEYS,e),n=f(r.native[t]);i.assets.push({key:t,value:n})}),i};var a=n(0),r=n(8),c=n.n(r);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:
function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=n(4),o=[],s=Object.keys(u.NATIVE_KEYS).map(function(e){return u.NATIVE_KEYS[e]}),d={image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}};function f(e){return"object"===i(e)&&e.url?e.url:e}},28:function(e,t){e.exports={}},29:function(qy,ry){var sy;sy=function(){return this}();try{sy=sy||Function("return this")()||
eval("this")}catch(e){"object"==typeof window&&(sy=window)}qy.exports=sy},3:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"RANDOM",function(){return a}),t.newConfig=c,n.d(t,"config",function(){return u});var s=n(52),r=n(11),d=n.n(r),i=n(8),o=n.n(i),f=n(17);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e){return(g=
"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=n(0),b=!1,v=3E3,y=window.location.origin,h=!0,m=!1,S=!1,E=400,a="random",A={};A[a]=!0,A.fixed=!0;var T=a,I={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},O="*";function c(){var a,c,r=[];function e(){a={};var n={_debug:b,get debug(){return this._debug},set debug(e){this._debug=
e},_bidderTimeout:v,get bidderTimeout(){return this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:y,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_priceGranularity:I.MEDIUM,set priceGranularity(e){o(e)&&("string"==typeof e?this._priceGranularity=i(e)?e:I.MEDIUM:"object"===g(e)&&(this._customPriceBucket=e,this._priceGranularity=I.CUSTOM,p.logMessage("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},
_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_mediaTypePriceGranularity:{},get mediaTypePriceGranularity(){return this._mediaTypePriceGranularity},set mediaTypePriceGranularity(n){var r=this;this._mediaTypePriceGranularity=Object.keys(n).reduce(function(e,t){return o(n[t])?"string"==typeof n?e[t]=i(n[t])?n[t]:r._priceGranularity:"object"===g(n)&&(e[t]=n[t],p.logMessage("Using custom price granularity for ".concat(t))):p.logWarn("Invalid price granularity for media type: ".concat(t)),
e},{})},_sendAllBids:h,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_useBidCache:S,get useBidCache(){return this._useBidCache},set useBidCache(e){this._useBidCache=e},_bidderSequence:T,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){A[e]?this._bidderSequence=e:p.logWarn("Invalid order: ".concat(e,". Bidder Sequence was not set."))},_timeoutBuffer:E,get timeoutBuffer(){return this._timeoutBuffer},set timeoutBuffer(e){this._timeoutBuffer=
e},_disableAjaxTimeout:m,get disableAjaxTimeout(){return this._disableAjaxTimeout},set disableAjaxTimeout(e){this._disableAjaxTimeout=e}};function i(t){return d()(Object.keys(I),function(e){return t===I[e]})}function o(e){if(!e)return p.logError("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)i(e)||p.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if("object"===g(e)&&!Object(s.b)(e))return p.logError("Invalid custom price value passed to `setPriceGranularity()`"),
!1;return!0}c&&u(Object.keys(c).reduce(function(e,t){return c[t]!==n[t]&&(e[t]=n[t]||{}),e},{})),c=n}var t=Object(f.b)("async",function(n){if("object"===g(n)){var e=Object.keys(n),r={};e.forEach(function(e){var t=n[e];"object"===g(a[e])&&"object"===g(t)&&(t=l({},a[e],t)),r[e]=c[e]=t}),u(r)}else p.logError("setConfig options must be an object")});function u(t){var n=Object.keys(t);r.filter(function(e){return o()(n,e.topic)}).forEach(function(e){e.callback(function(e,t,n){return t in e?Object.defineProperty(e,
t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.topic,t[e.topic]))}),r.filter(function(e){return e.topic===O}).forEach(function(e){return e.callback(t)})}return e(),{getConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?p.deepAccess(c,e):c}return function(e,t){var n=t;return"string"!=typeof e&&(n=e,e=O),"function"==typeof n?(r.push({topic:e,callback:n}),function(){r.splice(r.indexOf(t),
1)}):void p.logError("listener must be a function")}.apply(void 0,arguments)},setConfig:t,setDefaults:function(e){"object"===g(a)?(l(a,e),l(c,e)):p.logError("defaults must be an object")},resetConfig:e}}var u=c()},30:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},31:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},32:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},33:function(e,t,n){var r=
n(42),i=Math.min;e.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},34:function(e,t){e.exports=function(){}},35:function(e,t,n){n(130),e.exports=n(14).Array.findIndex},36:function(e,t,n){n.d(t,"b",function(){return N}),n.d(t,"a",function(){return k}),t.h=function(e){var t,a,u,s,c=e.adUnits,n=e.adUnitCodes,r=e.callback,i=e.cbTimeout,o=e.labels,d=e.auctionId,f=c,l=o,g=n,p=[],b=[],v=[],y=d||j.generateUUID(),h=r,m=i,S=[],E=new Set;function A(){return{auctionId:y,timestamp:t,auctionEnd:a,auctionStatus:u,
adUnits:f,adUnitCodes:g,labels:l,bidderRequests:p,noBids:v,bidsReceived:b,winningBids:S,timeout:m}}function T(e,t){if(t&&clearTimeout(s),null!=h){var n=[];e&&(j.logMessage("Auction ".concat(y," timedOut")),(n=function(e,t){return e.map(function(e){return(e.bids||[]).filter(function(e){return!t.has(e.bidder)})}).reduce(w.flatten,[]).map(function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}})}(p,E)).length&&U.emit(D.EVENTS.BID_TIMEOUT,n));try{u=k,a=Date.now(),
U.emit(D.EVENTS.AUCTION_END,A());var r=g,i=b.filter(j.bind.call(w.adUnitsFilter,this,r)).reduce(L,{});h.apply(pbjs,[i,e])}catch(e){j.logError("Error executing bidsBackHandler",null,e)}finally{n.length&&B.callTimedOutBidders(c,n,m);var o=_.config.getConfig("userSync")||{};o.enableOverride||C(o.syncDelay)}h=null}}function I(){j.logInfo("Bids Received for Auction with id: ".concat(y),b),u=k,T(!1,!0)}function O(e){E.add(e)}return{addBidReceived:function(e){b=b.concat(e)},addNoBid:function(e){v=v.concat(e)},
executeCallback:T,callBids:function(){var n=this;u=R,t=Date.now();var i=B.makeBidRequests(f,t,y,m,l);j.logInfo("Bids Requested for Auction with id: ".concat(y),i),i.forEach(function(e){var t;t=e,p=p.concat(t)});var o={};if(i.length<1)j.logWarn("No valid bid requests returned for auction"),I();else{var e={bidRequests:i,run:function(){var e,t;e=T.bind(null,!0),t=setTimeout(e,m),s=t,u=N,U.emit(D.EVENTS.AUCTION_INIT,A());var r=W(I,n);B.callBids(f,i,function(){for(var e=arguments.length,t=new Array(e),
n=0;n<e;n++)t[n]=arguments[n];G.apply({dispatch:r.addBidResponse,bidderRequest:this},t)},r.adapterDone,{request:function(e,t){c(P,t),c(o,e),M[e]||(M[e]={SRA:!0,origin:t}),1<o[e]&&(M[e].SRA=!1)},done:function(e){P[e]--,q[0]&&a(q[0])&&q.shift()}},m,O)}};a(e)||(j.logWarn("queueing auction due to limited endpoint capacity"),q.push(e))}function a(e){var r=!0,i=_.config.getConfig("maxRequestsPerOrigin")||x;return e.bidRequests.some(function(e){var t=1,n=void 0!==e.src&&e.src===D.S2S.SRC?"s2s":e.bidderCode;
return M[n]&&(!1===M[n].SRA&&(t=Math.min(e.bids.length,i)),P[M[n].origin]+t>i&&(r=!1)),!r}),r&&e.run(),r}function c(e,t){void 0===e[t]?e[t]=1:e[t]++}},addWinningBid:function(e){S=S.concat(e),B.callBidWonBidder(e.bidder,e,c)},setBidTargeting:function(e){B.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return S},getTimeout:function(){return m},getAuctionId:function(){return y},getAuctionStatus:function(){return u},getAdUnits:function(){return f},getAdUnitCodes:function(){return g},getBidRequests:function(){return p},
getBidsReceived:function(){return b},getNoBids:function(){return v}}},n.d(t,"c",function(){return G}),t.f=d,t.d=v,n.d(t,"e",function(){return h}),t.g=S;var w=n(0),s=n(10),f=n(52),a=n(27),o=n(64),l=n(12),_=n(3),r=n(24),i=n(17),c=n(11),g=n.n(c),u=n(46);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=
Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var C=r.a.syncUsers,j=n(0),B=n(7).default,U=n(9),D=n(4),R="started",N="inProgress",k="completed";U.on(D.EVENTS.BID_ADJUSTMENT,function(e){!function(e){var t,n=e.bidderCode,r=e.cpm;if(pbjs.bidderSettings&&(n&&pbjs.bidderSettings[n]&&"function"==typeof pbjs.bidderSettings[n].bidCpmAdjustment?t=pbjs.bidderSettings[n].bidCpmAdjustment:
pbjs.bidderSettings[D.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[D.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(t=pbjs.bidderSettings[D.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),t))try{r=t(e.cpm,b({},e))}catch(e){j.logError("Error during bid adjustment","bidmanager.js",e)}0<=r&&(e.cpm=r)}(e)});var x=4,P={},M={},q=[];var G=Object(i.b)("async",function(e,t){this.dispatch.call(this.bidderRequest,e,t)},"addBidResponse");function W(t,o){var a=0,n=false,
r=new Set,c={};function u(){a--;if(n&&a===0)t()}function e(e,t){var n=this;c[t.requestId]=true,a++;var r=o.getAuctionId(),i=m({adUnitCode:e,bid:t,bidderRequest:n,auctionId:r});if(i.mediaType==="video")y(o,i,n,u);else{v(o,i);u()}}function i(){var e=this;if(r.add(this),n=o.getBidRequests().every(function(e){return r.has(e)}),this.bids.forEach(function(e){c[e.bidId]||(o.addNoBid(e),U.emit(D.EVENTS.NO_BID,e))}),n&&0===a)t()}return{addBidResponse:e,adapterDone:i}}function d(e,t){t.timeToRespond>e.getTimeout()+
_.config.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function v(e,t){var n=e.getBidRequests(),r=g()(n,function(e){return e.bidderCode===t.bidderCode});!function(t,e){var n;if(t.bidderCode&&(0<t.cpm||t.dealId)){var r=g()(e.bids,function(e){return e.adUnitCode===t.adUnitCode});n=function(e,t,n){if(!t)return{};var r={},i=pbjs.bidderSettings;if(i){var o=S(t.mediaType,e);E(r,o,t),e&&i[e]&&i[e][D.JSON_MAPPING.ADSERVER_TARGETING]&&(E(r,i[e],t),t.sendStandardTargeting=i[e].sendStandardTargeting)}t.native&&
(r=b({},r,Object(a.d)(t,n)));return r}(t.bidderCode,t,r)}t.adserverTargeting=b(t.adserverTargeting||{},n)}(t,r),U.emit(D.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),d(e,t)}function y(e,t,n,r){var i=true,o=Object(w["getBidRequest"])(t.requestId,[n]),a=o&&Object(w["deepAccess"])(o,"mediaTypes.video"),c=a&&Object(w["deepAccess"])(a,"context");if(_["config"].getConfig("cache.url")&&c!==u["a"])if(!t.videoCacheKey){i=false;h(e,t,r,o)}else if(!t.vastUrl){j.logError("videoCacheKey specified but not required vastUrl for video bid");
i=false}if(i){v(e,t);r()}}var h=Object(i.b)("async",function(n,r,i,e){Object(o.b)([r],function(e,t){e?(j.logWarn("Failed to save to the video cache: ".concat(e,". Video bid must be discarded.")),d(n,r)):""===t[0].uuid?(j.logWarn("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),d(n,r)):(r.videoCacheKey=t[0].uuid,r.vastUrl||(r.vastUrl=Object(o.a)(r.videoCacheKey)),v(n,r),i())})},"callPrebidCache");function m(e){var t=e.adUnitCode,
n=e.bid,r=e.bidderRequest,i=e.auctionId,o=r.start,a=b({},n,{auctionId:i,responseTimestamp:Object(w["timestamp"])(),requestTimestamp:o,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});a.timeToRespond=a.responseTimestamp-a.requestTimestamp,U.emit(D.EVENTS.BID_ADJUSTMENT,a);var c=r.bids&&g()(r.bids,function(e){return e.adUnitCode==t}),u=c&&c.renderer;if(u&&u.url){a.renderer=l["a"].install({url:u.url});a.renderer.setRender(u.render)}var s=_["config"].getConfig("mediaTypePriceGranularity.".concat(n.mediaType)),
d=Object(f["a"])(a.cpm,p(s)==="object"?s:_["config"].getConfig("customPriceBucket"),_["config"].getConfig("currency.granularityMultiplier"));return a.pbLg=d.low,a.pbMg=d.med,a.pbHg=d.high,a.pbAg=d.auto,a.pbDg=d.dense,a.pbCg=d.custom,a}function S(e,t){function n(e,t){return{key:e,val:"function"==typeof t?function(e){return t(e)}:function(e){return Object(w.getValue)(e,t)}}}var r=D.TARGETING_KEYS,i=_.config.getConfig("mediaTypePriceGranularity.".concat(e)),o="string"==typeof e&&i?"string"==typeof i?
i:"custom":_.config.getConfig("priceGranularity"),a=pbjs.bidderSettings;if(a[D.JSON_MAPPING.BD_SETTING_STANDARD]||(a[D.JSON_MAPPING.BD_SETTING_STANDARD]={}),a[D.JSON_MAPPING.BD_SETTING_STANDARD][D.JSON_MAPPING.ADSERVER_TARGETING]||(a[D.JSON_MAPPING.BD_SETTING_STANDARD][D.JSON_MAPPING.ADSERVER_TARGETING]=[n(r.BIDDER,"bidderCode"),n(r.AD_ID,"adId"),n(r.PRICE_BUCKET,function(e){return o===D.GRANULARITY_OPTIONS.AUTO?e.pbAg:o===D.GRANULARITY_OPTIONS.DENSE?e.pbDg:o===D.GRANULARITY_OPTIONS.LOW?e.pbLg:o===
D.GRANULARITY_OPTIONS.MEDIUM?e.pbMg:o===D.GRANULARITY_OPTIONS.HIGH?e.pbHg:o===D.GRANULARITY_OPTIONS.CUSTOM?e.pbCg:void 0}),n(r.SIZE,"size"),n(r.DEAL,"dealId"),n(r.SOURCE,"source"),n(r.FORMAT,"mediaType")]),"video"===e){var c=a[D.JSON_MAPPING.BD_SETTING_STANDARD][D.JSON_MAPPING.ADSERVER_TARGETING];if([r.UUID,r.CACHE_ID].forEach(function(t){void 0===g()(c,function(e){return e.key===t})&&c.push(n(t,"videoCacheKey"))}),_.config.getConfig("cache.url")&&(!t||!1!==j.deepAccess(a,"".concat(t,".sendStandardTargeting")))){var u=
Object(s.c)(_.config.getConfig("cache.url"));void 0===g()(c,function(e){return e.key===r.CACHE_HOST})&&c.push(n(r.CACHE_HOST,function(e){return j.deepAccess(e,"adserverTargeting.".concat(r.CACHE_HOST))?e.adserverTargeting[r.CACHE_HOST]:u.hostname}))}}return a[D.JSON_MAPPING.BD_SETTING_STANDARD]}function E(r,i,o){var e=i[D.JSON_MAPPING.ADSERVER_TARGETING];return o.size=o.getSize(),j._each(e,function(e){var t=e.key,n=e.val;if(r[t]&&j.logWarn("The key: "+t+" is getting ovewritten"),j.isFn(n))try{n=n(o)}catch(e){j.logError("bidmanager",
"ERROR",e)}(void 0===i.suppressEmptyKeys||!0!==i.suppressEmptyKeys)&&t!==D.TARGETING_KEYS.DEAL||!j.isEmptyStr(n)&&null!=n?r[t]=n:j.logInfo("suppressing empty key '"+t+"' from adserver targeting")}),r}function L(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},37:function(e,t,n){n.d(t,"a",function(){return d});var r=n(0),u=n(36),i=n(11),o=n.n(i),a=n(4);var s,c,d=(s=[],(c={}).addWinningBid=function(t){var e=o()(s,function(e){return e.getAuctionId()===t.auctionId});
e?e.addWinningBid(t):utils.logWarn("Auction not found when adding winning bid")},c.getAllWinningBids=function(){return s.map(function(e){return e.getWinningBids()}).reduce(r.flatten,[])},c.getBidsRequested=function(){return s.map(function(e){return e.getBidRequests()}).reduce(r.flatten,[])},c.getNoBids=function(){return s.map(function(e){return e.getNoBids()}).reduce(r.flatten,[])},c.getBidsReceived=function(){return s.map(function(e){if(e.getAuctionStatus()===u.a)return e.getBidsReceived()}).reduce(r.flatten,
[]).filter(function(e){return e})},c.getAdUnits=function(){return s.map(function(e){return e.getAdUnits()}).reduce(r.flatten,[])},c.getAdUnitCodes=function(){return s.map(function(e){return e.getAdUnitCodes()}).reduce(r.flatten,[]).filter(r.uniques)},c.createAuction=function(e){var t=e.adUnits,n=e.adUnitCodes,r=e.callback,i=e.cbTimeout,o=e.labels,a=e.auctionId,c=Object(u.h)({adUnits:t,adUnitCodes:n,callback:r,cbTimeout:i,labels:o,auctionId:a});return function(e){s.push(e)}(c),c},c.findBidByAdId=function(t){return o()(s.map(function(e){return e.getBidsReceived()}).reduce(r.flatten,
[]),function(e){return e.adId===t})},c.getStandardBidderAdServerTargeting=function(){return Object(u.g)()[a.JSON_MAPPING.ADSERVER_TARGETING]},c.setStatusForBids=function(e,t){var n=c.findBidByAdId(e);if(n&&(n.status=t),n&&t===a.BID_STATUS.BID_TARGETING_SET){var r=o()(s,function(e){return e.getAuctionId()===n.auctionId});r&&r.setBidTargeting(n)}},c.getLastAuctionId=function(){return s.length&&s[s.length-1].getAuctionId()},c)},38:function(e,t,n){var l=n(23),g=n(73),p=n(74),b=n(25),v=n(33),y=n(75),h=
{},m={};(t=e.exports=function(e,t,n,r,i){var o,a,c,u,s=i?function(){return e}:y(e),d=l(n,r,t?2:1),f=0;if("function"!=typeof s)throw TypeError(e+" is not iterable!");if(p(s))for(o=v(e.length);f<o;f++){if((u=t?d(b(a=e[f])[0],a[1]):d(e[f]))===h||u===m)return u}else for(c=s.call(e);!(a=c.next()).done;)if((u=g(c,d,a.value,t))===h||u===m)return u}).BREAK=h,t.RETURN=m},39:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4:function(e,t){e.exports=
{JSON_MAPPING:{PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",
BID_RESPONSE:"bidResponse",NO_BID:"noBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed"},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocuemnt",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",
DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:{BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host"},NATIVE_KEYS:{title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",
cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice"},S2S:{SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},BID_STATUS:{BID_TARGETING_SET:"targetingSet",RENDERED:"rendered"}}},40:function(e,t,n){var m=n(23),S=n(55),E=n(41),A=n(33),r=n(86);e.exports=function(f,e){var l=1==f,g=2==f,p=
3==f,b=4==f,v=6==f,y=5==f||v,h=e||r;return function(e,t,n){for(var r,i,o=E(e),a=S(o),c=m(t,n,3),u=A(a.length),s=0,d=l?h(e,u):g?h(e,0):void 0;s<u;s++)if((y||s in a)&&(i=c(r=a[s],s,o),f))if(l)d[s]=i;else if(i)switch(f){case 3:return!0;case 5:return r;case 6:return s;case 2:d.push(r)}else if(b)return!1;return v?-1:p||b?b:d}}},41:function(e,t,n){var r=n(32);e.exports=function(e){return Object(r(e))}},42:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},
43:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},44:function(e,t,n){var r=n(55),i=n(32);e.exports=function(e){return r(i(e))}},45:function(e,t,n){t.a=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},46:function(e,t,n){n.d(t,"a",function(){return c}),t.c=function(e,t){var n=Object(o.getBidRequest)(e.requestId,t),r=n&&Object(o.deepAccess)(n,"mediaTypes.video"),
i=r&&Object(o.deepAccess)(r,"context");return u(e,n,r,i)},n.d(t,"b",function(){return u});n(7);var o=n(0),i=n(3),r=n(8),a=(n.n(r),n(17)),c="outstream";var u=Object(a.b)("sync",function(e,t,n,r){return!t||n&&r!==c?i.config.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(Object(o.logError)('\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n      '),
!1):r!==c||!(!e.renderer&&!t.renderer)},"checkVideoBidSetup")},47:function(e,t,n){t.a=function(e,t){if(!t||!e)return void o.logError("cannot load external script without url and moduleCode");if(!i()(c,t))return void o.logError("".concat(t," not whitelisted for loading external JavaScript"));if(a[e])return;o.logWarn("module ".concat(t," is loading external JavaScript"));var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,o.insertElement(n),a[e]=!0},t.b=function(t,e,n){if(!t)return void o.logError("Error attempting to request empty URL",
"adloader.js:loadScript");n?a[t]?e&&"function"==typeof e&&(a[t].loaded?e():a[t].callbacks.push(e)):(a[t]={loaded:!1,callbacks:[]},e&&"function"==typeof e&&a[t].callbacks.push(e),u(t,function(){a[t].loaded=!0;try{for(var e=0;e<a[t].callbacks.length;e++)a[t].callbacks[e]()}catch(e){o.logError("Error executing callback","adloader.js:loadScript",e)}})):u(t,e)};var r=n(8),i=n.n(r),o=n(0),a={},c=["criteo"];function u(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,t&&"function"==
typeof t&&(n.readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,t())}:n.onload=function(){t()}),n.src=e;var r=document.getElementsByTagName("head");(r=r.length?r:document.getElementsByTagName("body")).length&&(r=r[0]).insertBefore(n,r.firstChild)}},48:function(e,t,n){t.a=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]},49:function(e,t,n){var m=n(58),
S=n(13),E=n(137),A=n(20),T=n(28),I=n(138),O=n(51),w=n(143),_=n(15)("iterator"),C=!([].keys&&"next"in[].keys()),j="values",B=function(){return this};e.exports=function(e,t,n,r,i,o,a){I(n,t,r);var c,u,s,d=function(e){if(!C&&e in p)return p[e];switch(e){case "keys":case j:return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",l=i==j,g=!1,p=e.prototype,b=p[_]||p["@@iterator"]||i&&p[i],v=b||d(i),y=i?l?d("entries"):v:void 0,h="Array"==t&&p.entries||b;if(h&&(s=w(h.call(new e)))!==
Object.prototype&&s.next&&(O(s,f,!0),m||"function"==typeof s[_]||A(s,_,B)),l&&b&&b.name!==j&&(g=!0,v=function(){return b.call(this)}),m&&!a||!C&&!g&&p[_]||A(p,_,v),T[t]=v,T[f]=B,i)if(c={values:l?v:d(j),keys:o?v:d("keys"),entries:y},a)for(u in c)u in p||E(p,u,c[u]);else S(S.P+S.F*(C||g),t,c);return c}},5:function(e,t,n){n.d(t,"a",function(){return r}),t.b=i;var l=n(10),g=n(3);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,
r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=n(0),y=4,r=i();function i(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:3E3,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=e.request,f=e.done;return function(e,t,n){var r=3<arguments.length&&
void 0!==arguments[3]?arguments[3]:{};try{var i,o=r.method||(n?"POST":"GET"),a=document.createElement("a");a.href=e;var c="object"===b(t)&&null!==t?t:{success:function(){v.logMessage("xhr success")},error:function(e){v.logError("xhr error",null,e)}};if("function"==typeof t&&(c.success=t),(i=new window.XMLHttpRequest).onreadystatechange=function(){if(i.readyState===y){"function"==typeof f&&f(a.origin);var e=i.status;200<=e&&e<300||304===e?c.success(i.responseText,i):c.error(i.statusText,i)}},g.config.getConfig("disableAjaxTimeout")||
(i.ontimeout=function(){v.logError("  xhr timeout after ",i.timeout,"ms")}),"GET"===o&&n){var u=Object(l.c)(e,r);p(u.search,n),e=Object(l.a)(u)}i.open(o,e,!0),g.config.getConfig("disableAjaxTimeout")||(i.timeout=s),r.withCredentials&&(i.withCredentials=!0),v._each(r.customHeaders,function(e,t){i.setRequestHeader(t,e)}),r.preflight&&i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type",r.contentType||"text/plain"),"function"==typeof d&&d(a.origin),"POST"===o&&n?
i.send(n):i.send()}catch(e){v.logError("xhr construction",e)}}}},50:function(e,t,n){var r=n(57)("keys"),i=n(43);e.exports=function(e){return r[e]||(r[e]=i(e))}},51:function(e,t,n){var r=n(19).f,i=n(26),o=n(15)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},52:function(e,t,n){n.d(t,"a",function(){return l}),n.d(t,"b",function(){return p});var r=n(11),a=n.n(r),i=n(0),s=2,o={buckets:[{min:0,max:5,increment:.5}]},c={buckets:[{min:0,max:20,increment:.1}]},
u={buckets:[{min:0,max:20,increment:.01}]},d={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},f={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};function l(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":g(e,o,n),med:""===r?"":g(e,c,n),high:""===r?"":g(e,u,n),auto:""===r?"":g(e,f,n),dense:""===r?"":g(e,d,n),custom:""===r?"":g(e,t,
n)}}function g(n,e,r){var i="";if(!p(e))return i;var o=e.buckets.reduce(function(e,t){return e.max>t.max?e:t},{max:0}),t=a()(e.buckets,function(e){if(n>o.max*r){var t=e.precision;void 0===t&&(t=s),i=(e.max*r).toFixed(t)}else if(n<=e.max*r&&n>=e.min*r)return e});return t&&(i=function(e,t,n){var r=void 0!==t.precision?t.precision:s,i=t.increment*n,o=t.min*n,a=Math.pow(10,r+2),c=(e*a-o*a)/(i*a),u=Math.floor(c)*i+o;return(u=Number(u.toFixed(10))).toFixed(r)}(n,t,r)),i}function p(e){if(i.isEmpty(e)||!e.buckets||
!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach(function(e){void 0!==e.min&&e.max&&e.increment||(t=!1)}),t}},53:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},54:function(e,t,n){var r=n(16),i=n(18).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},55:function(e,t,n){var r=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):
Object(e)}},56:function(e,t,n){var r=n(31);e.exports=Array.isArray||function(e){return"Array"==r(e)}},57:function(e,t,n){var r=n(14),i=n(18),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(58)?"pure":"global",copyright:"\u00a9 2019 Denis Pushkarev (zloirock.ru)"})},58:function(e,t){e.exports=!0},59:function(e,t,n){var u=n(44),s=n(33),d=n(89);e.exports=function(c){return function(e,t,n){var r,i=u(e),
o=s(i.length),a=d(n,o);if(c&&t!=t)for(;a<o;){if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((c||a in i)&&i[a]===t)return c||a||0;return!c&&-1}}},60:function(e,t,n){t.a=function(e,t){if(e.labelAll)return{labelAll:!0,labels:e.labelAll,activeLabels:t};return{labelAll:!1,labels:e.labelAny,activeLabels:t}},t.c=function(e){var t=v(1<arguments.length&&void 0!==arguments[1]?arguments[1]:b);return!t.shouldFilter||!!t.sizesSupported[e]},t.b=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
{},t=e.labels,n=void 0===t?[]:t,r=e.labelAll,i=void 0!==r&&r,o=e.activeLabels,a=void 0===o?[]:o,c=1<arguments.length?arguments[1]:void 0,u=2<arguments.length?arguments[2]:void 0,s=v(3<arguments.length&&void 0!==arguments[3]?arguments[3]:b);c=Object(g.isPlainObject)(c)?Object(g.deepClone)(c):u?{banner:{sizes:u}}:{};var d=Object(g.deepAccess)(c,"banner.sizes");s.shouldFilter&&d&&(c.banner.sizes=d.filter(function(e){return s.sizesSupported[e]}));var f=Object.keys(c),l={active:1<f.length||1===f.length&&
"banner"!==f[0]||"banner"===f[0]&&0<Object(g.deepAccess)(c,"banner.sizes.length")&&(0===n.length||!i&&(n.some(function(e){return s.labels[e]})||n.some(function(e){return p()(a,e)}))||i&&n.reduce(function(e,t){return e?s.labels[t]||p()(a,t):e},!0)),mediaTypes:c};d&&d.length!==c.banner.sizes.length&&(l.filterResults={before:d,after:c.banner.sizes});return l};var r=n(3),g=n(0),i=n(8),p=n.n(i);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:
function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var b=[];function v(e){return e.reduce(function(n,r){if("object"===o(r)&&"string"==typeof r.mediaQuery){var t=!1;try{t=Object(g.getWindowTop)().matchMedia(r.mediaQuery).matches}catch(e){Object(g.logWarn)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),t=matchMedia(r.mediaQuery).matches}t&&(Array.isArray(r.sizesSupported)&&(n.shouldFilter=!0),["labels","sizesSupported"].forEach(function(t){return(r[t]||
[]).forEach(function(e){return n[t][e]=!0})}))}else Object(g.logWarn)('sizeConfig rule missing required property "mediaQuery"');return n},{labels:{},sizesSupported:{},shouldFilter:!1})}r.config.getConfig("sizeConfig",function(e){return function(e){b=e}(e.sizeConfig)})},600:function(e,t,n){e.exports=n(65)},61:function(e,t,n){n.d(t,"a",function(){return o});var r=n(0),i={};var o={incrementCounter:function(e){return i[e]=i[e]||{},i[e].counter=Object(r.deepAccess)(i,"".concat(e,".counter"))+1||1,i[e].counter},
getCounter:function(e){return Object(r.deepAccess)(i,"".concat(e,".counter"))||0}}},62:function(e,t,n){t.a=r,n.d(t,"b",function(){return i});var c=n(0);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(i){function o(){var e=function(){var t,n=[];do try{t=t?t.parent:i;try{var e=t==i.top,r={referrer:t.document.referrer||null,location:t.location.href||
null,isTop:e};e&&(r=u(r,{canonicalUrl:a(t.document)})),n.push(r)}catch(e){n.push({referrer:null,location:null,isTop:t==i.top}),Object(c.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location")}}catch(e){return n.push({referrer:null,location:null,isTop:!1}),n}while(t!=i.top);return n}(),t=function(){try{if(!i.location.ancestorOrigins)return;return i.location.ancestorOrigins}catch(e){}}();if(t)for(var n=0,r=t.length;n<r;n++)e[n].ancestor=t[n];return e}function a(e){try{var t=
e.querySelector("link[rel\x3d'canonical']");if(null!==t)return t.href}catch(e){}return null}return function(){try{var e,t=o(),n=t.length-1,r=null!==t[n].location||0<n&&null!==t[n-1].referrer,i=function(e){var t,n=[],r=null,i=null,o=null,a=null,c=null;for(t=e.length-1;0<=t;t--){try{r=e[t].location}catch(e){}if(r)n.push(r),c||(c=r);else if(0!==t){i=e[t-1];try{o=i.referrer,a=i.ancestor}catch(e){}o?(n.push(o),c||(c=o)):a?(n.push(a),c||(c=a)):n.push(null)}else n.push(null)}return{stack:n,detectedRefererUrl:c}}(t);
return t[t.length-1].canonicalUrl&&(e=t[t.length-1].canonicalUrl),{referer:i.detectedRefererUrl,reachedTop:r,numIframes:n,stack:i.stack,canonicalUrl:e}}catch(e){}}}var i=r(window)},63:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"TARGETING_KEY_PB_CAT_DUR",function(){return y}),n.d(t,"TARGETING_KEY_CACHE_ID",function(){return h}),t.callPrebidCacheHook=T,t.checkAdUnitSetupHook=I,t.checkVideoBidSetupHook=O,t.adpodSetConfig=w,t.initAdpodHooks=function(){Object(o.c)(d.e,T),Object(o.c)(r.checkAdUnitSetup,
I),Object(o.c)(i.b,O)},t.callPrebidCacheAfterAuction=function(i,o){Object(f.b)(i,function(e,t){if(e)o(e,null);else{for(var n=[],r=0;r<t.length;r++)""!==t[r]&&n.push(i[r]);o(null,n)}})},t.sortByPricePerSecond=function(e,t){if(e.cpm/e.video.durationBucket<t.cpm/t.video.durationBucket)return 1;if(e.cpm/e.video.durationBucket>t.cpm/t.video.durationBucket)return-1;return 0};var s=n(0),d=n(36),r=n(65),i=n(46),o=n(17),f=n(64),c=n(3),u=n(2),a=n(134),l=n.n(a),g=n(11),p=n.n(g);function b(e){return function(e){if(Array.isArray(e)){for(var t=
0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}var v=n(157),y="hb_pb_cat_dur",h="hb_cache_id",m=50,S=5,E=function(){var t={};function n(e){t[e]={},t[e].bidStorage=new l.a,t[e].queueDispatcher=function(a){var c,u=1;return function(e,t,n,r){var i=this,o=function(){(function(i,
o,a){(function(e){for(var t=0;t<e.length;t++)E.removeBid(e[t])})(o),Object(f.b)(o,function(e,t){if(e){s.logWarn("Failed to save to the video cache: ".concat(e,". Video bid(s) must be discarded."));for(var n=0;n<o.length;n++)Object(d.f)(i,o[n])}else for(var r=0;r<t.length;r++)""!==t[r].uuid?Object(d.d)(i,o[r]):s.logInfo("Detected a bid was not cached because the custom key was already registered.  Attempted to use key: ".concat(o[r].customCacheKey,". Bid was: "),o[r]),a()})}).call(i,e,t,n)};clearTimeout(c),
r?u=1:u===S?(u=1,o()):(u++,c=setTimeout(o,a))}}(m),t[e].initialCacheKey=s.generateUUID()}return{addBid:function(e){t[e.auctionId]||n(e.auctionId),t[e.auctionId].bidStorage.add(e)},removeBid:function(e){t[e.auctionId].bidStorage.delete(e)},getBids:function(e){return t[e.auctionId]&&t[e.auctionId].bidStorage.values()},getQueueDispatcher:function(e){return t[e.auctionId]&&t[e.auctionId].queueDispatcher},setupInitialCacheKey:function(e){t[e.auctionId]||(t[e.auctionId]={},t[e.auctionId].initialCacheKey=
s.generateUUID())},getInitialCacheKey:function(e){return t[e.auctionId]&&t[e.auctionId].initialCacheKey}}}();function A(e,t){var n,r=E.getInitialCacheKey(e),i=s.deepAccess(e,"video.durationBucket"),o=e.cpm.toFixed(2);if(t){var a=s.deepAccess(e,"meta.adServerCatId");n="".concat(o,"_").concat(a,"_").concat(i,"s")}else n="".concat(o,"_").concat(i,"s");e.adserverTargeting||(e.adserverTargeting={}),e.adserverTargeting[y]=n,e.adserverTargeting[h]=r,e.videoCacheKey=r,e.customCacheKey="".concat(n,"_").concat(r)}
function T(e,t,n,r,i){var o=s.deepAccess(i,"mediaTypes.video");if(o&&o.context===u.a){var a=c.config.getConfig("adpod.brandCategoryExclusion");!s.deepAccess(n,"meta.adServerCatId")&&a&&(s.logWarn("Detected a bid without meta.adServerCatId while setConfig({adpod.brandCategoryExclusion}) was enabled.  This bid has been rejected:",n),r()),!1===c.config.getConfig("adpod.deferCaching")?(E.addBid(n),A(n,a),function(e,t,n){var r=E.getBids(t);if(r){var i=v(r),o=E.getQueueDispatcher(t),a=!(e.getAuctionStatus()===
d.b);o(e,i,n,a)}else s.logWarn("Attempted to cache a bid from an unknown auction. Bid:",t)}(t,n,r)):(E.setupInitialCacheKey(n),A(n,a),Object(d.d)(t,n),r())}else e.call(this,t,n,r,i)}function I(e,t){t=t.filter(function(e){var t=s.deepAccess(e,"mediaTypes"),n=s.deepAccess(t,"video");if(n&&n.context===u.a){if(1<Object.keys(t).length)return s.logWarn("Detected more than one mediaType in adUnitCode: ".concat(e.code," while attempting to define an 'adpod' video adUnit.  'adpod' adUnits cannot be mixed with other mediaTypes.  This adUnit will be removed from the auction.")),
!1;var r="Detected missing or incorrectly setup fields for an adpod adUnit.  Please review the following fields of adUnitCode: ".concat(e.code,".  This adUnit will be removed from the auction."),i=!(!n.playerSize||!s.isArrayOfNums(n.playerSize)),o=!!(n.adPodDurationSec&&s.isNumber(n.adPodDurationSec)&&0<n.adPodDurationSec),a=!!(n.durationRangeSec&&s.isArrayOfNums(n.durationRangeSec)&&n.durationRangeSec.every(function(e){return 0<e}));if(!i||!o||!a)return r+=i?"":"\nmediaTypes.video.playerSize",r+=
o?"":"\nmediaTypes.video.adPodDurationSec",r+=a?"":"\nmediaTypes.video.durationRangeSec",s.logWarn(r),!1}return!0}),e.call(this,t)}function O(e,t,n,r,i){if(i===u.a){var o=!0;if(c.config.getConfig("adpod.brandCategoryExclusion")&&!s.deepAccess(t,"meta.iabSubCatId")&&(o=!1),s.deepAccess(t,"video"))if(s.deepAccess(t,"video.context")&&t.video.context===u.a||(o=!1),!s.deepAccess(t,"video.durationSeconds")||t.video.durationSeconds<=0)o=!1;else(function(e,t){var n=s.deepAccess(t,"video.durationSeconds"),
r=s.deepAccess(e,"mediaTypes.video"),i=r.durationRangeSec;if(i.sort(function(e,t){return e-t}),r.requireExactDuration){if(!p()(i,function(e){return e===n}))return s.logWarn("Detected a bid with a duration value not part of the list of accepted ranges specified in adUnit.mediaTypes.video.durationRangeSec.  Exact match durations must be used for this adUnit. Rejecting bid: ",t),!1;t.video.durationBucket=n}else{var o=Math.max.apply(Math,b(i));if(!(n<=o+2))return s.logWarn("Detected a bid with a duration value outside the accepted ranges specified in adUnit.mediaTypes.video.durationRangeSec.  Rejecting bid: ",
t),!1;var a=p()(i,function(e){return n<=e+2});t.video.durationBucket=a}return!0})(n,t)||(o=!1);c.config.getConfig("cache.url")||!t.vastXml||t.vastUrl||(s.logError('\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n      '),o=!1),e.bail(o)}else e.call(this,t,n,r,i)}function w(e){void 0!==e.bidQueueTimeDelay&&("number"==typeof e.bidQueueTimeDelay&&0<e.bidQueueTimeDelay?
m=e.bidQueueTimeDelay:s.logWarn("Detected invalid value for adpod.bidQueueTimeDelay in setConfig; must be a positive number.  Using default: ".concat(m))),void 0!==e.bidQueueSizeLimit&&("number"==typeof e.bidQueueSizeLimit&&0<e.bidQueueSizeLimit?S=e.bidQueueSizeLimit:s.logWarn("Detected invalid value for adpod.bidQueueSizeLimit in setConfig; must be a positive number.  Using default: ".concat(S)))}c.config.getConfig("adpod",function(e){return w(e.adpod)})},64:function(e,t,n){t.b=function(e,t){var n=
{puts:e.map(o)};Object(r.a)(i.config.getConfig("cache.url"),function(n){return{success:function(e){var t;try{t=JSON.parse(e).responses}catch(e){return void n(e,[])}t?n(null,t):n(new Error("The cache server didn't respond with a responses property."),[])},error:function(e,t){n(new Error("Error storing video ad in the cache: ".concat(e,": ").concat(JSON.stringify(t))),[])}}}(t),JSON.stringify(n),{contentType:"text/plain",withCredentials:!0})},t.a=function(e){return"".concat(i.config.getConfig("cache.url"),
"?uuid\x3d").concat(e)};var r=n(5),i=n(3);function o(e){var t={type:"xml",value:e.vastXml?e.vastXml:function(e,t){var n=t?"\x3c![CDATA[".concat(t,"]]\x3e"):"";return'\x3cVAST version\x3d"3.0"\x3e\n    \x3cAd\x3e\n      \x3cWrapper\x3e\n        \x3cAdSystem\x3eprebid.org wrapper\x3c/AdSystem\x3e\n        \x3cVASTAdTagURI\x3e\x3c![CDATA['.concat(e,"]]\x3e\x3c/VASTAdTagURI\x3e\n        \x3cImpression\x3e").concat(n,"\x3c/Impression\x3e\n        \x3cCreatives\x3e\x3c/Creatives\x3e\n      \x3c/Wrapper\x3e\n    \x3c/Ad\x3e\n  \x3c/VAST\x3e")}(e.vastUrl,
e.vastImpUrl),ttlseconds:Number(e.ttl)};return"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(t.key=e.customCacheKey),t}},65:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"checkAdUnitSetup",function(){return G});var r=n(48),c=n(0),i=n(132),o=n(24),a=n(47),d=n(3),v=n(37),f=n(66),u=n(17),s=n(133),l=n(8),g=n.n(l),p=n(61),y=n(12),b=n(22);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&
"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var S=Object(r.a)(),E=n(4),A=n(0),T=n(7).default,I=n(9),O=o.a.triggerUserSyncs,w=E.EVENTS,_=w.ADD_AD_UNITS,C=w.BID_WON,j=w.REQUEST_BIDS,B=w.SET_TARGETING,U=w.AD_RENDER_FAILED,D=E.AD_RENDER_FAILED_REASON,
R=D.PREVENT_WRITING_ON_MAIN_DOCUMENT,N=D.NO_AD,k=D.EXCEPTION,x=D.CANNOT_FIND_AD,P=D.MISSING_DOC_OR_ADID,M={bidWon:function(e){var t=v.a.getBidsRequested().map(function(e){return e.bids.map(function(e){return e.adUnitCode})}).reduce(c.flatten).filter(c.uniques);return!!A.contains(t,e)||void A.logError('The "'+e+'" placement is not defined.')}};function q(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}Object(s.a)(),S.bidderSettings=
S.bidderSettings||{},S.libLoaded=!0,S.version="v2.14.0",A.logInfo("Prebid.js v2.14.0 loaded"),S.adUnits=S.adUnits||[],S.triggerUserSyncs=O;var G=Object(u.b)("sync",function(e){return e.forEach(function(e){var t=e.mediaTypes,n=A.getAdUnitSizes(e);if(t&&t.banner){var r=t.banner;r.sizes?(r.sizes=n,e.sizes=n):(A.logError("Detected a mediaTypes.banner object did not include sizes.  This is a required field for the mediaTypes.banner object.  Removing invalid mediaTypes.banner object from request."),delete e.mediaTypes.banner)}else e.sizes&&
(A.logWarn("Usage of adUnits.sizes will eventually be deprecated.  Please define size dimensions within the corresponding area of the mediaTypes.\x3cobject\x3e (eg mediaTypes.banner.sizes)."),e.sizes=n);if(t&&t.video){var i=t.video;if(i.playerSize)if(Array.isArray(i.playerSize)&&1===i.playerSize.length&&i.playerSize.every(function(e){return Object(c.isArrayOfNums)(e,2)}))e.sizes=i.playerSize;else if(Object(c.isArrayOfNums)(i.playerSize,2)){var o=[];o.push(i.playerSize),A.logInfo("Transforming video.playerSize from [".concat(i.playerSize,
"] to [[").concat(o,"]] so it's in the proper format.")),e.sizes=i.playerSize=o}else A.logError("Detected incorrect configuration of mediaTypes.video.playerSize.  Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete e.mediaTypes.video.playerSize}if(t&&t.native){var a=t.native;a.image&&a.image.sizes&&!Array.isArray(a.image.sizes)&&(A.logError("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),
delete e.mediaTypes.native.image.sizes),a.image&&a.image.aspect_ratios&&!Array.isArray(a.image.aspect_ratios)&&(A.logError("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete e.mediaTypes.native.image.aspect_ratios),a.icon&&a.icon.sizes&&!Array.isArray(a.icon.sizes)&&(A.logError("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),
delete e.mediaTypes.native.icon.sizes)}}),e},"checkAdUnitSetup");function W(e){var n=v.a[e]().filter(A.bind.call(c.adUnitsFilter,this,v.a.getAdUnitCodes())),r=v.a.getLastAuctionId();return n.map(function(e){return e.adUnitCode}).filter(c.uniques).map(function(t){return n.filter(function(e){return e.auctionId===r&&e.adUnitCode===t})}).filter(function(e){return e&&e[0]&&e[0].adUnitCode}).map(function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,
writable:!0}):e[t]=n,e}({},e[0].adUnitCode,{bids:e})}).reduce(function(e,t){return m(e,t)},{})}function L(e,t,n){var r={};r.reason=e,r.message=t,n&&(r.bid=n),A.logError(t),I.emit(U,r)}function z(e){e.forEach(function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){A.logError("Error processing command :","prebid.js",e)}})}S.getAdserverTargetingForAdUnitCodeStr=function(e){if(A.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=S.getAdserverTargetingForAdUnitCode(e);
return A.transformAdServerTargetingObj(t)}A.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},S.getAdserverTargetingForAdUnitCode=function(e){return S.getAdserverTargeting(e)[e]},S.getAdserverTargeting=function(e){return A.logInfo("Invoking pbjs.getAdserverTargeting",arguments),f.b.getAllTargeting(e)},S.getNoBids=function(){return A.logInfo("Invoking pbjs.getNoBids",arguments),W("getNoBids")},S.getBidResponses=function(){return A.logInfo("Invoking pbjs.getBidResponses",
arguments),W("getBidsReceived")},S.getBidResponsesForAdUnitCode=function(t){return{bids:v.a.getBidsReceived().filter(function(e){return e.adUnitCode===t})}},S.setTargetingForGPTAsync=function(e,t){if(A.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),Object(c.isGptPubadsDefined)()){var n=f.b.getAllTargeting(e);f.b.resetPresetTargeting(e),f.b.setTargetingForGPT(n,t),Object.keys(n).forEach(function(t){Object.keys(n[t]).forEach(function(e){"hb_adid"===e&&v.a.setStatusForBids(n[t][e],E.BID_STATUS.BID_TARGETING_SET)})}),
I.emit(B,n)}else A.logError("window.googletag is not defined on the page")},S.setTargetingForAst=function(e){A.logInfo("Invoking pbjs.setTargetingForAn",arguments),f.b.isApntagDefined()?(f.b.setTargetingForAst(e),I.emit(B,f.b.getAllTargeting())):A.logError("window.apntag is not defined on the page")},S.renderAd=function(e,t){if(A.logInfo("Invoking pbjs.renderAd",arguments),A.logMessage("Calling renderAd with adId :"+t),e&&t)try{var n=v.a.findBidByAdId(t);if(n){n.status=E.BID_STATUS.RENDERED,n.ad=
A.replaceAuctionPrice(n.ad,n.cpm),n.adUrl=A.replaceAuctionPrice(n.adUrl,n.cpm),v.a.addWinningBid(n),I.emit(C,n);var r=n.height,i=n.width,o=n.ad,a=n.mediaType,c=n.adUrl,u=n.renderer,s=document.createComment("Creative ".concat(n.creativeId," served by ").concat(n.bidder," Prebid.js Header Bidding"));if(A.insertElement(s,e,"body"),Object(y.c)(u))Object(y.b)(u,n);else if(e===document&&!A.inIframe()||"video"===a){var d="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document.");
L(R,d,n)}else if(o)e.open("text/html","replace"),e.write(o),e.close(),q(e,i,r),A.callBurl(n);else if(c){var f=A.createInvisibleIframe();f.height=r,f.width=i,f.style.display="inline",f.style.overflow="hidden",f.src=c,A.insertElement(f,e,"body"),q(e,i,r),A.callBurl(n)}else{var l="Error trying to write ad. No ad for bid response id: ".concat(t);L(N,l,n)}}else{var g="Error trying to write ad. Cannot find ad by given id : ".concat(t);L(x,g)}}catch(e){var p="Error trying to write ad Id :".concat(t," to the page:").concat(e.message);
L(k,p)}else{var b="Error trying to write ad Id :".concat(t," to the page. Missing document or adId");L(P,b)}},S.removeAdUnit=function(e){(A.logInfo("Invoking pbjs.removeAdUnit",arguments),e)?(A.isArray(e)?e:[e]).forEach(function(e){for(var t=0;t<S.adUnits.length;t++)S.adUnits[t].code===e&&S.adUnits.splice(t,1)}):S.adUnits=[]},S.requestBids=Object(u.b)("async",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels,
a=e.auctionId;I.emit(j);var c=n||d.config.getConfig("bidderTimeout");if(r=r||S.adUnits,A.logInfo("Invoking pbjs.requestBids",arguments),i&&i.length?r=r.filter(function(e){return g()(i,e.code)}):i=r&&r.map(function(e){return e.code}),(r=G(r)).forEach(function(i){var o=Object.keys(i.mediaTypes||{banner:"banner"}),e=i.bids.map(function(e){return e.bidder}),a=T.bidderRegistry,t=d.config.getConfig("s2sConfig"),n=t&&t.bidders,r=n?e.filter(function(e){return!g()(n,e)}):e;i.transactionId=A.generateUUID(),
r.forEach(function(t){var e=a[t],n=e&&e.getSpec&&e.getSpec(),r=n&&n.supportedMediaTypes||["banner"];o.some(function(e){return g()(r,e)})||(A.logWarn(A.unsupportedBidderMessage(i,t)),i.bids=i.bids.filter(function(e){return e.bidder!==t}))}),p.a.incrementCounter(i.code)}),r&&0!==r.length){var u=v.a.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:c,labels:o,auctionId:a}),s=r.length;return 15<s&&A.logInfo("Current auction ".concat(u.getAuctionId()," contains ").concat(s," adUnits."),r),i.forEach(function(e){return f.b.setLatestAuctionForAdUnit(e,
u.getAuctionId())}),u.callBids(),u}if(A.logMessage("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){A.logError("Error executing bidsBackHandler",null,e)}}),S.addAdUnits=function(e){A.logInfo("Invoking pbjs.addAdUnits",arguments),A.isArray(e)?S.adUnits.push.apply(S.adUnits,e):"object"===h(e)&&S.adUnits.push(e),I.emit(_)},S.onEvent=function(e,t,n){A.logInfo("Invoking pbjs.onEvent",arguments),A.isFn(t)?!n||M[e].call(null,n)?I.on(e,t,n):A.logError('The id provided is not valid for event "'+
e+'" and no handler was set.'):A.logError('The event handler provided is not a function and was not set on event "'+e+'".')},S.offEvent=function(e,t,n){A.logInfo("Invoking pbjs.offEvent",arguments),n&&!M[e].call(null,n)||I.off(e,t,n)},S.registerBidAdapter=function(e,t){A.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{T.registerBidAdapter(e(),t)}catch(e){A.logError("Error registering bidder adapter : "+e.message)}},S.registerAnalyticsAdapter=function(e){A.logInfo("Invoking pbjs.registerAnalyticsAdapter",
arguments);try{T.registerAnalyticsAdapter(e)}catch(e){A.logError("Error registering analytics adapter : "+e.message)}},S.createBid=function(e){return A.logInfo("Invoking pbjs.createBid",arguments),Object(b.a)(e)},S.loadScript=function(e,t,n){A.logInfo("Invoking pbjs.loadScript",arguments),Object(a.b)(e,t,n)},S.enableAnalytics=function(e){e&&!A.isEmpty(e)?(A.logInfo("Invoking pbjs.enableAnalytics for: ",e),T.enableAnalytics(e)):A.logError("pbjs.enableAnalytics should be called with option {}")},S.aliasBidder=
function(e,t){A.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?T.aliasBidAdapter(e,t):A.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},S.getAllWinningBids=function(){return v.a.getAllWinningBids()},S.getAllPrebidWinningBids=function(){return v.a.getBidsReceived().filter(function(e){return e.status===E.BID_STATUS.BID_TARGETING_SET})},S.getHighestCpmBids=function(e){var t=Object(f.a)(v.a.getBidsReceived(),c.getLatestHighestCpmBid);return f.b.getWinningBids(e,t)},
S.markWinningBidAsUsed=function(t){var e=[];t.adUnitCode&&t.adId?e=v.a.getBidsReceived().filter(function(e){return e.adId===t.adId&&e.adUnitCode===t.adUnitCode}):t.adUnitCode?e=f.b.getWinningBids(t.adUnitCode):t.adId?e=v.a.getBidsReceived().filter(function(e){return e.adId===t.adId}):A.logWarn("Inproper usage of markWinningBidAsUsed. It'll need an adUnitCode and/or adId to function."),0<e.length&&(e[0].status=E.BID_STATUS.RENDERED)},S.getConfig=d.config.getConfig,S.setConfig=d.config.setConfig,S.que.push(function(){return Object(i.a)()}),
S.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){A.logError("Error processing command :",e.message,e.stack)}else A.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},S.que.push=S.cmd.push,S.processQueue=function(){u.b.ready(),z(S.que),z(S.cmd)},t.default=S},66:function(e,t,n){t.a=w,n.d(t,"b",function(){return o});var f=n(0),l=n(3),g=n(27),r=n(37),p=n(60),b=n(2),i=n(8),v=n.n(i);function y(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<
e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t,n){return t in e?Object.defineProperty(e,
t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=n(0),E=n(4),A=[],T=Object.keys(E.TARGETING_KEYS).map(function(e){return E.TARGETING_KEYS[e]}),I=function(e){return e.responseTimestamp+1E3*e.ttl+1E3>Object(f.timestamp)()},O=function(e){return e&&(e.status&&!v()([E.BID_STATUS.BID_TARGETING_SET,E.BID_STATUS.RENDERED],e.status)||!e.status)};function w(e,n){var r=[],i=Object(f.groupBy)(e,"adUnitCode");return Object.keys(i).forEach(function(e){var t=Object(f.groupBy)(i[e],"bidderCode");
Object.keys(t).forEach(function(e){return r.push(t[e].reduce(n))})}),r}var o=function(n){var i={},r={};function o(e){return"string"==typeof e?[e]:S.isArray(e)?e:n.getAdUnitCodes()||[]}function a(){var e=n.getBidsReceived();return l.config.getConfig("useBidCache")||(e=e.filter(function(e){return r[e.adUnitCode]===e.auctionId})),w(e=e.filter(function(e){return Object(f.deepAccess)(e,"video.context")!==b.a}).filter(function(e){return"banner"!==e.mediaType||Object(p.c)([e.width,e.height])}).filter(O).filter(I),
f.getOldestHighestCpmBid)}function c(){return n.getStandardBidderAdServerTargeting().map(function(e){return e.key}).concat(T).filter(f.uniques)}function u(t,n,e,r){return Object.keys(n.adserverTargeting).filter(s()).forEach(function(e){t.length&&t.filter(function(t){return function(e){return e.adUnitCode===n.adUnitCode&&e.adserverTargeting[t]}}(e)).forEach(function(t){return function(e){S.isArray(e.adserverTargeting[t])||(e.adserverTargeting[t]=[e.adserverTargeting[t]]),e.adserverTargeting[t]=e.adserverTargeting[t].concat(n.adserverTargeting[t]).filter(f.uniques),
delete n.adserverTargeting[t]}}(e))}),t.push(n),t}function s(){var t=c();return function(e){return-1===t.indexOf(e)}}function d(t){return m({},t.adUnitCode,Object.keys(t.adserverTargeting).filter(s()).map(function(e){return m({},e.substring(0,20),[t.adserverTargeting[e]])}))}return i.setLatestAuctionForAdUnit=function(e,t){r[e]=t},i.resetPresetTargeting=function(e){if(Object(f.isGptPubadsDefined)()){var t=o(e),r=n.getAdUnits().filter(function(e){return v()(t,e.code)});window.googletag.pubads().getSlots().forEach(function(n){A.forEach(function(t){r.forEach(function(e){e.code!==
n.getAdUnitPath()&&e.code!==n.getSlotElementId()||n.setTargeting(t,null)})})})}},i.resetPresetTargetingAST=function(e){o(e).forEach(function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var n=Object.keys(t.keywords),r={};n.forEach(function(e){v()(A,e.toLowerCase())||(r[e]=t.keywords[e])}),window.apntag.modifyTag(e,{keywords:r})}})},i.getAllTargeting=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a(),n=o(e),r=function(e,t){var n=i.getWinningBids(e,t),r=c();return n=
n.map(function(o){return m({},o.adUnitCode,Object.keys(o.adserverTargeting).filter(function(e){return void 0===o.sendStandardTargeting||o.sendStandardTargeting||-1===r.indexOf(e)}).reduce(function(e,t){var n=[o.adserverTargeting[t]],r=m({},t.substring(0,20),n);if(t!==E.TARGETING_KEYS.DEAL)return[].concat(y(e),[r]);var i=m({},"".concat(t,"_").concat(o.bidderCode).substring(0,20),n);return[].concat(y(e),[r,i])},[]))})}(n,t).concat(function(t,e){return e.filter(function(e){return v()(t,e.adUnitCode)}).map(function(e){return h({},
e)}).reduce(u,[]).map(d).filter(function(e){return e})}(n,t)).concat(l.config.getConfig("enableSendAllBids")?function(e,t){var n=T.concat(g.a);return w(t,f.getHighestCpm).map(function(t){if(t.adserverTargeting&&e&&(S.isArray(e)&&v()(e,t.adUnitCode)||"string"==typeof e&&t.adUnitCode===e))return m({},t.adUnitCode,function(t,e){return e.map(function(e){return m({},"".concat(e,"_").concat(t.bidderCode).substring(0,20),[t.adserverTargeting[e]])})}(t,n.filter(function(e){return void 0!==t.adserverTargeting[e]})))}).filter(function(e){return e})}(n,
t):[]);return r.map(function(t){Object.keys(t).map(function(e){t[e].map(function(e){-1===A.indexOf(Object.keys(e)[0])&&(A=Object.keys(e).concat(A))})})}),r=function(e){return e.map(function(e){return m({},Object.keys(e)[0],e[Object.keys(e)[0]].map(function(e){return m({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))}).reduce(function(e,t){return h(t,e)},{}))}).reduce(function(e,t){var n=Object.keys(t)[0];return e[n]=h({},e[n],t[n]),e},{})}(r),n.forEach(function(e){r[e]||(r[e]={})}),r},i.setTargetingForGPT=
function(i,e){window.googletag.pubads().getSlots().forEach(function(r){Object.keys(i).filter(e?e(r):Object(f.isAdUnitCodeMatchingSlot)(r)).forEach(function(n){return Object.keys(i[n]).forEach(function(t){var e=i[n][t].split(",");(e=1<e.length?[e]:e).map(function(e){return S.logMessage("Attempting to set key value for slot: ".concat(r.getSlotElementId()," key: ").concat(t," value: ").concat(e)),e}).forEach(function(e){r.setTargeting(t,e)})})})})},i.getWinningBids=function(e){var n=1<arguments.length&&
void 0!==arguments[1]?arguments[1]:a(),t=o(e);return n.filter(function(e){return v()(t,e.adUnitCode)}).filter(function(e){return 0<e.cpm}).map(function(e){return e.adUnitCode}).filter(f.uniques).map(function(t){return n.filter(function(e){return e.adUnitCode===t?e:null}).reduce(f.getHighestCpm)})},i.setTargetingForAst=function(e){var r=i.getAllTargeting(e);try{i.resetPresetTargetingAST()}catch(e){S.logError("unable to reset targeting for AST"+e)}Object.keys(r).forEach(function(n){return Object.keys(r[n]).forEach(function(e){if(S.logMessage("Attempting to set targeting for targetId: ".concat(n,
" key: ").concat(e," value: ").concat(r[n][e])),S.isStr(r[n][e])||S.isArray(r[n][e])){var t={};e.search(/pt[0-9]/)<0?t[e.toUpperCase()]=r[n][e]:t[e]=r[n][e],window.apntag.setKeywords(n,t,{overrideKeyValue:!0})}})})},i.isApntagDefined=function(){if(window.apntag&&S.isFn(window.apntag.setKeywords))return!0},i}(r.a)},67:function(e,t,n){var r=n(136)(!0);n(49)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,
n),this._i+=e.length,{value:e,done:!1})})},68:function(e,t,r){var i=r(25),o=r(139),a=r(69),c=r(50)("IE_PROTO"),u=function(){},s="prototype",d=function(){var e,t=r(54)("iframe"),n=a.length;for(t.style.display="none",r(142).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("\x3cscript\x3edocument.F\x3dObject\x3c/script\x3e"),e.close(),d=e.F;n--;)delete d[s][a[n]];return d()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[s]=i(e),n=new u,u[s]=null,n[c]=e):
n=d(),void 0===t?n:o(n,t)}},69:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},7:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"gdprDataHandler",function(){return U}),t.setS2STestingModule=function(e){I=e};var h=n(0),g=n(60),p=n(27),u=n(1),m=n(5),b=n(3),r=n(8),S=n.n(r),i=n(11),v=n.n(i),y=n(61),E=n(62);function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=
[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o;}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}()}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,
arguments)}var I,O=n(0),w=n(4),_=n(9),s={},C=s.bidderRegistry={},d=s.aliasRegistry={},j={};b.config.getConfig("s2sConfig",function(e){j=e.s2sConfig});var o={};function B(e){var i=e.bidderCode,s=e.auctionId,d=e.bidderRequestId,t=e.adUnits,f=e.labels,l=e.src;return t.reduce(function(e,c){var t=Object(g.b)(Object(g.a)(c,f),c.mediaTypes,c.sizes),n=t.active,u=t.mediaTypes,r=t.filterResults;return n?r&&O.logInfo('Size mapping filtered adUnit "'.concat(c.code,'" banner sizes from '),r.before,"to ",r.after):
O.logInfo('Size mapping disabled adUnit "'.concat(c.code,'"')),n&&e.push(c.bids.filter(function(e){return e.bidder===i}).reduce(function(e,t){var n=c.nativeParams||O.deepAccess(c,"mediaTypes.native");n&&(t=T({},t,{nativeParams:Object(p.g)(n)})),t=T({},t,Object(h.getDefinedParams)(c,["mediaType","renderer"]));var r=Object(g.b)(Object(g.a)(t,f),u),i=r.active,o=r.mediaTypes,a=r.filterResults;return i?a&&O.logInfo('Size mapping filtered adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'" banner sizes from '),
a.before,"to ",a.after):O.logInfo('Size mapping deactivated adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'"')),O.isValidMediaTypes(o)?t=T({},t,{mediaTypes:o}):O.logError("mediaTypes is not correctly configured for adunit ".concat(c.code)),i&&e.push(T({},t,{adUnitCode:c.code,transactionId:c.transactionId,sizes:O.deepAccess(o,"banner.sizes")||O.deepAccess(o,"video.playerSize")||[],bidId:t.bid_id||O.getUniqueIdentifierStr(),bidderRequestId:d,auctionId:s,src:l,bidRequestsCount:y.a.getCounter(c.code)})),
e},[])),e},[]).reduce(h.flatten,[]).filter(function(e){return""!==e})}var U={consentData:null,setConsentData:function(e){U.consentData=e},getConsentData:function(){return U.consentData}};function D(){return j&&j.enabled&&j.testing&&I}function a(t,n,e){try{var r=C[t].getSpec();r&&r[n]&&"function"==typeof r[n]&&(O.logInfo("Invoking ".concat(t,".").concat(n)),r[n](e))}catch(e){O.logWarn("Error calling ".concat(n," of ").concat(t))}}s.makeBidRequests=function(e,i,o,a,c){var u=[],t=Object(h.getBidderCodes)(e);
b.config.getConfig("bidderSequence")===b.RANDOM&&(t=Object(h.shuffle)(t));var s=Object(E.b)(),n=t,r=[];if(j.enabled){D()&&(r=I.getSourceBidderMap(e)[I.CLIENT]);var d=j.bidders;n=t.filter(function(e){return!S()(d,e)||S()(r,e)});var f=function(e){var t=j.bidders,n=O.deepClone(e);return n.forEach(function(e){e.bids=e.bids.filter(function(e){return S()(t,e.bidder)&&(!D()||e.finalSource!==I.CLIENT)}).map(function(e){return e.bid_id=O.getUniqueIdentifierStr(),e})}),n=n.filter(function(e){return 0!==e.bids.length})}(e),
l=O.generateUUID();d.forEach(function(e){var t=O.getUniqueIdentifierStr(),n={bidderCode:e,auctionId:o,bidderRequestId:t,tid:l,bids:B({bidderCode:e,auctionId:o,bidderRequestId:t,adUnits:O.deepClone(f),labels:c,src:w.S2S.SRC}),auctionStart:i,timeout:j.timeout,src:w.S2S.SRC,refererInfo:s};0!==n.bids.length&&u.push(n)}),f.forEach(function(e){var t=e.bids.filter(function(t){return v()(u,function(e){return v()(e.bids,function(e){return e.bidId===t.bid_id})})});e.bids=t}),u.forEach(function(e){e.adUnitsS2SCopy=
f.filter(function(e){return 0<e.bids.length})})}var g=function(e){var t=O.deepClone(e);return t.forEach(function(e){e.bids=e.bids.filter(function(e){return!D()||e.finalSource!==I.SERVER})}),t=t.filter(function(e){return 0!==e.bids.length})}(e);return n.forEach(function(e){var t=O.getUniqueIdentifierStr(),n={bidderCode:e,auctionId:o,bidderRequestId:t,bids:B({bidderCode:e,auctionId:o,bidderRequestId:t,adUnits:O.deepClone(g),labels:c,src:"client"}),auctionStart:i,timeout:a,refererInfo:s},r=C[e];r||O.logError("Trying to make a request for bidder that does not exist: ".concat(e)),
r&&n.bids&&0!==n.bids.length&&u.push(n)}),U.getConsentData()&&u.forEach(function(e){e.gdprConsent=U.getConsentData()}),u},s.callBids=function(e,t,r,i,o,a,c){if(t.length){var n=A(t.reduce(function(e,t){return e[Number(void 0!==t.src&&t.src===w.S2S.SRC)].push(t),e},[[],[]]),2),u=n[0],s=n[1];if(s.length){var d=Object(m.b)(a,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),f=j.bidders,l=C[j.adapter],g=s[0].tid,p=s[0].adUnitsS2SCopy;if(l){var b={tid:g,ad_units:p};if(b.ad_units.length){var v=
s.map(function(e){return e.start=Object(h.timestamp)(),i.bind(e)}),y=b.ad_units.reduce(function(e,t){return e.concat((t.bids||[]).reduce(function(e,t){return e.concat(t.bidder)},[]))},[]);O.logMessage("CALLING S2S HEADER BIDDERS \x3d\x3d\x3d\x3d ".concat(f.filter(function(e){return S()(y,e)}).join(","))),s.forEach(function(e){_.emit(w.EVENTS.BID_REQUESTED,e)}),l.callBids(b,s,function(e,t){var n=Object(h.getBidderRequest)(s,t.bidderCode,e);n&&r.call(n,e,t)},function(){return v.forEach(function(e){return e()})},
d)}}}u.forEach(function(e){e.start=Object(h.timestamp)();var t=C[e.bidderCode];O.logMessage("CALLING BIDDER \x3d\x3d\x3d\x3d\x3d\x3d\x3d ".concat(e.bidderCode)),_.emit(w.EVENTS.BID_REQUESTED,e);var n=Object(m.b)(a,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);t.callBids(e,r.bind(e),i.bind(e),n,c)})}else O.logWarn("callBids executed with no bidRequests.  Were they filtered by labels or sizing?")},s.videoAdapters=[],s.registerBidAdapter=function(e,t){var n=(2<arguments.length&&void 0!==
arguments[2]?arguments[2]:{}).supportedMediaTypes,r=void 0===n?[]:n;e&&t?"function"==typeof e.callBids?(C[t]=e,S()(r,"video")&&s.videoAdapters.push(t),S()(r,"native")&&p.e.push(t)):O.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):O.logError("bidAdaptor or bidderCode not specified")},s.aliasBidAdapter=function(t,e){if(void 0===C[e]){var n=C[t];if(void 0===n){var r=b.config.getConfig("s2sConfig"),i=r&&r.bidders;i&&S()(i,e)?d[e]=t:O.logError('bidderCode "'+
t+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}else try{var o,a=function(e){var t=[];return S()(s.videoAdapters,e)&&t.push("video"),S()(p.e,e)&&t.push("native"),t}(t);if(n.constructor.prototype!=Object.prototype)(o=new n.constructor).setBidderCode(e);else{var c=n.getSpec();o=Object(u.newBidder)(T({},c,{code:e})),d[e]=t}s.registerBidAdapter(o,e,{supportedMediaTypes:a})}catch(e){O.logError(t+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else O.logMessage('alias name "'+
e+'" has been already specified.')},s.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,o[n]=t):O.logError('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"\n        analytics adapter must implement an enableAnalytics() function')):O.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},s.enableAnalytics=function(e){O.isArray(e)||(e=[e]),O._each(e,function(e){var t=o[e.provider];t?t.enableAnalytics(e):
O.logError("Prebid Error: no analytics adapter found in registry for\n        ".concat(e.provider,"."))})},s.getBidAdapter=function(e){return C[e]},s.callTimedOutBidders=function(t,n,r){n=n.map(function(e){return e.params=O.getUserConfiguredParams(t,e.adUnitCode,e.bidder),e.timeout=r,e}),n=O.groupBy(n,"bidder"),Object.keys(n).forEach(function(e){a(e,"onTimeout",n[e])})},s.callBidWonBidder=function(e,t,n){t.params=O.getUserConfiguredParams(n,t.adUnitCode,t.bidder),a(e,"onBidWon",t)},s.callSetTargetingBidder=
function(e,t){a(e,"onSetTargeting",t)},t.default=s},70:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},71:function(e,t,n){var i=n(20);e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:i(e,r,t[r]);return e}},72:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},73:function(e,t,n){var o=n(25);e.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==
i&&o(i.call(t)),e;}}},74:function(e,t,n){var r=n(28),i=n(15)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},75:function(e,t,n){var r=n(76),i=n(15)("iterator"),o=n(28);e.exports=n(14).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},76:function(e,t,n){var i=n(31),o=n(15)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==
typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},77:function(e,t,n){var r=n(43)("meta"),i=n(16),o=n(26),a=n(19).f,c=0,u=Object.isExtensible||function(){return!0},s=!n(30)(function(){return u(Object.preventExtensions({}))}),d=function(e){a(e,r,{value:{i:"O"+ ++c,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";
if(!t)return"E";d(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;d(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&u(e)&&!o(e,r)&&d(e),e}}},78:function(e,t,n){var r=n(16);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},79:function(e,t,n){t.a=function(t,n){o.adServers=o.adServers||{},o.adServers[t]=o.adServers[t]||{},Object.keys(n).forEach(function(e){o.adServers[t][e]?Object(i.logWarn)("Attempting to add an already registered function property ".concat(e,
" for AdServer ").concat(t,".")):o.adServers[t][e]=n[e]})};var r=n(48),i=n(0),o=Object(r.a)()},8:function(e,t,n){n(88),e.exports=n(14).Array.includes},80:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageItem=d,t.getStorageItem=f,t.removeStorageItem=y,t.isPubcidEnabled=function(){return v.enabled},t.getExpInterval=function(){return v.interval},t.getPubcidConfig=function(){return v},t.requestBidHook=S,t.setCookie=E,t.getCookie=A,t.setConfig=T,t.initPubcid=I;var l=n(0),r=
n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="_pubcid",c="_pubcid_optout",g=525600,u="PublisherCommonId",
s="_exp",p="cookie",b="html5",v={enabled:!0,interval:g,typeEnabled:b,readOnly:!1};function d(e,t,n){try{if(void 0!==n&&null!=n){var r=(new Date(Date.now()+60*n*1E3)).toUTCString();localStorage.setItem(e+s,r)}localStorage.setItem(e,t)}catch(e){l.logMessage(e)}}function f(e){var t=null;try{var n=localStorage.getItem(e+s);if(n)0<(new Date(n)).getTime()-Date.now()?t=localStorage.getItem(e):y(e);else t=localStorage.getItem(e)}catch(e){l.logMessage(e)}return t}function y(e){try{localStorage.removeItem(e+
s),localStorage.removeItem(e)}catch(e){l.logMessage(e)}}function h(e){var t;return v.typeEnabled===p?t=A(e):v.typeEnabled===b&&((t=f(e))||(t=A(e))),"undefined"===t||"null"===t?null:t}function m(e,t,n){e&&t&&(v.typeEnabled===p?E(e,t,n):v.typeEnabled===b&&d(e,t,n))}function S(e,t){var n=t.adUnits||pbjs.adUnits,r=null;return v.enabled&&v.typeEnabled&&("object"===o(window[u])?(r=window[u].getId(),l.logMessage(u+": pubcid \x3d "+r)):(r=h(a),v.readOnly||(r?m(a,r,v.interval):(r=l.generateUUID(),m(a,r,v.interval),
r=h(a))),l.logMessage("pbjs: pubcid \x3d "+r)),n&&r&&n.forEach(function(e){e.bids.forEach(function(e){i(e,{crumbs:{pubcid:r}})})})),e.call(this,t)}function E(e,t,n){var r=new Date;r.setTime(r.getTime()+1E3*n*60),window.document.cookie=e+"\x3d"+encodeURIComponent(t)+";path\x3d/;expires\x3d"+r.toGMTString()}function A(e){if(e&&window.document.cookie){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*\x3d\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}function T(){var e=
0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.enable,n=void 0===t||t,r=e.expInterval,i=void 0===r?g:r,o=e.type,a=void 0===o?"html5,cookie":o,c=e.readOnly,u=void 0!==c&&c;v.enabled=n,v.interval=parseInt(i,10),isNaN(v.interval)&&(v.interval=g),v.readOnly=u,v.typeEnabled=null;for(var s=a.split(","),d=0;d<s.length;++d){var f=s[d].trim();if(f===p){if(l.cookiesAreEnabled()){v.typeEnabled=p;break}}else if(f===b&&l.hasLocalStorage()){v.typeEnabled=b;break}}}function I(){r.config.getConfig("pubcid",
function(e){return T(e.pubcid)}),h(c)||pbjs.requestBids.before(S)}I()},83:function(e,t,n){var r=n(13),i=n(40)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),n(34)(o)},84:function(e,t,n){e.exports=!n(21)&&!n(30)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},85:function(e,t,n){var i=n(16);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==
typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value");}},86:function(e,t,n){var r=n(87);e.exports=function(e,t){return new (r(e))(t)}},87:function(e,t,n){var r=n(16),i=n(56),o=n(15)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===
(t=t[o])&&(t=void 0)),void 0===t?Array:t}},88:function(e,t,n){var r=n(13),i=n(59)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,1<arguments.length?arguments[1]:void 0)}}),n(34)("includes")},89:function(e,t,n){var r=n(42),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},9:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,
arguments)}var c,i,u=n(0),o=n(4),a=Array.prototype.slice,s=Array.prototype.push,d=u._map(o.EVENTS,function(e){return e}),f=o.EVENT_ID_PATHS,l=[];e.exports=(c={},(i={}).on=function(e,t,n){if(function(e){return u.contains(d,e)}(e)){var r=c[e]||{que:[]};n?(r[n]=r[n]||{que:[]},r[n].que.push(t)):r.que.push(t),c[e]=r}else u.logError("Wrong event name : "+e+" Valid event names :"+d)},i.emit=function(e){!function(e,t){u.logMessage("Emitting event for: "+e);var n=t[0]||{},r=n[f[e]],i=c[e]||{que:[]},o=u._map(i,
function(e,t){return t}),a=[];l.push({eventType:e,args:n,id:r}),r&&u.contains(o,r)&&s.apply(a,i[r].que),s.apply(a,i.que),u._each(a,function(e){if(e)try{e.apply(null,t)}catch(e){u.logError("Error executing handler:","events.js",e)}})}(e,a.call(arguments,1))},i.off=function(e,n,r){var i=c[e];u.isEmpty(i)||u.isEmpty(i.que)&&u.isEmpty(i[r])||r&&(u.isEmpty(i[r])||u.isEmpty(i[r].que))||(r?u._each(i[r].que,function(e){var t=i[r].que;e===n&&t.splice(u.indexOf.call(t,e),1)}):u._each(i.que,function(e){var t=
i.que;e===n&&t.splice(u.indexOf.call(t,e),1)}),c[e]=i)},i.get=function(){return c},i.getEvents=function(){var n=[];return u._each(l,function(e){var t=r({},e);n.push(t)}),n},i)},90:function(e,t){y.SYNC=1,y.ASYNC=2,y.QUEUE=4;var g="fun-hooks",n="function"==typeof Proxy,r=Object.freeze({useProxy:n,ready:0}),i=Object.getPrototypeOf({}),c="2,1,0"===[1].reduce(function(e,t,n){return[e,t,n]},2).toString()?Array.prototype.reduce:function(e,t){var n,r=Object(this),i=r.length>>>0,o=0;if(t)n=t;else{for(;o<i&&
!(o in r);)o++;n=r[o++]}for(;o<i;)o in r&&(n=e(n,r[o],o,r)),o++;return n},p=4===function(e,t){return t}.bind(null,1,4)()?Function.prototype.bind:function(e){var t=this,n=v(arguments,1);return function(){return t.apply(e,n.concat(v(arguments)))}};function b(e){return c.call(v(arguments,1),function(t,n){return n&&Object.keys(n).forEach(function(e){t[e]=n[e]}),t},e)}function v(e,t){return Array.prototype.slice.call(e,t)}function y(o){var s,e={},d=[];function t(e,t){return"function"==typeof e?u.call(null,
"sync",e,t):"string"==typeof e&&"function"==typeof t?u.apply(null,arguments):"object"==typeof e?function(o,e,a){var t=!0;void 0===e&&(e=Object.getOwnPropertyNames(o),t=!1);var c={},n=["constructor"];for(;(e=e.filter(function(e){return!("function"!=typeof o[e]||-1!==n.indexOf(e)||e.match(/^_/))})).forEach(function(e){var t=e.split(":"),n=t[0],r=t[1]||"sync";if(!c[n]){var i=o[n];c[n]=o[n]=u(r,i,a?[a,n]:void 0)}}),o=Object.getPrototypeOf(o),t&&o!==i;);return c}.apply(null,arguments):void 0}function f(o){var a=
Array.isArray(o)?o:o.split(".");return c.call(a,function(t,n,e){var r=t[n],i=!1;return r||(e===a.length-1?(s||d.push(function(){i||console.warn(g+": referenced '"+o+"' but it was never created")}),t[n]=l(function(e){t[n]=e,i=!0})):t[n]={})},e)}function l(r){var o=[],a=[],c=function(){};return{__funHook:{install:function(e,t,n){this.type=e,this.fn=t,(c=n)(o,a),r&&r(t)}},before:function(e,t){return n.call(this,o,"before",e,t)},after:function(e,t){return n.call(this,a,"after",e,t)},getHooks:function(n){var e=
o.concat(a);return"object"==typeof n&&(e=e.filter(function(t){return Object.keys(n).every(function(e){return t[e]===n[e]})})),b(e,{remove:function(){return e.forEach(function(e){e.remove()}),this}})},removeAll:function(){return this.getHooks().remove()}};function n(t,e,n,r){var i={hook:n,type:e,priority:r||10,remove:function(){var e=t.indexOf(i);-1!==e&&(t.splice(e,1),c(o,a))}};return t.push(i),t.sort(function(e,t){return t.priority-e.priority}),c(o,a),this}}function u(a,e,t){if(e.__funHook){if(e.__funHook.type!==
a)throw g+": recreated hookable with different type";return e.__funHook.fn}var c,n,r=t?f(t):l(),i={get:function(e,t){return r[t]||Reflect.get.apply(Reflect,arguments)}};return s||d.push(u),o.useProxy?n=new Proxy(e,i):b(n=function(){return i.apply?i.apply(e,this,v(arguments)):e.apply(this,arguments)},r),r.__funHook.install(a,n,function(e,t){if(e.length||t.length){var n;if("sync"===a){var r,i="r\x3dt.apply(h,"+(e.length?"arguments":"g")+")";t.length&&(r=o(t,"a","n(function extract(s){r\x3ds},e)")),
e.length&&(i=o(e,"b","n(function extract(){"+i+";"+r+"},e)"),r=""),n=["var r,e\x3d{bail:function(a){r\x3da}}",i,r,"return r"].join(";")}else"async"===a&&(n="t.apply(h,"+(e.length?"Array.prototype.slice.call(arguments)":"g")+".concat("+o(t,"a","z?n(z,e):[]")+"))",e.length&&(n="n(function partial(){"+n+"},e)"),n=["var z",'typeof g[g.length-1]\x3d\x3d\x3d"function"\x26\x26(z\x3di.call(g.pop(),null))',"var e\x3d{bail:z}",o(e,"b",n)].join(";"));c=p.call(new Function("i,b,a,n,t,h,g",n),null,p,e,t,Object.assign||
b)}else c=void 0;function o(e,t,n){for(var r=e.length;0<r--;)0!==r||"async"===a&&"a"===t?(n="i.call("+t+"["+r+"].hook, h,"+n+")","async"===a&&"a"===t&&0===r||(n="n("+n+",e)")):n=t+"["+r+"].hook.apply(h,["+n+("b"===t?"].concat(g))":",r])");return n}u()}),n;function u(){!s&&("sync"!==a||o.ready&y.SYNC)&&("async"!==a||o.ready&y.ASYNC)?"sync"!==a&&o.ready&y.QUEUE?i.apply=function(){var e=arguments;d.push(function(){n.apply(e[1],e[2])})}:i.apply=function(){throw g+": hooked function not ready";}:i.apply=
c}}return(o=b({},r,o)).ready?t.ready=function(){s=!0,function(e){for(var t;t=e.shift();)t()}(d)}:s=!0,t.get=f,t}e.exports=y},91:function(e,t){e.exports=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t){var i=t[r];n[r]=i&&"object"==typeof i?e(i):i}return n}}});
pbjsChunk([226],{102:function(e,n,r){e.exports=r(103)},103:function(e,n,r){Object.defineProperty(n,"__esModule",{value:!0}),r.d(n,"spec",function(){return d});var t=r(1),g=r(2),m="adform",d={code:m,supportedMediaTypes:[g.b,g.d],isBidRequestValid:function(e){return!!e.params.mid},buildRequests:function(e,n){var r,t,d,s,i,p,o,a,u,c,g=[],l=[["adxDomain","adx.adform.net"],["fd",1],["url",null],["tid",null]],h=JSON.parse(JSON.stringify(e)),f=h[0]&&h[0].bidder||m;for(r=0,t=h.length;r<t;r++){for("net"!==
(i=h[r]).params.priceType&&"net"!==i.params.pt||(u="net"),d=0,s=l.length;d<s;d++)(o=i[p=l[d][0]]||i.params[p])&&(i[p]=i.params[p]=null,l[d][1]=o);(a=i.params).transactionId=i.transactionId,g.push(b(a))}for(g.unshift("//"+l[0][1]+"/adx/?rp\x3d4"),u=u||"gross",g.push("pt\x3d"+u),g.push("stid\x3d"+e[0].auctionId),n&&n.gdprConsent&&n.gdprConsent.gdprApplies&&(c={gdpr:n.gdprConsent.gdprApplies,gdpr_consent:n.gdprConsent.consentString},g.push("gdpr\x3d"+c.gdpr),g.push("gdpr_consent\x3d"+c.gdpr_consent)),
r=1,t=l.length;r<t;r++)p=l[r][0],(o=l[r][1])&&g.push(p+"\x3d"+encodeURIComponent(o));return{method:"GET",url:g.join("\x26"),bids:e,netRevenue:u,bidder:f,gdpr:c};function b(e){var n,r=[];for(n in e)e.hasOwnProperty(n)&&e[n]&&r.push(n,"\x3d",e[n],"\x26");return encodeURIComponent(btoa(r.join("").slice(0,-1)))}},interpretResponse:function(e,n){for(var r,t,d,s,i={banner:1,vast_content:1,vast_url:1},p=[],o=n.bids,a=e.body,u=0;u<a.length;u++)s="banner"===(t=a[u]).response?g.b:g.d,d=o[u],i[t.response]&&
(c(t,d.sizes)||s===g.d)&&(r={requestId:d.bidId,cpm:t.win_bid,width:t.width,height:t.height,creativeId:d.bidId,dealId:t.deal_id,currency:t.win_cur,netRevenue:"gross"!==n.netRevenue,ttl:360,ad:t.banner,bidderCode:n.bidder,transactionId:d.transactionId,vastUrl:t.vast_url,vastXml:t.vast_content,mediaType:s},n.gdpr&&(r.gdpr=n.gdpr.gdpr,r.gdpr_consent=n.gdpr.gdpr_consent),p.push(r));return p;function c(e,n){for(var r=0,t=n.length;r<t;r++)if(e.width==n[r][0]&&e.height==n[r][1])return!0;return!1}}};Object(t.registerBidder)(d)}},
[102]);
pbjsChunk([2],{252:function(t,e,i){t.exports=i(253)},253:function(module,__webpack_exports__,__webpack_require__){Object.defineProperty(__webpack_exports__,"__esModule",{value:!0}),__webpack_require__.d(__webpack_exports__,"FAST_BID_PUBKEY",function(){return FAST_BID_PUBKEY}),__webpack_require__.d(__webpack_exports__,"spec",function(){return spec}),__webpack_exports__.cryptoVerify=cryptoVerify;var __WEBPACK_IMPORTED_MODULE_0__src_adloader__=__webpack_require__(47),__WEBPACK_IMPORTED_MODULE_1__src_adapters_bidderFactory__=__webpack_require__(1),
__WEBPACK_IMPORTED_MODULE_2__src_url__=__webpack_require__(10),__WEBPACK_IMPORTED_MODULE_3__src_utils__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_4_core_js_library_fn_array_find__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_4_core_js_library_fn_array_find___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_core_js_library_fn_array_find__),__WEBPACK_IMPORTED_MODULE_5_jsencrypt_bin_jsencrypt__=__webpack_require__(254),__WEBPACK_IMPORTED_MODULE_5_jsencrypt_bin_jsencrypt___default=
__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_jsencrypt_bin_jsencrypt__),__WEBPACK_IMPORTED_MODULE_6_crypto_js_sha256__=__webpack_require__(255),__WEBPACK_IMPORTED_MODULE_6_crypto_js_sha256___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_crypto_js_sha256__),ADAPTER_VERSION=16,BIDDER_CODE="criteo",CDB_ENDPOINT="//bidder.criteo.com/cdb",CRITEO_VENDOR_ID=91,INTEGRATION_MODES={amp:1},PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,PUBLISHER_TAG_URL="//static.criteo.net/js/ld/publishertag.prebid.js",
FAST_BID_PUBKEY="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDO1BjAITkFTtP0IMzmF7qsqhpu\ny1dGaTPHnjMU9mRZsrnfR3C0sEN5pYEzEcFRPnkJjJuhH8Rnh5+CE+LcKg0Z8ZZ7\nOmOSj0/qnYTAYCu0cR5LiyWG79KlIgUyMbp92ulGg24gAyGrVn4+v/4c53WlOEUp\n4YWvb82G0CD5NcDNpQIDAQAB\n-----END PUBLIC KEY-----",spec={code:BIDDER_CODE,isBidRequestValid:function(t){return!(!t||!t.params||!t.params.zoneId&&!t.params.networkId)},buildRequests:function(t,e){var i,r;if(publisherTagAvailable()||(window.Criteo=window.Criteo||
{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid(),setTimeout(function(){Object(__WEBPACK_IMPORTED_MODULE_0__src_adloader__.a)(PUBLISHER_TAG_URL,BIDDER_CODE)},e.timeout)),publisherTagAvailable()){var n=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,t,e,"2.14.0");i=n.buildCdbUrl(),r=n.buildCdbRequest()}else{var s=buildContext(t);i=buildCdbUrl(s),r=buildCdbRequest(s,t,e)}if(r)return{method:"POST",url:i,data:r,bidRequests:t}},interpretResponse:function(t,n){var e=t.body||
t;if(publisherTagAvailable()){var i=Criteo.PubTag.Adapters.Prebid.GetAdapter(n);if(i)return i.interpretResponse(e,n)}var s=[];return e&&e.slots&&__WEBPACK_IMPORTED_MODULE_3__src_utils__.isArray(e.slots)&&e.slots.forEach(function(e){var t=__WEBPACK_IMPORTED_MODULE_4_core_js_library_fn_array_find___default()(n.bidRequests,function(t){return t.adUnitCode===e.impid&&(!t.params.zoneId||parseInt(t.params.zoneId)===e.zoneid)}),i=t.bidId,r={requestId:i,adId:e.bidId||__WEBPACK_IMPORTED_MODULE_3__src_utils__.getUniqueIdentifierStr(),
cpm:e.cpm,currency:e.currency,netRevenue:!0,ttl:e.ttl||60,creativeId:i,width:e.width,height:e.height};e.native?r.ad=createNativeAd(i,e.native,t.params.nativeCallback):r.ad=e.creative,s.push(r)}),s},onTimeout:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidTimeout()},onBidWon:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidWon(t)},onSetTargeting:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleSetTargeting(t)}};
function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(t){var e=__WEBPACK_IMPORTED_MODULE_3__src_utils__.getTopWindowUrl(),i=Object(__WEBPACK_IMPORTED_MODULE_2__src_url__.c)(e).search,r={url:e,debug:"1"===i.pbt_debug,noLog:"1"===i.pbt_nolog,integrationMode:void 0};return t.forEach(function(t){t.params.integrationMode&&(r.integrationMode=t.params.integrationMode)}),r}function buildCdbUrl(t){var e=
CDB_ENDPOINT;return e+="?profileId\x3d"+PROFILE_ID_INLINE,e+="\x26av\x3d"+String(ADAPTER_VERSION),e+="\x26wv\x3d"+encodeURIComponent("2.14.0"),e+="\x26cb\x3d"+String(Math.floor(99999999999*Math.random())),t.integrationMode in INTEGRATION_MODES&&(e+="\x26im\x3d"+INTEGRATION_MODES[t.integrationMode]),t.debug&&(e+="\x26debug\x3d1"),t.noLog&&(e+="\x26nolog\x3d1"),e}function buildCdbRequest(t,e,i){var r,n={publisher:{url:t.url},slots:e.map(function(t){r=t.params.networkId||r;var e={impid:t.adUnitCode,
transactionid:t.transactionId,auctionId:t.auctionId,sizes:t.sizes.map(function(t){return t[0]+"x"+t[1]})};return t.params.zoneId&&(e.zoneid=t.params.zoneId),t.params.publisherSubId&&(e.publishersubid=t.params.publisherSubId),t.params.nativeCallback&&(e.native=!0),e})};return r&&(n.publisher.networkid=r),i&&i.gdprConsent&&(n.gdprConsent={},void 0!==i.gdprConsent.gdprApplies&&(n.gdprConsent.gdprApplies=!!i.gdprConsent.gdprApplies),i.gdprConsent.vendorData&&i.gdprConsent.vendorData.vendorConsents&&void 0!==
i.gdprConsent.vendorData.vendorConsents[CRITEO_VENDOR_ID.toString(10)]&&(n.gdprConsent.consentGiven=!!i.gdprConsent.vendorData.vendorConsents[CRITEO_VENDOR_ID.toString(10)]),void 0!==i.gdprConsent.consentString&&(n.gdprConsent.consentData=i.gdprConsent.consentString)),n}function createNativeAd(t,e,i){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[t]={callback:i,payload:e},'\x3cscript type\x3d"text/javascript"\x3e\n    var win \x3d window;\n    for (var i \x3d 0; i \x3c 10; ++i) {\n      win \x3d win.parent;\n      if (win.criteo_prebid_native_slots) {\n        var responseSlot \x3d win.criteo_prebid_native_slots["'.concat(t,
'"];\n        responseSlot.callback(responseSlot.payload);\n        break;\n      }\n    }\n  \x3c/script\x3e')}function cryptoVerify(t,e,i){var r=new __WEBPACK_IMPORTED_MODULE_5_jsencrypt_bin_jsencrypt___default.a;return r.setPublicKey(t),r.verify(i,e,__WEBPACK_IMPORTED_MODULE_6_crypto_js_sha256___default.a)}function validateFastBid(t){var e=t.indexOf("\n"),i=t.substr(0,e).trim();if("// Hash: "!==i.substr(0,9))return __WEBPACK_IMPORTED_MODULE_3__src_utils__.logWarn("No hash found in FastBid"),!1;
var r=i.substr(9),n=t.substr(e+1);try{return cryptoVerify(FAST_BID_PUBKEY,r,n)}catch(t){return void __WEBPACK_IMPORTED_MODULE_3__src_utils__.logWarn("Failed to verify Criteo FastBid")}}function tryGetCriteoFastBid(){try{var fastBid=localStorage.getItem("criteo_fast_bid");null!==fastBid&&(!1===validateFastBid(fastBid)?(__WEBPACK_IMPORTED_MODULE_3__src_utils__.logWarn("Invalid Criteo FastBid found"),localStorage.removeItem("criteo_fast_bid")):(__WEBPACK_IMPORTED_MODULE_3__src_utils__.logInfo("Using Criteo FastBid"),
eval(fastBid)))}catch(t){}}Object(__WEBPACK_IMPORTED_MODULE_1__src_adapters_bidderFactory__.registerBidder)(spec)},254:function(t,e,i){(function(t){var e="0123456789abcdefghijklmnopqrstuvwxyz";function h(t){return e.charAt(t)}function i(t,e){return t&e}function u(t,e){return t|e}function r(t,e){return t^e}function n(t,e){return t&~e}function s(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function o(t){for(var e=
0;0!=t;)t&=t-1,++e;return e}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function c(t){var e,i,r="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),r+=a.charAt(i>>6)+a.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),r+=a.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),r+=a.charAt(i>>2)+a.charAt((3&i)<<4));0<(3&r.length);)r+="\x3d";return r}function f(t){var e,i="",r=0,n=0;for(e=0;e<t.length&&"\x3d"!=t.charAt(e);++e){var s=
a.indexOf(t.charAt(e));s<0||(r=0==r?(i+=h(s>>2),n=3&s,1):1==r?(i+=h(n<<2|s>>4),n=15&s,2):2==r?(i+=h(n),i+=h(s>>2),n=3&s,3):(i+=h(n<<2|s>>4),i+=h(15&s),0))}return 1==r&&(i+=h(n<<2)),i}var l,p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};var d,g=function(t){var e;if(void 0===l){var i="0123456789ABCDEF",r=" \f\n\r\t\u00a0\u2028\u2029";for(l={},e=0;e<16;++e)l[i.charAt(e)]=
e;for(i=i.toLowerCase(),e=10;e<16;++e)l[i.charAt(e)]=e;for(e=0;e<r.length;++e)l[r.charAt(e)]=-1}var n=[],s=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("\x3d"==a)break;if(-1!=(a=l[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);s|=a,2<=++o?(n[n.length]=s,o=s=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return n},v={decode:function(t){var e;if(void 0===d){var i="\x3d \f\n\r\t\u00a0\u2028\u2029";for(d=Object.create(null),e=0;e<64;++e)d["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=
e;for(e=0;e<i.length;++e)d[i.charAt(e)]=-1}var r=[],n=0,s=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("\x3d"==o)break;if(-1!=(o=d[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);n|=o,4<=++s?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,s=n=0):n<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,
unarmor:function(t){var e=v.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return v.decode(t)}},_=1E13,y=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var i,r,n=this.buf,s=n.length;for(i=0;i<s;++i)(r=n[i]*t+e)<_?e=0:r-=(e=0|r/_)*_,n[i]=r;0<e&&(n[i]=e)},t.prototype.sub=function(t){var e,i,r=this.buf,n=r.length;for(e=0;e<n;++e)t=(i=r[e]-t)<0?(i+=_,1):0,r[e]=i;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=
(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,i=e[e.length-1].toString(),r=e.length-2;0<=r;--r)i+=(_+e[r]).toString().substring(1);return i},t.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;0<=i;--i)e=e*_+t[i];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),m="\u2026",b=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,
E=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function T(t,e){return t.length>e&&(t=t.substring(0,e)+m),t}var S,D=function(){function i(t,e){this.hexDigits="0123456789ABCDEF",t instanceof i?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return i.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+
this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},i.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},i.prototype.hexDump=function(t,e,i){for(var r="",n=t;n<e;++n)if(r+=this.hexByte(this.get(n)),!0!==i)switch(15&n){case 7:r+="  ";break;case 15:r+="\n";break;default:r+=" "}return r},i.prototype.isASCII=function(t,e){for(var i=t;i<e;++i){var r=this.get(i);if(r<32||176<r)return!1}return!0},i.prototype.parseStringISO=function(t,
e){for(var i="",r=t;r<e;++r)i+=String.fromCharCode(this.get(r));return i},i.prototype.parseStringUTF=function(t,e){for(var i="",r=t;r<e;){var n=this.get(r++);i+=n<128?String.fromCharCode(n):191<n&&n<224?String.fromCharCode((31&n)<<6|63&this.get(r++)):String.fromCharCode((15&n)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return i},i.prototype.parseStringBMP=function(t,e){for(var i,r,n="",s=t;s<e;)i=this.get(s++),r=this.get(s++),n+=String.fromCharCode(i<<8|r);return n},i.prototype.parseTime=function(t,
e,i){var r=this.parseStringISO(t,e),n=(i?b:E).exec(r);return n?(i&&(n[1]=+n[1],n[1]+=+n[1]<70?2E3:1900),r=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(r+=":"+n[5],n[6]&&(r+=":"+n[6],n[7]&&(r+="."+n[7]))),n[8]&&(r+=" UTC","Z"!=n[8]&&(r+=n[8],n[9]&&(r+=":"+n[9]))),r):"Unrecognized time: "+r},i.prototype.parseInteger=function(t,e){for(var i,r=this.get(t),n=127<r,s=n?255:0,o="";r==s&&++t<e;)r=this.get(t);if(0===(i=e-t))return n?-1:0;if(4<i){for(o=r,i<<=3;0==(128&(+o^s));)o=+o<<1,--i;o="("+i+" bit)\n"}n&&(r-=
256);for(var a=new y(r),h=t+1;h<e;++h)a.mulAdd(256,this.get(h));return o+a.toString()},i.prototype.parseBitString=function(t,e,i){for(var r=this.get(t),n="("+((e-t-1<<3)-r)+" bit)\n",s="",o=t+1;o<e;++o){for(var a=this.get(o),h=o==e-1?r:0,u=7;h<=u;--u)s+=a>>u&1?"1":"0";if(s.length>i)return n+T(s,i)}return n+s},i.prototype.parseOctetString=function(t,e,i){if(this.isASCII(t,e))return T(this.parseStringISO(t,e),i);var r=e-t,n="("+r+" byte)\n";(i/=2)<r&&(e=t+i);for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));
return i<r&&(n+=m),n},i.prototype.parseOID=function(t,e,i){for(var r="",n=new y,s=0,o=t;o<e;++o){var a=this.get(o);if(n.mulAdd(128,127&a),s+=7,!(128&a)){if(""===r)if((n=n.simplify())instanceof y)n.sub(80),r="2."+n.toString();else{var h=n<80?n<40?0:1:2;r=h+"."+(n-40*h)}else r+="."+n.toString();if(r.length>i)return T(r,i);n=new y,s=0}}return 0<s&&(r+=".incomplete"),r},i}(),w=function(){function c(t,e,i,r,n){if(!(r instanceof B))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=
i,this.tag=r,this.sub=n}return c.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";
case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+
this.tag.tagNumber.toString()}},c.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+i,t);case 4:return this.sub?
"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);case 6:return this.stream.parseOID(e,e+i,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return T(this.stream.parseStringUTF(e,e+i),t);case 18:case 19:case 20:case 21:case 22:case 26:return T(this.stream.parseStringISO(e,e+i),t);case 30:return T(this.stream.parseStringBMP(e,e+i),t);case 23:case 24:return this.stream.parseTime(e,e+i,23==this.tag.tagNumber)}return null},c.prototype.toString=
function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},c.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(0<=this.length&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+="  ";for(var i=0,r=
this.sub.length;i<r;++i)e+=this.sub[i].toPrettyString(t)}return e},c.prototype.posStart=function(){return this.stream.pos},c.prototype.posContent=function(){return this.stream.pos+this.header},c.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},c.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},c.decodeLength=function(t){var e=t.get(),i=127&e;if(i==e)return i;if(6<i)throw new Error("Length over 48 bits not supported at position "+
(t.pos-1));if(0==i)return null;for(var r=e=0;r<i;++r)e=256*e+t.get();return e},c.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,i=2*this.length;return t.substr(e,i)},c.decode=function(t){var r;r=t instanceof D?t:new D(t,0);var e=new D(r),i=new B(r),n=c.decodeLength(r),s=r.pos,o=s-e.pos,a=null,h=function(){var t=[];if(null!==n){for(var e=s+n;r.pos<e;)t[t.length]=c.decode(r);if(r.pos!=e)throw new Error("Content size is not correct for container starting at offset "+
s);}else try{for(;;){var i=c.decode(r);if(i.tag.isEOC())break;t[t.length]=i}n=s-r.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t);}return t};if(i.tagConstructed)a=h();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=h();for(var u=0;u<a.length;++u)if(a[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.");}catch(t){a=null}if(null===
a){if(null===n)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(n)}return new c(e,o,n,i,a)},c}(),B=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){for(var i=new y;e=t.get(),i.mulAdd(128,127&e),128&e;);this.tagNumber=i.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},
t}(),R=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,
743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],O=(1<<26)/R[R.length-1],I=function(){function m(t,e,i){null!=t&&("number"==typeof t?this.fromNumber(t,e,i):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return m.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);
e=2}var i,r=(1<<e)-1,n=!1,s="",o=this.t,a=this.DB-o*this.DB%e;if(0<o--)for(a<this.DB&&0<(i=this[o]>>a)&&(n=!0,s=h(i));0<=o;)a<e?(i=(this[o]&(1<<a)-1)<<e-a,i|=this[--o]>>(a+=this.DB-e)):(i=this[o]>>(a-=e)&r,a<=0&&(a+=this.DB,--o)),0<i&&(n=!0),n&&(s+=h(i));return n?s:"0"},m.prototype.negate=function(){var t=C();return m.ZERO.subTo(this,t),t},m.prototype.abs=function(){return this.s<0?this.negate():this},m.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<
0?-e:e;for(;0<=--i;)if(0!=(e=this[i]-t[i]))return e;return 0},m.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+H(this[this.t-1]^this.s&this.DM)},m.prototype.mod=function(t){var e=C();return this.abs().divRemTo(t,null,e),this.s<0&&0<e.compareTo(m.ZERO)&&t.subTo(e,e),e},m.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new x(e):new P(e),this.exp(t,i)},m.prototype.clone=function(){var t=C();return this.copyTo(t),t},m.prototype.intValue=function(){if(this.s<0){if(1==
this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},m.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},m.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},m.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},m.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i,r=this.DB-t*this.DB%8,n=0;if(0<t--)for(r<
this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[n++]=i|this.s<<this.DB-r);0<=t;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==n&&(128&this.s)!=(128&i)&&++n,(0<n||i!=this.s)&&(e[n++]=i);return e},m.prototype.equals=function(t){return 0==this.compareTo(t)},m.prototype.min=function(t){return this.compareTo(t)<0?this:t},m.prototype.max=function(t){return 0<this.compareTo(t)?this:t},m.prototype.and=function(t){var e=
C();return this.bitwiseTo(t,i,e),e},m.prototype.or=function(t){var e=C();return this.bitwiseTo(t,u,e),e},m.prototype.xor=function(t){var e=C();return this.bitwiseTo(t,r,e),e},m.prototype.andNot=function(t){var e=C();return this.bitwiseTo(t,n,e),e},m.prototype.not=function(){for(var t=C(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},m.prototype.shiftLeft=function(t){var e=C();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},m.prototype.shiftRight=function(t){var e=C();
return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},m.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+s(this[t]);return this.s<0?this.t*this.DB:-1},m.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,i=0;i<this.t;++i)t+=o(this[i]^e);return t},m.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},m.prototype.setBit=function(t){return this.changeBit(t,u)},m.prototype.clearBit=function(t){return this.changeBit(t,
n)},m.prototype.flipBit=function(t){return this.changeBit(t,r)},m.prototype.add=function(t){var e=C();return this.addTo(t,e),e},m.prototype.subtract=function(t){var e=C();return this.subTo(t,e),e},m.prototype.multiply=function(t){var e=C();return this.multiplyTo(t,e),e},m.prototype.divide=function(t){var e=C();return this.divRemTo(t,e,null),e},m.prototype.remainder=function(t){var e=C();return this.divRemTo(t,null,e),e},m.prototype.divideAndRemainder=function(t){var e=C(),i=C();return this.divRemTo(t,
e,i),[e,i]},m.prototype.modPow=function(t,e){var i,r,n=t.bitLength(),s=U(1);if(n<=0)return s;i=n<18?1:n<48?3:n<144?4:n<768?5:6,r=n<8?new x(e):e.isEven()?new M(e):new P(e);var o=[],a=3,h=i-1,u=(1<<i)-1;if(o[1]=r.convert(this),1<i){var c=C();for(r.sqrTo(o[1],c);a<=u;)o[a]=C(),r.mulTo(c,o[a-2],o[a]),a+=2}var f,l,p=t.t-1,d=!0,g=C();for(n=H(t[p])-1;0<=p;){for(h<=n?f=t[p]>>n-h&u:(f=(t[p]&(1<<n+1)-1)<<h-n,0<p&&(f|=t[p-1]>>this.DB+n-h)),a=i;0==(1&f);)f>>=1,--a;if((n-=a)<0&&(n+=this.DB,--p),d)o[f].copyTo(s),
d=!1;else{for(;1<a;)r.sqrTo(s,g),r.sqrTo(g,s),a-=2;0<a?r.sqrTo(s,g):(l=s,s=g,g=l),r.mulTo(g,o[f],s)}for(;0<=p&&0==(t[p]&1<<n);)r.sqrTo(s,g),l=s,s=g,g=l,--n<0&&(n=this.DB-1,--p)}return r.revert(s)},m.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return m.ZERO;for(var i=t.clone(),r=this.clone(),n=U(1),s=U(0),o=U(0),a=U(1);0!=i.signum();){for(;i.isEven();)i.rShiftTo(1,i),e?(n.isEven()&&s.isEven()||(n.addTo(this,n),s.subTo(t,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(t,
s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);0<=i.compareTo(r)?(i.subTo(r,i),e&&n.subTo(o,n),s.subTo(a,s)):(r.subTo(i,r),e&&o.subTo(n,o),a.subTo(s,a))}return 0!=r.compareTo(m.ONE)?m.ZERO:0<=a.compareTo(t)?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},m.prototype.pow=function(t){return this.exp(t,new A)},m.prototype.gcd=function(t){var e=this.s<0?this.negate():
this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var r=e;e=i,i=r}var n=e.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return e;for(n<s&&(s=n),0<s&&(e.rShiftTo(s,e),i.rShiftTo(s,i));0<e.signum();)0<(n=e.getLowestSetBit())&&e.rShiftTo(n,e),0<(n=i.getLowestSetBit())&&i.rShiftTo(n,i),0<=e.compareTo(i)?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return 0<s&&i.lShiftTo(s,i),i},m.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=R[R.length-1]){for(e=
0;e<R.length;++e)if(i[0]==R[e])return!0;return!1}if(i.isEven())return!1;for(e=1;e<R.length;){for(var r=R[e],n=e+1;n<R.length&&r<O;)r*=R[n++];for(r=i.modInt(r);e<n;)if(r%R[e++]==0)return!1}return i.millerRabin(t)},m.prototype.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},m.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0<t?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},m.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=
8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var r=t.length,n=!1,s=0;0<=--r;){var o=8==i?255&+t[r]:j(t,r);o<0?"-"==t.charAt(r)&&(n=!0):(n=!1,0==s?this[this.t++]=o:s+i>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=i)>=this.DB&&(s-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,0<s&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&m.ZERO.subTo(this,this)},m.prototype.clamp=function(){for(var t=
this.s&this.DM;0<this.t&&this[this.t-1]==t;)--this.t},m.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;0<=i;--i)e[i+t]=this[i];for(i=t-1;0<=i;--i)e[i]=0;e.t=this.t+t,e.s=this.s},m.prototype.drShiftTo=function(t,e){for(var i=t;i<this.t;++i)e[i-t]=this[i];e.t=Math.max(this.t-t,0),e.s=this.s},m.prototype.lShiftTo=function(t,e){for(var i=t%this.DB,r=this.DB-i,n=(1<<r)-1,s=Math.floor(t/this.DB),o=this.s<<i&this.DM,a=this.t-1;0<=a;--a)e[a+s+1]=this[a]>>r|o,o=(this[a]&n)<<i;for(a=s-1;0<=a;--a)e[a]=
0;e[s]=o,e.t=this.t+s+1,e.s=this.s,e.clamp()},m.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var r=t%this.DB,n=this.DB-r,s=(1<<r)-1;e[0]=this[i]>>r;for(var o=i+1;o<this.t;++o)e[o-i-1]|=(this[o]&s)<<n,e[o-i]=this[o]>>r;0<r&&(e[this.t-i-1]|=(this.s&s)<<n),e.t=this.t-i,e.clamp()}},m.prototype.subTo=function(t,e){for(var i=0,r=0,n=Math.min(t.t,this.t);i<n;)r+=this[i]-t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;i<this.t;)r+=this[i],e[i++]=
r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;i<t.t;)r-=t[i],e[i++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[i++]=this.DV+r:0<r&&(e[i++]=r),e.t=i,e.clamp()},m.prototype.multiplyTo=function(t,e){var i=this.abs(),r=t.abs(),n=i.t;for(e.t=n+r.t;0<=--n;)e[n]=0;for(n=0;n<r.t;++n)e[n+i.t]=i.am(0,r[n],e,n,0,i.t);e.s=0,e.clamp(),this.s!=t.s&&m.ZERO.subTo(e,e)},m.prototype.squareTo=function(t){for(var e=this.abs(),i=t.t=2*e.t;0<=--i;)t[i]=0;for(i=0;i<e.t-1;++i){var r=e.am(i,e[i],t,2*i,0,1);(t[i+
e.t]+=e.am(i+1,2*e[i],t,2*i+1,r,e.t-i-1))>=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}0<t.t&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},m.prototype.divRemTo=function(t,e,i){var r=t.abs();if(!(r.t<=0)){var n=this.abs();if(n.t<r.t)return null!=e&&e.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=C());var s=C(),o=this.s,a=t.s,h=this.DB-H(r[r.t-1]);0<h?(r.lShiftTo(h,s),n.lShiftTo(h,i)):(r.copyTo(s),n.copyTo(i));var u=s.t,c=s[u-1];if(0!=c){var f=c*(1<<this.F1)+(1<u?s[u-2]>>this.F2:0),l=this.FV/
f,p=(1<<this.F1)/f,d=1<<this.F2,g=i.t,v=g-u,_=null==e?C():e;for(s.dlShiftTo(v,_),0<=i.compareTo(_)&&(i[i.t++]=1,i.subTo(_,i)),m.ONE.dlShiftTo(u,_),_.subTo(s,s);s.t<u;)s[s.t++]=0;for(;0<=--v;){var y=i[--g]==c?this.DM:Math.floor(i[g]*l+(i[g-1]+d)*p);if((i[g]+=s.am(0,y,i,v,0,u))<y)for(s.dlShiftTo(v,_),i.subTo(_,i);i[g]<--y;)i.subTo(_,i)}null!=e&&(i.drShiftTo(u,e),o!=a&&m.ZERO.subTo(e,e)),i.t=u,i.clamp(),0<h&&i.rShiftTo(h,i),o<0&&m.ZERO.subTo(i,i)}}},m.prototype.invDigit=function(){if(this.t<1)return 0;
var t=this[0];if(0==(1&t))return 0;var e=3&t;return 0<(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)?this.DV-e:-e},m.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},m.prototype.exp=function(t,e){if(4294967295<t||t<1)return m.ONE;var i=C(),r=C(),n=e.convert(this),s=H(t)-1;for(n.copyTo(i);0<=--s;)if(e.sqrTo(i,r),0<(t&1<<s))e.mulTo(r,n,i);else{var o=i;i=r,r=o}return e.revert(i)},m.prototype.chunkSize=function(t){return Math.floor(Math.LN2*
this.DB/Math.log(t))},m.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36<t)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),r=U(i),n=C(),s=C(),o="";for(this.divRemTo(r,n,s);0<n.signum();)o=(i+s.intValue()).toString(t).substr(1)+o,n.divRemTo(r,n,s);return s.intValue().toString(t)+o},m.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),r=Math.pow(e,i),n=!1,s=0,o=0,a=0;a<t.length;++a){var h=j(t,a);h<0?"-"==t.charAt(a)&&0==this.signum()&&
(n=!0):(o=e*o+h,++s>=i&&(this.dMultiply(r),this.dAddOffset(o,0),o=s=0))}0<s&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(o,0)),n&&m.ZERO.subTo(this,this)},m.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(m.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(m.ONE.shiftLeft(t-1),this);else{var r=[],n=7&t;r.length=
1+(t>>3),e.nextBytes(r),0<n?r[0]&=(1<<n)-1:r[0]=0,this.fromString(r,256)}},m.prototype.bitwiseTo=function(t,e,i){var r,n,s=Math.min(t.t,this.t);for(r=0;r<s;++r)i[r]=e(this[r],t[r]);if(t.t<this.t){for(n=t.s&this.DM,r=s;r<this.t;++r)i[r]=e(this[r],n);i.t=this.t}else{for(n=this.s&this.DM,r=s;r<t.t;++r)i[r]=e(n,t[r]);i.t=t.t}i.s=e(this.s,t.s),i.clamp()},m.prototype.changeBit=function(t,e){var i=m.ONE.shiftLeft(t);return this.bitwiseTo(i,e,i),i},m.prototype.addTo=function(t,e){for(var i=0,r=0,n=Math.min(t.t,
this.t);i<n;)r+=this[i]+t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;i<this.t;)r+=this[i],e[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;i<t.t;)r+=t[i],e[i++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,0<r?e[i++]=r:r<-1&&(e[i++]=this.DV+r),e.t=i,e.clamp()},m.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},m.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=
this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},m.prototype.multiplyLowerTo=function(t,e,i){var r=Math.min(this.t+t.t,e);for(i.s=0,i.t=r;0<r;)i[--r]=0;for(var n=i.t-this.t;r<n;++r)i[r+this.t]=this.am(0,t[r],i,r,0,this.t);for(n=Math.min(t.t,e);r<n;++r)this.am(0,t[r],i,r,0,e-r);i.clamp()},m.prototype.multiplyUpperTo=function(t,e,i){--e;var r=i.t=this.t+t.t-e;for(i.s=0;0<=--r;)i[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)i[this.t+r-e]=this.am(e-r,t[r],i,0,0,this.t+r-e);i.clamp(),i.drShiftTo(1,i)},
m.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,i=this.s<0?t-1:0;if(0<this.t)if(0==e)i=this[0]%t;else for(var r=this.t-1;0<=r;--r)i=(e*i+this[r])%t;return i},m.prototype.millerRabin=function(t){var e=this.subtract(m.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var r=e.shiftRight(i);R.length<(t=t+1>>1)&&(t=R.length);for(var n=C(),s=0;s<t;++s){n.fromInt(R[Math.floor(Math.random()*R.length)]);var o=n.modPow(r,this);if(0!=o.compareTo(m.ONE)&&0!=o.compareTo(e)){for(var a=1;a++<i&&0!=o.compareTo(e);)if(0==
(o=o.modPowInt(2,this)).compareTo(m.ONE))return!1;if(0!=o.compareTo(e))return!1}}return!0},m.prototype.square=function(){var t=C();return this.squareTo(t),t},m.prototype.gcda=function(t,e){var i=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(i.compareTo(r)<0){var n=i;i=r,r=n}var s=i.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(i);else{s<o&&(o=s),0<o&&(i.rShiftTo(o,i),r.rShiftTo(o,r));var a=function(){0<(s=i.getLowestSetBit())&&i.rShiftTo(s,i),0<(s=r.getLowestSetBit())&&r.rShiftTo(s,
r),0<=i.compareTo(r)?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r)),0<i.signum()?setTimeout(a,0):(0<o&&r.lShiftTo(o,r),setTimeout(function(){e(r)},0))};setTimeout(a,10)}},m.prototype.fromNumberAsync=function(t,e,i,r){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(m.ONE.shiftLeft(t-1),u,this),this.isEven()&&this.dAddOffset(1,0);var n=this,s=function(){n.dAddOffset(2,0),n.bitLength()>t&&n.subTo(m.ONE.shiftLeft(t-1),n),n.isProbablePrime(e)?
setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var o=[],a=7&t;o.length=1+(t>>3),e.nextBytes(o),0<a?o[0]&=(1<<a)-1:o[0]=0,this.fromString(o,256)}},m}(),A=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),x=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?
t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),P=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=C();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),
t.s<0&&0<e.compareTo(I.ZERO)&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=C();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var i=32767&t[e],r=i*this.mpl+((i*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,
i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),M=function(){function t(t){this.m=t,this.r2=C(),this.q3=C(),I.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=C();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+
1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);0<=t.compareTo(this.m);)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function C(){return new I(null)}function V(t,e){return new I(t,e)}S="Microsoft Internet Explorer"==navigator.appName?(I.prototype.am=
function(t,e,i,r,n,s){for(var o=32767&e,a=e>>15;0<=--s;){var h=32767&this[t],u=this[t++]>>15,c=a*h+u*o;n=((h=o*h+((32767&c)<<15)+i[r]+(1073741823&n))>>>30)+(c>>>15)+a*u+(n>>>30),i[r++]=1073741823&h}return n},30):"Netscape"!=navigator.appName?(I.prototype.am=function(t,e,i,r,n,s){for(;0<=--s;){var o=e*this[t++]+i[r]+n;n=Math.floor(o/67108864),i[r++]=67108863&o}return n},26):(I.prototype.am=function(t,e,i,r,n,s){for(var o=16383&e,a=e>>14;0<=--s;){var h=16383&this[t],u=this[t++]>>14,c=a*h+u*o;n=((h=
o*h+((16383&c)<<14)+i[r]+n)>>28)+(c>>14)+a*u,i[r++]=268435455&h}return n},28),I.prototype.DB=S,I.prototype.DM=(1<<S)-1,I.prototype.DV=1<<S;I.prototype.FV=Math.pow(2,52),I.prototype.F1=52-S,I.prototype.F2=2*S-52;var N,L,q=[];for(N="0".charCodeAt(0),L=0;L<=9;++L)q[N++]=L;for(N="a".charCodeAt(0),L=10;L<36;++L)q[N++]=L;for(N="A".charCodeAt(0),L=10;L<36;++L)q[N++]=L;function j(t,e){var i=q[t.charCodeAt(e)];return null==i?-1:i}function U(t){var e=C();return e.fromInt(t),e}function H(t){var e,i=1;return 0!=
(e=t>>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}I.ZERO=U(0),I.ONE=U(1);var K=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,i,r;for(e=0;e<256;++e)this.S[e]=e;for(e=i=0;e<256;++e)i=i+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[i],this.S[i]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],
this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var F,k,z=256,G=null;if(null==G){G=[];var W=void(k=0);if(window.crypto&&window.crypto.getRandomValues){var Z=new Uint32Array(256);for(window.crypto.getRandomValues(Z),W=0;W<Z.length;++W)G[k++]=255&Z[W]}var Y=function(t){if(this.count=this.count||0,256<=this.count||z<=k)window.removeEventListener?window.removeEventListener("mousemove",Y,!1):window.detachEvent&&window.detachEvent("onmousemove",Y);else try{var e=t.x+t.y;
G[k++]=255&e,this.count+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Y,!1):window.attachEvent&&window.attachEvent("onmousemove",Y)}function $(){if(null==F){for(F=new K;k<z;){var t=Math.floor(65536*Math.random());G[k++]=255&t}for(F.init(G),k=0;k<G.length;++k)G[k]=0;k=0}return F.next()}var Q=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=$()},t}();var J=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,
this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),i=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(i)<0;)e=e.add(this.p);return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&0<t.length&&0<e.length?
(this.n=V(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var i=[],r=t.length-1;0<=r&&0<e;){var n=t.charCodeAt(r--);n<128?i[--e]=n:127<n&&n<2048?(i[--e]=63&n|128,i[--e]=n>>6|192):(i[--e]=63&n|128,i[--e]=n>>6&63|128,i[--e]=n>>12|224)}i[--e]=0;for(var s=new Q,o=[];2<e;){for(o[0]=0;0==o[0];)s.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new I(i)}(t,
this.n.bitLength()+7>>3);if(null==e)return null;var i=this.doPublic(e);if(null==i)return null;var r=i.toString(16);return 0==(1&r.length)?r:"0"+r},t.prototype.setPrivate=function(t,e,i){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=V(t,16),this.e=parseInt(e,16),this.d=V(i,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,i,r,n,s,o,a){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=V(t,16),this.e=parseInt(e,16),this.d=V(i,16),this.p=V(r,16),this.q=V(n,16),this.dmp1=
V(s,16),this.dmq1=V(o,16),this.coeff=V(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var i=new Q,r=t>>1;this.e=parseInt(e,16);for(var n=new I(e,16);;){for(;this.p=new I(t-r,1,i),0!=this.p.subtract(I.ONE).gcd(n).compareTo(I.ONE)||!this.p.isProbablePrime(10););for(;this.q=new I(r,1,i),0!=this.q.subtract(I.ONE).gcd(n).compareTo(I.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var o=this.p.subtract(I.ONE),a=
this.q.subtract(I.ONE),h=o.multiply(a);if(0==h.gcd(n).compareTo(I.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(h),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=V(t,16),i=this.doPrivate(e);return null==i?null:function(t,e){var i=t.toByteArray(),r=0;for(;r<i.length&&0==i[r];)++r;if(i.length-r!=e-1||2!=i[r])return null;++r;for(;0!=i[r];)if(++r>=i.length)return null;var n="";for(;++r<i.length;){var s=255&
i[r];s<128?n+=String.fromCharCode(s):191<s&&s<224?(n+=String.fromCharCode((31&s)<<6|63&i[r+1]),++r):(n+=String.fromCharCode((15&s)<<12|(63&i[r+1])<<6|63&i[r+2]),r+=2)}return n}(i,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var s=new Q,o=t>>1;this.e=parseInt(e,16);var a=new I(e,16),h=this,u=function(){var e=function(){if(h.p.compareTo(h.q)<=0){var t=h.p;h.p=h.q,h.q=t}var e=h.p.subtract(I.ONE),i=h.q.subtract(I.ONE),r=e.multiply(i);0==r.gcd(a).compareTo(I.ONE)?(h.n=h.p.multiply(h.q),
h.d=a.modInverse(r),h.dmp1=h.d.mod(e),h.dmq1=h.d.mod(i),h.coeff=h.q.modInverse(h.p),setTimeout(function(){n()},0)):setTimeout(u,0)},i=function(){h.q=C(),h.q.fromNumberAsync(o,1,s,function(){h.q.subtract(I.ONE).gcda(a,function(t){0==t.compareTo(I.ONE)&&h.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(i,0)})})},r=function(){h.p=C(),h.p.fromNumberAsync(t-o,1,s,function(){h.p.subtract(I.ONE).gcda(a,function(t){0==t.compareTo(I.ONE)&&h.p.isProbablePrime(10)?setTimeout(i,0):setTimeout(r,0)})})};setTimeout(r,
0)};setTimeout(u,0)},t.prototype.sign=function(t,e,i){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var i=e-t.length-6,r="",n=0;n<i;n+=2)r+="ff";return V("0001"+r+"00"+t,16)}(function(t){return X[t]||""}(i)+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var n=this.doPrivate(r);if(null==n)return null;var s=n.toString(16);return 0==(1&s.length)?s:"0"+s},t.prototype.verify=function(t,e,i){var r=V(e,16),n=this.doPublic(r);return null==n?null:
function(t){for(var e in X)if(X.hasOwnProperty(e)){var i=X[e],r=i.length;if(t.substr(0,r)==i)return t.substr(r)}return t}(n.toString(16).replace(/^1f+00/,""))==i(t).toString()},t}();var X={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",
ripemd160:"3021300906052b2403020105000414"};var tt={};tt.lang={extend:function(t,e,i){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,(t.prototype.constructor=t).superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),i){var n;for(n in i)t.prototype[n]=i[n];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&
(s=function(t,e){for(n=0;n<o.length;n+=1){var i=o[n],r=e[i];"function"==typeof r&&r!=Object.prototype[i]&&(t[i]=r)}})}catch(t){}s(t.prototype,i)}}};var et={};void 0!==et.asn1&&et.asn1||(et.asn1={}),et.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1).length;i%2==1?i+=
1:e.match(/^[0-7]/)||(i+=2);for(var r="",n=0;n<i;n++)r+="f";e=(new I(r,16)).xor(t).add(I.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=et.asn1,i=e.DERBoolean,r=e.DERInteger,n=e.DERBitString,s=e.DEROctetString,o=e.DERNull,a=e.DERObjectIdentifier,h=e.DEREnumerated,u=e.DERUTF8String,c=e.DERNumericString,f=e.DERPrintableString,l=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,
_=e.DERSet,y=e.DERTaggedObject,m=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var E=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+E+":"))throw"undefined key: "+E;if("bool"==E)return new i(t[E]);if("int"==E)return new r(t[E]);if("bitstr"==E)return new n(t[E]);if("octstr"==E)return new s(t[E]);if("null"==E)return new o(t[E]);if("oid"==E)return new a(t[E]);if("enum"==E)return new h(t[E]);
if("utf8str"==E)return new u(t[E]);if("numstr"==E)return new c(t[E]);if("prnstr"==E)return new f(t[E]);if("telstr"==E)return new l(t[E]);if("ia5str"==E)return new p(t[E]);if("utctime"==E)return new d(t[E]);if("gentime"==E)return new g(t[E]);if("seq"==E){for(var T=t[E],S=[],D=0;D<T.length;D++){var w=m(T[D]);S.push(w)}return new v({array:S})}if("set"==E){for(T=t[E],S=[],D=0;D<T.length;D++){w=m(T[D]);S.push(w)}return new _({array:S})}if("tag"==E){var B=t[E];if("[object Array]"===Object.prototype.toString.call(B)&&
3==B.length){var R=m(B[2]);return new y({tag:B[0],explicit:B[1],obj:R})}var O={};if(void 0!==B.explicit&&(O.explicit=B.explicit),void 0!==B.tag&&(O.tag=B.tag),void 0===B.obj)throw"obj shall be specified for 'tag'.";return O.obj=m(B.obj),new y(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},et.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",i=parseInt(t.substr(0,2),16),r=(e=Math.floor(i/40)+"."+i%40,""),n=2;n<t.length;n+=2){var s=("00000000"+parseInt(t.substr(n,2),
16).toString(2)).slice(-8);if(r+=s.substr(1,7),"0"==s.substr(0,1))e=e+"."+(new I(r,2)).toString(10),r=""}return e},et.asn1.ASN1Util.oidIntToHex=function(t){var a=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},e=function(t){var e="",i=(new I(t,10)).toString(2),r=7-i.length%7;7==r&&(r=0);for(var n="",s=0;s<r;s++)n+="0";i=n+i;for(s=0;s<i.length-1;s+=7){var o=i.substr(s,7);s!=i.length-7&&(o="1"+o),e+=a(parseInt(o,2))}return e};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+
t;var i="",r=t.split("."),n=40*parseInt(r[0])+parseInt(r[1]);i+=a(n),r.splice(0,2);for(var s=0;s<r.length;s++)i+=e(r[s]);return i},et.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n\x3d"+"".length+",v\x3d"+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var i=e.length/2;if(15<i)throw"ASN.1 length too long to represent by 8x: n \x3d "+
t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},et.asn1.DERAbstractString=function(t){et.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=
function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},tt.lang.extend(et.asn1.DERAbstractString,et.asn1.ASN1Object),et.asn1.DERAbstractTime=function(t){et.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=
function(t){return utc=t.getTime()+6E4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var r=this.zeroPadding,n=this.localDateToUTC(t),s=String(n.getFullYear());"utc"==e&&(s=s.substr(2,2));var o=s+r(String(n.getMonth()+1),2)+r(String(n.getDate()),2)+r(String(n.getHours()),2)+r(String(n.getMinutes()),2)+r(String(n.getSeconds()),2);if(!0===i){var a=n.getMilliseconds();if(0!=a){var h=r(String(a),3);o=o+"."+(h=h.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=
e?t:(new Array(e-t.length+1)).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,i,r,n,s){var o=new Date(Date.UTC(t,e-1,i,r,n,s,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},tt.lang.extend(et.asn1.DERAbstractTime,et.asn1.ASN1Object),et.asn1.DERAbstractStructured=function(t){et.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=
function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},tt.lang.extend(et.asn1.DERAbstractStructured,et.asn1.ASN1Object),et.asn1.DERBoolean=function(){et.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},tt.lang.extend(et.asn1.DERBoolean,et.asn1.ASN1Object),et.asn1.DERInteger=function(t){et.asn1.DERInteger.superclass.constructor.call(this),
this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=et.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new I(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},tt.lang.extend(et.asn1.DERInteger,
et.asn1.ASN1Object),et.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=et.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}et.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u \x3d "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+e},this.setByBinaryString=
function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var i=0;i<=e;i++)t+="0";var r="";for(i=0;i<t.length-1;i+=8){var n=t.substr(i,8),s=parseInt(n,2).toString(16);1==s.length&&(s="0"+s),r+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",i=0;i<t.length;i++)1==t[i]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=!1;return e},this.getFreshValueHex=function(){return this.hV},
void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},tt.lang.extend(et.asn1.DERBitString,et.asn1.ASN1Object),et.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=et.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}et.asn1.DEROctetString.superclass.constructor.call(this,
t),this.hT="04"},tt.lang.extend(et.asn1.DEROctetString,et.asn1.DERAbstractString),et.asn1.DERNull=function(){et.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},tt.lang.extend(et.asn1.DERNull,et.asn1.ASN1Object),et.asn1.DERObjectIdentifier=function(t){var a=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},s=function(t){var e="",i=(new I(t,10)).toString(2),r=7-i.length%7;7==r&&(r=0);for(var n="",s=0;s<r;s++)n+="0";i=n+i;for(s=0;s<i.length-1;s+=7){var o=
i.substr(s,7);s!=i.length-7&&(o="1"+o),e+=a(parseInt(o,2))}return e};et.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var e="",i=t.split("."),r=40*parseInt(i[0])+parseInt(i[1]);e+=a(r),i.splice(0,2);for(var n=0;n<i.length;n++)e+=s(i[n]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueName=
function(t){var e=et.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},tt.lang.extend(et.asn1.DERObjectIdentifier,et.asn1.ASN1Object),et.asn1.DEREnumerated=
function(t){et.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=et.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new I(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},
tt.lang.extend(et.asn1.DEREnumerated,et.asn1.ASN1Object),et.asn1.DERUTF8String=function(t){et.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},tt.lang.extend(et.asn1.DERUTF8String,et.asn1.DERAbstractString),et.asn1.DERNumericString=function(t){et.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},tt.lang.extend(et.asn1.DERNumericString,et.asn1.DERAbstractString),et.asn1.DERPrintableString=function(t){et.asn1.DERPrintableString.superclass.constructor.call(this,
t),this.hT="13"},tt.lang.extend(et.asn1.DERPrintableString,et.asn1.DERAbstractString),et.asn1.DERTeletexString=function(t){et.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},tt.lang.extend(et.asn1.DERTeletexString,et.asn1.DERAbstractString),et.asn1.DERIA5String=function(t){et.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},tt.lang.extend(et.asn1.DERIA5String,et.asn1.DERAbstractString),et.asn1.DERUTCTime=function(t){et.asn1.DERUTCTime.superclass.constructor.call(this,
t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},
tt.lang.extend(et.asn1.DERUTCTime,et.asn1.DERAbstractTime),et.asn1.DERGeneralizedTime=function(t){et.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=
stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},tt.lang.extend(et.asn1.DERGeneralizedTime,et.asn1.DERAbstractTime),et.asn1.DERSequence=function(t){et.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=
this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},tt.lang.extend(et.asn1.DERSequence,et.asn1.DERAbstractStructured),et.asn1.DERSet=function(t){et.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t.push(i.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},
tt.lang.extend(et.asn1.DERSet,et.asn1.DERAbstractStructured),et.asn1.DERTaggedObject=function(t){et.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,i){this.hT=e,this.isExplicit=t,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=
function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},tt.lang.extend(et.asn1.DERTaggedObject,et.asn1.ASN1Object);var it=function(i){function r(t){var e=i.call(this)||this;return t&&("string"==typeof t?e.parseKey(t):(r.hasPrivateKeyProperty(t)||r.hasPublicKeyProperty(t))&&e.parsePropertiesFrom(t)),e}return function(t,e){function i(){this.constructor=
t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(r,i),r.prototype.parseKey=function(t){try{var e=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?g(t):v.unarmor(t),n=w.decode(r);if(3===n.sub.length&&(n=n.sub[2].sub[0]),9===n.sub.length){e=n.sub[1].getHexStringValue(),this.n=V(e,16),i=n.sub[2].getHexStringValue(),this.e=parseInt(i,16);var s=n.sub[3].getHexStringValue();this.d=V(s,16);var o=n.sub[4].getHexStringValue();this.p=V(o,16);var a=n.sub[5].getHexStringValue();
this.q=V(a,16);var h=n.sub[6].getHexStringValue();this.dmp1=V(h,16);var u=n.sub[7].getHexStringValue();this.dmq1=V(u,16);var c=n.sub[8].getHexStringValue();this.coeff=V(c,16)}else{if(2!==n.sub.length)return!1;var f=n.sub[1].sub[0];e=f.sub[0].getHexStringValue(),this.n=V(e,16),i=f.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch(t){return!1}},r.prototype.getPrivateBaseKey=function(){var t={array:[new et.asn1.DERInteger({int:0}),new et.asn1.DERInteger({bigint:this.n}),new et.asn1.DERInteger({int:this.e}),
new et.asn1.DERInteger({bigint:this.d}),new et.asn1.DERInteger({bigint:this.p}),new et.asn1.DERInteger({bigint:this.q}),new et.asn1.DERInteger({bigint:this.dmp1}),new et.asn1.DERInteger({bigint:this.dmq1}),new et.asn1.DERInteger({bigint:this.coeff})]};return(new et.asn1.DERSequence(t)).getEncodedHex()},r.prototype.getPrivateBaseKeyB64=function(){return c(this.getPrivateBaseKey())},r.prototype.getPublicBaseKey=function(){var t=new et.asn1.DERSequence({array:[new et.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),
new et.asn1.DERNull]}),e=new et.asn1.DERSequence({array:[new et.asn1.DERInteger({bigint:this.n}),new et.asn1.DERInteger({int:this.e})]}),i=new et.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return(new et.asn1.DERSequence({array:[t,i]})).getEncodedHex()},r.prototype.getPublicBaseKeyB64=function(){return c(this.getPublicBaseKey())},r.wordwrap=function(t,e){if(!t)return t;var i="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(i,"g")).join("\n")},r.prototype.getPrivateKey=function(){var t=
"-----BEGIN RSA PRIVATE KEY-----\n";return t+=r.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},r.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=r.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},r.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},r.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&
t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},r.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},r}(J),rt=function(){function t(t){t=t||{},this.default_key_size=parseInt(t.default_key_size,10)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=
function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new it(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(f(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return c(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,i){try{return c(this.getKey().sign(t,e,i))}catch(t){return!1}},t.prototype.verify=
function(t,e,i){try{return this.getKey().verify(t,f(e),i)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new it,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},
t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.0.0-rc.1",t}();window.JSEncrypt=rt,t.JSEncrypt=rt,t.default=rt,Object.defineProperty(t,"__esModule",{value:!0})})(e)},255:function(t,e,i){var r;r=function(h){return function(n){var t=h,e=t.lib,i=e.WordArray,r=e.Hasher,s=t.algo,o=[],m=[];!function(){function t(t){for(var e=n.sqrt(t),i=2;i<=e;i++)if(!(t%i))return!1;return!0}function e(t){return 4294967296*
(t-(0|t))|0}for(var i=2,r=0;r<64;)t(i)&&(r<8&&(o[r]=e(n.pow(i,.5))),m[r]=e(n.pow(i,1/3)),r++),i++}();var b=[],a=s.SHA256=r.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,r=i[0],n=i[1],s=i[2],o=i[3],a=i[4],h=i[5],u=i[6],c=i[7],f=0;f<64;f++){if(f<16)b[f]=0|t[e+f];else{var l=b[f-15],p=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,d=b[f-2],g=(d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10;b[f]=p+b[f-7]+g+b[f-16]}var v=r&n^r&s^n&s,_=(r<<30|r>>>2)^(r<<
19|r>>>13)^(r<<10|r>>>22),y=c+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&u)+m[f]+b[f];c=u,u=h,h=a,a=o+y|0,o=s,s=n,n=r,r=y+(_+v)|0}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+s|0,i[3]=i[3]+o|0,i[4]=i[4]+a|0,i[5]=i[5]+h|0,i[6]=i[6]+u|0,i[7]=i[7]+c|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(64+r>>>9<<4)]=n.floor(i/4294967296),e[15+(64+r>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=
r.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA256=r._createHelper(a),t.HmacSHA256=r._createHmacHelper(a)}(Math),h.SHA256},t.exports=r(i(256))},256:function(t,e,i){var r;r=function(){var c,i,t,e,r,f,n,s,o,a,h,u,l=l||(c=Math,i=Object.create||function(){function i(){}return function(t){var e;return i.prototype=t,e=new i,i.prototype=null,e}}(),e=(t={}).lib={},r=e.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,
arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},f=e.WordArray=r.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||s).stringify(this)},concat:function(t){var e=
this.words,i=t.words,r=this.sigBytes,n=t.sigBytes;if(this.clamp(),r%4)for(var s=0;s<n;s++){var o=i[s>>>2]>>>24-s%4*8&255;e[r+s>>>2]|=o<<24-(r+s)%4*8}else for(s=0;s<n;s+=4)e[r+s>>>2]=i[s>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=c.ceil(e/4)},clone:function(){var t=r.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e,i=[],r=function(e){e=e;var i=987654321,r=4294967295;return function(){var t=
((i=36969*(65535&i)+(i>>16)&r)<<16)+(e=18E3*(65535&e)+(e>>16)&r)&r;return t/=4294967296,(t+=.5)*(.5<c.random()?1:-1)}},n=0;n<t;n+=4){var s=r(4294967296*(e||c.random()));e=987654071*s(),i.push(4294967296*s()|0)}return new f.init(i,t)}}),n=t.enc={},s=n.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,r=[],n=0;n<i;n++){var s=e[n>>>2]>>>24-n%4*8&255;r.push((s>>>4).toString(16)),r.push((15&s).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r+=2)i[r>>>3]|=parseInt(t.substr(r,
2),16)<<24-r%8*4;return new f.init(i,e/2)}},o=n.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,r=[],n=0;n<i;n++){var s=e[n>>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(s))}return r.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r++)i[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new f.init(i,e)}},a=n.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data");}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},
h=e.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=a.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,r=e.sigBytes,n=this.blockSize,s=r/(4*n),o=(s=t?c.ceil(s):c.max((0|s)-this._minBufferSize,0))*n,a=c.min(4*o,r);if(o){for(var h=0;h<o;h+=n)this._doProcessBlock(i,h);var u=i.splice(0,o);e.sigBytes-=a}return new f.init(u,a)},clone:function(){var t=r.clone.call(this);
return t._data=this._data.clone(),t},_minBufferSize:0}),e.Hasher=h.extend({cfg:r.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(i){return function(t,e){return(new i.init(e)).finalize(t)}},_createHmacHelper:function(i){return function(t,e){return(new u.HMAC.init(i,
e)).finalize(t)}}}),u=t.algo={},t);return l},t.exports=r()}},[252]);pbjs.processQueue();