text: pbjsChunk([49],{313:function(e,n,t){e.exports=t(314)},314:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=t(6),o=s(t(5)),u=s(t(8)),i=s(t(2));function s(e){return e&&e.__esModule?e:{default:e}}var l=t(0),c="PubWise Analytics: ",f="3.0",p="AVOCET",y={site:"",endpoint:"https://api.pubwise.io/api/v4/event/default/",debug:""},d=!1,g={utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""};function v(e,n){l.logInfo(c+"Event "+e+" "+d,n);var t={eventType:e,args:n,target_site:y.site,pubwiseSchema:p,debug:y.debug?1:0};t=(function(n){try{n.pw_version=f,n.pbjs_version=pbjs.version,n.debug=y.debug}catch(e){n.error_metric=1}return n})(t),e==i.default.EVENTS.AUCTION_INIT&&(t=(function(n){var e=!1;try{for(var t in g)g[t]=l.getParameterByName(t),""!=g[t]&&(e=!0,n[t]=g[t]);if(!1===e)for(var r in g){var a=localStorage.getItem("pw-"+r);0!==a.length&&(n[r]=a)}else for(var o in g)localStorage.setItem("pw-"+o,g[o])}catch(e){l.logInfo(c+"Error",e),n.error_utm=1}return n})(t)),(0,a.ajax)(y.endpoint,(function(e){return l.logInfo(c+"Result",e)}),JSON.stringify(t))}var b=r((0,o.default)({defaultUrl:"https://api.pubwise.io/api/v4/event/default/",analyticsType:"endpoint"}),{track:function(e){v(e.eventType,e.args)}});b.adapterEnableAnalytics=b.enableAnalytics,b.enableAnalytics=function(e){void 0===e.options.debug&&(e.options.debug=l.debugTurnedOn()),y=e.options,l.logInfo(c+"Enabled",y),d=!0,b.adapterEnableAnalytics(e)},u.default.registerAnalyticsAdapter({adapter:b,code:"pubwise"}),n.default=b},5:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var 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};n.default=function(e){var a,o=e.url,n=e.analyticsType,u=e.global,r=e.handler,i=[],s=0,t=!0;n===D&&(0,y.loadScript)(o,f);(n===j||w)&&f();return{track:function(e){var n=e.eventType,t=e.args;(this.getAdapterType()===D||w)&&window[u](r,n,t);this.getAdapterType()===j&&function(e){var n=e.eventType,t=e.args,r=e.callback;(0,d.ajax)(o,r,JSON.stringify({eventType:n,args:t}))}.apply(void 0,arguments)},enqueue:l,enableAnalytics:c,disableAnalytics:function(){b._each(a,(function(e,n){v.off(n,e)})),this.enableAnalytics=this._oldEnable?this._oldEnable:c},getAdapterType:function(){return n},getGlobal:function(){return u},getHandler:function(){return r},getUrl:function(){return o}};function l(e){var n=e.eventType,t=e.args,r=this;u&&window[u]&&n&&t?this.track({eventType:n,args:t}):i.push((function(){s++,r.track({eventType:n,args:t})}))}function c(n){var e,t=this,r=this;"object"!==(void 0===n?"undefined":p(n))||"object"!==p(n.options)||(void 0===n.options.sampling||Math.random()<parseFloat(n.options.sampling))?(v.getEvents().forEach((function(e){if(e){var n=e.eventType,t=e.args;n!==h&&l.call(r,{eventType:n,args:t})}})),g(e={},E,(function(e){return t.enqueue({eventType:E,args:e})})),g(e,m,(function(e){return t.enqueue({eventType:m,args:e})})),g(e,h,(function(e){return t.enqueue({eventType:h,args:e})})),g(e,A,(function(e){return t.enqueue({eventType:A,args:e})})),g(e,I,(function(e){return t.enqueue({eventType:I,args:e})})),g(e,S,(function(e){return t.enqueue({eventType:S,args:e})})),g(e,N,(function(e){return t.enqueue({eventType:N,args:e})})),g(e,_,(function(e){return t.enqueue({eventType:_,args:e})})),g(e,O,(function(e){return t.enqueue({eventType:O,args:e})})),g(e,T,(function(e){e.config="object"===(void 0===n?"undefined":p(n))&&n.options||{},t.enqueue({eventType:T,args:e})})),a=e,b._each(a,(function(e,n){v.on(n,e)}))):b.logMessage('Analytics adapter for "'+u+'" disabled by sampling');this._oldEnable=this.enableAnalytics,this.enableAnalytics=function(){return b.logMessage('Analytics adapter for "'+u+'" already enabled, unnecessary call to `enableAnalytics`.')}}function f(){if(t){for(var e=0;e<i.length;e++)i[e]();i.push=function(e){e()},t=!1}b.logMessage("event count sent to "+u+": "+s)}};var r,a=t(2),o=(r=a)&&r.__esModule?r:{default:r},y=t(11),d=t(6);function g(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var v=t(9),b=t(0),u=o.default.EVENTS,T=u.AUCTION_INIT,_=u.AUCTION_END,E=u.BID_REQUESTED,h=u.BID_TIMEOUT,m=u.BID_RESPONSE,A=u.BID_WON,I=u.BID_ADJUSTMENT,S=u.BIDDER_DONE,N=u.SET_TARGETING,O=u.AD_RENDER_FAILED,D="library",j="endpoint",w="bundle"}},[313]);