Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@freestar/pubfig-adslot-react-component

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freestar/pubfig-adslot-react-component - npm Package Compare versions

Comparing version 3.3.3 to 3.3.4

2

dist/index.js

@@ -1,1 +0,1 @@

module.exports=function(){var t={228:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},858:function(t){t.exports=function(t){if(Array.isArray(t))return t}},506:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},926:function(t){function e(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=t.apply(n,r);function u(t){e(i,o,a,u,c,"next",t)}function c(t){e(i,o,a,u,c,"throw",t)}u(void 0)}))}}},575:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},913:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}},713:function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},754:function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e},205:function(t,e,n){var r=n(489);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},884:function(t){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}}},521:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},585:function(t,e,n){var r=n(8),o=n(506);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},489:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e},38:function(t,e,n){var r=n(858),o=n(884),a=n(379),i=n(521);t.exports=function(t,e){return r(t)||o(t,e)||a(t,e)||i()}},8:function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e},379:function(t,e,n){var r=n(228);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},757:function(t,e,n){t.exports=n(666)},907:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return q}});var r=n(757),o=n.n(r),a=n(926),i=n.n(a),u=n(575),c=n.n(u),s=n(913),f=n.n(s),l=n(506),p=n.n(l),h=n(205),d=n.n(h),g=n(585),y=n.n(g),v=n(754),w=n.n(v),b=n(713),_=n.n(b),m=require("react"),j=n.n(m),A=require("prop-types"),k=n.n(A),S=n(38),x=n.n(S),O=n(307),P=n.n(O),M=n(254),E=n.n(M);function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){_()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z=new(function(){function t(){c()(this,t),this.pageKeyValuePairs={},this.mappingConfig={},this.keyValueConfigMappings=[],this.keyValueConfigMappingLocation="",this.newAdSlotQueue=[],this.adSlotsMap={},this.queue=!1}var e,n,r,a;return f()(t,[{key:"fetchKeyValueConfigMapping",value:(a=i()(o().mark((function t(e){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:if(200===(n=t.sent).status){t.next=7;break}return r="An error has occurred fetching keyValueConfigMapping: ".concat(n.status),console.log(r),t.abrupt("return",[]);case 7:return t.prev=7,t.next=10,n.json();case 10:return this.mappingConfig=t.sent,t.abrupt("return",this.mappingConfig.mappings);case 14:return t.prev=14,t.t0=t.catch(7),console.log("An error has occurred fetching keyValueConfigMapping",t.t0),t.abrupt("return",[]);case 19:case"end":return t.stop()}}),t,this,[[7,14]])}))),function(t){return a.apply(this,arguments)})},{key:"init",value:(r=i()(o().mark((function t(e,n){var r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.freestarReactCompontentLoaded=window.freestarReactCompontentLoaded||!1,this.loaded=window.freestarReactCompontentLoaded,this.logEnabled=window.location.search.indexOf("fslog")>-1,this.loaded){t.next=22;break}if(this.loaded=window.freestarReactCompontentLoaded=!0,this.keyValueConfigMappingLocation=n,r=window.location.search.indexOf("fsdebug")>-1?"/qa":"",a="https://a.pub.network/".concat(e).concat(r,"/pubfig.min.js"),window.freestar=window.freestar||{},window.freestar.hitTime=Date.now(),window.freestar.queue=window.freestar.queue||[],window.freestar.config=window.freestar.config||{},window.freestar.config.enabled_slots=window.freestar.config.enabled_slots||[],(i=document.createElement("script")).src=a,i.async=!0,this.log(0,"========== LOADING Pubfig =========="),document.body.appendChild(i),!n||0!==this.keyValueConfigMappings.length){t.next=22;break}return t.next=21,this.fetchKeyValueConfigMapping(n);case 21:this.keyValueConfigMappings=t.sent;case 22:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"log",value:function(t){var e="Pubfig React Plugin v3.3.2",n="background: #00C389; color: #fff; border-radius: 3px; padding: 3px";if(this.logEnabled||window.location.search.indexOf("fslog")>-1){for(var r,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];(r=console).info.apply(r,["%c".concat(e),n].concat(a))}}},{key:"getMappedPlacementName",value:(n=i()(o().mark((function t(e,n){var r,a,i,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=N(N({},this.pageKeyValuePairs),n),!this.keyValueConfigMappingLocation||0!==this.keyValueConfigMappings.length){t.next=5;break}return t.next=4,this.fetchKeyValueConfigMapping(this.keyValueConfigMappingLocation);case 4:this.keyValueConfigMappings=t.sent;case 5:if(!(a=this.keyValueConfigMappings.filter((function(t){var e=t.keyValuePairs||{};for(var n in e)if(e.hasOwnProperty(n)){var o=Array.isArray(r[n])?E()(r[n]):r[n],a=Array.isArray(e[n])?E()(e[n]):e[n];if(!P()(o,a))return!1}return!0}))).length){t.next=12;break}return(i=E()(a,(function(t){return t.keyValuePairs.length}))).reverse(),u=i[0],c=u.placementMap,t.abrupt("return",c[e]||e);case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"queueNewAdSlot",value:function(t,e,n,r,o,a,i,u){var c={placementName:t,slotId:e,onNewAdSlotsHook:n,channel:r,targeting:o,adUnitPath:a,slotSize:i,sizeMappings:u};this.newAdSlotQueue.push(c)}},{key:"flushQueuedNewAdSlots",value:(e=i()(o().mark((function t(){var e,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n in e=this.buildAdMap(),this.newDirectGAMAdSlots(e.directGamAds),this.newPubfigAdSlots(null,e.nonChannelAds),e.channelAdMap)this.newPubfigAdSlots(n,e.channelAdMap[n]);case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"buildAdMap",value:function(){var t=this.newAdSlotQueue;return this.newAdSlotQueue=[],t.reduce((function(t,e){return e.adUnitPath?(t.directGamAds.push(e),t):e.channel?(t.channelAdMap[e.channel]||(t.channelAdMap[e.channel]=[]),t.channelAdMap[e.channel].push({slotId:e.slotId,placementName:e.placementName,targeting:e.targeting,callback:e.onNewAdSlotsHook}),t):(t.nonChannelAds.push({slotId:e.slotId,placementName:e.placementName,targeting:e.targeting,callback:e.onNewAdSlotsHook}),t)}),{channelAdMap:{},nonChannelAds:[],directGamAds:[]})}},{key:"newPubfigAdSlots",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length&&window.freestar.queue.push(i()(o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.log(0,"Calling newAdSlots with",{channel:t,placements:n}),window.freestar.newAdSlots(n,t),n.forEach((function(t){t.callback&&t.callback(t.placementName)}));case 3:case"end":return r.stop()}}),r)}))))}},{key:"newDirectGAMAdSlots",value:function(t){var e=this;window.freestar.queue.push(i()(o().mark((function n(){var r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=[],t.forEach((function(t){var n=window.googletag.defineSlot(t.adUnitPath,t.slotSize,t.slotId).addService(window.googletag.pubads());if(t.sizeMappings){var o=t.sizeMappings.reduce((function(t,e){return t.addSize(e.viewport,e.slot)}),window.googletag.sizeMapping()).build();n.defineSizeMapping(o)}t.targeting&&Object.entries(t.targeting).forEach((function(t){var e=x()(t,2),r=e[0],o=e[1];n.setTargeting(r,o)})),window.googletag.display(n),r.push(n),e.adSlotsMap[n.getAdUnitPath()]=n})),window.googletag.pubads().refresh(r),t.forEach((function(t){t.onNewAdSlotsHook&&t.onNewAdSlotsHook(t.slotId)}));case 4:case"end":return n.stop()}}),n)}))))}},{key:"newAdSlot",value:function(t,e,n,r,o,a,i,u){var c=this;this.queue?this.queueNewAdSlot(t,e,n,r,o,a,i,u):(this.log(0,"Calling newAdSlots with",{channel:r,placements:[{slotId:e,placementName:t,targeting:o}]}),window.freestar.queue.push((function(){a?c.newDirectGAMAdSlots([{adUnitPath:a,slotId:e,slotSize:i,placementName:t,sizeMappings:u,targeting:o}]):c.newPubfigAdSlots(r,[{slotId:e,placementName:t,targeting:o}])})),n&&n(t))}},{key:"deleteAdSlot",value:function(t,e,n,r,a){var u=this;window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a){o.next=7;break}return o.next=3,u.getMappedPlacementName(e,n);case 3:e=o.sent,window.freestar.deleteAdSlots(e),o.next=8;break;case 7:window.googletag.destroySlots([u.adSlotsMap[a]]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),i)}))))}},{key:"refreshAdSlot",value:function(t,e,n,r,a){var u=this;this.log(0,"Refreshing Ad slot [".concat(e,"]")),window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a){o.next=7;break}return o.next=3,u.getMappedPlacementName(e,n);case 3:t=o.sent,window.freestar.refresh(t),o.next=8;break;case 7:window.googletag.pubads().refresh([u.adSlotsMap[a]]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),i)}))))}},{key:"setPageTargeting",value:function(t,e){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){window.googletag.pubads().setTargeting(t,e)})),this.pageKeyValuePairs[t]=e}},{key:"clearPageTargeting",value:function(t){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){t?window.googletag.pubads().clearTargeting(t):window.googletag.pubads().clearTargeting()})),t?delete this.pageKeyValuePairs[t]:this.pageKeyValuePairs={}}},{key:"trackPageview",value:function(){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){window.freestar.trackPageview()}))}},{key:"queueAdCalls",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){t.log(0,"Ad Slot queueing "+(e?"enabled":"disabled")),!1===e&&!0===t.queue&&(t.log(0,"Flushing queued Ad Slots"),t.flushQueuedNewAdSlots())})),this.queue=e}}]),t}());var C=function(t){d()(u,t);var e,n,r,a=(n=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=w()(n);if(r){var o=w()(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return y()(this,t)});function u(t){var e;c()(this,u),e=a.call(this,t),_()(p()(e),"classes",(function(){var t=e.props.classList;return t?t.join(" "):""}));var n=t.placementName,r=t.slotId||"".concat(n);return e.state={placementName:n,slotId:r},e}return f()(u,[{key:"componentDidMount",value:(e=i()(o().mark((function t(){var e,n,r,a,i,u,c,s,f,l,p,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,n=e.adUnitPath,r=e.slotSize,a=e.sizeMapping,i=e.placementName,u=e.onNewAdSlotsHook,c=e.channel,s=e.targeting,f=e.keyValueConfigMappingURL,l=e.publisher,p=this.state.slotId,t.next=4,z.init(l,f);case 4:return t.next=6,z.getMappedPlacementName(i,s);case 6:h=t.sent,this.setState({placementName:h}),z.newAdSlot(h,p,u,c,s,n,r,a);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.placementName,n=t.onDeleteAdSlotsHook,r=t.targeting,o=t.adUnitPath;z.deleteAdSlot(e,this.state.slotId,r,n,o)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.placementName,r=e.onAdRefreshHook,o=e.targeting,a=e.adUnitPath,i=e.onNewAdSlotsHook,u=e.slotSize,c=e.sizeMapping;t.adRefresh!==this.props.adRefresh&&z.refreshAdSlot(n,this.state.slotId,o,r,a),t.channel!==this.props.channel&&z.newAdSlot(n,this.state.slotId,i,t.channel,o,a,u,c)}},{key:"render",value:function(){return j().createElement("div",null,j().createElement("div",{className:this.classes(),id:this.state.slotId}))}}]),u}(m.Component);C.setPageTargeting=function(t,e){z.setPageTargeting(t,e)},C.clearPageTargeting=function(t){z.clearPageTargeting(t)},C.trackPageview=function(){z.trackPageview()},C.queueAdCalls=function(t){z.queueAdCalls(t)},C.propTypes={publisher:k().string.isRequired,placementName:k().string.isRequired,slotId:k().string,targeting:k().object,channel:k().string,classList:k().array,adRefresh:k().number,onNewAdSlotsHook:k().func,onDeleteAdSlotsHook:k().func,onAdRefreshHook:k().func,adUnitPath:k().string,slotSize:k().oneOfType([k().array,k().string]),sizeMapping:k().arrayOf(k().shape({viewport:k().array,slot:k().array})),keyValueConfigMappingURL:k().string,queue:k().bool},C.defaultProps={publisher:"",placementName:"",slotId:null,targeting:{},channel:null,classList:[],adRefresh:0,onNewAdSlotsHook:function(){},onDeleteAdSlotsHook:function(){},onAdRefreshHook:function(){},adUnitPath:null,slotSize:null,sizeMapping:null,keyValueConfigMappingURL:null};var q=C},307:function(t,e,n){t=n.nmd(t);var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",m=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[a]=A[i]=A[b]=A[u]=A[_]=A[c]=A[s]=A[f]=A[l]=A[p]=A[h]=A[g]=A[y]=A[v]=A[w]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,x=k||S||Function("return this")(),O=e&&!e.nodeType&&e,P=O&&t&&!t.nodeType&&t,M=P&&P.exports===O,E=M&&k.process,L=function(){try{return E&&E.binding&&E.binding("util")}catch(t){}}(),N=L&&L.isTypedArray;function z(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function C(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function q(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var I,T,R,V=Array.prototype,U=Function.prototype,D=Object.prototype,F=x["__core-js_shared__"],$=U.toString,G=D.hasOwnProperty,H=(I=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",B=D.toString,K=RegExp("^"+$.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=M?x.Buffer:void 0,W=x.Symbol,Y=x.Uint8Array,J=D.propertyIsEnumerable,X=V.splice,Z=W?W.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=Q?Q.isBuffer:void 0,nt=(T=Object.keys,R=Object,function(t){return T(R(t))}),rt=Pt(x,"DataView"),ot=Pt(x,"Map"),at=Pt(x,"Promise"),it=Pt(x,"Set"),ut=Pt(x,"WeakMap"),ct=Pt(Object,"create"),st=Nt(rt),ft=Nt(ot),lt=Nt(at),pt=Nt(it),ht=Nt(ut),dt=W?W.prototype:void 0,gt=dt?dt.valueOf:void 0;function yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function bt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new wt;++e<n;)this.add(t[e])}function _t(t){var e=this.__data__=new vt(t);this.size=e.size}function mt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function jt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Z&&Z in Object(t)?function(t){var e=G.call(t,Z),n=t[Z];try{t[Z]=void 0;var r=!0}catch(t){}var o=B.call(t);return r&&(e?t[Z]=n:delete t[Z]),o}(t):function(t){return B.call(t)}(t)}function At(t){return Ut(t)&&jt(t)==a}function kt(t,e,n,r,o){return t===e||(null==t||null==e||!Ut(t)&&!Ut(e)?t!=t&&e!=e:function(t,e,n,r,o,f){var d=qt(t),w=qt(e),m=d?i:Et(t),j=w?i:Et(e),A=(m=m==a?h:m)==h,k=(j=j==a?h:j)==h,S=m==j;if(S&&It(t)){if(!It(e))return!1;d=!0,A=!1}if(S&&!A)return f||(f=new _t),d||Dt(t)?St(t,e,n,r,o,f):function(t,e,n,r,o,a,i){switch(n){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b:return!(t.byteLength!=e.byteLength||!a(new Y(t),new Y(e)));case u:case c:case p:return zt(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=C;case y:var h=1&r;if(f||(f=q),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;r|=2,i.set(t,e);var w=St(f(t),f(e),r,o,a,i);return i.delete(t),w;case"[object Symbol]":if(gt)return gt.call(t)==gt.call(e)}return!1}(t,e,m,n,r,o,f);if(!(1&n)){var x=A&&G.call(t,"__wrapped__"),O=k&&G.call(e,"__wrapped__");if(x||O){var P=x?t.value():t,M=O?e.value():e;return f||(f=new _t),o(P,M,n,r,f)}}return!!S&&(f||(f=new _t),function(t,e,n,r,o,a){var i=1&n,u=xt(t),c=u.length;if(c!=xt(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:G.call(e,f)))return!1}var l=a.get(t);if(l&&a.get(e))return l==e;var p=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var d=t[f=u[s]],g=e[f];if(r)var y=i?r(g,d,f,e,t,a):r(d,g,f,t,e,a);if(!(void 0===y?d===g||o(d,g,n,r,a):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,o,f))}(t,e,n,r,kt,o))}function St(t,e,n,r,o,a){var i=1&n,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,l=!0,p=2&n?new bt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],d=e[f];if(r)var g=i?r(d,h,f,e,t,a):r(h,d,f,t,e,a);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!z(e,(function(t,e){if(i=e,!p.has(i)&&(h===t||o(h,t,n,r,a)))return p.push(e);var i}))){l=!1;break}}else if(h!==d&&!o(h,d,n,r,a)){l=!1;break}}return a.delete(t),a.delete(e),l}function xt(t){return function(t,e,n){var r=e(t);return qt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Ft,Mt)}function Ot(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Pt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Vt(t)||function(t){return!!H&&H in t}(t))&&(Tt(t)?K:m).test(Nt(t))}(n)?n:void 0}yt.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},yt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},yt.prototype.get=function(t){var e=this.__data__;if(ct){var n=e[t];return n===r?void 0:n}return G.call(e,t)?e[t]:void 0},yt.prototype.has=function(t){var e=this.__data__;return ct?void 0!==e[t]:G.call(e,t)},yt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ct&&void 0===e?r:e,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(t){var e=this.__data__,n=mt(e,t);return!(n<0||(n==e.length-1?e.pop():X.call(e,n,1),--this.size,0))},vt.prototype.get=function(t){var e=this.__data__,n=mt(e,t);return n<0?void 0:e[n][1]},vt.prototype.has=function(t){return mt(this.__data__,t)>-1},vt.prototype.set=function(t,e){var n=this.__data__,r=mt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(ot||vt),string:new yt}},wt.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Ot(this,t).get(t)},wt.prototype.has=function(t){return Ot(this,t).has(t)},wt.prototype.set=function(t,e){var n=Ot(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,r),this},bt.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.clear=function(){this.__data__=new vt,this.size=0},_t.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},_t.prototype.get=function(t){return this.__data__.get(t)},_t.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof vt){var r=n.__data__;if(!ot||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new wt(r)}return n.set(t,e),this.size=n.size,this};var Mt=tt?function(t){return null==t?[]:(t=Object(t),function(e,n){for(var r=-1,o=null==e?0:e.length,a=0,i=[];++r<o;){var u=e[r];c=u,J.call(t,c)&&(i[a++]=u)}var c;return i}(tt(t)))}:function(){return[]},Et=jt;function Lt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(rt&&Et(new rt(new ArrayBuffer(1)))!=_||ot&&Et(new ot)!=l||at&&Et(at.resolve())!=d||it&&Et(new it)!=y||ut&&Et(new ut)!=w)&&(Et=function(t){var e=jt(t),n=e==h?t.constructor:void 0,r=n?Nt(n):"";if(r)switch(r){case st:return _;case ft:return l;case lt:return d;case pt:return y;case ht:return w}return e});var Ct=At(function(){return arguments}())?At:function(t){return Ut(t)&&G.call(t,"callee")&&!J.call(t,"callee")},qt=Array.isArray,It=et||function(){return!1};function Tt(t){if(!Vt(t))return!1;var e=jt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Rt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Vt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ut(t){return null!=t&&"object"==typeof t}var Dt=N?function(t){return function(e){return t(e)}}(N):function(t){return Ut(t)&&Rt(t.length)&&!!A[jt(t)]};function Ft(t){return null!=(e=t)&&Rt(e.length)&&!Tt(e)?function(t,e){var n=qt(t),r=!n&&Ct(t),o=!n&&!r&&It(t),a=!n&&!r&&!o&&Dt(t),i=n||r||o||a,u=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=u.length;for(var s in t)!e&&!G.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Lt(s,c))||u.push(s);return u}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||D))return nt(t);var e,n,r=[];for(var o in Object(t))G.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t);var e}t.exports=function(t,e){return kt(t,e)}},254:function(t,e,n){t=n.nmd(t);var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",w="[object Symbol]",b="[object WeakMap]",_="[object ArrayBuffer]",m="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,k=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,O=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[a]=M[i]=M[_]=M[u]=M[m]=M[c]=M[s]=M[f]=M[l]=M[p]=M[h]=M[g]=M[y]=M[v]=M[b]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,N=E||L||Function("return this")(),z=e&&!e.nodeType&&e,C=z&&t&&!t.nodeType&&t,q=C&&C.exports===z&&E.process,I=function(){try{return q&&q.binding("util")}catch(t){}}(),T=I&&I.isTypedArray;function R(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function V(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function U(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function D(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function F(t){return function(e){return t(e)}}function $(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function G(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function H(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var B,K,Q,W=Array.prototype,Y=Function.prototype,J=Object.prototype,X=N["__core-js_shared__"],Z=(B=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",tt=Y.toString,et=J.hasOwnProperty,nt=J.toString,rt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=N.Symbol,at=N.Uint8Array,it=J.propertyIsEnumerable,ut=W.splice,ct=ot?ot.isConcatSpreadable:void 0,st=(K=Object.keys,Q=Object,function(t){return K(Q(t))}),ft=Math.max,lt=Gt(N,"DataView"),pt=Gt(N,"Map"),ht=Gt(N,"Promise"),dt=Gt(N,"Set"),gt=Gt(N,"WeakMap"),yt=Gt(Object,"create"),vt=te(lt),wt=te(pt),bt=te(ht),_t=te(dt),mt=te(gt),jt=ot?ot.prototype:void 0,At=jt?jt.valueOf:void 0,kt=jt?jt.toString:void 0;function St(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(t){var e=-1,n=t?t.length:0;for(this.__data__=new Ot;++e<n;)this.add(t[e])}function Mt(t){this.__data__=new xt(t)}function Et(t,e){for(var n=t.length;n--;)if(re(t[n][0],e))return n;return-1}St.prototype.clear=function(){this.__data__=yt?yt(null):{}},St.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},St.prototype.get=function(t){var e=this.__data__;if(yt){var n=e[t];return n===r?void 0:n}return et.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:et.call(e,t)},St.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?r:e,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var e=this.__data__,n=Et(e,t);return!(n<0||(n==e.length-1?e.pop():ut.call(e,n,1),0))},xt.prototype.get=function(t){var e=this.__data__,n=Et(e,t);return n<0?void 0:e[n][1]},xt.prototype.has=function(t){return Et(this.__data__,t)>-1},xt.prototype.set=function(t,e){var n=this.__data__,r=Et(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Ot.prototype.clear=function(){this.__data__={hash:new St,map:new(pt||xt),string:new St}},Ot.prototype.delete=function(t){return $t(this,t).delete(t)},Ot.prototype.get=function(t){return $t(this,t).get(t)},Ot.prototype.has=function(t){return $t(this,t).has(t)},Ot.prototype.set=function(t,e){return $t(this,t).set(t,e),this},Pt.prototype.add=Pt.prototype.push=function(t){return this.__data__.set(t,r),this},Pt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.clear=function(){this.__data__=new xt},Mt.prototype.delete=function(t){return this.__data__.delete(t)},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof xt){var r=n.__data__;if(!pt||r.length<199)return r.push([t,e]),this;n=this.__data__=new Ot(r)}return n.set(t,e),this};var Lt,Nt=(Lt=function(t,e){return t&&Ct(t,e,he)},function(t,e){if(null==t)return t;if(!ie(t))return Lt(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););return t});function zt(t,e,n,r,o){var a=-1,i=t.length;for(n||(n=Bt),o||(o=[]);++a<i;){var u=t[a];e>0&&n(u)?e>1?zt(u,e-1,n,r,o):U(o,u):r||(o[o.length]=u)}return o}var Ct=function(t,e,n){for(var r=-1,o=Object(t),a=n(t),i=a.length;i--;){var u=a[++r];if(!1===e(o[u],u,o))break}return t};function qt(t,e){for(var n=0,r=(e=Wt(e,t)?[e]:Ut(e)).length;null!=t&&n<r;)t=t[Zt(e[n++])];return n&&n==r?t:void 0}function It(t,e){return null!=t&&e in Object(t)}function Tt(t,e,n,r,o){return t===e||(null==t||null==e||!se(t)&&!fe(e)?t!=t&&e!=e:function(t,e,n,r,o,f){var d=ae(t),b=ae(e),j=i,A=i;d||(j=(j=Ht(t))==a?h:j),b||(A=(A=Ht(e))==a?h:A);var k=j==h&&!$(t),S=A==h&&!$(e),x=j==A;if(x&&!k)return f||(f=new Mt),d||pe(t)?Ft(t,e,n,r,o,f):function(t,e,n,r,o,a,i){switch(n){case m:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!r(new at(t),new at(e)));case u:case c:case p:return re(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=G;case y:var h=2&a;if(f||(f=H),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;a|=1,i.set(t,e);var b=Ft(f(t),f(e),r,o,a,i);return i.delete(t),b;case w:if(At)return At.call(t)==At.call(e)}return!1}(t,e,j,n,r,o,f);if(!(2&o)){var O=k&&et.call(t,"__wrapped__"),P=S&&et.call(e,"__wrapped__");if(O||P){var M=O?t.value():t,E=P?e.value():e;return f||(f=new Mt),n(M,E,r,o,f)}}return!!x&&(f||(f=new Mt),function(t,e,n,r,o,a){var i=2&o,u=he(t),c=u.length;if(c!=he(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:et.call(e,f)))return!1}var l=a.get(t);if(l&&a.get(e))return l==e;var p=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var d=t[f=u[s]],g=e[f];if(r)var y=i?r(g,d,f,e,t,a):r(d,g,f,t,e,a);if(!(void 0===y?d===g||n(d,g,r,o,a):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,o,f))}(t,e,Tt,n,r,o))}function Rt(t){return"function"==typeof t?t:null==t?de:"object"==typeof t?ae(t)?function(t,e){return Wt(t)&&Yt(e)?Jt(Zt(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:qt(t,e);return void 0===r?void 0:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){for(var r,o=-1,a=(e=Wt(e,t)?[e]:Ut(e)).length;++o<a;){var i=Zt(e[o]);if(!(r=null!=t&&n(t,i)))break;t=t[i]}return r||!!(a=t?t.length:0)&&ce(a)&&Kt(i,a)&&(ae(t)||oe(t))}(t,e,It)}(n,t):Tt(e,r,void 0,3)}}(t[0],t[1]):1==(n=function(t){for(var e=he(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Yt(o)]}return e}(e=t)).length&&n[0][2]?Jt(n[0][0],n[0][1]):function(t){return t===e||function(t,e,n,r){var o=n.length,a=o;if(null==t)return!a;for(t=Object(t);o--;){var i=n[o];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++o<a;){var u=(i=n[o])[0],c=t[u],s=i[1];if(i[2]){if(void 0===c&&!(u in t))return!1}else{var f,l=new Mt;if(!(void 0===f?Tt(s,c,r,3,l):f))return!1}}return!0}(t,0,n)}:Wt(r=t)?(o=Zt(r),function(t){return null==t?void 0:t[o]}):function(t){return function(e){return qt(e,t)}}(r);var e,n,r,o}function Vt(t,e,n){var r=-1;return e=V(e.length?e:[de],F(Rt)),function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,a=e.criteria,i=o.length,u=n.length;++r<i;){var c=Dt(o[r],a[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(function(t,e){var n=-1,r=ie(t)?Array(t.length):[];return Nt(t,(function(t,o,a){r[++n]=e(t)})),r}(t,(function(t,n,o){return{criteria:V(e,(function(e){return e(t)})),index:++r,value:t}})))}function Ut(t){return ae(t)?t:Xt(t)}function Dt(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=le(t),i=void 0!==e,u=null===e,c=e==e,s=le(e);if(!u&&!s&&!a&&t>e||a&&i&&c&&!u&&!s||r&&i&&c||!n&&c||!o)return 1;if(!r&&!a&&!s&&t<e||s&&n&&o&&!r&&!a||u&&n&&o||!i&&o||!c)return-1}return 0}function Ft(t,e,n,r,o,a){var i=2&o,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,l=!0,p=1&o?new Pt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],d=e[f];if(r)var g=i?r(d,h,f,e,t,a):r(h,d,f,t,e,a);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!D(e,(function(t,e){if(!p.has(e)&&(h===t||n(h,t,r,o,a)))return p.add(e)}))){l=!1;break}}else if(h!==d&&!n(h,d,r,o,a)){l=!1;break}}return a.delete(t),a.delete(e),l}function $t(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Gt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!se(t)||function(t){return!!Z&&Z in t}(t))&&(ue(t)||$(t)?rt:O).test(te(t))}(n)?n:void 0}var Ht=function(t){return nt.call(t)};function Bt(t){return ae(t)||oe(t)||!!(ct&&t&&t[ct])}function Kt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<e}function Qt(t,e,n){if(!se(n))return!1;var r=typeof e;return!!("number"==r?ie(n)&&Kt(e,n.length):"string"==r&&e in n)&&re(n[e],t)}function Wt(t,e){if(ae(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!le(t))||A.test(t)||!j.test(t)||null!=e&&t in Object(e)}function Yt(t){return t==t&&!se(t)}function Jt(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}(lt&&Ht(new lt(new ArrayBuffer(1)))!=m||pt&&Ht(new pt)!=l||ht&&Ht(ht.resolve())!=d||dt&&Ht(new dt)!=y||gt&&Ht(new gt)!=b)&&(Ht=function(t){var e=nt.call(t),n=e==h?t.constructor:void 0,r=n?te(n):void 0;if(r)switch(r){case vt:return m;case wt:return l;case bt:return d;case _t:return y;case mt:return b}return e});var Xt=ne((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(le(t))return kt?kt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return k.test(t)&&n.push(""),t.replace(S,(function(t,e,r,o){n.push(r?o.replace(x,"$1"):e||t)})),n}));function Zt(t){if("string"==typeof t||le(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function te(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ee=function(t,e){return e=ft(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=ft(n.length-e,0),a=Array(o);++r<o;)a[r]=n[e+r];r=-1;for(var i=Array(e+1);++r<e;)i[r]=n[r];return i[e]=a,R(t,this,i)}}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Qt(t,e[0],e[1])?e=[]:n>2&&Qt(e[0],e[1],e[2])&&(e=[e[0]]),Vt(t,zt(e,1),[])}));function ne(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(ne.Cache||Ot),n}function re(t,e){return t===e||t!=t&&e!=e}function oe(t){return function(t){return fe(t)&&ie(t)}(t)&&et.call(t,"callee")&&(!it.call(t,"callee")||nt.call(t)==a)}ne.Cache=Ot;var ae=Array.isArray;function ie(t){return null!=t&&ce(t.length)&&!ue(t)}function ue(t){var e=se(t)?nt.call(t):"";return e==f||"[object GeneratorFunction]"==e}function ce(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function se(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function fe(t){return!!t&&"object"==typeof t}function le(t){return"symbol"==typeof t||fe(t)&&nt.call(t)==w}var pe=T?F(T):function(t){return fe(t)&&ce(t.length)&&!!M[nt.call(t)]};function he(t){return ie(t)?function(t,e){var n=ae(t)||oe(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var a in t)!e&&!et.call(t,a)||o&&("length"==a||Kt(a,r))||n.push(a);return n}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||J))return st(t);var e,n,r=[];for(var o in Object(t))et.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t)}function de(t){return t}t.exports=ee},666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),i=new P(r||[]);return a._invoke=function(t,e,n){var r=l;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw a;return E()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=S(i,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?d:p,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(t,n,i),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",g={};function y(){}function v(){}function w(){}var b={};b[a]=function(){return this};var _=Object.getPrototypeOf,m=_&&_(_(M([])));m&&m!==n&&r.call(m,a)&&(b=m);var j=w.prototype=y.prototype=Object.create(b);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,u){var c=f(t[o],t,a);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function M(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:E}}function E(){return{value:e,done:!0}}return v.prototype=j.constructor=w,w.constructor=v,v.displayName=c(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},A(k.prototype),k.prototype[i]=function(){return this},t.AsyncIterator=k,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},A(j),c(j,u,"Generator"),j[a]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r](o,o.exports,n),o.loaded=!0,o.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},n(907)}();
module.exports=function(){var t={228:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},858:function(t){t.exports=function(t){if(Array.isArray(t))return t}},506:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},926:function(t){function e(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=t.apply(n,r);function u(t){e(i,o,a,u,c,"next",t)}function c(t){e(i,o,a,u,c,"throw",t)}u(void 0)}))}}},575:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},913:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}},713:function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},754:function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e},205:function(t,e,n){var r=n(489);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},884:function(t){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}}},521:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},585:function(t,e,n){var r=n(8),o=n(506);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},489:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e},38:function(t,e,n){var r=n(858),o=n(884),a=n(379),i=n(521);t.exports=function(t,e){return r(t)||o(t,e)||a(t,e)||i()}},8:function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e},379:function(t,e,n){var r=n(228);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},757:function(t,e,n){t.exports=n(666)},907:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return q}});var r=n(757),o=n.n(r),a=n(926),i=n.n(a),u=n(575),c=n.n(u),s=n(913),f=n.n(s),l=n(506),p=n.n(l),h=n(205),d=n.n(h),g=n(585),y=n.n(g),v=n(754),w=n.n(v),b=n(713),_=n.n(b),m=require("react"),j=n.n(m),A=require("prop-types"),k=n.n(A),S=n(38),x=n.n(S),O=n(307),P=n.n(O),M=n(254),E=n.n(M);function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){_()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z=new(function(){function t(){c()(this,t),this.pageKeyValuePairs={},this.mappingConfig={},this.keyValueConfigMappings=[],this.keyValueConfigMappingLocation="",this.newAdSlotQueue=[],this.adSlotsMap={},this.queue=!1}var e,n,r,a;return f()(t,[{key:"fetchKeyValueConfigMapping",value:(a=i()(o().mark((function t(e){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:if(200===(n=t.sent).status){t.next=7;break}return r="An error has occurred fetching keyValueConfigMapping: ".concat(n.status),console.log(r),t.abrupt("return",[]);case 7:return t.prev=7,t.next=10,n.json();case 10:return this.mappingConfig=t.sent,t.abrupt("return",this.mappingConfig.mappings);case 14:return t.prev=14,t.t0=t.catch(7),console.log("An error has occurred fetching keyValueConfigMapping",t.t0),t.abrupt("return",[]);case 19:case"end":return t.stop()}}),t,this,[[7,14]])}))),function(t){return a.apply(this,arguments)})},{key:"init",value:(r=i()(o().mark((function t(e,n){var r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.freestarReactCompontentLoaded=window.freestarReactCompontentLoaded||!1,this.loaded=window.freestarReactCompontentLoaded,this.logEnabled=window.location.search.indexOf("fslog")>-1,this.loaded){t.next=22;break}if(this.loaded=window.freestarReactCompontentLoaded=!0,this.keyValueConfigMappingLocation=n,r=window.location.search.indexOf("fsdebug")>-1?"/qa":"",a="https://a.pub.network/".concat(e).concat(r,"/pubfig.min.js"),window.freestar=window.freestar||{},window.freestar.hitTime=Date.now(),window.freestar.queue=window.freestar.queue||[],window.freestar.config=window.freestar.config||{},window.freestar.config.enabled_slots=window.freestar.config.enabled_slots||[],(i=document.createElement("script")).src=a,i.async=!0,this.log(0,"========== LOADING Pubfig =========="),document.body.appendChild(i),!n||0!==this.keyValueConfigMappings.length){t.next=22;break}return t.next=21,this.fetchKeyValueConfigMapping(n);case 21:this.keyValueConfigMappings=t.sent;case 22:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"log",value:function(t){var e="Pubfig React Plugin v3.3.3",n="background: #00C389; color: #fff; border-radius: 3px; padding: 3px";if(this.logEnabled||window.location.search.indexOf("fslog")>-1){for(var r,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];(r=console).info.apply(r,["%c".concat(e),n].concat(a))}}},{key:"getMappedPlacementName",value:(n=i()(o().mark((function t(e,n){var r,a,i,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=N(N({},this.pageKeyValuePairs),n),!this.keyValueConfigMappingLocation||0!==this.keyValueConfigMappings.length){t.next=5;break}return t.next=4,this.fetchKeyValueConfigMapping(this.keyValueConfigMappingLocation);case 4:this.keyValueConfigMappings=t.sent;case 5:if(!(a=this.keyValueConfigMappings.filter((function(t){var e=t.keyValuePairs||{};for(var n in e)if(e.hasOwnProperty(n)){var o=Array.isArray(r[n])?E()(r[n]):r[n],a=Array.isArray(e[n])?E()(e[n]):e[n];if(!P()(o,a))return!1}return!0}))).length){t.next=12;break}return(i=E()(a,(function(t){return t.keyValuePairs.length}))).reverse(),u=i[0],c=u.placementMap,t.abrupt("return",c[e]||e);case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"queueNewAdSlot",value:function(t,e,n,r,o,a,i,u){var c={placementName:t,slotId:e,onNewAdSlotsHook:n,channel:r,targeting:o,adUnitPath:a,slotSize:i,sizeMappings:u};this.newAdSlotQueue.push(c)}},{key:"flushQueuedNewAdSlots",value:(e=i()(o().mark((function t(){var e,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n in e=this.buildAdMap(),this.newDirectGAMAdSlots(e.directGamAds),this.newPubfigAdSlots(null,e.nonChannelAds),e.channelAdMap)this.newPubfigAdSlots(n,e.channelAdMap[n]);case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"buildAdMap",value:function(){var t=this.newAdSlotQueue;return this.newAdSlotQueue=[],t.reduce((function(t,e){return e.adUnitPath?(t.directGamAds.push(e),t):e.channel?(t.channelAdMap[e.channel]||(t.channelAdMap[e.channel]=[]),t.channelAdMap[e.channel].push({slotId:e.slotId,placementName:e.placementName,targeting:e.targeting,callback:e.onNewAdSlotsHook}),t):(t.nonChannelAds.push({slotId:e.slotId,placementName:e.placementName,targeting:e.targeting,callback:e.onNewAdSlotsHook}),t)}),{channelAdMap:{},nonChannelAds:[],directGamAds:[]})}},{key:"newPubfigAdSlots",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length&&window.freestar.queue.push(i()(o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.log(0,"Calling newAdSlots with",{channel:t,placements:n}),window.freestar.newAdSlots(n,t),n.forEach((function(t){t.callback&&t.callback(t.placementName)}));case 3:case"end":return r.stop()}}),r)}))))}},{key:"newDirectGAMAdSlots",value:function(t){var e=this;window.freestar.queue.push(i()(o().mark((function n(){var r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=[],t.forEach((function(t){var n=window.googletag.defineSlot(t.adUnitPath,t.slotSize,t.slotId).addService(window.googletag.pubads());if(t.sizeMappings){var o=t.sizeMappings.reduce((function(t,e){return t.addSize(e.viewport,e.slot)}),window.googletag.sizeMapping()).build();n.defineSizeMapping(o)}t.targeting&&Object.entries(t.targeting).forEach((function(t){var e=x()(t,2),r=e[0],o=e[1];n.setTargeting(r,o)})),window.googletag.display(n),r.push(n),e.adSlotsMap[n.getAdUnitPath()]=n})),window.googletag.pubads().refresh(r),t.forEach((function(t){t.onNewAdSlotsHook&&t.onNewAdSlotsHook(t.slotId)}));case 4:case"end":return n.stop()}}),n)}))))}},{key:"newAdSlot",value:function(t,e,n,r,o,a,i,u){var c=this;this.queue?this.queueNewAdSlot(t,e,n,r,o,a,i,u):(this.log(0,"Calling newAdSlots with",{channel:r,placements:[{slotId:e,placementName:t,targeting:o}]}),window.freestar.queue.push((function(){a?c.newDirectGAMAdSlots([{adUnitPath:a,slotId:e,slotSize:i,placementName:t,sizeMappings:u,targeting:o}]):c.newPubfigAdSlots(r,[{slotId:e,placementName:t,targeting:o}])})),n&&n(t))}},{key:"deleteAdSlot",value:function(t,e,n,r,a){var u=this;window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a){o.next=7;break}return o.next=3,u.getMappedPlacementName(e,n);case 3:e=o.sent,window.freestar.deleteAdSlots(e),o.next=8;break;case 7:window.googletag.destroySlots([u.adSlotsMap[a]]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),i)}))))}},{key:"refreshAdSlot",value:function(t,e,n,r,a){var u=this;this.log(0,"Refreshing Ad slot [".concat(e,"]")),window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a){o.next=7;break}return o.next=3,u.getMappedPlacementName(e,n);case 3:t=o.sent,window.freestar.refresh(t),o.next=8;break;case 7:window.googletag.pubads().refresh([u.adSlotsMap[a]]);case 8:r&&r(t);case 9:case"end":return o.stop()}}),i)}))))}},{key:"setPageTargeting",value:function(t,e){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){window.googletag.pubads().setTargeting(t,e)})),this.pageKeyValuePairs[t]=e}},{key:"clearPageTargeting",value:function(t){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){t?window.googletag.pubads().clearTargeting(t):window.googletag.pubads().clearTargeting()})),t?delete this.pageKeyValuePairs[t]:this.pageKeyValuePairs={}}},{key:"trackPageview",value:function(){window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){window.freestar.trackPageview()}))}},{key:"queueAdCalls",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.log(0,"Ad Slot queueing "+(e?"enabled":"disabled")),window.freestar=window.freestar||{},window.freestar.queue=window.freestar.queue||[],window.freestar.queue.push((function(){!1===e&&!0===t.queue&&(t.log(0,"Flushing queued Ad Slots"),t.flushQueuedNewAdSlots())})),this.queue=e}}]),t}());var C=function(t){d()(u,t);var e,n,r,a=(n=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=w()(n);if(r){var o=w()(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return y()(this,t)});function u(t){var e;c()(this,u),e=a.call(this,t),_()(p()(e),"classes",(function(){var t=e.props.classList;return t?t.join(" "):""}));var n=t.placementName,r=t.slotId||"".concat(n);return e.state={placementName:n,slotId:r},e}return f()(u,[{key:"componentDidMount",value:(e=i()(o().mark((function t(){var e,n,r,a,i,u,c,s,f,l,p,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,n=e.adUnitPath,r=e.slotSize,a=e.sizeMapping,i=e.placementName,u=e.onNewAdSlotsHook,c=e.channel,s=e.targeting,f=e.keyValueConfigMappingURL,l=e.publisher,p=this.state.slotId,t.next=4,z.init(l,f);case 4:return t.next=6,z.getMappedPlacementName(i,s);case 6:h=t.sent,this.setState({placementName:h}),z.newAdSlot(h,p,u,c,s,n,r,a);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.placementName,n=t.onDeleteAdSlotsHook,r=t.targeting,o=t.adUnitPath;z.deleteAdSlot(e,this.state.slotId,r,n,o)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.placementName,r=e.onAdRefreshHook,o=e.targeting,a=e.adUnitPath,i=e.onNewAdSlotsHook,u=e.slotSize,c=e.sizeMapping;t.adRefresh!==this.props.adRefresh&&z.refreshAdSlot(n,this.state.slotId,o,r,a),t.channel!==this.props.channel&&z.newAdSlot(n,this.state.slotId,i,t.channel,o,a,u,c)}},{key:"render",value:function(){return j().createElement("div",null,j().createElement("div",{className:this.classes(),id:this.state.slotId}))}}]),u}(m.Component);C.setPageTargeting=function(t,e){z.setPageTargeting(t,e)},C.clearPageTargeting=function(t){z.clearPageTargeting(t)},C.trackPageview=function(){z.trackPageview()},C.queueAdCalls=function(t){z.queueAdCalls(t)},C.propTypes={publisher:k().string.isRequired,placementName:k().string.isRequired,slotId:k().string,targeting:k().object,channel:k().string,classList:k().array,adRefresh:k().number,onNewAdSlotsHook:k().func,onDeleteAdSlotsHook:k().func,onAdRefreshHook:k().func,adUnitPath:k().string,slotSize:k().oneOfType([k().array,k().string]),sizeMapping:k().arrayOf(k().shape({viewport:k().array,slot:k().array})),keyValueConfigMappingURL:k().string,queue:k().bool},C.defaultProps={publisher:"",placementName:"",slotId:null,targeting:{},channel:null,classList:[],adRefresh:0,onNewAdSlotsHook:function(){},onDeleteAdSlotsHook:function(){},onAdRefreshHook:function(){},adUnitPath:null,slotSize:null,sizeMapping:null,keyValueConfigMappingURL:null};var q=C},307:function(t,e,n){t=n.nmd(t);var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",m=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[a]=A[i]=A[b]=A[u]=A[_]=A[c]=A[s]=A[f]=A[l]=A[p]=A[h]=A[g]=A[y]=A[v]=A[w]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,x=k||S||Function("return this")(),O=e&&!e.nodeType&&e,P=O&&t&&!t.nodeType&&t,M=P&&P.exports===O,E=M&&k.process,L=function(){try{return E&&E.binding&&E.binding("util")}catch(t){}}(),N=L&&L.isTypedArray;function z(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function C(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function q(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var I,T,R,V=Array.prototype,U=Function.prototype,D=Object.prototype,F=x["__core-js_shared__"],$=U.toString,G=D.hasOwnProperty,H=(I=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",B=D.toString,K=RegExp("^"+$.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=M?x.Buffer:void 0,W=x.Symbol,Y=x.Uint8Array,J=D.propertyIsEnumerable,X=V.splice,Z=W?W.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=Q?Q.isBuffer:void 0,nt=(T=Object.keys,R=Object,function(t){return T(R(t))}),rt=Pt(x,"DataView"),ot=Pt(x,"Map"),at=Pt(x,"Promise"),it=Pt(x,"Set"),ut=Pt(x,"WeakMap"),ct=Pt(Object,"create"),st=Nt(rt),ft=Nt(ot),lt=Nt(at),pt=Nt(it),ht=Nt(ut),dt=W?W.prototype:void 0,gt=dt?dt.valueOf:void 0;function yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function bt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new wt;++e<n;)this.add(t[e])}function _t(t){var e=this.__data__=new vt(t);this.size=e.size}function mt(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function jt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Z&&Z in Object(t)?function(t){var e=G.call(t,Z),n=t[Z];try{t[Z]=void 0;var r=!0}catch(t){}var o=B.call(t);return r&&(e?t[Z]=n:delete t[Z]),o}(t):function(t){return B.call(t)}(t)}function At(t){return Ut(t)&&jt(t)==a}function kt(t,e,n,r,o){return t===e||(null==t||null==e||!Ut(t)&&!Ut(e)?t!=t&&e!=e:function(t,e,n,r,o,f){var d=qt(t),w=qt(e),m=d?i:Et(t),j=w?i:Et(e),A=(m=m==a?h:m)==h,k=(j=j==a?h:j)==h,S=m==j;if(S&&It(t)){if(!It(e))return!1;d=!0,A=!1}if(S&&!A)return f||(f=new _t),d||Dt(t)?St(t,e,n,r,o,f):function(t,e,n,r,o,a,i){switch(n){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b:return!(t.byteLength!=e.byteLength||!a(new Y(t),new Y(e)));case u:case c:case p:return zt(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=C;case y:var h=1&r;if(f||(f=q),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;r|=2,i.set(t,e);var w=St(f(t),f(e),r,o,a,i);return i.delete(t),w;case"[object Symbol]":if(gt)return gt.call(t)==gt.call(e)}return!1}(t,e,m,n,r,o,f);if(!(1&n)){var x=A&&G.call(t,"__wrapped__"),O=k&&G.call(e,"__wrapped__");if(x||O){var P=x?t.value():t,M=O?e.value():e;return f||(f=new _t),o(P,M,n,r,f)}}return!!S&&(f||(f=new _t),function(t,e,n,r,o,a){var i=1&n,u=xt(t),c=u.length;if(c!=xt(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:G.call(e,f)))return!1}var l=a.get(t);if(l&&a.get(e))return l==e;var p=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var d=t[f=u[s]],g=e[f];if(r)var y=i?r(g,d,f,e,t,a):r(d,g,f,t,e,a);if(!(void 0===y?d===g||o(d,g,n,r,a):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,o,f))}(t,e,n,r,kt,o))}function St(t,e,n,r,o,a){var i=1&n,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,l=!0,p=2&n?new bt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],d=e[f];if(r)var g=i?r(d,h,f,e,t,a):r(h,d,f,t,e,a);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!z(e,(function(t,e){if(i=e,!p.has(i)&&(h===t||o(h,t,n,r,a)))return p.push(e);var i}))){l=!1;break}}else if(h!==d&&!o(h,d,n,r,a)){l=!1;break}}return a.delete(t),a.delete(e),l}function xt(t){return function(t,e,n){var r=e(t);return qt(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Ft,Mt)}function Ot(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Pt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Vt(t)||function(t){return!!H&&H in t}(t))&&(Tt(t)?K:m).test(Nt(t))}(n)?n:void 0}yt.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},yt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},yt.prototype.get=function(t){var e=this.__data__;if(ct){var n=e[t];return n===r?void 0:n}return G.call(e,t)?e[t]:void 0},yt.prototype.has=function(t){var e=this.__data__;return ct?void 0!==e[t]:G.call(e,t)},yt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ct&&void 0===e?r:e,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(t){var e=this.__data__,n=mt(e,t);return!(n<0||(n==e.length-1?e.pop():X.call(e,n,1),--this.size,0))},vt.prototype.get=function(t){var e=this.__data__,n=mt(e,t);return n<0?void 0:e[n][1]},vt.prototype.has=function(t){return mt(this.__data__,t)>-1},vt.prototype.set=function(t,e){var n=this.__data__,r=mt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(ot||vt),string:new yt}},wt.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Ot(this,t).get(t)},wt.prototype.has=function(t){return Ot(this,t).has(t)},wt.prototype.set=function(t,e){var n=Ot(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,r),this},bt.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.clear=function(){this.__data__=new vt,this.size=0},_t.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},_t.prototype.get=function(t){return this.__data__.get(t)},_t.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof vt){var r=n.__data__;if(!ot||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new wt(r)}return n.set(t,e),this.size=n.size,this};var Mt=tt?function(t){return null==t?[]:(t=Object(t),function(e,n){for(var r=-1,o=null==e?0:e.length,a=0,i=[];++r<o;){var u=e[r];c=u,J.call(t,c)&&(i[a++]=u)}var c;return i}(tt(t)))}:function(){return[]},Et=jt;function Lt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(rt&&Et(new rt(new ArrayBuffer(1)))!=_||ot&&Et(new ot)!=l||at&&Et(at.resolve())!=d||it&&Et(new it)!=y||ut&&Et(new ut)!=w)&&(Et=function(t){var e=jt(t),n=e==h?t.constructor:void 0,r=n?Nt(n):"";if(r)switch(r){case st:return _;case ft:return l;case lt:return d;case pt:return y;case ht:return w}return e});var Ct=At(function(){return arguments}())?At:function(t){return Ut(t)&&G.call(t,"callee")&&!J.call(t,"callee")},qt=Array.isArray,It=et||function(){return!1};function Tt(t){if(!Vt(t))return!1;var e=jt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Rt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Vt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ut(t){return null!=t&&"object"==typeof t}var Dt=N?function(t){return function(e){return t(e)}}(N):function(t){return Ut(t)&&Rt(t.length)&&!!A[jt(t)]};function Ft(t){return null!=(e=t)&&Rt(e.length)&&!Tt(e)?function(t,e){var n=qt(t),r=!n&&Ct(t),o=!n&&!r&&It(t),a=!n&&!r&&!o&&Dt(t),i=n||r||o||a,u=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=u.length;for(var s in t)!e&&!G.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Lt(s,c))||u.push(s);return u}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||D))return nt(t);var e,n,r=[];for(var o in Object(t))G.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t);var e}t.exports=function(t,e){return kt(t,e)}},254:function(t,e,n){t=n.nmd(t);var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",u="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",l="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",g="[object RegExp]",y="[object Set]",v="[object String]",w="[object Symbol]",b="[object WeakMap]",_="[object ArrayBuffer]",m="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,k=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,O=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[a]=M[i]=M[_]=M[u]=M[m]=M[c]=M[s]=M[f]=M[l]=M[p]=M[h]=M[g]=M[y]=M[v]=M[b]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,N=E||L||Function("return this")(),z=e&&!e.nodeType&&e,C=z&&t&&!t.nodeType&&t,q=C&&C.exports===z&&E.process,I=function(){try{return q&&q.binding("util")}catch(t){}}(),T=I&&I.isTypedArray;function R(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function V(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function U(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function D(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function F(t){return function(e){return t(e)}}function $(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function G(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function H(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var B,K,Q,W=Array.prototype,Y=Function.prototype,J=Object.prototype,X=N["__core-js_shared__"],Z=(B=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",tt=Y.toString,et=J.hasOwnProperty,nt=J.toString,rt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=N.Symbol,at=N.Uint8Array,it=J.propertyIsEnumerable,ut=W.splice,ct=ot?ot.isConcatSpreadable:void 0,st=(K=Object.keys,Q=Object,function(t){return K(Q(t))}),ft=Math.max,lt=Gt(N,"DataView"),pt=Gt(N,"Map"),ht=Gt(N,"Promise"),dt=Gt(N,"Set"),gt=Gt(N,"WeakMap"),yt=Gt(Object,"create"),vt=te(lt),wt=te(pt),bt=te(ht),_t=te(dt),mt=te(gt),jt=ot?ot.prototype:void 0,At=jt?jt.valueOf:void 0,kt=jt?jt.toString:void 0;function St(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(t){var e=-1,n=t?t.length:0;for(this.__data__=new Ot;++e<n;)this.add(t[e])}function Mt(t){this.__data__=new xt(t)}function Et(t,e){for(var n=t.length;n--;)if(re(t[n][0],e))return n;return-1}St.prototype.clear=function(){this.__data__=yt?yt(null):{}},St.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},St.prototype.get=function(t){var e=this.__data__;if(yt){var n=e[t];return n===r?void 0:n}return et.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:et.call(e,t)},St.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?r:e,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var e=this.__data__,n=Et(e,t);return!(n<0||(n==e.length-1?e.pop():ut.call(e,n,1),0))},xt.prototype.get=function(t){var e=this.__data__,n=Et(e,t);return n<0?void 0:e[n][1]},xt.prototype.has=function(t){return Et(this.__data__,t)>-1},xt.prototype.set=function(t,e){var n=this.__data__,r=Et(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Ot.prototype.clear=function(){this.__data__={hash:new St,map:new(pt||xt),string:new St}},Ot.prototype.delete=function(t){return $t(this,t).delete(t)},Ot.prototype.get=function(t){return $t(this,t).get(t)},Ot.prototype.has=function(t){return $t(this,t).has(t)},Ot.prototype.set=function(t,e){return $t(this,t).set(t,e),this},Pt.prototype.add=Pt.prototype.push=function(t){return this.__data__.set(t,r),this},Pt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.clear=function(){this.__data__=new xt},Mt.prototype.delete=function(t){return this.__data__.delete(t)},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof xt){var r=n.__data__;if(!pt||r.length<199)return r.push([t,e]),this;n=this.__data__=new Ot(r)}return n.set(t,e),this};var Lt,Nt=(Lt=function(t,e){return t&&Ct(t,e,he)},function(t,e){if(null==t)return t;if(!ie(t))return Lt(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););return t});function zt(t,e,n,r,o){var a=-1,i=t.length;for(n||(n=Bt),o||(o=[]);++a<i;){var u=t[a];e>0&&n(u)?e>1?zt(u,e-1,n,r,o):U(o,u):r||(o[o.length]=u)}return o}var Ct=function(t,e,n){for(var r=-1,o=Object(t),a=n(t),i=a.length;i--;){var u=a[++r];if(!1===e(o[u],u,o))break}return t};function qt(t,e){for(var n=0,r=(e=Wt(e,t)?[e]:Ut(e)).length;null!=t&&n<r;)t=t[Zt(e[n++])];return n&&n==r?t:void 0}function It(t,e){return null!=t&&e in Object(t)}function Tt(t,e,n,r,o){return t===e||(null==t||null==e||!se(t)&&!fe(e)?t!=t&&e!=e:function(t,e,n,r,o,f){var d=ae(t),b=ae(e),j=i,A=i;d||(j=(j=Ht(t))==a?h:j),b||(A=(A=Ht(e))==a?h:A);var k=j==h&&!$(t),S=A==h&&!$(e),x=j==A;if(x&&!k)return f||(f=new Mt),d||pe(t)?Ft(t,e,n,r,o,f):function(t,e,n,r,o,a,i){switch(n){case m:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!r(new at(t),new at(e)));case u:case c:case p:return re(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=G;case y:var h=2&a;if(f||(f=H),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;a|=1,i.set(t,e);var b=Ft(f(t),f(e),r,o,a,i);return i.delete(t),b;case w:if(At)return At.call(t)==At.call(e)}return!1}(t,e,j,n,r,o,f);if(!(2&o)){var O=k&&et.call(t,"__wrapped__"),P=S&&et.call(e,"__wrapped__");if(O||P){var M=O?t.value():t,E=P?e.value():e;return f||(f=new Mt),n(M,E,r,o,f)}}return!!x&&(f||(f=new Mt),function(t,e,n,r,o,a){var i=2&o,u=he(t),c=u.length;if(c!=he(e).length&&!i)return!1;for(var s=c;s--;){var f=u[s];if(!(i?f in e:et.call(e,f)))return!1}var l=a.get(t);if(l&&a.get(e))return l==e;var p=!0;a.set(t,e),a.set(e,t);for(var h=i;++s<c;){var d=t[f=u[s]],g=e[f];if(r)var y=i?r(g,d,f,e,t,a):r(d,g,f,t,e,a);if(!(void 0===y?d===g||n(d,g,r,o,a):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,o,f))}(t,e,Tt,n,r,o))}function Rt(t){return"function"==typeof t?t:null==t?de:"object"==typeof t?ae(t)?function(t,e){return Wt(t)&&Yt(e)?Jt(Zt(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:qt(t,e);return void 0===r?void 0:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){for(var r,o=-1,a=(e=Wt(e,t)?[e]:Ut(e)).length;++o<a;){var i=Zt(e[o]);if(!(r=null!=t&&n(t,i)))break;t=t[i]}return r||!!(a=t?t.length:0)&&ce(a)&&Kt(i,a)&&(ae(t)||oe(t))}(t,e,It)}(n,t):Tt(e,r,void 0,3)}}(t[0],t[1]):1==(n=function(t){for(var e=he(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Yt(o)]}return e}(e=t)).length&&n[0][2]?Jt(n[0][0],n[0][1]):function(t){return t===e||function(t,e,n,r){var o=n.length,a=o;if(null==t)return!a;for(t=Object(t);o--;){var i=n[o];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++o<a;){var u=(i=n[o])[0],c=t[u],s=i[1];if(i[2]){if(void 0===c&&!(u in t))return!1}else{var f,l=new Mt;if(!(void 0===f?Tt(s,c,r,3,l):f))return!1}}return!0}(t,0,n)}:Wt(r=t)?(o=Zt(r),function(t){return null==t?void 0:t[o]}):function(t){return function(e){return qt(e,t)}}(r);var e,n,r,o}function Vt(t,e,n){var r=-1;return e=V(e.length?e:[de],F(Rt)),function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,a=e.criteria,i=o.length,u=n.length;++r<i;){var c=Dt(o[r],a[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(function(t,e){var n=-1,r=ie(t)?Array(t.length):[];return Nt(t,(function(t,o,a){r[++n]=e(t)})),r}(t,(function(t,n,o){return{criteria:V(e,(function(e){return e(t)})),index:++r,value:t}})))}function Ut(t){return ae(t)?t:Xt(t)}function Dt(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=le(t),i=void 0!==e,u=null===e,c=e==e,s=le(e);if(!u&&!s&&!a&&t>e||a&&i&&c&&!u&&!s||r&&i&&c||!n&&c||!o)return 1;if(!r&&!a&&!s&&t<e||s&&n&&o&&!r&&!a||u&&n&&o||!i&&o||!c)return-1}return 0}function Ft(t,e,n,r,o,a){var i=2&o,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var f=-1,l=!0,p=1&o?new Pt:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],d=e[f];if(r)var g=i?r(d,h,f,e,t,a):r(h,d,f,t,e,a);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!D(e,(function(t,e){if(!p.has(e)&&(h===t||n(h,t,r,o,a)))return p.add(e)}))){l=!1;break}}else if(h!==d&&!n(h,d,r,o,a)){l=!1;break}}return a.delete(t),a.delete(e),l}function $t(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Gt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!se(t)||function(t){return!!Z&&Z in t}(t))&&(ue(t)||$(t)?rt:O).test(te(t))}(n)?n:void 0}var Ht=function(t){return nt.call(t)};function Bt(t){return ae(t)||oe(t)||!!(ct&&t&&t[ct])}function Kt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<e}function Qt(t,e,n){if(!se(n))return!1;var r=typeof e;return!!("number"==r?ie(n)&&Kt(e,n.length):"string"==r&&e in n)&&re(n[e],t)}function Wt(t,e){if(ae(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!le(t))||A.test(t)||!j.test(t)||null!=e&&t in Object(e)}function Yt(t){return t==t&&!se(t)}function Jt(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}(lt&&Ht(new lt(new ArrayBuffer(1)))!=m||pt&&Ht(new pt)!=l||ht&&Ht(ht.resolve())!=d||dt&&Ht(new dt)!=y||gt&&Ht(new gt)!=b)&&(Ht=function(t){var e=nt.call(t),n=e==h?t.constructor:void 0,r=n?te(n):void 0;if(r)switch(r){case vt:return m;case wt:return l;case bt:return d;case _t:return y;case mt:return b}return e});var Xt=ne((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(le(t))return kt?kt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return k.test(t)&&n.push(""),t.replace(S,(function(t,e,r,o){n.push(r?o.replace(x,"$1"):e||t)})),n}));function Zt(t){if("string"==typeof t||le(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function te(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ee=function(t,e){return e=ft(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=ft(n.length-e,0),a=Array(o);++r<o;)a[r]=n[e+r];r=-1;for(var i=Array(e+1);++r<e;)i[r]=n[r];return i[e]=a,R(t,this,i)}}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Qt(t,e[0],e[1])?e=[]:n>2&&Qt(e[0],e[1],e[2])&&(e=[e[0]]),Vt(t,zt(e,1),[])}));function ne(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(ne.Cache||Ot),n}function re(t,e){return t===e||t!=t&&e!=e}function oe(t){return function(t){return fe(t)&&ie(t)}(t)&&et.call(t,"callee")&&(!it.call(t,"callee")||nt.call(t)==a)}ne.Cache=Ot;var ae=Array.isArray;function ie(t){return null!=t&&ce(t.length)&&!ue(t)}function ue(t){var e=se(t)?nt.call(t):"";return e==f||"[object GeneratorFunction]"==e}function ce(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function se(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function fe(t){return!!t&&"object"==typeof t}function le(t){return"symbol"==typeof t||fe(t)&&nt.call(t)==w}var pe=T?F(T):function(t){return fe(t)&&ce(t.length)&&!!M[nt.call(t)]};function he(t){return ie(t)?function(t,e){var n=ae(t)||oe(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var a in t)!e&&!et.call(t,a)||o&&("length"==a||Kt(a,r))||n.push(a);return n}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||J))return st(t);var e,n,r=[];for(var o in Object(t))et.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t)}function de(t){return t}t.exports=ee},666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),i=new P(r||[]);return a._invoke=function(t,e,n){var r=l;return function(o,a){if(r===h)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw a;return E()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=S(i,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?d:p,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(t,n,i),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",g={};function y(){}function v(){}function w(){}var b={};b[a]=function(){return this};var _=Object.getPrototypeOf,m=_&&_(_(M([])));m&&m!==n&&r.call(m,a)&&(b=m);var j=w.prototype=y.prototype=Object.create(b);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,u){var c=f(t[o],t,a);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,i,u)}),(function(t){n("throw",t,i,u)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function M(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:E}}function E(){return{value:e,done:!0}}return v.prototype=j.constructor=w,w.constructor=v,v.displayName=c(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},A(k.prototype),k.prototype[i]=function(){return this},t.AsyncIterator=k,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new k(s(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},A(j),c(j,u,"Generator"),j[a]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=M,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r](o,o.exports,n),o.loaded=!0,o.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},n(907)}();

@@ -9,3 +9,3 @@ {

],
"version": "3.3.3",
"version": "3.3.4",
"main": "dist/index.js",

@@ -12,0 +12,0 @@ "private": false,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc