@freestar/pubfig-adslot-react-component
Advanced tools
Comparing version 3.0.3 to 3.1.0
@@ -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 T}});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),b=n.n(v),w=n(713),_=n.n(w),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 C=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.0.3-0",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){var u={placementName:t,onNewAdSlotsHook:e,channel:n,targeting:r,adUnitPath:o,slotSize:a,sizeMappings:i};this.newAdSlotQueue.push(u)}},{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.placementName,placementName:e.placementName,targeting:e.targeting,callback:e.onNewAdSlotsHook}),t):(t.nonChannelAds.push({slotId:e.placementName,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.placementName).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.placementName)}));case 4:case"end":return n.stop()}}),n)}))))}},{key:"newAdSlot",value:function(t,e,n,r,o,a,i){var u=this;this.queue?this.queueNewAdSlot(t,e,n,r,o,a,i):(this.log(0,"Calling newAdSlots with",{channel:n,placements:[{slotId:t,placementName:t,targeting:r}]}),window.freestar.queue.push((function(){o?u.newDirectGAMAdSlots([{adUnitPath:o,slotSize:a,placementName:t,sizeMappings:i,targeting:r}]):u.newPubfigAdSlots(n,[{slotId:t,placementName:t,targeting:r}])})))}},{key:"deleteAdSlot",value:function(t,e,n,r){var a=this;window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r){o.next=7;break}return o.next=3,a.getMappedPlacementName(t,e);case 3:t=o.sent,window.freestar.deleteAdSlots({placementName:t}),o.next=8;break;case 7:window.googletag.destroySlots([a.adSlotsMap[r]]);case 8:n&&n(t);case 9:case"end":return o.stop()}}),i)}))))}},{key:"refreshAdSlot",value:function(t,e,n,r){var a=this;this.log(0,"Refreshing Ad slot [".concat(t,"]")),window.freestar.queue.push(i()(o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r){o.next=7;break}return o.next=3,a.getMappedPlacementName(t,e);case 3:t=o.sent,window.freestar.freestarReloadAdSlot(t),o.next=8;break;case 7:window.googletag.pubads().refresh([a.adSlotsMap[r]]);case 8:n&&n(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=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.log(0,"Ad Slot queueing "+(t?"enabled":"disabled")),0==t&&1==this.queue&&(this.log(0,"Flushing queued Ad Slots"),this.flushQueuedNewAdSlots()),this.queue=t}}]),t}());var z=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=b()(n);if(r){var o=b()(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);var n=t.placementName;return e=a.call(this,t),_()(p()(e),"classes",(function(){var t=e.props.classList;return t?t.join(" "):""})),e.state={placementName:n},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.placementName,r=e.onNewAdSlotsHook,a=e.channel,i=e.targeting,u=e.keyValueConfigMappingURL,c=e.publisher,s=this.props,f=s.adUnitPath,l=s.slotSize,p=s.sizeMapping,t.next=4,C.init(c,u);case 4:return t.next=6,C.getMappedPlacementName(n,i);case 6:h=t.sent,this.setState({placementName:h}),C.newAdSlot(h,r,a,i,f,l,p);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;C.deleteAdSlot(e,r,n,o)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.placementName,r=e.onAdRefreshHook,o=e.targeting,a=e.adUnitPath;t.adRefresh!==this.props.adRefresh&&C.refreshAdSlot(n,o,r,a)}},{key:"render",value:function(){var t=this.props;return t.placementName,t.targeting,t.placementMappingLocation,j().createElement("div",null,j().createElement("div",{className:this.classes(),id:this.state.placementName}))}}]),u}(m.Component);z.setPageTargeting=function(t,e){C.setPageTargeting(t,e)},z.clearPageTargeting=function(t){C.clearPageTargeting(t)},z.trackPageview=function(){C.trackPageview()},z.queueAdCalls=function(t){C.queueAdCalls(t)},z.propTypes={publisher:k().string.isRequired,placementName:k().string.isRequired,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},z.defaultProps={publisher:"",placementName:"",targeting:{},channel:null,classList:[],adRefresh:0,onNewAdSlotsHook:function(){},onDeleteAdSlotsHook:function(){},onAdRefreshHook:function(){},adUnitPath:null,slotSize:null,sizeMapping:null,keyValueConfigMappingURL:null};var T=z},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]",b="[object WeakMap]",w="[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[w]=A[u]=A[_]=A[c]=A[s]=A[f]=A[l]=A[p]=A[h]=A[g]=A[y]=A[v]=A[b]=!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 C(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 z(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function T(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var R,q,V,U=Array.prototype,D=Function.prototype,F=Object.prototype,I=x["__core-js_shared__"],$=D.toString,G=F.hasOwnProperty,H=(R=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",B=F.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=F.propertyIsEnumerable,X=U.splice,Z=W?W.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=Q?Q.isBuffer:void 0,nt=(q=Object.keys,V=Object,function(t){return q(V(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 bt(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.__data__=new bt;++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(Ct(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 Dt(t)&&jt(t)==a}function kt(t,e,n,r,o){return t===e||(null==t||null==e||!Dt(t)&&!Dt(e)?t!=t&&e!=e:function(t,e,n,r,o,f){var d=Tt(t),b=Tt(e),m=d?i:Et(t),j=b?i:Et(e),A=(m=m==a?h:m)==h,k=(j=j==a?h:j)==h,S=m==j;if(S&&Rt(t)){if(!Rt(e))return!1;d=!0,A=!1}if(S&&!A)return f||(f=new _t),d||Ft(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 w:return!(t.byteLength!=e.byteLength||!a(new Y(t),new Y(e)));case u:case c:case p:return Ct(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=z;case y:var h=1&r;if(f||(f=T),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;r|=2,i.set(t,e);var b=St(f(t),f(e),r,o,a,i);return i.delete(t),b;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,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(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 wt: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(!C(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 Tt(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,It,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!(!Ut(t)||function(t){return!!H&&H in t}(t))&&(qt(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},bt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(ot||vt),string:new yt}},bt.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},bt.prototype.get=function(t){return Ot(this,t).get(t)},bt.prototype.has=function(t){return Ot(this,t).has(t)},bt.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},wt.prototype.add=wt.prototype.push=function(t){return this.__data__.set(t,r),this},wt.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 bt(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 Ct(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)!=b)&&(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 b}return e});var zt=At(function(){return arguments}())?At:function(t){return Dt(t)&&G.call(t,"callee")&&!J.call(t,"callee")},Tt=Array.isArray,Rt=et||function(){return!1};function qt(t){if(!Ut(t))return!1;var e=jt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Dt(t){return null!=t&&"object"==typeof t}var Ft=N?function(t){return function(e){return t(e)}}(N):function(t){return Dt(t)&&Vt(t.length)&&!!A[jt(t)]};function It(t){return null!=(e=t)&&Vt(e.length)&&!qt(e)?function(t,e){var n=Tt(t),r=!n&&zt(t),o=!n&&!r&&Rt(t),a=!n&&!r&&!o&&Ft(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||F))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]",b="[object Symbol]",w="[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[w]=!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")(),C=e&&!e.nodeType&&e,z=C&&t&&!t.nodeType&&t,T=z&&z.exports===C&&E.process,R=function(){try{return T&&T.binding("util")}catch(t){}}(),q=R&&R.isTypedArray;function V(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 U(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 D(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function F(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function I(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),bt=te(pt),wt=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&&zt(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 Ct(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?Ct(u,e-1,n,r,o):D(o,u):r||(o[o.length]=u)}return o}var zt=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 Tt(t,e){for(var n=0,r=(e=Wt(e,t)?[e]:Dt(e)).length;null!=t&&n<r;)t=t[Zt(e[n++])];return n&&n==r?t:void 0}function Rt(t,e){return null!=t&&e in Object(t)}function qt(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),w=ae(e),j=i,A=i;d||(j=(j=Ht(t))==a?h:j),w||(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)?It(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 w=It(f(t),f(e),r,o,a,i);return i.delete(t),w;case b: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,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,o,f))}(t,e,qt,n,r,o))}function Vt(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:Tt(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]:Dt(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,Rt)}(n,t):qt(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?qt(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 Tt(e,t)}}(r);var e,n,r,o}function Ut(t,e,n){var r=-1;return e=U(e.length?e:[de],I(Vt)),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=Ft(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:U(e,(function(e){return e(t)})),index:++r,value:t}})))}function Dt(t){return ae(t)?t:Xt(t)}function Ft(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 It(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(!F(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)!=w)&&(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 bt:return l;case wt:return d;case _t:return y;case mt:return w}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,V(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]]),Ut(t,Ct(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)==b}var pe=q?I(q):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 b(){}var w={};w[a]=function(){return this};var _=Object.getPrototypeOf,m=_&&_(_(M([])));m&&m!==n&&r.call(m,a)&&(w=m);var j=b.prototype=y.prototype=Object.create(w);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=b,b.constructor=v,v.displayName=c(b,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,b):(t.__proto__=b,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),b=n.n(v),w=n(713),_=n.n(w),m=require("react"),j=n.n(m),A=require("prop-types"),x=n.n(A),k=n(38),S=n.n(k),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 C(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 N=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.0.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=C(C({},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=S()(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}])})))}},{key:"deleteAdSlot",value:function(t,e,n,r,a){var u=this;window.freestar.queue.push(i()(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a){t.next=7;break}return t.next=3,u.getMappedPlacementName(e,n);case 3:e=t.sent,window.freestar.deleteAdSlots({slotId:e}),t.next=8;break;case 7:window.googletag.destroySlots([u.adSlotsMap[a]]);case 8:r&&r(e);case 9:case"end":return t.stop()}}),t)}))))}},{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 t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a){t.next=7;break}return t.next=3,u.getMappedPlacementName(e,n);case 3:e=t.sent,window.freestar.freestarReloadAdSlot(e),t.next=8;break;case 7:window.googletag.pubads().refresh([u.adSlotsMap[a]]);case 8:r&&r(e);case 9:case"end":return t.stop()}}),t)}))))}},{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=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.log(0,"Ad Slot queueing "+(t?"enabled":"disabled")),0==t&&1==this.queue&&(this.log(0,"Flushing queued Ad Slots"),this.flushQueuedNewAdSlots()),this.queue=t}}]),t}()),z=n(196),T=n.n(z);var R=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=b()(n);if(r){var o=b()(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);var n=t.placementName;e=a.call(this,t),_()(p()(e),"classes",(function(){var t=e.props.classList;return t?t.join(" "):""}));var r="".concat(n,"-").concat(T()({length:10,numeric:!0,letters:!0}));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,d;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,n=e.placementName,r=e.onNewAdSlotsHook,a=e.channel,i=e.targeting,u=e.keyValueConfigMappingURL,c=e.publisher,s=this.props,f=s.adUnitPath,l=s.slotSize,p=s.sizeMapping,t.next=4,N.init(c,u);case 4:return t.next=6,N.getMappedPlacementName(n,i);case 6:h=t.sent,d="".concat(h,"-").concat(T()({length:10,numeric:!0,letters:!0})),this.setState({placementName:h,slotId:d}),N.newAdSlot(h,d,r,a,i,f,l,p);case 10:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.onDeleteAdSlotsHook,n=t.targeting,r=t.adUnitPath;N.deleteAdSlot(this.state.slotId,n,e,r)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,n=e.placementName,r=e.onAdRefreshHook,o=e.targeting,a=e.adUnitPath;t.adRefresh!==this.props.adRefresh&&N.refreshAdSlot(n,this.state.slotId,o,r,a)}},{key:"render",value:function(){return j().createElement("div",null,j().createElement("div",{className:this.classes(),id:this.state.slotId}))}}]),u}(m.Component);R.setPageTargeting=function(t,e){N.setPageTargeting(t,e)},R.clearPageTargeting=function(t){N.clearPageTargeting(t)},R.trackPageview=function(){N.trackPageview()},R.queueAdCalls=function(t){N.queueAdCalls(t)},R.propTypes={publisher:x().string.isRequired,placementName:x().string.isRequired,targeting:x().object,channel:x().string,classList:x().array,adRefresh:x().number,onNewAdSlotsHook:x().func,onDeleteAdSlotsHook:x().func,onAdRefreshHook:x().func,adUnitPath:x().string,slotSize:x().oneOfType([x().array,x().string]),sizeMapping:x().arrayOf(x().shape({viewport:x().array,slot:x().array})),keyValueConfigMappingURL:x().string,queue:x().bool},R.defaultProps={publisher:"",placementName:"",targeting:{},channel:null,classList:[],adRefresh:0,onNewAdSlotsHook:function(){},onDeleteAdSlotsHook:function(){},onAdRefreshHook:function(){},adUnitPath:null,slotSize:null,sizeMapping:null,keyValueConfigMappingURL:null};var q=R},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]",b="[object WeakMap]",w="[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[w]=A[u]=A[_]=A[c]=A[s]=A[f]=A[l]=A[p]=A[h]=A[g]=A[y]=A[v]=A[b]=!1;var x="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,k="object"==typeof self&&self&&self.Object===Object&&self,S=x||k||Function("return this")(),O=e&&!e.nodeType&&e,P=O&&t&&!t.nodeType&&t,M=P&&P.exports===O,E=M&&x.process,L=function(){try{return E&&E.binding&&E.binding("util")}catch(t){}}(),C=L&&L.isTypedArray;function N(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 z(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function T(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var R,q,I,V=Array.prototype,U=Function.prototype,D=Object.prototype,F=S["__core-js_shared__"],$=U.toString,G=D.hasOwnProperty,H=(R=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",B=D.toString,K=RegExp("^"+$.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=M?S.Buffer:void 0,W=S.Symbol,Y=S.Uint8Array,J=D.propertyIsEnumerable,X=V.splice,Z=W?W.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=Q?Q.isBuffer:void 0,nt=(q=Object.keys,I=Object,function(t){return q(I(t))}),rt=Pt(S,"DataView"),ot=Pt(S,"Map"),at=Pt(S,"Promise"),it=Pt(S,"Set"),ut=Pt(S,"WeakMap"),ct=Pt(Object,"create"),st=Ct(rt),ft=Ct(ot),lt=Ct(at),pt=Ct(it),ht=Ct(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 bt(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.__data__=new bt;++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(Nt(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 xt(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=Tt(t),b=Tt(e),m=d?i:Et(t),j=b?i:Et(e),A=(m=m==a?h:m)==h,x=(j=j==a?h:j)==h,k=m==j;if(k&&Rt(t)){if(!Rt(e))return!1;d=!0,A=!1}if(k&&!A)return f||(f=new _t),d||Dt(t)?kt(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 w:return!(t.byteLength!=e.byteLength||!a(new Y(t),new Y(e)));case u:case c:case p:return Nt(+t,+e);case s:return t.name==e.name&&t.message==e.message;case g:case v:return t==e+"";case l:var f=z;case y:var h=1&r;if(f||(f=T),t.size!=e.size&&!h)return!1;var d=i.get(t);if(d)return d==e;r|=2,i.set(t,e);var b=kt(f(t),f(e),r,o,a,i);return i.delete(t),b;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 S=A&&G.call(t,"__wrapped__"),O=x&&G.call(e,"__wrapped__");if(S||O){var P=S?t.value():t,M=O?e.value():e;return f||(f=new _t),o(P,M,n,r,f)}}return!!k&&(f||(f=new _t),function(t,e,n,r,o,a){var i=1&n,u=St(t),c=u.length;if(c!=St(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,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,o,f))}(t,e,n,r,xt,o))}function kt(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 wt: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(!N(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 St(t){return function(t,e,n){var r=e(t);return Tt(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))&&(qt(t)?K:m).test(Ct(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},bt.prototype.clear=function(){this.size=0,this.__data__={hash:new yt,map:new(ot||vt),string:new yt}},bt.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},bt.prototype.get=function(t){return Ot(this,t).get(t)},bt.prototype.has=function(t){return Ot(this,t).has(t)},bt.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},wt.prototype.add=wt.prototype.push=function(t){return this.__data__.set(t,r),this},wt.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 bt(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 Ct(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Nt(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)!=b)&&(Et=function(t){var e=jt(t),n=e==h?t.constructor:void 0,r=n?Ct(n):"";if(r)switch(r){case st:return _;case ft:return l;case lt:return d;case pt:return y;case ht:return b}return e});var zt=At(function(){return arguments}())?At:function(t){return Ut(t)&&G.call(t,"callee")&&!J.call(t,"callee")},Tt=Array.isArray,Rt=et||function(){return!1};function qt(t){if(!Vt(t))return!1;var e=jt(t);return e==f||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function It(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=C?function(t){return function(e){return t(e)}}(C):function(t){return Ut(t)&&It(t.length)&&!!A[jt(t)]};function Ft(t){return null!=(e=t)&&It(e.length)&&!qt(e)?function(t,e){var n=Tt(t),r=!n&&zt(t),o=!n&&!r&&Rt(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 xt(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]",b="[object Symbol]",w="[object WeakMap]",_="[object ArrayBuffer]",m="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,x=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/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[w]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,C=E||L||Function("return this")(),N=e&&!e.nodeType&&e,z=N&&t&&!t.nodeType&&t,T=z&&z.exports===N&&E.process,R=function(){try{return T&&T.binding("util")}catch(t){}}(),q=R&&R.isTypedArray;function I(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=C["__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=C.Symbol,at=C.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(C,"DataView"),pt=Gt(C,"Map"),ht=Gt(C,"Promise"),dt=Gt(C,"Set"),gt=Gt(C,"WeakMap"),yt=Gt(Object,"create"),vt=te(lt),bt=te(pt),wt=te(ht),_t=te(dt),mt=te(gt),jt=ot?ot.prototype:void 0,At=jt?jt.valueOf:void 0,xt=jt?jt.toString:void 0;function kt(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 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 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 St(t)}function Et(t,e){for(var n=t.length;n--;)if(re(t[n][0],e))return n;return-1}kt.prototype.clear=function(){this.__data__=yt?yt(null):{}},kt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},kt.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},kt.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:et.call(e,t)},kt.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?r:e,this},St.prototype.clear=function(){this.__data__=[]},St.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))},St.prototype.get=function(t){var e=this.__data__,n=Et(e,t);return n<0?void 0:e[n][1]},St.prototype.has=function(t){return Et(this.__data__,t)>-1},St.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 kt,map:new(pt||St),string:new kt}},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 St},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 St){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,Ct=(Lt=function(t,e){return t&&zt(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 Nt(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?Nt(u,e-1,n,r,o):U(o,u):r||(o[o.length]=u)}return o}var zt=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 Tt(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 Rt(t,e){return null!=t&&e in Object(t)}function qt(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),w=ae(e),j=i,A=i;d||(j=(j=Ht(t))==a?h:j),w||(A=(A=Ht(e))==a?h:A);var x=j==h&&!$(t),k=A==h&&!$(e),S=j==A;if(S&&!x)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 w=Ft(f(t),f(e),r,o,a,i);return i.delete(t),w;case b:if(At)return At.call(t)==At.call(e)}return!1}(t,e,j,n,r,o,f);if(!(2&o)){var O=x&&et.call(t,"__wrapped__"),P=k&&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!!S&&(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,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(t),a.delete(e),p}(t,e,n,r,o,f))}(t,e,qt,n,r,o))}function It(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:Tt(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,Rt)}(n,t):qt(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?qt(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 Tt(e,t)}}(r);var e,n,r,o}function Vt(t,e,n){var r=-1;return e=V(e.length?e:[de],F(It)),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 Ct(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)!=w)&&(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 bt:return l;case wt:return d;case _t:return y;case mt:return w}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 xt?xt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return x.test(t)&&n.push(""),t.replace(k,(function(t,e,r,o){n.push(r?o.replace(S,"$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,I(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,Nt(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)==b}var pe=q?F(q):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},196:function(t){"use strict";t.exports=function(t){var e,n,r="",o=(t=function(t){return t||(t={}),{length:t.length||8,numeric:"boolean"!=typeof t.numeric||t.numeric,letters:"boolean"!=typeof t.letters||t.letters,special:"boolean"==typeof t.special&&t.special,exclude:Array.isArray(t.exclude)?t.exclude:[]}}(t)).length,a=(t.exclude,function(t){var e="";t.numeric&&(e+="0123456789"),t.letters&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"),t.special&&(e+="!$%^&*()_+|~-=`{}[]:;<>?,./");for(var n=0;n<=t.exclude.length;n++)e=e.replace(t.exclude[n],"");return e}(t));for(e=1;e<=o;e++)r+=a.substring(n=Math.floor(Math.random()*a.length),n+1);return r}},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=k(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 b(){}var w={};w[a]=function(){return this};var _=Object.getPrototypeOf,m=_&&_(_(M([])));m&&m!==n&&r.call(m,a)&&(w=m);var j=b.prototype=y.prototype=Object.create(w);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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 k(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,k(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 S(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(S,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=b,b.constructor=v,v.displayName=c(b,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,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},A(x.prototype),x.prototype[i]=function(){return this},t.AsyncIterator=x,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new x(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.0.3", | ||
"version": "3.1.0", | ||
"main": "dist/index.js", | ||
@@ -27,3 +27,4 @@ "private": false, | ||
"lodash.isequal": "^4.5.0", | ||
"lodash.sortby": "^4.7.0" | ||
"lodash.sortby": "^4.7.0", | ||
"random-string": "^0.2.0" | ||
}, | ||
@@ -30,0 +31,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
52174
5
+ Addedrandom-string@^0.2.0
+ Addedrandom-string@0.2.0(transitive)