@dodoex/wallet-web3 0.0.43-beta.2 → 0.0.43-beta.3

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 (135) hide show
  1. package/dist/alchemy-provider-5870b6fa-233c80b6.js +1 -0
  2. package/dist/alchemy-websocket-provider-213da986-64068b80.js +1 -0
  3. package/dist/blocto-4c3b71f5.js +1 -0
  4. package/dist/ccip-da46c435.js +1 -0
  5. package/dist/cjs/alchemy-provider-5870b6fa-686578f0.cjs +1 -0
  6. package/dist/cjs/alchemy-websocket-provider-213da986-fff1f59d.cjs +1 -0
  7. package/dist/cjs/blocto-621f54a9.cjs +1 -0
  8. package/dist/cjs/ccip-4b1d6858.cjs +1 -0
  9. package/dist/cjs/{draggabilly-5c45132c.cjs → draggabilly-5b36eaf0.cjs} +1 -1
  10. package/dist/cjs/id-0b41bc31.cjs +1 -0
  11. package/dist/{index-9a0e5b83.js → cjs/index-1e729250.cjs} +2 -2
  12. package/dist/cjs/index-283b89ff.cjs +1 -0
  13. package/dist/cjs/index-2d5de895.cjs +1 -0
  14. package/dist/cjs/{index-eb09e54d.cjs → index-35edc6a0.cjs} +1 -1
  15. package/dist/cjs/{index-3f7251ad.cjs → index-44b7a45e.cjs} +3 -3
  16. package/dist/cjs/index-5560dc58.cjs +17 -0
  17. package/dist/cjs/index-73e4d7eb.cjs +6 -0
  18. package/dist/cjs/{index-df8e5839.cjs → index-9f2a69d5.cjs} +1 -1
  19. package/dist/cjs/index-a4478ddb.cjs +1 -0
  20. package/dist/cjs/index-d528b9d2.cjs +1 -0
  21. package/dist/cjs/index-d54b57b8.cjs +1 -0
  22. package/dist/cjs/index-db36b0fa.cjs +29 -0
  23. package/dist/cjs/index.cjs +1 -1
  24. package/dist/cjs/index.es-e3bf027a.cjs +9 -0
  25. package/dist/cjs/{interface-bc5624b1.cjs → interface-d076e79e.cjs} +1 -1
  26. package/dist/cjs/{lib-typedarrays-7f24496d.cjs → lib-typedarrays-68c72268.cjs} +1 -1
  27. package/dist/cjs/{portis-211bf6ad.cjs → portis-7f3437fb.cjs} +1 -1
  28. package/dist/cjs/provider-e53a855b.cjs +1 -0
  29. package/dist/cjs/providers/connector/alchemy/index.d.ts +913 -0
  30. package/dist/cjs/providers/connector/alchemy/provider.d.ts +914 -0
  31. package/dist/cjs/providers/connector/alchemy/signer.d.ts +23 -0
  32. package/dist/cjs/providers/connector/index.d.ts +951 -43
  33. package/dist/cjs/providers/connector/ledgerUSB/index.d.ts +43 -43
  34. package/dist/cjs/providers/connector/ledgerUSB/provider.d.ts +10 -10
  35. package/dist/cjs/providers/connector/types.d.ts +4 -0
  36. package/dist/cjs/providers/connector/uniPass/index.d.ts +43 -43
  37. package/dist/cjs/providers/connector/uniPass/provider.d.ts +10 -10
  38. package/dist/cjs/providers/wallets/index.d.ts +2 -1
  39. package/dist/cjs/providers/wallets/standalone.d.ts +1 -0
  40. package/dist/cjs/providers/wallets/types.d.ts +1 -0
  41. package/dist/cjs/rainbow-dc533bc9.cjs +1 -0
  42. package/dist/cjs/sha224-d1ef1120.cjs +1 -0
  43. package/dist/cjs/sha256-0f5b78af.cjs +1 -0
  44. package/dist/cjs/typed-data-248c37d5.cjs +1 -0
  45. package/dist/cjs/uAuth-d9d66e7c.cjs +1 -0
  46. package/dist/cjs/walletConnect-0d1d9c65.cjs +1 -0
  47. package/dist/cjs/walletLink-a6046616.cjs +3 -0
  48. package/dist/{draggabilly-fb1c9db3.js → draggabilly-ad95d562.js} +1 -1
  49. package/dist/id-d4f3e36f.js +1 -0
  50. package/dist/index-21179dd1.js +1 -0
  51. package/dist/index-2691f407.js +1 -0
  52. package/dist/index-4f86d0d9.js +1 -0
  53. package/dist/{index-0e53e209.js → index-52949a22.js} +2 -2
  54. package/dist/index-5526977f.js +17 -0
  55. package/dist/index-5a7908b7.js +1 -0
  56. package/dist/{index-0ee5ef8d.js → index-65d96278.js} +1 -1
  57. package/dist/index-7e9e2ba1.js +1 -0
  58. package/dist/{index-2068a4fe.js → index-7f74b1e8.js} +3 -3
  59. package/dist/index-af6c16a1.js +29 -0
  60. package/dist/{cjs/index-2a741fbb.cjs → index-cd1a9a88.js} +2 -2
  61. package/dist/{index-e0d3617a.js → index-f08d6a6b.js} +1 -1
  62. package/dist/index.es-bb0f01ae.js +9 -0
  63. package/dist/index.js +1 -1
  64. package/dist/{interface-cb5e1e98.js → interface-8030d5f3.js} +1 -1
  65. package/dist/{lib-typedarrays-f8420380.js → lib-typedarrays-a4c67579.js} +1 -1
  66. package/dist/{portis-0d9d874b.js → portis-e2bba602.js} +1 -1
  67. package/dist/provider-459277d5.js +1 -0
  68. package/dist/providers/connector/alchemy/index.d.ts +913 -0
  69. package/dist/providers/connector/alchemy/provider.d.ts +914 -0
  70. package/dist/providers/connector/alchemy/signer.d.ts +23 -0
  71. package/dist/providers/connector/index.d.ts +951 -43
  72. package/dist/providers/connector/ledgerUSB/index.d.ts +43 -43
  73. package/dist/providers/connector/ledgerUSB/provider.d.ts +10 -10
  74. package/dist/providers/connector/types.d.ts +4 -0
  75. package/dist/providers/connector/uniPass/index.d.ts +43 -43
  76. package/dist/providers/connector/uniPass/provider.d.ts +10 -10
  77. package/dist/providers/wallets/index.d.ts +2 -1
  78. package/dist/providers/wallets/standalone.d.ts +1 -0
  79. package/dist/providers/wallets/types.d.ts +1 -0
  80. package/dist/rainbow-a06575a1.js +1 -0
  81. package/dist/sha224-10712709.js +1 -0
  82. package/dist/sha256-656b18f4.js +1 -0
  83. package/dist/typed-data-b07573b9.js +1 -0
  84. package/dist/uAuth-7b727766.js +1 -0
  85. package/dist/walletConnect-9c01b144.js +1 -0
  86. package/dist/{walletLink-000fcb81.js → walletLink-1b8c2056.js} +2 -2
  87. package/package.json +11 -4
  88. package/dist/DefaultJsonRpcProvider-a5375519.js +0 -1
  89. package/dist/__node-resolve_empty-0ed2c058.js +0 -1
  90. package/dist/blocto-739837e0.js +0 -1
  91. package/dist/bn-dbf1b053.js +0 -1
  92. package/dist/browser-ponyfill-65b68016.js +0 -1
  93. package/dist/cjs/DefaultJsonRpcProvider-af04cc55.cjs +0 -1
  94. package/dist/cjs/__node-resolve_empty-e2dee16c.cjs +0 -1
  95. package/dist/cjs/blocto-e8847b99.cjs +0 -1
  96. package/dist/cjs/bn-87cba44d.cjs +0 -1
  97. package/dist/cjs/browser-ponyfill-de0a8ec9.cjs +0 -1
  98. package/dist/cjs/ethers-2b86e17d.cjs +0 -1
  99. package/dist/cjs/id-1eb25db0.cjs +0 -1
  100. package/dist/cjs/index-0740e7fe.cjs +0 -1
  101. package/dist/cjs/index-18446412.cjs +0 -1
  102. package/dist/cjs/index-1af4ac9a.cjs +0 -1
  103. package/dist/cjs/index-21b90e8c.cjs +0 -6
  104. package/dist/cjs/index-2587eef5.cjs +0 -1
  105. package/dist/cjs/index-38ed564c.cjs +0 -15
  106. package/dist/cjs/index-53583bbc.cjs +0 -1
  107. package/dist/cjs/index-aaf32aa5.cjs +0 -9
  108. package/dist/cjs/index-d22bf825.cjs +0 -1
  109. package/dist/cjs/index-e9e5106b.cjs +0 -1
  110. package/dist/cjs/index.es-3e845f07.cjs +0 -9
  111. package/dist/cjs/provider-0ddad67c.cjs +0 -1
  112. package/dist/cjs/rainbow-73e82c82.cjs +0 -1
  113. package/dist/cjs/sha224-8056f6e3.cjs +0 -1
  114. package/dist/cjs/sha256-43414cf6.cjs +0 -1
  115. package/dist/cjs/uAuth-5166de3a.cjs +0 -1
  116. package/dist/cjs/walletConnect-41dc68ec.cjs +0 -1
  117. package/dist/cjs/walletLink-689340b5.cjs +0 -3
  118. package/dist/ethers-b291db18.js +0 -1
  119. package/dist/id-4e950ad4.js +0 -1
  120. package/dist/index-05ecccce.js +0 -1
  121. package/dist/index-1aa609d8.js +0 -1
  122. package/dist/index-27d4b342.js +0 -1
  123. package/dist/index-54955d07.js +0 -1
  124. package/dist/index-8151dacc.js +0 -1
  125. package/dist/index-929dd85e.js +0 -15
  126. package/dist/index-948c094e.js +0 -9
  127. package/dist/index-d00482ad.js +0 -1
  128. package/dist/index-ede11a7b.js +0 -1
  129. package/dist/index.es-818610ea.js +0 -9
  130. package/dist/provider-0b6bd3ac.js +0 -1
  131. package/dist/rainbow-688b2e16.js +0 -1
  132. package/dist/sha224-3fa562e2.js +0 -1
  133. package/dist/sha256-39cd7493.js +0 -1
  134. package/dist/uAuth-4ba62d4b.js +0 -1
  135. package/dist/walletConnect-96c9baa7.js +0 -1
@@ -1 +0,0 @@
1
- import{_ as e}from"./index-948c094e.js";import"@ethersproject/providers";import"zustand";import"events";import"@ethersproject/address";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/properties";import"@ethersproject/transactions";import"@ethersproject/bytes";const t="dapp-inpage-integration",i="openblock-content-integration",n=["https://cocoswap.com","https://app.openocean.finance"],o=["https://oec.cocoswap.com"];class s{constructor(){console.log("start initialize openblockinpage provider"),this.callBackList={},this.eventListener={},this.isMetaMask=!0,this.isOpenBlock=!0,this.chainId=null,this.networkVersion=null,this.selectedAddress=null,this.request=this.request.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.on=this.on.bind(this),this.isConnected=this.isConnected.bind(this),this.enable=this.enable.bind(this),this._metamask=this._getExperimentalApi(),this._initInpageListener(),this.getProviderData()}getProviderData(){var t;return e(this,void 0,void 0,(function*(){const e=yield this.request("metamask_getProviderState");this.chainId=null==e?void 0:e.chainId,this.networkVersion=null==e?void 0:e.networkVersion,this.selectedAddress=null===(t=null==e?void 0:e.accounts)||void 0===t?void 0:t[0]}))}request(t){return e(this,void 0,void 0,(function*(){if("eth_requestAccounts"===t.method){const e=yield this._hookRequest("eth_accounts");if(e.length)return new Promise((t=>t(e)))}return this._hookRequest(t)}))}send(...t){return e(this,void 0,void 0,(function*(){if("function"!=typeof t[1])return"string"==typeof t[0]?this.request({method:t[0],params:t[1]}):1===t.length?this.request(t):void 0;this.sendAsync(t[0],t[1])}))}sendAsync(...t){return e(this,void 0,void 0,(function*(){const e={method:t[0].method,params:t[0].params},i=t[0].id;this.request(e).then((e=>{t[1](null,{id:i,jsonrpc:"2.0",result:e})})).catch((e=>{t[1](null,{id:i,jsonrpc:"2.0",error:e})}))}))}isConnected(){return!0}enable(){return e(this,void 0,void 0,(function*(){const e=yield this._hookRequest("eth_accounts");return e.length?new Promise((t=>t(e))):this.request({method:"eth_requestAccounts"})}))}on(e,t){"string"==typeof e&&"function"==typeof t&&(this.eventListener[e]&&this.eventListener[e].length>5||(this.eventListener[e]?(this.eventListener[e].push(t),this.eventListener[e]=Array.from(new Set(this.eventListener[e]))):this.eventListener[e]||(this.eventListener=Object.assign(Object.assign({},this.eventListener),{[e]:[t]})),this._registerEvent(e)))}removeListener(){}_initInpageListener(){window.addEventListener("message",(e=>{var i,n,o;if(e.data.target!==t)return;const s=null===(o=null===(n=null===(i=e.data)||void 0===i?void 0:i.value)||void 0===n?void 0:n.data)||void 0===o?void 0:o.mark;s&&("call_method"===s.type?this._handleNormalMethod(s,e):"register_event"===s.type&&this._handleEventMethod(s,e))}),!1)}_handleNormalMethod(e,t){var i,n,o,s,r;(null===(i=t.data.value.data)||void 0===i?void 0:i.error)?null===(n=this.callBackList[e.id])||void 0===n||n.reject(null===(o=t.data.value.data)||void 0===o?void 0:o.error):null===(s=this.callBackList[e.id])||void 0===s||s.resolve(null===(r=t.data.value.data)||void 0===r?void 0:r.result),delete this.callBackList[e.id]}_handleEventMethod(e,t){var i,s,r,d,a,h,l;const c=null===(d=null===(r=null===(s=null===(i=t.data)||void 0===i?void 0:i.value)||void 0===s?void 0:s.data)||void 0===r?void 0:r.mark)||void 0===d?void 0:d.eventName,u=null===(l=null===(h=null===(a=t.data)||void 0===a?void 0:a.value)||void 0===h?void 0:h.data)||void 0===l?void 0:l.params;if(c){const e=this.eventListener[c];if(!e)return void("https://app.openocean.finance"===window.location.origin&&window.location.reload());e.forEach((e=>{"chainChanged"===c&&(this.chainId=u,this.networkVersion=Number(u)),o.includes(window.location.origin)&&"chainChanged"===c||(n.includes(window.location.origin)?window.location.reload():e(u))}))}}_hookRequest(e){return new Promise(((n,o)=>{const s=(()=>{function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()})();"string"==typeof e&&(e={method:e}),e=Object.assign(Object.assign({},e),{mark:{id:s,method:e.method,type:"call_method"}}),window.parent.postMessage({from:t,target:i,data:e},"*"),this.callBackList[s]={resolve:n,reject:o}}))}_registerEvent(e){const n={mark:{eventName:e,type:"register_event"},eventName:e};window.parent.postMessage({from:t,target:i,data:n},"*")}_getExperimentalApi(){return new Proxy({isUnlocked:()=>new Promise((e=>e(!0)))},{get:(e,t,...i)=>Reflect.get(e,t,...i)})}}function r(){var e;if(null===(e=window.obethereum)||void 0===e?void 0:e.isOpenBlock)return window.obethereum;let t=new s;t=new Proxy(t,{deleteProperty:()=>!0});try{Object.defineProperty(window,"obethereum",{set(e){console.log("set ethereum",e)},get:()=>t})}catch(e){console.log("initializeProvider error",e),window.obethereum=t}return window.web3=Object.assign({},window.web3),window.web3.currentProvider=t,window.dispatchEvent(new Event("ethereum#initialized")),t}export{r as default};
@@ -1 +0,0 @@
1
- import{_ as e,e as o,f as t,d as n}from"./index-948c094e.js";import{EthereumProvider as r}from"./index.es-818610ea.js";import"@ethersproject/address";import"@ethersproject/providers";import"zustand";import"events";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/properties";import"@ethersproject/transactions";import"@ethersproject/bytes";import"./_commonjs-dynamic-modules-7cfc9805.js";import"./__node-resolve_empty-0ed2c058.js";import"./browser-ponyfill-65b68016.js";function i({chainId:i,rpcUrl:c,rpc:s,walletConnectParams:a,darkMode:d},p){return e(this,void 0,void 0,(function*(){let l,m,h="wss://relay.walletconnect.com",u=!0;a&&(h=a.bridge||h,u=void 0!==a.qrcode?a.qrcode:u,a.infuraId,m=a.qrModalOptions||void 0),s?l=s:i&&c&&(l={[i]:c});const j=o(),b=yield r.init({projectId:"59e050d1f27ed617e65bb9637c9498d6",chains:i?[i]:[],showQrModal:!j,rpcMap:l,qrModalOptions:Object.assign({themeMode:d?"dark":"light"},m)});return b.on("display_uri",(e=>{(null==m?void 0:m.openCallback)&&m.openCallback(e)})),b.on("connect",p.connect),b.on("disconnect",(e=>{p.disconnect(e),p.accountsChanged([])})),b.on("accountsChanged",p.accountsChanged),b.on("chainChanged",p.chainChanged),b.on("message",(({type:e,data:o})=>p.message(e,o))),new Promise((o=>e(this,void 0,void 0,(function*(){j?(b.once("display_uri",(e=>{let r=e;t()&&(r=`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`),window.location.href=r,o(n(b))})),b.enable()):(yield b.enable(),o(n(b)))}))))}))}export{i as default};
@@ -1 +0,0 @@
1
- import{c as e}from"./index-948c094e.js";import{r,a}from"./sha256-39cd7493.js";var t,i={exports:{}};function o(){return t?i.exports:(t=1,i.exports=(H=r(),a(),o=(e=H).lib.WordArray,s=e.algo,n=s.SHA256,c=s.SHA224=n.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=4,e}}),e.SHA224=n._createHelper(c),e.HmacSHA224=n._createHmacHelper(c),H.SHA224));var e,o,s,n,c,H}export{o as r};
@@ -1 +0,0 @@
1
- import{c as t}from"./index-948c094e.js";import{c as n}from"./_commonjs-dynamic-modules-7cfc9805.js";import{r}from"./__node-resolve_empty-0ed2c058.js";var e,i={exports:{}};function o(){return e||(e=1,i.exports=(o=o||function(e,i){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==t&&t.crypto&&(o=t.crypto),!o&&"function"==typeof n)try{o=r}catch(t){}var s=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(n){var r;return t.prototype=n,r=new t,t.prototype=null,r}}(),c={},f=c.lib={},u=f.Base={extend:function(t){var n=a(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},h=f.WordArray=u.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=i?n:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var n=this.words,r=t.words,e=this.sigBytes,i=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(var a=0;a<i;a+=4)n[e+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(s());return new h.init(n,t)}}),p=c.enc={},d=p.Hex={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e+=2)r[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new h.init(r,n/2)}},l=p.Latin1={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push(String.fromCharCode(o))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e++)r[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new h.init(r,n)}},y=p.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},g=f.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=y.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,f=e.min(4*c,o);if(c){for(var u=0;u<c;u+=s)this._doProcessBlock(i,u);n=i.splice(0,c),r.sigBytes-=f}return new h.init(n,f)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});f.Hasher=g.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,r){return new t.init(r).finalize(n)}},_createHmacHelper:function(t){return function(n,r){return new w.HMAC.init(t,r).finalize(n)}}});var w=c.algo={};return c}(Math),o)),i.exports;var o}var s,a={exports:{}};function c(){return s?a.exports:(s=1,a.exports=(t=o(),function(n){var r=t,e=r.lib,i=e.WordArray,o=e.Hasher,s=r.algo,a=[],c=[];!function(){function t(t){for(var r=n.sqrt(t),e=2;e<=r;e++)if(!(t%e))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var e=2,i=0;i<64;)t(e)&&(i<8&&(a[i]=r(n.pow(e,.5))),c[i]=r(n.pow(e,1/3)),i++),e++}();var f=[],u=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,n){for(var r=this._hash.words,e=r[0],i=r[1],o=r[2],s=r[3],a=r[4],u=r[5],h=r[6],p=r[7],d=0;d<64;d++){if(d<16)f[d]=0|t[n+d];else{var l=f[d-15],y=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,g=f[d-2],w=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[d]=y+f[d-7]+w+f[d-16]}var v=e&i^e&o^i&o,m=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),_=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[d]+f[d];p=h,h=u,u=a,a=s+_|0,s=o,o=i,i=e,e=_+(m+v)|0}r[0]=r[0]+e|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+h|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=n.floor(e/4294967296),r[15+(i+64>>>9<<4)]=e,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256));var t}export{c as a,o as r};