UNPKG

bitcore-matrixpay-lib

Version:
16 lines 984 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.matrixpaycore=e():t.matrixpaycore=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=126)}([function(t,e,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */ var i=r(128),n=r(129),s=r(80);function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=f.prototype:(null===t&&(t=new f(e)),t.length=e),t}function f(t,e,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return h(this,t,e,r)}function h(t,e,r,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,r):new Uint8Array(e,r,i);f.TYPED_ARRAY_SUPPORT?(t=e).__proto__=f.prototype:t=d(t,e);return t}(t,e,r,i):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!f.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,r),n=(t=a(t,i)).write(e,r);n!==i&&(t=t.slice(0,n));return t}(t,e,r):function(t,e){if(f.isBuffer(e)){var r=0|l(e.length);return 0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):d(t,e);if("Buffer"===e.type&&s(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(u(e),t=a(t,e<0?0:0|l(e)),!f.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e){var r=e.length<0?0:0|l(e.length);t=a(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function l(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(t).length;default:if(i)return q(t).length;e=(""+e).toLowerCase(),i=!0}}function b(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function m(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=f.from(e,i)),f.isBuffer(e))return 0===e.length?-1:g(t,e,r,i,n);if("number"==typeof e)return e&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(t,e,r,i,n){var s,o=1,a=t.length,f=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,a/=2,f/=2,r/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){var u=-1;for(s=r;s<a;s++)if(h(t,s)===h(e,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===f)return u*o}else-1!==u&&(s-=s-u),u=-1}else for(r+f>a&&(r=a-f),s=r;s>=0;s--){for(var c=!0,d=0;d<f;d++)if(h(t,s+d)!==h(e,d)){c=!1;break}if(c)return s}return-1}function v(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o<i;++o){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))return o;t[r+o]=a}return o}function y(t,e,r,i){return F(q(e,t.length-r),t,r,i)}function w(t,e,r,i){return F(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function _(t,e,r,i){return w(t,e,r,i)}function M(t,e,r,i){return F(D(e),t,r,i)}function S(t,e,r,i){return F(function(t,e){for(var r,i,n,s=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),i=r>>8,n=r%256,s.push(n),s.push(i);return s}(e,t.length-r),t,r,i)}function A(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function k(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var s,o,a,f,h=t[n],u=null,c=h>239?4:h>223?3:h>191?2:1;if(n+c<=r)switch(c){case 1:h<128&&(u=h);break;case 2:128==(192&(s=t[n+1]))&&(f=(31&h)<<6|63&s)>127&&(u=f);break;case 3:s=t[n+1],o=t[n+2],128==(192&s)&&128==(192&o)&&(f=(15&h)<<12|(63&s)<<6|63&o)>2047&&(f<55296||f>57343)&&(u=f);break;case 4:s=t[n+1],o=t[n+2],a=t[n+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(f=(15&h)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&f<1114112&&(u=f)}null===u?(u=65533,c=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=c}return function(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=I));return r}(i)}e.Buffer=f,e.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},e.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=o(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,e,r){return h(null,t,e,r)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,e,r){return function(t,e,r,i){return u(e),e<=0?a(t,e):void 0!==r?"string"==typeof i?a(t,e).fill(r,i):a(t,e).fill(r):a(t,e)}(null,t,e,r)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,e){if(!f.isBuffer(t)||!f.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,i=e.length,n=0,s=Math.min(r,i);n<s;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},f.isEncoding=function(t){switch(String(t).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}},f.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var i=f.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var o=t[r];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):function(t,e,r){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return k(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return E(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,e,r,i,n){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,i>>>=0,n>>>=0,this===t)return 0;for(var s=n-i,o=r-e,a=Math.min(s,o),h=this.slice(i,n),u=t.slice(e,r),c=0;c<a;++c)if(h[c]!==u[c]){s=h[c],o=u[c];break}return s<o?-1:o<s?1:0},f.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},f.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return y(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function x(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function E(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function P(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var n="",s=e;s<r;++s)n+=U(t[s]);return n}function B(t,e,r){for(var i=t.slice(e,r),n="",s=0;s<i.length;s+=2)n+=String.fromCharCode(i[s]+256*i[s+1]);return n}function O(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,i,n,s){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function T(t,e,r,i){e<0&&(e=65535+e+1);for(var n=0,s=Math.min(t.length-r,2);n<s;++n)t[r+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function N(t,e,r,i){e<0&&(e=4294967295+e+1);for(var n=0,s=Math.min(t.length-r,4);n<s;++n)t[r+n]=e>>>8*(i?n:3-n)&255}function C(t,e,r,i,n,s){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(t,e,r,i,s){return s||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function L(t,e,r,i,s){return s||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}f.prototype.slice=function(t,e){var r,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),f.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=f.prototype;else{var n=e-t;r=new f(n,void 0);for(var s=0;s<n;++s)r[s]=this[s+t]}return r},f.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var i=this[t],n=1,s=0;++s<e&&(n*=256);)i+=this[t+s]*n;return i},f.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},f.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var i=this[t],n=1,s=0;++s<e&&(n*=256);)i+=this[t+s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},f.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||O(t,e,this.length);for(var i=e,n=1,s=this[t+--i];i>0&&(n*=256);)s+=this[t+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},f.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),n.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),n.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),n.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),n.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||R(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,s=0;for(this[e]=255&t;++s<r&&(n*=256);)this[e+s]=t/n&255;return e+r},f.prototype.writeUIntBE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||R(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,s=1;for(this[e+n]=255&t;--n>=0&&(s*=256);)this[e+n]=t/s&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},f.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},f.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},f.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},f.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}var s=0,o=1,a=0;for(this[e]=255&t;++s<r&&(o*=256);)t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},f.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}var s=r-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):T(this,t,e,!0),e+2},f.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):T(this,t,e,!1),e+2},f.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},f.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},f.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,i){if(r||(r=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n,s=i-r;if(this===t&&r<e&&e<i)for(n=s-1;n>=0;--n)t[n+e]=this[n+r];else if(s<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n<s;++n)t[n+e]=this[n+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+s),e);return s},f.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var s;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(s=e;s<r;++s)this[s]=t;else{var o=f.isBuffer(t)?t:q(new f(t,i).toString()),a=o.length;for(s=0;s<r-e;++s)this[s+e]=o[s%a]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var r;e=e||1/0;for(var i=t.length,n=null,s=[],o=0;o<i;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function D(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}}).call(e,r(9))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){var i=r(0),n=i.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(s(i,e),e.Buffer=o),s(n,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,r){(function(t,i){var n; /** * @license * Lodash <https://lodash.com/> * Copyright JS Foundation and other contributors <https://js.foundation/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var s,o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",h="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",d=1,l=2,p=4,b=1,m=2,g=1,v=2,y=4,w=8,_=16,M=32,S=64,A=128,k=256,I=512,x=30,E="...",P=800,B=16,O=1,R=2,T=1/0,N=9007199254740991,C=1.7976931348623157e308,j=NaN,L=4294967295,z=L-1,U=L>>>1,q=[["ary",A],["bind",g],["bindKey",v],["curry",w],["curryRight",_],["flip",I],["partial",M],["partialRight",S],["rearg",k]],D="[object Arguments]",F="[object Array]",K="[object AsyncFunction]",H="[object Boolean]",V="[object Date]",Z="[object DOMException]",Y="[object Error]",G="[object Function]",W="[object GeneratorFunction]",X="[object Map]",J="[object Number]",$="[object Null]",Q="[object Object]",tt="[object Proxy]",et="[object RegExp]",rt="[object Set]",it="[object String]",nt="[object Symbol]",st="[object Undefined]",ot="[object WeakMap]",at="[object WeakSet]",ft="[object ArrayBuffer]",ht="[object DataView]",ut="[object Float32Array]",ct="[object Float64Array]",dt="[object Int8Array]",lt="[object Int16Array]",pt="[object Int32Array]",bt="[object Uint8Array]",mt="[object Uint8ClampedArray]",gt="[object Uint16Array]",vt="[object Uint32Array]",yt=/\b__p \+= '';/g,wt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mt=/&(?:amp|lt|gt|quot|#39);/g,St=/[&<>"']/g,At=RegExp(Mt.source),kt=RegExp(St.source),It=/<%-([\s\S]+?)%>/g,xt=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rt=/[\\^$.*+?()[\]{}|]/g,Tt=RegExp(Rt.source),Nt=/^\s+|\s+$/g,Ct=/^\s+/,jt=/\s+$/,Lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kt=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,Vt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Yt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,$t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",te="[\\ud800-\\udfff]",ee="["+Qt+"]",re="["+$t+"]",ie="\\d+",ne="[\\u2700-\\u27bf]",se="[a-z\\xdf-\\xf6\\xf8-\\xff]",oe="[^\\ud800-\\udfff"+Qt+ie+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ae="\\ud83c[\\udffb-\\udfff]",fe="[^\\ud800-\\udfff]",he="(?:\\ud83c[\\udde6-\\uddff]){2}",ue="[\\ud800-\\udbff][\\udc00-\\udfff]",ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",de="(?:"+se+"|"+oe+")",le="(?:"+ce+"|"+oe+")",pe="(?:"+re+"|"+ae+")"+"?",be="[\\ufe0e\\ufe0f]?"+pe+("(?:\\u200d(?:"+[fe,he,ue].join("|")+")[\\ufe0e\\ufe0f]?"+pe+")*"),me="(?:"+[ne,he,ue].join("|")+")"+be,ge="(?:"+[fe+re+"?",re,he,ue,te].join("|")+")",ve=RegExp("['’]","g"),ye=RegExp(re,"g"),we=RegExp(ae+"(?="+ae+")|"+ge+be,"g"),_e=RegExp([ce+"?"+se+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,ce,"$"].join("|")+")",le+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,ce+de,"$"].join("|")+")",ce+"?"+de+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ie,me].join("|"),"g"),Me=RegExp("[\\u200d\\ud800-\\udfff"+$t+"\\ufe0e\\ufe0f]"),Se=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ke=-1,Ie={};Ie[ut]=Ie[ct]=Ie[dt]=Ie[lt]=Ie[pt]=Ie[bt]=Ie[mt]=Ie[gt]=Ie[vt]=!0,Ie[D]=Ie[F]=Ie[ft]=Ie[H]=Ie[ht]=Ie[V]=Ie[Y]=Ie[G]=Ie[X]=Ie[J]=Ie[Q]=Ie[et]=Ie[rt]=Ie[it]=Ie[ot]=!1;var xe={};xe[D]=xe[F]=xe[ft]=xe[ht]=xe[H]=xe[V]=xe[ut]=xe[ct]=xe[dt]=xe[lt]=xe[pt]=xe[X]=xe[J]=xe[Q]=xe[et]=xe[rt]=xe[it]=xe[nt]=xe[bt]=xe[mt]=xe[gt]=xe[vt]=!0,xe[Y]=xe[G]=xe[ot]=!1;var Ee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pe=parseFloat,Be=parseInt,Oe="object"==typeof t&&t&&t.Object===Object&&t,Re="object"==typeof self&&self&&self.Object===Object&&self,Te=Oe||Re||Function("return this")(),Ne="object"==typeof e&&e&&!e.nodeType&&e,Ce=Ne&&"object"==typeof i&&i&&!i.nodeType&&i,je=Ce&&Ce.exports===Ne,Le=je&&Oe.process,ze=function(){try{var t=Ce&&Ce.require&&Ce.require("util").types;return t||Le&&Le.binding&&Le.binding("util")}catch(t){}}(),Ue=ze&&ze.isArrayBuffer,qe=ze&&ze.isDate,De=ze&&ze.isMap,Fe=ze&&ze.isRegExp,Ke=ze&&ze.isSet,He=ze&&ze.isTypedArray;function Ve(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ze(t,e,r,i){for(var n=-1,s=null==t?0:t.length;++n<s;){var o=t[n];e(i,o,r(o),t)}return i}function Ye(t,e){for(var r=-1,i=null==t?0:t.length;++r<i&&!1!==e(t[r],r,t););return t}function Ge(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function We(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(!e(t[r],r,t))return!1;return!0}function Xe(t,e){for(var r=-1,i=null==t?0:t.length,n=0,s=[];++r<i;){var o=t[r];e(o,r,t)&&(s[n++]=o)}return s}function Je(t,e){return!!(null==t?0:t.length)&&ar(t,e,0)>-1}function $e(t,e,r){for(var i=-1,n=null==t?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}function Qe(t,e){for(var r=-1,i=null==t?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}function tr(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}function er(t,e,r,i){var n=-1,s=null==t?0:t.length;for(i&&s&&(r=t[++n]);++n<s;)r=e(r,t[n],n,t);return r}function rr(t,e,r,i){var n=null==t?0:t.length;for(i&&n&&(r=t[--n]);n--;)r=e(r,t[n],n,t);return r}function ir(t,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1}var nr=cr("length");function sr(t,e,r){var i;return r(t,function(t,r,n){if(e(t,r,n))return i=r,!1}),i}function or(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}function ar(t,e,r){return e==e?function(t,e,r){var i=r-1,n=t.length;for(;++i<n;)if(t[i]===e)return i;return-1}(t,e,r):or(t,hr,r)}function fr(t,e,r,i){for(var n=r-1,s=t.length;++n<s;)if(i(t[n],e))return n;return-1}function hr(t){return t!=t}function ur(t,e){var r=null==t?0:t.length;return r?pr(t,e)/r:j}function cr(t){return function(e){return null==e?s:e[t]}}function dr(t){return function(e){return null==t?s:t[e]}}function lr(t,e,r,i,n){return n(t,function(t,n,s){r=i?(i=!1,t):e(r,t,n,s)}),r}function pr(t,e){for(var r,i=-1,n=t.length;++i<n;){var o=e(t[i]);o!==s&&(r=r===s?o:r+o)}return r}function br(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}function mr(t){return function(e){return t(e)}}function gr(t,e){return Qe(e,function(e){return t[e]})}function vr(t,e){return t.has(e)}function yr(t,e){for(var r=-1,i=t.length;++r<i&&ar(e,t[r],0)>-1;);return r}function wr(t,e){for(var r=t.length;r--&&ar(e,t[r],0)>-1;);return r}var _r=dr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Mr=dr({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Sr(t){return"\\"+Ee[t]}function Ar(t){return Me.test(t)}function kr(t){var e=-1,r=Array(t.size);return t.forEach(function(t,i){r[++e]=[i,t]}),r}function Ir(t,e){return function(r){return t(e(r))}}function xr(t,e){for(var r=-1,i=t.length,n=0,s=[];++r<i;){var o=t[r];o!==e&&o!==c||(t[r]=c,s[n++]=r)}return s}function Er(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function Pr(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=[t,t]}),r}function Br(t){return Ar(t)?function(t){var e=we.lastIndex=0;for(;we.test(t);)++e;return e}(t):nr(t)}function Or(t){return Ar(t)?function(t){return t.match(we)||[]}(t):function(t){return t.split("")}(t)}var Rr=dr({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Tr=function t(e){var r=(e=null==e?Te:Tr.defaults(Te.Object(),e,Tr.pick(Te,Ae))).Array,i=e.Date,n=e.Error,$t=e.Function,Qt=e.Math,te=e.Object,ee=e.RegExp,re=e.String,ie=e.TypeError,ne=r.prototype,se=$t.prototype,oe=te.prototype,ae=e["__core-js_shared__"],fe=se.toString,he=oe.hasOwnProperty,ue=0,ce=function(){var t=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),de=oe.toString,le=fe.call(te),pe=Te._,be=ee("^"+fe.call(he).replace(Rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=je?e.Buffer:s,ge=e.Symbol,we=e.Uint8Array,Me=me?me.allocUnsafe:s,Ee=Ir(te.getPrototypeOf,te),Oe=te.create,Re=oe.propertyIsEnumerable,Ne=ne.splice,Ce=ge?ge.isConcatSpreadable:s,Le=ge?ge.iterator:s,ze=ge?ge.toStringTag:s,nr=function(){try{var t=Ls(te,"defineProperty");return t({},"",{}),t}catch(t){}}(),dr=e.clearTimeout!==Te.clearTimeout&&e.clearTimeout,Nr=i&&i.now!==Te.Date.now&&i.now,Cr=e.setTimeout!==Te.setTimeout&&e.setTimeout,jr=Qt.ceil,Lr=Qt.floor,zr=te.getOwnPropertySymbols,Ur=me?me.isBuffer:s,qr=e.isFinite,Dr=ne.join,Fr=Ir(te.keys,te),Kr=Qt.max,Hr=Qt.min,Vr=i.now,Zr=e.parseInt,Yr=Qt.random,Gr=ne.reverse,Wr=Ls(e,"DataView"),Xr=Ls(e,"Map"),Jr=Ls(e,"Promise"),$r=Ls(e,"Set"),Qr=Ls(e,"WeakMap"),ti=Ls(te,"create"),ei=Qr&&new Qr,ri={},ii=ho(Wr),ni=ho(Xr),si=ho(Jr),oi=ho($r),ai=ho(Qr),fi=ge?ge.prototype:s,hi=fi?fi.valueOf:s,ui=fi?fi.toString:s;function ci(t){if(xa(t)&&!ma(t)&&!(t instanceof bi)){if(t instanceof pi)return t;if(he.call(t,"__wrapped__"))return uo(t)}return new pi(t)}var di=function(){function t(){}return function(e){if(!Ia(e))return{};if(Oe)return Oe(e);t.prototype=e;var r=new t;return t.prototype=s,r}}();function li(){}function pi(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=s}function bi(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function mi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function gi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function vi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function yi(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new vi;++e<r;)this.add(t[e])}function wi(t){var e=this.__data__=new gi(t);this.size=e.size}function _i(t,e){var r=ma(t),i=!r&&ba(t),n=!r&&!i&&wa(t),s=!r&&!i&&!n&&Ca(t),o=r||i||n||s,a=o?br(t.length,re):[],f=a.length;for(var h in t)!e&&!he.call(t,h)||o&&("length"==h||n&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||Hs(h,f))||a.push(h);return a}function Mi(t){var e=t.length;return e?t[wn(0,e-1)]:s}function Si(t,e){return oo(es(t),Ri(e,0,t.length))}function Ai(t){return oo(es(t))}function ki(t,e,r){(r===s||da(t[e],r))&&(r!==s||e in t)||Bi(t,e,r)}function Ii(t,e,r){var i=t[e];he.call(t,e)&&da(i,r)&&(r!==s||e in t)||Bi(t,e,r)}function xi(t,e){for(var r=t.length;r--;)if(da(t[r][0],e))return r;return-1}function Ei(t,e,r,i){return Li(t,function(t,n,s){e(i,t,r(t),s)}),i}function Pi(t,e){return t&&rs(e,nf(e),t)}function Bi(t,e,r){"__proto__"==e&&nr?nr(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Oi(t,e){for(var i=-1,n=e.length,o=r(n),a=null==t;++i<n;)o[i]=a?s:$a(t,e[i]);return o}function Ri(t,e,r){return t==t&&(r!==s&&(t=t<=r?t:r),e!==s&&(t=t>=e?t:e)),t}function Ti(t,e,r,i,n,o){var a,f=e&d,h=e&l,u=e&p;if(r&&(a=n?r(t,i,n,o):r(t)),a!==s)return a;if(!Ia(t))return t;var c=ma(t);if(c){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&he.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!f)return es(t,a)}else{var b=qs(t),m=b==G||b==W;if(wa(t))return Wn(t,f);if(b==Q||b==D||m&&!n){if(a=h||m?{}:Fs(t),!f)return h?function(t,e){return rs(t,Us(t),e)}(t,function(t,e){return t&&rs(e,sf(e),t)}(a,t)):function(t,e){return rs(t,zs(t),e)}(t,Pi(a,t))}else{if(!xe[b])return n?t:{};a=function(t,e,r){var i=t.constructor;switch(e){case ft:return Xn(t);case H:case V:return new i(+t);case ht:return function(t,e){var r=e?Xn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case ut:case ct:case dt:case lt:case pt:case bt:case mt:case gt:case vt:return Jn(t,r);case X:return new i;case J:case it:return new i(t);case et:return function(t){var e=new t.constructor(t.source,Kt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case rt:return new i;case nt:return function(t){return hi?te(hi.call(t)):{}}(t)}}(t,b,f)}}o||(o=new wi);var g=o.get(t);if(g)return g;if(o.set(t,a),Ra(t))return t.forEach(function(i){a.add(Ti(i,e,r,i,t,o))}),a;if(Ea(t))return t.forEach(function(i,n){a.set(n,Ti(i,e,r,n,t,o))}),a;var v=c?s:(u?h?Bs:Ps:h?sf:nf)(t);return Ye(v||t,function(i,n){v&&(i=t[n=i]),Ii(a,n,Ti(i,e,r,n,t,o))}),a}function Ni(t,e,r){var i=r.length;if(null==t)return!i;for(t=te(t);i--;){var n=r[i],o=e[n],a=t[n];if(a===s&&!(n in t)||!o(a))return!1}return!0}function Ci(t,e,r){if("function"!=typeof t)throw new ie(f);return ro(function(){t.apply(s,r)},e)}function ji(t,e,r,i){var n=-1,s=Je,a=!0,f=t.length,h=[],u=e.length;if(!f)return h;r&&(e=Qe(e,mr(r))),i?(s=$e,a=!1):e.length>=o&&(s=vr,a=!1,e=new yi(e));t:for(;++n<f;){var c=t[n],d=null==r?c:r(c);if(c=i||0!==c?c:0,a&&d==d){for(var l=u;l--;)if(e[l]===d)continue t;h.push(c)}else s(e,d,i)||h.push(c)}return h}ci.templateSettings={escape:It,evaluate:xt,interpolate:Et,variable:"",imports:{_:ci}},ci.prototype=li.prototype,ci.prototype.constructor=ci,pi.prototype=di(li.prototype),pi.prototype.constructor=pi,bi.prototype=di(li.prototype),bi.prototype.constructor=bi,mi.prototype.clear=function(){this.__data__=ti?ti(null):{},this.size=0},mi.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mi.prototype.get=function(t){var e=this.__data__;if(ti){var r=e[t];return r===h?s:r}return he.call(e,t)?e[t]:s},mi.prototype.has=function(t){var e=this.__data__;return ti?e[t]!==s:he.call(e,t)},mi.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ti&&e===s?h:e,this},gi.prototype.clear=function(){this.__data__=[],this.size=0},gi.prototype.delete=function(t){var e=this.__data__,r=xi(e,t);return!(r<0||(r==e.length-1?e.pop():Ne.call(e,r,1),--this.size,0))},gi.prototype.get=function(t){var e=this.__data__,r=xi(e,t);return r<0?s:e[r][1]},gi.prototype.has=function(t){return xi(this.__data__,t)>-1},gi.prototype.set=function(t,e){var r=this.__data__,i=xi(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this},vi.prototype.clear=function(){this.size=0,this.__data__={hash:new mi,map:new(Xr||gi),string:new mi}},vi.prototype.delete=function(t){var e=Cs(this,t).delete(t);return this.size-=e?1:0,e},vi.prototype.get=function(t){return Cs(this,t).get(t)},vi.prototype.has=function(t){return Cs(this,t).has(t)},vi.prototype.set=function(t,e){var r=Cs(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this},yi.prototype.add=yi.prototype.push=function(t){return this.__data__.set(t,h),this},yi.prototype.has=function(t){return this.__data__.has(t)},wi.prototype.clear=function(){this.__data__=new gi,this.size=0},wi.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},wi.prototype.get=function(t){return this.__data__.get(t)},wi.prototype.has=function(t){return this.__data__.has(t)},wi.prototype.set=function(t,e){var r=this.__data__;if(r instanceof gi){var i=r.__data__;if(!Xr||i.length<o-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new vi(i)}return r.set(t,e),this.size=r.size,this};var Li=ss(Vi),zi=ss(Zi,!0);function Ui(t,e){var r=!0;return Li(t,function(t,i,n){return r=!!e(t,i,n)}),r}function qi(t,e,r){for(var i=-1,n=t.length;++i<n;){var o=t[i],a=e(o);if(null!=a&&(f===s?a==a&&!Na(a):r(a,f)))var f=a,h=o}return h}function Di(t,e){var r=[];return Li(t,function(t,i,n){e(t,i,n)&&r.push(t)}),r}function Fi(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=Ks),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?Fi(a,e-1,r,i,n):tr(n,a):i||(n[n.length]=a)}return n}var Ki=os(),Hi=os(!0);function Vi(t,e){return t&&Ki(t,e,nf)}function Zi(t,e){return t&&Hi(t,e,nf)}function Yi(t,e){return Xe(e,function(e){return Sa(t[e])})}function Gi(t,e){for(var r=0,i=(e=Vn(e,t)).length;null!=t&&r<i;)t=t[fo(e[r++])];return r&&r==i?t:s}function Wi(t,e,r){var i=e(t);return ma(t)?i:tr(i,r(t))}function Xi(t){return null==t?t===s?st:$:ze&&ze in te(t)?function(t){var e=he.call(t,ze),r=t[ze];try{t[ze]=s;var i=!0}catch(t){}var n=de.call(t);return i&&(e?t[ze]=r:delete t[ze]),n}(t):function(t){return de.call(t)}(t)}function Ji(t,e){return t>e}function $i(t,e){return null!=t&&he.call(t,e)}function Qi(t,e){return null!=t&&e in te(t)}function tn(t,e,i){for(var n=i?$e:Je,o=t[0].length,a=t.length,f=a,h=r(a),u=1/0,c=[];f--;){var d=t[f];f&&e&&(d=Qe(d,mr(e))),u=Hr(d.length,u),h[f]=!i&&(e||o>=120&&d.length>=120)?new yi(f&&d):s}d=t[0];var l=-1,p=h[0];t:for(;++l<o&&c.length<u;){var b=d[l],m=e?e(b):b;if(b=i||0!==b?b:0,!(p?vr(p,m):n(c,m,i))){for(f=a;--f;){var g=h[f];if(!(g?vr(g,m):n(t[f],m,i)))continue t}p&&p.push(m),c.push(b)}}return c}function en(t,e,r){var i=null==(t=Qs(t,e=Vn(e,t)))?t:t[fo(Mo(e))];return null==i?s:Ve(i,t,r)}function rn(t){return xa(t)&&Xi(t)==D}function nn(t,e,r,i,n){return t===e||(null==t||null==e||!xa(t)&&!xa(e)?t!=t&&e!=e:function(t,e,r,i,n,o){var a=ma(t),f=ma(e),h=a?F:qs(t),u=f?F:qs(e),c=(h=h==D?Q:h)==Q,d=(u=u==D?Q:u)==Q,l=h==u;if(l&&wa(t)){if(!wa(e))return!1;a=!0,c=!1}if(l&&!c)return o||(o=new wi),a||Ca(t)?xs(t,e,r,i,n,o):function(t,e,r,i,n,s,o){switch(r){case ht:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!s(new we(t),new we(e)));case H:case V:case J:return da(+t,+e);case Y:return t.name==e.name&&t.message==e.message;case et:case it:return t==e+"";case X:var a=kr;case rt:var f=i&b;if(a||(a=Er),t.size!=e.size&&!f)return!1;var h=o.get(t);if(h)return h==e;i|=m,o.set(t,e);var u=xs(a(t),a(e),i,n,s,o);return o.delete(t),u;case nt:if(hi)return hi.call(t)==hi.call(e)}return!1}(t,e,h,r,i,n,o);if(!(r&b)){var p=c&&he.call(t,"__wrapped__"),g=d&&he.call(e,"__wrapped__");if(p||g){var v=p?t.value():t,y=g?e.value():e;return o||(o=new wi),n(v,y,r,i,o)}}return!!l&&(o||(o=new wi),function(t,e,r,i,n,o){var a=r&b,f=Ps(t),h=f.length,u=Ps(e).length;if(h!=u&&!a)return!1;for(var c=h;c--;){var d=f[c];if(!(a?d in e:he.call(e,d)))return!1}var l=o.get(t);if(l&&o.get(e))return l==e;var p=!0;o.set(t,e),o.set(e,t);for(var m=a;++c<h;){d=f[c];var g=t[d],v=e[d];if(i)var y=a?i(v,g,d,e,t,o):i(g,v,d,t,e,o);if(!(y===s?g===v||n(g,v,r,i,o):y)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return o.delete(t),o.delete(e),p}(t,e,r,i,n,o))}(t,e,r,i,nn,n))}function sn(t,e,r,i){var n=r.length,o=n,a=!i;if(null==t)return!o;for(t=te(t);n--;){var f=r[n];if(a&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++n<o;){var h=(f=r[n])[0],u=t[h],c=f[1];if(a&&f[2]){if(u===s&&!(h in t))return!1}else{var d=new wi;if(i)var l=i(u,c,h,t,e,d);if(!(l===s?nn(c,u,b|m,i,d):l))return!1}}return!0}function on(t){return!(!Ia(t)||function(t){return!!ce&&ce in t}(t))&&(Sa(t)?be:Zt).test(ho(t))}function an(t){return"function"==typeof t?t:null==t?Bf:"object"==typeof t?ma(t)?ln(t[0],t[1]):dn(t):Uf(t)}function fn(t){if(!Ws(t))return Fr(t);var e=[];for(var r in te(t))he.call(t,r)&&"constructor"!=r&&e.push(r);return e}function hn(t){if(!Ia(t))return function(t){var e=[];if(null!=t)for(var r in te(t))e.push(r);return e}(t);var e=Ws(t),r=[];for(var i in t)("constructor"!=i||!e&&he.call(t,i))&&r.push(i);return r}function un(t,e){return t<e}function cn(t,e){var i=-1,n=va(t)?r(t.length):[];return Li(t,function(t,r,s){n[++i]=e(t,r,s)}),n}function dn(t){var e=js(t);return 1==e.length&&e[0][2]?Js(e[0][0],e[0][1]):function(r){return r===t||sn(r,t,e)}}function ln(t,e){return Zs(t)&&Xs(e)?Js(fo(t),e):function(r){var i=$a(r,t);return i===s&&i===e?Qa(r,t):nn(e,i,b|m)}}function pn(t,e,r,i,n){t!==e&&Ki(e,function(o,a){if(Ia(o))n||(n=new wi),function(t,e,r,i,n,o,a){var f=to(t,r),h=to(e,r),u=a.get(h);if(u)ki(t,r,u);else{var c=o?o(f,h,r+"",t,e,a):s,d=c===s;if(d){var l=ma(h),p=!l&&wa(h),b=!l&&!p&&Ca(h);c=h,l||p||b?ma(f)?c=f:ya(f)?c=es(f):p?(d=!1,c=Wn(h,!0)):b?(d=!1,c=Jn(h,!0)):c=[]:Ba(h)||ba(h)?(c=f,ba(f)?c=Ka(f):Ia(f)&&!Sa(f)||(c=Fs(h))):d=!1}d&&(a.set(h,c),n(c,h,i,o,a),a.delete(h)),ki(t,r,c)}}(t,e,a,r,pn,i,n);else{var f=i?i(to(t,a),o,a+"",t,e,n):s;f===s&&(f=o),ki(t,a,f)}},sf)}function bn(t,e){var r=t.length;if(r)return Hs(e+=e<0?r:0,r)?t[e]:s}function mn(t,e,r){var i=-1;return e=Qe(e.length?e:[Bf],mr(Ns())),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(cn(t,function(t,r,n){return{criteria:Qe(e,function(e){return e(t)}),index:++i,value:t}}),function(t,e){return function(t,e,r){for(var i=-1,n=t.criteria,s=e.criteria,o=n.length,a=r.length;++i<o;){var f=$n(n[i],s[i]);if(f){if(i>=a)return f;var h=r[i];return f*("desc"==h?-1:1)}}return t.index-e.index}(t,e,r)})}function gn(t,e,r){for(var i=-1,n=e.length,s={};++i<n;){var o=e[i],a=Gi(t,o);r(a,o)&&kn(s,Vn(o,t),a)}return s}function vn(t,e,r,i){var n=i?fr:ar,s=-1,o=e.length,a=t;for(t===e&&(e=es(e)),r&&(a=Qe(t,mr(r)));++s<o;)for(var f=0,h=e[s],u=r?r(h):h;(f=n(a,u,f,i))>-1;)a!==t&&Ne.call(a,f,1),Ne.call(t,f,1);return t}function yn(t,e){for(var r=t?e.length:0,i=r-1;r--;){var n=e[r];if(r==i||n!==s){var s=n;Hs(n)?Ne.call(t,n,1):Ln(t,n)}}return t}function wn(t,e){return t+Lr(Yr()*(e-t+1))}function _n(t,e){var r="";if(!t||e<1||e>N)return r;do{e%2&&(r+=t),(e=Lr(e/2))&&(t+=t)}while(e);return r}function Mn(t,e){return io($s(t,e,Bf),t+"")}function Sn(t){return Mi(lf(t))}function An(t,e){var r=lf(t);return oo(r,Ri(e,0,r.length))}function kn(t,e,r,i){if(!Ia(t))return t;for(var n=-1,o=(e=Vn(e,t)).length,a=o-1,f=t;null!=f&&++n<o;){var h=fo(e[n]),u=r;if(n!=a){var c=f[h];(u=i?i(c,h,f):s)===s&&(u=Ia(c)?c:Hs(e[n+1])?[]:{})}Ii(f,h,u),f=f[h]}return t}var In=ei?function(t,e){return ei.set(t,e),t}:Bf,xn=nr?function(t,e){return nr(t,"toString",{configurable:!0,enumerable:!1,value:xf(e),writable:!0})}:Bf;function En(t){return oo(lf(t))}function Pn(t,e,i){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(i=i>s?s:i)<0&&(i+=s),s=e>i?0:i-e>>>0,e>>>=0;for(var o=r(s);++n<s;)o[n]=t[n+e];return o}function Bn(t,e){var r;return Li(t,function(t,i,n){return!(r=e(t,i,n))}),!!r}function On(t,e,r){var i=0,n=null==t?i:t.length;if("number"==typeof e&&e==e&&n<=U){for(;i<n;){var s=i+n>>>1,o=t[s];null!==o&&!Na(o)&&(r?o<=e:o<e)?i=s+1:n=s}return n}return Rn(t,e,Bf,r)}function Rn(t,e,r,i){e=r(e);for(var n=0,o=null==t?0:t.length,a=e!=e,f=null===e,h=Na(e),u=e===s;n<o;){var c=Lr((n+o)/2),d=r(t[c]),l=d!==s,p=null===d,b=d==d,m=Na(d);if(a)var g=i||b;else g=u?b&&(i||l):f?b&&l&&(i||!p):h?b&&l&&!p&&(i||!m):!p&&!m&&(i?d<=e:d<e);g?n=c+1:o=c}return Hr(o,z)}function Tn(t,e){for(var r=-1,i=t.length,n=0,s=[];++r<i;){var o=t[r],a=e?e(o):o;if(!r||!da(a,f)){var f=a;s[n++]=0===o?0:o}}return s}function Nn(t){return"number"==typeof t?t:Na(t)?j:+t}function Cn(t){if("string"==typeof t)return t;if(ma(t))return Qe(t,Cn)+"";if(Na(t))return ui?ui.call(t):"";var e=t+"";return"0"==e&&1/t==-T?"-0":e}function jn(t,e,r){var i=-1,n=Je,s=t.length,a=!0,f=[],h=f;if(r)a=!1,n=$e;else if(s>=o){var u=e?null:_s(t);if(u)return Er(u);a=!1,n=vr,h=new yi}else h=e?[]:f;t:for(;++i<s;){var c=t[i],d=e?e(c):c;if(c=r||0!==c?c:0,a&&d==d){for(var l=h.length;l--;)if(h[l]===d)continue t;e&&h.push(d),f.push(c)}else n(h,d,r)||(h!==f&&h.push(d),f.push(c))}return f}function Ln(t,e){return null==(t=Qs(t,e=Vn(e,t)))||delete t[fo(Mo(e))]}function zn(t,e,r,i){return kn(t,e,r(Gi(t,e)),i)}function Un(t,e,r,i){for(var n=t.length,s=i?n:-1;(i?s--:++s<n)&&e(t[s],s,t););return r?Pn(t,i?0:s,i?s+1:n):Pn(t,i?s+1:0,i?n:s)}function qn(t,e){var r=t;return r instanceof bi&&(r=r.value()),er(e,function(t,e){return e.func.apply(e.thisArg,tr([t],e.args))},r)}function Dn(t,e,i){var n=t.length;if(n<2)return n?jn(t[0]):[];for(var s=-1,o=r(n);++s<n;)for(var a=t[s],f=-1;++f<n;)f!=s&&(o[s]=ji(o[s]||a,t[f],e,i));return jn(Fi(o,1),e,i)}function Fn(t,e,r){for(var i=-1,n=t.length,o=e.length,a={};++i<n;){var f=i<o?e[i]:s;r(a,t[i],f)}return a}function Kn(t){return ya(t)?t:[]}function Hn(t){return"function"==typeof t?t:Bf}function Vn(t,e){return ma(t)?t:Zs(t,e)?[t]:ao(Ha(t))}var Zn=Mn;function Yn(t,e,r){var i=t.length;return r=r===s?i:r,!e&&r>=i?t:Pn(t,e,r)}var Gn=dr||function(t){return Te.clearTimeout(t)};function Wn(t,e){if(e)return t.slice();var r=t.length,i=Me?Me(r):new t.constructor(r);return t.copy(i),i}function Xn(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function Jn(t,e){var r=e?Xn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function $n(t,e){if(t!==e){var r=t!==s,i=null===t,n=t==t,o=Na(t),a=e!==s,f=null===e,h=e==e,u=Na(e);if(!f&&!u&&!o&&t>e||o&&a&&h&&!f&&!u||i&&a&&h||!r&&h||!n)return 1;if(!i&&!o&&!u&&t<e||u&&r&&n&&!i&&!o||f&&r&&n||!a&&n||!h)return-1}return 0}function Qn(t,e,i,n){for(var s=-1,o=t.length,a=i.length,f=-1,h=e.length,u=Kr(o-a,0),c=r(h+u),d=!n;++f<h;)c[f]=e[f];for(;++s<a;)(d||s<o)&&(c[i[s]]=t[s]);for(;u--;)c[f++]=t[s++];return c}function ts(t,e,i,n){for(var s=-1,o=t.length,a=-1,f=i.length,h=-1,u=e.length,c=Kr(o-f,0),d=r(c+u),l=!n;++s<c;)d[s]=t[s];for(var p=s;++h<u;)d[p+h]=e[h];for(;++a<f;)(l||s<o)&&(d[p+i[a]]=t[s++]);return d}function es(t,e){var i=-1,n=t.length;for(e||(e=r(n));++i<n;)e[i]=t[i];return e}function rs(t,e,r,i){var n=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var f=e[o],h=i?i(r[f],t[f],f,r,t):s;h===s&&(h=t[f]),n?Bi(r,f,h):Ii(r,f,h)}return r}function is(t,e){return function(r,i){var n=ma(r)?Ze:Ei,s=e?e():{};return n(r,t,Ns(i,2),s)}}function ns(t){return Mn(function(e,r){var i=-1,n=r.length,o=n>1?r[n-1]:s,a=n>2?r[2]:s;for(o=t.length>3&&"function"==typeof o?(n--,o):s,a&&Vs(r[0],r[1],a)&&(o=n<3?s:o,n=1),e=te(e);++i<n;){var f=r[i];f&&t(e,f,i,o)}return e})}function ss(t,e){return function(r,i){if(null==r)return r;if(!va(r))return t(r,i);for(var n=r.length,s=e?n:-1,o=te(r);(e?s--:++s<n)&&!1!==i(o[s],s,o););return r}}function os(t){return function(e,r,i){for(var n=-1,s=te(e),o=i(e),a=o.length;a--;){var f=o[t?a:++n];if(!1===r(s[f],f,s))break}return e}}funct