!function(a){"use strict";if(!a._wtf){var b=[{"type":"PLANOUT","name":"test-site-enhancer-loader","json":"{\"op\":\"seq\",\"seq\":[{\"op\":\"set\",\"var\":\"show\",\"value\":{\"choices\":{\"op\":\"array\",\"values\":[true,false]},\"unit\":{\"op\":\"get\",\"var\":\"visitorId\"},\"op\":\"uniformChoice\"}}]}","hash":261645251}],c=a._wtf=function(){return c.manager.execute(arguments[0],arguments[1],arguments[2])},d=function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(b,"__esModule",{value:!0});var e=c(1),f=d(e);b["default"]={Manager:f["default"]}},function(a,b,c){function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(b,"__esModule",{value:!0});var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},g=function(){function a(a,b){for(var c=0;c-1?window.location.origin:""===window.location.hostname?"http://localhost:8888":"//www.edmunds.com"}},{key:"param",value:function b(a,c){var d,e=a.split(":"),f=e[0],b=e[1],g=e[2],h=this.planOutCampaigns[f];if(d=b?h?h.get(b,g):g:h?h.getParams():null,h&&void 0!==d)if(b){var i=d;this.track(h.name+":"+b,i,h.hash)}else Object.keys(d).forEach(function(a){var b=d[a];this.track(h.name+":"+a,b,h.hash)});return this.invokeCallback(c,d),d}},{key:"track",value:function(a,b,c){this.isTrackingEnabled&&(0,l.track)(a,b,c)}},{key:"fulcrum",value:function(a,b){var c={};if("string"==typeof a){var d=a.split(":"),e=d[0],g=d[1];c=this.executeSlot(e,g)}if("object"==("undefined"==typeof a?"undefined":f(a))){var h=this,i=Object.keys(a),j=function(a){for(var b=0,c=0,d=a.length;c0&&(b+="|"),b+=c+":"+a.params[c]}),(0,i.track)(this.name,b,this.hash)}},{key:"getParamNames",value:function(){return Object.keys(this._assignment._data)}},{key:"previouslyLogged",value:function(){return this._exposureLogged}}]),b}(l["default"].Experiment),n=function(a){function b(){return e(this,b),f(this,Object.getPrototypeOf(b).apply(this,arguments))}return g(b,a),h(b,[{key:"getCampaign",value:function(){throw"IMPLEMENT getCampaign"}},{key:"setup",value:function(){this.setName(this.getCampaign().name),this.originalName=this.getCampaign().name,this.setSalt(this.getCampaign().salt),this.setAutoExposureLogging(!0),this.hash=this.getCampaign().hash}},{key:"assign",value:function(a,b){this.script=JSON.parse(this.getCampaign().compiled);var c=new l["default"].Interpreter(this.script,this.getSalt(),b),d=c.getParams();if(d.hasOwnProperty("slotMappings")&&d.slotMappings.length%2===0)for(var e=d.slotMappings,f=e.length,g=0;g-1?window.location.origin:""==window.location.hostname?"http://localhost:8888":"//www.edmunds.com"},h=function(a){var b=g()+e,c=new XMLHttpRequest;c.open("GET",b+"?"+a,!0),c.timeout=f,c.ontimeout=function(){},c.onerror=function(a,b){},c.send(a)},i=function(a,b,c){var e="visitorId="+(0,d.getVisitorId)()+"&sessionId="+(0,d.getSessionId)()+"&campaign="+a+"&recipe="+b+"&hash="+c;h(e)};b.track=i},function(a,b){function c(a,b){var c=E.length,d=a.constructor,e=j(d)&&d.prototype||Object.Prototype,f="constructor";for(C(a,f)&&!F(b,f)&&b.push(f);c--;)f=E[c],f in a&&a[f]!==e[f]&&!F(b,f)&&b.push(f)}Object.defineProperty(b,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},e=function(a){return a.replace(/^\s+|\s+$/g,"")},f=function(a,b){var c,d,e,f=arguments.length<=2||void 0===arguments[2]||arguments[2];void 0===b?(c="undefined"!=typeof location,e="undefined"!=typeof window,b=e&&c?window.location.search:""):d=!0;var g;if(c||d){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var h=new RegExp("[\\?&]"+a+"=([^&#]*)"),i=h.exec(b);g=null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))}else g="";return f&&(null===g||void 0===g||0===g.length)&&e&&void 0!==window.localStorage&&null!==window.localStorage?window.localStorage.getItem(a):g},g=function I(a){var b=a;if(a&&"object"===("undefined"==typeof a?"undefined":d(a))){b="[object Array]"===Object.prototype.toString.call(a)?[]:{};for(var c in a)b[c]=I(a[c])}return b},h=function(a){var b="undefined"==typeof a?"undefined":d(a);return"function"===b||"object"===b&&!!a},i=function(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(planout_code)},j=function(a){return"function"==typeof a||!1},k=function J(a){if(!h(a))return[];if(Object.keys)return Object.keys(a);var J=[];for(var b in a)C(a,b)&&J.push(b);return D&&c(a,J),J},l=function(a){if(!h(a))return[];var b=[];for(var d in a)b.push(d);return D&&c(a,b),b},m=function(a,b){return function(c){var d=arguments.length;if(d<2||null==c)return c;for(var e=1;e=0&&g=0&&b<=z},C=function(a,b){return null!=a&&Object.prototype.hasOwnProperty.call(a,b)},D=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=function(a,b,c,d){return B(a)||(a=values(a)),("number"!=typeof c||d)&&(c=0),a.indexOf(b)>=0},G=function(a){for(var b=[],c=0;c=0}},{key:"setName",value:function(a){var b=/\s+/g;this.name=a.replace(b,"-"),this._assignment&&(this._assignment.experimentSalt=this.getSalt())}},{key:"__asBlob",value:function(){var a=void 0===arguments[0]?{}:arguments[0],b={name:this.getName(),time:(new Date).getTime()/1e3,salt:this.getSalt(),inputs:this.inputs,params:this._assignment.getParams()};return(0,i.extend)(b,a),b}},{key:"setAutoExposureLogging",value:function(a){this._autoExposureLog=a}},{key:"getParams",value:function(){return this.requireAssignment(),this.requireExposureLogging(),this._assignment.getParams()}},{key:"get",value:function(a,b){return this.requireAssignment(),this.requireExposureLogging(a),this._assignment.get(a,b)}},{key:"toString",value:function(){return this.requireAssignment(),this.requireExposureLogging(),JSON.stringify(this.__asBlob())}},{key:"logExposure",value:function(a){this.inExperiment()&&(this._exposureLogged=!0,this.logEvent("exposure",a))}},{key:"shouldLogExposure",value:function(a){return!(void 0!==a&&!this.shouldFetchExperimentParameter(a))&&(this._autoExposureLog&&!this.previouslyLogged())}},{key:"logEvent",value:function(a,b){if(this.inExperiment()){var c;c=b?{event:a,extra_data:(0,i.shallowCopy)(b)}:{event:a},this.log(this.__asBlob(c))}}},{key:"configureLogger",value:function(){throw"IMPLEMENT configureLogger"}},{key:"log",value:function(a){throw"IMPLEMENT log"}},{key:"previouslyLogged",value:function(){throw"IMPLEMENT previouslyLogged"}}]),a}();b["default"]=j,a.exports=b["default"]},function(a,b,c){function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(b,"__esModule",{value:!0});var f=function(){function a(a,b){for(var c=0;c1)throw"Invalid probability";return this.getUniform(0,1)<=a?1:0}}]),b}(q),u=function(a){function b(){e(this,b),null!=a&&a.apply(this,arguments)}return g(b,a),h(b,[{key:"simpleExecute",value:function(){var a=this.getArgNumber("p"),b=this.getArgList("choices");if(a<0||a>1)throw"Invalid probability";if(0==b.length)return[];for(var c=[],d=0;d0;f--){var g;g=e?this.getHash(f).modulo(f+1).toNumber():this.getHash(f)%(f+1);var h=a[f];if(a[f]=a[g],a[g]=h,!e&&d===f)return a.slice(f,c)}return a.slice(0,b)}},{key:"simpleExecute",value:function(){var a=(0,m.shallowCopy)(this.getArgList("choices")),b=0;return b=void 0!==this.args.draws?this.getArgNumber("draws"):a.length,this.sample(a,b)}}]),b}(q);b["default"]={PlanOutOpRandom:q,Sample:x,WeightedChoice:w,UniformChoice:v,BernoulliFilter:u,BernoulliTrial:t,RandomInteger:s,RandomFloat:r},a.exports=b["default"]},function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof b?"undefined":f(b)));a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.__proto__=b)}Object.defineProperty(b,"__esModule",{value:!0});var g=function(){function a(a,b){for(var c=0;c=0&&bb}}]),b}(h.PlanOutOpBinary),z=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"binaryExecute",value:function(a,b){return a=b}}]),b}(h.PlanOutOpBinary),C=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"binaryExecute",value:function(a,b){return a%b}}]),b}(h.PlanOutOpBinary),D=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"binaryExecute",value:function(a,b){return parseFloat(a)/parseFloat(b)}}]),b}(h.PlanOutOpBinary),E=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"unaryExecute",value:function(a){return Math.round(a)}}]),b}(h.PlanOutOpBinary),F=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"getUnaryString",value:function(){return"!"}},{key:"unaryExecute",value:function(a){return!a}}]),b}(h.PlanOutOpUnary),G=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"getUnaryString",value:function(){return"-"}},{key:"unaryExecute",value:function(a){return 0-a}}]),b}(h.PlanOutOpUnary),H=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"commutativeExecute",value:function(a){return Math.min.apply(null,a)}}]),b}(h.PlanOutOpCommutative),I=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"commutativeExecute",value:function(a){return Math.max.apply(null,a)}}]),b}(h.PlanOutOpCommutative),J=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"unaryExecute",value:function(a){return a.length}}]),b}(h.PlanOutOpUnary),K=function(a){function b(){d(this,b),null!=a&&a.apply(this,arguments)}return e(b,a),g(b,[{key:"simpleExecute",value:function(){var a=(0,j.deepCopy)(this.args);return delete a.op,delete a.salt,a}}]),b}(h.PlanOutOpSimple);b.Literal=k,b.Get=l,b.Seq=m,b.Set=o,b.Arr=p,b.Map=K,b.Coalesce=q,b.Index=r,b.Cond=s,b.And=t,b.Or=u,b.Product=v,b.Sum=w,b.Equals=x,b.GreaterThan=y,b.LessThan=z,b.LessThanOrEqualTo=A,b.GreaterThanOrEqualTo=B,b.Mod=C,b.Divide=D,b.Round=E,b.Not=F,b.Negative=G,b.Min=H,b.Max=I,b.Length=J,b.Return=n},function(a,b,c){function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof b?"undefined":f(b)));a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.__proto__=b)}Object.defineProperty(b,"__esModule",{value:!0});var h=function(a,b,c){for(var d=!0;d;){var e=a,f=b,g=c;h=j=i=void 0,d=!1;var h=Object.getOwnPropertyDescriptor(e,f);if(void 0!==h){if("value"in h)return h.value;var i=h.get;if(void 0===i)return;return i.call(g)}var j=Object.getPrototypeOf(e);if(null===j)return;a=j,b=f,c=g,d=!0}},i=function(){function a(a,b){for(var c=0;c":g.GreaterThan,"<":g.LessThan,">=":g.GreaterThanOrEqualTo,"<=":g.LessThanOrEqualTo,"%":g.Mod,"/":g.Divide,not:g.Not,round:g.Round,negative:g.Negative,min:g.Min,max:g.Max,length:g.Length,coalesce:g.Coalesce,map:g.Map,cond:g.Cond,product:g.Product,sum:g.Sum,randomFloat:i.RandomFloat,randomInteger:i.RandomInteger,bernoulliTrial:i.BernoulliTrial,bernoulliFilter:i.BernoulliFilter,uniformChoice:i.UniformChoice,weightedChoice:i.WeightedChoice,sample:i.Sample}},l=k(),m=function(a){return(0,j.isObject)(a)&&a.op},n=function(a){var b=a.op;if(!l[b])throw"Unknown Operator {op}";return new l[b](a)},o=function p(a){e(this,p),this.inExperiment=a};b.initFactory=k,b.isOperator=m,b.operatorInstance=n,b.StopPlanOutException=o},function(a,b,c){function d(a,b){var c=F.length,d=a.constructor,e=k(d)&&d.prototype||Object.Prototype,f="constructor";for(D(a,f)&&!G(b,f)&&b.push(f);c--;)f=F[c],f in a&&a[f]!==e[f]&&!G(b,f)&&b.push(f)}Object.defineProperty(b,"__esModule",{value:!0});var e=function(a){return a.replace(/^\s+|\s+$/g,"")},g=function(a){var b,c="undefined"!=typeof location,d="undefined"!=typeof window;if(c){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+a+"=([^&#]*)"),f=e.exec(location.search);b=null===f?"":decodeURIComponent(f[1].replace(/\+/g," "))}else b="";return null!==b&&void 0!==b&&0!==b.length||!d||void 0===window.localStorage||null===window.localStorage?b:window.localStorage.getItem(a)},h=function J(a){var b=a;if(a&&"object"===("undefined"==typeof a?"undefined":f(a))){b="[object Array]"===Object.prototype.toString.call(a)?[]:{};for(var c in a)b[c]=J(a[c])}return b},i=function(a){var b="undefined"==typeof a?"undefined":f(a);return"function"===b||"object"===b&&!!a},j=function(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(planout_code)},k=function(a){return"function"==typeof a||!1},l=function K(a){if(!i(a))return[];if(Object.keys)return Object.keys(a);var K=[];for(var b in a)D(a,b)&&K.push(b);return E&&d(a,K),K},m=function(a){if(!i(a))return[];var b=[];for(var c in a)b.push(c);return E&&d(a,b),b},n=function(a,b){return function(c){var d=arguments.length;if(d<2||null==c)return c;for(var e=1;e=0&&g=0&&b<=A},D=function(a,b){return null!=a&&Object.prototype.hasOwnProperty.call(a,b)},E=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=function(a,b,c,d){return C(a)||(a=values(a)),("number"!=typeof c||d)&&(c=0),a.indexOf(b)>=0},H=function(a){for(var b=[],c=0;c>5]|=128<<24-f%32,c[(f+64>>>9<<4)+15]=f;for(var m=0;m>>31}var u=(h<<5|h>>>27)+l+(g[s]>>>0)+(s<20?(i&j|~i&k)+1518500249:s<40?(i^j^k)+1859775393:s<60?(i&j|i&k|j&k)-1894007588:(i^j^k)-899497514);l=k,k=j,j=i<<30|i>>>2,i=h,h=u}h+=n,i+=o,j+=p,k+=q,l+=r}return[h,i,j,k,l]},h=function(a,b){var c=d.wordsToBytes(g(a));return b&&b.asBytes?c:b&&b.asString?f.bytesToString(c):d.bytesToHex(c)};h._blocksize=16,h._digestsize=20,a.exports=h}()}).call(b,c(13).Buffer)},function(a,b,c){var d;!function(e){function g(a){function b(a,d){var e,f,g,h,i,j,k=this;if(!(k instanceof b))return T&&H(26,"constructor call without new",a),new b(a,d);if(null!=d&&U(d,2,64,K,"base")){if(d=0|d,j=a+"",10==d)return k=new b(a instanceof b?a:j),I(k,N+k.e+1,O);if((h="number"==typeof a)&&0*a!=0||!new RegExp("^-?"+(e="["+z.slice(0,d)+"]+")+"(?:\\."+e+")?$",d<37?"i":"").test(j))return s(k,j,h,d);h?(k.s=1/a<0?(j=j.slice(1),-1):1,T&&j.replace(/^0\.0*|\./,"").length>15&&H(K,y,a),h=!1):k.s=45===j.charCodeAt(0)?(j=j.slice(1),-1):1,j=c(j,10,d,k.s)}else{if(a instanceof b)return k.s=a.s,k.e=a.e,k.c=(a=a.c)?a.slice():a,void(K=0);if((h="number"==typeof a)&&0*a==0){if(k.s=1/a<0?(a=-a,-1):1,a===~~a){for(f=0,g=a;g>=10;g/=10,f++);return k.e=f,k.c=[a],void(K=0)}j=a+""}else{if(!t.test(j=a+""))return s(k,j,h);k.s=45===j.charCodeAt(0)?(j=j.slice(1),-1):1}}for((f=j.indexOf("."))>-1&&(j=j.replace(".","")),(g=j.search(/e/i))>0?(f<0&&(f=g),f+=+j.slice(g+1),j=j.substring(0,g)):f<0&&(f=j.length),g=0;48===j.charCodeAt(g);g++);for(i=j.length;48===j.charCodeAt(--i););if(j=j.slice(g,i+1))if(i=j.length,h&&T&&i>15&&H(K,y,k.s*a),f=f-g-1,f>S)k.c=k.e=null;else if(f=0&&(h=X,X=0,a=a.replace(".",""),n=new b(d),k=n.pow(a.length-p),X=h,n.c=m(o(i(k.c),k.e),10,c),n.e=n.c.length),l=m(a,d,c),g=h=l.length;0==l[--h];l.pop());if(!l[0])return"0";if(p<0?--g:(k.c=l,k.e=g,k.s=e,k=J(k,n,q,r,c),l=k.c,j=k.r,g=k.e),f=g+q+1,p=l[f],h=c/2,j=j||f<0||null!=l[f+1],j=r<4?(null!=p||j)&&(0==r||r==(k.s<0?3:2)):p>h||p==h&&(4==r||j||6==r&&1&l[f-1]||r==(k.s<0?8:7)),f<1||!l[0])a=j?o("1",-q):"0";else{if(l.length=f,j)for(--c;++l[--f]>c;)l[f]=0,f||(++g,l.unshift(1));for(h=l.length;!l[--h];);for(p=0,a="";p<=h;a+=z.charAt(l[p++]));a=o(a,g)}return a}function d(a,c,d,e){var f,g,h,j,k;if(d=null!=d&&U(d,0,8,e,x)?0|d:O,!a.c)return a.toString();if(f=a.c[0],h=a.e,null==c)k=i(a.c),k=19==e||24==e&&h<=P?n(k,h):o(k,h);else if(a=I(new b(a),c,d),g=a.e,k=i(a.c),j=k.length,19==e||24==e&&(c<=g||g<=P)){for(;jj){if(--c>0)for(k+=".";c--;k+="0");}else if(c+=g-j,c>0)for(g+1==j&&(k+=".");c--;k+="0");return a.s<0&&f?"-"+k:k}function e(a,c){var d,e,f=0;for(l(a[0])&&(a=a[0]),d=new b(a[0]);++fc||a!=p(a))&&H(d,(e||"decimal places")+(ac?" out of range":" not an integer"),a),!0}function G(a,b,c){for(var d=1,e=b.length;!b[--e];b.pop());for(e=b[0];e>=10;e/=10,d++);return(c=d+c*B-1)>S?a.c=a.e=null:c=10;h/=10,e++);if(f=b-e,f<0)f+=B,g=b,i=l[j=0],k=i/m[e-g-1]%10|0;else if(j=u((f+1)/B),j>=l.length){if(!d)break a;for(;l.length<=j;l.push(0));i=k=0,e=1,f%=B,g=f-B+1}else{for(i=h=l[j],e=1;h>=10;h/=10,e++);f%=B,g=f-B+e,k=g<0?0:i/m[e-g-1]%10|0}if(d=d||b<0||null!=l[j+1]||(g<0?i:i%m[e-g-1]),d=c<4?(k||d)&&(0==c||c==(a.s<0?3:2)):k>5||5==k&&(4==c||d||6==c&&(f>0?g>0?i/m[e-g]:0:l[j-1])%10&1||c==(a.s<0?8:7)),b<1||!l[0])return l.length=0,d?(b-=a.e+1,l[0]=m[b%B],a.e=-b||0):l[0]=a.e=0,a;if(0==f?(l.length=j,h=1,j--):(l.length=j+1,h=m[B-f],l[j]=g>0?v(i/m[e-g]%m[g])*h:0),d)for(;;){if(0==j){for(f=1,g=l[0];g>=10;g/=10,f++);for(g=l[0]+=h,h=1;g>=10;g/=10,h++);f!=h&&(a.e++,l[0]==A&&(l[0]=1));break}if(l[j]+=h,l[j]!=A)break;l[j--]=0,h=1}for(f=l.length;0===l[--f];l.pop());}a.e>S?a.c=a.e=null:a.ec)return null!=(a=e[c++])};return h(b="DECIMAL_PLACES")&&U(a,0,F,2,b)&&(N=0|a),d[b]=N,h(b="ROUNDING_MODE")&&U(a,0,8,2,b)&&(O=0|a),d[b]=O,h(b="EXPONENTIAL_AT")&&(l(a)?U(a[0],-F,0,2,b)&&U(a[1],0,F,2,b)&&(P=0|a[0],Q=0|a[1]):U(a,-F,F,2,b)&&(P=-(Q=0|(a<0?-a:a)))),d[b]=[P,Q],h(b="RANGE")&&(l(a)?U(a[0],-F,-1,2,b)&&U(a[1],1,F,2,b)&&(R=0|a[0],S=0|a[1]):U(a,-F,F,2,b)&&(0|a?R=-(S=0|(a<0?-a:a)):T&&H(2,b+" cannot be zero",a))),d[b]=[R,S],h(b="ERRORS")&&(a===!!a||1===a||0===a?(K=0,U=(T=!!a)?q:k):T&&H(2,b+w,a)),d[b]=T,h(b="CRYPTO")&&(a===!!a||1===a||0===a?(V=!(!a||!r||"object"!=("undefined"==typeof r?"undefined":f(r))),a&&!V&&T&&H(2,"crypto unavailable",r)):T&&H(2,b+w,a)),d[b]=V,h(b="MODULO_MODE")&&U(a,0,9,2,b)&&(W=0|a),d[b]=W,h(b="POW_PRECISION")&&U(a,0,F,2,b)&&(X=0|a),d[b]=X,h(b="FORMAT")&&("object"==("undefined"==typeof a?"undefined":f(a))?Y=a:T&&H(2,b+" not an object",a)),d[b]=Y,d},b.max=function(){return e(arguments,L.lt)},b.min=function(){return e(arguments,L.gt)},b.random=function(){var a=9007199254740992,c=Math.random()*a&2097151?function(){return v(Math.random()*a)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(a){var d,e,f,g,h,i=0,j=[],k=new b(M);if(a=null!=a&&U(a,0,F,14)?0|a:N,g=u(a/B),V)if(r&&r.getRandomValues){for(d=r.getRandomValues(new Uint32Array(g*=2));i>>11),h>=9e15?(e=r.getRandomValues(new Uint32Array(2)),d[i]=e[0],d[i+1]=e[1]):(j.push(h%1e14),i+=2);i=g/2}else if(r&&r.randomBytes){for(d=r.randomBytes(g*=7);i=9e15?r.randomBytes(7).copy(d,i):(j.push(h%1e14),i+=7);i=g/7}else T&&H(14,"crypto unavailable",r);if(!i)for(;i=10;h/=10,i++);id?1:-1;else for(e=f=0;eb[e]?1:-1;break}return f}function d(a,b,c,d){for(var e=0;c--;)a[c]-=e,e=a[c]1;a.shift());}return function(e,f,g,i,j){var k,l,m,n,o,p,q,r,s,t,u,w,x,y,z,C,D,E=e.s==f.s?1:-1,F=e.c,G=f.c;if(!(F&&F[0]&&G&&G[0]))return new b(e.s&&f.s&&(F?!G||F[0]!=G[0]:G)?F&&0==F[0]||!G?0*E:E/0:NaN);for(r=new b(E),s=r.c=[],l=e.e-f.e,E=g+l+1,j||(j=A,l=h(e.e/B)-h(f.e/B),E=E/B|0),m=0;G[m]==(F[m]||0);m++);if(G[m]>(F[m]||0)&&l--,E<0)s.push(1),n=!0;else{for(y=F.length,C=G.length,m=0,E+=2,o=v(j/(G[0]+1)),o>1&&(G=a(G,o,j),F=a(F,o,j),C=G.length,y=F.length),x=C,t=F.slice(0,C),u=t.length;u=j/2&&z++;do{if(o=0,k=c(G,t,C,u),k<0){if(w=t[0],C!=u&&(w=w*j+(t[1]||0)),o=v(w/z),o>1)for(o>=j&&(o=j-1),p=a(G,o,j),q=p.length,u=t.length;1==c(p,t,q,u);)o--,d(p,C=10;E/=10,m++);I(r,g+(r.e=m+l*B-1)+1,i,n)}else r.e=l,r.r=+n;return r}}(),s=function(){var a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,d=/^\.([^.]+)$/,e=/^-?(Infinity|NaN)$/,f=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(g,h,i,j){var k,l=i?h:h.replace(f,"");if(e.test(l))g.s=isNaN(l)?null:l<0?-1:1;else{if(!i&&(l=l.replace(a,function(a,b,c){return k="x"==(c=c.toLowerCase())?16:"b"==c?2:8,j&&j!=k?a:b}),j&&(k=j,l=l.replace(c,"$1").replace(d,"0.$1")),h!=l))return new b(l,k);T&&H(K,"not a"+(j?" base "+j:"")+" number",h),g.s=null}g.c=g.e=null,K=0}}(),L.absoluteValue=L.abs=function(){var a=new b(this);return a.s<0&&(a.s=1),a},L.ceil=function(){return I(new b(this),this.e+1,2)},L.comparedTo=L.cmp=function(a,c){return K=1,j(this,new b(a,c))},L.decimalPlaces=L.dp=function(){var a,b,c=this.c;if(!c)return null;if(a=((b=c.length-1)-h(this.e/B))*B,b=c[b])for(;b%10==0;b/=10,a--);return a<0&&(a=0),a},L.dividedBy=L.div=function(a,c){return K=3,J(this,new b(a,c),N,O)},L.dividedToIntegerBy=L.divToInt=function(a,c){return K=4,J(this,new b(a,c),0,1)},L.equals=L.eq=function(a,c){return K=5,0===j(this,new b(a,c))},L.floor=function(){return I(new b(this),this.e+1,3)},L.greaterThan=L.gt=function(a,c){return K=6,j(this,new b(a,c))>0},L.greaterThanOrEqualTo=L.gte=function(a,c){return K=7,1===(c=j(this,new b(a,c)))||0===c},L.isFinite=function(){return!!this.c},L.isInteger=L.isInt=function(){return!!this.c&&h(this.e/B)>this.c.length-2},L.isNaN=function(){return!this.s},L.isNegative=L.isNeg=function(){return this.s<0},L.isZero=function(){return!!this.c&&0==this.c[0]},L.lessThan=L.lt=function(a,c){return K=8,j(this,new b(a,c))<0},L.lessThanOrEqualTo=L.lte=function(a,c){return K=9,(c=j(this,new b(a,c)))===-1||0===c},L.minus=L.sub=function(a,c){var d,e,f,g,i=this,j=i.s;if(K=10,a=new b(a,c),c=a.s,!j||!c)return new b(NaN);if(j!=c)return a.s=-c,i.plus(a);var k=i.e/B,l=a.e/B,m=i.c,n=a.c;if(!k||!l){if(!m||!n)return m?(a.s=-c,a):new b(n?i:NaN);if(!m[0]||!n[0])return n[0]?(a.s=-c,a):new b(m[0]?i:3==O?-0:0)}if(k=h(k),l=h(l),m=m.slice(),j=k-l){for((g=j<0)?(j=-j,f=m):(l=k,f=n),f.reverse(),c=j;c--;f.push(0));f.reverse()}else for(e=(g=(j=m.length)<(c=n.length))?j:c,j=c=0;c0)for(;c--;m[d++]=0);for(c=A-1;e>j;){if(m[--e]0?(i=g,d=k):(f=-f,d=j),d.reverse();f--;d.push(0));d.reverse()}for(f=j.length,c=k.length,f-c<0&&(d=k,k=j,j=d,c=f),f=0;c;)f=(j[--c]=j[c]+k[c]+f)/A|0,j[c]%=A;return f&&(j.unshift(f), ++i),G(a,j,i)},L.precision=L.sd=function(a){var b,c,d=this,e=d.c;if(null!=a&&a!==!!a&&1!==a&&0!==a&&(T&&H(13,"argument"+w,a),a!=!!a&&(a=null)),!e)return null;if(c=e.length-1,b=c*B+1,c=e[c]){for(;c%10==0;c/=10,b--);for(c=e[0];c>=10;c/=10,b++);}return a&&d.e+1>b&&(b=d.e+1),b},L.round=function(a,c){var d=new b(this);return(null==a||U(a,0,F,15))&&I(d,~~a+this.e+1,null!=c&&U(c,0,8,15,x)?0|c:O),d},L.shift=function(a){var c=this;return U(a,-C,C,16,"argument")?c.times("1e"+p(a)):new b(c.c&&c.c[0]&&(a<-C||a>C)?c.s*(a<0?0:1/0):c)},L.squareRoot=L.sqrt=function(){var a,c,d,e,f,g=this,j=g.c,k=g.s,l=g.e,m=N+4,n=new b("0.5");if(1!==k||!j||!j[0])return new b(!k||k<0&&(!j||j[0])?NaN:j?g:1/0);if(k=Math.sqrt(+g),0==k||k==1/0?(c=i(j),(c.length+l)%2==0&&(c+="0"),k=Math.sqrt(c),l=h((l+1)/2)-(l<0||l%2),k==1/0?c="1e"+l:(c=k.toExponential(),c=c.slice(0,c.indexOf("e")+1)+l),d=new b(c)):d=new b(k+""),d.c[0])for(l=d.e,k=l+m,k<3&&(k=0);;)if(f=d,d=n.times(f.plus(J(g,f,m,1))),i(f.c).slice(0,k)===(c=i(d.c)).slice(0,k)){if(d.e=0;){for(d=0,o=v[f]%s,p=v[f]/s|0,i=k,g=f+i;g>f;)l=u[--i]%s,m=u[i]/s|0,j=p*l+m*o,l=o*l+j%s*s+q[g]+d,d=(l/r|0)+(j/s|0)+p*m,q[g--]=l%r;q[g]=d}return d?++e:q.shift(),G(a,q,e)},L.toDigits=function(a,c){var d=new b(this);return a=null!=a&&U(a,1,F,18,"precision")?0|a:null,c=null!=c&&U(c,0,8,18,x)?0|c:O,a?I(d,a,c):d},L.toExponential=function(a,b){return d(this,null!=a&&U(a,0,F,19)?~~a+1:null,b,19)},L.toFixed=function(a,b){return d(this,null!=a&&U(a,0,F,20)?~~a+this.e+1:null,b,20)},L.toFormat=function(a,b){var c=d(this,null!=a&&U(a,0,F,21)?~~a+this.e+1:null,b,21);if(this.c){var e,f=c.split("."),g=+Y.groupSize,h=+Y.secondaryGroupSize,i=Y.groupSeparator,j=f[0],k=f[1],l=this.s<0,m=l?j.slice(1):j,n=m.length;if(h&&(e=g,g=h,h=e,n-=e),g>0&&n>0){for(e=n%g||g,j=m.substr(0,e);e0&&(j+=i+m.slice(e)),l&&(j="-"+j)}c=k?j+Y.decimalSeparator+((h=+Y.fractionGroupSize)?k.replace(new RegExp("\\d{"+h+"}\\B","g"),"$&"+Y.fractionGroupSeparator):k):j}return c},L.toFraction=function(a){var c,d,e,f,g,h,j,k,l,m=T,n=this,o=n.c,p=new b(M),q=d=new b(M),r=j=new b(M);if(null!=a&&(T=!1,h=new b(a),T=m,(m=h.isInt())&&!h.lt(M)||(T&&H(22,"max denominator "+(m?"out of range":"not an integer"),a),a=!m&&h.c&&I(h,h.e+1,1).gte(M)?h:null)),!o)return n.toString();for(l=i(o),f=p.e=l.length-n.e-1,p.c[0]=D[(g=f%B)<0?B+g:g],a=!a||h.cmp(p)>0?f>0?p:q:h,g=S,S=1/0,h=new b(l),j.c[0]=0;k=J(h,p,0,1),e=d.plus(k.times(r)),1!=e.cmp(a);)d=r,r=e,q=j.plus(k.times(e=q)),j=e,p=h.minus(k.times(e=p)),h=e;return e=J(a.minus(d),r,0,1),j=j.plus(e.times(q)),d=d.plus(e.times(r)),j.s=q.s=n.s,f*=2,c=J(q,r,f,O).minus(n).abs().cmp(J(j,d,f,O).minus(n).abs())<1?[q.toString(),r.toString()]:[j.toString(),d.toString()],S=g,c},L.toNumber=function(){var a=this;return+a||(a.s?0*a.s:NaN)},L.toPower=L.pow=function(a){var c,d,e=v(a<0?-a:+a),f=this;if(!U(a,-C,C,23,"exponent")&&(!isFinite(a)||e>C&&(a/=0)||parseFloat(a)!=a&&!(a=NaN)))return new b(Math.pow(+f,a));for(c=X?u(X/B+2):0,d=new b(M);;){if(e%2){if(d=d.times(f),!d.c)break;c&&d.c.length>c&&(d.c.length=c)}if(e=v(e/2),!e)break;f=f.times(f),c&&f.c&&f.c.length>c&&(f.c.length=c)}return a<0&&(d=M.div(d)),c?I(d,X,O):d},L.toPrecision=function(a,b){return d(this,null!=a&&U(a,1,F,24,"precision")?0|a:null,b,24)},L.toString=function(a){var b,d=this,e=d.s,f=d.e;return null===f?e?(b="Infinity",e<0&&(b="-"+b)):b="NaN":(b=i(d.c),b=null!=a&&U(a,2,64,25,"base")?c(o(b,f),0|a,10,e):f<=P||f>=Q?n(b,f):o(b,f),e<0&&d.c[0]&&(b="-"+b)),b},L.truncated=L.trunc=function(){return I(new b(this),this.e+1,1)},L.valueOf=L.toJSON=function(){return this.toString()},null!=a&&b.config(a),b}function h(a){var b=0|a;return a>0||a===b?b:b-1}function i(a){for(var b,c,d=1,e=a.length,f=a[0]+"";dj^c?1:-1;for(h=(i=e.length)<(j=f.length)?i:j,g=0;gf[g]^c?1:-1;return i==j?0:i>j^c?1:-1}function k(a,b,c){return(a=p(a))>=b&&a<=c}function l(a){return"[object Array]"==Object.prototype.toString.call(a)}function m(a,b,c){for(var d,e,f=[0],g=0,h=a.length;gc-1&&(null==f[d+1]&&(f[d+1]=0),f[d+1]+=f[d]/c|0,f[d]%=c)}return f.reverse()}function n(a,b){return(a.length>1?a.charAt(0)+"."+a.slice(1):a)+(b<0?"e":"e+")+b}function o(a,b){var c,d;if(b<0){for(d="0.";++b;d+="0");a=d+a}else if(c=a.length,++b>c){for(d="0",b-=c;--b;d+="0");a+=d}else b1?arguments[1]:"utf8"):f(this,b)):arguments.length>1?new a(b,arguments[1]):new a(b)}function d(b,c){if(b=l(b,c<0?0:0|m(c)),!a.TYPED_ARRAY_SUPPORT)for(var d=0;d>>1;return d&&(b.parent=V),b}function m(a){if(a>=U)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U.toString(16)+" bytes");return 0|a}function n(b,c){if(!(this instanceof n))return new n(b,c);var d=new a(b,c);return delete d.parent,d}function o(a,b){if("string"!=typeof a&&(a=String(a)),0===a.length)return 0;switch(b||"utf8"){case"ascii":case"binary":case"raw":return a.length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a.length;case"hex":return a.length>>>1;case"utf8":case"utf-8":return L(a).length;case"base64":return O(a).length;default:return a.length}}function p(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;gd)&&(c=d);for(var e="",f=b;fc)throw new RangeError("Trying to access beyond buffer length")}function C(b,c,d,e,f,g){if(!a.isBuffer(b))throw new TypeError("buffer must be a Buffer instance");if(c>f||cb.length)throw new RangeError("index out of range")}function D(a,b,c,d){b<0&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}function E(a,b,c,d){b<0&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}function F(a,b,c,d,e,f){if(b>e||ba.length)throw new RangeError("index out of range");if(c<0)throw new RangeError("index out of range")}function G(a,b,c,d,e){return e||F(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),S.write(a,b,c,d,23,4),c+4}function H(a,b,c,d,e){return e||F(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),S.write(a,b,c,d,52,8),c+8}function I(a){if(a=J(a).replace(X,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function J(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function K(a){return a<16?"0"+a.toString(16):a.toString(16)}function L(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;g55295&&c<57344){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=e-55296<<10|c-56320|65536,e=null}else e&&((b-=3)>-1&&f.push(239,191,189),e=null);if(c<128){if((b-=1)<0)break;f.push(c)}else if(c<2048){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<2097152))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function M(a){for(var b=[],c=0;c>8,e=c%256,f.push(e),f.push(d);return f}function O(a){return R.toByteArray(I(a))}function P(a,b,c,d){for(var e=0;e=b.length||e>=a.length);e++)b[e+c]=a[e];return e}function Q(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}var R=c(17),S=c(18),T=c(16);b.Buffer=a,b.SlowBuffer=n,b.INSPECT_MAX_BYTES=50,a.poolSize=8192;var U=1073741823,V={};a.TYPED_ARRAY_SUPPORT=function(){try{var a=new ArrayBuffer(0),b=new Uint8Array(a);return b.foo=function(){return 42},42===b.foo()&&"function"==typeof b.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(c){return!1}}(),a.isBuffer=function(a){return!(null==a||!a._isBuffer)},a.compare=function(b,c){if(!a.isBuffer(b)||!a.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(b===c)return 0;for(var d=b.length,e=c.length,f=0,g=Math.min(d,e);fthis.length&&(c=this.length),c<=b)return"";for(;;)switch(a){case"hex":return z(this,b,c);case"utf8":case"utf-8":return w(this,b,c);case"ascii":return x(this,b,c);case"binary":return y(this,b,c);case"base64":return v(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}},a.prototype.equals=function(b){if(!a.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===a.compare(this,b)},a.prototype.inspect=function(){var a="",c=b.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(a+=" ... ")),""},a.prototype.compare=function(b){if(!a.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?0:a.compare(this,b)},a.prototype.indexOf=function(b,c){function d(a,b,c){for(var d=-1,e=0;c+e2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c>>=0,0===this.length)return-1;if(c>=this.length)return-1;if(c<0&&(c=Math.max(this.length+c,0)),"string"==typeof b)return 0===b.length?-1:String.prototype.indexOf.call(this,b,c);if(a.isBuffer(b))return d(this,b,c);if("number"==typeof b)return a.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,b,c):d(this,[b],c);throw new TypeError("val must be string, number or Buffer")},a.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},a.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},a.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(c<0||b<0)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return p(this,a,b,c);case"utf8":case"utf-8":return q(this,a,b,c);case"ascii":return r(this,a,b,c);case"binary":return s(this,a,b,c);case"base64":return t(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(b,c){var d=this.length;b=~~b,c=void 0===c?d:~~c,b<0?(b+=d,b<0&&(b=0)):b>d&&(b=d),c<0?(c+=d,c<0&&(c=0)):c>d&&(c=d),c0&&(e*=256);)d+=this[a+--b]*e;return d},a.prototype.readUInt8=function(a,b){return b||B(a,1,this.length),this[a]},a.prototype.readUInt16LE=function(a,b){return b||B(a,2,this.length),this[a]|this[a+1]<<8},a.prototype.readUInt16BE=function(a,b){return b||B(a,2,this.length),this[a]<<8|this[a+1]},a.prototype.readUInt32LE=function(a,b){return b||B(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},a.prototype.readUInt32BE=function(a,b){return b||B(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},a.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||B(a,b,this.length);for(var d=this[a],e=1,f=0;++f=e&&(d-=Math.pow(2,8*b)),d},a.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||B(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},a.prototype.readInt8=function(a,b){return b||B(a,1,this.length),128&this[a]?(255-this[a]+1)*-1:this[a]},a.prototype.readInt16LE=function(a,b){b||B(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},a.prototype.readInt16BE=function(a,b){b||B(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},a.prototype.readInt32LE=function(a,b){return b||B(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},a.prototype.readInt32BE=function(a,b){return b||B(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},a.prototype.readFloatLE=function(a,b){return b||B(a,4,this.length),S.read(this,a,!0,23,4)},a.prototype.readFloatBE=function(a,b){return b||B(a,4,this.length),S.read(this,a,!1,23,4)},a.prototype.readDoubleLE=function(a,b){return b||B(a,8,this.length),S.read(this,a,!0,52,8)},a.prototype.readDoubleBE=function(a,b){return b||B(a,8,this.length),S.read(this,a,!1,52,8)},a.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||C(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f=0&&(f*=256);)this[b+e]=a/f&255;return b+c},a.prototype.writeUInt8=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,1,255,0),a.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),this[c]=b,c+1},a.prototype.writeUInt16LE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[c]=b,this[c+1]=b>>>8):D(this,b,c,!0),c+2},a.prototype.writeUInt16BE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=b):D(this,b,c,!1),c+2},a.prototype.writeUInt32LE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[c+3]=b>>>24,this[c+2]=b>>>16,this[c+1]=b>>>8,this[c]=b):E(this,b,c,!0),c+4},a.prototype.writeUInt32BE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=b):E(this,b,c,!1),c+4},a.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);C(this,a,b,c,e-1,-e)}var f=0,g=1,h=a<0?1:0;for(this[b]=255&a;++f>0)-h&255;return b+c},a.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);C(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=a<0?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},a.prototype.writeInt8=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,1,127,-128),a.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),b<0&&(b=255+b+1),this[c]=b,c+1},a.prototype.writeInt16LE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[c]=b,this[c+1]=b>>>8):D(this,b,c,!0),c+2},a.prototype.writeInt16BE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=b):D(this,b,c,!1),c+2},a.prototype.writeInt32LE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[c]=b,this[c+1]=b>>>8,this[c+2]=b>>>16,this[c+3]=b>>>24):E(this,b,c,!0),c+4},a.prototype.writeInt32BE=function(b,c,d){return b=+b,c=0|c,d||C(this,b,c,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),a.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=b):E(this,b,c,!1),c+4},a.prototype.writeFloatLE=function(a,b,c){return G(this,a,b,!0,c)},a.prototype.writeFloatBE=function(a,b,c){return G(this,a,b,!1,c)},a.prototype.writeDoubleLE=function(a,b,c){return H(this,a,b,!0,c)},a.prototype.writeDoubleBE=function(a,b,c){return H(this,a,b,!1,c)},a.prototype.copy=function(b,c,d,e){if(d||(d=0),e||0===e||(e=this.length),c>=b.length&&(c=b.length),c||(c=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),b.length-c=this.length)throw new RangeError("start out of bounds");if(c<0||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;d>>32-b},rotr:function(a,b){return a<<32-b|a>>>b},endian:function(a){if(a.constructor==Number)return 16711935&c.rotl(a,8)|4278255360&c.rotl(a,24);for(var b=0;b0;a--)b.push(Math.floor(256*Math.random()));return b},bytesToWords:function(a){for(var b=[],c=0,d=0;c>>5]|=a[c]<<24-d%32;return b},wordsToBytes:function(a){for(var b=[],c=0;c<32*a.length;c+=8)b.push(a[c>>>5]>>>24-c%32&255);return b},bytesToHex:function(a){for(var b=[],c=0;c>>4).toString(16)),b.push((15&a[c]).toString(16));return b.join("")},hexToBytes:function(a){for(var b=[],c=0;c>>6*(3-f)&63)):c.push("=");return c.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/gi,"");for(var c=[],d=0,e=0;d>>6-2*e);return c}};a.exports=c}()},function(a,b,c){var d=Array.isArray,e=Object.prototype.toString;a.exports=d||function(a){return!!a&&"[object Array]"==e.call(a)}},function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(a){function b(a){var b=a.charCodeAt(0);return b===g||b===l?62:b===h||b===m?63:b0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;d>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;e>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}(b)},function(a,b,c){b.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},b.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}}])})}).call(b,c(8)(a))},function(a,b){a.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children=[],a.webpackPolyfill=1),a}},function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_EXP_NAME=void 0;var g=function(){function a(a,b){for(var c=0;c";b["default"]={FulcrumNamespace:l}},function(a,b){Object.defineProperty(b,"__esModule",{value:!0}),Object.getOwnPropertyDescriptors=function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=Object.getOwnPropertyDescriptor(a,c));return b};var c=function(a,b){var c;return b.hasOwnProperty("constructor")||Object.defineProperty(b,"constructor",{value:function(){a.apply(this,arguments)},writable:!0,configurable:!0,enumerable:!1}),c=b.constructor,c.prototype=Object.create(a.prototype,Object.getOwnPropertyDescriptors(b)),c};b.extend=c},function(a,b){function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(b,"__esModule",{value:!0});var d=function(){function a(a,b){for(var c=0;c