Socket
Socket
Sign inDemoInstall

adlib

Package Overview
Dependencies
0
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

2

dist/adlib.min.js

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

!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):t.adlib=r()}(this,function(){"use strict";function t(t){var r=pr.call(t,vr),e=t[vr];try{t[vr]=void 0}catch(t){}var n=hr.call(t);return r?t[vr]=e:delete t[vr],n}function r(t){return br.call(t)}function e(e){return null==e?void 0===e?dr:_r:jr&&jr in Object(e)?t(e):r(e)}function n(t){return null!=t&&"object"==typeof t}function o(t){return"symbol"==typeof t||n(t)&&e(t)==gr}function u(t,r){if(ir(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(wr.test(t)||!Or.test(t)||null!=r&&t in Object(r))}function i(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function c(t){if(!i(t))return!1;var r=e(t);return r==Ar||r==zr||r==mr||r==Sr}function a(t){return!!Pr&&Pr in t}function f(t){if(null!=t){try{return Er.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function l(t){return!(!i(t)||a(t))&&(c(t)?Br:Mr).test(f(t))}function s(t,r){return null==t?void 0:t[r]}function p(t,r){var e=s(t,r);return l(e)?e:void 0}function h(){this.__data__=Ir?Ir(null):{},this.size=0}function v(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function y(t){var r=this.__data__;if(Ir){var e=r[t];return e===Ur?void 0:e}return Rr.call(r,t)?r[t]:void 0}function b(t){var r=this.__data__;return Ir?void 0!==r[t]:Cr.call(r,t)}function _(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Ir&&void 0===r?Wr:r,this}function d(t){var r=this,e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];r.set(o[0],o[1])}}function j(){this.__data__=[],this.size=0}function g(t,r){return t===r||t!==t&&r!==r}function O(t,r){for(var e=t.length;e--;)if(g(t[e][0],r))return e;return-1}function w(t){var r=this.__data__,e=O(r,t);return!(e<0)&&(e==r.length-1?r.pop():Gr.call(r,e,1),--this.size,!0)}function m(t){var r=this.__data__,e=O(r,t);return e<0?void 0:r[e][1]}function A(t){return O(this.__data__,t)>-1}function z(t,r){var e=this.__data__,n=O(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function S(t){var r=this,e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];r.set(o[0],o[1])}}function x(){this.size=0,this.__data__={hash:new d,map:new(qr||S),string:new d}}function P(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}function k(t,r){var e=t.__data__;return P(r)?e["string"==typeof r?"string":"hash"]:e.map}function E(t){var r=k(this,t).delete(t);return this.size-=r?1:0,r}function M(t){return k(this,t).get(t)}function $(t){return k(this,t).has(t)}function D(t,r){var e=k(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}function F(t){var r=this,e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];r.set(o[0],o[1])}}function T(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError(Hr);var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],u=e.cache;if(u.has(o))return u.get(o);var i=t.apply(this,n);return e.cache=u.set(o,i)||u,i};return e.cache=new(T.Cache||F),e}function B(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}function I(t){if("string"==typeof t)return t;if(ir(t))return B(t,I)+"";if(o(t))return Zr?Zr.call(t):"";var r=t+"";return"0"==r&&1/t==-Xr?"-0":r}function U(t){return null==t?"":I(t)}function L(t,r){return ir(t)?t:u(t,r)?[t]:Qr(U(t))}function R(t){if("string"==typeof t||o(t))return t;var r=t+"";return"0"==r&&1/t==-te?"-0":r}function V(t,r){r=L(r,t);for(var e=0,n=r.length;null!=t&&e<n;)t=t[R(r[e++])];return e&&e==n?t:void 0}function C(t,r,e){var n=null==t?void 0:V(t,r);return void 0===n?e:n}function W(){this.__data__=new S,this.size=0}function N(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function G(t){return this.__data__.get(t)}function q(t){return this.__data__.has(t)}function H(t,r){var e=this.__data__;if(e instanceof S){var n=e.__data__;if(!qr||n.length<re-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new F(n)}return e.set(t,r),this.size=e.size,this}function J(t){var r=this.__data__=new S(t);this.size=r.size}function K(t){return this.__data__.set(t,ee),this}function Q(t){return this.__data__.has(t)}function X(t){var r=this,e=-1,n=null==t?0:t.length;for(this.__data__=new F;++e<n;)r.add(t[e])}function Y(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function Z(t,r){return t.has(r)}function tt(t,r,e,n,o,u){var i=e&ne,c=t.length,a=r.length;if(c!=a&&!(i&&a>c))return!1;var f=u.get(t);if(f&&u.get(r))return f==r;var l=-1,s=!0,p=e&oe?new X:void 0;for(u.set(t,r),u.set(r,t);++l<c;){var h=t[l],v=r[l];if(n)var y=i?n(v,h,l,r,t,u):n(h,v,l,t,r,u);if(void 0!==y){if(y)continue;s=!1;break}if(p){if(!Y(r,function(t,r){if(!Z(p,r)&&(h===t||o(h,t,e,n,u)))return p.push(r)})){s=!1;break}}else if(h!==v&&!o(h,v,e,n,u)){s=!1;break}}return u.delete(t),u.delete(r),s}function rt(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function et(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}function nt(t,r,e,n,o,u,i){switch(e){case de:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case _e:return!(t.byteLength!=r.byteLength||!u(new ue(t),new ue(r)));case ae:case fe:case pe:return g(+t,+r);case le:return t.name==r.name&&t.message==r.message;case he:case ye:return t==r+"";case se:var c=rt;case ve:var a=n&ie;if(c||(c=et),t.size!=r.size&&!a)return!1;var f=i.get(t);if(f)return f==r;n|=ce,i.set(t,r);var l=tt(c(t),c(r),n,o,u,i);return i.delete(t),l;case be:if(ge)return ge.call(t)==ge.call(r)}return!1}function ot(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}function ut(t,r,e){var n=r(t);return ir(t)?n:ot(n,e(t))}function it(t,r){for(var e=-1,n=null==t?0:t.length,o=0,u=[];++e<n;){var i=t[e];r(i,e,t)&&(u[o++]=i)}return u}function ct(){return[]}function at(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function ft(t){return n(t)&&e(t)==ze}function lt(){return!1}function st(t,r){return!!(r=null==r?Be:r)&&("number"==typeof t||Ie.test(t))&&t>-1&&t%1==0&&t<r}function pt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ue}function ht(t){return n(t)&&pt(t.length)&&!!Le[e(t)]}function vt(t,r){var e=ir(t),n=!e&&ke(t),o=!e&&!n&&Te(t),u=!e&&!n&&!o&&qe(t),i=e||n||o||u,c=i?at(t.length,String):[],a=c.length;for(var f in t)!r&&!Je.call(t,f)||i&&("length"==f||o&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||st(f,a))||c.push(f);return c}function yt(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Ke)}function bt(t){if(!yt(t))return Qe(t);var r=[];for(var e in Object(t))Ye.call(t,e)&&"constructor"!=e&&r.push(e);return r}function _t(t){return null!=t&&pt(t.length)&&!c(t)}function dt(t){return _t(t)?vt(t):bt(t)}function jt(t){return ut(t,dt,Ae)}function gt(t,r,e,n,o,u){var i=e&Ze,c=jt(t),a=c.length;if(a!=jt(r).length&&!i)return!1;for(var f=a;f--;){var l=c[f];if(!(i?l in r:rn.call(r,l)))return!1}var s=u.get(t);if(s&&u.get(r))return s==r;var p=!0;u.set(t,r),u.set(r,t);for(var h=i;++f<a;){l=c[f];var v=t[l],y=r[l];if(n)var b=i?n(y,v,l,r,t,u):n(v,y,l,t,r,u);if(!(void 0===b?v===y||o(v,y,e,n,u):b)){p=!1;break}h||(h="constructor"==l)}if(p&&!h){var _=t.constructor,d=r.constructor;_!=d&&"constructor"in t&&"constructor"in r&&!("function"==typeof _&&_ instanceof _&&"function"==typeof d&&d instanceof d)&&(p=!1)}return u.delete(t),u.delete(r),p}function Ot(t,r,e,n,o,u){var i=ir(t),c=ir(r),a=i?bn:hn(t),f=c?bn:hn(r);a=a==yn?_n:a,f=f==yn?_n:f;var l=a==_n,s=f==_n,p=a==f;if(p&&Te(t)){if(!Te(r))return!1;i=!0,l=!1}if(p&&!l)return u||(u=new J),i||qe(t)?tt(t,r,e,n,o,u):nt(t,r,a,e,n,o,u);if(!(e&vn)){var h=l&&jn.call(t,"__wrapped__"),v=s&&jn.call(r,"__wrapped__");if(h||v){var y=h?t.value():t,b=v?r.value():r;return u||(u=new J),o(y,b,e,n,u)}}return!!p&&(u||(u=new J),gt(t,r,e,n,o,u))}function wt(t,r,e,o,u){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!==t&&r!==r:Ot(t,r,e,o,wt,u))}function mt(t,r,e,n){var o=e.length,u=o,i=!n;if(null==t)return!u;for(t=Object(t);o--;){var c=e[o];if(i&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<u;){c=e[o];var a=c[0],f=t[a],l=c[1];if(i&&c[2]){if(void 0===f&&!(a in t))return!1}else{var s=new J;if(n)var p=n(f,l,a,t,r,s);if(!(void 0===p?wt(l,f,gn|On,n,s):p))return!1}}return!0}function At(t){return t===t&&!i(t)}function zt(t){for(var r=dt(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,At(o)]}return r}function St(t,r){return function(e){return null!=e&&(e[t]===r&&(void 0!==r||t in Object(e)))}}function xt(t){var r=zt(t);return 1==r.length&&r[0][2]?St(r[0][0],r[0][1]):function(e){return e===t||mt(e,t,r)}}function Pt(t,r){return null!=t&&r in Object(t)}function kt(t,r,e){r=L(r,t);for(var n=-1,o=r.length,u=!1;++n<o;){var i=R(r[n]);if(!(u=null!=t&&e(t,i)))break;t=t[i]}return u||++n!=o?u:!!(o=null==t?0:t.length)&&pt(o)&&st(i,o)&&(ir(t)||ke(t))}function Et(t,r){return null!=t&&kt(t,r,Pt)}function Mt(t,r){return u(t)&&At(r)?St(R(t),r):function(e){var n=C(e,t);return void 0===n&&n===r?Et(e,t):wt(r,n,wn|mn)}}function $t(t){return t}function Dt(t){return function(r){return null==r?void 0:r[t]}}function Ft(t){return function(r){return V(r,t)}}function Tt(t){return u(t)?Dt(R(t)):Ft(t)}function Bt(t){return"function"==typeof t?t:null==t?$t:"object"==typeof t?ir(t)?Mt(t[0],t[1]):xt(t):Tt(t)}function It(t,r){return t&&An(t,r,dt)}function Ut(t,r){var e=-1,n=_t(t)?Array(t.length):[];return zn(t,function(t,o,u){n[++e]=r(t,o,u)}),n}function Lt(t,r){return(ir(t)?B:Ut)(t,Bt(r,3))}function Rt(t,r,e){"__proto__"==r&&Sn?Sn(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function Vt(t,r){var e={};return r=Bt(r,3),It(t,function(t,n,o){Rt(e,n,r(t,n,o))}),e}function Ct(t,r,e){var n=t[r];Pn.call(t,r)&&g(n,e)&&(void 0!==e||r in t)||Rt(t,r,e)}function Wt(t,r,e,n){var o=!e;e||(e={});for(var u=-1,i=r.length;++u<i;){var c=r[u],a=n?n(e[c],t[c],c,e,t):void 0;void 0===a&&(a=t[c]),o?Rt(e,c,a):Ct(e,c,a)}return e}function Nt(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function Gt(t,r,e){return r=kn(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,u=kn(n.length-r,0),i=Array(u);++o<u;)i[o]=n[r+o];o=-1;for(var c=Array(r+1);++o<r;)c[o]=n[o];return c[r]=e(i),Nt(t,this,c)}}function qt(t){return function(){return t}}function Ht(t,r){return Fn(Gt(t,r,$t),t+"")}function Jt(t,r,e){if(!i(e))return!1;var n=typeof r;return!!("number"==n?_t(e)&&st(r,e.length):"string"==n&&r in e)&&g(e[r],t)}function Kt(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}function Qt(t){if(!i(t))return Kt(t);var r=yt(t),e=[];for(var n in t)("constructor"!=n||!r&&Bn.call(t,n))&&e.push(n);return e}function Xt(t){return _t(t)?vt(t,!0):Qt(t)}function Yt(t){return t instanceof Date}function Zt(t){return"function"==typeof t}function tr(t){return"object"==typeof t}function rr(t){return t instanceof RegExp}function er(t,r,e){function n(t,n){return er(t,r,e?e+"."+n:n)}return e=e||"",Array.isArray(t)?Lt(t,n):!tr(t)||Yt(t)||rr(t)||Zt(t)?r(t,e):In({},t,Vt(t,n))}function nr(t){return"string"==typeof t}function or(t,r){var e;return(e=t.match(/(.*):(\w+)/))&&(e[2],t=e[1]),C(r,t)}function ur(t,r){return er(t,function(t,e){if(!nr(t))return t;var n=t.match(/{{([\w\.\:]+)}}/g);if(n&&n.length){if(n.length>1){return n.map(function(t){return{key:t,value:or(t.replace(/{|}/g,""),r)}}).forEach(function(r){t=t.replace(r.key,r.value)}),t}return or(n[0].replace(/{|}/g,""),r)||t}return t})}var ir=Array.isArray,cr="object"==typeof global&&global&&global.Object===Object&&global,ar="object"==typeof self&&self&&self.Object===Object&&self,fr=cr||ar||Function("return this")(),lr=fr.Symbol,sr=Object.prototype,pr=sr.hasOwnProperty,hr=sr.toString,vr=lr?lr.toStringTag:void 0,yr=Object.prototype,br=yr.toString,_r="[object Null]",dr="[object Undefined]",jr=lr?lr.toStringTag:void 0,gr="[object Symbol]",Or=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wr=/^\w*$/,mr="[object AsyncFunction]",Ar="[object Function]",zr="[object GeneratorFunction]",Sr="[object Proxy]",xr=fr["__core-js_shared__"],Pr=function(){var t=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),kr=Function.prototype,Er=kr.toString,Mr=/^\[object .+?Constructor\]$/,$r=Function.prototype,Dr=Object.prototype,Fr=$r.toString,Tr=Dr.hasOwnProperty,Br=RegExp("^"+Fr.call(Tr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ir=p(Object,"create"),Ur="__lodash_hash_undefined__",Lr=Object.prototype,Rr=Lr.hasOwnProperty,Vr=Object.prototype,Cr=Vr.hasOwnProperty,Wr="__lodash_hash_undefined__";d.prototype.clear=h,d.prototype.delete=v,d.prototype.get=y,d.prototype.has=b,d.prototype.set=_;var Nr=Array.prototype,Gr=Nr.splice;S.prototype.clear=j,S.prototype.delete=w,S.prototype.get=m,S.prototype.has=A,S.prototype.set=z;var qr=p(fr,"Map");F.prototype.clear=x,F.prototype.delete=E,F.prototype.get=M,F.prototype.has=$,F.prototype.set=D;var Hr="Expected a function";T.Cache=F;var Jr=500,Kr=/^\./,Qr=function(t){var r=T(t,function(t){return e.size===Jr&&e.clear(),t}),e=r.cache;return r}(function(t){var r=[];return Kr.test(t)&&r.push(""),t.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(t,e,n,o){r.push(n?o.replace(/\\(\\)?/g,"$1"):e||t)}),r}),Xr=1/0,Yr=lr?lr.prototype:void 0,Zr=Yr?Yr.toString:void 0,te=1/0,re=200;J.prototype.clear=W,J.prototype.delete=N,J.prototype.get=G,J.prototype.has=q,J.prototype.set=H;var ee="__lodash_hash_undefined__";X.prototype.add=X.prototype.push=K,X.prototype.has=Q;var ne=1,oe=2,ue=fr.Uint8Array,ie=1,ce=2,ae="[object Boolean]",fe="[object Date]",le="[object Error]",se="[object Map]",pe="[object Number]",he="[object RegExp]",ve="[object Set]",ye="[object String]",be="[object Symbol]",_e="[object ArrayBuffer]",de="[object DataView]",je=lr?lr.prototype:void 0,ge=je?je.valueOf:void 0,Oe=Object.prototype,we=Oe.propertyIsEnumerable,me=Object.getOwnPropertySymbols,Ae=me?function(t){return null==t?[]:(t=Object(t),it(me(t),function(r){return we.call(t,r)}))}:ct,ze="[object Arguments]",Se=Object.prototype,xe=Se.hasOwnProperty,Pe=Se.propertyIsEnumerable,ke=ft(function(){return arguments}())?ft:function(t){return n(t)&&xe.call(t,"callee")&&!Pe.call(t,"callee")},Ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,Me=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Me&&Me.exports===Ee,De=$e?fr.Buffer:void 0,Fe=De?De.isBuffer:void 0,Te=Fe||lt,Be=9007199254740991,Ie=/^(?:0|[1-9]\d*)$/,Ue=9007199254740991,Le={};Le["[object Float32Array]"]=Le["[object Float64Array]"]=Le["[object Int8Array]"]=Le["[object Int16Array]"]=Le["[object Int32Array]"]=Le["[object Uint8Array]"]=Le["[object Uint8ClampedArray]"]=Le["[object Uint16Array]"]=Le["[object Uint32Array]"]=!0,Le["[object Arguments]"]=Le["[object Array]"]=Le["[object ArrayBuffer]"]=Le["[object Boolean]"]=Le["[object DataView]"]=Le["[object Date]"]=Le["[object Error]"]=Le["[object Function]"]=Le["[object Map]"]=Le["[object Number]"]=Le["[object Object]"]=Le["[object RegExp]"]=Le["[object Set]"]=Le["[object String]"]=Le["[object WeakMap]"]=!1;var Re="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ve=Re&&"object"==typeof module&&module&&!module.nodeType&&module,Ce=Ve&&Ve.exports===Re,We=Ce&&cr.process,Ne=function(){try{return We&&We.binding&&We.binding("util")}catch(t){}}(),Ge=Ne&&Ne.isTypedArray,qe=Ge?function(t){return function(r){return t(r)}}(Ge):ht,He=Object.prototype,Je=He.hasOwnProperty,Ke=Object.prototype,Qe=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),Xe=Object.prototype,Ye=Xe.hasOwnProperty,Ze=1,tn=Object.prototype,rn=tn.hasOwnProperty,en=p(fr,"DataView"),nn=p(fr,"Promise"),on=p(fr,"Set"),un=p(fr,"WeakMap"),cn=f(en),an=f(qr),fn=f(nn),ln=f(on),sn=f(un),pn=e;(en&&"[object DataView]"!=pn(new en(new ArrayBuffer(1)))||qr&&"[object Map]"!=pn(new qr)||nn&&"[object Promise]"!=pn(nn.resolve())||on&&"[object Set]"!=pn(new on)||un&&"[object WeakMap]"!=pn(new un))&&(pn=function(t){var r=e(t),n="[object Object]"==r?t.constructor:void 0,o=n?f(n):"";if(o)switch(o){case cn:return"[object DataView]";case an:return"[object Map]";case fn:return"[object Promise]";case ln:return"[object Set]";case sn:return"[object WeakMap]"}return r});var hn=pn,vn=1,yn="[object Arguments]",bn="[object Array]",_n="[object Object]",dn=Object.prototype,jn=dn.hasOwnProperty,gn=1,On=2,wn=1,mn=2,An=function(t){return function(r,e,n){for(var o=-1,u=Object(r),i=n(r),c=i.length;c--;){var a=i[t?c:++o];if(!1===e(u[a],a,u))break}return r}}(),zn=function(t,r){return function(e,n){if(null==e)return e;if(!_t(e))return t(e,n);for(var o=e.length,u=r?o:-1,i=Object(e);(r?u--:++u<o)&&!1!==n(i[u],u,i););return e}}(It),Sn=function(){try{var t=p(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),xn=Object.prototype,Pn=xn.hasOwnProperty,kn=Math.max,En=Sn?function(t,r){return Sn(t,"toString",{configurable:!0,enumerable:!1,value:qt(r),writable:!0})}:$t,Mn=800,$n=16,Dn=Date.now,Fn=function(t){var r=0,e=0;return function(){var n=Dn(),o=$n-(n-e);if(e=n,o>0){if(++r>=Mn)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(En),Tn=Object.prototype,Bn=Tn.hasOwnProperty,In=function(t){return Ht(function(r,e){var n=-1,o=e.length,u=o>1?e[o-1]:void 0,i=o>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(o--,u):void 0,i&&Jt(e[0],e[1],i)&&(u=o<3?void 0:u,o=1),r=Object(r);++n<o;){var c=e[n];c&&t(r,c,n,u)}return r})}(function(t,r){Wt(r,Xt(r),t)});return ur});
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):t.adlib=r()}(this,function(){"use strict";function t(t){var r=pr.call(t,vr),e=t[vr];try{t[vr]=void 0}catch(t){}var n=hr.call(t);return r?t[vr]=e:delete t[vr],n}function r(t){return br.call(t)}function e(e){return null==e?void 0===e?dr:_r:jr&&jr in Object(e)?t(e):r(e)}function n(t){return null!=t&&"object"==typeof t}function o(t){return"symbol"==typeof t||n(t)&&e(t)==gr}function u(t,r){if(ir(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(wr.test(t)||!Or.test(t)||null!=r&&t in Object(r))}function i(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function c(t){if(!i(t))return!1;var r=e(t);return r==Ar||r==zr||r==mr||r==xr}function a(t){return!!Pr&&Pr in t}function f(t){if(null!=t){try{return Er.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function l(t){return!(!i(t)||a(t))&&(c(t)?Br:Mr).test(f(t))}function s(t,r){return null==t?void 0:t[r]}function p(t,r){var e=s(t,r);return l(e)?e:void 0}function h(){this.__data__=Ir?Ir(null):{},this.size=0}function v(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function y(t){var r=this.__data__;if(Ir){var e=r[t];return e===Rr?void 0:e}return Lr.call(r,t)?r[t]:void 0}function b(t){var r=this.__data__;return Ir?void 0!==r[t]:Cr.call(r,t)}function _(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Ir&&void 0===r?Wr:r,this}function d(t){var r=this,e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];r.set(o[0],o[1])}}function j(){this.__data__=[],this.size=0}function g(t,r){return t===r||t!==t&&r!==r}function O(t,r){for(var e=t.length;e--;)if(g(t[e][0],r))return e;return-1}function w(t){var r=this.__data__,e=O(r,t);return!(e<0)&&(e==r.length-1?r.pop():Gr.call(r,e,1),--this.size,!0)}function m(t){var r=this.__data__,e=O(r,t);return e<0?void 0:r[e][1]}function A(t){return O(this.__data__,t)>-1}function z(t,r){var e=this.__data__,n=O(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function x(t){var r=this,e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];r.set(o[0],o[1])}}function S(){this.size=0,this.__data__={hash:new d,map:new(qr||x),string:new d}}function P(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}function k(t,r){var e=t.__data__;return P(r)?e["string"==typeof r?"string":"hash"]:e.map}function E(t){var r=k(this,t).delete(t);return this.size-=r?1:0,r}function M(t){return k(this,t).get(t)}function $(t){return k(this,t).has(t)}function D(t,r){var e=k(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}function F(t){var r=this,e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];r.set(o[0],o[1])}}function T(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError(Hr);var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],u=e.cache;if(u.has(o))return u.get(o);var i=t.apply(this,n);return e.cache=u.set(o,i)||u,i};return e.cache=new(T.Cache||F),e}function B(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}function I(t){if("string"==typeof t)return t;if(ir(t))return B(t,I)+"";if(o(t))return Zr?Zr.call(t):"";var r=t+"";return"0"==r&&1/t==-Xr?"-0":r}function R(t){return null==t?"":I(t)}function U(t,r){return ir(t)?t:u(t,r)?[t]:Qr(R(t))}function L(t){if("string"==typeof t||o(t))return t;var r=t+"";return"0"==r&&1/t==-te?"-0":r}function V(t,r){r=U(r,t);for(var e=0,n=r.length;null!=t&&e<n;)t=t[L(r[e++])];return e&&e==n?t:void 0}function C(t,r,e){var n=null==t?void 0:V(t,r);return void 0===n?e:n}function W(){this.__data__=new x,this.size=0}function N(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}function G(t){return this.__data__.get(t)}function q(t){return this.__data__.has(t)}function H(t,r){var e=this.__data__;if(e instanceof x){var n=e.__data__;if(!qr||n.length<re-1)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new F(n)}return e.set(t,r),this.size=e.size,this}function J(t){var r=this.__data__=new x(t);this.size=r.size}function K(t){return this.__data__.set(t,ee),this}function Q(t){return this.__data__.has(t)}function X(t){var r=this,e=-1,n=null==t?0:t.length;for(this.__data__=new F;++e<n;)r.add(t[e])}function Y(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function Z(t,r){return t.has(r)}function tt(t,r,e,n,o,u){var i=e&ne,c=t.length,a=r.length;if(c!=a&&!(i&&a>c))return!1;var f=u.get(t);if(f&&u.get(r))return f==r;var l=-1,s=!0,p=e&oe?new X:void 0;for(u.set(t,r),u.set(r,t);++l<c;){var h=t[l],v=r[l];if(n)var y=i?n(v,h,l,r,t,u):n(h,v,l,t,r,u);if(void 0!==y){if(y)continue;s=!1;break}if(p){if(!Y(r,function(t,r){if(!Z(p,r)&&(h===t||o(h,t,e,n,u)))return p.push(r)})){s=!1;break}}else if(h!==v&&!o(h,v,e,n,u)){s=!1;break}}return u.delete(t),u.delete(r),s}function rt(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function et(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}function nt(t,r,e,n,o,u,i){switch(e){case de:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case _e:return!(t.byteLength!=r.byteLength||!u(new ue(t),new ue(r)));case ae:case fe:case pe:return g(+t,+r);case le:return t.name==r.name&&t.message==r.message;case he:case ye:return t==r+"";case se:var c=rt;case ve:var a=n&ie;if(c||(c=et),t.size!=r.size&&!a)return!1;var f=i.get(t);if(f)return f==r;n|=ce,i.set(t,r);var l=tt(c(t),c(r),n,o,u,i);return i.delete(t),l;case be:if(ge)return ge.call(t)==ge.call(r)}return!1}function ot(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}function ut(t,r,e){var n=r(t);return ir(t)?n:ot(n,e(t))}function it(t,r){for(var e=-1,n=null==t?0:t.length,o=0,u=[];++e<n;){var i=t[e];r(i,e,t)&&(u[o++]=i)}return u}function ct(){return[]}function at(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function ft(t){return n(t)&&e(t)==ze}function lt(){return!1}function st(t,r){return!!(r=null==r?Be:r)&&("number"==typeof t||Ie.test(t))&&t>-1&&t%1==0&&t<r}function pt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Re}function ht(t){return n(t)&&pt(t.length)&&!!Ue[e(t)]}function vt(t,r){var e=ir(t),n=!e&&ke(t),o=!e&&!n&&Te(t),u=!e&&!n&&!o&&qe(t),i=e||n||o||u,c=i?at(t.length,String):[],a=c.length;for(var f in t)!r&&!Je.call(t,f)||i&&("length"==f||o&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||st(f,a))||c.push(f);return c}function yt(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Ke)}function bt(t){if(!yt(t))return Qe(t);var r=[];for(var e in Object(t))Ye.call(t,e)&&"constructor"!=e&&r.push(e);return r}function _t(t){return null!=t&&pt(t.length)&&!c(t)}function dt(t){return _t(t)?vt(t):bt(t)}function jt(t){return ut(t,dt,Ae)}function gt(t,r,e,n,o,u){var i=e&Ze,c=jt(t),a=c.length;if(a!=jt(r).length&&!i)return!1;for(var f=a;f--;){var l=c[f];if(!(i?l in r:rn.call(r,l)))return!1}var s=u.get(t);if(s&&u.get(r))return s==r;var p=!0;u.set(t,r),u.set(r,t);for(var h=i;++f<a;){l=c[f];var v=t[l],y=r[l];if(n)var b=i?n(y,v,l,r,t,u):n(v,y,l,t,r,u);if(!(void 0===b?v===y||o(v,y,e,n,u):b)){p=!1;break}h||(h="constructor"==l)}if(p&&!h){var _=t.constructor,d=r.constructor;_!=d&&"constructor"in t&&"constructor"in r&&!("function"==typeof _&&_ instanceof _&&"function"==typeof d&&d instanceof d)&&(p=!1)}return u.delete(t),u.delete(r),p}function Ot(t,r,e,n,o,u){var i=ir(t),c=ir(r),a=i?bn:hn(t),f=c?bn:hn(r);a=a==yn?_n:a,f=f==yn?_n:f;var l=a==_n,s=f==_n,p=a==f;if(p&&Te(t)){if(!Te(r))return!1;i=!0,l=!1}if(p&&!l)return u||(u=new J),i||qe(t)?tt(t,r,e,n,o,u):nt(t,r,a,e,n,o,u);if(!(e&vn)){var h=l&&jn.call(t,"__wrapped__"),v=s&&jn.call(r,"__wrapped__");if(h||v){var y=h?t.value():t,b=v?r.value():r;return u||(u=new J),o(y,b,e,n,u)}}return!!p&&(u||(u=new J),gt(t,r,e,n,o,u))}function wt(t,r,e,o,u){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!==t&&r!==r:Ot(t,r,e,o,wt,u))}function mt(t,r,e,n){var o=e.length,u=o,i=!n;if(null==t)return!u;for(t=Object(t);o--;){var c=e[o];if(i&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<u;){c=e[o];var a=c[0],f=t[a],l=c[1];if(i&&c[2]){if(void 0===f&&!(a in t))return!1}else{var s=new J;if(n)var p=n(f,l,a,t,r,s);if(!(void 0===p?wt(l,f,gn|On,n,s):p))return!1}}return!0}function At(t){return t===t&&!i(t)}function zt(t){for(var r=dt(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,At(o)]}return r}function xt(t,r){return function(e){return null!=e&&(e[t]===r&&(void 0!==r||t in Object(e)))}}function St(t){var r=zt(t);return 1==r.length&&r[0][2]?xt(r[0][0],r[0][1]):function(e){return e===t||mt(e,t,r)}}function Pt(t,r){return null!=t&&r in Object(t)}function kt(t,r,e){r=U(r,t);for(var n=-1,o=r.length,u=!1;++n<o;){var i=L(r[n]);if(!(u=null!=t&&e(t,i)))break;t=t[i]}return u||++n!=o?u:!!(o=null==t?0:t.length)&&pt(o)&&st(i,o)&&(ir(t)||ke(t))}function Et(t,r){return null!=t&&kt(t,r,Pt)}function Mt(t,r){return u(t)&&At(r)?xt(L(t),r):function(e){var n=C(e,t);return void 0===n&&n===r?Et(e,t):wt(r,n,wn|mn)}}function $t(t){return t}function Dt(t){return function(r){return null==r?void 0:r[t]}}function Ft(t){return function(r){return V(r,t)}}function Tt(t){return u(t)?Dt(L(t)):Ft(t)}function Bt(t){return"function"==typeof t?t:null==t?$t:"object"==typeof t?ir(t)?Mt(t[0],t[1]):St(t):Tt(t)}function It(t,r){return t&&An(t,r,dt)}function Rt(t,r){var e=-1,n=_t(t)?Array(t.length):[];return zn(t,function(t,o,u){n[++e]=r(t,o,u)}),n}function Ut(t,r){return(ir(t)?B:Rt)(t,Bt(r,3))}function Lt(t,r,e){"__proto__"==r&&xn?xn(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function Vt(t,r){var e={};return r=Bt(r,3),It(t,function(t,n,o){Lt(e,n,r(t,n,o))}),e}function Ct(t,r,e){var n=t[r];Pn.call(t,r)&&g(n,e)&&(void 0!==e||r in t)||Lt(t,r,e)}function Wt(t,r,e,n){var o=!e;e||(e={});for(var u=-1,i=r.length;++u<i;){var c=r[u],a=n?n(e[c],t[c],c,e,t):void 0;void 0===a&&(a=t[c]),o?Lt(e,c,a):Ct(e,c,a)}return e}function Nt(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function Gt(t,r,e){return r=kn(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,u=kn(n.length-r,0),i=Array(u);++o<u;)i[o]=n[r+o];o=-1;for(var c=Array(r+1);++o<r;)c[o]=n[o];return c[r]=e(i),Nt(t,this,c)}}function qt(t){return function(){return t}}function Ht(t,r){return Fn(Gt(t,r,$t),t+"")}function Jt(t,r,e){if(!i(e))return!1;var n=typeof r;return!!("number"==n?_t(e)&&st(r,e.length):"string"==n&&r in e)&&g(e[r],t)}function Kt(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}function Qt(t){if(!i(t))return Kt(t);var r=yt(t),e=[];for(var n in t)("constructor"!=n||!r&&Bn.call(t,n))&&e.push(n);return e}function Xt(t){return _t(t)?vt(t,!0):Qt(t)}function Yt(t){return t instanceof Date}function Zt(t){return"function"==typeof t}function tr(t){return"object"==typeof t}function rr(t){return t instanceof RegExp}function er(t,r,e){function n(t,n){return er(t,r,e?e+"."+n:n)}return e=e||"",Array.isArray(t)?Ut(t,n):!tr(t)||Yt(t)||rr(t)||Zt(t)?r(t,e):In({},t,Vt(t,n))}function nr(t){return"string"==typeof t}function or(t,r){var e;return(e=t.match(/(.*):(\w+)/))&&(e[2],t=e[1]),C(r,t)}function ur(t,r){return er(t,function(t,e){if(!nr(t))return t;var n,o=t.match(/{{([\w\.\:]+)}}/g);if(o&&o.length){return o.map(function(t){return{key:t,value:or(t.replace(/{|}/g,""),r)||t}}).forEach(function(r){if(t==r.key)n=r.value;else{var e=new RegExp(r.key,"g");t=t.replace(e,r.value)}}),n||t}return t})}var ir=Array.isArray,cr="object"==typeof global&&global&&global.Object===Object&&global,ar="object"==typeof self&&self&&self.Object===Object&&self,fr=cr||ar||Function("return this")(),lr=fr.Symbol,sr=Object.prototype,pr=sr.hasOwnProperty,hr=sr.toString,vr=lr?lr.toStringTag:void 0,yr=Object.prototype,br=yr.toString,_r="[object Null]",dr="[object Undefined]",jr=lr?lr.toStringTag:void 0,gr="[object Symbol]",Or=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wr=/^\w*$/,mr="[object AsyncFunction]",Ar="[object Function]",zr="[object GeneratorFunction]",xr="[object Proxy]",Sr=fr["__core-js_shared__"],Pr=function(){var t=/[^.]+$/.exec(Sr&&Sr.keys&&Sr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),kr=Function.prototype,Er=kr.toString,Mr=/^\[object .+?Constructor\]$/,$r=Function.prototype,Dr=Object.prototype,Fr=$r.toString,Tr=Dr.hasOwnProperty,Br=RegExp("^"+Fr.call(Tr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ir=p(Object,"create"),Rr="__lodash_hash_undefined__",Ur=Object.prototype,Lr=Ur.hasOwnProperty,Vr=Object.prototype,Cr=Vr.hasOwnProperty,Wr="__lodash_hash_undefined__";d.prototype.clear=h,d.prototype.delete=v,d.prototype.get=y,d.prototype.has=b,d.prototype.set=_;var Nr=Array.prototype,Gr=Nr.splice;x.prototype.clear=j,x.prototype.delete=w,x.prototype.get=m,x.prototype.has=A,x.prototype.set=z;var qr=p(fr,"Map");F.prototype.clear=S,F.prototype.delete=E,F.prototype.get=M,F.prototype.has=$,F.prototype.set=D;var Hr="Expected a function";T.Cache=F;var Jr=500,Kr=/^\./,Qr=function(t){var r=T(t,function(t){return e.size===Jr&&e.clear(),t}),e=r.cache;return r}(function(t){var r=[];return Kr.test(t)&&r.push(""),t.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(t,e,n,o){r.push(n?o.replace(/\\(\\)?/g,"$1"):e||t)}),r}),Xr=1/0,Yr=lr?lr.prototype:void 0,Zr=Yr?Yr.toString:void 0,te=1/0,re=200;J.prototype.clear=W,J.prototype.delete=N,J.prototype.get=G,J.prototype.has=q,J.prototype.set=H;var ee="__lodash_hash_undefined__";X.prototype.add=X.prototype.push=K,X.prototype.has=Q;var ne=1,oe=2,ue=fr.Uint8Array,ie=1,ce=2,ae="[object Boolean]",fe="[object Date]",le="[object Error]",se="[object Map]",pe="[object Number]",he="[object RegExp]",ve="[object Set]",ye="[object String]",be="[object Symbol]",_e="[object ArrayBuffer]",de="[object DataView]",je=lr?lr.prototype:void 0,ge=je?je.valueOf:void 0,Oe=Object.prototype,we=Oe.propertyIsEnumerable,me=Object.getOwnPropertySymbols,Ae=me?function(t){return null==t?[]:(t=Object(t),it(me(t),function(r){return we.call(t,r)}))}:ct,ze="[object Arguments]",xe=Object.prototype,Se=xe.hasOwnProperty,Pe=xe.propertyIsEnumerable,ke=ft(function(){return arguments}())?ft:function(t){return n(t)&&Se.call(t,"callee")&&!Pe.call(t,"callee")},Ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,Me=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Me&&Me.exports===Ee,De=$e?fr.Buffer:void 0,Fe=De?De.isBuffer:void 0,Te=Fe||lt,Be=9007199254740991,Ie=/^(?:0|[1-9]\d*)$/,Re=9007199254740991,Ue={};Ue["[object Float32Array]"]=Ue["[object Float64Array]"]=Ue["[object Int8Array]"]=Ue["[object Int16Array]"]=Ue["[object Int32Array]"]=Ue["[object Uint8Array]"]=Ue["[object Uint8ClampedArray]"]=Ue["[object Uint16Array]"]=Ue["[object Uint32Array]"]=!0,Ue["[object Arguments]"]=Ue["[object Array]"]=Ue["[object ArrayBuffer]"]=Ue["[object Boolean]"]=Ue["[object DataView]"]=Ue["[object Date]"]=Ue["[object Error]"]=Ue["[object Function]"]=Ue["[object Map]"]=Ue["[object Number]"]=Ue["[object Object]"]=Ue["[object RegExp]"]=Ue["[object Set]"]=Ue["[object String]"]=Ue["[object WeakMap]"]=!1;var Le="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ve=Le&&"object"==typeof module&&module&&!module.nodeType&&module,Ce=Ve&&Ve.exports===Le,We=Ce&&cr.process,Ne=function(){try{return We&&We.binding&&We.binding("util")}catch(t){}}(),Ge=Ne&&Ne.isTypedArray,qe=Ge?function(t){return function(r){return t(r)}}(Ge):ht,He=Object.prototype,Je=He.hasOwnProperty,Ke=Object.prototype,Qe=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),Xe=Object.prototype,Ye=Xe.hasOwnProperty,Ze=1,tn=Object.prototype,rn=tn.hasOwnProperty,en=p(fr,"DataView"),nn=p(fr,"Promise"),on=p(fr,"Set"),un=p(fr,"WeakMap"),cn=f(en),an=f(qr),fn=f(nn),ln=f(on),sn=f(un),pn=e;(en&&"[object DataView]"!=pn(new en(new ArrayBuffer(1)))||qr&&"[object Map]"!=pn(new qr)||nn&&"[object Promise]"!=pn(nn.resolve())||on&&"[object Set]"!=pn(new on)||un&&"[object WeakMap]"!=pn(new un))&&(pn=function(t){var r=e(t),n="[object Object]"==r?t.constructor:void 0,o=n?f(n):"";if(o)switch(o){case cn:return"[object DataView]";case an:return"[object Map]";case fn:return"[object Promise]";case ln:return"[object Set]";case sn:return"[object WeakMap]"}return r});var hn=pn,vn=1,yn="[object Arguments]",bn="[object Array]",_n="[object Object]",dn=Object.prototype,jn=dn.hasOwnProperty,gn=1,On=2,wn=1,mn=2,An=function(t){return function(r,e,n){for(var o=-1,u=Object(r),i=n(r),c=i.length;c--;){var a=i[t?c:++o];if(!1===e(u[a],a,u))break}return r}}(),zn=function(t,r){return function(e,n){if(null==e)return e;if(!_t(e))return t(e,n);for(var o=e.length,u=r?o:-1,i=Object(e);(r?u--:++u<o)&&!1!==n(i[u],u,i););return e}}(It),xn=function(){try{var t=p(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Sn=Object.prototype,Pn=Sn.hasOwnProperty,kn=Math.max,En=xn?function(t,r){return xn(t,"toString",{configurable:!0,enumerable:!1,value:qt(r),writable:!0})}:$t,Mn=800,$n=16,Dn=Date.now,Fn=function(t){var r=0,e=0;return function(){var n=Dn(),o=$n-(n-e);if(e=n,o>0){if(++r>=Mn)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(En),Tn=Object.prototype,Bn=Tn.hasOwnProperty,In=function(t){return Ht(function(r,e){var n=-1,o=e.length,u=o>1?e[o-1]:void 0,i=o>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(o--,u):void 0,i&&Jt(e[0],e[1],i)&&(u=o<3?void 0:u,o=1),r=Object(r);++n<o;){var c=e[n];c&&t(r,c,n,u)}return r})}(function(t,r){Wt(r,Xt(r),t)});return ur});
//# sourceMappingURL=adlib.min.js.map
{
"name": "adlib",
"version": "0.0.4",
"version": "0.0.5",
"description": "Templating for deep JSON object graphs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -84,2 +84,21 @@ /**

it('should leave undefined instances within a url string', () => {
let template = {
value: '{{organization.portalBaseUrl}}/apps/SummaryViewer/index.html?appid={{collisionViewer.item.id}}'
};
let settings = {
organization: {
portalBaseUrl: 'http://foo.com'
},
collisionViewer: {
item: {
notId: '3ef'
}
}
};
let result = adlib(template, settings);
expect(result.value).to.equal('http://foo.com/apps/SummaryViewer/index.html?appid={{collisionViewer.item.id}}');
})
it('should replace multiple values in a string', () => {

@@ -86,0 +105,0 @@ let template = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc