@eluvio/elv-client-js 4.0.11 → 4.0.13

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.
Files changed (111) hide show
  1. package/dist/.keep +0 -0
  2. package/dist/ElvClient-min.js +11 -10
  3. package/dist/ElvClient-node-min.js +11 -10
  4. package/dist/ElvFrameClient-min.js +11 -10
  5. package/dist/ElvPermissionsClient-min.js +10 -9
  6. package/dist/ElvWalletClient-min.js +10 -9
  7. package/dist/ElvWalletClient-node-min.js +10 -9
  8. package/dist/src/AuthorizationClient.js +1555 -2076
  9. package/dist/src/ContentObjectVerification.js +134 -185
  10. package/dist/src/Crypto.js +224 -319
  11. package/dist/src/ElvClient.js +822 -1114
  12. package/dist/src/ElvWallet.js +64 -106
  13. package/dist/src/EthClient.js +719 -974
  14. package/dist/src/FrameClient.js +223 -319
  15. package/dist/src/HttpClient.js +117 -156
  16. package/dist/src/Id.js +1 -6
  17. package/dist/src/LogMessage.js +4 -8
  18. package/dist/src/PermissionsClient.js +973 -1271
  19. package/dist/src/RemoteSigner.js +161 -232
  20. package/dist/src/UserProfileClient.js +781 -1038
  21. package/dist/src/Utils.js +159 -299
  22. package/dist/src/Validation.js +2 -17
  23. package/dist/src/client/ABRPublishing.js +828 -958
  24. package/dist/src/client/AccessGroups.js +849 -1095
  25. package/dist/src/client/ContentAccess.js +3323 -4195
  26. package/dist/src/client/ContentManagement.js +1818 -2290
  27. package/dist/src/client/Contracts.js +468 -614
  28. package/dist/src/client/Files.js +1506 -1846
  29. package/dist/src/client/NFT.js +94 -116
  30. package/dist/src/client/NTP.js +326 -425
  31. package/dist/src/index.js +2 -5
  32. package/dist/src/walletClient/ClientMethods.js +1368 -1763
  33. package/dist/src/walletClient/Configuration.js +5 -3
  34. package/dist/src/walletClient/Notifications.js +98 -127
  35. package/dist/src/walletClient/Profile.js +184 -246
  36. package/dist/src/walletClient/Utils.js +76 -122
  37. package/dist/src/walletClient/index.js +1171 -1496
  38. package/package.json +4 -21
  39. package/src/FrameClient.js +1 -0
  40. package/src/HttpClient.js +4 -2
  41. package/src/client/ABRPublishing.js +126 -105
  42. package/src/client/ContentAccess.js +1 -0
  43. package/src/client/ContentManagement.js +4 -2
  44. package/src/walletClient/Configuration.js +3 -2
  45. package/dist/AccessClient-min.js +0 -54
  46. package/dist/AccessClient-node-min.js +0 -74
  47. package/dist/src/AccessClient.js +0 -798
  48. package/dist/src/LimitedMap.js +0 -120
  49. package/dist/src/client/Access.js +0 -1
  50. package/dist/src/client/Management.js +0 -1606
  51. package/dist/src/contracts/AccessIndexor.js +0 -831
  52. package/dist/src/contracts/Accessible.js +0 -31
  53. package/dist/src/contracts/AdmgrAdvertisement.js +0 -695
  54. package/dist/src/contracts/AdmgrCampaign.js +0 -648
  55. package/dist/src/contracts/AdmgrCampaignManager.js +0 -493
  56. package/dist/src/contracts/AdmgrCommercialOffering.js +0 -622
  57. package/dist/src/contracts/AdmgrCommercialOfferingManager.js +0 -413
  58. package/dist/src/contracts/AdmgrMarketPlace.js +0 -413
  59. package/dist/src/contracts/AvailsDelivery.js +0 -535
  60. package/dist/src/contracts/BaseAccessControlGroup.js +0 -1221
  61. package/dist/src/contracts/BaseAccessWallet.js +0 -1575
  62. package/dist/src/contracts/BaseAccessWalletFactory.js +0 -93
  63. package/dist/src/contracts/BaseContent.js +0 -1104
  64. package/dist/src/contracts/BaseContentFactory.js +0 -99
  65. package/dist/src/contracts/BaseContentFactoryExt.js +0 -219
  66. package/dist/src/contracts/BaseContentSpace.js +0 -1346
  67. package/dist/src/contracts/BaseContentType.js +0 -353
  68. package/dist/src/contracts/BaseFactory.js +0 -107
  69. package/dist/src/contracts/BaseGroupFactory.js +0 -93
  70. package/dist/src/contracts/BaseLibrary.js +0 -1035
  71. package/dist/src/contracts/BaseLibraryFactory.js +0 -96
  72. package/dist/src/contracts/Certifyer.js +0 -87
  73. package/dist/src/contracts/Container.js +0 -543
  74. package/dist/src/contracts/Content.js +0 -432
  75. package/dist/src/contracts/Editable.js +0 -295
  76. package/dist/src/contracts/FactorySpace.js +0 -57
  77. package/dist/src/contracts/KmsSpace.js +0 -52
  78. package/dist/src/contracts/LvProvider.js +0 -512
  79. package/dist/src/contracts/LvRecordableStream.js +0 -1026
  80. package/dist/src/contracts/LvRecording.js +0 -627
  81. package/dist/src/contracts/LvStreamRightsHolder.js +0 -551
  82. package/dist/src/contracts/MetaObject.js +0 -110
  83. package/dist/src/contracts/Node.js +0 -167
  84. package/dist/src/contracts/NodeSpace.js +0 -18
  85. package/dist/src/contracts/NodeSpaceImpl.js +0 -273
  86. package/dist/src/contracts/Ownable.js +0 -87
  87. package/dist/src/contracts/PaymentService.js +0 -616
  88. package/dist/src/contracts/Precompile.js +0 -15
  89. package/dist/src/contracts/SampleContentAdMarketplace.js +0 -564
  90. package/dist/src/contracts/SampleContentAdvertising.js +0 -444
  91. package/dist/src/contracts/SampleContentHelloWorld.js +0 -459
  92. package/dist/src/contracts/SampleContentLicensing.js +0 -618
  93. package/dist/src/contracts/SampleContentSigned.js +0 -447
  94. package/dist/src/contracts/SampleInstance.js +0 -438
  95. package/dist/src/contracts/SampleInstanceFactory.js +0 -451
  96. package/dist/src/contracts/Transactable.js +0 -82
  97. package/dist/src/contracts/UserSpace.js +0 -18
  98. package/dist/src/contracts/UserSpaceImpl.js +0 -43
  99. package/dist/src/contracts/Utils.js +0 -18
  100. package/dist/src/contracts/Verifier.js +0 -53
  101. package/dist/src/contracts/strings.js +0 -4
  102. package/dist/src/contracts/v2/BaseContentFactoryExt.js +0 -219
  103. package/dist/src/contracts/v2/FactorySpace.js +0 -57
  104. package/dist/src/contracts/v2/KmsSpace.js +0 -52
  105. package/dist/src/contracts/v2/NodeSpaceImpl.js +0 -273
  106. package/dist/src/contracts/v2/UserSpaceImpl.js +0 -43
  107. package/dist/src/marketplaceClient/ClientMethods.js +0 -1918
  108. package/dist/src/marketplaceClient/Configuration.js +0 -29
  109. package/dist/src/marketplaceClient/Utils.js +0 -304
  110. package/dist/src/marketplaceClient/index.js +0 -1553
  111. package/utilities/ListAccessGroups.js +0 -34
@@ -1,54 +0,0 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=123)}([function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(2),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e){
2
- /*!
3
- * The buffer module from node.js, for the browser.
4
- *
5
- * @author Feross Aboukhadijeh <http://feross.org>
6
- * @license MIT
7
- */
8
- var r=n(65),i=n(66),a=n(42);function o(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return A.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=A.prototype:(null===e&&(e=new A(t)),e.length=t),e}function A(e,t,n){if(!(A.TYPED_ARRAY_SUPPORT||this instanceof A))return new A(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);A.TYPED_ARRAY_SUPPORT?(e=t).__proto__=A.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!A.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|l(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(A.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(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 f(e,t){if(u(t),e=s(e,t<0?0:0|d(t)),!A.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function l(e,t){if(A.isBuffer(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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return T(e).length;default:if(r)return O(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return Q(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=A.from(t,r)),A.isBuffer(t))return 0===t.length?-1:I(e,t,n,r,i);if("number"==typeof t)return t&=255,A.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):I(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function I(e,t,n,r,i){var a,o=1,s=e.length,A=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,A/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===A)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+A>s&&(n=s-A),a=n;a>=0;a--){for(var f=!0,h=0;h<A;h++)if(c(e,a+h)!==c(t,h)){f=!1;break}if(f)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function C(e,t,n,r){return P(O(t,e.length-n),e,n,r)}function m(e,t,n,r){return P(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return m(e,t,n,r)}function B(e,t,n,r){return P(T(t),e,n,r)}function v(e,t,n,r){return P(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function w(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function Q(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,A,c=e[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(A=(31&c)<<6|63&a)>127&&(u=A);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(A=(15&c)<<12|(63&a)<<6|63&o)>2047&&(A<55296||A>57343)&&(u=A);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(A=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&A<1114112&&(u=A)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=A,t.SlowBuffer=function(e){+e!=e&&(e=0);return A.alloc(+e)},t.INSPECT_MAX_BYTES=50,A.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),A.poolSize=8192,A._augment=function(e){return e.__proto__=A.prototype,e},A.from=function(e,t,n){return c(null,e,t,n)},A.TYPED_ARRAY_SUPPORT&&(A.prototype.__proto__=Uint8Array.prototype,A.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&A[Symbol.species]===A&&Object.defineProperty(A,Symbol.species,{value:null,configurable:!0})),A.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},A.allocUnsafe=function(e){return f(null,e)},A.allocUnsafeSlow=function(e){return f(null,e)},A.isBuffer=function(e){return!(null==e||!e._isBuffer)},A.compare=function(e,t){if(!A.isBuffer(e)||!A.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},A.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}},A.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return A.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=A.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!A.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},A.byteLength=l,A.prototype._isBuffer=!0,A.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)p(this,t,t+1);return this},A.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)p(this,t,t+3),p(this,t+1,t+2);return this},A.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)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},A.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Q(this,0,e):g.apply(this,arguments)},A.prototype.equals=function(e){if(!A.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===A.compare(this,e)},A.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},A.prototype.compare=function(e,t,n,r,i){if(!A.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),f=0;f<s;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},A.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},A.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},A.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},A.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return m(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return B(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=G(e[a]);return i}function D(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function _(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,a){if(!A.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function F(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,a){return a||F(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,a){return a||F(e,0,n,8),i.write(e,t,n,r,52,8),n+8}A.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),A.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=A.prototype;else{var i=t-e;n=new A(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},A.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},A.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},A.prototype.readUInt8=function(e,t){return t||_(e,1,this.length),this[e]},A.prototype.readUInt16LE=function(e,t){return t||_(e,2,this.length),this[e]|this[e+1]<<8},A.prototype.readUInt16BE=function(e,t){return t||_(e,2,this.length),this[e]<<8|this[e+1]},A.prototype.readUInt32LE=function(e,t){return t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},A.prototype.readUInt32BE=function(e,t){return t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},A.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},A.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},A.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},A.prototype.readInt16LE=function(e,t){t||_(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt16BE=function(e,t){t||_(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt32LE=function(e,t){return t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},A.prototype.readInt32BE=function(e,t){return t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},A.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!0,23,4)},A.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!1,23,4)},A.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!0,52,8)},A.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!1,52,8)},A.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||x(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},A.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||x(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},A.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,255,0),A.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},A.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},A.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},A.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},A.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},A.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},A.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},A.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,127,-128),A.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},A.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},A.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},A.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},A.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},A.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},A.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},A.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},A.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},A.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!A.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},A.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!A.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=A.isBuffer(e)?e:O(new A(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function O(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function T(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(5))},function(e,t,n){(function(e){function t(e){return(t="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})(e)}!function(e,r){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"===t(e)?e.exports=o:r.BN=o,o.BN=o,o.wordSize=26;try{s=n(171).Buffer}catch(e){}function A(e,t,n){for(var r=0,a=Math.min(e.length,n),o=0,s=t;s<a;s++){var A,c=e.charCodeAt(s)-48;r<<=4,r|=A=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,o|=A}return i(!(240&o),"Invalid character in "+e),r}function c(e,t,n,r){for(var a=0,o=0,s=Math.min(e.length,n),A=t;A<s;A++){var c=e.charCodeAt(A)-48;a*=r,o=c>=49?c-49+10:c>=17?c-17+10:c,i(c>=0&&o<r,"Invalid character"),a+=o}return a}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}o.isBN=function(e){return e instanceof o||null!==e&&"object"===t(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,n,r){if("number"==typeof e)return this._initNumber(e,n,r);if("object"===t(e))return this._initArray(e,n,r);"hex"===n&&(n=16),i(n===(0|n)&&n>=2&&n<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&a++,16===n?this._parseHex(e,a):this._parseBase(e,n,a),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),n,r)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,o,s=0;if("be"===n)for(r=e.length-1,a=0;r>=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(r=0,a=0;r<e.length;r+=3)o=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=A(e,n,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=A(e,t,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303),this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,A=0,u=n;u<s;u+=r)A=c(e,u,u+r,t),this.imuln(i),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A);if(0!==o){var f=1;for(A=c(e,u,e.length,t),u=0;u<o;u++)f*=t;this.imuln(f),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f:o.prototype.inspect=f;var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var r=0,a=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<r|a)).toString(16);n=0!==(a=s>>>24-r&16777215)||o!==this.length-1?h[6-A.length]+A+n:A+n,(r+=2)>=26&&(r-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],u=l[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var g=f.modrn(u).toString(e);n=(f=f.idivn(u)).isZero()?g+n:h[c-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function g(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,A=o/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=A>>>26,f=67108863&A,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var l=c-d|0;u+=(o=(i=0|e.words[l])*(a=0|t.words[d])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,A=0|u}return 0!==A?n.words[c]=0|A:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,r),o},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),6===a?(n<e.length&&(e[n++]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===a?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return i(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return i(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return i(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this._strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,a,o=e.words,s=t.words,A=n.words,c=0,u=0|o[0],f=8191&u,h=u>>>13,d=0|o[1],l=8191&d,g=d>>>13,p=0|o[2],y=8191&p,I=p>>>13,b=0|o[3],C=8191&b,m=b>>>13,E=0|o[4],B=8191&E,v=E>>>13,w=0|o[5],Q=8191&w,S=w>>>13,M=0|o[6],k=8191&M,D=M>>>13,_=0|o[7],x=8191&_,R=_>>>13,N=0|o[8],F=8191&N,H=N>>>13,L=0|o[9],U=8191&L,G=L>>>13,O=0|s[0],T=8191&O,P=O>>>13,j=0|s[1],Y=8191&j,K=j>>>13,q=0|s[2],J=8191&q,z=q>>>13,V=0|s[3],Z=8191&V,W=V>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],Ae=8191&se,ce=se>>>13,ue=0|s[8],fe=8191&ue,he=ue>>>13,de=0|s[9],le=8191&de,ge=de>>>13;n.negative=e.negative^t.negative,n.length=19;var pe=(c+(r=Math.imul(f,T))|0)+((8191&(i=(i=Math.imul(f,P))+Math.imul(h,T)|0))<<13)|0;c=((a=Math.imul(h,P))+(i>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(l,T),i=(i=Math.imul(l,P))+Math.imul(g,T)|0,a=Math.imul(g,P);var ye=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0;c=((a=a+Math.imul(h,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,T),i=(i=Math.imul(y,P))+Math.imul(I,T)|0,a=Math.imul(I,P),r=r+Math.imul(l,Y)|0,i=(i=i+Math.imul(l,K)|0)+Math.imul(g,Y)|0,a=a+Math.imul(g,K)|0;var Ie=(c+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,z)|0)+Math.imul(h,J)|0))<<13)|0;c=((a=a+Math.imul(h,z)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(C,T),i=(i=Math.imul(C,P))+Math.imul(m,T)|0,a=Math.imul(m,P),r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(I,Y)|0,a=a+Math.imul(I,K)|0,r=r+Math.imul(l,J)|0,i=(i=i+Math.imul(l,z)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,z)|0;var be=(c+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,Z)|0))<<13)|0;c=((a=a+Math.imul(h,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(B,T),i=(i=Math.imul(B,P))+Math.imul(v,T)|0,a=Math.imul(v,P),r=r+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(m,Y)|0,a=a+Math.imul(m,K)|0,r=r+Math.imul(y,J)|0,i=(i=i+Math.imul(y,z)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,z)|0,r=r+Math.imul(l,Z)|0,i=(i=i+Math.imul(l,W)|0)+Math.imul(g,Z)|0,a=a+Math.imul(g,W)|0;var Ce=(c+(r=r+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(Q,T),i=(i=Math.imul(Q,P))+Math.imul(S,T)|0,a=Math.imul(S,P),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(v,Y)|0,a=a+Math.imul(v,K)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,z)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,z)|0,r=r+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(I,Z)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(l,$)|0,i=(i=i+Math.imul(l,ee)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,ee)|0;var me=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((a=a+Math.imul(h,re)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(k,T),i=(i=Math.imul(k,P))+Math.imul(D,T)|0,a=Math.imul(D,P),r=r+Math.imul(Q,Y)|0,i=(i=i+Math.imul(Q,K)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,K)|0,r=r+Math.imul(B,J)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,z)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,W)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(l,ne)|0,i=(i=i+Math.imul(l,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var Ee=(c+(r=r+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(x,T),i=(i=Math.imul(x,P))+Math.imul(R,T)|0,a=Math.imul(R,P),r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(D,Y)|0,a=a+Math.imul(D,K)|0,r=r+Math.imul(Q,J)|0,i=(i=i+Math.imul(Q,z)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,z)|0,r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(v,Z)|0,a=a+Math.imul(v,W)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul(l,ae)|0,i=(i=i+Math.imul(l,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0;var Be=(c+(r=r+Math.imul(f,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,Ae)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(F,T),i=(i=Math.imul(F,P))+Math.imul(H,T)|0,a=Math.imul(H,P),r=r+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(R,Y)|0,a=a+Math.imul(R,K)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,z)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,z)|0,r=r+Math.imul(Q,Z)|0,i=(i=i+Math.imul(Q,W)|0)+Math.imul(S,Z)|0,a=a+Math.imul(S,W)|0,r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0,r=r+Math.imul(y,ae)|0,i=(i=i+Math.imul(y,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,r=r+Math.imul(l,Ae)|0,i=(i=i+Math.imul(l,ce)|0)+Math.imul(g,Ae)|0,a=a+Math.imul(g,ce)|0;var ve=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(U,T),i=(i=Math.imul(U,P))+Math.imul(G,T)|0,a=Math.imul(G,P),r=r+Math.imul(F,Y)|0,i=(i=i+Math.imul(F,K)|0)+Math.imul(H,Y)|0,a=a+Math.imul(H,K)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,z)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,z)|0,r=r+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(Q,$)|0,i=(i=i+Math.imul(Q,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(B,ne)|0,i=(i=i+Math.imul(B,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0,r=r+Math.imul(y,Ae)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(I,Ae)|0,a=a+Math.imul(I,ce)|0,r=r+Math.imul(l,fe)|0,i=(i=i+Math.imul(l,he)|0)+Math.imul(g,fe)|0,a=a+Math.imul(g,he)|0;var we=(c+(r=r+Math.imul(f,le)|0)|0)+((8191&(i=(i=i+Math.imul(f,ge)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ge)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(U,Y),i=(i=Math.imul(U,K))+Math.imul(G,Y)|0,a=Math.imul(G,K),r=r+Math.imul(F,J)|0,i=(i=i+Math.imul(F,z)|0)+Math.imul(H,J)|0,a=a+Math.imul(H,z)|0,r=r+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(R,Z)|0,a=a+Math.imul(R,W)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(Q,ne)|0,i=(i=i+Math.imul(Q,re)|0)+Math.imul(S,ne)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,r=r+Math.imul(C,Ae)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(m,Ae)|0,a=a+Math.imul(m,ce)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(I,fe)|0,a=a+Math.imul(I,he)|0;var Qe=(c+(r=r+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,ge)|0)+Math.imul(g,le)|0))<<13)|0;c=((a=a+Math.imul(g,ge)|0)+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(U,J),i=(i=Math.imul(U,z))+Math.imul(G,J)|0,a=Math.imul(G,z),r=r+Math.imul(F,Z)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(H,Z)|0,a=a+Math.imul(H,W)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(Q,ae)|0,i=(i=i+Math.imul(Q,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,r=r+Math.imul(B,Ae)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(v,Ae)|0,a=a+Math.imul(v,ce)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,he)|0;var Se=(c+(r=r+Math.imul(y,le)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(I,le)|0))<<13)|0;c=((a=a+Math.imul(I,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,Z),i=(i=Math.imul(U,W))+Math.imul(G,Z)|0,a=Math.imul(G,W),r=r+Math.imul(F,$)|0,i=(i=i+Math.imul(F,ee)|0)+Math.imul(H,$)|0,a=a+Math.imul(H,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(R,ne)|0,a=a+Math.imul(R,re)|0,r=r+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(Q,Ae)|0,i=(i=i+Math.imul(Q,ce)|0)+Math.imul(S,Ae)|0,a=a+Math.imul(S,ce)|0,r=r+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,he)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,he)|0;var Me=(c+(r=r+Math.imul(C,le)|0)|0)+((8191&(i=(i=i+Math.imul(C,ge)|0)+Math.imul(m,le)|0))<<13)|0;c=((a=a+Math.imul(m,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(G,$)|0,a=Math.imul(G,ee),r=r+Math.imul(F,ne)|0,i=(i=i+Math.imul(F,re)|0)+Math.imul(H,ne)|0,a=a+Math.imul(H,re)|0,r=r+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,r=r+Math.imul(k,Ae)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(D,Ae)|0,a=a+Math.imul(D,ce)|0,r=r+Math.imul(Q,fe)|0,i=(i=i+Math.imul(Q,he)|0)+Math.imul(S,fe)|0,a=a+Math.imul(S,he)|0;var ke=(c+(r=r+Math.imul(B,le)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(v,le)|0))<<13)|0;c=((a=a+Math.imul(v,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,ne),i=(i=Math.imul(U,re))+Math.imul(G,ne)|0,a=Math.imul(G,re),r=r+Math.imul(F,ae)|0,i=(i=i+Math.imul(F,oe)|0)+Math.imul(H,ae)|0,a=a+Math.imul(H,oe)|0,r=r+Math.imul(x,Ae)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(R,Ae)|0,a=a+Math.imul(R,ce)|0,r=r+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(D,fe)|0,a=a+Math.imul(D,he)|0;var De=(c+(r=r+Math.imul(Q,le)|0)|0)+((8191&(i=(i=i+Math.imul(Q,ge)|0)+Math.imul(S,le)|0))<<13)|0;c=((a=a+Math.imul(S,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(U,ae),i=(i=Math.imul(U,oe))+Math.imul(G,ae)|0,a=Math.imul(G,oe),r=r+Math.imul(F,Ae)|0,i=(i=i+Math.imul(F,ce)|0)+Math.imul(H,Ae)|0,a=a+Math.imul(H,ce)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(R,fe)|0,a=a+Math.imul(R,he)|0;var _e=(c+(r=r+Math.imul(k,le)|0)|0)+((8191&(i=(i=i+Math.imul(k,ge)|0)+Math.imul(D,le)|0))<<13)|0;c=((a=a+Math.imul(D,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(U,Ae),i=(i=Math.imul(U,ce))+Math.imul(G,Ae)|0,a=Math.imul(G,ce),r=r+Math.imul(F,fe)|0,i=(i=i+Math.imul(F,he)|0)+Math.imul(H,fe)|0,a=a+Math.imul(H,he)|0;var xe=(c+(r=r+Math.imul(x,le)|0)|0)+((8191&(i=(i=i+Math.imul(x,ge)|0)+Math.imul(R,le)|0))<<13)|0;c=((a=a+Math.imul(R,ge)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,fe),i=(i=Math.imul(U,he))+Math.imul(G,fe)|0,a=Math.imul(G,he);var Re=(c+(r=r+Math.imul(F,le)|0)|0)+((8191&(i=(i=i+Math.imul(F,ge)|0)+Math.imul(H,le)|0))<<13)|0;c=((a=a+Math.imul(H,ge)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ne=(c+(r=Math.imul(U,le))|0)+((8191&(i=(i=Math.imul(U,ge))+Math.imul(G,le)|0))<<13)|0;return c=((a=Math.imul(G,ge))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,A[0]=pe,A[1]=ye,A[2]=Ie,A[3]=be,A[4]=Ce,A[5]=me,A[6]=Ee,A[7]=Be,A[8]=ve,A[9]=we,A[10]=Qe,A[11]=Se,A[12]=Me,A[13]=ke,A[14]=De,A[15]=_e,A[16]=xe,A[17]=Re,A[18]=Ne,0!==c&&(A[19]=c,n.length++),n};function y(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,A=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=A;c++){var u=a-c,f=(0|e.words[u])*(0|t.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n._strip()}function I(e,t,n){return y(e,t,n)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=g),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?g(this,e,t):n<1024?y(this,e,t):I(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},b.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},b.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},b.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,A=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=A,h=c,d=0;d<o;d++){var l=n[u+d],g=r[u+d],p=n[u+d+o],y=r[u+d+o],I=f*p-h*y;y=f*y+h*p,p=I,n[u+d]=l+p,r[u+d]=g+y,n[u+d+o]=l-p,r[u+d+o]=g-y,d!==s&&(I=A*f-c*h,h=A*h+c*f,f=I)}},b.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},b.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},b.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,n,r){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<r;++o)n[o]=0;i(0===a),i(0==(-8192&a))},b.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},b.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),A=new Array(r),c=new Array(r),u=new Array(r),f=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,a,s,A,r,i),this.transform(c,a,u,f,r,i);for(var d=0;d<r;d++){var l=s[d]*u[d]-A[d]*f[d];A[d]=s[d]*f[d]+A[d]*u[d],s[d]=l}return this.conjugate(s,A,r),this.transform(s,A,h,a,r,i),this.conjugate(h,a,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),I(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"==typeof e),i(e<67108864);for(var n=0,r=0;r<this.length;r++){var a=(0|this.words[r])*e,o=(67108863&a)+(67108863&n);n>>=26,n+=a/67108864|0,n+=o>>>26,this.words[r]=67108863&o}return 0!==n&&(this.words[r]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,A=(0|this.words[t])-s<<n;this.words[t]=A|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this._strip()},o.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var r;i("number"==typeof e&&e>=0),r=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,A=n;if(r-=o,r=Math.max(0,r),A){for(var c=0;c<o;c++)A.words[c]=this.words[c];A.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=r);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&s}return A&&0!==u&&(A.words[A.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n)&&!!(this.words[n]&r)},o.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var r,a,o=e.length+n;this._expand(o);var s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var A=(0|e.words[r])*t;s=((a-=67108863&A)>>26)-(A/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this._strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,A=r.length-i.length;if("mod"!==t){(s=new o(null)).length=A+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,A);0===u.negative&&(r=u,s&&(s.words[A]=1));for(var f=A-1;f>=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return i(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var r,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var n=(1<<26)%e,r=0,a=this.length-1;a>=0;a--)r=(n*r+(0|this.words[a]))%e;return t?-r:r},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var a=(0|this.words[r])+67108864*n;this.words[r]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),a=new o(0),s=new o(0),A=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(u),a.isub(f)),r.iushrn(1),a.iushrn(1);for(var l=0,g=1;0==(n.words[0]&g)&&l<26;++l,g<<=1);if(l>0)for(n.iushrn(l);l-- >0;)(s.isOdd()||A.isOdd())&&(s.iadd(u),A.isub(f)),s.iushrn(1),A.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(s),a.isub(A)):(n.isub(t),s.isub(r),A.isub(a))}return{a:s,b:A,gcd:n.iushln(c)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,a=new o(1),s=new o(0),A=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(A),a.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(A),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(r=0===t.cmpn(1)?a:s).cmpn(0)<0&&r.iadd(e),r},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var a=r,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new Q(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var C={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Q(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){Q.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n._strip(),n},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},a(E,m),E.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(B,m),a(v,m),a(w,m),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(C[e])return C[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new B;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return C[e]=t,t},Q.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},Q.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},Q.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},Q.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Q.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},Q.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},Q.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},Q.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},Q.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},Q.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},Q.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},Q.prototype.isqr=function(e){return this.imul(e,e.clone())},Q.prototype.sqr=function(e){return this.mul(e,e)},Q.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);i(!r.isZero());var s=new o(1).toRed(this),A=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(A);)u.redIAdd(A);for(var f=this.pow(u,r),h=this.pow(e,r.addn(1).iushrn(1)),d=this.pow(e,r),l=a;0!==d.cmp(s);){for(var g=d,p=0;0!==g.cmp(s);p++)g=g.redSqr();i(p<l);var y=this.pow(f,new o(1).iushln(l-p-1));h=h.redMul(y),f=y.redSqr(),d=d.redMul(f),l=p}return h},Q.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},Q.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,A=t.bitLength()%26;for(0===A&&(A=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=A-1;u>=0;u--){var f=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}A=26}return i},Q.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},Q.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},a(S,Q),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(13)(e))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var A,c=[],u=!1,f=-1;function h(){u&&A&&(u=!1,A.length?c=A.concat(c):f=-1,c.length&&d())}function d(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(A=c,c=[];++f<t;)A&&A[f].run();f=-1,t=c.length}A=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function l(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new l(e,t)),1!==c.length||u||s(d)},l.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){function n(e){return(n="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})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){e.exports=n(124)},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(3),a=n(7),o=n(100);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,A=a.andln(i-1);a.isOdd()?(s=A>(i>>1)-1?(i>>1)-A:A,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var a,o,s,A=e.andln(3)+r&3,c=t.andln(3)+i&3;if(3===A&&(A=-1),3===c&&(c=-1),0==(1&A))a=0;else a=3!==(s=e.andln(7)+r&7)&&5!==s||2!==c?A:-A;if(n[0].push(a),0==(1&c))o=0;else o=3!==(s=t.andln(7)+i&7)&&5!==s||2!==A?c:-c;n[1].push(o),2*r===a+1&&(r=1-r),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){"use strict";var r=n(7),i=n(0);function a(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function A(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=A(i.toString(16))}return n},t.zero2=s,t.zero8=A,t.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,A=t;s<o.length;s++,A+=4){var c;c="big"===i?e[A]<<24|e[A+1]<<16|e[A+2]<<8|e[A+3]:e[A+3]<<24|e[A+2]<<16|e[A+1]<<8|e[A],o[s]=c>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,o,s){var A=0,c=t;return A+=(c=c+r>>>0)<t?1:0,A+=(c=c+a>>>0)<a?1:0,e+n+i+o+(A+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,o,s,A,c){var u=0,f=t;return u+=(f=f+r>>>0)<t?1:0,u+=(f=f+a>>>0)<a?1:0,u+=(f=f+s>>>0)<s?1:0,e+n+i+o+A+(u+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,a,o,s,A,c){return t+r+a+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(1).Buffer,i=n(31).Transform,a=n(26).StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(0)(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=o},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function n(e){return(n="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})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";var r=n(32),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var a=n(25);a.inherits=n(0);var o=n(73),s=n(49);a.inherits(f,o);for(var A=i(s.prototype),c=0;c<A.length;c++){var u=A[c];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),s.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",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){(function(t,r){var i=n(50),a=n(6),o=n(18),s=n(140);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}void 0===t&&(t=n(2).Buffer);var c=n(46),u=n(144).default,f=n(145),h=n(78),d={name:"Utils",nullAddress:"0x0000000000000000000000000000000000000000",weiPerEther:new u("1000000000000000000"),ToBigNumber:function(e){return new u(e)},WeiToEther:function(e){return d.ToBigNumber(e).div(d.weiPerEther)},EtherToWei:function(e){return d.ToBigNumber(e).times(d.weiPerEther)},FormatAddress:function(e){return e&&"string"==typeof e?(e.startsWith("0x")||(e="0x"+e),e.toLowerCase()):""},FormatSignature:function(e){return e=e.replace("0x",""),"ES256K_"+c.encode(t.from(e,"hex"))},DecodeVersionHash:function(e){if(!e.startsWith("hq__"))throw new Error('Invalid version hash: "'.concat(e,'"'));e=e.replace("hq__","");var n=f.fromB58String(e),r=n.slice(0,32),i=r.toString("hex");n=n.slice(32);for(var a=0;n[a]>=128;)a++;a++;var o=n.slice(0,a),s=h.decode(o);return n=n.slice(a),{digest:i,size:s,objectId:"iq__"+f.toB58String(n),partHash:"hqp_"+f.toB58String(t.concat([r,o]))}},AddressToHash:function(e){return e=e.replace("0x",""),c.encode(t.from(e,"hex"))},AddressToSpaceId:function(e){return"ispc"+d.AddressToHash(e)},AddressToLibraryId:function(e){return"ilib"+d.AddressToHash(e)},AddressToObjectId:function(e){return"iq__"+d.AddressToHash(e)},HashToAddress:function(e){return e=e.substr(4),"0x"+c.decode(e).toString("hex")},EqualAddress:function(e,t){return!(!e||!t)&&d.FormatAddress(e)===d.FormatAddress(t)},EqualHash:function(e,t){return!(!e||!t)&&(!(e.length<=4||t.length<=4)&&d.HashToAddress(e)===d.HashToAddress(t))},ToBytes32:function(e){return"0x"+e.split("").map((function(e){return e.charCodeAt(0).toString(16)})).join("").slice(0,64).padEnd(64,"0")},BufferToArrayBuffer:function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)},B64:function(e){return t.from(e,"utf-8").toString("base64")},FromB64:function(e){return t.from(e,"base64").toString("utf-8")},DecodeAuthorizationToken:function(e){var t=(e=decodeURIComponent(e)).split("."),n=s(t,2),r=n[0],i=n[1];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r=JSON.parse(d.FromB64(r)),{signature:i})},LimitedMap:function(e,t,n){var r,o,s,A,c;return a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return r=0,o=!1,s=function(){var e;return a.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o){t.next=5;break}return t.next=3,a.awrap(new Promise((function(e){return setTimeout(e,10)})));case 3:t.next=0;break;case 5:return o=!0,e=r,r+=1,o=!1,t.abrupt("return",e);case 10:case"end":return t.stop()}}))},A=[],c=0,u.abrupt("return",new Promise((function(r,o){i(Array(e||1)).forEach((function(){var e;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return c+=1,i.next=3,a.awrap(s());case 3:e=i.sent;case 4:if(!(e<t.length)){i.next=19;break}return i.prev=5,i.next=8,a.awrap(n(t[e],e));case 8:A[e]=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i.catch(5),o(i.t0);case 14:return i.next=16,a.awrap(s());case 16:e=i.sent,i.next=4;break;case 19:0===(c-=1)&&r(A);case 21:case"end":return i.stop()}}),null,null,[[5,11]])}))})));case 6:case"end":return u.stop()}}))},ResponseToJson:function(e){return a.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.ResponseToFormat("json",e));case 1:case"end":return t.stop()}}))},ResponseToFormat:function(e,t){return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.awrap(t);case 2:t=n.sent,n.t0=e.toLowerCase(),n.next="json"===n.t0?6:"text"===n.t0?9:"blob"===n.t0?12:"arraybuffer"===n.t0?15:"formdata"===n.t0?18:"buffer"===n.t0?21:24;break;case 6:return n.next=8,a.awrap(t.json());case 8:return n.abrupt("return",n.sent);case 9:return n.next=11,a.awrap(t.text());case 11:return n.abrupt("return",n.sent);case 12:return n.next=14,a.awrap(t.blob());case 14:return n.abrupt("return",n.sent);case 15:return n.next=17,a.awrap(t.arrayBuffer());case 17:return n.abrupt("return",n.sent);case 18:return n.next=20,a.awrap(t.formData());case 20:return n.abrupt("return",n.sent);case 21:return n.next=23,a.awrap(t.buffer());case 23:return n.abrupt("return",n.sent);case 24:return n.abrupt("return",t);case 25:case"end":return n.stop()}}))},IsCloneable:function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return d.IsCloneable(e[t])}));case"Map":return i(e.keys()).every(d.IsCloneable)&&i(e.values()).every(d.IsCloneable);case"Set":return i(e.keys()).every(d.IsCloneable);default:return!1}},MakeClonable:function(e){if(d.IsCloneable(e))return e;if(t.isBuffer(e))return d.BufferToArrayBuffer(e);switch({}.toString.call(e).slice(8,-1)){case"Response":case"Function":return;case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return e;case"Array":return e.map((function(e){return d.MakeClonable(e)}));case"Set":return new Set(Array.from(e.keys()).map((function(e){return d.MakeClonable(e)})));case"Map":var n=new Map;return Array.from(e.keys()).forEach((function(t){var r=d.MakeClonable(e.get(t));r&&n.set(t,r)})),n;case"Error":return e.message;case"Object":var r={};return Object.keys(e).map((function(t){var n=d.MakeClonable(e[t]);n&&(r[t]=n)})),r;default:return JSON.parse(JSON.stringify(e))}},PLATFORM_NODE:"node",PLATFORM_WEB:"web",PLATFORM_REACT_NATIVE:"react-native",Platform:function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?d.PLATFORM_REACT_NATIVE:void 0!==r&&void 0!==r.versions.node?d.PLATFORM_NODE:d.PLATFORM_WEB}};e.exports=d}).call(this,n(2).Buffer,n(4))},function(e,t,n){"use strict";(function(t,r){var i=n(1).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o<e;o+=65536)a.getRandomValues(n.slice(o,o+65536));else a.getRandomValues(n);if("function"==typeof t)return r.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(5),n(4))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(0),i=n(51),a=n(52),o=n(53),s=n(12);function A(e){s.call(this,"digest"),this._hash=e}r(A,s),A.prototype._update=function(e){this._hash.update(e)},A.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new A(o(e))}},function(e,t,n){var r=n(1).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var A=o%i,c=Math.min(a-s,i-A),u=0;u<c;u++)n[A+u]=e[s+u];s+=c,(o+=c)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){"use strict";function r(e){return(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})(e)}var i={};function a(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,i[e]=r}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,a,s,A;if("string"==typeof t&&(a="not ",t.substr(!s||s<0?0:+s,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))A="The ".concat(e," ").concat(i," ").concat(o(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";A='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(o(t,"type"))}return A+=". Received type ".concat(r(n))}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(116),a=n(120);n(0)(c,i);for(var o=r(a.prototype),s=0;s<o.length;s++){var A=o[s];c.prototype[A]||(c.prototype[A]=a.prototype[A])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,n(4))},function(e,t,n){(function(n){var r,i,a,o;function s(e){return(s="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})(e)}o=function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var A=new Error("Cannot find module '"+o+"'");throw A.code="MODULE_NOT_FOUND",A}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var a=!1,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.version="4.0.45"},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./utils/properties"),i=(a.isSigner=function(e){return r.isType(e,"Signer")},a);function a(){r.setType(this,"Signer")}n.Signer=i},{"./utils/properties":74}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./utils/bignumber");n.AddressZero="0x0000000000000000000000000000000000000000",n.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000",n.EtherSymbol="Ξ";var i=r.bigNumberify(-1);n.NegativeOne=i;var a=r.bigNumberify(0);n.Zero=a;var o=r.bigNumberify(1);n.One=o;var s=r.bigNumberify(2);n.Two=s;var A=r.bigNumberify("1000000000000000000");n.WeiPerEther=A;var c=r.bigNumberify("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");n.MaxUint256=c},{"./utils/bignumber":63}],4:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o,A=e("./constants"),c=a(e("./errors")),u=e("./utils/abi-coder"),f=e("./utils/address"),h=e("./utils/bignumber"),d=e("./utils/bytes"),l=e("./utils/interface"),g=e("./utils/properties"),p=e("./providers/abstract-provider"),y=e("./abstract-signer"),I=(i(b,o=y.Signer),b.prototype.getAddress=function(){return Promise.resolve(this.address)},b.prototype._fail=function(e,t){return Promise.resolve().then((function(){c.throwError(e,c.UNSUPPORTED_OPERATION,{operation:t})}))},b.prototype.signMessage=function(e){return this._fail("VoidSigner cannot sign messages","signMessage")},b.prototype.sendTransaction=function(e){return this._fail("VoidSigner cannot sign transactions","sendTransaction")},b.prototype.connect=function(e){return new b(this.address,e)},b);function b(e,t){var n=o.call(this)||this;return g.defineReadOnly(n,"address",e),g.defineReadOnly(n,"provider",t),n}n.VoidSigner=I;var C={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};function m(e,t,n){var r=e.interface.functions[t];return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var a={},o=null;if(t.length===r.inputs.length+1&&"object"==s(t[t.length-1]))for(var f in null!=(a=g.shallowCopy(t.pop())).blockTag&&(o=a.blockTag),delete a.blockTag,a)if(!C[f])throw new Error("unknown transaction override "+f);if(t.length!=r.inputs.length)throw new Error("incorrect number of arguments");return["data","to"].forEach((function(e){null!=a[e]&&c.throwError("cannot override "+e,c.UNSUPPORTED_OPERATION,{operation:e})})),a.to=e._deployed(o).then((function(){return e.addressPromise})),function e(t,n,r){if(Array.isArray(r)){var i=[];return r.forEach((function(r,a){var o;o=Array.isArray(n)?n[a]:n[r.name],i.push(e(t,o,r))})),Promise.all(i)}if("address"===r.type)return t.resolveName(n);if("tuple"===r.type)return e(t,n,r.components);var a=r.type.match(/(.*)(\[[0-9]*\]$)/);if(a){if(!Array.isArray(n))throw new Error("invalid value for array");var o=[],s={components:r.components,type:a[1]};return n.forEach((function(n){o.push(e(t,n,s))})),Promise.all(o)}return Promise.resolve(n)}(e.provider,t,r.inputs).then((function(t){if(a.data=r.encode(t),"call"===r.type)return n?Promise.resolve(A.Zero):(e.provider||c.throwError("call (constant functions) require a provider or a signer with a provider",c.UNSUPPORTED_OPERATION,{operation:"call"}),["gasLimit","gasPrice","value"].forEach((function(e){if(null!=a[e])throw new Error("call cannot override "+e)})),null==a.from&&e.signer&&(a.from=e.signer.getAddress()),e.provider.call(a,o).then((function(n){if(d.hexDataLength(n)%32==4&&"0x08c379a0"===d.hexDataSlice(n,0,4)){var i=u.defaultAbiCoder.decode(["string"],d.hexDataSlice(n,4));c.throwError("call revert exception",c.CALL_EXCEPTION,{address:e.address,args:t,method:r.signature,errorSignature:"Error(string)",errorArgs:[i],reason:i,transaction:a})}try{var o=r.decode(n);return 1===r.outputs.length&&(o=o[0]),o}catch(i){throw"0x"===n&&0<r.outputs.length&&c.throwError("call exception",c.CALL_EXCEPTION,{address:e.address,method:r.signature,args:t}),i}})));if("transaction"===r.type)return n?(e.provider||c.throwError("estimate gas require a provider or a signer with a provider",c.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),null==a.from&&e.signer&&(a.from=e.signer.getAddress()),e.provider.estimateGas(a)):(null==a.gasLimit&&null!=r.gas&&(a.gasLimit=h.bigNumberify(r.gas).add(21e3)),e.signer||c.throwError("sending a transaction requires a signer",c.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=a.from&&c.throwError("cannot override from in a transaction",c.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),e.signer.sendTransaction(a).then((function(t){var n=t.wait.bind(t);return t.wait=function(t){return n(t).then((function(t){return t.events=t.logs.map((function(n){var r=g.deepCopy(n),i=e.interface.parseLog(n);return i&&(r.args=i.values,r.decode=i.decode,r.event=i.name,r.eventSignature=i.signature),r.removeListener=function(){return e.provider},r.getBlock=function(){return e.provider.getBlock(t.blockHash)},r.getTransaction=function(){return e.provider.getTransaction(t.transactionHash)},r.getTransactionReceipt=function(){return Promise.resolve(t)},r})),t}))},t})));throw new Error("invalid type - "+r.type)}))}}function E(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.join(":"):""):"*"}var B=(v.prototype.deployed=function(){return this._deployed()},v.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&c.throwError("contract not deployed",c.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise},v.prototype.fallback=function(e){var t=this;this.signer||c.throwError("sending a transaction requires a signer",c.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=g.shallowCopy(e||{});return["from","to"].forEach((function(e){null!=n[e]&&c.throwError("cannot override "+e,c.UNSUPPORTED_OPERATION,{operation:e})})),n.to=this.addressPromise,this.deployed().then((function(){return t.signer.sendTransaction(n)}))},v.prototype.connect=function(e){"string"==typeof e&&(e=new I(e,this.provider));var t=new v(this.address,this.interface,e);return this.deployTransaction&&g.defineReadOnly(t,"deployTransaction",this.deployTransaction),t},v.prototype.attach=function(e){return new v(e,this.interface,this.signer||this.provider)},v.isIndexed=function(e){return l.Interface.isIndexed(e)},v.prototype._getEventFilter=function(e){var t=this;if("string"==typeof e){if("*"===e)return{prepareEvent:function(e){var n=t.interface.parseLog(e);return n&&(e.args=n.values,e.decode=n.decode,e.event=n.name,e.eventSignature=n.signature),[e]},eventTag:"*",filter:{address:this.address}};-1!==e.indexOf("(")&&(e=u.formatSignature(u.parseSignature("event "+e)));var n=this.interface.events[e];n||c.throwError("unknown event - "+e,c.INVALID_ARGUMENT,{argumnet:"eventName",value:e});var r={address:this.address,topics:[n.topic]};return{prepareEvent:function(e){var t=n.decode(e.data,e.topics);e.args=t;var r=Array.prototype.slice.call(t);return r.push(e),r},event:n,eventTag:E(r),filter:r}}var i={address:this.address},a=null;if(e.topics&&e.topics[0])for(var o in i.topics=e.topics,this.interface.events)if(-1!==o.indexOf("(")){var s=this.interface.events[o];if(s.topic===e.topics[0].toLowerCase()){a=s;break}}return{prepareEvent:function(e){if(!a)return[e];var t=a.decode(e.data,e.topics);e.args=t;var n=Array.prototype.slice.call(t);return n.push(e),n},event:a,eventTag:E(i),filter:i}},v.prototype._addEventListener=function(e,t,n){var r=this;function i(n){var i=g.deepCopy(n),a=e.prepareEvent(i);e.event&&(i.decode=e.event.decode,i.event=e.event.name,i.eventSignature=e.event.signature),i.removeListener=function(){r.removeListener(e.filter,t)},i.getBlock=function(){return r.provider.getBlock(n.blockHash)},i.getTransaction=function(){return r.provider.getTransaction(n.transactionHash)},i.getTransactionReceipt=function(){return r.provider.getTransactionReceipt(n.transactionHash)},r.emit.apply(r,[e.filter].concat(a))}this.provider||c.throwError("events require a provider or a signer with a provider",c.UNSUPPORTED_OPERATION,{operation:"once"}),this.provider.on(e.filter,i),this._events.push({eventFilter:e,listener:t,wrappedListener:i,once:n})},v.prototype.on=function(e,t){return this._addEventListener(this._getEventFilter(e),t,!1),this},v.prototype.once=function(e,t){return this._addEventListener(this._getEventFilter(e),t,!0),this},v.prototype.addListener=function(e,t){return this.on(e,t)},v.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this.provider)return!1;var i=!1,a=this._getEventFilter(e);return this._events=this._events.filter((function(e){return e.eventFilter.eventTag!==a.eventTag||(setTimeout((function(){e.listener.apply(t,n)}),0),i=!0,!e.once)})),i},v.prototype.listenerCount=function(e){if(!this.provider)return 0;var t=this._getEventFilter(e);return this._events.filter((function(e){return e.eventFilter.eventTag===t.eventTag})).length},v.prototype.listeners=function(e){if(!this.provider)return[];var t=this._getEventFilter(e);return this._events.filter((function(e){return e.eventFilter.eventTag===t.eventTag})).map((function(e){return e.listener}))},v.prototype.removeAllListeners=function(e){var t=this;if(!this.provider)return this;var n=this._getEventFilter(e);return this._events=this._events.filter((function(e){return e.eventFilter.eventTag!==n.eventTag||(t.provider.removeListener(e.eventFilter.filter,e.wrappedListener),!1)})),this},v.prototype.removeListener=function(e,t){var n=this;if(!this.provider)return this;var r=!1,i=this._getEventFilter(e);return this._events=this._events.filter((function(e){return e.eventFilter.eventTag!==i.eventTag||e.listener!==t||(n.provider.removeListener(e.eventFilter.filter,e.wrappedListener),!!r||!(r=!0))})),this},v);function v(e,t,n){var r=this;if(c.checkNew(this,v),l.Interface.isInterface(t)?g.defineReadOnly(this,"interface",t):g.defineReadOnly(this,"interface",new l.Interface(t)),y.Signer.isSigner(n)?(g.defineReadOnly(this,"provider",n.provider),g.defineReadOnly(this,"signer",n)):p.Provider.isProvider(n)?(g.defineReadOnly(this,"provider",n),g.defineReadOnly(this,"signer",null)):c.throwError("invalid signer or provider",c.INVALID_ARGUMENT,{arg:"signerOrProvider",value:n}),g.defineReadOnly(this,"estimate",{}),g.defineReadOnly(this,"functions",{}),g.defineReadOnly(this,"filters",{}),Object.keys(this.interface.events).forEach((function(e){var t=r.interface.events[e];g.defineReadOnly(r.filters,e,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return{address:r.address,topics:t.encodeTopics(e)}}))})),this._events=[],g.defineReadOnly(this,"address",e),this.provider)g.defineReadOnly(this,"addressPromise",this.provider.resolveName(e).then((function(e){if(null==e)throw new Error("name not found");return e})).catch((function(e){throw e})));else try{g.defineReadOnly(this,"addressPromise",Promise.resolve(f.getAddress(e)))}catch(t){c.throwError("provider is required to use non-address contract address",c.INVALID_ARGUMENT,{argument:"addressOrName",value:e})}Object.keys(this.interface.functions).forEach((function(e){var t=m(r,e,!1);null==r[e]?g.defineReadOnly(r,e,t):c.warn("WARNING: Multiple definitions for "+e),null==r.functions[e]&&(g.defineReadOnly(r.functions,e,t),g.defineReadOnly(r.estimate,e,m(r,e,!0)))}))}n.Contract=B;var w=(Q.prototype.getDeployTransaction=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};if(e.length===this.interface.deployFunction.inputs.length+1)for(var r in n=g.shallowCopy(e.pop()))if(!C[r])throw new Error("unknown transaction override "+r);return["data","from","to"].forEach((function(e){null!=n[e]&&c.throwError("cannot override "+e,c.UNSUPPORTED_OPERATION,{operation:e})})),c.checkArgumentCount(e.length,this.interface.deployFunction.inputs.length," in Contract constructor"),n.data=this.interface.deployFunction.encode(this.bytecode,e),n},Q.prototype.deploy=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.getDeployTransaction.apply(this,t);return this.signer.sendTransaction(r).then((function(t){var n=new B(f.getContractAddress(t),e.interface,e.signer);return g.defineReadOnly(n,"deployTransaction",t),n}))},Q.prototype.attach=function(e){return new B(e,this.interface,this.signer)},Q.prototype.connect=function(e){return new Q(this.interface,this.bytecode,e)},Q.fromSolidity=function(e,t){null==e&&c.throwError("missing compiler output",c.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));var n=e.abi,r=null;return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new Q(n,r,t)},Q);function Q(e,t,n){var r=null;"string"==typeof t?r=t:d.isArrayish(t)?r=d.hexlify(t):"string"==typeof t.object?r=t.object:c.throwError("bytecode must be a valid hex string",c.INVALID_ARGUMENT,{arg:"bytecode",value:t}),"0x"!==r.substring(0,2)&&(r="0x"+r),d.isHexString(r)||c.throwError("bytecode must be a valid hex string",c.INVALID_ARGUMENT,{arg:"bytecode",value:t}),r.length%2!=0&&c.throwError("bytecode must be valid data (even length)",c.INVALID_ARGUMENT,{arg:"bytecode",value:t}),g.defineReadOnly(this,"bytecode",r),l.Interface.isInterface(e)?g.defineReadOnly(this,"interface",e):g.defineReadOnly(this,"interface",new l.Interface(e)),n&&!y.Signer.isSigner(n)&&c.throwError("invalid signer",c.INVALID_ARGUMENT,{arg:"signer",value:null}),g.defineReadOnly(this,"signer",n||null)}n.ContractFactory=w},{"./abstract-signer":2,"./constants":3,"./errors":5,"./providers/abstract-provider":50,"./utils/abi-coder":59,"./utils/address":60,"./utils/bignumber":63,"./utils/bytes":64,"./utils/interface":69,"./utils/properties":74}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./_version");n.UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.MISSING_NEW="MISSING_NEW",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.NUMERIC_FAULT="NUMERIC_FAULT",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED";var i=!(n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION"),a=!1;function o(e,t,i){if(a)throw new Error("unknown error");t=t||n.UNKNOWN_ERROR,i=i||{};var o=[];Object.keys(i).forEach((function(e){try{o.push(e+"="+JSON.stringify(i[e]))}catch(t){o.push(e+"="+JSON.stringify(i[e].toString()))}})),o.push("version="+r.version);var s=e;o.length&&(e+=" ("+o.join(", ")+")");var A=new Error(e);throw A.reason=s,A.code=t,Object.keys(i).forEach((function(e){A[e]=i[e]})),A}n.throwError=o,n.checkNew=function(e,t){e instanceof t||o("missing new",n.MISSING_NEW,{name:t.name})},n.checkArgumentCount=function(e,t,r){r=r||"",e<t&&o("missing argument"+r,n.MISSING_ARGUMENT,{count:e,expectedCount:t}),t<e&&o("too many arguments"+r,n.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},n.setCensorship=function(e,t){i&&o("error censorship permanent",n.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a=!!e,i=!!t},n.checkNormalize=function(){try{if(["NFD","NFC","NFKD","NFKC"].forEach((function(e){try{"test".normalize(e)}catch(t){throw new Error("missing "+e)}})),String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){o("platform missing String.prototype.normalize",n.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:e.message})}};var s={debug:1,default:2,info:2,warn:3,error:4,off:5},A=s.default;function c(e,t){A>s[e]||console.log.apply(console,t)}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];c("warn",e)}n.setLogLevel=function(e){var t=s[e];null!=t?A=t:u("invliad log level - "+e)},n.warn=u,n.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];c("info",e)}},{"./_version":1}],6:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=e("./contract");n.Contract=i.Contract,n.ContractFactory=i.ContractFactory,n.VoidSigner=i.VoidSigner;var a=e("./abstract-signer");n.Signer=a.Signer;var o=e("./wallet");n.Wallet=o.Wallet;var s=r(e("./constants"));n.constants=s;var A=r(e("./errors"));n.errors=A;var c=r(e("./providers"));n.providers=c;var u=r(e("./utils"));n.utils=u;var f=r(e("./wordlists"));n.wordlists=f;var h=e("./utils/shims");n.platform=h.platform;var d=e("./_version");n.version=d.version,n.getDefaultProvider=function(e){null==e&&(e="homestead");var t=u.getNetwork(e);return t&&t._defaultProvider||A.throwError("unsupported getDefaultProvider network",A.UNSUPPORTED_OPERATION,{operation:"getDefaultProvider",network:e}),t._defaultProvider(c)}},{"./_version":1,"./abstract-signer":2,"./constants":3,"./contract":4,"./errors":5,"./providers":54,"./utils":68,"./utils/shims":80,"./wallet":88,"./wordlists":89}],7:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("./ethers"));n.ethers=i,function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(e("./ethers"))},{"./ethers":6}],8:[function(e,t,n){"use strict";!function(e){function r(e){return parseInt(e)===e}function i(e){if(!r(e.length))return!1;for(var t=0;t<e.length;t++)if(!r(e[t])||e[t]<0||255<e[t])return!1;return!0}function a(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&i(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function s(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var A,c={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return a(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):191<r&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=(A="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(A[(240&r)>>4]+A[15&r])}return t.join("")}}),f={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],g=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],I=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],C=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],m=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],E=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],B=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],v=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],w=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Q=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var M=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:a(t,!0)}),this._prepare()};M.prototype._prepare=function(){var e=f[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),i=this.key.length/4,a=S(this.key);for(t=0;t<i;t++)n=t>>2,this._Ke[n][t%4]=a[t],this._Kd[e-n][t%4]=a[t];for(var o,s=0,A=i;A<r;){if(o=a[i-1],a[0]^=d[o>>16&255]<<24^d[o>>8&255]<<16^d[255&o]<<8^d[o>>24&255]^h[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)a[t]^=a[t-1];else{for(t=1;t<i/2;t++)a[t]^=a[t-1];for(o=a[i/2-1],a[i/2]^=d[255&o]^d[o>>8&255]<<8^d[o>>16&255]<<16^d[o>>24&255]<<24,t=i/2+1;t<i;t++)a[t]^=a[t-1]}for(t=0;t<i&&A<r;)c=A>>2,u=A%4,this._Ke[c][u]=a[t],this._Kd[e-c][u]=a[t++],A++}for(var c=1;c<e;c++)for(var u=0;u<4;u++)o=this._Kd[c][u],this._Kd[c][u]=B[o>>24&255]^v[o>>16&255]^w[o>>8&255]^Q[255&o]},M.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=S(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=g[r[i]>>24&255]^p[r[(i+1)%4]>>16&255]^y[r[(i+2)%4]>>8&255]^I[255&r[(i+3)%4]]^this._Ke[a][i];r=n.slice()}var s,A=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],A[4*i]=255&(d[r[i]>>24&255]^s>>24),A[4*i+1]=255&(d[r[(i+1)%4]>>16&255]^s>>16),A[4*i+2]=255&(d[r[(i+2)%4]>>8&255]^s>>8),A[4*i+3]=255&(d[255&r[(i+3)%4]]^s);return A},M.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=S(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=b[r[i]>>24&255]^C[r[(i+3)%4]>>16&255]^m[r[(i+2)%4]>>8&255]^E[255&r[(i+1)%4]]^this._Kd[a][i];r=n.slice()}var s,A=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],A[4*i]=255&(l[r[i]>>24&255]^s>>24),A[4*i+1]=255&(l[r[(i+3)%4]>>16&255]^s>>16),A[4*i+2]=255&(l[r[(i+2)%4]>>8&255]^s>>8),A[4*i+3]=255&(l[255&r[(i+1)%4]]^s);return A};var k=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new M(t)};k.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)s(e,n,0,r,r+16),s(n=this._aes.encrypt(n),t,r);return t},k.prototype.decrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)s(e,n,0,r,r+16),s(n=this._aes.decrypt(n),t,r);return t};var D=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastCipherblock=a(n,!0),this._aes=new M(t)};D.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){s(e,n,0,r,r+16);for(var i=0;i<16;i++)n[i]^=this._lastCipherblock[i];this._lastCipherblock=this._aes.encrypt(n),s(this._lastCipherblock,t,r)}return t},D.prototype.decrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){s(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var i=0;i<16;i++)t[r+i]=n[i]^this._lastCipherblock[i];s(e,this._lastCipherblock,0,r,r+16)}return t};var _=function e(t,n,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 size)")}else n=o(16);r=r||1,this.segmentSize=r,this._shiftRegister=a(n,!0),this._aes=new M(t)};_.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=a(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n},_.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=a(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)n[r+i]^=t[i];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n};var x=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastPrecipher=a(n,!0),this._lastPrecipherIndex=16,this._aes=new M(t)};x.prototype.encrypt=function(e){for(var t=a(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},x.prototype.decrypt=x.prototype.encrypt;var R=function e(t){if(!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=o(16),this.setValue(t)):this.setBytes(t)};R.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;0<=t;--t)this._counter[t]=e%256,e>>=8},R.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},R.prototype.increment=function(){for(var e=15;0<=e;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var N=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof R||(n=new R(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new M(t)};N.prototype.encrypt=function(e){for(var t=a(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},N.prototype.decrypt=N.prototype.encrypt;var F={AES:M,Counter:R,ModeOfOperation:{ecb:k,cbc:D,cfb:_,ofb:x,ctr:N},utils:{hex:u,utf8:c},padding:{pkcs7:{pad:function(e){var t=16-(e=a(e,!0)).length%16,n=o(e.length+t);s(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=a(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(16<t)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var i=o(n);return s(e,i,0,0,n),i}}},_arrayTest:{coerceArray:a,createArray:o,copyArray:s}};void 0!==n?t.exports=F:(e.aesjs&&(F._aesjs=e.aesjs),e.aesjs=F)}(this)},{}],9:[function(e,t,n){!function(t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){function n(){}e.super_=t,n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==s(t)?t.exports=a:n.BN=a,(a.BN=a).wordSize=26;try{o=e("buffer").Buffer}catch(t){}function A(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a<i;a++){var o=e.charCodeAt(a)-48;r<<=4,r|=49<=o&&o<=54?o-49+10:17<=o&&o<=22?o-17+10:15&o}return r}function c(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==s(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return 0<e.cmp(t)?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==s(e))return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&2<=t&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===n)for(i=e.length-1,a=0;0<=i;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,26<=(s+=24)&&(s-=26,a++);else if("le"===n)for(a=i=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,26<=(s+=24)&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,a=0;for(n=e.length-6,r=0;t<=n;n-=6)i=A(e,n,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303,26<=(a+=24)&&(a-=26,r++);n+6!==t&&(i=A(e,t,n+6),this.words[r]|=i<<a&67108863,this.words[r+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0];for(var r=0,i=this.length=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,A=0,u=n;u<s;u+=r)A=c(e,u,u+r,t),this.imuln(i),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A);if(0!=o){var f=1;for(A=c(e,u,e.length,t),u=0;u<o;u++)f*=t;this.imuln(f),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A)}},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;r=(n.length=r)-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,A=o/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=A>>>26,f=67108863&A,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var l=c-d|0;u+=(o=(i=0|e.words[l])*(a=0|t.words[d])+f)/67108864|0,f=67108863&o}n.words[c]=0|f,A=0|u}return 0!==A?n.words[c]=0|A:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],A=(16777215&(s<<i|a)).toString(16);n=0!=(a=s>>>24-i&16777215)||o!==this.length-1?u[6-A.length]+A+n:A+n,26<=(i+=2)&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&2<=e&&e<=36){var c=f[e],d=h[e];n="";var l=this.clone();for(l.negative=0;!l.isZero();){var g=l.modn(d).toString(e);n=(l=l.idivn(d)).isZero()?g+n:u[c-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(0<a,"Requested array length <= 0"),this.strip();var o,s,A="le"===t,c=new e(a),u=this.clone();if(A){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<a;s++)c[s]=0}else{for(s=0;s<a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},a.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,n=0;return 4096<=t&&(n+=13,t>>>=13),64<=t&&(n+=7,t>>>=7),8<=t&&(n+=4,t>>>=4),2<=t&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;n=this.length>e.length?(t=this,e):(t=e,this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),0<n&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return 0<n&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&0<=e);var n=e/26|0,i=e%26;return this._expand(1+n),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();r=this.length>e.length?(n=this,e):(n=e,this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;r=0<i?(n=this,e):(n=e,this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var l=function(e,t,n){var r,i,a,o=e.words,s=t.words,A=n.words,c=0,u=0|o[0],f=8191&u,h=u>>>13,d=0|o[1],l=8191&d,g=d>>>13,p=0|o[2],y=8191&p,I=p>>>13,b=0|o[3],C=8191&b,m=b>>>13,E=0|o[4],B=8191&E,v=E>>>13,w=0|o[5],Q=8191&w,S=w>>>13,M=0|o[6],k=8191&M,D=M>>>13,_=0|o[7],x=8191&_,R=_>>>13,N=0|o[8],F=8191&N,H=N>>>13,L=0|o[9],U=8191&L,G=L>>>13,O=0|s[0],T=8191&O,P=O>>>13,j=0|s[1],Y=8191&j,K=j>>>13,q=0|s[2],J=8191&q,z=q>>>13,V=0|s[3],Z=8191&V,W=V>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],Ae=8191&se,ce=se>>>13,ue=0|s[8],fe=8191&ue,he=ue>>>13,de=0|s[9],le=8191&de,ge=de>>>13;n.negative=e.negative^t.negative,n.length=19;var pe=(c+(r=Math.imul(f,T))|0)+((8191&(i=(i=Math.imul(f,P))+Math.imul(h,T)|0))<<13)|0;c=((a=Math.imul(h,P))+(i>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(l,T),i=(i=Math.imul(l,P))+Math.imul(g,T)|0,a=Math.imul(g,P);var ye=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0;c=((a=a+Math.imul(h,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,T),i=(i=Math.imul(y,P))+Math.imul(I,T)|0,a=Math.imul(I,P),r=r+Math.imul(l,Y)|0,i=(i=i+Math.imul(l,K)|0)+Math.imul(g,Y)|0,a=a+Math.imul(g,K)|0;var Ie=(c+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,z)|0)+Math.imul(h,J)|0))<<13)|0;c=((a=a+Math.imul(h,z)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(C,T),i=(i=Math.imul(C,P))+Math.imul(m,T)|0,a=Math.imul(m,P),r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(I,Y)|0,a=a+Math.imul(I,K)|0,r=r+Math.imul(l,J)|0,i=(i=i+Math.imul(l,z)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,z)|0;var be=(c+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,Z)|0))<<13)|0;c=((a=a+Math.imul(h,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(B,T),i=(i=Math.imul(B,P))+Math.imul(v,T)|0,a=Math.imul(v,P),r=r+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(m,Y)|0,a=a+Math.imul(m,K)|0,r=r+Math.imul(y,J)|0,i=(i=i+Math.imul(y,z)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,z)|0,r=r+Math.imul(l,Z)|0,i=(i=i+Math.imul(l,W)|0)+Math.imul(g,Z)|0,a=a+Math.imul(g,W)|0;var Ce=(c+(r=r+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(Q,T),i=(i=Math.imul(Q,P))+Math.imul(S,T)|0,a=Math.imul(S,P),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(v,Y)|0,a=a+Math.imul(v,K)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,z)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,z)|0,r=r+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(I,Z)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(l,$)|0,i=(i=i+Math.imul(l,ee)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,ee)|0;var me=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((a=a+Math.imul(h,re)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(k,T),i=(i=Math.imul(k,P))+Math.imul(D,T)|0,a=Math.imul(D,P),r=r+Math.imul(Q,Y)|0,i=(i=i+Math.imul(Q,K)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,K)|0,r=r+Math.imul(B,J)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,z)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,W)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(l,ne)|0,i=(i=i+Math.imul(l,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var Ee=(c+(r=r+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(h,ae)|0))<<13)|0;c=((a=a+Math.imul(h,oe)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(x,T),i=(i=Math.imul(x,P))+Math.imul(R,T)|0,a=Math.imul(R,P),r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(D,Y)|0,a=a+Math.imul(D,K)|0,r=r+Math.imul(Q,J)|0,i=(i=i+Math.imul(Q,z)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,z)|0,r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(v,Z)|0,a=a+Math.imul(v,W)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul(l,ae)|0,i=(i=i+Math.imul(l,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0;var Be=(c+(r=r+Math.imul(f,Ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,Ae)|0))<<13)|0;c=((a=a+Math.imul(h,ce)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(F,T),i=(i=Math.imul(F,P))+Math.imul(H,T)|0,a=Math.imul(H,P),r=r+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(R,Y)|0,a=a+Math.imul(R,K)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,z)|0)+Math.imul(D,J)|0,a=a+Math.imul(D,z)|0,r=r+Math.imul(Q,Z)|0,i=(i=i+Math.imul(Q,W)|0)+Math.imul(S,Z)|0,a=a+Math.imul(S,W)|0,r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0,r=r+Math.imul(y,ae)|0,i=(i=i+Math.imul(y,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,r=r+Math.imul(l,Ae)|0,i=(i=i+Math.imul(l,ce)|0)+Math.imul(g,Ae)|0,a=a+Math.imul(g,ce)|0;var ve=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(U,T),i=(i=Math.imul(U,P))+Math.imul(G,T)|0,a=Math.imul(G,P),r=r+Math.imul(F,Y)|0,i=(i=i+Math.imul(F,K)|0)+Math.imul(H,Y)|0,a=a+Math.imul(H,K)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,z)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,z)|0,r=r+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(D,Z)|0,a=a+Math.imul(D,W)|0,r=r+Math.imul(Q,$)|0,i=(i=i+Math.imul(Q,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(B,ne)|0,i=(i=i+Math.imul(B,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0,r=r+Math.imul(y,Ae)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(I,Ae)|0,a=a+Math.imul(I,ce)|0,r=r+Math.imul(l,fe)|0,i=(i=i+Math.imul(l,he)|0)+Math.imul(g,fe)|0,a=a+Math.imul(g,he)|0;var we=(c+(r=r+Math.imul(f,le)|0)|0)+((8191&(i=(i=i+Math.imul(f,ge)|0)+Math.imul(h,le)|0))<<13)|0;c=((a=a+Math.imul(h,ge)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(U,Y),i=(i=Math.imul(U,K))+Math.imul(G,Y)|0,a=Math.imul(G,K),r=r+Math.imul(F,J)|0,i=(i=i+Math.imul(F,z)|0)+Math.imul(H,J)|0,a=a+Math.imul(H,z)|0,r=r+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(R,Z)|0,a=a+Math.imul(R,W)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(Q,ne)|0,i=(i=i+Math.imul(Q,re)|0)+Math.imul(S,ne)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,r=r+Math.imul(C,Ae)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(m,Ae)|0,a=a+Math.imul(m,ce)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(I,fe)|0,a=a+Math.imul(I,he)|0;var Qe=(c+(r=r+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,ge)|0)+Math.imul(g,le)|0))<<13)|0;c=((a=a+Math.imul(g,ge)|0)+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,r=Math.imul(U,J),i=(i=Math.imul(U,z))+Math.imul(G,J)|0,a=Math.imul(G,z),r=r+Math.imul(F,Z)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(H,Z)|0,a=a+Math.imul(H,W)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(Q,ae)|0,i=(i=i+Math.imul(Q,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,r=r+Math.imul(B,Ae)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(v,Ae)|0,a=a+Math.imul(v,ce)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,he)|0;var Se=(c+(r=r+Math.imul(y,le)|0)|0)+((8191&(i=(i=i+Math.imul(y,ge)|0)+Math.imul(I,le)|0))<<13)|0;c=((a=a+Math.imul(I,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,Z),i=(i=Math.imul(U,W))+Math.imul(G,Z)|0,a=Math.imul(G,W),r=r+Math.imul(F,$)|0,i=(i=i+Math.imul(F,ee)|0)+Math.imul(H,$)|0,a=a+Math.imul(H,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(R,ne)|0,a=a+Math.imul(R,re)|0,r=r+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(Q,Ae)|0,i=(i=i+Math.imul(Q,ce)|0)+Math.imul(S,Ae)|0,a=a+Math.imul(S,ce)|0,r=r+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,he)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,he)|0;var Me=(c+(r=r+Math.imul(C,le)|0)|0)+((8191&(i=(i=i+Math.imul(C,ge)|0)+Math.imul(m,le)|0))<<13)|0;c=((a=a+Math.imul(m,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,$),i=(i=Math.imul(U,ee))+Math.imul(G,$)|0,a=Math.imul(G,ee),r=r+Math.imul(F,ne)|0,i=(i=i+Math.imul(F,re)|0)+Math.imul(H,ne)|0,a=a+Math.imul(H,re)|0,r=r+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,r=r+Math.imul(k,Ae)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(D,Ae)|0,a=a+Math.imul(D,ce)|0,r=r+Math.imul(Q,fe)|0,i=(i=i+Math.imul(Q,he)|0)+Math.imul(S,fe)|0,a=a+Math.imul(S,he)|0;var ke=(c+(r=r+Math.imul(B,le)|0)|0)+((8191&(i=(i=i+Math.imul(B,ge)|0)+Math.imul(v,le)|0))<<13)|0;c=((a=a+Math.imul(v,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,ne),i=(i=Math.imul(U,re))+Math.imul(G,ne)|0,a=Math.imul(G,re),r=r+Math.imul(F,ae)|0,i=(i=i+Math.imul(F,oe)|0)+Math.imul(H,ae)|0,a=a+Math.imul(H,oe)|0,r=r+Math.imul(x,Ae)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(R,Ae)|0,a=a+Math.imul(R,ce)|0,r=r+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(D,fe)|0,a=a+Math.imul(D,he)|0;var De=(c+(r=r+Math.imul(Q,le)|0)|0)+((8191&(i=(i=i+Math.imul(Q,ge)|0)+Math.imul(S,le)|0))<<13)|0;c=((a=a+Math.imul(S,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(U,ae),i=(i=Math.imul(U,oe))+Math.imul(G,ae)|0,a=Math.imul(G,oe),r=r+Math.imul(F,Ae)|0,i=(i=i+Math.imul(F,ce)|0)+Math.imul(H,Ae)|0,a=a+Math.imul(H,ce)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(R,fe)|0,a=a+Math.imul(R,he)|0;var _e=(c+(r=r+Math.imul(k,le)|0)|0)+((8191&(i=(i=i+Math.imul(k,ge)|0)+Math.imul(D,le)|0))<<13)|0;c=((a=a+Math.imul(D,ge)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(U,Ae),i=(i=Math.imul(U,ce))+Math.imul(G,Ae)|0,a=Math.imul(G,ce),r=r+Math.imul(F,fe)|0,i=(i=i+Math.imul(F,he)|0)+Math.imul(H,fe)|0,a=a+Math.imul(H,he)|0;var xe=(c+(r=r+Math.imul(x,le)|0)|0)+((8191&(i=(i=i+Math.imul(x,ge)|0)+Math.imul(R,le)|0))<<13)|0;c=((a=a+Math.imul(R,ge)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,fe),i=(i=Math.imul(U,he))+Math.imul(G,fe)|0,a=Math.imul(G,he);var Re=(c+(r=r+Math.imul(F,le)|0)|0)+((8191&(i=(i=i+Math.imul(F,ge)|0)+Math.imul(H,le)|0))<<13)|0;c=((a=a+Math.imul(H,ge)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ne=(c+(r=Math.imul(U,le))|0)+((8191&(i=(i=Math.imul(U,ge))+Math.imul(G,le)|0))<<13)|0;return c=((a=Math.imul(G,ge))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,A[0]=pe,A[1]=ye,A[2]=Ie,A[3]=be,A[4]=Ce,A[5]=me,A[6]=Ee,A[7]=Be,A[8]=ve,A[9]=we,A[10]=Qe,A[11]=Se,A[12]=Me,A[13]=ke,A[14]=De,A[15]=_e,A[16]=xe,A[17]=Re,A[18]=Ne,0!==c&&(A[19]=c,n.length++),n};function g(e,t,n){return(new p).mulp(e,t,n)}function p(e,t){this.x=e,this.y=t}Math.imul||(l=d),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,A=Math.min(a,t.length-1),c=Math.max(0,a-e.length+1);c<=A;c++){var u=a-c,f=(0|e.words[u])*(0|t.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):g(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},p.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},p.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},p.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,A=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=A,h=c,d=0;d<o;d++){var l=n[u+d],g=r[u+d],p=n[u+d+o],y=r[u+d+o],I=f*p-h*y;y=f*y+h*p,p=I,n[u+d]=l+p,r[u+d]=g+y,n[u+d+o]=l-p,r[u+d+o]=g-y,d!==s&&(I=A*f-c*h,h=A*h+c*f,f=I)}},p.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},p.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},p.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},p.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===a),r(0==(-8192&a))},p.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},p.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),A=new Array(r),c=new Array(r),u=new Array(r),f=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,a,s,A,r,i),this.transform(c,a,u,f,r,i);for(var d=0;d<r;d++){var l=s[d]*u[d]-A[d]*f[d];A[d]=s[d]*f[d]+A[d]*u[d],s[d]=l}return this.conjugate(s,A,r),this.transform(s,A,h,a,r,i),this.conjugate(h,a,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),g(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r("number"==typeof e&&0<=e);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!=n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,A=(0|this.words[t])-s<<n;this.words[t]=A|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!=i){for(t=this.length-1;0<=t;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&0<=e),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,A=n;if(i-=o,i=Math.max(0,i),A){for(var c=0;c<o;c++)A.words[c]=this.words[c];A.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;0<=c&&(0!==u||i<=c);c--){var f=0|this.words[c];this.words[c]=u<<26-a|f>>>a,u=f&s}return A&&0!==u&&(A.words[A.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&0<=e);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n||!(this.words[n]&i))},a.prototype.imaskn=function(e){r("number"==typeof e&&0<=e);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!=t&&n++,this.length=Math.min(n,this.length),0!=t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var A=(0|e.words[i])*t;s=((a-=67108863&A)>>26)-(A/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),i=s=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,A=r.length-i.length;if("mod"!==t){(s=new a(null)).length=1+A,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,A);0===u.negative&&(r=u,s&&(s.words[A]=1));for(var f=A-1;0<=f;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!=n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;0<=i;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;0<=n;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),A=new a(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(0<h)for(t.iushrn(h);0<h--;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var l=0,g=1;0==(n.words[0]&g)&&l<26;++l,g<<=1);if(0<l)for(n.iushrn(l);0<l--;)(s.isOdd()||A.isOdd())&&(s.iadd(u),A.isub(f)),s.iushrn(1),A.iushrn(1);0<=t.cmp(n)?(t.isub(n),i.isub(s),o.isub(A)):(n.isub(t),s.isub(i),A.isub(o))}return{a:s,b:A,gcd:n.iushln(c)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),A=n.clone();0<t.cmpn(1)&&0<n.cmpn(1);){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(0<c)for(t.iushrn(c);0<c--;)o.isOdd()&&o.iadd(A),o.iushrn(1);for(var f=0,h=1;0==(n.words[0]&h)&&f<26;++f,h<<=1);if(0<f)for(n.iushrn(f);0<f--;)s.isOdd()&&s.iadd(A),s.iushrn(1);0<=t.cmp(n)?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0;for(var r=n.negative=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(1+n),this.words[n]|=i,this;for(var a=i,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),1<this.length)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;0<=n;n--){var r=0|this.words[n],i=0|e.words[n];if(r!=i){r<i?t=-1:i<r&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return 0<=this.cmpn(e)},a.prototype.gte=function(e){return 0<=this.cmp(e)},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new B(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function I(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){I.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){I.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function m(){I.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){I.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function v(e){B.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}I.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},I.prototype.ireduce=function(e){for(var t,n=e;this.split(n,this.tmp),(t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength())>this.n;);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):0<r?n.isub(this.p):n.strip(),n},I.prototype.split=function(e,t){e.iushrn(this.n,0,t)},I.prototype.imulK=function(e){return e.imul(this.k)},i(b,I),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,0===(e.words[r-10]=i)&&10<e.length?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(C,I),i(m,I),i(E,I),E.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new C;else if("p192"===e)t=new m;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return y[e]=t},B.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},B.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},B.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},B.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},B.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return 0<=n.cmp(this.m)&&n.isub(this.m),n._forceRed(this)},B.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return 0<=n.cmp(this.m)&&n.isub(this.m),n},B.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},B.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},B.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},B.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},B.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},B.prototype.isqr=function(e){return this.imul(e,e.clone())},B.prototype.sqr=function(e){return this.mul(e,e)},B.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),A=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(A);)u.redIAdd(A);for(var f=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),l=o;0!==d.cmp(s);){for(var g=d,p=0;0!==g.cmp(s);p++)g=g.redSqr();r(p<l);var y=this.pow(f,new a(1).iushln(l-p-1));h=h.redMul(y),f=y.redSqr(),d=d.redMul(f),l=p}return h},B.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},B.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,s=0,A=t.bitLength()%26;for(0===A&&(A=26),r=t.length-1;0<=r;r--){for(var c=t.words[r],u=A-1;0<=u;u--){var f=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(i=this.mul(i,n[o]),o=s=0)):s=0}A=26}return i},B.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},B.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new v(e)},i(v,B),v.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},v.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},v.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return 0<=i.cmp(this.m)?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},v.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},v.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:11}],10:[function(e,t,r){(function(e){t.exports=function(t){var n=new Uint8Array(t);return(e.crypto||e.msCrypto).getRandomValues(n),n}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,n){},{}],12:[function(e,t,n){"use strict";var r=n;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":25,"./elliptic/curve":15,"./elliptic/curves":18,"./elliptic/ec":19,"./elliptic/eddsa":22,"./elliptic/utils":24,brorand:10}],13:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),a=i.getNAF,o=i.getJSF,s=i.assert;function A(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||0<n.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=A).prototype.point=function(){throw new Error("Not implemented")},A.prototype.validate=function(){throw new Error("Not implemented")},A.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var o=[],A=0;A<r.length;A+=n.step){var c=0;for(t=A+n.step-1;A<=t;t--)c=(c<<1)+r[t];o.push(c)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;0<h;h--){for(A=0;A<o.length;A++)(c=o[A])===h?f=f.mixedAdd(n.points[A]):c===-h&&(f=f.mixedAdd(n.points[A].neg()));u=u.add(f)}return u.toP()},A.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),A=this.jpoint(null,null,null),c=o.length-1;0<=c;c--){for(t=0;0<=c&&0===o[c];c--)t++;if(0<=c&&t++,A=A.dblp(t),c<0)break;var u=o[c];s(0!==u),A="affine"===e.type?0<u?A.mixedAdd(i[u-1>>1]):A.mixedAdd(i[-u-1>>1].neg()):0<u?A.add(i[u-1>>1]):A.add(i[-u-1>>1].neg())}return"affine"===e.type?A.toP():A},A.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,A=this._wnafT2,c=this._wnafT3,u=0,f=0;f<r;f++){var h=(w=t[f])._getNAFPoints(e);s[f]=h.wnd,A[f]=h.points}for(f=r-1;1<=f;f-=2){var d=f-1,l=f;if(1===s[d]&&1===s[l]){var g=[t[d],null,null,t[l]];0===t[d].y.cmp(t[l].y)?(g[1]=t[d].add(t[l]),g[2]=t[d].toJ().mixedAdd(t[l].neg())):0===t[d].y.cmp(t[l].y.redNeg())?(g[1]=t[d].toJ().mixedAdd(t[l]),g[2]=t[d].add(t[l].neg())):(g[1]=t[d].toJ().mixedAdd(t[l]),g[2]=t[d].toJ().mixedAdd(t[l].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],y=o(n[d],n[l]);u=Math.max(y[0].length,u),c[d]=new Array(u),c[l]=new Array(u);for(var I=0;I<u;I++){var b=0|y[0][I],C=0|y[1][I];c[d][I]=p[3*(1+b)+(1+C)],c[l][I]=0,A[d]=g}}else c[d]=a(n[d],s[d],this._bitLength),c[l]=a(n[l],s[l],this._bitLength),u=Math.max(c[d].length,u),u=Math.max(c[l].length,u)}var m=this.jpoint(null,null,null),E=this._wnafT4;for(f=u;0<=f;f--){for(var B=0;0<=f;){var v=!0;for(I=0;I<r;I++)E[I]=0|c[I][f],0!==E[I]&&(v=!1);if(!v)break;B++,f--}if(0<=f&&B++,m=m.dblp(B),f<0)break;for(I=0;I<r;I++){var w,Q=E[I];0!==Q&&(0<Q?w=A[I][Q-1>>1]:Q<0&&(w=A[I][-Q-1>>1].neg()),m="affine"===w.type?m.mixedAdd(w):m.add(w))}}for(f=0;f<r;f++)A[f]=null;return i?m:m.toP()},(A.BasePoint=c).prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},A.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1==n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},{"../utils":24,"bn.js":9}],14:[function(e,t,n){t.exports={}},{}],15:[function(e,t,n){"use strict";var r=n;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":13,"./edwards":14,"./mont":16,"./short":17}],16:[function(e,t,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],17:[function(e,t,n){"use strict";var r=e("../utils"),i=e("bn.js"),a=e("inherits"),o=e("./base"),s=r.assert;function A(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(A,o),(t.exports=A).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},A.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},A.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,A,c,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),l=new i(1),g=new i(0),p=new i(0),y=new i(1),I=0;0!==h.cmpn(0);){var b=d.div(h);c=d.sub(b.mul(h)),u=p.sub(b.mul(l));var C=y.sub(b.mul(g));if(!r&&c.cmp(f)<0)t=A.neg(),n=l,r=c.neg(),a=u;else if(r&&2==++I)break;d=h,h=A=c,p=l,l=u,y=g,g=C}o=c.neg(),s=u;var m=r.sqr().add(a.sqr());return 0<=o.sqr().add(s.sqr()).cmp(m)&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},A.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),A=i.mul(n.b),c=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:A.add(c).neg()}},A.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},A.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},A.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],A=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),A=A.neg(!0)),r[2*a]=s,r[2*a+1]=A,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var c=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return c},a(c,o.BasePoint),A.prototype.point=function(e,t,n){return new c(this,e,t,n)},A.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),A.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),A=a.redSub(o);if(0===s.cmpn(0))return 0!==A.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=r.redMul(c),h=A.redSqr().redIAdd(u).redISub(f).redISub(f),d=A.redMul(f.redISub(h)).redISub(a.redMul(u)),l=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,l)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var A=o.redSqr(),c=A.redMul(o),u=n.redMul(A),f=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(o);return this.curve.jpoint(f,h,d)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,A=s.redSqr().redSqr(),c=o.redAdd(o);for(n=0;n<e;n++){var u=a.redSqr(),f=c.redSqr(),h=f.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(A)),l=a.redMul(f),g=d.redSqr().redISub(l.redAdd(l)),p=l.redISub(g),y=d.redMul(p);y=y.redIAdd(y).redISub(h);var I=c.redMul(s);n+1<e&&(A=A.redMul(h)),a=g,s=I,c=y}return this.curve.jpoint(a,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),A=s.redSqr().redISub(o).redISub(o),c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),e=A,t=s.redMul(o.redISub(A)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(u).redISub(h);d=d.redIAdd(d);var l=u.redAdd(u).redIAdd(u),g=l.redSqr(),p=h.redIAdd(h);p=(p=p.redIAdd(p)).redIAdd(p),e=g.redISub(d).redISub(d),t=l.redMul(d.redISub(e)).redISub(p),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),A=s.redSqr().redISub(o).redISub(o);e=A;var c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(o.redISub(A)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(u).redMul(this.x.redAdd(u));d=d.redAdd(d).redIAdd(d);var l=h.redIAdd(h),g=(l=l.redIAdd(l)).redAdd(l);e=d.redSqr().redISub(g),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var p=f.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p),t=d.redMul(l.redISub(e)).redISub(p)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),A=t.redAdd(t),c=(A=A.redIAdd(A)).redMul(o),u=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(u),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),l=n.redAdd(n).redMul(r);return this.curve.jpoint(u,d,l)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),A=r.redIAdd(r);A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A);var c=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(A),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(A.redISub(c)).redISub(o.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,h,d)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":24,"./base":13,"bn.js":9,inherits:39}],18:[function(e,t,n){"use strict";var r,i=n,a=e("hash.js"),o=e("./curve"),s=e("./utils").assert;function A(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new A(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=A,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=e("./precomputed/secp256k1")}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"./curve":15,"./precomputed/secp256k1":23,"./utils":24,"hash.js":26}],19:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("hmac-drbg"),a=e("../utils"),o=e("../curves"),A=e("brorand"),c=a.assert,u=e("./key"),f=e("./signature");function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(c(o.hasOwnProperty(e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=h).prototype.keyPair=function(e){return new u(this,e)},h.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e=e||{};for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||A(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(0<o.cmp(a)))return o.iaddn(1),this.keyFromPrivate(o)}},h.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return 0<n&&(e=e.ushrn(n)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},h.prototype.sign=function(e,t,n,a){"object"==s(n)&&(a=n,n=null),a=a||{},t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),A=t.getPrivate().toArray("be",o),c=e.toArray("be",o),u=new i({hash:this.hash,entropy:A,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new r(1)),d=0;;d++){var l=a.k?a.k(d):new r(u.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||0<=l.cmp(h))){var g=this.g.mul(l);if(!g.isInfinity()){var p=g.getX(),y=p.umod(this.n);if(0!==y.cmpn(0)){var I=l.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(I=I.umod(this.n)).cmpn(0)){var b=(g.getY().isOdd()?1:0)|(0!==p.cmp(y)?2:0);return a.canonical&&0<I.cmp(this.nh)&&(I=this.n.sub(I),b^=1),new f({r:y,s:I,recoveryParam:b})}}}}}},h.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new f(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||0<=a.cmp(this.n))return!1;if(o.cmpn(1)<0||0<=o.cmp(this.n))return!1;var s,A=o.invm(this.n),c=A.mul(e).umod(this.n),u=A.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),u)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(c,n.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},h.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new f(t,i);var a=this.n,o=new r(e),s=t.r,A=t.s,u=1&n,h=n>>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var d=t.r.invm(a),l=a.sub(o).mul(d).umod(a),g=A.mul(d).umod(a);return this.g.mulAdd(l,s,g)},h.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":18,"../utils":24,"./key":20,"./signature":21,"bn.js":9,brorand:10,"hmac-drbg":38}],20:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=a).fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":24,"bn.js":9}],21:[function(e,t,n){"use strict";var r=e("bn.js"),i=e("../utils"),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function A(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o];return t.place=o,i}function c(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}(t.exports=o).prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;if(A(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=A(e,n),o=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var c=A(e,n);if(e.length!==c+n.place)return!1;var u=e.slice(n.place,c+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new r(o),this.s=new r(u),!(this.recoveryParam=null)},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},{"../utils":24,"bn.js":9}],22:[function(e,t,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],23:[function(e,t,n){t.exports=void 0},{}],24:[function(e,t,n){"use strict";var r=n,i=e("bn.js"),a=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,A=a.andln(i-1);a.isOdd()?(s=(i>>1)-1<A?(i>>1)-A:A,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;0<e.cmpn(-r)||0<t.cmpn(-i);){var a,o,s,A=e.andln(3)+r&3,c=t.andln(3)+i&3;3===A&&(A=-1),3===c&&(c=-1),a=0==(1&A)?0:3!=(s=e.andln(7)+r&7)&&5!==s||2!==c?A:-A,n[0].push(a),o=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==A?c:-c,n[1].push(o),2*r===a+1&&(r=1-r),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":9,"minimalistic-assert":41,"minimalistic-crypto-utils":42}],25:[function(e,t,n){t.exports={version:"6.5.2"}},{}],26:[function(e,t,n){var r=n;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":27,"./hash/hmac":28,"./hash/ripemd":29,"./hash/sha":30,"./hash/utils":37}],27:[function(e,t,n){"use strict";var r=e("./utils"),i=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(n.BlockHash=a).prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},{"./utils":37,"minimalistic-assert":41}],28:[function(e,t,n){"use strict";var r=e("./utils"),i=e("minimalistic-assert");function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}(t.exports=a).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":37,"minimalistic-assert":41}],29:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./common"),a=r.rotl32,o=r.sum32,s=r.sum32_3,A=r.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,c),(n.ripemd160=u).blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],I=n,b=r,C=i,m=c,E=u,B=0;B<80;B++){var v=o(a(A(n,f(B,r,i,c),e[l[B]+t],h(B)),p[B]),u);n=u,u=c,c=a(i,10),i=r,r=v,v=o(a(A(I,f(79-B,b,C,m),e[g[B]+t],d(B)),y[B]),E),I=E,E=m,m=a(C,10),C=b,b=v}v=s(this.h[1],i,m),this.h[1]=s(this.h[2],c,E),this.h[2]=s(this.h[3],u,I),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,C),this.h[0]=v},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":27,"./utils":37}],30:[function(e,t,n){"use strict";n.sha1=e("./sha/1"),n.sha224=e("./sha/224"),n.sha256=e("./sha/256"),n.sha384=e("./sha/384"),n.sha512=e("./sha/512")},{"./sha/1":31,"./sha/224":32,"./sha/256":33,"./sha/384":34,"./sha/512":35}],31:[function(e,t,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],32:[function(e,t,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],33:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),a=e("./common"),o=e("minimalistic-assert"),s=r.sum32,A=r.sum32_4,c=r.sum32_5,u=a.ch32,f=a.maj32,h=a.s0_256,d=a.s1_256,l=a.g0_256,g=a.g1_256,p=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function I(){if(!(this instanceof I))return new I;p.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(I,p),(t.exports=I).blockSize=512,I.outSize=256,I.hmacStrength=192,I.padLength=64,I.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=A(g(n[r-2]),n[r-7],l(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],p=this.h[2],y=this.h[3],I=this.h[4],b=this.h[5],C=this.h[6],m=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var E=c(m,d(I),u(I,b,C),this.k[r],n[r]),B=s(h(i),f(i,a,p));m=C,C=b,b=I,I=s(y,E),y=p,p=a,a=i,i=s(E,B)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],p),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],I),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],C),this.h[7]=s(this.h[7],m)},I.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":27,"../utils":37,"./common":36,"minimalistic-assert":41}],34:[function(e,t,n){arguments[4][14][0].apply(n,arguments)},{dup:14}],35:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../common"),a=e("minimalistic-assert"),o=r.rotr64_hi,s=r.rotr64_lo,A=r.shr64_hi,c=r.shr64_lo,u=r.sum64,f=r.sum64_hi,h=r.sum64_lo,d=r.sum64_4_hi,l=r.sum64_4_lo,g=r.sum64_5_hi,p=r.sum64_5_lo,y=i.BlockHash,I=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=I,this.W=new Array(160)}function C(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function m(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function E(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function B(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function v(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function w(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function Q(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function S(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function M(e,t){var n=o(e,t,1)^o(e,t,8)^A(e,t,7);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function D(e,t){var n=o(e,t,19)^o(t,e,29)^A(e,t,6);return n<0&&(n+=4294967296),n}function _(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,y),(t.exports=b).blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=D(n[r-4],n[r-3]),a=_(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],A=M(n[r-30],n[r-29]),c=k(n[r-30],n[r-29]),u=n[r-32],f=n[r-31];n[r]=d(i,a,o,s,A,c,u,f),n[r+1]=l(i,a,o,s,A,c,u,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],A=this.h[4],c=this.h[5],d=this.h[6],l=this.h[7],y=this.h[8],I=this.h[9],b=this.h[10],M=this.h[11],k=this.h[12],D=this.h[13],_=this.h[14],x=this.h[15];a(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var N=_,F=x,H=Q(y,I),L=S(y,I),U=C(y,0,b,0,k),G=m(0,I,0,M,0,D),O=this.k[R],T=this.k[R+1],P=n[R],j=n[R+1],Y=g(N,F,H,L,U,G,O,T,P,j),K=p(N,F,H,L,U,G,O,T,P,j);N=v(r,i),F=w(r,i),H=E(r,0,o,0,A),L=B(0,i,0,s,0,c);var q=f(N,F,H,L),J=h(N,F,H,L);_=k,x=D,k=b,D=M,b=y,M=I,y=f(d,l,Y,K),I=h(l,l,Y,K),d=A,l=c,A=o,c=s,o=r,s=i,r=f(Y,K,q,J),i=h(Y,K,q,J)}u(this.h,0,r,i),u(this.h,2,o,s),u(this.h,4,A,c),u(this.h,6,d,l),u(this.h,8,y,I),u(this.h,10,b,M),u(this.h,12,k,D),u(this.h,14,_,x)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":27,"../utils":37,"minimalistic-assert":41}],36:[function(e,t,n){"use strict";var r=e("../utils").rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}n.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},n.ch32=i,n.maj32=a,n.p32=o,n.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},n.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},n.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},n.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},{"../utils":37}],37:[function(e,t,n){"use strict";var r=e("minimalistic-assert"),i=e("inherits");function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}n.inherits=i,n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n},n.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(16));return t},n.htonl=a,n.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=s(i.toString(16))}return n},n.zero2=o,n.zero8=s,n.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,A=t;s<o.length;s++,A+=4){var c;c="big"===i?e[A]<<24|e[A+1]<<16|e[A+2]<<8|e[A+3]:e[A+3]<<24|e[A+2]<<16|e[A+1]<<8|e[A],o[s]=c>>>0}return o},n.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},n.rotr32=function(e,t){return e>>>t|e<<32-t},n.rotl32=function(e,t){return e<<t|e>>>32-t},n.sum32=function(e,t){return e+t>>>0},n.sum32_3=function(e,t,n){return e+t+n>>>0},n.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},n.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},n.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},n.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},n.sum64_lo=function(e,t,n,r){return t+r>>>0},n.sum64_4_hi=function(e,t,n,r,i,a,o,s){var A=0,c=t;return A+=(c=c+r>>>0)<t?1:0,A+=(c=c+a>>>0)<a?1:0,e+n+i+o+(A+=(c=c+s>>>0)<s?1:0)>>>0},n.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},n.sum64_5_hi=function(e,t,n,r,i,a,o,s,A,c){var u=0,f=t;return u+=(f=f+r>>>0)<t?1:0,u+=(f=f+a>>>0)<a?1:0,u+=(f=f+s>>>0)<s?1:0,e+n+i+o+A+(u+=(f=f+c>>>0)<c?1:0)>>>0},n.sum64_5_lo=function(e,t,n,r,i,a,o,s,A,c){return t+r+a+s+c>>>0},n.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},n.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},n.shr64_hi=function(e,t,n){return e>>>n},n.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},{inherits:39,"minimalistic-assert":41}],38:[function(e,t,n){"use strict";var r=e("hash.js"),i=e("minimalistic-crypto-utils"),a=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}(t.exports=o).prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},{"hash.js":26,"minimalistic-assert":41,"minimalistic-crypto-utils":42}],39:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){var n=function(){};e.super_=t,n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],40:[function(e,t,r){(function(e,n){!function(){"use strict";var r="object"==("undefined"==typeof window?"undefined":s(window))?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"==s(e)&&e.versions&&e.versions.node&&(r=n);for(var i=!r.JS_SHA3_NO_COMMON_JS&&"object"==s(t)&&t.exports,a="0123456789abcdef".split(""),o=[0,8,16,24],A=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],u=["hex","buffer","arrayBuffer","array"],f=function(e,t,n){return function(r){return new E(e,t,e).update(r)[n]()}},h=function(e,t,n){return function(r,i){return new E(e,t,i).update(r)[n]()}},d=function(e,t){var n=f(e,t,"hex");n.create=function(){return new E(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<u.length;++r){var i=u[r];n[i]=f(e,t,i)}return n},l=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=h(e,t,"hex");n.create=function(n){return new E(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<u.length;++r){var i=u[r];n[i]=h(e,t,i)}return n}}],g={},p=[],y=0;y<l.length;++y)for(var I=l[y],b=I.bits,C=0;C<b.length;++C){var m=I.name+"_"+b[C];p.push(m),g[m]=I.createMethod(b[C],I.padding)}function E(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}E.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,a=this.blocks,s=this.byteCount,A=this.blockCount,c=0,u=this.s;c<i;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<A+1;++n)a[n]=0;if(t)for(n=this.start;c<i&&n<s;++c)a[n>>2]|=e[c]<<o[3&n++];else for(n=this.start;c<i&&n<s;++c)(r=e.charCodeAt(c))<128?a[n>>2]|=r<<o[3&n++]:(r<2048?a[n>>2]|=(192|r>>6)<<o[3&n++]:(r<55296||57344<=r?a[n>>2]|=(224|r>>12)<<o[3&n++]:(r=65536+((1023&r)<<10|1023&e.charCodeAt(++c)),a[n>>2]|=(240|r>>18)<<o[3&n++],a[n>>2]|=(128|r>>12&63)<<o[3&n++]),a[n>>2]|=(128|r>>6&63)<<o[3&n++]),a[n>>2]|=(128|63&r)<<o[3&n++]);if(s<=(this.lastByteIndex=n)){for(this.start=n-s,this.block=a[A],n=0;n<A;++n)u[n]^=a[n];B(u),this.reset=!0}else this.start=n}return this},E.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];B(r)},E.prototype.toString=E.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,A="";s<r;){for(o=0;o<t&&s<r;++o,++s)e=n[o],A+=a[e>>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t==0&&(B(n),o=0)}return i&&(e=n[o],0<i&&(A+=a[e>>4&15]+a[15&e]),1<i&&(A+=a[e>>12&15]+a[e>>8&15]),2<i&&(A+=a[e>>20&15]+a[e>>16&15])),A},E.prototype.buffer=E.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,o=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var A=new Uint32Array(e);o<r;){for(a=0;a<t&&o<r;++a,++o)A[o]=n[a];o%t==0&&B(n)}return i&&(A[a]=n[a],e=e.slice(0,s)),e},E.prototype.digest=E.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,A=[];s<i;){for(o=0;o<n&&s<i;++o,++s)e=s<<2,t=r[o],A[e]=255&t,A[e+1]=t>>8&255,A[e+2]=t>>16&255,A[e+3]=t>>24&255;s%n==0&&B(r)}return a&&(e=s<<2,t=r[o],0<a&&(A[e]=255&t),1<a&&(A[e+1]=t>>8&255),2<a&&(A[e+2]=t>>16&255)),A};var B=function(e){var t,n,r,i,a,o,s,c,u,f,h,d,l,g,p,y,I,b,C,m,E,B,v,w,Q,S,M,k,D,_,x,R,N,F,H,L,U,G,O,T,P,j,Y,K,q,J,z,V,Z,W,X,$,ee,te,ne,re,ie,ae,oe,se,Ae,ce,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),n=(l=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|u>>>31),n=a^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(f<<1|h>>>31),n=s^(h<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(d<<1|l>>>31),n=u^(l<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|a>>>31),n=h^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,g=e[0],p=e[1],J=e[11]<<4|e[10]>>>28,z=e[10]<<4|e[11]>>>28,k=e[20]<<3|e[21]>>>29,D=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,Ae=e[30]<<9|e[31]>>>23,j=e[40]<<18|e[41]>>>14,Y=e[41]<<18|e[40]>>>14,F=e[2]<<1|e[3]>>>31,H=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,I=e[12]<<12|e[13]>>>20,V=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,_=e[33]<<13|e[32]>>>19,x=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,C=e[24]<<11|e[25]>>>21,W=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,w=e[6]<<28|e[7]>>>4,Q=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,G=e[26]<<25|e[27]>>>7,O=e[27]<<25|e[26]>>>7,m=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,q=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,ae=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,T=e[38]<<8|e[39]>>>24,P=e[39]<<8|e[38]>>>24,B=e[48]<<14|e[49]>>>18,v=e[49]<<14|e[48]>>>18,e[0]=g^~y&b,e[1]=p^~I&C,e[10]=w^~S&k,e[11]=Q^~M&D,e[20]=F^~L&G,e[21]=H^~U&O,e[30]=K^~J&V,e[31]=q^~z&Z,e[40]=te^~re&ae,e[41]=ne^~ie&oe,e[2]=y^~b&m,e[3]=I^~C&E,e[12]=S^~k&_,e[13]=M^~D&x,e[22]=L^~G&T,e[23]=U^~O&P,e[32]=J^~V&W,e[33]=z^~Z&X,e[42]=re^~ae&se,e[43]=ie^~oe&Ae,e[4]=b^~m&B,e[5]=C^~E&v,e[14]=k^~_&R,e[15]=D^~x&N,e[24]=G^~T&j,e[25]=O^~P&Y,e[34]=V^~W&$,e[35]=Z^~X&ee,e[44]=ae^~se&ce,e[45]=oe^~Ae&ue,e[6]=m^~B&g,e[7]=E^~v&p,e[16]=_^~R&w,e[17]=x^~N&Q,e[26]=T^~j&F,e[27]=P^~Y&H,e[36]=W^~$&K,e[37]=X^~ee&q,e[46]=se^~ce&te,e[47]=Ae^~ue&ne,e[8]=B^~g&y,e[9]=v^~p&I,e[18]=R^~w&S,e[19]=N^~Q&M,e[28]=j^~F&L,e[29]=Y^~H&U,e[38]=$^~K&J,e[39]=ee^~q&z,e[48]=ce^~te&re,e[49]=ue^~ne&ie,e[0]^=A[r],e[1]^=A[r+1]};if(i)t.exports=g;else for(y=0;y<p.length;++y)r[p[y]]=g[p[y]]}()}).call(this,e("_process"),void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:43}],41:[function(e,t,n){(t.exports=function(e,t){if(!e)throw new Error(t||"Assertion failed")}).equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},{}],42:[function(e,t,n){"use strict";var r=n;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},{}],43:[function(e,t,n){t.exports={browser:!0}},{}],44:[function(e,t,n){(function(e){"use strict";function r(e){var t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=1779033703,r=3144134277,i=1013904242,a=2773480762,o=1359893119,s=2600822924,A=528734635,c=1541459225,u=new Array(64);function f(e){for(var f=0,h=e.length;64<=h;){var d,l,g,p,y,I=n,b=r,C=i,m=a,E=o,B=s,v=A,w=c;for(l=0;l<16;l++)g=f+4*l,u[l]=(255&e[g])<<24|(255&e[g+1])<<16|(255&e[g+2])<<8|255&e[g+3];for(l=16;l<64;l++)p=((d=u[l-2])>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,y=((d=u[l-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3,u[l]=(p+u[l-7]|0)+(y+u[l-16]|0)|0;for(l=0;l<64;l++)p=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&B^~E&v)|0)+(w+(t[l]+u[l]|0)|0)|0,y=((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+(I&b^I&C^b&C)|0,w=v,v=B,B=E,E=m+p|0,m=C,C=b,b=I,I=p+y|0;n=n+I|0,r=r+b|0,i=i+C|0,a=a+m|0,o=o+E|0,s=s+B|0,A=A+v|0,c=c+w|0,f+=64,h-=64}}f(e);var h,d=e.length%64,l=e.length/536870912|0,g=e.length<<3,p=d<56?56:120,y=e.slice(e.length-d,e.length);for(y.push(128),h=1+d;h<p;h++)y.push(0);return y.push(l>>>24&255),y.push(l>>>16&255),y.push(l>>>8&255),y.push(l>>>0&255),y.push(g>>>24&255),y.push(g>>>16&255),y.push(g>>>8&255),y.push(g>>>0&255),f(y),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,n){var i;e=e.length<=64?e:r(e);var a=64+t.length+4,o=new Array(a),s=new Array(64),A=[];for(i=0;i<64;i++)o[i]=54;for(i=0;i<e.length;i++)o[i]^=e[i];for(i=0;i<t.length;i++)o[64+i]=t[i];for(i=a-4;i<a;i++)o[i]=0;for(i=0;i<64;i++)s[i]=92;for(i=0;i<e.length;i++)s[i]^=e[i];function c(){for(var e=a-1;a-4<=e;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;32<=n;)c(),A=A.concat(r(s.concat(r(o)))),n-=32;return 0<n&&(c(),A=A.concat(r(s.concat(r(o))).slice(0,n))),A}function a(e,t,n,r,i){var a;for(c(e,16*(2*n-1),i,0,16),a=0;a<2*n;a++)A(e,16*a,i,16),s(i,r),c(i,0,e,t+16*a,16);for(a=0;a<n;a++)c(e,t+2*a*16,e,16*a,16);for(a=0;a<n;a++)c(e,t+16*(2*a+1),e,16*(a+n),16)}function o(e,t){return e<<t|e>>>32-t}function s(e,t){c(e,0,t,0,16);for(var n=8;0<n;n-=2)t[4]^=o(t[0]+t[12],7),t[8]^=o(t[4]+t[0],9),t[12]^=o(t[8]+t[4],13),t[0]^=o(t[12]+t[8],18),t[9]^=o(t[5]+t[1],7),t[13]^=o(t[9]+t[5],9),t[1]^=o(t[13]+t[9],13),t[5]^=o(t[1]+t[13],18),t[14]^=o(t[10]+t[6],7),t[2]^=o(t[14]+t[10],9),t[6]^=o(t[2]+t[14],13),t[10]^=o(t[6]+t[2],18),t[3]^=o(t[15]+t[11],7),t[7]^=o(t[3]+t[15],9),t[11]^=o(t[7]+t[3],13),t[15]^=o(t[11]+t[7],18),t[1]^=o(t[0]+t[3],7),t[2]^=o(t[1]+t[0],9),t[3]^=o(t[2]+t[1],13),t[0]^=o(t[3]+t[2],18),t[6]^=o(t[5]+t[4],7),t[7]^=o(t[6]+t[5],9),t[4]^=o(t[7]+t[6],13),t[5]^=o(t[4]+t[7],18),t[11]^=o(t[10]+t[9],7),t[8]^=o(t[11]+t[10],9),t[9]^=o(t[8]+t[11],13),t[10]^=o(t[9]+t[8],18),t[12]^=o(t[15]+t[14],7),t[13]^=o(t[12]+t[15],9),t[14]^=o(t[13]+t[12],13),t[15]^=o(t[14]+t[13],18);for(n=0;n<16;++n)e[n]+=t[n]}function A(e,t,n,r){for(var i=0;i<r;i++)n[i]^=e[t+i]}function c(e,t,n,r,i){for(;i--;)n[r++]=e[t++]}function u(e){if(!e||"number"!=typeof e.length)return!1;for(var t=0;t<e.length;t++){if("number"!=typeof e[t])return!1;var n=parseInt(e[t]);if(n!=e[t]||n<0||256<=n)return!1}return!0}function f(e,t){var n=parseInt(e);if(e!=n)throw new Error("invalid "+t);return n}function h(t,n,r,o,s,h,d){if(!d)throw new Error("missing callback");if(r=f(r,"N"),o=f(o,"r"),s=f(s,"p"),h=f(h,"dkLen"),0===r||0!=(r&r-1))throw new Error("N must be power of 2");if(l/128/o<r)throw new Error("N too large");if(l/128/s<o)throw new Error("r too large");if(!u(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!u(n))throw new Error("salt must be an array or buffer");n=Array.prototype.slice.call(n);for(var g=i(t,n,128*s*o),p=new Uint32Array(32*s*o),y=0;y<p.length;y++){var I=4*y;p[y]=(255&g[3+I])<<24|(255&g[2+I])<<16|(255&g[1+I])<<8|(255&g[0+I])<<0}var b,C,m=new Uint32Array(64*o),E=new Uint32Array(32*o*r),B=32*o,v=new Uint32Array(16),w=new Uint32Array(16),Q=s*r*2,S=0,M=null,k=!1,D=0,_=0,x=parseInt(1e3/o),R=void 0!==e?e:setTimeout;!function e(){if(k)return d(new Error("cancelled"),S/Q);switch(D){case 0:c(p,C=32*_*o,m,0,B),D=1,b=0;case 1:x<(u=r-b)&&(u=x);for(var n=0;n<u;n++)c(m,0,E,(b+n)*B,B),a(m,B,o,v,w);if(b+=u,S+=u,(f=parseInt(1e3*S/Q))!==M){if(k=d(null,S/Q))break;M=f}if(b<r)break;b=0,D=2;case 2:var u,f;for(x<(u=r-b)&&(u=x),n=0;n<u;n++){var l=m[16*(2*o-1)]&r-1;A(E,l*B,m,B),a(m,B,o,v,w)}if(b+=u,S+=u,(f=parseInt(1e3*S/Q))!==M){if(k=d(null,S/Q))break;M=f}if(b<r)break;if(c(m,0,p,C,B),++_<s){D=0;break}for(g=[],n=0;n<p.length;n++)g.push(p[n]>>0&255),g.push(p[n]>>8&255),g.push(p[n]>>16&255),g.push(p[n]>>24&255);var y=i(t,g,h);return d(null,1,y)}R(e)}()}var d,l;d=this,l=2147483647,void 0!==n?t.exports=h:d&&(d.scrypt&&(d._scrypt=d.scrypt),d.scrypt=h)}).call(this,e("timers").setImmediate)},{timers:46}],45:[function(e,t,r){(function(e,t,n){!function(t,n){"use strict";if(!t.setImmediate){var r,i,a,o,s=1,A={},c=!1,u=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,r="[object process]"==={}.toString.call(t.process)?function(){var t=h(arguments);return e.nextTick(d(l,t)),t}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(){var e=h(arguments);return t.postMessage(o+e,"*"),e}):t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){l(e.data)},function(){var e=h(arguments);return a.port2.postMessage(e),e}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,function(){var e=h(arguments),t=u.createElement("script");return t.onreadystatechange=function(){l(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t),e}):function(){var e=h(arguments);return setTimeout(d(l,e),0),e},f.setImmediate=r,f.clearImmediate=g}function h(e){return A[s]=d.apply(n,e),s++}function d(e){var t=[].slice.call(arguments,1);return function(){"function"==typeof e?e.apply(n,t):new Function(""+e)()}}function l(e){if(c)setTimeout(d(l,e),0);else{var t=A[e];if(t){c=!0;try{t()}finally{g(e),c=!1}}}}function g(e){delete A[e]}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&l(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,e("_process"),void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").clearImmediate)},{_process:43,timers:46}],46:[function(e,t,r){(function(e){t.exports={setImmediate:e.setImmediate}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],47:[function(e,t,r){(function(e){var n;if(e.crypto&&crypto.getRandomValues){var r=new Uint8Array(16);n=function(){return crypto.getRandomValues(r),r}}if(!n){var i=new Array(16);n=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}t.exports=n}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],48:[function(e,t,n){for(var r=e("./rng"),i=[],a={},o=0;o<256;o++)i[o]=(o+256).toString(16).substr(1),a[i[o]]=o;function s(e,t){var n=t||0,r=i;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}var A=r(),c=[1|A[0],A[1],A[2],A[3],A[4],A[5]],u=16383&(A[6]<<8|A[7]),f=0,h=0;function d(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;o++)t[i+o]=a[o];return t||s(a)}var l=d;l.v1=function(e,t,n){var r=t&&n||0,i=t||[],a=void 0!==(e=e||{}).clockseq?e.clockseq:u,o=void 0!==e.msecs?e.msecs:(new Date).getTime(),A=void 0!==e.nsecs?e.nsecs:h+1,d=o-f+(A-h)/1e4;if(d<0&&void 0===e.clockseq&&(a=a+1&16383),(d<0||f<o)&&void 0===e.nsecs&&(A=0),1e4<=A)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=o,u=a;var l=(1e4*(268435455&(o+=122192928e5))+(h=A))%4294967296;i[r++]=l>>>24&255,i[r++]=l>>>16&255,i[r++]=l>>>8&255,i[r++]=255&l;var g=o/4294967296*1e4&268435455;i[r++]=g>>>8&255,i[r++]=255&g,i[r++]=g>>>24&15|16,i[r++]=g>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var p=e.node||c,y=0;y<6;y++)i[r+y]=p[y];return t||s(i)},l.v4=d,l.parse=function(e,t,n){var r=t&&n||0,i=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){i<16&&(t[r+i++]=a[e])}));i<16;)t[r+i++]=0;return t},l.unparse=s,t.exports=l},{"./rng":47}],49:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});try{t.exports.XMLHttpRequest=XMLHttpRequest}catch(e){console.log("Warning: XMLHttpRequest is not defined"),t.exports.XMLHttpRequest=null}},{}],50:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../utils/properties"),i=(a.isProvider=function(e){return r.isType(e,"Provider")},a);function a(){r.setType(this,"Provider")}n.Provider=i},{"../utils/properties":74}],51:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o=e("../utils/address"),A=e("../utils/bignumber"),c=e("../utils/bytes"),u=e("../constants"),f=e("../utils/hash"),h=e("../utils/networks"),d=e("../utils/properties"),l=e("../utils/rlp"),g=e("../utils/transaction"),p=e("../utils/utf8"),y=e("../utils/web"),I=a(e("../errors")),b=e("./abstract-provider");function C(e,t){var n={};for(var r in e)try{var i=e[r](t[r]);void 0!==i&&(n[r]=i)}catch(e){throw e.checkKey=r,e.checkValue=t[r],e}return n}function m(e,t){return function(n){return null==n?t:e(n)}}function E(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach((function(t){n.push(e(t))})),n}}function B(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),32===c.hexDataLength(e))?e.toLowerCase():(I.throwError("invalid hash",I.INVALID_ARGUMENT,{arg:"hash",value:e}),null)}function v(e){return A.bigNumberify(e).toNumber()}function w(e){if(!c.isHexString(e))throw new Error("invalid uint256");for(;e.length<66;)e="0x0"+e.substring(2);return e}function Q(e){if(null==e)return"latest";if("earliest"===e)return"0x0";if("latest"===e||"pending"===e)return e;if("number"==typeof e)return c.hexStripZeros(c.hexlify(e));if(c.isHexString(e))return c.hexStripZeros(e);throw new Error("invalid blockTag")}var S={hash:B,blockHash:m(B,null),blockNumber:m(v,null),transactionIndex:m(v,null),confirmations:m(v,null),from:o.getAddress,gasPrice:A.bigNumberify,gasLimit:A.bigNumberify,to:m(o.getAddress,null),value:A.bigNumberify,nonce:v,data:c.hexlify,r:m(w),s:m(w),v:m(v),creates:m(o.getAddress,null),raw:m(c.hexlify)};function M(e){if(null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&A.bigNumberify(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=o.getContractAddress(e)),!e.raw&&e.v&&e.r&&e.s){var t=[c.stripZeros(c.hexlify(e.nonce)),c.stripZeros(c.hexlify(e.gasPrice)),c.stripZeros(c.hexlify(e.gasLimit)),e.to||"0x",c.stripZeros(c.hexlify(e.value||"0x")),c.hexlify(e.data||"0x"),c.stripZeros(c.hexlify(e.v||"0x")),c.stripZeros(c.hexlify(e.r)),c.stripZeros(c.hexlify(e.s))];e.raw=l.encode(t)}var n=C(S,e),r=e.networkId;return null!=e.chainId&&null==r&&null==n.v&&(r=e.chainId),c.isHexString(r)&&(r=A.bigNumberify(r).toNumber()),"number"!=typeof r&&null!=n.v&&((r=(n.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),n.networkId=r,null==n.chainId&&null!=r&&(n.chainId=r),n.blockHash&&"x"===n.blockHash.replace(/0/g,"")&&(n.blockHash=null),n}var k={hash:B,parentHash:B,number:v,timestamp:v,nonce:m(c.hexlify),difficulty:function(e){var t=A.bigNumberify(e);try{return t.toNumber()}catch(e){}return null},gasLimit:A.bigNumberify,gasUsed:A.bigNumberify,miner:o.getAddress,extraData:c.hexlify,transactions:m(E(B))},D=d.shallowCopy(k);function _(e,t){return null!=e.author&&null==e.miner&&(e.miner=e.author),C(t?D:k,e)}D.transactions=m(E(M));var x={from:m(o.getAddress),nonce:m(v),gasLimit:m(A.bigNumberify),gasPrice:m(A.bigNumberify),to:m(o.getAddress),value:m(A.bigNumberify),data:m(c.hexlify)};function R(e){return C(x,e)}var N={transactionLogIndex:m(v),transactionIndex:v,blockNumber:v,transactionHash:B,address:o.getAddress,topics:E(B),data:c.hexlify,logIndex:v,blockHash:B},F={to:m(o.getAddress,null),from:m(o.getAddress,null),contractAddress:m(o.getAddress,null),transactionIndex:v,root:m(B),gasUsed:A.bigNumberify,logsBloom:m(c.hexlify),blockHash:B,transactionHash:B,logs:E((function(e){return C(N,e)})),blockNumber:v,confirmations:m(v,null),cumulativeGasUsed:A.bigNumberify,status:m(v)};function H(e){return Array.isArray(e)?e.forEach((function(e){H(e)})):null!=e&&B(e),e}var L,U={fromBlock:m(Q,void 0),toBlock:m(Q,void 0),address:m(o.getAddress,void 0),topics:m(H,void 0)},G={blockHash:m(B,void 0),address:m(o.getAddress,void 0),topics:m(H,void 0)},O={blockNumber:m(v),blockHash:m(B),transactionIndex:v,removed:m((function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===e)return!0;if("false"===e)return!1}throw new Error("invaid boolean - "+e)})),address:o.getAddress,data:(L=c.hexlify,function(e){return e?L(e):"0x"}),topics:E(B),transactionHash:B,logIndex:v};function T(e){return C(O,e)}function P(e){return e.map((function(e){return"string"==typeof e?e:Array.isArray(e)?(e.forEach((function(e){null!==e&&32!==c.hexDataLength(e)&&I.throwError("invalid topic",I.INVALID_ARGUMENT,{argument:"topic",value:e})})),e.join(",")):null===e?"":I.throwError("invalid topic value",I.INVALID_ARGUMENT,{argument:"topic",value:e})})).join("&")}function j(e){if("string"==typeof e){if(20===c.hexDataLength(e))return"address:"+o.getAddress(e);if(e=e.toLowerCase(),32===c.hexDataLength(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter::"+P(e);if(e&&"object"==s(e))return"filter:"+(e.address||"")+":"+P(e.topics||[])}throw new Error("invalid event - "+e)}function Y(){return(new Date).getTime()}var K,q=(i(J,K=b.Provider),J.prototype._doPoll=function(){var e=this;this.getBlockNumber().then((function(t){if(e.polling&&(e._setFastBlockNumber(t),t!==e._lastBlockNumber)){-2===e._emitted.block&&(e._emitted.block=t-1);for(var n=e._emitted.block+1;n<=t;n++)e.emit("block",n);e._emitted.block!==t&&(e._emitted.block=t,Object.keys(e._emitted).forEach((function(n){if("block"!==n){var r=e._emitted[n];"pending"!==r&&12<t-r&&delete e._emitted[n]}}))),-2===e._lastBlockNumber&&(e._lastBlockNumber=t-1);var r={},i={};return e._events.forEach((function(e){i[e.tag]=!0})),Object.keys(i).forEach((function(n){var i=n.split(":");switch(i[0]){case"tx":var a=i[1];e.getTransactionReceipt(a).then((function(t){return t&&null!=t.blockNumber&&(e._emitted["t:"+a]=t.blockNumber,e.emit(a,t)),null})).catch((function(t){e.emit("error",t)}));break;case"address":var o=i[1];e._balances[o]&&(r[o]=e._balances[o]),e.getBalance(o,"latest").then((function(t){var n=e._balances[o];if(!n||!t.eq(n))return e._balances[o]=t,e.emit(o,t),null})).catch((function(t){e.emit("error",t)}));break;case"filter":var s=function(e){return e.split(/&/g).map((function(e){var t=e.split(",");return 1===t.length?""===t[0]?null:e:t.map((function(e){return""===e?null:e}))}))}(i[2]),A={address:i[1],fromBlock:e._lastBlockNumber+1,toBlock:t,topics:s};A.address||delete A.address,e.getLogs(A).then((function(t){if(0!==t.length)return t.forEach((function(t){e._emitted["b:"+t.blockHash]=t.blockNumber,e._emitted["t:"+t.transactionHash]=t.blockNumber,e.emit(A,t)})),null})).catch((function(t){e.emit("error",t)}))}})),e._lastBlockNumber=t,e._balances=r,null}})).catch((function(e){})),this.doPoll()},J.prototype.resetEventsBlock=function(e){this._lastBlockNumber=e-1,this.polling&&this._doPoll()},Object.defineProperty(J.prototype,"network",{get:function(){return this._network},enumerable:!0,configurable:!0}),J.prototype.getNetwork=function(){return this.ready},Object.defineProperty(J.prototype,"blockNumber",{get:function(){return this._fastBlockNumber},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"polling",{get:function(){return null!=this._poller},set:function(e){var t=this;setTimeout((function(){e&&!t._poller?(t._poller=setInterval(t._doPoll.bind(t),t.pollingInterval),t._doPoll()):!e&&t._poller&&(clearInterval(t._poller),t._poller=null)}),0)},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t._doPoll()}),this._pollingInterval))},enumerable:!0,configurable:!0}),J.prototype._getFastBlockNumber=function(){var e=this,t=Y();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise},J.prototype._setFastBlockNumber=function(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=Y(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))},J.prototype.waitForTransaction=function(e,t){var n=this;return null==t&&(t=1),this.getTransactionReceipt(e).then((function(r){return 0===t||r&&r.confirmations>=t?r:new Promise((function(r){n.on(e,(function i(a){a.confirmations<t||(n.removeListener(e,i),r(a))}))}))}))},J.prototype.getBlockNumber=function(){var e=this;return this.ready.then((function(){return e.perform("getBlockNumber",{}).then((function(t){var n=parseInt(t);if(n!=t)throw new Error("invalid response - getBlockNumber");return e._setFastBlockNumber(n),n}))}))},J.prototype.getGasPrice=function(){var e=this;return this.ready.then((function(){return e.perform("getGasPrice",{}).then((function(e){return A.bigNumberify(e)}))}))},J.prototype.getBalance=function(e,t){var n=this;return this.ready.then((function(){return d.resolveProperties({addressOrName:e,blockTag:t}).then((function(e){var t=e.addressOrName,r=e.blockTag;return n._getAddress(t).then((function(e){var t={address:e,blockTag:Q(r)};return n.perform("getBalance",t).then((function(e){return A.bigNumberify(e)}))}))}))}))},J.prototype.getTransactionCount=function(e,t){var n=this;return this.ready.then((function(){return d.resolveProperties({addressOrName:e,blockTag:t}).then((function(e){var t=e.addressOrName,r=e.blockTag;return n._getAddress(t).then((function(e){var t={address:e,blockTag:Q(r)};return n.perform("getTransactionCount",t).then((function(e){return A.bigNumberify(e).toNumber()}))}))}))}))},J.prototype.getCode=function(e,t){var n=this;return this.ready.then((function(){return d.resolveProperties({addressOrName:e,blockTag:t}).then((function(e){var t=e.addressOrName,r=e.blockTag;return n._getAddress(t).then((function(e){var t={address:e,blockTag:Q(r)};return n.perform("getCode",t).then((function(e){return c.hexlify(e)}))}))}))}))},J.prototype.getStorageAt=function(e,t,n){var r=this;return this.ready.then((function(){return d.resolveProperties({addressOrName:e,position:t,blockTag:n}).then((function(e){var t=e.addressOrName,n=e.position,i=e.blockTag;return r._getAddress(t).then((function(e){var t={address:e,blockTag:Q(i),position:c.hexStripZeros(c.hexlify(n))};return r.perform("getStorageAt",t).then((function(e){return c.hexlify(e)}))}))}))}))},J.prototype.sendTransaction=function(e){var t=this;return this.ready.then((function(){return d.resolveProperties({signedTransaction:e}).then((function(e){var n=e.signedTransaction,r={signedTransaction:c.hexlify(n)};return t.perform("sendTransaction",r).then((function(e){return t._wrapTransaction(g.parse(n),e)}),(function(e){throw e.transaction=g.parse(n),e.transaction.hash&&(e.transactionHash=e.transaction.hash),e}))}))}))},J.prototype._wrapTransaction=function(e,t){var n=this;if(null!=t&&32!==c.hexDataLength(t))throw new Error("invalid response - sendTransaction");var r=e;return null!=t&&e.hash!==t&&I.throwError("Transaction hash mismatch from Provider.sendTransaction.",I.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),r.wait=function(t){return 0!==t&&(n._emitted["t:"+e.hash]="pending"),n.waitForTransaction(e.hash,t).then((function(r){return null==r&&0===t?null:(n._emitted["t:"+e.hash]=r.blockNumber,0===r.status&&I.throwError("transaction failed",I.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e}),r)}))},r},J.prototype.call=function(e,t){var n=this,r=d.shallowCopy(e);return this.ready.then((function(){return d.resolveProperties({blockTag:t,tx:r}).then((function(e){var t=e.blockTag,r=e.tx;return n._resolveNames(r,["to","from"]).then((function(e){var r={blockTag:Q(t),transaction:R(e)};return n.perform("call",r).then((function(e){return c.hexlify(e)}))}))}))}))},J.prototype.estimateGas=function(e){var t=this,n={to:e.to,from:e.from,data:e.data,gasPrice:e.gasPrice,value:e.value};return this.ready.then((function(){return d.resolveProperties(n).then((function(e){return t._resolveNames(e,["to","from"]).then((function(e){var n={transaction:R(e)};return t.perform("estimateGas",n).then((function(e){return A.bigNumberify(e)}))}))}))}))},J.prototype.getBlock=function(e,t){var n=this;return this.ready.then((function(){return d.resolveProperties({blockHashOrBlockTag:e}).then((function(e){var r=e.blockHashOrBlockTag;try{var i=c.hexlify(r);if(32===c.hexDataLength(i))return y.poll((function(){return n.perform("getBlock",{blockHash:i,includeTransactions:!!t}).then((function(e){return null==e?null==n._emitted["b:"+i]?null:void 0:_(e,t)}))}),{onceBlock:n})}catch(e){}try{var a=-128,o=Q(r);return c.isHexString(o)&&(a=parseInt(o.substring(2),16)),y.poll((function(){return n.perform("getBlock",{blockTag:o,includeTransactions:!!t}).then((function(e){return null!=e?_(e,t):a<=n._emitted.block?void 0:null}))}),{onceBlock:n})}catch(e){}throw new Error("invalid block hash or block tag")}))}))},J.prototype.getTransaction=function(e){var t=this;return this.ready.then((function(){return d.resolveProperties({transactionHash:e}).then((function(e){var n=e.transactionHash,r={transactionHash:B(n,!0)};return y.poll((function(){return t.perform("getTransaction",r).then((function(e){if(null==e)return null==t._emitted["t:"+n]?null:void 0;var r=J.checkTransactionResponse(e);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations)return t._getFastBlockNumber().then((function(e){var n=e-r.blockNumber+1;return n<=0&&(n=1),r.confirmations=n,t._wrapTransaction(r)}));return t._wrapTransaction(r)}))}),{onceBlock:t})}))}))},J.prototype.getTransactionReceipt=function(e){var t=this;return this.ready.then((function(){return d.resolveProperties({transactionHash:e}).then((function(e){var n=e.transactionHash,r={transactionHash:B(n,!0)};return y.poll((function(){return t.perform("getTransactionReceipt",r).then((function(e){if(null==e)return null==t._emitted["t:"+n]?null:void 0;if(null!=e.blockHash){var r=function(e){var t=C(F,e);return t.logs.forEach((function(e,t){null==e.transactionLogIndex&&(e.transactionLogIndex=t)})),null!=e.status&&(t.byzantium=!0),t}(e);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations)return t._getFastBlockNumber().then((function(e){var t=e-r.blockNumber+1;return t<=0&&(t=1),r.confirmations=t,r}));return r}}))}),{onceBlock:t})}))}))},J.prototype.getLogs=function(e){var t=this;return this.ready.then((function(){return d.resolveProperties(e).then((function(e){return t._resolveNames(e,["address"]).then((function(e){var n={filter:function(e){return e&&e.blockHash?C(G,e):C(U,e)}(e)};return t.perform("getLogs",n).then((function(e){return E(T)(e)}))}))}))}))},J.prototype.getEtherPrice=function(){var e=this;return this.ready.then((function(){return e.perform("getEtherPrice",{}).then((function(e){return e}))}))},J.prototype._getAddress=function(e){return this.resolveName(e).then((function(t){return null==t&&I.throwError("ENS name not configured",I.UNSUPPORTED_OPERATION,{operation:"resolveName("+JSON.stringify(e)+")"}),t}))},J.prototype._resolveNames=function(e,t){var n=[],r=d.shallowCopy(e);return t.forEach((function(e){null!=r[e]&&n.push(this._getAddress(r[e]).then((function(t){r[e]=t})))}),this),Promise.all(n).then((function(){return r}))},J.prototype._getResolver=function(e){var t=this;return this.getNetwork().then((function(n){n.ensAddress||I.throwError("network does not support ENS",I.UNSUPPORTED_OPERATION,{operation:"ENS",network:n.name});var r="0x0178b8bf"+f.namehash(e).substring(2),i={to:n.ensAddress,data:r};return t.call(i).then((function(e){if(32!==c.hexDataLength(e))return null;var t=o.getAddress(c.hexDataSlice(e,12));return t===u.AddressZero?null:t}))}))},J.prototype.resolveName=function(e){var t=this;if(e instanceof Promise)return e.then((function(e){return t.resolveName(e)}));try{return Promise.resolve(o.getAddress(e))}catch(t){if(c.isHexString(e))throw t}var n=this,r=f.namehash(e);return this._getResolver(e).then((function(e){if(null==e)return null;var t={to:e,data:"0x3b3b57de"+r.substring(2)};return n.call(t)})).then((function(e){if(32!==c.hexDataLength(e))return null;var t=o.getAddress(c.hexDataSlice(e,12));return t===u.AddressZero?null:t}))},J.prototype.lookupAddress=function(e){var t=this;if(e instanceof Promise)return e.then((function(e){return t.lookupAddress(e)}));var n=(e=o.getAddress(e)).substring(2)+".addr.reverse",r=f.namehash(n),i=this;return this._getResolver(n).then((function(e){if(!e)return null;var t={to:e,data:"0x691f3431"+r.substring(2)};return i.call(t)})).then((function(t){if(null==t)return null;if((t=t.substring(2)).length<64)return null;if((t=t.substring(64)).length<64)return null;var n=A.bigNumberify("0x"+t.substring(0,64)).toNumber();if(2*n>(t=t.substring(64)).length)return null;var r=p.toUtf8String("0x"+t.substring(0,2*n));return i.resolveName(r).then((function(t){return t!=e?null:r}))}))},J.checkTransactionResponse=function(e){return M(e)},J.prototype.doPoll=function(){},J.prototype.perform=function(e,t){return I.throwError(e+" not implemented",I.NOT_IMPLEMENTED,{operation:e}),null},J.prototype._startPending=function(){I.warn("WARNING: this provider does not support pending events")},J.prototype._stopPending=function(){},J.prototype._addEventListener=function(e,t,n){this._events.push({tag:j(e),listener:t,once:n}),"pending"===e&&this._startPending(),this.polling=!0},J.prototype.on=function(e,t){return this._addEventListener(e,t,!1),this},J.prototype.once=function(e,t){return this._addEventListener(e,t,!0),this},J.prototype.addEventListener=function(e,t){return this.on(e,t)},J.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=!1,a=j(e);return this._events=this._events.filter((function(e){return e.tag!==a||(setTimeout((function(){e.listener.apply(t,n)}),0),i=!0,!e.once)})),0===this.listenerCount()&&(this.polling=!1),i},J.prototype.listenerCount=function(e){if(!e)return this._events.length;var t=j(e);return this._events.filter((function(e){return e.tag===t})).length},J.prototype.listeners=function(e){var t=j(e);return this._events.filter((function(e){return e.tag===t})).map((function(e){return e.listener}))},J.prototype.removeAllListeners=function(e){if(null==e)this._events=[],this._stopPending();else{var t=j(e);this._events=this._events.filter((function(e){return e.tag!==t})),"pending"===e&&this._stopPending()}return 0===this._events.length&&(this.polling=!1),this},J.prototype.removeListener=function(e,t){var n=!1,r=j(e);return this._events=this._events.filter((function(e){return e.tag!==r||e.listener!=t||!!n||!(n=!0)})),"pending"===e&&0===this.listenerCount("pending")&&this._stopPending(),0===this.listenerCount()&&(this.polling=!1),this},J);function J(e){var t=K.call(this)||this;if(I.checkNew(t,b.Provider),e instanceof Promise)d.defineReadOnly(t,"ready",e.then((function(e){return d.defineReadOnly(t,"_network",e),e}))),t.ready.catch((function(e){}));else{var n=h.getNetwork(null==e?"homestead":e);n?(d.defineReadOnly(t,"_network",n),d.defineReadOnly(t,"ready",Promise.resolve(t._network))):I.throwError("invalid network",I.INVALID_ARGUMENT,{arg:"network",value:e})}return t._lastBlockNumber=-2,t._balances={},t._events=[],t._pollingInterval=4e3,t._emitted={block:-2},t._fastQueryDate=0,t}n.BaseProvider=q,d.defineReadOnly(b.Provider,"inherits",d.inheritable(b.Provider))},{"../constants":3,"../errors":5,"../utils/address":60,"../utils/bignumber":63,"../utils/bytes":64,"../utils/hash":65,"../utils/networks":72,"../utils/properties":74,"../utils/rlp":76,"../utils/transaction":83,"../utils/utf8":85,"../utils/web":86,"./abstract-provider":50}],52:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o=e("./base-provider"),s=e("../utils/bytes"),A=e("../utils/properties"),c=e("../utils/web"),u=a(e("../errors"));function f(e){var t=[];for(var n in e)if(null!=e[n]){var r=s.hexlify(e[n]);!{gasLimit:!0,gasPrice:!0,nonce:!0,value:!0}[n]||(r=s.hexStripZeros(r)),t.push(n+"="+r)}return t.join("&")}function h(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1==e.status&&"OK"==e.message)return e.result;var t=new Error("invalid response");throw t.result=JSON.stringify(e),t}function d(e){if("2.0"!=e.jsonrpc)throw(t=new Error("invalid response")).result=JSON.stringify(e),t;if(e.error){var t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function l(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}var g,p=(i(y,g=o.BaseProvider),y.prototype.perform=function(e,t){var n=this,r=this.baseUrl,i="";function a(e,t){return c.fetchJson(e,null,t||d).then((function(t){return n.emit("debug",{action:"perform",request:e,response:t,provider:n}),t}))}switch(this.apiKey&&(i+="&apikey="+this.apiKey),e){case"getBlockNumber":return a(r+="/api?module=proxy&action=eth_blockNumber"+i);case"getGasPrice":return a(r+="/api?module=proxy&action=eth_gasPrice"+i);case"getBalance":return r+="/api?module=account&action=balance&address="+t.address,a(r+="&tag="+t.blockTag+i,h);case"getTransactionCount":return r+="/api?module=proxy&action=eth_getTransactionCount&address="+t.address,a(r+="&tag="+t.blockTag+i);case"getCode":return r+="/api?module=proxy&action=eth_getCode&address="+t.address,a(r+="&tag="+t.blockTag+i,d);case"getStorageAt":return r+="/api?module=proxy&action=eth_getStorageAt&address="+t.address,r+="&position="+t.position,a(r+="&tag="+t.blockTag+i,d);case"sendTransaction":return r+="/api?module=proxy&action=eth_sendRawTransaction&hex="+t.signedTransaction,a(r+=i).catch((function(e){throw e.responseText&&(0<=e.responseText.toLowerCase().indexOf("insufficient funds")&&u.throwError("insufficient funds",u.INSUFFICIENT_FUNDS,{}),0<=e.responseText.indexOf("same hash was already imported")&&u.throwError("nonce has already been used",u.NONCE_EXPIRED,{}),0<=e.responseText.indexOf("another transaction with same nonce")&&u.throwError("replacement fee too low",u.REPLACEMENT_UNDERPRICED,{})),e}));case"getBlock":if(t.blockTag)return r+="/api?module=proxy&action=eth_getBlockByNumber&tag="+t.blockTag,t.includeTransactions?r+="&boolean=true":r+="&boolean=false",a(r+=i);throw new Error("getBlock by blockHash not implmeneted");case"getTransaction":return r+="/api?module=proxy&action=eth_getTransactionByHash&txhash="+t.transactionHash,a(r+=i);case"getTransactionReceipt":return r+="/api?module=proxy&action=eth_getTransactionReceipt&txhash="+t.transactionHash,a(r+=i);case"call":if(r+="/api?module=proxy&action=eth_call"+(o=(o=f(t.transaction))&&"&"+o),"latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");return a(r+=i);case"estimateGas":var o;return r+="/api?module=proxy&action=eth_estimateGas&"+(o=(o=f(t.transaction))&&"&"+o),a(r+=i);case"getLogs":r+="/api?module=logs&action=getLogs";try{if(t.filter.fromBlock&&(r+="&fromBlock="+l(t.filter.fromBlock)),t.filter.toBlock&&(r+="&toBlock="+l(t.filter.toBlock)),t.filter.blockHash)try{u.throwError("Etherscan does not support blockHash filters",u.UNSUPPORTED_OPERATION,{operation:"getLogs(blockHash)"})}catch(e){return Promise.reject(e)}if(t.filter.address&&(r+="&address="+t.filter.address),t.filter.topics&&0<t.filter.topics.length){if(1<t.filter.topics.length)throw new Error("unsupported topic format");var s=t.filter.topics[0];if("string"!=typeof s||66!==s.length)throw new Error("unsupported topic0 format");r+="&topic0="+s}}catch(e){return Promise.reject(e)}var A=this;return a(r+=i,h).then((function(e){var t={},n=Promise.resolve();return e.forEach((function(e){n=n.then((function(){return null!=e.blockHash?null:(e.blockHash=t[e.transactionHash],null==e.blockHash?A.getTransaction(e.transactionHash).then((function(n){return t[e.transactionHash]=n.blockHash,e.blockHash=n.blockHash,null})):null)}))})),n.then((function(){return e}))}));case"getEtherPrice":return"homestead"!==this.network.name?Promise.resolve(0):(r+="/api?module=stats&action=ethprice",a(r+=i,h).then((function(e){return parseFloat(e.ethusd)})))}return g.prototype.perform.call(this,e,t)},y.prototype.getHistory=function(e,t,n){var r=this,i=this.baseUrl,a="";return this.apiKey&&(a+="&apikey="+this.apiKey),null==t&&(t=0),null==n&&(n=99999999),this.resolveName(e).then((function(e){return i+="/api?module=account&action=txlist&address="+e,i+="&startblock="+t,i+="&endblock="+n,i+="&sort=asc"+a,c.fetchJson(i,null,h).then((function(e){r.emit("debug",{action:"getHistory",request:i,response:e,provider:r});var t=[];return e.forEach((function(e){["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var n=o.BaseProvider.checkTransactionResponse(e);e.timeStamp&&(n.timestamp=parseInt(e.timeStamp)),t.push(n)})),t}))}))},y);function y(e,t){var n=g.call(this,e)||this;u.checkNew(n,y);var r="invalid";n.network&&(r=n.network.name);var i=null;switch(r){case"homestead":i="https://api.etherscan.io";break;case"ropsten":i="https://api-ropsten.etherscan.io";break;case"rinkeby":i="https://api-rinkeby.etherscan.io";break;case"kovan":i="https://api-kovan.etherscan.io";break;case"goerli":i="https://api-goerli.etherscan.io";break;default:throw new Error("unsupported network")}return A.defineReadOnly(n,"baseUrl",i),A.defineReadOnly(n,"apiKey",t||"8FG3JMZ9USS4NTA6YKEKHINU56SEPPVBJR"),n}n.EtherscanProvider=p},{"../errors":5,"../utils/bytes":64,"../utils/properties":74,"../utils/web":86,"./base-provider":51}],53:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o=e("./base-provider"),s=a(e("../errors"));function A(e){var t=!0,n=null;return e.forEach((function(r){null!=r?null!=n?n.name===r.name&&n.chainId===r.chainId&&(n.ensAddress===r.ensAddress||null==n.ensAddress&&null==r.ensAddress)||s.throwError("provider mismatch",s.INVALID_ARGUMENT,{arg:"networks",value:e}):n=r:t=!1})),t}var c,u=(i(f,c=o.BaseProvider),Object.defineProperty(f.prototype,"providers",{get:function(){return this._providers.slice(0)},enumerable:!0,configurable:!0}),f.prototype.perform=function(e,t){var n=this.providers;return new Promise((function(r,i){var a=null;!function o(){n.length?n.shift().perform(e,t).then((function(e){return r(e)})).catch((function(e){a=a||e,setTimeout(o,0)})):i(a)}()}))},f);function f(e){var t=this;if(0===e.length)throw new Error("no providers");if(A(e.map((function(e){return e.network}))))t=c.call(this,e[0].network)||this;else{var n=Promise.all(e.map((function(e){return e.getNetwork()}))).then((function(e){return A(e)||s.throwError("getNetwork returned null",s.UNKNOWN_ERROR,{}),e[0]}));t=c.call(this,n)||this}return s.checkNew(t,f),t._providers=e.slice(0),t}n.FallbackProvider=u},{"../errors":5,"./base-provider":51}],54:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./abstract-provider");n.Provider=r.Provider;var i=e("./base-provider");n.BaseProvider=i.BaseProvider;var a=e("./etherscan-provider");n.EtherscanProvider=a.EtherscanProvider;var o=e("./fallback-provider");n.FallbackProvider=o.FallbackProvider;var s=e("./ipc-provider");n.IpcProvider=s.IpcProvider;var A=e("./infura-provider");n.InfuraProvider=A.InfuraProvider;var c=e("./json-rpc-provider");n.JsonRpcProvider=c.JsonRpcProvider,n.JsonRpcSigner=c.JsonRpcSigner;var u=e("./web3-provider");n.Web3Provider=u.Web3Provider},{"./abstract-provider":50,"./base-provider":51,"./etherscan-provider":52,"./fallback-provider":53,"./infura-provider":55,"./ipc-provider":56,"./json-rpc-provider":57,"./web3-provider":58}],55:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o,s=e("./json-rpc-provider"),A=e("../utils/bytes"),c=e("../utils/networks"),u=e("../utils/properties"),f=a(e("../errors")),h=(i(d,o=s.JsonRpcProvider),d.prototype._startPending=function(){f.warn("WARNING: INFURA does not support pending filters")},d.prototype.getSigner=function(e){return f.throwError("INFURA does not support signing",f.UNSUPPORTED_OPERATION,{operation:"getSigner"})},d.prototype.listAccounts=function(){return Promise.resolve([])},d);function d(e,t){var n=this,r=c.getNetwork(null==e?"homestead":e);null==t&&(t="7d0d81d0919f4f05b9ab6634be01ee73");var i=null;switch(r.name){case"homestead":i="mainnet.infura.io";break;case"ropsten":i="ropsten.infura.io";break;case"rinkeby":i="rinkeby.infura.io";break;case"goerli":i="goerli.infura.io";break;case"kovan":i="kovan.infura.io";break;default:f.throwError("unsupported network",f.INVALID_ARGUMENT,{argument:"network",value:e})}return A.isHexString("0x"+t,16)?(n=o.call(this,"https://"+i+"/v3/"+t,r)||this,u.defineReadOnly(n,"apiAccessToken",null),u.defineReadOnly(n,"projectId",t)):(f.warn("The legacy INFURA apiAccesToken API is deprecated; please upgrade to a Project ID instead (see INFURA dshboard; https://infura.io)"),n=o.call(this,"https://"+i+"/"+t,r)||this,u.defineReadOnly(n,"apiAccessToken",t),u.defineReadOnly(n,"projectId",null)),f.checkNew(n,d),n}n.InfuraProvider=h},{"../errors":5,"../utils/bytes":64,"../utils/networks":72,"../utils/properties":74,"./json-rpc-provider":57}],56:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},{}],57:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o=e("./base-provider"),s=e("../abstract-signer"),A=a(e("../errors")),c=e("../utils/address"),u=e("../utils/bytes"),f=e("../utils/networks"),h=e("../utils/properties"),d=e("../utils/utf8"),l=e("../utils/web");function g(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function p(e){return e?e.toLowerCase():e}var y,I={},b=42,C=(i(m,y=s.Signer),m.prototype.getAddress=function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&A.throwError("unknown account #"+e._index,A.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e._address=c.getAddress(t[e._index]),e._address}))},m.prototype.getBalance=function(e){return this.provider.getBalance(this.getAddress(),e)},m.prototype.getTransactionCount=function(e){return this.provider.getTransactionCount(this.getAddress(),e)},m.prototype.sendUncheckedTransaction=function(e){var t=this;e=h.shallowCopy(e);var n=this.getAddress().then((function(e){return e&&e.toLowerCase()}));if(null==e.gasLimit){var r=h.shallowCopy(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return Promise.all([h.resolveProperties(e),n]).then((function(e){var n=e[0],r=v.hexlifyTransaction(n);return r.from=e[1],t.provider.send("eth_sendTransaction",[r]).then((function(e){return e}),(function(e){throw e.responseText&&(0<=e.responseText.indexOf("insufficient funds")&&A.throwError("insufficient funds",A.INSUFFICIENT_FUNDS,{transaction:n}),0<=e.responseText.indexOf("nonce too low")&&A.throwError("nonce has already been used",A.NONCE_EXPIRED,{transaction:n}),0<=e.responseText.indexOf("replacement transaction underpriced")&&A.throwError("replacement fee too low",A.REPLACEMENT_UNDERPRICED,{transaction:n})),e}))}))},m.prototype.sendTransaction=function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return l.poll((function(){return t.provider.getTransaction(e).then((function(n){if(null!==n)return t.provider._wrapTransaction(n,e)}))}),{fastRetry:250,onceBlock:t.provider}).catch((function(t){throw t.transactionHash=e,t}))}))},m.prototype.signMessage=function(e){var t=this,n="string"==typeof e?d.toUtf8Bytes(e):e;return this.getAddress().then((function(e){return t.provider.send("eth_sign",[e.toLowerCase(),u.hexlify(n)])}))},m.prototype.unlock=function(e){var t=this.provider;return this.getAddress().then((function(n){return t.send("personal_unlockAccount",[n.toLowerCase(),e,null])}))},m);function m(e,t,n){var r=y.call(this)||this;if(A.checkNew(r,m),e!==I)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return h.defineReadOnly(r,"provider",t),n?"string"==typeof n?h.defineReadOnly(r,"_address",c.getAddress(n)):"number"==typeof n?h.defineReadOnly(r,"_index",n):A.throwError("invalid address or index",A.INVALID_ARGUMENT,{argument:"addressOrIndex",value:n}):h.defineReadOnly(r,"_index",0),r}n.JsonRpcSigner=C;var E,B={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0},v=(i(w,E=o.BaseProvider),w.prototype.getSigner=function(e){return new C(I,this,e)},w.prototype.listAccounts=function(){return this.send("eth_accounts",[]).then((function(e){return e.map((function(e){return c.getAddress(e)}))}))},w.prototype.send=function(e,t){var n=this,r={method:e,params:t,id:b++,jsonrpc:"2.0"};return l.fetchJson(this.connection,JSON.stringify(r),g).then((function(e){return n.emit("debug",{action:"send",request:r,response:e,provider:n}),e}))},w.prototype.perform=function(e,t){switch(e){case"getBlockNumber":return this.send("eth_blockNumber",[]);case"getGasPrice":return this.send("eth_gasPrice",[]);case"getBalance":return this.send("eth_getBalance",[p(t.address),t.blockTag]);case"getTransactionCount":return this.send("eth_getTransactionCount",[p(t.address),t.blockTag]);case"getCode":return this.send("eth_getCode",[p(t.address),t.blockTag]);case"getStorageAt":return this.send("eth_getStorageAt",[p(t.address),t.position,t.blockTag]);case"sendTransaction":return this.send("eth_sendRawTransaction",[t.signedTransaction]).catch((function(e){throw e.responseText&&(0<e.responseText.indexOf("insufficient funds")&&A.throwError("insufficient funds",A.INSUFFICIENT_FUNDS,{}),0<e.responseText.indexOf("nonce too low")&&A.throwError("nonce has already been used",A.NONCE_EXPIRED,{}),0<e.responseText.indexOf("replacement transaction underpriced")&&A.throwError("replacement fee too low",A.REPLACEMENT_UNDERPRICED,{})),e}));case"getBlock":return t.blockTag?this.send("eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]):t.blockHash?this.send("eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]):Promise.reject(new Error("invalid block tag or block hash"));case"getTransaction":return this.send("eth_getTransactionByHash",[t.transactionHash]);case"getTransactionReceipt":return this.send("eth_getTransactionReceipt",[t.transactionHash]);case"call":return this.send("eth_call",[w.hexlifyTransaction(t.transaction,{from:!0}),t.blockTag]);case"estimateGas":return this.send("eth_estimateGas",[w.hexlifyTransaction(t.transaction,{from:!0})]);case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=p(t.filter.address)),this.send("eth_getLogs",[t.filter])}return A.throwError(e+" not implemented",A.NOT_IMPLEMENTED,{operation:e}),null},w.prototype._startPending=function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);(this._pendingFilter=t).then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;var r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return new Promise((function(e){setTimeout((function(){e()}),1e3)}))}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((function(e){}))}(),n})).catch((function(e){}))}},w.prototype._stopPending=function(){this._pendingFilter=null},w.hexlifyTransaction=function(e,t){var n=h.shallowCopy(B);if(t)for(var r in t)t[r]&&(n[r]=!0);h.checkProperties(e,n);var i={};return["gasLimit","gasPrice","nonce","value"].forEach((function(t){if(null!=e[t]){var n=u.hexStripZeros(u.hexlify(e[t]));"gasLimit"===t&&(t="gas"),i[t]=n}})),["from","to","data"].forEach((function(t){null!=e[t]&&(i[t]=u.hexlify(e[t]))})),i},w);function w(e,t){var n=this;if("string"==typeof e&&null===t&&f.getNetwork(e)&&(t=e,e=null),t)n=E.call(this,t)||this;else{var r=new Promise((function(e,t){setTimeout((function(){n.send("net_version",[]).then((function(t){return e(f.getNetwork(parseInt(t)))})).catch((function(e){t(e)}))}))}));n=E.call(this,r)||this}return A.checkNew(n,w),e=e||"http://localhost:8545",n.connection="string"==typeof e?{url:e}:e,n}n.JsonRpcProvider=v},{"../abstract-signer":2,"../errors":5,"../utils/address":60,"../utils/bytes":64,"../utils/networks":72,"../utils/properties":74,"../utils/utf8":85,"../utils/web":86,"./base-provider":51}],58:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o,s=e("./json-rpc-provider"),A=e("../utils/properties"),c=a(e("../errors")),u=42,f=(i(h,o=s.JsonRpcProvider),h.prototype.send=function(e,t){var n=this;return"eth_sign"==e&&this._web3Provider.isMetaMask&&(e="personal_sign",t=[t[1],t[0]]),new Promise((function(r,i){var a={method:e,params:t,id:u++,jsonrpc:"2.0"};n._sendAsync(a,(function(e,t){if(e)i(e);else{if(t.error){var n=new Error(t.error.message);return n.code=t.error.code,n.data=t.error.data,void i(n)}r(t.result)}}))}))},h);function h(e,t){var n=o.call(this,e.host||e.path||"",t)||this;return c.checkNew(n,h),e&&(e.sendAsync?n._sendAsync=e.sendAsync.bind(e):e.send&&(n._sendAsync=e.send.bind(e))),e&&n._sendAsync||c.throwError("invalid web3Provider",c.INVALID_ARGUMENT,{arg:"web3Provider",value:e}),A.defineReadOnly(n,"_web3Provider",e),A.defineReadOnly(n,"provider",e),n}n.Web3Provider=f},{"../errors":5,"../utils/properties":74,"./json-rpc-provider":57}],59:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o=e("../constants"),A=a(e("../errors")),c=e("./address"),u=e("./bignumber"),f=e("./bytes"),h=e("./utf8"),d=e("./properties"),l=new RegExp(/^bytes([0-9]*)$/),g=new RegExp(/^(u?int)([0-9]*)$/),p=new RegExp(/^(.*)\[([0-9]*)\]$/);n.defaultCoerceFunc=function(e,t){var n=e.match(g);return n&&parseInt(n[2])<=48?t.toNumber():t};var y=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),I=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function b(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}function C(e,t){var n=e;function r(e){throw new Error('unexpected character "'+n[e]+'" at position '+e+' in "'+n+'"')}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},a=i,o=0;o<e.length;o++){var s=e[o];switch(s){case"(":a.state.allowParams||r(o),a.state.allowType=!1,a.type=b(a.type),a.components=[{type:"",name:"",parent:a,state:{allowType:!0}}],a=a.components[0];break;case")":delete a.state,t&&"indexed"===a.name&&(a.indexed=!0,a.name=""),a.type=b(a.type);var A=a;(a=a.parent)||r(o),delete A.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,t&&"indexed"===a.name&&(a.indexed=!0,a.name=""),a.type=b(a.type);var c={type:"",name:"",parent:a.parent,state:{allowType:!0}};a.parent.components.push(c),delete a.parent,a=c;break;case" ":a.state.allowType&&""!==a.type&&(a.type=b(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&(t&&"indexed"===a.name?(a.indexed=!0,a.name=""):a.state.allowName=!1);break;case"[":a.state.allowArray||r(o),a.type+=s,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||r(o),a.type+=s,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=s,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=s,delete a.state.allowArray):a.state.readArray?a.type+=s:r(o)}}if(a.parent)throw new Error("unexpected eof");return delete i.state,t&&"indexed"===a.name&&(a.indexed=!0,a.name=""),i.type=b(i.type),i}function m(e){return se(n.defaultCoerceFunc,e).type}function E(e,t,n,r,i){this.coerceFunc=e,this.name=t,this.type=n,this.localName=r,this.dynamic=i}n.parseParamType=function(e){return C(e,!0)},n.formatParamType=m,n.formatSignature=function(e){return e.name+"("+e.inputs.map((function(e){return m(e)})).join(",")+")"},n.parseSignature=function(e){if("string"==typeof e)return"event "===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).substring(0,6)?function(e){var t={anonymous:!1,inputs:[],name:"",type:"event"},n=e.match(y);if(!n)throw new Error("invalid event: "+e);if(t.name=n[1].trim(),ae(n[2]).forEach((function(e){(e=C(e,!0)).indexed=!!e.indexed,t.inputs.push(e)})),n[3].split(" ").forEach((function(e){switch(e){case"anonymous":t.anonymous=!0;break;case"":break;default:A.info("unknown modifier: "+e)}})),t.name&&!t.name.match(I))throw new Error('invalid identifier: "'+t.name+'"');return t}(e.substring(6).trim()):("function "===e.substring(0,9)&&(e=e.substring(9)),function(e){var t={constant:!1,gas:null,inputs:[],name:"",outputs:[],payable:!1,stateMutability:null,type:"function"},n=e.split("@");if(1!==n.length){if(2<n.length)throw new Error("invalid signature");if(!n[1].match(/^[0-9]+$/))throw new Error("invalid signature gas");t.gas=u.bigNumberify(n[1]),e=n[0]}var r=(n=e.split(" returns "))[0].match(y);if(!r)throw new Error("invalid signature");if(t.name=r[1].trim(),!t.name.match(I))throw new Error('invalid identifier: "'+r[1]+'"');if(ae(r[2]).forEach((function(e){t.inputs.push(C(e))})),r[3].split(" ").forEach((function(e){switch(e){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:A.info("unknown modifier: "+e)}})),1<n.length){var i=n[1].match(y);if(""!=i[1].trim()||""!=i[3].trim())throw new Error("unexpected tokens");ae(i[2]).forEach((function(e){t.outputs.push(C(e))}))}if("constructor"===t.name){if(t.type="constructor",t.outputs.length)throw new Error("constructor may not have outputs");delete t.name,delete t.outputs}return t}(e.trim()));throw new Error("unknown signature")};var B,v=(i(w,B=E),w.prototype.encode=function(e){return this.coder.encode(e)},w.prototype.decode=function(e,t){return this.coder.decode(e,t)},w);function w(e){var t=B.call(this,e.coerceFunc,e.name,e.type,void 0,e.dynamic)||this;return d.defineReadOnly(t,"coder",e),t}var Q,S=(i(M,Q=E),M.prototype.encode=function(e){return f.arrayify([])},M.prototype.decode=function(e,t){if(t>e.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}},M);function M(e,t){return Q.call(this,e,"null","",t,!1)||this}var k,D=(i(_,k=E),_.prototype.encode=function(e){try{var t=u.bigNumberify(e);if(this.signed){var n=o.MaxUint256.maskn(8*this.size-1);if(t.gt(n))throw new Error("out-of-bounds");if(n=n.add(o.One).mul(o.NegativeOne),t.lt(n))throw new Error("out-of-bounds")}else if(t.lt(o.Zero)||t.gt(o.MaxUint256.maskn(8*this.size)))throw new Error("out-of-bounds");return t=t.toTwos(8*this.size).maskn(8*this.size),this.signed&&(t=t.fromTwos(8*this.size).toTwos(256)),f.padZeros(f.arrayify(t),32)}catch(t){A.throwError("invalid number value",A.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:e})}return null},_.prototype.decode=function(e,t){e.length<t+32&&A.throwError("insufficient data for "+this.name+" type",A.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:f.hexlify(e.slice(t,t+32))});var n=32-this.size,r=u.bigNumberify(e.slice(t+n,t+32));return r=this.signed?r.fromTwos(8*this.size):r.maskn(8*this.size),{consumed:32,value:this.coerceFunc(this.name,r)}},_);function _(e,t,n,r){var i=this,a=(n?"int":"uint")+8*t;return(i=k.call(this,e,a,a,r,!1)||this).size=t,i.signed=n,i}var x,R=new D((function(e,t){return t}),32,!1,"none"),N=(i(F,x=E),F.prototype.encode=function(e){return R.encode(e?1:0)},F.prototype.decode=function(e,t){try{var n=R.decode(e,t)}catch(e){throw"insufficient data for uint256 type"===e.reason&&A.throwError("insufficient data for boolean type",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"boolean",value:e.value}),e}return{consumed:n.consumed,value:this.coerceFunc("bool",!n.value.isZero())}},F);function F(e,t){return x.call(this,e,"bool","bool",t,!1)||this}var H,L=(i(U,H=E),U.prototype.encode=function(e){var t=new Uint8Array(32);try{var n=f.arrayify(e);if(n.length!==this.length)throw new Error("incorrect data length");t.set(n)}catch(t){A.throwError("invalid "+this.name+" value",A.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:t.value||e})}return t},U.prototype.decode=function(e,t){return e.length<t+32&&A.throwError("insufficient data for "+this.name+" type",A.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:f.hexlify(e.slice(t,t+32))}),{consumed:32,value:this.coerceFunc(this.name,f.hexlify(e.slice(t,t+this.length)))}},U);function U(e,t,n){var r=this,i="bytes"+t;return(r=H.call(this,e,i,i,n,!1)||this).length=t,r}var G,O=(i(T,G=E),T.prototype.encode=function(e){var t=new Uint8Array(32);try{t.set(f.arrayify(c.getAddress(e)),12)}catch(t){A.throwError("invalid address",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"address",value:e})}return t},T.prototype.decode=function(e,t){return e.length<t+32&&A.throwError("insufficuent data for address type",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"address",value:f.hexlify(e.slice(t,t+32))}),{consumed:32,value:this.coerceFunc("address",c.getAddress(f.hexlify(e.slice(t+12,t+32))))}},T);function T(e,t){return G.call(this,e,"address","address",t,!1)||this}function P(e){var t=32*Math.ceil(e.length/32),n=new Uint8Array(t-e.length);return f.concat([R.encode(e.length),e,n])}function j(e,t,n){e.length<t+32&&A.throwError("insufficient data for dynamicBytes length",A.INVALID_ARGUMENT,{arg:n,coderType:"dynamicBytes",value:f.hexlify(e.slice(t,t+32))});var r=R.decode(e,t).value;try{r=r.toNumber()}catch(e){A.throwError("dynamic bytes count too large",A.INVALID_ARGUMENT,{arg:n,coderType:"dynamicBytes",value:r.toString()})}return e.length<t+32+r&&A.throwError("insufficient data for dynamicBytes type",A.INVALID_ARGUMENT,{arg:n,coderType:"dynamicBytes",value:f.hexlify(e.slice(t,t+32+r))}),{consumed:32+32*Math.ceil(r/32),value:e.slice(t+32,t+32+r)}}var Y,K=(i(q,Y=E),q.prototype.encode=function(e){try{return P(f.arrayify(e))}catch(e){A.throwError("invalid bytes value",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"bytes",value:e.value})}return null},q.prototype.decode=function(e,t){var n=j(e,t,this.localName);return n.value=this.coerceFunc("bytes",f.hexlify(n.value)),n},q);function q(e,t){return Y.call(this,e,"bytes","bytes",t,!0)||this}var J,z=(i(V,J=E),V.prototype.encode=function(e){return"string"!=typeof e&&A.throwError("invalid string value",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"string",value:e}),P(h.toUtf8Bytes(e))},V.prototype.decode=function(e,t){var n=j(e,t,this.localName);return n.value=this.coerceFunc("string",h.toUtf8String(n.value)),n},V);function V(e,t){return J.call(this,e,"string","string",t,!0)||this}function Z(e){return 32*Math.ceil(e/32)}function W(e,t){if(Array.isArray(t));else if(t&&"object"==s(t)){var n=[];e.forEach((function(e){n.push(t[e.localName])})),t=n}else A.throwError("invalid tuple value",A.INVALID_ARGUMENT,{coderType:"tuple",value:t});e.length!==t.length&&A.throwError("types/value length mismatch",A.INVALID_ARGUMENT,{coderType:"tuple",value:t});var r=[];e.forEach((function(e,n){r.push({dynamic:e.dynamic,value:e.encode(t[n])})}));var i=0,a=0;r.forEach((function(e){e.dynamic?(i+=32,a+=Z(e.value.length)):i+=Z(e.value.length)}));var o=0,c=i,u=new Uint8Array(i+a);return r.forEach((function(e){e.dynamic?(u.set(R.encode(c),o),o+=32,u.set(e.value,c),c+=Z(e.value.length)):(u.set(e.value,o),o+=Z(e.value.length))})),u}function X(e,t,n){var r=n,i=0,a=[];return e.forEach((function(e){if(e.dynamic){var o=R.decode(t,n);(s=e.decode(t,r+o.value.toNumber())).consumed=o.consumed}else var s=e.decode(t,n);null!=s.value&&a.push(s.value),n+=s.consumed,i+=s.consumed})),e.forEach((function(e,t){var n=e.localName;n&&("length"===n&&(n="_length"),null==a[n]&&(a[n]=a[t]))})),{value:a,consumed:i}}var $,ee=(i(te,$=E),te.prototype.encode=function(e){Array.isArray(e)||A.throwError("expected array value",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:e});var t=this.length,n=new Uint8Array(0);-1===t&&(t=e.length,n=R.encode(t)),A.checkArgumentCount(t,e.length," in coder array"+(this.localName?" "+this.localName:""));for(var r=[],i=0;i<e.length;i++)r.push(this.coder);return f.concat([n,W(r,e)])},te.prototype.decode=function(e,t){var n=0,r=this.length;if(-1===r){try{var i=R.decode(e,t)}catch(e){A.throwError("insufficient data for dynamic array length",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:e.value})}try{r=i.value.toNumber()}catch(e){A.throwError("array count too large",A.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:i.value.toString()})}n+=i.consumed,t+=i.consumed}for(var a=[],o=0;o<r;o++)a.push(new v(this.coder));var s=X(a,e,t);return s.consumed+=n,s.value=this.coerceFunc(this.type,s.value),s},te);function te(e,t,n,r){var i=this,a=t.type+"["+(0<=n?n:"")+"]",o=-1===n||t.dynamic;return(i=$.call(this,e,"array",a,r,o)||this).coder=t,i.length=n,i}var ne,re=(i(ie,ne=E),ie.prototype.encode=function(e){return W(this.coders,e)},ie.prototype.decode=function(e,t){var n=X(this.coders,e,t);return n.value=this.coerceFunc(this.type,n.value),n},ie);function ie(e,t,n){var r=this,i=!1,a=[];t.forEach((function(e){e.dynamic&&(i=!0),a.push(e.type)}));var o="tuple("+a.join(",")+")";return(r=ne.call(this,e,"tuple",o,n,i)||this).coders=t,r}function ae(e){e=e.trim();for(var t=[],n="",r=0,i=0;i<e.length;i++){var a=e[i];if(","===a&&0===r)t.push(n),n="";else if(n+=a,"("===a)r++;else if(")"===a&&-1==--r)throw new Error("unbalanced parenthsis")}return n&&t.push(n),t}var oe={address:O,bool:N,string:z,bytes:K};function se(e,t){var n,r=oe[t.type];if(r)return new r(e,t.name);if(n=t.type.match(g))return(0===(i=parseInt(n[2]||"256"))||256<i||i%8!=0)&&A.throwError("invalid "+n[1]+" bit length",A.INVALID_ARGUMENT,{arg:"param",value:t}),new D(e,i/8,"int"===n[1],t.name);if(n=t.type.match(l))return(0===(i=parseInt(n[1]))||32<i)&&A.throwError("invalid bytes length",A.INVALID_ARGUMENT,{arg:"param",value:t}),new L(e,i,t.name);if(n=t.type.match(p)){var i=parseInt(n[2]||"-1");return(t=d.shallowCopy(t)).type=n[1],t=d.deepCopy(t),new ee(e,se(e,t),i,t.name)}return"tuple"===t.type.substring(0,5)?function(e,t,n){var r=[];return(t=t||[]).forEach((function(t){r.push(se(e,t))})),new re(e,r,n)}(e,t.components,t.name):""===t.type?new S(e,t.name):(A.throwError("invalid type",A.INVALID_ARGUMENT,{arg:"type",value:t.type}),null)}var Ae=(ce.prototype.encode=function(e,t){e.length!==t.length&&A.throwError("types/values length mismatch",A.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=[];return e.forEach((function(e){var t;t="string"==typeof e?C(e):e,n.push(se(this.coerceFunc,t))}),this),f.hexlify(new re(this.coerceFunc,n,"_").encode(t))},ce.prototype.decode=function(e,t){var n=[];return e.forEach((function(e){var t;t="string"==typeof e?C(e):d.deepCopy(e),n.push(se(this.coerceFunc,t))}),this),new re(this.coerceFunc,n,"_").decode(f.arrayify(t),0).value},ce);function ce(e){A.checkNew(this,ce),e=e||n.defaultCoerceFunc,d.defineReadOnly(this,"coerceFunc",e)}n.AbiCoder=Ae,n.defaultAbiCoder=new Ae},{"../constants":3,"../errors":5,"./address":60,"./bignumber":63,"./bytes":64,"./properties":74,"./utf8":85}],60:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("bn.js")),a=e("./bytes"),o=e("./keccak256"),s=e("./rlp"),A=e("../errors");function c(e){"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]{40}$/)||A.throwError("invalid address",A.INVALID_ARGUMENT,{arg:"address",value:e});for(var t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),r=0;r<40;r++)n[r]=t[r].charCodeAt(0);n=a.arrayify(o.keccak256(n));for(var i=0;i<40;i+=2)8<=n[i>>1]>>4&&(t[i]=t[i].toUpperCase()),8<=(15&n[i>>1])&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}for(var u={},f=0;f<10;f++)u[String(f)]=String(f);for(f=0;f<26;f++)u[String.fromCharCode(65+f)]=String(10+f);var h,d=Math.floor((h=9007199254740991,Math.log10?Math.log10(h):Math.log(h)/Math.LN10));function l(e){e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00";var t="";for(e.split("").forEach((function(e){t+=u[e]}));t.length>=d;){var n=t.substring(0,d);t=parseInt(n,10)%97+t.substring(n.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function g(e){var t=null;if("string"!=typeof e&&A.throwError("invalid address",A.INVALID_ARGUMENT,{arg:"address",value:e}),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=c(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&A.throwError("bad address checksum",A.INVALID_ARGUMENT,{arg:"address",value:e});else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==l(e)&&A.throwError("bad icap checksum",A.INVALID_ARGUMENT,{arg:"address",value:e}),t=new i.default.BN(e.substring(4),36).toString(16);t.length<40;)t="0"+t;t=c("0x"+t)}else A.throwError("invalid address",A.INVALID_ARGUMENT,{arg:"address",value:e});return t}n.getAddress=g,n.getIcapAddress=function(e){for(var t=new i.default.BN(g(e).substring(2),16).toString(36).toUpperCase();t.length<30;)t="0"+t;return"XE"+l("XE00"+t)+t},n.getContractAddress=function(e){if(!e.from)throw new Error("missing from address");var t=e.nonce;return g("0x"+o.keccak256(s.encode([g(e.from),a.stripZeros(a.hexlify(t))])).substring(26))},n.getCreate2Address=function(e){var t=e.initCodeHash;e.initCode&&(t?o.keccak256(e.initCode)!==t&&A.throwError("initCode/initCodeHash mismatch",A.INVALID_ARGUMENT,{arg:"options",value:e}):t=o.keccak256(e.initCode)),t||A.throwError("missing initCode or initCodeHash",A.INVALID_ARGUMENT,{arg:"options",value:e});var n=g(e.from),r=a.arrayify(e.salt);return 32!==r.length&&A.throwError("invalid salt",A.INVALID_ARGUMENT,{arg:"options",value:e}),g("0x"+o.keccak256(a.concat(["0xff",n,r,t])).substring(26))}},{"../errors":5,"./bytes":64,"./keccak256":71,"./rlp":76,"bn.js":9}],61:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../utils/bytes");t.exports={decode:function(e){e=atob(e);for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return r.arrayify(t)},encode:function(e){e=r.arrayify(e);for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}}},{"../utils/bytes":64}],62:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./bytes"),i=e("./properties"),a=(o.prototype.encode=function(e){var t=r.arrayify(e);if(0===t.length)return"";for(var n=[0],i=0;i<t.length;++i){for(var a=t[i],o=0;o<n.length;++o)a+=n[o]<<8,n[o]=a%this.base,a=a/this.base|0;for(;0<a;)n.push(a%this.base),a=a/this.base|0}for(var s="",A=0;0===t[A]&&A<t.length-1;++A)s+=this._leader;for(var c=n.length-1;0<=c;--c)s+=this.alphabet[n[c]];return s},o.prototype.decode=function(e){if("string"!=typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var n=0;n<e.length;n++){var i=this._alphabetMap[e[n]];if(void 0===i)throw new Error("Non-base"+this.base+" character");for(var a=i,o=0;o<t.length;++o)a+=t[o]*this.base,t[o]=255&a,a>>=8;for(;0<a;)t.push(255&a),a>>=8}for(var s=0;e[s]===this._leader&&s<e.length-1;++s)t.push(0);return r.arrayify(new Uint8Array(t.reverse()))},o);function o(e){i.defineReadOnly(this,"alphabet",e),i.defineReadOnly(this,"base",e.length),i.defineReadOnly(this,"_alphabetMap",{}),i.defineReadOnly(this,"_leader",e.charAt(0));for(var t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}var s=new(n.BaseX=a)("abcdefghijklmnopqrstuvwxyz234567");n.Base32=s;var A=new a("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");n.Base58=A},{"./bytes":64,"./properties":74}],63:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var a=r(e("bn.js")),o=e("./bytes"),s=e("./properties"),A=i(e("../errors")),c=new a.default.BN(-1);function u(e){var t=e.toString(16);return"-"===t[0]?t.length%2==0?"-0x0"+t.substring(1):"-0x"+t.substring(1):t.length%2==1?"0x0"+t:"0x"+t}function f(e){return d(p(e))}function h(e){return new l(u(e))}function d(e){var t=e._hex;return"-"===t[0]?new a.default.BN(t.substring(3),16).mul(c):new a.default.BN(t.substring(2),16)}var l=(g.prototype.fromTwos=function(e){return h(d(this).fromTwos(e))},g.prototype.toTwos=function(e){return h(d(this).toTwos(e))},g.prototype.abs=function(){return"-"===this._hex[0]?h(d(this).mul(c)):this},g.prototype.add=function(e){return h(d(this).add(f(e)))},g.prototype.sub=function(e){return h(d(this).sub(f(e)))},g.prototype.div=function(e){return p(e).isZero()&&A.throwError("division by zero",A.NUMERIC_FAULT,{operation:"divide",fault:"division by zero"}),h(d(this).div(f(e)))},g.prototype.mul=function(e){return h(d(this).mul(f(e)))},g.prototype.mod=function(e){return h(d(this).mod(f(e)))},g.prototype.pow=function(e){return h(d(this).pow(f(e)))},g.prototype.maskn=function(e){return h(d(this).maskn(e))},g.prototype.eq=function(e){return d(this).eq(f(e))},g.prototype.lt=function(e){return d(this).lt(f(e))},g.prototype.lte=function(e){return d(this).lte(f(e))},g.prototype.gt=function(e){return d(this).gt(f(e))},g.prototype.gte=function(e){return d(this).gte(f(e))},g.prototype.isZero=function(){return d(this).isZero()},g.prototype.toNumber=function(){try{return d(this).toNumber()}catch(e){A.throwError("overflow",A.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:e.message})}return null},g.prototype.toString=function(){return d(this).toString(10)},g.prototype.toHexString=function(){return this._hex},g.isBigNumber=function(e){return s.isType(e,"BigNumber")},g);function g(e){if(A.checkNew(this,g),s.setType(this,"BigNumber"),"string"==typeof e)o.isHexString(e)?("0x"==e&&(e="0x0"),s.defineReadOnly(this,"_hex",e)):"-"===e[0]&&o.isHexString(e.substring(1))?s.defineReadOnly(this,"_hex",e):e.match(/^-?[0-9]*$/)?(""==e&&(e="0"),s.defineReadOnly(this,"_hex",u(new a.default.BN(e)))):A.throwError("invalid BigNumber string value",A.INVALID_ARGUMENT,{arg:"value",value:e});else if("number"==typeof e){parseInt(String(e))!==e&&A.throwError("underflow",A.NUMERIC_FAULT,{operation:"setValue",fault:"underflow",value:e,outputValue:parseInt(String(e))});try{s.defineReadOnly(this,"_hex",u(new a.default.BN(e)))}catch(e){A.throwError("overflow",A.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:e.message})}}else e instanceof g?s.defineReadOnly(this,"_hex",e._hex):e.toHexString?s.defineReadOnly(this,"_hex",u(f(e.toHexString()))):e._hex&&o.isHexString(e._hex)?s.defineReadOnly(this,"_hex",e._hex):o.isArrayish(e)?s.defineReadOnly(this,"_hex",u(new a.default.BN(o.hexlify(e).substring(2),16))):A.throwError("invalid BigNumber value",A.INVALID_ARGUMENT,{arg:"value",value:e})}function p(e){return l.isBigNumber(e)?e:new l(e)}n.BigNumber=l,n.bigNumberify=p},{"../errors":5,"./bytes":64,"./properties":74,"bn.js":9}],64:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("../errors"));function a(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function A(e){if(!e||parseInt(String(e.length))!=e.length||"string"==typeof e)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(n<0||256<=n||parseInt(String(n))!=n)return!1}return!0}function c(e){if(null==e&&i.throwError("cannot convert null value to array",i.INVALID_ARGUMENT,{arg:"value",value:e}),a(e)&&(e=e.toHexString()),"string"!=typeof e)return A(e)?o(new Uint8Array(e)):(i.throwError("invalid arrayify value",null,{arg:"value",value:e,type:s(e)}),null);var t=e.match(/^(0x)?[0-9a-fA-F]*$/);t||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:e}),"0x"!==t[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:e}),(e=e.substring(2)).length%2&&(e="0"+e);for(var n=[],r=0;r<e.length;r+=2)n.push(parseInt(e.substr(r,2),16));return o(new Uint8Array(n))}function u(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=c(e[r]);t.push(i),n+=i.length}var a=new Uint8Array(n),s=0;for(r=0;r<t.length;r++)a.set(t[r],s),s+=t[r].length;return o(a)}function f(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}n.isHexable=a,n.isArrayish=A,n.arrayify=c,n.concat=u,n.stripZeros=function(e){var t=c(e);if(0===t.length)return t;for(var n=0;0===t[n];)n++;return n&&(t=t.slice(n)),t},n.padZeros=function(e,t){if(t<(e=c(e)).length)throw new Error("cannot pad");var n=new Uint8Array(t);return n.set(e,t-e.length),o(n)},n.isHexString=f;var h="0123456789abcdef";function d(e){if(a(e))return e.toHexString();if("number"==typeof e){e<0&&i.throwError("cannot hexlify negative value",i.INVALID_ARGUMENT,{arg:"value",value:e}),9007199254740991<=e&&i.throwError("out-of-range",i.NUMERIC_FAULT,{operartion:"hexlify",fault:"out-of-safe-range"});for(var t="";e;)t=h[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("string"==typeof e){var n=e.match(/^(0x)?[0-9a-fA-F]*$/);return n||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:e}),"0x"!==n[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:e}),e.length%2&&(e="0x0"+e.substring(2)),e}if(A(e)){for(var r=[],o=0;o<e.length;o++){var s=e[o];r.push(h[(240&s)>>4]+h[15&s])}return"0x"+r.join("")}return i.throwError("invalid hexlify value",null,{arg:"value",value:e}),"never"}function l(e,t){for(f(e)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:e});e.length<2*t+2;)e="0x0"+e.substring(2);return e}function g(e){var t=0,n="0x",r="0x";if(function(e){return e&&null!=e.r&&null!=e.s}(e)){null==e.v&&null==e.recoveryParam&&i.throwError("at least on of recoveryParam or v must be specified",i.INVALID_ARGUMENT,{argument:"signature",value:e}),n=l(e.r,32),r=l(e.s,32),"string"==typeof(t=e.v)&&(t=parseInt(t,16));var a=e.recoveryParam;null==a&&null!=e.v&&(a=1-t%2),t=27+a}else{var o=c(e);if(65!==o.length)throw new Error("invalid signature");n=d(o.slice(0,32)),r=d(o.slice(32,64)),27!==(t=o[64])&&28!==t&&(t=27+t%2)}return{r:n,s:r,recoveryParam:t-27,v:t}}n.hexlify=d,n.hexDataLength=function(e){return f(e)&&e.length%2==0?(e.length-2)/2:null},n.hexDataSlice=function(e,t,n){return f(e)||i.throwError("invalid hex data",i.INVALID_ARGUMENT,{arg:"value",value:e}),e.length%2!=0&&i.throwError("hex data length must be even",i.INVALID_ARGUMENT,{arg:"value",value:e}),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)},n.hexStripZeros=function(e){for(f(e)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:e});3<e.length&&"0x0"===e.substring(0,3);)e="0x"+e.substring(3);return e},n.hexZeroPad=l,n.splitSignature=g,n.joinSignature=function(e){return d(u([(e=g(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},{"../errors":5}],65:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("../errors")),a=e("./bytes"),o=e("./utf8"),s=e("./keccak256"),A=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),c=new RegExp("^((.*)\\.)?([^.]+)$"),u=new RegExp("^[a-z0-9.-]*$");n.namehash=function(e){"string"!=typeof e&&i.throwError("invalid address - "+String(e),i.INVALID_ARGUMENT,{argument:"name",value:e}),(e=e.toLowerCase()).match(u)||i.throwError("contains invalid UseSTD3ASCIIRules characters",i.INVALID_ARGUMENT,{argument:"name",value:e});for(var t=A;e.length;){var n=e.match(c),r=o.toUtf8Bytes(n[3]);t=s.keccak256(a.concat([t,s.keccak256(r)])),e=n[2]||""}return a.hexlify(t)},n.id=function(e){return s.keccak256(o.toUtf8Bytes(e))},n.hashMessage=function(e){return s.keccak256(a.concat([o.toUtf8Bytes("Ethereum Signed Message:\n"),o.toUtf8Bytes(String(e.length)),"string"==typeof e?o.toUtf8Bytes(e):e]))}},{"../errors":5,"./bytes":64,"./keccak256":71,"./utf8":85}],66:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("../errors")),a=e("../wordlists/lang-en"),o=e("./basex"),s=e("./bytes"),A=e("./bignumber"),c=e("./utf8"),u=e("./pbkdf2"),f=e("./hmac"),h=e("./properties"),d=e("./secp256k1"),l=e("./sha2"),g=A.bigNumberify("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=c.toUtf8Bytes("Bitcoin seed"),y=2147483648;function I(e){return(1<<e)-1<<8-e}function b(e){return s.hexZeroPad(s.hexlify(e),32)}function C(e){var t=s.hexDataSlice(l.sha256(l.sha256(e)),0,4);return o.Base58.encode(s.concat([e,t]))}var m={};n.defaultPath="m/44'/60'/0'/0/0";var E=(Object.defineProperty(B.prototype,"extendedKey",{get:function(){if(256<=this.depth)throw new Error("Depth too large!");return C(s.concat([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",s.hexlify(this.depth),this.parentFingerprint,s.hexZeroPad(s.hexlify(this.index),4),this.chainCode,null!=this.privateKey?s.concat(["0x00",this.privateKey]):this.publicKey]))},enumerable:!0,configurable:!0}),B.prototype.neuter=function(){return new B(m,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,null,this.path)},B.prototype._derive=function(e){if(4294967295<e)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~y));var n=new Uint8Array(37);if(e&y){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(s.arrayify(this.privateKey),1),t&&(t+="'")}else n.set(s.arrayify(this.publicKey));for(var r=24;0<=r;r-=8)n[33+(r>>3)]=e>>24-r&255;var i=f.computeHmac(f.SupportedAlgorithms.sha512,this.chainCode,n),a=i.slice(0,32),o=i.slice(32),c=null,u=null;return this.privateKey?c=b(A.bigNumberify(a).add(this.privateKey).mod(g)):u=new d.KeyPair(s.hexlify(a))._addPoint(this.publicKey),new B(m,c,u,this.fingerprint,b(o),e,this.depth+1,this.mnemonic,t)},B.prototype.derivePath=function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var n=this,r=0;r<t.length;r++){var i=t[r];if(i.match(/^[0-9]+'$/)){var a=parseInt(i.substring(0,i.length-1));if(y<=a)throw new Error("invalid path index - "+i);n=n._derive(y+a)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i);if(a=parseInt(i),y<=a)throw new Error("invalid path index - "+i);n=n._derive(a)}}return n},B.isHDNode=function(e){return h.isType(e,"HDNode")},B);function B(e,t,n,r,a,o,A,c,u){if(i.checkNew(this,B),e!==m)throw new Error("HDNode constructor cannot be called directly");if(t){var f=new d.KeyPair(t);h.defineReadOnly(this,"privateKey",f.privateKey),h.defineReadOnly(this,"publicKey",f.compressedPublicKey)}else h.defineReadOnly(this,"privateKey",null),h.defineReadOnly(this,"publicKey",s.hexlify(n));h.defineReadOnly(this,"parentFingerprint",r),h.defineReadOnly(this,"fingerprint",s.hexDataSlice(l.ripemd160(l.sha256(this.publicKey)),0,4)),h.defineReadOnly(this,"address",d.computeAddress(this.publicKey)),h.defineReadOnly(this,"chainCode",a),h.defineReadOnly(this,"index",o),h.defineReadOnly(this,"depth",A),h.defineReadOnly(this,"mnemonic",c),h.defineReadOnly(this,"path",u),h.setType(this,"HDNode")}function v(e,t){var n=s.arrayify(e);if(n.length<16||64<n.length)throw new Error("invalid seed");var r=s.arrayify(f.computeHmac(f.SupportedAlgorithms.sha512,p,n));return new E(m,b(r.slice(0,32)),null,"0x00000000",b(r.slice(32)),0,0,t,"m")}function w(e,t){t=t||"";var n=c.toUtf8Bytes("mnemonic"+t,c.UnicodeNormalizationForm.NFKD);return s.hexlify(u.pbkdf2(c.toUtf8Bytes(e,c.UnicodeNormalizationForm.NFKD),n,2048,64,"sha512"))}function Q(e,t){t=t||a.langEn,i.checkNormalize();var n=t.split(e);if(n.length%3!=0)throw new Error("invalid mnemonic");for(var r=s.arrayify(new Uint8Array(Math.ceil(11*n.length/8))),o=0,A=0;A<n.length;A++){var c=t.getWordIndex(n[A].normalize("NFKD"));if(-1===c)throw new Error("invalid mnemonic");for(var u=0;u<11;u++)c&1<<10-u&&(r[o>>3]|=1<<7-o%8),o++}var f=32*n.length/3,h=I(n.length/3),d=s.arrayify(l.sha256(r.slice(0,f/8)))[0];if((d&=h)!=(r[r.length-1]&h))throw new Error("invalid checksum");return s.hexlify(r.slice(0,f/8))}function S(e,t){if((e=s.arrayify(e)).length%4!=0||e.length<16||32<e.length)throw new Error("invalid entropy");for(var n=[0],r=11,i=0;i<e.length;i++)8<r?(n[n.length-1]<<=8,n[n.length-1]|=e[i],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[i]>>8-r,n.push(e[i]&(1<<8-r)-1),r+=3);var o=s.arrayify(l.sha256(e))[0],A=e.length/4;return o&=I(A),n[n.length-1]<<=A,n[n.length-1]|=o>>8-A,(t=t||a.langEn).join(n.map((function(e){return t.getWord(e)})))}n.HDNode=E,n.fromExtendedKey=function(e){var t=o.Base58.decode(e);82===t.length&&C(t.slice(0,78))===e||i.throwError("invalid extended key",i.INVALID_ARGUMENT,{argument:"extendedKey",value:"[REDACTED]"});var n=t[4],r=s.hexlify(t.slice(5,9)),a=parseInt(s.hexlify(t.slice(9,13)).substring(2),16),A=s.hexlify(t.slice(13,45)),c=t.slice(45,78);switch(s.hexlify(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new E(m,null,s.hexlify(c),r,A,a,n,null,null);case"0x0488ade4":case"0x04358394":if(0!==c[0])break;return new E(m,s.hexlify(c.slice(1)),null,r,A,a,n,null,null)}return i.throwError("invalid extended key",i.INVALID_ARGUMENT,{argument:"extendedKey",value:"[REDACTED]"})},n.fromMnemonic=function(e,t,n){return v(w(e=S(Q(e,t),t),n),e)},n.fromSeed=function(e){return v(e,null)},n.mnemonicToSeed=w,n.mnemonicToEntropy=Q,n.entropyToMnemonic=S,n.isValidMnemonic=function(e,t){try{return Q(e,t),!0}catch(e){}return!1}},{"../errors":5,"../wordlists/lang-en":90,"./basex":62,"./bignumber":63,"./bytes":64,"./hmac":67,"./pbkdf2":73,"./properties":74,"./secp256k1":77,"./sha2":79,"./utf8":85}],67:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i,a,o=r(e("hash.js")),s=e("../utils/bytes"),A=r(e("../errors"));(a=i=n.SupportedAlgorithms||(n.SupportedAlgorithms={})).sha256="sha256",a.sha512="sha512",n.computeHmac=function(e,t,n){return i[e]||A.throwError("unsupported algorithm "+e,A.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),s.arrayify(o.hmac(o[e],s.arrayify(t)).update(s.arrayify(n)).digest())}},{"../errors":5,"../utils/bytes":64,"hash.js":26}],68:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=e("./abi-coder");n.AbiCoder=i.AbiCoder,n.defaultAbiCoder=i.defaultAbiCoder,n.formatSignature=i.formatSignature,n.formatParamType=i.formatParamType,n.parseSignature=i.parseSignature,n.parseParamType=i.parseParamType;var a=e("./address");n.getAddress=a.getAddress,n.getContractAddress=a.getContractAddress,n.getCreate2Address=a.getCreate2Address,n.getIcapAddress=a.getIcapAddress;var o=r(e("./base64"));n.base64=o;var s=e("./bignumber");n.BigNumber=s.BigNumber,n.bigNumberify=s.bigNumberify;var A=e("./bytes");n.arrayify=A.arrayify,n.concat=A.concat,n.hexDataSlice=A.hexDataSlice,n.hexDataLength=A.hexDataLength,n.hexlify=A.hexlify,n.hexStripZeros=A.hexStripZeros,n.hexZeroPad=A.hexZeroPad,n.isHexString=A.isHexString,n.joinSignature=A.joinSignature,n.padZeros=A.padZeros,n.splitSignature=A.splitSignature,n.stripZeros=A.stripZeros;var c=e("./hash");n.hashMessage=c.hashMessage,n.id=c.id,n.namehash=c.namehash;var u=r(e("./hdnode"));n.HDNode=u;var f=e("./interface");n.Interface=f.Interface;var h=e("./json-wallet");n.getJsonWalletAddress=h.getJsonWalletAddress;var d=e("./keccak256");n.keccak256=d.keccak256;var l=e("./sha2");n.sha256=l.sha256;var g=e("./solidity");n.solidityKeccak256=g.keccak256,n.solidityPack=g.pack,n.soliditySha256=g.sha256;var p=e("./random-bytes");n.randomBytes=p.randomBytes;var y=e("./networks");n.getNetwork=y.getNetwork;var I=e("./properties");n.checkProperties=I.checkProperties,n.deepCopy=I.deepCopy,n.defineReadOnly=I.defineReadOnly,n.resolveProperties=I.resolveProperties,n.shallowCopy=I.shallowCopy;var b=r(e("./rlp"));n.RLP=b;var C=e("./secp256k1");n.computeAddress=C.computeAddress,n.computePublicKey=C.computePublicKey,n.recoverAddress=C.recoverAddress,n.recoverPublicKey=C.recoverPublicKey,n.verifyMessage=C.verifyMessage;var m=e("./signing-key");n.SigningKey=m.SigningKey;var E=e("./transaction");n.populateTransaction=E.populateTransaction;var B=e("./transaction");n.parseTransaction=B.parse,n.serializeTransaction=B.serialize;var v=e("./utf8");n.formatBytes32String=v.formatBytes32String,n.parseBytes32String=v.parseBytes32String,n.toUtf8Bytes=v.toUtf8Bytes,n.toUtf8String=v.toUtf8String;var w=e("./units");n.commify=w.commify,n.formatEther=w.formatEther,n.parseEther=w.parseEther,n.formatUnits=w.formatUnits,n.parseUnits=w.parseUnits;var Q=e("./web");n.fetchJson=Q.fetchJson,n.poll=Q.poll;var S=e("./hmac");n.SupportedAlgorithms=S.SupportedAlgorithms;var M=e("./utf8");n.UnicodeNormalizationForm=M.UnicodeNormalizationForm;var k=e("./wordlist");n.Wordlist=k.Wordlist},{"./abi-coder":59,"./address":60,"./base64":61,"./bignumber":63,"./bytes":64,"./hash":65,"./hdnode":66,"./hmac":67,"./interface":69,"./json-wallet":70,"./keccak256":71,"./networks":72,"./properties":74,"./random-bytes":75,"./rlp":76,"./secp256k1":77,"./sha2":79,"./signing-key":81,"./solidity":82,"./transaction":83,"./units":84,"./utf8":85,"./web":86,"./wordlist":87}],69:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};function o(e){for(var t in l.setType(this,"Description"),e)l.defineReadOnly(this,t,l.deepCopy(e[t],!0));Object.freeze(this)}Object.defineProperty(n,"__esModule",{value:!0});var s,A=e("./address"),c=e("./abi-coder"),u=e("./bignumber"),f=e("./bytes"),h=e("./hash"),d=e("./keccak256"),l=e("./properties"),g=a(e("../errors")),p=function(e){l.setType(this,"Indexed"),l.defineReadOnly(this,"hash",e)},y=(i(I,s=o),I.prototype.encode=function(e,t){f.isHexString(e)||g.throwError("invalid contract bytecode",g.INVALID_ARGUMENT,{arg:"bytecode",value:e}),g.checkArgumentCount(t.length,this.inputs.length," in Interface constructor");try{return e+c.defaultAbiCoder.encode(this.inputs,t).substring(2)}catch(e){g.throwError("invalid constructor argument",g.INVALID_ARGUMENT,{arg:e.arg,reason:e.reason,value:e.value})}return null},I);function I(){return null!==s&&s.apply(this,arguments)||this}var b,C=(i(m,b=o),m.prototype.encode=function(e){g.checkArgumentCount(e.length,this.inputs.length," in interface function "+this.name);try{return this.sighash+c.defaultAbiCoder.encode(this.inputs,e).substring(2)}catch(e){g.throwError("invalid input argument",g.INVALID_ARGUMENT,{arg:e.arg,reason:e.reason,value:e.value})}return null},m.prototype.decode=function(e){try{return c.defaultAbiCoder.decode(this.outputs,f.arrayify(e))}catch(t){g.throwError("invalid data for function output",g.INVALID_ARGUMENT,{arg:"data",errorArg:t.arg,errorValue:t.value,value:e,reason:t.reason})}},m);function m(){return null!==b&&b.apply(this,arguments)||this}var E,B=(i(v,E=o),v);function v(){return null!==E&&E.apply(this,arguments)||this}var w,Q=(i(S,w=o),S.prototype.encodeTopics=function(e){var t=this;e.length>this.inputs.length&&g.throwError("too many arguments for "+this.name,g.UNEXPECTED_ARGUMENT,{maxCount:e.length,expectedCount:this.inputs.length});var n=[];for(this.anonymous||n.push(this.topic),e.forEach((function(e,r){var i=t.inputs[r];i.indexed?null==e?n.push(null):"string"===i.type?n.push(h.id(e)):"bytes"===i.type?n.push(d.keccak256(e)):-1!==i.type.indexOf("[")||"tuple"===i.type.substring(0,5)?g.throwError("filtering with tuples or arrays not implemented yet; bug us on GitHub",g.NOT_IMPLEMENTED,{operation:"filter(array|tuple)"}):("address"===i.type&&A.getAddress(e),n.push(f.hexZeroPad(f.hexlify(e),32).toLowerCase())):null!=e&&g.throwError("cannot filter non-indexed parameters; must be null",g.INVALID_ARGUMENT,{argument:i.name||r,value:e})}));n.length&&null===n[n.length-1];)n.pop();return n},S.prototype.decode=function(e,t){null==t||this.anonymous||(t=t.slice(1));var n=[],r=[],i=[];if(this.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||0<=e.type.indexOf("[")||"tuple"===e.type.substring(0,5)?(n.push({type:"bytes32",name:e.name||""}),i.push(!0)):(n.push(e),i.push(!1)):(r.push(e),i.push(!1))})),null!=t)var a=c.defaultAbiCoder.decode(n,f.concat(t));var o=c.defaultAbiCoder.decode(r,f.arrayify(e)),s={},A=0,u=0;return this.inputs.forEach((function(e,n){e.indexed?null==t?s[n]=new p(null):i[n]?s[n]=new p(a[u++]):s[n]=a[u++]:s[n]=o[A++],e.name&&(s[e.name]=s[n])})),s.length=this.inputs.length,new B(s)},S);function S(){return null!==w&&w.apply(this,arguments)||this}var M,k=(i(D,M=o),D);function D(){return null!==M&&M.apply(this,arguments)||this}var _,x=(i(R,_=o),R);function R(){return null!==_&&_.apply(this,arguments)||this}function N(e){switch(e.type){case"constructor":var t=new y({inputs:e.inputs,payable:null==e.payable||!!e.payable});this.deployFunction||(this.deployFunction=t);break;case"function":var n=c.formatSignature(e).replace(/tuple/g,""),r=h.id(n).substring(0,10),i=!1;null!=e.constant?i=e.constant:null!=e.stateMutability&&(i="view"==e.stateMutability||"pure"==e.stateMutability),t=new C({inputs:e.inputs,outputs:e.outputs,gas:e.gas,payable:null==e.payable||!!e.payable,type:i?"call":"transaction",name:e.name,signature:n,sighash:r}),e.name&&(null==this.functions[e.name]?l.defineReadOnly(this.functions,e.name,t):g.warn("WARNING: Multiple definitions for "+e.name)),null==this.functions[t.signature]&&l.defineReadOnly(this.functions,t.signature,t);break;case"event":n=c.formatSignature(e).replace(/tuple/g,""),t=new Q({name:e.name,signature:n,inputs:e.inputs,topic:h.id(n),anonymous:!!e.anonymous}),e.name&&null==this.events[e.name]&&l.defineReadOnly(this.events,e.name,t),null==this.events[t.signature]&&l.defineReadOnly(this.events,t.signature,t);break;case"fallback":break;default:g.warn("WARNING: unsupported ABI type - "+e.type)}}var F=(H.prototype.parseTransaction=function(e){var t=e.data.substring(0,10).toLowerCase();for(var n in this.functions)if(-1!==n.indexOf("(")){var r=this.functions[n];if(r.sighash===t){var i=c.defaultAbiCoder.decode(r.inputs,"0x"+e.data.substring(10));return new k({args:i,decode:r.decode,name:r.name,signature:r.signature,sighash:r.sighash,value:u.bigNumberify(e.value||"0")})}}return null},H.prototype.parseLog=function(e){for(var t in this.events)if(-1!==t.indexOf("(")){var n=this.events[t];if(!n.anonymous&&n.topic===e.topics[0])return new x({decode:n.decode,name:n.name,signature:n.signature,topic:n.topic,values:n.decode(e.data,e.topics)})}return null},H.isInterface=function(e){return l.isType(e,"Interface")},H.isIndexed=function(e){return l.isType(e,"Indexed")},H);function H(e){if(g.checkNew(this,H),"string"==typeof e){try{e=JSON.parse(e)}catch(t){g.throwError("could not parse ABI JSON",g.INVALID_ARGUMENT,{arg:"abi",errorMessage:t.message,value:e})}if(!Array.isArray(e))return g.throwError("invalid abi",g.INVALID_ARGUMENT,{arg:"abi",value:e}),null}l.defineReadOnly(this,"functions",{}),l.defineReadOnly(this,"events",{});var t=[];e.forEach((function(e){"string"==typeof e&&(e=c.parseSignature(e)),t.push(e)})),l.defineReadOnly(this,"abi",l.deepCopy(t,!0)),t.forEach(N,this),this.deployFunction||N.call(this,{type:"constructor",inputs:[]}),l.setType(this,"Interface")}n.Interface=F},{"../errors":5,"./abi-coder":59,"./address":60,"./bignumber":63,"./bytes":64,"./hash":65,"./keccak256":71,"./properties":74}],70:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./address");function i(e){try{var t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function a(e){try{var t=JSON.parse(e)}catch(e){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}n.isCrowdsaleWallet=i,n.isSecretStorageWallet=a,n.getJsonWalletAddress=function(e){if(i(e))try{return r.getAddress(JSON.parse(e).ethaddr)}catch(e){return null}if(a(e))try{return r.getAddress(JSON.parse(e).address)}catch(e){return null}return null}},{"./address":60}],71:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("js-sha3"),i=e("./bytes");n.keccak256=function(e){return"0x"+r.keccak_256(i.arrayify(e))}},{"./bytes":64,"js-sha3":40}],72:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("../errors"));function a(e){return function(t){var n=[];return t.InfuraProvider&&n.push(new t.InfuraProvider(e)),t.EtherscanProvider&&n.push(new t.EtherscanProvider(e)),0===n.length?null:t.FallbackProvider?new t.FallbackProvider(n):n[0]}}function o(e,t){return function(n){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null}}var s={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},A={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},c={unspecified:{chainId:0,name:"unspecified"},homestead:s,mainnet:s,morden:{chainId:2,name:"morden"},ropsten:A,testnet:A,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},classic:{chainId:61,name:"classic",_defaultProvider:o("https://web3.gastracker.io","classic")},classicTestnet:{chainId:62,name:"classicTestnet",_defaultProvider:o("https://web3.gastracker.io/morden","classicTestnet")}};n.getNetwork=function(e){if(null==e)return null;if("number"==typeof e){for(var t in c){var n=c[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){var r=c[e];return null==r?null:{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress,_defaultProvider:r._defaultProvider||null}}var a=c[e.name];return a?(0!==e.chainId&&e.chainId!==a.chainId&&i.throwError("network chainId mismatch",i.INVALID_ARGUMENT,{arg:"network",value:e}),{name:e.name,chainId:a.chainId,ensAddress:e.ensAddress||a.ensAddress||null,_defaultProvider:e._defaultProvider||a._defaultProvider||null}):("number"!=typeof e.chainId&&i.throwError("invalid network chainId",i.INVALID_ARGUMENT,{arg:"network",value:e}),e)}},{"../errors":5}],73:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../utils/bytes"),i=e("./hmac");n.pbkdf2=function(e,t,n,a,o){var s;e=r.arrayify(e),t=r.arrayify(t);var A,c,u=1,f=new Uint8Array(a),h=new Uint8Array(t.length+4);h.set(t);for(var d=1;d<=u;d++){h[t.length]=d>>24&255,h[t.length+1]=d>>16&255,h[t.length+2]=d>>8&255,h[t.length+3]=255&d;var l=i.computeHmac(o,e,h);s||(s=l.length,c=new Uint8Array(s),A=a-((u=Math.ceil(a/s))-1)*s),c.set(l);for(var g=1;g<n;g++){l=i.computeHmac(o,e,l);for(var p=0;p<s;p++)c[p]^=l[p]}var y=(d-1)*s,I=d===u?A:s;f.set(r.arrayify(c).slice(0,I),y)}return r.arrayify(f)}},{"../utils/bytes":64,"./hmac":67}],74:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("../errors"));function a(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function o(e,t){return e&&e._ethersType===t}n.defineReadOnly=a,n.setType=function(e,t){Object.defineProperty(e,"_ethersType",{configurable:!1,value:t,writable:!1})},n.isType=o,n.resolveProperties=function(e){var t={},n=[];return Object.keys(e).forEach((function(r){var i=e[r];i instanceof Promise?n.push(i.then((function(e){return t[r]=e,null}))):t[r]=i})),Promise.all(n).then((function(){return t}))},n.checkProperties=function(e,t){e&&"object"==s(e)||i.throwError("invalid object",i.INVALID_ARGUMENT,{argument:"object",value:e}),Object.keys(e).forEach((function(n){t[n]||i.throwError("invalid object key - "+n,i.INVALID_ARGUMENT,{argument:"transaction",value:e,key:n})}))},n.shallowCopy=function(e){var t={};for(var n in e)t[n]=e[n];return t};var A={boolean:!0,number:!0,string:!0};n.deepCopy=function e(t,n){if(null==t||A[s(t)])return t;if(Array.isArray(t)){var r=t.map((function(t){return e(t,n)}));return n&&Object.freeze(r),r}if("object"==s(t)){if(o(t,"BigNumber"))return t;if(o(t,"Description"))return t;if(o(t,"Indexed"))return t;for(var i in r={},t){var c=t[i];void 0!==c&&a(r,i,e(c,n))}return n&&Object.freeze(r),r}if("function"==typeof t)return t;throw new Error("Cannot deepCopy "+s(t))},n.inheritable=function e(t){return function(n){!function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}(n,t),a(n,"inherits",e(n))}}},{"../errors":5}],75:[function(e,t,r){(function(t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../utils/bytes"),i=e("../utils/properties"),a=t.crypto||t.msCrypto;function o(e){if(e<=0||1024<e||parseInt(String(e))!=e)throw new Error("invalid length");var t=new Uint8Array(e);return a.getRandomValues(t),n.arrayify(t)}a&&a.getRandomValues||(console.log("WARNING: Missing strong random number source; using weak randomBytes"),a={getRandomValues:function(e){for(var t=0;t<20;t++)for(var n=0;n<e.length;n++)t?e[n]^=Math.trunc(256*Math.random()):e[n]=Math.trunc(256*Math.random());return e},_weakCrypto:!0}),r.randomBytes=o,!0===a._weakCrypto&&i.defineReadOnly(o,"_weakCrypto",!0)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils/bytes":64,"../utils/properties":74}],76:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./bytes");function i(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function a(e,t,n){for(var r=0,i=0;i<n;i++)r=256*r+e[t+i];return r}function o(e,t,n,r){for(var i=[];n<t+1+r;){var a=s(e,n);if(i.push(a.result),t+1+r<(n+=a.consumed))throw new Error("invalid rlp")}return{consumed:1+r,result:i}}function s(e,t){if(0===e.length)throw new Error("invalid rlp data");if(248<=e[t]){if(t+1+(n=e[t]-247)>e.length)throw new Error("too short");if(t+1+n+(i=a(e,t+1,n))>e.length)throw new Error("to short");return o(e,t,t+1+n,n+i)}if(192<=e[t]){if(t+1+(i=e[t]-192)>e.length)throw new Error("invalid rlp data");return o(e,t,t+1,i)}if(184<=e[t]){var n;if(t+1+(n=e[t]-183)>e.length)throw new Error("invalid rlp data");if(t+1+n+(i=a(e,t+1,n))>e.length)throw new Error("invalid rlp data");return{consumed:1+n+i,result:r.hexlify(e.slice(t+1+n,t+1+n+i))}}if(128<=e[t]){var i;if(t+1+(i=e[t]-128)>e.length)throw new Error("invalid rlp data");return{consumed:1+i,result:r.hexlify(e.slice(t+1,t+1+i))}}return{consumed:1,result:r.hexlify(e[t])}}n.encode=function(e){return r.hexlify(function e(t){if(Array.isArray(t)){var n=[];return t.forEach((function(t){n=n.concat(e(t))})),n.length<=55?(n.unshift(192+n.length),n):((a=i(n.length)).unshift(247+a.length),a.concat(n))}var a,o=Array.prototype.slice.call(r.arrayify(t));return 1===o.length&&o[0]<=127?o:o.length<=55?(o.unshift(128+o.length),o):((a=i(o.length)).unshift(183+a.length),a.concat(o))}(e))},n.decode=function(e){var t=r.arrayify(e),n=s(t,0);if(n.consumed!==t.length)throw new Error("invalid rlp data");return n.result}},{"./bytes":64}],77:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=e("elliptic"),a=e("./address"),o=e("./bytes"),s=e("./hash"),A=e("./keccak256"),c=e("./properties"),u=r(e("../errors")),f=null;function h(){return f=f||new i.ec("secp256k1")}var d=(l.prototype.sign=function(e){var t=h().keyFromPrivate(o.arrayify(this.privateKey)).sign(o.arrayify(e),{canonical:!0});return{recoveryParam:t.recoveryParam,r:o.hexZeroPad("0x"+t.r.toString(16),32),s:o.hexZeroPad("0x"+t.s.toString(16),32),v:27+t.recoveryParam}},l.prototype.computeSharedSecret=function(e){var t=h().keyFromPrivate(o.arrayify(this.privateKey)),n=h().keyFromPublic(o.arrayify(g(e)));return o.hexZeroPad("0x"+t.derive(n.getPublic()).toString(16),32)},l.prototype._addPoint=function(e){var t=h().keyFromPublic(o.arrayify(this.publicKey)),n=h().keyFromPublic(o.arrayify(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},l);function l(e){var t=h().keyFromPrivate(o.arrayify(e));c.defineReadOnly(this,"privateKey",o.hexlify(t.priv.toArray("be",32))),c.defineReadOnly(this,"publicKey","0x"+t.getPublic(!1,"hex")),c.defineReadOnly(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),c.defineReadOnly(this,"publicKeyBytes",t.getPublic().encode(null,!0))}function g(e,t){var n=o.arrayify(e);if(32!==n.length)return 33===n.length?t?o.hexlify(n):"0x"+h().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+h().keyFromPublic(n).getPublic(!0,"hex"):o.hexlify(n):(u.throwError("invalid public or private key",u.INVALID_ARGUMENT,{arg:"key",value:"[REDACTED]"}),null);var r=new d(n);return t?r.compressedPublicKey:r.publicKey}function p(e){var t="0x"+g(e).slice(4);return a.getAddress("0x"+A.keccak256(t).substring(26))}function y(e,t){var n=o.splitSignature(t),r={r:o.arrayify(n.r),s:o.arrayify(n.s)};return"0x"+h().recoverPubKey(o.arrayify(e),r,n.recoveryParam).encode("hex",!1)}function I(e,t){return p(y(o.arrayify(e),t))}n.KeyPair=d,n.computePublicKey=g,n.computeAddress=p,n.recoverPublicKey=y,n.recoverAddress=I,n.verifyMessage=function(e,t){return I(s.hashMessage(e),t)}},{"../errors":5,"./address":60,"./bytes":64,"./hash":65,"./keccak256":71,"./properties":74,elliptic:12}],78:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var a=r(e("aes-js")),o=r(e("scrypt-js")),s=r(e("uuid")),A=e("./signing-key"),c=i(e("./hdnode")),u=e("./address"),f=e("./bytes"),h=e("./pbkdf2"),d=e("./keccak256"),l=e("./utf8"),g=e("./random-bytes");function p(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),f.arrayify(e)}function y(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function I(e){return"string"==typeof e?l.toUtf8Bytes(e,l.UnicodeNormalizationForm.NFKC):f.arrayify(e)}function b(e,t){for(var n=e,r=t.toLowerCase().split("/"),i=0;i<r.length;i++){var a=null;for(var o in n)if(o.toLowerCase()===r[i]){a=n[o];break}if(null===a)return null;n=a}return n}n.decryptCrowdsale=function(e,t){var n=JSON.parse(e);t=I(t);var r=u.getAddress(b(n,"ethaddr")),i=p(b(n,"encseed"));if(!i||i.length%16!=0)throw new Error("invalid encseed");var o=h.pbkdf2(t,t,2e3,32,"sha256").slice(0,16),s=i.slice(0,16),c=i.slice(16),g=new a.default.ModeOfOperation.cbc(o,s),y=f.arrayify(g.decrypt(c));y=a.default.padding.pkcs7.strip(y);for(var C="",m=0;m<y.length;m++)C+=String.fromCharCode(y[m]);var E=l.toUtf8Bytes(C),B=new A.SigningKey(d.keccak256(E));if(B.address!==r)throw new Error("corrupt crowdsale wallet");return B},n.decrypt=function(e,t,n){function r(e,t){var n=p(b(i,"crypto/ciphertext"));if(f.hexlify(function(e,t){return d.keccak256(f.concat([e,t]))}(e.slice(16,32),n)).substring(2)!==b(i,"crypto/mac").toLowerCase())return t(new Error("invalid password")),null;var r=function(e,t){if("aes-128-ctr"!==b(i,"crypto/cipher"))return null;var n=p(b(i,"crypto/cipherparams/iv")),r=new a.default.Counter(n),o=new a.default.ModeOfOperation.ctr(e,r);return f.arrayify(o.decrypt(t))}(e.slice(0,16),n),o=e.slice(32,64);if(!r)return t(new Error("unsupported cipher")),null;var s=new A.SigningKey(r);if(i.address&&s.address!==u.getAddress(i.address))return t(new Error("address mismatch")),null;var h=b(i,"x-ethers/locale");if("0.1"===b(i,"x-ethers/version")&&(null==h||"en"===h)){var l=p(b(i,"x-ethers/mnemonicCiphertext")),g=p(b(i,"x-ethers/mnemonicCounter")),y=new a.default.Counter(g),I=new a.default.ModeOfOperation.ctr(o,y),C=b(i,"x-ethers/path")||c.defaultPath,m=f.arrayify(I.decrypt(l)),E=c.entropyToMnemonic(m),B=c.fromMnemonic(E).derivePath(C);if(B.privateKey!=f.hexlify(r))return t(new Error("mnemonic mismatch")),null;s=new A.SigningKey(B)}return s}var i=JSON.parse(e),s=I(t);return new Promise((function(e,t){var a=b(i,"crypto/kdf");if(a&&"string"==typeof a)if("scrypt"===a.toLowerCase()){var A=p(b(i,"crypto/kdfparams/salt")),c=parseInt(b(i,"crypto/kdfparams/n")),u=parseInt(b(i,"crypto/kdfparams/r")),d=parseInt(b(i,"crypto/kdfparams/p"));if(!c||!u||!d)return void t(new Error("unsupported key-derivation function parameters"));if(0!=(c&c-1))return void t(new Error("unsupported key-derivation function parameter value for N"));if(32!==(y=parseInt(b(i,"crypto/kdfparams/dklen"))))return void t(new Error("unsupported key-derivation derived-key length"));n&&n(0),o.default(s,A,c,u,d,64,(function(i,a,o){if(i)i.progress=a,t(i);else if(o){var s=r(o=f.arrayify(o),t);if(!s)return;n&&n(1),e(s)}else if(n)return n(a)}))}else if("pbkdf2"===a.toLowerCase()){A=p(b(i,"crypto/kdfparams/salt"));var l=null,g=b(i,"crypto/kdfparams/prf");if("hmac-sha256"===g)l="sha256";else{if("hmac-sha512"!==g)return void t(new Error("unsupported prf"));l="sha512"}var y,I=parseInt(b(i,"crypto/kdfparams/c"));if(32!==(y=parseInt(b(i,"crypto/kdfparams/dklen"))))return void t(new Error("unsupported key-derivation derived-key length"));var C=r(h.pbkdf2(s,A,I,y,l),t);if(!C)return;e(C)}else t(new Error("unsupported key-derivation function"));else t(new Error("unsupported key-derivation function"))}))},n.encrypt=function(e,t,n,r){var i;if("function"!=typeof n||r||(r=n,n={}),n=n||{},32!==(i=A.SigningKey.isSigningKey(e)?f.arrayify(e.privateKey):f.arrayify(e)).length)throw new Error("invalid private key");var u=I(t),h=null;if(n.entropy&&(h=f.arrayify(n.entropy)),n.mnemonic)if(h){if(c.entropyToMnemonic(h)!==n.mnemonic)throw new Error("entropy and mnemonic mismatch")}else h=f.arrayify(c.mnemonicToEntropy(n.mnemonic,n.wordlist));var l=n.path;h&&!l&&(l=c.defaultPath);var p,b=n.client;b=b||"ethers.js",p=n.salt?f.arrayify(n.salt):g.randomBytes(32);var C=null;if(n.iv){if(16!==(C=f.arrayify(n.iv)).length)throw new Error("invalid iv")}else C=g.randomBytes(16);var m=null;if(n.uuid){if(16!==(m=f.arrayify(n.uuid)).length)throw new Error("invalid uuid")}else m=g.randomBytes(16);var E=1<<17,B=8,v=1;return n.scrypt&&(n.scrypt.N&&(E=n.scrypt.N),n.scrypt.r&&(B=n.scrypt.r),n.scrypt.p&&(v=n.scrypt.p)),new Promise((function(e,t){r&&r(0),o.default(u,p,E,B,v,64,(function(o,c,u){if(o)o.progress=c,t(o);else if(u){var I=(u=f.arrayify(u)).slice(0,16),w=u.slice(16,32),Q=u.slice(32,64),S=new A.SigningKey(i).address,M=new a.default.Counter(C),k=new a.default.ModeOfOperation.ctr(I,M),D=f.arrayify(k.encrypt(i)),_=d.keccak256(f.concat([w,D])),x={address:S.substring(2).toLowerCase(),id:s.default.v4({random:m}),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:f.hexlify(C).substring(2)},ciphertext:f.hexlify(D).substring(2),kdf:"scrypt",kdfparams:{salt:f.hexlify(p).substring(2),n:E,dklen:32,p:v,r:B},mac:_.substring(2)}};if(h){var R=g.randomBytes(16),N=new a.default.Counter(R),F=new a.default.ModeOfOperation.ctr(Q,N),H=f.arrayify(F.encrypt(h)),L=new Date,U=L.getUTCFullYear()+"-"+y(L.getUTCMonth()+1,2)+"-"+y(L.getUTCDate(),2)+"T"+y(L.getUTCHours(),2)+"-"+y(L.getUTCMinutes(),2)+"-"+y(L.getUTCSeconds(),2)+".0Z";x["x-ethers"]={client:b,gethFilename:"UTC--"+U+"--"+x.address,mnemonicCounter:f.hexlify(R).substring(2),mnemonicCiphertext:f.hexlify(H).substring(2),path:l,version:"0.1"},n.wordlist&&"string"==typeof n.wordlist.locale&&(x["x-ethers"].locale=n.wordlist.locale)}r&&r(1),e(JSON.stringify(x))}else if(r)return r(c)}))}))}},{"./address":60,"./bytes":64,"./hdnode":66,"./keccak256":71,"./pbkdf2":73,"./random-bytes":75,"./signing-key":81,"./utf8":85,"aes-js":8,"scrypt-js":44,uuid:48}],79:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("hash.js")),a=e("./bytes");n.ripemd160=function(e){return"0x"+i.default.ripemd160().update(a.arrayify(e)).digest("hex")},n.sha256=function(e){return"0x"+i.default.sha256().update(a.arrayify(e)).digest("hex")},n.sha512=function(e){return"0x"+i.default.sha512().update(a.arrayify(e)).digest("hex")}},{"./bytes":64,"hash.js":26}],80:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e("setimmediate"),n.platform="browser"},{setimmediate:45}],81:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=e("./hdnode"),a=e("./bytes"),o=e("./properties"),A=e("./secp256k1"),c=r(e("../errors")),u=(f.prototype.signDigest=function(e){return this.keyPair.sign(e)},f.prototype.computeSharedSecret=function(e){return this.keyPair.computeSharedSecret(a.arrayify(e))},f.isSigningKey=function(e){return o.isType(e,"SigningKey")},f);function f(e){var t;c.checkNew(this,f),t=i.HDNode.isHDNode(e)?(o.defineReadOnly(this,"mnemonic",e.mnemonic),o.defineReadOnly(this,"path",e.path),a.arrayify(e.privateKey)):("string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e),a.arrayify(e));try{32!==t.length&&c.throwError("exactly 32 bytes required",c.INVALID_ARGUMENT,{arg:"privateKey",value:"[REDACTED]"})}catch(e){var n={arg:"privateKey",reason:e.reason,value:"[REDACTED]"};e.value&&("number"==typeof e.value.length&&(n.length=e.value.length),n.type=s(e.value)),c.throwError("invalid private key",e.code,n)}o.defineReadOnly(this,"privateKey",a.hexlify(t)),o.defineReadOnly(this,"keyPair",new A.KeyPair(t)),o.defineReadOnly(this,"publicKey",this.keyPair.publicKey),o.defineReadOnly(this,"address",A.computeAddress(this.keyPair.publicKey)),o.setType(this,"SigningKey")}n.SigningKey=u},{"../errors":5,"./bytes":64,"./hdnode":66,"./properties":74,"./secp256k1":77}],82:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./bignumber"),i=e("./bytes"),a=e("./utf8"),o=e("./keccak256"),s=e("./sha2"),A=new RegExp("^bytes([0-9]+)$"),c=new RegExp("^(u?int)([0-9]*)$"),u=new RegExp("^(.*)\\[([0-9]*)\\]$");function f(e,t){if(e.length!=t.length)throw new Error("type/value count mismatch");var n=[];return e.forEach((function(e,o){n.push(function e(t,n,o){switch(t){case"address":return o?i.padZeros(n,32):i.arrayify(n);case"string":return a.toUtf8Bytes(n);case"bytes":return i.arrayify(n);case"bool":return n=n?"0x01":"0x00",o?i.padZeros(n,32):i.arrayify(n)}var s=t.match(c);if(s){if((f=parseInt(s[2]||"256"))%8!=0||0===f||256<f)throw new Error("invalid number type - "+t);return o&&(f=256),n=r.bigNumberify(n).toTwos(f),i.padZeros(n,f/8)}if(s=t.match(A)){var f=parseInt(s[1]);if(String(f)!=s[1]||0===f||32<f)throw new Error("invalid number type - "+t);if(i.arrayify(n).byteLength!==f)throw new Error("invalid value for "+t);return o?i.arrayify((n+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):n}if((s=t.match(u))&&Array.isArray(n)){var h=s[1];if(parseInt(s[2]||String(n.length))!=n.length)throw new Error("invalid value for "+t);var d=[];return n.forEach((function(t){d.push(e(h,t,!0))})),i.concat(d)}throw new Error("unknown type - "+t)}(e,t[o]))})),i.hexlify(i.concat(n))}n.pack=f,n.keccak256=function(e,t){return o.keccak256(f(e,t))},n.sha256=function(e,t){return s.sha256(f(e,t))}},{"./bignumber":63,"./bytes":64,"./keccak256":71,"./sha2":79,"./utf8":85}],83:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=e("../constants"),a=r(e("../errors")),o=e("./secp256k1"),s=e("./address"),A=e("./bignumber"),c=e("./bytes"),u=e("./keccak256"),f=e("./properties"),h=r(e("./rlp")),d=e("../providers/abstract-provider");function l(e){return"0x"===e?i.Zero:A.bigNumberify(e)}var g=[{name:"nonce",maxLength:32},{name:"gasPrice",maxLength:32},{name:"gasLimit",maxLength:32},{name:"to",length:20},{name:"value",maxLength:32},{name:"data"}],p={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};n.serialize=function(e,t){f.checkProperties(e,p);var n=[];g.forEach((function(t){var r=e[t.name]||[];r=c.arrayify(c.hexlify(r)),t.length&&r.length!==t.length&&0<r.length&&a.throwError("invalid length for "+t.name,a.INVALID_ARGUMENT,{arg:"transaction"+t.name,value:r}),t.maxLength&&(r=c.stripZeros(r)).length>t.maxLength&&a.throwError("invalid length for "+t.name,a.INVALID_ARGUMENT,{arg:"transaction"+t.name,value:r}),n.push(c.hexlify(r))})),null!=e.chainId&&0!==e.chainId&&(n.push(c.hexlify(e.chainId)),n.push("0x"),n.push("0x"));var r=h.encode(n);if(!t)return r;var i=c.splitSignature(t),o=27+i.recoveryParam;return 9===n.length&&(n.pop(),n.pop(),n.pop(),o+=2*e.chainId+8),n.push(c.hexlify(o)),n.push(c.stripZeros(c.arrayify(i.r))),n.push(c.stripZeros(c.arrayify(i.s))),h.encode(n)},n.parse=function(e){var t=h.decode(e);9!==t.length&&6!==t.length&&a.throwError("invalid raw transaction",a.INVALID_ARGUMENT,{arg:"rawTransactin",value:e});var n={nonce:l(t[0]).toNumber(),gasPrice:l(t[1]),gasLimit:l(t[2]),to:function(e){return"0x"===e?null:s.getAddress(e)}(t[3]),value:l(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=A.bigNumberify(t[6]).toNumber()}catch(e){return a.info(e),n}if(n.r=c.hexZeroPad(t[7],32),n.s=c.hexZeroPad(t[8],32),A.bigNumberify(n.r).isZero()&&A.bigNumberify(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var r=n.v-27,i=t.slice(0,6);0!==n.chainId&&(i.push(c.hexlify(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);var f=u.keccak256(h.encode(i));try{n.from=o.recoverAddress(f,{r:c.hexlify(n.r),s:c.hexlify(n.s),recoveryParam:r})}catch(e){a.info(e)}n.hash=u.keccak256(e)}return n},n.populateTransaction=function(e,t,n){d.Provider.isProvider(t)||a.throwError("missing provider",a.INVALID_ARGUMENT,{argument:"provider",value:t}),f.checkProperties(e,p);var r=f.shallowCopy(e);if(null!=r.to&&(r.to=t.resolveName(r.to)),null==r.gasPrice&&(r.gasPrice=t.getGasPrice()),null==r.nonce&&(r.nonce=t.getTransactionCount(n)),null==r.gasLimit){var i=f.shallowCopy(r);i.from=n,r.gasLimit=t.estimateGas(i)}return null==r.chainId&&(r.chainId=t.getNetwork().then((function(e){return e.chainId}))),f.resolveProperties(r)}},{"../constants":3,"../errors":5,"../providers/abstract-provider":50,"./address":60,"./bignumber":63,"./bytes":64,"./keccak256":71,"./properties":74,"./rlp":76,"./secp256k1":77}],84:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i,a=e("../constants"),o=r(e("../errors")),s=e("./bignumber"),A={};function c(e){return{decimals:e.length-1,tenPower:s.bigNumberify(e)}}function u(e){var t=A[String(e).toLowerCase()];if(!t&&"number"==typeof e&&parseInt(String(e))==e&&0<=e&&e<=256){for(var n="1",r=0;r<e;r++)n+="0";t=c(n)}return t||o.throwError("invalid unitType",o.INVALID_ARGUMENT,{argument:"name",value:e}),t}function f(e,t){var n=u(t),r=(e=s.bigNumberify(e)).lt(a.Zero);r&&(e=e.mul(a.NegativeOne));for(var i=e.mod(n.tenPower).toString();i.length<n.decimals;)i="0"+i;return i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1],e=e.div(n.tenPower).toString()+"."+i,r&&(e="-"+e),e}function h(e,t){null==t&&(t=18);var n=u(t);if("string"==typeof e&&e.match(/^-?[0-9.,]+$/)||o.throwError("invalid decimal value",o.INVALID_ARGUMENT,{arg:"value",value:e}),0===n.decimals)return s.bigNumberify(e);var r="-"===e.substring(0,1);r&&(e=e.substring(1)),"."===e&&o.throwError("missing value",o.INVALID_ARGUMENT,{arg:"value",value:e});var i=e.split(".");2<i.length&&o.throwError("too many decimal points",o.INVALID_ARGUMENT,{arg:"value",value:e});var A=i[0],c=i[1];for(A=A||"0",(c=c||"0").length>n.decimals&&o.throwError("underflow occurred",o.NUMERIC_FAULT,{operation:"division",fault:"underflow"});c.length<n.decimals;)c+="0";var f=s.bigNumberify(A),h=s.bigNumberify(c),d=f.mul(n.tenPower).add(h);return r&&(d=d.mul(a.NegativeOne)),d}i="1",["wei","kwei","Mwei","Gwei","szabo","finney","ether"].forEach((function(e){var t=c(i);A[e.toLowerCase()]=t,A[String(t.decimals)]=t,i+="000"})),n.commify=function(e){var t=String(e).split(".");(2<t.length||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&o.throwError("invalid value",o.INVALID_ARGUMENT,{argument:"value",value:e});var n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");var i="";2===t.length&&(i="."+(t[1]||"0"));for(var a=[];n.length;){if(n.length<=3){a.unshift(n);break}var s=n.length-3;a.unshift(n.substring(s)),n=n.substring(0,s)}return r+a.join(",")+i},n.formatUnits=f,n.parseUnits=h,n.formatEther=function(e){return f(e,18)},n.parseEther=function(e){return h(e,18)}},{"../constants":3,"../errors":5,"./bignumber":63}],85:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,a=e("../constants"),o=e("../errors"),s=e("./bytes");function A(e,t){void 0===t&&(t=r.current),t!=r.current&&(o.checkNormalize(),e=e.normalize(t));for(var n=[],i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a<128)n.push(a);else if(a<2048)n.push(a>>6|192),n.push(63&a|128);else if(55296==(64512&a)){i++;var A=e.charCodeAt(i);if(i>=e.length||56320!=(64512&A))throw new Error("invalid utf-8 string");a=65536+((1023&a)<<10)+(1023&A),n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)}else n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)}return s.arrayify(n)}function c(e,t){e=s.arrayify(e);for(var n="",r=0;r<e.length;){var i=e[r++];if(i>>7!=0){var a=null,o=null;if(192==(224&i))a=1,o=127;else if(224==(240&i))a=2,o=2047;else{if(240!=(248&i)){if(t)continue;if(128==(192&i))throw new Error("invalid utf8 byte sequence; unexpected continuation byte");throw new Error("invalid utf8 byte sequence; invalid prefix")}a=3,o=65535}if(r+a>e.length){if(!t)throw new Error("invalid utf8 byte sequence; too short");for(;r<e.length&&e[r]>>6==2;r++);}else{for(var A=i&(1<<8-a-1)-1,c=0;c<a;c++){var u=e[r];if(128!=(192&u)){A=null;break}A=A<<6|63&u,r++}if(null!==A)if(A<=o){if(!t)throw new Error("invalid utf8 byte sequence; overlong")}else if(1114111<A){if(!t)throw new Error("invalid utf8 byte sequence; out-of-range")}else if(55296<=A&&A<=57343){if(!t)throw new Error("invalid utf8 byte sequence; utf-16 surrogate")}else A<=65535?n+=String.fromCharCode(A):(A-=65536,n+=String.fromCharCode(55296+(A>>10&1023),56320+(1023&A)));else if(!t)throw new Error("invalid utf8 byte sequence; invalid continuation byte")}}else n+=String.fromCharCode(i)}return n}(i=r=n.UnicodeNormalizationForm||(n.UnicodeNormalizationForm={})).current="",i.NFC="NFC",i.NFD="NFD",i.NFKC="NFKC",i.NFKD="NFKD",n.toUtf8Bytes=A,n.toUtf8String=c,n.formatBytes32String=function(e){var t=A(e);if(31<t.length)throw new Error("bytes32 string must be less than 32 bytes");return s.hexlify(s.concat([t,a.HashZero]).slice(0,32))},n.parseBytes32String=function(e){var t=s.arrayify(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var n=31;0===t[n-1];)n--;return c(t.slice(0,n))}},{"../constants":3,"../errors":5,"./bytes":64}],86:[function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=e("xmlhttprequest"),a=e("./base64"),o=e("./properties"),A=e("./utf8"),c=r(e("../errors"));n.fetchJson=function(e,t,n){var r={},o=null,u=12e4;if("string"==typeof e)o=e;else if("object"==s(e)){if(null==e.url&&c.throwError("missing URL",c.MISSING_ARGUMENT,{arg:"url"}),o=e.url,"number"==typeof e.timeout&&0<e.timeout&&(u=e.timeout),e.headers)for(var f in e.headers)r[f.toLowerCase()]={key:f,value:String(e.headers[f])};if(null!=e.user&&null!=e.password){"https:"!==o.substring(0,6)&&!0!==e.allowInsecure&&c.throwError("basic authentication requires a secure https url",c.INVALID_ARGUMENT,{arg:"url",url:o,user:e.user,password:"[REDACTED]"});var h=e.user+":"+e.password;r.authorization={key:"Authorization",value:"Basic "+a.encode(A.toUtf8Bytes(h))}}}return new Promise((function(e,a){var s=new i.XMLHttpRequest,A=null;function c(){null!=A&&(clearTimeout(A),A=null)}A=setTimeout((function(){null!=A&&(A=null,a(new Error("timeout")),setTimeout((function(){s.abort()}),0))}),u),t?(s.open("POST",o,!0),r["content-type"]={key:"Content-Type",value:"application/json"}):s.open("GET",o,!0),Object.keys(r).forEach((function(e){var t=r[e];s.setRequestHeader(t.key,t.value)})),s.onreadystatechange=function(){if(4===s.readyState){if(200!=s.status){c();var r=new Error("invalid response - "+s.status);return r.statusCode=s.status,s.responseText&&(r.responseText=s.responseText),void a(r)}var i=null;try{i=JSON.parse(s.responseText)}catch(r){c();var A=new Error("invalid json response");return A.orginialError=r,A.responseText=s.responseText,null!=t&&(A.requestBody=t),A.url=o,void a(A)}if(n)try{i=n(i)}catch(r){return c(),r.url=o,r.body=t,r.responseText=s.responseText,void a(r)}c(),e(i)}},s.onerror=function(e){c(),a(e)};try{null!=t?s.send(t):s.send()}catch(A){c();var f=new Error("connection error");f.error=A,a(f)}}))},n.poll=function(e,t){return t=t||{},null==(t=o.shallowCopy(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(n,r){var i=null,a=!1,o=function(){return!a&&(a=!0,i&&clearTimeout(i),!0)};t.timeout&&(i=setTimeout((function(){o()&&r(new Error("timeout"))}),t.timeout));var s=t.fastRetry||null,A=0;!function i(){return e().then((function(e){if(void 0!==e)o()&&n(e);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!a){A++;var r=t.interval*parseInt(String(Math.random()*Math.pow(2,A)));r<t.floor&&(r=t.floor),r>t.ceiling&&(r=t.ceiling),s&&(A--,r=s,s=null),setTimeout(i,r)}return null}),(function(e){o()&&r(e)}))}()}))}},{"../errors":5,"./base64":61,"./properties":74,"./utf8":85,xmlhttprequest:49}],87:[function(e,t,r){(function(t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../utils/hash"),i=e("../utils/properties");r.check=function(e){for(var t=[],r=0;r<2048;r++){var i=e.getWord(r);if(r!==e.getWordIndex(i))return"0x";t.push(i)}return n.id(t.join("\n")+"\n")};var a=(o.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},o.prototype.join=function(e){return e.join(" ")},o);function o(e){i.defineReadOnly(this,"locale",e)}r.Wordlist=a,r.register=function(e,t){t=t||e.locale}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils/hash":65,"../utils/properties":74}],88:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var o,s=e("./utils/bytes"),A=e("./utils/hash"),c=e("./utils/hdnode"),u=e("./utils/json-wallet"),f=e("./utils/keccak256"),h=e("./utils/properties"),d=e("./utils/random-bytes"),l=a(e("./utils/secret-storage")),g=e("./utils/signing-key"),p=e("./utils/transaction"),y=e("./abstract-signer"),I=e("./providers/abstract-provider"),b=a(e("./errors")),C=(i(m,o=y.Signer),Object.defineProperty(m.prototype,"address",{get:function(){return this.signingKey.address},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"mnemonic",{get:function(){return this.signingKey.mnemonic},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"path",{get:function(){return this.signingKey.path},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"privateKey",{get:function(){return this.signingKey.privateKey},enumerable:!0,configurable:!0}),m.prototype.connect=function(e){return I.Provider.isProvider(e)||b.throwError("invalid provider",b.INVALID_ARGUMENT,{argument:"provider",value:e}),new m(this.signingKey,e)},m.prototype.getAddress=function(){return Promise.resolve(this.address)},m.prototype.sign=function(e){var t=this;return h.resolveProperties(e).then((function(e){var n=p.serialize(e),r=t.signingKey.signDigest(f.keccak256(n));return p.serialize(e,r)}))},m.prototype.signMessage=function(e){return Promise.resolve(s.joinSignature(this.signingKey.signDigest(A.hashMessage(e))))},m.prototype.getBalance=function(e){if(!this.provider)throw new Error("missing provider");return this.provider.getBalance(this.address,e)},m.prototype.getTransactionCount=function(e){if(!this.provider)throw new Error("missing provider");return this.provider.getTransactionCount(this.address,e)},m.prototype.sendTransaction=function(e){var t=this;if(!this.provider)throw new Error("missing provider");return null==e.nonce&&((e=h.shallowCopy(e)).nonce=this.getTransactionCount("pending")),p.populateTransaction(e,this.provider,this.address).then((function(e){return t.sign(e).then((function(e){return t.provider.sendTransaction(e)}))}))},m.prototype.encrypt=function(e,t,n){if("function"!=typeof t||n||(n=t,t={}),n&&"function"!=typeof n)throw new Error("invalid callback");return t=t||{},this.mnemonic&&((t=h.shallowCopy(t)).mnemonic=this.mnemonic,t.path=this.path),l.encrypt(this.privateKey,e,t,n)},m.createRandom=function(e){var t=d.randomBytes(16);(e=e||{}).extraEntropy&&(t=s.arrayify(f.keccak256(s.concat([t,e.extraEntropy])).substring(0,34)));var n=c.entropyToMnemonic(t,e.locale);return m.fromMnemonic(n,e.path,e.locale)},m.fromEncryptedJson=function(e,t,n){if(u.isCrowdsaleWallet(e))try{n&&n(0);var r=l.decryptCrowdsale(e,t);return n&&n(1),Promise.resolve(new m(r))}catch(e){return Promise.reject(e)}else if(u.isSecretStorageWallet(e))return l.decrypt(e,t,n).then((function(e){return new m(e)}));return Promise.reject("invalid wallet JSON")},m.fromMnemonic=function(e,t,n){return t=t||c.defaultPath,new m(c.fromMnemonic(e,n).derivePath(t))},m);function m(e,t){var n=o.call(this)||this;return b.checkNew(n,m),g.SigningKey.isSigningKey(e)?h.defineReadOnly(n,"signingKey",e):h.defineReadOnly(n,"signingKey",new g.SigningKey(e)),h.defineReadOnly(n,"provider",t),n}n.Wallet=C},{"./abstract-signer":2,"./errors":5,"./providers/abstract-provider":50,"./utils/bytes":64,"./utils/hash":65,"./utils/hdnode":66,"./utils/json-wallet":70,"./utils/keccak256":71,"./utils/properties":74,"./utils/random-bytes":75,"./utils/secret-storage":78,"./utils/signing-key":81,"./utils/transaction":83}],89:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../wordlists/lang-en").langEn;n.en=r},{"../wordlists/lang-en":90}],90:[function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var a,o=e("../utils/wordlist"),s=null;function A(e){if(null==s&&(s="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==o.check(e)))throw s=null,new Error("BIP39 Wordlist for en (English) FAILED")}function c(){return a.call(this,"en")||this}var u=new(i(c,a=o.Wordlist),c.prototype.getWord=function(e){return A(this),s[e]},c.prototype.getWordIndex=function(e){return A(this),s.indexOf(e)},c);n.langEn=u,o.register(u)},{"../utils/wordlist":87}]},{},[7])(7)},"object"==s(t)&&void 0!==e?e.exports=o():(i=[],void 0===(a="function"==typeof(r=o)?r.apply(t,i):r)||(e.exports=a))}).call(this,n(5))},function(e,t,n){"use strict";function r(e){return(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})(e)}var i,a="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function A(){A.init.call(this)}e.exports=A,A.EventEmitter=A,A.prototype._events=void 0,A.prototype._eventsCount=0,A.prototype._maxListeners=void 0;var c=10;function u(e){return void 0===e._maxListeners?A.defaultMaxListeners:e._maxListeners}function f(e,t,n,i){var a,o,s,A;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(n));if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(a=u(e))>0&&s.length>a&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,A=c,console&&console.warn&&console.warn(A)}return e}function h(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,e))}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function l(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(A,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),A.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},A.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},A.prototype.getMaxListeners=function(){return u(this)},A.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var A=i[e];if(void 0===A)return!1;if("function"==typeof A)o(A,this,t);else{var c=A.length,u=p(A,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},A.prototype.addListener=function(e,t){return f(this,e,t,!1)},A.prototype.on=A.prototype.addListener,A.prototype.prependListener=function(e,t){return f(this,e,t,!0)},A.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.on(e,d(this,e,t)),this},A.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.prependListener(e,d(this,e,t)),this},A.prototype.removeListener=function(e,t){var n,i,a,o,s;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));if(void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,a=o;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},A.prototype.off=A.prototype.removeListener,A.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},A.prototype.listeners=function(e){return l(this,e,!0)},A.prototype.rawListeners=function(e){return l(this,e,!1)},A.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},A.prototype.listenerCount=g,A.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){(function(e){function n(e){return(n="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})(e)}function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===n(e)&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=n(1).Buffer,i=r.isEncoding||function(e){switch((e=""+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 a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=A,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function A(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),a=0;a<r;++a)i[a]=e[a]^n[a];return i}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=n(9),i=n(7);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},function(e,t,n){var r=t;r.bignum=n(3),r.define=n(195).define,r.base=n(30),r.constants=n(106),r.decoders=n(200),r.encoders=n(202)},function(e,t,n){var r=t;r.Reporter=n(197).Reporter,r.DecoderBuffer=n(105).DecoderBuffer,r.EncoderBuffer=n(105).EncoderBuffer,r.Node=n(198)},function(e,t,n){e.exports=i;var r=n(24).EventEmitter;function i(){r.call(this)}n(0)(i,r),i.Readable=n(47),i.Writable=n(133),i.Duplex=n(134),i.Transform=n(135),i.PassThrough=n(136),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",A));var o=!1;function s(){o||(o=!0,e.end())}function A(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",A),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(4))},function(e,t,n){var r=n(1).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var a,o,s,A,c=n[0],u=n[1],f=n[2],h=n[3],d=e[0]^t[0],l=e[1]^t[1],g=e[2]^t[2],p=e[3]^t[3],y=4,I=1;I<i;I++)a=c[d>>>24]^u[l>>>16&255]^f[g>>>8&255]^h[255&p]^t[y++],o=c[l>>>24]^u[g>>>16&255]^f[p>>>8&255]^h[255&d]^t[y++],s=c[g>>>24]^u[p>>>16&255]^f[d>>>8&255]^h[255&l]^t[y++],A=c[p>>>24]^u[d>>>16&255]^f[l>>>8&255]^h[255&g]^t[y++],d=a,l=o,g=s,p=A;return a=(r[d>>>24]<<24|r[l>>>16&255]<<16|r[g>>>8&255]<<8|r[255&p])^t[y++],o=(r[l>>>24]<<24|r[g>>>16&255]<<16|r[p>>>8&255]<<8|r[255&d])^t[y++],s=(r[g>>>24]<<24|r[p>>>16&255]<<16|r[d>>>8&255]<<8|r[255&l])^t[y++],A=(r[p>>>24]<<24|r[d>>>16&255]<<16|r[l>>>8&255]<<8|r[255&g])^t[y++],[a>>>=0,o>>>=0,s>>>=0,A>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],A=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,A=0;A<256;++A){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[o]=c,r[c]=o;var u=e[o],f=e[u],h=e[f],d=257*e[c]^16843008*c;i[0][o]=d<<24|d>>>8,i[1][o]=d<<16|d>>>16,i[2][o]=d<<8|d>>>24,i[3][o]=d,d=16843009*h^65537*f^257*u^16843008*o,a[0][c]=d<<24|d>>>8,a[1][c]=d<<16|d>>>16,a[2][c]=d<<8|d>>>24,a[3][c]=d,0===o?o=s=1:(o=u^e[e[e[h^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=A.SBOX[o>>>24]<<24|A.SBOX[o>>>16&255]<<16|A.SBOX[o>>>8&255]<<8|A.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=A.SBOX[o>>>24]<<24|A.SBOX[o>>>16&255]<<16|A.SBOX[o>>>8&255]<<8|A.SBOX[255&o]),i[a]=i[a-t]^o}for(var c=[],u=0;u<r;u++){var f=r-u,h=i[f-(u%4?0:4)];c[u]=u<4||f<=4?h:A.INV_SUB_MIX[0][A.SBOX[h>>>24]]^A.INV_SUB_MIX[1][A.SBOX[h>>>16&255]]^A.INV_SUB_MIX[2][A.SBOX[h>>>8&255]]^A.INV_SUB_MIX[3][A.SBOX[255&h]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,A.SUB_MIX,A.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,A.INV_SUB_MIX,A.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},c.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=c},function(e,t,n){var r=n(1).Buffer,i=n(51);e.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),A=r.alloc(a||0),c=r.alloc(0);o>0||a>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var f=0;if(o>0){var h=s.length-o;f=Math.min(o,c.length),c.copy(s,h,0,f),o-=f}if(f<c.length&&a>0){var d=A.length-a,l=Math.min(a,c.length-f);c.copy(A,d,f,f+l),a-=l}}return c.fill(0),{key:s,iv:A}}},function(e,t,n){"use strict";var r=n(3),i=n(8),a=i.getNAF,o=i.getJSF,s=i.assert;function A(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=A,A.prototype.point=function(){throw new Error("Not implemented")},A.prototype.validate=function(){throw new Error("Not implemented")},A.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var o=[],A=0;A<r.length;A+=n.step){var c=0;for(t=A+n.step-1;t>=A;t--)c=(c<<1)+r[t];o.push(c)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(A=0;A<o.length;A++){(c=o[A])===h?f=f.mixedAdd(n.points[A]):c===-h&&(f=f.mixedAdd(n.points[A].neg()))}u=u.add(f)}return u.toP()},A.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),A=this.jpoint(null,null,null),c=o.length-1;c>=0;c--){for(t=0;c>=0&&0===o[c];c--)t++;if(c>=0&&t++,A=A.dblp(t),c<0)break;var u=o[c];s(0!==u),A="affine"===e.type?u>0?A.mixedAdd(i[u-1>>1]):A.mixedAdd(i[-u-1>>1].neg()):u>0?A.add(i[u-1>>1]):A.add(i[-u-1>>1].neg())}return"affine"===e.type?A.toP():A},A.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,A=this._wnafT2,c=this._wnafT3,u=0,f=0;f<r;f++){var h=(w=t[f])._getNAFPoints(e);s[f]=h.wnd,A[f]=h.points}for(f=r-1;f>=1;f-=2){var d=f-1,l=f;if(1===s[d]&&1===s[l]){var g=[t[d],null,null,t[l]];0===t[d].y.cmp(t[l].y)?(g[1]=t[d].add(t[l]),g[2]=t[d].toJ().mixedAdd(t[l].neg())):0===t[d].y.cmp(t[l].y.redNeg())?(g[1]=t[d].toJ().mixedAdd(t[l]),g[2]=t[d].add(t[l].neg())):(g[1]=t[d].toJ().mixedAdd(t[l]),g[2]=t[d].toJ().mixedAdd(t[l].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],y=o(n[d],n[l]);u=Math.max(y[0].length,u),c[d]=new Array(u),c[l]=new Array(u);for(var I=0;I<u;I++){var b=0|y[0][I],C=0|y[1][I];c[d][I]=p[3*(b+1)+(C+1)],c[l][I]=0,A[d]=g}}else c[d]=a(n[d],s[d],this._bitLength),c[l]=a(n[l],s[l],this._bitLength),u=Math.max(c[d].length,u),u=Math.max(c[l].length,u)}var m=this.jpoint(null,null,null),E=this._wnafT4;for(f=u;f>=0;f--){for(var B=0;f>=0;){var v=!0;for(I=0;I<r;I++)E[I]=0|c[I][f],0!==E[I]&&(v=!1);if(!v)break;B++,f--}if(f>=0&&B++,m=m.dblp(B),f<0)break;for(I=0;I<r;I++){var w,Q=E[I];0!==Q&&(Q>0?w=A[I][Q-1>>1]:Q<0&&(w=A[I][-Q-1>>1].neg()),m="affine"===w.type?m.mixedAdd(w):m.add(w))}}for(f=0;f<r;f++)A[f]=null;return i?m:m.toP()},A.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},A.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){function r(e){return(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})(e)}var i=n(194),a=n(205),o=n(206),s=n(57),A=n(55),c=n(1).Buffer;function u(e){var t;"object"!==r(e)||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,u,f=o(e,t),h=f.tag,d=f.data;switch(h){case"CERTIFICATE":u=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(d,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+h);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=a[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,f=parseInt(i.split("-")[1],10)/8,h=A.pbkdf2Sync(t,n,r,f,"sha1"),d=s.createDecipheriv(i,h,o),l=[];return l.push(d.update(u)),l.push(d.final()),c.concat(l)}(d=i.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(u=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+h);case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+h)}}e.exports=u,u.signature=i.signature},function(e,t,n){var r,i,a;function o(e){return(o="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})(e)}a=function(){function e(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var a=t.join("/"),o=(a=a.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a=o.shift()+(o.length>0?"?":"")+o.join("&")}return function(){return e("object"===o(arguments[0])?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=a():void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"parentAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"creator",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_candidate",type:"address"}],name:"canContribute",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"content_type",type:"address"},{name:"content_contract",type:"address"}],name:"addContentType",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canConfirm",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_locator",type:"bytes"}],name:"submitNode",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"contentTypeContracts",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"typeHash",type:"bytes32"}],name:"findTypeByHash",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"candidate",type:"address"}],name:"canNodePublish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_kmsID",type:"string"},{name:"prefix",type:"bytes"}],name:"getKMSInfo",outputs:[{name:"",type:"string"},{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"canReview",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"content_type",type:"address"}],name:"validType",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"contentObj",type:"address"}],name:"publish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"registerSpaceNode",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"addressKMS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"countVersionHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"commitPending",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"requiresReview",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"address_KMS",type:"address"}],name:"createLibrary",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"kill",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"numActiveNodes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"libraryFactory",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"confirmCommit",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"activeNodeLocators",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"activeNodeAddresses",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"createGroup",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_kmsAddr",type:"address"}],name:"getKMSID",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"new_factory",type:"address"}],name:"setFactory",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"clearPending",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"pendingHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"userWallets",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_nodeAddr",type:"address"},{name:"_locator",type:"bytes"}],name:"addNode",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kmsID",type:"string"},{name:"_locator",type:"bytes"}],name:"addKMSLocator",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"pendingNodeLocators",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"pendingNodeAddresses",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newCreator",type:"address"}],name:"transferCreatorship",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canCommit",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"description",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"createAccessWallet",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionTimestamp",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionHashes",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"new_factory",type:"address"}],name:"setWalletFactory",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"new_factory",type:"address"}],name:"setGroupFactory",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"new_factory",type:"address"}],name:"setContentFactory",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_kmsIdStr",type:"string"}],name:"checkKMS",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentFactory",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"content_space_description",type:"string"}],name:"setDescription",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"hasAccess",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_objectHash",type:"string"}],name:"commit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"contentTypes",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_userAddr",type:"address"}],name:"getUserWallet",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_candidate",type:"address"}],name:"canPublish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"content_type",type:"address"}],name:"whitelistedType",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"new_factory",type:"address"}],name:"setLibraryFactory",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"getAccessWallet",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kmsID",type:"string"},{name:"_pubKey",type:"string"}],name:"setKMSPublicKey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"unregisterSpaceNode",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"key",type:"bytes"}],name:"getMeta",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentSpace",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"groupFactory",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_nodeAddr",type:"address"}],name:"removeNode",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"createContentType",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"lib",type:"address"},{name:"content_type",type:"address"}],name:"createContent",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"updateRequest",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"factory",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"walletFactory",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentTypesLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"engageAccountLibrary",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"address_KMS",type:"address"}],name:"setAddressKMS",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_kmsAddr",type:"address"}],name:"checkKMSAddr",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_nodeAddr",type:"address"}],name:"approveNode",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"objectHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_versionHash",type:"string"}],name:"deleteVersion",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"key",type:"bytes"},{name:"value",type:"bytes"}],name:"putMeta",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_v",type:"uint8[]"},{name:"_r",type:"bytes32[]"},{name:"_s",type:"bytes32[]"},{name:"_from",type:"address[]"},{name:"_dest",type:"address[]"},{name:"_value",type:"uint256[]"},{name:"_ts",type:"uint256[]"}],name:"executeBatch",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"accessRequest",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"numPendingNodes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"nodeMapping",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"content_type",type:"address"}],name:"removeContentType",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_kmsID",type:"string"},{name:"_locator",type:"bytes"}],name:"removeKMSLocator",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"content_space_name",type:"string"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"contentTypeAddress",type:"address"}],name:"CreateContentType",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"libraryAddress",type:"address"}],name:"CreateLibrary",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"groupAddress",type:"address"}],name:"CreateGroup",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"}],name:"CreateContent",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"wallet",type:"address"}],name:"CreateAccessWallet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"wallet",type:"address"},{indexed:!1,name:"userAddr",type:"address"}],name:"BindUserWallet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"accountAddress",type:"address"}],name:"EngageAccountLibrary",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"factory",type:"address"}],name:"SetFactory",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"nodeObjAddr",type:"address"}],name:"RegisterNode",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"nodeObjAddr",type:"address"}],name:"UnregisterNode",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"sender",type:"address"},{indexed:!1,name:"status",type:"uint256"}],name:"AddKMSLocator",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"sender",type:"address"},{indexed:!1,name:"status",type:"uint256"}],name:"RemoveKMSLocator",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"version",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"CreateSpace",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"walletAddress",type:"address"}],name:"GetAccessWallet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"addr",type:"address"},{indexed:!1,name:"locator",type:"bytes"}],name:"NodeSubmitted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"addr",type:"address"},{indexed:!1,name:"locator",type:"bytes"}],name:"NodeApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"ownerAddr",type:"address"},{indexed:!1,name:"nodeAddr",type:"address"}],name:"AddNode",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"ownerAddr",type:"address"},{indexed:!1,name:"nodeAddr",type:"address"}],name:"RemoveNode",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"},{indexed:!1,name:"contentContract",type:"address"}],name:"ContentTypeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"}],name:"ContentTypeRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"parentAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"CommitPending",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"objectHash",type:"string"}],name:"UpdateRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"VersionConfirm",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"versionHash",type:"string"},{indexed:!1,name:"index",type:"int256"}],name:"VersionDelete",type:"event"},{anonymous:!1,inputs:[],name:"AccessRequest",type:"event"}]}},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"parentAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"address_KMS",type:"address"}],name:"updateAddressKMS",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"creator",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_candidate",type:"address"}],name:"canContribute",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"content_type",type:"address"},{name:"content_contract",type:"address"}],name:"addContentType",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"stakeholder",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canConfirm",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"approvalRequestsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"}],name:"removeReviewerGroup",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"contentTypeContracts",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"}],name:"addAccessorGroup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"content_type",type:"address"}],name:"createContent",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"typeHash",type:"bytes32"}],name:"findTypeByHash",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"reviewerGroupsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setGroupRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"contributorGroups",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"candidate",type:"address"}],name:"canNodePublish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_candidate",type:"address"}],name:"canReview",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"content_type",type:"address"}],name:"validType",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"accessorGroups",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"contentObj",type:"address"}],name:"publish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"addressKMS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"countVersionHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"commitPending",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"}],name:"removeContributorGroup",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"requiresReview",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"kill",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"confirmCommit",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[],name:"contributorGroupsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"submitApprovalRequest",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"clearPending",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"pendingHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"index",type:"uint256"}],name:"getPendingApprovalRequest",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"}],name:"addContributorGroup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newCreator",type:"address"}],name:"transferCreatorship",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canCommit",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionTimestamp",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionHashes",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"content_contract",type:"address"},{name:"approved",type:"bool"},{name:"note",type:"string"}],name:"approveContent",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_contentAddr",type:"address"}],name:"deleteContent",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"approvalRequests",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"reviewerGroups",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_candidate",type:"address"}],name:"hasAccess",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_objectHash",type:"string"}],name:"commit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"contentTypes",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_candidate",type:"address"}],name:"canPublish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"content_type",type:"address"}],name:"whitelistedType",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"key",type:"bytes"}],name:"getMeta",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentSpace",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"updateRequest",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"contentTypesLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"address_KMS",type:"address"}],name:"setAddressKMS",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canPublish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"}],name:"addReviewerGroup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"objectHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_versionHash",type:"string"}],name:"deleteVersion",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"key",type:"bytes"},{name:"value",type:"bytes"}],name:"putMeta",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"accessorGroupsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"}],name:"removeAccessorGroup",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"accessRequest",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"content_type",type:"address"}],name:"removeContentType",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"address_KMS",type:"address"},{name:"content_space",type:"address"}],payable:!0,stateMutability:"payable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"content_type",type:"address"},{indexed:!1,name:"spaceAddress",type:"address"}],name:"ContentObjectCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"spaceAddress",type:"address"}],name:"ContentObjectDeleted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ContributorGroupAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ContributorGroupRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ReviewerGroupAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ReviewerGroupRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"AccessorGroupAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"AccessorGroupRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"operationCode",type:"uint256"},{indexed:!1,name:"candidate",type:"address"}],name:"UnauthorizedOperation",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"submitter",type:"address"}],name:"ApproveContentRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"approved",type:"bool"},{indexed:!1,name:"note",type:"string"}],name:"ApproveContent",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"addressKms",type:"address"}],name:"UpdateKmsAddress",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"},{indexed:!1,name:"contentContract",type:"address"}],name:"ContentTypeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"}],name:"ContentTypeRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"parentAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"CommitPending",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"objectHash",type:"string"}],name:"UpdateRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"VersionConfirm",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"versionHash",type:"string"},{indexed:!1,name:"index",type:"int256"}],name:"VersionDelete",type:"event"},{anonymous:!1,inputs:[],name:"AccessRequest",type:"event"}]}},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"STATUS_PUBLISHED",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"parentAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"creator",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"publish",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{name:"request_ID",type:"uint256"},{name:"payee",type:"address"},{name:"label",type:"string"},{name:"amount",type:"uint256"}],name:"processRequestPayment",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"stakeholder",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"CAN_SEE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"canConfirm",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"requestMap",outputs:[{name:"originator",type:"address"},{name:"amountPaid",type:"uint256"},{name:"status",type:"int8"},{name:"settled",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setGroupRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"contentContractAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"statusCode",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"visibility",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"addressKMS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"countVersionHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentType",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"commitPending",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"status_code",type:"int256"}],name:"statusCodeDescription",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"level",type:"uint8"},{name:"custom_values",type:"bytes32[]"},{name:"stakeholders",type:"address[]"}],name:"getAccessInfo",outputs:[{name:"",type:"uint8"},{name:"",type:"uint8"},{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"level",type:"uint8"},{name:"custom_values",type:"bytes32[]"},{name:"stakeholders",type:"address[]"}],name:"getCustomInfo",outputs:[{name:"",type:"uint8"},{name:"",type:"uint8"},{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"kill",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"confirmCommit",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[],name:"STATUS_DRAFT",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"status_code",type:"int256"}],name:"setStatusCode",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"request_ID",type:"uint256"},{name:"score_pct",type:"uint256"},{name:"ml_out_hash",type:"bytes32"}],name:"accessComplete",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[],name:"clearPending",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"pendingHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"accessCharge",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newCreator",type:"address"}],name:"transferCreatorship",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canCommit",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionTimestamp",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionHashes",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"canEdit",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"status_code",type:"int256"}],name:"updateStatus",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_contentType",type:"address"},{name:"_addressKMS",type:"address"},{name:"_contentContractAddress",type:"address"},{name:"_accessCharge",type:"uint256"},{name:"_statusCode",type:"int256"},{name:"_requestID",type:"uint256"},{name:"_visibility",type:"uint8"},{name:"_objectHash",type:"string"},{name:"_versionHashes",type:"string"}],name:"migrate",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"requestID",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CAN_ACCESS",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_objectHash",type:"string"}],name:"commit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"level",type:"uint8"},{name:"pke_requestor",type:"string"},{name:"pke_AFGH",type:"string"},{name:"custom_values",type:"bytes32[]"},{name:"stakeholders",type:"address[]"}],name:"accessRequest",outputs:[{name:"",type:"uint256"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"prefix",type:"bytes"}],name:"getKMSInfo",outputs:[{name:"",type:"string"},{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"visibility_code",type:"uint8"}],name:"setVisibility",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"contentSpace",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"libraryAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"updateRequest",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"address_KMS",type:"address"}],name:"setAddressKMS",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canPublish",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"STATUS_REVIEW",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"objectHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_versionHash",type:"string"}],name:"deleteVersion",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"addr",type:"address"}],name:"setContentContractAddress",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"request_ID",type:"uint256"},{name:"access_granted",type:"bool"},{name:"re_key",type:"string"},{name:"encrypted_AES_key",type:"string"}],name:"accessGrant",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"CAN_EDIT",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"charge",type:"uint256"}],name:"setAccessCharge",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"statusDescription",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[{name:"content_space",type:"address"},{name:"lib",type:"address"},{name:"content_type",type:"address"}],payable:!0,stateMutability:"payable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"containingLibrary",type:"address"}],name:"ContentObjectCreate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"},{indexed:!1,name:"contentContractAddress",type:"address"}],name:"SetContentType",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"level",type:"uint8"},{indexed:!1,name:"contentHash",type:"string"},{indexed:!1,name:"pkeRequestor",type:"string"},{indexed:!1,name:"pkeAFGH",type:"string"}],name:"AccessRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"payee",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"LogPayment",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"access_granted",type:"bool"},{indexed:!1,name:"reKey",type:"string"},{indexed:!1,name:"encryptedAESKey",type:"string"}],name:"AccessGrant",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"customValue",type:"bytes32"}],name:"AccessRequestValue",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"stakeholder",type:"address"}],name:"AccessRequestStakeholder",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"scorePct",type:"uint256"},{indexed:!1,name:"customContractResult",type:"bool"}],name:"AccessComplete",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"contentContractAddress",type:"address"}],name:"SetContentContract",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"accessCharge",type:"uint256"}],name:"SetAccessCharge",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"level",type:"uint8"},{indexed:!1,name:"accessCharge",type:"uint256"}],name:"GetAccessCharge",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"accessCharge",type:"uint256"},{indexed:!1,name:"amountProvided",type:"uint256"}],name:"InsufficientFunds",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"statusCode",type:"int256"}],name:"SetStatusCode",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"requestStatus",type:"bool"},{indexed:!1,name:"statusCode",type:"int256"},{indexed:!1,name:"objectHash",type:"string"}],name:"Publish",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"custom_contract",type:"address"}],name:"InvokeCustomPreHook",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"custom_contract",type:"address"},{indexed:!1,name:"result",type:"uint256"}],name:"ReturnCustomHook",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"custom_contract",type:"address"}],name:"InvokeCustomPostHook",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"charged",type:"uint256"},{indexed:!1,name:"received",type:"uint256"},{indexed:!1,name:"converted",type:"uint256"},{indexed:!1,name:"enough",type:"bool"}],name:"DbgAccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"code",type:"uint8"}],name:"DbgAccessCode",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"parentAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"CommitPending",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"objectHash",type:"string"}],name:"UpdateRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"VersionConfirm",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"versionHash",type:"string"},{indexed:!1,name:"index",type:"int256"}],name:"VersionDelete",type:"event"}]}},function(e,t){t.ValidatePresence=function(e,t){if(!t)throw Error("".concat(e," not specified"))},t.ValidateLibrary=function(e){if(!e)throw Error("Library ID not specified");if(!e.toString().startsWith("ilib"))throw Error("Invalid library ID: ".concat(e))},t.ValidateObject=function(e){if(!e)throw"Object ID not specified";if(!e.toString().startsWith("iq__"))throw Error("Invalid object ID: ".concat(e))},t.ValidateVersion=function(e){if(!e)throw Error("Version hash not specified");if(!e.toString().startsWith("hq__"))throw Error("Invalid version hash: ".concat(e))},t.ValidateWriteToken=function(e){if(!e)throw Error("Write token not specified");if(!e.toString().startsWith("tqw_"))throw Error("Invalid write token: ".concat(e))},t.ValidatePartHash=function(e){if(!e)throw Error("Part hash not specified");if(!e.toString().startsWith("hqp_")&&!e.toString().startsWith("hqpe"))throw Error("Invalid part hash: ".concat(e))},t.ValidateParameters=function(e){var n=e.libraryId,r=e.objectId,i=e.versionHash;i?t.ValidateVersion(i):(t.ValidateLibrary(n),t.ValidateObject(r))},t.ValidateAddress=function(e){if(!e)throw"Address not specified";if(40!==e.toString().trim().replace("0x","").length)throw"Invalid address: ".concat(e)}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var r=n(6),i=n(14),a=n(10),o=n(11),s=n(67),A="undefined"!=typeof fetch?fetch:n(44).default,c=function(){"use strict";function e(t){var n=t.uris,r=t.debug;a(this,e),this.uris=n,this.uriIndex=0,this.debug=r}return o(e,[{key:"Log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.debug&&("object"===i(e)&&(e=JSON.stringify(e)),t?console.error("\n(elv-client-js#HttpClient) ".concat(e,"\n")):console.log("\n(elv-client-js#HttpClient) ".concat(e,"\n")))}}]),o(e,[{key:"BaseURI",value:function(){return new s(this.uris[this.uriIndex])}},{key:"RequestHeaders",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.Accept||(t.Accept="application/json"),"JSON"===e?t["Content-type"]="application/json":"BINARY"===e&&(t["Content-type"]="application/octet-stream"),t}},{key:"Request",value:function(t){var n,i,a,o,s,A,c,u,f,h,d,l,g,p,y,I,b,C,m,E;return r.async((function(B){for(;;)switch(B.prev=B.next){case 0:return n=t.method,i=t.path,a=t.queryParams,o=void 0===a?{}:a,s=t.body,A=void 0===s?{}:s,c=t.bodyType,u=void 0===c?"JSON":c,f=t.headers,h=void 0===f?{}:f,d=t.attempts,l=void 0===d?0:d,g=t.failover,p=void 0===g||g,y=this.BaseURI().path(i).query(o).hash(""),I={method:n,headers:this.RequestHeaders(u,h)},"POST"!==n&&"PUT"!==n||(I.body="JSON"===u?JSON.stringify(A):A),B.prev=4,B.next=7,r.awrap(e.Fetch(y.toString(),I));case 7:b=B.sent,B.next=13;break;case 10:B.prev=10,B.t0=B.catch(4),b={ok:!1,status:500,statusText:"ElvClient Error: "+B.t0.message,url:y.toString(),stack:B.t0.stack};case 13:if(b.ok){B.next=36;break}if(!(p&&parseInt(b.status)>=500&&l<this.uris.length)){B.next=20;break}return this.uriIndex=(this.uriIndex+1)%this.uris.length,this.Log("HttpClient failing over: ".concat(l+1," attempts"),!0),B.next=19,r.awrap(this.Request({method:n,path:i,queryParams:o,body:A,bodyType:u,headers:h,attempts:l+1}));case 19:return B.abrupt("return",B.sent);case 20:if(C=b.headers?b.headers.get("content-type"):"",m="",!b.text||!b.json){B.next=33;break}if(!C.includes("application/json")){B.next=29;break}return B.next=26,r.awrap(b.json());case 26:B.t1=B.sent,B.next=32;break;case 29:return B.next=31,r.awrap(b.text());case 31:B.t1=B.sent;case 32:m=B.t1;case 33:throw E={name:"ElvHttpClientError",status:b.status,statusText:b.statusText,message:b.statusText,url:y.toString(),body:m,requestParams:I},this.Log(JSON.stringify(E,null,2),!0),E;case 36:return this.Log("".concat(b.status," - ").concat(n," ").concat(y.toString())),B.abrupt("return",b);case 38:case"end":return B.stop()}}),null,this,[[4,10]])}},{key:"URL",value:function(e){var t=e.path,n=e.queryParams,r=void 0===n?{}:n;return this.BaseURI().path(t).query(r).hash("").toString()}}],[{key:"Fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return A(e,t)}}]),e}();e.exports=c},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,t.default=r.fetch.bind(r),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},function(e,t,n){(function(t,r){var i=n(6);void 0===t&&(t=n(2).Buffer);var a,o=n(46),s=n(31),A=n(16);switch(A.Platform()){case A.PLATFORM_WEB:if("undefined"==typeof crypto){var c=n(150);Object.defineProperty(r.self,"crypto",{value:{getRandomValues:function(e){return c.randomBytes(e.length)}}})}a=n(210).default;break;default:a=n(!function(){var e=new Error("Cannot find module '@eluvio/crypto/dist/elv-crypto.bundle.node'");throw e.code="MODULE_NOT_FOUND",e}()).default}var u={ElvCrypto:function(){return i.async((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,u.elvCrypto){e.next=5;break}return e.next=4,i.awrap((new a).init());case 4:u.elvCrypto=e.sent;case 5:return e.abrupt("return",u.elvCrypto);case 8:e.prev=8,e.t0=e.catch(0),console.error("Error initializing ElvCrypto:"),console.error(e.t0);case 12:case"end":return e.stop()}}),null,null,[[0,8]])},EncryptedSize:function(e){var t=Math.floor(e/1e6)*u.EncryptedBlockSize(1e6);return e%1e6!=0&&(t+=u.EncryptedBlockSize(e%1e6)),t},EncryptedBlockSize:function(e){var t=576*Math.floor(e/564);return e%564!=0&&(t+=576),t+129},EncryptConk:function(e,n){var r,a,o,s,c,f;return i.async((function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,i.awrap(u.ElvCrypto());case 2:return r=h.sent,n=new Uint8Array(t.from(n.replace("0x",""),"hex")),e=new Uint8Array(t.from(JSON.stringify(e))),h.next=7,i.awrap(r.encryptECIES(e,n));case 7:return a=h.sent,o=a.data,s=a.ephemeralKey,c=a.tag,f=t.concat([t.from(s),t.from(c),t.from(o)]),h.abrupt("return",A.B64(f));case 13:case"end":return h.stop()}}))},DecryptCap:function(e,n){var r,a,o,s,A;return i.async((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,i.awrap(u.ElvCrypto());case 2:return r=c.sent,n=new Uint8Array(t.from(n.replace("0x",""),"hex")),e=t.from(e,"base64"),a=e.slice(0,65),o=e.slice(65,81),s=e.slice(81),A=r.decryptECIES(new Uint8Array(s),n,new Uint8Array(a),new Uint8Array(o)),c.abrupt("return",JSON.parse(t.from(A).toString()));case 10:case"end":return c.stop()}}))},GeneratePrimaryConk:function(){var e,n,r,a,s;return i.async((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,i.awrap(u.ElvCrypto());case 2:return e=A.sent,n=e.generatePrimaryKeys(),r=n.secretKey,a=n.publicKey,s=e.generateSymmetricKey().key,A.abrupt("return",{symm_key:"kpsy".concat(o.encode(t.from(s))),secret_key:"kpsk".concat(o.encode(t.from(r))),public_key:"kppk".concat(o.encode(t.from(a)))});case 6:case"end":return A.stop()}}))},GenerateTargetConk:function(){var e,n,r,a;return i.async((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,i.awrap(u.ElvCrypto());case 2:return e=s.sent,n=e.generateTargetKeys(),r=n.secretKey,a=n.publicKey,s.abrupt("return",{secret_key:"kpsk".concat(o.encode(t.from(r))),public_key:"ktpk".concat(o.encode(t.from(a)))});case 5:case"end":return s.stop()}}))},CapToConk:function(e){var t=function(e){return new Uint8Array(o.decode(e.slice(4)))};return{symmetricKey:t(e.symm_key),secretKey:t(e.secret_key),publicKey:t(e.public_key)}},EncryptionContext:function(e){var t,n,r,a,o,s,A;return i.async((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,i.awrap(u.ElvCrypto());case 2:return t=c.sent,n=u.CapToConk(e),r=n.symmetricKey,a=n.secretKey,(o=n.publicKey).length===t.PRIMARY_PK_KEY_SIZE?(A=t.CRYPTO_TYPE_PRIMARY,s=t.newPrimaryContext(o,a,r)):(A=t.CRYPTO_TYPE_TARGET,s=t.newTargetDecryptionContext(a,r)),c.abrupt("return",{context:s,type:A});case 6:case"end":return c.stop()}}))},Encrypt:function(e,n){var r,a,o,s,A;return i.async((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,i.awrap(u.OpenEncryptionStream(e));case 2:if(r=c.sent,t.isBuffer(n)||n instanceof ArrayBuffer){c.next=9;break}return c.t0=t,c.next=7,i.awrap(new Response(n).arrayBuffer());case 7:c.t1=c.sent,n=c.t0.from.call(c.t0,c.t1);case 9:for(a=new Uint8Array(n),o=0;o<a.length;o+=1e6)s=Math.min(a.length,o+1e6),r.write(a.slice(o,s));return r.end(),A=[],c.next=15,i.awrap(new Promise((function(e,t){r.on("data",(function(e){A.push(e)})).on("finish",(function(){e()})).on("error",(function(e){t(e)}))})));case 15:return c.abrupt("return",t.concat(A));case 16:case"end":return c.stop()}}))},OpenEncryptionStream:function(e){var t,n,r,a,o;return i.async((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,i.awrap(u.ElvCrypto());case 2:return t=A.sent,A.next=5,i.awrap(u.EncryptionContext(e));case 5:return n=A.sent,r=n.context,a=new s.PassThrough,o=t.createCipher(r),A.abrupt("return",a.pipe(o).on("finish",(function(){r.free()})).on("error",(function(e){throw Error(e)})));case 10:case"end":return A.stop()}}))},Decrypt:function(e,n){var r,a,o,s,A;return i.async((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,i.awrap(u.OpenDecryptionStream(e));case 2:for(r=c.sent,a=new Uint8Array(n),o=0;o<a.length;o+=1e6)s=Math.min(a.length,o+1e6),r.write(a.slice(o,s));return r.end(),A=[],c.next=9,i.awrap(new Promise((function(e,t){r.on("data",(function(e){A.push(e)})).on("finish",(function(){e()})).on("error",(function(e){t(e)}))})));case 9:return c.abrupt("return",t.concat(A));case 10:case"end":return c.stop()}}))},OpenDecryptionStream:function(e){var t,n,r,a,o,A;return i.async((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,i.awrap(u.ElvCrypto());case 2:return t=c.sent,c.next=5,i.awrap(u.EncryptionContext(e));case 5:return n=c.sent,r=n.context,a=n.type,o=new s.PassThrough,A=t.createDecipher(a,r),c.abrupt("return",o.pipe(A).on("finish",(function(){r.free()})).on("error",(function(e){throw Error(e)})));case 11:case"end":return c.stop()}}))}};e.exports=u}).call(this,n(2).Buffer,n(5))},function(e,t,n){var r=n(126);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){(t=e.exports=n(73)).Stream=t,t.Readable=t,t.Writable=n(49),t.Duplex=n(15),t.Transform=n(77),t.PassThrough=n(132)},function(e,t,n){var r=n(2),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var a=n(32);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=I;var s,A=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:a.nextTick;I.WritableState=y;var c=n(25);c.inherits=n(0);var u={deprecate:n(76)},f=n(74),h=n(48).Buffer,d=i.Uint8Array||function(){};var l,g=n(75);function p(){}function y(e,t){s=s||n(15),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,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 n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(a.nextTick(i,r),a.nextTick(v,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),v(e,t))}(e,n,r,t,i);else{var o=E(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||m(e,n),r?A(C,e,n,o,i):C(e,n,o,i)}}(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 o(this)}function I(e){if(s=s||n(15),!(l.call(I,this)||this instanceof s))return new I(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function C(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),v(e,t)}function m(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,A=!0;n;)i[s]=n,n.isBuf||(A=!1),n=n.next,s+=1;i.allBuffers=A,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),v(e,t)}))}function v(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(B,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(I,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===I&&(e&&e._writableState instanceof y)}})):l=function(e){return e instanceof this},I.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},I.prototype.write=function(e,t,n){var r,i=this._writableState,o=!1,s=!i.objectMode&&(r=e,h.isBuffer(r)||r instanceof d);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=p),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(r,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var A=t.length<t.highWaterMark;A||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,a);return A}(this,i,s,e,t,n)),o},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||m(this,e))},I.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},Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},I.prototype._writev=null,I.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,v(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(I.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=g.destroy,I.prototype._undestroy=g.undestroy,I.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(4),n(130).setImmediate,n(5))},function(e,t,n){var r=n(137),i=n(138),a=n(139);e.exports=function(e){return r(e)||i(e)||a()}},function(e,t,n){"use strict";var r=n(0),i=n(79),a=n(1).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function A(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,i,a,o){return A(e+(t&n|~t&r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return A(e+(t&r|n&~r)+i+a|0,o)+t|0}function f(e,t,n,r,i,a,o){return A(e+(t^n^r)+i+a|0,o)+t|0}function h(e,t,n,r,i,a,o){return A(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=c(n,r,i,a,e[0],3614090360,7),a=c(a,n,r,i,e[1],3905402710,12),i=c(i,a,n,r,e[2],606105819,17),r=c(r,i,a,n,e[3],3250441966,22),n=c(n,r,i,a,e[4],4118548399,7),a=c(a,n,r,i,e[5],1200080426,12),i=c(i,a,n,r,e[6],2821735955,17),r=c(r,i,a,n,e[7],4249261313,22),n=c(n,r,i,a,e[8],1770035416,7),a=c(a,n,r,i,e[9],2336552879,12),i=c(i,a,n,r,e[10],4294925233,17),r=c(r,i,a,n,e[11],2304563134,22),n=c(n,r,i,a,e[12],1804603682,7),a=c(a,n,r,i,e[13],4254626195,12),i=c(i,a,n,r,e[14],2792965006,17),n=u(n,r=c(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,n,r,i,e[6],3225465664,9),i=u(i,a,n,r,e[11],643717713,14),r=u(r,i,a,n,e[0],3921069994,20),n=u(n,r,i,a,e[5],3593408605,5),a=u(a,n,r,i,e[10],38016083,9),i=u(i,a,n,r,e[15],3634488961,14),r=u(r,i,a,n,e[4],3889429448,20),n=u(n,r,i,a,e[9],568446438,5),a=u(a,n,r,i,e[14],3275163606,9),i=u(i,a,n,r,e[3],4107603335,14),r=u(r,i,a,n,e[8],1163531501,20),n=u(n,r,i,a,e[13],2850285829,5),a=u(a,n,r,i,e[2],4243563512,9),i=u(i,a,n,r,e[7],1735328473,14),n=f(n,r=u(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=f(a,n,r,i,e[8],2272392833,11),i=f(i,a,n,r,e[11],1839030562,16),r=f(r,i,a,n,e[14],4259657740,23),n=f(n,r,i,a,e[1],2763975236,4),a=f(a,n,r,i,e[4],1272893353,11),i=f(i,a,n,r,e[7],4139469664,16),r=f(r,i,a,n,e[10],3200236656,23),n=f(n,r,i,a,e[13],681279174,4),a=f(a,n,r,i,e[0],3936430074,11),i=f(i,a,n,r,e[3],3572445317,16),r=f(r,i,a,n,e[6],76029189,23),n=f(n,r,i,a,e[9],3654602809,4),a=f(a,n,r,i,e[12],3873151461,11),i=f(i,a,n,r,e[15],530742520,16),n=h(n,r=f(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=h(a,n,r,i,e[7],1126891415,10),i=h(i,a,n,r,e[14],2878612391,15),r=h(r,i,a,n,e[5],4237533241,21),n=h(n,r,i,a,e[12],1700485571,6),a=h(a,n,r,i,e[3],2399980690,10),i=h(i,a,n,r,e[10],4293915773,15),r=h(r,i,a,n,e[1],2240044497,21),n=h(n,r,i,a,e[8],1873313359,6),a=h(a,n,r,i,e[15],4264355552,10),i=h(i,a,n,r,e[6],2734768916,15),r=h(r,i,a,n,e[13],1309151649,21),n=h(n,r,i,a,e[4],4149444226,6),a=h(a,n,r,i,e[11],3174756917,10),i=h(i,a,n,r,e[2],718787259,15),r=h(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";var r=n(2).Buffer,i=n(0),a=n(79),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function l(e,t){return e<<t|e>>>32-t}function g(e,t,n,r,i,a,o,s){return l(e+(t^n^r)+a+o|0,s)+i|0}function p(e,t,n,r,i,a,o,s){return l(e+(t&n|~t&r)+a+o|0,s)+i|0}function y(e,t,n,r,i,a,o,s){return l(e+((t|~n)^r)+a+o|0,s)+i|0}function I(e,t,n,r,i,a,o,s){return l(e+(t&r|n&~r)+a+o|0,s)+i|0}function b(e,t,n,r,i,a,o,s){return l(e+(t^(n|~r))+a+o|0,s)+i|0}i(d,a),d.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,d=0|this._e,C=0|this._a,m=0|this._b,E=0|this._c,B=0|this._d,v=0|this._e,w=0;w<80;w+=1){var Q,S;w<16?(Q=g(n,r,i,a,d,e[s[w]],f[0],c[w]),S=b(C,m,E,B,v,e[A[w]],h[0],u[w])):w<32?(Q=p(n,r,i,a,d,e[s[w]],f[1],c[w]),S=I(C,m,E,B,v,e[A[w]],h[1],u[w])):w<48?(Q=y(n,r,i,a,d,e[s[w]],f[2],c[w]),S=y(C,m,E,B,v,e[A[w]],h[2],u[w])):w<64?(Q=I(n,r,i,a,d,e[s[w]],f[3],c[w]),S=p(C,m,E,B,v,e[A[w]],h[3],u[w])):(Q=b(n,r,i,a,d,e[s[w]],f[4],c[w]),S=g(C,m,E,B,v,e[A[w]],h[4],u[w])),n=d,d=a,a=l(i,10),i=r,r=Q,C=v,v=B,B=l(E,10),E=m,m=S}var M=this._b+i+B|0;this._b=this._c+a+v|0,this._c=this._d+d+C|0,this._d=this._e+n+m|0,this._e=this._a+r+E|0,this._a=M},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(151),t.sha1=n(152),t.sha224=n(153),t.sha256=n(80),t.sha384=n(154),t.sha512=n(81)},function(e,t,n){"use strict";var r=n(0),i=n(155),a=n(12),o=n(1).Buffer,s=n(82),A=n(52),c=n(53),u=o.alloc(128);function f(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new A:c(e)).update(t).digest():t.length<n&&(t=o.concat([t,u],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new A:c(e),this._hash.update(r)}r(f,a),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new A:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},function(e,t,n){t.pbkdf2=n(156),t.pbkdf2Sync=n(87)},function(e,t,n){"use strict";var r=n(7);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){var r=n(161),i=n(169),a=n(93);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},function(e,t,n){var r={ECB:n(162),CBC:n(163),CFB:n(164),CFB8:n(165),CFB1:n(166),OFB:n(167),CTR:n(91),GCM:n(91)},i=n(93);for(var a in i)i[a].module=r[i[a].mode];e.exports=i},function(e,t,n){function r(e){return(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})(e)}var i;function a(e){this.rand=e}if(e.exports=function(e){return i||(i=new a(null)),i.generate(e)},e.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":r(self)))self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":r(window))&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(172);if("function"!=typeof o.randomBytes)throw new Error("Not supported");a.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,n){(function(t){var r=n(3),i=n(17);function a(e,n){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),a=n.modulus.byteLength(),s=(r.mont(n.modulus),new r(e).mul(i.blinder).umod(n.modulus)),A=s.toRed(r.mont(n.prime1)),c=s.toRed(r.mont(n.prime2)),u=n.coefficient,f=n.prime1,h=n.prime2,d=A.redPow(n.exponent1),l=c.redPow(n.exponent2);d=d.fromRed(),l=l.fromRed();var g=d.isub(l).imul(u).umod(f);return g.imul(h),l.iadd(g),new t(l.imul(i.unblinder).umod(n.modulus).toArray(!1,a))}function o(e){for(var t=e.modulus.byteLength(),n=new r(i(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(i(t));return n}e.exports=a,a.getr=o}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(176).version,r.utils=n(8),r.rand=n(59),r.curve=n(101),r.curves=n(62),r.ec=n(187),r.eddsa=n(191)},function(e,t,n){"use strict";var r,i=t,a=n(63),o=n(101),s=n(8).assert;function A(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new A(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=A,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(186)}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(9),r.common=n(28),r.sha=n(180),r.ripemd=n(184),r.hmac=n(185),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";var r=n(21).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,A=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){s=!1,c=!0,o||a.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){o=!1,f=!0,s||a.call(t)},d=function(e){a.call(t,e)},l=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},g=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",A),t.on("close",A)):(t.on("complete",u),t.on("abort",l),t.req?g():t.on("request",g)),t.on("end",h),t.on("finish",u),!1!==n.error&&t.on("error",d),t.on("close",l),function(){t.removeListener("complete",u),t.removeListener("abort",l),t.removeListener("request",g),t.req&&t.req.removeListener("finish",u),t.removeListener("end",A),t.removeListener("close",A),t.removeListener("finish",u),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",l)}}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],A=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],A[u++]=t>>16&255,A[u++]=t>>8&255,A[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,A[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,A[u++]=t>>8&255,A[u++]=255&t);return A},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,A=o.length;s<A;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,A=(1<<s)-1,c=A>>1,u=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===A)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=c}return(d?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,A,c=8*a-i-1,u=(1<<c)-1,f=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:a-1,l=r?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,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(A=Math.pow(2,-o))<1&&(o--,A*=2),(t+=o+f>=1?h/A:h*Math.pow(2,1-f))*A>=2&&(o++,A/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*A-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=l,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+d]=255&o,d+=l,o/=256,c-=8);e[n+d-l]|=128*g}},function(e,t,n){(function(e){var r,i,a;function o(e){return(o="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})(e)}
9
- /*!
10
- * URI.js - Mutating URLs
11
- *
12
- * Version: 1.19.2
13
- *
14
- * Author: Rodney Rehm
15
- * Web: http://medialize.github.io/URI.js/
16
- *
17
- * Licensed under
18
- * MIT License http://www.opensource.org/licenses/mit-license
19
- *
20
- */!function(s,A){"use strict";"object"===o(e)&&e.exports?e.exports=A(n(68),n(70),n(71)):(i=[n(68),n(70),n(71)],void 0===(a="function"==typeof(r=A)?r.apply(t,i):r)||(e.exports=a))}(0,(function(e,t,n,r){"use strict";var i=r&&r.URI;function a(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof a))return n?r?new a(e,t):new a(e):new a;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}a.version="1.19.2";var s=a.prototype,A=Object.prototype.hasOwnProperty;function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function u(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function f(e){return"Array"===u(e)}function h(e,t){var n,r,i={};if("RegExp"===u(t))i=null;else if(f(t))for(n=0,r=t.length;n<r;n++)i[t[n]]=!0;else i[t]=!0;for(n=0,r=e.length;n<r;n++){(i&&void 0!==i[e[n]]||!i&&t.test(e[n]))&&(e.splice(n,1),r--,n--)}return e}function d(e,t){var n,r;if(f(t)){for(n=0,r=t.length;n<r;n++)if(!d(e,t[n]))return!1;return!0}var i=u(t);for(n=0,r=e.length;n<r;n++)if("RegExp"===i){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function l(e,t){if(!f(e)||!f(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function g(e){return e.replace(/^\/+|\/+$/g,"")}function p(e){return escape(e)}function y(e){return encodeURIComponent(e).replace(/[!'()*]/g,p).replace(/\*/g,"%2A")}a._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:a.preventInvalidHostname,duplicateQueryParameters:a.duplicateQueryParameters,escapeQuerySpace:a.escapeQuerySpace}},a.preventInvalidHostname=!1,a.duplicateQueryParameters=!1,a.escapeQuerySpace=!0,a.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,a.idn_expression=/[^a-z0-9\._-]/i,a.punycode_expression=/(xn--)/i,a.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,a.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,a.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},a.hostProtocols=["http","https"],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},a.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return a.domAttributes[t]}},a.encode=y,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=y,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},a.encodeQuery=function(e,t){var n=a.encode(e+"");return void 0===t&&(t=a.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},a.decodeQuery=function(e,t){e+="",void 0===t&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var I,b={encode:"encode",decode:"decode"},C=function(e,t){return function(n){try{return a[t](n+"").replace(a.characters[e][t].expression,(function(n){return a.characters[e][t].map[n]}))}catch(e){return n}}};for(I in b)a[I+"PathSegment"]=C("pathname",b[I]),a[I+"UrnPathSegment"]=C("urnpath",b[I]);var m=function(e,t,n){return function(r){var i;i=n?function(e){return a[t](a[n](e))}:a[t];for(var o=(r+"").split(e),s=0,A=o.length;s<A;s++)o[s]=i(o[s]);return o.join(e)}};function E(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function B(e,t){return function(n,r){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!r),this)}}a.decodePath=m("/","decodePathSegment"),a.decodeUrnPath=m(":","decodeUrnPathSegment"),a.recodePath=m("/","encodePathSegment","decode"),a.recodeUrnPath=m(":","encodeUrnPathSegment","decode"),a.encodeReserved=C("reserved","encode"),a.parse=function(e,t){var n;return t||(t={preventInvalidHostname:a.preventInvalidHostname}),(n=e.indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3)?(e=e.substring(n+3),e=a.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},a.parseHost=function(e,t){e||(e="");var n,r,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,i)||null,"/"===t.port&&(t.port=null);else{var o=e.indexOf(":"),s=e.indexOf("/"),A=e.indexOf(":",o+1);-1!==A&&(-1===s||A<s)?(t.hostname=e.substring(0,i)||null,t.port=null):(r=e.substring(0,i).split(":"),t.hostname=r[0]||null,t.port=r[1]||null)}return t.hostname&&"/"!==e.substring(i).charAt(0)&&(i++,e="/"+e),t.preventInvalidHostname&&a.ensureValidHostname(t.hostname,t.protocol),t.port&&a.ensureValidPort(t.port),e.substring(i)||"/"},a.parseAuthority=function(e,t){return e=a.parseUserinfo(e,t),a.parseHost(e,t)},a.parseUserinfo=function(e,t){var n,r=e.indexOf("/"),i=e.lastIndexOf("@",r>-1?r:e.length-1);return i>-1&&(-1===r||i<r)?(n=e.substring(0,i).split(":"),t.username=n[0]?a.decode(n[0]):null,n.shift(),t.password=n[0]?a.decode(n.join(":")):null,e=e.substring(i+1)):(t.username=null,t.password=null),e},a.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,i,o={},s=e.split("&"),c=s.length,u=0;u<c;u++)n=s[u].split("="),r=a.decodeQuery(n.shift(),t),i=n.length?a.decodeQuery(n.join("="),t):null,A.call(o,r)?("string"!=typeof o[r]&&null!==o[r]||(o[r]=[o[r]]),o[r].push(i)):o[r]=i;return o},a.build=function(e){var t="",n=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",n=!0),t+=a.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&n&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},a.buildHost=function(e){var t="";return e.hostname?(a.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},a.buildAuthority=function(e){return a.buildUserinfo(e)+a.buildHost(e)},a.buildUserinfo=function(e){var t="";return e.username&&(t+=a.encode(e.username)),e.password&&(t+=":"+a.encode(e.password)),t&&(t+="@"),t},a.buildQuery=function(e,t,n){var r,i,o,s,c="";for(i in e)if(A.call(e,i))if(f(e[i]))for(r={},o=0,s=e[i].length;o<s;o++)void 0!==e[i][o]&&void 0===r[e[i][o]+""]&&(c+="&"+a.buildQueryParameter(i,e[i][o],n),!0!==t&&(r[e[i][o]+""]=!0));else void 0!==e[i]&&(c+="&"+a.buildQueryParameter(i,e[i],n));return c.substring(1)},a.buildQueryParameter=function(e,t,n){return a.encodeQuery(e,n)+(null!==t?"="+a.encodeQuery(t,n):"")},a.addQuery=function(e,t,n){if("object"===o(t))for(var r in t)A.call(t,r)&&a.addQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),f(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},a.setQuery=function(e,t,n){if("object"===o(t))for(var r in t)A.call(t,r)&&a.setQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},a.removeQuery=function(e,t,n){var r,i,s;if(f(t))for(r=0,i=t.length;r<i;r++)e[t[r]]=void 0;else if("RegExp"===u(t))for(s in e)t.test(s)&&(e[s]=void 0);else if("object"===o(t))for(s in t)A.call(t,s)&&a.removeQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===u(n)?!f(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=h(e[t],n):e[t]!==String(n)||f(n)&&1!==n.length?f(e[t])&&(e[t]=h(e[t],n)):e[t]=void 0:e[t]=void 0}},a.hasQuery=function(e,t,n,r){switch(u(t)){case"String":break;case"RegExp":for(var i in e)if(A.call(e,i)&&t.test(i)&&(void 0===n||a.hasQuery(e,i,n)))return!0;return!1;case"Object":for(var o in t)if(A.call(t,o)&&!a.hasQuery(e,o,t[o]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(u(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(f(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":return!!f(e[t])&&(r?d:l)(e[t],n);case"RegExp":return f(e[t])?!!r&&d(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return f(e[t])?!!r&&d(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},a.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var i=new a(arguments[r]);e.push(i);for(var o=i.segment(),s=0;s<o.length;s++)"string"==typeof o[s]&&t.push(o[s]),o[s]&&n++}if(!t.length||!n)return new a("");var A=new a("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||A.path("/"+A.path()),A.normalize()},a.commonPath=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},a.withinString=function(e,t,n){n||(n={});var r=n.start||a.findUri.start,i=n.end||a.findUri.end,o=n.trim||a.findUri.trim,s=n.parens||a.findUri.parens,A=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var c=r.exec(e);if(!c)break;var u=c.index;if(n.ignoreHtml){var f=e.slice(Math.max(u-3,0),u);if(f&&A.test(f))continue}for(var h=u+e.slice(u).search(i),d=e.slice(u,h),l=-1;;){var g=s.exec(d);if(!g)break;var p=g.index+g[0].length;l=Math.max(l,p)}if(!((d=l>-1?d.slice(0,l)+d.slice(l).replace(o,""):d.replace(o,"")).length<=c[0].length||n.ignore&&n.ignore.test(d))){var y=t(d,u,h=u+d.length,e);void 0!==y?(y=String(y),e=e.slice(0,u)+y+e.slice(h),r.lastIndex=u+y.length):r.lastIndex=h}}return r.lastIndex=0,e},a.ensureValidHostname=function(t,n){var r=!!t,i=!1;if(!!n&&(i=d(a.hostProtocols,n)),i&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(a.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=i),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new a(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=E("protocol"),s.username=E("username"),s.password=E("password"),s.hostname=E("hostname"),s.port=E("port"),s.query=B("query","?"),s.fragment=B("fragment","#"),s.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},s.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},s.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(n):n}return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):"":this._parts.path=e?a.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=a._parts();var r=e instanceof a,i="object"===o(e)&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[a.getDomAttribute(e)]||"",i=!1);if(!r&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=a.parse(String(e),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var s=r?e._parts:e;for(n in s)"query"!==n&&A.call(this._parts,n)&&(this._parts[n]=s[n]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,r=!1,i=!1,o=!1,s=!1,A=!1,c=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,r=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),s=(o=!(t=r||i))&&n&&n.has(this._parts.hostname),A=o&&a.idn_expression.test(this._parts.hostname),c=o&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return o;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return A;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var v=s.protocol,w=s.port,Q=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(a.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return v.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),a.ensureValidPort(e))),w.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==a.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return Q.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=a(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildHost(this._parts):"";if("/"!==a.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildAuthority(this._parts):"";if("/"!==a.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=a.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),a.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=a.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),o=new RegExp("^"+c(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var a;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');a=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");a=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?a.decodePath(r):r}var i=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,i),s=new RegExp("^"+c(o));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?a.decodePathSegment(r):r}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var o=new RegExp(c(this.filename())+"$");return e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),i?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),o=i.lastIndexOf(".");return-1===o?"":(n=i.substring(o+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?a.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var s,A=this.suffix();if(A)s=e?new RegExp(c(A)+"$"):new RegExp(c("."+A)+"$");else{if(!e)return this;this._parts.path+="."+a.recodePath(e)}return s&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},s.segment=function(e,t,n){var r=this._parts.urn?":":"/",i=this.path(),a="/"===i.substring(0,1),o=i.split(r);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(a&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),void 0===t)return void 0===e?o:o[e];if(null===e||void 0===o[e])if(f(t)){o=[];for(var s=0,A=t.length;s<A;s++)(t[s].length||o.length&&o[o.length-1].length)&&(o.length&&!o[o.length-1].length&&o.pop(),o.push(g(t[s])))}else(t||"string"==typeof t)&&(t=g(t),""===o[o.length-1]?o[o.length-1]=t:o.push(t));else t?o[e]=g(t):o.splice(e,1);return a&&o.unshift(""),this.path(o.join(r),n)},s.segmentCoded=function(e,t,n){var r,i,o;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(f(r=this.segment(e,t,n)))for(i=0,o=r.length;i<o;i++)r[i]=a.decode(r[i]);else r=void 0!==r?a.decode(r):void 0;return r}if(f(t))for(i=0,o=t.length;i<o;i++)t[i]=a.encode(t[i]);else t="string"==typeof t||t instanceof String?a.encode(t):t;return this.segment(e,t,n)};var S=s.query;return s.query=function(e,t){if(!0===e)return a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=a.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):S.call(this,e,t)},s.setQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)r[e]=void 0!==t?t:null;else{if("object"!==o(e))throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in e)A.call(e,i)&&(r[i]=e[i])}return this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},s.addQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.addQuery(r,e,void 0===t?null:t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},s.removeQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.removeQuery(r,e,t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},s.hasQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.hasQuery(r,e,t,n)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},s.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===a.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=a.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var r,i,o="";for("/"!==(n=a.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(o=n.substring(1).match(/^(\.\.\/)+/)||"")&&(o=o[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(i=n.substring(0,r).lastIndexOf("/"))&&(i=r),n=n.substring(0,i)+n.substring(r+3)):n=n.substring(3);return t&&this.is("relative")&&(n=o+n.substring(1)),this._parts.path=n,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(a.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=a.encode,t=a.decode;a.encode=escape,a.decode=decodeURIComponent;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.unicode=function(){var e=a.encode,t=a.decode;a.encode=y,a.decode=unescape;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var r="",i=0,o=t._parts.query.split("&"),s=o.length;i<s;i++){var A=(o[i]||"").split("=");r+="&"+a.decodeQuery(A[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==A[1]&&(r+="="+a.decodeQuery(A[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=a.decodeQuery(t.hash(),!0)},s.absoluteTo=function(e){var t,n,r,i=this.clone(),o=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof a||(e=new a(e)),i._parts.protocol)return i;if(i._parts.protocol=e._parts.protocol,this._parts.hostname)return i;for(n=0;r=o[n];n++)i._parts[r]=e._parts[r];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),i._parts.path=(t?t+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=e._parts.path,i._parts.query||(i._parts.query=e._parts.query)),i.build(),i},s.relativeTo=function(e){var t,n,r,i,o,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new a(e).normalize(),t=s._parts,n=e._parts,i=s.path(),o=e.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==o.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==n.hostname||t.port!==n.port)return s.build();if(t.hostname=null,t.port=null,i===o)return t.path="",s.build();if(!(r=a.commonPath(i,o)))return s.build();var A=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=A+t.path.substring(r.length)||"./",s.build()},s.equals=function(e){var t,n,r,i,o,s=this.clone(),c=new a(e),u={};if(s.normalize(),c.normalize(),s.toString()===c.toString())return!0;if(r=s.query(),i=c.query(),s.query(""),c.query(""),s.toString()!==c.toString())return!1;if(r.length!==i.length)return!1;for(o in t=a.parseQuery(r,this._parts.escapeQuerySpace),n=a.parseQuery(i,this._parts.escapeQuerySpace),t)if(A.call(t,o)){if(f(t[o])){if(!l(t[o],n[o]))return!1}else if(t[o]!==n[o])return!1;u[o]=!0}for(o in n)if(A.call(n,o)&&!u[o])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},a}))}).call(this,n(13)(e))},function(e,t,n){(function(e,r){var i;function a(e){return(a="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})(e)}
21
- /*! https://mths.be/punycode v1.4.0 by @mathias */!function(o){var s="object"==a(t)&&t&&!t.nodeType&&t,A="object"==a(e)&&e&&!e.nodeType&&e,c="object"==(void 0===r?"undefined":a(r))&&r;c.global!==c&&c.window!==c&&c.self!==c||(o=c);var u,f,h=2147483647,d=/^xn--/,l=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=Math.floor,I=String.fromCharCode;function b(e){throw new RangeError(p[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(g,".")).split("."),t).join(".")}function E(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function B(e){return C(e,(function(e){var t="";return e>65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?y(e/700):e>>1,e+=y(e/t);e>455;r+=36)e=y(e/35);return y(r+36*e/(e+38))}function Q(e){var t,n,r,i,a,o,s,A,c,u,f,d=[],l=e.length,g=0,p=128,I=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&b("not-basic"),d.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<l;){for(a=g,o=1,s=36;i>=l&&b("invalid-input"),((A=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||A>y((h-g)/o))&&b("overflow"),g+=A*o,!(A<(c=s<=I?1:s>=I+26?26:s-I));s+=36)o>y(h/(u=36-c))&&b("overflow"),o*=u;I=w(g-a,t=d.length+1,0==a),y(g/t)>h-p&&b("overflow"),p+=y(g/t),g%=t,d.splice(g++,0,p)}return B(d)}function S(e){var t,n,r,i,a,o,s,A,c,u,f,d,l,g,p,C=[];for(d=(e=E(e)).length,t=128,n=0,a=72,o=0;o<d;++o)(f=e[o])<128&&C.push(I(f));for(r=i=C.length,i&&C.push("-");r<d;){for(s=h,o=0;o<d;++o)(f=e[o])>=t&&f<s&&(s=f);for(s-t>y((h-n)/(l=r+1))&&b("overflow"),n+=(s-t)*l,t=s,o=0;o<d;++o)if((f=e[o])<t&&++n>h&&b("overflow"),f==t){for(A=n,c=36;!(A<(u=c<=a?1:c>=a+26?26:c-a));c+=36)p=A-u,g=36-u,C.push(I(v(u+p%g,0))),A=y(p/g);C.push(I(v(A,0))),a=w(n,l,r==i),n=0,++r}++n,++t}return C.join("")}if(u={version:"1.3.2",ucs2:{decode:E,encode:B},decode:Q,encode:S,toASCII:function(e){return m(e,(function(e){return l.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return m(e,(function(e){return d.test(e)?Q(e.slice(4).toLowerCase()):e}))}},"object"==a(n(69))&&n(69))void 0===(i=function(){return u}.call(t,n,t,e))||(e.exports=i);else if(s&&A)if(e.exports==s)A.exports=u;else for(f in u)u.hasOwnProperty(f)&&(s[f]=u[f]);else o.punycode=u}(this)}).call(this,n(13)(e),n(5))},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(e){var r,i;function a(e){return(a="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})(e)}
22
- /*!
23
- * URI.js - Mutating URLs
24
- * IPv6 Support
25
- *
26
- * Version: 1.19.2
27
- *
28
- * Author: Rodney Rehm
29
- * Web: http://medialize.github.io/URI.js/
30
- *
31
- * Licensed under
32
- * MIT License http://www.opensource.org/licenses/mit-license
33
- *
34
- */!function(o,s){"use strict";"object"===a(e)&&e.exports?e.exports=s():void 0===(i="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,n,r=e.toLowerCase().split(":"),i=r.length,a=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[i-1]&&""===r[i-2]&&r.pop(),-1!==r[(i=r.length)-1].indexOf(".")&&(a=7),t=0;t<i&&""!==r[t];t++);if(t<a)for(r.splice(t,1,"0000");r.length<a;)r.splice(t,0,"0000");for(var o=0;o<a;o++){n=r[o].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);r[o]=n.join("")}var A=-1,c=0,u=0,f=-1,h=!1;for(o=0;o<a;o++)h?"0"===r[o]?u+=1:(h=!1,u>c&&(A=f,c=u)):"0"===r[o]&&(h=!0,f=o,u=1);u>c&&(A=f,c=u),c>1&&r.splice(A,c,""),i=r.length;var d="";for(""===r[0]&&(d=":"),o=0;o<i&&(d+=r[o],o!==i-1);o++)d+=":";return""===r[i-1]&&(d+=":"),d},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))}).call(this,n(13)(e))},function(e,t,n){(function(e){var r,i;function a(e){return(a="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})(e)}
35
- /*!
36
- * URI.js - Mutating URLs
37
- * Second Level Domain (SLD) Support
38
- *
39
- * Version: 1.19.2
40
- *
41
- * Author: Rodney Rehm
42
- * Web: http://medialize.github.io/URI.js/
43
- *
44
- * Licensed under
45
- * MIT License http://www.opensource.org/licenses/mit-license
46
- *
47
- */!function(o,s){"use strict";"object"===a(e)&&e.exports?e.exports=s():void 0===(i="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}))}).call(this,n(13)(e))},function(e,t,n){var r=n(10),i=n(11),a=0,o=function(){"use strict";function e(){r(this,e)}return i(e,null,[{key:"next",value:function(){return++a}}]),e}();e.exports=o},function(e,t,n){"use strict";(function(t,r){var i=n(32);e.exports=b;var a,o=n(42);b.ReadableState=I;n(24).EventEmitter;var s=function(e,t){return e.listeners(t).length},A=n(74),c=n(48).Buffer,u=t.Uint8Array||function(){};var f=n(25);f.inherits=n(0);var h=n(127),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var l,g=n(128),p=n(75);f.inherits(b,A);var y=["error","close","destroy","pause","resume"];function I(e,t){e=e||{};var r=t instanceof(a=a||n(15));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n(26).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(15),!(this instanceof b))return new b(e);this._readableState=new I(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),A.call(this)}function C(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,B(e)}(e,o)):(i||(a=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?m(e,o,t,!1):w(e,o)):m(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function m(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&B(e)),w(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=p.destroy,b.prototype._undestroy=p.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),C(this,e,t,!1,n)},b.prototype.unshift=function(e){return C(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return l||(l=n(26).StringDecoder),this._readableState.decoder=new l(e),this._readableState.encoding=e,this};function E(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=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function B(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(v,e):v(e))}function v(e){d("emit readable"),e.emit("readable"),k(e)}function w(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(Q,e,t))}function Q(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function S(e){d("readable nexttick read 0"),e.read(0)}function M(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),k(e),t.flowing&&!t.reading&&e.read(0)}function k(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function _(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(x,t,e))}function x(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?_(this):B(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&_(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&_(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var A=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:b;function c(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",I),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",g),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function u(){d("onend"),e.end()}a.endEmitted?i.nextTick(A):n.once("end",A),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,k(e))}}(n);e.on("drain",f);var h=!1;var l=!1;function g(t){d("ondata"),l=!1,!1!==e.write(t)||l||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==R(a.pipes,e))&&!h&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,l=!0),n.pause())}function p(t){d("onerror",t),b(),e.removeListener("error",p),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",I),b()}function I(){d("onfinish"),e.removeListener("close",y),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",g),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",y),e.once("finish",I),e.emit("pipe",n),a.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};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,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=R(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,n),this)},b.prototype.on=function(e,t){var n=A.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&B(this):i.nextTick(S,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<y.length;a++)e.on(y[a],this.emit.bind(this,y[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=D}).call(this,n(5),n(4))},function(e,t,n){e.exports=n(24).EventEmitter},function(e,t,n){"use strict";var r=n(32);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(5))},function(e,t,n){"use strict";e.exports=o;var r=n(15),i=n(25);function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){A(e,t,n)})):A(this,null,null)}function A(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(0),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.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},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){e.exports={encode:n(147),decode:n(148),encodingLength:n(149)}},function(e,t,n){"use strict";var r=n(1).Buffer,i=n(31).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(0)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,n){var r=n(0),i=n(20),a=n(1).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function A(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(A,i),A.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},A.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,A=0|this._e,l=0|this._f,g=0|this._g,p=0|this._h,y=0;y<16;++y)n[y]=e.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((t=n[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[y-7]+d(n[y-15])+n[y-16];for(var I=0;I<64;++I){var b=p+h(A)+c(A,l,g)+o[I]+n[I]|0,C=f(r)+u(r,i,a)|0;p=g,g=l,l=A,A=s+b|0,s=a,a=i,i=r,r=b+C|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=A+this._e|0,this._f=l+this._f|0,this._g=g+this._g|0,this._h=p+this._h|0},A.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=A},function(e,t,n){var r=n(0),i=n(20),a=n(1).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function A(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}r(A,i),A.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},A.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,A=0|this._fh,I=0|this._gh,b=0|this._hh,C=0|this._al,m=0|this._bl,E=0|this._cl,B=0|this._dl,v=0|this._el,w=0|this._fl,Q=0|this._gl,S=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var k=t[M-30],D=t[M-30+1],_=d(k,D),x=l(D,k),R=g(k=t[M-4],D=t[M-4+1]),N=p(D,k),F=t[M-14],H=t[M-14+1],L=t[M-32],U=t[M-32+1],G=x+H|0,O=_+F+y(G,x)|0;O=(O=O+R+y(G=G+N|0,N)|0)+L+y(G=G+U|0,U)|0,t[M]=O,t[M+1]=G}for(var T=0;T<160;T+=2){O=t[T],G=t[T+1];var P=u(n,r,i),j=u(C,m,E),Y=f(n,C),K=f(C,n),q=h(s,v),J=h(v,s),z=o[T],V=o[T+1],Z=c(s,A,I),W=c(v,w,Q),X=S+J|0,$=b+q+y(X,S)|0;$=($=($=$+Z+y(X=X+W|0,W)|0)+z+y(X=X+V|0,V)|0)+O+y(X=X+G|0,G)|0;var ee=K+j|0,te=Y+P+y(ee,K)|0;b=I,S=Q,I=A,Q=w,A=s,w=v,s=a+$+y(v=B+X|0,B)|0,a=i,B=E,i=r,E=m,r=n,m=C,n=$+te+y(C=X+ee|0,X)|0}this._al=this._al+C|0,this._bl=this._bl+m|0,this._cl=this._cl+E|0,this._dl=this._dl+B|0,this._el=this._el+v|0,this._fl=this._fl+w|0,this._gl=this._gl+Q|0,this._hl=this._hl+S|0,this._ah=this._ah+n+y(this._al,C)|0,this._bh=this._bh+r+y(this._bl,m)|0,this._ch=this._ch+i+y(this._cl,E)|0,this._dh=this._dh+a+y(this._dl,B)|0,this._eh=this._eh+s+y(this._el,v)|0,this._fh=this._fh+A+y(this._fl,w)|0,this._gh=this._gh+I+y(this._gl,Q)|0,this._hh=this._hh+b+y(this._hl,S)|0},A.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=A},function(e,t,n){var r=n(51);e.exports=function(e){return(new r).update(e).digest()}},function(e,t,n){e.exports=n(84)},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,n){(function(t){var n=Math.pow(2,30)-1;function r(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}e.exports=function(e,t,i,a){if(r(e,"Password"),r(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>n||a!=a)throw new TypeError("Bad key length")}}).call(this,n(2).Buffer)},function(e,t,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,n(4))},function(e,t,n){var r=n(82),i=n(52),a=n(53),o=n(85),s=n(86),A=n(1).Buffer,c=A.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,n){var o=function(e){function t(t){return a(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=o(t):t.length<s&&(t=A.concat([t,c],s));for(var f=A.allocUnsafe(s+u[e]),h=A.allocUnsafe(s+u[e]),d=0;d<s;d++)f[d]=54^t[d],h[d]=92^t[d];var l=A.allocUnsafe(s+n+4);f.copy(l,0,0,s),this.ipad1=l,this.ipad2=f,this.opad=h,this.alg=e,this.blocksize=s,this.hash=o,this.size=u[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){o(e,t,n,r),A.isBuffer(e)||(e=A.from(e,s)),A.isBuffer(t)||(t=A.from(t,s));var a=new f(i=i||"sha1",e,t.length),c=A.allocUnsafe(r),h=A.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var d=0,l=u[i],g=Math.ceil(r/l),p=1;p<=g;p++){h.writeUInt32BE(p,t.length);for(var y=a.run(h,a.ipad1),I=y,b=1;b<n;b++){I=a.run(I,a.ipad2);for(var C=0;C<l;C++)y[C]^=I[C]}y.copy(c,d),d+=l}return c}},function(e,t,n){var r=n(157),i=n(57),a=n(58),o=n(170),s=n(34);function A(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return A(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=A,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},t.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,A=0;A<s;A++)a<<=1,a|=e>>>r[A]&1;for(A=s;A<r.length;A++)o<<=1,o|=t>>>r[A]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},function(e,t,n){"use strict";var r=n(7),i=n(0),a=n(89),o=n(56);function s(){this.tmp=new Array(2),this.keys=null}function A(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(A,o),e.exports=A,A.create=function(e){return new A(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];A.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=c[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},A.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},A.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},A.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},A.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,A=0;A<e.keys.length;A+=2){var c=e.keys[A],u=e.keys[A+1];a.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var f=a.substitute(c,u),h=s;s=(o^a.permute(f))>>>0,o=h}a.rip(s,o,r,i)},A.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,A=e.keys.length-2;A>=0;A-=2){var c=e.keys[A],u=e.keys[A+1];a.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var f=a.substitute(c,u),h=o;o=(s^a.permute(f))>>>0,s=h}a.rip(o,s,r,i)}},function(e,t,n){var r=n(27),i=n(1).Buffer,a=n(92);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var A=o(e),c=a+16*s;e._cache.writeUInt32BE(A[0],c+0),e._cache.writeUInt32BE(A[1],c+4),e._cache.writeUInt32BE(A[2],c+8),e._cache.writeUInt32BE(A[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,n){var r=n(33),i=n(1).Buffer,a=n(12),o=n(0),s=n(168),A=n(27),c=n(92);function u(e,t,n,o){a.call(this);var A=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(A);this._ghash=new s(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var A=8*a,u=i.alloc(8);u.writeUIntBE(A,0,8),r.update(u),e._finID=r.state;var f=i.from(e._finID);return c(f),f}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=A(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},function(e,t,n){var r=n(33),i=n(1).Buffer,a=n(12);function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}n(0)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},function(e,t,n){(function(e){var r=n(97),i=n(173),a=n(174);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new a(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,s,A){return e.isBuffer(i)||void 0===o[i]?t(n,"binary",i,s):(i=i||"binary",A=A||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,A)),"number"==typeof n?new a(r(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,i)),new a(n,s,!0)))}}).call(this,n(2).Buffer)},function(e,t,n){var r=n(17);e.exports=I,I.simpleSieve=p,I.fermatTest=y;var i=n(3),a=new i(24),o=new(n(98)),s=new i(1),A=new i(2),c=new i(5),u=(new i(16),new i(8),new i(10)),f=new i(3),h=(new i(7),new i(11)),d=new i(4),l=(new i(12),null);function g(){if(null!==l)return l;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return l=e,e}function p(e){for(var t=g(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function y(e){var t=i.mont(e);return 0===A.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function I(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,l;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(A),t.cmp(A)){if(!t.cmp(c))for(;n.mod(u).cmp(f);)n.iadd(d)}else for(;n.mod(a).cmp(h);)n.iadd(d);if(p(l=n.shrn(1))&&p(n)&&y(l)&&y(n)&&o.test(l)&&o.test(n))return n}}},function(e,t,n){var r=n(3),i=n(59);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),A=0;!s.testn(A);A++);for(var c=e.shrn(A),u=s.toRed(a);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var h=f.toRed(a).redPow(c);if(0!==h.cmp(o)&&0!==h.cmp(u)){for(var d=1;d<A;d++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(u))break}if(d===A)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var A=e.shrn(s),c=o.toRed(i);t>0;t--){var u=this._randrange(new r(2),o),f=e.gcd(u);if(0!==f.cmpn(1))return f;var h=u.toRed(i).redPow(A);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var d=1;d<s;d++){if(0===(h=h.redSqr()).cmp(a))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(d===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){(function(t){var r=n(19),i=n(31),a=n(0),o=n(175),s=n(207),A=n(84);function c(e){i.Writable.call(this);var t=A[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){i.Writable.call(this);var t=A[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new c(e)}function h(e){return new u(e)}Object.keys(A).forEach((function(e){A[e].id=new t(A[e].id,"hex"),A[e.toLowerCase()]=A[e]})),a(c,i.Writable),c.prototype._write=function(e,t,n){this._hash.update(e),n()},c.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=o(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(u,i.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},u.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var i=this._hash.digest();return s(n,i,e,this._signType,this._tag)},e.exports={Sign:f,Verify:h,createSign:f,createVerify:h}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(35),r.short=n(177),r.mont=n(178),r.edwards=n(179)},function(e,t,n){"use strict";var r=n(9).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(9),i=n(28),a=n(102),o=n(7),s=r.sum32,A=r.sum32_4,c=r.sum32_5,u=a.ch32,f=a.maj32,h=a.s0_256,d=a.s1_256,l=a.g0_256,g=a.g1_256,p=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function I(){if(!(this instanceof I))return new I;p.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(I,p),e.exports=I,I.blockSize=512,I.outSize=256,I.hmacStrength=192,I.padLength=64,I.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=A(g(n[r-2]),n[r-7],l(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],p=this.h[2],y=this.h[3],I=this.h[4],b=this.h[5],C=this.h[6],m=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var E=c(m,d(I),u(I,b,C),this.k[r],n[r]),B=s(h(i),f(i,a,p));m=C,C=b,b=I,I=s(y,E),y=p,p=a,a=i,i=s(E,B)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],p),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],I),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],C),this.h[7]=s(this.h[7],m)},I.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(9),i=n(28),a=n(7),o=r.rotr64_hi,s=r.rotr64_lo,A=r.shr64_hi,c=r.shr64_lo,u=r.sum64,f=r.sum64_hi,h=r.sum64_lo,d=r.sum64_4_hi,l=r.sum64_4_lo,g=r.sum64_5_hi,p=r.sum64_5_lo,y=i.BlockHash,I=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=I,this.W=new Array(160)}function C(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function m(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function E(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function B(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function v(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function w(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function Q(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function S(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function M(e,t){var n=o(e,t,1)^o(e,t,8)^A(e,t,7);return n<0&&(n+=4294967296),n}function k(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function D(e,t){var n=o(e,t,19)^o(t,e,29)^A(e,t,6);return n<0&&(n+=4294967296),n}function _(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,y),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=D(n[r-4],n[r-3]),a=_(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],A=M(n[r-30],n[r-29]),c=k(n[r-30],n[r-29]),u=n[r-32],f=n[r-31];n[r]=d(i,a,o,s,A,c,u,f),n[r+1]=l(i,a,o,s,A,c,u,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],A=this.h[4],c=this.h[5],d=this.h[6],l=this.h[7],y=this.h[8],I=this.h[9],b=this.h[10],M=this.h[11],k=this.h[12],D=this.h[13],_=this.h[14],x=this.h[15];a(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var N=_,F=x,H=Q(y,I),L=S(y,I),U=C(y,I,b,M,k),G=m(y,I,b,M,k,D),O=this.k[R],T=this.k[R+1],P=n[R],j=n[R+1],Y=g(N,F,H,L,U,G,O,T,P,j),K=p(N,F,H,L,U,G,O,T,P,j);N=v(r,i),F=w(r,i),H=E(r,i,o,s,A),L=B(r,i,o,s,A,c);var q=f(N,F,H,L),J=h(N,F,H,L);_=k,x=D,k=b,D=M,b=y,M=I,y=f(d,l,Y,K),I=h(l,l,Y,K),d=A,l=c,A=o,c=s,o=r,s=i,r=f(Y,K,q,J),i=h(Y,K,q,J)}u(this.h,0,r,i),u(this.h,2,o,s),u(this.h,4,A,c),u(this.h,6,d,l),u(this.h,8,y,I),u(this.h,10,b,M),u(this.h,12,k,D),u(this.h,14,_,x)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){function r(e){return(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})(e)}var i=n(0),a=n(30).Reporter,o=n(2).Buffer;function s(e,t){a.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function A(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof A||(e=new A(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+r(e));this.value=e,this.length=e.length}}i(s,a),t.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,a.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new s(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=A,A.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,n){var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(199)},function(e,t,n){var r=n(0),i=n(29),a=i.base,o=i.bignum,s=i.constants.der;function A(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var a=n;for(n=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var a=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}e.exports=A,A.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(c,a.Node),c.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},c.prototype._decodeTag=function(e,t,n){var r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=f(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var n=u(e,t);if(e.isError(n))return n;var r,i=f(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=n.decode(e,"der",r);if(e.isError(o)&&a)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(i.push(a),a=0)}128&o&&i.push(a);var s=i[0]/40|0,A=i[0]%40;if(r=n?i:[s,A].concat(i.slice(1)),t){var c=t[r.join(" ")];void 0===c&&(c=t[r.join(".")]),void 0!==c&&(r=c)}return r},c.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),A=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),A=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,A,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var n=e.raw(),r=new o(n);return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var r=n(0),i=n(2).Buffer,a=n(29),o=a.base,s=a.constants.der;function A(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=A,A.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,o.Node),c.prototype._encodeComposite=function(e,t,n,r){var a,o=function(e,t,n,r){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(a=new i(2))[0]=o,a[1]=r.length,this._createEncoderBuffer([a,r]);for(var A=1,c=r.length;c>=256;c>>=8)A++;(a=new i(2+A))[0]=o,a[1]=128|A;c=1+A;for(var u=r.length;u>0;c--,u>>=8)a[c]=255&u;return this._createEncoderBuffer([a,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(r=0;r<e.length;r++){var o=e[r];for(a++;o>=128;o>>=7)a++}var s=new i(a),A=s.length-1;for(r=e.length-1;r>=0;r--){o=e[r];for(s[A--]=127&o;(o>>=7)>0;)s[A--]=128|127&o}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new i(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var o=e;o>=256;o>>=8)r++;for(o=(a=new Array(r)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,n){(function(t){var r=n(61),i=n(3);e.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,n,r){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(r&&i.length<r){var a=new t(r-i.length);a.fill(0),i=t.concat([a,i])}return n?i.toString(n):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(2).Buffer)},function(e,t,n){t.publicEncrypt=n(208),t.privateDecrypt=n(209),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(19),i=n(1).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){var r=n(3),i=n(1).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t,n){"use strict";(function(e,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(1),o=n(17),s=a.Buffer,A=a.kMaxLength,c=e.crypto||e.msCrypto,u=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>A||e>t)throw new RangeError("offset out of range")}function h(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>A)throw new RangeError("buffer too small")}function d(e,t,n,i){if(r.browser){var a=e.buffer,s=new Uint8Array(a,t,n);return c.getRandomValues(s),i?void r.nextTick((function(){i(null,e)})):e}if(!i)return o(n).copy(e,t),e;o(n,(function(n,r){if(n)return i(n);r.copy(e,t),i(null,e)}))}c&&c.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)i=n,n=0,r=t.length;else if("function"==typeof r)i=r,r=t.length-n;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return f(n,t.length),h(r,n,t.length),d(t,n,r,i)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(n,t.length),void 0===r&&(r=t.length-n);return h(r,n,t.length),d(t,n,r)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,n(5),n(4))},function(e,t,n){"use strict";(function(t,r){var i;e.exports=v,v.ReadableState=B;n(24).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=n(117),s=n(2).Buffer,A=t.Uint8Array||function(){};var c,u=n(213);c=u&&u.debuglog?u.debuglog("stream"):function(){};var f,h,d=n(214),l=n(118),g=n(119).getHighWaterMark,p=n(21).codes,y=p.ERR_INVALID_ARG_TYPE,I=p.ERR_STREAM_PUSH_AFTER_EOF,b=p.ERR_METHOD_NOT_IMPLEMENTED,C=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m=n(216).emitExperimentalWarning;n(0)(v,o);var E=["error","close","destroy","pause","resume"];function B(e,t,r){i=i||n(22),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",r),this.buffer=new d,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.paused=!0,this.emitClose=!1!==e.emitClose,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(26).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||n(22),!(this instanceof v))return new v(e);var t=this instanceof i;this._readableState=new B(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function w(e,t,n,r,i){c("readableAddChunk",t);var a,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,k(e)))}(e,o);else if(i||(a=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof A||"string"==typeof t||void 0===t||e.objectMode||(n=new y("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(o,t)),a)e.emit("error",a);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)o.endEmitted?e.emit("error",new C):Q(e,o,t,!0);else if(o.ended)e.emit("error",new I);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?Q(e,o,t,!1):D(e,o)):Q(e,o,t,!1)}else r||(o.reading=!1,D(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function Q(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),D(e,t)}Object.defineProperty(v.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=l.destroy,v.prototype._undestroy=l.undestroy,v.prototype._destroy=function(e,t){t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return f||(f=n(26).StringDecoder),this._readableState.decoder=new f(e),this._readableState.encoding=this._readableState.decoder.encoding,this};function S(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=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(k,e))}function k(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||e.emit("readable"),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function D(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(_,e,t))}function _(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(c("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function x(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){c("readable nexttick read 0"),e.read(0)}function N(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function H(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){c("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):M(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&L(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?H(e,t):null)?(t.needReadable=!0,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new b("_read()"))},v.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?A:p;function s(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",l),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",s),n.removeListener("end",A),n.removeListener("end",p),n.removeListener("data",h),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function A(){c("onend"),e.end()}i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",u);var f=!1;function h(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==G(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){c("onerror",t),p(),e.removeListener("error",d),0===a(e,"error")&&e.emit("error",t)}function l(){e.removeListener("finish",g),p()}function g(){c("onfinish"),e.removeListener("close",l),p()}function p(){c("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",l),e.once("finish",g),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};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,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=G(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,n),this)},v.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?M(this):i.reading||r.nextTick(R,this))),n},v.prototype.addListener=v.prototype.on,v.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(x,this),n},v.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(x,this),t},v.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},v.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){c("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(v.prototype[Symbol.asyncIterator]=function(){return m("Readable[Symbol.asyncIterator]"),void 0===h&&(h=n(217)),h(this)}),Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(v.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(v.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),v._fromList=H,Object.defineProperty(v.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}})}).call(this,n(5),n(4))},function(e,t,n){e.exports=n(24).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&&this._readableState.destroyed,A=this._writableState&&this._writableState.destroyed;return s||A?(a?a(e):!e||this._writableState&&this._writableState.errorEmitted||t.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!a&&e?(t.nextTick(n,o,e),o._writableState&&(o._writableState.errorEmitted=!0)):a?(t.nextTick(r,o),a(e)):t.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}).call(this,n(4))},function(e,t,n){"use strict";var r=n(21).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t,r){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var a;e.exports=v,v.WritableState=B;var o={deprecate:n(76)},s=n(117),A=n(2).Buffer,c=t.Uint8Array||function(){};var u,f=n(118),h=n(119).getHighWaterMark,d=n(21).codes,l=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,p=d.ERR_MULTIPLE_CALLBACK,y=d.ERR_STREAM_CANNOT_PIPE,I=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,C=d.ERR_STREAM_WRITE_AFTER_END,m=d.ERR_UNKNOWN_ENCODING;function E(){}function B(e,t,o){a=a||n(22),e=e||{},"boolean"!=typeof o&&(o=t instanceof a),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,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 n=e._writableState,i=n.sync,a=n.writecb;if("function"!=typeof a)throw new p;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,a){--t.pendingcb,n?(r.nextTick(a,i),r.nextTick(D,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),D(e,t))}(e,n,i,t,a);else{var o=M(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),i?r.nextTick(Q,e,n,o,a):Q(e,n,o,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.emitClose=!1!==e.emitClose,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function v(e){var t=this instanceof(a=a||n(22));if(!t&&!u.call(v,this))return new v(e);this._writableState=new B(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function w(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new I("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function Q(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),D(e,t)}function S(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,a=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,A=!0;n;)a[s]=n,n.isBuf||(A=!1),n=n.next,s+=1;a.allBuffers=A,w(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,f=n.callback;if(w(e,t,!1,t.objectMode?1:c.length,c,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),D(e,t)}))}function D(e,t){var n=M(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(k,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}n(0)(v,s),B.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(B.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===v&&(e&&e._writableState instanceof B)}})):u=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new y)},v.prototype.write=function(e,t,n){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,A.isBuffer(i)||i instanceof c);return s&&!A.isBuffer(e)&&(e=function(e){return A.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=E),a.ending?function(e,t){var n=new C;e.emit("error",n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var a;return null===n?a=new b:"string"==typeof n||t.objectMode||(a=new l("chunk",["string","Buffer"],n)),!a||(e.emit("error",a),r.nextTick(i,a),!1)}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=A.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else w(e,t,!1,s,r,i,a);return c}(this,a,s,e,t,n)),o},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},v.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 m(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new g("_write()"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,D(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(v.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(v.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=f.destroy,v.prototype._undestroy=f.undestroy,v.prototype._destroy=function(e,t){t(e)}}).call(this,n(5),n(4))},function(e,t,n){"use strict";e.exports=u;var r=n(21).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,A=n(22);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);A.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,n){h(e,t,n)}))}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(0)(u,A),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,A.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){A.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"parentAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"creator",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"stakeholder",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canConfirm",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setGroupRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"countVersionHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"commitPending",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"kill",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"confirmCommit",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"clearPending",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"pendingHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newCreator",type:"address"}],name:"transferCreatorship",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canCommit",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionTimestamp",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionHashes",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_objectHash",type:"string"}],name:"commit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"contentSpace",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"updateRequest",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"objectHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_versionHash",type:"string"}],name:"deleteVersion",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"accessRequest",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"content_space",type:"address"}],payable:!0,stateMutability:"payable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"parentAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"CommitPending",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"objectHash",type:"string"}],name:"UpdateRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"VersionConfirm",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"versionHash",type:"string"},{indexed:!1,name:"index",type:"int256"}],name:"VersionDelete",type:"event"},{anonymous:!1,inputs:[],name:"AccessRequest",type:"event"}]}},function(e,t,n){(function(e,r){var i=n(6),a=n(14),o=n(10),s=n(11);void 0===e&&(e=n(2).Buffer);var A=n(67),c=n(23),u=n(125),f=n(225),h=n(226),d=n(228),l=n(43),g=n(16);g.Platform()===g.PLATFORM_NODE?r.Response=n(44).Response:g.Platform()===g.PLATFORM_REACT_NATIVE&&n(!function(){var e=new Error("Cannot find module 'unorm'");throw e.code="MODULE_NOT_FOUND",e}());var p=function(){"use strict";function e(t){var n=t.contentSpaceId,r=t.fabricURIs,i=t.ethereumURIs,a=t.kmsURIs,s=void 0===a?[]:a,A=t.noCache,c=void 0!==A&&A,u=t.noAuth,f=void 0!==u&&u;o(this,e),this.utils=g,this.contentSpaceId=n,this.contentSpaceAddress=this.utils.HashToAddress(n),this.contentSpaceLibraryId=this.utils.AddressToLibraryId(this.contentSpaceAddress),this.contentSpaceObjectId=this.utils.AddressToObjectId(this.contentSpaceAddress),this.fabricURIs=r,this.ethereumURIs=i,this.kmsURIs=s,this.noCache=c,this.noAuth=f,this.debug=!1,this.InitializeClients()}return s(e,[{key:"Log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.debug&&("object"===a(e)&&(e=JSON.stringify(e)),t?console.error("\n(elv-client-js#ElvClient) ".concat(e,"\n")):console.log("\n(elv-client-js#ElvClient) ".concat(e,"\n")))}},{key:"ToggleLogging",value:function(e){this.debug=e,this.authClient&&(this.authClient.debug=e),this.ethClient&&(this.ethClient.debug=e),this.HttpClient&&(this.HttpClient.debug=e),this.userProfileClient&&(this.userProfileClient.debug=e),e&&this.Log("Debug Logging Enabled:\n Content Space: ".concat(this.contentSpaceId,"\n Fabric URLs: [\n\t\t").concat(this.fabricURIs.join(", \n\t\t"),"\n\t]\n Ethereum URLs: [\n\t\t").concat(this.ethereumURIs.join(", \n\t\t"),"\n\t]"))}}]),s(e,[{key:"InitializeClients",value:function(){this.contentTypes={},this.encryptionConks={},this.reencryptionConks={},this.stateChannelAccess={},this.objectLibraryIds={},this.HttpClient=new l({uris:this.fabricURIs,debug:this.debug}),this.ethClient=new h({uris:this.ethereumURIs,debug:this.debug}),this.authClient=new u({client:this,contentSpaceId:this.contentSpaceId,signer:this.signer,noCache:this.noCache,noAuth:this.noAuth,debug:this.debug}),this.userProfileClient=new d({client:this,debug:this.debug})}},{key:"SetAuth",value:function(e){this.noAuth=!e,this.authClient.noAuth=!e}},{key:"UseRegion",value:function(t){var n,r,a,o;return i.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(n=t.region,this.configUrl){s.next=3;break}throw Error("Unable to change region: Configuration URL not set");case 3:return s.next=5,i.awrap(e.Configuration({configUrl:this.configUrl,region:n}));case 5:return r=s.sent,a=r.fabricURIs,o=r.ethereumURIs,this.fabricURIs=a,this.ethereumURIs=o,this.HttpClient.uris=a,this.HttpClient.uriIndex=0,this.ethClient.ethereumURIs=o,this.ethClient.ethereumURIIndex=0,s.abrupt("return",{fabricURIs:a,ethereumURIs:o});case 15:case"end":return s.stop()}}),null,this)}},{key:"ResetRegion",value:function(){return i.async((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.configUrl){e.next=2;break}throw Error("Unable to change region: Configuration URL not set");case 2:return e.next=4,i.awrap(this.UseRegion({region:""}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),null,this)}},{key:"NodeId",value:function(t){var n,r,a;return i.async((function(o){for(;;)switch(o.prev=o.next){case 0:return n=t.region,o.next=3,i.awrap(e.Configuration({configUrl:this.configUrl,region:n}));case 3:return r=o.sent,a=r.nodeId,o.abrupt("return",a);case 6:case"end":return o.stop()}}),null,this)}},{key:"Nodes",value:function(){return{fabricURIs:this.fabricURIs,ethereumURIs:this.ethereumURIs}}},{key:"SetNodes",value:function(e){var t=e.fabricURIs,n=e.ethereumURIs;t&&(this.fabricURIs=t,this.HttpClient.uris=t,this.HttpClient.uriIndex=0),n&&(this.ethereumURIs=n,this.ethClient.ethereumURIs=n,this.ethClient.ethereumURIIndex=0)}},{key:"GenerateWallet",value:function(){return new f(this.ethClient.Provider())}},{key:"ClearSigner",value:function(){this.signer=void 0,this.InitializeClients()}},{key:"ClearCache",value:function(){this.authClient.ClearCache()}},{key:"SetSigner",value:function(e){var t=e.signer;t.connect(this.ethClient.Provider()),t.provider.pollingInterval=250,this.signer=t,this.InitializeClients()}},{key:"SetSignerFromWeb3Provider",value:function(e){var t,n;return i.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.provider,(n=new c.providers.Web3Provider(t)).pollingInterval=250,this.signer=n.getSigner(),r.next=6,i.awrap(this.signer.getAddress());case 6:return this.signer.address=r.sent,r.next=9,i.awrap(this.InitializeClients());case 9:case"end":return r.stop()}}),null,this)}},{key:"CurrentAccountAddress",value:function(){return this.signer?this.utils.FormatAddress(this.signer.address):""}},{key:"SetOauthToken",value:function(e){var t,n,r;return i.async((function(i){for(;;)switch(i.prev=i.next){case 0:t=e.token,this.oauthToken=t,n=this.GenerateWallet(),r=n.AddAccountFromMnemonic({mnemonic:n.GenerateMnemonic()}),this.SetSigner({signer:r});case 5:case"end":return i.stop()}}),null,this)}},{key:"SetSignerFromOauthToken",value:function(e){var t,n,r,a,o,s;return i.async((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=e.token,this.kmsURIs&&0!==this.kmsURIs.length){A.next=3;break}throw Error("Unable to authorize with OAuth token: No KMS URLs set");case 3:return this.oauthToken=t,"/ks/jwt/wlt",n=new l({uris:this.kmsURIs}),A.next=8,i.awrap(this.utils.ResponseToJson(n.Request({headers:{Authorization:"Bearer ".concat(t)},method:"PUT",path:"/ks/jwt/wlt"})));case 8:r=A.sent,a=r.UserSKHex,o=this.GenerateWallet(),s=o.AddAccount({privateKey:a}),this.SetSigner({signer:s});case 13:case"end":return A.stop()}}),null,this)}},{key:"FrameAllowedMethods",value:function(){var e=["constructor","AccessGroupMembershipMethod","CallFromFrameMessage","ClearSigner","FormatBlockNumbers","FrameAllowedMethods","FromConfigurationUrl","GenerateWallet","InitializeClients","Log","SetSigner","SetSignerFromWeb3Provider","ToggleLogging"];return Object.getOwnPropertyNames(Object.getPrototypeOf(this)).filter((function(t){return!e.includes(t)}))}},{key:"CallFromFrameMessage",value:function(e,t){var n,r,o,s,A=this;return i.async((function(c){for(;;)switch(c.prev=c.next){case 0:if("ElvFrameRequest"===e.type){c.next=2;break}return c.abrupt("return");case 2:if(e.callbackId&&(n=function(n){t(A.utils.MakeClonable({type:"ElvFrameResponse",requestId:e.callbackId,response:n}))},e.args.callback=n),c.prev=3,r=e.calledMethod,"userProfileClient"!==e.module){c.next=13;break}if(this.userProfileClient.FrameAllowedMethods().includes(r)){c.next=8;break}throw Error("Invalid user profile method: "+r);case 8:return c.next=10,i.awrap(this.userProfileClient[r](e.args));case 10:o=c.sent,c.next=18;break;case 13:if(this.FrameAllowedMethods().includes(r)){c.next=15;break}throw Error("Invalid method: "+r);case 15:return c.next=17,i.awrap(this[r](e.args));case 17:o=c.sent;case 18:t(this.utils.MakeClonable({type:"ElvFrameResponse",requestId:e.requestId,response:o})),c.next=27;break;case 21:c.prev=21,c.t0=c.catch(3),this.Log("Frame Message Error:\n Method: ".concat(e.calledMethod,"\n Arguments: ").concat(JSON.stringify(e.args,null,2),"\n Error: ").concat("object"===a(c.t0)?JSON.stringify(c.t0,null,2):c.t0),!0),console.error(c.t0),s=c.t0 instanceof Error?c.t0.message:c.t0,t(this.utils.MakeClonable({type:"ElvFrameResponse",requestId:e.requestId,error:s}));case 27:case"end":return c.stop()}}),null,this,[[3,21]])}}],[{key:"Configuration",value:function(e){var t,n,r,a,o,s,c,u,f;return i.async((function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.configUrl,n=e.kmsUrls,r=void 0===n?[]:n,a=e.region,h.prev=1,o=new A(t),a&&o.addSearch("elvgeo",a),h.next=6,i.awrap(g.ResponseToJson(l.Fetch(o.toString())));case 6:return s=h.sent,c=function(e){return e.toLowerCase().startsWith("https")},(u=s.network.seed_nodes.fabric_api).find(c)&&(u=u.filter(c)),(f=s.network.seed_nodes.ethereum_api).find(c)&&(f=f.filter(c)),h.abrupt("return",{nodeId:s.node_id,contentSpaceId:s.qspace.id,fabricURIs:u,ethereumURIs:f,kmsURIs:r});case 15:throw h.prev=15,h.t0=h.catch(1),console.error("Error retrieving fabric configuration:"),console.error(h.t0),h.t0;case 20:case"end":return h.stop()}}),null,null,[[1,15]])}},{key:"FromConfigurationUrl",value:function(t){var n,r,a,o,s,A,c,u,f,h,d;return i.async((function(l){for(;;)switch(l.prev=l.next){case 0:return n=t.configUrl,r=t.region,a=t.noCache,o=void 0!==a&&a,s=t.noAuth,A=void 0!==s&&s,l.next=3,i.awrap(e.Configuration({configUrl:n,region:r}));case 3:return c=l.sent,u=c.contentSpaceId,f=c.fabricURIs,h=c.ethereumURIs,(d=new e({contentSpaceId:u,fabricURIs:f,ethereumURIs:h,noCache:o,noAuth:A})).configUrl=n,l.abrupt("return",d);case 10:case"end":return l.stop()}}))}}]),e}();Object.assign(p.prototype,n(230).access),Object.assign(p.prototype,n(233)),Object.assign(p.prototype,n(234)),Object.assign(p.prototype,n(235).access),t.AccessClient=p}).call(this,n(2).Buffer,n(5))},function(e,t,n){(function(e){function t(e){return(t="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})(e)}var n=function(e){"use strict";var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function A(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new B(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return w()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=C(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var A=c(e,t,n);if("normal"===A.type){if(r=n.done?"completed":"suspendedYield",A.arg===u)continue;return{value:A.arg,done:n.done}}"throw"===A.type&&(r="completed",n.method="throw",n.arg=A.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=A;var u={};function f(){}function h(){}function d(){}var l={};l[a]=function(){return this};var g=Object.getPrototypeOf,p=g&&g(g(v([])));p&&p!==n&&r.call(p,a)&&(l=p);var y=d.prototype=f.prototype=Object.create(l);function I(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e){var n;this._invoke=function(i,a){function o(){return new Promise((function(n,o){!function n(i,a,o,s){var A=c(e[i],e,a);if("throw"!==A.type){var u=A.arg,f=u.value;return f&&"object"===t(f)&&r.call(f,"__await")?Promise.resolve(f.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):Promise.resolve(f).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(A.arg)}(i,a,n,o)}))}return n=n?n.then(o,o):o()}}function C(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function m(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(m,this),this.reset(!0)}function v(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:w}}function w(){return{value:void 0,done:!0}}return h.prototype=y.constructor=d,d.constructor=h,d[s]=h.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},I(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i){var a=new b(A(t,n,r,i));return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},I(y),y[s]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=v,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),A=r.call(a,"finallyLoc");if(s&&A){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(o)},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),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(13)(e))},function(e,t,n){var r=n(6),i=n(14),a=n(10),o=n(11),s=n(43),A=n(23),c=n(72),u=n(45),f=n(16),h=n(37),d=n(38),l=n(39),g=n(122),p=n(40),y=n(223),I=n(224),b="space",C="library",m="type",E="object",B="wallet",v="group",w="other",Q=function(){"use strict";function e(t){var n=t.client,r=t.contentSpaceId,i=t.debug,o=void 0!==i&&i,s=t.noCache,A=void 0!==s&&s,c=t.noAuth,u=void 0!==c&&c;a(this,e),this.client=n,this.contentSpaceId=r,this.noCache=A,this.noAuth=u,this.debug=o,this.accessTransactions={spaces:{},libraries:{},objects:{},encryptedObjects:{},types:{},other:{}},this.modifyTransactions={spaces:{},libraries:{},objects:{},encryptedObjects:{},types:{},other:{}},this.channelContentTokens={},this.reencryptionKeys={},this.requestIds={}}return o(e,[{key:"Log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.debug&&("object"===i(e)&&(e=JSON.stringify(e)),t?console.error("\n(elv-client-js#AuthorizationClient) ".concat(e,"\n")):console.log("\n(elv-client-js#AuthorizationClient) ".concat(e,"\n")))}}]),o(e,[{key:"AuthorizationHeader",value:function(e){var t,n;return r.async((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.awrap(this.AuthorizationToken(e));case 2:return t=i.sent,n={Authorization:"Bearer "+t},e.encryption&&"none"!==e.encryption&&(n["X-Content-Fabric-Encryption-Scheme"]=e.encryption),i.abrupt("return",n);case 6:case"end":return i.stop()}}),null,this)}},{key:"AuthorizationToken",value:function(e){var t,n,i,a,o,s,A,c,u,f,h,d,l,g,p,y,I;return r.async((function(b){for(;;)switch(b.prev=b.next){case 0:if(t=e.libraryId,n=e.objectId,i=e.versionHash,a=e.partHash,o=e.encryption,s=e.audienceData,A=e.update,c=void 0!==A&&A,u=e.channelAuth,f=void 0!==u&&u,h=e.oauthToken,d=e.noCache,l=void 0!==d&&d,g=e.noAuth,p=void 0!==g&&g,y=this.noCache,b.prev=2,l&&!this.noCache&&(this.noCache=!0),!f){b.next=10;break}return b.next=7,r.awrap(this.GenerateChannelContentToken({objectId:n,audienceData:s,oauthToken:h}));case 7:I=b.sent,b.next=13;break;case 10:return b.next=12,r.awrap(this.GenerateAuthorizationToken({libraryId:t,objectId:n,versionHash:i,partHash:a,encryption:o,update:c,noAuth:p}));case 12:I=b.sent;case 13:return b.abrupt("return",I);case 16:throw b.prev=16,b.t0=b.catch(2),b.t0;case 19:return b.prev=19,this.noCache=y,b.finish(19);case 22:case"end":return b.stop()}}),null,this,[[2,16,19,22]])}},{key:"GenerateAuthorizationToken",value:function(e){var t,n,i,a,o,s,c,u,h,d,l,g,y,I,b,C,m;return r.async((function(B){for(;;)switch(B.prev=B.next){case 0:if(t=e.libraryId,n=e.objectId,i=e.versionHash,a=e.partHash,o=e.encryption,s=e.update,c=void 0!==s&&s,u=e.noAuth,h=void 0!==u&&u,i&&(n=f.DecodeVersionHash(i).objectId),B.t0=o&&"none"!==o&&n,!B.t0){B.next=9;break}return B.next=6,r.awrap(this.AccessType(n));case 6:B.t1=B.sent,B.t2=E,B.t0=B.t1===B.t2;case 9:if(!B.t0){B.next=18;break}return B.next=12,r.awrap(this.Owner({id:n,abi:p.abi}));case 12:if(l=B.sent,f.EqualAddress(l,this.client.signer.address)){B.next=18;break}return B.next=16,r.awrap(this.ReEncryptionConk({libraryId:t,objectId:n}));case 16:g=B.sent,d=g.public_key;case 18:if(y={qspace_id:this.contentSpaceId,addr:f.FormatAddress(this.client.signer&&this.client.signer.address||"")},this.noAuth||h){B.next=25;break}return B.next=22,r.awrap(this.MakeAccessRequest({libraryId:t,objectId:n,versionHash:i,update:c,publicKey:d,noCache:this.noCache,noAuth:this.noAuth||h}));case 22:I=B.sent,b=I.transactionHash,y.tx_id=b;case 25:return t&&(y.qlib_id=t),a&&(y.qphash=a),d&&(y.afgh_pk=d),y=f.B64(JSON.stringify(y)),B.next=31,r.awrap(this.Sign(A.utils.keccak256(A.utils.toUtf8Bytes(y))));case 31:return C=B.sent,m=f.FormatSignature(C),B.abrupt("return","".concat(y,".").concat(f.B64(m)));case 34:case"end":return B.stop()}}),null,this)}},{key:"MakeAccessRequest",value:function(e){var t,n,i,a,o,s,A,c,u,h,d,l,g,p,y,I,b,C,m,E,B,v,w,Q,S=this;return r.async((function(M){for(;;)switch(M.prev=M.next){case 0:if(t=e.libraryId,n=e.objectId,i=e.versionHash,a=e.args,o=void 0===a?[]:a,s=e.publicKey,A=void 0===s?"":s,c=e.update,u=void 0!==c&&c,h=e.skipCache,d=void 0!==h&&h,l=e.noCache,g=void 0!==l&&l,p=e.cacheOnly,this.client.signer){M.next=3;break}return M.abrupt("return",{transactionHash:""});case 3:return M.next=5,r.awrap(this.client.userProfileClient.UserWalletAddress({address:this.client.signer.address}));case 5:if(M.sent){M.next=12;break}return M.next=9,r.awrap(this.client.userProfileClient.WalletAddress());case 9:if(M.sent){M.next=12;break}throw Error("User wallet contract is required to make access requests");case 12:return i&&(n=f.DecodeVersionHash(i).objectId),y=n||t||this.contentSpaceId,M.next=16,r.awrap(this.AccessType(y));case 16:if(I=M.sent,b=this.AccessInfo({accessType:I,publicKey:A,update:u,args:o}),C=b.abi,m=b.cache,E=b.accessArgs,B=b.checkAccessCharge,v=f.HashToAddress(y),g||d){M.next=23;break}if(!(w=u?m.modify[v]:m.access[v])){M.next=23;break}return M.abrupt("return",{transactionHash:w});case 23:if(!p){M.next=25;break}return M.abrupt("return");case 25:if(Q={transactionHash:""},!u){M.next=33;break}return this.Log("Making update request on ".concat(I," ").concat(y)),M.next=30,r.awrap(this.UpdateRequest({id:y,abi:C}));case 30:Q=M.sent,M.next=37;break;case 33:return this.Log("Making access request on ".concat(I," ").concat(y)),M.next=36,r.awrap(this.AccessRequest({id:y,abi:C,args:E,checkAccessCharge:B}));case 36:Q=M.sent;case 37:return g||(this.CacheTransaction({accessType:I,address:v,publicKey:A,update:u,transactionHash:Q.transactionHash}),Q.logs.some((function(e){if(e.values&&e.values.requestID)return S.requestIds[v]=e.values.requestID,!0}))),M.abrupt("return",Q);case 39:case"end":return M.stop()}}),null,this)}},{key:"AccessRequest",value:function(e){var t,n,i,a,o,s,A,c,u,h,d,l;return r.async((function(g){for(;;)switch(g.prev=g.next){case 0:return t=e.id,n=e.abi,i=e.args,a=void 0===i?[]:i,o=e.checkAccessCharge,s=void 0!==o&&o,A=0,g.next=4,r.awrap(this.AccessType(t));case 4:if(c=g.sent,!s||c!==E){g.next=16;break}return g.next=8,r.awrap(this.Owner({id:t,abi:n}));case 8:if(u=g.sent,f.EqualAddress(this.client.signer.address,u)){g.next=16;break}return h=[a[0],a[3],a[4]],g.t0=f,g.next=14,r.awrap(this.GetAccessCharge({objectId:t,args:h}));case 14:g.t1=g.sent,A=g.t0.WeiToEther.call(g.t0,g.t1);case 16:return A>0&&this.Log("Access charge: ".concat(A)),g.next=19,r.awrap(this.client.CallContractMethodAndWait({contractAddress:f.HashToAddress(t),abi:n,methodName:"accessRequest",methodArgs:a,value:A}));case 19:if(d=g.sent,l=this.client.ExtractEventFromLogs({abi:n,event:d,eventName:"AccessRequest"}),0!==d.logs.length&&l){g.next=23;break}throw Error("Access denied");case 23:return g.abrupt("return",d);case 24:case"end":return g.stop()}}),null,this)}},{key:"UpdateRequest",value:function(e){var t,n,i,a;return r.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.id,n=e.abi,o.next=3,r.awrap(this.client.CallContractMethodAndWait({contractAddress:f.HashToAddress(t),abi:n,methodName:"updateRequest",methodArgs:[]}));case 3:if(i=o.sent,a=this.client.ExtractEventFromLogs({abi:n,event:i,eventName:"UpdateRequest"}),0!==i.logs.length&&a){o.next=7;break}throw Error("Update request denied");case 7:return o.abrupt("return",i);case 8:case"end":return o.stop()}}),null,this)}},{key:"GenerateChannelContentToken",value:function(e){var t,n,i,a,o,s,u,h,d,l,g,p,y,I;return r.async((function(b){for(;;)switch(b.prev=b.next){case 0:if(t=e.objectId,n=e.audienceData,i=e.oauthToken,a=e.value,o=void 0===a?0:a,!i){b.next=5;break}return b.next=4,r.awrap(this.GenerateOauthChannelToken({objectId:t,token:i}));case 4:return b.abrupt("return",b.sent);case 5:if(this.noCache||!this.channelContentTokens[t]){b.next=7;break}return b.abrupt("return",this.channelContentTokens[t]);case 7:return this.Log("Making state channel access request: ".concat(t)),s=Date.now()+c.next(),u=["address","address","uint","uint"],h=[this.client.signer.address,f.HashToAddress(t),o,s],d=A.utils.solidityKeccak256(u,h),b.next=14,r.awrap(this.Sign(d));case 14:return h[4]=b.sent,l="elv_channelContentRequest",n&&(l="elv_channelContentRequestContext",h[5]=JSON.stringify(n)),b.next=19,r.awrap(this.MakeKMSCall({objectId:t,methodName:l,params:h}));case 19:return g=b.sent,b.next=22,r.awrap(this.Sign(A.utils.keccak256(A.utils.toUtf8Bytes(g))));case 22:return p=b.sent,y=f.FormatSignature(p),I="".concat(g,".").concat(f.B64(y)),this.noCache||(this.channelContentTokens[t]=I),b.abrupt("return",I);case 27:case"end":return b.stop()}}),null,this)}},{key:"ChannelContentFinalize",value:function(e){var t,n,i,a,o,s,u,h,d;return r.async((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.objectId,n=e.audienceData,i=e.percent,a=void 0===i?0:i,this.Log("Making state channel finalize request: ".concat(t)),o=Date.now()+c.next(),s=["address","address","uint","uint"],u=[this.client.signer.address,f.HashToAddress(t),a,o],h=A.utils.solidityKeccak256(s,u),l.next=8,r.awrap(this.Sign(h));case 8:return u[4]=l.sent,u[5]=JSON.stringify(n),l.next=12,r.awrap(this.MakeKMSCall({objectId:t,methodName:"elv_channelContentFinalizeContext",params:u}));case 12:return d=l.sent,this.channelContentTokens[t]=void 0,l.abrupt("return",d);case 15:case"end":return l.stop()}}),null,this)}},{key:"GenerateOauthChannelToken",value:function(e){var t,n,i,a,o,A;return r.async((function(c){for(;;)switch(c.prev=c.next){case 0:if(t=e.objectId,n=e.versionHash,i=e.token,n&&(t=f.DecodeVersionHash(n).objectId),this.noCache||!this.channelContentTokens[t]){c.next=4;break}return c.abrupt("return",this.channelContentTokens[t]);case 4:return c.next=6,r.awrap(this.KMSInfo({objectId:t,versionHash:n}));case 6:if((a=c.sent.urls)&&a[0]){c.next=9;break}throw Error("No KMS info set for ".concat(n||t));case 9:return o=new s({uris:[a[0]],debug:this.debug}),c.t0=r,c.next=13,r.awrap(o.Request({method:"GET",path:h("ks","jwt","q",t),bodyType:"NONE",headers:{Authorization:"Bearer ".concat(i)}}));case 13:return c.t1=c.sent.text(),c.next=16,c.t0.awrap.call(c.t0,c.t1);case 16:return A=c.sent,this.noCache||(this.channelContentTokens[t]=A),c.abrupt("return",A);case 19:case"end":return c.stop()}}),null,this)}},{key:"CacheTransaction",value:function(e){var t=e.accessType,n=e.address,r=e.publicKey,i=e.update,a=e.transactionHash,o=i?this.modifyTransactions:this.accessTransactions;switch(t){case b:o=o.spaces;break;case C:o=o.libraries;break;case m:o=o.types;break;case E:o=r?o.encryptedObjects:o.objects;break;default:o=o.other}o[n]=a}},{key:"AccessInfo",value:function(e){var t,n,r,i=e.accessType,a=e.publicKey,o=e.update,s=void 0!==o&&o,A=e.args;switch(i){case b:t=d.abi,n={access:this.accessTransactions.spaces,modify:this.modifyTransactions.spaces};break;case C:t=l.abi,n={access:this.accessTransactions.libraries,modify:this.modifyTransactions.libraries};break;case m:t=g.abi,n={access:this.accessTransactions.types,modify:this.modifyTransactions.types};break;case E:t=p.abi,n=a?{access:this.accessTransactions.encryptedObjects,modify:this.modifyTransactions.encryptedObjects}:{access:this.accessTransactions.objects,modify:this.modifyTransactions.objects},r=!0,A&&A.length>0?A[1]=this.client.signer.signingKey?this.client.signer.signingKey.publicKey:"":A=[0,this.client.signer.signingKey?this.client.signer.signingKey.publicKey:"",a,[],[]];break;default:t=s?I.abi:y.abi,n={access:this.accessTransactions.other,modify:this.modifyTransactions.other}}return{abi:t,cache:n,accessArgs:A,checkAccessCharge:r}}},{key:"AccessType",value:function(e){var t;return r.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.awrap(this.client.ethClient.ContractName(f.HashToAddress(e)));case 2:t=n.sent,n.t0=t,n.next="BaseContentSpace"===n.t0?6:"BaseLibrary"===n.t0?7:"BaseContentType"===n.t0?8:"BsAccessWallet"===n.t0?9:"BsAccessCtrlGrp"===n.t0?10:"BaseContent"===n.t0?11:12;break;case 6:return n.abrupt("return",b);case 7:return n.abrupt("return",C);case 8:return n.abrupt("return",m);case 9:return n.abrupt("return",B);case 10:return n.abrupt("return",v);case 11:return n.abrupt("return",E);case 12:return n.abrupt("return",w);case 13:case"end":return n.stop()}}),null,this)}},{key:"AccessComplete",value:function(e){var t,n,i,a,o,s;return r.async((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=e.id,n=e.abi,i=e.score,this.Log("Calling access complete on ".concat(t," with score ").concat(i)),a=f.HashToAddress(t),o=this.requestIds[a]){A.next=6;break}throw Error("Unknown request ID for "+t);case 6:return A.next=8,r.awrap(this.client.CallContractMethodAndWait({contractAddress:a,abi:n,methodName:"accessComplete",methodArgs:[o,i,""]}));case 8:return s=A.sent,delete this.requestIds[a],delete this.accessTransactions.objects[a],A.abrupt("return",s);case 12:case"end":return A.stop()}}),null,this)}},{key:"GetAccessCharge",value:function(e){var t,n,i;return r.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.objectId,n=e.args,a.next=3,r.awrap(this.client.CallContractMethod({contractAddress:f.HashToAddress(t),abi:p.abi,methodName:"getAccessInfo",methodArgs:n}));case 3:return i=a.sent,a.abrupt("return",i[2]);case 5:case"end":return a.stop()}}),null,this)}},{key:"Owner",value:function(e){var t,n,i;return r.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.id,n=e.abi,this.client.signer){a.next=3;break}return a.abrupt("return",!1);case 3:return a.next=5,r.awrap(this.client.CallContractMethod({contractAddress:f.HashToAddress(t),abi:n,methodName:"owner",methodArgs:[]}));case 5:return i=a.sent,a.abrupt("return",f.FormatAddress(i));case 7:case"end":return a.stop()}}),null,this)}},{key:"Sign",value:function(e){return r.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.awrap(Promise.resolve(A.utils.joinSignature(this.client.signer.signingKey.signDigest(e))));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),null,this)}},{key:"KMSAddress",value:function(e){var t,n;return r.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.objectId,(n=e.versionHash)&&(t=f.DecodeVersionHash(n).objectId),i.next=4,r.awrap(this.client.CallContractMethod({contractAddress:f.HashToAddress(t),abi:p.abi,methodName:"addressKMS"}));case 4:return i.abrupt("return",i.sent);case 5:case"end":return i.stop()}}),null,this)}},{key:"KMSInfo",value:function(e){var t,n,i,a;return r.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.objectId,(n=e.versionHash)&&(t=f.DecodeVersionHash(n).objectId),o.next=4,r.awrap(this.client.CallContractMethod({contractAddress:f.HashToAddress(t),abi:p.abi,methodName:"getKMSInfo",methodArgs:[[]],formatArguments:!1}));case 4:return i=o.sent,a=A.utils.computePublicKey(f.HashToAddress(i[1]),!1),o.abrupt("return",{urls:i[0].split(","),publicKey:a});case 7:case"end":return o.stop()}}),null,this)}},{key:"KMSSymmetricKey",value:function(e){var t,n,i,a,o,s,c,u;return r.async((function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.libraryId,n=e.objectId,t||(t=this.client.ContentObjectLibraryId({objectId:n})),h.next=4,r.awrap(this.KMSAddress({objectId:n}));case 4:return i=h.sent,a="eluv.caps.ikms".concat(f.AddressToHash(i)),h.next=8,r.awrap(this.client.ContentObjectMetadata({libraryId:t,objectId:n,metadataSubtree:a}));case 8:return o=h.sent,s=["string","string","string","string","string"],c=[this.client.contentSpaceId,t,n,o||"",""],u=A.utils.solidityKeccak256(s,c),h.next=14,r.awrap(this.Sign(u));case 14:return c[5]=h.sent,h.next=17,r.awrap(this.MakeKMSCall({objectId:n,methodName:"elv_getSymmetricKeyAuth",params:c}));case 17:return h.abrupt("return",h.sent);case 18:case"end":return h.stop()}}),null,this)}},{key:"MakeKMSCall",value:function(e){var t,n,i,a,o,s,c;return r.async((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.objectId,n=e.versionHash,i=e.methodName,a=e.params,n&&(t=f.DecodeVersionHash(n).objectId),u.next=4,r.awrap(this.KMSInfo({objectId:t,versionHash:n}));case 4:o=u.sent.urls,s=0;case 6:if(!(s<o.length)){u.next=23;break}return u.prev=7,this.Log("Making KMS request:\n URL: ".concat(o[s],"\n Method: ").concat(i,"\n Params: ").concat(a.join(", "))),c=new A.providers.JsonRpcProvider(o[s]),u.next=12,r.awrap(c.send(i,a));case 12:return u.abrupt("return",u.sent);case 15:if(u.prev=15,u.t0=u.catch(7),this.Log("KMS Call Error: ".concat(u.t0),!0),s!==o.length-1){u.next=20;break}throw u.t0;case 20:s++,u.next=6;break;case 23:case"end":return u.stop()}}),null,this,[[7,15]])}},{key:"ReEncryptionConk",value:function(e){var t,n,i,a;return r.async((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.libraryId,n=e.objectId,(i=e.versionHash)&&(n=f.DecodeVersionHash(i).objectId),this.reencryptionKeys[n]){o.next=10;break}return o.next=5,r.awrap(u.GenerateTargetConk());case 5:return a=o.sent,o.next=8,r.awrap(this.KMSSymmetricKey({libraryId:t,objectId:n}));case 8:a.symm_key=o.sent,this.reencryptionKeys[n]=a;case 10:return o.abrupt("return",this.reencryptionKeys[n]);case 11:case"end":return o.stop()}}),null,this)}},{key:"RecordTags",value:function(e){var t,n,i,a,o;return r.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=e.accessType,n=e.libraryId,i=e.objectId,a=e.versionHash,t===E){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,r.awrap(this.Owner({id:i,abi:p.abi}));case 5:if(o=s.sent,f.EqualAddress(o,this.client.signer.address)){s.next=9;break}return s.next=9,r.awrap(this.client.userProfileClient.RecordTags({libraryId:n,objectId:i,versionHash:a}));case 9:case"end":return s.stop()}}),null,this)}},{key:"CreateAccessGroup",value:function(){var e,t,n;return r.async((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.awrap(this.client.ethClient.DeployAccessGroupContract({contentSpaceAddress:f.HashToAddress(this.contentSpaceId),signer:this.client.signer}));case 2:return e=i.sent,t=e.contractAddress,n=e.transactionHash,i.abrupt("return",{contractAddress:t,transactionHash:n});case 6:case"end":return i.stop()}}),null,this)}},{key:"CreateContentType",value:function(){var e,t,n;return r.async((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.awrap(this.client.ethClient.DeployTypeContract({contentSpaceAddress:f.HashToAddress(this.contentSpaceId),signer:this.client.signer}));case 2:return e=i.sent,t=e.contractAddress,n=e.transactionHash,i.abrupt("return",{contractAddress:t,transactionHash:n});case 6:case"end":return i.stop()}}),null,this)}},{key:"CreateContentLibrary",value:function(e){var t,n,i,a;return r.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.kmsId,o.next=3,r.awrap(this.client.ethClient.DeployLibraryContract({contentSpaceAddress:f.HashToAddress(this.contentSpaceId),kmsId:t,signer:this.client.signer}));case 3:return n=o.sent,i=n.contractAddress,a=n.transactionHash,o.abrupt("return",{contractAddress:i,transactionHash:a});case 7:case"end":return o.stop()}}),null,this)}},{key:"CreateContentObject",value:function(e){var t,n,i,a,o,s;return r.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.libraryId,n=e.typeId,A.next=3,r.awrap(this.client.ethClient.DeployContentContract({contentLibraryAddress:f.HashToAddress(t),typeAddress:n?f.HashToAddress(n):f.nullAddress,signer:this.client.signer}));case 3:return i=A.sent,a=i.contractAddress,o=i.transactionHash,s=f.AddressToObjectId(a),this.noCache||(this.modifyTransactions.objects[s]=o),A.abrupt("return",{contractAddress:a,transactionHash:o});case 9:case"end":return A.stop()}}),null,this)}},{key:"ClearCache",value:function(){this.accessTransactions={spaces:{},libraries:{},types:{},objects:{},encryptedObjects:{},other:{}},this.modifyTransactions={spaces:{},libraries:{},types:{},objects:{},encryptedObjects:{},other:{}},this.channelContentTokens={}}}]),e}();e.exports=Q},function(e,t,n){"use strict";var r=n(1).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var i=0;i<e.length;i++){var a=e.charAt(i),o=a.charCodeAt(0);if(255!==t[o])throw new TypeError(a+" is ambiguous");t[o]=i}var s=e.length,A=e.charAt(0),c=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function f(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.alloc(0);var n=0;if(" "!==e[n]){for(var i=0,a=0;e[n]===A;)i++,n++;for(var o=(e.length-n)*c+1>>>0,u=new Uint8Array(o);e[n];){var f=t[e.charCodeAt(n)];if(255===f)return;for(var h=0,d=o-1;(0!==f||h<a)&&-1!==d;d--,h++)f+=s*u[d]>>>0,u[d]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");a=h,n++}if(" "!==e[n]){for(var l=o-a;l!==o&&0===u[l];)l++;var g=r.allocUnsafe(i+(o-l));g.fill(0,0,i);for(var p=i;l!==o;)g[p++]=u[l++];return g}}}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,i=0,a=0,o=t.length;a!==o&&0===t[a];)a++,n++;for(var c=(o-a)*u+1>>>0,f=new Uint8Array(c);a!==o;){for(var h=t[a],d=0,l=c-1;(0!==h||d<i)&&-1!==l;l--,d++)h+=256*f[l]>>>0,f[l]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=d,a++}for(var g=c-i;g!==c&&0===f[g];)g++;for(var p=A.repeat(n);g<c;++g)p+=e.charAt(f[g]);return p},decodeUnsafe:f,decode:function(e){var t=f(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},function(e,t){},function(e,t,n){"use strict";var r=n(48).Buffer,i=n(129);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.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},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,a=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t.copy(n,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(131),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(5))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,A=1,c={},u=!1,f=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(){var e=d(arguments);return t.nextTick(l(g,e)),e}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){g(e.data)},r=function(){var e=d(arguments);return a.port2.postMessage(e),e}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(){var e=d(arguments),t=f.createElement("script");return t.onreadystatechange=function(){g(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t),e}):r=function(){var e=d(arguments);return setTimeout(l(g,e),0),e}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&g(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(){var t=d(arguments);return e.postMessage(o+t,"*"),t}),h.setImmediate=r,h.clearImmediate=p}function d(e){return c[A]=l.apply(void 0,e),A++}function l(e){var t=[].slice.call(arguments,1);return function(){"function"==typeof e?e.apply(void 0,t):new Function(""+e)()}}function g(e){if(u)setTimeout(l(g,e),0);else{var t=c[e];if(t){u=!0;try{t()}finally{p(e),u=!1}}}}function p(e){delete c[e]}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(5),n(4))},function(e,t,n){"use strict";e.exports=a;var r=n(77),i=n(25);function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(0),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(49)},function(e,t,n){e.exports=n(15)},function(e,t,n){e.exports=n(47).Transform},function(e,t,n){e.exports=n(47).PassThrough},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){var r=n(141),i=n(142),a=n(143);e.exports=function(e,t){return r(e)||i(e,t)||a()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var r;function i(e){return(i="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})(e)}!function(a){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,A="function"==typeof Symbol&&"symbol"==i(Symbol.iterator),c=Math.ceil,u=Math.floor,f="[BigNumber Error] ",h=f+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(e){var t=0|e;return e>0||e===t?t:t-1}function g(e){for(var t,n,r=1,i=e.length,a=e[0]+"";r<i;){for(n=14-(t=e[r++]+"").length;n--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function p(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,A=e.e,c=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=A==c,!i||!a)return r?0:!i^n?1:-1;if(!r)return A>c^n?1:-1;for(s=(A=i.length)<(c=a.length)?A:c,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return A==c?0:A>c^n?1:-1}function y(e,t,n,r){if(e<t||e>n||e!==u(e))throw Error(f+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function I(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function b(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function C(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(o=function e(t){var n,r,a,o,m,E,B,v,w,Q=G.prototype={constructor:G,toString:null,valueOf:null},S=new G(1),M=20,k=4,D=-7,_=21,x=-1e7,R=1e7,N=!1,F=1,H=0,L={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz";function G(e,t){var n,i,o,A,c,f,d,l,g=this;if(!(g instanceof G))return new G(e,t);if(null==t){if(e&&!0===e._isBigNumber)return g.s=e.s,void(!e.c||e.e>R?g.c=g.e=null:e.e<x?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(A=0,c=e;c>=10;c/=10,A++);return void(A>R?g.c=g.e=null:(g.e=A,g.c=[e]))}l=String(e)}else{if(!s.test(l=String(e)))return a(g,l,f);g.s=45==l.charCodeAt(0)?(l=l.slice(1),-1):1}(A=l.indexOf("."))>-1&&(l=l.replace(".","")),(c=l.search(/e/i))>0?(A<0&&(A=c),A+=+l.slice(c+1),l=l.substring(0,c)):A<0&&(A=l.length)}else{if(y(t,2,U.length,"Base"),10==t)return j(g=new G(e),M+g.e+1,k);if(l=String(e),f="number"==typeof e){if(0*e!=0)return a(g,l,f,t);if(g.s=1/e<0?(l=l.slice(1),-1):1,G.DEBUG&&l.replace(/^0\.0*|\./,"").length>15)throw Error(h+e)}else g.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1;for(n=U.slice(0,t),A=c=0,d=l.length;c<d;c++)if(n.indexOf(i=l.charAt(c))<0){if("."==i){if(c>A){A=d;continue}}else if(!o&&(l==l.toUpperCase()&&(l=l.toLowerCase())||l==l.toLowerCase()&&(l=l.toUpperCase()))){o=!0,c=-1,A=0;continue}return a(g,String(e),f,t)}f=!1,(A=(l=r(l,t,10,g.s)).indexOf("."))>-1?l=l.replace(".",""):A=l.length}for(c=0;48===l.charCodeAt(c);c++);for(d=l.length;48===l.charCodeAt(--d););if(l=l.slice(c,++d)){if(d-=c,f&&G.DEBUG&&d>15&&(e>9007199254740991||e!==u(e)))throw Error(h+g.s*e);if((A=A-c-1)>R)g.c=g.e=null;else if(A<x)g.c=[g.e=0];else{if(g.e=A,g.c=[],c=(A+1)%14,A<0&&(c+=14),c<d){for(c&&g.c.push(+l.slice(0,c)),d-=14;c<d;)g.c.push(+l.slice(c,c+=14));c=14-(l=l.slice(c)).length}else c-=d;for(;c--;l+="0");g.c.push(+l)}}else g.c=[g.e=0]}function O(e,t,n,r){var i,a,o,s,A;if(null==n?n=k:y(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)A=g(e.c),A=1==r||2==r&&(o<=D||o>=_)?b(A,o):C(A,o,"0");else if(a=(e=j(new G(e),t,n)).e,s=(A=g(e.c)).length,1==r||2==r&&(t<=a||a<=D)){for(;s<t;A+="0",s++);A=b(A,a)}else if(t-=o,A=C(A,a,"0"),a+1>s){if(--t>0)for(A+=".";t--;A+="0");}else if((t+=a-s)>0)for(a+1==s&&(A+=".");t--;A+="0");return e.s<0&&i?"-"+A:A}function T(e,t){for(var n,r=1,i=new G(e[0]);r<e.length;r++){if(!(n=new G(e[r])).s){i=n;break}t.call(i,n)&&(i=n)}return i}function P(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+14*n-1)>R?e.c=e.e=null:n<x?e.c=[e.e=0]:(e.e=n,e.c=t),e}function j(e,t,n,r){var i,a,o,s,A,f,h,l=e.c,g=d;if(l){e:{for(i=1,s=l[0];s>=10;s/=10,i++);if((a=t-i)<0)a+=14,o=t,h=(A=l[f=0])/g[i-o-1]%10|0;else if((f=c((a+1)/14))>=l.length){if(!r)break e;for(;l.length<=f;l.push(0));A=h=0,i=1,o=(a%=14)-14+1}else{for(A=s=l[f],i=1;s>=10;s/=10,i++);h=(o=(a%=14)-14+i)<0?0:A/g[i-o-1]%10|0}if(r=r||t<0||null!=l[f+1]||(o<0?A:A%g[i-o-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(a>0?o>0?A/g[i-o]:0:l[f-1])%10&1||n==(e.s<0?8:7)),t<1||!l[0])return l.length=0,r?(t-=e.e+1,l[0]=g[(14-t%14)%14],e.e=-t||0):l[0]=e.e=0,e;if(0==a?(l.length=f,s=1,f--):(l.length=f+1,s=g[14-a],l[f]=o>0?u(A/g[i-o]%g[o])*s:0),r)for(;;){if(0==f){for(a=1,o=l[0];o>=10;o/=10,a++);for(o=l[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,1e14==l[0]&&(l[0]=1));break}if(l[f]+=s,1e14!=l[f])break;l[f--]=0,s=1}for(a=l.length;0===l[--a];l.pop());}e.e>R?e.c=e.e=null:e.e<x&&(e.c=[e.e=0])}return e}function Y(e){var t,n=e.e;return null===n?e.toString():(t=g(e.c),t=n<=D||n>=_?b(t,n):C(t,n,"0"),e.s<0?"-"+t:t)}return G.clone=e,G.ROUND_UP=0,G.ROUND_DOWN=1,G.ROUND_CEIL=2,G.ROUND_FLOOR=3,G.ROUND_HALF_UP=4,G.ROUND_HALF_DOWN=5,G.ROUND_HALF_EVEN=6,G.ROUND_HALF_CEIL=7,G.ROUND_HALF_FLOOR=8,G.EUCLID=9,G.config=G.set=function(e){var t,n;if(null!=e){if("object"!=i(e))throw Error(f+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(y(n=e[t],0,1e9,t),M=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(y(n=e[t],0,8,t),k=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(y(n[0],-1e9,0,t),y(n[1],0,1e9,t),D=n[0],_=n[1]):(y(n,-1e9,1e9,t),D=-(_=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)y(n[0],-1e9,-1,t),y(n[1],1,1e9,t),x=n[0],R=n[1];else{if(y(n,-1e9,1e9,t),!n)throw Error(f+t+" cannot be zero: "+n);x=-(R=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(f+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw N=!n,Error(f+"crypto unavailable");N=n}else N=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(y(n=e[t],0,9,t),F=n),e.hasOwnProperty(t="POW_PRECISION")&&(y(n=e[t],0,1e9,t),H=n),e.hasOwnProperty(t="FORMAT")){if("object"!=i(n=e[t]))throw Error(f+t+" not an object: "+n);L=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(f+t+" invalid: "+n);U=n}}return{DECIMAL_PLACES:M,ROUNDING_MODE:k,EXPONENTIAL_AT:[D,_],RANGE:[x,R],CRYPTO:N,MODULO_MODE:F,POW_PRECISION:H,FORMAT:L,ALPHABET:U}},G.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!G.DEBUG)return!0;var t,n,r=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===a||-1===a)&&i>=-1e9&&i<=1e9&&i===u(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=1e14||n!==u(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(f+"Invalid BigNumber: "+e)},G.maximum=G.max=function(){return T(arguments,Q.lt)},G.minimum=G.min=function(){return T(arguments,Q.gt)},G.random=(o=9007199254740992*Math.random()&2097151?function(){return u(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,a,s=0,A=[],h=new G(S);if(null==e?e=M:y(e,0,1e9),i=c(e/14),N)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(A.push(a%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw N=!1,Error(f+"crypto unavailable");for(t=crypto.randomBytes(i*=7);s<i;)(a=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(A.push(a%1e14),s+=7);s=i/7}if(!N)for(;s<i;)(a=o())<9e15&&(A[s++]=a%1e14);for(e%=14,(i=A[--s])&&e&&(a=d[14-e],A[s]=u(i/a)*a);0===A[s];A.pop(),s--);if(s<0)A=[r=0];else{for(r=-1;0===A[0];A.splice(0,1),r-=14);for(s=1,a=A[0];a>=10;a/=10,s++);s<14&&(r-=14-s)}return h.e=r,h.c=A,h}),G.sum=function(){for(var e=1,t=arguments,n=new G(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){function e(e,t,n,r){for(var i,a,o=[0],s=0,A=e.length;s<A;){for(a=o.length;a--;o[a]*=t);for(o[0]+=r.indexOf(e.charAt(s++)),i=0;i<o.length;i++)o[i]>n-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(t,r,i,a,o){var s,A,c,u,f,h,d,l,p=t.indexOf("."),y=M,I=k;for(p>=0&&(u=H,H=0,t=t.replace(".",""),h=(l=new G(r)).pow(t.length-p),H=u,l.c=e(C(g(h.c),h.e,"0"),10,i,"0123456789"),l.e=l.c.length),c=u=(d=e(t,r,i,o?(s=U,"0123456789"):(s="0123456789",U))).length;0==d[--u];d.pop());if(!d[0])return s.charAt(0);if(p<0?--c:(h.c=d,h.e=c,h.s=a,d=(h=n(h,l,y,I,i)).c,f=h.r,c=h.e),p=d[A=c+y+1],u=i/2,f=f||A<0||null!=d[A+1],f=I<4?(null!=p||f)&&(0==I||I==(h.s<0?3:2)):p>u||p==u&&(4==I||f||6==I&&1&d[A-1]||I==(h.s<0?8:7)),A<1||!d[0])t=f?C(s.charAt(1),-y,s.charAt(0)):s.charAt(0);else{if(d.length=A,f)for(--i;++d[--A]>i;)d[A]=0,A||(++c,d=[1].concat(d));for(u=d.length;!d[--u];);for(p=0,t="";p<=u;t+=s.charAt(d[p++]));t=C(t,c,s.charAt(0))}return t}}(),n=function(){function e(e,t,n){var r,i,a,o,s=0,A=e.length,c=t%1e7,u=t/1e7|0;for(e=e.slice();A--;)s=((i=c*(a=e[A]%1e7)+(r=u*a+(o=e[A]/1e7|0)*c)%1e7*1e7+s)/n|0)+(r/1e7|0)+u*o,e[A]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var A,c,f,h,d,g,p,y,I,b,C,m,E,B,v,w,Q,S=r.s==i.s?1:-1,M=r.c,k=i.c;if(!(M&&M[0]&&k&&k[0]))return new G(r.s&&i.s&&(M?!k||M[0]!=k[0]:k)?M&&0==M[0]||!k?0*S:S/0:NaN);for(I=(y=new G(S)).c=[],S=a+(c=r.e-i.e)+1,s||(s=1e14,c=l(r.e/14)-l(i.e/14),S=S/14|0),f=0;k[f]==(M[f]||0);f++);if(k[f]>(M[f]||0)&&c--,S<0)I.push(1),h=!0;else{for(B=M.length,w=k.length,f=0,S+=2,(d=u(s/(k[0]+1)))>1&&(k=e(k,d,s),M=e(M,d,s),w=k.length,B=M.length),E=w,C=(b=M.slice(0,w)).length;C<w;b[C++]=0);Q=k.slice(),Q=[0].concat(Q),v=k[0],k[1]>=s/2&&v++;do{if(d=0,(A=t(k,b,w,C))<0){if(m=b[0],w!=C&&(m=m*s+(b[1]||0)),(d=u(m/v))>1)for(d>=s&&(d=s-1),p=(g=e(k,d,s)).length,C=b.length;1==t(g,b,p,C);)d--,n(g,w<p?Q:k,p,s),p=g.length,A=1;else 0==d&&(A=d=1),p=(g=k.slice()).length;if(p<C&&(g=[0].concat(g)),n(b,g,C,s),C=b.length,-1==A)for(;t(k,b,w,C)<1;)d++,n(b,w<C?Q:k,C,s),C=b.length}else 0===A&&(d++,b=[0]);I[f++]=d,b[0]?b[C++]=M[E]||0:(b=[M[E]],C=1)}while((E++<B||null!=b[0])&&S--);h=null!=b[0],I[0]||I.splice(0,1)}if(1e14==s){for(f=1,S=I[0];S>=10;S/=10,f++);j(y,a+(y.e=f+14*c-1)+1,o,h)}else y.e=c,y.r=+h;return y}}(),m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,E=/^([^.]+)\.$/,B=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g,a=function(e,t,n,r){var i,a=n?t:t.replace(w,"");if(v.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!n&&(a=a.replace(m,(function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t})),r&&(i=r,a=a.replace(E,"$1").replace(B,"0.$1")),t!=a))return new G(a,i);if(G.DEBUG)throw Error(f+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},Q.absoluteValue=Q.abs=function(){var e=new G(this);return e.s<0&&(e.s=1),e},Q.comparedTo=function(e,t){return p(this,new G(e,t))},Q.decimalPlaces=Q.dp=function(e,t){var n,r,i,a=this;if(null!=e)return y(e,0,1e9),null==t?t=k:y(t,0,8),j(new G(a),e+a.e+1,t);if(!(n=a.c))return null;if(r=14*((i=n.length-1)-l(this.e/14)),i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},Q.dividedBy=Q.div=function(e,t){return n(this,new G(e,t),M,k)},Q.dividedToIntegerBy=Q.idiv=function(e,t){return n(this,new G(e,t),0,1)},Q.exponentiatedBy=Q.pow=function(e,t){var n,r,i,a,o,s,A,h,d=this;if((e=new G(e)).c&&!e.isInteger())throw Error(f+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new G(t)),o=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return h=new G(Math.pow(+Y(d),o?2-I(e):+Y(e))),t?h.mod(t):h;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new G(NaN);(r=!s&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||o&&d.c[1]>=24e7:d.c[0]<8e13||o&&d.c[0]<=9999975e7)))return a=d.s<0&&I(e)?-0:0,d.e>-1&&(a=1/a),new G(s?1/a:a);H&&(a=c(H/14+2))}for(o?(n=new G(.5),s&&(e.s=1),A=I(e)):A=(i=Math.abs(+Y(e)))%2,h=new G(S);;){if(A){if(!(h=h.times(d)).c)break;a?h.c.length>a&&(h.c.length=a):r&&(h=h.mod(t))}if(i){if(0===(i=u(i/2)))break;A=i%2}else if(j(e=e.times(n),e.e+1,1),e.e>14)A=I(e);else{if(0===(i=+Y(e)))break;A=i%2}d=d.times(d),a?d.c&&d.c.length>a&&(d.c.length=a):r&&(d=d.mod(t))}return r?h:(s&&(h=S.div(h)),t?h.mod(t):a?j(h,H,k,void 0):h)},Q.integerValue=function(e){var t=new G(this);return null==e?e=k:y(e,0,8),j(t,t.e+1,e)},Q.isEqualTo=Q.eq=function(e,t){return 0===p(this,new G(e,t))},Q.isFinite=function(){return!!this.c},Q.isGreaterThan=Q.gt=function(e,t){return p(this,new G(e,t))>0},Q.isGreaterThanOrEqualTo=Q.gte=function(e,t){return 1===(t=p(this,new G(e,t)))||0===t},Q.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},Q.isLessThan=Q.lt=function(e,t){return p(this,new G(e,t))<0},Q.isLessThanOrEqualTo=Q.lte=function(e,t){return-1===(t=p(this,new G(e,t)))||0===t},Q.isNaN=function(){return!this.s},Q.isNegative=function(){return this.s<0},Q.isPositive=function(){return this.s>0},Q.isZero=function(){return!!this.c&&0==this.c[0]},Q.minus=function(e,t){var n,r,i,a,o=this,s=o.s;if(t=(e=new G(e,t)).s,!s||!t)return new G(NaN);if(s!=t)return e.s=-t,o.plus(e);var A=o.e/14,c=e.e/14,u=o.c,f=e.c;if(!A||!c){if(!u||!f)return u?(e.s=-t,e):new G(f?o:NaN);if(!u[0]||!f[0])return f[0]?(e.s=-t,e):new G(u[0]?o:3==k?-0:0)}if(A=l(A),c=l(c),u=u.slice(),s=A-c){for((a=s<0)?(s=-s,i=u):(c=A,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(a=(s=u.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(u[t]!=f[t]){a=u[t]<f[t];break}if(a&&(i=u,u=f,f=i,e.s=-e.s),(t=(r=f.length)-(n=u.length))>0)for(;t--;u[n++]=0);for(t=1e14-1;r>s;){if(u[--r]<f[r]){for(n=r;n&&!u[--n];u[n]=t);--u[n],u[r]+=1e14}u[r]-=f[r]}for(;0==u[0];u.splice(0,1),--c);return u[0]?P(e,u,c):(e.s=3==k?-1:1,e.c=[e.e=0],e)},Q.modulo=Q.mod=function(e,t){var r,i,a=this;return e=new G(e,t),!a.c||!e.s||e.c&&!e.c[0]?new G(NaN):!e.c||a.c&&!a.c[0]?new G(a):(9==F?(i=e.s,e.s=1,r=n(a,e,0,3),e.s=i,r.s*=i):r=n(a,e,0,F),(e=a.minus(r.times(e))).c[0]||1!=F||(e.s=a.s),e)},Q.multipliedBy=Q.times=function(e,t){var n,r,i,a,o,s,A,c,u,f,h,d,g,p=this,y=p.c,I=(e=new G(e,t)).c;if(!(y&&I&&y[0]&&I[0]))return!p.s||!e.s||y&&!y[0]&&!I||I&&!I[0]&&!y?e.c=e.e=e.s=null:(e.s*=p.s,y&&I?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=l(p.e/14)+l(e.e/14),e.s*=p.s,(A=y.length)<(f=I.length)&&(g=y,y=I,I=g,i=A,A=f,f=i),i=A+f,g=[];i--;g.push(0));for(1e14,1e7,i=f;--i>=0;){for(n=0,h=I[i]%1e7,d=I[i]/1e7|0,a=i+(o=A);a>i;)n=((c=h*(c=y[--o]%1e7)+(s=d*c+(u=y[o]/1e7|0)*h)%1e7*1e7+g[a]+n)/1e14|0)+(s/1e7|0)+d*u,g[a--]=c%1e14;g[a]=n}return n?++r:g.splice(0,1),P(e,g,r)},Q.negated=function(){var e=new G(this);return e.s=-e.s||null,e},Q.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new G(e,t)).s,!i||!t)return new G(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/14,o=e.e/14,s=r.c,A=e.c;if(!a||!o){if(!s||!A)return new G(i/0);if(!s[0]||!A[0])return A[0]?e:new G(s[0]?r:0*i)}if(a=l(a),o=l(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=A):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=A.length)<0&&(n=A,A=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+A[t]+i)/1e14|0,s[t]=1e14===s[t]?0:s[t]%1e14;return i&&(s=[i].concat(s),++o),P(e,s,o)},Q.precision=Q.sd=function(e,t){var n,r,i,a=this;if(null!=e&&e!==!!e)return y(e,1,1e9),null==t?t=k:y(t,0,8),j(new G(a),e,t);if(!(n=a.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},Q.shiftedBy=function(e){return y(e,-9007199254740991,9007199254740991),this.times("1e"+e)},Q.squareRoot=Q.sqrt=function(){var e,t,r,i,a,o=this,s=o.c,A=o.s,c=o.e,u=M+4,f=new G("0.5");if(1!==A||!s||!s[0])return new G(!A||A<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(A=Math.sqrt(+Y(o)))||A==1/0?(((t=g(s)).length+c)%2==0&&(t+="0"),A=Math.sqrt(+t),c=l((c+1)/2)-(c<0||c%2),r=new G(t=A==1/0?"1e"+c:(t=A.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new G(A+""),r.c[0])for((A=(c=r.e)+u)<3&&(A=0);;)if(a=r,r=f.times(a.plus(n(o,a,u,1))),g(a.c).slice(0,A)===(t=g(r.c)).slice(0,A)){if(r.e<c&&--A,"9999"!=(t=t.slice(A-3,A+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(j(r,r.e+M+2,1),e=!r.times(r).eq(o));break}if(!i&&(j(a,a.e+M+2,0),a.times(a).eq(o))){r=a;break}u+=4,A+=4,i=1}return j(r,r.e+M+1,k,e)},Q.toExponential=function(e,t){return null!=e&&(y(e,0,1e9),e++),O(this,e,t,1)},Q.toFixed=function(e,t){return null!=e&&(y(e,0,1e9),e=e+this.e+1),O(this,e,t)},Q.toFormat=function(e,t,n){var r,a=this;if(null==n)null!=e&&t&&"object"==i(t)?(n=t,t=null):e&&"object"==i(e)?(n=e,e=t=null):n=L;else if("object"!=i(n))throw Error(f+"Argument not an object: "+n);if(r=a.toFixed(e,t),a.c){var o,s=r.split("."),A=+n.groupSize,c=+n.secondaryGroupSize,u=n.groupSeparator||"",h=s[0],d=s[1],l=a.s<0,g=l?h.slice(1):h,p=g.length;if(c&&(o=A,A=c,c=o,p-=o),A>0&&p>0){for(o=p%A||A,h=g.substr(0,o);o<p;o+=A)h+=u+g.substr(o,A);c>0&&(h+=u+g.slice(o)),l&&(h="-"+h)}r=d?h+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):h}return(n.prefix||"")+r+(n.suffix||"")},Q.toFraction=function(e){var t,r,i,a,o,s,A,c,u,h,l,p,y=this,I=y.c;if(null!=e&&(!(A=new G(e)).isInteger()&&(A.c||1!==A.s)||A.lt(S)))throw Error(f+"Argument "+(A.isInteger()?"out of range: ":"not an integer: ")+Y(A));if(!I)return new G(y);for(t=new G(S),u=r=new G(S),i=c=new G(S),p=g(I),o=t.e=p.length-y.e-1,t.c[0]=d[(s=o%14)<0?14+s:s],e=!e||A.comparedTo(t)>0?o>0?t:u:A,s=R,R=1/0,A=new G(p),c.c[0]=0;h=n(A,t,0,1),1!=(a=r.plus(h.times(i))).comparedTo(e);)r=i,i=a,u=c.plus(h.times(a=u)),c=a,t=A.minus(h.times(a=t)),A=a;return a=n(e.minus(r),i,0,1),c=c.plus(a.times(u)),r=r.plus(a.times(i)),c.s=u.s=y.s,l=n(u,i,o*=2,k).minus(y).abs().comparedTo(n(c,r,o,k).minus(y).abs())<1?[u,i]:[c,r],R=s,l},Q.toNumber=function(){return+Y(this)},Q.toPrecision=function(e,t){return null!=e&&y(e,1,1e9),O(this,e,t,2)},Q.toString=function(e){var t,n=this,i=n.s,a=n.e;return null===a?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=a<=D||a>=_?b(g(n.c),a):C(g(n.c),a,"0"):10===e?t=C(g((n=j(new G(n),M+a+1,k)).c),n.e,"0"):(y(e,2,U.length,"Base"),t=r(C(g(n.c),a,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},Q.valueOf=Q.toJSON=function(){return Y(this)},Q._isBigNumber=!0,A&&(Q[Symbol.toStringTag]="BigNumber",Q[Symbol.for("nodejs.util.inspect.custom")]=Q.valueOf),null!=t&&G.set(t),G}()).default=o.BigNumber=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";(function(e){var r=n(46),i=n(146);t.names=i.names,t.codes=i.codes,t.defaultLengths=i.defaultLengths;var a=n(78);function o(e){t.decode(e)}t.toHexString=function(t){if(!e.isBuffer(t))throw new Error("must be passed a buffer");return t.toString("hex")},t.fromHexString=function(t){return e.from(t,"hex")},t.toB58String=function(t){if(!e.isBuffer(t))throw new Error("must be passed a buffer");return r.encode(t)},t.fromB58String=function(t){var n=t;return e.isBuffer(t)&&(n=t.toString()),e.from(r.decode(n))},t.decode=function(n){if(!e.isBuffer(n))throw new Error("multihash must be a Buffer");if(n.length<3)throw new Error("multihash too short. must be > 3 bytes.");var r=a.decode(n);if(!t.isValidCode(r))throw new Error("multihash unknown function code: 0x".concat(r.toString(16)));n=n.slice(a.decode.bytes);var o=a.decode(n);if(o<1)throw new Error("multihash invalid length: 0x".concat(o.toString(16)));if((n=n.slice(a.decode.bytes)).length!==o)throw new Error("multihash length inconsistent: 0x".concat(n.toString("hex")));return{code:r,name:i.codes[r],length:o,digest:n}},t.encode=function(n,r,i){if(!n||void 0===r)throw new Error("multihash encode requires at least two args: digest, code");var o=t.coerceCode(r);if(!e.isBuffer(n))throw new Error("digest should be a Buffer");if(null==i&&(i=n.length),i&&n.length!==i)throw new Error("digest length should be equal to specified length.");return e.concat([e.from(a.encode(o)),e.from(a.encode(i)),n])},t.coerceCode=function(e){var n=e;if("string"==typeof e){if(void 0===i.names[e])throw new Error("Unrecognized hash function named: ".concat(e));n=i.names[e]}if("number"!=typeof n)throw new Error("Hash function code should be a number. Got: ".concat(n));if(void 0===i.codes[n]&&!t.isAppCode(n))throw new Error("Unrecognized function code: ".concat(n));return n},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!i.codes[e]},t.validate=o,t.prefix=function(e){return o(e),e.slice(0,2)}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";t.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),t.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),t.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},function(e,t){e.exports=function e(t,r,i){r=r||[];var a=i=i||0;for(;t>=n;)r[i++]=255&t|128,t/=128;for(;-128&t;)r[i++]=255&t|128,t>>>=7;return r[i]=0|t,e.bytes=i-a+1,r};var n=Math.pow(2,31)},function(e,t){e.exports=function e(t,n){var r,i=0,a=0,o=n=n||0,s=t.length;do{if(o>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[o++],i+=a<28?(127&r)<<a:(127&r)*Math.pow(2,a),a+=7}while(r>=128);return e.bytes=o-n,i}},function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),a=Math.pow(2,28),o=Math.pow(2,35),s=Math.pow(2,42),A=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return e<n?1:e<r?2:e<i?3:e<a?4:e<o?5:e<s?6:e<A?7:e<c?8:e<u?9:10}},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(17),t.createHash=t.Hash=n(19),t.createHmac=t.Hmac=n(54);var r=n(83),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=n(55);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(88);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var A=n(96);t.DiffieHellmanGroup=A.DiffieHellmanGroup,t.createDiffieHellmanGroup=A.createDiffieHellmanGroup,t.getDiffieHellman=A.getDiffieHellman,t.createDiffieHellman=A.createDiffieHellman,t.DiffieHellman=A.DiffieHellman;var c=n(99);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=n(110);var u=n(111);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var f=n(115);t.randomFill=f.randomFill,t.randomFillSync=f.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){var r=n(0),i=n(20),a=n(1).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function A(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(A,i),A.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},A.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,A=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=n[f-3]^n[f-8]^n[f-14]^n[f-16];for(var h=0;h<80;++h){var d=~~(h/20),l=0|((t=r)<<5|t>>>27)+u(d,i,a,s)+A+n[h]+o[d];A=s,s=a,a=c(i),i=r,r=l}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=A+this._e|0},A.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=A},function(e,t,n){var r=n(0),i=n(20),a=n(1).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function A(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(A,i),A.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},A.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,A=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=(t=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var l=~~(d/20),g=c(r)+f(l,i,a,s)+A+n[d]+o[l]|0;A=s,s=a,a=u(i),i=r,r=g}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=A+this._e|0},A.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=A},function(e,t,n){var r=n(0),i=n(80),a=n(20),o=n(1).Buffer,s=new Array(64);function A(){this.init(),this._w=s,a.call(this,64,56)}r(A,i),A.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},A.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=A},function(e,t,n){var r=n(0),i=n(81),a=n(20),o=n(1).Buffer,s=new Array(160);function A(){this.init(),this._w=s,a.call(this,128,112)}r(A,i),A.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},A.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=A},function(e,t,n){"use strict";var r=n(0),i=n(1).Buffer,a=n(12),o=i.alloc(128);function s(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,o],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,a),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},function(e,t,n){(function(t,r){var i,a=n(85),o=n(86),s=n(87),A=n(1).Buffer,c=t.crypto&&t.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(e,t,n,r,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return A.from(e)}))}e.exports=function(e,n,d,l,g,p){"function"==typeof g&&(p=g,g=void 0);var y=u[(g=g||"sha1").toLowerCase()];if(!y||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=s(e,n,d,l,g)}catch(e){return p(e)}p(null,t)}));if(a(e,n,d,l),"function"!=typeof p)throw new Error("No callback provided to pbkdf2");A.isBuffer(e)||(e=A.from(e,o)),A.isBuffer(n)||(n=A.from(n,o)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var n=h(i=i||A.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=n,n}(y).then((function(t){return t?h(e,n,d,l,y):s(e,n,d,l,g)})),p)}}).call(this,n(5),n(4))},function(e,t,n){var r=n(12),i=n(158),a=n(0),o=n(1).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function A(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var A=e.iv;o.isBuffer(A)||(A=o.from(A)),this._des=i.create({key:a,iv:A,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=A,a(A,r),A.prototype._update=function(e){return o.from(this._des.update(e))},A.prototype._final=function(){return o.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(89),t.Cipher=n(56),t.DES=n(90),t.CBC=n(159),t.EDE=n(160)},function(e,t,n){"use strict";var r=n(7),i=n(0),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,n,r);for(s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{a._update.call(this,e,t,n,r);for(s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},function(e,t,n){"use strict";var r=n(7),i=n(0),a=n(56),o=n(90);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function A(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(A,a),e.exports=A,A.create=function(e){return new A(e)},A.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},A.prototype._pad=o.prototype._pad,A.prototype._unpad=o.prototype._unpad},function(e,t,n){var r=n(58),i=n(94),a=n(1).Buffer,o=n(95),s=n(12),A=n(33),c=n(34);function u(e,t,n){s.call(this),this._cache=new h,this._cipher=new A.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}n(0)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var f=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},t.createCipheriv=d,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=c(t,!1,n.key,n.iv);return d(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var r=n(27);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},function(e,t,n){var r=n(1).Buffer,i=n(27);function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},function(e,t,n){var r=n(1).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){var r=n(1).Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){(function(e){var r=n(27);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var a=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,a)}}).call(this,n(2).Buffer)},function(e,t,n){var r=n(1).Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=o},function(e,t,n){var r=n(94),i=n(1).Buffer,a=n(58),o=n(95),s=n(12),A=n(33),c=n(34);function u(e,t,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new A.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function h(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new u(s.module,t,n)}n(0)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return h(e,r.key,r.iv)},t.createDecipheriv=h},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(3),i=new(n(98)),a=new r(24),o=new r(11),s=new r(10),A=new r(3),c=new r(7),u=n(97),f=n(17);function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function d(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=g;var l={};function g(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function p(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in l)return l[r];var f,h=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return h+=1,h+="02"===n||"05"===n?8:4,l[r]=h,h;switch(i.test(e.shrn(1))||(h+=2),n){case"02":e.mod(a).cmp(o)&&(h+=8);break;case"05":(f=e.mod(s)).cmp(A)&&f.cmp(c)&&(h+=8);break;default:h+=4}return l[r]=h,h}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),a=this.getPrime();if(i.length<a.length){var o=new t(a.length-i.length);o.fill(0),i=t.concat([o,i])}return i},g.prototype.getPublicKey=function(e){return p(this._pub,e)},g.prototype.getPrivateKey=function(e){return p(this._priv,e)},g.prototype.getPrime=function(e){return p(this.__prime,e)},g.prototype.getGenerator=function(e){return p(this._gen,e)},g.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(2).Buffer)},function(e,t,n){(function(t){var r=n(54),i=n(60),a=n(61).ec,o=n(3),s=n(36),A=n(109);function c(e,n,i,a){if((e=new t(e.toArray())).length<n.byteLength()){var o=new t(n.byteLength()-e.length);o.fill(0),e=t.concat([o,e])}var s=i.length,A=function(e,n){e=(e=u(e,n)).mod(n);var r=new t(e.toArray());if(r.length<n.byteLength()){var i=new t(n.byteLength()-r.length);i.fill(0),r=t.concat([i,r])}return r}(i,n),c=new t(s);c.fill(1);var f=new t(s);return f.fill(0),f=r(a,f).update(c).update(new t([0])).update(e).update(A).digest(),c=r(a,f).update(c).digest(),{k:f=r(a,f).update(c).update(new t([1])).update(e).update(A).digest(),v:c=r(a,f).update(c).digest()}}function u(e,t){var n=new o(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function f(e,n,i){var a,o;do{for(a=new t(0);8*a.length<e.bitLength();)n.v=r(i,n.k).update(n.v).digest(),a=t.concat([a,n.v]);o=u(a,e),n.k=r(i,n.k).update(n.v).update(new t([0])).digest(),n.v=r(i,n.k).update(n.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,n,r){return e.toRed(o.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,n,r,d,l){var g=s(n);if(g.curve){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");return function(e,n){var r=A[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var i=new a(r).keyFromPrivate(n.privateKey).sign(e);return new t(i.toDER())}(e,g)}if("dsa"===g.type){if("dsa"!==d)throw new Error("wrong private key type");return function(e,n,r){var i,a=n.params.priv_key,s=n.params.p,A=n.params.q,d=n.params.g,l=new o(0),g=u(e,A).mod(A),p=!1,y=c(a,A,e,r);for(;!1===p;)i=f(A,y,r),l=h(d,i,s,A),0===(p=i.invm(A).imul(g.add(a.mul(l))).mod(A)).cmpn(0)&&(p=!1,l=new o(0));return function(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e));128&n[0]&&(n=[0].concat(n));var r=[48,e.length+n.length+4,2,e.length];return r=r.concat(e,[2,n.length],n),new t(r)}(l,p)}(e,g,r)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong private key type");e=t.concat([l,e]);for(var p=g.modulus.byteLength(),y=[0,1];e.length+y.length+1<p;)y.push(255);y.push(0);for(var I=-1;++I<e.length;)y.push(e[I]);return i(y,g)},e.exports.getKey=c,e.exports.makeKey=f}).call(this,n(2).Buffer)},function(e){e.exports=JSON.parse('{"_args":[["elliptic@6.5.2","/Users/ktalmadge/dev/elv-client-js"]],"_from":"elliptic@6.5.2","_id":"elliptic@6.5.2","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.2","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.2","saveSpec":null,"fetchSpec":"6.5.2"},"_requiredBy":["/browserify-sign","/create-ecdh","/ethers"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_spec":"6.5.2","_where":"/Users/ktalmadge/dev/elv-client-js","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},function(e,t,n){"use strict";var r=n(8),i=n(3),a=n(0),o=n(35),s=r.assert;function A(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(A,o),e.exports=A,A.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},A.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},A.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,A,c,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),l=new i(1),g=new i(0),p=new i(0),y=new i(1),I=0;0!==h.cmpn(0);){var b=d.div(h);c=d.sub(b.mul(h)),u=p.sub(b.mul(l));var C=y.sub(b.mul(g));if(!r&&c.cmp(f)<0)t=A.neg(),n=l,r=c.neg(),a=u;else if(r&&2==++I)break;A=c,d=h,h=c,p=l,l=u,y=g,g=C}o=c.neg(),s=u;var m=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(m)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},A.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),A=i.mul(n.b),c=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:A.add(c).neg()}},A.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},A.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},A.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],A=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),A=A.neg(!0)),r[2*a]=s,r[2*a+1]=A,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var c=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return c},a(c,o.BasePoint),A.prototype.point=function(e,t,n){return new c(this,e,t,n)},A.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),A.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),A=a.redSub(o);if(0===s.cmpn(0))return 0!==A.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),f=r.redMul(c),h=A.redSqr().redIAdd(u).redISub(f).redISub(f),d=A.redMul(f.redISub(h)).redISub(a.redMul(u)),l=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,l)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var A=o.redSqr(),c=A.redMul(o),u=n.redMul(A),f=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(o);return this.curve.jpoint(f,h,d)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,A=s.redSqr().redSqr(),c=o.redAdd(o);for(n=0;n<e;n++){var u=a.redSqr(),f=c.redSqr(),h=f.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(A)),l=a.redMul(f),g=d.redSqr().redISub(l.redAdd(l)),p=l.redISub(g),y=d.redMul(p);y=y.redIAdd(y).redISub(h);var I=c.redMul(s);n+1<e&&(A=A.redMul(h)),a=g,s=I,c=y}return this.curve.jpoint(a,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),A=s.redSqr().redISub(o).redISub(o),c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),e=A,t=s.redMul(o.redISub(A)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(u).redISub(h);d=d.redIAdd(d);var l=u.redAdd(u).redIAdd(u),g=l.redSqr(),p=h.redIAdd(h);p=(p=p.redIAdd(p)).redIAdd(p),e=g.redISub(d).redISub(d),t=l.redMul(d.redISub(e)).redISub(p),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),A=s.redSqr().redISub(o).redISub(o);e=A;var c=a.redIAdd(a);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(o.redISub(A)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(u).redMul(this.x.redAdd(u));d=d.redAdd(d).redIAdd(d);var l=h.redIAdd(h),g=(l=l.redIAdd(l)).redAdd(l);e=d.redSqr().redISub(g),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var p=f.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p),t=d.redMul(l.redISub(e)).redISub(p)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),A=t.redAdd(t),c=(A=A.redIAdd(A)).redMul(o),u=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(u),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),l=n.redAdd(n).redMul(r);return this.curve.jpoint(u,d,l)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),A=r.redIAdd(r);A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A);var c=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(A),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(A.redISub(c)).redISub(o.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,h,d)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(3),i=n(0),a=n(35),o=n(8);function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function A(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(A,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new A(this,e,t)},s.prototype.pointFromJSON=function(e){return A.fromJSON(this,e)},A.prototype.precompute=function(){},A.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},A.fromJSON=function(e,t){return new A(e,t[0],t[1]||e.one)},A.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},A.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},A.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},A.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},A.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),A=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,A)},A.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},A.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},A.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},A.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},A.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},A.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(8),i=n(3),a=n(0),o=n(35),s=r.assert;function A(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(A,o),e.exports=A,A.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},A.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},A.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},A.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var A=s.fromRed().isOdd();return(t&&!A||!t&&A)&&(s=s.redNeg()),this.point(e,s)},A.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},A.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(c,o.BasePoint),A.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},A.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),A=i.redMul(o),c=a.redMul(s),u=i.redMul(s),f=o.redMul(a);return this.curve.point(A,c,f,u)},c.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(c=this.curve._mulA(i)).redAdd(a);if(this.zOne)e=r.redSub(i).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(c.redSub(a)),n=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),A=o.redSub(s).redISub(s);e=r.redSub(i).redISub(a).redMul(A),t=o.redMul(c.redSub(a)),n=o.redMul(A)}}else{var c=i.redAdd(a);s=this.curve._mulC(this.z).redSqr(),A=c.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(c)).redMul(A),t=this.curve._mulC(c).redMul(i.redISub(a)),n=c.redMul(A)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),A=n.redAdd(t),c=a.redMul(o),u=s.redMul(A),f=a.redMul(A),h=o.redMul(s);return this.curve.point(c,u,h,f)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),A=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),f=r.redMul(A).redMul(u);return this.curve.twisted?(t=r.redMul(c).redMul(o.redSub(this.curve._mulA(a))),n=A.redMul(c)):(t=r.redMul(c).redMul(o.redSub(a)),n=this.curve._mulC(A).redMul(c)),this.curve.point(f,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,n){"use strict";t.sha1=n(181),t.sha224=n(182),t.sha256=n(103),t.sha384=n(183),t.sha512=n(104)},function(e,t,n){"use strict";var r=n(9),i=n(28),a=n(102),o=r.rotl32,s=r.sum32,A=r.sum32_5,c=a.ft_1,u=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],h=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var l=~~(r/20),g=A(o(i,5),c(l,a,u,h),d,n[r],f[l]);d=h,h=u,u=o(a,30),a=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(9),i=n(103);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(9),i=n(104);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(9),i=n(28),a=r.rotl32,o=r.sum32,s=r.sum32_3,A=r.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],I=n,b=r,C=i,m=c,E=u,B=0;B<80;B++){var v=o(a(A(n,f(B,r,i,c),e[l[B]+t],h(B)),p[B]),u);n=u,u=c,c=a(i,10),i=r,r=v,v=o(a(A(I,f(79-B,b,C,m),e[g[B]+t],d(B)),y[B]),E),I=E,E=m,m=a(C,10),C=b,b=v}v=s(this.h[1],i,m),this.h[1]=s(this.h[2],c,E),this.h[2]=s(this.h[3],u,I),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,C),this.h[0]=v},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(9),i=n(7);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(3),a=n(188),o=n(8),s=n(62),A=n(59),c=o.assert,u=n(189),f=n(190);function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(c(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=h,h.prototype.keyPair=function(e){return new u(this,e)},h.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},h.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},h.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||A(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i(2));;){var o=new i(t.generate(n));if(!(o.cmp(r)>0))return o.iaddn(1),this.keyFromPrivate(o)}},h.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,n,o){"object"===r(n)&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),A=t.getPrivate().toArray("be",s),c=e.toArray("be",s),u=new a({hash:this.hash,entropy:A,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var l=o.k?o.k(d):new i(u.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(h)>=0)){var g=this.g.mul(l);if(!g.isInfinity()){var p=g.getX(),y=p.umod(this.n);if(0!==y.cmpn(0)){var I=l.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(I=I.umod(this.n)).cmpn(0)){var b=(g.getY().isOdd()?1:0)|(0!==p.cmp(y)?2:0);return o.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),b^=1),new f({r:y,s:I,recoveryParam:b})}}}}}},h.prototype.verify=function(e,t,n,r){e=this._truncateToN(new i(e,16)),n=this.keyFromPublic(n,r);var a=(t=new f(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,A=o.invm(this.n),c=A.mul(e).umod(this.n),u=A.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),u)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(c,n.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},h.prototype.recoverPubKey=function(e,t,n,r){c((3&n)===n,"The recovery param is more than two bits"),t=new f(t,r);var a=this.n,o=new i(e),s=t.r,A=t.s,u=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var d=t.r.invm(a),l=a.sub(o).mul(d).umod(a),g=A.mul(d).umod(a);return this.g.mulAdd(l,s,g)},h.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(63),i=n(100),a=n(7);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},function(e,t,n){"use strict";var r=n(3),i=n(8).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(3),i=n(8),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function A(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o];return t.place=o,i}function c(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;if(A(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=A(e,n),o=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var c=A(e,n);if(e.length!==c+n.place)return!1;var u=e.slice(n.place,c+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new r(o),this.s=new r(u),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},function(e,t,n){"use strict";var r=n(63),i=n(62),a=n(8),o=a.assert,s=a.parseBytes,A=n(192),c=n(193);function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),A=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:A,Rencoded:a})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return A.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return A.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(8),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(3),a=n(8),o=a.assert,s=a.cachedProperty,A=a.parseBytes;function c(e,t){this.eddsa=e,"object"!==r(t)&&(t=A(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,n){"use strict";var r=n(29);t.certificate=n(204);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),A=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=A;var c=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=c;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f;var h=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){var r=n(29),i=n(0);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=n(196).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports){function _typeof(e){return(_typeof="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})(e)}var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(e),(function(t){n[t]=e[t]})),forEach(globals,(function(t){e[t]&&(n[t]=e[t])}));var a=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),(function(t){(t in e||-1===indexOf(a,t))&&(e[t]=n[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,n[t])})),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return e&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),n},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"===_typeof(e)&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),t}},function(e,t,n){var r=n(0);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){function r(e){return(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})(e)}var i=n(30).Reporter,a=n(30).EncoderBuffer,o=n(30).DecoderBuffer,s=n(7),A=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(A);function u(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=u;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};f.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==r(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),A.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}})),u.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var A=null;if(null!==n.explicit?A=n.explicit:null!==n.implicit?A=n.implicit:null!==n.tag&&(A=n.tag),null!==A||n.any){if(a=this._peekTag(e,A,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var f=e.offset;if(null===n.use&&null===n.choice){if(n.any)c=e.save();var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?i=e.raw(c):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var d=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(d,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},u.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var o=e.save(),s=n.choice[a];try{var A=s._decode(e,t);if(e.isError(A))return!1;r={type:a,value:A},i=!0}catch(t){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new a(e,this.reporter)},u.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},u.prototype._encodeValue=function(e,t,n){var a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new i);var o=null;if(this.reporter=t,a.optional&&void 0===e){if(null===a.default)return;e=a.default}var s=null,A=!1;if(a.any)o=this._createEncoderBuffer(e);else if(a.choice)o=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),A=!0;else if(a.children)s=a.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var i=t.enterKey(n._baseState.key);if("object"!==r(e))return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(i),a}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===a.tag||"setof"===a.tag){if(!a.args||1!==a.args.length)return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==a.use?o=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),A=!0);if(!a.any&&null===a.choice){var u=null!==a.implicit?a.implicit:a.tag,f=null===a.implicit?"universal":"context";null===u?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(o=this._encodeComposite(u,A,f,s))}return null!==a.explicit&&(o=this._encodeComposite(a.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(106);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(107),r.pem=n(201)},function(e,t,n){var r=n(0),i=n(2).Buffer,a=n(107);function o(e){a.call(this,e),this.enc="pem"}r(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,A=-1,c=0;c<n.length;c++){var u=n[c].match(o);if(null!==u&&u[2]===r){if(-1!==s){if("END"!==u[1])break;A=c;break}if("BEGIN"!==u[1])break;s=c}}if(-1===s||-1===A)throw new Error("PEM section not found for: "+r);var f=n.slice(s+1,A).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(f,"base64");return a.prototype.decode.call(this,h,t)}},function(e,t,n){var r=t;r.der=n(108),r.pem=n(203)},function(e,t,n){var r=n(0),i=n(108);function a(e){i.call(this,e),this.enc="pem"}r(a,i),e.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";var r=n(29),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),A=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),c=r.define("RDNSequence",(function(){this.seqof(A)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),l=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=l},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=n(34),s=n(57),A=n(1).Buffer;e.exports=function(e,t){var n,c=e.toString(),u=c.match(r);if(u){var f="aes"+u[1],h=A.from(u[2],"hex"),d=A.from(u[3].replace(/[\r\n]/g,""),"base64"),l=o(t,h.slice(0,8),parseInt(u[1],10)).key,g=[],p=s.createDecipheriv(f,l,h);g.push(p.update(d)),g.push(p.final()),n=A.concat(g)}else{var y=c.match(a);n=new A(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:n}}},function(e,t,n){(function(t){var r=n(3),i=n(61).ec,a=n(36),o=n(109);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,n,A,c,u){var f=a(A);if("ec"===f.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=o[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new i(r),s=n.data.subjectPrivateKey.data;return a.verify(t,e,s)}(e,n,f)}if("dsa"===f.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var i=n.data.p,o=n.data.q,A=n.data.g,c=n.data.pub_key,u=a.signature.decode(e,"der"),f=u.s,h=u.r;s(f,o),s(h,o);var d=r.mont(i),l=f.invm(o);return 0===A.toRed(d).redPow(new r(t).mul(l).mod(o)).fromRed().mul(c.toRed(d).redPow(h.mul(l).mod(o)).fromRed()).mod(i).mod(o).cmp(h)}(e,n,f)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");n=t.concat([u,n]);for(var h=f.modulus.byteLength(),d=[1],l=0;n.length+d.length+2<h;)d.push(255),l++;d.push(0);for(var g=-1;++g<n.length;)d.push(n[g]);d=new t(d);var p=r.mont(f.modulus);e=(e=new r(e).toRed(p)).redPow(new r(f.publicExponent)),e=new t(e.fromRed().toArray());var y=l<8?1:0;for(h=Math.min(e.length,d.length),e.length!==d.length&&(y=1),g=-1;++g<h;)y|=e[g]^d[g];return 0===y}}).call(this,n(2).Buffer)},function(e,t,n){var r=n(36),i=n(17),a=n(19),o=n(112),s=n(113),A=n(3),c=n(114),u=n(60),f=n(1).Buffer;e.exports=function(e,t,n){var h;h=e.padding?e.padding:n?1:4;var d,l=r(e);if(4===h)d=function(e,t){var n=e.modulus.byteLength(),r=t.length,c=a("sha1").update(f.alloc(0)).digest(),u=c.length,h=2*u;if(r>n-h-2)throw new Error("message too long");var d=f.alloc(n-r-h-2),l=n-u-1,g=i(u),p=s(f.concat([c,d,f.alloc(1,1),t],l),o(g,l)),y=s(g,o(p,u));return new A(f.concat([f.alloc(1),y,p],n))}(l,t);else if(1===h)d=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");r=n?f.alloc(o-a-3,255):function(e){var t,n=f.allocUnsafe(e),r=0,a=i(2*e),o=0;for(;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}(o-a-3);return new A(f.concat([f.from([0,n?1:2]),r,f.alloc(1),t],o))}(l,t,n);else{if(3!==h)throw new Error("unknown padding");if((d=new A(t)).cmp(l.modulus)>=0)throw new Error("data too long for modulus")}return n?u(d,l):c(d,l)}},function(e,t,n){var r=n(36),i=n(112),a=n(113),o=n(3),s=n(60),A=n(19),c=n(114),u=n(1).Buffer;e.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var h,d=r(e),l=d.modulus.byteLength();if(t.length>l||new o(t).cmp(d.modulus)>=0)throw new Error("decryption error");h=n?c(new o(t),d):s(t,d);var g=u.alloc(l-h.length);if(h=u.concat([g,h],l),4===f)return function(e,t){var n=e.modulus.byteLength(),r=A("sha1").update(u.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),c=t.slice(o+1),f=a(s,i(c,o)),h=a(c,i(f,n-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,h.slice(0,o)))throw new Error("decryption error");var d=o;for(;0===h[d];)d++;if(1!==h[d++])throw new Error("decryption error");return h.slice(d)}(d,h);if(1===f)return function(e,t,n){var r=t.slice(0,2),i=2,a=0;for(;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(i)}(0,h,n);if(3===f)return h;throw new Error("unknown padding")}},function(e,t,n){(function(e){var r,i,a,o;function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),e}function u(e){return(u="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})(e)}window,o=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==u(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(7),i=n.n(r),a=function(){function t(e){s(this,t),this.wasm=e}return c(t,[{key:"arrayToBuf",value:function(t){var n=this.wasm,r={ptr:null,len:0};if(!t)return r;var i=null;if(t instanceof Uint8Array||void 0!==e&&t instanceof e)i=t;else{if(!(t instanceof ArrayBuffer||t.__proto__.toString().includes("ArrayBuffer")))throw new Error("arrayToBuf() failed: Expected Uint8Array, Buffer, or\n ArrayBuffer");i=new Uint8Array(t)}return r.len=i.length,r.ptr=n._malloc(i.length),n.writeArrayToMemory(i,r.ptr),r}},{key:"arrayToSmartBuf",value:function(e){var t=this.wasm,n=this.arrayToBuf(e);return n.ptr&&setTimeout((function(){t._free(n.ptr),n.len=0,n.ptr=null}),0),n}},{key:"smartMalloc",value:function(e){var t=this.wasm,n=t._malloc(e);return setTimeout((function(){t._free(n)}),0),n}}],[{key:"bytesToHex",value:function(e){return e.reduce((function(e,t){return e+t.toString(16).padStart(2,"0")}),"")}},{key:"bytesToBinary",value:function(e){return e.reduce((function(e,t){return e+t.toString(2).padStart(8,"0")+" "}),"")}},{key:"hexToBytes",value:function(e){return new Uint8Array(e.match(/.{1,2}/g).map((function(e){return parseInt(e,16)})))}},{key:"randomBytes",value:function(e){if("undefined"!=typeof window&&"undefined"!==window.crypto){var t=new Uint8Array(e);return window.crypto.getRandomValues(t),t}return i.a.randomBytes(e)}}]),t}()}).call(this,n(3).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(t){s(this,e),this.wasm=t,this.ptr=null,this.len=0}return c(e,[{key:"clear",value:function(){this.len=0}},{key:"free",value:function(){null!==this.ptr&&(this.wasm._free(this.ptr),this.len=0,this.ptr=null)}},{key:"resize",value:function(e){null!==this.ptr&&this.free(),this.len=e,this.ptr=this.wasm._malloc(e)}},{key:"ensureSize",value:function(e){(null===this.ptr||this.len<e)&&this.resize(e)}}]),e}()},function(e,t){e.exports=n(211)},function(e,t,n){"use strict";(function(e){
48
- /*!
49
- * The buffer module from node.js, for the browser.
50
- *
51
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
52
- * @license MIT
53
- */
54
- var r=n(12),i=n(13),a=n(14);function o(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return A.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=A.prototype:(null===e&&(e=new A(t)),e.length=t),e}function A(e,t,n){if(!(A.TYPED_ARRAY_SUPPORT||this instanceof A))return new A(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),A.TYPED_ARRAY_SUPPORT?(e=t).__proto__=A.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!A.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|l(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(A.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(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 f(e,t){if(u(t),e=s(e,t<0?0:0|d(t)),!A.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function l(e,t){if(A.isBuffer(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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return T(e).length;default:if(r)return O(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function p(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=A.from(t,r)),A.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,A.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,A=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,A/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===A)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+A>s&&(n=s-A),a=n;a>=0;a--){for(var f=!0,h=0;h<A;h++)if(c(e,a+h)!==c(t,h)){f=!1;break}if(f)return a}return-1}function I(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function b(e,t,n,r){return P(O(t,e.length-n),e,n,r)}function C(e,t,n,r){return P(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function m(e,t,n,r){return C(e,t,n,r)}function E(e,t,n,r){return P(T(t),e,n,r)}function B(e,t,n,r){return P(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function v(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function w(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,A,c=e[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(A=(31&c)<<6|63&a)>127&&(u=A);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(A=(15&c)<<12|(63&a)<<6|63&o)>2047&&(A<55296||A>57343)&&(u=A);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(A=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&A<1114112&&(u=A)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Q));return n}(r)}t.Buffer=A,t.SlowBuffer=function(e){return+e!=e&&(e=0),A.alloc(+e)},t.INSPECT_MAX_BYTES=50,A.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),A.poolSize=8192,A._augment=function(e){return e.__proto__=A.prototype,e},A.from=function(e,t,n){return c(null,e,t,n)},A.TYPED_ARRAY_SUPPORT&&(A.prototype.__proto__=Uint8Array.prototype,A.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&A[Symbol.species]===A&&Object.defineProperty(A,Symbol.species,{value:null,configurable:!0})),A.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},A.allocUnsafe=function(e){return f(null,e)},A.allocUnsafeSlow=function(e){return f(null,e)},A.isBuffer=function(e){return!(null==e||!e._isBuffer)},A.compare=function(e,t){if(!A.isBuffer(e)||!A.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},A.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}},A.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return A.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=A.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!A.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},A.byteLength=l,A.prototype._isBuffer=!0,A.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)g(this,t,t+1);return this},A.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)g(this,t,t+3),g(this,t+1,t+2);return this},A.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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},A.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?w(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return w(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return v(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},A.prototype.equals=function(e){if(!A.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===A.compare(this,e)},A.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},A.prototype.compare=function(e,t,n,r,i){if(!A.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),f=0;f<s;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},A.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},A.prototype.indexOf=function(e,t,n){return p(this,e,t,n,!0)},A.prototype.lastIndexOf=function(e,t,n){return p(this,e,t,n,!1)},A.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return m(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=G(e[a]);return i}function D(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function _(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,a){if(!A.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function F(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,a){return a||F(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,a){return a||F(e,0,n,8),i.write(e,t,n,r,52,8),n+8}A.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),A.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=A.prototype;else{var i=t-e;n=new A(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},A.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},A.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},A.prototype.readUInt8=function(e,t){return t||_(e,1,this.length),this[e]},A.prototype.readUInt16LE=function(e,t){return t||_(e,2,this.length),this[e]|this[e+1]<<8},A.prototype.readUInt16BE=function(e,t){return t||_(e,2,this.length),this[e]<<8|this[e+1]},A.prototype.readUInt32LE=function(e,t){return t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},A.prototype.readUInt32BE=function(e,t){return t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},A.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},A.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},A.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},A.prototype.readInt16LE=function(e,t){t||_(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt16BE=function(e,t){t||_(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt32LE=function(e,t){return t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},A.prototype.readInt32BE=function(e,t){return t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},A.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!0,23,4)},A.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!1,23,4)},A.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!0,52,8)},A.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!1,52,8)},A.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||x(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},A.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||x(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},A.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,255,0),A.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},A.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},A.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},A.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},A.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},A.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},A.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},A.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,127,-128),A.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},A.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},A.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},A.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},A.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),A.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},A.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},A.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},A.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},A.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},A.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!A.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},A.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!A.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=A.isBuffer(e)?e:O(new A(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function O(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function T(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(11))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var A,c=[],u=!1,f=-1;function h(){u&&A&&(u=!1,A.length?c=A.concat(c):f=-1,c.length&&d())}function d(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(A=c,c=[];++f<t;)A&&A[f].run();f=-1,t=c.length}A=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function l(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new l(e,t)),1!==c.length||u||s(d)},l.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";t.a={"ElvCrypto.wasm":"AGFzbQEAAAABwQEYYAN/f38Bf2AGf3x/f39/AX9gAn9/AGABfwF/YAN/fn8BfmABfwBgAn9/AX9gAAF/YAZ/f39/f38Bf2AHf39/f39/fwF/YAh/f39/f39/fwF/YAp/f39/f39/f39/AX9gBH9/f38Bf2AGf39/f39/AGAJf39/f39/f39/AX9gBX9/f39/AX9gA39/fwBgBX9/f39/AGAEf39+fwBgCH9/f39/f39/AGAEf39/fwBgA35/fwF/YAJ+fwF/YAJ8fwF8AowBDgNlbnYBYgADA2VudgFjAAUDZW52AWQABgNlbnYBZQAFA2VudgFmAAMDZW52AWcAAwNlbnYBaAAAA2VudgFpAAcDZW52AWoABgNlbnYBawAGA2VudgxfX3RhYmxlX2Jhc2UDfwADZW52AWEDfwADZW52Bm1lbW9yeQIAgAIDZW52BXRhYmxlAXABCgoDnwKdAgUCEAUCBRACAhAQEBACEAIFEBAQAgICEBASEBICEBECAgUCAgICAhAFAgUFAgIQBRADAgIQEAICAgICAgICEAIABQUQAwUCBQMAAgICEAUDBRYDAgUCEAUQAgUFBgYCAxAFEAUCAgUCBQURAwUFAgICEBACEBAFERAFAgUCAgIOAw8RFAIFBQYCAgUQEBACAhACAgUQAgICAgALFwYQAxAAAhAFEQICAgAQFAcCAgUCBwYCAgAQEAUQAwMABQIHEAILEBAFBQIFAwMDBgMGEAMDAgICDwYMDAAMBQkCBAABAwYOBhYVDRACAQYDBwcEAAMUFAcHDQ0CBhAQAgcFBxACEAcQBhAQBwUCAgcJExAQAhAMCwIQBhAKAgkCCAYNAn8BIwELfwFBoMkACwfHASgBbADaAQFtANkBAW4A1wEBbwDUAQFwANMBAXEApgIBcgCkAgFzAKICAXQAywEBdQCdAgF2AJwCAXcAyAEBeACVAgF5AJECAXoAjAIBQQCIAgFCAIYCAUMAugEBRAC6AQFFALUBAUYA/gEBRwD9AQFIAMgBAUkA9wEBSgC1AQFLAPABAUwA7AEBTQCkAQFOAOUBAU8A5AEBUADjAQFRAOIBAVIA4QEBUwDgAQFUAN8BAVUAowEBVgDeAQFXAPYBAVgASwFZAFwJGgEAIwALCuoB+gHpAfMB6AH5AecB+AHmAfIBCvr1BZ0CvAEBAX4gACAAKQMAIgFC//////////8DgzcDACAAIAApAwggAUI6h3wiAUL//////////wODNwMIIAAgACkDECABQjqHfCIBQv//////////A4M3AxAgACAAKQMYIAFCOod8IgFC//////////8DgzcDGCAAIAApAyAgAUI6h3wiAUL//////////wODNwMgIAAgACkDKCABQjqHfCIBQv//////////A4M3AyggACAAKQMwIAFCOod8NwMwC0gAIAAgASkDADcDACAAIAEpAwg3AwggACABKQMQNwMQIAAgASkDGDcDGCAAIAEpAyA3AyAgACABKQMoNwMoIAAgASkDMDcDMAtRAQF/IwMhAyMDQUBrJAMgACABIAIQfiAAIAEoAjggAigCOGoiATYCOCABQYCAgBBMBEAgAyQDDwsgA0HADBALIAAgAxAeIABBATYCOCADJAMLDQAgABAKIABBQGsQCgsdACAAIAFGBEAPCyAAIAEQESAAQUBrIAFBQGsQEQuCAQEBfiAAIAApAwAiAUL//////////wCDNwMAIAAgACkDCCABQjiHfCIBQv//////////AIM3AwggACAAKQMQIAFCOId8IgFC//////////8AgzcDECAAIAApAxggAUI4h3wiAUL//////////wCDNwMYIAAgACkDICABQjiHfDcDIAtSAQF/IwMhAyMDQTBqJAMgACABIAIQwAEgACABKAIoIAIoAihqIgE2AiggAUGAgIAITARAIAMkAw8LIANBgBAQEiAAIAMQKSAAQQE2AiggAyQDCxIAIAAgARALIAAgASgCODYCOAs0ACAAIAEpAwA3AwAgACABKQMINwMIIAAgASkDEDcDECAAIAEpAxg3AxggACABKQMgNwMgC2oBAn8jAyEDIwNBsAFqJAMgA0HwAGohBCACKAI4rCABKAI4rH5CgICAEFUEQCAEQcAMEAsgASAEEB4gAUEBNgI4CyADIAEgAhAxIARBwAwQCyAAIARBgDQpAwAgAxAjIABBAjYCOCADJAMLHgAgACABIAIQFSAAQYABaiABQYABaiACQYABahAVCxsAIAAgASACEAwgAEFAayABQUBrIAJBQGsQDAtqAQJ/IwMhAyMDQYABaiQDIANB0ABqIQQgAigCKKwgASgCKKx+QoCAgAhVBEAgBEGAEBASIAEgBBApIAFBATYCKAsgAyABIAIQPiAEQYAQEBIgACAEQYg0KQMAIAMQJSAAQQI2AiggAyQDCxIAIAAgARASIAAgASgCKDYCKAuXAgEHfyMDIQMjA0HwBWokAyADQcAMEAsgA0HAAWoiCCADEKMCIAFBQGshBSABKAI4IgYgASgCeCIEaqwgAigCOCACKAJ4aqx+QoCAgBBVBEAgBkEBSgRAIAEQKyABKAJ4IQQLIARBAUoEQCAFECsLCyADQYAFaiIEIAEgAhAxIANBkARqIgYgBSACQUBrIgkQMSADQYABaiIHIAEgBRB+IAcQCiADQUBrIgUgAiAJEH4gBRAKIANBoANqIgEgByAFEDEgA0GwAmoiAiAEIAYQzAEgBiAIIAYQzQEgBCAEIAYQzAEgASABIAIQzQEgBBDPASAAIAQQLyAAQQM2AjggARDPASAAQUBrIAEQLyAAQQI2AnggAyQDC0oBAn8jAyECIwNB8AFqJAMgAkGADRALIAJBQGsiAyABIAIQMSACQbABaiIBQcAMEAsgACABQYA0KQMAIAMQIyAAQQI2AjggAiQDCw4AIAAQDSAAQYABahANCyYAIAAgASACEJcBIAAgACgCOCIAQQAgAmsgACABKAI4c3FzNgI4CxgAIAAgASACEBsgAEFAayABQUBrIAIQGwsmACAAIAEgAhDCASAAIAAoAigiAEEAIAJrIAAgASgCKHNxczYCKAuFCwIJfxB+IAAgACkDACILQv//////////A4MiEDcDACAAIAApAwggC0I6h3wiC0L//////////wODIg03AwggACAAKQMQIAtCOod8IgtC//////////8DgyIONwMQIAAgACkDGCALQjqHfCILQv//////////A4MiETcDGCAAIAApAyAgC0I6h3wiC0L//////////wODIhI3AyAgACAAKQMoIAtCOod8IgxC//////////8DgyILNwMoIAAgACkDMCAMQjqHfCIPNwMwAkACQCAPIAEpAzAiE1EEfiALIAFBKGoiCCkDACIMUQR+IBIgAUEgaiIDKQMAIgxRBH4gESABQRhqIgQpAwAiDFEEfiAOIAFBEGoiBSkDACIMUQR+IAFBCGoiAikDACIMIA1RBH4gECABKQMAIgxRBH4gAyEGIAQhByAFIQMgAiEEIAghBSALBSAQIQsMBwsFIA0hCwwGCwUgDiELDAULBSARIQsMBAsFIBIhCwwDCwUMAgsFIBMhDCAPIQsMAQshDwwBCyALIAxVBH4gAUEoaiIFKQMAIQ8gAUEgaiIJIQYgAUEYaiIKIQcgAUEQaiIIIQMgAUEIaiICIQQgCSkDACESIAopAwAhESAIKQMAIQ4gAikDACENIAEpAwAFDwshEAtBACECA0AgASATQgGGIA9COYeEIhM3AzAgBSAPQgGGQv7/////////A4MgEkI5h4QiDzcDACAGIBJCAYZC/v////////8DgyARQjmHhCISNwMAIAcgEUIBhkL+/////////wODIA5COYeEIhE3AwAgAyAOQgGGQv7/////////A4MgDUI5h4QiDjcDACAEIA1CAYZC/v////////8DgyAQQjmHhCINNwMAIAEgEEIBhkL+/////////wODIhA3AwAgAkEBaiECAn8CQCATIAApAzAiC1EEfyAPIAApAygiC1EEfyASIAApAyAiC1EEfyARIAApAxgiC1EEfyAOIAApAxAiC1EEfyANIAApAwgiC1EEfyAAKQMAIgsgEFEEf0EABSAQIQwMBwsFIA0hDAwGCwUgDiEMDAULBSARIQwMBAsFIBIhDAwDCwUgDyEMDAILBSATIQwMAQsMAQtBAUF/IAsgDFUbC0F/Sg0ACwNAIAEgDUI5hkKAgICAgICAgAKDIBBCAYeEIho3AwAgBCAOQjmGQoCAgICAgICAAoMgDUIBh4QiFDcDACADIBFCOYZCgICAgICAgIACgyAOQgGHhCIONwMAIAcgEkI5hkKAgICAgICAgAKDIBFCAYeEIg03AwAgBiAPQjmGQoCAgICAgICAAoMgEkIBh4QiEDcDACAFIBNCOYZCgICAgICAgIACgyAPQgGHhCIMNwMAIAEgE0IBhyILNwMwQQAgACkDMCIVIAt9IAApAygiFiAMfSAAKQMgIhcgEH0gACkDGCIYIA19IAApAxAiGSAOfSAAKQMIIhMgFH0gACkDACIPIBp9IhJCOod8IhFCOod8Ig5COod8Ig1COod8IhBCOod8IgxCOod8IgtCP4inQQFza6whFCAAIA8gFCAPIBJC//////////8Dg4WDhTcDACAAIBMgFCATIBFC//////////8Dg4WDhTcDCCAAIBkgFCAZIA5C//////////8Dg4WDhTcDECAAIBggFCAYIA1C//////////8Dg4WDhTcDGCAAIBcgFCAXIBBC//////////8Dg4WDhTcDICAAIBYgFCAWIAxC//////////8Dg4WDhTcDKCAAIBUgFCALIBWFg4U3AzAgAkEBSgRAIAJBf2ohAiABKQMAIRAgBCkDACENIAMpAwAhDiAHKQMAIREgBikDACESIAUpAwAhDyABKQMwIRMMAQsLC5MCAgF/B34gAEIANwMAIABCADcDCCAAQgA3AxAgAEIANwMYIABCADcDICAAQgA3AyggAEIANwMwA0AgACAJQgiGIARCMoeEIgk3AzAgACAEQgiGQoD+////////A4MgBUIyh4QiBDcDKCAAIAVCCIZCgP7///////8DgyAGQjKHhCIFNwMgIAAgBkIIhkKA/v///////wODIAdCMoeEIgY3AxggACAHQgiGQoD+////////A4MgCEIyh4QiBzcDECAAIAhCCIZCgP7///////8DgyADQjKHhCIINwMIIAAgA0IIhkKA/v///////wODIgM3AwAgACADIAEgAmotAACthCIDNwMAIAJBAWoiAkEwRw0ACwuGAwIBfwd+IAEgASkDACIDQv//////////A4MiBzcDACABIAEpAwggA0I6h3wiA0L//////////wODIgg3AwggASABKQMQIANCOod8IgNC//////////8DgyIJNwMQIAEgASkDGCADQjqHfCIEQv//////////A4MiAzcDGCABIAEpAyAgBEI6h3wiBUL//////////wODIgQ3AyAgASABKQMoIAVCOod8IgZC//////////8DgyIFNwMoIAEgASkDMCAGQjqHfCIGNwMwQS8hAQNAIAAgAWogBzwAACAIQjKGQoCAgICAgID+A4MgB0IIh4QhByAJQjKGQoCAgICAgID+A4MgCEIIh4QhCCADQjKGQoCAgICAgID+A4MgCUIIh4QhCSAEQjKGQoCAgICAgID+A4MgA0IIh4QhAyAFQjKGQoCAgICAgID+A4MgBEIIh4QhBCAGQjKGQoCAgICAgID+A4MgBUIIh4QhBSAGQgiHIQYgAUF/aiECIAEEQCACIQEMAQsLC14BAn8jAyEDIwNB4ABqJAMgA0EoaiIEIAIQXSAAIAEgBBDAASAAIAEoAiggBCgCKGoiATYCKCABQYCAgAhMBEAgAyQDDwsgA0GAEBASIAAgAxApIABBATYCKCADJAMLXQECfyMDIQMjA0GAAWokAyADQThqIgQgAhAwIAAgASAEEH4gACABKAI4IAQoAjhqIgE2AjggAUGAgIAQTARAIAMkAw8LIANBwAwQCyAAIAMQHiAAQQE2AjggAyQDC5IPAgR/CX4gAkJ/UQRAIAMpAzAhAgNAQgAgBEEDdCADaiIGKQMAIgh9IgtC/////wGDIQ0gASkDACIKQv////8BgyEJIAYgCCAJIA1+fCANIApCHYciCn4gC0IdiEL/////AYMiCyAJfnwiDEIdhkKAgICA/v///wODfCIIQv//////////A4M3AwAgASkDCCIOQv////8BgyEJIARBAWoiBkEDdCADaiIFKQMAIAogC34gDEIdh3wgCEI6h3x8IAkgDX58IA0gDkIdhyIOfiAJIAt+fCIPQh2GQoCAgID+////A4N8IQkgBSAJQv//////////A4M3AwAgASkDECIKQv////8BgyEIIARBAmpBA3QgA2oiBSkDACALIA5+IA9CHYd8IAlCOod8fCAIIA1+fCANIApCHYciCn4gCCALfnwiDEIdhkKAgICA/v///wODfCEJIAUgCUL//////////wODNwMAIAEpAxgiDkL/////AYMhCCAEQQNqQQN0IANqIgUpAwAgCiALfiAMQh2HfCAJQjqHfHwgCCANfnwgDSAOQh2HIg5+IAggC358Ig9CHYZCgICAgP7///8Dg3whCSAFIAlC//////////8DgzcDACABKQMgIgpC/////wGDIQggBEEEakEDdCADaiIFKQMAIAsgDn4gD0Idh3wgCUI6h3x8IAggDX58IApCHYciCiANfiAIIAt+fCIMQh2GQoCAgID+////A4N8IQkgBSAJQv//////////A4M3AwAgASkDKCIOQv////8BgyEIIARBBWpBA3QgA2oiBSkDACAKIAt+IAxCHYd8IAlCOod8fCAIIA1+fCAOQh2HIg4gDX4gCCALfnwiD0IdhkKAgICA/v///wODfCEJIAUgCUL//////////wODNwMAIAEpAzAiCkL/////AYMhCCAEQQZqQQN0IANqIAsgDn4gD0Idh3wgCUI6h3wgAnwgCCANfnwgDSAKQh2HIgp+IAggC358IgxCHYZCgICAgP7///8Dg3wiAkL//////////wODNwMAIARBB2pBA3QgA2oiBCkDACAKIAt+IAxCHYd8IAJCOod8fCECIAQgAjcDACAGQQdHBEAgBiEEDAELCwUgAkIBUSEFIAMpAzAhDQNAIARBA3QgA2oiBikDACIIIAIgCH5C//////////8DgyAFGyIJQv////8BgyELIAEpAwAiDEL/////AYMhCiAGIAggCiALfnwgCyAMQh2HIgx+IAlCHYciCSAKfnwiDkIdhkKAgICA/v///wODfCIKQv//////////A4M3AwAgASkDCCIPQv////8BgyEIIARBAWoiBkEDdCADaiIHKQMAIAkgDH4gDkIdh3wgCkI6h3x8IAggC358IAsgD0IdhyIPfiAIIAl+fCIQQh2GQoCAgID+////A4N8IQggByAIQv//////////A4M3AwAgASkDECIMQv////8BgyEKIARBAmpBA3QgA2oiBykDACAJIA9+IBBCHYd8IAhCOod8fCAKIAt+fCALIAxCHYciDH4gCSAKfnwiDkIdhkKAgICA/v///wODfCEIIAcgCEL//////////wODNwMAIAEpAxgiD0L/////AYMhCiAEQQNqQQN0IANqIgcpAwAgCSAMfiAOQh2HfCAIQjqHfHwgCiALfnwgCyAPQh2HIg9+IAkgCn58IhBCHYZCgICAgP7///8Dg3whCCAHIAhC//////////8DgzcDACABKQMgIgxC/////wGDIQogBEEEakEDdCADaiIHKQMAIAkgD34gEEIdh3wgCEI6h3x8IAogC358IAsgDEIdhyIMfiAJIAp+fCIOQh2GQoCAgID+////A4N8IQggByAIQv//////////A4M3AwAgASkDKCIPQv////8BgyEKIARBBWpBA3QgA2oiBykDACAJIAx+IA5CHYd8IAhCOod8fCAKIAt+fCALIA9CHYciD34gCSAKfnwiEEIdhkKAgICA/v///wODfCEIIAcgCEL//////////wODNwMAIAEpAzAiDEL/////AYMhCiAEQQZqQQN0IANqIAkgD34gEEIdh3wgCEI6h3wgDXwgCiALfnwgCyAMQh2HIgx+IAkgCn58Ig5CHYZCgICAgP7///8Dg3wiDUL//////////wODNwMAIARBB2pBA3QgA2oiBCkDACAJIAx+IA5CHYd8IA1COod8fCENIAQgDTcDACAGQQdHBEAgBiEEDAELCwsgACADKQM4IgI3AwAgACADQUBrKQMAIg03AwggACADKQNIIgs3AxAgACADKQNQIgk3AxggACADKQNYIgg3AyAgACADKQNgIgo3AyggAykDaCEMIAAgAkL//////////wODNwMAIAAgDSACQjqHfCICQv//////////A4M3AwggACALIAJCOod8IgJC//////////8DgzcDECAAIAkgAkI6h3wiAkL//////////wODNwMYIAAgCCACQjqHfCICQv//////////A4M3AyAgACAKIAJCOod8IgJC//////////8DgzcDKCAAIAwgAkI6h3w3AzALnAEBBn8jAyEDIwNBgARqJAMgA0GAA2oiBiABIAIQGCADQYACaiIFIAFBgAFqIgcgAkGAAWoiCBAYIANBgAFqIgQgCCACEBUgAyAHIAEQFSADEA0gBBANIAMgAyAEEBggBCAGEC0gAyADIAQQFSADEA0gBCAFEC0gAEGAAWoiASADIAQQFSAFEDkgACAFIAYQFSAAEA0gARANIAMkAwuSCwIEfwl+IAJCf1EEQCADKQMgIQIDQEIAIARBA3QgA2oiBSkDACIIfSIKQv////8AgyEMIAEpAwAiC0L/////AIMhCSAFIAggCSAMfnwgDCALQhyHIgt+IApCHIhC/////wCDIgogCX58Ig1CHIZCgICAgP////8Ag3wiCEL//////////wCDNwMAIAEpAwgiDkL/////AIMhCSAEQQFqIgVBA3QgA2oiBikDACAKIAt+IA1CHId8IAhCOId8fCAJIAx+fCAMIA5CHIciDn4gCSAKfnwiD0IchkKAgICA/////wCDfCEJIAYgCUL//////////wCDNwMAIAEpAxAiC0L/////AIMhCCAEQQJqQQN0IANqIgYpAwAgCiAOfiAPQhyHfCAJQjiHfHwgCCAMfnwgDCALQhyHIgt+IAggCn58Ig1CHIZCgICAgP////8Ag3whCSAGIAlC//////////8AgzcDACABKQMYIg5C/////wCDIQggBEEDakEDdCADaiIGKQMAIAogC34gDUIch3wgCUI4h3x8IAggDH58IAwgDkIchyIOfiAIIAp+fCIPQhyGQoCAgID/////AIN8IQkgBiAJQv//////////AIM3AwAgASkDICILQv////8AgyEIIARBBGpBA3QgA2ogCiAOfiAPQhyHfCAJQjiHfCACfCAIIAx+fCAMIAtCHIciC34gCCAKfnwiDUIchkKAgICA/////wCDfCICQv//////////AIM3AwAgBEEFakEDdCADaiIEKQMAIAogC34gDUIch3wgAkI4h3x8IQIgBCACNwMAIAVBBUcEQCAFIQQMAQsLBSACQgFRIQYgAykDICEMA0AgBEEDdCADaiIFKQMAIgggAiAIfkL//////////wCDIAYbIglC/////wCDIQogASkDACINQv////8AgyELIAUgCCAKIAt+fCAKIA1CHIciDX4gCUIchyIJIAt+fCIOQhyGQoCAgID/////AIN8IgtC//////////8AgzcDACABKQMIIg9C/////wCDIQggBEEBaiIFQQN0IANqIgcpAwAgCSANfiAOQhyHfCALQjiHfHwgCCAKfnwgCiAPQhyHIg9+IAggCX58IhBCHIZCgICAgP////8Ag3whCCAHIAhC//////////8AgzcDACABKQMQIg1C/////wCDIQsgBEECakEDdCADaiIHKQMAIAkgD34gEEIch3wgCEI4h3x8IAogC358IAogDUIchyINfiAJIAt+fCIOQhyGQoCAgID/////AIN8IQggByAIQv//////////AIM3AwAgASkDGCIPQv////8AgyELIARBA2pBA3QgA2oiBykDACAJIA1+IA5CHId8IAhCOId8fCAKIAt+fCAKIA9CHIciD34gCSALfnwiEEIchkKAgICA/////wCDfCEIIAcgCEL//////////wCDNwMAIAEpAyAiDUL/////AIMhCyAEQQRqQQN0IANqIAkgD34gEEIch3wgCEI4h3wgDHwgCiALfnwgCiANQhyHIg1+IAkgC358Ig5CHIZCgICAgP////8Ag3wiDEL//////////wCDNwMAIARBBWpBA3QgA2oiBCkDACAJIA1+IA5CHId8IAxCOId8fCEMIAQgDDcDACAFQQVHBEAgBSEEDAELCwsgACADKQMoIgI3AwAgACADKQMwIgw3AwggACADKQM4Igo3AxAgACADQUBrKQMAIgk3AxggAykDSCEIIAAgAkL//////////wCDNwMAIAAgDCACQjiHfCICQv//////////AIM3AwggACAKIAJCOId8IgJC//////////8AgzcDECAAIAkgAkI4h3wiAkL//////////wCDNwMYIAAgCCACQjiHfDcDIAsfACAAIAFGBEAPCyAAIAEQDiAAQYABaiABQYABahAOCxgAIAAoAgBBIHFFBEAgASACIAAQqgEaCwuAAQECfyMDIQUjA0GAAmokAyAEQYDABHFFIAIgA0pxBEAgBSABQRh0QRh1IAIgA2siAUGAAiABQYACSRsQShogAUH/AUsEQAJ/IAIgA2shBgNAIAAgBUGAAhAnIAFBgH5qIgFB/wFLDQALIAYLQf8BcSEBCyAAIAUgARAnCyAFJAML6wcCBX8LfiAAIAApAwAiB0L//////////wCDIgs3AwAgACAAKQMIIAdCOId8IgdC//////////8AgyIJNwMIIAAgACkDECAHQjiHfCIHQv//////////AIMiDDcDECAAIAApAxggB0I4h3wiCEL//////////wCDIgc3AxggACAAKQMgIAhCOId8Igo3AyACQAJAIAogASkDICINUQR+IAcgAUEYaiIGKQMAIghRBH4gDCABQRBqIgMpAwAiCFEEfiABQQhqIgIpAwAiCCAJUQR+IAsgASkDACIIUQR+IAMhBCACIQUgBiEDIAcFIAshBwwFCwUgCSEHDAQLBSAMIQcMAwsFDAILBSANIQggCiEHDAELIQoMAQsgByAIVQR+IAFBGGoiAykDACEKIAFBEGoiBiEEIAFBCGoiAiEFIAYpAwAhDCACKQMAIQkgASkDAAUPCyELC0EAIQIDQCABIA1CAYYgCkI3h4QiDTcDICADIApCAYZC/v////////8AgyAMQjeHhCIKNwMAIAQgDEIBhkL+/////////wCDIAlCN4eEIgw3AwAgBSAJQgGGQv7/////////AIMgC0I3h4QiCTcDACABIAtCAYZC/v////////8AgyILNwMAIAJBAWohAgJ/AkAgDSAAKQMgIgdRBH8gCiAAKQMYIgdRBH8gDCAAKQMQIgdRBH8gCSAAKQMIIgdRBH8gCyAAKQMAIgdRBH9BAAUgCyEIDAULBSAJIQgMBAsFIAwhCAwDCwUgCiEIDAILBSANIQgMAQsMAQtBAUF/IAcgCFUbC0F/Sg0ACwNAIAEgCUI3hkKAgICAgICAwACDIAtCAYeEIg43AwAgBSAMQjeGQoCAgICAgIDAAIMgCUIBh4QiCTcDACAEIApCN4ZCgICAgICAgMAAgyAMQgGHhCILNwMAIAMgDUI3hkKAgICAgICAwACDIApCAYeEIgg3AwAgASANQgGHIgc3AyAgAEEAIAApAyAiDyAHfSAAKQMYIhAgCH0gACkDECIRIAt9IAApAwgiCiAJfSAAKQMAIg0gDn0iDEI4h3wiCUI4h3wiC0I4h3wiCEI4h3wiB0I/iKdBAXNrrCIOIAxC//////////8AgyANhYMgDYU3AwAgACAOIAlC//////////8AgyAKhYMgCoU3AwggACAOIAtC//////////8AgyARhYMgEYU3AxAgACAQIA4gECAIQv//////////AIOFg4U3AxggACAPIA4gByAPhYOFNwMgIAJBAUoEQCACQX9qIQIgASkDACELIAUpAwAhCSAEKQMAIQwgAykDACEKIAEpAyAhDQwBCwsLOQEBfyMDIQIjA0GwAWokAyACEDIgAiABEDMgAkHwAGoiAUHADBALIAAgAUGANCkDACACECMgAiQDCycBAX8jAyEBIwNBQGskAyABQcAMEAsgACABEB4gAEEBNgI4IAEkAwvaAQEEfiAAIAApAwgiA0E6IAFrrSIEhkL//////////wODIAApAwAgAa0iAoeENwMAIAAgACkDECIFIASGQv//////////A4MgAyACh4Q3AwggACAAKQMYIgMgBIZC//////////8DgyAFIAKHhDcDECAAIAApAyAiBSAEhkL//////////wODIAMgAoeENwMYIAAgACkDKCIDIASGQv//////////A4MgBSACh4Q3AyAgACAAKQMwIgUgBIZC//////////8DgyADIAKHhDcDKCAAIAUgAoc3AzALRQEDfyMDIQIjA0GAAWokAyACQUBrIgMgASABQUBrIgQQDCADIAMQMCACIAMgBBAMIABBQGsgAyABEAwgACACEBEgAiQDC7QCAQl/IwMhAiMDQYAMaiQDIAJBgApqIgkgACABECQgAkGABmoiBSAAQYACaiIGIAFBgAJqIgQQJCACQYACaiIDIAAgBhAUIAIgASAEEBQgAxAaIAIQGiACQYAIaiIIIAMgAhAkIAMgBiAAQYAEaiIHEBQgAiAEIAFBgARqIgoQFCADEBogAhAaIAJBgARqIgQgAyACECQgAyAJEFYgAiAFEFYgCCAIIAMQFCAGIAggAhAUIAQgBCACEBQgBSAFIAMQFCADIAAgBxAUIAIgASAKEBQgAxAaIAIQGiADIAIgAxAkIAUgBSADEBQgAyAHIAoQJCACIAMQViAHIAUgAhAUIAQgBCACEBQgAxA0IAYgBiADEBQgBBAaIAQQNCAAIAkgBBAUIAAQGiAGEBogBxAaIAIkAwsoAQF/IwMhAiMDQUBrJAMgAkHADBALIAAgAkGANCkDACABECMgAiQDC80BAQJ/IwMhAyMDQYABaiQDIANBwAwQCyADIAEoAjhBf2oiAiACQQF2ciICIAJBAnZyIgIgAkEEdnIiAiACQQh2ciICIAJBEHZyIgIgAkEBdkHVqtWqBXFrIgJBs+bMmQNxIAJBAnZBs+bMmQNxaiICIAJBBHZqQY+evPgAcUGBgoQIbEEYdiICENABIAAgAyABEKECIABBASACdCIBNgI4IAFBgICAEEwEQCADJAMPCyADQUBrIgFBwAwQCyAAIAEQHiAAQQE2AjggAyQDC5AIAgV/C34gAEIANwMAIABCADcDCCAAQgA3AxAgAEIANwMYIABCADcDICAAQgA3AyggAEIANwMwIABCADcDOCAAQUBrQgA3AwAgAEIANwNIIABCADcDUCAAQgA3A1ggAEIANwNgIABCADcDaANAIAIpAwAiC0L/////AYMhDCADQQN0IABqIANBA3QgAWoiBSkDACIIQv////8BgyIJIAtCHYciDX4gCEIdhyIPIAx+fCIQQh2GQoCAgID+////A4MgCSAMfiAOfHwiDEL//////////wODNwMAIAIpAwgiC0L/////AYMhCiAFKQMAIghC/////wGDIgkgC0IdhyIRfiAIQh2HIhIgCn58Ig5CHYZCgICAgP7///8DgyADQQFqIgZBA3QgAGoiBykDACANIA9+IBBCHYd8IAxCOod8fCAJIAp+fHwhCiAHIApC//////////8DgzcDACACKQMQIgtC/////wGDIQ0gBSkDACIIQv////8BgyIJIAtCHYciD34gCEIdhyIQIA1+fCIMQh2GQoCAgID+////A4MgA0ECakEDdCAAaiIEKQMAIBEgEn4gDkIdh3wgCkI6h3x8IAkgDX58fCEKIAQgCkL//////////wODNwMAIAIpAxgiC0L/////AYMhDSAFKQMAIghC/////wGDIgkgC0IdhyIRfiAIQh2HIhIgDX58Ig5CHYZCgICAgP7///8DgyADQQNqQQN0IABqIgQpAwAgDyAQfiAMQh2HfCAKQjqHfHwgCSANfnx8IQogBCAKQv//////////A4M3AwAgAikDICILQv////8BgyENIAUpAwAiCEL/////AYMiCSALQh2HIg9+IAhCHYciECANfnwiDEIdhkKAgICA/v///wODIANBBGpBA3QgAGoiBCkDACARIBJ+IA5CHYd8IApCOod8fCAJIA1+fHwhCiAEIApC//////////8DgzcDACACKQMoIgtC/////wGDIQ0gBSkDACIIQv////8BgyIJIAtCHYciEX4gCEIdhyISIA1+fCIOQh2GQoCAgID+////A4MgA0EFakEDdCAAaiIEKQMAIA8gEH4gDEIdh3wgCkI6h3x8IAkgDX58fCEPIAQgD0L//////////wODNwMAIAIpAzAiCEL/////AYMhECAFKQMAIglC/////wGDIgwgCEIdhyILfiAJQh2HIgggEH58IglCHYZCgICAgP7///8DgyADQQZqQQN0IABqIgQpAwAgESASfiAOQh2HfCAPQjqHfHwgDCAQfnx8IQwgBCAMQv//////////A4M3AwAgA0EHakEDdCAAaiAIIAt+IAlCHYd8IAxCOod8NwMAIAZBB0cEQCAGIQMgBykDACEODAELCwtnACAAQgA3AwAgAEIANwMIIABCADcDECAAQgA3AxggAEIANwMgIABCADcDKCAAQgA3AzAgAEIANwM4IABBQGtCADcDACAAQgA3A0ggAEIANwNQIABCADcDWCAAQgA3A2AgAEIANwNoC48BACAAIAEpAwA3AwAgACABKQMINwMIIAAgASkDEDcDECAAIAEpAxg3AxggACABKQMgNwMgIAAgASkDKDcDKCAAIAEpAzBC//////////8DgzcDMCAAIAEpAzBCOoc3AzggAEFAayIAQgA3AwAgAEIANwMIIABCADcDECAAQgA3AxggAEIANwMgIABCADcDKAtlAQV/IwMhASMDQcACaiQDIAEgAEGAAWoiAxAOIAFBgAFqIgIgARAOIAFBgAJqIgQgAhARIAIgAkFAayIFEDAgBSAEEBEgASABIAIQFSADIAAQDiAAIAEQDiAAEA0gAxANIAEkAwsOACAAEFEgAEGAAWoQUQtVAQJ/IAAgAUYEQCAAQYAEaiECIABBgAJq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ICAAQgA3AyggAEIANwMwIABCADcDOCAAQUBrQgA3AwAgAEIANwNIA0AgAikDACILQv////8AgyEIIANBA3QgAGogA0EDdCABaiIFKQMAIglC/////wCDIgogC0IchyINfiAJQhyHIg8gCH58IhBCHIZCgICAgP////8AgyAIIAp+IA58fCIIQv//////////AIM3AwAgAikDCCILQv////8AgyEMIAUpAwAiCUL/////AIMiCiALQhyHIhF+IAlCHIciEiAMfnwiDkIchkKAgICA/////wCDIANBAWoiBkEDdCAAaiIHKQMAIA0gD34gEEIch3wgCEI4h3x8IAogDH58fCEMIAcgDEL//////////wCDNwMAIAIpAxAiC0L/////AIMhDSAFKQMAIglC/////wCDIgogC0IchyIPfiAJQhyHIhAgDX58IghCHIZCgICAgP////8AgyADQQJqQQN0IABqIgQpAwAgESASfiAOQhyHfCAMQjiHfHwgCiANfnx8IQwgBCAMQv//////////AIM3AwAgAikDGCILQv////8AgyENIAUpAwAiCUL/////AIMiCiALQhyHIhF+IAlCHIciEiANfnwiDkIchkKAgICA/////wCDIANBA2pBA3QgAGoiBCkDACAPIBB+IAhCHId8IAxCOId8fCAKIA1+fHwhDyAEIA9C//////////8AgzcDACACKQMgIglC/////wCDIRAgBSkDACIKQv////8AgyIIIAlCHIciC34gCkIchyIJIBB+fCIKQhyGQoCAgID/////AIMgA0EEakEDdCAAaiIEKQMAIBEgEn4gDkIch3wgD0I4h3x8IAggEH58fCEIIAQgCEL//////////wCDNwMAIANBBWpBA3QgAGogCSALfiAKQhyHfCAIQjiHfDcDACAGQQVHBEAgBiEDIAcpAwAhDgwBCwsL/wECBn8BfiMDIQMjA0HwAmokAyADQfABaiEEIANBgAFqIQUgA0FAayEIIANBqAJqIQZBACACayACIAJBAEgbIgcgASgCOGxBgYCAEEgEQCAAIAEgBxCWASAAIAEoAjggB2w2AjgFIAMQ0QEgAyAHEGggAxAKIAhBgA0QCyAFIAMgCBAxIARBwAwQCyAGIARBgDQpAwAiCSAFECMgBkECNgI4IAEoAjhBgICACEoEQCAEQcAMEAsgASAEEB4gAUEBNgI4CyAFIAEgBhAxIARBwAwQCyAAIAQgCSAFECMgAEECNgI4CyACQX9KBEAgAyQDDwsgACAAEDAgABAKIAMkAwuSAQEEfyMDIQMjA0GAA2okAyADIAEgAUGAAWoiBBAYIANBgAFqIgIgBBAOIANBgAJqIgUgASAEEBUgAhA5IAIgASACEBUgBRANIAIQDSAAIAUgAhAYIAIgAxAOIAIQOSACIAIgAxAVIAIQDSACIAIQLSAAIAAgAhAVIABBgAFqIgEgAyADEBUgABANIAEQDSADJAMLYgECfyAAQShqIAAoAgAiAkEFdkEPcUECdGoiAyABQf8BcSADKAIAQQh0cjYCACAAIAJBCGoiATYCACABBEAgAUH/A3EEQA8LBSAAIAAoAgRBAWo2AgQgAEEANgIACyAAEHILqAcBD38jAyEKIwNBsANqJAMgCkGAA2ohBiAKQdACaiEFIApBoAJqIQcgCkHwAWohCCAKQcABaiEEIApBkAFqIQMgCkHgAGohAiAKQTBqIQlBsDUoAgAhD0GAOygCAEUEQCAGIAAgARAWIAUgAEEwaiILIAFBMGoiDRAWIAcgAEHgAGoiDCABQeAAaiIOEBYgCCAAIAsQECAIEA8gBCABIA0QECAEEA8gCCAIIAQQFiAEIAYgBRAQIAggCCAEECEgCBAPIAQgCyAMEBAgBBAPIAMgDSAOEBAgAxAPIAQgBCADEBYgAyAFIAcQECAEIAQgAxAhIAQQDyADIAAgDBAQIAMQDyACIAEgDhAQIAIQDyADIAMgAhAWIAIgBiAHEBAgAiADIAIQISACEA8gAyAGIAYQECAGIAYgAxAQIAYQDyAHIAcgD0EDbCIBEE0gCSAFIAcQECAJEA8gBSAFIAcQISAFEA8gAiACIAEQTSADIAIgBBAWIAcgCCAFEBYgACAHIAMQISACIAIgBhAWIAUgBSAJEBYgCyACIAUQECAGIAYgCBAWIAkgCSAEEBYgDCAJIAYQECAAEA8gCxAPIAwQDyAKJAMPCyAPRSINBEAgChCPAQsgBiAAIAEQFiAFIABBMGoiCyABQTBqIg4QFiAHIABB4ABqIgwgAUHgAGoiEBAWIAggACALEBAgCBAPIAQgASAOEBAgBBAPIAggCCAEEBYgBCAGIAUQECAIIAggBBAhIAgQDyAEIAsgDBAQIAQQDyADIA4gEBAQIAMQDyAEIAQgAxAWIAMgBSAHEBAgBCAEIAMQISAEEA8gAyAAIAwQECADEA8gAiABIBAQECACEA8gAyADIAIQFiACIAYgBxAQIAIgAyACECEgAhAPIA0EQCAJIAcgChAWBSAJIAcgDxBNCyADIAIgCRAhIAMQDyAJIAMgAxAQIAMgAyAJEBAgCSAFIAMQISAJEA8gAyADIAUQECADEA8gDQRAIAIgAiAKEBYFIAIgAiAPEE0LIAUgByAHEBAgByAHIAUQECACIAIgBxAhIAIgAiAGECEgAhAPIAUgAiACEBAgAiACIAUQECACEA8gBSAGIAYQECAGIAYgBRAQIAYgBiAHECEgBhAPIAUgBCACEBYgByAGIAIQFiACIAMgCRAWIAsgAiAHEBAgAyADIAgQFiAAIAMgBRAhIAkgCSAEEBYgBSAIIAYQFiAMIAkgBRAQIAAQDyALEA8gDBAPIAokAwv3DQICfw9+IABCADcDACAAQgA3AwggAEIANwMQIABCADcDGCAAQgA3AyAgAEIANwMoIABCADcDMCAAQgA3AzggAEFAa0IANwMAIABCADcDSEEBIQIDQCACQQN0IAFqKQMAIgZC/////wCDIQogASkDACIFQv////8AgyIIIAZCHIciB34gBUIchyIGIAp+fCIFQhyGQoCAgID/////AIMgBCAJfCAIIAp+fHwhCCAGIAd+IAVCHId8IAhCOId8IQQgAkEDdCAAaiAIQv//////////AIM3AwAgAkEBaiEDIAJBBEkEQCADIgJBA3QgAGopAwAhCQwBCwsgACAENwMoIAEpAxAiBkL/////AIMhByAAIAEpAwgiBUL/////AIMiBCAGQhyHIg9+IAVCHIciDCAHfnwiCEIchkKAgICA/////wCDIAApAxggBCAHfnx8IgdC//////////8AgzcDGCABKQMYIgZC/////wCDIQ4gACABKQMIIgVC/////wCDIgQgBkIchyILfiAFQhyHIgkgDn58IgpCHIZCgICAgP////8AgyAAKQMgIAwgD34gCEIch3wgB0I4h3x8IAQgDn58fCIIQv//////////AIM3AyAgASkDICIGQv////8AgyEMIAAgASkDCCIFQv////8AgyIEIAZCHIciB34gBUIchyIGIAx+fCIFQhyGQoCAgID/////AIMgACkDKCAJIAt+IApCHId8IAhCOId8fCAEIAx+fHwiBEL//////////wCDNwMoIAAgBiAHfiAFQhyHfCAEQjiHfDcDMCABKQMYIgZC/////wCDIQcgACABKQMQIgVC/////wCDIgQgBkIchyILfiAFQhyHIgkgB358IgpCHIZCgICAgP////8AgyAAKQMoIAQgB358fCIIQv//////////AIM3AyggASkDICIGQv////8AgyEMIAAgASkDECIFQv////8AgyIEIAZCHIciB34gBUIchyIGIAx+fCIFQhyGQoCAgID/////AIMgACkDMCAJIAt+IApCHId8IAhCOId8fCAEIAx+fHwiBEL//////////wCDNwMwIAAgBiAHfiAFQhyHfCAEQjiHfDcDOCABKQMgIgZC/////wCDIQcgACABKQMYIgVC/////wCDIgQgBkIchyILfiAFQhyHIgkgB358IgVCHIZCgICAgP////8AgyAAKQM4IAQgB358fCIEQv//////////AIM3AzggACkDIEIBhiEQIAApAyhCAYYhESAAKQMwQgGGIRIgACkDOEIBhiENIAAgACkDAEIBhiIKNwMAIAAgACkDCEIBhiIINwMIIAAgACkDEEIBhiIHNwMQIAAgACkDGEIBhiIGNwMYIAAgEDcDICAAIBE3AyggACASNwMwIAAgDTcDOCAAQUBrIgMgCSALfiAFQhyHfCAEQjiHfEIBhiIPNwMAIABCADcDSCAAIAEpAwAiBEL/////AIMiCyAEQhyHIgl+IgVCHYZCgICAgP7///8AgyAKIAsgC358fCIEQv//////////AIMiDDcDACAAIAggCSAJfiAFQhuHfHwgBEI4h3wiDjcDCCAAIAEpAwgiBEL/////AIMiCiAEQhyHIgh+IgVCHYZCgICAgP7///8AgyAHIAogCn58fCIEQv//////////AIMiCzcDECAAIAYgCCAIfiAFQhuHfHwgBEI4h3wiCTcDGCAAIAEpAxAiBEL/////AIMiByAEQhyHIgZ+IgVCHYZCgICAgP7///8AgyAHIAd+IBB8fCIEQv//////////AIMiCjcDICAAIAYgBn4gBUIbh3wgEXwgBEI4h3wiCDcDKCAAIAEpAxgiBEL/////AIMiByAEQhyHIgZ+IgVCHYZCgICAgP7///8AgyAHIAd+IBJ8fCIEQv//////////AIMiBzcDMCAAIAYgBn4gBUIbh3wgDXwgBEI4h3wiBjcDOCABKQMgIgVC/////wCDIQ0gACAMNwMAIAAgDkL//////////wCDNwMIIAAgCyAOQjiHfCIEQv//////////AIM3AxAgACAJIARCOId8IgRC//////////8AgzcDGCAAIAogBEI4h3wiBEL//////////wCDNwMgIAAgCCAEQjiHfCIEQv//////////AIM3AyggACAHIARCOId8IgRC//////////8AgzcDMCAAIAYgBEI4h3wiBEL//////////wCDNwM4IAMgDyANIA1+fCANIAVCHIciB34iBkIdhkKAgICA/v///wCDfCIFQv//////////AIMgBEI4h3wiBEL//////////wCDNwMAIAAgByAHfiAGQhuHfCAFQjiHfCAEQjiHfDcDSAuqBwEPfyMDIQojA0HABGokAyAKQYAEaiEGIApBwANqIQUgCkGAA2ohByAKQcACaiEIIApBgAJqIQQgCkHAAWohAyAKQYABaiECIApBQGshCUGsNSgCACEPQYA7KAIARQRAIAYgACABEBMgBSAAQUBrIgsgAUFAayINEBMgByAAQYABaiIMIAFBgAFqIg4QEyAIIAAgCxAMIAgQCiAEIAEgDRAMIAQQCiAIIAggBBATIAQgBiAFEAwgCCAIIAQQIiAIEAogBCALIAwQDCAEEAogAyANIA4QDCADEAogBCAEIAMQEyADIAUgBxAMIAQgBCADECIgBBAKIAMgACAMEAwgAxAKIAIgASAOEAwgAhAKIAMgAyACEBMgAiAGIAcQDCACIAMgAhAiIAIQCiADIAYgBhAMIAYgBiADEAwgBhAKIAcgByAPQQNsIgEQPyAJIAUgBxAMIAkQCiAFIAUgBxAiIAUQCiACIAIgARA/IAMgAiAEEBMgByAIIAUQEyAAIAcgAxAiIAIgAiAGEBMgBSAFIAkQEyALIAIgBRAMIAYgBiAIEBMgCSAJIAQQEyAMIAkgBhAMIAAQCiALEAogDBAKIAokAw8LIA9FIg0EQCAKQYAIEEYLIAYgACABEBMgBSAAQUBrIgsgAUFAayIOEBMgByAAQYABaiIMIAFBgAFqIhAQEyAIIAAgCxAMIAgQCiAEIAEgDhAMIAQQCiAIIAggBBATIAQgBiAFEAwgCCAIIAQQIiAIEAogBCALIAwQDCAEEAogAyAOIBAQDCADEAogBCAEIAMQEyADIAUgBxAMIAQgBCADECIgBBAKIAMgACAMEAwgAxAKIAIgASAQEAwgAhAKIAMgAyACEBMgAiAGIAcQDCACIAMgAhAiIAIQCiANBEAgCSAHIAoQEwUgCSAHIA8QPwsgAyACIAkQIiADEAogCSADIAMQDCADIAMgCRAMIAkgBSADECIgCRAKIAMgAyAFEAwgAxAKIA0EQCACIAIgChATBSACIAIgDxA/CyAFIAcgBxAMIAcgByAFEAwgAiACIAcQIiACIAIgBhAiIAIQCiAFIAIgAhAMIAIgAiAFEAwgAhAKIAUgBiAGEAwgBiAGIAUQDCAGIAYgBxAiIAYQCiAFIAQgAhATIAcgBiACEBMgAiADIAkQEyALIAIgBxAMIAMgAyAIEBMgACADIAUQIiAJIAkgBBATIAUgCCAGEBMgDCAJIAUQDCAAEAogCxAKIAwQCiAKJAMLaAICfwF+IwMhAiMDQbABaiQDIAJB8ABqIQMgASgCOKwiBCAEfkKAgIAQVgRAIANBwAwQCyABIAMQHiABQQE2AjgLIAIgARBHIANBwAwQCyAAIANBgDQpAwAgAhAjIABBAjYCOCACJAMLVgECfyMDIQIjA0GwAmokAyACIAEQCyACQUBrIgFBgA0QCyACQYABaiIDIAIgARAxIAJB8AFqIgFBwAwQCyAAIAFBgDQpAwAgAxAjIABBAjYCOCACJAMLxhkCAn8QfiAAQgA3AwAgAEIANwMIIABCADcDECAAQgA3AxggAEIANwMgIABCADcDKCAAQgA3AzAgAEIANwM4IABBQGtCADcDACAAQgA3A0ggAEIANwNQIABCADcDWCAAQgA3A2AgAEIANwNoQQEhAgNAIAJBA3QgAWopAwAiBkL/////AYMhCyABKQMAIgVC/////wGDIgkgBkIdhyIHfiAFQh2HIgYgC358IgVCHYZCgICAgP7///8DgyAEIAp8IAkgC358fCEJIAYgB34gBUIdh3wgCUI6h3whBCACQQN0IABqIAlC//////////8DgzcDACACQQFqIQMgAkEGSQRAIAMiAkEDdCAAaikDACEKDAELCyAAIAQ3AzggASkDECIGQv////8BgyEHIAAgASkDCCIFQv////8BgyIEIAZCHYciDn4gBUIdhyIIIAd+fCIJQh2GQoCAgID+////A4MgACkDGCAEIAd+fHwiB0L//////////wODNwMYIAEpAxgiBkL/////AYMhDSAAIAEpAwgiBUL/////AYMiBCAGQh2HIgx+IAVCHYciCiANfnwiC0IdhkKAgICA/v///wODIAApAyAgCCAOfiAJQh2HfCAHQjqHfHwgBCANfnx8IgdC//////////8DgzcDICABKQMgIgZC/////wGDIQ0gACABKQMIIgVC/////wGDIgQgBkIdhyIOfiAFQh2HIgggDX58IglCHYZCgICAgP7///8DgyAAKQMoIAogDH4gC0Idh3wgB0I6h3x8IAQgDX58fCIHQv//////////A4M3AyggASkDKCIGQv////8BgyENIAAgASkDCCIFQv////8BgyIEIAZCHYciDH4gBUIdhyIKIA1+fCILQh2GQoCAgID+////A4MgACkDMCAIIA5+IAlCHYd8IAdCOod8fCAEIA1+fHwiCUL//////////wODNwMwIAEpAzAiBkL/////AYMhCCAAIAEpAwgiBUL/////AYMiBCAGQh2HIgd+IAVCHYciBiAIfnwiBUIdhkKAgICA/v///wODIAApAzggCiAMfiALQh2HfCAJQjqHfHwgBCAIfnx8IgRC//////////8DgzcDOCAAQUBrIgIgBiAHfiAFQh2HfCAEQjqHfDcDACABKQMYIgZC/////wGDIQcgACABKQMQIgVC/////wGDIgQgBkIdhyIMfiAFQh2HIgogB358IgtCHYZCgICAgP7///8DgyAAKQMoIAQgB358fCIHQv//////////A4M3AyggASkDICIGQv////8BgyENIAAgASkDECIFQv////8BgyIEIAZCHYciDn4gBUIdhyIIIA1+fCIJQh2GQoCAgID+////A4MgACkDMCAKIAx+IAtCHYd8IAdCOod8fCAEIA1+fHwiB0L//////////wODNwMwIAEpAygiBkL/////AYMhDSAAIAEpAxAiBUL/////AYMiBCAGQh2HIgx+IAVCHYciCiANfnwiC0IdhkKAgICA/v///wODIAApAzggCCAOfiAJQh2HfCAHQjqHfHwgBCANfnx8IglC//////////8DgzcDOCABKQMwIgVC/////wGDIQggASkDECIEQv////8BgyIHIAVCHYciBn4gBEIdhyIFIAh+fCIEQh2GQoCAgID+////A4MgAEFAayIDKQMAIAogDH4gC0Idh3wgCUI6h3x8IAcgCH58fCEHIAMgB0L//////////wODNwMAIAAgBSAGfiAEQh2HfCAHQjqHfDcDSCABKQMgIgZC/////wGDIQcgACABKQMYIgVC/////wGDIgQgBkIdhyIOfiAFQh2HIgggB358IgxCHYZCgICAgP7///8DgyAAKQM4IAQgB358fCIHQv//////////A4M3AzggASkDKCIGQv////8BgyENIAEpAxgiBUL/////AYMiBCAGQh2HIgp+IAVCHYciCyANfnwiCUIdhkKAgICA/v///wODIABBQGsiAykDACAIIA5+IAxCHYd8IAdCOod8fCAEIA1+fHwhCCADIAhC//////////8DgzcDACABKQMwIgZC/////wGDIQwgACABKQMYIgVC/////wGDIgQgBkIdhyIHfiAFQh2HIgYgDH58IgVCHYZCgICAgP7///8DgyAAKQNIIAogC34gCUIdh3wgCEI6h3x8IAQgDH58fCIEQv//////////A4M3A0ggACAGIAd+IAVCHYd8IARCOod8NwNQIAEpAygiBkL/////AYMhByAAIAEpAyAiBUL/////AYMiBCAGQh2HIgx+IAVCHYciCiAHfnwiC0IdhkKAgICA/v///wODIAApA0ggBCAHfnx8IglC//////////8DgzcDSCABKQMwIgZC/////wGDIQggACABKQMgIgVC/////wGDIgQgBkIdhyIHfiAFQh2HIgYgCH58IgVCHYZCgICAgP7///8DgyAAKQNQIAogDH4gC0Idh3wgCUI6h3x8IAQgCH58fCIEQv//////////A4M3A1AgACAGIAd+IAVCHYd8IARCOod8NwNYIAEpAzAiBkL/////AYMhByAAIAEpAygiBUL/////AYMiBCAGQh2HIhN+IAVCHYciDSAHfnwiDkIdhkKAgICA/v///wODIAApA1ggBCAHfnx8IghC//////////8DgzcDWCAAKQMwQgGGIQ8gACkDOEIBhiEQIAIpAwBCAYYhESAAKQNIQgGGIRIgACkDUEIBhiEFIAApA1hCAYYhBCAAIAApAwBCAYYiDDcDACAAIAApAwhCAYYiCjcDCCAAIAApAxBCAYYiCzcDECAAIAApAxhCAYYiCTcDGCAAIAApAyBCAYYiBzcDICAAIAApAyhCAYYiBjcDKCAAIA83AzAgACAQNwM4IAIgETcDACAAIBI3A0ggACAFNwNQIAAgBDcDWCAAIA0gE34gDkIdh3wgCEI6h3xCAYY3A2AgAEIANwNoIAAgASkDACIEQv////8BgyIOIARCHYciCH4iBUIehkKAgICA/P///wODIAwgDiAOfnx8IgRC//////////8DgzcDACAAIAogCCAIfiAFQhyHfHwgBEI6h3w3AwggACABKQMIIgRC/////wGDIgwgBEIdhyIKfiIFQh6GQoCAgID8////A4MgCyAMIAx+fHwiBEL//////////wODNwMQIAAgCSAKIAp+IAVCHId8fCAEQjqHfDcDGCAAIAEpAxAiBEL/////AYMiCyAEQh2HIgl+IgVCHoZCgICAgPz///8DgyAHIAsgC358fCIEQv//////////A4M3AyAgACAGIAkgCX4gBUIch3x8IARCOod8NwMoIAAgASkDGCIEQv////8BgyIHIARCHYciBn4iBUIehkKAgICA/P///wODIAcgB34gD3x8IgRC//////////8DgyIINwMwIAAgBiAGfiAFQhyHfCAQfCAEQjqHfCIMNwM4IAIgASkDICIEQv////8BgyIHIARCHYciBn4iBUIehkKAgICA/P///wODIAcgB34gEXx8IgRC//////////8DgyIKNwMAIAAgBiAGfiAFQhyHfCASfCAEQjqHfCILNwNIIAAgASkDKCIEQv////8BgyIHIARCHYciBn4iBUIehkKAgICA/P///wODIAApA1AgByAHfnx8IgRC//////////8DgyIJNwNQIAAgACkDWCAGIAZ+IAVCHId8fCAEQjqHfCIHNwNYIAEpAzAiBEL/////AYMiBiAEQh2HIgV+IgRCHoZCgICAgPz///8DgyAAKQNgIAYgBn58fCIGQjqHIAApA2ggBSAFfiAEQhyHfHx8IQUgACAAKQMAIgRC//////////8DgzcDACAAIAApAwggBEI6h3wiBEL//////////wODNwMIIAAgACkDECAEQjqHfCIEQv//////////A4M3AxAgACAAKQMYIARCOod8IgRC//////////8DgzcDGCAAIAApAyAgBEI6h3wiBEL//////////wODNwMgIAAgACkDKCAEQjqHfCIEQv//////////A4M3AyggACAIIARCOod8IgRC//////////8DgzcDMCAAIAwgBEI6h3wiBEL//////////wODNwM4IAIgCiAEQjqHfCIEQv//////////A4M3AwAgACALIARCOod8IgRC//////////8DgzcDSCAAIAkgBEI6h3wiBEL//////////wODNwNQIAAgByAEQjqHfCIEQv//////////A4M3A1ggACAGQv//////////A4MgBEI6h3wiBEL//////////wODNwNgIAAgBSAEQjqHfDcDaAvqAgEGfyMDIQUjA0HABmokAyACEAogBSACQQMQlgEgBRAKIAVBOGoiAyABRwRAIAMgARAmIANBgAJqIAFBgAJqECYgA0GABGogAUGABGoQJgsgBRBpIgRBAkoEQCABQYACaiEHIAFBgARqIQggBEF+aiEEA0AgAyADEKIBAkACQAJAIARBOm0iBkEDdCAFaikDAEIBIAQgBkE6bGuthoNCAFIgBEE6bSIGQQN0IAJqKQMAQgEgBCAGQTpsa62Gg0IAUmtBf2sOAwECAAILIAMgARAuDAELIAEgARBQIAcgBxBfIAggCBBQIAMgARAuIAEgARBQIAcgBxBfIAggCBBQCyAEQX9qIQYgBEEBSgRAIAYhBAwBCwsLIAAgA0YEQCAAEDUgAEGAAmoQNSAAQYAEahA1BSAAIAMQJiAAQYACaiIBIANBgAJqECYgAEGABGoiAiADQYAEahAmIAAQNSABEDUgAhA1CyAFJAMLWQEDfyMDIQIjA0GAAmokAyACQYABaiIDIAEQPCACIAMgARAYIAAgAhCYASAAQYACaiIEIAIQmAEgAEGABGoiACACEJgBIAQgBCABEGogACAAIAMQaiACJAMLmAIBBH8gACACaiEEIAFB/wFxIQMgAkHDAE4EQANAIABBA3EEQCAAIAM6AAAgAEEBaiEADAELCyADQQh0IANyIANBEHRyIANBGHRyIQEgBEF8cSIFQUBqIQYDQCAAIAZMBEAgACABNgIAIAAgATYCBCAAIAE2AgggACABNgIMIAAgATYCECAAIAE2AhQgACABNgIYIAAgATYCHCAAIAE2AiAgACABNgIkIAAgATYCKCAAIAE2AiwgACABNgIwIAAgATYCNCAAIAE2AjggACABNgI8IABBQGshAAwBCwsDQCAAIAVIBEAgACABNgIAIABBBGohAAwBCwsLA0AgACAESARAIAAgAzoAACAAQQFqIQAMAQsLIAQgAmsLpQ0BCX8gAEUEQA8LQZQ7KAIAIQQgAEF4aiIDIABBfGooAgAiAkF4cSIAaiEFIAJBAXEEfyADBQJ/IAMoAgAhASACQQNxRQRADwsgAyABayIDIARJBEAPCyAAIAFqIQAgA0GYOygCAEYEQCADIAUoAgQiAUEDcUEDRw0BGkGMOyAANgIAIAUgAUF+cTYCBCADIABBAXI2AgQgACADaiAANgIADwsgAUEDdiEEIAFBgAJJBEAgAygCCCIBIAMoAgwiAkYEQEGEO0GEOygCAEEBIAR0QX9zcTYCAAUgASACNgIMIAIgATYCCAsgAwwBCyADKAIYIQcgAyADKAIMIgFGBEACQCADQRBqIgJBBGoiBCgCACIBBEAgBCECBSACKAIAIgFFBEBBACEBDAILCwNAAkAgAUEUaiIEKAIAIgZFBEAgAUEQaiIEKAIAIgZFDQELIAQhAiAGIQEMAQsLIAJBADYCAAsFIAMoAggiAiABNgIMIAEgAjYCCAsgBwR/IAMgAygCHCICQQJ0QbQ9aiIEKAIARgRAIAQgATYCACABRQRAQYg7QYg7KAIAQQEgAnRBf3NxNgIAIAMMAwsFIAdBEGoiAiAHQRRqIAMgAigCAEYbIAE2AgAgAyABRQ0CGgsgASAHNgIYIAMoAhAiAgRAIAEgAjYCECACIAE2AhgLIAMoAhQiAgRAIAEgAjYCFCACIAE2AhgLIAMFIAMLCwsiByAFTwRADwsgBSgCBCIIQQFxRQRADwsgCEECcQRAIAUgCEF+cTYCBCADIABBAXI2AgQgACAHaiAANgIAIAAhAgUgBUGcOygCAEYEQEGQOyAAQZA7KAIAaiIANgIAQZw7IAM2AgAgAyAAQQFyNgIEQZg7KAIAIANHBEAPC0GYO0EANgIAQYw7QQA2AgAPC0GYOygCACAFRgRAQYw7IABBjDsoAgBqIgA2AgBBmDsgBzYCACADIABBAXI2AgQgACAHaiAANgIADwsgCEEDdiEEIAhBgAJJBEAgBSgCCCIBIAUoAgwiAkYEQEGEO0GEOygCAEEBIAR0QX9zcTYCAAUgASACNgIMIAIgATYCCAsFAkAgBSgCGCEJIAUoAgwiASAFRgRAAkAgBUEQaiICQQRqIgQoAgAiAQRAIAQhAgUgAigCACIBRQRAQQAhAQwCCwsDQAJAIAFBFGoiBCgCACIGRQRAIAFBEGoiBCgCACIGRQ0BCyAEIQIgBiEBDAELCyACQQA2AgALBSAFKAIIIgIgATYCDCABIAI2AggLIAkEQCAFKAIcIgJBAnRBtD1qIgQoAgAgBUYEQCAEIAE2AgAgAUUEQEGIO0GIOygCAEEBIAJ0QX9zcTYCAAwDCwUgCUEQaiICIAlBFGogAigCACAFRhsgATYCACABRQ0CCyABIAk2AhggBSgCECICBEAgASACNgIQIAIgATYCGAsgBSgCFCICBEAgASACNgIUIAIgATYCGAsLCwsgAyAAIAhBeHFqIgJBAXI2AgQgAiAHaiACNgIAIANBmDsoAgBGBEBBjDsgAjYCAA8LCyACQQN2IQEgAkGAAkkEQCABQQN0Qaw7aiEAQYQ7KAIAIgJBASABdCIBcQR/IABBCGoiAigCAAVBhDsgASACcjYCACAAQQhqIQIgAAshASACIAM2AgAgASADNgIMIAMgATYCCCADIAA2AgwPCyACQQh2IgAEfyACQf///wdLBH9BHwUgACAAQYD+P2pBEHZBCHEiAXQiBEGA4B9qQRB2QQRxIQBBDiAAIAFyIAQgAHQiAEGAgA9qQRB2QQJxIgFyayAAIAF0QQ92aiIAQQF0IAIgAEEHanZBAXFyCwVBAAsiAUECdEG0PWohACADIAE2AhwgA0EANgIUIANBADYCEEGIOygCACIEQQEgAXQiBnEEQAJAIAIgACgCACIAKAIEQXhxRgRAIAAhAQUCQCACQQBBGSABQQF2ayABQR9GG3QhBANAIABBEGogBEEfdkECdGoiBigCACIBBEAgBEEBdCEEIAIgASgCBEF4cUYNAiABIQAMAQsLIAYgAzYCACADIAA2AhggAyADNgIMIAMgAzYCCAwCCwsgASgCCCIAIAM2AgwgASADNgIIIAMgADYCCCADIAE2AgwgA0EANgIYCwVBiDsgBCAGcjYCACAAIAM2AgAgAyAANgIYIAMgAzYCDCADIAM2AggLQaQ7QaQ7KAIAQX9qIgA2AgAgAARADwtBzD4hAANAIAAoAgAiA0EIaiEAIAMNAAtBpDtBfzYCAAt1ACAAQgA3AgAgAEIANwIIIABCADcCECAAQgA3AhggAEIANwIgIABCADcCKCAAQgA3AjAgAEIANwI4IABBQGtCADcCACAAQgA3AkggAEIANwJQIABCADcCWCAAQgA3AmAgAEIANwJoIABCADcCcCAAQgA3AngLngICBn8BfiMDIQMjA0GQAmokAyADQbABaiEEIANB4ABqIQUgA0EwaiEIIANB2AFqIQZBACACayACIAJBAEgbIgcgASgCKGxBgYCACEgEQCAAIAEgBxCPAiAAIAEoAiggB2w2AigFIANCADcDACADQgA3AwggA0IANwMQIANCADcDGCADQgA3AyAgAyAHEJMBIAMQDyAIQbAQEBIgBSADIAgQPiAEQYAQEBIgBiAEQYg0KQMAIgkgBRAlIAZBAjYCKCABKAIoQYCAgARKBEAgBEGAEBASIAEgBBApIAFBATYCKAsgBSABIAYQPiAEQYAQEBIgACAEIAkgBRAlIABBAjYCKAsgAkF/SgRAIAMkAw8LIAAgABBdIAAQDyADJAMLKQECfyMDIQEjA0EwaiQDIAFBgBAQEiAAIAEQKSAAEMQBIQIgASQDIAILDgAgABDRASAAQQE2AjgLIgEBfyAAIAEQDiAAQYABaiICIAFBgAFqEC0gABANIAIQDQsNACAAECsgAEFAaxArC1IBA38QByEDIAAjAigCACICaiIBIAJIIABBAEpxIAFBAEhyBEAgARAEGkEMEANBfw8LIAEgA0oEQCABEAVFBEBBDBADQX8PCwsjAiABNgIAIAILxgMBA38gAkGAwABOBEAgACABIAIQBhogAA8LIAAhBCAAIAJqIQMgAEEDcSABQQNxRgRAA0AgAEEDcQRAIAJFBEAgBA8LIAAgASwAADoAACAAQQFqIQAgAUEBaiEBIAJBAWshAgwBCwsgA0F8cSICQUBqIQUDQCAAIAVMBEAgACABKAIANgIAIAAgASgCBDYCBCAAIAEoAgg2AgggACABKAIMNgIMIAAgASgCEDYCECAAIAEoAhQ2AhQgACABKAIYNgIYIAAgASgCHDYCHCAAIAEoAiA2AiAgACABKAIkNgIkIAAgASgCKDYCKCAAIAEoAiw2AiwgACABKAIwNgIwIAAgASgCNDYCNCAAIAEoAjg2AjggACABKAI8NgI8IABBQGshACABQUBrIQEMAQsLA0AgACACSARAIAAgASgCADYCACAAQQRqIQAgAUEEaiEBDAELCwUgA0EEayECA0AgACACSARAIAAgASwAADoAACAAIAEsAAE6AAEgACABLAACOgACIAAgASwAAzoAAyAAQQRqIQAgAUEEaiEBDAELCwsDQCAAIANIBEAgACABLAAAOgAAIABBAWohACABQQFqIQEMAQsLIAQLiwEBA38gAUUEQA8LIAAoAgAhAgJAAkAgASgCACIDQQBKBEACQEEAIQMDQCACIANqIgQgACgCBCICTg0BIAAoAgggBGogAyABKAIIaiwAADoAACAAKAIAIQIgA0EBaiIDIAEoAgAiBEgNAAsgBCEBDAILBSADIQEMAQsMAQsgASACaiECCyAAIAI2AgALaAICfwF+IwMhAiMDQYABaiQDIAJB0ABqIQMgASgCKKwiBCAEfkKAgIAIVgRAIANBgBAQEiABIAMQKSABQQE2AigLIAIgARBDIANBgBAQEiAAIANBiDQpAwAgAhAlIABBAjYCKCACJAMLWgEDfyMDIQIjA0GAAmokAyABEA0gAUGAAWoiAxANIAJBgAFqIgQgASADEBUgBCAEEC0gAiAEIAMQFSAAQYABaiIDIAQgARAVIAAgAhAOIAAQDSADEA0gAiQDCxgAIAAgASACED8gAEFAayABQUBrIAIQPwsNACAAEE8gAEFAaxBPCyQBAX8gABArIABBQGsiARArIAAQOwRAIAEQOwRAQQEPCwtBAAv/AQEIfyMDIQMjA0GABmokAyADQYACaiIHIABBgAFqIgYQDiADQYAFaiIEIAYQPCADQYAEaiIFIAcgAEGAAmoiARAYIANBgANqIgIgARA8IAEgBCAEEBUgARANIAEgASABEBUgASABIAEQFSABEA0gAiACQaw1KAIAQQNsEFcgAhA5IAIQDSADQYABaiIIIAIgARAYIAMgBCACEBUgAxANIAEgASAFEBggBSACIAIQFSACIAIgBRAVIAIQDSAEIAQgAhA6IAQQDSADIAMgBBAYIAYgAyAIEBUgBSAAIAcQGCAEEA0gACAEIAUQGCAAIAAgABAVIAAQDSAGEA0gAyQDC4MBAgJ/AX4gAKchAiAAQv////8PVgRAA0AgAUF/aiIBIAAgAEIKgCIEQgp+fadB/wFxQTByOgAAIABC/////58BVgRAIAQhAAwBCwsgBKchAgsgAgRAA0AgAUF/aiIBIAIgAkEKbiIDQQpsa0EwcjoAACACQQpPBEAgAyECDAELCwsgAQu0MwEMfyMDIQojA0EQaiQDIABB9QFJBEBBhDsoAgAiBUEQIABBC2pBeHEgAEELSRsiAkEDdiIAdiIBQQNxBEAgAUEBcUEBcyAAaiICQQN0Qaw7aiIAKAIIIgNBCGoiBCgCACEBIAAgAUYEQEGEO0EBIAJ0QX9zIAVxNgIABSABIAA2AgwgACABNgIICyADIAJBA3QiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBCAKJAMgBA8LIAJBjDsoAgAiCUsEfyABBEBBAiAAdCIDQQAgA2tyIAEgAHRxIgBBACAAa3FBf2oiAEEMdkEQcSIBIAAgAXYiAEEFdkEIcSIBciAAIAF2IgBBAnZBBHEiAXIgACABdiIAQQF2QQJxIgFyIAAgAXYiAEEBdkEBcSIBciAAIAF2aiIEQQN0Qaw7aiIAKAIIIgFBCGoiBigCACEDIAAgA0YEQEGEO0EBIAR0QX9zIAVxIgA2AgAFIAMgADYCDCAAIAM2AgggBSEACyABIAJBA3I2AgQgASACaiIFIARBA3QiAyACayIEQQFyNgIEIAEgA2ogBDYCACAJBEBBmDsoAgAhASAJQQN2IgJBA3RBrDtqIQNBASACdCICIABxBH8gA0EIaiICKAIABUGEOyAAIAJyNgIAIANBCGohAiADCyEAIAIgATYCACAAIAE2AgwgASAANgIIIAEgAzYCDAtBjDsgBDYCAEGYOyAFNgIAIAokAyAGDwtBiDsoAgAiCwR/QQAgC2sgC3FBf2oiAEEMdkEQcSIBIAAgAXYiAEEFdkEIcSIBciAAIAF2IgBBAnZBBHEiAXIgACABdiIAQQF2QQJxIgFyIAAgAXYiAEEBdkEBcSIBciAAIAF2akECdEG0PWooAgAiBCEAIAQoAgRBeHEgAmshCANAAkAgACgCECIBBEAgASEABSAAKAIUIgBFDQELIAAgBCAAKAIEQXhxIAJrIgEgCEkiAxshBCABIAggAxshCAwBCwsgAiAEaiIMIARLBH8gBCgCGCEHIAQgBCgCDCIARgRAAkAgBEEUaiIBKAIAIgBFBEAgBEEQaiIBKAIAIgBFBEBBACEADAILCwNAAkAgAEEUaiIDKAIAIgZFBEAgAEEQaiIDKAIAIgZFDQELIAMhASAGIQAMAQsLIAFBADYCAAsFIAQoAggiASAANgIMIAAgATYCCAsgBwRAAkAgBCAEKAIcIgFBAnRBtD1qIgMoAgBGBEAgAyAANgIAIABFBEBBiDtBASABdEF/cyALcTYCAAwCCwUgB0EQaiAHQRRqIAQgBygCEEYbIAA2AgAgAEUNAQsgACAHNgIYIAQoAhAiAQRAIAAgATYCECABIAA2AhgLIAQoAhQiAQRAIAAgATYCFCABIAA2AhgLCwsgCEEQSQRAIAQgAiAIaiIAQQNyNgIEIAAgBGoiACAAKAIEQQFyNgIEBSAEIAJBA3I2AgQgDCAIQQFyNgIEIAggDGogCDYCACAJBEBBmDsoAgAhACAJQQN2IgJBA3RBrDtqIQFBASACdCICIAVxBH8gAUEIaiICKAIABUGEOyACIAVyNgIAIAFBCGohAiABCyEDIAIgADYCACADIAA2AgwgACADNgIIIAAgATYCDAtBjDsgCDYCAEGYOyAMNgIACyAKJAMgBEEIag8FIAILBSACCwUgAgshAAUgAEG/f0sEQEF/IQAFAkAgAEELaiIBQXhxIQBBiDsoAgAiBQRAQQAgAGshBAJAAkAgAUEIdiIBBH8gAEH///8HSwR/QR8FIAEgAUGA/j9qQRB2QQhxIgJ0IgZBgOAfakEQdkEEcSEBQQ4gBiABdCIGQYCAD2pBEHZBAnEiCCABIAJycmsgBiAIdEEPdmoiAUEBdCAAIAFBB2p2QQFxcgsFQQALIgdBAnRBtD1qKAIAIgEEf0EAIQIgAEEAQRkgB0EBdmsgB0EfRht0IQYDfyABKAIEQXhxIABrIgggBEkEQCAIBH8gCCEEIAEFQQAhBCABIQIMBAshAgsgAyABKAIUIgMgA0UgAyABQRBqIAZBH3ZBAnRqKAIAIgFGchshAyAGQQF0IQYgAQ0AIAILBUEACyIBIANyBH8gAwUgBUECIAd0IgFBACABa3JxIgJFDQRBACEBIAJBACACa3FBf2oiAkEMdkEQcSIDIAIgA3YiAkEFdkEIcSIDciACIAN2IgJBAnZBBHEiA3IgAiADdiICQQF2QQJxIgNyIAIgA3YiAkEBdkEBcSIDciACIAN2akECdEG0PWooAgALIgINACABIQMMAQsgASEDIAQhAQN/IAIoAgRBeHEgAGsiCCABSSEGIAggASAGGyEBIAIgAyAGGyEDIAIoAhAiBEUEQCACKAIUIQQLIAQEfyAEIQIMAQUgAQsLIQQLIAMEQCAEQYw7KAIAIABrSQRAIAAgA2oiByADSwRAIAMoAhghCSADIAMoAgwiAUYEQAJAIANBFGoiAigCACIBRQRAIANBEGoiAigCACIBRQRAQQAhAQwCCwsDQAJAIAFBFGoiBigCACIIRQRAIAFBEGoiBigCACIIRQ0BCyAGIQIgCCEBDAELCyACQQA2AgALBSADKAIIIgIgATYCDCABIAI2AggLIAkEQAJAIAMgAygCHCICQQJ0QbQ9aiIGKAIARgRAIAYgATYCACABRQRAQYg7IAVBASACdEF/c3EiATYCAAwCCwUgCUEQaiAJQRRqIAMgCSgCEEYbIAE2AgAgAUUEQCAFIQEMAgsLIAEgCTYCGCADKAIQIgIEQCABIAI2AhAgAiABNgIYCyADKAIUIgIEQCABIAI2AhQgAiABNgIYCyAFIQELBSAFIQELIARBEEkEQCADIAAgBGoiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBAUCQCADIABBA3I2AgQgByAEQQFyNgIEIAQgB2ogBDYCACAEQQN2IQIgBEGAAkkEQCACQQN0Qaw7aiEAQYQ7KAIAIgFBASACdCICcQR/IABBCGoiAigCAAVBhDsgASACcjYCACAAQQhqIQIgAAshASACIAc2AgAgASAHNgIMIAcgATYCCCAHIAA2AgwMAQsgBEEIdiIABH8gBEH///8HSwR/QR8FIAAgAEGA/j9qQRB2QQhxIgJ0IgZBgOAfakEQdkEEcSEAQQ4gBiAAdCIGQYCAD2pBEHZBAnEiBSAAIAJycmsgBiAFdEEPdmoiAEEBdCAEIABBB2p2QQFxcgsFQQALIgJBAnRBtD1qIQAgByACNgIcIAdBADYCFCAHQQA2AhBBASACdCIGIAFxRQRAQYg7IAEgBnI2AgAgACAHNgIAIAcgADYCGCAHIAc2AgwgByAHNgIIDAELIAQgACgCACIAKAIEQXhxRgRAIAAhAQUCQCAEQQBBGSACQQF2ayACQR9GG3QhAgNAIABBEGogAkEfdkECdGoiBigCACIBBEAgAkEBdCECIAQgASgCBEF4cUYNAiABIQAMAQsLIAYgBzYCACAHIAA2AhggByAHNgIMIAcgBzYCCAwCCwsgASgCCCIAIAc2AgwgASAHNgIIIAcgADYCCCAHIAE2AgwgB0EANgIYCwsgCiQDIANBCGoPCwsLCwsLCwJAAkBBjDsoAgAiAiAATwRAQZg7KAIAIQEgAiAAayIDQQ9LBEBBmDsgACABaiIENgIAQYw7IAM2AgAgBCADQQFyNgIEIAEgAmogAzYCACABIABBA3I2AgQFQYw7QQA2AgBBmDtBADYCACABIAJBA3I2AgQgASACaiIAIAAoAgRBAXI2AgQLDAELAkBBkDsoAgAiASAASwRADAELIABBL2oiBUHcPigCAAR/QeQ+KAIABUHkPkGAIDYCAEHgPkGAIDYCAEHoPkF/NgIAQew+QX82AgBB8D5BADYCAEHAPkEANgIAQdw+IApBcHFB2KrVqgVzNgIAQYAgCyICaiIDQQAgAmsiCHEiBiAATQRADAMLQbw+KAIAIgIEQCAGQbQ+KAIAIgRqIgcgBE0gByACS3IEQAwECwsgAEEwaiEHAkACQEHAPigCAEEEcQRAQQAhAgUCQAJAAkBBnDsoAgAiAkUNAEHEPiEEA0ACQCAEKAIAIgkgAk0EQCAJIAQoAgRqIAJLDQELIAQoAggiBA0BDAILCyAIIAMgAWtxIgJB/////wdJBEAgAhBSIgEgBCgCACAEKAIEakYEQCABQX9HDQYFDAMLBUEAIQILDAILQQAQUiIBQX9GBH9BAAVBtD4oAgAiBCAGIAFB4D4oAgAiAkF/aiIDakEAIAJrcSABa0EAIAEgA3EbaiICaiEDIAJB/////wdJIAIgAEtxBH9BvD4oAgAiCARAIAMgBE0gAyAIS3IEQEEAIQIMBQsLIAEgAhBSIgNGDQUgAyEBDAIFQQALCyECDAELIAFBf0cgAkH/////B0lxIAcgAktxRQRAIAFBf0YEQEEAIQIMAgUMBAsAC0HkPigCACIDIAUgAmtqQQAgA2txIgNB/////wdPDQJBACACayEEIAMQUkF/RgR/IAQQUhpBAAUgAiADaiECDAMLIQILQcA+QcA+KAIAQQRyNgIACyAGQf////8HSQRAIAYQUiEBQQAQUiIDIAFrIgYgAEEoakshBCAGIAIgBBshAiAEQQFzIAFBf0ZyIAFBf0cgA0F/R3EgASADSXFBAXNyRQ0BCwwBC0G0PiACQbQ+KAIAaiIDNgIAIANBuD4oAgBLBEBBuD4gAzYCAAtBnDsoAgAiAwRAAkBBxD4hBAJAAkADQCABIAQoAgAiBiAEKAIEIgVqRg0BIAQoAggiBA0ACwwBCyAEKAIMQQhxRQRAIAYgA00gASADS3EEQCAEIAIgBWo2AgQgA0EAIANBCGoiAWtBB3FBACABQQdxGyIEaiEBIAJBkDsoAgBqIgYgBGshAkGcOyABNgIAQZA7IAI2AgAgASACQQFyNgIEIAMgBmpBKDYCBEGgO0HsPigCADYCAAwDCwsLIAFBlDsoAgBJBEBBlDsgATYCAAsgASACaiEGQcQ+IQQCQAJAA0AgBiAEKAIARg0BIAQoAggiBA0ACwwBCyAEKAIMQQhxRQRAIAQgATYCACAEIAIgBCgCBGo2AgQgACABQQAgAUEIaiICa0EHcUEAIAJBB3EbaiIHaiEFIAZBACAGQQhqIgFrQQdxQQAgAUEHcRtqIgIgB2sgAGshBCAHIABBA3I2AgQgAiADRgRAQZA7IARBkDsoAgBqIgA2AgBBnDsgBTYCACAFIABBAXI2AgQFAkAgAkGYOygCAEYEQEGMOyAEQYw7KAIAaiIANgIAQZg7IAU2AgAgBSAAQQFyNgIEIAAgBWogADYCAAwBCyACKAIEIglBA3FBAUYEQCAJQQN2IQMgCUGAAkkEQCACKAIIIgAgAigCDCIBRgRAQYQ7QYQ7KAIAQQEgA3RBf3NxNgIABSAAIAE2AgwgASAANgIICwUCQCACKAIYIQggAiACKAIMIgBGBEACQCACQRBqIgFBBGoiAygCACIABEAgAyEBBSACKAIQIgBFBEBBACEADAILCwNAAkAgAEEUaiIGKAIAIgNFBEAgAEEQaiIGKAIAIgNFDQELIAYhASADIQAMAQsLIAFBADYCAAsFIAIoAggiASAANgIMIAAgATYCCAsgCEUNACACIAIoAhwiAUECdEG0PWoiAygCAEYEQAJAIAMgADYCACAADQBBiDtBiDsoAgBBASABdEF/c3E2AgAMAgsFIAhBEGogCEEUaiACIAgoAhBGGyAANgIAIABFDQELIAAgCDYCGCACKAIQIgEEQCAAIAE2AhAgASAANgIYCyACKAIUIgFFDQAgACABNgIUIAEgADYCGAsLIAIgCUF4cSIAaiECIAAgBGohBAsgAiACKAIEQX5xNgIEIAUgBEEBcjYCBCAEIAVqIAQ2AgAgBEEDdiEBIARBgAJJBEAgAUEDdEGsO2ohAEGEOygCACICQQEgAXQiAXEEfyAAQQhqIgIoAgAFQYQ7IAEgAnI2AgAgAEEIaiECIAALIQEgAiAFNgIAIAEgBTYCDCAFIAE2AgggBSAANgIMDAELIARBCHYiAAR/IARB////B0sEf0EfBSAAIABBgP4/akEQdkEIcSIBdCICQYDgH2pBEHZBBHEhAEEOIAIgAHQiAkGAgA9qQRB2QQJxIgMgACABcnJrIAIgA3RBD3ZqIgBBAXQgBCAAQQdqdkEBcXILBUEACyIBQQJ0QbQ9aiEAIAUgATYCHCAFQQA2AhQgBUEANgIQQYg7KAIAIgJBASABdCIDcUUEQEGIOyACIANyNgIAIAAgBTYCACAFIAA2AhggBSAFNgIMIAUgBTYCCAwBCyAEIAAoAgAiACgCBEF4cUYEQCAAIQEFAkAgBEEAQRkgAUEBdmsgAUEfRht0IQIDQCAAQRBqIAJBH3ZBAnRqIgMoAgAiAQRAIAJBAXQhAiAEIAEoAgRBeHFGDQIgASEADAELCyADIAU2AgAgBSAANgIYIAUgBTYCDCAFIAU2AggMAgsLIAEoAggiACAFNgIMIAEgBTYCCCAFIAA2AgggBSABNgIMIAVBADYCGAsLIAokAyAHQQhqDwsLQcQ+IQQDQAJAIAQoAgAiBiADTQRAIAYgBCgCBGoiBiADSw0BCyAEKAIIIQQMAQsLQZw7IAFBACABQQhqIgRrQQdxQQAgBEEHcRsiBGoiBTYCAEGQOyACQVhqIgggBGsiBDYCACAFIARBAXI2AgQgASAIakEoNgIEQaA7Qew+KAIANgIAIANBACAGQVFqIgRBCGoiBWtBB3FBACAFQQdxGyAEaiIEIAQgA0EQakkbIgRBGzYCBCAEQcQ+KQIANwIIIARBzD4pAgA3AhBBxD4gATYCAEHIPiACNgIAQdA+QQA2AgBBzD4gBEEIajYCACAEQRhqIQEDQCABQQRqIgJBBzYCACABQQhqIAZJBEAgAiEBDAELCyADIARHBEAgBCAEKAIEQX5xNgIEIAMgBCADayIGQQFyNgIEIAQgBjYCACAGQQN2IQIgBkGAAkkEQCACQQN0Qaw7aiEBQYQ7KAIAIgRBASACdCICcQR/IAFBCGoiBCgCAAVBhDsgAiAEcjYCACABQQhqIQQgAQshAiAEIAM2AgAgAiADNgIMIAMgAjYCCCADIAE2AgwMAgsgBkEIdiIBBH8gBkH///8HSwR/QR8FIAEgAUGA/j9qQRB2QQhxIgJ0IgRBgOAfakEQdkEEcSEBQQ4gBCABdCIEQYCAD2pBEHZBAnEiBSABIAJycmsgBCAFdEEPdmoiAUEBdCAGIAFBB2p2QQFxcgsFQQALIgJBAnRBtD1qIQEgAyACNgIcIANBADYCFCADQQA2AhBBiDsoAgAiBEEBIAJ0IgVxRQRAQYg7IAQgBXI2AgAgASADNgIAIAMgATYCGCADIAM2AgwgAyADNgIIDAILIAYgASgCACIBKAIEQXhxRgRAIAEhAgUCQCAGQQBBGSACQQF2ayACQR9GG3QhBANAIAFBEGogBEEfdkECdGoiBSgCACICBEAgBEEBdCEEIAYgAigCBEF4cUYNAiACIQEMAQsLIAUgAzYCACADIAE2AhggAyADNgIMIAMgAzYCCAwDCwsgAigCCCIBIAM2AgwgAiADNgIIIAMgATYCCCADIAI2AgwgA0EANgIYCwsFQZQ7KAIAIgNFIAEgA0lyBEBBlDsgATYCAAtBxD4gATYCAEHIPiACNgIAQdA+QQA2AgBBqDtB3D4oAgA2AgBBpDtBfzYCAEG4O0GsOzYCAEG0O0GsOzYCAEHAO0G0OzYCAEG8O0G0OzYCAEHIO0G8OzYCAEHEO0G8OzYCAEHQO0HEOzYCAEHMO0HEOzYCAEHYO0HMOzYCAEHUO0HMOzYCAEHgO0HUOzYCAEHcO0HUOzYCAEHoO0HcOzYCAEHkO0HcOzYCAEHwO0HkOzYCAEHsO0HkOzYCAEH4O0HsOzYCAEH0O0HsOzYCAEGAPEH0OzYCAEH8O0H0OzYCAEGIPEH8OzYCAEGEPEH8OzYCAEGQPEGEPDYCAEGMPEGEPDYCAEGYPEGMPDYCAEGUPEGMPDYCAEGgPEGUPDYCAEGcPEGUPDYCAEGoPEGcPDYCAEGkPEGcPDYCAEGwPEGkPDYCAEGsPEGkPDYCAEG4PEGsPDYCAEG0PEGsPDYCAEHAPEG0PDYCAEG8PEG0PDYCAEHIPEG8PDYCAEHEPEG8PDYCAEHQPEHEPDYCAEHMPEHEPDYCAEHYPEHMPDYCAEHUPEHMPDYCAEHgPEHUPDYCAEHcPEHUPDYCAEHoPEHcPDYCAEHkPEHcPDYCAEHwPEHkPDYCAEHsPEHkPDYCAEH4PEHsPDYCAEH0PEHsPDYCAEGAPUH0PDYCAEH8PEH0PDYCAEGIPUH8PDYCAEGEPUH8PDYCAEGQPUGEPTYCAEGMPUGEPTYCAEGYPUGMPTYCAEGUPUGMPTYCAEGgPUGUPTYCAEGcPUGUPTYCAEGoPUGcPTYCAEGkPUGcPTYCAEGwPUGkPTYCAEGsPUGkPTYCAEGcOyABQQAgAUEIaiIDa0EHcUEAIANBB3EbIgNqIgQ2AgBBkDsgAkFYaiICIANrIgM2AgAgBCADQQFyNgIEIAEgAmpBKDYCBEGgO0HsPigCADYCAAtBkDsoAgAiASAASwRADAILC0G0P0EMNgIADAILQZA7IAEgAGsiAjYCAEGcOyAAQZw7KAIAIgFqIgM2AgAgAyACQQFyNgIEIAEgAEEDcjYCBAsgCiQDIAFBCGoPCyAKJANBAAvNAQECfyMDIQMjA0HgAGokAyADQYAQEBIgAyABKAIoQX9qIgIgAkEBdnIiAiACQQJ2ciICIAJBBHZyIgIgAkEIdnIiAiACQRB2ciICIAJBAXZB1arVqgVxayICQbPmzJkDcSACQQJ2QbPmzJkDcWoiAiACQQR2akGPnrz4AHFBgYKECGxBGHYiAhCUAiAAIAMgARCQAiAAQQEgAnQiATYCKCABQYCAgAhMBEAgAyQDDwsgA0EwaiIBQYAQEBIgACABECkgAEEBNgIoIAMkAwtVAQN/IwMhASMDQbACaiQDIAEQzgEgAUFAayICQYANEAsgAUGAAWoiAyABIAIQMSABQfABaiICQcAMEAsgACACQYA0KQMAIAMQIyAAQQI2AjggASQDCyIBAX8gAEGAAWoiAiABQYABahAOIAAgARAtIAAQDSACEA0LLQAgAigCTBogACABIAIQqgEhAEEBQQAgARshAiAAIAFHBH8gACABbgUgAgsaC+sCAQh/QQghBgNAAkBBACAHIABBgBBqai0AACAGQX9qIgZ2QQFxayIIIAFBBHQgAGooAgBxIAJzIQIgAUEEdCAAaigCBCAIcSADcyEDIAFBBHQgAGooAgggCHEgBHMhBCABQQR0IABqKAIMIAhxIAVzIQUgBkUEQCAHQQFqIgdBEEYNAUEIIQYLIAFBAWoiAUGAAUkNAQsLIABBgxBqIAI6AAAgAEGCEGogAkEIdjoAACAAQYEQaiACQRB2OgAAIABBgBBqIAJBGHY6AAAgAEGHEGogAzoAACAAQYYQaiADQQh2OgAAIABBhRBqIANBEHY6AAAgAEGEEGogA0EYdjoAACAAQYsQaiAEOgAAIABBihBqIARBCHY6AAAgAEGJEGogBEEQdjoAACAAQYgQaiAEQRh2OgAAIABBjxBqIAU6AAAgAEGOEGogBUEIdjoAACAAQY0QaiAFQRB2OgAAIABBjBBqIAVBGHY6AAALVQECfyACQQBMBEAPCyAAKAIAIQMDQCADIAAoAgRIBEAgAyAAKAIIaiABIARqLAAAOgAAIAAgACgCAEEBajYCACADQQFqIQMgBEEBaiIEIAJIDQELCwsRACAAIAEoAgAgASgCCBCDAguYBQEMfyMDIQcjA0GAA2okAyAHQdACaiECIAdBoAJqIQYgB0HwAWohBCAHQZABaiEIIAdB4ABqIQNBgDsoAgBFBEAgAiAAQTBqIgUQVSAGIAUgAEHgAGoiARAWIAQgARBVIAEgAiACEBAgARAPIAEgASABEBAgASABIAEQECABEA8gBCAEQbA1KAIAQQNsEE0gCCAEIAEQFiADIAIgBBAQIAMQDyABIAEgBhAWIAYgBCAEEBAgBCAEIAYQECACIAIgBBAhIAIQDyADIAMgAhAWIAMgAyAIEBAgBiAAIAUQFiACEA8gACACIAYQFiAAIAAgABAQIAAQDyAFIAMQFyAFEA8gByQDDwtBsDUoAgAiC0UiDARAIAcQjwELIAIgABBVIAYgAEEwaiIJEFUgBCAAQeAAaiIKEFUgB0HAAWoiBSAAIAkQFiAFIAUgBRAQIAUQDyAHQTBqIgEgCiAAEBYgASABIAEQECABEA8gDARAIAMgBCAHEBYFIAMgBCALEE0LIAMgAyABECEgCCADIAMQECAIEA8gAyADIAgQECAIIAYgAxAhIAgQDyADIAMgBhAQIAMQDyADIAMgCBAWIAggCCAFEBYgBSAEIAQQECAEIAQgBRAQIAwEQCABIAEgBxAWBSABIAEgCxBNCyABIAEgBBAhIAEgASACECEgARAPIAUgASABEBAgASABIAUQECABEA8gBSACIAIQECACIAIgBRAQIAIgAiAEECEgAhAPIAIgAiABEBYgAyADIAIQECACIAkgChAWIAIgAiACEBAgAhAPIAEgASACEBYgACAIIAEQISACIAIgAhAQIAIQDyAGIAYgBhAQIAYQDyAKIAIgBhAWIAAQDyAJIAMQFyAJEA8gChAPIAckAwuaBQEMfyMDIQcjA0GABGokAyAHQcADaiECIAdBgANqIQYgB0HAAmohBCAHQcABaiEIIAdBgAFqIQNBgDsoAgBFBEAgAiAAQUBrIgUQRSAGIAUgAEGAAWoiARATIAQgARBFIAEgAiACEAwgARAKIAEgASABEAwgASABIAEQDCABEAogBCAEQaw1KAIAQQNsED8gCCAEIAEQEyADIAIgBBAMIAMQCiABIAEgBhATIAYgBCAEEAwgBCAEIAYQDCACIAIgBBAiIAIQCiADIAMgAhATIAMgAyAIEAwgBiAAIAUQEyACEAogACACIAYQEyAAIAAgABAMIAAQCiAFIAMQESAFEAogByQDDwtBrDUoAgAiC0UiDARAIAdBgAgQRgsgAiAAEEUgBiAAQUBrIgkQRSAEIABBgAFqIgoQRSAHQYACaiIFIAAgCRATIAUgBSAFEAwgBRAKIAdBQGsiASAKIAAQEyABIAEgARAMIAEQCiAMBEAgAyAEIAcQEwUgAyAEIAsQPwsgAyADIAEQIiAIIAMgAxAMIAgQCiADIAMgCBAMIAggBiADECIgCBAKIAMgAyAGEAwgAxAKIAMgAyAIEBMgCCAIIAUQEyAFIAQgBBAMIAQgBCAFEAwgDARAIAEgASAHEBMFIAEgASALED8LIAEgASAEECIgASABIAIQIiABEAogBSABIAEQDCABIAEgBRAMIAEQCiAFIAIgAhAMIAIgAiAFEAwgAiACIAQQIiACEAogAiACIAEQEyADIAMgAhAMIAIgCSAKEBMgAiACIAIQDCACEAogASABIAIQEyAAIAggARAiIAIgAiACEAwgAhAKIAYgBiAGEAwgBhAKIAogAiAGEBMgABAKIAkgAxARIAkQCiAKEAogByQDC0cBAn8jAyECIwNBQGskAyACQcAMEAsgACACEB4gAEEBNgI4IAJBwAwQCyABIAIQHiABQQE2AjggACABEKACRSEDIAIkAyADC8gBAQJ+IAAgACkDACIDQv//////////A4M3AwAgACAAKQMIIANCOod8IgJC//////////8DgzcDCCAAIAApAxAgAkI6h3wiAkL//////////wODNwMQIAAgACkDGCACQjqHfCICQv//////////A4M3AxggACAAKQMgIAJCOod8IgJC//////////8DgzcDICAAIAApAyggAkI6h3wiAkL//////////wODNwMoIAAgACkDMCACQjqHfDcDMCADp0EBIAF0QX9qcQvAAQECfiAAIAApAwggACkDACIDQjqHfCICQv//////////A4M3AwggACAAKQMQIAJCOod8IgJC//////////8DgzcDECAAIAApAxggAkI6h3wiAkL//////////wODNwMYIAAgACkDICACQjqHfCICQv//////////A4M3AyAgACAAKQMoIAJCOod8IgJC//////////8DgzcDKCAAIAApAzAgAkI6h3w3AzAgACABrCADQv//////////A4N8NwMAC+ECAgJ/B34gACAAKQMAIgNC//////////8DgyIENwMAIAAgACkDCCADQjqHfCIDQv//////////A4MiBTcDCCAAIAApAxAgA0I6h3wiA0L//////////wODIgY3AxAgACAAKQMYIANCOod8IgNC//////////8DgyIHNwMYIAAgACkDICADQjqHfCIDQv//////////A4MiCDcDICAAIAApAyggA0I6h3wiA0L//////////wODIgk3AyggACAAKQMwIANCOod8IgM3AzAgA0IAUQR/IAlCAFEEfyAIQgBRBH8gB0IAUQR/IAZCAFEEfyAFQgBRBH8gBEIAUQR/QQAPBUEACwVBAQsFQQILBUEDCwVBBAsFQQULBUEGCyICQTpsIQEgAkEDdCAAaikDACIDQgBRBEAgAQ8LIAEhAANAIANCAn8hBCAAQQFqIQAgA0IBfEIDWgRAIAQhAwwBCwsgAAsaACAAIAEgAhAYIABBgAFqIAFBgAFqIAIQGAsOACAAEFggAEGAAWoQWAsYACAAIAEgAhATIABBQGsgAUFAayACEBMLJAEBfyMDIQEjA0FAayQDIAEQXiAAIAEQESAAQUBrEE8gASQDC+cGAQx/IwMhCCMDQfAfaiQDIAAQWSEDIABBgAJqIgoQWSADcQRAIAgkAw8LIAAQhQEgCEHoHGoiBiAAEA4gBkGAAWoiCyAAQYABaiIMEA4gBkGAAmoiCSAKEA4gBhBaIAhB8ABqIgIgABAOIAJBgAFqIgMgDBAOIAJBgAJqIgQgChAOIAJBgANqIgUgAhAOIAJBgARqIgcgAxAOIAJBgAVqIgMgBBAOIAUgBhA9IAJBgAZqIgQgAkGAA2oQDiACQYAHaiIFIAcQDiACQYAIaiIHIAMQDiAEIAYQPSACQYAJaiIDIAJBgAZqEA4gAkGACmoiBCAFEA4gAkGAC2oiBSAHEA4gAyAGED0gAkGADGoiAyACQYAJahAOIAJBgA1qIgcgBBAOIAJBgA5qIgQgBRAOIAMgBhA9IAJBgA9qIgMgAkGADGoQDiACQYAQaiIFIAcQDiACQYARaiIHIAQQDiADIAYQPSACQYASaiIDIAJBgA9qEA4gAkGAE2oiBCAFEA4gAkGAFGoiBSAHEA4gAyAGED0gAkGAFWoiAyACQYASahAOIAJBgBZqIAQQDiACQYAXaiAFEA4gAyAGED0gCEHwGGoiBCABEAsgBCkDAEICgachBSAEQQEQaCAEEAogBCkDAEICgachASAIQbAZaiIDIAQQCyADQQEQaCADEAogBCADIAUQlwEgBiAAIAEQHCALIAwgARAcIAkgCiABEBwgCEHoGWoiByAGEA4gB0GAAWoiBSALEA4gB0GAAmogCRAOIAQQaSINQQNqQQRtIQkgBEEFEGchASANQXpOBEBBACEDA0AgAyAIaiABQfABaiIBOgAAIAQgAUEYdEEYdRB9IAQQCiAEQQQQLCADQQFqIQsgBEEFEGchASADIAlIBEAgCyEDDAELCwsgCUEBaiAIaiABOgAAIAAgAUEYdEEYdUF/akECbSIBQYADbCACahAOIAwgAUGAA2wgAmpBgAFqEA4gCiABQYADbCACakGAAmoQDiANQXlKBEAgCSEBA0AgBiACIAEgCGosAAAQ2AEgABBaIAAQWiAAEFogABBaIAAgBhA9IAFBf2ohAyABQQBKBEAgAyEBDAELCwsgBRANIAUgBRAtIAUQDSAAIAcQPSAFEA0gBSAFEC0gBRANIAAQhQEgCCQDC+UBAQZ/IwMhAiMDQYAIaiQDIAJBgAZqIgUgARBAIAJBgARqIgMgAUGAAmoiBiABQYAEaiIHECQgAxA0IAUgBSADEH8gBRAaIAMgBxBAIAMQNCACQYACaiIEIAEgBhAkIAMgAyAEEH8gAxAaIAQgBhBAIAIgASAHECQgBCAEIAIQfyAEEBogAiAGIAQQJCACEDQgACAFIAEQJCACIAAgAhAUIABBgARqIgEgAyAHECQgARA0IAIgASACEBQgAhAaIAIgAhClAiAAIAUgAhAkIABBgAJqIAMgAhAkIAEgBCACECQgAiQDC1cBAn8gACgCBEECdEEEaiICQQBKBEADQCAAQfwBaiABQQJ0akEANgIAIABBDGogAUECdGpBADYCACABQQFqIgEgAkgNAAsLIABCADcA7AMgAEIANwD0AwvKAwEEfyAAKAIEIQQgAEEoaiAAKAIAIgVBBXZBD3FBAnRqIgIgAigCAEEIdEGAAXI2AgAgACAFQQhqIgI2AgACQAJAIAIEQCACQf8DcSIDRQ0BBSAAIARBAWo2AgQgAEEANgIADAELDAELIAAQciAAKAIAIgJB/wNxIQMLIANBwANHBEADQCAAQShqIAJBBXZBD3FBAnRqIgMgAygCAEEIdDYCACAAIAJBCGoiAjYCAAJAAkAgAgRAIAJB/wNxRQ0BBSAAIAAoAgRBAWo2AgQgAEEANgIADAELDAELIAAQciAAKAIAIQILIAJB/wNxQcADRw0ACwsgACAENgJgIAAgBTYCZCAAEHIgACgC6AJBAEoEQEEAIQIDQCABIAJqIABBCGogAkECdkECdGooAgAgAkEDdEEYcUEYc3Y6AAAgAkEBaiICIAAoAugCSA0ACwsgAEEoakEAQYACEEoaIABBADYCBCAAQQA2AgAgAEHnzKfQBjYCCCAAQYXdntt7NgIMIABB8ua74wM2AhAgAEG66r+qejYCFCAAQf+kuYgFNgIYIABBjNGV2Hk2AhwgAEGrs4/8ATYCICAAQZmag98FNgIkIABBIDYC6AILhgQBF39BECEBIAAoAighBANAIABBKGogAUECdGogAUECdCAAakEMaigCACAEaiABQQJ0IABqQSBqKAIAIgNBCnYgA0ENdCADQRN2cnMgA0EPdCADQRF2cnNqIAFBAnQgAGpBbGooAgAiAkEHdiACQRl0ciACQQ50IAJBEnZyIAJBA3Zzc2o2AgAgAUEBaiIBQcAARwRAIAIhBAwBCwsgACgCCCIMIQIgACgCDCINIQQgACgCJCIOIQkgACgCICIPIQUgACgCHCIQIQYgACgCGCIRIQEgACgCFCISIQcgACgCECITIQMDQCAHIABBKGogCEECdGooAgAgCEECdEHgEGooAgAgCSABQQd0IAFBGXZyIAFBGnQgAUEGdnIgAUEVdCABQQt2cnNzaiABIAZxIAUgAUF/c3FzampqIgdqIQogByACQQp0IAJBFnZyIAJBHnQgAkECdnIgAkETdCACQQ12cnNzIAIgAyAEc3EgAyAEcXNqaiELIAhBAWoiCEHAAEcEQCADIQcCfyABIRcgBiEVIAUhCSACIRYgCyECIAohASAEIQMgFwshBiAVIQUgFiEEDAELCyAAIAsgDGo2AgggACACIA1qNgIMIAAgBCATajYCECAAIAMgEmo2AhQgACAKIBFqNgIYIAAgASAQajYCHCAAIAYgD2o2AiAgACAFIA5qNgIkC30AIABBKGpBAEGAAhBKGiAAQQA2AgQgAEEANgIAIABB58yn0AY2AgggAEGF3Z7bezYCDCAAQfLmu+MDNgIQIABBuuq/qno2AhQgAEH/pLmIBTYCGCAAQYzRldh5NgIcIABBq7OP/AE2AiAgAEGZmoPfBTYCJCAAQSA2AugCC/kBAQN/IwMhBSMDQZAJaiQDIAVBmAZqIgYQcyAAKAIAQQBKBEADQCAGIAcgACgCCGosAAAQQSAHQQFqIgcgACgCAEgNAAsLIAFBAEoEQCAGIAFBGHYQQSAGIAFBEHZB/wFxEEEgBiABQQh2Qf8BcRBBIAYgAUH/AXEQQQsCQCACRQ0AIAIoAgBBAEwNAEEAIQADQCAGIAAgAigCCGosAAAQQSAAQQFqIgAgAigCAEgNAAsLIAYgBRBxIANBADYCACAERQRAIAMgBUEgEGIgBSQDDwsgBEEgSgRAIAMgBEEgaxC5ASADIAVBIBBiBSADIAUgBBBiCyAFJAML/wEBCH8jAyECIwNB8AJqJAMgACAAKAJcIgFBAWo2AlwgASAAQeAAamotAAAhBCABQR5MBEAgAiQDIAQPCyACIgMQcwNAIAAgACgCVCICQQFqIgE2AlQgAyACQRRIBH8gAUECdCAAagUgAEEANgJUQQAhAkEPIQEDf0EAIAEgAUEVRhsiB0ECdCAAaigCACIGIAJBAnQgAGoiCCgCAGsgACgCWGshASABIAZHBEAgACABIAZLNgJYCyAIIAE2AgAgB0EBaiEBIAJBAWoiAkEVRw0AIAALCygCABBBIAVBAWoiBUGAAUcNAAsgAyAAQeAAahBxIABBADYCXCADJAMgBAtzAQN/IwMhASMDQeABaiQDIAFCATcDACABQgA3AwggAUIANwMQIAFCADcDGCABQgA3AyAgAUEwaiICQbAQEBIgAUHgAGoiAyABIAIQPiABQbABaiICQYAQEBIgACACQYg0KQMAIAMQJSAAQQI2AiggASQDCycBAX8jAyEBIwNBMGokAyABQYAQEBIgACABECkgAEEBNgIoIAEkAwtKAQJ/IwMhAiMDQbABaiQDIAJBsBAQEiACQTBqIgMgASACED4gAkGAAWoiAUGAEBASIAAgAUGINCkDACADECUgAEECNgIoIAIkAwvLAQIBfwV+IABCADcDACAAQgA3AwggAEIANwMQIABCADcDGCAAQgA3AyADQCAAIAdCCIYgBkIwh4QiBzcDICAAIAZCCIZCgP7///////8AgyAEQjCHhCIGNwMYIAAgBEIIhkKA/v///////wCDIAVCMIeEIgQ3AxAgACAFQgiGQoD+////////AIMgA0Iwh4QiBTcDCCAAIANCCIZCgP7///////8AgyIDNwMAIAAgAyABIAJqLQAArYQiAzcDACACQQFqIgJBIEcNAAsLmAICAX8FfiABIAEpAwAiA0L//////////wCDIgU3AwAgASABKQMIIANCOId8IgNC//////////8AgyIGNwMIIAEgASkDECADQjiHfCIDQv//////////AIMiBzcDECABIAEpAxggA0I4h3wiBEL//////////wCDIgM3AxggASABKQMgIARCOId8IgQ3AyBBHyEBA0AgACABaiAFPAAAIAZCMIZCgICAgICAwP8AgyAFQgiHhCEFIAdCMIZCgICAgICAwP8AgyAGQgiHhCEGIANCMIZCgICAgICAwP8AgyAHQgiHhCEHIARCMIZCgICAgICAwP8AgyADQgiHhCEDIARCCIchBCABQX9qIQIgAQRAIAIhAQwBCwsLagECfyMDIQMjA0GAAWokAyADIAIQGSADIAMQRSADECsgA0FAayIEIAEQGSAEIAQQmgIgAyAEEGYEQCAAIAEQGSAAQUBrIAIQGSAAQYABahBeBSAAEE8gAEFAaxBeIABBgAFqEE8LIAMkAwvmFwE2fiABIAIQHiACKQMAISQgAikDCCElIAIpAxAhJiACKQMYIScgAikDICEoIAIpAyghKSACKQMwISogASkDCCIJIAEpAxAiDiABKQMYIg0gASkDICIMIAEpAygiBSABKQMwIhKEhISEhEIAUSABKQMAIhVCAVFxBEAgAEIBNwMAIABCADcDCCAAQgA3AxAgAEIANwMYIABCADcDICAAQgA3AyggAEIANwMwDwtCASEPICQhAyAlIQQgJiEKICchECAoIREgKSEUICohIwJAAkADQCADQgFRBH8gBCAKIBAgESAUICOEhISEhEIAUQVBAAtFBEAgFUICgacEfiAVIR4gFiEVIAkhFiATIQkgDiETIA0hISAaIQ4gDCEaIBchDSAFIRcgEiEiIAshDCAIBQN+IA9CAoGnBEAgCyApfCAIICh8IBcgJ3wgGiAmfCATICV8IA8gJHwiD0I6h3wiE0I6h3wiIUI6h3wiF0I6h3wiIkI6h3whHiAPQv//////////A4MhDyAWICp8IB5COod8IRYgE0L//////////wODIRMgIUL//////////wODIRogF0L//////////wODIRcgIkL//////////wODIQggHkL//////////wODIQsLIBVCAYciHiAJQjmGQoCAgICAgICAAoOEIRUgDkI5hkKAgICAgICAgAKDIAlCAYeEIQkgDUI5hkKAgICAgICAgAKDIA5CAYeEIQ4gDEI5hkKAgICAgICAgAKDIA1CAYeEIQ0gBUI5hkKAgICAgICAgAKDIAxCAYeEIQwgEkI5hkKAgICAgICAgAKDIAVCAYeEIQUgEkIBhyESIBNCOYZCgICAgICAgIACgyAPQgGHhCEPIBpCOYZCgICAgICAgIACgyATQgGHhCETIBdCOYZCgICAgICAgIACgyAaQgGHhCEaIAhCOYZCgICAgICAgIACgyAXQgGHhCEXIAtCOYZCgICAgICAgIACgyAIQgGHhCEIIBZCOYZCgICAgICAgIACgyALQgGHhCELIBZCAYchFiAeQgKBp0UNACAVIR4gFiEVIAkhFiATIQkgDiETIA0hISAaIQ4gDCEaIBchDSAFIRcgEiEiIAshDCAICwshEiADQgKBpwR+IAYhBSADIQggByEGIAQhCyAYIQcgCiEYIBAhHyAZIQogESEZIBQhICAcIREgHSEUIBsFA34gBkICgacEQCAdICl8IBwgKHwgGyAnfCAZICZ8IBggJXwgBiAkfCIGQjqHfCIIQjqHfCILQjqHfCIfQjqHfCIgQjqHfCEFIAZC//////////8DgyEGIAcgKnwgBUI6h3whByAIQv//////////A4MhGCALQv//////////A4MhGSAfQv//////////A4MhGyAgQv//////////A4MhHCAFQv//////////A4MhHQsgA0IBhyIFIARCOYZCgICAgICAgIACg4QhAyAKQjmGQoCAgICAgICAAoMgBEIBh4QhBCAQQjmGQoCAgICAgICAAoMgCkIBh4QhCiARQjmGQoCAgICAgICAAoMgEEIBh4QhECAUQjmGQoCAgICAgICAAoMgEUIBh4QhESAjQjmGQoCAgICAgICAAoMgFEIBh4QhFCAjQgGHISMgGEI5hkKAgICAgICAgAKDIAZCAYeEIQYgGUI5hkKAgICAgICAgAKDIBhCAYeEIRggG0I5hkKAgICAgICAgAKDIBlCAYeEIRkgHEI5hkKAgICAgICAgAKDIBtCAYeEIRsgHUI5hkKAgICAgICAgAKDIBxCAYeEIRwgB0I5hkKAgICAgICAgAKDIB1CAYeEIR0gB0IBhyEHIAVCAoGnRQ0AIAYhBSADIQggByEGIAQhCyAYIQcgCiEYIBAhHyAZIQogESEZIBQhICAcIREgHSEUIBsLCyEQAn4CQCAiICNRBH4gFyAgUQR+IBkgGlEEfiAfICFRBH4gEyAYUQR+IAsgFlEEfiAIIB5RDQYgHiEEIAgFIBYhBCALCwUgEyEEIBgLBSAhIQQgHwsFIBohBCAZCwUgFyEEICALBSAiIQQgIwshAyAEIANVDQACfiAIIB59IgNC//////////8DgyE3IAsgFn0gA0I6h3wiA0L//////////wODISwgGCATfSADQjqHfCIDQv//////////A4MhLSAfICF9IANCOod8IgNC//////////8DgyEuIBkgGn0gA0I6h3wiA0L//////////wODIS8gICAXfSADQjqHfCIDQv//////////A4MhMCAjICJ9IANCOod8ISMCfgJAIAYgFVEEfiAMIBRRBH4gESASUQR+IA0gEFEEfiAKIA5RBH4gByAJUQR+IAUgD1ENBiAFIQQgDwUgByEEIAkLBSAKIQQgDgsFIBAhBCANCwUgESEEIBILBSAUIQQgDAsFIAYhBCAVCyEDIAQgA1UNACAFICQgD318IQQgBiAqIBV9fCEFIAcgJSAJfXwhBiAKICYgDn18IQcgECAnIA19fCEKIBEgKCASfXwhECAUICkgDH18DAELIAUgD30hBCAGIBV9IQUgByAJfSEGIAogDn0hByAQIA19IQogESASfSEQIBQgDH0LIREgBEL//////////wODITEgNwshAyAFIBEgECAKIAcgBiAEQjqHfCIGQjqHfCIHQjqHfCIKQjqHfCIQQjqHfCIRQjqHfCEUIBYhBSAGQv//////////A4MhMiAJIQggEyELIAdC//////////8DgyEzIA4hHyAaIRsgCkL//////////wODITQgDSEgIBchHCAQQv//////////A4MhNSASIR0gEUL//////////wODITYgDCErIBUMAQsgHiAIfSIDQv//////////A4MhHgJ+IBYgC30gA0I6h3wiA0L//////////wODITggEyAYfSADQjqHfCIDQv//////////A4MhEyAhIB99IANCOod8IgNC//////////8DgyEhIBogGX0gA0I6h3wiA0L//////////wODIRsgFyAgfSADQjqHfCIDQv//////////A4MhHCAiICN9IANCOod8ISICQAJAIAYgFVEEQCAMIBRRBEAgESASUQRAIA0gEFEEQCAKIA5RBEAgByAJUQRAIAUgD1IEQCAFIQMgDyEEDAcLBSAHIQMgCSEEDAYLBSAKIQMgDiEEDAULBSAQIQMgDSEEDAQLBSARIQMgEiEEDAMLBSAUIQMgDCEEDAILBSAGIQMgFSEEDAELDAELIAQgA1cEQCAPICR8IQ8gFSAqfCEVIAkgJXwhCSAOICZ8IQ4gDSAnfCENIBIgKHwhEiAMICl8IQwLCyAMIBR9IBIgEX0gDSAQfSAOIAp9IAkgB30gDyAFfSIPQjqHfCIOQjqHfCINQjqHfCISQjqHfCIMQjqHfCEJIAUhMSAPQv//////////A4MhDyAIIQMgCyEsIDgLIQUgByEyIA5C//////////8DgyEIIBghLSATIQsgHyEuIAohMyANQv//////////A4MhHyAZIS8gICEwIBAhNCASQv//////////A4MhICARITUgDEL//////////wODIR0gFCE2IAlC//////////8DgyErIBUgBiIUfSAJQjqHfAshBCAeQgFRBH8gBSALICEgGyAcICKEhISEhEIAUQVBAAsNAiAiIRIgMSEGIB4hFSAUIQcgBCEWICwhBCAFIQkgMiEYIAghEyAtIQogCyEOIC4hECAhIQ0gMyEZIB8hGiAvIREgGyEMIDAhFCA0IRsgICEXIBwhBSA1IRwgHSEIIDYhHSArIQsMAQsLDAELIAAgDzcDACAAIAg3AwggACAfNwMQIAAgIDcDGCAAIB03AyAgACArNwMoIAAgBDcDMA8LIAAgDyAGIBVCAVEEfyAJIA4gDSAMIAUgEoSEhISEQgBRBUEACyIBGzcDACAAIBMgGCABGzcDCCAAIBogGSABGzcDECAAIBcgGyABGzcDGCAAIAggHCABGzcDICAAIAsgHSABGzcDKCAAIBYgByABGzcDMAvAAQECfiAAIAApAwggACkDACIDQjqHfCICQv//////////A4M3AwggACAAKQMQIAJCOod8IgJC//////////8DgzcDECAAIAApAxggAkI6h3wiAkL//////////wODNwMYIAAgACkDICACQjqHfCICQv//////////A4M3AyAgACAAKQMoIAJCOod8IgJC//////////8DgzcDKCAAIAApAzAgAkI6h3w3AzAgACADQv//////////A4MgAax9NwMAC3IAIAAgASkDACACKQMAfDcDACAAIAEpAwggAikDCHw3AwggACABKQMQIAIpAxB8NwMQIAAgASkDGCACKQMYfDcDGCAAIAEpAyAgAikDIHw3AyAgACABKQMoIAIpAyh8NwMoIAAgASkDMCACKQMwfDcDMAt4AQR/IwMhAyMDQYAEaiQDIAIQDSACQYABaiIEEA0gA0GAA2oiBSACIAQQFSAFIAUQLSADQYACaiIGIAUgBBAVIANBgAFqIgQgBSACEBUgAyAGEA4gAxANIAQQDSAAIAEgAxAVIABBgAFqIAFBgAFqIAQQFSADJAML/AIBBn8jAyEDIwNBwCBqJAMgA0GAChALIANB+B5qIgFBwA0QRiADQbgeaiICQYAOEEYgA0G4H2oiBSIEIAEQESAEQUBrIAIQESADQbgYaiIBIAAQbyAAIAAQNiAAIAEQLiABIAAQiAEgACAFEEkgACAFEEkgACABEC4gA0G4EmoiBiAAEKIBIANBuAxqIgEgBiADEEggASABEDYgA0EBECwgA0G4BmoiAiABIAMQSCACIAIQNiADQQEQ0AEgA0E4aiIEIAAQNiABIAQQLiABIAEQNiABIAIQLiACIAEgAxBIIAIgAhA2IAQgAiADEEggBCAEEDYgASABEDYgBCABEC4gASABEDYgASAFEEkgASAFEEkgASAFEEkgAiAFEEkgAiAFEEkgASACEC4gAiAEIAMQSCACIAIQNiACIAYQLiACIAAQLiABIAIQLiACIAQQiAEgAiAFEEkgASACEC4gACABEIgBIAAQNSAAQYACahA1IABBgARqEDUgAyQDC/ADAQt/IwMhBiMDQYAOaiQDIAZBgA1qIQogBkGADGohCCAGQYALaiELIAZBgApqIQkgBkGACWohDCAGQYAIaiENIAZBgAdqIQUgBkGABmohByAGQYAEaiEOIAZBgAJqIQ8gASACRgRAIAwgARAOIA0gAUGAAWoQDiAFIAFBgAJqEA4gByANEA4gByAHIAUQGCAMIAwQPCANIA0QPCAFIAUQPCAHIAdBBBBXIAcgBxAtIAcQDSAMIAxBBhBXIAwgDCADEGwgBSAFQaw1KAIAQQNsEFcgByAHIAQQbCAFEDkgBSAFIAUQFSAHEDkgBxANIAUQDSANIA0gDRAVIAUgBSANEDogBRANIA4gByAFEJoBIA8QayAGIAwQmQEgARBaBSAKIAEQDiAIIAFBgAFqEA4gCyABQYACahAOIAkgCxAOIAsgCyACQYABaiIFEBggCSAJIAIQGCAKIAogCRA6IAoQDSAIIAggCxA6IAgQDSALIAoQDiAKIAogBBBsIAoQOSAKEA0gCyALIAUQGCAJIAgQDiAJIAkgAhAYIAkgCSALEDogCRANIAggCCADEGwgCCAIEC0gCBANIA4gCiAJEJoBIA8QayAGIAgQmQEgASACED0LIAAgDhAmIABBgAJqIA8QJiAAQYAEaiAGECYgBiQDC+cCAQd/IwMhAyMDQcALaiQDIANBgAFqIgRBgAoQCyADQUBrIgcgBBALIAcQCiADIAdBAxCWASADEAogA0H4CmoiCCACEBEgA0G4CmoiCSACQUBrEBEgA0G4B2oiBiABEKABIAAQbSAAQYABahBYIABBgAJqEGsgAEGABGoQayADEGkiAkECTARAIAAgABA2IAMkAw8LIANBuAFqIQUgAkF+aiECA0AgACAAENsBIAUgBiAGIAggCRCBASAAIAUQhwECQAJAAkAgAkE6bSIEQQN0IANqKQMAQgEgAiAEQTpsa62Gg0IAUiACQTptIgRBA3QgB2opAwBCASACIARBOmxrrYaDQgBSa0F/aw4DAQIAAgsgBSAGIAEgCCAJEIEBIAAgBRCHAQwBCyABEJ0BIAUgBiABIAggCRCBASAAIAUQhwEgARCdAQsgAkF/aiEEIAJBAUoEQCAEIQIMAQsLIAAgABA2IAMkAwtFAQJ/IwMhASMDQYACaiQDIAFBgAFqIgJBwAoQRiACQUBrQYALEEYgAUHACxBGIAFBQGtBgAwQRiAAIAIgARCeASABJAMLngEBA38jAyECIwNBwAJqJAMgAkG4AWohAyACQThqIQQgARBZIAFBgAJqEFlxRQRAIAEQhQEgBCABQYABahAOIAMgARAOCyACIAMQKiAAKAIIIAIQICACIANBQGsQKiAAKAIIQTBqIAIQICACIAQQKiAAKAIIQeAAaiACECAgAiAEQUBrECogACgCCEGQAWogAhAgIABBwAE2AgAgAiQDC3UBBH8jAyEBIwNBgAJqJAMgABBZIABBgAJqIgIQWXEEQCABJAMPCyABQYABaiIEEG0gAhDWAQRAIAAQUSAAQYABahBRBSABIAIQmwEgACAAIAEQGCAAQYABaiIDIAMgARAYIAAQUSADEFEgAiAEEA4LIAEkAwudAgEBfyMDIQIjA0FAayQDIAIgASgCCBAfIAAgAhAZIAIgASgCCEEwahAfIABBQGsgAhAZIAIgASgCCEHgAGoQHyAAQYABaiACEBkgAiABKAIIQZABahAfIABBwAFqIAIQGSACIAEoAghBwAFqEB8gAEGAAmogAhAZIAIgASgCCEHwAWoQHyAAQcACaiACEBkgAiABKAIIQaACahAfIABBgANqIAIQGSACIAEoAghB0AJqEB8gAEHAA2ogAhAZIAIgASgCCEGAA2oQHyAAQYAEaiACEBkgAiABKAIIQbADahAfIABBwARqIAIQGSACIAEoAghB4ANqEB8gAEGABWogAhAZIAIgASgCCEGQBGoQHyAAQcAFaiACEBkgAiQDC4gCAQh/IwMhAyMDQYAMaiQDIANBgApqIgggACABECQgA0GAAmoiAiAAIABBgAJqIgYQFCACEBogA0GACGoiBCACIAEQJCACIAYgAEGABGoiBxAUIAIQGiADQYAEaiIFIAIgAUGABWoiCRBqIAUQNCACIAgQViAEIAQgAhAUIAYgBBAmIANBgAZqIgQgAhAmIAIgACAHEBQgAyABIAFBgARqEBQgAhAaIAMQGiACIAMgAhAkIAQgBCACEBQg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EBIgACACQYg0KQMAIAMQJSAAQQI2AiggASQDC3EBBH8jAyEBIwNB4ABqJAMgAEHgAGohAiAAEE4EQCACEE4EQCABJAMPCwsgAUEwaiIDEHYgAiADELsBBEAgASQDDwsgASACEIUCIAAgACABEBYgAEEwaiIEIAQgARAWIAQQdyAAEHcgAiADEBcgASQDC44BAQJ+IAAgACkDACIDQv//////////AIM3AwAgACAAKQMIIANCOId8IgJC//////////8AgzcDCCAAIAApAxAgAkI4h3wiAkL//////////wCDNwMQIAAgACkDGCACQjiHfCICQv//////////AIM3AxggACAAKQMgIAJCOId8NwMgIAOnQQEgAXRBf2pxC4YBAQJ+IAAgACkDCCAAKQMAIgNCOId8IgJC//////////8AgzcDCCAAIAApAxAgAkI4h3wiAkL//////////wCDNwMQIAAgACkDGCACQjiHfCICQv//////////AIM3AxggACAAKQMgIAJCOId8NwMgIAAgA0L//////////wCDIAGsfTcDAAuGAQECfiAAIAApAwggACkDACIDQjiHfCICQv//////////AIM3AwggACAAKQMQIAJCOId8IgJC//////////8AgzcDECAAIAApAxggAkI4h3wiAkL//////////wCDNwMYIAAgACkDICACQjiHfDcDICAAIAGsIANC//////////8Ag3w3AwALcAEEfyMDIQEjA0GAAWokAyAAQYABaiECIAAQOwRAIAIQOwRAIAEkAw8LCyABQUBrIgMQXiACIAMQZgRAIAEkAw8LIAEgAhDKASAAIAAgARATIABBQGsiBCAEIAEQEyAEECsgABArIAIgAxARIAEkAwvFBwIHfxR+IwMhAyMDQfAAaiQDIANCADcDACADQgA3AwggA0IANwMQIANCADcDGCADQgA3AyAgA0IANwMoIANCADcDMCADQgA3AzggA0FAa0IANwMAIANCADcDSCADQgA3A1AgA0IANwNYIANCADcDYCADQgA3A2ggA0FAayEJA0AgASABKQMAIgpC//////////8DgyIYNwMAIAEgASkDCCAKQjqHfCIKQv//////////A4MiGTcDCCABIAEpAxAgCkI6h3wiCkL//////////wODIho3AxAgASABKQMYIApCOod8IgpC//////////8DgyIbNwMYIAEgASkDICAKQjqHfCIKQv//////////A4MiHDcDICABIAEpAyggCkI6h3wiCkL//////////wODIh03AyggASABKQMwIApCOod8Igo3AzACQAJAIApCAFEEfyAdQgBRBH8gHEIAUQR/IBtCAFEEfyAaQgBRBH8gGUIAUQR/IBhCAFEEf0EABUEAIQQMBwsFQQEhBAwGCwVBAiEEDAULBUEDIQQMBAsFQQQhBAwDCwVBBSEEDAILBUEGIQQMAQshBQwBCyAEQTpsIQUgBEEDdCABaikDACIKQgBSBEADQCAKQgJ/IRggBUEBaiEFIApCAXxCA1oEQCAYIQoMAQsLCwsgByAFQQF0SARAIAYEfyAIQQF1BSACEHULIQUgAyADKQNoQgGGIBJCOYeENwNoIAMgEkIBhkL+/////////wODIBNCOYeEIhI3A2AgAyATQgGGQv7/////////A4MgFEI5h4QiEzcDWCADIBRCAYZC/v////////8DgyAVQjmHhCIUNwNQIAMgFUIBhkL+/////////wODIBZCOYeEIhU3A0ggCSAWQgGGQv7/////////A4MgF0I5h4QiFjcDACADIBdCAYZC/v////////8DgyALQjmHhCIXNwM4IAMgC0IBhkL+/////////wODIAxCOYeEIgs3AzAgAyAMQgGGQv7/////////A4MgDUI5h4QiDDcDKCADIA1CAYZC/v////////8DgyAOQjmHhCINNwMgIAMgDkIBhkL+/////////wODIA9COYeEIg43AxggAyAPQgGGQv7/////////A4MgEEI5h4QiDzcDECADIBBCAYZC/v////////8DgyARQjmHhCIQNwMIIAMgBUEBca0gEUIBhkL+/////////wODhCIRNwMAIAUhCCAGQQFqQQdxIQYgB0EBaiEHDAELCyAAIAMgARCfAiADJAML5wQBCH4gAqwiA0L/////AYMhBCAAIANCHYciAyABKQMAIgVC/////wGDIgZ+IAQgBUIdhyIFfnwiB0IdhkKAgICA/v///wODIAQgBn58IgZC//////////8DgzcDACAAIAEpAwgiCEL/////AYMiCSADfiAIQh2HIgggBH58IgpCHYZCgICAgP7///8DgyADIAV+IAdCHYd8IAZCOoh8IAQgCX58fCIFQv//////////A4M3AwggACABKQMQIgZC/////wGDIgcgA34gBCAGQh2HIgZ+fCIJQh2GQoCAgID+////A4MgAyAIfiAKQh2HfCAFQjqHfCAEIAd+fHwiBUL//////////wODNwMQIAAgAyABKQMYIgdC/////wGDIgh+IAQgB0IdhyIHfnwiCkIdhkKAgICA/v///wODIAMgBn4gCUIdh3wgBUI6h3wgBCAIfnx8IgVC//////////8DgzcDGCAAIAMgASkDICIGQv////8BgyIIfiAEIAZCHYciBn58IglCHYZCgICAgP7///8DgyADIAd+IApCHYd8IAVCOod8IAQgCH58fCIFQv//////////A4M3AyAgACABKQMoIgdC/////wGDIgggA34gB0IdhyIHIAR+fCIKQh2GQoCAgID+////A4MgAyAGfiAJQh2HfCAFQjqHfCAEIAh+fHwiBUL//////////wODNwMoIAAgASkDMCIGQv////8BgyIIIAN+IAZCHYcgBH58Qh2GQoCAgID+////A4MgAyAHfiAKQh2HfCAFQjqHfCAEIAh+fHxC//////////8DgzcDMAuyAQECfiAAIAApAwAiA0EAIAJrrCIEIAMgASkDAIWDhTcDACAAIAApAwgiAyADIAEpAwiFIASDhTcDCCAAIAApAxAiAyADIAEpAxCFIASDhTcDECAAIAApAxgiAyADIAEpAxiFIASDhTcDGCAAIAApAyAiAyADIAEpAyCFIASDhTcDICAAIAApAygiAyAEIAMgASkDKIWDhTcDKCAAIAApAzAiAyAEIAMgASkDMIWDhTcDMAseACAAIAAQnAEgAEGAAWoiACAAEJwBIAAgASAAEBgLEAAgAEGAAWogARAOIAAQWAsSACAAIAEQDiAAQYABaiACEA4LXgEDfyMDIQMjA0GAAWokAyABEAogAUFAayIEEAogA0FAayICIAEQRSADIAQQRSACIAIgAxAMIAIgAhDKASAAIAEgAhATIAIgAhAwIAIQCiAAQUBrIAQgAhATIAMkAwsaACAAIAEQESAAQUBrIgAgAUFAaxAwIAAQCgsWACAAQYABaiIAEA0gACAAEC0gABANC5wBAQR/IwMhBCMDQcADaiQDIARBOGoiBiACEDwgBEG4AmoiAyABEDwgBEG4AWoiBSADIAEQGCAEQYAIEAsgAyAEEBkgA0FAaxBPIAMQDSADEDkgAxANIAUgAyAFEBUgBRBRIAYgBRDVAQRAIAAgARAOIABBgAFqIAIQDiAAQYACahBtBSAAEFggAEGAAWoQbSAAQYACahBYCyAEJAMLdQEDfyMDIQIjA0HAAmokAyACIAEoAggQHyACQbgBaiIDIAIQGSACIAEoAghBMGoQHyADQUBrIAIQGSACIAEoAghB4ABqEB8gAkE4aiIEIAIQGSACIAEoAghBkAFqEB8gBEFAayACEBkgACADIAQQngEgAiQDCyQAIAAgARAOIABBgAFqIAFBgAFqEA4gAEGAAmogAUGAAmoQDgulAgEBfyMDIQIjA0FAayQDIABBwAQ2AgAgAiABECogACgCCCACECAgAiABQUBrECogACgCCEEwaiACECAgAiABQYABahAqIAAoAghB4ABqIAIQICACIAFBwAFqECogACgCCEGQAWogAhAgIAIgAUGAAmoQKiAAKAIIQcABaiACECAgAiABQcACahAqIAAoAghB8AFqIAIQICACIAFBgANqECogACgCCEGgAmogAhAgIAIgAUHAA2oQKiAAKAIIQdACaiACECAgAiABQYAEahAqIAAoAghBgANqIAIQICACIAFBwARqECogACgCCEGwA2ogAhAgIAIgAUGABWoQKiAAKAIIQeADaiACECAgAiABQcAFahAqIAAoAghBkARqIAIQICACJAML5AEBBX8jAyEDIwNBgAhqJAMgA0GABmoiAiABECYgACABEEAgAyAAIAAQFCAAIAMgABAUIAAQGiACIAIQXyACIAIgAhAUIAAgACACEBQgA0GABGoiAiABQYAEaiIGEEAgAhA0IAMgAiACEBQgAiACIAMQFCACEBogA0GAAmoiBSABQYACaiIEEEAgAyAFIAUQFCAFIAUgAxAUIAUQGiAAQYACaiIBIAQQUCABIAEgARAUIABBgARqIgQgBhBfIAQgBCAEEBQgASACIAEQFCAEIAUgBBAUIAAQNSABEDUgBBA1IAMkAwurAQEDfyMDIQQjA0GAC2okAyAEQYAGaiEDIARB+AdqIQUgACwAAEEERgRAIANBwAE2AgAgA0HAATYCBCADIABBAWo2AgggBSADEJ8BCyAEQbgGaiEAIAEsAABBBEYEQCADIAFBAWoQHyAEIAFBMWoQHyAA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IhUsAABzOgAAIABBkhBqIgQgAEGCEGoiFiwAACAELAAAczoAACAAQZMQaiIFIABBgxBqIhcsAAAgBSwAAHM6AAAgAEGUEGoiBiAAQYQQaiIYLAAAIAYsAABzOgAAIABBlRBqIgcgAEGFEGoiGSwAACAHLAAAczoAACAAQZYQaiIIIABBhhBqIhosAAAgCCwAAHM6AAAgAEGXEGoiCSAAQYcQaiIbLAAAIAksAABzOgAAIABBmBBqIgogAEGIEGoiHCwAACAKLAAAczoAACAAQZkQaiILIABBiRBqIh0sAAAgCywAAHM6AAAgAEGaEGoiDCAAQYoQaiIeLAAAIAwsAABzOgAAIABBmxBqIg0gAEGLEGoiHywAACANLAAAczoAACAAQZwQaiIOIABBjBBqIiAsAAAgDiwAAHM6AAAgAEGdEGoiDyAAQY0QaiIhLAAAIA8sAABzOgAAIABBnhBqIhAgAEGOEGoiIiwAACAQLAAAczoAACAAQZ8QaiIRIABBjxBqIiMsAAAgESwAAHM6AAAgASAUOgAAIBNBADoAACASQQA6AAAgASADLAAAOgABIBVBADoAACADQQA6AAAgASAELAAAOgACIBZBADoAACAEQQA6AAAgASAFLAAAOgADIBdBADoAACAFQQA6AAAgASAGLAAAOgAEIBhBADoAACAGQQA6AAAgASAHLAAAOgAFIBlBADoAACAHQQA6AAAgASAILAAAOgAGIBpBADoAACAIQQA6AAAgASAJLAAAOgAHIBtBADoAACAJQQA6AAAgASAKLAAAOgAIIBxBADoAACAKQQA6AAAgASALLAAAOgAJIB1BADoAACALQQA6AAAgASAMLAAAOgAKIB5BADoAACAMQQA6AAAgASANLAAAOgALIB9BADoAACANQQA6AAAgASAOLAAAOgAMICBBADoAACAOQQA6AAAgASAPLAAAOgANICFBADoAACAPQQA6AAAgASAQLAAAOgAOICJBADoAACAQQQA6AAAgASARLAAAOgAPICNBADoAACARQQA6AAAgAEGwEGpBAzYCACACEHALrgEBBn8gAEGwEGoiCCgCAARADwsgAkEASgRAIABBpBBqIQYgAEGgEGohBwNAIAMgAkgEQEEAIQQDQCAEIABBgBBqaiIFIAEgA2osAAAgBSwAAHM6AAAgBiAGKAIAQQFqIgU2AgAgBUUEQCAHIAcoAgBBAWo2AgALIANBAWoiAyACSCAEQQFqIgRBEElxDQALCyAAEGEgAyACSA0ACwsgAkEPcUUEQA8LIAhBATYCAAveAwEFfyAAQaQQaigCACEBIABBqBBqKAIAIQUgAEGsEGooAgAhBCAAQYAQaiIDIAMsAAAgAEGgEGooAgAiAkEVdkH/AXFzOgAAIABBgRBqIgMgAywAACACQQ12Qf8BcXM6AAAgAEGCEGoiAyADLAAAIAJBBXZB/wFxczoAACAAQYMQaiIDIAMsAAAgAkEDdCABQR12ckH/AXFzOgAAIABBhBBqIgIgAiwAACABQRV2Qf8BcXM6AAAgAEGFEGoiAiACLAAAIAFBDXZB/wFxczoAACAAQYYQaiICIAIsAAAgAUEFdkH/AXFzOgAAIABBhxBqIgIgAiwAACABQQN0Qf8BcXM6AAAgAEGIEGoiASABLAAAIAVBFXZB/wFxczoAACAAQYkQaiIBIAEsAAAgBUENdkH/AXFzOgAAIABBihBqIgEgASwAACAFQQV2Qf8BcXM6AAAgAEGLEGoiASABLAAAIAVBA3QgBEEddnJB/wFxczoAACAAQYwQaiIBIAEsAAAgBEEVdkH/AXFzOgAAIABBjRBqIgEgASwAACAEQQ12Qf8BcXM6AAAgAEGOEGoiASABLAAAIARBBXZB/wFxczoAACAAQY8QaiIBIAEsAAAgBEEDdEH/AXFzOgAAIAAQYQviCwEKfyMDIQUjA0EQaiQDIAVCADcDACAFQgA3AwggAEGAEGoiC0IANwAAIAtCADcACCAAQbQQaiIGQQAgASACIAQQjAEgBiAFEDcgACAFLQADIAUtAAFBEHQgBS0AAEEYdHIgBS0AAkEIdHJyIgE2AgAgACAFLQAHIAUtAARBGHQgBS0ABUEQdHIgBS0ABkEIdHJyIgI2AgQgACAFLQALIAUtAAhBGHQgBS0ACUEQdHIgBS0ACkEIdHJyIgY2AgggACAFLQAPIAUtAAxBGHQgBS0ADUEQdHIgBS0ADkEIdHJyIgg2AgxBASEHA0AgB0EEdCAAaiINIAFBAXYiDDYCACAHQQR0IABqIAFBH3QgAkEBdnIiCjYCBCAHQQR0IABqIAJBH3QgBkEBdnIiCTYCCCAHQQR0IABqIAZBH3QgCEEBdnIiDjYCDCAMQYCAgIh+cyEBIAhBAXEEQCANIAE2AgAFIAwhAQsgB0EBaiIHQYABRwRAIAohAiAJIQYgDiEIDAELCyAAQaAQaiIGQgA3AgAgBkIANwIIIANBDEYEQCAAQaAUaiIBIAQsAAA6AAAgAEGhFGogBCwAAToAACAAQaIUaiAELAACOgAAIABBoxRqIAQsAAM6AAAgAEGkFGogBCwABDoAACAAQaUUaiAELAAFOgAAIABBphRqIAQsAAY6AAAgAEGnFGogBCwABzoAACAAQagUaiAELAAIOgAAIABBqRRqIAQsAAk6AAAgAEGqFGogBCwACjoAACAAQasUaiAELAALOgAAIABBrxRqQQE6AAAgAEGuFGpBADoAACAAQa0UakEAOgAAIABBrBRqQQA6AAAgAEGQEGoiAiABKQAANwAAIAIgASkACDcACCAAQbAQakEANgIAIAUkAw8LIABBrBBqIQggAEGoEGohByAAQbAQaiIKQQE2AgAgA0EASgRAQQAhAQNAIAEgA0gEQEEAIQIDQCACIABBgBBqaiIJIAEgBGosAAAgCSwAAHM6AAAgCCAIKAIAQQFqIgk2AgAgCUUEQCAHIAcoAgBBAWo2AgALIAFBAWoiASADSCACQQFqIgJBEElxDQALCyAAEGEgASADSA0ACwsgA0EPcQRAIApBAjYCAAsgABCtASAAQaAUaiALLAAAIgE6AAAgAEGQEGogAToAACALQQA6AAAgAEGhFGogAEGBEGoiASwAACICOgAAIABBkRBqIAI6AAAgAUEAOgAAIABBohRqIABBghBqIgEsAAAiAjoAACAAQZIQaiACOgAAIAFBADoAACAAQaMUaiAAQYMQaiIBLAAAIgI6AAAgAEGTEGogAjoAACABQQA6AAAgAEGkFGogAEGEEGoiASwAACICOgAAIABBlBBqIAI6AAAgAUEAOgAAIABBpRRqIABBhRBqIgEsAAAiAjoAACAAQZUQaiACOgAAIAFBADoAACAAQaYUaiAAQYYQaiIBLAAAIgI6AAAgAEGWEGogAjoAACABQQA6AAAgAEGnFGogAEGHEGoiASwAACICOgAAIABBlxBqIAI6AAAgAUEAOgAAIABBqBRqIABBiBBqIgEsAAAiAjoAACAAQZgQaiACOgAAIAFBADoAACAAQakUaiAAQYkQaiIBLAAAIgI6AAAgAEGZEGogAjoAACABQQA6AAAgAEGqFGogAEGKEGoiASwAACICOgAAIABBmhBqIAI6AAAgAUEAOgAAIABBqxRqIABBixBqIgEsAAAiAjoAACAAQZsQaiACOgAAIAFBADoAACAAQawUaiAAQYwQaiIBLAAAIgI6AAAgAEGcEGogAjoAACABQQA6AAAgAEGtFGogAEGNEGoiASwAACICOgAAIABBnRBqIAI6AAAgAUEAOgAAIABBrhRqIABBjhBqIgEsAAAiAjoAACAAQZ4QaiACOgAAIAFBADoAACAAQa8UaiAAQY8QaiIBLAAAIgI6AAAgAEGfEGogAjoAACABQQA6AAAgBkIANwIAIAZCADcCCCAKQQA2AgAgBSQDC6EJAQt/IwMhAiMDQRBqJAMCQAJAAkACQAJAAkACQCAAKAIIIgYOLgABAgIFAgUFBQUFBQUFAwMFAwUFBQMFBQUFBQUFAwQEBQQFBQUEBQUFBQUFBQQFCyAAIAEQsQEMBQsgAiAALADsAzoAACAAIAEsAAA6AOwDIAIgACwA7QM6AAEgACABLAABOgDtAyACIAAsAO4DOgACIAAgASwAAjoA7gMgAiAALADvAzoAAyAAIAEsAAM6AO8DIAIgACwA8AM6AAQgACABLAAEOgDwAyACIAAsAPEDOgAFIAAgASwABToA8QMgAiAALADyAyIDOgAGIAAgASwABjoA8gMgACwA8wMhBCAAIAEsAAc6APMDIAAsAPQDIQUgACABLAAIOgD0AyAALAD1AyEGIAAgASwACToA9QMgACwA9gMhByAAIAEsAAo6APYDIAAsAPcDIQggACABLAALOgD3AyAALAD4AyEJIAAgASwADDoA+AMgACwA+QMhCiAAIAEsAA06APkDIAAsAPoDIQsgACABLAAOOgD6AyAALAD7AyEMIAAgASwADzoA+wMgACABELEBIAEgAiwAACABLAAAczoAACACQQA6AAAgASACLAABIAEsAAFzOgABIAJBADoAASABIAIsAAIgASwAAnM6AAIgAkEAOgACIAEgAiwAAyABLAADczoAAyACQQA6AAMgASACLAAEIAEsAARzOgAEIAJBADoABCABIAIsAAUgASwABXM6AAUgAkEAOgAFIAEgASwABiADczoABiACQQA6AAYgASABLAAHIARzOgAHIAJBADoAByABIAEsAAggBXM6AAggAkEAOgAIIAEgASwACSAGczoACSACQQA6AAkgASABLAAKIAdzOgAKIAJBADoACiABIAEsAAsgCHM6AAsgAkEAOgALIAEgASwADCAJczoADCACQQA6AAwgASABLAANIApzOgANIAJBADoADSABIAEsAA4gC3M6AA4gAkEAOgAOIAEgASwADyAMczoADyACQQA6AA8MBAsgBkF/aiEFA0AgAyAAQewDamosAAAgBEEIdHIhBCADQQFqIgMgBUcNAAsgAiAAKQDsAzcAACACIAApAPQDNwAIIAZBEUgEQCAFIQMDQCAAQewDaiADIAVraiADIABB7ANqaiwAADoAACADQQFqIQQgA0EPSARAIAQhAwwBCwsLIAAgAhA3QREgBmshBkEAIQMDQCADIAZqIABB7ANqaiABIANqIgQsAAA6AAAgBCACIANqLAAAIAQsAABzOgAAIANBAWoiAyAFRw0ACyACJAMPCyAGQXNqIQQgACAAQewDahA3A0AgASADaiIFIAMgAEHsA2pqLAAAIAUsAABzOgAAIANBAWoiAyAERw0ACwwCCyACIAApAOwDNwAAIAIgACkA9AM3AAggBkFjaiEEIAAgAhA3A0AgASADaiIFIAIgA2osAAAgBSwAAHM6AAAgA0EBaiIDIARHDQALQQAhAQNAIAEgAEHsA2pqIgQsAABBAWpBGHRBGHUhAyAEIAM6AAAgA0UgAUEBaiIBQRBJcQ0ACwwBCyACJAMPCyACJAMLxwcBBn8jAyEEIwNBEGokAwJAAkACQAJAAkACQAJAIAAoAggiBg4uAAECAgUCBQUFBQUFBQUDAwUDBQUFAwUFBQUFBQUDBAQFBAUFBQQFBQUFBQUFBAULIAAgARA3DAULIAEgACwA7AMgASwAAHM6AAAgASAALADtAyABLAABczoAASABIAAsAO4DIAEsAAJzOgACIAEgACwA7wMgASwAA3M6AAMgASAALADwAyABLAAEczoABCABIAAsAPEDIAEsAAVzOgAFIAEgACwA8gMgASwABnM6AAYgASAALADzAyABLAAHczoAByABIAAsAPQDIAEsAAhzOgAIIAEgACwA9QMgASwACXM6AAkgASAALAD2AyABLAAKczoACiABIAAsAPcDIAEsAAtzOgALIAEgACwA+AMgASwADHM6AAwgASAALAD5AyABLAANczoADSABIAAsAPoDIAEsAA5zOgAO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ai0AAEEQdHMgCEEYdkGgLmotAABBGHRzNgIAIA8gAEH8AWogBEEDckECdGooAgAgCEH/AXFBoC5qLQAAcyAMQQh2Qf8BcUGgLmotAABBCHRzIAZBEHZB/wFxQaAuai0AAEEQdHMgCUEYdkGgLmotAABBGHRzNgIAIAEgBToAACABIApBCHY6AAEgASANQRB2OgACIAEgDkEYdjoAAyACQQA2AgAgA0EANgIAIAEgBygCACIAOgAEIAEgAEEIdjoABSABIABBEHY6AAYgASAAQRh2OgAHIAdBADYCACASQQA2AgAgASALKAIAIgA6AAggASAAQQh2OgAJIAEgAEEQdjoACiABIABBGHY6AAsgC0EANgIAIBFBADYCACABIA8oAgAiADoADCABIABBCHY6AA0gASAAQRB2OgAOIAEgAEEYdjoADyAPQQA2AgAgE0EANgIAIBAkAwv+CgEHfyMDIQQjA0GQBGokAyACELgBIAEoAgBFBEAgBCQDQQEPCyABKAIILAAAIQMgBEEQaiIIQQEgACgCACAAKAIIQQAQjAEgBCADOgAAAn8gASgCACIDQQFKBH8Cf0EAIQBBASEGA38gBCAGIAEoAggiB2osAAA6AAFBASAGQQFqIgUgA04NARogBCAFIAdqLAAAOgACQQEgBkECaiIFIANODQEaIAQgBSAHaiwAADoAA0EBIAZBA2oiBSADTg0BGiAEIAUgB2osAAA6AARBASAGQQRqIgUgA04NARogBCAFIAdqLAAAOgAFQQEgBkEFaiIFIANODQEaIAQgBSAHaiwAADoABkEBIAZBBmoiBSADTg0BGiAEIAUgB2osAAA6AAdBASAGQQdqIgUgA04NARogBCAFIAdqLAAAOgAIQQEgBkEIaiIFIANODQEaIAQgBSAHaiwAADoACUEBIAZBCWoiBSADTg0BGiAEIAUgB2osAAA6AApBASAGQQpqIgUgA04NARogBCAFIAdqLAAAOgALQQEgBkELaiIFIANODQEaIAQgBSAHaiwAADoADEEBIAZBDGoiBSADTg0BGiAEIAUgB2osAAA6AA1BASAGQQ1qIgUgA04NARogBCAFIAdqLAAAOgAOQQEgBkEOaiIFIANODQEaIAQgBSAHaiwAADoAD0EAIAZBD2oiBSADTg0BGiAFIAdqLAAAIQcgCCAEEK8BIAAgAigCBCIDSARAIAAgAigCCGogBCwAADoAACAAQQFqIQAgAigCBCEDCyAAIANIBEAgACACKAIIaiAELAABOgAAIABBAWohACACKAIEIQMLIAAgA0gEQCAAIAIoAghqIAQsAAI6AAAgAEEBaiEAIAIoAgQhAwsgACADSARAIAAgAigCCGogBCwAAzoAACAAQQFqIQAgAigCBCEDCyAAIANIBEAgACACKAIIaiAELAAEOgAAIABBAWohACACKAIEIQMLIAAgA0gEQCAAIAIoAghqIAQsAAU6AAAgAEEBaiEAIAIoAgQhAwsgACADSARAIAAgAigCCGogBCwABjoAACAAQQFqIQAgAigCBCEDCyAAIANIBEAgACACKAIIaiAELAAHOgAAIABBAWohACACKAIEIQMLIAAgA0gEQCAAIAIoAghqIAQsAAg6AAAgAEEBaiEAIAIoAgQhAwsgACADSARAIAAgAigCCGogBCwACToAACAAQQFqIQAgAigCBCEDCyAAIANIBEAgACACKAIIaiAELAAKOgAAIABBAWohACACKAIEIQMLIAAgA0gEQCAAIAIoAghqIAQsAAs6AAAgAEEBaiEAIAIoAgQhAwsgACADSARAIAAgAigCCGogBCwADDoAACAAQQFqIQAgAigCBCEDCyAAIANIBEAgACACKAIIaiAELAANOgAAIABBAWohACACKAIEIQMLIAAgA0gEQCAAIAIoAghqIAQsAA46AAAgAEEBaiEAIAIoAgQhAwsgACADSARAIAAgAigCCGogBCwADzoAACAAQQFqIQALIAQgBzoAACAGQRBqIgYgASgCACIDSA0AQQELCwVBACEAQQELIQkgCCAEEK8BIAgQcCAELAAPIgchCCAJCyAHQX9qQRh0QRh1Qf8BcUEPSnJBAXEhASAHQX5qQRh0QRh1Qf8BcUEPSARAQRAgCGshAwNAIAFBASAHIAMgBGosAABGGyEBIANBAWohBiADQQ9IBEAgBiEDDAELCwsgAUEARyIDRQRAQRAgCGsiBkEASgRAQQAhAQNAIAAgAigCBEgEQCAAIAIoAghqIAEgBGosAAA6AAAgAEEBaiEACyABQQFqIgEgBkcNAAsLCyACIAA2AgAgBCQDIANBAXNBAXELkA4BBn8jAyEDIwNBkARqJAMgAhC4ASABKAIARQRAIAMkAw8LIANBEGoiCEEBIAAoAgAgACgCCEEAEIwBIAEoAgAiBEEASgR/An9BACEAA38gAyAGIAEoAggiB2osAAA6AABBASAGQQFyIgUgBE4NARogAyAFIAdqLAAAOgABQQIgBkECciIFIARODQEaIAMgBSAHaiwAADoAAkEDIAZBA3IiBSAETg0BGiADIAUgB2osAAA6AANBBCAGQQRyIgUgBE4NARogAyAFIAdqLAAAOgAEQQUgBkEFciIFIARODQEaIAMgBSAHaiwAADoABUEGIAZBBnIiBSAETg0BGiADIAUgB2osAAA6AAZBByAGQQdyIgUgBE4NARogAyAFIAdqLAAAOgAHQQggBkEIciIFIARODQEaIAMgBSAHaiwAADoACEEJIAZBCXIiBSAETg0BGiADIAUgB2osAAA6AAlBCiAGQQpyIgUgBE4NARogAyAFIAdqLAAAOgAKQQsgBkELciIFIARODQEaIAMgBSAHaiwAADoAC0EMIAZBDHIiBSAETg0BGiADIAUgB2osAAA6AAxBDSAGQQ1yIgUgBE4NARogAyAFIAdqLAAAOgANQQ4gBkEOciIFIARODQEaIAMgBSAHaiwAADoADkEPIAZBD3IiBSAETg0BGiADIAUgB2osAAA6AA8gCCADELABIAAgAigCBCIESARAIAAgAigCCGogAywAADoAACAAQQFqIQAgAigCBCEECyAAIARIBEAgACACKAIIaiADLAABOgAAIABBAWohACACKAIEIQQLIAAgBEgEQCAAIAIoAghqIAMsAAI6AAAgAEEBaiEAIAIoAgQhBAsgACAESARAIAAgAigCCGogAywAAzoAACAAQQFqIQAgAigCBCEECyAAIARIBEAgACACKAIIaiADLAAEOgAAIABBAWohACACKAIEIQQLIAAgBEgEQCAAIAIoAghqIAMsAAU6AAAgAEEBaiEAIAIoAgQhBAsgACAESARAIAAgAigCCGogAywABjoAACAAQQFqIQAgAigCBCEECyAAIARIBEAgACACKAIIaiADLAAHOgAAIABBAWohACACKAIEIQQLIAAgBEgEQCAAIAIoAghqIAMsAAg6AAAgAEEBaiEAIAIoAgQhBAsgACAESARAIAAgAigCCGogAywACToAACAAQQFqIQAgAigCBCEECyAAIARIBEAgACACKAIIaiADLAAKOgAAIABBAWohACACKAIEIQQLIAAgBEgEQCAAIAIoAghqIAMsAAs6AAAgAEEBaiEAIAIoAgQhBAsgACAESARAIAAgAigCCGogAywADDoAACAAQQFqIQAgAigCBCEECyAAIARIBEAgACACKAIIaiADLAANOgAAIABBAWohACACKAIEIQQLIAAgBEgEQCAAIAIoAghqIAMsAA46AAAgAEEBaiEAIAIoAgQhBAsgACAESARAIAAgAigCCGogAywADzoAACAAQQFqIQALIAZBEGoiBiABKAIAIgRIDQBBAAsLBUEAIQBBAAsiASADakEQIAFrIgFB/wFxIAEQShogCCADELABIAAgAigCBCIBSARAIAAgAigCCGogAywAADoAACAAQQFqIQAgAigCBCEBCyAAIAFIBEAgACACKAIIaiADLAABOgAAIABBAWohACACKAIEIQELIAAgAUgEQCAAIAIoAghqIAMsAAI6AAAgAEEBaiEAIAIoAgQhAQsgACABSARAIAAgAigCCGogAywAAzoAACAAQQFqIQAgAigCBCEBCyAAIAFIBEAgACACKAIIaiADLAAEOgAAIABBAWohACACKAIEIQELIAAgAUgEQCAAIAIoAghqIAMsAAU6AAAgAEEBaiEAIAIoAgQhAQsgACABSARAIAAgAigCCGogAywABjoAACAAQQFqIQAgAigCBCEBCyAAIAFIBEAgACACKAIIaiADLAAHOgAAIABBAWohACACKAIEIQELIAAgAUgEQCAAIAIoAghqIAMsAAg6AAAgAEEBaiEAIAIoAgQhAQsgACABSARAIAAgAigCCGogAywACToAACAAQQFqIQAgAigCBCEBCyAAIAFIBEAgACACKAIIaiADLAAKOgAAIABBAWohACACKAIEIQELIAAgAUgEQCAAIAIoAghqIAMsAAs6AAAgAEEBaiEAIAIoAgQhAQsgACABSARAIAAgAigCCGogAywADDoAACAAQQFqIQAgAigCBCEBCyAAIAFIBEAgACACKAIIaiADLAANOgAAIABBAWohACACKAIEIQELIAAgAUgEQCAAIAIoAghqIAMsAA46AAAgAEEBaiEAIAIoAgQhAQsgACABSARAIAAgAigCCGogAywADzoAACAAQQFqIQALIAgQcCACIAA2AgAgAyQDC8QBAQN/IwMhBSMDQaACaiQDIAVBjAJqIgZBADYCACAGQYABNgIE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BEAgAkHgAGoQTgRADwsLIAIQkAEgASACQTBqELwBIAEpAwBCAoEaIAAgAhC8AQtSACAAIAEpAwAgAikDAHw3AwAgACABKQMIIAIpAwh8NwMIIAAgASkDECACKQMQfDcDECAAIAEpAxggAikDGHw3AxggACABKQMgIAIpAyB8NwMgC5EBAQJ+IAAgACkDCCIBQjSGQv//////////AIMgACkDAEIEh4Q3AwAgACAAKQMQIgJCNIZC//////////8AgyABQgSHhDcDCCAAIAApAxgiAUI0hkL//////////wCDIAJCBIeENwMQIAAgACkDICICQjSGQv//////////AIMgAUIEh4Q3AxggACACQgSHNwMgC4IBAQJ+IAAgACkDACIDQQAgAmusIgQgAyABKQMAhYOFNwMAIAAgACkDCCIDIAMgASkDCIUgBIOFNwMIIAAgACkDECIDIAMgASkDEIUgBIOFNwMQIAAgACkDGCIDIAMgASkDGIUgBIOFNwMYIAAgACkDICIDIAMgASkDIIUgBIOFNwMgC40CAgJ/BX4gACAAKQMAIgNC//////////8AgyIENwMAIAAgACkDCCADQjiHfCIDQv//////////AIMiBTcDCCAAIAApAxAgA0I4h3wiA0L//////////wCDIgY3AxAgACAAKQMYIANCOId8IgNC//////////8AgyIHNwMYIAAgACkDICADQjiHfCIDNwMgIANCAFEEfyAHQgBRBH8gBkIAUQR/IAVCAFEEfyAEQgBRBH9BAA8FQQALBUEBCwVBAgsFQQMLBUEECyICQThsIQEgAkEDdCAAaikDACIDQgBRBEAgAQ8LIAEhAANAIANCAn8hBCAAQQFqIQAgA0IBfEIDWgRAIAQhAwwBCwsgAAtCACAAKQMAQgBSBEBBAA8LIAApAwhCAFIEQEEADwsgACkDEEIAUgRAQQAPCyAAKQMYQgBRBH8gACkDIEIAUQVBAAsLrgEBA38jAyEDIwNB0AJqJAMgA0HgAGoiBSAAKAIIEHkgA0EwaiIEIAEoAghBAWoQeSADIAEoAghBIWoQeSADQbgBaiIAIAQgAxC+AUUEQCADJANBfQ8LIANBkAFqIgFB8A4QEiAFIAEQKSAAIAUQvQECf0EAIAAQTkUNABogAEHgAGoQTgsEQCADJANBfQ8LIAQgBCAAEL8BIAJBIDYCACACKAIIIAQQeiADJANBAAsvAQJ/IwMhASMDQYABaiQDIAFBQGsiAkGACRALIAFBwAkQCyAAIAIgARB7IAEkAwv8BgEMfyMDIQcjA0HwEGokAyAAEDsEQCAAQYABahA7BEAgByQDDwsLIAEQ0gEEQCAAEE8gAEFAaxBeIABBgAFqEE8gByQDDwsgABCUASAHQagPaiIGIAAQESAGQUBrIgogAEFAayILEBEgBkGAAWoiCSAAQYABaiIMEBEgBhBlIAdB8ABqIgIgABARIAJBQGsiAyALEBEgAkGAAWoiBCAMEBEgAkHAAWoiBSACEBEgAkGAAmoiCCADEBEgAkHAAmoiAyAEEBEgBSAGEEQgAkGAA2oiBCACQcABahARIAJBwANqIgUgCBARIAJBgARqIgggAxARIAQgBhBEIAJBwARqIgMgAkGAA2oQESACQYAFaiIEIAUQESACQcAFaiIFIAgQESADIAYQRCACQYAGaiIDIAJBwARqEBEgAkHABmoiCCAEEBEgAkGAB2oiBCAFEBEgAyAGEEQgAkHAB2oiAyACQYAGahARIAJBgAhqIgUgCBARIAJBwAhqIgggBBARIAMgBhBEIAJBgAlqIgMgAkHAB2oQESACQcAJaiIEIAUQESACQYAKaiIFIAgQESADIAYQRCACQcAKaiIDIAJBgAlqEBEgAkGAC2ogBBARIAJBwAtqIAUQESADIAYQRCAHQfAMaiIEIAEQCyAEKQMAQgKBpyEFIARBARBoIAQQCiAEKQMAQgKBpyEBIAdBsA1qIgMgBBALIANBARBoIAMQCiAEIAMgBRCXASAGIAAgARAbIAogCyABEBsgCSAMIAEQGyAHQegNaiIIIAYQESAIQUBrIgUgChARIAhBgAFqIAkQESAEEGkiDUEDakEEbSEJIARBBRBnIQEgDUF6TgRAQQAhAwNAIAMgB2ogAUHwAWoiAToAACAEIAFBGHRBGHUQfSAEEAogBEEEECwgA0EBaiEKIARBBRBnIQEgAyAJSARAIAohAwwBCwsLIAlBAWogB2ogAToAACAAIAFBGHRBGHVBf2pBAm0iAUHAAWwgAmoQESALIAFBwAFsIAJqQUBrEBEgDCABQcABbCACakGAAWoQESANQXlKBEAgCSEBA0AgBiACIAEgB2osAAAQmQIgABBlIAAQZSAAEGUgABBlIAAgBhBEIAFBf2ohAyABQQBKBEAgAyEBDAELCwsgBSAFEDAgBRAKIAAgCBBEIAUgBRAwIAUQCiAAEJQBIAckAwsEAEEQCzIAIAIQOwRAIAJBgAFqEDsEQA8LCyACEJQBIAEgAkFAaxAqIAEpAwBCAoEaIAAgAhAqCy0BAX8jAyECIwNBQGskAyACQcAMEAsgAkECEH0gAhAKIAAgASACEJsCIAIkAwusAQEFfyMDIQojA0HAEWokAyAKQcADaiEMIApBQGshCyAKQfgPaiENIAogARAfIAIsAABBBEYEQCAMIAJBAWoQHyALIAJBMWoQHyANIAwgCxB7CyAMIAogAEGAAWoQfCALIABB+AJqEKABIAsgDBBuIApB+AlqIgIgCyANEIIBIAIQgAEgCkH4A2oiASACEG8gACABIAYgByADIAQgCCAJIAUQiQEhDiAKJAMgDgvrAQAgACABKQMAIAIpAwB8NwMAIAAgASkDCCACKQMIfDcDCCAAIAEpAxAgAikDEHw3AxAgACABKQMYIAIpAxh8NwMYIAAgASkDICACKQMgfDcDICAAIAEpAyggAikDKHw3AyggACABKQMwIAIpAzB8NwMwIAAgASkDOCACKQM4fDcDOCAAQUBrIAFBQGspAwAgAkFAaykDAHw3AwAgACABKQNIIAIpA0h8NwNIIAAgASkDUCACKQNQfDcDUCAAIAEpA1ggAikDWHw3A1ggACABKQNgIAIpA2B8NwNgIAAgASkDaCACKQNofDcDaAvrAQAgACABKQMAIAIpAwB9NwMAIAAgASkDCCACKQMIfTcDCCAAIAEpAxAgAikDEH03AxAgACABKQMYIAIpAxh9NwMYIAAgASkDICACKQMgfTcDICAAIAEpAyggAikDKH03AyggACABKQMwIAIpAzB9NwMwIAAgASkDOCACKQM4fTcDOCAAQUBrIAFBQGspAwAgAkFAaykDAH03AwAgACABKQNIIAIpA0h9NwNIIAAgASkDUCACKQNQfTcDUCAAIAEpA1ggAikDWH03A1ggACABKQNgIAIpA2B9NwNgIAAgASkDaCACKQNofTcDaAs4ACAAQgE3AwAgAEEIaiIAQgA3AwAgAEIANwMIIABCADcDECAAQgA3AxggAEIANwMgIABCADcDKAuQAwIBfwF+IAAgACkDACICQv//////////A4M3AwAgACAAKQMIIAJCOod8IgJC//////////8DgzcDCCAAIAApAxAgAkI6h3wiAkL//////////wODNwMQIAAgACkDGCACQjqHfCICQv//////////A4M3AxggACAAKQMgIAJCOod8IgJC//////////8DgzcDICAAIAApAyggAkI6h3wiAkL//////////wODNwMoIAAgACkDMCACQjqHfCICQv//////////A4M3AzAgACAAKQM4IAJCOod8IgJC//////////8DgzcDOCAAQUBrIgEpAwAgAkI6h3whAiABIAJC//////////8DgzcDACAAIAApA0ggAkI6h3wiAkL//////////wODNwNIIAAgACkDUCACQjqHfCICQv//////////A4M3A1AgACAAKQNYIAJCOod8IgJC//////////8DgzcDWCAAIAApA2AgAkI6h3wiAkL//////////wODNwNgIAAgACkDaCACQjqHfDcDaAvaAQEDfiAAIAApAzAgAa0iA4YgACkDKCICQTogAWutIgSHhDcDMCAAIAIgA4ZC//////////8DgyAAKQMgIgIgBIeENwMoIAAgAiADhkL//////////wODIAApAxgiAiAEh4Q3AyAgACACIAOGQv//////////A4MgACkDECICIASHhDcDGCAAIAIgA4ZC//////////8DgyAAKQMIIgIgBIeENwMQIAAgAiADhkL//////////wODIAApAwAiAiAEh4Q3AwggACACIAOGQv//////////A4M3AwALMwAgAEIANwMAIABCADcDCCAAQgA3AxAgAEIANwMYIABCADcDICAAQgA3AyggAEIANwMwC14AIAApAwBCAFIEQEEADwsgACkDCEIAUgRAQQAPCyAAKQMQQgBSBEBBAA8LIAApAxhCAFIEQEEADwsgACkDIEIAUgRAQQAPCyAAKQMoQgBRBH8gACkDMEIAUQVBAAsLCAAgAEHfA2oLFgAgAEUEQEEADwsgAEEQbUEEdEEQags1AQJ/IAAQKyAAQUBrIgIQKyABECsgAUFAayIDECsgACABEGYEQCACIAMQZgRAQQEPCwtBAAs9AQJ/IwMhASMDQUBrJAMgARBeIAAQKyAAQUBrIgIQKyAAIAEQZgRAIAIQOwRAIAEkA0EBDwsLIAEkA0EACycBAX8gAUG0BG0i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IAJBAnJqLQAAQRB0cnIhAiAHQQA2AgAgBkEANgIAIAAgAiAAKAIAczYCACAAIAAoAiBBAXM2AiAgCCACQX9qIgMgCCgCAHM2AgAgAEECIAJrIgIgACgCDHM2AgwgACADIAJrIgMgACgCLHM2AiwgACACIANrIgIgACgCTHM2AkwgACADIAJrIgMgACgCGHM2AhggACACIANrIgIgACgCOHM2AjggACADIAJrIgMgACgCBHM2AgQgACACIANrIgIgACgCJHM2AiQgACADIAJrIgMgACgCRHM2AkQgACACIANrIgIgACgCEHM2AhAgACADIAJrIgMgACgCMHM2AjAgACACIANrIgIgACgCUHM2AlAgACADIAJrIgMgACgCHHM2AhwgACACIANrIgIgACgCPHM2AjwgACADIAJrIgMgACgCCHM2AgggACACIANrIgIgACgCKHM2AiggACADIAJrIgMgACgCSHM2AkggACACIANrIgIgACgCFHM2AhQgACAAKAI0IAMgAmtzNgI0QQAhBEEAIQIDQCAGIAJBAWo2AgAgAkEUTgRAIAZBADYCAEEAIQJBDyEDA0BBACADIANBFUYbIgpBAnQgAGooAgAiCSACQQJ0IABqIgsoAgBrIAcoAgBrIQMgAyAJRwRAIAcgAyAJSzYCAAsgCyADNgIAIApBAWohAyACQQFqIgJBFUcNAAsLIARBAWoiBEGQzgBHBEAgBigCACECDAELCyABQQFqIgFBCEcNACAACwUgAEHYAGohByAAQdQAaiEGIAALIQEgBUGMA2oiCBBzQQAhBANAIAYgBigCACICQQFqIgM2AgAgCCACQRRIBH8gA0ECdCAAagUgBkEANgIAQQAhAkEPIQMDf0EAIAMgA0EVRhsiCkECdCAAaigCACIJIAJBAnQgAGoiCygCAGsgBygCAGshAyADIAlHBEAgByADIAlLNgIACyALIAM2AgAgCkEBaiEDIAJBAWoiAkEVRw0AIAELCygCABBBIARBAWoiBEGAAUcNAAsgCCAAQeAAahBxIABBADYCXCAFJAML0AcCCn8CfiMDIQUjA0HgCGokAyAFQbAGaiEIIAEQDyACEA8gBSACEBIgBRDDASIJQQNqQQRtIQogCUF6TgRAA0AgBiAIaiAFQQQQkQEiAjoAACAFIAJBGHRBGHUQkgEgBRAPIAUQwQEgBkEBaiECIAYgCkgEQCACIQYMAQsLCyAFQYAHaiIGIgJCATcDACACQgA3AwggAkIANwMQIAJCADcDGCACQgA3AyAgBUGwB2oiAkGwEBASIAVB4AdqIgQgBiACED4gBUGwCGoiA0GAEBASIAVBMGoiByADQYg0KQMAIg0gBBAlIAdBAjYCKCAHQTBqIAEQEiAHIAEoAigiAjYCWEECIQYgAqwhDgNAIAZBf2oiDEEwbCAHaiELIAKsIA5+QoCAgAhVBEAgA0GAEBASIAsgAxApIAxBMGwgB2pBATYCKAsgBCALIAEQPiADQYAQEBIgBkEwbCAHaiADIA0gBBAlIAZBMGwgB2pBAjYCKCAGQQFqIgZBEEcEQCABKAIoIQJCAiEODAELCyAAIAggCmosAAAiAUEwbCAHahASIAAgAUEwbCAHaigCKCIBNgIoAkAgCUEATA0AIAGsIg4gDn5CgICACFYEQCADQYAQEBIgACADECkgAEEBNgIoCyAEIAAQQyADQYAQEBIgACADIA0gBBAlIABBAjYCKCAEIAAQQyADQYAQEBIgACADIA0gBBAlIABBAjYCKCAEIAAQQyADQYAQEBIgACADIA0gBBAlIABBAjYCKCAEIAAQQyADQYAQEBIgACADIA0gBBAlIABBAjYCKCAKQX9qIgEgCGosAAAiAkEwbCAHaigCKEGAgIAESgRAIANBgBAQEiAAIAMQKSAAQQE2AigLIAQgACACQTBsIAdqED4gA0GAEBASIAAgAyANIAQQJSAAQQI2AiggCUEETA0AA0AgBCAAEEMgA0GAEBASIAAgAyANIAQQJSAAQQI2AiggBCAAEEMgA0GAEBASIAAgAyANIAQQJSAAQQI2AiggBCAAEEMgA0GAEBASIAAgAyANIAQQJSAAQQI2AiggBCAAEEMgA0GAEBASIAAgAyANIAQQJSAAQQI2AiggAUF/aiICIAhqLAAAIgZBMGwgB2ooAihBgICABEoEQCADQYAQEBIgACADECkgAEEBNgIoCyAEIAAgBkEwbCAHahA+IANBgBAQEiAAIAMgDSAEECUgAEECNgIoIAFBAUoEQCACIQEMAQsLIANBgBAQEiAAIAMQKSAAQQE2AiggBSQDDwsgA0GAEBASIAAgAxApIABBATYCKCAFJAMLLgEBfyMDIQIjA0EwaiQDIAJBgBAQEiACQQIQkgEgAhAPIAAgASACEIQCIAIkAwsEAEEMCzEBAn8jAyEBIwNB4ABqJAMgAUEwaiICQaAPEBIgAUHQDxASIAAgAiABEL4BGiABJAMLBABBIAvpAwEFfyMDIQYjA0GQAWokAyAAIAEgAkEfdkF/aiACIAJBH3UiB3NqQQJtIgRBf2pBH3YiAxAdIABBMGoiAiABQTBqIAMQHSAAQeAAaiIFIAFB4ABqIAMQHSAAIAFBkAFqIARBAXNBf2pBH3YiAxAdIAIgAUHAAWogAxAdIAUgAUHwAWogAxAdIAAgAUGgAmogBEECc0F/akEfdiIDEB0gAiABQdACaiADEB0gBSABQYADaiADEB0gACABQbADaiAEQQNzQX9qQR92IgMQHSACIAFB4ANqIAMQHSAFIAFBkARqIAMQHSAAIAFBwARqIARBBHNBf2pBH3YiAxAdIAIgAUHwBGogAxAdIAUgAUGgBWogAxAdIAAgAUHQBWogBEEFc0F/akEfdiIDEB0gAiABQYAGaiADEB0gBSABQbAGaiADEB0gACABQeAGaiAEQQZzQX9qQR92IgMQHSACIAFBkAdqIAMQHSAFIAFBwAdqIAMQHSAAIAFB8AdqIARBB3NBf2pBH3YiBBAdIAIgAUGgCGogBBAdIAUgAUHQCGogBBAdIAYgABAXIAZBMGoiASACEBcgBkHgAGoiBCAFEBcgASABEF0gARAPIAAgBiAHQQFxIgAQHSACIAEgABAdIAUgBCAAEB0gBiQDC2MBAX8jAyECIwNBMGokAyACIAEQVSACIAIgARAWQYA7KAIAQX1GBEAgACABEF0gABAPIAAgAEEDEE0gABAPIAAgAiAAEBAFIAAgAhAXCyACEI8BIAAgAiAAEBAgABB3IAIkAwvYBQIHfw9+IwMhAyMDQdAAaiQDIANCADcDACADQgA3AwggA0IANwMQIANCADcDGCADQgA3AyAgA0IANwMoIANCADcDMCADQgA3AzggA0FAa0IANwMAIANCADcDSCADQUBrIQkDQCABIAEpAwAiCkL//////////wCDIhQ3AwAgASABKQMIIApCOId8IgpC//////////8AgyIWNwMIIAEgASkDECAKQjiHfCIKQv//////////AIMiFzcDECABIAEpAxggCkI4h3wiCkL//////////wCDIhg3AxggASABKQMgIApCOId8Igo3AyACQAJAIApCAFEEfyAYQgBRBH8gF0IAUQR/IBZCAFEEfyAUQgBRBH9BAAVBACEFDAULBUEBIQUMBAsFQQIhBQwDCwVBAyEFDAILBUEEIQUMAQshBAwBCyAFQThsIQQgBUEDdCABaikDACIKQgBSBEADQCAKQgJ/IRQgBEEBaiEEIApCAXxCA1oEQCAUIQoMAQsLCwsgByAEQQF0SARAIAYEfyAIQQF1BSACEHULIQQgAyAVQgGGIAtCN4eEIhU3A0ggCSALQgGGQv7/////////AIMgDEI3h4QiCzcDACADIAxCAYZC/v////////8AgyANQjeHhCIMNwM4IAMgDUIBhkL+/////////wCDIA5CN4eEIg03AzAgAyAOQgGGQv7/////////AIMgD0I3h4QiDjcDKCADIA9CAYZC/v////////8AgyAQQjeHhCIPNwMgIAMgEEIBhkL+/////////wCDIBFCN4eEIhA3AxggAyARQgGGQv7/////////AIMgEkI3h4QiETcDECADIBJCAYZC/v////////8AgyATQjeHhCISNwMIIAMgBEEBca0gE0IBhkL+/////////wCDhCITNwMAIAQhCCAGQQFqQQdxIQYgB0EBaiEHDAELCyAAIAMgARCNAiADJAMLBQBBwQALwRICBn8ffgJ/IwMhCCMDQdAAaiQDIAEgASkDACIJQv//////////AIMiHzcDACABIAEpAwggCUI4h3wiCUL//////////wCDIiA3AwggASABKQMQIAlCOId8IglC//////////8AgyIcNwMQIAEgASkDGCAJQjiHfCIJQv//////////AIMiGjcDGCABIAEpAyAgCUI4h3wiCUL//////////wCDIhc3AyAgASABKQMoIAlCOId8IglC//////////8AgyIUNwMoIAEgASkDMCAJQjiHfCILQv//////////AIMiGDcDMCABIAEpAzggC0I4h3wiCkL//////////wCDIhU3AzggAUFAayIGKQMAIApCOId8IglC//////////8AgyEMIAYgDDcDACABIAEpA0ggCUI4h3wiJDcDSCAICyIDIAIpAwAiITcDACADIAIpAwgiDTcDCCADIAIpAxAiDjcDECADIAIpAxgiDzcDGCADIAIpAyAiCUL//////////wCDIhA3AyAgAyAJQjiHIhE3AyggA0IANwMwIANCADcDOCADQgA3A0AgA0IANwNIAn8CQAJAICRCAFEEfyAMQgBSDQIgA0FAayEEIAogC4RC//////////8Ag0IAUg0CIANBOGohAiARIBRRBH8gECAXUQR/IA8gGlEEfyAOIBxRBH8gDSAgUQR/IB8gIVEEfyACIQUgBAUgISEKIB8hCQwHCwUgDSEKICAhCQwGCwUgDiEKIBwhCQwFCwUgDyEKIBohCQwECwUgECEKIBchCQwDCwUgESEKIBQhCQwCCwVCACEKICQhCQwBCwwCCyAJIApVDQAgACAfNwMAIAAgASkDCDcDCCAAIAEpAxA3AxAgACABKQMYNwMYIAAgASkDIDcDICADJAMPCyADQThqIQUgA0FAawshB0EAIQJCACEKQgAhCwNAIApCAYZC/v////////8AgyALQjeHhCEmIAtCAYZC/v////////8AgyASQjeHhCEjIBJCAYZC/v////////8AgyARQjeHhCEiIBFCAYZC/v////////8AgyAQQjeHhCEdIBBCAYZC/v////////8AgyAPQjeHhCEbIA9CAYZC/v////////8AgyAOQjeHhCEZIA5CAYZC/v////////8AgyANQjeHhCEWIA1CAYZC/v////////8AgyAhQjeHhCETICFCAYZC/v////////8AgyEhIAJBAWohAgJAAkAgJCAlQgGGIApCN4eEIiVRBH4gDCAmUQR+IBUgI1EEfiAYICJRBH4gFCAdUQR+IBcgG1EEfiAZIBpRBH4gFiAcUQR+IBMgIFEEfiAfICFRBH5BACEEICAhDSAcIQ4gGiEPIBchECAUIREgGCESIBUhCyAMBSAhIQkgHyEeICAhDSAcIQ4gGiEPIBchECAUIREgGCESIBUhCyAMIQoMCgsFICAhHiATIgkhDSAcIQ4gGiEPIBchECAUIREgGCESIBUhCyAMIQoMCQsFIBwhHiATIQ0gFiIJIQ4gGiEPIBchECAUIREgGCESIBUhCyAMIQoMCAsFIBohHiATIQ0gFiEOIBkiCSEPIBchECAUIREgGCESIBUhCyAMIQoMBwsFIBchHiATIQ0gFiEOIBkhDyAbIgkhECAUIREgGCESIBUhCyAMIQoMBgsFIBQhHiATIQ0gFiEOIBkhDyAbIRAgHSIJIREgGCESIBUhCyAMIQoMBQsFIBghHiATIQ0gFiEOIBkhDyAbIRAgHSERICIiCSESIBUhCyAMIQoMBAsFIBUhHiATIQ0gFiEOIBkhDyAbIRAgHSERICIhEiAjIgkhCyAMIQoMAwsFIAwhHiATIQ0gFiEOIBkhDyAbIRAgHSERICIhEiAjIQsgJiIJIQoMAgsFICUhCSAkIR4gEyENIBYhDiAZIQ8gGyEQIB0hESAiIRIgIyELICYhCgwBCyEKDAELQQFBfyAeIAlVGyEECyAEQX9KDQALIAMgJTcDSCAHICY3AwAgBSAjNwMAIAMgIjcDMCADIB03AyggAyAbNwMgIAMgGTcDGCADIBY3AxAgAyATNwMIIAMgITcDAANAIB9BACAkICVCAYciDX0gDCAlQjeGQoCAgICAgIDAAIMgJkIBh4QiDn0gFSAmQjeGQoCAgICAgIDAAIMgI0IBh4QiD30gGCAjQjeGQoCAgICAgIDAAIMgIkIBh4QiEH0gFCAiQjeGQoCAgICAgIDAAIMgHUIBh4QiEX0gFyAdQjeGQoCAgICAgIDAAIMgG0IBh4QiEn0gGiAbQjeGQoCAgICAgIDAAIMgGUIBh4QiC30gHCAZQjeGQoCAgICAgIDAAIMgFkIBh4QiCn0gICAWQjeGQoCAgICAgIDAAIMgE0IBh4QiCX0gHyATQjeGQoCAgICAgIDAAIMgIUIBh4QiIX0iJkI4h3wiJUI4h3wiI0I4h3wiIkI4h3wiHUI4h3wiG0I4h3wiGUI4h3wiFkI4h3wiE0I4h3wiHkI/iKdBAXNrrCInIB8gJkL//////////wCDhYOFIR8gICAnICAgJUL//////////wCDhYOFISAgHCAnIBwgI0L//////////wCDhYOFIRwgGiAnIBogIkL//////////wCDhYOFIRogFyAnIBcgHUL//////////wCDhYOFIRcgFCAnIBQgG0L//////////wCDhYOFIRQgGCAnIBggGUL//////////wCDhYOFIRggFSAnIBUgFkL//////////wCDhYOFIRUgDCAnIAwgE0L//////////wCDhYOFIQwgJCAnIB4gJIWDhSEkIAJBf2ohBCACQQFKBEAgBCECIAkhEyAKIRYgCyEZIBIhGyARIR0gECEiIA8hIyAOISYgDSElDAELCyADICE3AwAgAyAJNwMIIAMgCjcDECADIAs3AxggAyASNwMgIAMgETcDKCADIBA3AzAgBSAPNwMAIAcgDjcDACADIA03A0ggASAfNwMAIAEgIDcDCCABIBw3AxAgASAaNwMYIAEgFzcDICABIBQ3AyggASAYNwMwIAEgFTcDOCAGIAw3AwAgASAkNwNIIAAgHzcDACAAIAEpAwg3AwggACABKQMQNwMQIAAgASkDGDcDGCAAIAEpAyA3AyAgAyQDC2sBAn4gACkDICICIAEpAyAiA1EEQCABKQMYIgMgACkDGCICUQRAIAApAxAiAiABKQMQIgNRBEAgACkDCCICIAEpAwgiA1EEQCAAKQMAIgIgASkDACIDUQRAQQAPCwsLCwtBAUF/IAIgA1UbC7cDAQh+IAKsIgNC/////wCDIQQgACADQhyHIgMgASkDACIFQv////8AgyIGfiAEIAVCHIciBX58IgdCHIZCgICAgP////8AgyAEIAZ+fCIGQv//////////AIM3AwAgACABKQMIIghC/////wCDIgkgA34gCEIchyIIIAR+fCIKQhyGQoCAgID/////AIMgAyAFfiAHQhyHfCAGQjiIfCAEIAl+fHwiBUL//////////wCDNwMIIAAgASkDECIGQv////8AgyIHIAN+IAQgBkIchyIGfnwiCUIchkKAgICA/////wCDIAMgCH4gCkIch3wgBUI4h3wgBCAHfnx8IgVC//////////8AgzcDECAAIAMgASkDGCIHQv////8AgyIIfiAEIAdCHIciB358IgpCHIZCgICAgP////8AgyADIAZ+IAlCHId8IAVCOId8IAQgCH58fCIFQv//////////AIM3AxggACADIAEpAyAiBkL/////AIMiCH4gBCAGQhyHfnxCHIZCgICAgP////8AgyADIAd+IApCHId8IAVCOId8IAQgCH58fEL//////////wCDNwMgC1IAIAAgASkDACACKQMAfTcDACAAIAEpAwggAikDCH03AwggACABKQMQIAIpAxB9NwMQIAAgASkDGCACKQMYfTcDGCAAIAEpAyAgAikDIH03AyALBABBAAtLACAAQgA3AwAgAEIANwMIIABCADcDECAAQgA3AxggAEIANwMgIABCADcDKCAAQgA3AzAgAEIANwM4IABBQGtCADcDACAAQgA3A0gLaAAgACABKQMANwMAIAAgASkDCDcDCCAAIAEpAxA3AxAgACABKQMYNwMYIAAgASkDIEL//////////wCDNwMgIAAgASkDIEI4hzcDKCAAQgA3AzAgAEIANwM4IABCADcDQCAAQgA3A0gLmgEBA34gACAAKQMgIAGtIgOGIAApAxgiAkE4IAFrrSIEh4Q3AyAgACACIAOGQv//////////AIMgACkDECICIASHhDcDGCAAIAIgA4ZC//////////8AgyAAKQMIIgIgBIeENwMQIAAgAiADhkL//////////wCDIAApAwAiAiAEh4Q3AwggACACIAOGQv//////////AIM3AwALBABBAQvIBQEJfyMDIQcjA0HQAmokAyAHQbgCaiIMQQA2AgAgDEEgNgIEIAwgB0HQAWo2AgggB0GsAmoiCEEANgIAIAhB4QA2AgQgCCAHQeAAajYCCCAHQaACaiIJQQA2AgAgCUEgNgIEIAkgB0FAazYCCCAHQZQCaiIKQQA2AgAgCkEQNgIEIAogB0EwajYCCCAHQYgCaiILQQA2AgAgC0EQNgIEIAsgB0EgajYCCCAHQfwBaiINQQA2AgAgDUEINgIEIA0gB0HIAmo2AgggB0HwAWoiDkEANgIAIA5BIDYCBCAOIAc2AgggBSACIAwQxQEEQCAHJANBAA8LIAggAhCOASAIIAwQVCAIIABBICAJEI0BIAtBEDYCACAKQRA2AgAgByAJKAIIIgAsAAA6ADAgByAALAAQOgAgIAcgACwAAToAMSAHIAAsABE6ACEgByAALAACOgAyIAcgACwAEjoAIiAHIAAsAAM6ADMgByAALAATOgAjIAcgACwABDoANCAHIAAsABQ6ACQgByAALAAFOgA1IAcgACwAFToAJSAHIAAsAAY6ADYgByAALAAWOgAmIAcgACwABzoANyAHIAAsABc6ACcgByAALAAIOgA4IAcgACwAGDoAKCAHIAAsAAk6ADkgByAALAAZOgApIAcgACwACjoAOiAHIAAsABo6ACogByAALAALOgA7IAcgACwAGzoAKyAKKAIIIgIgACwADDoADCALKAIIIgUgACwAHDoADCACIAkoAggiACwADToADSAFIAAsAB06AA0gAiAALAAOOgAOIAUgACwAHjoADiACIAAsAA86AA8gBSAALAAfOgAPIAogAyAGELIBRQRAIAckA0EA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aiQDIApBQGsiC0HABDYCACALQcAENgIEIAsgAjYCCCAKQfgMaiICIAsQhgEgCyABEB8gCiALIABBgAFqEHwgCkH4BmoiASACIAoQSCAKQfgAaiICIAEQbyAAIAIgBiAHIAMgBCAIIAkgBRCJASEMIAokAyAMC68DAhB/B34gAEIANwMAIABCADcDCCAAQgA3AxAgAEIANwMYIABCADcDICAAQgA3AyggAEIANwMwIABBIGohBCAAQRhqIQUgAEEQaiEGIABBCGohByAAQSBqIQwgAEEYaiENIABBEGohDiAAQQhqIQ8DQAJ/IAMEfyACQQF1IQIgDiEJIA8hCiAMIQsgDQUgARB1IQIgBiEJIAchCiAEIQsgACkDKCEXIAQpAwAhFiAFKQMAIRUgBikDACEUIAcpAwAhEyAAKQMAIRIgACkDMCEYIAULIREgACAYQgGGIBdCOYeEIhg3AzAgACAXQgGGQv7/////////A4MgFkI5h4QiFzcDKCALIBZCAYZC/v////////8DgyAVQjmHhCIWNwMAIBELIBVCAYZC/v////////8DgyAUQjmHhCIVNwMAIAkgFEIBhkL+/////////wODIBNCOYeEIhQ3AwAgCiATQgGGQv7/////////A4MgEkI5h4QiEzcDACAAIAJBAXGtIBJCAYZC/v////////8Dg4QiEjcDACADQQFqQQdxIQMgCEEBaiIIQYADRw0ACwuUGwIIfyt+IwMhAyMDQfAAaiQDIAEgASkDACILQv//////////A4MiMjcDACABIAEpAwggC0I6h3wiC0L//////////wODIjE3AwggASABKQMQIAtCOod8IgtC//////////8DgyItNwMQIAEgASkDGCALQjqHfCILQv//////////A4MiJzcDGCABIAEpAyAgC0I6h3wiC0L//////////wODIiU3AyAgASABKQMoIAtCOod8IgtC//////////8DgyIjNwMoIAEgASkDMCALQjqHfCILQv//////////A4MiIjcDMCABIAEpAzggC0I6h3wiC0L//////////wODIh03AzggAUFAayIJKQMAIAtCOod8IgtC//////////8DgyEeIAkgHjcDACABIAEpA0ggC0I6h3wiDEL//////////wODIh83A0ggASABKQNQIAxCOod8Ig5C//////////8DgyIaNwNQIAEgASkDWCAOQjqHfCIOQv//////////A4MiFTcDWCABIAEpA2AgDkI6h3wiDkL//////////wODIjM3A2AgASABKQNoIA5COod8Ii43A2ggAyACKQMAIio3AwAgAyACKQMIIhE3AwggAyACKQMQIg43AxAgAyACKQMYIg83AxggAyACKQMgIhI3AyAgAyACKQMoIhM3AyggAyACKQMwIhBC//////////8DgyIUNwMwIAMgEEI6hyIQNwM4IANBQGsiBEIANwMAIARCADcDCCAEQgA3AxAgBEIANwMYIARCADcDICAEQgA3AygCQAJAAkAgLkIAUQRAIDNCAFINAiADQeAAaiEFIBVCAFINAiADQdgAaiEGIBpCAFINAiADQdAAaiEHIAsgDIRC//////////8Dg0IAUg0CIANByABqIQggECAdUQRAIBQgIlEEQCATICNRBEAgEiAlUQRAIA8gJ1EEQCAOIC1RBEAgESAxUQRAICogMlIEQCAqIQwgMiELDAkLBSARIQwgMSELDAgLBSAOIQwgLSELDAcLBSAPIQwgJyELDAYLBSASIQwgJSELDAULBSATIQwgIyELDAQLBSAUIQwgIiELDAMLBSAQIQwgHSELDAILBUIAIQwgLiELDAELDAILIAsgDFUNACAAIDI3AwAgACABKQMINwMIIAAgASkDEDcDECAAIAEpAxg3AxggACABKQMgNwMgIAAgASkDKDcDKCAAIAEpAzA3AzAgAyQDDwsgA0HYAGohBiADQdAAaiEHIANByABqIQggA0HgAGohBQtBACECQgAhCyARIQwDQAJAIAtCAYZC/v////////8DgyAWQjmHhCEwIBZCAYZC/v////////8DgyAXQjmHhCEsIBdCAYZC/v////////8DgyAYQjmHhCErIBhCAYZC/v////////8DgyANQjmHhCEpIA1CAYZC/v////////8DgyAQQjmHhCEoIBBCAYZC/v////////8DgyAUQjmHhCEmIBRCAYZC/v////////8DgyATQjmHhCEkIBNCAYZC/v////////8DgyASQjmHhCEgIBJCAYZC/v////////8DgyAPQjmHhCEcIA9CAYZC/v////////8DgyAOQjmHhCEbIA5CAYZC/v////////8DgyAMQjmHhCEZIAxCAYZC/v////////8DgyAqQjmHhCENICpCAYZC/v////////8DgyEqIAJBAWohAgJAAkAgL0IBhiALQjmHhCIvIC5RBH4gMCAzUQR+IBUgLFEEfiAaICtRBH4gHyApUQR+IB4gKFEEfiAdICZRBH4gIiAkUQR+ICAgI1EEfiAcICVRBH4gGyAnUQR+IBkgLVEEfiANIDFRBH4gKiAyUQR+IC0hDiAnIQ8gJSESICMhEyAiIRQgHSEQIB4hESAfIRggGiEXIBUhFiAxBSAqIQsgMiEhIDEhDCAtIQ4gJyEPICUhEiAjIRMgIiEUIB0hECAeIREgHyEYIBohFyAVIRYMDgsFIDEhISANIgshDCAtIQ4gJyEPICUhEiAjIRMgIiEUIB0hECAeIREgHyEYIBohFyAVIRYMDQsFIC0hISANIQwgGSILIQ4gJyEPICUhEiAjIRMgIiEUIB0hECAeIREgHyEYIBohFyAVIRYMDAsFICchISANIQwgGSEOIBsiCyEPICUhEiAjIRMgIiEUIB0hECAeIREgHyEYIBohFyAVIRYMCwsFICUhISANIQwgGSEOIBshDyAcIgshEiAjIRMgIiEUIB0hECAeIREgHyEYIBohFyAVIRYMCgsFICMhISANIQwgGSEOIBshDyAcIRIgICILIRMgIiEUIB0hECAeIREgHyEYIBohFyAVIRYMCQsFICIhISANIQwgGSEOIBshDyAcIRIgICETICQiCyEUIB0hECAeIREgHyEYIBohFyAVIRYMCAsFIB0hISANIQwgGSEOIBshDyAcIRIgICETICQhFCAmIgshECAeIREgHyEYIBohFyAVIRYMBwsFIB4hISANIQwgGSEOIBshDyAcIRIgICETICQhFCAmIRAgKCILIREgHyEYIBohFyAVIRYMBgsFIB8hISANIQwgGSEOIBshDyAcIRIgICETICQhFCAmIRAgKCERICkiCyEYIBohFyAVIRYMBQsFIBohISANIQwgGSEOIBshDyAcIRIgICETICQhFCAmIRAgKCERICkhGCArIgshFyAVIRYMBAsFIBUhISANIQwgGSEOIBshDyAcIRIgICETICQhFCAmIRAgKCERICkhGCArIRcgLCILIRYMAwsFIDAhCyAzISEgDSEMIBkhDiAbIQ8gHCESICAhEyAkIRQgJiEQICghESApIRggKyEXICwhFgwCCwUgLyELIC4hISANIQwgGSEOIBshDyAcIRIgICETICQhFCAmIRAgKCERICkhGCArIRcgLCEWDAELIQwMAQsgISALVw0BCyAwIQsgESENDAELCyADIC83A2ggBSAwNwMAIAYgLDcDACAHICs3AwAgCCApNwMAIAQgKDcDACADICY3AzggAyAkNwMwIAMgIDcDKCADIBw3AyAgAyAbNwMYIAMgGTcDECADIA03AwggAyAqNwMAIAEpAwAhDCABKQMIIQ4gASkDECEPIDMhCwNAIAxBACAuIC9CAYciEn0gCyAvQjmGQoCAgICAgICAAoMgMEIBh4QiE30gFSAwQjmGQoCAgICAgICAAoMgLEIBh4QiFH0gGiAsQjmGQoCAgICAgICAAoMgK0IBh4QiEH0gHyArQjmGQoCAgICAgICAAoMgKUIBh4QiEX0gHiApQjmGQoCAgICAgICAAoMgKEIBh4QiGH0gHSAoQjmGQoCAgICAgICAAoMgJkIBh4QiF30gIiAmQjmGQoCAgICAgICAAoMgJEIBh4QiFn0gIyAkQjmGQoCAgICAgICAAoMgIEIBh4QiIX0gJSAgQjmGQoCAgICAgICAAoMgHEIBh4QiIH0gJyAcQjmGQoCAgICAgICAAoMgG0IBh4QiHH0gDyAbQjmGQoCAgICAgICAAoMgGUIBh4QiG30gDiAZQjmGQoCAgICAgICAAoMgDUIBh4QiGX0gDCANQjmGQoCAgICAgICAAoMgKkIBh4QiKn0iJEI6h3wiJkI6h3wiKEI6h3wiKUI6h3wiK0I6h3wiLUI6h3wiLEI6h3wiMUI6h3wiMEI6h3wiL0I6h3wiMkI6h3wiM0I6h3wiNEI6h3wiNUI/iKdBAXNrrCINIAwgJEL//////////wODhYOFIQwgDiANIA4gJkL//////////wODhYOFIQ4gDyANIA8gKEL//////////wODhYOFIQ8gJyANICcgKUL//////////wODhYOFIScgJSANICUgK0L//////////wODhYOFISUgIyANICMgLUL//////////wODhYOFISMgIiANICIgLEL//////////wODhYOFISIgHSANIB0gMUL//////////wODhYOFIR0gHiANIB4gMEL//////////wODhYOFIR4gHyANIB8gL0L//////////wODhYOFIR8gGiANIBogMkL//////////wODhYOFIRogFSANIBUgM0L//////////wODhYOFIRUgCyANIAsgNEL//////////wODhYOFIQsgLiANIC4gNYWDhSEuIAJBf2ohCiACQQFKBEAgCiECIBkhDSAbIRkgHCEbICAhHCAhISAgFiEkIBchJiAYISggESEpIBAhKyAUISwgEyEwIBIhLwwBCwsgAyAqNwMAIAMgGTcDCCADIBs3AxAgAyAcNwMYIAMgIDcDICADICE3AyggAyAWNwMwIAMgFzcDOCAEIBg3AwAgCCARNwMAIAcgEDcDACAGIBQ3AwAgBSATNwMAIAMgEjcDaCABIAw3AwAgASAONwMIIAEgDzcDECABICc3AxggASAlNwMgIAEgIzcDKCABICI3AzAgASAdNwM4IAkgHjcDACABIB83A0ggASAaNwNQIAEgFTcDWCABIAs3A2AgASAuNwNoIAAgDDcDACAAIAEpAwg3AwggACABKQMQNwMQIAAgASkDGDcDGCAAIAEpAyA3AyAgACABKQMoNwMoIAAgASkDMDcDMCADJAMLjwEBAn4gACkDMCICIAEpAzAiA1EEQCABKQMoIgMgACkDKCICUQRAIAApAyAiAiABKQMgIgNRBEAgACkDGCICIAEpAxgiA1EEQCAAKQMQIgIgASkDECIDUQRAIAApAwgiAiABKQMIIgNRBEAgACkDACICIAEpAwAiA1EEQEEADwsLCwsLCwtBAUF/IAIgA1UbC3IAIAAgASkDACACKQMAfTcDACAAIAEpAwggAikDCH03AwggACABKQMQIAIpAxB9NwMQIAAgASkDGCACKQMYfTcDGCAAIAEpAyAgAikDIH03AyAgACABKQMoIAIpAyh9NwMoIAAgASkDMCACKQMwfTcDMAuRAgEJfyMDIQgjA0GAE2okA0HgBEGBASAARSIPGyIJIAVKBEAgCCQDQX4PCyAHIAQoABwQigEiBzYCACAJIAdBtARtIgAgByAAQbQEbGtBAEdqQcAEbCIKaiAFSgRAIAgkA0F+DwsgCEFAayEAIAhB+AxqIQUgCEH4BmohCyAIQfgAaiEMIARBIGohDSAEQQxqIQ4gBCAJaiEJIA8EfyAAQcAENgIAIABBwAQ2AgQgACANNgIIIAUgABCGASAAIAIQHyAIIAAgAUGAAWoQfCALIAUg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"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(1),a=function(){function e(t,n,a){s(this,e);var o=new r.a(t);this.wasm=t,this.utils=o,this.context=t._NewCryptoContext(null,0),this.scratchBuf=new i.a(t),this.sk=n,this.skBuf=o.arrayToBuf(n),this.symKey=a,this.symKeyBuf=o.arrayToBuf(a)}return c(e,[{key:"clearBuf",value:function(){this.scratchBuf.clear()}},{key:"free",value:function(){if(this.context){var e=this.wasm;e._FreeCryptoContext(this.context),this.scratchBuf.free(),e._free(this.skBuf.ptr),e._free(this.symKeyBuf.ptr),this.context=null,this.scratchBuf=null,this.sk=null,this.skBuf=null,this.symKey=null,this.symKeyBuf=null,this.utils=null,this.wasm=null}}}]),e}()},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(15),t.createHash=t.Hash=n(16),t.createHmac=t.Hmac=n(17);var r=n(18),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=n(19);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(20);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var A=n(21);t.DiffieHellmanGroup=A.DiffieHellmanGroup,t.createDiffieHellmanGroup=A.createDiffieHellmanGroup,t.getDiffieHellman=A.getDiffieHellman,t.createDiffieHellman=A.createDiffieHellman,t.DiffieHellman=A.DiffieHellman;var c=n(22);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=n(23);var u=n(24);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var f=n(25);t.randomFill=f.randomFill,t.randomFillSync=f.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(1),a=function(){function e(t,n,a,o,A){s(this,e);var c=new r.a(t),u=r.a.randomBytes(t._EMS_SEED_SIZE_()),f=c.arrayToSmartBuf(u);this.wasm=t,this.utils=c,this.context=t._NewCryptoContext(f.ptr,f.len),this.iv=A,this.nextBlockIV=new Uint8Array(A),this.pk=n,this.pkBuf=c.arrayToBuf(n),this.scratchBuf=new i.a(t),this.sk=a,this.skBuf=c.arrayToBuf(a),this.symKey=o,this.symKeyBuf=c.arrayToBuf(o)}return c(e,[{key:"clearBuf",value:function(){this.scratchBuf.clear()}},{key:"free",value:function(){if(this.context){var e=this.wasm;e._FreeCryptoContext(this.context),e._free(this.pkBuf.ptr),this.scratchBuf.free(),e._free(this.symKeyBuf.ptr),this.context=null,this.iv=null,this.nextBlockIV=null,this.pk=null,this.pkBuf=null,this.scratchBuf=null,this.sk=null,this.skBuf=null,this.symKey=null,this.symKeyBuf=null,this.wasm=null,this.utils=null}}},{key:"generateNextBlockIV",value:function(){for(var e=this.nextBlockIV.length-1;255==this.nextBlockIV[e]++;e--);return new Uint8Array(this.nextBlockIV)}}]),e}()},function(e,t,n){"use strict";(function(e,r){var i,a=(i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var a,o=void 0!==(t=t||{})?t:{},s={};for(a in o)o.hasOwnProperty(a)&&(s[a]=o[a]);o.arguments=[],o.thisProgram="./this.program",o.quit=function(e,t){throw t},o.preRun=[],o.postRun=[];var A,c,f=!1,h=!1;f="object"==("undefined"==typeof window?"undefined":u(window)),h="function"==typeof importScripts,A="object"==u(e)&&!f&&!h,c=!f&&!A&&!h;var d,l,g="";A?(g=r+"/",o.read=function(e,t){var r;return d||(d=n(26)),l||(l=n(27)),e=l.normalize(e),r=d.readFileSync(e),t?r:r.toString()},o.readBinary=function(e){var t=o.read(e,!0);return t.buffer||(t=new Uint8Array(t)),m(t.buffer),t},e.argv.length>1&&(o.thisProgram=e.argv[1].replace(/\\/g,"/")),o.arguments=e.argv.slice(2),e.on("uncaughtException",(function(e){if(!(e instanceof $))throw e})),e.on("unhandledRejection",te),o.quit=function(t){e.exit(t)},o.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(o.read=function(e){return read(e)}),o.readBinary=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(m("object"==u(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?o.arguments=scriptArgs:void 0!==arguments&&(o.arguments=arguments),"function"==typeof quit&&(o.quit=function(e){quit(e)})):(f||h)&&(h?g=self.location.href:document.currentScript&&(g=document.currentScript.src),i&&(g=i),g=0!==g.indexOf("blob:")?g.substr(0,g.lastIndexOf("/")+1):"",o.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},h&&(o.readBinary=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),o.readAsync=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)},o.setWindowTitle=function(e){document.title=e});var p=o.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),y=o.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||p);for(a in s)s.hasOwnProperty(a)&&(o[a]=s[a]);s=void 0;var I,b={"f64-rem":function(e,t){return e%t},debugger:function(){}};new Array(0),"object"!=("undefined"==typeof WebAssembly?"undefined":u(WebAssembly))&&y("no native wasm support detected");var C=!1;function m(e,t){e||te("Assertion failed: "+t)}var E,B,v,w,Q,S,M,k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function D(e,t,n){for(var r=t+n,i=t;e[i]&&!(i>=r);)++i;if(i-t>16&&e.subarray&&k)return k.decode(e.subarray(t,i));for(var a="";t<i;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var A=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|A:(7&o)<<18|s<<12|A<<6|63&e[t++])<65536)a+=String.fromCharCode(o);else{var c=o-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&o)<<6|s)}else a+=String.fromCharCode(o)}return a}function _(e,t){return e%t>0&&(e+=t-e%t),e}function x(){o.HEAP8=B=new Int8Array(E),o.HEAP16=w=new Int16Array(E),o.HEAP32=Q=new Int32Array(E),o.HEAPU8=v=new Uint8Array(E),o.HEAPU16=new Uint16Array(E),o.HEAPU32=new Uint32Array(E),o.HEAPF32=S=new Float32Array(E),o.HEAPF64=M=new Float64Array(E)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var R=o.TOTAL_MEMORY||16777216;function N(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?o.dynCall_v(n):o.dynCall_vi(n,t.arg):n(void 0===t.arg?null:t.arg)}else t()}}R<5242880&&y("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+R+"! (TOTAL_STACK=5242880)"),o.buffer?E=o.buffer:"object"==("undefined"==typeof WebAssembly?"undefined":u(WebAssembly))&&"function"==typeof WebAssembly.Memory?(I=new WebAssembly.Memory({initial:R/65536}),E=I.buffer):E=new ArrayBuffer(R),x(),Q[2336]=5252256;var F=[],H=[],L=[],U=[],G=!1,O=0,T=null,P=null;o.preloadedImages={},o.preloadedAudios={};var j="data:application/octet-stream;base64,";function Y(e){return String.prototype.startsWith?e.startsWith(j):0===e.indexOf(j)}var K,q="elv-crypto.wasm";function J(){try{if(o.wasmBinary)return new Uint8Array(o.wasmBinary);if(o.readBinary)return o.readBinary(q);throw"both async and sync fetching of the wasm failed"}catch(e){te(e)}}function z(e){var t={env:e,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:b};function n(e,t){var n=e.exports;o.asm=n,function(e){if(O--,o.monitorRunDependencies&&o.monitorRunDependencies(O),0==O&&(null!==T&&(clearInterval(T),T=null),P)){var t=P;P=null,t()}}()}if(O++,o.monitorRunDependencies&&o.monitorRunDependencies(O),o.instantiateWasm)try{return o.instantiateWasm(t,n)}catch(e){return y("Module.instantiateWasm callback failed with error: "+e),!1}function r(e){n(e.instance)}function i(e){(o.wasmBinary||!f&&!h||"function"!=typeof fetch?new Promise((function(e,t){e(J())})):fetch(q,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+q+"'";return e.arrayBuffer()})).catch((function(){return J()}))).then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(e){y("failed to asynchronously prepare wasm: "+e),te(e)}))}return o.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||Y(q)||"function"!=typeof fetch?i(r):WebAssembly.instantiateStreaming(fetch(q,{credentials:"same-origin"}),t).then(r,(function(e){y("wasm streaming compile failed: "+e),y("falling back to ArrayBuffer instantiation"),i(r)})),{}}Y(q)||(K=q,q=o.locateFile?o.locateFile(K,g):g+K),o.asm=function(e,t,n){return t.memory=I,t.table=new WebAssembly.Table({initial:10,maximum:10,element:"anyfunc"}),t.__memory_base=1024,t.__table_base=0,z(t)};var V={buffers:[null,[],[]],printChar:function(e,t){var n=V.buffers[e];0===t||10===t?((1===e?p:y)(D(n,0)),n.length=0):n.push(t)},varargs:0,get:function(e){return V.varargs+=4,Q[V.varargs-4>>2]},getStr:function(){var e;return(e=V.get())?D(v,e,void 0):""},get64:function(){var e=V.get();return V.get(),e},getZero:function(){V.get()}};function Z(){return B.length}var W={c:te,e:function(e){return o.___errno_location&&(Q[o.___errno_location()>>2]=e),e},k:function(e,t){V.varargs=t;try{return V.getStreamFromFD(),V.get(),V.get(),V.get(),V.get(),0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||te(e),-e.errno}},d:function(e,t){V.varargs=t;try{for(var n=V.get(),r=V.get(),i=V.get(),a=0,o=0;o<i;o++){for(var s=Q[r+8*o>>2],A=Q[r+(8*o+4)>>2],c=0;c<A;c++)V.printChar(n,v[s+c]);a+=A}return a}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||te(e),-e.errno}},j:function(e,t){V.varargs=t;try{return V.getStreamFromFD(),0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||te(e),-e.errno}},i:Z,h:function(e,t,n){v.set(v.subarray(t,t+n),e)},g:function(e){var t=Z();if(e>2147418112)return!1;for(var n=Math.max(t,16777216);n<e;)n=n<=536870912?_(2*n,65536):Math.min(_((3*n+2147483648)/4,65536),2147418112);return!!function(e){e=_(e,65536);var t=E.byteLength;try{return-1!==I.grow((e-t)/65536)&&(E=I.buffer,!0)}catch(e){return!1}}(n)&&(x(),!0)},b:function(e){var t=Date.now()/1e3|0;return e&&(Q[e>>2]=t),t},f:function(e){te("OOM")},a:9344},X=o.asm({},W,E);function $(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function ee(e){function t(){o.calledRun||(o.calledRun=!0,C||(G||(G=!0,N(H)),N(L),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)e=o.postRun.shift(),U.unshift(e);var e;N(U)}()))}e=e||o.arguments,O>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)e=o.preRun.shift(),F.unshift(e);var e;N(F)}(),O>0||o.calledRun||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),t()}),1)):t()))}function te(e){throw o.onAbort&&o.onAbort(e),void 0!==e?(p(e),y(e),e=JSON.stringify(e)):e="",C=!0,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}if(o.asm=X,o._CalcEncByteCount=function(){return o.asm.l.apply(null,arguments)},o._CalcEncByteCountFromTargetH=function(){return o.asm.m.apply(null,arguments)},o._CalcEncByteCountH=function(){return o.asm.n.apply(null,arguments)},o._CalcEncECIESByteCount=function(){return o.asm.o.apply(null,arguments)},o._CalcTargetByteCountH=function(){return o.asm.p.apply(null,arguments)},o._DecryptAES=function(){return o.asm.q.apply(null,arguments)},o._DecryptECIES=function(){return o.asm.r.apply(null,arguments)},o._DecryptH=function(){return o.asm.s.apply(null,arguments)},o._DecryptPrimary=function(){return o.asm.t.apply(null,arguments)},o._DecryptTarget=function(){return o.asm.u.apply(null,arguments)},o._DeriveTargetKeys=function(){return o.asm.v.apply(null,arguments)},o._EMS_AES_KEY_SIZE_=function(){return o.asm.w.apply(null,arguments)},o._EMS_CRYPTO_TYPE_PRIMARY_=function(){return o.asm.x.apply(null,arguments)},o._EMS_CRYPTO_TYPE_TARGET_=function(){return o.asm.y.apply(null,arguments)},o._EMS_ECIES_PK_KEY_SIZE_=function(){return o.asm.z.apply(null,arguments)},o._EMS_ECIES_SK_KEY_SIZE_=function(){return o.asm.A.apply(null,arguments)},o._EMS_IV_SIZE_=function(){return o.asm.B.apply(null,arguments)},o._EMS_PRIMARY_BLOCK_KEY_SIZE_=function(){return o.asm.C.apply(null,arguments)},o._EMS_PRIMARY_PK_KEY_SIZE_=function(){return o.asm.D.apply(null,arguments)},o._EMS_RE_ENCRYPTION_KEY_SIZE_=function(){return o.asm.E.apply(null,arguments)},o._EMS_SECRET_KEY_SIZE_=function(){return o.asm.F.apply(null,arguments)},o._EMS_SEED_SIZE_=function(){return o.asm.G.apply(null,arguments)},o._EMS_TAG_SIZE_=function(){return o.asm.H.apply(null,arguments)},o._EMS_TARGET_BLOCK_KEY_SIZE_=function(){return o.asm.I.apply(null,arguments)},o._EMS_TARGET_PK_KEY_SIZE_=function(){return o.asm.J.apply(null,arguments)},o._EncryptAES=function(){return o.asm.K.apply(null,arguments)},o._EncryptECIES=function(){return o.asm.L.apply(null,arguments)},o._EncryptPrimary=function(){return o.asm.M.apply(null,arguments)},o._EncryptPrimaryH=function(){return o.asm.N.apply(null,arguments)},o._FreeCryptoContext=function(){return o.asm.O.apply(null,arguments)},o._GeneratePrimaryKeys=function(){return o.asm.P.apply(null,arguments)},o._GenerateReEncryptionKey=function(){return o.asm.Q.apply(null,arguments)},o._GenerateSymmetricKeys=function(){return o.asm.R.apply(null,arguments)},o._GenerateTargetKeys=function(){return o.asm.S.apply(null,arguments)},o._NewCryptoContext=function(){return o.asm.T.apply(null,arguments)},o._ReEncryptBlockKey=function(){return o.asm.U.apply(null,arguments)},o._ReEncryptH=function(){return o.asm.V.apply(null,arguments)},o.___errno_location=function(){return o.asm.W.apply(null,arguments)},o._free=function(){return o.asm.X.apply(null,arguments)},o._malloc=function(){return o.asm.Y.apply(null,arguments)},o.asm=X,o.getValue=function(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return B[e>>0];case"i16":return w[e>>1];case"i32":case"i64":return Q[e>>2];case"float":return S[e>>2];case"double":return M[e>>3];default:te("invalid type for getValue: "+t)}return null},o.writeArrayToMemory=function(e,t){B.set(e,t)},o.then=function(e){if(o.calledRun)e(o);else{var t=o.onRuntimeInitialized;o.onRuntimeInitialized=function(){t&&t(),e(o)}}return o},$.prototype=new Error,$.prototype.constructor=$,P=function e(){o.calledRun||ee(),o.calledRun||(P=e)},o.run=ee,o.abort=te,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return o.noExitRuntime=!0,ee(),t});t.a=a}).call(this,n(4),"/")},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"default",(function(){return d}));var r=n(5),i=n(6),a=n(8),o=n(0),A=n(9),u=n(2),f=n.n(u),h=n(1),d=function(){function t(){s(this,t),this.initResolve=null,this.utils=null,this.wasm=null}return c(t,[{key:"init",value:function(){var t=this,n=r.a["ElvCrypto.wasm"];return Object(A.a)({locateFile:function(e){return e.endsWith(".wasm")?"data:application/octet-stream;base64,"+n:e},readBinary:function(t){return e.from(n,"base64")}}).then((function(e){t.wasm=e,t.utils=new o.a(e),t.AES_KEY_SIZE=e._EMS_AES_KEY_SIZE_(),t.CRYPTO_TYPE_TARGET=e._EMS_CRYPTO_TYPE_TARGET_(),t.CRYPTO_TYPE_PRIMARY=e._EMS_CRYPTO_TYPE_PRIMARY_(),t.TARGET_BLOCK_KEY_SIZE=e._EMS_TARGET_BLOCK_KEY_SIZE_(),t.TARGET_PK_KEY_SIZE=e._EMS_TARGET_PK_KEY_SIZE_(),t.ECIES_PK_KEY_SIZE=e._EMS_ECIES_PK_KEY_SIZE_(),t.ECIES_SK_KEY_SIZE=e._EMS_ECIES_SK_KEY_SIZE_(),t.IV_SIZE=e._EMS_IV_SIZE_(),t.PRIMARY_BLOCK_KEY_SIZE=e._EMS_PRIMARY_BLOCK_KEY_SIZE_(),t.PRIMARY_PK_KEY_SIZE=e._EMS_PRIMARY_PK_KEY_SIZE_(),t.RE_ENCRYPTION_KEY_SIZE=e._EMS_RE_ENCRYPTION_KEY_SIZE_(),t.SECRET_KEY_SIZE=e._EMS_SECRET_KEY_SIZE_(),t.SEED_SIZE=e._EMS_SEED_SIZE_(),t.TAG_SIZE=e._EMS_TAG_SIZE_(),t.ELV_E_INCOMPLETE_BLOCK=-2,t.initResolve&&t.initResolve(t)})),new Promise((function(e){t.wasm?e(t):t.initResolve=e}))}},{key:"calcEncByteCount",value:function(e){return this.wasm._CalcEncByteCount(e)}},{key:"calcEncByteCountH",value:function(e,t){return this.wasm._CalcEncByteCountH(e,t)}},{key:"calcEncByteCountFromTargetH",value:function(e){return this.wasm._CalcEncByteCountFromTargetH(e)}},{key:"calcTargetByteCountH",value:function(e){return this.wasm._CalcTargetByteCountH(e)}},{key:"calcEncECIESByteCount",value:function(e){return this.wasm._CalcEncECIESByteCount(e)}},{key:"encryptECIES",value:function(e,t){if(t.length!==this.ECIES_PK_KEY_SIZE)throw new Error("encryptECIES() failed: Expected publicKey length\n ".concat(this.ECIES_PK_KEY_SIZE,", not ").concat(t.length));var n=this.wasm,r=this.utils,i=o.a.randomBytes(this.SEED_SIZE),a=r.arrayToSmartBuf(e),s=r.arrayToSmartBuf(t),A=r.arrayToSmartBuf(i),c=this.calcEncECIESByteCount(a.len),u=r.smartMalloc(c),f=r.smartMalloc(this.ECIES_PK_KEY_SIZE),h=r.smartMalloc(this.TAG_SIZE),d=n._EncryptECIES(A.ptr,A.len,s.ptr,a.ptr,a.len,u,c,f,h);if(0!==d)throw new Error("_EncryptECIES failed with error code ".concat(d));return{data:new Uint8Array(n.HEAPU8.buffer,u,c),ephemeralKey:new Uint8Array(n.HEAPU8.buffer,f,this.ECIES_PK_KEY_SIZE).slice(0),tag:new Uint8Array(n.HEAPU8.buffer,h,this.TAG_SIZE).slice(0)}}},{key:"decryptECIES",value:function(e,t,n,r){if(t.length!==this.ECIES_SK_KEY_SIZE)throw new Error("decryptECIES() failed: Expected secretKey length\n ".concat(this.ECIES_SK_KEY_SIZE,", not ").concat(t.length));if(n.length!==this.ECIES_PK_KEY_SIZE)throw new Error("decryptECIES() failed: Expected ephemeralKey length\n ".concat(this.ECIES_PK_KEY_SIZE,", not ").concat(n.length));if(r.length!==this.TAG_SIZE)throw new Error("decryptECIES() failed: Expected tag length\n ".concat(this.TAG_SIZE,", not ").concat(r.length));var i=this.wasm,a=this.utils,o=a.arrayToSmartBuf(e),s=a.arrayToSmartBuf(t),A=a.arrayToSmartBuf(n),c=a.arrayToSmartBuf(r),u=o.len,f=a.smartMalloc(u),h=i._DecryptECIES(A.ptr,o.ptr,o.len,c.ptr,s.ptr,f,u);if(-1===h)throw new Error("_DecryptECIES failed");return new Uint8Array(i.HEAPU8.buffer,f,h)}},{key:"generateTargetKeys",value:function(){var e=this.wasm,t=this.utils,n=o.a.randomBytes(this.SEED_SIZE),r=t.arrayToSmartBuf(n),i=t.smartMalloc(this.SECRET_KEY_SIZE),a=t.smartMalloc(this.TARGET_PK_KEY_SIZE),s=e._GenerateTargetKeys(r.ptr,r.len,i,a);if(0!==s)throw new Error("_GenerateTargetKeys failed with error code ".concat(s));return{secretKey:new Uint8Array(e.HEAPU8.buffer,i,this.SECRET_KEY_SIZE).slice(0),publicKey:new Uint8Array(e.HEAPU8.buffer,a,this.TARGET_PK_KEY_SIZE).slice(0)}}},{key:"generatePrimaryKeys",value:function(){var e=this.wasm,t=this.utils,n=o.a.randomBytes(this.SEED_SIZE),r=t.arrayToSmartBuf(n),i=t.smartMalloc(this.SECRET_KEY_SIZE),a=t.smartMalloc(this.PRIMARY_PK_KEY_SIZE),s=e._GeneratePrimaryKeys(r.ptr,r.len,i,a);if(0!==s)throw new Error("_GeneratePrimaryKeys failed with error code ".concat(s));return{secretKey:new Uint8Array(e.HEAPU8.buffer,i,this.SECRET_KEY_SIZE).slice(0),publicKey:new Uint8Array(e.HEAPU8.buffer,a,this.PRIMARY_PK_KEY_SIZE).slice(0)}}},{key:"generateReEncryptionKey",value:function(e,t){if(e.length!==this.SECRET_KEY_SIZE)throw new Error("generateReEncryptionKey() failed: Expected primarySK\n length ".concat(this.SECRET_KEY_SIZE,", not ").concat(e.length));if(t.length!==this.TARGET_PK_KEY_SIZE)throw new Error("generateReEncryptionKey() failed: Expected targetPK\n length ".concat(this.TARGET_PK_KEY_SIZE,", not ").concat(t.length));var n=this.wasm,r=this.utils,i=r.arrayToSmartBuf(e),a=r.arrayToSmartBuf(t),o=r.smartMalloc(this.RE_ENCRYPTION_KEY_SIZE),s=n._GenerateReEncryptionKey(i.ptr,a.ptr,o);if(0!==s)throw new Error("_GenerateReEncryptionKey failed with error code ".concat(s));return new Uint8Array(n.HEAPU8.buffer,o,this.RE_ENCRYPTION_KEY_SIZE).slice(0)}},{key:"generateSymmetricKey",value:function(){var e=this.wasm,t=this.utils,n=o.a.randomBytes(this.SEED_SIZE),r=t.arrayToSmartBuf(n),i=t.smartMalloc(this.AES_KEY_SIZE),a=t.smartMalloc(this.IV_SIZE),s=e._GenerateSymmetricKeys(r.ptr,r.len,i,a);if(0!==s)throw new Error("_GenerateSymmetricKeys failed with error code ".concat(s));return{key:new Uint8Array(e.HEAPU8.buffer,i,this.AES_KEY_SIZE).slice(0),iv:new Uint8Array(e.HEAPU8.buffer,a,this.IV_SIZE).slice(0)}}},{key:"newPrimaryContext",value:function(e,t,n){if(e&&e.length!==this.PRIMARY_PK_KEY_SIZE)throw new Error("newPrimaryContext() failed: Expected publicKey\n length ".concat(this.PRIMARY_PK_KEY_SIZE,", not ").concat(e.length));if(t&&t.length!==this.SECRET_KEY_SIZE)throw new Error("newPrimaryContext() failed: Expected secretKey\n length ".concat(this.SECRET_KEY_SIZE,", not ").concat(t.length));if(n.length!==this.AES_KEY_SIZE)throw new Error("newPrimaryContext() failed: Expected\n symmetricKey length ".concat(this.AES_KEY_SIZE,", not ").concat(n.length));var r=this.generateSymmetricKey();return new a.a(this.wasm,e,t,n,r.iv)}},{key:"encryptPrimary",value:function(e,t,n){if(n.length!==this.IV_SIZE)throw new Error("encryptPrimary() failed: Expected iv\n length ".concat(this.IV_SIZE,", not ").concat(n.length));if(0!==e.scratchBuf.len)throw new Error("encryptPrimary() failed: Scratch buffer is not empty");var r=this.wasm,i=this.utils,a=i.arrayToSmartBuf(n),o=i.arrayToSmartBuf(t),s=this.calcEncByteCount(o.len);e.scratchBuf.ensureSize(s);var A=i.smartMalloc(this.TAG_SIZE),c=i.smartMalloc(this.PRIMARY_BLOCK_KEY_SIZE),u=r._EncryptPrimary(e.context,e.pkBuf.ptr,e.symKeyBuf.ptr,a.ptr,o.ptr,o.len,e.scratchBuf.ptr,s,A,c);if(0!==u)throw new Error("_EncryptPrimary failed with error code ".concat(u));return{blockKey:new Uint8Array(r.HEAPU8.buffer,c,this.PRIMARY_BLOCK_KEY_SIZE).slice(0),data:new Uint8Array(r.HEAPU8.buffer,e.scratchBuf.ptr,s),tag:new Uint8Array(r.HEAPU8.buffer,A,this.TAG_SIZE).slice(0)}}},{key:"encryptPrimaryH",value:function(e,t){if(0!==e.scratchBuf.len)throw new Error("encryptPrimaryH() failed: Scratch buffer is not empty");var n=this.wasm,r=this.utils,i=e.generateNextBlockIV(),a=r.arrayToSmartBuf(i),o=r.arrayToSmartBuf(t),s=this.calcEncByteCountH(this.CRYPTO_TYPE_PRIMARY,o.len);e.scratchBuf.ensureSize(s);var A=n._EncryptPrimaryH(e.context,e.pkBuf.ptr,e.symKeyBuf.ptr,a.ptr,o.ptr,o.len,e.scratchBuf.ptr);if(0!==A)throw new Error("_EncryptPrimaryH failed with error code ".concat(A));return new Uint8Array(n.HEAPU8.buffer,e.scratchBuf.ptr,s)}},{key:"decryptPrimary",value:function(e,t,n,r,i,a){if(n.length!==this.TAG_SIZE)throw new Error("decryptPrimary() failed: Expected tag\n length ".concat(this.TAG_SIZE,", not ").concat(n.length));if(r.length!==this.PRIMARY_BLOCK_KEY_SIZE)throw new Error("decryptPrimary() failed: Expected blockKey\n length ".concat(this.PRIMARY_BLOCK_KEY_SIZE,", not ").concat(r.length));if(i.length!==this.IV_SIZE)throw new Error("decryptPrimary() failed: Expected iv\n length ".concat(this.IV_SIZE,", not ").concat(i.length));if(0!==e.scratchBuf.len)throw new Error("decryptPrimary() failed: Scratch buffer is not empty");var o=this.wasm,s=this.utils,A=s.arrayToSmartBuf(t),c=s.arrayToSmartBuf(r),u=s.arrayToSmartBuf(i),f=s.arrayToSmartBuf(n);e.scratchBuf.ensureSize(a);var h=o._DecryptPrimary(e.context,e.skBuf.ptr,c.ptr,e.symKeyBuf.ptr,u.ptr,f.ptr,A.ptr,A.len,e.scratchBuf.ptr,a);if(0!==h)throw new Error("_DecryptPrimary failed with error code ".concat(h));return new Uint8Array(o.HEAPU8.buffer,e.scratchBuf.ptr,a)}},{key:"reEncryptH",value:function(e,t,n){if(t.length!==this.RE_ENCRYPTION_KEY_SIZE)throw new Error("reEncryptBlockKey() failed: Expected reEncKey\n length ".concat(this.RE_ENCRYPTION_KEY_SIZE,", not ").concat(t.length));var r=this.wasm,i=this.utils,a=i.arrayToSmartBuf(t),o=i.arrayToSmartBuf(n);e.ensureSize(this.calcTargetByteCountH(o.len));var s=i.smartMalloc(4),A=r._ReEncryptH(a.ptr,o.ptr,o.len,e.ptr,s);if(A===this.ELV_E_INCOMPLETE_BLOCK)throw new Error("ELV_E_INCOMPLETE_BLOCK");if(0!==A)throw new Error("_ReEncryptH failed with error code ".concat(A));var c=r.getValue(s,"i32");return new Uint8Array(r.HEAPU8.buffer,e.ptr,c)}},{key:"decryptH",value:function(e,t,n){if(e!==this.CRYPTO_TYPE_TARGET&&e!==this.CRYPTO_TYPE_PRIMARY)throw new Error("decryptH() failed: Invalid type ".concat(e));if(0!==t.scratchBuf.len)throw new Error("decryptH() failed: Scratch buffer is not empty");var r=this.wasm,i=this.utils,a=i.arrayToSmartBuf(n);t.scratchBuf.ensureSize(a.len);var o=i.smartMalloc(4),s=r._DecryptH(e,t.context,t.skBuf.ptr,t.symKeyBuf.ptr,a.ptr,a.len,t.scratchBuf.ptr,o);if(s===this.ELV_E_INCOMPLETE_BLOCK)throw new Error("ELV_E_INCOMPLETE_BLOCK");if(0!==s)throw new Error("_DecryptH failed with error code ".concat(s));var A=r.getValue(o,"i32");return new Uint8Array(r.HEAPU8.buffer,t.scratchBuf.ptr,A)}},{key:"reEncryptBlockKey",value:function(e,t){if(e.length!==this.RE_ENCRYPTION_KEY_SIZE)throw new Error("reEncryptBlockKey() failed: Expected reEncKey\n length ".concat(this.RE_ENCRYPTION_KEY_SIZE,", not ").concat(e.length));if(t.length!==this.PRIMARY_BLOCK_KEY_SIZE)throw new Error("reEncryptBlockKey() failed: Expected blockKey\n length ".concat(this.PRIMARY_BLOCK_KEY_SIZE,", not ").concat(t.length));var n=this.wasm,r=this.utils,i=r.arrayToSmartBuf(e),a=r.arrayToSmartBuf(t),o=r.smartMalloc(this.TARGET_BLOCK_KEY_SIZE),s=n._ReEncryptBlockKey(i.ptr,a.ptr,o);if(0!==s)throw new Error("_ReEncryptBlockKey failed with error code ".concat(s));return new Uint8Array(n.HEAPU8.buffer,o,this.TARGET_BLOCK_KEY_SIZE).slice(0)}},{key:"newTargetDecryptionContext",value:function(e,t){if(e.length!==this.SECRET_KEY_SIZE)throw new Error("newTargetDecryptionContext() failed: Expected\n secretKey length ".concat(this.SECRET_KEY_SIZE,", not ").concat(e.length));if(t.length!==this.AES_KEY_SIZE)throw new Error("newTargetDecryptionContext() failed: Expected\n symmetricKey length ".concat(this.AES_KEY_SIZE,", not ").concat(t.length));return new i.a(this.wasm,e,t)}},{key:"decryptTarget",value:function(e,t,n,r,i,a){if(n.length!==this.TAG_SIZE)throw new Error("decryptTarget() failed: Expected tag\n length ".concat(this.TAG_SIZE,", not ").concat(n.length));if(r.length!==this.TARGET_BLOCK_KEY_SIZE)throw new Error("decryptTarget() failed: Expected blockKey\n length ".concat(this.TARGET_BLOCK_KEY_SIZE,", not ").concat(r.length));if(i.length!==this.IV_SIZE)throw new Error("decryptTarget() failed: Expected iv\n length ".concat(this.IV_SIZE,", not ").concat(i.length));if(0!==e.scratchBuf.len)throw new Error("decryptTarget() failed: Scratch buffer is not empty");var o=this.wasm,s=this.utils,A=s.arrayToSmartBuf(t),c=s.arrayToSmartBuf(r),u=s.arrayToSmartBuf(i),f=s.arrayToSmartBuf(n);e.scratchBuf.ensureSize(a);var h=o._DecryptTarget(e.context,e.skBuf.ptr,c.ptr,e.symKeyBuf.ptr,u.ptr,f.ptr,A.ptr,A.len,e.scratchBuf.ptr,a);if(0!==h)throw new Error("_DecryptTarget failed with error code ".concat(h));return new Uint8Array(o.HEAPU8.buffer,e.scratchBuf.ptr,a)}},{key:"createCipher",value:function(e){var t=this;return f()((function(n,r,i){this.push(t.encryptPrimaryH(e,n)),e.clearBuf(),i()}))}},{key:"createDecipher",value:function(t,n){var r=this,i=e.alloc(0);return f()((function(a,o,s){var A=0;for(i=e.concat([i,a]);A<i.length;)try{n.clearBuf();var c=r.decryptH(t,n,i.slice(A));this.push(c),A+=r.calcEncByteCountH(t,c.length)}catch(t){return"ELV_E_INCOMPLETE_BLOCK"===t.message?(i=i.slice(A),void s()):(i=e.alloc(0),void s(t))}i=e.alloc(0),s()}),(function(e){i.length>0&&this.destroy(new Error("Decipher stream ended before all data was decrypted. The source may be invalid.")),e()}))}},{key:"createRecipher",value:function(t){var n=this,r=new h.a(n.wasm),i=e.alloc(0),a=f()((function(a,o,s){var A=0;for(i=e.concat([i,a]);A<i.length;)try{r.clear();var c=n.reEncryptH(r,t,i.slice(A));this.push(c),A+=n.calcEncByteCountFromTargetH(c.length)}catch(t){return"ELV_E_INCOMPLETE_BLOCK"===t.message?(i=i.slice(A),void s()):(i=e.alloc(0),void s(t))}i=e.alloc(0),s()}),(function(e){i.length>0&&this.destroy(new Error("Recipher stream ended before all data was decrypted. The source may be invalid.")),e()}));return a.on("finish",(function(){r.free()})),a}}]),t}()}.call(this,n(3).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":u(window))&&(n=window)}e.exports=n},function(e,t){e.exports=n(65)},function(e,t){e.exports=n(66)},function(e,t){e.exports=n(42)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(19)},function(e,t){e.exports=n(54)},function(e,t){e.exports=n(83)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(88)},function(e,t){e.exports=n(96)},function(e,t){e.exports=n(99)},function(e,t){e.exports=n(110)},function(e,t){e.exports=n(111)},function(e,t){e.exports=n(115)},function(e,t){},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,A=0;A<o;A++)if(i[A]!==a[A]){s=A;break}var c=[];for(A=s;A<i.length;A++)c.push("..");return(c=c.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(4))}])},"object"==u(t)&&"object"==u(e)?e.exports=o():(i=[],void 0===(a="function"==typeof(r=o)?r.apply(t,i):r)||(e.exports=a))}).call(this,n(13)(e))},function(e,t,n){(function(t){var r=n(212).Transform,i=n(220).inherits;function a(e){r.call(this,e),this._destroyed=!1}function o(e,t,n){n(null,e)}function s(e){return function(t,n,r){return"function"==typeof t&&(r=n,n=t,t={}),"function"!=typeof n&&(n=o),"function"!=typeof r&&(r=null),e(t,n,r)}}i(a,r),a.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var n=this;t.nextTick((function(){e&&n.emit("error",e),n.emit("close")}))}},e.exports=s((function(e,t,n){var r=new a(e);return r._transform=t,n&&(r._flush=n),r})),e.exports.ctor=s((function(e,t,n){function r(t){if(!(this instanceof r))return new r(t);this.options=Object.assign({},e,t),a.call(this,this.options)}return i(r,a),r.prototype._transform=t,n&&(r.prototype._flush=n),r})),e.exports.obj=s((function(e,t,n){var r=new a(Object.assign({objectMode:!0,highWaterMark:16},e));return r._transform=t,n&&(r._flush=n),r}))}).call(this,n(4))},function(e,t,n){(t=e.exports=n(116)).Stream=t,t.Readable=t,t.Writable=n(120),t.Duplex=n(22),t.Transform=n(121),t.PassThrough=n(218),t.finished=n(64),t.pipeline=n(219)},function(e,t){},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(2).Buffer,a=n(215).inspect,o=a&&a.custom||"inspect";e.exports=function(){function e(){this.head=null,this.tail=null,this.length=0}var t=e.prototype;return t.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},t.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}},t.clear=function(){this.head=this.tail=null,this.length=0},t.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},t.concat=function(e){if(0===this.length)return i.alloc(0);for(var t,n,r,a=i.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,r=s,i.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return a},t.consume=function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n},t.first=function(){return this.head.data},t._getString=function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0===(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r},t._getBuffer=function(e){var t=i.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,o),0===(e-=o)){o===a.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(o));break}++r}return this.length-=r,t},t[o]=function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}({},t,{depth:0,customInspect:!1}))},e}()},function(e,t){},function(e,t,n){"use strict";(function(t){var n=new Set;e.exports.emitExperimentalWarning=t.emitWarning?function(e){if(!n.has(e)){var r=e+" is an experimental feature. This feature could change at any time";n.add(e),t.emitWarning(r,"ExperimentalWarning")}}:function(){}}).call(this,n(4))},function(e,t,n){"use strict";(function(t){var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(64),o=Symbol("lastResolve"),s=Symbol("lastReject"),A=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function l(e){var t=e[o];if(null!==t){var n=e[h].read();null!==n&&(e[u]=null,e[o]=null,e[s]=null,t(d(n,!1)))}}function g(e){t.nextTick(l,e)}var p=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(r={get stream(){return this[h]},next:function(){var e=this,n=this[A];if(null!==n)return Promise.reject(n);if(this[c])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(n,r){t.nextTick((function(){e[A]?r(e[A]):n(d(void 0,!0))}))}));var r,i=this[u];if(i)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[c]?n(d(void 0,!0)):t[f](n,r)}),r)}}(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));r=new Promise(this[f])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[h].destroy(null,(function(e){e?n(e):t(d(void 0,!0))}))}))})),r),p);e.exports=function(e){var t,n=Object.create(y,(i(t={},h,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,A,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var r=n[h].read();r?(n[u]=null,n[o]=null,n[s]=null,e(d(r,!1))):(n[o]=e,n[s]=t)},writable:!0}),t));return n[u]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[u]=null,n[o]=null,n[s]=null,t(e)),void(n[A]=e)}var r=n[o];null!==r&&(n[u]=null,n[o]=null,n[s]=null,r(d(void 0,!0))),n[c]=!0})),e.on("readable",g.bind(null,n)),n}}).call(this,n(4))},function(e,t,n){"use strict";e.exports=i;var r=n(121);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(0)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r;var i=n(21).codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function A(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(64)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var A=!1;return function(t){if(!s&&!A)return A=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}function c(e){e()}function u(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1;return A(e,a,n>0,(function(e){r||(r=e),e&&o.forEach(c),a||(o.forEach(c),i(r))}))}));return t.reduce(u)}},function(e,t,n){(function(e){function r(e){return(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})(e)}var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!I(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(A(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])p(s)||!m(s)?o+=" "+s:o+=" "+A(s);return o},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}};var o,s={};function A(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=A.styles[t];return n?"["+A.colors[n][0]+"m"+e+"["+A.colors[n][1]+"m":e}function u(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&v(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return I(i)||(i=f(e,i,r)),i}var a=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(I(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),B(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(v(n)){var A=n.name?": "+n.name:"";return e.stylize("[Function"+A+"]","special")}if(C(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(B(n))return h(n)}var c,u="",m=!1,w=["{","}"];(l(n)&&(m=!0,w=["[","]"]),v(n))&&(u=" [Function"+(n.name?": "+n.name:"")+"]");return C(n)&&(u=" "+RegExp.prototype.toString.call(n)),E(n)&&(u=" "+Date.prototype.toUTCString.call(n)),B(n)&&(u=" "+h(n)),0!==o.length||m&&0!=n.length?r<0?C(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=m?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)k(t,String(o))?a.push(d(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(d(e,t,n,r,i,!0))})),a}(e,n,r,s,o):o.map((function(t){return d(e,n,r,s,t,m)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,w)):w[0]+u+w[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,a){var o,s,A;if((A=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=A.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):A.set&&(s=e.stylize("[Setter]","special")),k(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(A.value)<0?(s=p(n)?f(e,A.value,null):f(e,A.value,n-1)).indexOf("\n")>-1&&(s=a?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")),b(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function l(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function p(e){return null===e}function y(e){return"number"==typeof e}function I(e){return"string"==typeof e}function b(e){return void 0===e}function C(e){return m(e)&&"[object RegExp]"===w(e)}function m(e){return"object"===r(e)&&null!==e}function E(e){return m(e)&&"[object Date]"===w(e)}function B(e){return m(e)&&("[object Error]"===w(e)||e instanceof Error)}function v(e){return"function"==typeof e}function w(e){return Object.prototype.toString.call(e)}function Q(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(b(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;s[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else s[n]=function(){};return s[n]},t.inspect=A,A.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]},A.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=l,t.isBoolean=g,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=I,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=b,t.isRegExp=C,t.isObject=m,t.isDate=E,t.isError=B,t.isFunction=v,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(221);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[Q(e.getHours()),Q(e.getMinutes()),Q(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=n(222),t._extend=function(e,t){if(!t||!m(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};t.apply(this,n).then((function(t){e.nextTick(o,null,t)}),(function(t){e.nextTick(_,t,o)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,i(t)),n}}).call(this,n(4))},function(e,t){function n(e){return(n="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})(e)}e.exports=function(e){return e&&"object"===n(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"accessRequest",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[],name:"AccessRequest",type:"event"}]}},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"parentAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"creator",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"canConfirm",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"countVersionHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"commitPending",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"kill",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"confirmCommit",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"clearPending",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"pendingHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newCreator",type:"address"}],name:"transferCreatorship",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canCommit",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionTimestamp",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionHashes",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_objectHash",type:"string"}],name:"commit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"contentSpace",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"updateRequest",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"objectHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_versionHash",type:"string"}],name:"deleteVersion",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"parentAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"CommitPending",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"objectHash",type:"string"}],name:"UpdateRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"VersionConfirm",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"versionHash",type:"string"},{indexed:!1,name:"index",type:"int256"}],name:"VersionDelete",type:"event"}]}},function(e,t,n){var r=n(6),i=n(14),a=n(10),o=n(11),s=n(23),A=function(){"use strict";function e(t){a(this,e),this.provider=t,this.signers={}}return o(e,[{key:"GenerateMnemonic",value:function(){return s.utils.HDNode.entropyToMnemonic(s.utils.randomBytes(16))}},{key:"AddAccountFromMnemonic",value:function(e){var t=e.accountName,n=e.mnemonic,r=s.Wallet.fromMnemonic(n);return this.AddAccount({accountName:t,privateKey:r.privateKey})}},{key:"AddAccountFromEncryptedPK",value:function(e){var t,n,a,o;return r.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.accountName,n=e.encryptedPrivateKey,a=e.password,"object"===i(n)&&(n=JSON.stringify(n)),A.next=4,r.awrap(s.Wallet.fromEncryptedJson(n,a));case 4:return o=A.sent,A.abrupt("return",this.AddAccount({accountName:t,privateKey:o.privateKey}));case 6:case"end":return A.stop()}}),null,this)}},{key:"AddAccount",value:function(e){var t=e.accountName,n=e.privateKey,r=new s.Wallet(n);return r=r.connect(this.provider),t&&(this.signers[t]=r),r}},{key:"GetAccountBalance",value:function(e){var t,n,i;return r.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.accountName,n=e.signer,i=n||this.GetAccount({accountName:t})){a.next=4;break}throw Error("Unknown account: "+t);case 4:return a.t0=s.utils,a.next=7,r.awrap(i.getBalance());case 7:return a.t1=a.sent,a.abrupt("return",a.t0.formatEther.call(a.t0,a.t1));case 9:case"end":return a.stop()}}),null,this)}},{key:"GenerateEncryptedPrivateKey",value:function(e){var t,n,i,a,o;return r.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=e.accountName,n=e.signer,i=e.password,a=e.options,o=n||this.GetAccount({accountName:t})){s.next=4;break}throw Error("Unknown account: "+t);case 4:return s.next=6,r.awrap(o.encrypt(i,a));case 6:return s.abrupt("return",s.sent);case 7:case"end":return s.stop()}}),null,this)}},{key:"GetAccount",value:function(e){var t=e.accountName;return this.signers[t]}},{key:"RemoveAccount",value:function(e){var t=e.accountName;delete this.signers[t]}}]),e}();e.exports=A},function(e,t,n){var r=n(18),i=n(50),a=n(6),o=n(14),s=n(10),A=n(11);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=n(23),h=n(38),d=n(39),l=n(40),g=n(16),p=n(227),y=function(){"use strict";function e(t){var n=t.uris,r=t.debug;s(this,e),this.ethereumURIs=n,this.ethereumURIIndex=0,this.locked=!1,this.debug=r,this.cachedContracts={},this.contractNames={},f.errors.setLogLevel("error")}return A(e,[{key:"Log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.debug&&("object"===o(e)&&(e=JSON.stringify(e)),t?console.error("\n(elv-client-js#EthClient) ".concat(e,"\n")):console.log("\n(elv-client-js#EthClient) ".concat(e,"\n")))}}]),A(e,[{key:"Provider",value:function(){return this.provider||(this.provider=new f.providers.JsonRpcProvider(this.ethereumURIs[this.ethereumURIIndex])),this.provider}},{key:"ContractName",value:function(e){var t,n,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=new f.Contract(e,h.abi,this.Provider()),this.contractNames[e]){i.next=13;break}return i.prev=2,i.next=5,a.awrap(this.CallContractMethod({contract:t,abi:h.abi,methodName:"version",cacheContract:!1}));case 5:n=i.sent,r=f.utils.parseBytes32String(n.slice(0,-2)+"00"),this.contractNames[e]=r.split(/\d+/)[0],i.next=13;break;case 10:i.prev=10,i.t0=i.catch(2),this.contractNames[e]="Unknown";case 13:return i.abrupt("return",this.contractNames[e]);case 14:case"end":return i.stop()}}),null,this,[[2,10]])}},{key:"Contract",value:function(e){var t=this,n=e.contractAddress,r=e.abi,i=e.signer,a=e.cacheContract,o=this.cachedContracts[n];return o||((o=(o=new f.Contract(n,r,this.Provider())).connect(i))._deployedPromise=new Promise((function(e){return e(t)})),a&&(this.cachedContracts[n]=o)),o}},{key:"MakeProviderCall",value:function(e){var t,n,r,o,s,A;return a.async((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.methodName,n=e.args,r=void 0===n?[]:n,o=e.attempts,s=void 0===o?0:o,c.prev=1,A=this.Provider(),this.Log("ETH ".concat(A.connection.url," ").concat(t," [").concat(r.join(", "),"]")),c.next=6,a.awrap(A[t].apply(A,i(r)));case 6:return c.abrupt("return",c.sent);case 9:if(c.prev=9,c.t0=c.catch(1),console.error(c.t0),!(s<this.ethereumURIs.length)){c.next=17;break}return this.Log("EthClient failing over: ".concat(s+1," attempts"),!0),this.provider=void 0,this.ethereumURIIndex=(this.ethereumURIIndex+1)%this.ethereumURIs.length,c.abrupt("return",this.MakeProviderCall({methodName:t,args:r,attempts:s+1}));case 17:return c.abrupt("return",{});case 18:case"end":return c.stop()}}),null,this,[[1,9]])}},{key:"FormatContractArgument",value:function(e){var t=this,n=e.type,r=e.value;if(n.endsWith("[]")){if("string"==typeof r){if(""===r.trim())return[];r=r.split(",").map((function(e){return e.trim()}))}var i=n.replace("[]","");return r.map((function(e){return t.FormatContractArgument({type:i,value:e})}))}switch(n.toLowerCase()){case"bytes32":return f.utils.formatBytes32String(r);case"bytes":return f.utils.toUtf8Bytes(r);default:return r}}},{key:"FormatContractArguments",value:function(e){var t=this,n=e.abi,r=e.methodName,i=e.args,a=n.find((function(e){return e.name===r||e.type===r}));if(void 0===a)throw Error("Unknown method: "+r);return i.map((function(e,n){return t.FormatContractArgument({type:a.inputs[n].type,value:e})}))}},{key:"ValidateSigner",value:function(e){if(!e)throw Error("Signer not set")}},{key:"DeployContract",value:function(e){var t,n,r,o,s,A,c,u,h;return a.async((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.abi,n=e.bytecode,r=e.constructorArgs,o=void 0===r?[]:r,s=e.overrides,A=void 0===s?{}:s,c=e.signer,this.Log("Deploying contract with args [".concat(o.join(", "),"]")),c=c.connect(this.Provider()),this.ValidateSigner(c),u=new f.ContractFactory(t,n,c),d.next=7,a.awrap(u.deploy.apply(u,i(o).concat([A])));case 7:return h=d.sent,d.next=10,a.awrap(h.deployed());case 10:return this.Log("Deployed: ".concat(h.address)),d.abrupt("return",{contractAddress:g.FormatAddress(h.address),transactionHash:h.deployTransaction.hash});case 12:case"end":return d.stop()}}),null,this)}},{key:"CallContractMethod",value:function(e){var t,n,r,o,s,A,c,u,f,h,d,l,p,y,I,b,C,m;return a.async((function(E){for(;;)switch(E.prev=E.next){case 0:t=e.contract,n=e.contractAddress,r=e.abi,o=e.methodName,s=e.methodArgs,A=void 0===s?[]:s,c=e.value,u=e.overrides,f=void 0===u?{}:u,h=e.formatArguments,d=void 0===h||h,l=e.cacheContract,p=void 0===l||l,y=e.signer;case 1:if(!this.locked){E.next=6;break}return E.next=4,a.awrap(new Promise((function(e){return setTimeout(e,100)})));case 4:E.next=1;break;case 6:if(this.locked=!0,E.prev=7,t=t||this.Contract({contractAddress:n,abi:r,signer:y,cacheContract:p}),r=t.interface.abi,d&&(A=this.FormatContractArguments({abi:r,methodName:o,args:A})),c&&(f.value="0x"+g.EtherToWei(c.toString()).toString(16)),void 0!==t.functions[o]){E.next=14;break}throw Error("Unknown method: "+o);case 14:this.Log("Calling contract method:\n Address: ".concat(t.address,"\n Method: ").concat(o,"\n Args: [").concat(A.join(", "),"]")),b=!1;case 16:if(b){E.next=37;break}return E.prev=17,E.next=20,a.awrap((C=t.functions)[o].apply(C,i(A).concat([f])));case 20:I=E.sent,b=!0,E.next=35;break;case 24:if(E.prev=24,E.t0=E.catch(17),-32e3!==E.t0.code&&"REPLACEMENT_UNDERPRICED"!==E.t0.code){E.next=34;break}return E.next=29,a.awrap(this.MakeProviderCall({methodName:"getBlock",args:["latest"]}));case 29:m=E.sent,f.gasLimit=m.gasLimit,f.gasPrice=f.gasPrice?1.5*f.gasPrice:8e9,E.next=35;break;case 34:throw E.t0;case 35:E.next=16;break;case 37:return E.abrupt("return",I);case 38:return E.prev=38,this.locked=!1,E.finish(38);case 41:case"end":return E.stop()}}),null,this,[[7,,38,41],[17,24]])}},{key:"CallContractMethodAndWait",value:function(e){var t,n,r,i,o,s,A,c,f,h,d,l,g,p,y;return a.async((function(I){for(;;)switch(I.prev=I.next){case 0:return t=e.contractAddress,n=e.abi,r=e.methodName,i=e.methodArgs,o=e.value,s=e.timeout,A=void 0===s?1e4:s,c=e.formatArguments,f=void 0===c||c,h=e.signer,d=this.Contract({contractAddress:t,abi:n,signer:h}),I.next=4,a.awrap(this.CallContractMethod({contract:d,abi:n,methodName:r,methodArgs:i,value:o,formatArguments:f,signer:h}));case 4:l=I.sent,this.Log("Awaiting transaction completion: ".concat(l.hash)),g=250,p=0;case 8:if(!(p<A)){I.next=20;break}return I.next=11,a.awrap(this.MakeProviderCall({methodName:"getTransactionReceipt",args:[l.hash]}));case 11:if(!(y=I.sent)){I.next=15;break}return y.logs=y.logs.map((function(e){return u({},e,{},d.interface.parseLog(e))})),I.abrupt("break",20);case 15:return p+=g,I.next=18,a.awrap(new Promise((function(e){return setTimeout(e,g)})));case 18:I.next=8;break;case 20:if(y){I.next=22;break}throw Error("Timed out waiting for completion of ".concat(r,". TXID: ").concat(l.hash));case 22:return I.abrupt("return",y);case 23:case"end":return I.stop()}}),null,this)}},{key:"AwaitEvent",value:function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.contractAddress,n=e.abi,r=e.eventName,i=e.signer,o=this.Contract({contractAddress:t,abi:n,signer:i}),s.next=4,a.awrap(new Promise((function(e){o.on(r,(function(t,n,i){o.removeAllListeners(r),e(i)}))})));case 4:return s.abrupt("return",s.sent);case 5:case"end":return s.stop()}}),null,this)}},{key:"ExtractEventFromLogs",value:function(e){var t=e.abi,n=e.event,r=e.eventName,i=new f.utils.Interface(t),a=!0,o=!1,s=void 0;try{for(var A,c=n.logs[Symbol.iterator]();!(a=(A=c.next()).done);a=!0){var u=A.value,h=i.parseLog(u);if(h&&h.name===r)return h}}catch(e){o=!0,s=e}finally{try{a||null==c.return||c.return()}finally{if(o)throw s}}}},{key:"DeployDependentContract",value:function(e){var t,n,r,i,o,s,A,c,u,f,h;return a.async((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.contractAddress,n=e.abi,r=e.methodName,i=e.args,o=void 0===i?[]:i,s=e.eventName,A=e.eventValue,c=e.signer,d.next=3,a.awrap(this.CallContractMethodAndWait({contractAddress:t,abi:n,methodName:r,methodArgs:o,signer:c}));case 3:if(u=d.sent,f=this.ExtractEventFromLogs({abi:n,event:u,eventName:s,eventValue:A})){d.next=7;break}throw Error("".concat(r," failed - Log not present in transaction"));case 7:return h=f.values[A],d.abrupt("return",{contractAddress:g.FormatAddress(h),transactionHash:u.transactionHash});case 9:case"end":return d.stop()}}),null,this)}},{key:"DeployAccessGroupContract",value:function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.contentSpaceAddress,n=e.signer,r.abrupt("return",this.DeployDependentContract({contractAddress:t,abi:h.abi,methodName:"createGroup",args:[],eventName:"CreateGroup",eventValue:"groupAddress",signer:n}));case 2:case"end":return r.stop()}}),null,this)}},{key:"DeployTypeContract",value:function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.contentSpaceAddress,n=e.signer,r.abrupt("return",this.DeployDependentContract({contractAddress:t,abi:h.abi,methodName:"createContentType",args:[],eventName:"CreateContentType",eventValue:"contentTypeAddress",signer:n}));case 2:case"end":return r.stop()}}),null,this)}},{key:"DeployLibraryContract",value:function(e){var t,n,r,i;return a.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.contentSpaceAddress,n=e.kmsId,r=e.signer,i=g.HashToAddress(n),a.abrupt("return",this.DeployDependentContract({contractAddress:t,abi:h.abi,methodName:"createLibrary",args:[i],eventName:"CreateLibrary",eventValue:"libraryAddress",signer:r}));case 3:case"end":return a.stop()}}),null,this)}},{key:"DeployContentContract",value:function(e){var t,n,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.contentLibraryAddress,n=e.typeAddress,r=e.signer,n=n||g.nullAddress,i.abrupt("return",this.DeployDependentContract({contractAddress:t,abi:d.abi,methodName:"createContent",args:[n],eventName:"ContentObjectCreated",eventValue:"contentAddress",signer:r}));case 3:case"end":return i.stop()}}),null,this)}},{key:"CommitContent",value:function(e){var t,n,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.contentObjectAddress,n=e.versionHash,r=e.signer,i.next=3,a.awrap(this.CallContractMethodAndWait({contractAddress:t,abi:l.abi,methodName:"commit",methodArgs:[n],eventName:"CommitPending",eventValue:"pendingHash",signer:r}));case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),null,this)}},{key:"EngageAccountLibrary",value:function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.contentSpaceAddress,n=e.signer,r.abrupt("return",this.CallContractMethodAndWait({contractAddress:t,abi:h.abi,methodName:"engageAccountLibrary",args:[],signer:n}));case 2:case"end":return r.stop()}}),null,this)}},{key:"SetCustomContentContract",value:function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.contentContractAddress,n=e.customContractAddress,r=e.overrides,i=void 0===r?{}:r,o=e.signer,s.next=3,a.awrap(this.CallContractMethodAndWait({contractAddress:t,abi:l.abi,methodName:"setContentContractAddress",methodArgs:[n],overrides:i,signer:o}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}}),null,this)}},{key:"ContractEvents",value:function(e){var t,n,r,i,o,s,A,c,h,d=this;return a.async((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.contractAddress,n=e.abi,r=e.fromBlock,i=void 0===r?0:r,o=e.toBlock,s=e.includeTransaction,A=void 0!==s&&s,l.next=3,a.awrap(this.MakeProviderCall({methodName:"getLogs",args:[{address:t,fromBlock:i,toBlock:o}]}));case 3:if(l.t0=l.sent,l.t0){l.next=6;break}l.t0=[];case 6:if(c=l.t0,Array.isArray(c)){l.next=9;break}return l.abrupt("return",[]);case 9:return h={},l.next=12,a.awrap(g.LimitedMap(5,c,(function(e){var t,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=new f.utils.Interface(n),r=u({},e,{},t.parseLog(e)),!A){i.next=11;break}return i.t0=u,i.t1={},i.t2=r,i.t3={},i.next=9,a.awrap(d.MakeProviderCall({methodName:"getTransaction",args:[e.transactionHash]}));case 9:i.t4=i.sent,r=(0,i.t0)(i.t1,i.t2,i.t3,i.t4);case 11:h[e.blockNumber]=[r].concat(h[e.blockNumber]||[]);case 12:case"end":return i.stop()}}))})));case 12:return l.abrupt("return",Object.values(h).sort((function(e,t){return e[0].blockNumber<t[0].blockNumber?1:-1})));case 13:case"end":return l.stop()}}),null,this)}},{key:"ParseUnknownLog",value:function(e){var t=e.log;if(t.topics&&t.topics.length>0){var n=t.topics[0],r=p[n];if(r){var i=new f.utils.Interface(r.abi);i&&(t=u({},t,{},i.parseLog(t),{contract:r.contract}))}}return t}},{key:"Events",value:function(e){var t,n,r,o,s,A,c,f,h,d=this;return a.async((function(l){for(;;)switch(l.prev=l.next){case 0:t=e.toBlock,n=e.fromBlock,r=e.includeTransaction,o=void 0!==r&&r,s=[],A=n;case 3:if(!(A<t)){l.next=11;break}return l.next=6,a.awrap(this.MakeProviderCall({methodName:"getLogs",args:[{fromBlock:A,toBlock:Math.min(t,A+100)}]}));case 6:c=l.sent,s=s.concat(c||[]);case 8:A+=101,l.next=3;break;case 11:return f={},s.forEach((function(e){f[e.blockNumber]=[d.ParseUnknownLog({log:e})].concat(f[e.blockNumber]||[])})),h=[],l.next=16,a.awrap(g.LimitedMap(3,i(Array(t-n+1).keys()),(function(e){var n,r,i;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(r=f[n=t-e]){s.next=8;break}return s.next=5,a.awrap(d.MakeProviderCall({methodName:"getBlock",args:[n]}));case 5:r=(r=s.sent).transactions.map((function(e){return u({blockNumber:r.number,blockHash:r.hash},r,{transactionHash:e})})),f[n]=r;case 8:if(!o){s.next=13;break}return i={},s.next=12,a.awrap(Promise.all(r.map((function(e){return a.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(i[e.transactionHash]){t.next=11;break}return t.t0=u,t.t1={},t.next=5,a.awrap(d.MakeProviderCall({methodName:"getTransaction",args:[e.transactionHash]}));case 5:return t.t2=t.sent,t.t3={},t.next=9,a.awrap(d.MakeProviderCall({methodName:"getTransactionReceipt",args:[e.transactionHash]}));case 9:t.t4=t.sent,i[e.transactionHash]=(0,t.t0)(t.t1,t.t2,t.t3,t.t4);case 11:return t.abrupt("return",u({},e,{},i[e.transactionHash]));case 12:case"end":return t.stop()}}))}))));case 12:f[n]=s.sent;case 13:h.push(f[n]);case 14:case"end":return s.stop()}}))})));case 16:return l.abrupt("return",h);case 17:case"end":return l.stop()}}),null,this)}}]),e}();e.exports=y},function(e,t){e.exports={"0x23dcae6acc296731e3679d01e7cd963988e5a372850a0a1db2b9b01539e19ff4":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"principal",type:"address"},{indexed:!1,name:"entity",type:"address"},{indexed:!1,name:"aggregate",type:"uint8"}],name:"RightsChanged",type:"event"}],ambiguous:!0},"0xa33a9370a938260eee2537d9480ca0caa9789521da8e57afb3a0699d3ff9b260":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"index",type:"uint256"},{indexed:!1,name:"a",type:"address"}],name:"dbgAddress",type:"event"}],ambiguous:!0},"0xb251eb052afc73ffd02ffe85ad79990a8b3fed60d76dbc2fa2fdd7123dffd914":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"MemberAdded",type:"event"}],contract:"BaseAccessControlGroup"},"0x93bcaab179551bde429187645251f8e1fb8ac85801fcb1cf91eb2c9043d61117":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"ManagerAccessGranted",type:"event"}],contract:"BaseAccessControlGroup"},"0x745cd29407db644ed93e3ceb61cbcab96d1dfb496989ac5d5bf514fc5a9fab9c":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"MemberRevoked",type:"event"}],contract:"BaseAccessControlGroup"},"0x2d6aa1a9629d125e23a0cf692cda7cd6795dff1652eedd4673b38ec31e387b95":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"ManagerAccessRevoked",type:"event"}],contract:"BaseAccessControlGroup"},"0x23de2adc3e22f171f66b3e5a333e17feb9dc30ba9570933bd259cb6c13ef7ab7":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"operationCode",type:"uint256"},{indexed:!1,name:"candidate",type:"address"}],name:"UnauthorizedOperation",type:"event"}],ambiguous:!0},"0xb3ac059d88af6016aca1aebb7b3e796f2e7420435c59c563687814e9b85daa75":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"parentAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"CommitPending",type:"event"}],ambiguous:!0},"0x403f30aa5f4f2f89331a7b50054f64a00ce206f4d0a37f566ff344bbe46f8b65":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"objectHash",type:"string"}],name:"UpdateRequest",type:"event"}],ambiguous:!0},"0x482875da75e6d9f93f74a5c1a61f14cf08822057c01232f44cb92ae998e30d8e":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"VersionConfirm",type:"event"}],ambiguous:!0},"0x238d74c13cda9ba51e904772d41a616a1b9b30d09802484df6279fe1c3c07f51":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"versionHash",type:"string"},{indexed:!1,name:"index",type:"int256"}],name:"VersionDelete",type:"event"}],ambiguous:!0},"0x583d8312ef7016406c7ea8ba9796b9e55ac1fdc22455754cbc93869509faefad":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"guarantor",type:"address"},{indexed:!1,name:"code",type:"int256"}],name:"ExecStatus",type:"event"}],contract:"BaseAccessWallet"},"0x280016f7418306a55542432120fd1a239ef9fcc1a92694d8d44ca76be0249ea7":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"},{indexed:!1,name:"contentContract",type:"address"}],name:"ContentTypeAdded",type:"event"}],ambiguous:!0},"0xd41375b9d347dfe722f90a780731abd23b7855f9cf14ea7063c4cab5f9ae58e2":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"}],name:"ContentTypeRemoved",type:"event"}],ambiguous:!0},"0xed78a9defa7412748c9513ba9cf680f57703a46dd7e0fb0b1e94063423c73e88":{abi:[{anonymous:!1,inputs:[],name:"AccessRequest",type:"event"}],ambiguous:!0},"0xc3decc188980e855666b70498ca85e8fa284d97d30483d828fa126f7303d7d19":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"containingLibrary",type:"address"}],name:"ContentObjectCreate",type:"event"}],contract:"BaseContent"},"0x4f692e87baf302f7281e83eec109053efc2ca8e7bddfc6ce88c579cd9767f71f":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentType",type:"address"},{indexed:!1,name:"contentContractAddress",type:"address"}],name:"SetContentType",type:"event"}],contract:"BaseContent"},"0x50f423e39e8beb25bb2da38a63e3d33b5368f261522813712756733eaf569a06":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"level",type:"uint8"},{indexed:!1,name:"contentHash",type:"string"},{indexed:!1,name:"pkeRequestor",type:"string"},{indexed:!1,name:"pkeAFGH",type:"string"}],name:"AccessRequest",type:"event"}],contract:"BaseContent"},"0xad58d18ea7292f887da6f15bb4f0badddaa33d169713d09cf49710acc7c3a5b9":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"payee",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"LogPayment",type:"event"}],contract:"BaseContent"},"0x475e9d68ca61f129cebee5af694af00ed0e3b3b0d4b74071fbb81d0e2b912718":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"access_granted",type:"bool"},{indexed:!1,name:"reKey",type:"string"},{indexed:!1,name:"encryptedAESKey",type:"string"}],name:"AccessGrant",type:"event"}],contract:"BaseContent"},"0x515e0a48b385fce2a8e4d9f169a97c4f6ea669a752358f5e6ab37cc3c2e84c38":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"customValue",type:"bytes32"}],name:"AccessRequestValue",type:"event"}],contract:"BaseContent"},"0xb6e3239e521a6c66920ae634f8e921a37e6991d520ac44d52f8516397f41b684":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"stakeholder",type:"address"}],name:"AccessRequestStakeholder",type:"event"}],contract:"BaseContent"},"0x2c49ac638ee7bf3341004c40512c79847bb7fb8f17fb53151ff576a35630ac06":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"scorePct",type:"uint256"},{indexed:!1,name:"customContractResult",type:"bool"}],name:"AccessComplete",type:"event"}],contract:"BaseContent"},"0xa6f2e38f0cfebf27212317fced3ac40bc62e00bd33f38d69603710740c69acb7":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentContractAddress",type:"address"}],name:"SetContentContract",type:"event"}],contract:"BaseContent"},"0x4114f8ef80b6de2161db580cbefa14e1892d15d3ebe2062c9914e4a5773114a3":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"accessCharge",type:"uint256"}],name:"SetAccessCharge",type:"event"}],contract:"BaseContent"},"0xa58326ee5bb617cb8b4f0d0f5f557c469d2d05d7a738f777037deda9c724b370":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"level",type:"uint8"},{indexed:!1,name:"accessCharge",type:"uint256"}],name:"GetAccessCharge",type:"event"}],contract:"BaseContent"},"0x03eb8b54a949acec2cd08fdb6d6bd4647a1f2c907d75d6900648effa92eb147f":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"accessCharge",type:"uint256"},{indexed:!1,name:"amountProvided",type:"uint256"}],name:"InsufficientFunds",type:"event"}],contract:"BaseContent"},"0xda4f34b30fa0ba8a73fedb922f4d28e2a10a5d68e53cf8e942abce3ac09158a2":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"statusCode",type:"int256"}],name:"SetStatusCode",type:"event"}],contract:"BaseContent"},"0xad9c5eacc073b2e1767affc883e050347e1dd379c9799cb5ac0a17bde80f5cf4":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"requestStatus",type:"bool"},{indexed:!1,name:"statusCode",type:"int256"},{indexed:!1,name:"objectHash",type:"string"}],name:"Publish",type:"event"}],contract:"BaseContent"},"0x12b04791b5caab768e2757268992f0c62801e3921d9e310c893f0d5f9caa5f71":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"custom_contract",type:"address"}],name:"InvokeCustomPreHook",type:"event"}],contract:"BaseContent"},"0x8c693e8b27db7caf9b9637b66dcc11444760023a4d53e95407a3acef1b249f50":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"custom_contract",type:"address"},{indexed:!1,name:"result",type:"uint256"}],name:"ReturnCustomHook",type:"event"}],contract:"BaseContent"},"0x97d9c9779ed3ed8b9a6edfe16d17b1fdec843245747a19abfb621806e37d4a89":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"custom_contract",type:"address"}],name:"InvokeCustomPostHook",type:"event"}],contract:"BaseContent"},"0xfdcd1c148f180968772efab9ef7e26a2ec7a58d82572587ad224c36c91236175":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"charged",type:"uint256"},{indexed:!1,name:"received",type:"uint256"},{indexed:!1,name:"converted",type:"uint256"},{indexed:!1,name:"enough",type:"bool"}],name:"DbgAccess",type:"event"}],contract:"BaseContent"},"0x14c078593b5fe597db0b1293557c1a5315f2b7e708477ea38b41929534d96bdd":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"code",type:"uint8"}],name:"DbgAccessCode",type:"event"}],contract:"BaseContent"},"0x8354ff8c2c210fd53709db56438bb45d36a62de8bcc95c8459d80ce933d47680":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"libraryAddress",type:"address"},{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"userAddress",type:"address"},{indexed:!1,name:"contextHash",type:"bytes32"},{indexed:!1,name:"request_timestamp",type:"uint64"}],name:"AccessRequest",type:"event"}],contract:"BaseContentFactoryExt"},"0x078326d18c0223483393342523f51da024ddcb0f1e929aa1f142100381c794f5":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"libraryAddress",type:"address"},{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"userAddress",type:"address"},{indexed:!1,name:"contextHash",type:"bytes32"},{indexed:!1,name:"request_timestamp",type:"uint64"}],name:"AccessComplete",type:"event"}],contract:"BaseContentFactoryExt"},"0x9e69777f30c55126be256664fa7beff4b796ac32ebceab94df5071b0148017f8":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentTypeAddress",type:"address"}],name:"CreateContentType",type:"event"}],contract:"BaseContentSpace"},"0x473c07a6d0228c4fb8fe2be3b4617c3b5fb7c0f8cd9ba4b67e8631844b9b6571":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"libraryAddress",type:"address"}],name:"CreateLibrary",type:"event"}],contract:"BaseContentSpace"},"0xa3b1fe71ae61bad8cffa485b230e24e518938f76182a30fa0d9979e7237ad159":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"groupAddress",type:"address"}],name:"CreateGroup",type:"event"}],contract:"BaseContentSpace"},"0xa0633ea0b3cb5796607e5f551ae79c7eeee0dc7ee0c3ff8996506261651368ce":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"}],name:"CreateContent",type:"event"}],contract:"BaseContentSpace"},"0x56c4bf13bebaa9f2be39ac3f2f4619a0dd1b694bb8c5f43c6b244a6dba0f0cca":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"wallet",type:"address"}],name:"CreateAccessWallet",type:"event"}],contract:"BaseContentSpace"},"0x05e3f3adaf96d565bb326088a1d8e0d78497549df2c99a8ab681e5fbc7a9b3f2":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"wallet",type:"address"},{indexed:!1,name:"userAddr",type:"address"}],name:"BindUserWallet",type:"event"}],contract:"BaseContentSpace"},"0x53ce35a7383a3ea3f695bdf0f87d7e5485ba816b382673e849bfdd24e7f5e3ca":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"accountAddress",type:"address"}],name:"EngageAccountLibrary",type:"event"}],contract:"BaseContentSpace"},"0x1c893ef9379093af30f458b9e74d2aba13c499660b68dec5e29af7b199c188b9":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"factory",type:"address"}],name:"SetFactory",type:"event"}],contract:"BaseContentSpace"},"0x4575facd117046c9c28b69a3eb9c08939f2462a5a22ea6c6dcd4f79b8dd124e9":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"nodeObjAddr",type:"address"}],name:"RegisterNode",type:"event"}],contract:"BaseContentSpace"},"0xb98695ab4c6cedb3b4dfe62479a9d39a59aa2cb38b8bd92bbb6ce5856e42bdf4":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"nodeObjAddr",type:"address"}],name:"UnregisterNode",type:"event"}],contract:"BaseContentSpace"},"0xdf8127994c229011ce9c4764bdc0375bb71c06cf1544f034cd81a42f37233319":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"sender",type:"address"},{indexed:!1,name:"status",type:"uint256"}],name:"AddKMSLocator",type:"event"}],contract:"BaseContentSpace"},"0x5f463eb53cddf646852b82c0d9bdb1d1ec215c3802b780e8b7beea8b6e99f94c":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"sender",type:"address"},{indexed:!1,name:"status",type:"uint256"}],name:"RemoveKMSLocator",type:"event"}],contract:"BaseContentSpace"},"0x599bb380c80b69455450a615c515544b8da3b09f2efa116a5f0567682203cf54":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"version",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"CreateSpace",type:"event"}],contract:"BaseContentSpace"},"0x1c917c3c2698bd5b98acb9772728da62f2ce3670e4578910a6465b955f63e157":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"walletAddress",type:"address"}],name:"GetAccessWallet",type:"event"}],contract:"BaseContentSpace"},"0xae5645569f32b946f7a747113c64094a29a6b84c5ddf55816ef4381ce8a3a46d":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"addr",type:"address"},{indexed:!1,name:"locator",type:"bytes"}],name:"NodeSubmitted",type:"event"}],ambiguous:!0},"0xd644c8164f225d3b7fdbcc404f279bb1e823ef0d93f88dd4b24e85d0e7bc6a54":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"addr",type:"address"},{indexed:!1,name:"locator",type:"bytes"}],name:"NodeApproved",type:"event"}],ambiguous:!0},"0x2bb0f9ba138ffddb5a8f974e9885b65a7814d3002654f1cf3f2d3f619a4006c4":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"ownerAddr",type:"address"},{indexed:!1,name:"nodeAddr",type:"address"}],name:"AddNode",type:"event"}],ambiguous:!0},"0x41ec5b9efdbf61871df6a18b687e04bea93d5793af5f8c8b4626e155b23dc19d":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"ownerAddr",type:"address"},{indexed:!1,name:"nodeAddr",type:"address"}],name:"RemoveNode",type:"event"}],ambiguous:!0},"0xadc3945407fc9e1f5763b74624698197e96e741e6e7c683373498712ba3eb878":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"content_type",type:"address"},{indexed:!1,name:"spaceAddress",type:"address"}],name:"ContentObjectCreated",type:"event"}],contract:"BaseLibrary"},"0x36500cee87b0da1746889a3483dccb525acfc40b8c0f2218e164c6cdf1482a3e":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"spaceAddress",type:"address"}],name:"ContentObjectDeleted",type:"event"}],contract:"BaseLibrary"},"0x218673669018c25b89bfbf1b58d0075e37c8847ef16e707b92355b7833e97d61":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ContributorGroupAdded",type:"event"}],contract:"BaseLibrary"},"0xbbd97daa1862eb12f77ed128a557406737cee07b131b1e2d7140dff2005e197c":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ContributorGroupRemoved",type:"event"}],contract:"BaseLibrary"},"0x1b88a571cc8ac2e87512f05648e79d184f5cc0cbb2889bc487c41f8b9a3202eb":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ReviewerGroupAdded",type:"event"}],contract:"BaseLibrary"},"0xdf9d78c5635b72b709c85300a786eb7238acbe5bffe01c60c16464e45c6eb6eb":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"ReviewerGroupRemoved",type:"event"}],contract:"BaseLibrary"},"0x3a94857e4393737f73edb175a7d0c195c7f635d9ae995e12740616ec55c9d411":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"AccessorGroupAdded",type:"event"}],contract:"BaseLibrary"},"0xc5224c4118417a068eeac7d714e6d8af6f99ec3fb611bc965185460b0e38f081":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"group",type:"address"}],name:"AccessorGroupRemoved",type:"event"}],contract:"BaseLibrary"},"0x0588a34cf0de4e025d359c89ca4bacbcbf175440909952d91c814412d9da996a":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"submitter",type:"address"}],name:"ApproveContentRequest",type:"event"}],contract:"BaseLibrary"},"0x70234ce475fee4ab40e5e55cf533f67f12b47ef4c860e62dd7affa84ead4b442":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"contentAddress",type:"address"},{indexed:!1,name:"approved",type:"bool"},{indexed:!1,name:"note",type:"string"}],name:"ApproveContent",type:"event"}],contract:"BaseLibrary"},"0x74538e2fbd034afddf32b42c5939d211ce86c7683f9768f1a4969746f81f8608":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"addressKms",type:"address"}],name:"UpdateKmsAddress",type:"event"}],contract:"BaseLibrary"},"0xcf34ef537ac33ee1ac626ca1587a0a7e8e51561e5514f8cb36afa1c5102b3bab":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"}],name:"Log",type:"event"}],ambiguous:!0},"0x4c34c2f9a78632f29fa59aaed5514cb742fd9fbcfd7ccc2c03c85f2bbc621c47":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"b",type:"bool"}],name:"LogBool",type:"event"}],ambiguous:!0},"0x62ddffe5b5108385f7a590f100e1ee414ad9551a31f089e64e82998440785e1e":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"a",type:"address"}],name:"LogAddress",type:"event"}],ambiguous:!0},"0x31c369d7029afba34b21369bcf9a6ac132fb2621c34558b914859b768d05232d":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"u",type:"uint256"}],name:"LogUint256",type:"event"}],ambiguous:!0},"0x3d9b341774178bb033613e3a7a1cadb2244b3bcbb1372905d2ba24dca38aeb22":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"u",type:"int256"}],name:"LogInt256",type:"event"}],ambiguous:!0},"0x02d93529bba9d141e5e06733c52c7e6fbcb1149586adb5c24064b522ab26f1d7":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"b",type:"bytes32"}],name:"LogBytes32",type:"event"}],ambiguous:!0},"0x6a0f12fe24f7c34df8acc096f076bac6e3f1ff225f4fccc7b0f389657bde895a":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"payee",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"LogPayment",type:"event"}],ambiguous:!0},"0x9df71221e13c480b974b5d5bd7591b30b7ea3bfff8a56dfa7fde810a14c1c39b":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"result",type:"uint256"}],name:"RunCreate",type:"event"}],ambiguous:!0},"0x6d0dbfc3805aef247651b04b50fc717599f7e0b66c6b022ae1544406f7bf8f86":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"result",type:"uint256"}],name:"RunKill",type:"event"}],ambiguous:!0},"0xb6c1c013bb5004fe8e943c6890e300ccedf9bd73dcd4eb291b31b9f96874feff":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"proposedStatusCode",type:"int256"},{indexed:!1,name:"returnStatusCode",type:"int256"}],name:"RunStatusChange",type:"event"}],ambiguous:!0},"0xffadad18ab3777a19f664019a6261b011ab9405749e01a45950d44fb9360b385":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"level",type:"uint8"},{indexed:!1,name:"calculateAccessCharge",type:"int256"}],name:"RunAccessCharge",type:"event"}],ambiguous:!0},"0x3e68dc35f88d76818f276322c37f5021ee00e232fe0d27a93c02801aec4d9c58":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"result",type:"uint256"}],name:"RunAccess",type:"event"}],ambiguous:!0},"0xbf0f2215c45c5ee802d4c20bdfc915308c4459b0f6a78f23ad350e6408bf2891":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"result",type:"uint256"}],name:"RunFinalize",type:"event"}],ambiguous:!0},"0xe36c3ab835cea1a8af00f744c77bb77bbbd33d20062bee3f9aceb6518d08e45e":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"rightsHolder",type:"bool"},{indexed:!1,name:"provider",type:"bool"},{indexed:!1,name:"membership",type:"bool"}],name:"AuthorizeRecording",type:"event"}],contract:"LvRecordableStream"},"0x41b90676ca6c9f288172c8f4f1f0253bfc527115acd3f7a972a5219ea4b0d0c5":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"recObj",type:"address"},{indexed:!1,name:"recContract",type:"address"}],name:"CreateRecording",type:"event"}],contract:"LvRecordableStream"},"0x9d3bb073bb2ef4d4a880f32fbbc665abfad2b29f532a231d93ab2207396f0b25":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"recObj",type:"address"},{indexed:!1,name:"recContract",type:"address"}],name:"DeleteRecording",type:"event"}],contract:"LvRecordableStream"},"0x8e6b298cf577550234f0d0de33a4910d4bf1c4e08fe31b1173b2c6232297b3f4":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"recObj",type:"address"},{indexed:!1,name:"recStartTime",type:"uint256"},{indexed:!1,name:"recEndTime",type:"uint256"}],name:"SetRecordingTimes",type:"event"}],contract:"LvRecordableStream"},"0x93ee8bc66b5d08a5dc39e788b1f78aa5f9ff2deda9e1387aa1fe22f9c329ed85":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"recObj",type:"address"},{indexed:!1,name:"recStatus",type:"string"}],name:"SetRecordingStatus",type:"event"}],contract:"LvRecordableStream"},"0x182a726f966f22c96d651085c2a7143482b8d96fb0964ff2664ab8bdf2b703aa":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"recObj",type:"address"},{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"accessTimestamp",type:"uint256"}],name:"RecordingPlaybackStarted",type:"event"}],contract:"LvRecordableStream"},"0x208745b583bd0c257eced13411dc4b50e9a3a9c1ef0cc2f95b30a7457ec50cc1":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"recObj",type:"address"},{indexed:!1,name:"requestID",type:"uint256"},{indexed:!1,name:"percentPlayed",type:"uint8"},{indexed:!1,name:"finalizeTimestamp",type:"uint256"}],name:"RecordingPlaybackCompleted",type:"event"}],contract:"LvRecordableStream"},"0xe3b30c4da7320d1a542eb57f205a34d2fc36ecd114595f3d50be2a73b3426e6b":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"recObj",type:"address"},{indexed:!1,name:"programId",type:"string"},{indexed:!1,name:"programStart",type:"uint256"},{indexed:!1,name:"programEnd",type:"uint256"},{indexed:!1,name:"programTitle",type:"string"}],name:"RecordedProgramId",type:"event"}],contract:"LvRecordableStream"},"0x7b4822b1021af568bad37d56a35fbc255dc67153c544aa4116a289632a4e5955":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"group",type:"address"}],name:"MembershipGroupRemoved",type:"event"}],contract:"LvRecordableStream"},"0x467a7c1305f91e354a8a1e9046906d4d1a4852f958a073a392555d809be313a7":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"group",type:"address"}],name:"MembershipGroupAdded",type:"event"}],contract:"LvRecordableStream"},"0x8d7e6a8f23ccc8845c41fd09bebe570a0885272343268bbdfd71090b878b4b21":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"}],name:"StartStream",type:"event"}],contract:"LvRecordableStream"},"0x1b01b687e3428bc184341f729ec8a57bdd569536206cfb59e5d0cecb30dfcb7e":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"}],name:"StopStream",type:"event"}],contract:"LvRecordableStream"},"0xe1182e14924c528bfb564fb8d4feefe9766244f88b00051f28182e635e9a1ae8":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"}],name:"EnableRecording",type:"event"}],contract:"LvRecordableStream"},"0x3a5d2272abc5c09c8e771719f0eeca97e31d2fc425f6c34cf1d7a712b5fb6bfd":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"}],name:"DisableRecording",type:"event"}],contract:"LvRecordableStream"},"0x3e5026851758e1ab6e995b071b048e26e92f459b047600ff68914479d5074c54":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"startTime",type:"uint256"},{indexed:!1,name:"endTime",type:"uint256"}],name:"SetTimes",type:"event"}],contract:"LvRecording"},"0x6fff8c8938f3906f27a679f8d6b6652c28d82df5e27e55ef5cdc5f96b06dee09":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"status",type:"uint8"}],name:"UpdateRecordingStatus",type:"event"}],contract:"LvRecording"},"0x453384b91e17e6c44d171f27d5d32a864cf9cc9740578ffd6552d323aa973372":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"programId",type:"string"}],name:"RecordProgramId",type:"event"}],contract:"LvRecording"},"0xb72dd3ed580fe54dae87f5560d5617f1425b22e33e0a8e6ca80bf5cca9505535":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"stream",type:"address"},{indexed:!1,name:"accessor",type:"address"},{indexed:!1,name:"rightsHolder",type:"bool"},{indexed:!1,name:"provider",type:"bool"},{indexed:!1,name:"membership",type:"bool"}],name:"AuthorizeRecording",type:"event"}],contract:"LvStreamRightsHolder"},"0xc9861f7825199418647d352092481fbd508dc7420e7a6e2f0f41be183d6e2c8d":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"stream",type:"address"}],name:"EnableRecording",type:"event"}],contract:"LvStreamRightsHolder"},"0xaeba60bf43bc8bad9685cf80e62ae6d5cd753813786f1821576545517a3e49cb":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"timestamp",type:"uint256"},{indexed:!1,name:"stream",type:"address"}],name:"DisableRecording",type:"event"}],contract:"LvStreamRightsHolder"},"0x66887b54b3a468d1f49f169043427354bba12c2a112aea5390bb426a96bf916c":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"numtokens",type:"uint256"},{indexed:!1,name:"pay_to",type:"string"},{indexed:!1,name:"nonce",type:"string"}],name:"RedeemTokenRequest",type:"event"}],contract:"PaymentService"},"0x34a9ae2cb75f5f06f7599e9cc92cb12c6a2f63af676d375bdc639acae37db5e0":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"currency",type:"string"},{indexed:!1,name:"value",type:"uint256"},{indexed:!1,name:"payment_proof",type:"string"},{indexed:!1,name:"nonce",type:"string"}],name:"RedeemTokenExecuted",type:"event"}],contract:"PaymentService"},"0x5847a2cfd3bf297a9d3a67cfa50403274ce0289f9dac832c5cb7490a7972977a":{abi:[{anonymous:!1,inputs:[{indexed:!1,name:"currency",type:"string"},{indexed:!1,name:"value",type:"uint256"}],name:"SetTokenValue",type:"event"}],contract:"PaymentService"}}},function(e,t,n){var r=n(6),i=n(14),a=n(10),o=n(11),s=n(16),A=n(37),c=n(229).FrameClient,u=n(38),f=function(){"use strict";function e(t){var n=t.client,r=t.debug;a(this,e),this.client=n,this.debug=r,this.userWalletAddresses={}}return o(e,[{key:"Log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.debug&&("object"===i(e)&&(e=JSON.stringify(e)),t?console.error("\n(elv-client-js#UserProfileClient) ".concat(e,"\n")):console.log("\n(elv-client-js#UserProfileClient) ".concat(e,"\n")))}}]),o(e,[{key:"CreateWallet",value:function(){var e,t,n,i;return r.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(!this.creatingWallet){a.next=6;break}case 1:if(!this.creatingWallet){a.next=6;break}return a.next=4,r.awrap(new Promise((function(e){return setTimeout(e,500)})));case 4:a.next=1;break;case 6:if(this.creatingWallet=!0,a.prev=7,this.walletAddress&&!s.EqualAddress(this.walletAddress,s.nullAddress)){a.next=20;break}return this.Log("Creating user wallet for user ".concat(this.client.signer.address)),a.next=12,r.awrap(this.client.GetBalance({address:this.client.signer.address}));case 12:if(!(a.sent<.1)){a.next=15;break}return a.abrupt("return",void 0);case 15:return a.next=17,r.awrap(this.client.CallContractMethodAndWait({contractAddress:s.HashToAddress(this.client.contentSpaceId),abi:u.abi,methodName:"createAccessWallet",methodArgs:[]}));case 17:e=a.sent,this.walletAddress=this.client.ExtractValueFromEvent({abi:u.abi,event:e,eventName:"CreateAccessWallet",eventValue:"wallet"}),this.userWalletAddresses[s.FormatAddress(this.client.signer.address)]=this.walletAddress;case 20:return t=this.client.contentSpaceLibraryId,n=s.AddressToObjectId(this.walletAddress),a.prev=22,a.next=25,r.awrap(this.client.ContentObject({libraryId:t,objectId:n}));case 25:a.next=38;break;case 27:if(a.prev=27,a.t0=a.catch(22),404!==a.t0.status){a.next=38;break}return this.Log("Creating wallet object for user ".concat(this.client.signer.address)),a.next=33,r.awrap(this.client.CreateContentObject({libraryId:t,objectId:n}));case 33:return i=a.sent,a.next=36,r.awrap(this.client.ReplaceMetadata({libraryId:t,objectId:n,writeToken:i.write_token,metadata:{bitcode_flags:"abrmaster",bitcode_format:"builtin"}}));case 36:return a.next=38,r.awrap(this.client.FinalizeContentObject({libraryId:t,objectId:n,writeToken:i.write_token}));case 38:a.next=44;break;case 40:a.prev=40,a.t1=a.catch(7),console.error("Failed to create wallet contract:"),console.error(a.t1);case 44:return a.prev=44,this.creatingWallet=!1,a.finish(44);case 47:case"end":return a.stop()}}),null,this,[[7,40,44,47],[22,27]])}},{key:"WalletAddress",value:function(){var e;return r.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.walletAddress){t.next=2;break}return t.abrupt("return",this.walletAddress);case 2:return t.next=4,r.awrap(this.client.CallContractMethod({abi:u.abi,contractAddress:s.HashToAddress(this.client.contentSpaceId),methodName:"userWallets",methodArgs:[this.client.signer.address]}));case 4:if(e=t.sent,s.EqualAddress(e,s.nullAddress)||(this.walletAddress=e),this.walletAddress){t.next=9;break}return t.next=9,r.awrap(this.CreateWallet());case 9:return t.abrupt("return",this.walletAddress);case 10:case"end":return t.stop()}}),null,this)}},{key:"UserWalletAddress",value:function(e){var t,n;return r.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.address,!s.EqualAddress(t,this.client.signer.address)){i.next=5;break}return i.next=4,r.awrap(this.WalletAddress());case 4:return i.abrupt("return",i.sent);case 5:if(this.userWalletAddresses[t]){i.next=11;break}return this.Log("Retrieving user wallet address for user ".concat(t)),i.next=9,r.awrap(this.client.CallContractMethod({abi:u.abi,contractAddress:s.HashToAddress(this.client.contentSpaceId),methodName:"userWallets",methodArgs:[t]}));case 9:n=i.sent,s.EqualAddress(n,s.nullAddress)||(this.userWalletAddresses[t]=n);case 11:return i.abrupt("return",this.userWalletAddresses[t]);case 12:case"end":return i.stop()}}),null,this)}},{key:"PublicUserMetadata",value:function(e){var t,n,i,a,o,c,u,f,h,d;return r.async((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.address,n=e.metadataSubtree,i=void 0===n?"/":n,a=e.resolveLinks,o=void 0!==a&&a,c=e.resolveIncludeSource,u=void 0!==c&&c,l.next=3,r.awrap(this.UserWalletAddress({address:t}));case 3:if(f=l.sent){l.next=6;break}return l.abrupt("return");case 6:return i=A("public",i||"/"),h=this.client.contentSpaceLibraryId,d=s.AddressToObjectId(f),l.next=11,r.awrap(this.client.ContentObjectMetadata({libraryId:h,objectId:d,metadataSubtree:i,resolveLinks:o,resolveIncludeSource:u}));case 11:return l.abrupt("return",l.sent);case 12:case"end":return l.stop()}}),null,this)}},{key:"UserMetadata",value:function(){var e,t,n,i,a,o,A,c,u,f=arguments;return r.async((function(h){for(;;)switch(h.prev=h.next){case 0:return e=f.length>0&&void 0!==f[0]?f[0]:{},t=e.metadataSubtree,n=void 0===t?"/":t,i=e.resolveLinks,a=void 0!==i&&i,o=e.resolveIncludeSource,A=void 0!==o&&o,this.Log("Accessing private user metadata at ".concat(n)),c=this.client.contentSpaceLibraryId,h.t0=s,h.next=6,r.awrap(this.WalletAddress());case 6:return h.t1=h.sent,u=h.t0.AddressToObjectId.call(h.t0,h.t1),h.next=10,r.awrap(this.client.ContentObjectMetadata({libraryId:c,objectId:u,metadataSubtree:n,resolveLinks:a,resolveIncludeSource:A}));case 10:return h.abrupt("return",h.sent);case 11:case"end":return h.stop()}}),null,this)}},{key:"MergeUserMetadata",value:function(e){var t,n,i,a,o,A,c;return r.async((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.metadataSubtree,n=void 0===t?"/":t,i=e.metadata,a=void 0===i?{}:i,this.Log("Merging user metadata at ".concat(n)),o=this.client.contentSpaceLibraryId,u.t0=s,u.next=6,r.awrap(this.WalletAddress());case 6:return u.t1=u.sent,A=u.t0.AddressToObjectId.call(u.t0,u.t1),u.next=10,r.awrap(this.client.EditContentObject({libraryId:o,objectId:A}));case 10:return c=u.sent,u.next=13,r.awrap(this.client.MergeMetadata({libraryId:o,objectId:A,writeToken:c.write_token,metadataSubtree:n,metadata:a}));case 13:return u.next=15,r.awrap(this.client.FinalizeContentObject({libraryId:o,objectId:A,writeToken:c.write_token}));case 15:case"end":return u.stop()}}),null,this)}},{key:"ReplaceUserMetadata",value:function(e){var t,n,i,a,o,A,c;return r.async((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.metadataSubtree,n=void 0===t?"/":t,i=e.metadata,a=void 0===i?{}:i,this.Log("Replacing user metadata at ".concat(n)),o=this.client.contentSpaceLibraryId,u.t0=s,u.next=6,r.awrap(this.WalletAddress());case 6:return u.t1=u.sent,A=u.t0.AddressToObjectId.call(u.t0,u.t1),u.next=10,r.awrap(this.client.EditContentObject({libraryId:o,objectId:A}));case 10:return c=u.sent,u.next=13,r.awrap(this.client.ReplaceMetadata({libraryId:o,objectId:A,writeToken:c.write_token,metadataSubtree:n,metadata:a}));case 13:return u.next=15,r.awrap(this.client.FinalizeContentObject({libraryId:o,objectId:A,writeToken:c.write_token}));case 15:case"end":return u.stop()}}),null,this)}},{key:"DeleteUserMetadata",value:function(e){var t,n,i,a,o;return r.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.metadataSubtree,n=void 0===t?"/":t,this.Log("Deleting user metadata at ".concat(n)),i=this.client.contentSpaceLibraryId,A.t0=s,A.next=6,r.awrap(this.WalletAddress());case 6:return A.t1=A.sent,a=A.t0.AddressToObjectId.call(A.t0,A.t1),A.next=10,r.awrap(this.client.EditContentObject({libraryId:i,objectId:a}));case 10:return o=A.sent,A.next=13,r.awrap(this.client.DeleteMetadata({libraryId:i,objectId:a,writeToken:o.write_token,metadataSubtree:n}));case 13:return A.next=15,r.awrap(this.client.FinalizeContentObject({libraryId:i,objectId:a,writeToken:o.write_token}));case 15:case"end":return A.stop()}}),null,this)}},{key:"AccessLevel",value:function(){return r.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.awrap(this.UserMetadata({metadataSubtree:"access_level"}));case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0="prompt";case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),null,this)}},{key:"SetAccessLevel",value:function(e){var t;return r.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=(t=e.level).toLowerCase(),["private","prompt","public"].includes(t)){n.next=4;break}throw new Error("Invalid access level: "+t);case 4:return n.next=6,r.awrap(this.ReplaceUserMetadata({metadataSubtree:"access_level",metadata:t}));case 6:case"end":return n.stop()}}),null,this)}},{key:"UserProfileImage",value:function(){var e,t,n,i,a,o,A=arguments;return r.async((function(c){for(;;)switch(c.prev=c.next){case 0:if(e=A.length>0&&void 0!==A[0]?A[0]:{},!(t=e.address)){c.next=7;break}return c.next=4,r.awrap(this.UserWalletAddress({address:t}));case 4:n=c.sent,c.next=9;break;case 7:t=this.client.signer.address,n=this.walletAddress;case 9:if(n){c.next=11;break}return c.abrupt("return");case 11:return c.next=13,r.awrap(this.PublicUserMetadata({address:t,metadataSubtree:"image"}));case 13:if(i=c.sent){c.next=16;break}return c.abrupt("return");case 16:return a=this.client.contentSpaceLibraryId,o=s.AddressToObjectId(n),c.next=20,r.awrap(this.client.PublicRep({libraryId:a,objectId:o,rep:"image",queryParams:{hash:i},noAuth:!0,channelAuth:!1}));case 20:return c.abrupt("return",c.sent);case 21:case"end":return c.stop()}}),null,this)}},{key:"SetUserProfileImage",value:function(e){var t,n,i,a,o;return r.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.image,this.Log("Setting profile image for user ".concat(this.client.signer.address)),n=this.client.contentSpaceLibraryId,A.t0=s,A.next=6,r.awrap(this.WalletAddress());case 6:return A.t1=A.sent,i=A.t0.AddressToObjectId.call(A.t0,A.t1),A.next=10,r.awrap(this.client.EditContentObject({libraryId:n,objectId:i}));case 10:return a=A.sent,A.next=13,r.awrap(this.client.UploadPart({libraryId:n,objectId:i,writeToken:a.write_token,data:t}));case 13:return o=A.sent,A.next=16,r.awrap(this.client.MergeMetadata({libraryId:n,objectId:i,writeToken:a.write_token,metadata:{image:o.part.hash}}));case 16:return A.next=18,r.awrap(this.client.MergeMetadata({libraryId:n,objectId:i,writeToken:a.write_token,metadataSubtree:"public",metadata:{image:o.part.hash}}));case 18:return A.next=20,r.awrap(this.client.FinalizeContentObject({libraryId:n,objectId:i,writeToken:a.write_token}));case 20:case"end":return A.stop()}}),null,this)}},{key:"CollectedTags",value:function(){return r.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.awrap(this.UserMetadata({metadataSubtree:"collected_data"}));case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0={};case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),null,this)}},{key:"RecordTags",value:function(e){var t,n,i;return r.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.libraryId,n=e.objectId,i=e.versionHash,a.prev=1,a.next=4,r.awrap(this.__RecordTags({libraryId:t,objectId:n,versionHash:i}));case 4:a.next=9;break;case 6:a.prev=6,a.t0=a.catch(1),console.error(a.t0);case 9:case"end":return a.stop()}}),null,this,[[1,6]])}},{key:"__RecordTags",value:function(e){var t,n,i,a,o,c,u,f,h;return r.async((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.libraryId,n=e.objectId,i=e.versionHash,d.next=3,r.awrap(this.client.AccessType({id:n}));case 3:if("object"===d.sent){d.next=6;break}return d.abrupt("return");case 6:if(i||t){d.next=10;break}return d.next=9,r.awrap(this.client.ContentObjectLibraryId({objectId:n}));case 9:t=d.sent;case 10:if(i){d.next=14;break}return d.next=13,r.awrap(this.client.ContentObject({libraryId:t,objectId:n}));case 13:i=d.sent.hash;case 14:return d.next=16,r.awrap(this.UserMetadata({metadataSubtree:A("accessed_content",i)}));case 16:if(!d.sent){d.next=19;break}return d.abrupt("return");case 19:return a=this.client.contentSpaceLibraryId,d.t0=s,d.next=23,r.awrap(this.WalletAddress());case 23:return d.t1=d.sent,o=d.t0.AddressToObjectId.call(d.t0,d.t1),d.next=27,r.awrap(this.client.EditContentObject({libraryId:a,objectId:o}));case 27:return c=d.sent,d.next=30,r.awrap(this.client.ReplaceMetadata({libraryId:a,objectId:o,writeToken:c.write_token,metadataSubtree:A("accessed_content",i),metadata:Date.now()}));case 30:return d.next=32,r.awrap(this.client.ContentObjectMetadata({libraryId:t,objectId:n,versionHash:i,metadataSubtree:"video_tags"}));case 32:if(!((u=d.sent)&&u.length>0)){d.next=41;break}return d.next=36,r.awrap(this.CollectedTags());case 36:return f=d.sent,h=this.__FormatVideoTags(u),Object.keys(h).forEach((function(e){f[e]?(f[e].occurrences+=1,f[e].aggregate+=h[e]):f[e]={occurrences:1,aggregate:h[e]}})),d.next=41,r.awrap(this.client.ReplaceMetadata({libraryId:a,objectId:o,writeToken:c.write_token,metadataSubtree:"collected_data",metadata:f}));case 41:return d.next=43,r.awrap(this.client.FinalizeContentObject({libraryId:a,objectId:o,writeToken:c.write_token,awaitCommitConfirmation:!1}));case 43:case"end":return d.stop()}}),null,this)}},{key:"__FormatVideoTags",value:function(e){var t={};e.forEach((function(e){e.tags.forEach((function(e){t[e.tag]?(t[e.tag].occurrences+=1,t[e.tag].aggregate+=e.score):t[e.tag]={occurrences:1,aggregate:e.score}}))}));var n={};return Object.keys(t).forEach((function(e){n[e]=t[e].aggregate/t[e].occurrences})),n}},{key:"PromptedMethods",value:function(){return c.PromptedMethods()}},{key:"MetadataMethods",value:function(){return c.MetadataMethods()}},{key:"FrameAllowedMethods",value:function(){var e=["constructor","FrameAllowedMethods","Log","MetadataMethods","PromptedMethods","RecordTags","SetAccessLevel","SetUserProfileImage","__IsLibraryCreated","__TouchLibrary","__FormatVideoTags","__RecordTags"];return Object.getOwnPropertyNames(Object.getPrototypeOf(this)).filter((function(t){return!e.includes(t)}))}}]),e}();e.exports=f},function(e,t,n){var r=n(18),i=n(6),a=n(10),o=n(11);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=n(72),u=n(16),f=function(){"use strict";function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.target,o=void 0===r?parent:r,s=n.timeout,A=void 0===s?30:s;a(this,e),this.target=o,this.timeout=A,this.utils=u;var c=!0,f=!1,h=void 0;try{for(var d,l=function(){var e=d.value;t[e]=function(n){var r;return i.async((function(a){for(;;)switch(a.prev=a.next){case 0:return(r=n&&n.callback)&&delete n.callback,a.next=4,i.awrap(t.SendMessage({options:{calledMethod:e,args:t.utils.MakeClonable(n)},callback:r}));case 4:return a.abrupt("return",a.sent);case 5:case"end":return a.stop()}}))}},g=this.AllowedMethods()[Symbol.iterator]();!(c=(d=g.next()).done);c=!0)l()}catch(e){f=!0,h=e}finally{try{c||null==g.return||g.return()}finally{if(f)throw h}}this.userProfileClient={};var p=!0,y=!1,I=void 0;try{for(var b,C=function(){var n=b.value;t.userProfileClient[n]=function(r){var a;return i.async((function(o){for(;;)switch(o.prev=o.next){case 0:return(a=r&&r.callback)&&delete r.callback,o.next=4,i.awrap(t.SendMessage({options:{module:"userProfileClient",calledMethod:n,args:t.utils.MakeClonable(r),prompted:e.PromptedMethods().includes(n)},callback:a}));case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}}))}},m=this.AllowedUserProfileMethods()[Symbol.iterator]();!(p=(b=m.next()).done);p=!0)C()}catch(e){y=!0,I=e}finally{try{p||null==m.return||m.return()}finally{if(y)throw I}}}return o(e,[{key:"PassRequest",value:function(e){var t,n,r,a,o;return i.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.request,n=e.Respond,s.prev=1,t.callbackId&&(o=function(e){return n({type:"ElvFrameResponse",requestId:t.callbackId,response:e})}),s.next=5,i.awrap(this.SendMessage({options:t,callback:o}));case 5:r=s.sent,s.next=11;break;case 8:s.prev=8,s.t0=s.catch(1),a=s.t0;case 11:return s.abrupt("return",{type:"ElvFrameResponse",requestId:t.requestId,response:r,error:a});case 12:case"end":return s.stop()}}),null,this,[[1,8]])}},{key:"SendMessage",value:function(t){var n,r,a,o,s,u,f,h,d,l;return i.async((function(g){for(;;)switch(g.prev=g.next){case 0:if(n=t.options,r=void 0===n?{}:n,a=t.callback,o=t.noResponse,s=void 0!==o&&o,u=c.next(),a&&(f=c.next()),this.target.postMessage(A({},r,{type:"ElvFrameRequest",requestId:u,callbackId:f}),"*"),!s){g.next=6;break}return g.abrupt("return");case 6:return h=r.calledMethod||r.operation,d=e.FileMethods().includes(r.calledMethod),l=r.prompted||d?0:this.timeout,g.next=11,i.awrap(this.AwaitMessage(u,l,a,f,h));case 11:return g.abrupt("return",g.sent);case 12:case"end":return g.stop()}}),null,this)}},{key:"AwaitMessage",value:function(e,t,n,r,a){return i.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i.awrap(new Promise((function(o,s){var A,c,u,f=function(){c&&clearTimeout(c),t>0&&(c=setTimeout((function(){s("Request ".concat(e," timed out (").concat(a,")")),window.removeEventListener("message",A),u&&window.removeEventListener("message",u)}),1e3*t))};r&&(u=function(e){try{f();var t=e.data;if("ElvFrameResponse"!==t.type||t.requestId!==r)return;n(t.response)}catch(e){console.error(e)}},window.addEventListener("message",u)),A=function(t){var n;return i.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,"ElvFrameResponse"===(n=t.data).type&&n.requestId===e){r.next=4;break}return r.abrupt("return");case 4:n.error?s(n.error):o(n.response),window.removeEventListener("message",A),u&&window.removeEventListener("message",u),r.next=14;break;case 9:r.prev=9,r.t0=r.catch(0),s(r.t0),window.removeEventListener("message",A),u&&window.removeEventListener("message",u);case 14:case"end":return r.stop()}}),null,null,[[0,9]])},f(),window.addEventListener("message",A)})));case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}}))}},{key:"AllowedMethods",value:function(){return["AccessGroupManagers","AccessGroupMembers","AccessGroupOwner","AccessInfo","AccessRequest","AccessType","AddAccessGroupManager","AddAccessGroupMember","AddContentLibraryGroup","AddContentObjectGroupPermission","AddLibraryContentType","AudienceData","AvailableDRMs","BitmovinPlayoutOptions","BlockNumber","CallBitcodeMethod","CallContractMethod","CallContractMethodAndWait","ClearCache","Collection","ContentLibraries","ContentLibrary","ContentLibraryGroupPermissions","ContentLibraryOwner","ContentObject","ContentObjectAccessComplete","ContentObjectGraph","ContentObjectGroupPermissions","ContentObjectLibraryId","ContentObjectMetadata","ContentObjectOwner","ContentObjectVersions","ContentObjects","ContentPart","ContentParts","ContentSpaceId","ContentType","ContentTypeOwner","ContentTypes","ContractEvents","ContractName","CopyContentObject","CreateABRMezzanine","CreateAccessGroup","CreateContentLibrary","CreateContentObject","CreateContentType","CreateFileDirectories","CreateFileUploadJob","CreateLinks","CreatePart","CreateProductionMaster","CurrentAccountAddress","CustomContractAddress","Decrypt","DefaultKMSAddress","DeleteAccessGroup","DeleteContentLibrary","DeleteContentObject","DeleteContentVersion","DeleteFiles","DeleteMetadata","DeletePart","DeployContract","Download","DownloadEncrypted","DownloadFile","DownloadPart","EditContentObject","Encrypt","EncryptionConk","Events","ExtractEventFromLogs","ExtractValueFromEvent","FabricUrl","FileUrl","FinalizeABRMezzanine","FinalizeContentObject","FinalizePart","FinalizeStateChannelAccess","FinalizeUploadJob","FormatContractArguments","GenerateStateChannelToken","GetBalance","LatestVersionHash","LibraryContentTypes","LinkData","LinkTarget","LinkUrl","ListFiles","LROStatus","MergeMetadata","NodeId","Nodes","PlayoutOptions","ProduceMetadataLinks","Proofs","PublicRep","PublishContentVersion","QParts","RemoveAccessGroupManager","RemoveAccessGroupMember","RemoveContentObjectGroupPermission","RemoveContentLibraryGroup","RemoveLibraryContentType","Rep","ReplaceMetadata","ResetRegion","SendFunds","SetAccessCharge","SetAuth","SetContentLibraryImage","SetContentObjectImage","SetCustomContentContract","SetNodes","SetOauthToken","SetSignerFromOauthToken","StartABRMezzanineJobs","UpdateContentObjectGraph","UploadFileData","UploadFiles","UploadFilesFromS3","UploadJobStatus","UploadPart","UploadPartChunk","UploadStatus","UseRegion","VerifyContentObject"]}},{key:"AllowedUserProfileMethods",value:function(){return["AccessLevel","CollectedTags","CreateWallet","DeleteUserMetadata","MergeUserMetadata","PublicUserMetadata","ReplaceUserMetadata","UserMetadata","UserProfileImage","UserWalletAddress","WalletAddress"]}}],[{key:"PromptedMethods",value:function(){return["CollectedTags","DeleteUserMetadata","MergeUserMetadata","ReplaceUserMetadata","UserMetadata"]}},{key:"MetadataMethods",value:function(){return["DeleteUserMetadata","MergeUserMetadata","ReplaceUserMetadata","UserMetadata"]}},{key:"FileMethods",value:function(){return["DownloadFile","DownloadPart","UploadFiles","UploadPart","UploadPartChunk"]}}]),e}();t.FrameClient=f},function(e,t,n){var r=n(18),i=n(50),a=n(6);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=n(39),c=n(231),u=n(232),f=n(41),h=f.ValidatePresence,d=f.ValidateLibrary,l=f.ValidateObject,g=f.ValidateAddress;t.access={},t.manage={},t.access.AccessGroupOwner=function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.contractAddress,g(t),this.Log("Retrieving owner of access group ".concat(t)),n.t0=this.utils,n.next=6,a.awrap(this.ethClient.CallContractMethod({contractAddress:t,abi:c.abi,methodName:"owner",methodArgs:[],signer:this.signer}));case 6:return n.t1=n.sent,n.abrupt("return",n.t0.FormatAddress.call(n.t0,n.t1));case 8:case"end":return n.stop()}}),null,this)},t.access.AccessGroupMembers=function(e){var t,n,r=this;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.contractAddress,g(t),this.Log("Retrieving members for group ".concat(t)),o.next=5,a.awrap(this.CallContractMethod({contractAddress:t,abi:c.abi,methodName:"membersNum"}));case 5:return n=o.sent.toNumber(),o.next=8,a.awrap(Promise.all(i(Array(n)).map((function(e,n){return a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=r.utils,e.next=3,a.awrap(r.CallContractMethod({contractAddress:t,abi:c.abi,methodName:"membersList",methodArgs:[n]}));case 3:return e.t1=e.sent,e.abrupt("return",e.t0.FormatAddress.call(e.t0,e.t1));case 5:case"end":return e.stop()}}))}))));case 8:return o.abrupt("return",o.sent);case 9:case"end":return o.stop()}}),null,this)},t.access.AccessGroupManagers=function(e){var t,n,r=this;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.contractAddress,g(t),this.Log("Retrieving managers for group ".concat(t)),o.next=5,a.awrap(this.CallContractMethod({contractAddress:t,abi:c.abi,methodName:"managersNum"}));case 5:return n=o.sent.toNumber(),o.next=8,a.awrap(Promise.all(i(Array(n)).map((function(e,n){return a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=r.utils,e.next=3,a.awrap(r.CallContractMethod({contractAddress:t,abi:c.abi,methodName:"managersList",methodArgs:[n]}));case 3:return e.t1=e.sent,e.abrupt("return",e.t0.FormatAddress.call(e.t0,e.t1));case 5:case"end":return e.stop()}}))}))));case 8:return o.abrupt("return",o.sent);case 9:case"end":return o.stop()}}),null,this)},t.manage.CreateAccessGroup=function(){var e,t,n,r,i,o,A,c,u,f=arguments;return a.async((function(h){for(;;)switch(h.prev=h.next){case 0:return e=f.length>0&&void 0!==f[0]?f[0]:{},t=e.name,n=e.description,r=e.metadata,i=void 0===r?{}:r,this.Log("Creating access group: ".concat(t||""," ").concat(n||"")),h.next=4,a.awrap(this.authClient.CreateAccessGroup());case 4:return o=h.sent,A=o.contractAddress,A=this.utils.FormatAddress(A),c=this.utils.AddressToObjectId(A),this.Log("Access group: ".concat(A," ").concat(c)),h.next=11,a.awrap(this.EditContentObject({libraryId:this.contentSpaceLibraryId,objectId:c}));case 11:return u=h.sent,h.next=14,a.awrap(this.ReplaceMetadata({libraryId:this.contentSpaceLibraryId,objectId:c,writeToken:u.write_token,metadata:s({public:{name:t,description:n},name:t,description:n},i)}));case 14:return h.next=16,a.awrap(this.FinalizeContentObject({libraryId:this.contentSpaceLibraryId,objectId:c,writeToken:u.write_token}));case 16:return h.abrupt("return",A);case 17:case"end":return h.stop()}}),null,this)},t.manage.DeleteAccessGroup=function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.contractAddress,g(t),this.Log("Deleting access group ".concat(t)),n.next=5,a.awrap(this.CallContractMethodAndWait({contractAddress:t,abi:c.abi,methodName:"kill",methodArgs:[]}));case 5:case"end":return n.stop()}}),null,this)},t.manage.AccessGroupMembershipMethod=function(e){var t,n,r,i,o,s;return a.async((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=e.contractAddress,n=e.memberAddress,r=e.methodName,i=e.eventName,g(t),g(n),this.utils.EqualAddress(this.signer.address,n)){A.next=9;break}return A.next=6,a.awrap(this.CallContractMethod({contractAddress:t,abi:c.abi,methodName:"hasManagerAccess",methodArgs:[this.utils.FormatAddress(this.signer.address)]}));case 6:if(A.sent){A.next=9;break}throw Error("Manager access required");case 9:return this.Log("Calling ".concat(r," on group ").concat(t," for user ").concat(n)),A.next=12,a.awrap(this.CallContractMethodAndWait({contractAddress:t,abi:c.abi,methodName:r,methodArgs:[this.utils.FormatAddress(n)],eventName:i,eventValue:"candidate"}));case 12:if(o=A.sent,s=this.ExtractValueFromEvent({abi:c.abi,event:o,eventName:i,eventValue:"candidate"}),this.utils.FormatAddress(s)===this.utils.FormatAddress(n)){A.next=17;break}throw console.error("Mismatch: "+s+" :: "+n),Error("Access group method "+r+" failed");case 17:return A.abrupt("return",o.transactionHash);case 18:case"end":return A.stop()}}),null,this)},t.manage.AddAccessGroupMember=function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.contractAddress,n=e.memberAddress,g(t),g(n),r.next=5,a.awrap(this.AccessGroupMembershipMethod({contractAddress:t,memberAddress:n,methodName:"grantAccess",eventName:"MemberAdded"}));case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),null,this)},t.manage.RemoveAccessGroupMember=function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.contractAddress,n=e.memberAddress,g(t),g(n),r.next=5,a.awrap(this.AccessGroupMembershipMethod({contractAddress:t,memberAddress:n,methodName:"revokeAccess",eventName:"MemberRevoked"}));case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),null,this)},t.manage.AddAccessGroupManager=function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.contractAddress,n=e.memberAddress,g(t),g(n),r.next=5,a.awrap(this.AccessGroupMembershipMethod({contractAddress:t,memberAddress:n,methodName:"grantManagerAccess",eventName:"ManagerAccessGranted"}));case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),null,this)},t.manage.RemoveAccessGroupManager=function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.contractAddress,n=e.memberAddress,g(t),g(n),r.next=5,a.awrap(this.AccessGroupMembershipMethod({contractAddress:t,memberAddress:n,methodName:"revokeManagerAccess",eventName:"ManagerAccessRevoked"}));case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),null,this)},t.access.ContentLibraryGroupPermissions=function(e){var t,n,r,o,s=this;return a.async((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.libraryId,n=e.permissions,r=void 0===n?[]:n,d(t),o={},r=r&&0!==r.length?r.map((function(e){if(e=e.toLowerCase(),!["accessor","contributor","reviewer"].includes(e))throw Error("Invalid permission: ".concat(e));return e})):["accessor","contributor","reviewer"],this.Log("Retrieving ".concat(r.join(", ")," group(s) for library ").concat(t)),c.next=7,a.awrap(Promise.all(r.map((function(e){var n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.awrap(s.CallContractMethod({contractAddress:s.utils.HashToAddress(t),abi:A.abi,methodName:e+"GroupsLength"}));case 2:return n=r.sent,n=parseInt(n._hex,16),r.next=6,a.awrap(s.utils.LimitedMap(3,i(Array(n).keys()),(function(n){return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.t0=s.utils,r.next=4,a.awrap(s.CallContractMethod({contractAddress:s.utils.HashToAddress(t),abi:A.abi,methodName:e+"Groups",methodArgs:[n]}));case 4:return r.t1=r.sent,r.abrupt("return",r.t0.FormatAddress.call(r.t0,r.t1));case 8:r.prev=8,r.t2=r.catch(0),console.error(r.t2);case 11:case"end":return r.stop()}}),null,null,[[0,8]])})));case 6:r.sent.forEach((function(t){return o[t]=[].concat(i(o[t]||[]),[e]).sort()}));case 8:case"end":return r.stop()}}))}))));case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}}),null,this)},t.manage.AddContentLibraryGroup=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.libraryId,n=e.groupAddress,r=e.permission,d(t),g(n),n=this.utils.FormatAddress(n),["accessor","contributor","reviewer"].includes(r.toLowerCase())){o.next=6;break}throw Error("Invalid group type: ".concat(r));case 6:return this.Log("Adding ".concat(r," group ").concat(n," to library ").concat(t)),o.next=9,a.awrap(this.ContentLibraryGroupPermissions({libraryId:t,permissions:[r]}));case 9:if(!o.sent[n]){o.next=12;break}return o.abrupt("return");case 12:return r=r.charAt(0).toUpperCase()+r.substr(1).toLowerCase(),o.next=15,a.awrap(this.CallContractMethodAndWait({contractAddress:this.utils.HashToAddress(t),abi:A.abi,methodName:"add".concat(r,"Group"),methodArgs:[this.utils.FormatAddress(n)]}));case 15:return i=o.sent,o.next=18,a.awrap(this.ExtractEventFromLogs({abi:A.abi,event:i,eventName:"".concat(r,"GroupAdded")}));case 18:case"end":return o.stop()}}),null,this)},t.manage.RemoveContentLibraryGroup=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.libraryId,n=e.groupAddress,r=e.permission,d(t),g(n),["accessor","contributor","reviewer"].includes(r.toLowerCase())){o.next=5;break}throw Error("Invalid group type: ".concat(r));case 5:return this.Log("Removing ".concat(r," group ").concat(n," from library ").concat(t)),o.next=8,a.awrap(this.ContentLibraryGroupPermissions({libraryId:t,permissions:[r]}));case 8:if(o.sent[n]){o.next=11;break}return o.abrupt("return");case 11:return r=r.charAt(0).toUpperCase()+r.substr(1).toLowerCase(),o.next=14,a.awrap(this.CallContractMethodAndWait({contractAddress:this.utils.HashToAddress(t),abi:A.abi,methodName:"remove".concat(r,"Group"),methodArgs:[this.utils.FormatAddress(n)]}));case 14:return i=o.sent,o.next=17,a.awrap(this.ExtractEventFromLogs({abi:A.abi,event:i,eventName:"".concat(r,"GroupRemoved")}));case 17:case"end":return o.stop()}}),null,this)},t.access.ContentObjectGroupPermissions=function(e){var t,n,r,i,o=this;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.objectId,l(t),this.Log("Retrieving group permissions for object ".concat(t)),n=this.utils.HashToAddress(t),s.next=6,a.awrap(this.Collection({collectionType:"accessGroups"}));case 6:return r=s.sent,i={},s.next=10,a.awrap(Promise.all(r.map((function(e){var t,r;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return e=o.utils.FormatAddress(e),s.next=3,a.awrap(o.CallContractMethod({contractAddress:e,abi:u.abi,methodName:"getContentObjectRights",methodArgs:[n]}));case 3:if(0!==(t=s.sent)){s.next=6;break}return s.abrupt("return");case 6:r=[],t>=100&&r.push("manage"),t%100>=10&&r.push("access"),t%10>0&&r.push("see"),i[e]=r;case 11:case"end":return s.stop()}}))}))));case 10:return s.abrupt("return",i);case 11:case"end":return s.stop()}}),null,this)},t.manage.AddContentObjectGroupPermission=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.objectId,n=e.groupAddress,r=e.permission,h("permission",r),l(t),g(n),r=r.toLowerCase(),n=this.utils.FormatAddress(n),["see","access","manage"].includes(r)){o.next=8;break}throw Error("Invalid permission type: ".concat(r));case 8:return this.Log("Adding ".concat(r," permission to group ").concat(n," for ").concat(t)),o.next=11,a.awrap(this.CallContractMethodAndWait({contractAddress:n,abi:u.abi,methodName:"setContentObjectRights",methodArgs:[this.utils.HashToAddress(t),"manage"===r?2:"access"===r?1:0,"none"===r?0:2]}));case 11:return i=o.sent,o.next=14,a.awrap(this.ExtractEventFromLogs({abi:u.abi,event:i,eventName:"RightsChanged"}));case 14:case"end":return o.stop()}}),null,this)},t.manage.RemoveContentObjectGroupPermission=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.objectId,n=e.groupAddress,r=e.permission,h("permission",r),l(t),g(n),r=r.toLowerCase(),n=this.utils.FormatAddress(n),["see","access","manage"].includes(r)){o.next=8;break}throw Error("Invalid permission type: ".concat(r));case 8:return this.Log("Removing ".concat(r," permission from group ").concat(n," for ").concat(t)),o.next=11,a.awrap(this.CallContractMethodAndWait({contractAddress:n,abi:u.abi,methodName:"setContentObjectRights",methodArgs:[this.utils.HashToAddress(t),"manage"===r?2:"access"===r?1:0,0]}));case 11:return i=o.sent,o.next=14,a.awrap(this.ExtractEventFromLogs({abi:u.abi,event:i,eventName:"RightsChanged"}));case 14:case"end":return o.stop()}}),null,this)}},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"parentAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"creator",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpContentObjects",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"content_space",type:"address"}],name:"setContentSpace",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"}],name:"getContractRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_CONTENT_OBJECT",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"candidate",type:"address"}],name:"grantAccess",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getAccessGroupsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_GROUP",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"membersList",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"canConfirm",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"group",type:"address"},{name:"access_type",type:"uint8"}],name:"checkAccessGroupRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_LIBRARY",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ACCESS_CONFIRMED",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"managersList",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setContractRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getAccessGroup",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpAll",outputs:[{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"group",type:"address"}],name:"getAccessGroupRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"accessGroups",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"countVersionHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"commitPending",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setContentObjectRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"kill",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"candidate",type:"address"}],name:"hasManagerAccess",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"confirmCommit",outputs:[{name:"",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[],name:"ACCESS_TENTATIVE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"membersNum",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContentTypesLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"TYPE_EDIT",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"clearPending",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkContentObjectRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"pendingHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_CONTRACT",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"managersNum",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"lib",type:"address"},{name:"access_type",type:"uint8"}],name:"checkLibraryRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_CONTENT_TYPE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"}],name:"getContentObjectRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contracts",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newCreator",type:"address"}],name:"transferCreatorship",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"canCommit",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"manager",type:"address"}],name:"grantManagerAccess",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"addr",type:"address"}],name:"contractExists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionTimestamp",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"versionHashes",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"lib",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setLibraryRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"index_type",type:"uint8"},{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ACCESS_NONE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpContentTypes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"candidate",type:"address"}],name:"revokeAccess",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setContentTypeRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpLibraries",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"candidate",type:"address"}],name:"hasAccess",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"TYPE_SEE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_objectHash",type:"string"}],name:"commit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"contentTypes",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"index_type",type:"uint8"},{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkDirectRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"}],name:"getContentTypeRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkContractRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentObjects",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getContentType",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentSpace",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"setAccessRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"updateRequest",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"libraries",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getLibrariesLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"manager",type:"address"}],name:"revokeManagerAccess",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getContentObject",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getLibrary",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"TYPE_ACCESS",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpAccessGroups",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"candidate",type:"address"},{name:"mgr",type:"bool"}],name:"hasAccessRight",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"objectHash",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_versionHash",type:"string"}],name:"deleteVersion",outputs:[{name:"",type:"int256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getContentObjectsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setAccessGroupRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"lib",type:"address"}],name:"getLibraryRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContractsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkContentTypeRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[{name:"content_space",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"MemberAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"ManagerAccessGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"MemberRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"candidate",type:"address"}],name:"ManagerAccessRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"operationCode",type:"uint256"},{indexed:!1,name:"candidate",type:"address"}],name:"UnauthorizedOperation",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"parentAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"CommitPending",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"objectHash",type:"string"}],name:"UpdateRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"objectHash",type:"string"}],name:"VersionConfirm",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"spaceAddress",type:"address"},{indexed:!1,name:"versionHash",type:"string"},{indexed:!1,name:"index",type:"int256"}],name:"VersionDelete",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"principal",type:"address"},{indexed:!1,name:"entity",type:"address"},{indexed:!1,name:"aggregate",type:"uint8"}],name:"RightsChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"index",type:"uint256"},{indexed:!1,name:"a",type:"address"}],name:"dbgAddress",type:"event"}]}},function(e,t){e.exports={abi:[{constant:!0,inputs:[],name:"creator",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpContentObjects",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"content_space",type:"address"}],name:"setContentSpace",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"}],name:"getContractRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_CONTENT_OBJECT",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getAccessGroupsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_GROUP",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"group",type:"address"},{name:"access_type",type:"uint8"}],name:"checkAccessGroupRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_LIBRARY",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ACCESS_CONFIRMED",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setContractRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getAccessGroup",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpAll",outputs:[{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"},{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"group",type:"address"}],name:"getAccessGroupRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"accessGroups",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setContentObjectRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"kill",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"candidate",type:"address"}],name:"hasManagerAccess",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ACCESS_TENTATIVE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContentTypesLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"TYPE_EDIT",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkContentObjectRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_CONTRACT",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"lib",type:"address"},{name:"access_type",type:"uint8"}],name:"checkLibraryRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"CATEGORY_CONTENT_TYPE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"}],name:"getContentObjectRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contracts",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newCreator",type:"address"}],name:"transferCreatorship",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getContract",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"addr",type:"address"}],name:"contractExists",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"lib",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setLibraryRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"index_type",type:"uint8"},{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ACCESS_NONE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpContentTypes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setContentTypeRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpLibraries",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"TYPE_SEE",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentTypes",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"index_type",type:"uint8"},{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkDirectRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"}],name:"getContentTypeRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkContractRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentObjects",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getContentType",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"contentSpace",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"setAccessRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"libraries",outputs:[{name:"category",type:"uint8"},{name:"length",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getLibrariesLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getContentObject",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"position",type:"uint256"}],name:"getLibrary",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"TYPE_ACCESS",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"cleanUpAccessGroups",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getContentObjectsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"group",type:"address"},{name:"access_type",type:"uint8"},{name:"access",type:"uint8"}],name:"setAccessGroupRights",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"lib",type:"address"}],name:"getLibraryRights",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getContractsLength",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"obj",type:"address"},{name:"access_type",type:"uint8"}],name:"checkContentTypeRights",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],payable:!0,stateMutability:"payable",type:"constructor"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"principal",type:"address"},{indexed:!1,name:"entity",type:"address"},{indexed:!1,name:"aggregate",type:"uint8"}],name:"RightsChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"label",type:"string"},{indexed:!1,name:"index",type:"uint256"},{indexed:!1,name:"a",type:"address"}],name:"dbgAddress",type:"event"}]}},function(e,t,n){var r=n(14),i=n(18),a=n(6);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=n(37),c=n(43),u=n(45),f=n(38),h=n(39),d=n(40),l=n(122),g=n(41),p=g.ValidateLibrary,y=g.ValidateObject,I=g.ValidateVersion,b=g.ValidatePartHash,C=g.ValidateWriteToken,m=g.ValidateParameters;t.DefaultKMSAddress=function(){return a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.awrap(this.CallContractMethod({contractAddress:this.contentSpaceAddress,abi:f.abi,methodName:"addressKMS"}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),null,this)},t.ContentSpaceId=function(){return this.contentSpaceId},t.ContentTypeOwner=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.name,n=e.typeId,r=e.versionHash,o.next=3,a.awrap(this.ContentType({name:t,typeId:n,versionHash:r}));case 3:return i=o.sent,o.t0=this.utils,o.next=7,a.awrap(this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(i.id),abi:l.abi,methodName:"owner",methodArgs:[],signer:this.signer}));case 7:return o.t1=o.sent,o.abrupt("return",o.t0.FormatAddress.call(o.t0,o.t1));case 9:case"end":return o.stop()}}),null,this)},t.ContentType=function(e){var t,n,r,i,o,c;return a.async((function(u){for(;;)switch(u.prev=u.next){case 0:if(t=e.name,n=e.typeId,r=e.versionHash,this.Log("Retrieving content type: ".concat(t||n||r)),r&&(n=this.utils.DecodeVersionHash(r).objectId),!t){u.next=8;break}return this.Log("Looking up type by name in content space metadata..."),u.next=7,a.awrap(this.ContentObjectMetadata({libraryId:this.contentSpaceLibraryId,objectId:this.contentSpaceObjectId,metadataSubtree:A("contentTypes",t)}));case 7:n=u.sent;case 8:if(n){u.next=18;break}return this.Log("Looking up type by name in available types..."),u.next=12,a.awrap(this.ContentTypes());case 12:if(i=u.sent,!t){u.next=17;break}return u.abrupt("return",Object.values(i).find((function(e){return(e.name||"").toLowerCase()===t.toLowerCase()})));case 17:return u.abrupt("return",Object.values(i).find((function(e){return e.hash===r})));case 18:return u.prev=18,this.Log("Looking up type by ID..."),u.next=22,a.awrap(this.ContentObject({libraryId:this.contentSpaceLibraryId,objectId:n}));case 22:return delete(o=u.sent).type,u.next=26,a.awrap(this.ContentObjectMetadata({libraryId:this.contentSpaceLibraryId,objectId:n}));case 26:if(u.t0=u.sent,u.t0){u.next=29;break}u.t0={};case 29:return c=u.t0,u.abrupt("return",s({},o,{name:c.name,meta:c}));case 33:throw u.prev=33,u.t1=u.catch(18),this.Log("Error looking up content type:"),this.Log(u.t1),new Error("Content Type ".concat(t||n," is invalid"));case 38:case"end":return u.stop()}}),null,this,[[18,33]])},t.ContentTypes=function(){var e,t,n,r=this;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return this.contentTypes=this.contentTypes||{},this.Log("Looking up all available content types"),i.next=4,a.awrap(this.Collection({collectionType:"contentTypes"}));case 4:return e=i.sent,this.Log("Personally available types:"),this.Log(e),i.next=9,a.awrap(this.ContentObjectMetadata({libraryId:this.contentSpaceLibraryId,objectId:this.contentSpaceObjectId,metadataSubtree:"contentTypes"}));case 9:if(i.t0=i.sent,i.t0){i.next=12;break}i.t0={};case 12:return t=i.t0,n=Object.values(t).map((function(e){return r.utils.HashToAddress(e)})),this.Log("Content space types:"),this.Log(n),e=e.concat(n).filter((function(e){return e})).map((function(e){return r.utils.FormatAddress(e)})).filter((function(e,t,n){return n.indexOf(e)===t})),i.next=19,a.awrap(Promise.all(e.map((function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=r.utils.AddressToObjectId(e),r.contentTypes[t]){n.next=10;break}return n.prev=2,n.next=5,a.awrap(r.ContentType({typeId:t}));case 5:r.contentTypes[t]=n.sent,n.next=10;break;case 8:n.prev=8,n.t0=n.catch(2);case 10:case"end":return n.stop()}}),null,null,[[2,8]])}))));case 19:return i.abrupt("return",this.contentTypes);case 20:case"end":return i.stop()}}),null,this)},t.ContentLibraries=function(){var e,t=this;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.awrap(this.Collection({collectionType:"libraries"}));case 2:return e=n.sent,n.abrupt("return",e.map((function(e){return t.utils.AddressToLibraryId(e)})));case 4:case"end":return n.stop()}}),null,this)},t.ContentLibrary=function(e){var t,n,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.libraryId,p(t),n=A("qlibs",t),i.t0=a,i.t1=this.utils,i.t2=this.HttpClient,i.next=8,a.awrap(this.authClient.AuthorizationHeader({libraryId:t}));case 8:return i.t3=i.sent,i.t4=n,i.t5={headers:i.t3,method:"GET",path:i.t4},i.t6=i.t2.Request.call(i.t2,i.t5),i.t7=i.t1.ResponseToJson.call(i.t1,i.t6),i.next=15,i.t0.awrap.call(i.t0,i.t7);case 15:return r=i.sent,i.abrupt("return",s({},r,{meta:r.meta||{}}));case 17:case"end":return i.stop()}}),null,this)},t.ContentLibraryOwner=function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.libraryId,p(t),n.t0=this.utils,n.next=5,a.awrap(this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(t),abi:h.abi,methodName:"owner",methodArgs:[],signer:this.signer}));case 5:return n.t1=n.sent,n.abrupt("return",n.t0.FormatAddress.call(n.t0,n.t1));case 7:case"end":return n.stop()}}),null,this)},t.LibraryContentTypes=function(e){var t,n,r,i=this;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.libraryId,p(t),this.Log("Retrieving library content types for ".concat(t)),o.next=5,a.awrap(this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(t),abi:h.abi,methodName:"contentTypesLength",methodArgs:[],signer:this.signer}));case 5:if(n=o.sent.toNumber(),this.Log("".concat(n," types")),0!==n){o.next=9;break}return o.abrupt("return",{});case 9:return r={},o.next=12,a.awrap(Promise.all(Array.from(new Array(n),(function(e,n){var o,s;return a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.awrap(i.ethClient.CallContractMethod({contractAddress:i.utils.HashToAddress(t),abi:h.abi,methodName:"contentTypes",methodArgs:[n],signer:i.signer}));case 2:return o=e.sent,s=i.utils.AddressToObjectId(o),e.next=6,a.awrap(i.ContentType({typeId:s}));case 6:r[s]=e.sent;case 7:case"end":return e.stop()}}))}))));case 12:return this.Log(r),o.abrupt("return",r);case 14:case"end":return o.stop()}}),null,this)},t.ContentObjects=function(e){var t,n,r,i,o,s,c;return a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.libraryId,n=e.filterOptions,r=void 0===n?{}:n,p(t),this.Log("Retrieving content objects from ".concat(t)),i=A("qlibs",t,"q"),o={filter:[]},r.cacheId&&(o.cache_id=r.cacheId),r.start&&(o.start=r.start),r.limit&&(o.limit=r.limit),r.select&&(o.select=r.select),r.sort&&(o.sort_by=r.sort,r.sortDesc&&(o.sort_descending=!0)),!1===r.latestOnly&&(o.latest_version_only=!1),s={eq:":eq:",neq:":ne:",lt:":lt:",lte:":le:",gt:":gt:",gte:":ge:",cnt:":co:",ncnt:":nc:"},c=function(e){var t=e.key,n=e.type,r=e.filter;o.filter.push("".concat(t).concat(s[n]).concat(r))},r.filter&&(Array.isArray(r.filter)?r.filter.forEach((function(e){return c(e)})):c(r.filter)),this.Log("Filter options:"),this.Log(r),u.t0=a,u.t1=this.utils,u.t2=this.HttpClient,u.next=21,a.awrap(this.authClient.AuthorizationHeader({libraryId:t}));case 21:return u.t3=u.sent,u.t4=i,u.t5=o,u.t6={headers:u.t3,method:"GET",path:u.t4,queryParams:u.t5},u.t7=u.t2.Request.call(u.t2,u.t6),u.t8=u.t1.ResponseToJson.call(u.t1,u.t7),u.next=29,u.t0.awrap.call(u.t0,u.t8);case 29:return u.abrupt("return",u.sent);case 30:case"end":return u.stop()}}),null,this)},t.ContentObject=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,m({libraryId:t,objectId:n,versionHash:r}),this.Log("Retrieving content object: ".concat(t||""," ").concat(n||r)),r&&(n=this.utils.DecodeVersionHash(r).objectId),i=A("q",r||n),o.t0=a,o.t1=this.utils,o.t2=this.HttpClient,o.next=10,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r,noAuth:!0}));case 10:return o.t3=o.sent,o.t4=i,o.t5={headers:o.t3,method:"GET",path:o.t4},o.t6=o.t2.Request.call(o.t2,o.t5),o.t7=o.t1.ResponseToJson.call(o.t1,o.t6),o.next=17,o.t0.awrap.call(o.t0,o.t7);case 17:return o.abrupt("return",o.sent);case 18:case"end":return o.stop()}}),null,this)},t.ContentObjectOwner=function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.objectId,y(t),this.Log("Retrieving content object owner: ".concat(t)),n.t0=this.utils,n.next=6,a.awrap(this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(t),abi:d.abi,methodName:"owner",methodArgs:[],cacheContract:!1,signer:this.signer}));case 6:return n.t1=n.sent,n.abrupt("return",n.t0.FormatAddress.call(n.t0,n.t1));case 8:case"end":return n.stop()}}),null,this)},t.ContentObjectLibraryId=function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.objectId,(n=e.versionHash)?I(n):y(t),n&&(t=this.utils.DecodeVersionHash(n).objectId),this.objectLibraryIds[t]){r.next=10;break}return this.Log("Retrieving content object library ID: ".concat(t||n)),r.t0=this.utils,r.next=8,a.awrap(this.CallContractMethod({contractAddress:this.utils.HashToAddress(t),abi:d.abi,methodName:"libraryAddress"}));case 8:r.t1=r.sent,this.objectLibraryIds[t]=r.t0.AddressToLibraryId.call(r.t0,r.t1);case 10:return r.abrupt("return",this.objectLibraryIds[t]);case 11:case"end":return r.stop()}}),null,this)},t.ProduceMetadataLinks=function(e){var t,n,i,o,c,u,f,h,d,l=this;return a.async((function(g){for(;;)switch(g.prev=g.next){case 0:if(t=e.libraryId,n=e.objectId,i=e.versionHash,o=e.path,c=void 0===o?"/":o,u=e.metadata,f=e.noAuth,h=void 0===f||f,u&&"object"===r(u)){g.next=3;break}return g.abrupt("return",u);case 3:if(!Array.isArray(u)){g.next=7;break}return g.next=6,a.awrap(this.utils.LimitedMap(5,u,(function(e,r){return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,a.awrap(l.ProduceMetadataLinks({libraryId:t,objectId:n,versionHash:i,path:A(c,r.toString()),metadata:e,noAuth:h}));case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}}))})));case 6:return g.abrupt("return",g.sent);case 7:if(!u["/"]||!u["/"].match(/\.\/(rep|files)\/.+/)&&!u["/"].match(/^\/?qfab\/([\w]+)\/?(rep|files)\/.+/)){g.next=16;break}return g.t0=s,g.t1={},g.t2=u,g.next=13,a.awrap(this.LinkUrl({libraryId:t,objectId:n,versionHash:i,linkPath:c}));case 13:return g.t3=g.sent,g.t4={url:g.t3},g.abrupt("return",(0,g.t0)(g.t1,g.t2,g.t4));case 16:return d={},g.next=19,a.awrap(this.utils.LimitedMap(5,Object.keys(u),(function(e){return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.awrap(l.ProduceMetadataLinks({libraryId:t,objectId:n,versionHash:i,path:A(c,e),metadata:u[e],noAuth:h}));case 2:d[e]=r.sent;case 3:case"end":return r.stop()}}))})));case 19:return g.abrupt("return",d);case 20:case"end":return g.stop()}}),null,this)},t.ContentObjectMetadata=function(e){var t,n,r,i,o,s,c,u,f,h,d,l,g,p,y,I;return a.async((function(b){for(;;)switch(b.prev=b.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.writeToken,o=e.metadataSubtree,s=void 0===o?"/":o,c=e.resolveLinks,u=void 0!==c&&c,f=e.resolveIncludeSource,h=void 0!==f&&f,d=e.produceLinkUrls,l=void 0!==d&&d,g=e.noAuth,p=void 0===g||g,m({libraryId:t,objectId:n,versionHash:r}),this.Log("Retrieving content object metadata: ".concat(t||""," ").concat(n||r," ").concat(i||"","\n Subtree: ").concat(s)),r&&(n=this.utils.DecodeVersionHash(r).objectId),y=A("q",i||r||n,"meta",s),b.prev=5,b.t0=a,b.t1=this.utils,b.t2=this.HttpClient,b.next=11,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r,noAuth:p}));case 11:return b.t3=b.sent,b.t4={resolve:u,resolve_include_source:h},b.t5=y,b.t6={headers:b.t3,queryParams:b.t4,method:"GET",path:b.t5},b.t7=b.t2.Request.call(b.t2,b.t6),b.t8=b.t1.ResponseToJson.call(b.t1,b.t7),b.next=19,b.t0.awrap.call(b.t0,b.t8);case 19:I=b.sent,b.next=27;break;case 22:if(b.prev=22,b.t9=b.catch(5),404===b.t9.status){b.next=26;break}throw b.t9;case 26:I="/"===s?{}:void 0;case 27:if(l){b.next=29;break}return b.abrupt("return",I);case 29:return b.next=31,a.awrap(this.ProduceMetadataLinks({libraryId:t,objectId:n,versionHash:r,path:s,metadata:I,noAuth:p}));case 31:return b.abrupt("return",b.sent);case 32:case"end":return b.stop()}}),null,this,[[5,22]])},t.ContentObjectVersions=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.noAuth,i=void 0!==r&&r,m({libraryId:t,objectId:n}),this.Log("Retrieving content object versions: ".concat(t||""," ").concat(n||versionHash)),o=A("qid",n),s.t0=this.utils,s.t1=this.HttpClient,s.next=8,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,noAuth:i}));case 8:return s.t2=s.sent,s.t3=o,s.t4={headers:s.t2,method:"GET",path:s.t3},s.t5=s.t1.Request.call(s.t1,s.t4),s.abrupt("return",s.t0.ResponseToJson.call(s.t0,s.t5));case 13:case"end":return s.stop()}}),null,this)},t.LatestVersionHash=function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.objectId,(n=e.versionHash)&&(t=this.utils.DecodeVersionHash(n).objectId),y(t),r.next=5,a.awrap(this.CallContractMethod({contractAddress:this.utils.HashToAddress(t),abi:d.abi,methodName:"objectHash"}));case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),null,this)},t.AvailableDRMs=function(){var e,t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(e=["clear","aes-128"],window){n.next=3;break}return n.abrupt("return",e);case 3:if("function"==typeof window.navigator.requestMediaKeySystemAccess){n.next=5;break}return n.abrupt("return",e);case 5:return n.prev=5,t=[{initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.42E01E"'}]}],n.next=9,a.awrap(navigator.requestMediaKeySystemAccess("com.widevine.alpha",t));case 9:e.push("widevine"),n.next=14;break;case 12:n.prev=12,n.t0=n.catch(5);case 14:return n.abrupt("return",e);case 15:case"end":return n.stop()}}),null,null,[[5,12]])},t.AudienceData=function(e){var t=e.objectId,n=e.versionHash,r=e.protocols,i=void 0===r?[]:r,a=e.drms,o=void 0===a?[]:a;n?I(n):y(t),this.Log("Retrieving audience data: ".concat(t));var s={user_address:this.utils.FormatAddress(this.signer.address),content_id:t||this.utils.DecodeVersionHash(n).id,content_hash:n,hostname:this.HttpClient.BaseURI().hostname(),access_time:Math.round((new Date).getTime()).toString(),format:i.join(","),drm:o.join(",")};return"undefined"!=typeof window&&window.navigator&&(s.user_string=window.navigator.userAgent,s.language=window.navigator.language),this.Log(s),s},t.PlayoutOptions=function(e){var t,n,r,o,c,u,f,h,d,l,g,p,b,C,m,E,B,v,w,Q,S,M,k,D,_,x,R,N;return a.async((function(F){for(;;)switch(F.prev=F.next){case 0:return t=e.objectId,n=e.versionHash,r=e.linkPath,o=e.protocols,c=void 0===o?["dash","hls"]:o,u=e.offering,f=void 0===u?"default":u,h=e.drms,d=void 0===h?[]:h,l=e.hlsjsProfile,g=void 0===l||l,n?I(n):y(t),c=c.map((function(e){return e.toLowerCase()})),d=d.map((function(e){return e.toLowerCase()})),t||(t=this.utils.DecodeVersionHash(n).objectId),F.next=7,a.awrap(this.ContentObjectLibraryId({objectId:t}));case 7:if(p=F.sent,!r){F.next=19;break}return F.next=11,a.awrap(this.LinkTarget({libraryId:p,objectId:t,versionHash:n,linkPath:r}));case 11:return E=F.sent,m=this.utils.DecodeVersionHash(E).objectId,F.next=15,a.awrap(this.ContentObjectLibraryId({objectId:m}));case 15:C=F.sent,b=A("q",n||t,"meta",r),F.next=20;break;case 19:b=A("q",n||t,"rep","playout",f,"options.json");case 20:if(F.t0=this,F.t1=m||t,F.t2=E||n,F.t2){F.next=27;break}return F.next=26,a.awrap(this.LatestVersionHash({objectId:t}));case 26:F.t2=F.sent;case 27:return F.t3=F.t2,F.t4=c,F.t5=d,F.t6={objectId:F.t1,versionHash:F.t3,protocols:F.t4,drms:F.t5},B=F.t0.AudienceData.call(F.t0,F.t6),F.next=34,a.awrap(this.authClient.AuthorizationToken({libraryId:C||p,objectId:m||t,channelAuth:!0,oauthToken:this.oauthToken,audienceData:B}));case 34:return F.t7=F.sent,v={authorization:F.t7},r&&(v.resolve=!0),F.t8=Object,F.next=40,a.awrap(this.utils.ResponseToJson(this.HttpClient.Request({path:b,method:"GET",queryParams:v})));case 40:F.t9=F.sent,w=F.t8.values.call(F.t8,F.t9),Q={},S=0;case 44:if(!(S<w.length)){F.next=76;break}return M=w[S],k=M.properties.protocol,D=M.properties.drm,_=M.uri.split("?")[0],x=M.properties.license_servers,F.t10=s,F.t11={},F.t12=Q[k]||{},F.t13=s,F.t14={},F.t15=(Q[k]||{}).playoutMethods||{},F.t16=i,F.t17={},F.t18=D||"clear",F.next=61,a.awrap(this.Rep({libraryId:C||p,objectId:m||t,versionHash:E||n,rep:A("playout",f,_),channelAuth:!0,queryParams:g&&"hls"===k?{player_profile:"hls-js"}:{}}));case 61:if(F.t19=F.sent,F.t20=D?i({},D,{licenseServers:x}):void 0,F.t21={playoutUrl:F.t19,drms:F.t20},F.t22=(0,F.t16)(F.t17,F.t18,F.t21),F.t23=(0,F.t13)(F.t14,F.t15,F.t22),F.t24={playoutMethods:F.t23},Q[k]=(0,F.t10)(F.t11,F.t12,F.t24),R=c.includes(k),N=d.includes(D||"clear")||0===d.length&&!D,R&&N){F.next=72;break}return F.abrupt("continue",73);case 72:(!Q[k].playoutUrl||D&&"clear"!==D)&&(Q[k].playoutUrl=Q[k].playoutMethods[D||"clear"].playoutUrl,Q[k].drms=Q[k].playoutMethods[D||"clear"].drms);case 73:S++,F.next=44;break;case 76:return this.Log(Q),F.abrupt("return",Q);case 78:case"end":return F.stop()}}),null,this)},t.BitmovinPlayoutOptions=function(e){var t,n,r,i,o,s,A,c,u,f,h,d,l,g,p;return a.async((function(b){for(;;)switch(b.prev=b.next){case 0:return t=e.objectId,n=e.versionHash,r=e.linkPath,i=e.protocols,o=void 0===i?["dash","hls"]:i,s=e.drms,A=void 0===s?[]:s,c=e.offering,u=void 0===c?"default":c,n?I(n):y(t),t||(t=this.utils.DecodeVersionHash(n).objectId),b.next=5,a.awrap(this.PlayoutOptions({objectId:t,versionHash:n,linkPath:r,protocols:o,drms:A,offering:u,hlsjsProfile:!1}));case 5:if(delete(f=b.sent).playoutMethods,!r){b.next=15;break}return b.next=10,a.awrap(this.ContentObjectLibraryId({objectId:t,versionHash:n}));case 10:return l=b.sent,b.next=13,a.awrap(this.LinkTarget({libraryId:l,objectId:t,versionHash:n,linkPath:r}));case 13:d=b.sent,h=this.utils.DecodeVersionHash(d).objectId;case 15:return b.next=17,a.awrap(this.authClient.AuthorizationToken({objectId:h||t,channelAuth:!0,oauthToken:this.oauthToken}));case 17:return g=b.sent,p={drm:{}},Object.keys(f).forEach((function(e){var t=f[e];p[e]=t.playoutUrl,t.drms&&Object.keys(t.drms).forEach((function(e){if(t.drms[e].licenseServers&&0!==t.drms[e].licenseServers.length){var n=function(e){return e.toLowerCase().startsWith("https")},r=t.drms[e].licenseServers;r.find(n)&&(r=r.filter(n));var i=r.sort((function(){return.5-Math.random()}))[0];p.drm[e]||(p.drm[e]={LA_URL:i,headers:{Authorization:"Bearer ".concat(g)}})}}))})),b.abrupt("return",p);case 21:case"end":return b.stop()}}),null,this)},t.CallBitcodeMethod=function(e){var t,n,r,i,o,s,c,u,f,h,d,l,g,p,y,I;return a.async((function(b){for(;;)switch(b.prev=b.next){case 0:if(t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.writeToken,o=e.method,s=e.queryParams,c=void 0===s?{}:s,u=e.body,f=void 0===u?{}:u,h=e.headers,d=void 0===h?{}:h,l=e.constant,g=void 0===l||l,p=e.format,y=void 0===p?"json":p,m({libraryId:t,objectId:n,versionHash:r}),o){b.next=4;break}throw"Bitcode method not specified";case 4:if(r&&(n=this.utils.DecodeVersionHash(r).objectId),I=A("q",i||r||n,"call",o),t&&(I=A("qlibs",t,I)),d.authorization||d.Authorization){b.next=12;break}return b.next=11,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!g}));case 11:d.Authorization=b.sent.Authorization;case 12:return this.Log("Calling bitcode method: ".concat(t||""," ").concat(n||r," ").concat(i||"","\n ").concat(g?"GET":"POST"," ").concat(I,"\n Query Params:\n ").concat(c,"\n Body:\n ").concat(f,"\n Headers\n ").concat(d)),b.t0=this.utils,b.t1=y,b.next=17,a.awrap(this.HttpClient.Request({body:f,headers:d,method:g?"GET":"POST",path:I,queryParams:c,failover:!1}));case 17:return b.t2=b.sent,b.abrupt("return",b.t0.ResponseToFormat.call(b.t0,b.t1,b.t2));case 19:case"end":return b.stop()}}),null,this)},t.Rep=function(e){var t,n,r,i,o,s,A,c,u,f,h,d;return a.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.rep,o=e.queryParams,s=void 0===o?{}:o,A=e.channelAuth,c=void 0!==A&&A,u=e.noAuth,f=void 0!==u&&u,h=e.noCache,d=void 0!==h&&h,m({libraryId:t,objectId:n,versionHash:r}),i){a.next=4;break}throw"Rep not specified";case 4:return a.abrupt("return",this.FabricUrl({libraryId:t,objectId:n,versionHash:r,rep:i,queryParams:s,channelAuth:c,noAuth:f,noCache:d}));case 5:case"end":return a.stop()}}),null,this)},t.PublicRep=function(e){var t,n,r,i,o,s;return a.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.rep,o=e.queryParams,s=void 0===o?{}:o,m({libraryId:t,objectId:n,versionHash:r}),i){a.next=4;break}throw"Rep not specified";case 4:return a.abrupt("return",this.FabricUrl({libraryId:t,objectId:n,versionHash:r,publicRep:i,queryParams:s,noAuth:!0}));case 5:case"end":return a.stop()}}),null,this)},t.FabricUrl=function(e){var t,n,r,i,o,c,u,f,h,d,l,g,p,y,I,b,C;return a.async((function(E){for(;;)switch(E.prev=E.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.writeToken,o=e.partHash,c=e.rep,u=e.publicRep,f=e.call,h=e.queryParams,d=void 0===h?{}:h,l=e.channelAuth,g=void 0!==l&&l,p=e.noAuth,y=void 0!==p&&p,I=e.noCache,b=void 0!==I&&I,(n||r)&&m({libraryId:t,objectId:n,versionHash:r}),r&&(n=this.utils.DecodeVersionHash(r).objectId),this.Log("Building Fabric URL:\n libraryId: ".concat(t,"\n objectId: ").concat(n,"\n versionHash: ").concat(r,"\n writeToken: ").concat(i,"\n partHash: ").concat(o,"\n rep: ").concat(c,"\n publicRep: ").concat(u,"\n call: ").concat(f,"\n channelAuth: ").concat(g,"\n noAuth: ").concat(y,"\n noCache: ").concat(b,"\n queryParams: ").concat(JSON.stringify(d||{},null,2))),d=s({},d),E.next=7,a.awrap(this.authClient.AuthorizationToken({libraryId:t,objectId:n,versionHash:r,channelAuth:g,noAuth:y,noCache:b}));case 7:return d.authorization=E.sent,C="",t?(C=A(C,"qlibs",t),(n||r)&&(C=A(C,"q",i||r||n))):r&&(C=A("q",r)),o?C=A(C,"data",o):c?C=A(C,"rep",c):u?C=A(C,"public",u):f&&(C=A(C,"call",f)),E.abrupt("return",this.HttpClient.URL({path:C,queryParams:d}));case 12:case"end":return E.stop()}}),null,this)},t.FileUrl=function(e){var t,n,r,i,o,c,u,f,h,d,l;return a.async((function(g){for(;;)switch(g.prev=g.next){case 0:if(t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.writeToken,o=e.filePath,c=e.queryParams,u=void 0===c?{}:c,f=e.noCache,h=void 0!==f&&f,m({libraryId:t,objectId:n,versionHash:r}),o){g.next=4;break}throw"File path not specified";case 4:return r&&(n=this.utils.DecodeVersionHash(r).objectId),d=t?A("qlibs",t,"q",i||r||n,"files",o):A("q",r,"files",o),g.next=8,a.awrap(this.authClient.AuthorizationToken({libraryId:t,objectId:n,noCache:h}));case 8:return l=g.sent,g.abrupt("return",this.HttpClient.URL({path:d,queryParams:s({},u,{authorization:l})}));case 10:case"end":return g.stop()}}),null,this)},t.ContentObjectGraph=function(e){var t,n,r,i,o,s,c,u,f,h,d=this;return a.async((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.autoUpdate,o=void 0!==i&&i,s=e.select,m({libraryId:t,objectId:n,versionHash:r}),this.Log("Retrieving content object graph: ".concat(t||""," ").concat(n||r)),r&&(n=this.utils.DecodeVersionHash(r).objectId),c=A("q",r||n,"links"),l.prev=5,l.t0=a,l.t1=this.utils,l.t2=this.HttpClient,l.next=11,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r,noAuth:!0}));case 11:return l.t3=l.sent,l.t4={auto_update:o,select:s},l.t5=c,l.t6={headers:l.t3,queryParams:l.t4,method:"GET",path:l.t5},l.t7=l.t2.Request.call(l.t2,l.t6),l.t8=l.t1.ResponseToJson.call(l.t1,l.t7),l.next=19,l.t0.awrap.call(l.t0,l.t8);case 19:return l.abrupt("return",l.sent);case 22:if(l.prev=22,l.t9=l.catch(5),l.prev=24,(f=l.t9.body.errors[0].cause.cause.cause.cycle)&&0!==f.length){l.next=28;break}throw l.t9;case 28:return h={},l.next=31,a.awrap(Promise.all(f.map((function(e){var t,n;return a.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(!h[e]){r.next=2;break}return r.abrupt("return");case 2:return t=d.utils.DecodeVersionHash(e).objectId,r.next=5,a.awrap(d.ContentObjectMetadata({versionHash:e,metadataSubtree:"public/asset_metadata/display_title"}));case 5:if(r.t2=r.sent,r.t2){r.next=10;break}return r.next=9,a.awrap(d.ContentObjectMetadata({versionHash:e,metadataSubtree:"public/name"}));case 9:r.t2=r.sent;case 10:if(r.t1=r.t2,r.t1){r.next=15;break}return r.next=14,a.awrap(d.ContentObjectMetadata({versionHash:e,metadataSubtree:"name"}));case 14:r.t1=r.sent;case 15:if(r.t0=r.t1,r.t0){r.next=18;break}r.t0=t;case 18:n=r.t0,h[e]={name:n,objectId:t};case 20:case"end":return r.stop()}}))}))));case 31:u=f.map((function(e){return"".concat(h[e].name," (").concat(h[e].objectId,")")})),l.next=37;break;case 34:throw l.prev=34,l.t10=l.catch(24),l.t9;case 37:throw new Error("Cycle found in links: ".concat(u.join(" -> ")));case 38:case"end":return l.stop()}}),null,this,[[5,22],[24,34]])},t.LinkTarget=function(e){var t,n,r,i,o,s;return a.async((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.linkPath,r&&(n=this.utils.DecodeVersionHash(r).objectId),c.next=4,a.awrap(this.ContentObjectMetadata({libraryId:t,objectId:n,versionHash:r,metadataSubtree:A(i),resolveLinks:!1}));case 4:if((o=c.sent)&&o["/"]){c.next=7;break}throw Error("No valid link at ".concat(i));case 7:if((s=((o["/"]||"").match(/^\/?qfab\/([\w]+)\/?.+/)||[])[1])||(s=o["."].container),!s){c.next=13;break}return c.abrupt("return",s);case 13:if(!r){c.next=15;break}return c.abrupt("return",r);case 15:return c.next=17,a.awrap(this.LatestVersionHash({objectId:n}));case 17:return c.abrupt("return",c.sent);case 18:case"end":return c.stop()}}),null,this)},t.LinkUrl=function(e){var t,n,r,i,o,c,u,f,h,d;return a.async((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.linkPath,o=e.mimeType,c=e.queryParams,u=void 0===c?{}:c,f=e.noCache,h=void 0!==f&&f,m({libraryId:t,objectId:n,versionHash:r}),i){l.next=4;break}throw Error("Link path not specified");case 4:return r&&(n=this.utils.DecodeVersionHash(r).objectId),d=t?A("qlibs",t,"q",r||n,"meta",i):A("q",r,"meta",i),l.t0=s,l.t1={},l.t2=u,l.next=11,a.awrap(this.authClient.AuthorizationToken({libraryId:t,objectId:n,noCache:h,noAuth:!0}));case 11:return l.t3=l.sent,l.t4={resolve:!0,authorization:l.t3},u=(0,l.t0)(l.t1,l.t2,l.t4),o&&(u["header-accept"]=o),l.abrupt("return",this.HttpClient.URL({path:d,queryParams:u}));case 16:case"end":return l.stop()}}),null,this)},t.LinkData=function(e){var t,n,r,i,o,s,A;return a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.linkPath,o=e.format,s=void 0===o?"json":o,u.next=3,a.awrap(this.LinkUrl({libraryId:t,objectId:n,versionHash:r,linkPath:i}));case 3:return A=u.sent,u.t0=this.utils,u.t1=s,u.next=8,a.awrap(c.Fetch(A));case 8:return u.t2=u.sent,u.abrupt("return",u.t0.ResponseToFormat.call(u.t0,u.t1,u.t2));case 10:case"end":return u.stop()}}),null,this)},t.EncryptionConk=function(e){var t,n,r,i,o,s,A,c,f,h;return a.async((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,m({libraryId:t,objectId:n}),r&&C(r),l.next=5,a.awrap(this.authClient.Owner({id:n,abi:d.abi}));case 5:if(i=l.sent,this.utils.EqualAddress(i,this.signer.address)){l.next=12;break}if(this.reencryptionConks[n]){l.next=11;break}return l.next=10,a.awrap(this.authClient.ReEncryptionConk({libraryId:t,objectId:n}));case 10:this.reencryptionConks[n]=l.sent;case 11:return l.abrupt("return",this.reencryptionConks[n]);case 12:if(this.encryptionConks[n]){l.next=53;break}return o="eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address)),l.next=16,a.awrap(this.ContentObjectMetadata({libraryId:t,objectId:n,writeToken:r,metadataSubtree:o}));case 16:if(!(s=l.sent)){l.next=23;break}return l.next=20,a.awrap(u.DecryptCap(s,this.signer.signingKey.privateKey));case 20:this.encryptionConks[n]=l.sent,l.next=53;break;case 23:return l.next=25,a.awrap(u.GeneratePrimaryConk());case 25:if(this.encryptionConks[n]=l.sent,!r){l.next=53;break}return A={},l.next=30,a.awrap(u.EncryptConk(this.encryptionConks[n],this.signer.signingKey.publicKey));case 30:return A[o]=l.sent,l.prev=31,l.next=34,a.awrap(this.authClient.KMSAddress({objectId:n}));case 34:return c=l.sent,l.next=37,a.awrap(this.authClient.KMSInfo({objectId:n}));case 37:return f=l.sent.publicKey,h="eluv.caps.ikms".concat(this.utils.AddressToHash(c)),l.next=41,a.awrap(this.ContentObjectMetadata({libraryId:t,objectId:n,writeToken:r,metadataSubtree:h}));case 41:if(l.sent){l.next=46;break}return l.next=45,a.awrap(u.EncryptConk(this.encryptionConks[n],f));case 45:A[h]=l.sent;case 46:l.next=51;break;case 48:l.prev=48,l.t0=l.catch(31),console.error("Failed to create encryption cap for KMS with public key "+kmsPublicKey);case 51:return l.next=53,a.awrap(this.MergeMetadata({libraryId:t,objectId:n,writeToken:r,metadata:A}));case 53:return l.abrupt("return",this.encryptionConks[n]);case 54:case"end":return l.stop()}}),null,this,[[31,48]])},t.Encrypt=function(e){var t,n,r,i,o,s;return a.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.chunk,m({libraryId:t,objectId:n}),A.next=4,a.awrap(this.EncryptionConk({libraryId:t,objectId:n,writeToken:r}));case 4:return o=A.sent,A.next=7,a.awrap(u.Encrypt(o,i));case 7:return s=A.sent,A.abrupt("return",s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength));case 9:case"end":return A.stop()}}),null,this)},t.Decrypt=function(e){var t,n,r,i,o,s;return a.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.chunk,m({libraryId:t,objectId:n}),A.next=4,a.awrap(this.EncryptionConk({libraryId:t,objectId:n,writeToken:r}));case 4:return o=A.sent,A.next=7,a.awrap(u.Decrypt(o,i));case 7:return s=A.sent,A.abrupt("return",s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength));case 9:case"end":return A.stop()}}),null,this)},t.AccessType=function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.id,n.next=3,a.awrap(this.authClient.AccessType(t));case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),null,this)},t.AccessInfo=function(e){var t,n,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.objectId,n=e.args,y(t),n||(n=[0,[],[]]),this.Log("Retrieving access info: ".concat(t)),i.next=6,a.awrap(this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(t),abi:d.abi,methodName:"getAccessInfo",methodArgs:n,signer:this.signer}));case 6:return r=i.sent,this.Log(r),i.abrupt("return",{visibilityCode:r[0],visible:r[0]>=1,accessible:r[0]>=10,editable:r[0]>=100,hasAccess:0===r[1],accessCode:r[1],accessCharge:this.utils.WeiToEther(r[2]).toString()});case 9:case"end":return i.stop()}}),null,this)},t.AccessRequest=function(e){var t,n,r,i,o,s,A,c,u;return a.async((function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.args,o=void 0===i?[]:i,s=e.update,A=void 0!==s&&s,c=e.noCache,u=void 0!==c&&c,m({libraryId:t,objectId:n,versionHash:r}),r&&(n=this.utils.DecodeVersionHash(r).objectId),f.next=5,a.awrap(this.authClient.MakeAccessRequest({libraryId:t,objectId:n,versionHash:r,args:o,update:A,skipCache:!0,noCache:u}));case 5:return f.abrupt("return",f.sent);case 6:case"end":return f.stop()}}),null,this)},t.GenerateStateChannelToken=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=e.objectId,n=e.versionHash,r=e.noCache,i=void 0!==r&&r,n?I(n):y(t),!n){s.next=6;break}t=this.utils.DecodeVersionHash(n).objectId,s.next=10;break;case 6:if(this.stateChannelAccess[t]){s.next=10;break}return s.next=9,a.awrap(this.LatestVersionHash({objectId:t}));case 9:n=s.sent;case 10:return this.stateChannelAccess[t]=n,o=this.AudienceData({objectId:t,versionHash:n}),s.next=14,a.awrap(this.authClient.AuthorizationToken({objectId:t,channelAuth:!0,oauthToken:this.oauthToken,audienceData:o,noCache:i}));case 14:return s.abrupt("return",s.sent);case 15:case"end":return s.stop()}}),null,this)},t.FinalizeStateChannelAccess=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.objectId,n=e.versionHash,r=e.percentComplete,n?I(n):y(t),!n){o.next=6;break}t=this.utils.DecodeVersionHash(n).objectId,o.next=13;break;case 6:if(!this.stateChannelAccess[t]){o.next=10;break}n=this.stateChannelAccess[t],o.next=13;break;case 10:return o.next=12,a.awrap(this.LatestVersionHash({objectId:t}));case 12:n=o.sent;case 13:return this.stateChannelAccess[t]=void 0,i=this.AudienceData({objectId:t,versionHash:n}),o.next=17,a.awrap(this.authClient.ChannelContentFinalize({objectId:t,audienceData:i,percent:r}));case 17:case"end":return o.stop()}}),null,this)},t.ContentObjectAccessComplete=function(e){var t,n,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.objectId,n=e.score,r=void 0===n?100:n,y(t),!(r<0||r>100)){i.next=4;break}throw Error("Invalid AccessComplete score: "+r);case 4:return i.next=6,a.awrap(this.authClient.AccessComplete({id:t,abi:d.abi,score:r}));case 6:return i.abrupt("return",i.sent);case 7:case"end":return i.stop()}}),null,this)},t.Collection=function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.collectionType,["accessGroups","contentObjects","contentTypes","contracts","libraries"].includes(t)){n.next=4;break}throw new Error("Invalid collection type: "+t);case 4:if(!this.signer){n.next=10;break}return n.next=7,a.awrap(this.userProfileClient.WalletAddress());case 7:n.t0=n.sent,n.next=11;break;case 10:n.t0=void 0;case 11:if(n.t0){n.next=14;break}throw new Error("Unable to get collection: User wallet doesn't exist");case 14:return this.Log("Retrieving ".concat(t," contract collection for user ").concat(this.signer.address)),n.next=17,a.awrap(this.ethClient.MakeProviderCall({methodName:"send",args:["elv_getWalletCollection",[this.contentSpaceId,"iusr".concat(this.utils.AddressToHash(this.signer.address)),t]]}));case 17:return n.abrupt("return",n.sent);case 18:case"end":return n.stop()}}),null,this)},t.VerifyContentObject=function(e){var t,n,r;return a.async((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,m({libraryId:t,objectId:n,versionHash:r}),i.next=4,a.awrap(ContentObjectVerification.VerifyContentObject({client:this,libraryId:t,objectId:n,versionHash:r}));case 4:return i.abrupt("return",i.sent);case 5:case"end":return i.stop()}}),null,this)},t.Proofs=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.partHash,m({libraryId:t,objectId:n,versionHash:r}),b(i),r&&(n=this.utils.DecodeVersionHash(r).objectId),o=A("q",r||n,"data",i,"proofs"),s.t0=this.utils,s.t1=this.HttpClient,s.next=9,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r}));case 9:return s.t2=s.sent,s.t3=o,s.t4={headers:s.t2,method:"GET",path:s.t3},s.t5=s.t1.Request.call(s.t1,s.t4),s.abrupt("return",s.t0.ResponseToJson.call(s.t0,s.t5));case 14:case"end":return s.stop()}}),null,this)},t.QParts=function(e){var t,n,r,i,o,s;return a.async((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.libraryId,n=e.objectId,r=e.partHash,i=e.format,o=void 0===i?"blob":i,m({libraryId:t,objectId:n,versionHash:versionHash}),b(r),s=A("qparts",r),c.t0=this.utils,c.t1=o,c.t2=this.HttpClient,c.next=9,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,partHash:r}));case 9:return c.t3=c.sent,c.t4=s,c.t5={headers:c.t3,method:"GET",path:c.t4},c.t6=c.t2.Request.call(c.t2,c.t5),c.abrupt("return",c.t0.ResponseToFormat.call(c.t0,c.t1,c.t6));case 14:case"end":return c.stop()}}),null,this)}},function(e,t,n){var r=n(6),i=n(23),a=n(40),o=n(41),s=o.ValidateAddress,A=o.ValidateParameters;t.ContractName=function(e){var t;return r.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.contractAddress,s(t),n.next=4,r.awrap(this.ethClient.ContractName(t));case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),null,this)},t.FormatContractArguments=function(e){var t=e.abi,n=e.methodName,r=e.args;return this.ethClient.FormatContractArguments({abi:t,methodName:n,args:r})},t.DeployContract=function(e){var t,n,i,a,o;return r.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.abi,n=e.bytecode,i=e.constructorArgs,a=e.overrides,o=void 0===a?{}:a,s.next=3,r.awrap(this.ethClient.DeployContract({abi:t,bytecode:n,constructorArgs:i,overrides:o,signer:this.signer}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}}),null,this)},t.ContractEvents=function(e){var t,n,i,a,o,A,c,u,f,h;return r.async((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.contractAddress,n=e.abi,i=e.fromBlock,a=void 0===i?0:i,o=e.toBlock,A=e.count,c=void 0===A?1e3:A,u=e.includeTransaction,f=void 0!==u&&u,s(t),d.next=4,r.awrap(this.FormatBlockNumbers({fromBlock:a,toBlock:o,count:c}));case 4:return h=d.sent,this.Log("Querying contract events ".concat(t," - Blocks ").concat(h.fromBlock," to ").concat(h.toBlock)),d.next=8,r.awrap(this.ethClient.ContractEvents({contractAddress:t,abi:n,fromBlock:h.fromBlock,toBlock:h.toBlock,includeTransaction:f}));case 8:return d.abrupt("return",d.sent);case 9:case"end":return d.stop()}}),null,this)},t.CallContractMethod=function(e){var t,n,i,a,o,A,c,u,f,h,d,l;return r.async((function(g){for(;;)switch(g.prev=g.next){case 0:return t=e.contractAddress,n=e.abi,i=e.methodName,a=e.methodArgs,o=void 0===a?[]:a,A=e.value,c=e.overrides,u=void 0===c?{}:c,f=e.formatArguments,h=void 0===f||f,d=e.cacheContract,l=void 0===d||d,s(t),g.next=4,r.awrap(this.ethClient.CallContractMethod({contractAddress:t,abi:n,methodName:i,methodArgs:o,value:A,overrides:u,formatArguments:h,cacheContract:l,signer:this.signer}));case 4:return g.abrupt("return",g.sent);case 5:case"end":return g.stop()}}),null,this)},t.CallContractMethodAndWait=function(e){var t,n,i,a,o,A,c,u,f;return r.async((function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.contractAddress,n=e.abi,i=e.methodName,a=e.methodArgs,o=e.value,A=e.overrides,c=void 0===A?{}:A,u=e.formatArguments,f=void 0===u||u,s(t),h.next=4,r.awrap(this.ethClient.CallContractMethodAndWait({contractAddress:t,abi:n,methodName:i,methodArgs:a,value:o,overrides:c,formatArguments:f,signer:this.signer}));case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}}),null,this)},t.CustomContractAddress=function(e){var t,n,i,o;return r.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=e.libraryId,n=e.objectId,i=e.versionHash,A({libraryId:t,objectId:n,versionHash:i}),i&&(n=this.utils.DecodeVersionHash(i).objectId),t!==this.contentSpaceLibraryId&&!this.utils.EqualHash(t,n)){s.next=5;break}return s.abrupt("return");case 5:return this.Log("Retrieving custom contract address: ".concat(n)),s.next=8,r.awrap(this.ethClient.CallContractMethod({contractAddress:this.utils.HashToAddress(n),abi:a.abi,methodName:"contentContractAddress",methodArgs:[],signer:this.signer}));case 8:if((o=s.sent)!==this.utils.nullAddress){s.next=11;break}return s.abrupt("return");case 11:return s.abrupt("return",this.utils.FormatAddress(o));case 12:case"end":return s.stop()}}),null,this)},t.SetCustomContentContract=function(e){var t,n,i,a,o,c,u,f,h,d,l;return r.async((function(g){for(;;)switch(g.prev=g.next){case 0:return t=e.libraryId,n=e.objectId,i=e.customContractAddress,a=e.name,o=e.description,c=e.abi,u=e.factoryAbi,f=e.overrides,h=void 0===f?{}:f,A({libraryId:t,objectId:n}),s(i),i=this.utils.FormatAddress(i),this.Log("Setting custom contract address: ".concat(n," ").concat(i)),g.next=7,r.awrap(this.ethClient.SetCustomContentContract({contentContractAddress:this.utils.HashToAddress(n),customContractAddress:i,overrides:h,signer:this.signer}));case 7:return d=g.sent,g.next=10,r.awrap(this.EditContentObject({libraryId:t,objectId:n}));case 10:return l=g.sent.write_token,g.next=13,r.awrap(this.ReplaceMetadata({libraryId:t,objectId:n,writeToken:l,metadataSubtree:"custom_contract",metadata:{name:a,description:o,address:i,abi:c,factoryAbi:u}}));case 13:return g.next=15,r.awrap(this.FinalizeContentObject({libraryId:t,objectId:n,writeToken:l}));case 15:return g.abrupt("return",d);case 16:case"end":return g.stop()}}),null,this)},t.ExtractEventFromLogs=function(e){var t=e.abi,n=e.event,r=e.eventName;return this.ethClient.ExtractEventFromLogs({abi:t,event:n,eventName:r})},t.ExtractValueFromEvent=function(e){var t=e.abi,n=e.event,r=e.eventName,i=e.eventValue,a=this.ethClient.ExtractEventFromLogs({abi:t,event:n,eventName:r,eventValue:i});return a?a.values[i]:void 0},t.FormatBlockNumbers=function(e){var t,n,i,a,o;return r.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.fromBlock,n=e.toBlock,i=e.count,a=void 0===i?10:i,s.next=3,r.awrap(this.BlockNumber());case 3:return o=s.sent,n?t||(t=n-a+1):t?n=t+a-1:t=(n=o)-a+1,n>o&&(n=o),t<0&&(t=0),s.abrupt("return",{fromBlock:t,toBlock:n});case 8:case"end":return s.stop()}}),null,this)},t.Events=function(){var e,t,n,i,a,o,s,A,c=arguments;return r.async((function(u){for(;;)switch(u.prev=u.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},t=e.toBlock,n=e.fromBlock,i=e.count,a=void 0===i?10:i,o=e.includeTransaction,s=void 0!==o&&o,u.next=3,r.awrap(this.FormatBlockNumbers({fromBlock:n,toBlock:t,count:a}));case 3:return A=u.sent,this.Log("Querying events - Blocks ".concat(A.fromBlock," to ").concat(A.toBlock)),u.next=7,r.awrap(this.ethClient.Events({fromBlock:A.fromBlock,toBlock:A.toBlock,includeTransaction:s}));case 7:return u.abrupt("return",u.sent);case 8:case"end":return u.stop()}}),null,this)},t.BlockNumber=function(){return r.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.awrap(this.ethClient.MakeProviderCall({methodName:"getBlockNumber"}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),null,this)},t.GetBalance=function(e){var t,n;return r.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.address,s(t),a.next=4,r.awrap(this.ethClient.MakeProviderCall({methodName:"getBalance",args:[t]}));case 4:return n=a.sent,a.abrupt("return",i.utils.formatEther(n));case 6:case"end":return a.stop()}}),null,this)},t.SendFunds=function(e){var t,n,a;return r.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.recipient,n=e.ether,s(t),o.next=4,r.awrap(this.signer.sendTransaction({to:t,value:i.utils.parseEther(n.toString())}));case 4:return a=o.sent,o.next=7,r.awrap(a.wait());case 7:return o.abrupt("return",o.sent);case 8:case"end":return o.stop()}}),null,this)}},function(e,t,n){(function(e,r){var i=n(18),a=n(6);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A,c=n(16);c.Platform()===c.PLATFORM_NODE&&(e.Response=n(44).Response,A=n(236));var u=n(45),f=n(37),h=n(41),d=h.ValidatePresence,l=h.ValidateWriteToken,g=h.ValidatePartHash,p=h.ValidateParameters;t.access={},t.manage={},t.manage.ListFiles=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,p({libraryId:t,objectId:n,versionHash:r}),r&&(n=this.utils.DecodeVersionHash(r).objectId),i=f("q",r||n,"meta","files"),o.t0=this.utils,o.t1=this.HttpClient,o.next=8,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r}));case 8:return o.t2=o.sent,o.t3=i,o.t4={headers:o.t2,method:"GET",path:o.t3},o.t5=o.t1.Request.call(o.t1,o.t4),o.abrupt("return",o.t0.ResponseToJson.call(o.t0,o.t5));case 13:case"end":return o.stop()}}),null,this)},t.manage.UploadFilesFromS3=function(e){var t,n,r,i,o,s,A,c,u,f,h,d,g,y,I,b,C,m,E;return a.async((function(B){for(;;)switch(B.prev=B.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.region,o=e.bucket,s=e.fileInfo,A=e.accessKey,c=e.secret,u=e.copy,f=void 0!==u&&u,h=e.callback,p({libraryId:t,objectId:n}),l(r),this.Log("Uploading files from S3: ".concat(t," ").concat(n," ").concat(r)),d={access:{protocol:"s3",platform:"aws",path:o,storage_endpoint:{region:i},cloud_credentials:{access_key_id:A,secret_access_key:c}}},g=s.map((function(e){return f?{op:"ingest-copy",path:e.path,ingest:{type:"key",path:e.source}}:{op:"add-reference",path:e.path,reference:{type:"key",path:e.source}}})),B.next=8,a.awrap(this.CreateFileUploadJob({libraryId:t,objectId:n,writeToken:r,ops:g,defaults:d}));case 8:y=B.sent,I=y.id;case 10:return B.next=13,a.awrap(new Promise((function(e){return setTimeout(e,1e3)})));case 13:return B.next=15,a.awrap(this.UploadStatus({libraryId:t,objectId:n,writeToken:r,uploadId:I}));case 15:if(!((b=B.sent).errors&&b.errors.length>1)){B.next=20;break}throw b.errors.join("\n");case 20:if(!b.error){B.next=25;break}throw this.Log("S3 file upload failed:\n".concat(JSON.stringify(b,null,2))),b.error;case 25:if("failed"!==b.status.toLowerCase()){B.next=27;break}throw"File upload failed";case 27:if(C=!1,f?(C=b.ingest_copy.done,h&&(m=b.ingest_copy.progress,h({done:C,uploaded:m.bytes.completed,total:m.bytes.total,uploadedFiles:m.files.completed,totalFiles:m.files.total,fileStatus:m.files.details}))):(C=b.add_reference.done,h&&(E=b.add_reference.progress,h({done:C,uploadedFiles:E.completed,totalFiles:E.total}))),!C){B.next=31;break}return B.abrupt("break",33);case 31:B.next=10;break;case 33:case"end":return B.stop()}}),null,this)},t.manage.UploadFiles=function(e){var t,n,i,o,c,f,h,d,g,y,I,b,C,m,E,B,v,w,Q,S,M,k,D,_,x,R,N,F=this;return a.async((function(H){for(;;)switch(H.prev=H.next){case 0:if(t=e.libraryId,n=e.objectId,i=e.writeToken,o=e.fileInfo,c=e.encryption,f=void 0===c?"none":c,h=e.callback,p({libraryId:t,objectId:n}),l(i),this.Log("Uploading files: ".concat(t," ").concat(n," ").concat(i)),"cgck"!==f){H.next=8;break}return H.next=7,a.awrap(this.EncryptionConk({libraryId:t,objectId:n,writeToken:i}));case 7:d=H.sent;case 8:for(g={},y={},I=0;I<o.length;I++)(b=o[I]).path=b.path.replace(/^\/+/,""),"cgck"===f&&(b.encryption={scheme:"cgck"}),y[b.path]=b.data,delete b.data,b.type="file",g[b.path]={uploaded:0,total:b.size},o[I]=b;return this.Log(o),h&&h(g),H.next=15,a.awrap(this.CreateFileUploadJob({libraryId:t,objectId:n,writeToken:i,ops:o,encryption:f}));case 15:C=H.sent,m=C.id,E=C.jobs,this.Log("Upload ID: ".concat(m)),this.Log(E),104857600,B=[],v=0,w=0,Q=function(e,r){var o,A,c,u;return a.async((function(f){for(;;)switch(f.prev=f.next){case 0:if(B[r]){f.next=5;break}return f.next=3,a.awrap(new Promise((function(e){return setTimeout(e,500)})));case 3:f.next=0;break;case 5:o=B[r],A=o.files,c=0;case 8:if(!(c<A.length)){f.next=18;break}return u=A[c],f.next=12,a.awrap(F.UploadFileData({libraryId:t,objectId:n,writeToken:i,uploadId:m,jobId:e,fileData:u.data}));case 12:delete B[r].files[c].data,w+=u.len,h&&(g[u.path]=s({},g[u.path],{uploaded:g[u.path].uploaded+u.len}),h(g));case 15:c++,f.next=8;break;case 18:case"end":return f.stop()}}))},function(){var e,o,s,c,h,l;return a.async((function(g){for(;;)switch(g.prev=g.next){case 0:e=0;case 1:if(!(e<E.length)){g.next=31;break}case 2:if(!(v-w>104857600)){g.next=7;break}return g.next=5,a.awrap(new Promise((function(e){return setTimeout(e,500)})));case 5:g.next=2;break;case 7:return o=E[e],g.next=10,a.awrap(F.UploadJobStatus({libraryId:t,objectId:n,writeToken:i,uploadId:m,jobId:o}));case 10:s=g.sent,c=0;case 12:if(!(c<s.files.length)){g.next=25;break}if(h=s.files[c],l=void 0,"number"==typeof y[h.path]?(l=r.alloc(h.len),A.readSync(y[h.path],l,0,h.len,h.off)):l=y[h.path].slice(h.off,h.off+h.len),"cgck"!==f){g.next=20;break}return g.next=19,a.awrap(u.Encrypt(d,l));case 19:l=g.sent;case 20:s.files[c].data=l,v+=h.len;case 22:c++,g.next=12;break;case 25:return B[e]=s,g.next=28,a.awrap(new Promise((function(e){return setTimeout(e,50)})));case 28:e++,g.next=1;break;case 31:case"end":return g.stop()}}))}(),S=Math.min(3,E.length),M=[],k=0;case 30:if(!(k<S)){H.next=40;break}return D=(new Date).getTime(),H.next=34,a.awrap(Q(E[k],k));case 34:_=((new Date).getTime()-D)/1e3,x=B[k].files.map((function(e){return e.len})).reduce((function(e,t){return e+t}),0),M.push(x/_/1048576);case 37:k++,H.next=30;break;case 40:return R=M.reduce((function(e,t){return e+t}),0)/S,N=Math.min(5,Math.ceil(R/2)),H.next=44,a.awrap(this.utils.LimitedMap(N,E,(function(e,t){return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t<S)){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,a.awrap(Q(e,t));case 4:case"end":return n.stop()}}))})));case 44:case"end":return H.stop()}}),null,this)},t.manage.CreateFileUploadJob=function(e){var t,n,r,i,o,s,A,c,u,h;return a.async((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.ops,o=e.defaults,s=void 0===o?{}:o,A=e.encryption,c=void 0===A?"none":A,p({libraryId:t,objectId:n}),l(r),this.Log("Creating file upload job: ".concat(t," ").concat(n," ").concat(r)),this.Log(i),u=f("q",r,"file_jobs"),"cgck"===c&&(s.encryption={scheme:"cgck"}),h={seq:0,seq_complete:!0,defaults:s,ops:i},d.t0=this.utils,d.t1=this.HttpClient,d.next=12,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0,encryption:c}));case 12:return d.t2=d.sent,d.t3=u,d.t4=h,d.t5={headers:d.t2,method:"POST",path:d.t3,body:d.t4,failover:!1},d.t6=d.t1.Request.call(d.t1,d.t5),d.abrupt("return",d.t0.ResponseToJson.call(d.t0,d.t6));case 18:case"end":return d.stop()}}),null,this)},t.manage.UploadStatus=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.uploadId,p({libraryId:t,objectId:n}),l(r),o=f("q",r,"file_jobs",i),s.t0=this.utils,s.t1=this.HttpClient,s.next=8,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0}));case 8:return s.t2=s.sent,s.t3=o,s.t4={headers:s.t2,method:"GET",path:s.t3,failover:!1},s.t5=s.t1.Request.call(s.t1,s.t4),s.abrupt("return",s.t0.ResponseToJson.call(s.t0,s.t5));case 13:case"end":return s.stop()}}),null,this)},t.manage.UploadJobStatus=function(e){var t,n,r,i,o,s;return a.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.uploadId,o=e.jobId,p({libraryId:t,objectId:n}),l(r),s=f("q",r,"file_jobs",i,"uploads",o),A.t0=this.utils,A.t1=this.HttpClient,A.next=8,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0}));case 8:return A.t2=A.sent,A.t3=s,A.t4={headers:A.t2,method:"GET",path:A.t3,failover:!1},A.t5=A.t1.Request.call(A.t1,A.t4),A.abrupt("return",A.t0.ResponseToJson.call(A.t0,A.t5));case 13:case"end":return A.stop()}}),null,this)},t.manage.UploadFileData=function(e){var t,n,r,i,o,A,c;return a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.uploadId,o=e.jobId,A=e.fileData,p({libraryId:t,objectId:n}),l(r),c=f("q",r,"file_jobs",i,o),u.t0=a,u.t1=this.utils,u.t2=this.HttpClient,u.t3=c,u.t4=A,u.t5=s,u.t6={"Content-type":"application/octet-stream"},u.next=13,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0}));case 13:return u.t7=u.sent,u.t8=(0,u.t5)(u.t6,u.t7),u.t9={method:"POST",path:u.t3,body:u.t4,bodyType:"BINARY",headers:u.t8,failover:!1},u.t10=u.t2.Request.call(u.t2,u.t9),u.t11=u.t1.ResponseToJson.call(u.t1,u.t10),u.next=20,u.t0.awrap.call(u.t0,u.t11);case 20:case"end":return u.stop()}}),null,this)},t.manage.FinalizeUploadJob=function(e){var t,n,r,i;return a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,p({libraryId:t,objectId:n}),l(r),this.Log("Finalizing upload job: ".concat(t," ").concat(n," ").concat(r)),i=f("q",r,"files"),o.t0=a,o.t1=this.HttpClient,o.t2=i,o.next=10,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0}));case 10:return o.t3=o.sent,o.t4={method:"POST",path:o.t2,bodyType:"BINARY",headers:o.t3,failover:!1},o.t5=o.t1.Request.call(o.t1,o.t4),o.next=15,o.t0.awrap.call(o.t0,o.t5);case 15:case"end":return o.stop()}}),null,this)},t.manage.CreateFileDirectories=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.filePaths,p({libraryId:t,objectId:n}),l(r),this.Log("Creating Directories: ".concat(t," ").concat(n," ").concat(r)),this.Log(i),o=i.map((function(e){return{op:"add",type:"directory",path:e}})),s.next=8,a.awrap(this.CreateFileUploadJob({libraryId:t,objectId:n,writeToken:r,ops:o}));case 8:case"end":return s.stop()}}),null,this)},t.manage.DeleteFiles=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.filePaths,p({libraryId:t,objectId:n}),l(r),this.Log("Deleting Files: ".concat(t," ").concat(n," ").concat(r)),this.Log(i),o=i.map((function(e){return{op:"del",path:e}})),s.next=8,a.awrap(this.CreateFileUploadJob({libraryId:t,objectId:n,writeToken:r,ops:o}));case 8:case"end":return s.stop()}}),null,this)},t.access.DownloadFile=function(e){var t,n,r,i,o,s,A,c,u,h,l,g,y,I,b,C,m,E;return a.async((function(B){for(;;)switch(B.prev=B.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.writeToken,o=e.filePath,s=e.format,A=void 0===s?"arrayBuffer":s,c=e.chunked,u=void 0!==c&&c,h=e.chunkSize,l=void 0===h?1e6:h,g=e.callback,p({libraryId:t,objectId:n,versionHash:r}),d("filePath",o),r&&(n=this.utils.DecodeVersionHash(r).objectId),B.next=6,a.awrap(this.ContentObjectMetadata({libraryId:t,objectId:n,versionHash:r,writeToken:i,metadataSubtree:f("files",o)}));case 6:return y=B.sent,I=y&&y["."].encryption&&"cgck"===y["."].encryption.scheme,b=I?"cgck":void 0,C=f("q",i||r||n,"files",o),B.next=12,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r,encryption:b}));case 12:return(m=B.sent).Accept="*/*",B.t0=this.utils,B.t1=this.signer.address,B.next=18,a.awrap(this.ContentObjectOwner({objectId:n}));case 18:if(B.t2=B.sent,B.t0.EqualAddress.call(B.t0,B.t1,B.t2)){B.next=21;break}m["X-Content-Fabric-Decryption-Mode"]="reencrypt";case 21:if(E=y["."].size,!I){B.next=41;break}return B.t3=a,B.t4=this,B.next=27,a.awrap(this.EncryptionConk({libraryId:t,objectId:n}));case 27:return B.t5=B.sent,B.t6=C,B.t7=E,B.t8=m,B.t9=g,B.t10=A,B.t11=u,B.t12={conk:B.t5,downloadPath:B.t6,bytesTotal:B.t7,headers:B.t8,callback:B.t9,format:B.t10,chunked:B.t11},B.t13=B.t4.DownloadEncrypted.call(B.t4,B.t12),B.next=38,B.t3.awrap.call(B.t3,B.t13);case 38:return B.abrupt("return",B.sent);case 41:return B.next=43,a.awrap(this.Download({downloadPath:C,bytesTotal:E,headers:m,callback:g,format:A,chunked:u,chunkSize:l}));case 43:return B.abrupt("return",B.sent);case 44:case"end":return B.stop()}}),null,this)},t.access.ContentParts=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,p({libraryId:t,objectId:n,versionHash:r}),this.Log("Retrieving parts: ".concat(t," ").concat(n||r)),r&&(n=this.utils.DecodeVersionHash(r).objectId),i=f("q",r||n,"parts"),s.t0=a,s.t1=this.utils,s.t2=this.HttpClient,s.next=10,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r}));case 10:return s.t3=s.sent,s.t4=i,s.t5={headers:s.t3,method:"GET",path:s.t4},s.t6=s.t2.Request.call(s.t2,s.t5),s.t7=s.t1.ResponseToJson.call(s.t1,s.t6),s.next=17,s.t0.awrap.call(s.t0,s.t7);case 17:return o=s.sent,s.abrupt("return",o.parts);case 19:case"end":return s.stop()}}),null,this)},t.access.ContentPart=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.partHash,p({libraryId:t,objectId:n,versionHash:r}),g(i),this.Log("Retrieving part: ".concat(t," ").concat(n||r," ").concat(i)),r&&(n=this.utils.DecodeVersionHash(r).objectId),o=f("q",r||n,"parts",i),s.t0=a,s.t1=this.utils,s.t2=this.HttpClient,s.next=11,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r}));case 11:return s.t3=s.sent,s.t4=o,s.t5={headers:s.t3,method:"GET",path:s.t4},s.t6=s.t2.Request.call(s.t2,s.t5),s.t7=s.t1.ResponseToJson.call(s.t1,s.t6),s.next=18,s.t0.awrap.call(s.t0,s.t7);case 18:return s.abrupt("return",s.sent);case 19:case"end":return s.stop()}}),null,this)},t.access.DownloadPart=function(e){var t,n,r,i,o,s,A,c,u,h,d,l,y,I,b,C,m;return a.async((function(E){for(;;)switch(E.prev=E.next){case 0:return t=e.libraryId,n=e.objectId,r=e.versionHash,i=e.writeToken,o=e.partHash,s=e.format,A=void 0===s?"arrayBuffer":s,c=e.chunked,u=void 0!==c&&c,h=e.chunkSize,d=void 0===h?1e7:h,l=e.callback,p({libraryId:t,objectId:n,versionHash:r}),g(o),r&&(n=this.utils.DecodeVersionHash(r).objectId),y=o.startsWith("hqpe"),I=y?"cgck":void 0,b=f("q",i||r||n,"data",o),E.next=9,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,versionHash:r,encryption:I}));case 9:return C=E.sent,E.next=12,a.awrap(this.ContentPart({libraryId:t,objectId:n,versionHash:r,partHash:o}));case 12:if(m=E.sent.part.size,!y){E.next=32;break}return E.t0=a,E.t1=this,E.next=18,a.awrap(this.EncryptionConk({libraryId:t,objectId:n}));case 18:return E.t2=E.sent,E.t3=b,E.t4=m,E.t5=C,E.t6=l,E.t7=A,E.t8=u,E.t9={conk:E.t2,downloadPath:E.t3,bytesTotal:E.t4,headers:E.t5,callback:E.t6,format:E.t7,chunked:E.t8},E.t10=E.t1.DownloadEncrypted.call(E.t1,E.t9),E.next=29,E.t0.awrap.call(E.t0,E.t10);case 29:return E.abrupt("return",E.sent);case 32:return E.next=34,a.awrap(this.Download({downloadPath:b,bytesTotal:m,headers:C,callback:l,format:A,chunked:u,chunkSize:d}));case 34:return E.abrupt("return",E.sent);case 35:case"end":return E.stop()}}),null,this)},t.access.Download=function(e){var t,n,i,o,s,A,c,u,f,h,d,l,g,p,y;return a.async((function(I){for(;;)switch(I.prev=I.next){case 0:if(t=e.downloadPath,n=e.headers,i=e.bytesTotal,o=e.chunked,s=void 0!==o&&o,A=e.chunkSize,c=void 0===A?2e6:A,u=e.callback,f=e.format,h=void 0===f?"arrayBuffer":f,!s||u){I.next=3;break}throw Error("No callback specified for chunked download");case 3:s||(d=[]),l=0,g=Math.ceil(i/c),p=0;case 7:if(!(p<g)){I.next=35;break}return n.Range="bytes=".concat(l,"-").concat(l+c-1),I.next=11,a.awrap(this.HttpClient.Request({path:t,headers:n,method:"GET"}));case 11:if(y=I.sent,l=Math.min(l+c,i),!s){I.next=24;break}return I.t0=u,I.t1=l,I.t2=i,I.next=19,a.awrap(this.utils.ResponseToFormat(h,y));case 19:I.t3=I.sent,I.t4={bytesFinished:I.t1,bytesTotal:I.t2,chunk:I.t3},(0,I.t0)(I.t4),I.next=32;break;case 24:return u&&u({bytesFinished:l,bytesTotal:i}),I.t5=d,I.t6=r,I.next=29,a.awrap(y.arrayBuffer());case 29:I.t7=I.sent,I.t8=I.t6.from.call(I.t6,I.t7),I.t5.push.call(I.t5,I.t8);case 32:p++,I.next=7;break;case 35:if(s){I.next=39;break}return I.next=38,a.awrap(this.utils.ResponseToFormat(h,new Response(r.concat(d))));case 38:return I.abrupt("return",I.sent);case 39:case"end":return I.stop()}}),null,this)},t.access.DownloadEncrypted=function(e){var t,n,i,o,s,A,c,f,h,d,l,g,p,y,I,b,C,m=this;return a.async((function(E){for(;;)switch(E.prev=E.next){case 0:if(t=e.conk,n=e.downloadPath,i=e.bytesTotal,o=e.headers,s=e.callback,A=e.format,c=void 0===A?"arrayBuffer":A,f=e.chunked,h=void 0!==f&&f,d=e.chunkSize,l=void 0===d?1e6:d,!h||s){E.next=3;break}throw Error("No callback specified for chunked download");case 3:return g=0,c=c.toLowerCase(),p=[],E.next=8,a.awrap(u.OpenDecryptionStream(t));case 8:(y=E.sent).on("data",(function(e){var t;return a.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!h){n.next=13;break}if("buffer"===c){n.next=10;break}if(t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),"arraybuffer"!==c){n.next=7;break}e=t,n.next=10;break;case 7:return n.next=9,a.awrap(m.utils.ResponseToFormat(c,new Response(t)));case 9:e=n.sent;case 10:s({bytesFinished:g,bytesTotal:i,chunk:e}),n.next=15;break;case 13:s&&s({bytesFinished:g,bytesTotal:i}),p.push(e);case 15:case"end":return n.stop()}}))})),I=Math.ceil(i/l),b=0;case 12:if(!(b<I)){E.next=28;break}return o.Range="bytes=".concat(g,"-").concat(g+l-1),E.next=16,a.awrap(this.HttpClient.Request({headers:o,method:"GET",path:n}));case 16:return C=E.sent,g=Math.min(g+l,i),E.t0=y,E.t1=Uint8Array,E.next=22,a.awrap(C.arrayBuffer());case 22:E.t2=E.sent,E.t3=new E.t1(E.t2),E.t0.write.call(E.t0,E.t3);case 25:b++,E.next=12;break;case 28:return y.end(),E.next=31,a.awrap(new Promise((function(e){return y.on("finish",(function(){e()}))})));case 31:if(h){E.next=35;break}return E.next=34,a.awrap(this.utils.ResponseToFormat(c,new Response(r.concat(p))));case 34:return E.abrupt("return",E.sent);case 35:case"end":return E.stop()}}),null,this)},t.manage.CreatePart=function(e){var t,n,r,i,o,s;return a.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.encryption,p({libraryId:t,objectId:n}),l(r),o=f("q",r,"parts"),A.t0=a,A.t1=this.utils,A.t2=this.HttpClient,A.next=9,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0,encryption:i}));case 9:return A.t3=A.sent,A.t4=o,A.t5={headers:A.t3,method:"POST",path:A.t4,bodyType:"BINARY",body:"",failover:!1},A.t6=A.t2.Request.call(A.t2,A.t5),A.t7=A.t1.ResponseToJson.call(A.t1,A.t6),A.next=16,A.t0.awrap.call(A.t0,A.t7);case 16:return s=A.sent,A.abrupt("return",s.part.write_token);case 18:case"end":return A.stop()}}),null,this)},t.manage.UploadPartChunk=function(e){var t,n,r,i,o,s,A,c;return a.async((function(h){for(;;)switch(h.prev=h.next){case 0:if(t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.partWriteToken,o=e.chunk,s=e.encryption,p({libraryId:t,objectId:n}),l(r),!s||"none"===s){h.next=10;break}return h.next=6,a.awrap(this.EncryptionConk({libraryId:t,objectId:n,writeToken:r}));case 6:return A=h.sent,h.next=9,a.awrap(u.Encrypt(A,o));case 9:o=h.sent;case 10:return c=f("q",r,"parts"),h.t0=a,h.t1=this.utils,h.t2=this.HttpClient,h.next=16,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0,encryption:s}));case 16:return h.t3=h.sent,h.t4=f(c,i),h.t5=o,h.t6={headers:h.t3,method:"POST",path:h.t4,body:h.t5,bodyType:"BINARY",failover:!1},h.t7=h.t2.Request.call(h.t2,h.t6),h.t8=h.t1.ResponseToJson.call(h.t1,h.t7),h.next=24,h.t0.awrap.call(h.t0,h.t8);case 24:case"end":return h.stop()}}),null,this)},t.manage.FinalizePart=function(e){var t,n,r,i,o,s;return a.async((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.partWriteToken,o=e.encryption,p({libraryId:t,objectId:n}),l(r),s=f("q",r,"parts"),A.t0=a,A.t1=this.utils,A.t2=a,A.t3=this.HttpClient,A.next=10,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0,encryption:o}));case 10:return A.t4=A.sent,A.t5=f(s,i),A.t6={headers:A.t4,method:"POST",path:A.t5,bodyType:"BINARY",body:"",failover:!1},A.t7=A.t3.Request.call(A.t3,A.t6),A.next=16,A.t2.awrap.call(A.t2,A.t7);case 16:return A.t8=A.sent,A.t9=A.t1.ResponseToJson.call(A.t1,A.t8),A.next=20,A.t0.awrap.call(A.t0,A.t9);case 20:return A.abrupt("return",A.sent);case 21:case"end":return A.stop()}}),null,this)},t.manage.UploadPart=function(e){var t,n,r,i,o,s,A;return a.async((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.data,o=e.encryption,s=void 0===o?"none":o,p({libraryId:t,objectId:n}),l(r),c.next=5,a.awrap(this.CreatePart({libraryId:t,objectId:n,writeToken:r,encryption:s}));case 5:return A=c.sent,c.next=8,a.awrap(this.UploadPartChunk({libraryId:t,objectId:n,writeToken:r,partWriteToken:A,chunk:i,encryption:s}));case 8:return c.next=10,a.awrap(this.FinalizePart({libraryId:t,objectId:n,writeToken:r,partWriteToken:A,encryption:s}));case 10:return c.abrupt("return",c.sent);case 11:case"end":return c.stop()}}),null,this)},t.manage.DeletePart=function(e){var t,n,r,i,o;return a.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.libraryId,n=e.objectId,r=e.writeToken,i=e.partHash,p({libraryId:t,objectId:n}),l(r),g(i),o=f("q",r,"parts",i),s.t0=a,s.t1=this.HttpClient,s.next=9,a.awrap(this.authClient.AuthorizationHeader({libraryId:t,objectId:n,update:!0}));case 9:return s.t2=s.sent,s.t3=o,s.t4={headers:s.t2,method:"DELETE",path:s.t3,failover:!1},s.t5=s.t1.Request.call(s.t1,s.t4),s.next=15,s.t0.awrap.call(s.t0,s.t5);case 15:case"end":return s.stop()}}),null,this)}}).call(this,n(5),n(2).Buffer)},function(e,t){}])}));