restql 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.restql=t()}(this,function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){return function n(i,o){try{var a=t[i](o),s=a.value}catch(e){return void r(e)}if(!a.done)return Promise.resolve(s).then(function(e){n("next",e)},function(e){n("throw",e)});e(s)}("next")})}},i=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=t(function(e){!function(t){var n,i=Object.prototype,o=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",h=t.regeneratorRuntime;if(h)e.exports=h;else{(h=t.regeneratorRuntime=e.exports).wrap=_;var f="suspendedStart",l="suspendedYield",d="executing",p="completed",g={},v={};v[s]=function(){return this};var m=Object.getPrototypeOf,b=m&&m(m(T([])));b&&b!==i&&o.call(b,s)&&(v=b);var y=x.prototype=k.prototype=Object.create(v);E.prototype=y.constructor=x,x.constructor=E,x[c]=E.displayName="GeneratorFunction",h.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},h.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(y),e},h.awrap=function(e){return{__await:e}},R(A.prototype),A.prototype[u]=function(){return this},h.AsyncIterator=A,h.async=function(e,t,r,n){var i=new A(_(e,t,r,n));return h.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},R(y),y[c]="Generator",y[s]=function(){return this},y.toString=function(){return"[object Generator]"},h.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},h.values=T,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function _(e,t,r,n){var i,o,a,s,u=t&&t.prototype instanceof k?t:k,c=Object.create(u.prototype),h=new O(n||[]);return c._invoke=(i=e,o=r,a=h,s=f,function(e,t){if(s===d)throw new Error("Generator is already running");if(s===p){if("throw"===e)throw t;return L()}for(a.method=e,a.arg=t;;){var r=a.delegate;if(r){var n=S(r,a);if(n){if(n===g)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===f)throw s=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=d;var u=w(i,o,a);if("normal"===u.type){if(s=a.done?p:l,u.arg===g)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(s=p,a.method="throw",a.arg=u.arg)}}),c}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function k(){}function E(){}function x(){}function R(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){var t;this._invoke=function(n,i){function a(){return new Promise(function(t,a){!function t(n,i,a,s){var u=w(e[n],e,i);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"===(void 0===h?"undefined":r(h))&&o.call(h,"__await")?Promise.resolve(h.__await).then(function(e){t("next",e,a,s)},function(e){t("throw",e,a,s)}):Promise.resolve(h).then(function(e){c.value=e,a(c)},s)}s(u.arg)}(n,i,t,a)})}return t=t?t.then(a,a):a()}}function S(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,S(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())}),u=function(){return this}()||Function("return this")(),c=u.regeneratorRuntime&&Object.getOwnPropertyNames(u).indexOf("regeneratorRuntime")>=0,h=c&&u.regeneratorRuntime;u.regeneratorRuntime=void 0;var f=s;if(c)u.regeneratorRuntime=h;else try{delete u.regeneratorRuntime}catch(e){u.regeneratorRuntime=void 0}var l=f;var d=function(){this.__data__=[],this.size=0};var p=function(e,t){return e===t||e!=e&&t!=t};var g=function(e,t){for(var r=e.length;r--;)if(p(e[r][0],t))return r;return-1},v=Array.prototype.splice;var m=function(e){var t=this.__data__,r=g(t,e);return!(r<0||(r==t.length-1?t.pop():v.call(t,r,1),--this.size,0))};var b=function(e){var t=this.__data__,r=g(t,e);return r<0?void 0:t[r][1]};var y=function(e){return g(this.__data__,e)>-1};var _=function(e,t){var r=this.__data__,n=g(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function w(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}w.prototype.clear=d,w.prototype.delete=m,w.prototype.get=b,w.prototype.has=y,w.prototype.set=_;var k=w;var E=function(){this.__data__=new k,this.size=0};var x=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var R=function(e){return this.__data__.get(e)};var A=function(e){return this.__data__.has(e)},S="object"==r(e)&&e&&e.Object===Object&&e,j="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,C=S||j||Function("return this")(),O=C.Symbol,T=Object.prototype,L=T.hasOwnProperty,z=T.toString,I=O?O.toStringTag:void 0;var P=function(e){var t=L.call(e,I),r=e[I];try{e[I]=void 0;var n=!0}catch(e){}var i=z.call(e);return n&&(t?e[I]=r:delete e[I]),i},F=Object.prototype.toString;var U=function(e){return F.call(e)},M="[object Null]",B="[object Undefined]",N=O?O.toStringTag:void 0;var D=function(e){return null==e?void 0===e?B:M:N&&N in Object(e)?P(e):U(e)};var q=function(e){var t=void 0===e?"undefined":r(e);return null!=e&&("object"==t||"function"==t)},Z="[object AsyncFunction]",H="[object Function]",Y="[object GeneratorFunction]",W="[object Proxy]";var G,V=function(e){if(!q(e))return!1;var t=D(e);return t==H||t==Y||t==Z||t==W},$=C["__core-js_shared__"],X=(G=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var K=function(e){return!!X&&X in e},J=Function.prototype.toString;var Q=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=/^\[object .+?Constructor\]$/,te=Function.prototype,re=Object.prototype,ne=te.toString,ie=re.hasOwnProperty,oe=RegExp("^"+ne.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ae=function(e){return!(!q(e)||K(e))&&(V(e)?oe:ee).test(Q(e))};var se=function(e,t){return null==e?void 0:e[t]};var ue=function(e,t){var r=se(e,t);return ae(r)?r:void 0},ce=ue(C,"Map"),he=ue(Object,"create");var fe=function(){this.__data__=he?he(null):{},this.size=0};var le=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de="__lodash_hash_undefined__",pe=Object.prototype.hasOwnProperty;var ge=function(e){var t=this.__data__;if(he){var r=t[e];return r===de?void 0:r}return pe.call(t,e)?t[e]:void 0},ve=Object.prototype.hasOwnProperty;var me=function(e){var t=this.__data__;return he?void 0!==t[e]:ve.call(t,e)},be="__lodash_hash_undefined__";var ye=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&void 0===t?be:t,this};function _e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_e.prototype.clear=fe,_e.prototype.delete=le,_e.prototype.get=ge,_e.prototype.has=me,_e.prototype.set=ye;var we=_e;var ke=function(){this.size=0,this.__data__={hash:new we,map:new(ce||k),string:new we}};var Ee=function(e){var t=void 0===e?"undefined":r(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var xe=function(e,t){var r=e.__data__;return Ee(t)?r["string"==typeof t?"string":"hash"]:r.map};var Re=function(e){var t=xe(this,e).delete(e);return this.size-=t?1:0,t};var Ae=function(e){return xe(this,e).get(e)};var Se=function(e){return xe(this,e).has(e)};var je=function(e,t){var r=xe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=ke,Ce.prototype.delete=Re,Ce.prototype.get=Ae,Ce.prototype.has=Se,Ce.prototype.set=je;var Oe=Ce,Te=200;var Le=function(e,t){var r=this.__data__;if(r instanceof k){var n=r.__data__;if(!ce||n.length<Te-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Oe(n)}return r.set(e,t),this.size=r.size,this};function ze(e){var t=this.__data__=new k(e);this.size=t.size}ze.prototype.clear=E,ze.prototype.delete=x,ze.prototype.get=R,ze.prototype.has=A,ze.prototype.set=Le;var Ie=ze;var Pe=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},Fe=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Ue=function(e,t,r){"__proto__"==t&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},Me=Object.prototype.hasOwnProperty;var Be=function(e,t,r){var n=e[t];Me.call(e,t)&&p(n,r)&&(void 0!==r||t in e)||Ue(e,t,r)};var Ne=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),i?Ue(r,s,u):Be(r,s,u)}return r};var De=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var qe=function(e){return null!=e&&"object"==(void 0===e?"undefined":r(e))},Ze="[object Arguments]";var He=function(e){return qe(e)&&D(e)==Ze},Ye=Object.prototype,We=Ye.hasOwnProperty,Ge=Ye.propertyIsEnumerable,Ve=He(function(){return arguments}())?He:function(e){return qe(e)&&We.call(e,"callee")&&!Ge.call(e,"callee")},$e=Array.isArray;var Xe=function(){return!1},Ke=t(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r?C.Buffer:void 0,o=(i?i.isBuffer:void 0)||Xe;e.exports=o}),Je=9007199254740991,Qe=/^(?:0|[1-9]\d*)$/;var et=function(e,t){return!!(t=null==t?Je:t)&&("number"==typeof e||Qe.test(e))&&e>-1&&e%1==0&&e<t},tt=9007199254740991;var rt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=tt},nt={};nt["[object Float32Array]"]=nt["[object Float64Array]"]=nt["[object Int8Array]"]=nt["[object Int16Array]"]=nt["[object Int32Array]"]=nt["[object Uint8Array]"]=nt["[object Uint8ClampedArray]"]=nt["[object Uint16Array]"]=nt["[object Uint32Array]"]=!0,nt["[object Arguments]"]=nt["[object Array]"]=nt["[object ArrayBuffer]"]=nt["[object Boolean]"]=nt["[object DataView]"]=nt["[object Date]"]=nt["[object Error]"]=nt["[object Function]"]=nt["[object Map]"]=nt["[object Number]"]=nt["[object Object]"]=nt["[object RegExp]"]=nt["[object Set]"]=nt["[object String]"]=nt["[object WeakMap]"]=!1;var it=function(e){return qe(e)&&rt(e.length)&&!!nt[D(e)]};var ot=function(e){return function(t){return e(t)}},at=t(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r&&S.process,o=function(){try{return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}),st=at&&at.isTypedArray,ut=st?ot(st):it,ct=Object.prototype.hasOwnProperty;var ht=function(e,t){var r=$e(e),n=!r&&Ve(e),i=!r&&!n&&Ke(e),o=!r&&!n&&!i&&ut(e),a=r||n||i||o,s=a?De(e.length,String):[],u=s.length;for(var c in e)!t&&!ct.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||et(c,u))||s.push(c);return s},ft=Object.prototype;var lt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ft)};var dt=function(e,t){return function(r){return e(t(r))}},pt=dt(Object.keys,Object),gt=Object.prototype.hasOwnProperty;var vt=function(e){if(!lt(e))return pt(e);var t=[];for(var r in Object(e))gt.call(e,r)&&"constructor"!=r&&t.push(r);return t};var mt=function(e){return null!=e&&rt(e.length)&&!V(e)};var bt=function(e){return mt(e)?ht(e):vt(e)};var yt=function(e,t){return e&&Ne(t,bt(t),e)};var _t=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},wt=Object.prototype.hasOwnProperty;var kt=function(e){if(!q(e))return _t(e);var t=lt(e),r=[];for(var n in e)("constructor"!=n||!t&&wt.call(e,n))&&r.push(n);return r};var Et=function(e){return mt(e)?ht(e,!0):kt(e)};var xt=function(e,t){return e&&Ne(t,Et(t),e)},Rt=t(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,i=n&&n.exports===r?C.Buffer:void 0,o=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=o?o(r):new e.constructor(r);return e.copy(n),n}});var At=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var St=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o};var jt=function(){return[]},Ct=Object.prototype.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,Tt=Ot?function(e){return null==e?[]:(e=Object(e),St(Ot(e),function(t){return Ct.call(e,t)}))}:jt;var Lt=function(e,t){return Ne(e,Tt(e),t)};var zt=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},It=dt(Object.getPrototypeOf,Object),Pt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)zt(t,Tt(e)),e=It(e);return t}:jt;var Ft=function(e,t){return Ne(e,Pt(e),t)};var Ut=function(e,t,r){var n=t(e);return $e(e)?n:zt(n,r(e))};var Mt=function(e){return Ut(e,bt,Tt)};var Bt=function(e){return Ut(e,Et,Pt)},Nt=ue(C,"DataView"),Dt=ue(C,"Promise"),qt=ue(C,"Set"),Zt=ue(C,"WeakMap"),Ht="[object Map]",Yt="[object Promise]",Wt="[object Set]",Gt="[object WeakMap]",Vt="[object DataView]",$t=Q(Nt),Xt=Q(ce),Kt=Q(Dt),Jt=Q(qt),Qt=Q(Zt),er=D;(Nt&&er(new Nt(new ArrayBuffer(1)))!=Vt||ce&&er(new ce)!=Ht||Dt&&er(Dt.resolve())!=Yt||qt&&er(new qt)!=Wt||Zt&&er(new Zt)!=Gt)&&(er=function(e){var t=D(e),r="[object Object]"==t?e.constructor:void 0,n=r?Q(r):"";if(n)switch(n){case $t:return Vt;case Xt:return Ht;case Kt:return Yt;case Jt:return Wt;case Qt:return Gt}return t});var tr=er,rr=Object.prototype.hasOwnProperty;var nr=function(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&rr.call(e,"index")&&(r.index=e.index,r.input=e.input),r},ir=C.Uint8Array;var or=function(e){var t=new e.constructor(e.byteLength);return new ir(t).set(new ir(e)),t};var ar=function(e,t){var r=t?or(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var sr=function(e,t){return e.set(t[0],t[1]),e};var ur=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r};var cr=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r},hr=1;var fr=function(e,t,r){var n=t?r(cr(e),hr):cr(e);return ur(n,sr,new e.constructor)},lr=/\w*$/;var dr=function(e){var t=new e.constructor(e.source,lr.exec(e));return t.lastIndex=e.lastIndex,t};var pr=function(e,t){return e.add(t),e};var gr=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},vr=1;var mr=function(e,t,r){var n=t?r(gr(e),vr):gr(e);return ur(n,pr,new e.constructor)},br=O?O.prototype:void 0,yr=br?br.valueOf:void 0;var _r=function(e){return yr?Object(yr.call(e)):{}};var wr=function(e,t){var r=t?or(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},kr="[object Boolean]",Er="[object Date]",xr="[object Map]",Rr="[object Number]",Ar="[object RegExp]",Sr="[object Set]",jr="[object String]",Cr="[object Symbol]",Or="[object ArrayBuffer]",Tr="[object DataView]",Lr="[object Float32Array]",zr="[object Float64Array]",Ir="[object Int8Array]",Pr="[object Int16Array]",Fr="[object Int32Array]",Ur="[object Uint8Array]",Mr="[object Uint8ClampedArray]",Br="[object Uint16Array]",Nr="[object Uint32Array]";var Dr=function(e,t,r,n){var i=e.constructor;switch(t){case Or:return or(e);case kr:case Er:return new i(+e);case Tr:return ar(e,n);case Lr:case zr:case Ir:case Pr:case Fr:case Ur:case Mr:case Br:case Nr:return wr(e,n);case xr:return fr(e,n,r);case Rr:case jr:return new i(e);case Ar:return dr(e);case Sr:return mr(e,n,r);case Cr:return _r(e)}},qr=Object.create,Zr=function(){function e(){}return function(t){if(!q(t))return{};if(qr)return qr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Hr=function(e){return"function"!=typeof e.constructor||lt(e)?{}:Zr(It(e))},Yr=1,Wr=2,Gr=4,Vr="[object Arguments]",$r="[object Function]",Xr="[object GeneratorFunction]",Kr="[object Object]",Jr={};Jr[Vr]=Jr["[object Array]"]=Jr["[object ArrayBuffer]"]=Jr["[object DataView]"]=Jr["[object Boolean]"]=Jr["[object Date]"]=Jr["[object Float32Array]"]=Jr["[object Float64Array]"]=Jr["[object Int8Array]"]=Jr["[object Int16Array]"]=Jr["[object Int32Array]"]=Jr["[object Map]"]=Jr["[object Number]"]=Jr[Kr]=Jr["[object RegExp]"]=Jr["[object Set]"]=Jr["[object String]"]=Jr["[object Symbol]"]=Jr["[object Uint8Array]"]=Jr["[object Uint8ClampedArray]"]=Jr["[object Uint16Array]"]=Jr["[object Uint32Array]"]=!0,Jr["[object Error]"]=Jr[$r]=Jr["[object WeakMap]"]=!1;var Qr=function e(t,r,n,i,o,a){var s,u=r&Yr,c=r&Wr,h=r&Gr;if(n&&(s=o?n(t,i,o,a):n(t)),void 0!==s)return s;if(!q(t))return t;var f=$e(t);if(f){if(s=nr(t),!u)return At(t,s)}else{var l=tr(t),d=l==$r||l==Xr;if(Ke(t))return Rt(t,u);if(l==Kr||l==Vr||d&&!o){if(s=c||d?{}:Hr(t),!u)return c?Ft(t,xt(s,t)):Lt(t,yt(s,t))}else{if(!Jr[l])return o?t:{};s=Dr(t,l,e,u)}}a||(a=new Ie);var p=a.get(t);if(p)return p;a.set(t,s);var g=h?c?Bt:Mt:c?keysIn:bt,v=f?void 0:g(t);return Pe(v||t,function(i,o){v&&(i=t[o=i]),Be(s,o,e(i,r,n,o,t,a))}),s},en=1,tn=4;var rn=function(e){return Qr(e,en|tn)};var nn=function(e,t,r){(void 0===r||p(e[t],r))&&(void 0!==r||t in e)||Ue(e,t,r)};var on=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===r(o[u],u,o))break}return t}}();var an=function(e){return qe(e)&&mt(e)},sn="[object Object]",un=Function.prototype,cn=Object.prototype,hn=un.toString,fn=cn.hasOwnProperty,ln=hn.call(Object);var dn=function(e){if(!qe(e)||D(e)!=sn)return!1;var t=It(e);if(null===t)return!0;var r=fn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&hn.call(r)==ln};var pn=function(e){return Ne(e,Et(e))};var gn=function(e,t,r,n,i,o,a){var s=e[r],u=t[r],c=a.get(u);if(c)nn(e,r,c);else{var h=o?o(s,u,r+"",e,t,a):void 0,f=void 0===h;if(f){var l=$e(u),d=!l&&Ke(u),p=!l&&!d&&ut(u);h=u,l||d||p?$e(s)?h=s:an(s)?h=At(s):d?(f=!1,h=Rt(u,!0)):p?(f=!1,h=wr(u,!0)):h=[]:dn(u)||Ve(u)?(h=s,Ve(s)?h=pn(s):(!q(s)||n&&V(s))&&(h=Hr(u))):f=!1}f&&(a.set(u,h),i(h,u,n,o,a),a.delete(u)),nn(e,r,h)}};var vn=function e(t,r,n,i,o){t!==r&&on(r,function(a,s){if(q(a))o||(o=new Ie),gn(t,r,s,n,e,i,o);else{var u=i?i(t[s],a,s+"",t,r,o):void 0;void 0===u&&(u=a),nn(t,s,u)}},Et)};var mn=function(e){return e};var bn=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},yn=Math.max;var _n=function(e,t,r){return t=yn(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=yn(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),bn(e,this,s)}};var wn=function(e){return function(){return e}},kn=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:wn(t),writable:!0})}:mn,En=800,xn=16,Rn=Date.now;var An=function(e){var t=0,r=0;return function(){var n=Rn(),i=xn-(n-r);if(r=n,i>0){if(++t>=En)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(kn);var Sn=function(e,t){return An(_n(e,t,mn),e+"")};var jn=function(e,t,n){if(!q(n))return!1;var i=void 0===t?"undefined":r(t);return!!("number"==i?mt(n)&&et(t,n.length):"string"==i&&t in n)&&p(n[t],e)};var Cn=function(e){return Sn(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&jn(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}(function(e,t,r){vn(e,t,r)}),On=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},Tn=function(e){return null!=e&&(Ln(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&Ln(t.slice(0,0))||!!e._isBuffer);var t};function Ln(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var zn=Object.prototype.toString;function In(e){return"[object Array]"===zn.call(e)}function Pn(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))}function Fn(e){return"[object Function]"===zn.call(e)}function Un(e,t){if(null!==e&&void 0!==e)if("object"!==(void 0===e?"undefined":r(e))&&(e=[e]),In(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Mn={isArray:In,isArrayBuffer:function(e){return"[object ArrayBuffer]"===zn.call(e)},isBuffer:Tn,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Pn,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===zn.call(e)},isFile:function(e){return"[object File]"===zn.call(e)},isBlob:function(e){return"[object Blob]"===zn.call(e)},isFunction:Fn,isStream:function(e){return Pn(e)&&Fn(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:Un,merge:function e(){var t={};function n(n,i){"object"===r(t[i])&&"object"===(void 0===n?"undefined":r(n))?t[i]=e(t[i],n):t[i]=n}for(var i=0,o=arguments.length;i<o;i++)Un(arguments[i],n);return t},extend:function(e,t,r){return Un(t,function(t,n){e[n]=r&&"function"==typeof t?On(t,r):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}},Bn="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Nn(){throw new Error("setTimeout has not been defined")}function Dn(){throw new Error("clearTimeout has not been defined")}var qn=Nn,Zn=Dn;function Hn(e){if(qn===setTimeout)return setTimeout(e,0);if((qn===Nn||!qn)&&setTimeout)return qn=setTimeout,setTimeout(e,0);try{return qn(e,0)}catch(t){try{return qn.call(null,e,0)}catch(t){return qn.call(this,e,0)}}}"function"==typeof Bn.setTimeout&&(qn=setTimeout),"function"==typeof Bn.clearTimeout&&(Zn=clearTimeout);var Yn,Wn=[],Gn=!1,Vn=-1;function $n(){Gn&&Yn&&(Gn=!1,Yn.length?Wn=Yn.concat(Wn):Vn=-1,Wn.length&&Xn())}function Xn(){if(!Gn){var e=Hn($n);Gn=!0;for(var t=Wn.length;t;){for(Yn=Wn,Wn=[];++Vn<t;)Yn&&Yn[Vn].run();Vn=-1,t=Wn.length}Yn=null,Gn=!1,function(e){if(Zn===clearTimeout)return clearTimeout(e);if((Zn===Dn||!Zn)&&clearTimeout)return Zn=clearTimeout,clearTimeout(e);try{Zn(e)}catch(t){try{return Zn.call(null,e)}catch(t){return Zn.call(this,e)}}}(e)}}function Kn(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Wn.push(new Jn(e,t)),1!==Wn.length||Gn||Hn(Xn)}function Jn(e,t){this.fun=e,this.array=t}Jn.prototype.run=function(){this.fun.apply(null,this.array)};function Qn(){}var ei=Qn,ti=Qn,ri=Qn,ni=Qn,ii=Qn,oi=Qn,ai=Qn;var si=Bn.performance||{},ui=si.now||si.mozNow||si.msNow||si.oNow||si.webkitNow||function(){return(new Date).getTime()};var ci=new Date;var hi={nextTick:Kn,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ei,addListener:ti,once:ri,off:ni,removeListener:ii,removeAllListeners:oi,emit:ai,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*ui.call(si),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-ci)/1e3}},fi=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e},li=function(e,t,r,n,i){var o=new Error(e);return fi(o,t,r,n,i)},di=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(li("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)};function pi(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var gi=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Mn.isURLSearchParams(t))n=t.toString();else{var i=[];Mn.forEach(t,function(e,t){null!==e&&void 0!==e&&(Mn.isArray(e)&&(t+="[]"),Mn.isArray(e)||(e=[e]),Mn.forEach(e,function(e){Mn.isDate(e)?e=e.toISOString():Mn.isObject(e)&&(e=JSON.stringify(e)),i.push(pi(t)+"="+pi(e))}))}),n=i.join("&")}return n&&(e+=(-1===e.indexOf("?")?"?":"&")+n),e},vi=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],mi=Mn.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Mn.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function yi(){this.message="String contains an invalid character"}yi.prototype=new Error,yi.prototype.code=5,yi.prototype.name="InvalidCharacterError";var _i=function(e){for(var t,r,n=String(e),i="",o=0,a=bi;n.charAt(0|o)||(a="=",o%1);i+=a.charAt(63&t>>8-o%1*8)){if((r=n.charCodeAt(o+=.75))>255)throw new yi;t=t<<8|r}return i},wi=Mn.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),Mn.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Mn.isString(n)&&a.push("path="+n),Mn.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ki="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||_i,Ei=function(e){return new Promise(function(t,r){var n=e.data,i=e.headers;Mn.isFormData(n)&&delete i["Content-Type"];var o=new XMLHttpRequest,a="onreadystatechange",s=!1;if("test"===hi.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in o||mi(e.url)||(o=new window.XDomainRequest,a="onload",s=!0,o.onprogress=function(){},o.ontimeout=function(){}),e.auth){var u=e.auth.username||"",c=e.auth.password||"";i.Authorization="Basic "+ki(u+":"+c)}if(o.open(e.method.toUpperCase(),gi(e.url,e.params,e.paramsSerializer),!0),o.timeout=e.timeout,o[a]=function(){if(o&&(4===o.readyState||s)&&(0!==o.status||o.responseURL&&0===o.responseURL.indexOf("file:"))){var n,i,a,u,c,h="getAllResponseHeaders"in o?(n=o.getAllResponseHeaders(),c={},n?(Mn.forEach(n.split("\n"),function(e){if(u=e.indexOf(":"),i=Mn.trim(e.substr(0,u)).toLowerCase(),a=Mn.trim(e.substr(u+1)),i){if(c[i]&&vi.indexOf(i)>=0)return;c[i]="set-cookie"===i?(c[i]?c[i]:[]).concat([a]):c[i]?c[i]+", "+a:a}}),c):c):null,f={data:e.responseType&&"text"!==e.responseType?o.response:o.responseText,status:1223===o.status?204:o.status,statusText:1223===o.status?"No Content":o.statusText,headers:h,config:e,request:o};di(t,r,f),o=null}},o.onerror=function(){r(li("Network Error",e,null,o)),o=null},o.ontimeout=function(){r(li("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",o)),o=null},Mn.isStandardBrowserEnv()){var h=wi,f=(e.withCredentials||mi(e.url))&&e.xsrfCookieName?h.read(e.xsrfCookieName):void 0;f&&(i[e.xsrfHeaderName]=f)}if("setRequestHeader"in o&&Mn.forEach(i,function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete i[t]:o.setRequestHeader(t,e)}),e.withCredentials&&(o.withCredentials=!0),e.responseType)try{o.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&o.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){o&&(o.abort(),r(e),o=null)}),void 0===n&&(n=null),o.send(n)})},xi=[],Ri=[],Ai="undefined"!=typeof Uint8Array?Uint8Array:Array,Si=!1;function ji(){Si=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)xi[t]=e[t],Ri[e.charCodeAt(t)]=t;Ri["-".charCodeAt(0)]=62,Ri["_".charCodeAt(0)]=63}function Ci(e,t,r){for(var n,i,o=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(xi[(i=n)>>18&63]+xi[i>>12&63]+xi[i>>6&63]+xi[63&i]);return o.join("")}function Oi(e){var t;Si||ji();for(var r=e.length,n=r%3,i="",o=[],a=0,s=r-n;a<s;a+=16383)o.push(Ci(e,a,a+16383>s?s:a+16383));return 1===n?(t=e[r-1],i+=xi[t>>2],i+=xi[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=xi[t>>10],i+=xi[t>>4&63],i+=xi[t<<2&63],i+="="),o.push(i),o.join("")}function Ti(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,h=-7,f=r?i-1:0,l=r?-1:1,d=e[t+f];for(f+=l,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+e[t+f],f+=l,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+e[t+f],f+=l,h-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)}function Li(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,h=(1<<c)-1,f=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?l/u:l*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=h?(s=0,a=h):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*g}var zi={}.toString,Ii=Array.isArray||function(e){return"[object Array]"==zi.call(e)};function Pi(){return Ui.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Fi(e,t){if(Pi()<t)throw new RangeError("Invalid typed array length");return Ui.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Ui.prototype:(null===e&&(e=new Ui(t)),e.length=t),e}function Ui(e,t,r){if(!(Ui.TYPED_ARRAY_SUPPORT||this instanceof Ui))return new Ui(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Ni(this,e)}return Mi(this,e,t,r)}function Mi(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);Ui.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Ui.prototype:e=Di(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Ui.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Hi(t,r),i=(e=Fi(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(Zi(t)){var r=0|qi(t.length);return 0===(e=Fi(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Fi(e,0):Di(e,t);if("Buffer"===t.type&&Ii(t.data))return Di(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Bi(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Ni(e,t){if(Bi(t),e=Fi(e,t<0?0:0|qi(t)),!Ui.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Di(e,t){var r=t.length<0?0:0|qi(t.length);e=Fi(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function qi(e){if(e>=Pi())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Pi().toString(16)+" bytes");return 0|e}function Zi(e){return!(null==e||!e._isBuffer)}function Hi(e,t){if(Zi(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return lo(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return po(e).length;default:if(n)return lo(e).length;t=(""+t).toLowerCase(),n=!0}}function Yi(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Wi(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=Ui.from(t,n)),Zi(t))return 0===t.length?-1:Gi(e,t,r,n,i);if("number"==typeof t)return t&=255,Ui.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Gi(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Gi(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var h=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===u)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,l=0;l<u;l++)if(c(e,o+l)!==c(t,l)){f=!1;break}if(f)return o}return-1}function Vi(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function $i(e,t,r,n){return go(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function Xi(e,t,r){return 0===t&&r===e.length?Oi(e):Oi(e.slice(t,r))}function Ki(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],h=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(h=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(h=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(h=u)}null===h?(h=65533,f=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=f}return function(e){var t=e.length;if(t<=Ji)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Ji));return r}(n)}Ui.TYPED_ARRAY_SUPPORT=void 0===Bn.TYPED_ARRAY_SUPPORT||Bn.TYPED_ARRAY_SUPPORT,Ui.poolSize=8192,Ui._augment=function(e){return e.__proto__=Ui.prototype,e},Ui.from=function(e,t,r){return Mi(null,e,t,r)},Ui.TYPED_ARRAY_SUPPORT&&(Ui.prototype.__proto__=Uint8Array.prototype,Ui.__proto__=Uint8Array),Ui.alloc=function(e,t,r){return n=null,o=t,a=r,Bi(i=e),i<=0?Fi(n,i):void 0!==o?"string"==typeof a?Fi(n,i).fill(o,a):Fi(n,i).fill(o):Fi(n,i);var n,i,o,a},Ui.allocUnsafe=function(e){return Ni(null,e)},Ui.allocUnsafeSlow=function(e){return Ni(null,e)},Ui.isBuffer=vo,Ui.compare=function(e,t){if(!Zi(e)||!Zi(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},Ui.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Ui.concat=function(e,t){if(!Ii(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Ui.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Ui.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!Zi(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},Ui.byteLength=Hi,Ui.prototype._isBuffer=!0,Ui.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Yi(this,t,t+1);return this},Ui.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Yi(this,t,t+3),Yi(this,t+1,t+2);return this},Ui.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Yi(this,t,t+7),Yi(this,t+1,t+6),Yi(this,t+2,t+5),Yi(this,t+3,t+4);return this},Ui.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Ki(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return to(this,t,r);case"utf8":case"utf-8":return Ki(this,t,r);case"ascii":return Qi(this,t,r);case"latin1":case"binary":return eo(this,t,r);case"base64":return Xi(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ro(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},Ui.prototype.equals=function(e){if(!Zi(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Ui.compare(this,e)},Ui.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Ui.prototype.compare=function(e,t,r,n,i){if(!Zi(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),h=0;h<s;++h)if(u[h]!==c[h]){o=u[h],a=c[h];break}return o<a?-1:a<o?1:0},Ui.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Ui.prototype.indexOf=function(e,t,r){return Wi(this,e,t,r,!0)},Ui.prototype.lastIndexOf=function(e,t,r){return Wi(this,e,t,r,!1)},Ui.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,c,h,f,l,d,p=!1;;)switch(n){case"hex":return Vi(this,e,t,r);case"utf8":case"utf-8":return l=t,d=r,go(lo(e,(f=this).length-l),f,l,d);case"ascii":return $i(this,e,t,r);case"latin1":case"binary":return $i(this,e,t,r);case"base64":return u=this,c=t,h=r,go(po(e),u,c,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=r,go(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,(o=this).length-a),o,a,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},Ui.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ji=4096;function Qi(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function eo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function to(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=fo(e[o]);return i}function ro(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function no(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function io(e,t,r,n,i,o){if(!Zi(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function oo(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function ao(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function so(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function uo(e,t,r,n,i){return i||so(e,0,r,4),Li(e,t,r,n,23,4),r+4}function co(e,t,r,n,i){return i||so(e,0,r,8),Li(e,t,r,n,52,8),r+8}Ui.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Ui.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Ui.prototype;else{var i=t-e;r=new Ui(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},Ui.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||no(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},Ui.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||no(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Ui.prototype.readUInt8=function(e,t){return t||no(e,1,this.length),this[e]},Ui.prototype.readUInt16LE=function(e,t){return t||no(e,2,this.length),this[e]|this[e+1]<<8},Ui.prototype.readUInt16BE=function(e,t){return t||no(e,2,this.length),this[e]<<8|this[e+1]},Ui.prototype.readUInt32LE=function(e,t){return t||no(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ui.prototype.readUInt32BE=function(e,t){return t||no(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ui.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||no(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},Ui.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||no(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Ui.prototype.readInt8=function(e,t){return t||no(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ui.prototype.readInt16LE=function(e,t){t||no(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Ui.prototype.readInt16BE=function(e,t){t||no(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Ui.prototype.readInt32LE=function(e,t){return t||no(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ui.prototype.readInt32BE=function(e,t){return t||no(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ui.prototype.readFloatLE=function(e,t){return t||no(e,4,this.length),Ti(this,e,!0,23,4)},Ui.prototype.readFloatBE=function(e,t){return t||no(e,4,this.length),Ti(this,e,!1,23,4)},Ui.prototype.readDoubleLE=function(e,t){return t||no(e,8,this.length),Ti(this,e,!0,52,8)},Ui.prototype.readDoubleBE=function(e,t){return t||no(e,8,this.length),Ti(this,e,!1,52,8)},Ui.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||io(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},Ui.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||io(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},Ui.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,1,255,0),Ui.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ui.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,2,65535,0),Ui.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):oo(this,e,t,!0),t+2},Ui.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,2,65535,0),Ui.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):oo(this,e,t,!1),t+2},Ui.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,4,4294967295,0),Ui.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ao(this,e,t,!0),t+4},Ui.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,4,4294967295,0),Ui.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ao(this,e,t,!1),t+4},Ui.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);io(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},Ui.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);io(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},Ui.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,1,127,-128),Ui.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ui.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,2,32767,-32768),Ui.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):oo(this,e,t,!0),t+2},Ui.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,2,32767,-32768),Ui.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):oo(this,e,t,!1),t+2},Ui.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,4,2147483647,-2147483648),Ui.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ao(this,e,t,!0),t+4},Ui.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||io(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ui.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ao(this,e,t,!1),t+4},Ui.prototype.writeFloatLE=function(e,t,r){return uo(this,e,t,!0,r)},Ui.prototype.writeFloatBE=function(e,t,r){return uo(this,e,t,!1,r)},Ui.prototype.writeDoubleLE=function(e,t,r){return co(this,e,t,!0,r)},Ui.prototype.writeDoubleBE=function(e,t,r){return co(this,e,t,!1,r)},Ui.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!Ui.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},Ui.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Ui.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=Zi(e)?e:lo(new Ui(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var ho=/[^+\/0-9A-Za-z-_]/g;function fo(e){return e<16?"0"+e.toString(16):e.toString(16)}function lo(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function po(e){return function(e){var t,r,n,i,o,a;Si||ji();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Ai(3*s/4-o),n=o>0?s-4:s;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Ri[e.charCodeAt(t)]<<18|Ri[e.charCodeAt(t+1)]<<12|Ri[e.charCodeAt(t+2)]<<6|Ri[e.charCodeAt(t+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Ri[e.charCodeAt(t)]<<2|Ri[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=Ri[e.charCodeAt(t)]<<10|Ri[e.charCodeAt(t+1)]<<4|Ri[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){var t;if((e=(t=e,t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(ho,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function go(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function vo(e){return null!=e&&(!!e._isBuffer||mo(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&mo(t.slice(0,0)));var t}function mo(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var bo,yo,_o=Co(Bn.fetch)&&Co(Bn.ReadableStream);function wo(e){yo||(yo=new Bn.XMLHttpRequest).open("GET",Bn.location.host?"/":"https://example.com");try{return yo.responseType=e,yo.responseType===e}catch(e){return!1}}var ko=void 0!==Bn.ArrayBuffer,Eo=ko&&Co(Bn.ArrayBuffer.prototype.slice),xo=ko&&wo("arraybuffer"),Ro=!_o&&Eo&&wo("ms-stream"),Ao=!_o&&ko&&wo("moz-chunked-arraybuffer"),So=Co(yo.overrideMimeType),jo=Co(Bn.VBArray);function Co(e){return"function"==typeof e}yo=null;var Oo="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},To=/%[sdj%]/g;var Lo,zo,Io={};function Po(e,t){var r={seen:[],stylize:Uo};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Do(t)?r.showHidden=t:t&&function(e,t){if(!t||!Wo(t))return e;var r=Object.keys(t),n=r.length;for(;n--;)e[r[n]]=t[r[n]]}(r,t),Ho(r.showHidden)&&(r.showHidden=!1),Ho(r.depth)&&(r.depth=2),Ho(r.colors)&&(r.colors=!1),Ho(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Fo),Mo(r,e,r.depth)}function Fo(e,t){var r=Po.styles[t];return r?"["+Po.colors[r][0]+"m"+e+"["+Po.colors[r][1]+"m":e}function Uo(e,t){return e}function Mo(e,t,r){if(e.customInspect&&t&&$o(t.inspect)&&t.inspect!==Po&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return Zo(n)||(n=Mo(e,n,r)),n}var i=function(e,t){if(Ho(t))return e.stylize("undefined","undefined");if(Zo(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(n=t,"number"==typeof n)return e.stylize(""+t,"number");var n;if(Do(t))return e.stylize(""+t,"boolean");if(qo(t))return e.stylize("null","null")}(e,t);if(i)return i;var o,a=Object.keys(t),s=(o={},a.forEach(function(e,t){o[e]=!0}),o);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Vo(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Bo(t);if(0===a.length){if($o(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(Yo(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Go(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Vo(t))return Bo(t)}var c,h,f="",l=!1,d=["{","}"];(c=t,Array.isArray(c)&&(l=!0,d=["[","]"]),$o(t))&&(f=" [Function"+(t.name?": "+t.name:"")+"]");return Yo(t)&&(f=" "+RegExp.prototype.toString.call(t)),Go(t)&&(f=" "+Date.prototype.toUTCString.call(t)),Vo(t)&&(f=" "+Bo(t)),0!==a.length||l&&0!=t.length?r<0?Yo(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),h=l?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)Jo(t,String(a))?o.push(No(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(No(e,t,r,n,i,!0))}),o}(e,t,r,s,a):a.map(function(n){return No(e,t,r,s,n,l)}),e.seen.pop(),function(e,t,r){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(h,f,d)):d[0]+f+d[1]}function Bo(e){return"["+Error.prototype.toString.call(e)+"]"}function No(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),Jo(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=qo(r)?Mo(e,u.value,null):Mo(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),Ho(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Do(e){return"boolean"==typeof e}function qo(e){return null===e}function Zo(e){return"string"==typeof e}function Ho(e){return void 0===e}function Yo(e){return Wo(e)&&"[object RegExp]"===Ko(e)}function Wo(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e}function Go(e){return Wo(e)&&"[object Date]"===Ko(e)}function Vo(e){return Wo(e)&&("[object Error]"===Ko(e)||e instanceof Error)}function $o(e){return"function"==typeof e}function Xo(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(void 0===e?"undefined":r(e))||void 0===e}function Ko(e){return Object.prototype.toString.call(e)}function Jo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qo(){}function ea(){ea.init.call(this)}function ta(e){return void 0===e._maxListeners?ea.defaultMaxListeners:e._maxListeners}function ra(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]):(o=e._events=new Qo,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=ta(e))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=r,++e._eventsCount;return e}function na(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function ia(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function oa(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}function aa(){this.head=null,this.tail=null,this.length=0}Po.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Po.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Qo.prototype=Object.create(null),ea.EventEmitter=ea,ea.usingDomains=!1,ea.prototype.domain=void 0,ea.prototype._events=void 0,ea.prototype._maxListeners=void 0,ea.defaultMaxListeners=10,ea.init=function(){this.domain=null,ea.usingDomains&&(!zo.active||this instanceof zo.Domain||(this.domain=zo.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Qo,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ea.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},ea.prototype.getMaxListeners=function(){return ta(this)},ea.prototype.emit=function(e){var t,r,n,i,o,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(r=a[e]))return!1;var h="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=oa(e,n),o=0;o<n;++o)i[o].call(r)}(r,h,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=oa(e,i),a=0;a<i;++a)o[a].call(r,n)}(r,h,this,arguments[1]);break;case 3:!function(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=oa(e,o),s=0;s<o;++s)a[s].call(r,n,i)}(r,h,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=oa(e,a),u=0;u<a;++u)s[u].call(r,n,i,o)}(r,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=oa(e,i),a=0;a<i;++a)o[a].apply(r,n)}(r,h,this,i)}return!0},ea.prototype.addListener=function(e,t){return ra(this,e,t,!1)},ea.prototype.on=ea.prototype.addListener,ea.prototype.prependListener=function(e,t){return ra(this,e,t,!0)},ea.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,na(this,e,t)),this},ea.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,na(this,e,t)),this},ea.prototype.removeListener=function(e,t){var r,n,i,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener&&r.listener===t)0==--this._eventsCount?this._events=new Qo:(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new Qo,this;delete n[e]}else!function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i);n.removeListener&&this.emit("removeListener",e,a||t)}return this},ea.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new Qo,this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=new Qo:delete r[e]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new Qo,this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},ea.prototype.listeners=function(e){var t,r=this._events;return r&&(t=r[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[]},ea.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):ia.call(e,t)},ea.prototype.listenerCount=ia,ea.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},aa.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},aa.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},aa.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},aa.prototype.clear=function(){this.head=this.tail=null,this.length=0},aa.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},aa.prototype.concat=function(e){if(0===this.length)return Ui.alloc(0);if(1===this.length)return this.head.data;for(var t=Ui.allocUnsafe(e>>>0),r=this.head,n=0;r;)r.data.copy(t,n),n+=r.data.length,r=r.next;return t};var sa=Ui.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ua(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!sa(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=ha;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=fa;break;default:return void(this.write=ca)}this.charBuffer=new Ui(6),this.charReceived=0,this.charLength=0}function ca(e){return e.toString(this.encoding)}function ha(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function fa(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}ua.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var i;n=(t+=e.toString(this.encoding,0,n)).length-1;if((i=t.charCodeAt(n))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},ua.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},ua.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t},pa.ReadableState=da;var la=function(e){Ho(Lo)&&(Lo=hi.env.NODE_DEBUG||""),e=e.toUpperCase(),Io[e]||(new RegExp("\\b"+e+"\\b","i").test(Lo)?Io[e]=function(){var t=function(e){if(!Zo(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Po(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(e).replace(To,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),a=n[r];r<i;a=n[++r])qo(a)||!Wo(a)?o+=" "+a:o+=" "+Po(a);return o}.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:Io[e]=function(){});return Io[e]}("stream");function da(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Da&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new aa,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new ua(e.encoding),this.encoding=e.encoding)}function pa(e){if(!(this instanceof pa))return new pa(e);this._readableState=new da(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),ea.call(this)}function ga(e,t,r,n,i){var o,a,s,u=function(e,t){var r=null;vo(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(t,r);if(u)e.emit("error",u);else if(null===r)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,ba(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var c=new Error("stream.push() after EOF");e.emit("error",c)}else if(t.endEmitted&&i){var h=new Error("stream.unshift() after end event");e.emit("error",h)}else{var f;!t.decoder||i||n||(r=t.decoder.write(r),f=!t.objectMode&&0===r.length),i||(t.reading=!1),f||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&ba(e))),o=e,(a=t).readingMore||(a.readingMore=!0,Kn(_a,o,a))}else i||(t.reading=!1);return!(s=t).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}Oo(pa,ea),pa.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=Ui.from(e,t),t=""),ga(this,r,e,t,!1)},pa.prototype.unshift=function(e){return ga(this,this._readableState,e,"",!0)},pa.prototype.isPaused=function(){return!1===this._readableState.flowing},pa.prototype.setEncoding=function(e){return this._readableState.decoder=new ua(e),this._readableState.encoding=e,this};var va=8388608;function ma(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=((r=e)>=va?r=va:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function ba(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(la("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Kn(ya,e):ya(e))}function ya(e){la("emit readable"),e.emit("readable"),Ea(e)}function _a(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(la("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function wa(e){la("readable nexttick read 0"),e.read(0)}function ka(e,t){t.reading||(la("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ea(e),t.flowing&&!t.reading&&e.read(0)}function Ea(e){var t=e._readableState;for(la("flow",t.flowing);t.flowing&&null!==e.read(););}function xa(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=Ui.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function Ra(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Kn(Aa,t,e))}function Aa(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Sa(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ja(){}function Ca(e,t){Object.defineProperty(this,"buffer",{get:function e(t,r){if(Ho(Bn.process))return function(){return e(t,r).apply(this,arguments)};if(!0===hi.noDeprecation)return t;var n=!1;return function(){if(!n){if(hi.throwDeprecation)throw new Error(r);hi.traceDeprecation?console.trace(r):console.error(r),n=!0}return t.apply(this,arguments)}}(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Da&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(a=r,a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,t)!function(e,t,r,n,i){--t.pendingcb,r?Kn(i,n):i(n);e._writableState.errorEmitted=!0,e.emit("error",n)}(e,r,n,t,i);else{var o=Ia(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||za(e,r),n?Kn(La,e,r,o,i):La(e,r,o,i)}var a}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ua(this)}function Oa(e){if(!(this instanceof Oa||this instanceof Da))return new Oa(e);this._writableState=new Ca(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),ea.call(this)}function Ta(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function La(e,t,r,n){var i,o;r||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),Fa(e,t)}function za(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0;r;)i[a]=r,r=r.next,a+=1;Ta(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Ua(t)}else{for(;r;){var s=r.chunk,u=r.encoding,c=r.callback;if(Ta(e,t,!1,t.objectMode?1:s.length,s,u,c),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function Ia(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Pa(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Fa(e,t){var r=Ia(t);return r&&(0===t.pendingcb?(Pa(e,t),t.finished=!0,e.emit("finish")):Pa(e,t)),r}function Ua(e){var t=this;this.next=null,this.entry=null,this.finish=function(r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}pa.prototype.read=function(e){la("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return la("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Ra(this):ba(this),null;if(0===(e=ma(e,t))&&t.ended)return 0===t.length&&Ra(this),null;var n,i=t.needReadable;return la("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&la("length less than watermark",i=!0),t.ended||t.reading?la("reading or ended",i=!1):i&&(la("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=ma(r,t))),null===(n=e>0?xa(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ra(this)),null!==n&&this.emit("data",n),n},pa.prototype._read=function(e){this.emit("error",new Error("not implemented"))},pa.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,la("pipe count=%d opts=%j",n.pipesCount,t);var i=!t||!1!==t.end?a:h;function o(e){la("onunpipe"),e===r&&h()}function a(){la("onend"),e.end()}n.endEmitted?Kn(i):r.once("end",i),e.on("unpipe",o);var s,u=(s=r,function(){var e=s._readableState;la("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s.listeners("data").length&&(e.flowing=!0,Ea(s))});e.on("drain",u);var c=!1;function h(){la("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",h),r.removeListener("data",l),c=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}var f=!1;function l(t){la("ondata"),f=!1,!1!==e.write(t)||f||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Sa(n.pipes,e))&&!c&&(la("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function d(t){var r;la("onerror",t),v(),e.removeListener("error",d),0===(r="error",e.listeners(r).length)&&e.emit("error",t)}function p(){e.removeListener("finish",g),v()}function g(){la("onfinish"),e.removeListener("close",p),v()}function v(){la("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",p),e.once("finish",g),e.emit("pipe",r),n.flowing||(la("pipe resume"),r.resume()),e},pa.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=Sa(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},pa.prototype.on=function(e,t){var r=ea.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&ba(this):Kn(wa,this))}return r},pa.prototype.addListener=pa.prototype.on,pa.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(la("resume"),r.flowing=!0,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,Kn(ka,e,t))),this},pa.prototype.pause=function(){return la("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(la("pause"),this._readableState.flowing=!1,this.emit("pause")),this},pa.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;e.on("end",function(){if(la("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){(la("wrapped data"),t.decoder&&(i=t.decoder.write(i)),!t.objectMode||null!==i&&void 0!==i)&&((t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause())))});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}(["error","close","destroy","pause","resume"],function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){la("wrapped _read",t),r&&(r=!1,e.resume())},n},pa._fromList=xa,Oa.WritableState=Ca,Oo(Oa,ea),Ca.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},Oa.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Oa.prototype.write=function(e,t,r){var n,i,o,a,s,u,c,h,f,l=this._writableState,d=!1;return"function"==typeof t&&(r=t,t=null),Ui.isBuffer(e)?t="buffer":t||(t=l.defaultEncoding),"function"!=typeof r&&(r=ja),l.ended?(c=this,h=r,f=new Error("write after end"),c.emit("error",f),Kn(h,f)):(n=this,i=l,a=r,s=!0,u=!1,null===(o=e)?u=new TypeError("May not write null values to stream"):Ui.isBuffer(o)||"string"==typeof o||void 0===o||i.objectMode||(u=new TypeError("Invalid non-string/buffer chunk")),u&&(n.emit("error",u),Kn(a,u),s=!1),s&&(l.pendingcb++,d=function(e,t,r,n,i){o=t,a=r,s=n,o.objectMode||!1===o.decodeStrings||"string"!=typeof a||(a=Ui.from(a,s)),r=a,Ui.isBuffer(r)&&(n="buffer");var o,a,s;var u=t.objectMode?1:r.length;t.length+=u;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest=new function(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}(r,n,i),h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ta(e,t,!1,u,r,n,i);return c}(this,l,e,t,r))),d},Oa.prototype.cork=function(){this._writableState.corked++},Oa.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||za(this,e))},Oa.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Oa.prototype._write=function(e,t,r){r(new Error("not implemented"))},Oa.prototype._writev=null,Oa.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,Fa(e,t),r&&(t.finished?Kn(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Oo(Da,pa);for(var Ma=Object.keys(Oa.prototype),Ba=0;Ba<Ma.length;Ba++){var Na=Ma[Ba];Da.prototype[Na]||(Da.prototype[Na]=Oa.prototype[Na])}function Da(e){if(!(this instanceof Da))return new Da(e);pa.call(this,e),Oa.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",qa)}function qa(){this.allowHalfOpen||this._writableState.ended||Kn(Za,this)}function Za(e){e.end()}function Ha(e){this.afterTransform=function(t,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Ya(e){if(!(this instanceof Ya))return new Ya(e);Da.call(this,e),this._transformState=new Ha(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){Wa(t,e)}):Wa(t)})}function Wa(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function Ga(e){if(!(this instanceof Ga))return new Ga(e);Ya.call(this,e)}function Va(){ea.call(this)}Oo(Ya,Da),Ya.prototype.push=function(e,t){return this._transformState.needTransform=!1,Da.prototype.push.call(this,e,t)},Ya.prototype._transform=function(e,t,r){throw new Error("Not implemented")},Ya.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Ya.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Oo(Ga,Ya),Ga.prototype._transform=function(e,t,r){r(null,e)},Oo(Va,ea),Va.Readable=pa,Va.Writable=Oa,Va.Duplex=Da,Va.Transform=Ya,Va.PassThrough=Ga,Va.Stream=Va,Va.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(c(),0===ea.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e};var $a=Object.freeze({default:Va,Readable:pa,Writable:Oa,Duplex:Da,Transform:Ya,PassThrough:Ga,Stream:Va}),Xa=3,Ka=4;function Ja(e,t,r){var n,i=this;if(pa.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){Kn(function(){i.emit("close")})}),"fetch"===r){i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText;for(var o,a,s=t.headers[Symbol.iterator]();o=(a=s.next()).value,!a.done;)i.headers[o[0].toLowerCase()]=o[1],i.rawHeaders.push(o[0],o[1]);var u=t.body.getReader();(n=function(){u.read().then(function(e){i._destroyed||(e.done?i.push(null):(i.push(new Ui(e.value)),n()))})})()}else{if(i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===i.headers[r]&&(i.headers[r]=[]),i.headers[r].push(t[2])):void 0!==i.headers[r]?i.headers[r]+=", "+t[2]:i.headers[r]=t[2],i.rawHeaders.push(t[1],t[2])}}),i._charset="x-user-defined",!So){var c=i.rawHeaders["mime-type"];if(c){var h=c.match(/;\s*charset=([^;])(;|$)/);h&&(i._charset=h[1].toLowerCase())}i._charset||(i._charset="utf-8")}}}function Qa(e){var t,r=this;Oa.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new Ui(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i=!0;if("disable-fetch"===e.mode)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!So;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=(n=t,_o&&i?"fetch":Ao?"moz-chunked-arraybuffer":Ro?"ms-stream":xo&&n?"arraybuffer":jo&&n?"text:vbarray":"text"),r.on("finish",function(){r._onFinish()})}Oo(Ja,pa),Ja.prototype._read=function(){},Ja.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==Ka)break;try{r=new Bn.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new Ui(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var n=r.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new Ui(n.length),o=0;o<n.length;o++)i[o]=255&n.charCodeAt(o);e.push(i)}else e.push(n,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==Ka||!t.response)break;r=t.response,e.push(new Ui(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==Xa||!r)break;e.push(new Ui(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==Xa)break;var a=new Bn.MSStreamReader;a.onprogress=function(){a.result.byteLength>e._pos&&(e.push(new Ui(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(r)}e._xhr.readyState===Ka&&"ms-stream"!==e._mode&&e.push(null)},Oo(Qa,Oa);var es=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];Qa.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===es.indexOf(r)&&(this._headers[r]={name:e,value:t})},Qa.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},Qa.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},Qa.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,r=e._opts,n=e._headers;if("POST"!==r.method&&"PUT"!==r.method&&"PATCH"!==r.method||(t=function(){if(void 0!==bo)return bo;try{new Bn.Blob([new ArrayBuffer(1)]),bo=!0}catch(e){bo=!1}return bo}()?new Bn.Blob(e._body.map(function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(vo(e)){for(var t=new Uint8Array(e.length),r=e.length,n=0;n<r;n++)t[n]=e[n];return t.buffer}throw new Error("Argument must be a Buffer")}(e)}),{type:(n["content-type"]||{}).value||""}):Ui.concat(e._body).toString()),"fetch"===e._mode){var i=Object.keys(n).map(function(e){return[n[e].name,n[e].value]});Bn.fetch(e._opts.url,{method:e._opts.method,headers:i,body:t,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)})}else{var o=e._xhr=new Bn.XMLHttpRequest;try{o.open(e._opts.method,e._opts.url,!0)}catch(t){return void Kn(function(){e.emit("error",t)})}"responseType"in o&&(o.responseType=e._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(n).forEach(function(e){o.setRequestHeader(n[e].name,n[e].value)}),e._response=null,o.onreadystatechange=function(){switch(o.readyState){case Xa:case Ka:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(o.onprogress=function(){e._onXHRProgress()}),o.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{o.send(t)}catch(t){return void Kn(function(){e.emit("error",t)})}}}},Qa.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},Qa.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Ja(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},Qa.prototype._write=function(e,t,r){this._body.push(e),r()},Qa.prototype.abort=Qa.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},Qa.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),Oa.prototype.end.call(this,e,t,r)},Qa.prototype.flushHeaders=function(){},Qa.prototype.setTimeout=function(){},Qa.prototype.setNoDelay=function(){},Qa.prototype.setSocketKeepAlive=function(){};var ts=2147483647,rs=36,ns=1,is=26,os=38,as=700,ss=72,us=128,cs="-",hs=/[^\x20-\x7E]/,fs=/[\x2E\u3002\uFF0E\uFF61]/g,ls={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ds=rs-ns,ps=Math.floor,gs=String.fromCharCode;function vs(e){throw new RangeError(ls[e])}function ms(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function bs(e,t,r){var n=0;for(e=r?ps(e/as):e>>1,e+=ps(e/t);e>ds*is>>1;n+=rs)e=ps(e/ds);return ps(n+(ds+1)*e/(e+os))}function ys(e){return r=function(e){return hs.test(e)?"xn--"+function(e){var t,r,n,i,o,a,s,u,c,h,f,l,d,p,g,v=[];for(l=(e=function(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}(e)).length,t=us,r=0,o=ss,a=0;a<l;++a)(f=e[a])<128&&v.push(gs(f));for(n=i=v.length,i&&v.push(cs);n<l;){for(s=ts,a=0;a<l;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>ps((ts-r)/(d=n+1))&&vs("overflow"),r+=(s-t)*d,t=s,a=0;a<l;++a)if((f=e[a])<t&&++r>ts&&vs("overflow"),f==t){for(u=r,c=rs;!(u<(h=c<=o?ns:c>=o+is?is:c-o));c+=rs)g=u-h,p=rs-h,v.push(gs(ms(h+g%p,0))),u=ps(g/p);v.push(gs(ms(u,0))),o=bs(r,d,n==i),r=0,++n}++r,++t}return v.join("")}(e):e},n=(t=e).split("@"),i="",n.length>1&&(i=n[0]+"@",t=n[1]),i+function(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}((t=t.replace(fs,".")).split("."),r).join(".");var t,r,n,i}var _s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function ws(e){switch(void 0===e?"undefined":r(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function ks(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var Es=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t};function xs(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s,u,c=e.length;a>0&&c>a&&(c=a);for(var h=0;h<c;++h){var f,l,d,p,g=e[h].replace(o,"%20"),v=g.indexOf(r);v>=0?(f=g.substr(0,v),l=g.substr(v+1)):(f=g,l=""),d=decodeURIComponent(f),p=decodeURIComponent(l),s=i,u=d,Object.prototype.hasOwnProperty.call(s,u)?_s(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i}var Rs={parse:Ns,resolve:Hs,resolveObject:Ys,format:qs,Url:As};function As(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Ss=/^([a-z0-9.+-]+:)/i,js=/:[0-9]*$/,Cs=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Os=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Ts=["'"].concat(Os),Ls=["%","/","?",";","#"].concat(Ts),zs=["/","?","#"],Is=255,Ps=/^[+a-z0-9A-Z_-]{0,63}$/,Fs=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Us={javascript:!0,"javascript:":!0},Ms={javascript:!0,"javascript:":!0},Bs={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ns(e,t,r){if(e&&Wo(e)&&e instanceof As)return e;var n=new As;return n.parse(e,t,r),n}function Ds(e,t,n,i){if(!Zo(t))throw new TypeError("Parameter 'url' must be a string, not "+(void 0===t?"undefined":r(t)));var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",s=t.split(a);s[0]=s[0].replace(/\\/g,"/");var u=t=s.join(a);if(u=u.trim(),!i&&1===t.split("#").length){var c=Cs.exec(u);if(c)return e.path=u,e.href=u,e.pathname=c[1],c[2]?(e.search=c[2],e.query=n?xs(e.search.substr(1)):e.search.substr(1)):n&&(e.search="",e.query={}),e}var h,f,l,d,p=Ss.exec(u);if(p){var g=(p=p[0]).toLowerCase();e.protocol=g,u=u.substr(p.length)}if(i||p||u.match(/^\/\/[^@\/]+@[^@\/]+/)){var v="//"===u.substr(0,2);!v||p&&Ms[p]||(u=u.substr(2),e.slashes=!0)}if(!Ms[p]&&(v||p&&!Bs[p])){var m,b,y=-1;for(h=0;h<zs.length;h++)-1!==(f=u.indexOf(zs[h]))&&(-1===y||f<y)&&(y=f);for(-1!==(b=-1===y?u.lastIndexOf("@"):u.lastIndexOf("@",y))&&(m=u.slice(0,b),u=u.slice(b+1),e.auth=decodeURIComponent(m)),y=-1,h=0;h<Ls.length;h++)-1!==(f=u.indexOf(Ls[h]))&&(-1===y||f<y)&&(y=f);-1===y&&(y=u.length),e.host=u.slice(0,y),u=u.slice(y),Ws(e),e.hostname=e.hostname||"";var _="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!_){var w=e.hostname.split(/\./);for(h=0,l=w.length;h<l;h++){var k=w[h];if(k&&!k.match(Ps)){for(var E="",x=0,R=k.length;x<R;x++)k.charCodeAt(x)>127?E+="x":E+=k[x];if(!E.match(Ps)){var A=w.slice(0,h),S=w.slice(h+1),j=k.match(Fs);j&&(A.push(j[1]),S.unshift(j[2])),S.length&&(u="/"+S.join(".")+u),e.hostname=A.join(".");break}}}}e.hostname.length>Is?e.hostname="":e.hostname=e.hostname.toLowerCase(),_||(e.hostname=ys(e.hostname)),d=e.port?":"+e.port:"";var C=e.hostname||"";e.host=C+d,e.href+=e.host,_&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!Us[g])for(h=0,l=Ts.length;h<l;h++){var O=Ts[h];if(-1!==u.indexOf(O)){var T=encodeURIComponent(O);T===O&&(T=escape(O)),u=u.split(O).join(T)}}var L=u.indexOf("#");-1!==L&&(e.hash=u.substr(L),u=u.slice(0,L));var z=u.indexOf("?");if(-1!==z?(e.search=u.substr(z),e.query=u.substr(z+1),n&&(e.query=xs(e.query)),u=u.slice(0,z)):n&&(e.search="",e.query={}),u&&(e.pathname=u),Bs[g]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){d=e.pathname||"";var I=e.search||"";e.path=d+I}return e.href=Zs(e),e}function qs(e){return Zo(e)&&(e=Ds({},e)),Zs(e)}function Zs(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var n,i,o,a,s=e.protocol||"",u=e.pathname||"",c=e.hash||"",h=!1,f="";e.host?h=t+e.host:e.hostname&&(h=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(h+=":"+e.port)),e.query&&Wo(e.query)&&Object.keys(e.query).length&&(n=e.query,i=i||"&",o=o||"=",null===n&&(n=void 0),f="object"===(void 0===n?"undefined":r(n))?ks(Es(n),function(e){var t=encodeURIComponent(ws(e))+o;return _s(n[e])?ks(n[e],function(e){return t+encodeURIComponent(ws(e))}).join(i):t+encodeURIComponent(ws(n[e]))}).join(i):a?encodeURIComponent(ws(a))+o+encodeURIComponent(ws(n)):"");var l=e.search||f&&"?"+f||"";return s&&":"!==s.substr(-1)&&(s+=":"),e.slashes||(!s||Bs[s])&&!1!==h?(h="//"+(h||""),u&&"/"!==u.charAt(0)&&(u="/"+u)):h||(h=""),c&&"#"!==c.charAt(0)&&(c="#"+c),l&&"?"!==l.charAt(0)&&(l="?"+l),s+h+(u=u.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(l=l.replace("#","%23"))+c}function Hs(e,t){return Ns(e,!1,!0).resolve(t)}function Ys(e,t){return e?Ns(e,!1,!0).resolveObject(t):t}function Ws(e){var t=e.host,r=js.exec(t);r&&(":"!==(r=r[0])&&(e.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(e.hostname=t)}As.prototype.parse=function(e,t,r){return Ds(this,e,t,r)},As.prototype.format=function(){return Zs(this)},As.prototype.resolve=function(e){return this.resolveObject(Ns(e,!1,!0)).format()},As.prototype.resolveObject=function(e){if(Zo(e)){var t=new As;t.parse(e,!1,!0),e=t}for(var r,n=new As,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(n[c]=e[c])}return Bs[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Bs[e.protocol]){for(var h=Object.keys(e),f=0;f<h.length;f++){var l=h[f];n[l]=e[l]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||Ms[e.protocol])n.pathname=e.pathname;else{for(r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",p=n.search||"";n.path=d+p}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g,v,m=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=b||m||n.host&&e.pathname,_=y,w=n.pathname&&n.pathname.split("/")||[],k=n.protocol&&!Bs[n.protocol];if(r=e.pathname&&e.pathname.split("/")||[],k&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),y=y&&(""===r[0]||""===w[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,w=r;else if(r.length)w||(w=[]),w.pop(),w=w.concat(r),n.search=e.search,n.query=e.query;else if(v=e.search,null!=v)return k&&(n.hostname=n.host=w.shift(),(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),n.search=e.search,n.query=e.query,qo(n.pathname)&&qo(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=w.slice(-1)[0],x=(n.host||e.host||w.length>1)&&("."===E||".."===E)||""===E,R=0,A=w.length;A>=0;A--)"."===(E=w[A])?w.splice(A,1):".."===E?(w.splice(A,1),R++):R&&(w.splice(A,1),R--);if(!y&&!_)for(;R--;R)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),x&&"/"!==w.join("/").substr(-1)&&w.push("");var S=""===w[0]||w[0]&&"/"===w[0].charAt(0);return k&&(n.hostname=n.host=S?"":w.length?w.shift():"",(g=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=g.shift(),n.host=n.hostname=g.shift())),(y=y||n.host&&w.length)&&!S&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),qo(n.pathname)&&qo(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},As.prototype.parseHost=function(){return Ws(this)};var Gs=Object.freeze({parse:Ns,resolve:Hs,resolveObject:Ys,format:qs,default:Rs,Url:As});function Vs(e,t){"string"==typeof e&&(e=Ns(e));var r=-1===Bn.location.protocol.search(/^https?:$/)?"http:":"",n=e.protocol||r,i=e.hostname||e.host,o=e.port,a=e.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),e.url=(i?n+"//"+i:"")+(o?":"+o:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new Qa(e);return t&&s.on("response",t),s}function $s(e,t){var r=Vs(e,t);return r.end(),r}function Xs(){}Xs.defaultMaxSockets=4;var Ks=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],Js={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Qs={request:Vs,get:$s,Agent:Xs,METHODS:Ks,STATUS_CODES:Js},eu=Object.freeze({request:Vs,get:$s,Agent:Xs,METHODS:Ks,STATUS_CODES:Js,default:Qs});function tu(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var ru,nu=Object.prototype.hasOwnProperty,iu=Object.keys||function(e){var t=[];for(var r in e)nu.call(e,r)&&t.push(r);return t},ou=Array.prototype.slice;function au(){return void 0!==ru?ru:ru="foo"===function(){}.name}function su(e){return Object.prototype.toString.call(e)}function uu(e){return!vo(e)&&("function"==typeof Bn.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function cu(e,t){e||gu(e,!0,t,"==",vu)}var hu=/\s*function\s+([^\(\s]*)\s*/;function fu(e){if($o(e)){if(au())return e.name;var t=e.toString().match(hu);return t&&t[1]}}function lu(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=du(pu((t=this).actual),128)+" "+t.operator+" "+du(pu(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||gu;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=fu(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}}function du(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function pu(e){if(au()||!$o(e))return Po(e);var t=fu(e);return"[Function"+(t?": "+t:"")+"]"}function gu(e,t,r,n,i){throw new lu({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function vu(e,t){e||gu(e,!0,t,"==",vu)}function mu(e,t,r){e!=t&&gu(e,t,r,"==",mu)}function bu(e,t,r){e==t&&gu(e,t,r,"!=",bu)}function yu(e,t,r){wu(e,t,!1)||gu(e,t,r,"deepEqual",yu)}function _u(e,t,r){wu(e,t,!0)||gu(e,t,r,"deepStrictEqual",_u)}function wu(e,t,n,i){if(e===t)return!0;if(vo(e)&&vo(t))return 0===tu(e,t);if(Go(e)&&Go(t))return e.getTime()===t.getTime();if(Yo(e)&&Yo(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===(void 0===e?"undefined":r(e))||null!==t&&"object"===(void 0===t?"undefined":r(t))){if(uu(e)&&uu(t)&&su(e)===su(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===tu(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(vo(e)!==vo(t))return!1;var o=(i=i||{actual:[],expected:[]}).actual.indexOf(e);return-1!==o&&o===i.expected.indexOf(t)||(i.actual.push(e),i.expected.push(t),function(e,t,r,n){if(null===e||void 0===e||null===t||void 0===t)return!1;if(Xo(e)||Xo(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=ku(e),o=ku(t);if(i&&!o||!i&&o)return!1;if(i)return e=ou.call(e),t=ou.call(t),wu(e,t,r);var a,s,u=iu(e),c=iu(t);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),s=u.length-1;s>=0;s--)if(u[s]!==c[s])return!1;for(s=u.length-1;s>=0;s--)if(a=u[s],!wu(e[a],t[a],r,n))return!1;return!0}(e,t,n,i))}return n?e===t:e==t}function ku(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function Eu(e,t,r){wu(e,t,!1)&&gu(e,t,r,"notDeepEqual",Eu)}function xu(e,t,r){wu(e,t,!0)&&gu(e,t,r,"notDeepStrictEqual",xu)}function Ru(e,t,r){e!==t&&gu(e,t,r,"===",Ru)}function Au(e,t,r){e===t&&gu(e,t,r,"!==",Au)}function Su(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function ju(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&gu(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!e&&Vo(i),s=!e&&i&&!r;if((a&&o&&Su(i,r)||s)&&gu(i,r,"Got unwanted exception"+n),e&&i&&r&&!Su(i,r)||!e&&i)throw i}function Cu(e,t,r){ju(!0,e,t,r)}function Ou(e,t,r){ju(!1,e,t,r)}function Tu(e){if(e)throw e}cu.AssertionError=lu,Oo(lu,Error),cu.fail=gu,cu.ok=vu,cu.equal=mu,cu.notEqual=bu,cu.deepEqual=yu,cu.deepStrictEqual=_u,cu.notDeepEqual=Eu,cu.notDeepStrictEqual=xu,cu.strictEqual=Ru,cu.notStrictEqual=Au,cu.throws=Cu,cu.doesNotThrow=Ou,cu.ifError=Tu;var Lu=Object.freeze({default:cu,AssertionError:lu,fail:gu,ok:vu,assert:vu,equal:mu,notEqual:bu,deepEqual:yu,deepStrictEqual:_u,notDeepEqual:Eu,notDeepStrictEqual:xu,strictEqual:Ru,notStrictEqual:Au,throws:Cu,doesNotThrow:Ou,ifError:Tu}),zu=1e3,Iu=60*zu,Pu=60*Iu,Fu=24*Pu,Uu=365.25*Fu,Mu=function(e,t){t=t||{};var n,i=void 0===e?"undefined":r(e);if("string"===i&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*Uu;case"days":case"day":case"d":return r*Fu;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Pu;case"minutes":case"minute":case"mins":case"min":case"m":return r*Iu;case"seconds":case"second":case"secs":case"sec":case"s":return r*zu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===i&&!1===isNaN(e))return t.long?Bu(n=e,Fu,"day")||Bu(n,Pu,"hour")||Bu(n,Iu,"minute")||Bu(n,zu,"second")||n+" ms":function(e){if(e>=Fu)return Math.round(e/Fu)+"d";if(e>=Pu)return Math.round(e/Pu)+"h";if(e>=Iu)return Math.round(e/Iu)+"m";if(e>=zu)return Math.round(e/zu)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Bu(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var Nu=t(function(e,t){function r(e){var r;function i(){if(i.enabled){var e=i,n=+new Date,o=n-(r||n);e.diff=o,e.prev=r,e.curr=n,r=n;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var u=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(r,n){if("%%"===r)return r;u++;var i=t.formatters[n];if("function"==typeof i){var o=a[u];r=i.call(e,o),a.splice(u,1),u--}return r}),t.formatArgs.call(e,a),(i.log||t.log||console.log.bind(console)).apply(e,a)}}return i.namespace=e,i.enabled=t.enabled(e),i.useColors=t.useColors(),i.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),i.destroy=n,"function"==typeof t.init&&t.init(i),t.instances.push(i),i}function n(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var r;t.save(e),t.names=[],t.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(r=0;r<t.instances.length;r++){var o=t.instances[r];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Mu,t.instances=[],t.names=[],t.skips=[],t.formatters={}}),Du=(Nu.coerce,Nu.disable,Nu.enable,Nu.enabled,Nu.humanize,Nu.instances,Nu.names,Nu.skips,Nu.formatters,t(function(e,t){function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==hi&&"env"in hi&&(e=hi.env.DEBUG),e}(t=e.exports=Nu).log=function(){return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++i)}),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(n())})),qu=(Du.log,Du.formatArgs,Du.save,Du.load,Du.useColors,Du.storage,Du.colors,Gs&&Rs||Gs),Zu=eu&&Qs||eu,Hu=Lu&&cu||Lu,Yu=($a&&Va||$a).Writable,Wu=Du("follow-redirects"),Gu={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},Vu=Object.create(null);function $u(e,t){Yu.call(this),this._options=e,this._redirectCount=0,this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}this._performRequest()}function Xu(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);a.request=function(e,n){return"string"==typeof e?(e=qu.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:i,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,Hu.equal(e.protocol,i,"protocol mismatch"),Wu("options",e),new $u(e,n)},a.get=function(e,t){var r=a.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){Vu[e]=function(t){this._redirectable.emit(e,t)}}),$u.prototype=Object.create(Yu.prototype),$u.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=qu.format(this._options),n._redirectable=this;for(var i in Vu)i&&n.on(i,Vu[i]);if(this._isRedirect){var o=this._requestBodyBuffers;!function e(){if(0!==o.length){var t=o.pop();n.write(t.data,t.encoding,e)}else n.end()}()}},$u.prototype._processResponse=function(e){var t=e.headers.location;if(t&&!1!==this._options.followRedirects&&e.statusCode>=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,n=this._options.headers;if(307!==e.statusCode&&!(this._options.method in Gu)){this._options.method="GET",this._requestBodyBuffers=[];for(r in n)/^content-/i.test(r)&&delete n[r]}if(!this._isRedirect)for(r in n)/^host$/i.test(r)&&delete n[r];var i=qu.resolve(this._currentUrl,t);Wu("redirecting to",i),Object.assign(this._options,qu.parse(i)),this._isRedirect=!0,this._performRequest()}else e.responseUrl=this._currentUrl,this.emit("response",e),delete this._options,delete this._requestBodyBuffers},$u.prototype.abort=function(){this._currentRequest.abort()},$u.prototype.flushHeaders=function(){this._currentRequest.flushHeaders()},$u.prototype.setNoDelay=function(e){this._currentRequest.setNoDelay(e)},$u.prototype.setSocketKeepAlive=function(e,t){this._currentRequest.setSocketKeepAlive(e,t)},$u.prototype.setTimeout=function(e,t){this._currentRequest.setTimeout(e,t)},$u.prototype.write=function(e,t,r){this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort())},$u.prototype.end=function(e,t,r){var n=this._currentRequest;e?this.write(e,t,function(){n.end(null,null,r)}):n.end(null,null,r)};var Ku=Xu({http:Zu,https:Zu}),Ju=Xu;Ku.wrap=Ju;var Qu={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function ec(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]}var tc=Uint8Array,rc=Uint16Array,nc=Int32Array,ic=4,oc=0,ac=1,sc=2;function uc(e){for(var t=e.length;--t>=0;)e[t]=0}var cc=0,hc=1,fc=2,lc=29,dc=256,pc=dc+1+lc,gc=30,vc=19,mc=2*pc+1,bc=15,yc=16,_c=7,wc=256,kc=16,Ec=17,xc=18,Rc=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Ac=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Sc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],jc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cc=new Array(2*(pc+2));uc(Cc);var Oc=new Array(2*gc);uc(Oc);var Tc=new Array(512);uc(Tc);var Lc=new Array(256);uc(Lc);var zc=new Array(lc);uc(zc);var Ic,Pc,Fc,Uc=new Array(gc);function Mc(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function Bc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Nc(e){return e<256?Tc[e]:Tc[256+(e>>>7)]}function Dc(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function qc(e,t,r){e.bi_valid>yc-r?(e.bi_buf|=t<<e.bi_valid&65535,Dc(e,e.bi_buf),e.bi_buf=t>>yc-e.bi_valid,e.bi_valid+=r-yc):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Zc(e,t,r){qc(e,r[2*t],r[2*t+1])}function Hc(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function Yc(e,t,r){var n,i,o=new Array(bc+1),a=0;for(n=1;n<=bc;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Hc(o[s]++,s))}}function Wc(e){var t;for(t=0;t<pc;t++)e.dyn_ltree[2*t]=0;for(t=0;t<gc;t++)e.dyn_dtree[2*t]=0;for(t=0;t<vc;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*wc]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Gc(e){e.bi_valid>8?Dc(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Vc(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function $c(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&Vc(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Vc(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function Xc(e,t,r){var n,i,o,a,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?Zc(e,i,t):(Zc(e,(o=Lc[i])+dc+1,t),0!==(a=Rc[o])&&qc(e,i-=zc[o],a),Zc(e,o=Nc(--n),r),0!==(a=Ac[o])&&qc(e,n-=Uc[o],a))}while(s<e.last_lit);Zc(e,wc,t)}function Kc(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=mc,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)$c(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$c(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,$c(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,c=t.max_code,h=t.stat_desc.static_tree,f=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=bc;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<mc;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>p&&(o=p,g++),u[2*n+1]=o,n>c||(e.bl_count[o]++,a=0,n>=d&&(a=l[n-d]),s=u[2*n],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(h[2*n+1]+a)));if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),Yc(o,c,e.bl_count)}function Jc(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<u&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*kc]++):s<=10?e.bl_tree[2*Ec]++:e.bl_tree[2*xc]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function Qc(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{Zc(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Zc(e,i,e.bl_tree),s--),Zc(e,kc,e.bl_tree),qc(e,s-3,2)):s<=10?(Zc(e,Ec,e.bl_tree),qc(e,s-3,3)):(Zc(e,xc,e.bl_tree),qc(e,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}uc(Uc);var eh=!1;function th(e){eh||(!function(){var e,t,r,n,i,o=new Array(bc+1);for(r=0,n=0;n<lc-1;n++)for(zc[n]=r,e=0;e<1<<Rc[n];e++)Lc[r++]=n;for(Lc[r-1]=n,i=0,n=0;n<16;n++)for(Uc[n]=i,e=0;e<1<<Ac[n];e++)Tc[i++]=n;for(i>>=7;n<gc;n++)for(Uc[n]=i<<7,e=0;e<1<<Ac[n]-7;e++)Tc[256+i++]=n;for(t=0;t<=bc;t++)o[t]=0;for(e=0;e<=143;)Cc[2*e+1]=8,e++,o[8]++;for(;e<=255;)Cc[2*e+1]=9,e++,o[9]++;for(;e<=279;)Cc[2*e+1]=7,e++,o[7]++;for(;e<=287;)Cc[2*e+1]=8,e++,o[8]++;for(Yc(Cc,pc+1,o),e=0;e<gc;e++)Oc[2*e+1]=5,Oc[2*e]=Hc(e,5);Ic=new Mc(Cc,Rc,dc+1,pc,bc),Pc=new Mc(Oc,Ac,0,gc,bc),Fc=new Mc(new Array(0),Sc,0,vc,_c)}(),eh=!0),e.l_desc=new Bc(e.dyn_ltree,Ic),e.d_desc=new Bc(e.dyn_dtree,Pc),e.bl_desc=new Bc(e.bl_tree,Fc),e.bi_buf=0,e.bi_valid=0,Wc(e)}function rh(e,t,r,n){var i,o,a,s;qc(e,(cc<<1)+(n?1:0),3),o=t,a=r,s=!0,Gc(i=e),s&&(Dc(i,a),Dc(i,~a)),ec(i.pending_buf,i.window,o,a,i.pending),i.pending+=a}function nh(e){var t;qc(e,hc<<1,3),Zc(e,wc,Cc),16===(t=e).bi_valid?(Dc(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function ih(e,t,r,n){var i,o,a=0;e.level>0?(e.strm.data_type===sc&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return oc;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return ac;for(t=32;t<dc;t++)if(0!==e.dyn_ltree[2*t])return ac;return oc}(e)),Kc(e,e.l_desc),Kc(e,e.d_desc),a=function(e){var t;for(Jc(e,e.dyn_ltree,e.l_desc.max_code),Jc(e,e.dyn_dtree,e.d_desc.max_code),Kc(e,e.bl_desc),t=vc-1;t>=3&&0===e.bl_tree[2*jc[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?rh(e,t,r,n):e.strategy===ic||o===i?(qc(e,(hc<<1)+(n?1:0),3),Xc(e,Cc,Oc)):(qc(e,(fc<<1)+(n?1:0),3),function(e,t,r,n){var i;for(qc(e,t-257,5),qc(e,r-1,5),qc(e,n-4,4),i=0;i<n;i++)qc(e,e.bl_tree[2*jc[i]+1],3);Qc(e,e.dyn_ltree,t-1),Qc(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Xc(e,e.dyn_ltree,e.dyn_dtree)),Wc(e),n&&Gc(e)}function oh(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(Lc[r]+dc+1)]++,e.dyn_dtree[2*Nc(t)]++),e.last_lit===e.lit_bufsize-1}function ah(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var sh=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function uh(e,t,r,n){var i=sh,o=n+r;e^=-1;for(var a=n;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e}var ch,hh=0,fh=1,lh=3,dh=4,ph=5,gh=0,vh=1,mh=-2,bh=-3,yh=-5,_h=-1,wh=1,kh=2,Eh=3,xh=4,Rh=2,Ah=8,Sh=9,jh=286,Ch=30,Oh=19,Th=2*jh+1,Lh=15,zh=3,Ih=258,Ph=Ih+zh+1,Fh=32,Uh=42,Mh=69,Bh=73,Nh=91,Dh=103,qh=113,Zh=666,Hh=1,Yh=2,Wh=3,Gh=4,Vh=3;function $h(e,t){return e.msg=Qu[t],t}function Xh(e){return(e<<1)-(e>4?9:0)}function Kh(e){for(var t=e.length;--t>=0;)e[t]=0}function Jh(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(ec(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function Qh(e,t){ih(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Jh(e.strm)}function ef(e,t){e.pending_buf[e.pending++]=t}function tf(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function rf(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-Ph?e.strstart-(e.w_size-Ph):0,c=e.window,h=e.w_mask,f=e.prev,l=e.strstart+Ih,d=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<l);if(n=Ih-(l-o),o=l-Ih,n>a){if(e.match_start=t,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((t=f[t&h])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead}function nf(e){var t,r,n,i,o,a,s,u,c,h,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-Ph)){ec(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=f?n-f:0}while(--r);t=r=f;do{n=e.prev[--t],e.prev[t]=n>=f?n-f:0}while(--r);i+=f}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,u=e.strstart+e.lookahead,c=i,h=void 0,(h=a.avail_in)>c&&(h=c),r=0===h?0:(a.avail_in-=h,ec(s,a.input,a.next_in,h,u),1===a.state.wrap?a.adler=ah(a.adler,s,h,u):2===a.state.wrap&&(a.adler=uh(a.adler,s,h,u)),a.next_in+=h,a.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=zh)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+zh-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<zh)););}while(e.lookahead<Ph&&0!==e.strm.avail_in)}function of(e,t){for(var r,n;;){if(e.lookahead<Ph){if(nf(e),e.lookahead<Ph&&t===hh)return Hh;if(0===e.lookahead)break}if(r=0,e.lookahead>=zh&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+zh-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-Ph&&(e.match_length=rf(e,r)),e.match_length>=zh)if(n=oh(e,e.strstart-e.match_start,e.match_length-zh),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=zh){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+zh-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=oh(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Qh(e,!1),0===e.strm.avail_out))return Hh}return e.insert=e.strstart<zh-1?e.strstart:zh-1,t===dh?(Qh(e,!0),0===e.strm.avail_out?Wh:Gh):e.last_lit&&(Qh(e,!1),0===e.strm.avail_out)?Hh:Yh}function af(e,t){for(var r,n,i;;){if(e.lookahead<Ph){if(nf(e),e.lookahead<Ph&&t===hh)return Hh;if(0===e.lookahead)break}if(r=0,e.lookahead>=zh&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+zh-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=zh-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Ph&&(e.match_length=rf(e,r),e.match_length<=5&&(e.strategy===wh||e.match_length===zh&&e.strstart-e.match_start>4096)&&(e.match_length=zh-1)),e.prev_length>=zh&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-zh,n=oh(e,e.strstart-1-e.prev_match,e.prev_length-zh),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+zh-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=zh-1,e.strstart++,n&&(Qh(e,!1),0===e.strm.avail_out))return Hh}else if(e.match_available){if((n=oh(e,0,e.window[e.strstart-1]))&&Qh(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Hh}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=oh(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<zh-1?e.strstart:zh-1,t===dh?(Qh(e,!0),0===e.strm.avail_out?Wh:Gh):e.last_lit&&(Qh(e,!1),0===e.strm.avail_out)?Hh:Yh}function sf(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function uf(e){var t,r,n,i=(t=e)&&t.state?(t.total_in=t.total_out=0,t.data_type=Rh,(r=t.state).pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap?Uh:qh,t.adler=2===r.wrap?0:1,r.last_flush=hh,th(r),gh):$h(t,mh);return i===gh&&((n=e.state).window_size=2*n.w_size,Kh(n.head),n.max_lazy_match=ch[n.level].max_lazy,n.good_match=ch[n.level].good_length,n.nice_match=ch[n.level].nice_length,n.max_chain_length=ch[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=zh-1,n.match_available=0,n.ins_h=0),i}function cf(e,t,r,n,i,o){if(!e)return mh;var a=1;if(t===_h&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>Sh||r!==Ah||n<8||n>15||t<0||t>9||o<0||o>xh)return $h(e,mh);8===n&&(n=9);var s=new function(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ah,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new rc(2*Th),this.dyn_dtree=new rc(2*(2*Ch+1)),this.bl_tree=new rc(2*(2*Oh+1)),Kh(this.dyn_ltree),Kh(this.dyn_dtree),Kh(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new rc(Lh+1),this.heap=new rc(2*jh+1),Kh(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new rc(2*jh+1),Kh(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0};return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+zh-1)/zh),s.window=new tc(2*s.w_size),s.head=new rc(s.hash_size),s.prev=new rc(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new tc(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=r,uf(e)}function hf(e,t){var r,n,i,o;if(!e||!e.state||t>ph||t<0)return e?$h(e,mh):mh;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===Zh&&t!==dh)return $h(e,0===e.avail_out?yh:mh);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===Uh)if(2===n.wrap)e.adler=0,ef(n,31),ef(n,139),ef(n,8),n.gzhead?(ef(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),ef(n,255&n.gzhead.time),ef(n,n.gzhead.time>>8&255),ef(n,n.gzhead.time>>16&255),ef(n,n.gzhead.time>>24&255),ef(n,9===n.level?2:n.strategy>=kh||n.level<2?4:0),ef(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(ef(n,255&n.gzhead.extra.length),ef(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=uh(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Mh):(ef(n,0),ef(n,0),ef(n,0),ef(n,0),ef(n,0),ef(n,9===n.level?2:n.strategy>=kh||n.level<2?4:0),ef(n,Vh),n.status=qh);else{var a=Ah+(n.w_bits-8<<4)<<8;a|=(n.strategy>=kh||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=Fh),a+=31-a%31,n.status=qh,tf(n,a),0!==n.strstart&&(tf(n,e.adler>>>16),tf(n,65535&e.adler)),e.adler=1}if(n.status===Mh)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=uh(e.adler,n.pending_buf,n.pending-i,i)),Jh(e),i=n.pending,n.pending!==n.pending_buf_size));)ef(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=uh(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=Bh)}else n.status=Bh;if(n.status===Bh)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=uh(e.adler,n.pending_buf,n.pending-i,i)),Jh(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,ef(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(e.adler=uh(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=Nh)}else n.status=Nh;if(n.status===Nh)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=uh(e.adler,n.pending_buf,n.pending-i,i)),Jh(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,ef(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(e.adler=uh(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=Dh)}else n.status=Dh;if(n.status===Dh&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Jh(e),n.pending+2<=n.pending_buf_size&&(ef(n,255&e.adler),ef(n,e.adler>>8&255),e.adler=0,n.status=qh)):n.status=qh),0!==n.pending){if(Jh(e),0===e.avail_out)return n.last_flush=-1,gh}else if(0===e.avail_in&&Xh(t)<=Xh(r)&&t!==dh)return $h(e,yh);if(n.status===Zh&&0!==e.avail_in)return $h(e,yh);if(0!==e.avail_in||0!==n.lookahead||t!==hh&&n.status!==Zh){var s=n.strategy===kh?function(e,t){for(var r;;){if(0===e.lookahead&&(nf(e),0===e.lookahead)){if(t===hh)return Hh;break}if(e.match_length=0,r=oh(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Qh(e,!1),0===e.strm.avail_out))return Hh}return e.insert=0,t===dh?(Qh(e,!0),0===e.strm.avail_out?Wh:Gh):e.last_lit&&(Qh(e,!1),0===e.strm.avail_out)?Hh:Yh}(n,t):n.strategy===Eh?function(e,t){for(var r,n,i,o,a=e.window;;){if(e.lookahead<=Ih){if(nf(e),e.lookahead<=Ih&&t===hh)return Hh;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=zh&&e.strstart>0&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=e.strstart+Ih;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=Ih-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=zh?(r=oh(e,1,e.match_length-zh),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=oh(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Qh(e,!1),0===e.strm.avail_out))return Hh}return e.insert=0,t===dh?(Qh(e,!0),0===e.strm.avail_out?Wh:Gh):e.last_lit&&(Qh(e,!1),0===e.strm.avail_out)?Hh:Yh}(n,t):ch[n.level].func(n,t);if(s!==Wh&&s!==Gh||(n.status=Zh),s===Hh||s===Wh)return 0===e.avail_out&&(n.last_flush=-1),gh;if(s===Yh&&(t===fh?nh(n):t!==ph&&(rh(n,0,0,!1),t===lh&&(Kh(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Jh(e),0===e.avail_out))return n.last_flush=-1,gh}return t!==dh?gh:n.wrap<=0?vh:(2===n.wrap?(ef(n,255&e.adler),ef(n,e.adler>>8&255),ef(n,e.adler>>16&255),ef(n,e.adler>>24&255),ef(n,255&e.total_in),ef(n,e.total_in>>8&255),ef(n,e.total_in>>16&255),ef(n,e.total_in>>24&255)):(tf(n,e.adler>>>16),tf(n,65535&e.adler)),Jh(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?gh:vh)}ch=[new sf(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(nf(e),0===e.lookahead&&t===hh)return Hh;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Qh(e,!1),0===e.strm.avail_out))return Hh;if(e.strstart-e.block_start>=e.w_size-Ph&&(Qh(e,!1),0===e.strm.avail_out))return Hh}return e.insert=0,t===dh?(Qh(e,!0),0===e.strm.avail_out?Wh:Gh):(e.strstart>e.block_start&&(Qh(e,!1),e.strm.avail_out),Hh)}),new sf(4,4,8,4,of),new sf(4,5,16,8,of),new sf(4,6,32,32,of),new sf(4,4,16,16,af),new sf(8,16,32,32,af),new sf(8,16,128,128,af),new sf(8,32,128,256,af),new sf(32,128,258,1024,af),new sf(32,258,258,4096,af)];var ff=30,lf=12;function df(e,t){var r,n,i,o,a,s,u,c,h,f,l,d,p,g,v,m,b,y,_,w,k,E,x,R,A;r=e.state,n=e.next_in,R=e.input,i=n+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),u=r.dmax,c=r.wsize,h=r.whave,f=r.wnext,l=r.window,d=r.hold,p=r.bits,g=r.lencode,v=r.distcode,m=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(d+=R[n++]<<p,p+=8,d+=R[n++]<<p,p+=8),y=g[d&m];t:for(;;){if(d>>>=_=y>>>24,p-=_,0===(_=y>>>16&255))A[o++]=65535&y;else{if(!(16&_)){if(0==(64&_)){y=g[(65535&y)+(d&(1<<_)-1)];continue t}if(32&_){r.mode=lf;break e}e.msg="invalid literal/length code",r.mode=ff;break e}w=65535&y,(_&=15)&&(p<_&&(d+=R[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=R[n++]<<p,p+=8,d+=R[n++]<<p,p+=8),y=v[d&b];r:for(;;){if(d>>>=_=y>>>24,p-=_,!(16&(_=y>>>16&255))){if(0==(64&_)){y=v[(65535&y)+(d&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=ff;break e}if(k=65535&y,p<(_&=15)&&(d+=R[n++]<<p,(p+=8)<_&&(d+=R[n++]<<p,p+=8)),(k+=d&(1<<_)-1)>u){e.msg="invalid distance too far back",r.mode=ff;break e}if(d>>>=_,p-=_,k>(_=o-a)){if((_=k-_)>h&&r.sane){e.msg="invalid distance too far back",r.mode=ff;break e}if(E=0,x=l,0===f){if(E+=c-_,_<w){w-=_;do{A[o++]=l[E++]}while(--_);E=o-k,x=A}}else if(f<_){if(E+=c+f-_,(_-=f)<w){w-=_;do{A[o++]=l[E++]}while(--_);if(E=0,f<w){w-=_=f;do{A[o++]=l[E++]}while(--_);E=o-k,x=A}}}else if(E+=f-_,_<w){w-=_;do{A[o++]=l[E++]}while(--_);E=o-k,x=A}for(;w>2;)A[o++]=x[E++],A[o++]=x[E++],A[o++]=x[E++],w-=3;w&&(A[o++]=x[E++],w>1&&(A[o++]=x[E++]))}else{E=o-k;do{A[o++]=A[E++],A[o++]=A[E++],A[o++]=A[E++],w-=3}while(w>2);w&&(A[o++]=A[E++],w>1&&(A[o++]=A[E++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}var pf=15,gf=852,vf=592,mf=0,bf=1,yf=2,_f=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],wf=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],kf=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Ef=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function xf(e,t,r,n,i,o,a,s){var u,c,h,f,l,d,p,g,v,m=s.bits,b=0,y=0,_=0,w=0,k=0,E=0,x=0,R=0,A=0,S=0,j=null,C=0,O=new rc(pf+1),T=new rc(pf+1),L=null,z=0;for(b=0;b<=pf;b++)O[b]=0;for(y=0;y<n;y++)O[t[r+y]]++;for(k=m,w=pf;w>=1&&0===O[w];w--);if(k>w&&(k=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(_=1;_<w&&0===O[_];_++);for(k<_&&(k=_),R=1,b=1;b<=pf;b++)if(R<<=1,(R-=O[b])<0)return-1;if(R>0&&(e===mf||1!==w))return-1;for(T[1]=0,b=1;b<pf;b++)T[b+1]=T[b]+O[b];for(y=0;y<n;y++)0!==t[r+y]&&(a[T[t[r+y]]++]=y);if(e===mf?(j=L=a,d=19):e===bf?(j=_f,C-=257,L=wf,z-=257,d=256):(j=kf,L=Ef,d=-1),S=0,y=0,b=_,l=o,E=k,x=0,h=-1,f=(A=1<<k)-1,e===bf&&A>gf||e===yf&&A>vf)return 1;for(;;){p=b-x,a[y]<d?(g=0,v=a[y]):a[y]>d?(g=L[z+a[y]],v=j[C+a[y]]):(g=96,v=0),u=1<<b-x,_=c=1<<E;do{i[l+(S>>x)+(c-=u)]=p<<24|g<<16|v|0}while(0!==c);for(u=1<<b-1;S&u;)u>>=1;if(0!==u?(S&=u-1,S+=u):S=0,y++,0==--O[b]){if(b===w)break;b=t[r+a[y]]}if(b>k&&(S&f)!==h){for(0===x&&(x=k),l+=_,R=1<<(E=b-x);E+x<w&&!((R-=O[E+x])<=0);)E++,R<<=1;if(A+=1<<E,e===bf&&A>gf||e===yf&&A>vf)return 1;i[h=S&f]=k<<24|E<<16|l-o|0}}return 0!==S&&(i[l+S]=b-x<<24|64<<16|0),s.bits=k,0}var Rf=0,Af=1,Sf=2,jf=4,Cf=5,Of=6,Tf=0,Lf=1,zf=2,If=-2,Pf=-3,Ff=-4,Uf=-5,Mf=8,Bf=1,Nf=2,Df=3,qf=4,Zf=5,Hf=6,Yf=7,Wf=8,Gf=9,Vf=10,$f=11,Xf=12,Kf=13,Jf=14,Qf=15,el=16,tl=17,rl=18,nl=19,il=20,ol=21,al=22,sl=23,ul=24,cl=25,hl=26,fl=27,ll=28,dl=29,pl=30,gl=31,vl=32,ml=852,bl=592;function yl(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function _l(e){var t,r,n;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,(r=e)&&r.state?(n=r.state,r.total_in=r.total_out=n.total=0,r.msg="",n.wrap&&(r.adler=1&n.wrap),n.mode=Bf,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new nc(ml),n.distcode=n.distdyn=new nc(bl),n.sane=1,n.back=-1,Tf):If):If}function wl(e,t){var r,n,i,o,a,s;return e?(n=new function(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new rc(320),this.work=new rc(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},e.state=n,n.window=null,o=t,(r=(i=e)&&i.state?(s=i.state,o<0?(a=0,o=-o):(a=1+(o>>4),o<48&&(o&=15)),o&&(o<8||o>15)?If:(null!==s.window&&s.wbits!==o&&(s.window=null),s.wrap=a,s.wbits=o,_l(i))):If)!==Tf&&(e.state=null),r):If}var kl,El,xl=!0;function Rl(e){if(xl){var t;for(kl=new nc(512),El=new nc(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(xf(Af,e.lens,0,288,kl,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;xf(Sf,e.lens,0,32,El,0,e.work,{bits:5}),xl=!1}e.lencode=kl,e.lenbits=9,e.distcode=El,e.distbits=5}function Al(e,t){var r,n,i,o,a,s,u,c,h,f,l,d,p,g,v,m,b,y,_,w,k,E,x,R,A,S,j,C,O,T,L=0,z=new tc(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return If;(r=e.state).mode===Xf&&(r.mode=Kf),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,c=r.hold,h=r.bits,f=s,l=u,E=Tf;e:for(;;)switch(r.mode){case Bf:if(0===r.wrap){r.mode=Kf;break}for(;h<16;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(2&r.wrap&&35615===c){r.check=0,z[0]=255&c,z[1]=c>>>8&255,r.check=uh(r.check,z,2,0),c=0,h=0,r.mode=Nf;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=pl;break}if((15&c)!==Mf){e.msg="unknown compression method",r.mode=pl;break}if(h-=4,k=8+(15&(c>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=pl;break}r.dmax=1<<k,e.adler=r.check=1,r.mode=512&c?Vf:Xf,c=0,h=0;break;case Nf:for(;h<16;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(r.flags=c,(255&r.flags)!==Mf){e.msg="unknown compression method",r.mode=pl;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=pl;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&(z[0]=255&c,z[1]=c>>>8&255,r.check=uh(r.check,z,2,0)),c=0,h=0,r.mode=Df;case Df:for(;h<32;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}r.head&&(r.head.time=c),512&r.flags&&(z[0]=255&c,z[1]=c>>>8&255,z[2]=c>>>16&255,z[3]=c>>>24&255,r.check=uh(r.check,z,4,0)),c=0,h=0,r.mode=qf;case qf:for(;h<16;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&(z[0]=255&c,z[1]=c>>>8&255,r.check=uh(r.check,z,2,0)),c=0,h=0,r.mode=Zf;case Zf:if(1024&r.flags){for(;h<16;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&(z[0]=255&c,z[1]=c>>>8&255,r.check=uh(r.check,z,2,0)),c=0,h=0}else r.head&&(r.head.extra=null);r.mode=Hf;case Hf:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),ec(r.head.extra,n,o,d,k)),512&r.flags&&(r.check=uh(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break e;r.length=0,r.mode=Yf;case Yf:if(2048&r.flags){if(0===s)break e;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=uh(r.check,n,d,o)),s-=d,o+=d,k)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Wf;case Wf:if(4096&r.flags){if(0===s)break e;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=uh(r.check,n,d,o)),s-=d,o+=d,k)break e}else r.head&&(r.head.comment=null);r.mode=Gf;case Gf:if(512&r.flags){for(;h<16;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(c!==(65535&r.check)){e.msg="header crc mismatch",r.mode=pl;break}c=0,h=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Xf;break;case Vf:for(;h<32;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}e.adler=r.check=yl(c),c=0,h=0,r.mode=$f;case $f:if(0===r.havedict)return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,r.hold=c,r.bits=h,zf;e.adler=r.check=1,r.mode=Xf;case Xf:if(t===Cf||t===Of)break e;case Kf:if(r.last){c>>>=7&h,h-=7&h,r.mode=fl;break}for(;h<3;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}switch(r.last=1&c,h-=1,3&(c>>>=1)){case 0:r.mode=Jf;break;case 1:if(Rl(r),r.mode=il,t===Of){c>>>=2,h-=2;break e}break;case 2:r.mode=tl;break;case 3:e.msg="invalid block type",r.mode=pl}c>>>=2,h-=2;break;case Jf:for(c>>>=7&h,h-=7&h;h<32;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=pl;break}if(r.length=65535&c,c=0,h=0,r.mode=Qf,t===Of)break e;case Qf:r.mode=el;case el:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break e;ec(i,n,o,d,a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=Xf;break;case tl:for(;h<14;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(r.nlen=257+(31&c),c>>>=5,h-=5,r.ndist=1+(31&c),c>>>=5,h-=5,r.ncode=4+(15&c),c>>>=4,h-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=pl;break}r.have=0,r.mode=rl;case rl:for(;r.have<r.ncode;){for(;h<3;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}r.lens[I[r.have++]]=7&c,c>>>=3,h-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},E=xf(Rf,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,E){e.msg="invalid code lengths set",r.mode=pl;break}r.have=0,r.mode=nl;case nl:for(;r.have<r.nlen+r.ndist;){for(;m=(L=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,b=65535&L,!((v=L>>>24)<=h);){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(b<16)c>>>=v,h-=v,r.lens[r.have++]=b;else{if(16===b){for(R=v+2;h<R;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(c>>>=v,h-=v,0===r.have){e.msg="invalid bit length repeat",r.mode=pl;break}k=r.lens[r.have-1],d=3+(3&c),c>>>=2,h-=2}else if(17===b){for(R=v+3;h<R;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}h-=v,k=0,d=3+(7&(c>>>=v)),c>>>=3,h-=3}else{for(R=v+7;h<R;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}h-=v,k=0,d=11+(127&(c>>>=v)),c>>>=7,h-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=pl;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===pl)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=pl;break}if(r.lenbits=9,x={bits:r.lenbits},E=xf(Af,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,E){e.msg="invalid literal/lengths set",r.mode=pl;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},E=xf(Sf,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,E){e.msg="invalid distances set",r.mode=pl;break}if(r.mode=il,t===Of)break e;case il:r.mode=ol;case ol:if(s>=6&&u>=258){e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,r.hold=c,r.bits=h,df(e,l),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,c=r.hold,h=r.bits,r.mode===Xf&&(r.back=-1);break}for(r.back=0;m=(L=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,b=65535&L,!((v=L>>>24)<=h);){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(m&&0==(240&m)){for(y=v,_=m,w=b;m=(L=r.lencode[w+((c&(1<<y+_)-1)>>y)])>>>16&255,b=65535&L,!(y+(v=L>>>24)<=h);){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}c>>>=y,h-=y,r.back+=y}if(c>>>=v,h-=v,r.back+=v,r.length=b,0===m){r.mode=hl;break}if(32&m){r.back=-1,r.mode=Xf;break}if(64&m){e.msg="invalid literal/length code",r.mode=pl;break}r.extra=15&m,r.mode=al;case al:if(r.extra){for(R=r.extra;h<R;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,h-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=sl;case sl:for(;m=(L=r.distcode[c&(1<<r.distbits)-1])>>>16&255,b=65535&L,!((v=L>>>24)<=h);){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(0==(240&m)){for(y=v,_=m,w=b;m=(L=r.distcode[w+((c&(1<<y+_)-1)>>y)])>>>16&255,b=65535&L,!(y+(v=L>>>24)<=h);){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}c>>>=y,h-=y,r.back+=y}if(c>>>=v,h-=v,r.back+=v,64&m){e.msg="invalid distance code",r.mode=pl;break}r.offset=b,r.extra=15&m,r.mode=ul;case ul:if(r.extra){for(R=r.extra;h<R;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,h-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=pl;break}r.mode=cl;case cl:if(0===u)break e;if(d=l-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=pl;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),g=r.window}else g=i,p=a-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[a++]=g[p++]}while(--d);0===r.length&&(r.mode=ol);break;case hl:if(0===u)break e;i[a++]=r.length,u--,r.mode=ol;break;case fl:if(r.wrap){for(;h<32;){if(0===s)break e;s--,c|=n[o++]<<h,h+=8}if(l-=u,e.total_out+=l,r.total+=l,l&&(e.adler=r.check=r.flags?uh(r.check,i,l,a-l):ah(r.check,i,l,a-l)),l=u,(r.flags?c:yl(c))!==r.check){e.msg="incorrect data check",r.mode=pl;break}c=0,h=0}r.mode=ll;case ll:if(r.wrap&&r.flags){for(;h<32;){if(0===s)break e;s--,c+=n[o++]<<h,h+=8}if(c!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=pl;break}c=0,h=0}r.mode=dl;case dl:E=Lf;break e;case pl:E=Pf;break e;case gl:return Ff;case vl:default:return If}return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,r.hold=c,r.bits=h,(r.wsize||l!==e.avail_out&&r.mode<pl&&(r.mode<fl||t!==jf))&&(A=e,S=e.output,j=e.next_out,C=l-e.avail_out,null===(T=A.state).window&&(T.wsize=1<<T.wbits,T.wnext=0,T.whave=0,T.window=new tc(T.wsize)),C>=T.wsize?(ec(T.window,S,j-T.wsize,T.wsize,0),T.wnext=0,T.whave=T.wsize):((O=T.wsize-T.wnext)>C&&(O=C),ec(T.window,S,j-C,O,T.wnext),(C-=O)?(ec(T.window,S,j-C,C,0),T.wnext=C,T.whave=T.wsize):(T.wnext+=O,T.wnext===T.wsize&&(T.wnext=0),T.whave<T.wsize&&(T.whave+=O)))),f-=e.avail_in,l-=e.avail_out,e.total_in+=f,e.total_out+=l,r.total+=l,r.wrap&&l&&(e.adler=r.check=r.flags?uh(r.check,i,l,e.next_out-l):ah(r.check,i,l,e.next_out-l)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Xf?128:0)+(r.mode===il||r.mode===Qf?256:0),(0===f&&0===l||t===jf)&&E===Tf&&(E=Uf),E}var Sl,jl=1,Cl=7;function Ol(e){if(e<jl||e>Cl)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Tl(e,t){for(var r=0;r<e.length;r++)this[t+r]=e[r]}Ol.prototype.init=function(e,t,r,n,i){var o;switch(this.windowBits=e,this.level=t,this.memLevel=r,this.strategy=n,3!==this.mode&&4!==this.mode||(this.windowBits+=16),this.mode===Cl&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},this.mode){case jl:case 3:case 5:o=cf(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case Cl:o=wl(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===o?(this.write_in_progress=!1,this.init_done=!0):this._error(o)},Ol.prototype.params=function(){throw new Error("deflateParams Not supported")},Ol.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},Ol.prototype.write=function(e,t,r,n,i,o,a){this._writeCheck(),this.write_in_progress=!0;var s=this;return Kn(function(){s.write_in_progress=!1;var u=s._write(e,t,r,n,i,o,a);s.callback(u[0],u[1]),s.pending_close&&s.close()}),this},Ol.prototype.writeSync=function(e,t,r,n,i,o,a){return this._writeCheck(),this._write(e,t,r,n,i,o,a)},Ol.prototype._write=function(e,t,r,n,i,o,a){if(this.write_in_progress=!0,0!==e&&1!==e&&2!==e&&3!==e&&4!==e&&5!==e)throw new Error("Invalid flush value");null==t&&(t=new Ui(0),n=0,r=0),i._set?i.set=i._set:i.set=Tl;var s,u=this.strm;switch(u.avail_in=n,u.input=t,u.next_in=r,u.avail_out=a,u.output=i,u.next_out=o,this.mode){case jl:case 3:case 5:s=hf(u,e);break;case Cl:case 2:case 4:case 6:s=Al(u,e);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[u.avail_in,u.avail_out]},Ol.prototype.close=function(){var e,t;this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===jl||3===this.mode||5===this.mode?(e=this.strm)&&e.state&&((t=e.state.status)!==Uh&&t!==Mh&&t!==Bh&&t!==Nh&&t!==Dh&&t!==qh&&t!==Zh?$h(e,mh):(e.state=null,t===qh&&$h(e,bh))):function(e){if(!e||!e.state)return If;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},Ol.prototype.reset=function(){switch(this.mode){case jl:case 5:Sl=uf(this.strm);break;case 2:case 6:Sl=_l(this.strm)}0!==Sl&&this._error(Sl)},Ol.prototype._error=function(e){this.onerror(Qu[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var Ll=Object.freeze({NONE:0,DEFLATE:jl,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:Cl,Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8,Zlib:Ol});var zl={};Object.keys(Ll).forEach(function(e){zl[e]=Ll[e]}),zl.Z_MIN_WINDOWBITS=8,zl.Z_MAX_WINDOWBITS=15,zl.Z_DEFAULT_WINDOWBITS=15,zl.Z_MIN_CHUNK=64,zl.Z_MAX_CHUNK=1/0,zl.Z_DEFAULT_CHUNK=16384,zl.Z_MIN_MEMLEVEL=1,zl.Z_MAX_MEMLEVEL=9,zl.Z_DEFAULT_MEMLEVEL=8,zl.Z_MIN_LEVEL=-1,zl.Z_MAX_LEVEL=9,zl.Z_DEFAULT_LEVEL=zl.Z_DEFAULT_COMPRESSION;var Il={Z_OK:zl.Z_OK,Z_STREAM_END:zl.Z_STREAM_END,Z_NEED_DICT:zl.Z_NEED_DICT,Z_ERRNO:zl.Z_ERRNO,Z_STREAM_ERROR:zl.Z_STREAM_ERROR,Z_DATA_ERROR:zl.Z_DATA_ERROR,Z_MEM_ERROR:zl.Z_MEM_ERROR,Z_BUF_ERROR:zl.Z_BUF_ERROR,Z_VERSION_ERROR:zl.Z_VERSION_ERROR};function Pl(e){return new id(e)}function Fl(e){return new od(e)}function Ul(e){return new ud(e)}function Ml(e){return new cd(e)}function Bl(e){return new ad(e)}function Nl(e){return new sd(e)}function Dl(e){return new hd(e)}function ql(e,t,r){return"function"==typeof t&&(r=t,t={}),rd(new id(t),e,r)}function Zl(e,t){return nd(new id(t),e)}function Hl(e,t,r){return"function"==typeof t&&(r=t,t={}),rd(new ad(t),e,r)}function Yl(e,t){return nd(new ad(t),e)}function Wl(e,t,r){return"function"==typeof t&&(r=t,t={}),rd(new ud(t),e,r)}function Gl(e,t){return nd(new ud(t),e)}function Vl(e,t,r){return"function"==typeof t&&(r=t,t={}),rd(new hd(t),e,r)}function $l(e,t){return nd(new hd(t),e)}function Xl(e,t,r){return"function"==typeof t&&(r=t,t={}),rd(new od(t),e,r)}function Kl(e,t){return nd(new od(t),e)}function Jl(e,t,r){return"function"==typeof t&&(r=t,t={}),rd(new sd(t),e,r)}function Ql(e,t){return nd(new sd(t),e)}function ed(e,t,r){return"function"==typeof t&&(r=t,t={}),rd(new cd(t),e,r)}function td(e,t){return nd(new cd(t),e)}function rd(e,t,r){var n=[],i=0;function o(){for(var t;null!==(t=e.read());)n.push(t),i+=t.length;e.once("readable",o)}function a(){var t=Ui.concat(n,i);n=[],r(null,t),e.close()}e.on("error",function(t){e.removeListener("end",a),e.removeListener("readable",o),r(t)}),e.on("end",a),e.end(t),o()}function nd(e,t){if("string"==typeof t&&(t=new Ui(t)),!vo(t))throw new TypeError("Not a string or buffer");var r=zl.Z_FINISH;return e._processChunk(t,r)}function id(e){if(!(this instanceof id))return new id(e);fd.call(this,e,zl.DEFLATE)}function od(e){if(!(this instanceof od))return new od(e);fd.call(this,e,zl.INFLATE)}function ad(e){if(!(this instanceof ad))return new ad(e);fd.call(this,e,zl.GZIP)}function sd(e){if(!(this instanceof sd))return new sd(e);fd.call(this,e,zl.GUNZIP)}function ud(e){if(!(this instanceof ud))return new ud(e);fd.call(this,e,zl.DEFLATERAW)}function cd(e){if(!(this instanceof cd))return new cd(e);fd.call(this,e,zl.INFLATERAW)}function hd(e){if(!(this instanceof hd))return new hd(e);fd.call(this,e,zl.UNZIP)}function fd(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||zl.Z_DEFAULT_CHUNK,Ya.call(this,e),e.flush&&e.flush!==zl.Z_NO_FLUSH&&e.flush!==zl.Z_PARTIAL_FLUSH&&e.flush!==zl.Z_SYNC_FLUSH&&e.flush!==zl.Z_FULL_FLUSH&&e.flush!==zl.Z_FINISH&&e.flush!==zl.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||zl.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<zl.Z_MIN_CHUNK||e.chunkSize>zl.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<zl.Z_MIN_WINDOWBITS||e.windowBits>zl.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<zl.Z_MIN_LEVEL||e.level>zl.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<zl.Z_MIN_MEMLEVEL||e.memLevel>zl.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=zl.Z_FILTERED&&e.strategy!=zl.Z_HUFFMAN_ONLY&&e.strategy!=zl.Z_RLE&&e.strategy!=zl.Z_FIXED&&e.strategy!=zl.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!vo(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new zl.Zlib(t);var r=this;this._hadError=!1,this._binding.onerror=function(e,t){r._binding=null,r._hadError=!0;var n=new Error(e);n.errno=t,n.code=zl.codes[t],r.emit("error",n)};var n=zl.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(n=e.level);var i=zl.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||zl.Z_DEFAULT_WINDOWBITS,n,e.memLevel||zl.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new Ui(this._chunkSize),this._offset=0,this._closed=!1,this._level=n,this._strategy=i,this.once("end",this.close)}Object.keys(Il).forEach(function(e){Il[Il[e]]=e}),Oo(fd,Ya),fd.prototype.params=function(e,t,r){if(e<zl.Z_MIN_LEVEL||e>zl.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=zl.Z_FILTERED&&t!=zl.Z_HUFFMAN_ONLY&&t!=zl.Z_RLE&&t!=zl.Z_FIXED&&t!=zl.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var n=this;this.flush(zl.Z_SYNC_FLUSH,function(){n._binding.params(e,t),n._hadError||(n._level=e,n._strategy=t,r&&r())})}else Kn(r)},fd.prototype.reset=function(){return this._binding.reset()},fd.prototype._flush=function(e){this._transform(new Ui(0),"",e)},fd.prototype.flush=function(e,t){var r=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=zl.Z_FULL_FLUSH),r.ended)t&&Kn(t);else if(r.ending)t&&this.once("end",t);else if(r.needDrain){var n=this;this.once("drain",function(){n.flush(t)})}else this._flushFlag=e,this.write(new Ui(0),"",t)},fd.prototype.close=function(e){if(e&&Kn(e),!this._closed){this._closed=!0,this._binding.close();var t=this;Kn(function(){t.emit("close")})}},fd.prototype._transform=function(e,t,r){var n,i=this._writableState,o=(i.ending||i.ended)&&(!e||i.length===e.length);if(null===!e&&!vo(e))return r(new Error("invalid input"));o?n=zl.Z_FINISH:(n=this._flushFlag,e.length>=i.length&&(this._flushFlag=this._opts.flush||zl.Z_NO_FLUSH)),this._processChunk(e,n,r)},fd.prototype._processChunk=function(e,t,r){var n=e&&e.length,i=this._chunkSize-this._offset,o=0,a=this,s="function"==typeof r;if(!s){var u,c=[],h=0;this.on("error",function(e){u=e});do{var f=this._binding.writeSync(t,e,o,n,this._buffer,this._offset,i)}while(!this._hadError&&p(f[0],f[1]));if(this._hadError)throw u;var l=Ui.concat(c,h);return this.close(),l}var d=this._binding.write(t,e,o,n,this._buffer,this._offset,i);function p(u,f){if(!a._hadError){var l=i-f;if(function(e,t){if(!e)throw new Error(t)}(l>=0,"have should not go down"),l>0){var d=a._buffer.slice(a._offset,a._offset+l);a._offset+=l,s?a.push(d):(c.push(d),h+=d.length)}if((0===f||a._offset>=a._chunkSize)&&(i=a._chunkSize,a._offset=0,a._buffer=new Ui(a._chunkSize)),0===f){if(o+=n-u,n=u,!s)return!0;var g=a._binding.write(t,e,o,n,a._buffer,a._offset,a._chunkSize);return g.callback=p,void(g.buffer=e)}if(!s)return!1;r()}}d.buffer=e,d.callback=p},Oo(id,fd),Oo(od,fd),Oo(ad,fd),Oo(sd,fd),Oo(ud,fd),Oo(cd,fd),Oo(hd,fd);var ld={codes:Il,createDeflate:Pl,createInflate:Fl,createDeflateRaw:Ul,createInflateRaw:Ml,createGzip:Bl,createGunzip:Nl,createUnzip:Dl,deflate:ql,deflateSync:Zl,gzip:Hl,gzipSync:Yl,deflateRaw:Wl,deflateRawSync:Gl,unzip:Vl,unzipSync:$l,inflate:Xl,inflateSync:Kl,gunzip:Jl,gunzipSync:Ql,inflateRaw:ed,inflateRawSync:td,Deflate:id,Inflate:od,Gzip:ad,Gunzip:sd,DeflateRaw:ud,InflateRaw:cd,Unzip:hd,Zlib:fd},dd=Object.freeze({codes:Il,createDeflate:Pl,createInflate:Fl,createDeflateRaw:Ul,createInflateRaw:Ml,createGzip:Bl,createGunzip:Nl,createUnzip:Dl,deflate:ql,deflateSync:Zl,gzip:Hl,gzipSync:Yl,deflateRaw:Wl,deflateRawSync:Gl,unzip:Vl,unzipSync:$l,inflate:Xl,inflateSync:Kl,gunzip:Jl,gunzipSync:Ql,inflateRaw:ed,inflateRawSync:td,Deflate:id,Inflate:od,Gzip:ad,Gunzip:sd,DeflateRaw:ud,InflateRaw:cd,Unzip:hd,Zlib:fd,default:ld}),pd="Promise based HTTP client for the browser and node.js",gd="index.js",vd={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},md={type:"git",url:"https://github.com/axios/axios.git"},bd=["xhr","http","ajax","promise","node"],yd="Matt Zabriskie",_d={url:"https://github.com/axios/axios/issues"},wd="https://github.com/axios/axios",kd={bundlesize:"^0.5.7",coveralls:"^2.11.9","es6-promise":"^4.0.5",grunt:"^1.0.1","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.0.0","grunt-contrib-nodeunit":"^1.0.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^19.0.0","grunt-karma":"^2.0.0","grunt-ts":"^6.0.0-beta.3","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.0.0","karma-coverage":"^1.0.0","karma-firefox-launcher":"^1.0.0","karma-jasmine":"^1.0.2","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-phantomjs-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.1.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0","phantomjs-prebuilt":"^2.1.7",sinon:"^1.17.4",webpack:"^1.13.1","webpack-dev-server":"^1.14.1","url-search-params":"^0.6.1",typescript:"^2.0.3"},Ed={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},xd="./index.d.ts",Rd={"follow-redirects":"^1.2.5","is-buffer":"^1.1.5"},Ad=[{path:"./dist/axios.min.js",threshold:"5kB"}],Sd={name:"axios",version:"0.17.1",description:pd,main:gd,scripts:vd,repository:md,keywords:bd,author:yd,license:"MIT",bugs:_d,homepage:wd,devDependencies:kd,browser:Ed,typings:xd,dependencies:Rd,bundlesize:Ad},jd=Object.freeze({name:"axios",version:"0.17.1",description:pd,main:gd,scripts:vd,repository:md,keywords:bd,author:yd,license:"MIT",bugs:_d,homepage:wd,devDependencies:kd,browser:Ed,typings:xd,dependencies:Rd,bundlesize:Ad,default:Sd}),Cd=dd&&ld||dd,Od=jd&&Sd||jd,Td=Ku.http,Ld=Ku.https,zd={"Content-Type":"application/x-www-form-urlencoded"};function Id(e,t){!Mn.isUndefined(e)&&Mn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Pd,Fd={adapter:("undefined"!=typeof XMLHttpRequest?Pd=Ei:void 0!==hi&&(Pd=function(e){return new Promise(function(t,r){var n,i=e.data,o=e.headers;if(o["User-Agent"]||o["user-agent"]||(o["User-Agent"]="axios/"+Od.version),i&&!Mn.isStream(i)){if(vo(i));else if(Mn.isArrayBuffer(i))i=new Ui(new Uint8Array(i));else{if(!Mn.isString(i))return r(li("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));i=new Ui(i,"utf-8")}o["Content-Length"]=i.length}var a=void 0;e.auth&&(a=(e.auth.username||"")+":"+(e.auth.password||""));var s=qu.parse(e.url),u=s.protocol||"http:";if(!a&&s.auth){var c=s.auth.split(":");a=(c[0]||"")+":"+(c[1]||"")}a&&delete o.Authorization;var h,f="https:"===u,l=f?e.httpsAgent:e.httpAgent,d={hostname:s.hostname,port:s.port,path:gi(s.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method,headers:o,agent:l,auth:a},p=e.proxy;if(!p&&!1!==p){var g=u.slice(0,-1)+"_proxy",v=hi.env[g]||hi.env[g.toUpperCase()];if(v){var m=qu.parse(v);if(p={host:m.hostname,port:m.port},m.auth){var b=m.auth.split(":");p.auth={username:b[0],password:b[1]}}}}if(p&&(d.hostname=p.host,d.host=p.host,d.headers.host=s.hostname+(s.port?":"+s.port:""),d.port=p.port,d.path=u+"//"+s.hostname+(s.port?":"+s.port:"")+d.path,p.auth)){var y=new Ui(p.auth.username+":"+p.auth.password,"utf8").toString("base64");d.headers["Proxy-Authorization"]="Basic "+y}e.transport?h=e.transport:0===e.maxRedirects?h=Zu:(e.maxRedirects&&(d.maxRedirects=e.maxRedirects),h=f?Ld:Td);var _=h.request(d,function(i){if(!_.aborted){clearTimeout(n),n=null;var o=i;switch(i.headers["content-encoding"]){case"gzip":case"compress":case"deflate":o=o.pipe(Cd.createUnzip()),delete i.headers["content-encoding"]}var a=i.req||_,s={status:i.statusCode,statusText:i.statusMessage,headers:i.headers,config:e,request:a};if("stream"===e.responseType)s.data=o,di(t,r,s);else{var u=[];o.on("data",function(t){u.push(t),e.maxContentLength>-1&&Ui.concat(u).length>e.maxContentLength&&r(li("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,a))}),o.on("error",function(t){_.aborted||r(fi(t,e,null,a))}),o.on("end",function(){var n=Ui.concat(u);"arraybuffer"!==e.responseType&&(n=n.toString("utf8")),s.data=n,di(t,r,s)})}}});_.on("error",function(t){_.aborted||r(fi(t,e,null,_))}),e.timeout&&!n&&(n=setTimeout(function(){_.abort(),r(li("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",_))},e.timeout)),e.cancelToken&&e.cancelToken.promise.then(function(e){_.aborted||(_.abort(),r(e))}),Mn.isStream(i)?i.pipe(_):_.end(i)})}),Pd),transformRequest:[function(e,t){var r,n;return r=t,n="Content-Type",Mn.forEach(r,function(e,t){t!==n&&t.toUpperCase()===n.toUpperCase()&&(r[n]=e,delete r[t])}),Mn.isFormData(e)||Mn.isArrayBuffer(e)||Mn.isBuffer(e)||Mn.isStream(e)||Mn.isFile(e)||Mn.isBlob(e)?e:Mn.isArrayBufferView(e)?e.buffer:Mn.isURLSearchParams(e)?(Id(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Mn.isObject(e)?(Id(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};Fd.headers={common:{Accept:"application/json, text/plain, */*"}},Mn.forEach(["delete","get","head"],function(e){Fd.headers[e]={}}),Mn.forEach(["post","put","patch"],function(e){Fd.headers[e]=Mn.merge(zd)});var Ud=Fd;function Md(){this.handlers=[]}Md.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Md.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Md.prototype.forEach=function(e){Mn.forEach(this.handlers,function(t){null!==t&&e(t)})};var Bd=Md,Nd=function(e,t,r){return Mn.forEach(r,function(r){e=r(e,t)}),e},Dd=function(e){return!(!e||!e.__CANCEL__)};function qd(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Zd=function(e){var t,r,n;return qd(e),e.baseURL&&(n=e.url,!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(n))&&(e.url=(t=e.baseURL,(r=e.url)?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t)),e.headers=e.headers||{},e.data=Nd(e.data,e.headers,e.transformRequest),e.headers=Mn.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),Mn.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||Ud.adapter)(e).then(function(t){return qd(e),t.data=Nd(t.data,t.headers,e.transformResponse),t},function(t){return Dd(t)||(qd(e),t&&t.response&&(t.response.data=Nd(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})};function Hd(e){this.defaults=e,this.interceptors={request:new Bd,response:new Bd}}Hd.prototype.request=function(e){"string"==typeof e&&(e=Mn.merge({url:arguments[0]},arguments[1])),(e=Mn.merge(Ud,this.defaults,{method:"get"},e)).method=e.method.toLowerCase();var t=[Zd,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},Mn.forEach(["delete","get","head","options"],function(e){Hd.prototype[e]=function(t,r){return this.request(Mn.merge(r||{},{method:e,url:t}))}}),Mn.forEach(["post","put","patch"],function(e){Hd.prototype[e]=function(t,r,n){return this.request(Mn.merge(n||{},{method:e,url:t,data:r}))}});var Yd=Hd;function Wd(e){this.message=e}Wd.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Wd.prototype.__CANCEL__=!0;var Gd=Wd;function Vd(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new Gd(e),t(r.reason))})}Vd.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Vd.source=function(){var e;return{token:new Vd(function(t){e=t}),cancel:e}};var $d=Vd;function Xd(e){var t=new Yd(e),r=On(Yd.prototype.request,t);return Mn.extend(r,Yd.prototype,t),Mn.extend(r,t),r}var Kd=Xd(Ud);Kd.Axios=Yd,Kd.create=function(e){return Xd(Mn.merge(Ud,e))},Kd.Cancel=Gd,Kd.CancelToken=$d,Kd.isCancel=Dd,Kd.all=function(e){return Promise.all(e)},Kd.spread=function(e){return function(t){return e.apply(null,t)}};var Jd=Kd,Qd=Kd;Jd.default=Qd;var ep=Jd,tp=t(function(e){var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var i=e[n]<<16|e[n+1]<<8|e[n+2],o=0;o<4;o++)8*n+6*o<=8*e.length?r.push(t.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n<e.length;i=++n%4)0!=i&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(n))>>>6-2*i);return r}},e.exports=r}),rp={utf8:{stringToBytes:function(e){return rp.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(rp.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}},np=rp,ip=t(function(e){var t,r,n,i,o;t=tp,r=np.utf8,n=Tn,i=np.bin,(o=function e(o,a){o.constructor==String?o=a&&"binary"===a.encoding?i.stringToBytes(o):r.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):Array.isArray(o)||(o=o.toString());for(var s=t.bytesToWords(o),u=8*o.length,c=1732584193,h=-271733879,f=-1732584194,l=271733878,d=0;d<s.length;d++)s[d]=16711935&(s[d]<<8|s[d]>>>24)|4278255360&(s[d]<<24|s[d]>>>8);s[u>>>5]|=128<<u%32,s[14+(u+64>>>9<<4)]=u;var p=e._ff,g=e._gg,v=e._hh,m=e._ii;for(d=0;d<s.length;d+=16){var b=c,y=h,_=f,w=l;h=m(h=m(h=m(h=m(h=v(h=v(h=v(h=v(h=g(h=g(h=g(h=g(h=p(h=p(h=p(h=p(h,f=p(f,l=p(l,c=p(c,h,f,l,s[d+0],7,-680876936),h,f,s[d+1],12,-389564586),c,h,s[d+2],17,606105819),l,c,s[d+3],22,-1044525330),f=p(f,l=p(l,c=p(c,h,f,l,s[d+4],7,-176418897),h,f,s[d+5],12,1200080426),c,h,s[d+6],17,-1473231341),l,c,s[d+7],22,-45705983),f=p(f,l=p(l,c=p(c,h,f,l,s[d+8],7,1770035416),h,f,s[d+9],12,-1958414417),c,h,s[d+10],17,-42063),l,c,s[d+11],22,-1990404162),f=p(f,l=p(l,c=p(c,h,f,l,s[d+12],7,1804603682),h,f,s[d+13],12,-40341101),c,h,s[d+14],17,-1502002290),l,c,s[d+15],22,1236535329),f=g(f,l=g(l,c=g(c,h,f,l,s[d+1],5,-165796510),h,f,s[d+6],9,-1069501632),c,h,s[d+11],14,643717713),l,c,s[d+0],20,-373897302),f=g(f,l=g(l,c=g(c,h,f,l,s[d+5],5,-701558691),h,f,s[d+10],9,38016083),c,h,s[d+15],14,-660478335),l,c,s[d+4],20,-405537848),f=g(f,l=g(l,c=g(c,h,f,l,s[d+9],5,568446438),h,f,s[d+14],9,-1019803690),c,h,s[d+3],14,-187363961),l,c,s[d+8],20,1163531501),f=g(f,l=g(l,c=g(c,h,f,l,s[d+13],5,-1444681467),h,f,s[d+2],9,-51403784),c,h,s[d+7],14,1735328473),l,c,s[d+12],20,-1926607734),f=v(f,l=v(l,c=v(c,h,f,l,s[d+5],4,-378558),h,f,s[d+8],11,-2022574463),c,h,s[d+11],16,1839030562),l,c,s[d+14],23,-35309556),f=v(f,l=v(l,c=v(c,h,f,l,s[d+1],4,-1530992060),h,f,s[d+4],11,1272893353),c,h,s[d+7],16,-155497632),l,c,s[d+10],23,-1094730640),f=v(f,l=v(l,c=v(c,h,f,l,s[d+13],4,681279174),h,f,s[d+0],11,-358537222),c,h,s[d+3],16,-722521979),l,c,s[d+6],23,76029189),f=v(f,l=v(l,c=v(c,h,f,l,s[d+9],4,-640364487),h,f,s[d+12],11,-421815835),c,h,s[d+15],16,530742520),l,c,s[d+2],23,-995338651),f=m(f,l=m(l,c=m(c,h,f,l,s[d+0],6,-198630844),h,f,s[d+7],10,1126891415),c,h,s[d+14],15,-1416354905),l,c,s[d+5],21,-57434055),f=m(f,l=m(l,c=m(c,h,f,l,s[d+12],6,1700485571),h,f,s[d+3],10,-1894986606),c,h,s[d+10],15,-1051523),l,c,s[d+1],21,-2054922799),f=m(f,l=m(l,c=m(c,h,f,l,s[d+8],6,1873313359),h,f,s[d+15],10,-30611744),c,h,s[d+6],15,-1560198380),l,c,s[d+13],21,1309151649),f=m(f,l=m(l,c=m(c,h,f,l,s[d+4],6,-145523070),h,f,s[d+11],10,-1120210379),c,h,s[d+2],15,718787259),l,c,s[d+9],21,-343485551),c=c+b>>>0,h=h+y>>>0,f=f+_>>>0,l=l+w>>>0}return t.endian([c,h,f,l])})._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},o._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},o._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},o._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},o._blocksize=16,o._digestsize=16,e.exports=function(e,r){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var n=t.wordsToBytes(o(e,r));return r&&r.asBytes?n:r&&r.asString?i.bytesToString(n):t.bytesToHex(n)}}),op={},ap=function(){var e=n(l.mark(function e(t,r){var n;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=ip(t+"-"+JSON.stringify(r)))in op||(op[n]=ep(t,r).then(function(e){return op[n]=e,e})),e.abrupt("return",op[n]);case 3:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}(),sp=t(function(e){var t="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}",r="(?:(?:[0-9a-fA-F:]){1,4}(?:(?::(?:[0-9a-fA-F]){1,4}|:)){2,7})+",n=e.exports=function(e){return(e=e||{}).exact?new RegExp("(?:^"+t+"$)|(?:^"+r+"$)"):new RegExp("(?:"+t+")|(?:"+r+")","g")};n.v4=function(e){return(e=e||{}).exact?new RegExp("^"+t+"$"):new RegExp(t,"g")},n.v6=function(e){return(e=e||{}).exact?new RegExp("^"+r+"$"):new RegExp(r,"g")}}),up=["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","active","actor","ad","adac","ads","adult","ae","aeg","aero","aetna","af","afamilycompany","afl","africa","ag","agakhan","agency","ai","aig","aigo","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blanco","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnl","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","boots","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","budapest","bugatti","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","cartier","casa","case","caseih","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","ceb","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","chase","chat","cheap","chintai","christmas","chrome","chrysler","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dodge","dog","doha","domains","dot","download","drive","dtv","dubai","duck","dunlop","duns","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epost","epson","equipment","er","ericsson","erni","es","esq","estate","esurance","et","etisalat","eu","eurovision","eus","events","everbank","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glade","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodhands","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","honeywell","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","industries","infiniti","info","ing","ink","institute","insurance","insure","int","intel","international","intuit","investments","io","ipiranga","iq","ir","irish","is","iselect","ismaili","ist","istanbul","it","itau","itv","iveco","iwc","jaguar","java","jcb","jcp","je","jeep","jetzt","jewelry","jio","jlc","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","ladbrokes","lamborghini","lamer","lancaster","lancia","lancome","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","liaison","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","lk","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","lupin","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","meo","merckmsd","metlife","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","mobily","moda","moe","moi","mom","monash","money","monster","mopar","mormon","mortgage","moscow","moto","motorcycles","mov","movie","movistar","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","mutual","mv","mw","mx","my","mz","na","nab","nadex","nagoya","name","nationwide","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","panerai","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","piaget","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","qvc","racing","radio","raid","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","rightathome","ril","rio","rip","rmit","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sapo","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scor","scot","sd","se","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","shriram","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","space","spiegel","spot","spreadbetting","sr","srl","srt","st","stada","staples","star","starhub","statebank","statefarm","statoil","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiftcover","swiss","sx","sy","sydney","symantec","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","telecity","telefonica","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","uconnect","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","vista","vistaprint","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","warman","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","ಭಾರತ","慈善","集团","在线","한국","ଭାରତ","大众汽车","点看","คอม","ভাৰত","ভারত","八卦","موقع","বাংলা","公益","公司","香格里拉","网站","移动","我爱你","москва","қаз","католик","онлайн","сайт","联通","срб","бг","бел","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","삼성","சிங்கப்பூர்","商标","商店","商城","дети","мкд","ею","ポイント","新闻","工行","家電","كوم","中文网","中信","中国","中國","娱乐","谷歌","భారత్","ලංකා","電訊盈科","购物","クラウド","ભારત","通販","भारतम्","भारत","भारोत","网店","संगठन","餐厅","网络","ком","укр","香港","诺基亚","食品","飞利浦","台湾","台灣","手表","手机","мон","الجزائر","عمان","ارامكو","ایران","العليان","اتصالات","امارات","بازار","پاکستان","الاردن","موبايلي","بارت","بھارت","المغرب","ابوظبي","السعودية","ڀارت","كاثوليك","سودان","همراه","عراق","مليسيا","澳門","닷컴","政府","شبكة","بيتك","عرب","გე","机构","组织机构","健康","ไทย","سورية","рус","рф","珠宝","تونس","大拿","みんな","グーグル","ελ","世界","書籍","ഭാരതം","ਭਾਰਤ","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","مصر","قطر","广东","இலங்கை","இந்தியா","հայ","新加坡","فلسطين","政务","xperia","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zippo","zm","zone","zuerich","zw"],cp=t(function(e){e.exports=function(e){var t="(?:"+("(?:(?:[a-z]+:)?//)"+((e=Object.assign({strict:!0},e)).strict?"":"?"))+"|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+sp.v4().source+"|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+("(?:\\."+(e.strict?"(?:[a-z\\u00a1-\\uffff]{2,})":"(?:"+up.sort(function(e,t){return t.length-e.length}).join("|")+")")+")\\.?")+')(?::\\d{2,5})?(?:[/?#][^\\s"]*)?';return e.exact?new RegExp("(?:^"+t+"$)","i"):new RegExp(t,"ig")}})({exact:!0});var hp=Object.freeze({PROP_DELIMITER:".",REGEX_PROP_IS_ARR_IS_OPT:/^([^[\]?]+)(\[])?(\?)?$/});function fp(e,t){var r=t.split(hp.PROP_DELIMITER),n=hp.REGEX_PROP_IS_ARR_IS_OPT.exec(r.shift())||[],i=a(n,4),o=i[1],s=i[2],u=i[3],c=r.join(hp.PROP_DELIMITER);if(!o)return e;if(!(o in e)){if(u)return s?[]:null;throw new Error("RuntimeError: could not get property `"+o+"`")}var h=e[o];return s?h.map(function(e){return fp(e,c)}):fp(h,c)}function lp(e,t){var r=t.split(hp.PROP_DELIMITER),n=hp.REGEX_PROP_IS_ARR_IS_OPT.exec(r.shift())||[],o=a(n,3),s=o[1],u=o[2],c=r.join(hp.PROP_DELIMITER);return s?i({},s,u?e.map(function(e){return lp(e,c)}):lp(e,c)):e}var dp=function(){var e=n(l.mark(function e(r,s,u){var c,h,f,d,p,g=this;return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return",null);case 2:if(v=r,cp.test(v)){e.next=4;break}throw new Error("InvalidArgumentError: invalid resource `"+r+"`");case 4:return e.t0=rn,e.next=7,ap(r,u);case 7:if(e.t1=e.sent,(c=(0,e.t0)(e.t1)).config.validateStatus(c.status)){e.next=11;break}throw new Error("RuntimeError: could not fetch resource `"+r+"`");case 11:if(h=c.data,s){e.next=14;break}return e.abrupt("return",h);case 14:return f=Object.keys(s).map(function(e){return i({},e,fp(h,e))}),d=Object.entries(f.reduce(function(e,t){return o({},e,t)},{})),e.next=18,Promise.all(d.map(function(){var e=n(l.mark(function e(r){var i,o,c=a(r,2),h=c[0],f=c[1];return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=s[h],!Array.isArray(f)){e.next=7;break}return e.next=4,Promise.all(f.map(function(){var e=n(l.mark(function e(r){return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(r,i,u));case 1:case"end":return e.stop()}},e,g)}));return function(t){return e.apply(this,arguments)}}()));case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,t(f,i,u);case 9:e.t0=e.sent;case 10:return o=e.t0,e.abrupt("return",[h,o]);case 12:case"end":return e.stop()}},e,g)}));return function(t){return e.apply(this,arguments)}}()));case 18:return p=e.sent,e.abrupt("return",p.reduce(function(e,t){var r=a(t,2),n=r[0],i=r[1];return Cn(e,lp(i,n))},h));case 20:case"end":return e.stop()}var v},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}();function pp(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)}function gp(e){if(!e)return!0;var t=Object.keys(e);return!!t.length&&t.map(function(t){return!t.startsWith(hp.PROP_DELIMITER)&&!t.endsWith(hp.PROP_DELIMITER)&&gp(e[t])}).reduce(function(e,t){return e&&t},!0)}return function(){var e=n(l.mark(function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(pp(r)&&gp(r)){e.next=2;break}throw new Error("InvalidArgumentError: invalid resolver `"+JSON.stringify(r)+"`");case 2:if(pp(n)){e.next=4;break}throw new Error("InvalidArgumentError: invalid options `"+JSON.stringify(n)+"`");case 4:return e.abrupt("return",dp(t,r,n));case 5:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()});
1
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).restql=r()}(this,function(){"use strict";function t(t){if(!t||"object"!=typeof t)return!1;const r=Object.getPrototypeOf(t);return!(null!==r&&r!==Object.prototype&&null!==Object.getPrototypeOf(r))&&"[object Object]"===Object.prototype.toString.call(t)}function r(t){return"__proto__"===t}function n(o,i){const c=Object.keys(i);for(let u=0;u<c.length;u++){const s=c[u];if(r(s))continue;const f=i[s],a=o[s];e(f)&&e(a)?o[s]=n(a,f):Array.isArray(f)?o[s]=n([],f):t(f)?o[s]=n({},f):void 0!==a&&void 0===f||(o[s]=f)}return o}function e(r){return t(r)||Array.isArray(r)}const o={};async function i(t,r){const n=`${t}-${JSON.stringify(r)}`;return n in o||(o[n]=fetch(t,r).then(t=>(o[n]=t,t))),o[n]}const c=Object.freeze({PROP_DELIMITER:".",REGEX_PROP_IS_ARR_IS_OPT:/^([^[\]?]+)(\[])?(\?)?$/});function u(t,r){const n=r.split(c.PROP_DELIMITER),[,e,o,i]=c.REGEX_PROP_IS_ARR_IS_OPT.exec(n.shift())||[],s=n.join(c.PROP_DELIMITER);if(!e)return t;if(!(e in t)){if(i)return o?[]:null;throw new Error(`RuntimeError: could not get property \`${e}\``)}const f=t[e];return o?f.map(t=>u(t,s)):u(f,s)}function s(t,r){const n=r.split(c.PROP_DELIMITER),[,e,o]=c.REGEX_PROP_IS_ARR_IS_OPT.exec(n.shift())||[],i=n.join(c.PROP_DELIMITER);return e?{[e]:o?t.map(t=>s(t,i)):s(t,i)}:t}async function f(t,r,e){if(!t)return null;if(!function(t){return Boolean(URL.parse(t))}(t))throw new Error(`InvalidArgumentError: invalid resource \`${t}\``);const o=(await i(t,e)).clone();if(!o.ok)throw new Error(`RuntimeError: could not fetch resource \`${t}\``);const c=await o.json();if(!r)return c;const a=Object.keys(r).map(t=>({[t]:u(c,t)})),l=Object.entries(a.reduce((t,r)=>({...t,...r}),{}));return(await Promise.all(l.map(async([t,n])=>{const o=r[t];return[t,Array.isArray(n)?await Promise.all(n.map(async t=>f(t,o,e))):await f(n,o,e)]}))).reduce((t,[r,e])=>n(t,s(e,r)),c)}function a(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}function l(t){if(!t)return!0;const r=Object.keys(t);return!!r.length&&r.map(r=>!r.startsWith(c.PROP_DELIMITER)&&!r.endsWith(c.PROP_DELIMITER)&&l(t[r])).reduce((t,r)=>t&&r,!0)}return async function(t,r,n={}){if(!a(r)||!l(r))throw new Error(`InvalidArgumentError: invalid resolver \`${JSON.stringify(r)}\``);if(!a(n))throw new Error(`InvalidArgumentError: invalid options \`${JSON.stringify(n)}\``);return f(t,r,n)}});