You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmonero/html/js/lib/mymonero-core.js

9 lines
1.6 MiB

!function(i,A){"object"==typeof exports&&"object"==typeof module?module.exports=A():"function"==typeof define&&define.amd?define([],A):"object"==typeof exports?exports.mymonero_core_js=A():i.mymonero_core_js=A()}(window,function(){return function(i){var A={};function t(e){if(A[e])return A[e].exports;var r=A[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=i,t.c=A,t.d=function(i,A,e){t.o(i,A)||Object.defineProperty(i,A,{enumerable:!0,get:e})},t.r=function(i){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t.t=function(i,A){if(1&A&&(i=t(i)),8&A)return i;if(4&A&&"object"==typeof i&&i&&i.__esModule)return i;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:i}),2&A&&"string"!=typeof i)for(var r in i)t.d(e,r,function(A){return i[A]}.bind(null,r));return e},t.n=function(i){var A=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(A,"a",A),A},t.o=function(i,A){return Object.prototype.hasOwnProperty.call(i,A)},t.p="",t(t.s=83)}([function(i,A){"function"==typeof Object.create?i.exports=function(i,A){i.super_=A,i.prototype=Object.create(A.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(i,A){i.super_=A;var t=function(){};t.prototype=A.prototype,i.prototype=new t,i.prototype.constructor=i}},function(i,A,t){var e=t(2),r=e.Buffer;function _(i,A){for(var t in i)A[t]=i[t]}function a(i,A,t){return r(i,A,t)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?i.exports=e:(_(e,A),A.Buffer=a),_(r,a),a.from=function(i,A,t){if("number"==typeof i)throw new TypeError("Argument must not be a number");return r(i,A,t)},a.alloc=function(i,A,t){if("number"!=typeof i)throw new TypeError("Argument must be a number");var e=r(i);return void 0!==A?"string"==typeof t?e.fill(A,t):e.fill(A):e.fill(0),e},a.allocUnsafe=function(i){if("number"!=typeof i)throw new TypeError("Argument must be a number");return r(i)},a.allocUnsafeSlow=function(i){if("number"!=typeof i)throw new TypeError("Argument must be a number");return e.SlowBuffer(i)}},function(i,A,t){"use strict";(function(i){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var e=t(89),r=t(90),_=t(43);function a(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function n(i,A){if(a()<A)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(A)).__proto__=o.prototype:(null===i&&(i=new o(A)),i.length=A),i}function o(i,A,t){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(i,A,t);if("number"==typeof i){if("string"==typeof A)throw new Error("If encoding is specified then the first argument must be a string");return l(this,i)}return c(this,i,A,t)}function c(i,A,t,e){if("number"==typeof A)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&A instanceof ArrayBuffer?function(i,A,t,e){if(A.byteLength,t<0||A.byteLength<t)throw new RangeError("'offset' is out of bounds");if(A.byteLength<t+(e||0))throw new RangeError("'length' is out of bounds");A=void 0===t&&void 0===e?new Uint8Array(A):void 0===e?new Uint8Array(A,t):new Uint8Array(A,t,e);o.TYPED_ARRAY_SUPPORT?(i=A).__proto__=o.prototype:i=E(i,A);return i}(i,A,t,e):"string"==typeof A?function(i,A,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var e=0|u(A,t),r=(i=n(i,e)).write(A,t);r!==e&&(i=i.slice(0,r));return i}(i,A,t):function(i,A){if(o.isBuffer(A)){var t=0|d(A.length);return 0===(i=n(i,t)).length?i:(A.copy(i,0,0,t),i)}if(A){if("undefined"!=typeof ArrayBuffer&&A.buffer instanceof ArrayBuffer||"length"in A)return"number"!=typeof A.length||function(i){return i!=i}(A.length)?n(i,0):E(i,A);if("Buffer"===A.type&&_(A.data))return E(i,A.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(i,A)}function s(i){if("number"!=typeof i)throw new TypeError('"size" argument must be a number');if(i<0)throw new RangeError('"size" argument must not be negative')}function l(i,A){if(s(A),i=n(i,A<0?0:0|d(A)),!o.TYPED_ARRAY_SUPPORT)for(var t=0;t<A;++t)i[t]=0;return i}function E(i,A){var t=A.length<0?0:0|d(A.length);i=n(i,t);for(var e=0;e<t;e+=1)i[e]=255&A[e];return i}function d(i){if(i>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|i}function u(i,A){if(o.isBuffer(i))return i.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(i)||i instanceof ArrayBuffer))return i.byteLength;"string"!=typeof i&&(i=""+i);var t=i.length;if(0===t)return 0;for(var e=!1;;)switch(A){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return k(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return X(i).length;default:if(e)return k(i).length;A=(""+A).toLowerCase(),e=!0}}function b(i,A,t){var e=i[A];i[A]=i[t],i[t]=e}function h(i,A,t,e,r){if(0===i.length)return-1;if("string"==typeof t?(e=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=r?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(r)return-1;t=i.length-1}else if(t<0){if(!r)return-1;t=0}if("string"==typeof A&&(A=o.from(A,e)),o.isBuffer(A))return 0===A.length?-1:p(i,A,t,e,r);if("number"==typeof A)return A&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(i,A,t):Uint8Array.prototype.lastIndexOf.call(i,A,t):p(i,[A],t,e,r);throw new TypeError("val must be string, number or Buffer")}function p(i,A,t,e,r){var _,a=1,n=i.length,o=A.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(i.length<2||A.length<2)return-1;a=2,n/=2,o/=2,t/=2}function c(i,A){return 1===a?i[A]:i.readUInt16BE(A*a)}if(r){var s=-1;for(_=t;_<n;_++)if(c(i,_)===c(A,-1===s?0:_-s)){if(-1===s&&(s=_),_-s+1===o)return s*a}else-1!==s&&(_-=_-s),s=-1}else for(t+o>n&&(t=n-o),_=t;_>=0;_--){for(var l=!0,E=0;E<o;E++)if(c(i,_+E)!==c(A,E)){l=!1;break}if(l)return _}return-1}function m(i,A,t,e){t=Number(t)||0;var r=i.length-t;e?(e=Number(e))>r&&(e=r):e=r;var _=A.length;if(_%2!=0)throw new TypeError("
//# sourceMappingURL=mymonero-core.js.map