@multiversx/sdk-dapp 2.10.11 → 2.10.12

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 (202) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/ModalContainer/ModalContainer.js +1 -1
  5. package/UI/ModalContainer/index.js +1 -1
  6. package/UI/NotificationModal/index.js +1 -1
  7. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  8. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  9. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  16. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  17. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  18. package/UI/SignTransactionsModals/components/index.js +1 -1
  19. package/UI/SignTransactionsModals/index.js +1 -1
  20. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  21. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  22. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  23. package/UI/TransactionInfo/components/index.js +1 -1
  24. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  25. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  26. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  27. package/UI/TransactionInfo/index.js +1 -1
  28. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  29. package/UI/TransactionsTable/index.js +1 -1
  30. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  31. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  32. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  33. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  34. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  35. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  36. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  37. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  38. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  39. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  40. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  41. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  42. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  43. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  44. package/UI/TransactionsToastList/components/index.js +1 -1
  45. package/UI/TransactionsToastList/index.js +1 -1
  46. package/UI/index.js +1 -1
  47. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  48. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  49. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  50. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  51. package/UI/ledger/index.js +1 -1
  52. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  53. package/UI/pages/UnlockPage/index.js +1 -1
  54. package/UI/pages/index.js +1 -1
  55. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  56. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  57. package/UI/walletConnect/index.js +1 -1
  58. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  59. package/__chunks__/{chunk-FFCO2QCC.js → chunk-45ARMIIV.js} +2 -2
  60. package/__chunks__/{chunk-NAEZYYME.js → chunk-4AY436A3.js} +2 -2
  61. package/__chunks__/chunk-64WNNRH3.js +2 -0
  62. package/__chunks__/{chunk-2DEMXGE3.js → chunk-AGGHZD2X.js} +2 -2
  63. package/__chunks__/{chunk-ZD2FOYXH.js → chunk-BUAPQSLE.js} +2 -2
  64. package/__chunks__/{chunk-SXK2WRU5.js → chunk-D6K2SNBC.js} +2 -2
  65. package/__chunks__/{chunk-GO5RYX6I.js → chunk-HO5YNQLL.js} +2 -2
  66. package/__chunks__/{chunk-NV453TM2.js → chunk-HOF5K2JI.js} +2 -2
  67. package/__chunks__/{chunk-6U5ZKZIN.js → chunk-IHUJVHF6.js} +2 -2
  68. package/__chunks__/{chunk-YGN4D6EE.js → chunk-IVVW25DH.js} +2 -2
  69. package/__chunks__/{chunk-TM4XVRT6.js → chunk-M2A6EX5R.js} +2 -2
  70. package/__chunks__/{chunk-E4EQIILV.js → chunk-MGZU5WBA.js} +2 -2
  71. package/__chunks__/chunk-WISK7MIJ.js +2 -0
  72. package/__chunks__/{chunk-XZCNMRIW.js → chunk-YSWO56CP.js} +2 -2
  73. package/__chunks__/{chunk-A3ANJRRQ.js → chunk-YUXJXHBM.js} +2 -2
  74. package/__chunks__/chunk-ZRLJX7WH.js +2 -0
  75. package/__commonjs/UI/DappModal/hooks/index.js +5 -5
  76. package/__commonjs/UI/DappModal/hooks/useDappModal.js +5 -5
  77. package/__commonjs/UI/DappModal/index.js +9 -9
  78. package/__commonjs/UI/ModalContainer/ModalContainer.js +7 -7
  79. package/__commonjs/UI/ModalContainer/index.js +7 -7
  80. package/__commonjs/UI/NotificationModal/index.js +8 -8
  81. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +26 -26
  82. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +9 -9
  83. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +11 -11
  84. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +9 -9
  85. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  86. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +11 -11
  87. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +9 -9
  88. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +9 -9
  89. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +18 -18
  90. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +19 -19
  91. package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +14 -14
  92. package/__commonjs/UI/SignTransactionsModals/components/index.js +18 -18
  93. package/__commonjs/UI/SignTransactionsModals/index.js +26 -26
  94. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +40 -40
  95. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +6 -6
  96. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +6 -6
  97. package/__commonjs/UI/TransactionInfo/components/index.js +41 -41
  98. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +7 -7
  99. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +7 -7
  100. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +37 -37
  101. package/__commonjs/UI/TransactionInfo/index.js +41 -41
  102. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +18 -18
  103. package/__commonjs/UI/TransactionsTable/index.js +18 -18
  104. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +18 -18
  105. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +13 -13
  106. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +13 -13
  107. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +13 -13
  108. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +11 -11
  109. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +11 -11
  110. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +13 -13
  111. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +13 -13
  112. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +13 -13
  113. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +13 -13
  114. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +13 -13
  115. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +6 -6
  116. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +13 -13
  117. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +13 -13
  118. package/__commonjs/UI/TransactionsToastList/components/index.js +18 -18
  119. package/__commonjs/UI/TransactionsToastList/index.js +18 -18
  120. package/__commonjs/UI/index.js +68 -68
  121. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +20 -20
  122. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +8 -8
  123. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +6 -6
  124. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +20 -20
  125. package/__commonjs/UI/ledger/index.js +20 -20
  126. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +7 -7
  127. package/__commonjs/UI/pages/UnlockPage/index.js +23 -23
  128. package/__commonjs/UI/pages/index.js +23 -23
  129. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +13 -13
  130. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +10 -10
  131. package/__commonjs/UI/walletConnect/index.js +13 -13
  132. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +7 -7
  133. package/__commonjs/__mocks__/index.js +5 -5
  134. package/__commonjs/__mocks__/utils/index.js +11 -11
  135. package/__commonjs/__mocks__/utils/renderWithProvider.js +11 -11
  136. package/__commonjs/components/LogoutListener/LogoutListener.js +5 -5
  137. package/__commonjs/components/LogoutListener/helpers/index.js +5 -5
  138. package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +5 -5
  139. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +5 -5
  140. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +5 -5
  141. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +5 -5
  142. package/__commonjs/components/LogoutListener/index.js +5 -5
  143. package/__commonjs/components/ProviderInitializer.js +11 -11
  144. package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +14 -14
  145. package/__commonjs/components/TransactionsTracker/TransactionTracker.js +5 -5
  146. package/__commonjs/components/TransactionsTracker/index.js +5 -5
  147. package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +5 -5
  148. package/__commonjs/hooks/index.js +7 -7
  149. package/__commonjs/hooks/login/index.js +5 -5
  150. package/__commonjs/hooks/login/useLedgerLogin.js +5 -5
  151. package/__commonjs/hooks/login/useWebWalletLogin.js +5 -5
  152. package/__commonjs/hooks/signMessage/index.js +1 -1
  153. package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
  154. package/__commonjs/hooks/transactions/index.js +5 -5
  155. package/__commonjs/hooks/transactions/useParseSignedTransactions.js +1 -1
  156. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  157. package/__commonjs/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  158. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  159. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  160. package/__commonjs/utils/index.js +3 -3
  161. package/__commonjs/utils/parseNavigationParams.js +1 -1
  162. package/__commonjs/wrappers/DappProvider/CustomComponents.js +5 -5
  163. package/__commonjs/wrappers/DappProvider/index.js +11 -11
  164. package/__commonjs/wrappers/index.js +5 -5
  165. package/__mocks__/index.js +1 -1
  166. package/__mocks__/utils/index.js +1 -1
  167. package/__mocks__/utils/renderWithProvider.js +1 -1
  168. package/components/LogoutListener/LogoutListener.js +1 -1
  169. package/components/LogoutListener/helpers/index.js +1 -1
  170. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  171. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  172. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  173. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  174. package/components/LogoutListener/index.js +1 -1
  175. package/components/ProviderInitializer.js +1 -1
  176. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  177. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  178. package/components/TransactionsTracker/index.js +1 -1
  179. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  180. package/hooks/index.js +1 -1
  181. package/hooks/login/index.js +1 -1
  182. package/hooks/login/useLedgerLogin.js +1 -1
  183. package/hooks/login/useWebWalletLogin.js +1 -1
  184. package/hooks/signMessage/index.js +1 -1
  185. package/hooks/signMessage/useSignMessage.js +1 -1
  186. package/hooks/transactions/index.js +1 -1
  187. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  188. package/hooks/transactions/useSignTransactions.js +1 -1
  189. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  190. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  191. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  192. package/package.json +1 -1
  193. package/utils/index.js +1 -1
  194. package/utils/parseNavigationParams.d.ts +12 -1
  195. package/utils/parseNavigationParams.js +1 -1
  196. package/utils/tests/parseNavigationParams.test.d.ts +2 -0
  197. package/wrappers/DappProvider/CustomComponents.js +1 -1
  198. package/wrappers/DappProvider/index.js +1 -1
  199. package/wrappers/index.js +1 -1
  200. package/__chunks__/chunk-BKQNIGD5.js +0 -2
  201. package/__chunks__/chunk-D35V4POU.js +0 -2
  202. package/__chunks__/chunk-W47X2A4Z.js +0 -2
@@ -1,7 +1,7 @@
1
- "use strict";var Nv=Object.create;var Er=Object.defineProperty,Ov=Object.defineProperties,Mv=Object.getOwnPropertyDescriptor,Fv=Object.getOwnPropertyDescriptors,Uv=Object.getOwnPropertyNames,Go=Object.getOwnPropertySymbols,Bv=Object.getPrototypeOf,js=Object.prototype.hasOwnProperty,Gl=Object.prototype.propertyIsEnumerable;var Wl=(n,o,i)=>o in n?Er(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))js.call(o,i)&&Wl(n,i,o[i]);if(Go)for(var i of Go(o))Gl.call(o,i)&&Wl(n,i,o[i]);return n},Q=(n,o)=>Ov(n,Fv(o));var $o=(n,o)=>{var i={};for(var u in n)js.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Go)for(var u of Go(n))o.indexOf(u)<0&&Gl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Cr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Er(n,i,{get:o[i],enumerable:!0})},$l=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of Uv(o))!js.call(n,m)&&m!==i&&Er(n,m,{get:()=>o[m],enumerable:!(u=Mv(o,m))||u.enumerable});return n};var z=(n,o,i)=>(i=n!=null?Nv(Bv(n)):{},$l(o||!n||!n.__esModule?Er(i,"default",{value:n,enumerable:!0}):i,n)),kr=n=>$l(Er({},"__esModule",{value:!0}),n);var K=(n,o,i)=>new Promise((u,m)=>{var S=E=>{try{k(i.next(E))}catch(R){m(R)}},v=E=>{try{k(i.throw(E))}catch(R){m(R)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(S,v);k((i=i.apply(n,o)).next())});var ql=Cr(Ho=>{"use strict";s();Ho.byteLength=Gv;Ho.toByteArray=Hv;Ho.fromByteArray=zv;var xt=[],st=[],Wv=typeof Uint8Array!="undefined"?Uint8Array:Array,ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,Hl=ea.length;xn<Hl;++xn)xt[xn]=ea[xn],st[ea.charCodeAt(xn)]=xn;var xn,Hl;st["-".charCodeAt(0)]=62;st["_".charCodeAt(0)]=63;function Vl(n){var o=n.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function Gv(n){var o=Vl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function $v(n,o,i){return(o+i)*3/4-i}function Hv(n){var o,i=Vl(n),u=i[0],m=i[1],S=new Wv($v(n,u,m)),v=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=st[n.charCodeAt(E)]<<18|st[n.charCodeAt(E+1)]<<12|st[n.charCodeAt(E+2)]<<6|st[n.charCodeAt(E+3)],S[v++]=o>>16&255,S[v++]=o>>8&255,S[v++]=o&255;return m===2&&(o=st[n.charCodeAt(E)]<<2|st[n.charCodeAt(E+1)]>>4,S[v++]=o&255),m===1&&(o=st[n.charCodeAt(E)]<<10|st[n.charCodeAt(E+1)]<<4|st[n.charCodeAt(E+2)]>>2,S[v++]=o>>8&255,S[v++]=o&255),S}function Vv(n){return xt[n>>18&63]+xt[n>>12&63]+xt[n>>6&63]+xt[n&63]}function qv(n,o,i){for(var u,m=[],S=o;S<i;S+=3)u=(n[S]<<16&16711680)+(n[S+1]<<8&65280)+(n[S+2]&255),m.push(Vv(u));return m.join("")}function zv(n){for(var o,i=n.length,u=i%3,m=[],S=16383,v=0,k=i-u;v<k;v+=S)m.push(qv(n,v,v+S>k?k:v+S));return u===1?(o=n[i-1],m.push(xt[o>>2]+xt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(xt[o>>10]+xt[o>>4&63]+xt[o<<2&63]+"=")),m.join("")}});var zl=Cr(ta=>{s();ta.read=function(n,o,i,u,m){var S,v,k=m*8-u-1,E=(1<<k)-1,R=E>>1,G=-7,M=i?m-1:0,ue=i?-1:1,de=n[o+M];for(M+=ue,S=de&(1<<-G)-1,de>>=-G,G+=k;G>0;S=S*256+n[o+M],M+=ue,G-=8);for(v=S&(1<<-G)-1,S>>=-G,G+=u;G>0;v=v*256+n[o+M],M+=ue,G-=8);if(S===0)S=1-R;else{if(S===E)return v?NaN:(de?-1:1)*(1/0);v=v+Math.pow(2,u),S=S-R}return(de?-1:1)*v*Math.pow(2,S-u)};ta.write=function(n,o,i,u,m,S){var v,k,E,R=S*8-m-1,G=(1<<R)-1,M=G>>1,ue=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,de=u?0:S-1,pe=u?1:-1,Se=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,v=G):(v=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-v))<1&&(v--,E*=2),v+M>=1?o+=ue/E:o+=ue*Math.pow(2,1-M),o*E>=2&&(v++,E/=2),v+M>=G?(k=0,v=G):v+M>=1?(k=(o*E-1)*Math.pow(2,m),v=v+M):(k=o*Math.pow(2,M-1)*Math.pow(2,m),v=0));m>=8;n[i+de]=k&255,de+=pe,k/=256,m-=8);for(v=v<<m|k,R+=m;R>0;n[i+de]=v&255,de+=pe,v/=256,R-=8);n[i+de-pe]|=Se*128}});var ip=Cr(zn=>{"use strict";s();var na=ql(),qn=zl(),Kl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zn.Buffer=A;zn.SlowBuffer=Qv;zn.INSPECT_MAX_BYTES=50;var Vo=2147483647;zn.kMaxLength=Vo;A.TYPED_ARRAY_SUPPORT=Kv();!A.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Kv(){try{var n=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(n,o),n.foo()===42}catch(i){return!1}}Object.defineProperty(A.prototype,"parent",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.buffer}});Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.byteOffset}});function Ft(n){if(n>Vo)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,A.prototype),o}function A(n,o,i){if(typeof n=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return sa(n)}return Xl(n,o,i)}A.poolSize=8192;function Xl(n,o,i){if(typeof n=="string")return Zv(n,o);if(ArrayBuffer.isView(n))return Xv(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(St(n,ArrayBuffer)||n&&St(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(St(n,SharedArrayBuffer)||n&&St(n.buffer,SharedArrayBuffer)))return oa(n,o,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=n.valueOf&&n.valueOf();if(u!=null&&u!==n)return A.from(u,o,i);var m=Jv(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return A.from(n[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}A.from=function(n,o,i){return Xl(n,o,i)};Object.setPrototypeOf(A.prototype,Uint8Array.prototype);Object.setPrototypeOf(A,Uint8Array);function Jl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Yv(n,o,i){return Jl(n),n<=0?Ft(n):o!==void 0?typeof i=="string"?Ft(n).fill(o,i):Ft(n).fill(o):Ft(n)}A.alloc=function(n,o,i){return Yv(n,o,i)};function sa(n){return Jl(n),Ft(n<0?0:aa(n)|0)}A.allocUnsafe=function(n){return sa(n)};A.allocUnsafeSlow=function(n){return sa(n)};function Zv(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!A.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Ql(n,o)|0,u=Ft(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ra(n){for(var o=n.length<0?0:aa(n.length)|0,i=Ft(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function Xv(n){if(St(n,Uint8Array)){var o=new Uint8Array(n);return oa(o.buffer,o.byteOffset,o.byteLength)}return ra(n)}function oa(n,o,i){if(o<0||n.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');var u;return o===void 0&&i===void 0?u=new Uint8Array(n):i===void 0?u=new Uint8Array(n,o):u=new Uint8Array(n,o,i),Object.setPrototypeOf(u,A.prototype),u}function Jv(n){if(A.isBuffer(n)){var o=aa(n.length)|0,i=Ft(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||ca(n.length)?Ft(0):ra(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ra(n.data)}function aa(n){if(n>=Vo)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Vo.toString(16)+" bytes");return n|0}function Qv(n){return+n!=n&&(n=0),A.alloc(+n)}A.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==A.prototype};A.compare=function(o,i){if(St(o,Uint8Array)&&(o=A.from(o,o.offset,o.byteLength)),St(i,Uint8Array)&&(i=A.from(i,i.offset,i.byteLength)),!A.isBuffer(o)||!A.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;for(var u=o.length,m=i.length,S=0,v=Math.min(u,m);S<v;++S)if(o[S]!==i[S]){u=o[S],m=i[S];break}return u<m?-1:m<u?1:0};A.isEncoding=function(o){switch(String(o).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(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return A.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=A.allocUnsafe(i),S=0;for(u=0;u<o.length;++u){var v=o[u];if(St(v,Uint8Array))S+v.length>m.length?A.from(v).copy(m,S):Uint8Array.prototype.set.call(m,v,S);else if(A.isBuffer(v))v.copy(m,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=v.length}return m};function Ql(n,o){if(A.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||St(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&i===0)return 0;for(var m=!1;;)switch(o){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return ia(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return op(n).length;default:if(m)return u?-1:ia(n).length;o=(""+o).toLowerCase(),m=!0}}A.byteLength=Ql;function jv(n,o,i){var u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(n||(n="utf8");;)switch(n){case"hex":return u0(this,o,i);case"utf8":case"utf-8":return ep(this,o,i);case"ascii":return a0(this,o,i);case"latin1":case"binary":return c0(this,o,i);case"base64":return i0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}A.prototype._isBuffer=!0;function Sn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}A.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<o;i+=2)Sn(this,i,i+1);return this};A.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<o;i+=4)Sn(this,i,i+3),Sn(this,i+1,i+2);return this};A.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<o;i+=8)Sn(this,i,i+7),Sn(this,i+1,i+6),Sn(this,i+2,i+5),Sn(this,i+3,i+4);return this};A.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?ep(this,0,o):jv.apply(this,arguments)};A.prototype.toLocaleString=A.prototype.toString;A.prototype.equals=function(o){if(!A.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:A.compare(this,o)===0};A.prototype.inspect=function(){var o="",i=zn.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};Kl&&(A.prototype[Kl]=A.prototype.inspect);A.prototype.compare=function(o,i,u,m,S){if(St(o,Uint8Array)&&(o=A.from(o,o.offset,o.byteLength)),!A.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(i===void 0&&(i=0),u===void 0&&(u=o?o.length:0),m===void 0&&(m=0),S===void 0&&(S=this.length),i<0||u>o.length||m<0||S>this.length)throw new RangeError("out of range index");if(m>=S&&i>=u)return 0;if(m>=S)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,S>>>=0,this===o)return 0;for(var v=S-m,k=u-i,E=Math.min(v,k),R=this.slice(m,S),G=o.slice(i,u),M=0;M<E;++M)if(R[M]!==G[M]){v=R[M],k=G[M];break}return v<k?-1:k<v?1:0};function jl(n,o,i,u,m){if(n.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,ca(i)&&(i=m?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(m)return-1;i=n.length-1}else if(i<0)if(m)i=0;else return-1;if(typeof o=="string"&&(o=A.from(o,u)),A.isBuffer(o))return o.length===0?-1:Yl(n,o,i,u,m);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?m?Uint8Array.prototype.indexOf.call(n,o,i):Uint8Array.prototype.lastIndexOf.call(n,o,i):Yl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Yl(n,o,i,u,m){var S=1,v=n.length,k=o.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(n.length<2||o.length<2)return-1;S=2,v/=2,k/=2,i/=2}function E(de,pe){return S===1?de[pe]:de.readUInt16BE(pe*S)}var R;if(m){var G=-1;for(R=i;R<v;R++)if(E(n,R)===E(o,G===-1?0:R-G)){if(G===-1&&(G=R),R-G+1===k)return G*S}else G!==-1&&(R-=R-G),G=-1}else for(i+k>v&&(i=v-k),R=i;R>=0;R--){for(var M=!0,ue=0;ue<k;ue++)if(E(n,R+ue)!==E(o,ue)){M=!1;break}if(M)return R}return-1}A.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};A.prototype.indexOf=function(o,i,u){return jl(this,o,i,u,!0)};A.prototype.lastIndexOf=function(o,i,u){return jl(this,o,i,u,!1)};function e0(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var S=o.length;u>S/2&&(u=S/2);for(var v=0;v<u;++v){var k=parseInt(o.substr(v*2,2),16);if(ca(k))return v;n[i+v]=k}return v}function t0(n,o,i,u){return qo(ia(o,n.length-i),n,i,u)}function n0(n,o,i,u){return qo(d0(o),n,i,u)}function r0(n,o,i,u){return qo(op(o),n,i,u)}function o0(n,o,i,u){return qo(g0(o,n.length-i),n,i,u)}A.prototype.write=function(o,i,u,m){if(i===void 0)m="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")m=i,u=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(u)?(u=u>>>0,m===void 0&&(m="utf8")):(m=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var S=this.length-i;if((u===void 0||u>S)&&(u=S),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var v=!1;;)switch(m){case"hex":return e0(this,o,i,u);case"utf8":case"utf-8":return t0(this,o,i,u);case"ascii":case"latin1":case"binary":return n0(this,o,i,u);case"base64":return r0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o0(this,o,i,u);default:if(v)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),v=!0}};A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function i0(n,o,i){return o===0&&i===n.length?na.fromByteArray(n):na.fromByteArray(n.slice(o,i))}function ep(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var S=n[m],v=null,k=S>239?4:S>223?3:S>191?2:1;if(m+k<=i){var E,R,G,M;switch(k){case 1:S<128&&(v=S);break;case 2:E=n[m+1],(E&192)===128&&(M=(S&31)<<6|E&63,M>127&&(v=M));break;case 3:E=n[m+1],R=n[m+2],(E&192)===128&&(R&192)===128&&(M=(S&15)<<12|(E&63)<<6|R&63,M>2047&&(M<55296||M>57343)&&(v=M));break;case 4:E=n[m+1],R=n[m+2],G=n[m+3],(E&192)===128&&(R&192)===128&&(G&192)===128&&(M=(S&15)<<18|(E&63)<<12|(R&63)<<6|G&63,M>65535&&M<1114112&&(v=M))}}v===null?(v=65533,k=1):v>65535&&(v-=65536,u.push(v>>>10&1023|55296),v=56320|v&1023),u.push(v),m+=k}return s0(u)}var Zl=4096;function s0(n){var o=n.length;if(o<=Zl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Zl));return i}function a0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]&127);return u}function c0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]);return u}function u0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",S=o;S<i;++S)m+=m0[n[S]];return m}function l0(n,o,i){for(var u=n.slice(o,i),m="",S=0;S<u.length-1;S+=2)m+=String.fromCharCode(u[S]+u[S+1]*256);return m}A.prototype.slice=function(o,i){var u=this.length;o=~~o,i=i===void 0?u:~~i,o<0?(o+=u,o<0&&(o=0)):o>u&&(o=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<o&&(i=o);var m=this.subarray(o,i);return Object.setPrototypeOf(m,A.prototype),m};function Ie(n,o,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+o>i)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return m};A.prototype.readUintBE=A.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=this[o+--i],S=1;i>0&&(S*=256);)m+=this[o+--i]*S;return m};A.prototype.readUint8=A.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ie(o,1,this.length),this[o]};A.prototype.readUint16LE=A.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ie(o,2,this.length),this[o]|this[o+1]<<8};A.prototype.readUint16BE=A.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ie(o,2,this.length),this[o]<<8|this[o+1]};A.prototype.readUint32LE=A.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};A.prototype.readUint32BE=A.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};A.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return S*=128,m>=S&&(m-=Math.pow(2,8*i)),m};A.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=i,S=1,v=this[o+--m];m>0&&(S*=256);)v+=this[o+--m]*S;return S*=128,v>=S&&(v-=Math.pow(2,8*i)),v};A.prototype.readInt8=function(o,i){return o=o>>>0,i||Ie(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};A.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ie(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};A.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ie(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};A.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};A.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};A.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),qn.read(this,o,!0,23,4)};A.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),qn.read(this,o,!1,23,4)};A.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ie(o,8,this.length),qn.read(this,o,!0,52,8)};A.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ie(o,8,this.length),qn.read(this,o,!1,52,8)};function Be(n,o,i,u,m,S){if(!A.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<S)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=1,k=0;for(this[i]=o&255;++k<u&&(v*=256);)this[i+k]=o/v&255;return i+u};A.prototype.writeUintBE=A.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=u-1,k=1;for(this[i+v]=o&255;--v>=0&&(k*=256);)this[i+v]=o/k&255;return i+u};A.prototype.writeUint8=A.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,1,255,0),this[i]=o&255,i+1};A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,65535,0),this[i]=o&255,this[i+1]=o>>>8,i+2};A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=o&255,i+2};A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=o&255,i+4};A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};A.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=0,k=1,E=0;for(this[i]=o&255;++v<u&&(k*=256);)o<0&&E===0&&this[i+v-1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};A.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=u-1,k=1,E=0;for(this[i+v]=o&255;--v>=0&&(k*=256);)o<0&&E===0&&this[i+v+1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};A.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=o&255,i+1};A.prototype.writeInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,32767,-32768),this[i]=o&255,this[i+1]=o>>>8,i+2};A.prototype.writeInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=o&255,i+2};A.prototype.writeInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,2147483647,-2147483648),this[i]=o&255,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4};A.prototype.writeInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};function tp(n,o,i,u,m,S){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function np(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,4,34028234663852886e22,-34028234663852886e22),qn.write(n,o,i,u,23,4),i+4}A.prototype.writeFloatLE=function(o,i,u){return np(this,o,i,!0,u)};A.prototype.writeFloatBE=function(o,i,u){return np(this,o,i,!1,u)};function rp(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,8,17976931348623157e292,-17976931348623157e292),qn.write(n,o,i,u,52,8),i+8}A.prototype.writeDoubleLE=function(o,i,u){return rp(this,o,i,!0,u)};A.prototype.writeDoubleBE=function(o,i,u){return rp(this,o,i,!1,u)};A.prototype.copy=function(o,i,u,m){if(!A.isBuffer(o))throw new TypeError("argument should be a Buffer");if(u||(u=0),!m&&m!==0&&(m=this.length),i>=o.length&&(i=o.length),i||(i=0),m>0&&m<u&&(m=u),m===u||o.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("sourceEnd out of bounds");m>this.length&&(m=this.length),o.length-i<m-u&&(m=o.length-i+u);var S=m-u;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,m):Uint8Array.prototype.set.call(o,this.subarray(u,m),i),S};A.prototype.fill=function(o,i,u,m){if(typeof o=="string"){if(typeof i=="string"?(m=i,i=0,u=this.length):typeof u=="string"&&(m=u,u=this.length),m!==void 0&&typeof m!="string")throw new TypeError("encoding must be a string");if(typeof m=="string"&&!A.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var S=o.charCodeAt(0);(m==="utf8"&&S<128||m==="latin1")&&(o=S)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,o||(o=0);var v;if(typeof o=="number")for(v=i;v<u;++v)this[v]=o;else{var k=A.isBuffer(o)?o:A.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(v=0;v<u-i;++v)this[v+i]=k[v%E]}return this};var p0=/[^+/0-9A-Za-z-_]/g;function f0(n){if(n=n.split("=")[0],n=n.trim().replace(p0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function ia(n,o){o=o||1/0;for(var i,u=n.length,m=null,S=[],v=0;v<u;++v){if(i=n.charCodeAt(v),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&S.push(239,191,189);continue}else if(v+1===u){(o-=3)>-1&&S.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&S.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&S.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;S.push(i)}else if(i<2048){if((o-=2)<0)break;S.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;S.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;S.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return S}function d0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function g0(n,o){for(var i,u,m,S=[],v=0;v<n.length&&!((o-=2)<0);++v)i=n.charCodeAt(v),u=i>>8,m=i%256,S.push(m),S.push(u);return S}function op(n){return na.toByteArray(f0(n))}function qo(n,o,i,u){for(var m=0;m<u&&!(m+i>=o.length||m>=n.length);++m)o[m+i]=n[m];return m}function St(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function ca(n){return n!==n}var m0=function(){for(var n="0123456789abcdef",o=new Array(256),i=0;i<16;++i)for(var u=i*16,m=0;m<16;++m)o[u+m]=n[i]+n[m];return o}()});var lp=Cr((UA,up)=>{s();var ye=up.exports={},vt,wt;function ua(){throw new Error("setTimeout has not been defined")}function la(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vt=setTimeout:vt=ua}catch(n){vt=ua}try{typeof clearTimeout=="function"?wt=clearTimeout:wt=la}catch(n){wt=la}})();function sp(n){if(vt===setTimeout)return setTimeout(n,0);if((vt===ua||!vt)&&setTimeout)return vt=setTimeout,setTimeout(n,0);try{return vt(n,0)}catch(o){try{return vt.call(null,n,0)}catch(i){return vt.call(this,n,0)}}}function T0(n){if(wt===clearTimeout)return clearTimeout(n);if((wt===la||!wt)&&clearTimeout)return wt=clearTimeout,clearTimeout(n);try{return wt(n)}catch(o){try{return wt.call(null,n)}catch(i){return wt.call(this,n)}}}var Ut=[],Kn=!1,vn,zo=-1;function h0(){!Kn||!vn||(Kn=!1,vn.length?Ut=vn.concat(Ut):zo=-1,Ut.length&&ap())}function ap(){if(!Kn){var n=sp(h0);Kn=!0;for(var o=Ut.length;o;){for(vn=Ut,Ut=[];++zo<o;)vn&&vn[zo].run();zo=-1,o=Ut.length}vn=null,Kn=!1,T0(n)}}ye.nextTick=function(n){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Ut.push(new cp(n,o)),Ut.length===1&&!Kn&&sp(ap)};function cp(n,o){this.fun=n,this.array=o}cp.prototype.run=function(){this.fun.apply(null,this.array)};ye.title="browser";ye.browser=!0;ye.env={};ye.argv=[];ye.version="";ye.versions={};function Bt(){}ye.on=Bt;ye.addListener=Bt;ye.once=Bt;ye.off=Bt;ye.removeListener=Bt;ye.removeAllListeners=Bt;ye.emit=Bt;ye.prependListener=Bt;ye.prependOnceListener=Bt;ye.listeners=function(n){return[]};ye.binding=function(n){throw new Error("process.binding is not supported")};ye.cwd=function(){return"/"};ye.chdir=function(n){throw new Error("process.chdir is not supported")};ye.umask=function(){return 0}});var f,g,y0,d,s=W(()=>{f=z(ip()),g=z(lp()),y0=function(n){function o(){var u=this||self;return delete n.prototype.__magic__,u}if(typeof globalThis=="object")return globalThis;if(this)return o();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:o});var i=__magic__;return i}(Object),d=y0});var wn=W(()=>{"use strict";s()});var pp=W(()=>{"use strict";s()});var fp=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var me=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var We=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var hp=W(()=>{"use strict";s()});var xe=W(()=>{"use strict";s();pp();fp();dp();me();gp();mp();We();Tp();hp()});var pa,yp,rI,xp,oI,Sp,iI,sI,aI,vp=W(()=>{"use strict";s();xe();pa={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:yp,egldLabel:rI}=pa["devnet"],{chainId:xp,egldLabel:oI}=pa["testnet"],{chainId:Sp,egldLabel:iI}=pa["mainnet"],sI={["devnet"]:yp,["testnet"]:xp,["mainnet"]:Sp},aI={[yp]:"devnet",[xp]:"testnet",[Sp]:"mainnet"}});var fa=W(()=>{"use strict";s()});var wp=W(()=>{"use strict";s()});var Ko,da=W(()=>{"use strict";s();Ko="transaction-status-toast-id"});var _t,_p=W(()=>{"use strict";s();_t=require("@multiversx/sdk-web-wallet-provider")});var Ap=W(()=>{"use strict";s()});var Pr,Yo,Ip,ga,Zo,bp,Yn,ie=W(()=>{"use strict";s();wn();vp();fa();wp();da();_p();Ap();Pr=5e4,Yo=1e9,Ip=1,ga=4294967295,Zo="logout",bp="login",Yn="0"});var _n,Rr=W(()=>{"use strict";s();_n=()=>Date.now()/1e3});var Lp,ma=W(()=>{"use strict";s();Lp=n=>new Date().setMilliseconds(new Date().getMilliseconds()+n)/1e3});var Ep=W(()=>{"use strict";s()});var Ta=W(()=>{"use strict";s();Rr();ma();Ep()});var ya={};yn(ya,{getItem:()=>S0,localStorageKeys:()=>nn,removeItem:()=>v0,setItem:()=>x0});var nn,ha,x0,S0,v0,Zn=W(()=>{"use strict";s();Ta();nn={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ha=typeof localStorage!="undefined",x0=({key:n,data:o,expires:i})=>{!ha||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},S0=n=>{if(!ha)return;let o=localStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:_n()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},v0=n=>{!ha||localStorage.removeItem(String(n))}});var xa={};yn(xa,{clear:()=>Rp,getItem:()=>kp,removeItem:()=>Pp,setItem:()=>Cp,storage:()=>w0});var Cp,kp,Pp,Rp,w0,Dp=W(()=>{"use strict";s();Cp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},kp=n=>{let o=sessionStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},Pp=n=>sessionStorage.removeItem(String(n)),Rp=()=>sessionStorage.clear(),w0={setItem:Cp,getItem:kp,removeItem:Pp,clear:Rp}});var An,Xn=W(()=>{"use strict";s();Zn();Dp();An={session:xa,local:ya}});var Sa,Le,At,ke=W(()=>{"use strict";s();Sa=require("@reduxjs/toolkit");ie();Le=(0,Sa.createAction)(Zo),At=(0,Sa.createAction)(bp,n=>({payload:n}))});var wa,Np,Op,Xo,va,Mp,_a,BI,Aa,WI,_0,A0,GI,$I,HI,I0,Jo,Qo=W(()=>{"use strict";s();wa=require("@multiversx/sdk-core"),Np=require("@reduxjs/toolkit"),Op=require("redux-persist");ie();Xn();Zn();ke();Xo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Yn},va={address:"",websocketEvent:null,accounts:{"":Xo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Mp=(0,Np.createSlice)({name:"accountInfoSlice",initialState:va,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new wa.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Xo},n.shard=o.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,o)=>{let{address:i}=n;n.accounts[i].nonce=o.payload},setAccountShard:(n,o)=>{n.shard=o.payload},setLedgerAccount:(n,o)=>{n.ledgerAccount=o.payload},updateLedgerAccount:(n,o)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=o.payload.index,n.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(n,o)=>{n.walletConnectAccount=o.payload},setIsAccountLoading:(n,o)=>{n.isAccountLoading=o.payload,n.accountLoadingError=null},setAccountLoadingError:(n,o)=>{n.accountLoadingError=o.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,o)=>{n.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:n=>{n.addCase(Le,()=>(An.local.removeItem(nn.loginExpiresAt),va)),n.addCase(At,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new wa.Address(u).hex()}),n.addCase(Op.REHYDRATE,(o,i)=>{var R;if(!((R=i.payload)!=null&&R.account))return;let{account:u}=i.payload,{address:m,shard:S,accounts:v,publicKey:k}=u;o.address=m,o.shard=S;let E=v&&m in v;o.accounts=E?v:va.accounts,o.publicKey=k})}}),{setAccount:_a,setAddress:BI,setAccountNonce:Aa,setAccountShard:WI,setLedgerAccount:_0,updateLedgerAccount:A0,setWalletConnectAccount:GI,setIsAccountLoading:$I,setAccountLoadingError:HI,setWebsocketEvent:I0}=Mp.actions,Jo=Mp.reducer});function Dr(){return new Date().setHours(new Date().getHours()+24)}function Nr(n){An.local.setItem({key:nn.loginExpiresAt,data:n,expires:n})}var Ia=W(()=>{"use strict";s();Xn();Zn()});var Up,Fp,Bp,jI,Wp,b0,L0,eb,E0,Gp,tb,jo,ei=W(()=>{"use strict";s();Up=require("@reduxjs/toolkit");Ia();me();ke();Fp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Bp=(0,Up.createSlice)({name:"loginInfoSlice",initialState:Fp,reducers:{setLoginMethod:(n,o)=>{n.loginMethod=o.payload},setTokenLogin:(n,o)=>{n.tokenLogin=o.payload},setTokenLoginSignature:(n,o)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=o.payload)},setWalletLogin:(n,o)=>{n.walletLogin=o.payload},setWalletConnectLogin:(n,o)=>{n.walletConnectLogin=o.payload},setLedgerLogin:(n,o)=>{n.ledgerLogin=o.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,o)=>{n.logoutRoute=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fp),n.addCase(At,(o,i)=>{o.loginMethod=i.payload.loginMethod,Nr(Dr())})}}),{setLoginMethod:jI,setWalletConnectLogin:Wp,setLedgerLogin:b0,setTokenLogin:L0,setTokenLoginSignature:eb,setWalletLogin:E0,invalidateLoginSession:Gp,setLogoutRoute:tb}=Bp.actions,jo=Bp.reducer});var Hp,$p,Vp,ib,C0,sb,k0,ti,ni=W(()=>{"use strict";s();Hp=require("@reduxjs/toolkit");ke();$p={},Vp=(0,Hp.createSlice)({name:"modalsSlice",initialState:$p,reducers:{setTxSubmittedModal:(n,o)=>{n.txSubmittedModal=o.payload},setNotificationModal:(n,o)=>{n.notificationModal=o.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(Le,()=>$p)}}),{setTxSubmittedModal:ib,setNotificationModal:C0,clearTxSubmittedModal:sb,clearNotificationModal:k0}=Vp.actions,ti=Vp.reducer});var Or=W(()=>{"use strict";s()});var zp=W(()=>{"use strict";s();Or()});function ba(n){return n[Math.floor(Math.random()*n.length)]}var Kp=W(()=>{"use strict";s()});var La=W(()=>{"use strict";s();fa()});var In=W(()=>{"use strict";s();zp();Kp();La()});var Yp,Zp,Ea,P0,Xp,vb,wb,ri,oi=W(()=>{"use strict";s();Yp=require("@reduxjs/toolkit"),Zp=z(require("lodash.omit"));In();Ea={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},P0={network:Ea,chainID:"-1"},Xp=(0,Yp.createSlice)({name:"appConfig",initialState:P0,reducers:{initializeNetworkConfig:(n,o)=>{let i=ba(o.payload.walletConnectBridgeAddresses),u=ba(o.payload.walletConnectV2RelayAddresses),m=(0,Zp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:vb,setChainID:wb}=Xp.actions,ri=Xp.reducer});var Jp,Ca,Qp,Eb,Cb,kb,ii,si=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit");xe();ke();Ca={isSigning:!1,signedSessions:{}},Qp=(0,Jp.createSlice)({name:"signedMessageInfoSliceState",initialState:Ca,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Ca},extraReducers:n=>{n.addCase(Le,()=>Ca)}}),{setSignSession:Eb,clearSignedMessageInfo:Cb,setSignSessionState:kb}=Qp.actions,ii=Qp.reducer});var ef,tf,jp,nf,R0,ka,Ub,Bb,Wb,Gb,ai,ci=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit"),tf=require("redux-persist");da();xe();Rr();ke();jp={customToasts:[],transactionToasts:[],failTransactionToast:null},nf=(0,ef.createSlice)({name:"toastsSlice",initialState:jp,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:_n(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=Q(O({},o.payload),{toastId:Ko})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>jp),n.addCase(tf.REHYDRATE,(o,i)=>{var m,S;let u=(S=(m=i.customToasts)==null?void 0:m.filter(v=>!("component"in v)))!=null?S:[];o.customToasts=u})}}),{addCustomToast:R0,removeCustomToast:ka,addTransactionToast:Ub,removeTransactionToast:Bb,addFailTransactionToast:Wb,removeFailTransactionToast:Gb}=nf.actions,ai=nf.reducer});var rf,Ra,Da,Na,D0,Pa,of,qb,N0,Oa,ui,li=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit");ke();Ra="Transaction failed",Da="Transaction successful",Na="Processing transaction",D0="Transaction submitted",Pa={},of=(0,rf.createSlice)({name:"transactionsInfo",initialState:Pa,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ra,successMessage:(u==null?void 0:u.successMessage)||Da,processingMessage:(u==null?void 0:u.processingMessage)||Na,submittedMessage:(u==null?void 0:u.submittedMessage)||D0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>Pa},extraReducers:n=>{n.addCase(Le,()=>Pa)}}),{clearTransactionsInfo:qb,setTransactionsDisplayInfo:N0,clearTransactionsInfoForSessionId:Oa}=of.actions,ui=of.reducer});function rn(n){return n!=null&&($0(n)||z0(n))}function Qn(n){return n!=null&&(H0(n)||K0(n))}function jn(n){return n!=null&&(V0(n)||Y0(n))}function Mr(n){return n!=null&&q0(n)}function $0(n){return n!=null&&O0.includes(n)}function H0(n){return n!=null&&M0.includes(n)}function V0(n){return n!=null&&F0.includes(n)}function q0(n){return n!=null&&U0.includes(n)}function z0(n){return n!=null&&B0.includes(n)}function K0(n){return n!=null&&W0.includes(n)}function Y0(n){return n!=null&&G0.includes(n)}var O0,M0,F0,U0,B0,W0,G0,bn=W(()=>{"use strict";s();me();O0=["sent"],M0=["success"],F0=["fail","cancelled","timedOut"],U0=["timedOut"],B0=["pending"],W0=["success"],G0=["fail","invalid"]});var sf,af,Fr,Z0,cf,uf,lf,X0,pi,J0,Q0,eL,j0,fi,Ma,di,gi=W(()=>{"use strict";s();sf=require("@reduxjs/toolkit"),af=require("redux-persist");me();bn();ke();Fr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Z0={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},cf=(0,sf.createSlice)({name:"transactionsSlice",initialState:Fr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,R;let{sessionId:i,transactions:u,errorMessage:m,status:S,redirectRoute:v}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||Z0;n.signedTransactions[i]={transactions:u,status:S,errorMessage:m,redirectRoute:v,customTransactionInformation:k},((R=n==null?void 0:n.transactionsToSign)==null?void 0:R.sessionId)===i&&(n.transactionsToSign=Fr.transactionsToSign)},clearSignedTransaction:(n,o)=>{n.signedTransactions[o.payload]&&delete n.signedTransactions[o.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,o)=>{n.signedTransactions=O(O({},n.signedTransactions),o.payload)},updateSignedTransactions:(n,o)=>{let{sessionId:i,status:u,errorMessage:m,transactions:S}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),S!=null&&(n.signedTransactions[i].transactions=S))},updateSignedTransactionStatus:(n,o)=>{var k,E,R,G,M,ue;let{sessionId:i,status:u,errorMessage:m,transactionHash:S}=o.payload,v=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(v!=null){n.signedTransactions[i].transactions=v.map(Se=>Se.hash===S?Q(O({},Se),{status:u,errorMessage:m}):Se);let de=(G=(R=n.signedTransactions[i])==null?void 0:R.transactions)==null?void 0:G.every(Se=>Qn(Se.status)),pe=(ue=(M=n.signedTransactions[i])==null?void 0:M.transactions)==null?void 0:ue.every(Se=>jn(Se.status));de&&(n.signedTransactions[i].status="success"),pe&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,o)=>{n.transactionsToSign=o.payload;let{sessionId:i,customTransactionInformation:u}=o.payload;n.customTransactionInformationForSessionId[i]=u,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=Fr.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Fr.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fr),n.addCase(af.REHYDRATE,(o,i)=>{var v;if(o.signTransactionsCancelMessage=null,!((v=i.payload)!=null&&v.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,S=Object.entries(u).reduce((k,[E,R])=>{let G=new Date(E),M=new Date;return M.setHours(M.getHours()+5),M-G>0||(k[E]=R),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=S)})}}),{updateSignedTransactionStatus:uf,updateSignedTransactions:lf,setTransactionsToSign:X0,clearAllTransactionsToSign:pi,clearAllSignedTransactions:J0,clearSignedTransaction:Q0,clearTransactionToSign:eL,setSignTransactionsError:j0,setSignTransactionsCancelMessage:fi,moveTransactionsToSignedState:Ma}=cf.actions,di=cf.reducer});var ae=W(()=>{"use strict";s();Qo();ei();ni();oi();si();ci();li();gi()});var Fa=W(()=>{"use strict";s()});var mf,gf,Tf,AL,IL,bL,LL,EL,CL,hf,yf=W(()=>{"use strict";s();mf=require("@reduxjs/toolkit");ke();gf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Tf=(0,mf.createSlice)({name:"dappModalsSlice",initialState:gf,reducers:{setDappModalVisibility:(n,o)=>{n.visible=o.payload},setDappModalHeaderVisibility:(n,o)=>{n.modal.showHeader=o.payload},setDappModalFooterVisibility:(n,o)=>{n.modal.showFooter=o.payload},setDappModalHeaderText:(n,o)=>{n.modal.headerText=o.payload},setDappModalFooterText:(n,o)=>{n.modal.footerText=o.payload},setDappModalConfig:(n,o)=>{n.modal=O({},o.payload)}},extraReducers:n=>{n.addCase(Le,()=>gf)}}),{setDappModalVisibility:AL,setDappModalHeaderVisibility:IL,setDappModalFooterVisibility:bL,setDappModalHeaderText:LL,setDappModalFooterText:EL,setDappModalConfig:CL}=Tf.actions,hf=Tf.reducer});var xf,rw,ow,Ln,yi=W(()=>{"use strict";s();xf=require("@reduxjs/toolkit");Fa();Qo();yf();ei();ni();oi();si();ci();li();gi();rw={["account"]:Jo,["dappModal"]:hf,["loginInfo"]:jo,["modals"]:ti,["networkConfig"]:ri,["signedMessageInfo"]:ii,["toasts"]:ai,["transactionsInfo"]:ui,["transactions"]:di},ow=(n={})=>(0,xf.combineReducers)(O(O({},rw),n)),Ln=ow});var _f={};yn(_f,{default:()=>xw,sessionStorageReducers:()=>Ua});function on(n,o=[]){return{key:n,version:1,storage:vf.default,blacklist:o}}var Ze,Sf,vf,iw,Br,sw,aw,cw,uw,lw,pw,fw,dw,gw,wf,mw,Ua,Tw,hw,yw,xw,Af=W(()=>{"use strict";s();Ze=require("redux-persist"),Sf=z(require("redux-persist/lib/storage")),vf=z(require("redux-persist/lib/storage/session"));yi();ae();Qo();ei();ni();oi();si();ci();li();gi();Fa();iw={persistReducersStorageType:"localStorage"},Br={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},sw=on(Br["account"]),aw=on(Br["loginInfo"]),cw=on(Br["modals"]),uw=on(Br["networkConfig"]),lw={2:n=>Q(O({},n),{networkConfig:Ea})};pw=on("sdk-dapp-transactionsInfo"),fw=on("sdk-dapp-transactions",["transactionsToSign"]),dw=on("sdk-dapp-toasts"),gw=on("sdk-dapp-signedMessageInfo"),wf={key:"sdk-dapp-store",version:2,storage:Sf.default,whitelist:Object.keys(Br),migrate:(0,Ze.createMigrate)(lw,{debug:!1})},mw=Q(O({},wf),{whitelist:[]}),Ua={["toasts"]:(0,Ze.persistReducer)(dw,ai),["transactions"]:(0,Ze.persistReducer)(fw,di),["transactionsInfo"]:(0,Ze.persistReducer)(pw,ui),["signedMessageInfo"]:(0,Ze.persistReducer)(gw,ii)},Tw=Q(O({},Ua),{["account"]:(0,Ze.persistReducer)(sw,Jo),["loginInfo"]:(0,Ze.persistReducer)(aw,jo),["modals"]:(0,Ze.persistReducer)(cw,ti),["networkConfig"]:(0,Ze.persistReducer)(uw,ri)}),hw=iw.persistReducersStorageType==="localStorage",yw=hw?(0,Ze.persistReducer)(wf,Ln(Ua)):(0,Ze.persistReducer)(mw,Ln(Tw)),xw=yw});var If={};yn(If,{default:()=>Sw});var Sw,bf=W(()=>{"use strict";s();yi();Sw=Ln()});var Lf={};yn(Lf,{default:()=>ww});var at,vw,ww,Ef=W(()=>{"use strict";s();at=require("redux-persist"),vw=[at.FLUSH,at.REHYDRATE,at.PAUSE,at.PERSIST,at.PURGE,at.REGISTER],ww=vw});var Pf={};yn(Pf,{default:()=>kf});function kf(n){return(0,Cf.persistStore)(n)}var Cf,Rf=W(()=>{"use strict";s();Cf=require("redux-persist")});var Cd=Cr((rr,Hr)=>{s();(function(){var n,o="4.17.21",i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",S="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",R=1,G=2,M=4,ue=1,de=2,pe=1,Se=2,zr=4,Je=8,It=16,Ne=32,Vt=64,bt=128,ir=256,Pi=512,Bd=30,Wd="...",Gd=800,$d=16,cc=1,Hd=2,Vd=3,cn=1/0,qt=9007199254740991,qd=17976931348623157e292,Kr=0/0,mt=4294967295,zd=mt-1,Kd=mt>>>1,Yd=[["ary",bt],["bind",pe],["bindKey",Se],["curry",Je],["curryRight",It],["flip",Pi],["partial",Ne],["partialRight",Vt],["rearg",ir]],kn="[object Arguments]",Yr="[object Array]",Zd="[object AsyncFunction]",sr="[object Boolean]",ar="[object Date]",Xd="[object DOMException]",Zr="[object Error]",Xr="[object Function]",uc="[object GeneratorFunction]",ct="[object Map]",cr="[object Number]",Jd="[object Null]",Lt="[object Object]",lc="[object Promise]",Qd="[object Proxy]",ur="[object RegExp]",ut="[object Set]",lr="[object String]",Jr="[object Symbol]",jd="[object Undefined]",pr="[object WeakMap]",eg="[object WeakSet]",fr="[object ArrayBuffer]",Pn="[object DataView]",Ri="[object Float32Array]",Di="[object Float64Array]",Ni="[object Int8Array]",Oi="[object Int16Array]",Mi="[object Int32Array]",Fi="[object Uint8Array]",Ui="[object Uint8ClampedArray]",Bi="[object Uint16Array]",Wi="[object Uint32Array]",tg=/\b__p \+= '';/g,ng=/\b(__p \+=) '' \+/g,rg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pc=/&(?:amp|lt|gt|quot|#39);/g,fc=/[&<>"']/g,og=RegExp(pc.source),ig=RegExp(fc.source),sg=/<%-([\s\S]+?)%>/g,ag=/<%([\s\S]+?)%>/g,dc=/<%=([\s\S]+?)%>/g,cg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ug=/^\w*$/,lg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/[\\^$.*+?()[\]{}|]/g,pg=RegExp(Gi.source),$i=/^\s+/,fg=/\s/,dg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gg=/\{\n\/\* \[wrapped with (.+)\] \*/,mg=/,? & /,Tg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hg=/[()=,{}\[\]\/\s]/,yg=/\\(\\)?/g,xg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gc=/\w*$/,Sg=/^[-+]0x[0-9a-f]+$/i,vg=/^0b[01]+$/i,wg=/^\[object .+?Constructor\]$/,_g=/^0o[0-7]+$/i,Ag=/^(?:0|[1-9]\d*)$/,Ig=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,bg=/['\n\r\u2028\u2029\\]/g,jr="\\ud800-\\udfff",Lg="\\u0300-\\u036f",Eg="\\ufe20-\\ufe2f",Cg="\\u20d0-\\u20ff",mc=Lg+Eg+Cg,Tc="\\u2700-\\u27bf",hc="a-z\\xdf-\\xf6\\xf8-\\xff",kg="\\xac\\xb1\\xd7\\xf7",Pg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rg="\\u2000-\\u206f",Dg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yc="A-Z\\xc0-\\xd6\\xd8-\\xde",xc="\\ufe0e\\ufe0f",Sc=kg+Pg+Rg+Dg,Hi="['\u2019]",Ng="["+jr+"]",vc="["+Sc+"]",eo="["+mc+"]",wc="\\d+",Og="["+Tc+"]",_c="["+hc+"]",Ac="[^"+jr+Sc+wc+Tc+hc+yc+"]",Vi="\\ud83c[\\udffb-\\udfff]",Mg="(?:"+eo+"|"+Vi+")",Ic="[^"+jr+"]",qi="(?:\\ud83c[\\udde6-\\uddff]){2}",zi="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+yc+"]",bc="\\u200d",Lc="(?:"+_c+"|"+Ac+")",Fg="(?:"+Rn+"|"+Ac+")",Ec="(?:"+Hi+"(?:d|ll|m|re|s|t|ve))?",Cc="(?:"+Hi+"(?:D|LL|M|RE|S|T|VE))?",kc=Mg+"?",Pc="["+xc+"]?",Ug="(?:"+bc+"(?:"+[Ic,qi,zi].join("|")+")"+Pc+kc+")*",Bg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rc=Pc+kc+Ug,Gg="(?:"+[Og,qi,zi].join("|")+")"+Rc,$g="(?:"+[Ic+eo+"?",eo,qi,zi,Ng].join("|")+")",Hg=RegExp(Hi,"g"),Vg=RegExp(eo,"g"),Ki=RegExp(Vi+"(?="+Vi+")|"+$g+Rc,"g"),qg=RegExp([Rn+"?"+_c+"+"+Ec+"(?="+[vc,Rn,"$"].join("|")+")",Fg+"+"+Cc+"(?="+[vc,Rn+Lc,"$"].join("|")+")",Rn+"?"+Lc+"+"+Ec,Rn+"+"+Cc,Wg,Bg,wc,Gg].join("|"),"g"),zg=RegExp("["+bc+jr+mc+xc+"]"),Kg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zg=-1,ce={};ce[Ri]=ce[Di]=ce[Ni]=ce[Oi]=ce[Mi]=ce[Fi]=ce[Ui]=ce[Bi]=ce[Wi]=!0,ce[kn]=ce[Yr]=ce[fr]=ce[sr]=ce[Pn]=ce[ar]=ce[Zr]=ce[Xr]=ce[ct]=ce[cr]=ce[Lt]=ce[ur]=ce[ut]=ce[lr]=ce[pr]=!1;var se={};se[kn]=se[Yr]=se[fr]=se[Pn]=se[sr]=se[ar]=se[Ri]=se[Di]=se[Ni]=se[Oi]=se[Mi]=se[ct]=se[cr]=se[Lt]=se[ur]=se[ut]=se[lr]=se[Jr]=se[Fi]=se[Ui]=se[Bi]=se[Wi]=!0,se[Zr]=se[Xr]=se[pr]=!1;var Xg={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Jg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},em=parseFloat,tm=parseInt,Dc=typeof d=="object"&&d&&d.Object===Object&&d,nm=typeof self=="object"&&self&&self.Object===Object&&self,_e=Dc||nm||Function("return this")(),Yi=typeof rr=="object"&&rr&&!rr.nodeType&&rr,un=Yi&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,Nc=un&&un.exports===Yi,Zi=Nc&&Dc.process,Qe=function(){try{var y=un&&un.require&&un.require("util").types;return y||Zi&&Zi.binding&&Zi.binding("util")}catch(_){}}(),Oc=Qe&&Qe.isArrayBuffer,Mc=Qe&&Qe.isDate,Fc=Qe&&Qe.isMap,Uc=Qe&&Qe.isRegExp,Bc=Qe&&Qe.isSet,Wc=Qe&&Qe.isTypedArray;function $e(y,_,w){switch(w.length){case 0:return y.call(_);case 1:return y.call(_,w[0]);case 2:return y.call(_,w[0],w[1]);case 3:return y.call(_,w[0],w[1],w[2])}return y.apply(_,w)}function rm(y,_,w,P){for(var $=-1,j=y==null?0:y.length;++$<j;){var ve=y[$];_(P,ve,w(ve),y)}return P}function je(y,_){for(var w=-1,P=y==null?0:y.length;++w<P&&_(y[w],w,y)!==!1;);return y}function om(y,_){for(var w=y==null?0:y.length;w--&&_(y[w],w,y)!==!1;);return y}function Gc(y,_){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!_(y[w],w,y))return!1;return!0}function zt(y,_){for(var w=-1,P=y==null?0:y.length,$=0,j=[];++w<P;){var ve=y[w];_(ve,w,y)&&(j[$++]=ve)}return j}function to(y,_){var w=y==null?0:y.length;return!!w&&Dn(y,_,0)>-1}function Xi(y,_,w){for(var P=-1,$=y==null?0:y.length;++P<$;)if(w(_,y[P]))return!0;return!1}function le(y,_){for(var w=-1,P=y==null?0:y.length,$=Array(P);++w<P;)$[w]=_(y[w],w,y);return $}function Kt(y,_){for(var w=-1,P=_.length,$=y.length;++w<P;)y[$+w]=_[w];return y}function Ji(y,_,w,P){var $=-1,j=y==null?0:y.length;for(P&&j&&(w=y[++$]);++$<j;)w=_(w,y[$],$,y);return w}function im(y,_,w,P){var $=y==null?0:y.length;for(P&&$&&(w=y[--$]);$--;)w=_(w,y[$],$,y);return w}function Qi(y,_){for(var w=-1,P=y==null?0:y.length;++w<P;)if(_(y[w],w,y))return!0;return!1}var sm=ji("length");function am(y){return y.split("")}function cm(y){return y.match(Tg)||[]}function $c(y,_,w){var P;return w(y,function($,j,ve){if(_($,j,ve))return P=j,!1}),P}function no(y,_,w,P){for(var $=y.length,j=w+(P?1:-1);P?j--:++j<$;)if(_(y[j],j,y))return j;return-1}function Dn(y,_,w){return _===_?Sm(y,_,w):no(y,Hc,w)}function um(y,_,w,P){for(var $=w-1,j=y.length;++$<j;)if(P(y[$],_))return $;return-1}function Hc(y){return y!==y}function Vc(y,_){var w=y==null?0:y.length;return w?ts(y,_)/w:Kr}function ji(y){return function(_){return _==null?n:_[y]}}function es(y){return function(_){return y==null?n:y[_]}}function qc(y,_,w,P,$){return $(y,function(j,ve,oe){w=P?(P=!1,j):_(w,j,ve,oe)}),w}function lm(y,_){var w=y.length;for(y.sort(_);w--;)y[w]=y[w].value;return y}function ts(y,_){for(var w,P=-1,$=y.length;++P<$;){var j=_(y[P]);j!==n&&(w=w===n?j:w+j)}return w}function ns(y,_){for(var w=-1,P=Array(y);++w<y;)P[w]=_(w);return P}function pm(y,_){return le(_,function(w){return[w,y[w]]})}function zc(y){return y&&y.slice(0,Xc(y)+1).replace($i,"")}function He(y){return function(_){return y(_)}}function rs(y,_){return le(_,function(w){return y[w]})}function dr(y,_){return y.has(_)}function Kc(y,_){for(var w=-1,P=y.length;++w<P&&Dn(_,y[w],0)>-1;);return w}function Yc(y,_){for(var w=y.length;w--&&Dn(_,y[w],0)>-1;);return w}function fm(y,_){for(var w=y.length,P=0;w--;)y[w]===_&&++P;return P}var dm=es(Xg),gm=es(Jg);function mm(y){return"\\"+jg[y]}function Tm(y,_){return y==null?n:y[_]}function Nn(y){return zg.test(y)}function hm(y){return Kg.test(y)}function ym(y){for(var _,w=[];!(_=y.next()).done;)w.push(_.value);return w}function os(y){var _=-1,w=Array(y.size);return y.forEach(function(P,$){w[++_]=[$,P]}),w}function Zc(y,_){return function(w){return y(_(w))}}function Yt(y,_){for(var w=-1,P=y.length,$=0,j=[];++w<P;){var ve=y[w];(ve===_||ve===E)&&(y[w]=E,j[$++]=w)}return j}function ro(y){var _=-1,w=Array(y.size);return y.forEach(function(P){w[++_]=P}),w}function xm(y){var _=-1,w=Array(y.size);return y.forEach(function(P){w[++_]=[P,P]}),w}function Sm(y,_,w){for(var P=w-1,$=y.length;++P<$;)if(y[P]===_)return P;return-1}function vm(y,_,w){for(var P=w+1;P--;)if(y[P]===_)return P;return P}function On(y){return Nn(y)?_m(y):sm(y)}function lt(y){return Nn(y)?Am(y):am(y)}function Xc(y){for(var _=y.length;_--&&fg.test(y.charAt(_)););return _}var wm=es(Qg);function _m(y){for(var _=Ki.lastIndex=0;Ki.test(y);)++_;return _}function Am(y){return y.match(Ki)||[]}function Im(y){return y.match(qg)||[]}var bm=function y(_){_=_==null?_e:Zt.defaults(_e.Object(),_,Zt.pick(_e,Yg));var w=_.Array,P=_.Date,$=_.Error,j=_.Function,ve=_.Math,oe=_.Object,is=_.RegExp,Lm=_.String,et=_.TypeError,oo=w.prototype,Em=j.prototype,Mn=oe.prototype,io=_["__core-js_shared__"],so=Em.toString,re=Mn.hasOwnProperty,Cm=0,Jc=function(){var e=/[^.]+$/.exec(io&&io.keys&&io.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ao=Mn.toString,km=so.call(oe),Pm=_e._,Rm=is("^"+so.call(re).replace(Gi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),co=Nc?_.Buffer:n,Xt=_.Symbol,uo=_.Uint8Array,Qc=co?co.allocUnsafe:n,lo=Zc(oe.getPrototypeOf,oe),jc=oe.create,eu=Mn.propertyIsEnumerable,po=oo.splice,tu=Xt?Xt.isConcatSpreadable:n,gr=Xt?Xt.iterator:n,ln=Xt?Xt.toStringTag:n,fo=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Dm=_.clearTimeout!==_e.clearTimeout&&_.clearTimeout,Nm=P&&P.now!==_e.Date.now&&P.now,Om=_.setTimeout!==_e.setTimeout&&_.setTimeout,go=ve.ceil,mo=ve.floor,ss=oe.getOwnPropertySymbols,Mm=co?co.isBuffer:n,nu=_.isFinite,Fm=oo.join,Um=Zc(oe.keys,oe),we=ve.max,Ee=ve.min,Bm=P.now,Wm=_.parseInt,ru=ve.random,Gm=oo.reverse,as=mn(_,"DataView"),mr=mn(_,"Map"),cs=mn(_,"Promise"),Fn=mn(_,"Set"),Tr=mn(_,"WeakMap"),hr=mn(oe,"create"),To=Tr&&new Tr,Un={},$m=Tn(as),Hm=Tn(mr),Vm=Tn(cs),qm=Tn(Fn),zm=Tn(Tr),ho=Xt?Xt.prototype:n,yr=ho?ho.valueOf:n,ou=ho?ho.toString:n;function l(e){if(ge(e)&&!H(e)&&!(e instanceof X)){if(e instanceof tt)return e;if(re.call(e,"__wrapped__"))return il(e)}return new tt(e)}var Bn=function(){function e(){}return function(t){if(!fe(t))return{};if(jc)return jc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function yo(){}function tt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:sg,evaluate:ag,interpolate:dc,variable:"",imports:{_:l}},l.prototype=yo.prototype,l.prototype.constructor=l,tt.prototype=Bn(yo.prototype),tt.prototype.constructor=tt;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=mt,this.__views__=[]}function Km(){var e=new X(this.__wrapped__);return e.__actions__=Oe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oe(this.__views__),e}function Ym(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Zm(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=ah(0,c,this.__views__),T=p.start,h=p.end,x=h-T,I=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,N=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&N==x)return Eu(e,this.__actions__);var U=[];e:for(;x--&&C<N;){I+=t;for(var q=-1,B=e[I];++q<L;){var Z=b[q],J=Z.iteratee,ze=Z.type,De=J(B);if(ze==Hd)B=De;else if(!De){if(ze==cc)continue e;break e}}U[C++]=B}return U}X.prototype=Bn(yo.prototype),X.prototype.constructor=X;function pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function Xm(){this.__data__=hr?hr(null):{},this.size=0}function Jm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Qm(e){var t=this.__data__;if(hr){var r=t[e];return r===v?n:r}return re.call(t,e)?t[e]:n}function jm(e){var t=this.__data__;return hr?t[e]!==n:re.call(t,e)}function eT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===n?v:t,this}pn.prototype.clear=Xm,pn.prototype.delete=Jm,pn.prototype.get=Qm,pn.prototype.has=jm,pn.prototype.set=eT;function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function tT(){this.__data__=[],this.size=0}function nT(e){var t=this.__data__,r=xo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():po.call(t,r,1),--this.size,!0}function rT(e){var t=this.__data__,r=xo(t,e);return r<0?n:t[r][1]}function oT(e){return xo(this.__data__,e)>-1}function iT(e,t){var r=this.__data__,a=xo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Et.prototype.clear=tT,Et.prototype.delete=nT,Et.prototype.get=rT,Et.prototype.has=oT,Et.prototype.set=iT;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function sT(){this.size=0,this.__data__={hash:new pn,map:new(mr||Et),string:new pn}}function aT(e){var t=Po(this,e).delete(e);return this.size-=t?1:0,t}function cT(e){return Po(this,e).get(e)}function uT(e){return Po(this,e).has(e)}function lT(e,t){var r=Po(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Ct.prototype.clear=sT,Ct.prototype.delete=aT,Ct.prototype.get=cT,Ct.prototype.has=uT,Ct.prototype.set=lT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}function pT(e){return this.__data__.set(e,v),this}function fT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=pT,fn.prototype.has=fT;function pt(e){var t=this.__data__=new Et(e);this.size=t.size}function dT(){this.__data__=new Et,this.size=0}function gT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function mT(e){return this.__data__.get(e)}function TT(e){return this.__data__.has(e)}function hT(e,t){var r=this.__data__;if(r instanceof Et){var a=r.__data__;if(!mr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ct(a)}return r.set(e,t),this.size=r.size,this}pt.prototype.clear=dT,pt.prototype.delete=gT,pt.prototype.get=mT,pt.prototype.has=TT,pt.prototype.set=hT;function iu(e,t){var r=H(e),a=!r&&hn(e),c=!r&&!a&&tn(e),p=!r&&!a&&!c&&Hn(e),T=r||a||c||p,h=T?ns(e.length,Lm):[],x=h.length;for(var I in e)(t||re.call(e,I))&&!(T&&(I=="length"||c&&(I=="offset"||I=="parent")||p&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||Dt(I,x)))&&h.push(I);return h}function su(e){var t=e.length;return t?e[xs(0,t-1)]:n}function yT(e,t){return Ro(Oe(e),dn(t,0,e.length))}function xT(e){return Ro(Oe(e))}function us(e,t,r){(r!==n&&!ft(e[t],r)||r===n&&!(t in e))&&kt(e,t,r)}function xr(e,t,r){var a=e[t];(!(re.call(e,t)&&ft(a,r))||r===n&&!(t in e))&&kt(e,t,r)}function xo(e,t){for(var r=e.length;r--;)if(ft(e[r][0],t))return r;return-1}function ST(e,t,r,a){return Jt(e,function(c,p,T){t(a,c,r(c),T)}),a}function au(e,t){return e&&ht(t,Ae(t),e)}function vT(e,t){return e&&ht(t,Fe(t),e)}function kt(e,t,r){t=="__proto__"&&fo?fo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ls(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:Vs(e,t[r]);return c}function dn(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function nt(e,t,r,a,c,p){var T,h=t&R,x=t&G,I=t&M;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!fe(e))return e;var b=H(e);if(b){if(T=uh(e),!h)return Oe(e,T)}else{var L=Ce(e),C=L==Xr||L==uc;if(tn(e))return Pu(e,h);if(L==Lt||L==kn||C&&!c){if(T=x||C?{}:Xu(e),!h)return x?QT(e,vT(T,e)):JT(e,au(T,e))}else{if(!se[L])return c?e:{};T=lh(e,L,h)}}p||(p=new pt);var N=p.get(e);if(N)return N;p.set(e,T),Il(e)?e.forEach(function(B){T.add(nt(B,t,r,B,e,p))}):_l(e)&&e.forEach(function(B,Z){T.set(Z,nt(B,t,r,Z,e,p))});var U=I?x?ks:Cs:x?Fe:Ae,q=b?n:U(e);return je(q||e,function(B,Z){q&&(Z=B,B=e[Z]),xr(T,Z,nt(B,t,r,Z,e,p))}),T}function wT(e){var t=Ae(e);return function(r){return cu(r,e,t)}}function cu(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],p=t[c],T=e[c];if(T===n&&!(c in e)||!p(T))return!1}return!0}function uu(e,t,r){if(typeof e!="function")throw new et(m);return br(function(){e.apply(n,r)},t)}function Sr(e,t,r,a){var c=-1,p=to,T=!0,h=e.length,x=[],I=t.length;if(!h)return x;r&&(t=le(t,He(r))),a?(p=Xi,T=!1):t.length>=i&&(p=dr,T=!1,t=new fn(t));e:for(;++c<h;){var b=e[c],L=r==null?b:r(b);if(b=a||b!==0?b:0,T&&L===L){for(var C=I;C--;)if(t[C]===L)continue e;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Jt=Mu(Tt),lu=Mu(fs,!0);function _T(e,t){var r=!0;return Jt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function So(e,t,r){for(var a=-1,c=e.length;++a<c;){var p=e[a],T=t(p);if(T!=null&&(h===n?T===T&&!qe(T):r(T,h)))var h=T,x=p}return x}function AT(e,t,r,a){var c=e.length;for(r=V(r),r<0&&(r=-r>c?0:c+r),a=a===n||a>c?c:V(a),a<0&&(a+=c),a=r>a?0:Ll(a);r<a;)e[r++]=t;return e}function pu(e,t){var r=[];return Jt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function be(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=fh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Kt(c,h):a||(c[c.length]=h)}return c}var ps=Fu(),fu=Fu(!0);function Tt(e,t){return e&&ps(e,t,Ae)}function fs(e,t){return e&&fu(e,t,Ae)}function vo(e,t){return zt(t,function(r){return Nt(e[r])})}function gn(e,t){t=jt(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[yt(t[r++])];return r&&r==a?e:n}function du(e,t,r){var a=t(e);return H(e)?a:Kt(a,r(e))}function Pe(e){return e==null?e===n?jd:Jd:ln&&ln in oe(e)?sh(e):xh(e)}function ds(e,t){return e>t}function IT(e,t){return e!=null&&re.call(e,t)}function bT(e,t){return e!=null&&t in oe(e)}function LT(e,t,r){return e>=Ee(t,r)&&e<we(t,r)}function gs(e,t,r){for(var a=r?Xi:to,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,I=[];T--;){var b=e[T];T&&t&&(b=le(b,He(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new fn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&I.length<x;){var N=b[L],U=t?t(N):N;if(N=r||N!==0?N:0,!(C?dr(C,U):a(I,U,r))){for(T=p;--T;){var q=h[T];if(!(q?dr(q,U):a(e[T],U,r)))continue e}C&&C.push(U),I.push(N)}}return I}function ET(e,t,r,a){return Tt(e,function(c,p,T){t(a,r(c),p,T)}),a}function vr(e,t,r){t=jt(t,e),e=el(e,t);var a=e==null?e:e[yt(ot(t))];return a==null?n:$e(a,e,r)}function gu(e){return ge(e)&&Pe(e)==kn}function CT(e){return ge(e)&&Pe(e)==fr}function kT(e){return ge(e)&&Pe(e)==ar}function wr(e,t,r,a,c){return e===t?!0:e==null||t==null||!ge(e)&&!ge(t)?e!==e&&t!==t:PT(e,t,r,a,wr,c)}function PT(e,t,r,a,c,p){var T=H(e),h=H(t),x=T?Yr:Ce(e),I=h?Yr:Ce(t);x=x==kn?Lt:x,I=I==kn?Lt:I;var b=x==Lt,L=I==Lt,C=x==I;if(C&&tn(e)){if(!tn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new pt),T||Hn(e)?Ku(e,t,r,a,c,p):oh(e,t,x,r,a,c,p);if(!(r&ue)){var N=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(N||U){var q=N?e.value():e,B=U?t.value():t;return p||(p=new pt),c(q,B,r,a,p)}}return C?(p||(p=new pt),ih(e,t,r,a,c,p)):!1}function RT(e){return ge(e)&&Ce(e)==ct}function ms(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],I=e[x],b=h[1];if(T&&h[2]){if(I===n&&!(x in e))return!1}else{var L=new pt;if(a)var C=a(I,b,x,e,t,L);if(!(C===n?wr(b,I,ue|de,a,L):C))return!1}}return!0}function mu(e){if(!fe(e)||gh(e))return!1;var t=Nt(e)?Rm:wg;return t.test(Tn(e))}function DT(e){return ge(e)&&Pe(e)==ur}function NT(e){return ge(e)&&Ce(e)==ut}function OT(e){return ge(e)&&Uo(e.length)&&!!ce[Pe(e)]}function Tu(e){return typeof e=="function"?e:e==null?Ue:typeof e=="object"?H(e)?xu(e[0],e[1]):yu(e):Ul(e)}function Ts(e){if(!Ir(e))return Um(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function MT(e){if(!fe(e))return yh(e);var t=Ir(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function hs(e,t){return e<t}function hu(e,t){var r=-1,a=Me(e)?w(e.length):[];return Jt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function yu(e){var t=Rs(e);return t.length==1&&t[0][2]?Qu(t[0][0],t[0][1]):function(r){return r===e||ms(r,e,t)}}function xu(e,t){return Ns(e)&&Ju(t)?Qu(yt(e),t):function(r){var a=Vs(r,e);return a===n&&a===t?qs(r,e):wr(t,a,ue|de)}}function wo(e,t,r,a,c){e!==t&&ps(t,function(p,T){if(c||(c=new pt),fe(p))FT(e,t,T,r,wo,a,c);else{var h=a?a(Ms(e,T),p,T+"",e,t,c):n;h===n&&(h=p),us(e,T,h)}},Fe)}function FT(e,t,r,a,c,p,T){var h=Ms(e,r),x=Ms(t,r),I=T.get(x);if(I){us(e,r,I);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=H(x),N=!C&&tn(x),U=!C&&!N&&Hn(x);b=x,C||N||U?H(h)?b=h:Te(h)?b=Oe(h):N?(L=!1,b=Pu(x,!0)):U?(L=!1,b=Ru(x,!0)):b=[]:Lr(x)||hn(x)?(b=h,hn(h)?b=El(h):(!fe(h)||Nt(h))&&(b=Xu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),us(e,r,b)}function Su(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Dt(t,r)?e[t]:n}function vu(e,t,r){t.length?t=le(t,function(p){return H(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Ue];var a=-1;t=le(t,He(F()));var c=hu(e,function(p,T,h){var x=le(t,function(I){return I(p)});return{criteria:x,index:++a,value:p}});return lm(c,function(p,T){return XT(p,T,r)})}function UT(e,t){return wu(e,t,function(r,a){return qs(e,a)})}function wu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=gn(e,T);r(h,T)&&_r(p,jt(T,e),h)}return p}function BT(e){return function(t){return gn(t,e)}}function ys(e,t,r,a){var c=a?um:Dn,p=-1,T=t.length,h=e;for(e===t&&(t=Oe(t)),r&&(h=le(e,He(r)));++p<T;)for(var x=0,I=t[p],b=r?r(I):I;(x=c(h,b,x,a))>-1;)h!==e&&po.call(h,x,1),po.call(e,x,1);return e}function _u(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Dt(c)?po.call(e,c,1):ws(e,c)}}return e}function xs(e,t){return e+mo(ru()*(t-e+1))}function WT(e,t,r,a){for(var c=-1,p=we(go((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function Ss(e,t){var r="";if(!e||t<1||t>qt)return r;do t%2&&(r+=e),t=mo(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Fs(ju(e,t,Ue),e+"")}function GT(e){return su(Vn(e))}function $T(e,t){var r=Vn(e);return Ro(r,dn(t,0,r.length))}function _r(e,t,r,a){if(!fe(e))return e;t=jt(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=yt(t[c]),I=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];I=a?a(b,x,h):n,I===n&&(I=fe(b)?b:Dt(t[c+1])?[]:{})}xr(h,x,I),h=h[x]}return e}var Au=To?function(e,t){return To.set(e,t),e}:Ue,HT=fo?function(e,t){return fo(e,"toString",{configurable:!0,enumerable:!1,value:Ks(t),writable:!0})}:Ue;function VT(e){return Ro(Vn(e))}function rt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var p=w(c);++a<c;)p[a]=e[a+t];return p}function qT(e,t){var r;return Jt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function _o(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=Kd){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!qe(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return vs(e,t,Ue,r)}function vs(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=qe(t),I=t===n;c<p;){var b=mo((c+p)/2),L=r(e[b]),C=L!==n,N=L===null,U=L===L,q=qe(L);if(T)var B=a||U;else I?B=U&&(a||C):h?B=U&&C&&(a||!N):x?B=U&&C&&!N&&(a||!q):N||q?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,zd)}function Iu(e,t){for(var r=-1,a=e.length,c=0,p=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!ft(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function bu(e){return typeof e=="number"?e:qe(e)?Kr:+e}function Ve(e){if(typeof e=="string")return e;if(H(e))return le(e,Ve)+"";if(qe(e))return ou?ou.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Qt(e,t,r){var a=-1,c=to,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=Xi;else if(p>=i){var I=t?null:nh(e);if(I)return ro(I);T=!1,c=dr,x=new fn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function ws(e,t){return t=jt(t,e),e=el(e,t),e==null||delete e[yt(ot(t))]}function Lu(e,t,r,a){return _r(e,t,r(gn(e,t)),a)}function Ao(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?rt(e,a?0:p,a?p+1:c):rt(e,a?p+1:0,a?c:p)}function Eu(e,t){var r=e;return r instanceof X&&(r=r.value()),Ji(t,function(a,c){return c.func.apply(c.thisArg,Kt([a],c.args))},r)}function _s(e,t,r){var a=e.length;if(a<2)return a?Qt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=Sr(p[c]||T,e[h],t,r));return Qt(be(p,1),t,r)}function Cu(e,t,r){for(var a=-1,c=e.length,p=t.length,T={};++a<c;){var h=a<p?t[a]:n;r(T,e[a],h)}return T}function As(e){return Te(e)?e:[]}function Is(e){return typeof e=="function"?e:Ue}function jt(e,t){return H(e)?e:Ns(e,t)?[e]:ol(te(e))}var zT=Y;function en(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:rt(e,t,r)}var ku=Dm||function(e){return _e.clearTimeout(e)};function Pu(e,t){if(t)return e.slice();var r=e.length,a=Qc?Qc(r):new e.constructor(r);return e.copy(a),a}function bs(e){var t=new e.constructor(e.byteLength);return new uo(t).set(new uo(e)),t}function KT(e,t){var r=t?bs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function YT(e){var t=new e.constructor(e.source,gc.exec(e));return t.lastIndex=e.lastIndex,t}function ZT(e){return yr?oe(yr.call(e)):{}}function Ru(e,t){var r=t?bs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Du(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=qe(e),T=t!==n,h=t===null,x=t===t,I=qe(t);if(!h&&!I&&!p&&e>t||p&&T&&x&&!h&&!I||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!I&&e<t||I&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)return-1}return 0}function XT(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var x=Du(c[a],p[a]);if(x){if(a>=h)return x;var I=r[a];return x*(I=="desc"?-1:1)}}return e.index-t.index}function Nu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,I=we(p-T,0),b=w(x+I),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;I--;)b[h++]=e[c++];return b}function Ou(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,I=t.length,b=we(p-h,0),L=w(b+I),C=!a;++c<b;)L[c]=e[c];for(var N=c;++x<I;)L[N+x]=t[x];for(;++T<h;)(C||c<p)&&(L[N+r[T]]=e[c++]);return L}function Oe(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function ht(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?kt(r,h,x):xr(r,h,x)}return r}function JT(e,t){return ht(e,Ds(e),t)}function QT(e,t){return ht(e,Yu(e),t)}function Io(e,t){return function(r,a){var c=H(r)?rm:ST,p=t?t():{};return c(r,e,F(a,2),p)}}function Wn(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Mu(e,t){return function(r,a){if(r==null)return r;if(!Me(r))return e(r,a);for(var c=r.length,p=t?c:-1,T=oe(r);(t?p--:++p<c)&&a(T[p],p,T)!==!1;);return r}}function Fu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function jT(e,t,r){var a=t&pe,c=Ar(e);function p(){var T=this&&this!==_e&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Uu(e){return function(t){t=te(t);var r=Nn(t)?lt(t):n,a=r?r[0]:t.charAt(0),c=r?en(r,1).join(""):t.slice(1);return a[e]()+c}}function Gn(e){return function(t){return Ji(Ml(Ol(t).replace(Hg,"")),e,"")}}function Ar(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Bn(e.prototype),a=e.apply(r,t);return fe(a)?a:r}}function eh(e,t,r){var a=Ar(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=$n(c);h--;)T[h]=arguments[h];var I=p<3&&T[0]!==x&&T[p-1]!==x?[]:Yt(T,x);if(p-=I.length,p<r)return Hu(e,t,bo,c.placeholder,n,T,I,n,n,r-p);var b=this&&this!==_e&&this instanceof c?a:e;return $e(b,this,T)}return c}function Bu(e){return function(t,r,a){var c=oe(t);if(!Me(t)){var p=F(r,3);t=Ae(t),r=function(h){return p(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[p?t[T]:T]:n}}function Wu(e){return Rt(function(t){var r=t.length,a=r,c=tt.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new et(m);if(c&&!T&&ko(p)=="wrapper")var T=new tt([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=ko(p),x=h=="wrapper"?Ps(p):n;x&&Os(x[0])&&x[1]==(bt|Je|Ne|ir)&&!x[4].length&&x[9]==1?T=T[ko(x[0])].apply(T,x[3]):T=p.length==1&&Os(p)?T[h]():T.thru(p)}return function(){var I=arguments,b=I[0];if(T&&I.length==1&&H(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,I):b;++L<r;)C=t[L].call(this,C);return C}})}function bo(e,t,r,a,c,p,T,h,x,I){var b=t&bt,L=t&pe,C=t&Se,N=t&(Je|It),U=t&Pi,q=C?n:Ar(e);function B(){for(var Z=arguments.length,J=w(Z),ze=Z;ze--;)J[ze]=arguments[ze];if(N)var De=$n(B),Ke=fm(J,De);if(a&&(J=Nu(J,a,c,N)),p&&(J=Ou(J,p,T,N)),Z-=Ke,N&&Z<I){var he=Yt(J,De);return Hu(e,t,bo,B.placeholder,r,J,he,h,x,I-Z)}var dt=L?r:this,Mt=C?dt[e]:e;return Z=J.length,h?J=Sh(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==_e&&this instanceof B&&(Mt=q||Ar(Mt)),Mt.apply(dt,J)}return B}function Gu(e,t){return function(r,a){return ET(r,e,t(a),{})}}function Lo(e,t){return function(r,a){var c;if(r===n&&a===n)return t;if(r!==n&&(c=r),a!==n){if(c===n)return a;typeof r=="string"||typeof a=="string"?(r=Ve(r),a=Ve(a)):(r=bu(r),a=bu(a)),c=e(r,a)}return c}}function Ls(e){return Rt(function(t){return t=le(t,He(F())),Y(function(r){var a=this;return e(t,function(c){return $e(c,a,r)})})})}function Eo(e,t){t=t===n?" ":Ve(t);var r=t.length;if(r<2)return r?Ss(t,e):t;var a=Ss(t,go(e/On(t)));return Nn(t)?en(lt(a),0,e).join(""):a.slice(0,e)}function th(e,t,r,a){var c=t&pe,p=Ar(e);function T(){for(var h=-1,x=arguments.length,I=-1,b=a.length,L=w(b+x),C=this&&this!==_e&&this instanceof T?p:e;++I<b;)L[I]=a[I];for(;x--;)L[I++]=arguments[++h];return $e(C,c?r:this,L)}return T}function $u(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Ot(t),r===n?(r=t,t=0):r=Ot(r),a=a===n?t<r?1:-1:Ot(a),WT(t,r,a,e)}}function Co(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=it(t),r=it(r)),e(t,r)}}function Hu(e,t,r,a,c,p,T,h,x,I){var b=t&Je,L=b?T:n,C=b?n:T,N=b?p:n,U=b?n:p;t|=b?Ne:Vt,t&=~(b?Vt:Ne),t&zr||(t&=~(pe|Se));var q=[e,t,c,N,L,U,C,h,x,I],B=r.apply(n,q);return Os(e)&&tl(B,q),B.placeholder=a,nl(B,e,t)}function Es(e){var t=ve[e];return function(r,a){if(r=it(r),a=a==null?0:Ee(V(a),292),a&&nu(r)){var c=(te(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(te(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var nh=Fn&&1/ro(new Fn([,-0]))[1]==cn?function(e){return new Fn(e)}:Xs;function Vu(e){return function(t){var r=Ce(t);return r==ct?os(t):r==ut?xm(t):pm(t,e(t))}}function Pt(e,t,r,a,c,p,T,h){var x=t&Se;if(!x&&typeof e!="function")throw new et(m);var I=a?a.length:0;if(I||(t&=~(Ne|Vt),a=c=n),T=T===n?T:we(V(T),0),h=h===n?h:V(h),I-=c?c.length:0,t&Vt){var b=a,L=c;a=c=n}var C=x?n:Ps(e),N=[e,t,r,a,c,b,L,p,T,h];if(C&&hh(N,C),e=N[0],t=N[1],r=N[2],a=N[3],c=N[4],h=N[9]=N[9]===n?x?0:e.length:we(N[9]-I,0),!h&&t&(Je|It)&&(t&=~(Je|It)),!t||t==pe)var U=jT(e,t,r);else t==Je||t==It?U=eh(e,t,h):(t==Ne||t==(pe|Ne))&&!c.length?U=th(e,t,r,a):U=bo.apply(n,N);var q=C?Au:tl;return nl(q(U,N),e,t)}function qu(e,t,r,a){return e===n||ft(e,Mn[r])&&!re.call(a,r)?t:e}function zu(e,t,r,a,c,p){return fe(e)&&fe(t)&&(p.set(t,e),wo(e,t,n,zu,p),p.delete(t)),e}function rh(e){return Lr(e)?n:e}function Ku(e,t,r,a,c,p){var T=r&ue,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var I=p.get(e),b=p.get(t);if(I&&b)return I==t&&b==e;var L=-1,C=!0,N=r&de?new fn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],q=t[L];if(a)var B=T?a(q,U,L,t,e,p):a(U,q,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(N){if(!Qi(t,function(Z,J){if(!dr(N,J)&&(U===Z||c(U,Z,r,a,p)))return N.push(J)})){C=!1;break}}else if(!(U===q||c(U,q,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function oh(e,t,r,a,c,p,T){switch(r){case Pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fr:return!(e.byteLength!=t.byteLength||!p(new uo(e),new uo(t)));case sr:case ar:case cr:return ft(+e,+t);case Zr:return e.name==t.name&&e.message==t.message;case ur:case lr:return e==t+"";case ct:var h=os;case ut:var x=a&ue;if(h||(h=ro),e.size!=t.size&&!x)return!1;var I=T.get(e);if(I)return I==t;a|=de,T.set(e,t);var b=Ku(h(e),h(t),a,c,p,T);return T.delete(e),b;case Jr:if(yr)return yr.call(e)==yr.call(t)}return!1}function ih(e,t,r,a,c,p){var T=r&ue,h=Cs(e),x=h.length,I=Cs(t),b=I.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var N=p.get(e),U=p.get(t);if(N&&U)return N==t&&U==e;var q=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var ze=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(ze===n?Z===J||c(Z,J,r,a,p):ze)){q=!1;break}B||(B=C=="constructor")}if(q&&!B){var De=e.constructor,Ke=t.constructor;De!=Ke&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof Ke=="function"&&Ke instanceof Ke)&&(q=!1)}return p.delete(e),p.delete(t),q}function Rt(e){return Fs(ju(e,n,cl),e+"")}function Cs(e){return du(e,Ae,Ds)}function ks(e){return du(e,Fe,Yu)}var Ps=To?function(e){return To.get(e)}:Xs;function ko(e){for(var t=e.name+"",r=Un[t],a=re.call(Un,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function $n(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||Ys;return e=e===Ys?Tu:e,arguments.length?e(arguments[0],arguments[1]):e}function Po(e,t){var r=e.__data__;return dh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Rs(e){for(var t=Ae(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Ju(c)]}return t}function mn(e,t){var r=Tm(e,t);return mu(r)?r:n}function sh(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=ao.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Ds=ss?function(e){return e==null?[]:(e=oe(e),zt(ss(e),function(t){return eu.call(e,t)}))}:Js,Yu=ss?function(e){for(var t=[];e;)Kt(t,Ds(e)),e=lo(e);return t}:Js,Ce=Pe;(as&&Ce(new as(new ArrayBuffer(1)))!=Pn||mr&&Ce(new mr)!=ct||cs&&Ce(cs.resolve())!=lc||Fn&&Ce(new Fn)!=ut||Tr&&Ce(new Tr)!=pr)&&(Ce=function(e){var t=Pe(e),r=t==Lt?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case $m:return Pn;case Hm:return ct;case Vm:return lc;case qm:return ut;case zm:return pr}return t});function ah(e,t,r){for(var a=-1,c=r.length;++a<c;){var p=r[a],T=p.size;switch(p.type){case"drop":e+=T;break;case"dropRight":t-=T;break;case"take":t=Ee(t,e+T);break;case"takeRight":e=we(e,t-T);break}}return{start:e,end:t}}function ch(e){var t=e.match(gg);return t?t[1].split(mg):[]}function Zu(e,t,r){t=jt(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=yt(t[a]);if(!(p=e!=null&&r(e,T)))break;e=e[T]}return p||++a!=c?p:(c=e==null?0:e.length,!!c&&Uo(c)&&Dt(T,c)&&(H(e)||hn(e)))}function uh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Xu(e){return typeof e.constructor=="function"&&!Ir(e)?Bn(lo(e)):{}}function lh(e,t,r){var a=e.constructor;switch(t){case fr:return bs(e);case sr:case ar:return new a(+e);case Pn:return KT(e,r);case Ri:case Di:case Ni:case Oi:case Mi:case Fi:case Ui:case Bi:case Wi:return Ru(e,r);case ct:return new a;case cr:case lr:return new a(e);case ur:return YT(e);case ut:return new a;case Jr:return ZT(e)}}function ph(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(dg,`{
1
+ "use strict";var Mv=Object.create;var Er=Object.defineProperty,Fv=Object.defineProperties,Uv=Object.getOwnPropertyDescriptor,Bv=Object.getOwnPropertyDescriptors,Wv=Object.getOwnPropertyNames,Go=Object.getOwnPropertySymbols,Gv=Object.getPrototypeOf,js=Object.prototype.hasOwnProperty,Gl=Object.prototype.propertyIsEnumerable;var Wl=(n,o,i)=>o in n?Er(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))js.call(o,i)&&Wl(n,i,o[i]);if(Go)for(var i of Go(o))Gl.call(o,i)&&Wl(n,i,o[i]);return n},Q=(n,o)=>Fv(n,Bv(o));var $o=(n,o)=>{var i={};for(var u in n)js.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Go)for(var u of Go(n))o.indexOf(u)<0&&Gl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Cr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Er(n,i,{get:o[i],enumerable:!0})},$l=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of Wv(o))!js.call(n,m)&&m!==i&&Er(n,m,{get:()=>o[m],enumerable:!(u=Uv(o,m))||u.enumerable});return n};var z=(n,o,i)=>(i=n!=null?Mv(Gv(n)):{},$l(o||!n||!n.__esModule?Er(i,"default",{value:n,enumerable:!0}):i,n)),kr=n=>$l(Er({},"__esModule",{value:!0}),n);var K=(n,o,i)=>new Promise((u,m)=>{var S=E=>{try{k(i.next(E))}catch(R){m(R)}},v=E=>{try{k(i.throw(E))}catch(R){m(R)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(S,v);k((i=i.apply(n,o)).next())});var ql=Cr(Ho=>{"use strict";s();Ho.byteLength=Hv;Ho.toByteArray=qv;Ho.fromByteArray=Yv;var xt=[],st=[],$v=typeof Uint8Array!="undefined"?Uint8Array:Array,ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,Hl=ea.length;xn<Hl;++xn)xt[xn]=ea[xn],st[ea.charCodeAt(xn)]=xn;var xn,Hl;st["-".charCodeAt(0)]=62;st["_".charCodeAt(0)]=63;function Vl(n){var o=n.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function Hv(n){var o=Vl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function Vv(n,o,i){return(o+i)*3/4-i}function qv(n){var o,i=Vl(n),u=i[0],m=i[1],S=new $v(Vv(n,u,m)),v=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=st[n.charCodeAt(E)]<<18|st[n.charCodeAt(E+1)]<<12|st[n.charCodeAt(E+2)]<<6|st[n.charCodeAt(E+3)],S[v++]=o>>16&255,S[v++]=o>>8&255,S[v++]=o&255;return m===2&&(o=st[n.charCodeAt(E)]<<2|st[n.charCodeAt(E+1)]>>4,S[v++]=o&255),m===1&&(o=st[n.charCodeAt(E)]<<10|st[n.charCodeAt(E+1)]<<4|st[n.charCodeAt(E+2)]>>2,S[v++]=o>>8&255,S[v++]=o&255),S}function zv(n){return xt[n>>18&63]+xt[n>>12&63]+xt[n>>6&63]+xt[n&63]}function Kv(n,o,i){for(var u,m=[],S=o;S<i;S+=3)u=(n[S]<<16&16711680)+(n[S+1]<<8&65280)+(n[S+2]&255),m.push(zv(u));return m.join("")}function Yv(n){for(var o,i=n.length,u=i%3,m=[],S=16383,v=0,k=i-u;v<k;v+=S)m.push(Kv(n,v,v+S>k?k:v+S));return u===1?(o=n[i-1],m.push(xt[o>>2]+xt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(xt[o>>10]+xt[o>>4&63]+xt[o<<2&63]+"=")),m.join("")}});var zl=Cr(ta=>{s();ta.read=function(n,o,i,u,m){var S,v,k=m*8-u-1,E=(1<<k)-1,R=E>>1,G=-7,M=i?m-1:0,ue=i?-1:1,de=n[o+M];for(M+=ue,S=de&(1<<-G)-1,de>>=-G,G+=k;G>0;S=S*256+n[o+M],M+=ue,G-=8);for(v=S&(1<<-G)-1,S>>=-G,G+=u;G>0;v=v*256+n[o+M],M+=ue,G-=8);if(S===0)S=1-R;else{if(S===E)return v?NaN:(de?-1:1)*(1/0);v=v+Math.pow(2,u),S=S-R}return(de?-1:1)*v*Math.pow(2,S-u)};ta.write=function(n,o,i,u,m,S){var v,k,E,R=S*8-m-1,G=(1<<R)-1,M=G>>1,ue=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,de=u?0:S-1,pe=u?1:-1,Se=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,v=G):(v=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-v))<1&&(v--,E*=2),v+M>=1?o+=ue/E:o+=ue*Math.pow(2,1-M),o*E>=2&&(v++,E/=2),v+M>=G?(k=0,v=G):v+M>=1?(k=(o*E-1)*Math.pow(2,m),v=v+M):(k=o*Math.pow(2,M-1)*Math.pow(2,m),v=0));m>=8;n[i+de]=k&255,de+=pe,k/=256,m-=8);for(v=v<<m|k,R+=m;R>0;n[i+de]=v&255,de+=pe,v/=256,R-=8);n[i+de-pe]|=Se*128}});var ip=Cr(zn=>{"use strict";s();var na=ql(),qn=zl(),Kl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zn.Buffer=A;zn.SlowBuffer=e0;zn.INSPECT_MAX_BYTES=50;var Vo=2147483647;zn.kMaxLength=Vo;A.TYPED_ARRAY_SUPPORT=Zv();!A.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Zv(){try{var n=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(n,o),n.foo()===42}catch(i){return!1}}Object.defineProperty(A.prototype,"parent",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.buffer}});Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.byteOffset}});function Ft(n){if(n>Vo)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,A.prototype),o}function A(n,o,i){if(typeof n=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return sa(n)}return Xl(n,o,i)}A.poolSize=8192;function Xl(n,o,i){if(typeof n=="string")return Jv(n,o);if(ArrayBuffer.isView(n))return Qv(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(St(n,ArrayBuffer)||n&&St(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(St(n,SharedArrayBuffer)||n&&St(n.buffer,SharedArrayBuffer)))return oa(n,o,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=n.valueOf&&n.valueOf();if(u!=null&&u!==n)return A.from(u,o,i);var m=jv(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return A.from(n[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}A.from=function(n,o,i){return Xl(n,o,i)};Object.setPrototypeOf(A.prototype,Uint8Array.prototype);Object.setPrototypeOf(A,Uint8Array);function Jl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Xv(n,o,i){return Jl(n),n<=0?Ft(n):o!==void 0?typeof i=="string"?Ft(n).fill(o,i):Ft(n).fill(o):Ft(n)}A.alloc=function(n,o,i){return Xv(n,o,i)};function sa(n){return Jl(n),Ft(n<0?0:aa(n)|0)}A.allocUnsafe=function(n){return sa(n)};A.allocUnsafeSlow=function(n){return sa(n)};function Jv(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!A.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Ql(n,o)|0,u=Ft(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ra(n){for(var o=n.length<0?0:aa(n.length)|0,i=Ft(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function Qv(n){if(St(n,Uint8Array)){var o=new Uint8Array(n);return oa(o.buffer,o.byteOffset,o.byteLength)}return ra(n)}function oa(n,o,i){if(o<0||n.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');var u;return o===void 0&&i===void 0?u=new Uint8Array(n):i===void 0?u=new Uint8Array(n,o):u=new Uint8Array(n,o,i),Object.setPrototypeOf(u,A.prototype),u}function jv(n){if(A.isBuffer(n)){var o=aa(n.length)|0,i=Ft(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||ca(n.length)?Ft(0):ra(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ra(n.data)}function aa(n){if(n>=Vo)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Vo.toString(16)+" bytes");return n|0}function e0(n){return+n!=n&&(n=0),A.alloc(+n)}A.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==A.prototype};A.compare=function(o,i){if(St(o,Uint8Array)&&(o=A.from(o,o.offset,o.byteLength)),St(i,Uint8Array)&&(i=A.from(i,i.offset,i.byteLength)),!A.isBuffer(o)||!A.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;for(var u=o.length,m=i.length,S=0,v=Math.min(u,m);S<v;++S)if(o[S]!==i[S]){u=o[S],m=i[S];break}return u<m?-1:m<u?1:0};A.isEncoding=function(o){switch(String(o).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(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return A.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=A.allocUnsafe(i),S=0;for(u=0;u<o.length;++u){var v=o[u];if(St(v,Uint8Array))S+v.length>m.length?A.from(v).copy(m,S):Uint8Array.prototype.set.call(m,v,S);else if(A.isBuffer(v))v.copy(m,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=v.length}return m};function Ql(n,o){if(A.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||St(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&i===0)return 0;for(var m=!1;;)switch(o){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return ia(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return op(n).length;default:if(m)return u?-1:ia(n).length;o=(""+o).toLowerCase(),m=!0}}A.byteLength=Ql;function t0(n,o,i){var u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(n||(n="utf8");;)switch(n){case"hex":return p0(this,o,i);case"utf8":case"utf-8":return ep(this,o,i);case"ascii":return u0(this,o,i);case"latin1":case"binary":return l0(this,o,i);case"base64":return a0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}A.prototype._isBuffer=!0;function Sn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}A.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<o;i+=2)Sn(this,i,i+1);return this};A.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<o;i+=4)Sn(this,i,i+3),Sn(this,i+1,i+2);return this};A.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<o;i+=8)Sn(this,i,i+7),Sn(this,i+1,i+6),Sn(this,i+2,i+5),Sn(this,i+3,i+4);return this};A.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?ep(this,0,o):t0.apply(this,arguments)};A.prototype.toLocaleString=A.prototype.toString;A.prototype.equals=function(o){if(!A.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:A.compare(this,o)===0};A.prototype.inspect=function(){var o="",i=zn.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};Kl&&(A.prototype[Kl]=A.prototype.inspect);A.prototype.compare=function(o,i,u,m,S){if(St(o,Uint8Array)&&(o=A.from(o,o.offset,o.byteLength)),!A.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(i===void 0&&(i=0),u===void 0&&(u=o?o.length:0),m===void 0&&(m=0),S===void 0&&(S=this.length),i<0||u>o.length||m<0||S>this.length)throw new RangeError("out of range index");if(m>=S&&i>=u)return 0;if(m>=S)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,S>>>=0,this===o)return 0;for(var v=S-m,k=u-i,E=Math.min(v,k),R=this.slice(m,S),G=o.slice(i,u),M=0;M<E;++M)if(R[M]!==G[M]){v=R[M],k=G[M];break}return v<k?-1:k<v?1:0};function jl(n,o,i,u,m){if(n.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,ca(i)&&(i=m?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(m)return-1;i=n.length-1}else if(i<0)if(m)i=0;else return-1;if(typeof o=="string"&&(o=A.from(o,u)),A.isBuffer(o))return o.length===0?-1:Yl(n,o,i,u,m);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?m?Uint8Array.prototype.indexOf.call(n,o,i):Uint8Array.prototype.lastIndexOf.call(n,o,i):Yl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Yl(n,o,i,u,m){var S=1,v=n.length,k=o.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(n.length<2||o.length<2)return-1;S=2,v/=2,k/=2,i/=2}function E(de,pe){return S===1?de[pe]:de.readUInt16BE(pe*S)}var R;if(m){var G=-1;for(R=i;R<v;R++)if(E(n,R)===E(o,G===-1?0:R-G)){if(G===-1&&(G=R),R-G+1===k)return G*S}else G!==-1&&(R-=R-G),G=-1}else for(i+k>v&&(i=v-k),R=i;R>=0;R--){for(var M=!0,ue=0;ue<k;ue++)if(E(n,R+ue)!==E(o,ue)){M=!1;break}if(M)return R}return-1}A.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};A.prototype.indexOf=function(o,i,u){return jl(this,o,i,u,!0)};A.prototype.lastIndexOf=function(o,i,u){return jl(this,o,i,u,!1)};function n0(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var S=o.length;u>S/2&&(u=S/2);for(var v=0;v<u;++v){var k=parseInt(o.substr(v*2,2),16);if(ca(k))return v;n[i+v]=k}return v}function r0(n,o,i,u){return qo(ia(o,n.length-i),n,i,u)}function o0(n,o,i,u){return qo(m0(o),n,i,u)}function i0(n,o,i,u){return qo(op(o),n,i,u)}function s0(n,o,i,u){return qo(T0(o,n.length-i),n,i,u)}A.prototype.write=function(o,i,u,m){if(i===void 0)m="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")m=i,u=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(u)?(u=u>>>0,m===void 0&&(m="utf8")):(m=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var S=this.length-i;if((u===void 0||u>S)&&(u=S),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var v=!1;;)switch(m){case"hex":return n0(this,o,i,u);case"utf8":case"utf-8":return r0(this,o,i,u);case"ascii":case"latin1":case"binary":return o0(this,o,i,u);case"base64":return i0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s0(this,o,i,u);default:if(v)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),v=!0}};A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function a0(n,o,i){return o===0&&i===n.length?na.fromByteArray(n):na.fromByteArray(n.slice(o,i))}function ep(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var S=n[m],v=null,k=S>239?4:S>223?3:S>191?2:1;if(m+k<=i){var E,R,G,M;switch(k){case 1:S<128&&(v=S);break;case 2:E=n[m+1],(E&192)===128&&(M=(S&31)<<6|E&63,M>127&&(v=M));break;case 3:E=n[m+1],R=n[m+2],(E&192)===128&&(R&192)===128&&(M=(S&15)<<12|(E&63)<<6|R&63,M>2047&&(M<55296||M>57343)&&(v=M));break;case 4:E=n[m+1],R=n[m+2],G=n[m+3],(E&192)===128&&(R&192)===128&&(G&192)===128&&(M=(S&15)<<18|(E&63)<<12|(R&63)<<6|G&63,M>65535&&M<1114112&&(v=M))}}v===null?(v=65533,k=1):v>65535&&(v-=65536,u.push(v>>>10&1023|55296),v=56320|v&1023),u.push(v),m+=k}return c0(u)}var Zl=4096;function c0(n){var o=n.length;if(o<=Zl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Zl));return i}function u0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]&127);return u}function l0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]);return u}function p0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",S=o;S<i;++S)m+=h0[n[S]];return m}function f0(n,o,i){for(var u=n.slice(o,i),m="",S=0;S<u.length-1;S+=2)m+=String.fromCharCode(u[S]+u[S+1]*256);return m}A.prototype.slice=function(o,i){var u=this.length;o=~~o,i=i===void 0?u:~~i,o<0?(o+=u,o<0&&(o=0)):o>u&&(o=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<o&&(i=o);var m=this.subarray(o,i);return Object.setPrototypeOf(m,A.prototype),m};function Ie(n,o,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+o>i)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return m};A.prototype.readUintBE=A.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=this[o+--i],S=1;i>0&&(S*=256);)m+=this[o+--i]*S;return m};A.prototype.readUint8=A.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ie(o,1,this.length),this[o]};A.prototype.readUint16LE=A.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ie(o,2,this.length),this[o]|this[o+1]<<8};A.prototype.readUint16BE=A.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ie(o,2,this.length),this[o]<<8|this[o+1]};A.prototype.readUint32LE=A.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};A.prototype.readUint32BE=A.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};A.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return S*=128,m>=S&&(m-=Math.pow(2,8*i)),m};A.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ie(o,i,this.length);for(var m=i,S=1,v=this[o+--m];m>0&&(S*=256);)v+=this[o+--m]*S;return S*=128,v>=S&&(v-=Math.pow(2,8*i)),v};A.prototype.readInt8=function(o,i){return o=o>>>0,i||Ie(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};A.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ie(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};A.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ie(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};A.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};A.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};A.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),qn.read(this,o,!0,23,4)};A.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ie(o,4,this.length),qn.read(this,o,!1,23,4)};A.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ie(o,8,this.length),qn.read(this,o,!0,52,8)};A.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ie(o,8,this.length),qn.read(this,o,!1,52,8)};function Be(n,o,i,u,m,S){if(!A.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<S)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=1,k=0;for(this[i]=o&255;++k<u&&(v*=256);)this[i+k]=o/v&255;return i+u};A.prototype.writeUintBE=A.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Be(this,o,i,u,S,0)}var v=u-1,k=1;for(this[i+v]=o&255;--v>=0&&(k*=256);)this[i+v]=o/k&255;return i+u};A.prototype.writeUint8=A.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,1,255,0),this[i]=o&255,i+1};A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,65535,0),this[i]=o&255,this[i+1]=o>>>8,i+2};A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=o&255,i+2};A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=o&255,i+4};A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};A.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=0,k=1,E=0;for(this[i]=o&255;++v<u&&(k*=256);)o<0&&E===0&&this[i+v-1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};A.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Be(this,o,i,u,S-1,-S)}var v=u-1,k=1,E=0;for(this[i+v]=o&255;--v>=0&&(k*=256);)o<0&&E===0&&this[i+v+1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};A.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=o&255,i+1};A.prototype.writeInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,32767,-32768),this[i]=o&255,this[i+1]=o>>>8,i+2};A.prototype.writeInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=o&255,i+2};A.prototype.writeInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,2147483647,-2147483648),this[i]=o&255,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4};A.prototype.writeInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Be(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};function tp(n,o,i,u,m,S){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function np(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,4,34028234663852886e22,-34028234663852886e22),qn.write(n,o,i,u,23,4),i+4}A.prototype.writeFloatLE=function(o,i,u){return np(this,o,i,!0,u)};A.prototype.writeFloatBE=function(o,i,u){return np(this,o,i,!1,u)};function rp(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,8,17976931348623157e292,-17976931348623157e292),qn.write(n,o,i,u,52,8),i+8}A.prototype.writeDoubleLE=function(o,i,u){return rp(this,o,i,!0,u)};A.prototype.writeDoubleBE=function(o,i,u){return rp(this,o,i,!1,u)};A.prototype.copy=function(o,i,u,m){if(!A.isBuffer(o))throw new TypeError("argument should be a Buffer");if(u||(u=0),!m&&m!==0&&(m=this.length),i>=o.length&&(i=o.length),i||(i=0),m>0&&m<u&&(m=u),m===u||o.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("sourceEnd out of bounds");m>this.length&&(m=this.length),o.length-i<m-u&&(m=o.length-i+u);var S=m-u;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,m):Uint8Array.prototype.set.call(o,this.subarray(u,m),i),S};A.prototype.fill=function(o,i,u,m){if(typeof o=="string"){if(typeof i=="string"?(m=i,i=0,u=this.length):typeof u=="string"&&(m=u,u=this.length),m!==void 0&&typeof m!="string")throw new TypeError("encoding must be a string");if(typeof m=="string"&&!A.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var S=o.charCodeAt(0);(m==="utf8"&&S<128||m==="latin1")&&(o=S)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,o||(o=0);var v;if(typeof o=="number")for(v=i;v<u;++v)this[v]=o;else{var k=A.isBuffer(o)?o:A.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(v=0;v<u-i;++v)this[v+i]=k[v%E]}return this};var d0=/[^+/0-9A-Za-z-_]/g;function g0(n){if(n=n.split("=")[0],n=n.trim().replace(d0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function ia(n,o){o=o||1/0;for(var i,u=n.length,m=null,S=[],v=0;v<u;++v){if(i=n.charCodeAt(v),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&S.push(239,191,189);continue}else if(v+1===u){(o-=3)>-1&&S.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&S.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&S.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;S.push(i)}else if(i<2048){if((o-=2)<0)break;S.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;S.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;S.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return S}function m0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function T0(n,o){for(var i,u,m,S=[],v=0;v<n.length&&!((o-=2)<0);++v)i=n.charCodeAt(v),u=i>>8,m=i%256,S.push(m),S.push(u);return S}function op(n){return na.toByteArray(g0(n))}function qo(n,o,i,u){for(var m=0;m<u&&!(m+i>=o.length||m>=n.length);++m)o[m+i]=n[m];return m}function St(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function ca(n){return n!==n}var h0=function(){for(var n="0123456789abcdef",o=new Array(256),i=0;i<16;++i)for(var u=i*16,m=0;m<16;++m)o[u+m]=n[i]+n[m];return o}()});var lp=Cr((WA,up)=>{s();var ye=up.exports={},vt,wt;function ua(){throw new Error("setTimeout has not been defined")}function la(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vt=setTimeout:vt=ua}catch(n){vt=ua}try{typeof clearTimeout=="function"?wt=clearTimeout:wt=la}catch(n){wt=la}})();function sp(n){if(vt===setTimeout)return setTimeout(n,0);if((vt===ua||!vt)&&setTimeout)return vt=setTimeout,setTimeout(n,0);try{return vt(n,0)}catch(o){try{return vt.call(null,n,0)}catch(i){return vt.call(this,n,0)}}}function y0(n){if(wt===clearTimeout)return clearTimeout(n);if((wt===la||!wt)&&clearTimeout)return wt=clearTimeout,clearTimeout(n);try{return wt(n)}catch(o){try{return wt.call(null,n)}catch(i){return wt.call(this,n)}}}var Ut=[],Kn=!1,vn,zo=-1;function x0(){!Kn||!vn||(Kn=!1,vn.length?Ut=vn.concat(Ut):zo=-1,Ut.length&&ap())}function ap(){if(!Kn){var n=sp(x0);Kn=!0;for(var o=Ut.length;o;){for(vn=Ut,Ut=[];++zo<o;)vn&&vn[zo].run();zo=-1,o=Ut.length}vn=null,Kn=!1,y0(n)}}ye.nextTick=function(n){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Ut.push(new cp(n,o)),Ut.length===1&&!Kn&&sp(ap)};function cp(n,o){this.fun=n,this.array=o}cp.prototype.run=function(){this.fun.apply(null,this.array)};ye.title="browser";ye.browser=!0;ye.env={};ye.argv=[];ye.version="";ye.versions={};function Bt(){}ye.on=Bt;ye.addListener=Bt;ye.once=Bt;ye.off=Bt;ye.removeListener=Bt;ye.removeAllListeners=Bt;ye.emit=Bt;ye.prependListener=Bt;ye.prependOnceListener=Bt;ye.listeners=function(n){return[]};ye.binding=function(n){throw new Error("process.binding is not supported")};ye.cwd=function(){return"/"};ye.chdir=function(n){throw new Error("process.chdir is not supported")};ye.umask=function(){return 0}});var f,g,S0,d,s=W(()=>{f=z(ip()),g=z(lp()),S0=function(n){function o(){var u=this||self;return delete n.prototype.__magic__,u}if(typeof globalThis=="object")return globalThis;if(this)return o();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:o});var i=__magic__;return i}(Object),d=S0});var wn=W(()=>{"use strict";s()});var pp=W(()=>{"use strict";s()});var fp=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var me=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var We=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var hp=W(()=>{"use strict";s()});var xe=W(()=>{"use strict";s();pp();fp();dp();me();gp();mp();We();Tp();hp()});var pa,yp,iI,xp,sI,Sp,aI,cI,uI,vp=W(()=>{"use strict";s();xe();pa={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:yp,egldLabel:iI}=pa["devnet"],{chainId:xp,egldLabel:sI}=pa["testnet"],{chainId:Sp,egldLabel:aI}=pa["mainnet"],cI={["devnet"]:yp,["testnet"]:xp,["mainnet"]:Sp},uI={[yp]:"devnet",[xp]:"testnet",[Sp]:"mainnet"}});var fa=W(()=>{"use strict";s()});var wp=W(()=>{"use strict";s()});var Ko,da=W(()=>{"use strict";s();Ko="transaction-status-toast-id"});var _t,_p=W(()=>{"use strict";s();_t=require("@multiversx/sdk-web-wallet-provider")});var Ap=W(()=>{"use strict";s()});var Pr,Yo,Ip,ga,Zo,bp,Yn,ie=W(()=>{"use strict";s();wn();vp();fa();wp();da();_p();Ap();Pr=5e4,Yo=1e9,Ip=1,ga=4294967295,Zo="logout",bp="login",Yn="0"});var _n,Rr=W(()=>{"use strict";s();_n=()=>Date.now()/1e3});var Lp,ma=W(()=>{"use strict";s();Lp=n=>new Date().setMilliseconds(new Date().getMilliseconds()+n)/1e3});var Ep=W(()=>{"use strict";s()});var Ta=W(()=>{"use strict";s();Rr();ma();Ep()});var ya={};yn(ya,{getItem:()=>w0,localStorageKeys:()=>nn,removeItem:()=>_0,setItem:()=>v0});var nn,ha,v0,w0,_0,Zn=W(()=>{"use strict";s();Ta();nn={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ha=typeof localStorage!="undefined",v0=({key:n,data:o,expires:i})=>{!ha||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},w0=n=>{if(!ha)return;let o=localStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:_n()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},_0=n=>{!ha||localStorage.removeItem(String(n))}});var xa={};yn(xa,{clear:()=>Rp,getItem:()=>kp,removeItem:()=>Pp,setItem:()=>Cp,storage:()=>A0});var Cp,kp,Pp,Rp,A0,Dp=W(()=>{"use strict";s();Cp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},kp=n=>{let o=sessionStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},Pp=n=>sessionStorage.removeItem(String(n)),Rp=()=>sessionStorage.clear(),A0={setItem:Cp,getItem:kp,removeItem:Pp,clear:Rp}});var An,Xn=W(()=>{"use strict";s();Zn();Dp();An={session:xa,local:ya}});var Sa,Le,At,ke=W(()=>{"use strict";s();Sa=require("@reduxjs/toolkit");ie();Le=(0,Sa.createAction)(Zo),At=(0,Sa.createAction)(bp,n=>({payload:n}))});var wa,Np,Op,Xo,va,Mp,_a,GI,Aa,$I,I0,b0,HI,VI,qI,L0,Jo,Qo=W(()=>{"use strict";s();wa=require("@multiversx/sdk-core"),Np=require("@reduxjs/toolkit"),Op=require("redux-persist");ie();Xn();Zn();ke();Xo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Yn},va={address:"",websocketEvent:null,accounts:{"":Xo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Mp=(0,Np.createSlice)({name:"accountInfoSlice",initialState:va,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new wa.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Xo},n.shard=o.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,o)=>{let{address:i}=n;n.accounts[i].nonce=o.payload},setAccountShard:(n,o)=>{n.shard=o.payload},setLedgerAccount:(n,o)=>{n.ledgerAccount=o.payload},updateLedgerAccount:(n,o)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=o.payload.index,n.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(n,o)=>{n.walletConnectAccount=o.payload},setIsAccountLoading:(n,o)=>{n.isAccountLoading=o.payload,n.accountLoadingError=null},setAccountLoadingError:(n,o)=>{n.accountLoadingError=o.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,o)=>{n.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:n=>{n.addCase(Le,()=>(An.local.removeItem(nn.loginExpiresAt),va)),n.addCase(At,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new wa.Address(u).hex()}),n.addCase(Op.REHYDRATE,(o,i)=>{var R;if(!((R=i.payload)!=null&&R.account))return;let{account:u}=i.payload,{address:m,shard:S,accounts:v,publicKey:k}=u;o.address=m,o.shard=S;let E=v&&m in v;o.accounts=E?v:va.accounts,o.publicKey=k})}}),{setAccount:_a,setAddress:GI,setAccountNonce:Aa,setAccountShard:$I,setLedgerAccount:I0,updateLedgerAccount:b0,setWalletConnectAccount:HI,setIsAccountLoading:VI,setAccountLoadingError:qI,setWebsocketEvent:L0}=Mp.actions,Jo=Mp.reducer});function Dr(){return new Date().setHours(new Date().getHours()+24)}function Nr(n){An.local.setItem({key:nn.loginExpiresAt,data:n,expires:n})}var Ia=W(()=>{"use strict";s();Xn();Zn()});var Up,Fp,Bp,tb,Wp,E0,C0,nb,k0,Gp,rb,jo,ei=W(()=>{"use strict";s();Up=require("@reduxjs/toolkit");Ia();me();ke();Fp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Bp=(0,Up.createSlice)({name:"loginInfoSlice",initialState:Fp,reducers:{setLoginMethod:(n,o)=>{n.loginMethod=o.payload},setTokenLogin:(n,o)=>{n.tokenLogin=o.payload},setTokenLoginSignature:(n,o)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=o.payload)},setWalletLogin:(n,o)=>{n.walletLogin=o.payload},setWalletConnectLogin:(n,o)=>{n.walletConnectLogin=o.payload},setLedgerLogin:(n,o)=>{n.ledgerLogin=o.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,o)=>{n.logoutRoute=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fp),n.addCase(At,(o,i)=>{o.loginMethod=i.payload.loginMethod,Nr(Dr())})}}),{setLoginMethod:tb,setWalletConnectLogin:Wp,setLedgerLogin:E0,setTokenLogin:C0,setTokenLoginSignature:nb,setWalletLogin:k0,invalidateLoginSession:Gp,setLogoutRoute:rb}=Bp.actions,jo=Bp.reducer});var Hp,$p,Vp,ab,P0,cb,R0,ti,ni=W(()=>{"use strict";s();Hp=require("@reduxjs/toolkit");ke();$p={},Vp=(0,Hp.createSlice)({name:"modalsSlice",initialState:$p,reducers:{setTxSubmittedModal:(n,o)=>{n.txSubmittedModal=o.payload},setNotificationModal:(n,o)=>{n.notificationModal=o.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(Le,()=>$p)}}),{setTxSubmittedModal:ab,setNotificationModal:P0,clearTxSubmittedModal:cb,clearNotificationModal:R0}=Vp.actions,ti=Vp.reducer});var Or=W(()=>{"use strict";s()});var zp=W(()=>{"use strict";s();Or()});function ba(n){return n[Math.floor(Math.random()*n.length)]}var Kp=W(()=>{"use strict";s()});var La=W(()=>{"use strict";s();fa()});var In=W(()=>{"use strict";s();zp();Kp();La()});var Yp,Zp,Ea,D0,Xp,_b,Ab,ri,oi=W(()=>{"use strict";s();Yp=require("@reduxjs/toolkit"),Zp=z(require("lodash.omit"));In();Ea={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},D0={network:Ea,chainID:"-1"},Xp=(0,Yp.createSlice)({name:"appConfig",initialState:D0,reducers:{initializeNetworkConfig:(n,o)=>{let i=ba(o.payload.walletConnectBridgeAddresses),u=ba(o.payload.walletConnectV2RelayAddresses),m=(0,Zp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:_b,setChainID:Ab}=Xp.actions,ri=Xp.reducer});var Jp,Ca,Qp,kb,Pb,Rb,ii,si=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit");xe();ke();Ca={isSigning:!1,signedSessions:{}},Qp=(0,Jp.createSlice)({name:"signedMessageInfoSliceState",initialState:Ca,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Ca},extraReducers:n=>{n.addCase(Le,()=>Ca)}}),{setSignSession:kb,clearSignedMessageInfo:Pb,setSignSessionState:Rb}=Qp.actions,ii=Qp.reducer});var ef,tf,jp,nf,N0,ka,Wb,Gb,$b,Hb,ai,ci=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit"),tf=require("redux-persist");da();xe();Rr();ke();jp={customToasts:[],transactionToasts:[],failTransactionToast:null},nf=(0,ef.createSlice)({name:"toastsSlice",initialState:jp,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:_n(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=Q(O({},o.payload),{toastId:Ko})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>jp),n.addCase(tf.REHYDRATE,(o,i)=>{var m,S;let u=(S=(m=i.customToasts)==null?void 0:m.filter(v=>!("component"in v)))!=null?S:[];o.customToasts=u})}}),{addCustomToast:N0,removeCustomToast:ka,addTransactionToast:Wb,removeTransactionToast:Gb,addFailTransactionToast:$b,removeFailTransactionToast:Hb}=nf.actions,ai=nf.reducer});var rf,Ra,Da,Na,O0,Pa,of,Kb,M0,Oa,ui,li=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit");ke();Ra="Transaction failed",Da="Transaction successful",Na="Processing transaction",O0="Transaction submitted",Pa={},of=(0,rf.createSlice)({name:"transactionsInfo",initialState:Pa,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ra,successMessage:(u==null?void 0:u.successMessage)||Da,processingMessage:(u==null?void 0:u.processingMessage)||Na,submittedMessage:(u==null?void 0:u.submittedMessage)||O0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>Pa},extraReducers:n=>{n.addCase(Le,()=>Pa)}}),{clearTransactionsInfo:Kb,setTransactionsDisplayInfo:M0,clearTransactionsInfoForSessionId:Oa}=of.actions,ui=of.reducer});function rn(n){return n!=null&&(V0(n)||Y0(n))}function Qn(n){return n!=null&&(q0(n)||Z0(n))}function jn(n){return n!=null&&(z0(n)||X0(n))}function Mr(n){return n!=null&&K0(n)}function V0(n){return n!=null&&F0.includes(n)}function q0(n){return n!=null&&U0.includes(n)}function z0(n){return n!=null&&B0.includes(n)}function K0(n){return n!=null&&W0.includes(n)}function Y0(n){return n!=null&&G0.includes(n)}function Z0(n){return n!=null&&$0.includes(n)}function X0(n){return n!=null&&H0.includes(n)}var F0,U0,B0,W0,G0,$0,H0,bn=W(()=>{"use strict";s();me();F0=["sent"],U0=["success"],B0=["fail","cancelled","timedOut"],W0=["timedOut"],G0=["pending"],$0=["success"],H0=["fail","invalid"]});var sf,af,Fr,J0,cf,uf,lf,Q0,pi,j0,ew,nL,tw,fi,Ma,di,gi=W(()=>{"use strict";s();sf=require("@reduxjs/toolkit"),af=require("redux-persist");me();bn();ke();Fr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},J0={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},cf=(0,sf.createSlice)({name:"transactionsSlice",initialState:Fr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,R;let{sessionId:i,transactions:u,errorMessage:m,status:S,redirectRoute:v}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||J0;n.signedTransactions[i]={transactions:u,status:S,errorMessage:m,redirectRoute:v,customTransactionInformation:k},((R=n==null?void 0:n.transactionsToSign)==null?void 0:R.sessionId)===i&&(n.transactionsToSign=Fr.transactionsToSign)},clearSignedTransaction:(n,o)=>{n.signedTransactions[o.payload]&&delete n.signedTransactions[o.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,o)=>{n.signedTransactions=O(O({},n.signedTransactions),o.payload)},updateSignedTransactions:(n,o)=>{let{sessionId:i,status:u,errorMessage:m,transactions:S}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),S!=null&&(n.signedTransactions[i].transactions=S))},updateSignedTransactionStatus:(n,o)=>{var k,E,R,G,M,ue;let{sessionId:i,status:u,errorMessage:m,transactionHash:S}=o.payload,v=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(v!=null){n.signedTransactions[i].transactions=v.map(Se=>Se.hash===S?Q(O({},Se),{status:u,errorMessage:m}):Se);let de=(G=(R=n.signedTransactions[i])==null?void 0:R.transactions)==null?void 0:G.every(Se=>Qn(Se.status)),pe=(ue=(M=n.signedTransactions[i])==null?void 0:M.transactions)==null?void 0:ue.every(Se=>jn(Se.status));de&&(n.signedTransactions[i].status="success"),pe&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,o)=>{n.transactionsToSign=o.payload;let{sessionId:i,customTransactionInformation:u}=o.payload;n.customTransactionInformationForSessionId[i]=u,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=Fr.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Fr.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fr),n.addCase(af.REHYDRATE,(o,i)=>{var v;if(o.signTransactionsCancelMessage=null,!((v=i.payload)!=null&&v.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,S=Object.entries(u).reduce((k,[E,R])=>{let G=new Date(E),M=new Date;return M.setHours(M.getHours()+5),M-G>0||(k[E]=R),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=S)})}}),{updateSignedTransactionStatus:uf,updateSignedTransactions:lf,setTransactionsToSign:Q0,clearAllTransactionsToSign:pi,clearAllSignedTransactions:j0,clearSignedTransaction:ew,clearTransactionToSign:nL,setSignTransactionsError:tw,setSignTransactionsCancelMessage:fi,moveTransactionsToSignedState:Ma}=cf.actions,di=cf.reducer});var ae=W(()=>{"use strict";s();Qo();ei();ni();oi();si();ci();li();gi()});var Fa=W(()=>{"use strict";s()});var mf,gf,Tf,bL,LL,EL,CL,kL,PL,hf,yf=W(()=>{"use strict";s();mf=require("@reduxjs/toolkit");ke();gf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Tf=(0,mf.createSlice)({name:"dappModalsSlice",initialState:gf,reducers:{setDappModalVisibility:(n,o)=>{n.visible=o.payload},setDappModalHeaderVisibility:(n,o)=>{n.modal.showHeader=o.payload},setDappModalFooterVisibility:(n,o)=>{n.modal.showFooter=o.payload},setDappModalHeaderText:(n,o)=>{n.modal.headerText=o.payload},setDappModalFooterText:(n,o)=>{n.modal.footerText=o.payload},setDappModalConfig:(n,o)=>{n.modal=O({},o.payload)}},extraReducers:n=>{n.addCase(Le,()=>gf)}}),{setDappModalVisibility:bL,setDappModalHeaderVisibility:LL,setDappModalFooterVisibility:EL,setDappModalHeaderText:CL,setDappModalFooterText:kL,setDappModalConfig:PL}=Tf.actions,hf=Tf.reducer});var xf,iw,sw,Ln,yi=W(()=>{"use strict";s();xf=require("@reduxjs/toolkit");Fa();Qo();yf();ei();ni();oi();si();ci();li();gi();iw={["account"]:Jo,["dappModal"]:hf,["loginInfo"]:jo,["modals"]:ti,["networkConfig"]:ri,["signedMessageInfo"]:ii,["toasts"]:ai,["transactionsInfo"]:ui,["transactions"]:di},sw=(n={})=>(0,xf.combineReducers)(O(O({},iw),n)),Ln=sw});var _f={};yn(_f,{default:()=>vw,sessionStorageReducers:()=>Ua});function on(n,o=[]){return{key:n,version:1,storage:vf.default,blacklist:o}}var Ze,Sf,vf,aw,Br,cw,uw,lw,pw,fw,dw,gw,mw,Tw,wf,hw,Ua,yw,xw,Sw,vw,Af=W(()=>{"use strict";s();Ze=require("redux-persist"),Sf=z(require("redux-persist/lib/storage")),vf=z(require("redux-persist/lib/storage/session"));yi();ae();Qo();ei();ni();oi();si();ci();li();gi();Fa();aw={persistReducersStorageType:"localStorage"},Br={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},cw=on(Br["account"]),uw=on(Br["loginInfo"]),lw=on(Br["modals"]),pw=on(Br["networkConfig"]),fw={2:n=>Q(O({},n),{networkConfig:Ea})};dw=on("sdk-dapp-transactionsInfo"),gw=on("sdk-dapp-transactions",["transactionsToSign"]),mw=on("sdk-dapp-toasts"),Tw=on("sdk-dapp-signedMessageInfo"),wf={key:"sdk-dapp-store",version:2,storage:Sf.default,whitelist:Object.keys(Br),migrate:(0,Ze.createMigrate)(fw,{debug:!1})},hw=Q(O({},wf),{whitelist:[]}),Ua={["toasts"]:(0,Ze.persistReducer)(mw,ai),["transactions"]:(0,Ze.persistReducer)(gw,di),["transactionsInfo"]:(0,Ze.persistReducer)(dw,ui),["signedMessageInfo"]:(0,Ze.persistReducer)(Tw,ii)},yw=Q(O({},Ua),{["account"]:(0,Ze.persistReducer)(cw,Jo),["loginInfo"]:(0,Ze.persistReducer)(uw,jo),["modals"]:(0,Ze.persistReducer)(lw,ti),["networkConfig"]:(0,Ze.persistReducer)(pw,ri)}),xw=aw.persistReducersStorageType==="localStorage",Sw=xw?(0,Ze.persistReducer)(wf,Ln(Ua)):(0,Ze.persistReducer)(hw,Ln(yw)),vw=Sw});var If={};yn(If,{default:()=>ww});var ww,bf=W(()=>{"use strict";s();yi();ww=Ln()});var Lf={};yn(Lf,{default:()=>Aw});var at,_w,Aw,Ef=W(()=>{"use strict";s();at=require("redux-persist"),_w=[at.FLUSH,at.REHYDRATE,at.PAUSE,at.PERSIST,at.PURGE,at.REGISTER],Aw=_w});var Pf={};yn(Pf,{default:()=>kf});function kf(n){return(0,Cf.persistStore)(n)}var Cf,Rf=W(()=>{"use strict";s();Cf=require("redux-persist")});var Pd=Cr((rr,Hr)=>{s();(function(){var n,o="4.17.21",i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",S="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",R=1,G=2,M=4,ue=1,de=2,pe=1,Se=2,zr=4,Je=8,It=16,Ne=32,Vt=64,bt=128,ir=256,Pi=512,Gd=30,$d="...",Hd=800,Vd=16,cc=1,qd=2,zd=3,cn=1/0,qt=9007199254740991,Kd=17976931348623157e292,Kr=0/0,mt=4294967295,Yd=mt-1,Zd=mt>>>1,Xd=[["ary",bt],["bind",pe],["bindKey",Se],["curry",Je],["curryRight",It],["flip",Pi],["partial",Ne],["partialRight",Vt],["rearg",ir]],kn="[object Arguments]",Yr="[object Array]",Jd="[object AsyncFunction]",sr="[object Boolean]",ar="[object Date]",Qd="[object DOMException]",Zr="[object Error]",Xr="[object Function]",uc="[object GeneratorFunction]",ct="[object Map]",cr="[object Number]",jd="[object Null]",Lt="[object Object]",lc="[object Promise]",eg="[object Proxy]",ur="[object RegExp]",ut="[object Set]",lr="[object String]",Jr="[object Symbol]",tg="[object Undefined]",pr="[object WeakMap]",ng="[object WeakSet]",fr="[object ArrayBuffer]",Pn="[object DataView]",Ri="[object Float32Array]",Di="[object Float64Array]",Ni="[object Int8Array]",Oi="[object Int16Array]",Mi="[object Int32Array]",Fi="[object Uint8Array]",Ui="[object Uint8ClampedArray]",Bi="[object Uint16Array]",Wi="[object Uint32Array]",rg=/\b__p \+= '';/g,og=/\b(__p \+=) '' \+/g,ig=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pc=/&(?:amp|lt|gt|quot|#39);/g,fc=/[&<>"']/g,sg=RegExp(pc.source),ag=RegExp(fc.source),cg=/<%-([\s\S]+?)%>/g,ug=/<%([\s\S]+?)%>/g,dc=/<%=([\s\S]+?)%>/g,lg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pg=/^\w*$/,fg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/[\\^$.*+?()[\]{}|]/g,dg=RegExp(Gi.source),$i=/^\s+/,gg=/\s/,mg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tg=/\{\n\/\* \[wrapped with (.+)\] \*/,hg=/,? & /,yg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xg=/[()=,{}\[\]\/\s]/,Sg=/\\(\\)?/g,vg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gc=/\w*$/,wg=/^[-+]0x[0-9a-f]+$/i,_g=/^0b[01]+$/i,Ag=/^\[object .+?Constructor\]$/,Ig=/^0o[0-7]+$/i,bg=/^(?:0|[1-9]\d*)$/,Lg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,Eg=/['\n\r\u2028\u2029\\]/g,jr="\\ud800-\\udfff",Cg="\\u0300-\\u036f",kg="\\ufe20-\\ufe2f",Pg="\\u20d0-\\u20ff",mc=Cg+kg+Pg,Tc="\\u2700-\\u27bf",hc="a-z\\xdf-\\xf6\\xf8-\\xff",Rg="\\xac\\xb1\\xd7\\xf7",Dg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ng="\\u2000-\\u206f",Og=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yc="A-Z\\xc0-\\xd6\\xd8-\\xde",xc="\\ufe0e\\ufe0f",Sc=Rg+Dg+Ng+Og,Hi="['\u2019]",Mg="["+jr+"]",vc="["+Sc+"]",eo="["+mc+"]",wc="\\d+",Fg="["+Tc+"]",_c="["+hc+"]",Ac="[^"+jr+Sc+wc+Tc+hc+yc+"]",Vi="\\ud83c[\\udffb-\\udfff]",Ug="(?:"+eo+"|"+Vi+")",Ic="[^"+jr+"]",qi="(?:\\ud83c[\\udde6-\\uddff]){2}",zi="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+yc+"]",bc="\\u200d",Lc="(?:"+_c+"|"+Ac+")",Bg="(?:"+Rn+"|"+Ac+")",Ec="(?:"+Hi+"(?:d|ll|m|re|s|t|ve))?",Cc="(?:"+Hi+"(?:D|LL|M|RE|S|T|VE))?",kc=Ug+"?",Pc="["+xc+"]?",Wg="(?:"+bc+"(?:"+[Ic,qi,zi].join("|")+")"+Pc+kc+")*",Gg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$g="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rc=Pc+kc+Wg,Hg="(?:"+[Fg,qi,zi].join("|")+")"+Rc,Vg="(?:"+[Ic+eo+"?",eo,qi,zi,Mg].join("|")+")",qg=RegExp(Hi,"g"),zg=RegExp(eo,"g"),Ki=RegExp(Vi+"(?="+Vi+")|"+Vg+Rc,"g"),Kg=RegExp([Rn+"?"+_c+"+"+Ec+"(?="+[vc,Rn,"$"].join("|")+")",Bg+"+"+Cc+"(?="+[vc,Rn+Lc,"$"].join("|")+")",Rn+"?"+Lc+"+"+Ec,Rn+"+"+Cc,$g,Gg,wc,Hg].join("|"),"g"),Yg=RegExp("["+bc+jr+mc+xc+"]"),Zg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jg=-1,ce={};ce[Ri]=ce[Di]=ce[Ni]=ce[Oi]=ce[Mi]=ce[Fi]=ce[Ui]=ce[Bi]=ce[Wi]=!0,ce[kn]=ce[Yr]=ce[fr]=ce[sr]=ce[Pn]=ce[ar]=ce[Zr]=ce[Xr]=ce[ct]=ce[cr]=ce[Lt]=ce[ur]=ce[ut]=ce[lr]=ce[pr]=!1;var se={};se[kn]=se[Yr]=se[fr]=se[Pn]=se[sr]=se[ar]=se[Ri]=se[Di]=se[Ni]=se[Oi]=se[Mi]=se[ct]=se[cr]=se[Lt]=se[ur]=se[ut]=se[lr]=se[Jr]=se[Fi]=se[Ui]=se[Bi]=se[Wi]=!0,se[Zr]=se[Xr]=se[pr]=!1;var Qg={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},jg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},em={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nm=parseFloat,rm=parseInt,Dc=typeof d=="object"&&d&&d.Object===Object&&d,om=typeof self=="object"&&self&&self.Object===Object&&self,_e=Dc||om||Function("return this")(),Yi=typeof rr=="object"&&rr&&!rr.nodeType&&rr,un=Yi&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,Nc=un&&un.exports===Yi,Zi=Nc&&Dc.process,Qe=function(){try{var y=un&&un.require&&un.require("util").types;return y||Zi&&Zi.binding&&Zi.binding("util")}catch(_){}}(),Oc=Qe&&Qe.isArrayBuffer,Mc=Qe&&Qe.isDate,Fc=Qe&&Qe.isMap,Uc=Qe&&Qe.isRegExp,Bc=Qe&&Qe.isSet,Wc=Qe&&Qe.isTypedArray;function $e(y,_,w){switch(w.length){case 0:return y.call(_);case 1:return y.call(_,w[0]);case 2:return y.call(_,w[0],w[1]);case 3:return y.call(_,w[0],w[1],w[2])}return y.apply(_,w)}function im(y,_,w,P){for(var $=-1,j=y==null?0:y.length;++$<j;){var ve=y[$];_(P,ve,w(ve),y)}return P}function je(y,_){for(var w=-1,P=y==null?0:y.length;++w<P&&_(y[w],w,y)!==!1;);return y}function sm(y,_){for(var w=y==null?0:y.length;w--&&_(y[w],w,y)!==!1;);return y}function Gc(y,_){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!_(y[w],w,y))return!1;return!0}function zt(y,_){for(var w=-1,P=y==null?0:y.length,$=0,j=[];++w<P;){var ve=y[w];_(ve,w,y)&&(j[$++]=ve)}return j}function to(y,_){var w=y==null?0:y.length;return!!w&&Dn(y,_,0)>-1}function Xi(y,_,w){for(var P=-1,$=y==null?0:y.length;++P<$;)if(w(_,y[P]))return!0;return!1}function le(y,_){for(var w=-1,P=y==null?0:y.length,$=Array(P);++w<P;)$[w]=_(y[w],w,y);return $}function Kt(y,_){for(var w=-1,P=_.length,$=y.length;++w<P;)y[$+w]=_[w];return y}function Ji(y,_,w,P){var $=-1,j=y==null?0:y.length;for(P&&j&&(w=y[++$]);++$<j;)w=_(w,y[$],$,y);return w}function am(y,_,w,P){var $=y==null?0:y.length;for(P&&$&&(w=y[--$]);$--;)w=_(w,y[$],$,y);return w}function Qi(y,_){for(var w=-1,P=y==null?0:y.length;++w<P;)if(_(y[w],w,y))return!0;return!1}var cm=ji("length");function um(y){return y.split("")}function lm(y){return y.match(yg)||[]}function $c(y,_,w){var P;return w(y,function($,j,ve){if(_($,j,ve))return P=j,!1}),P}function no(y,_,w,P){for(var $=y.length,j=w+(P?1:-1);P?j--:++j<$;)if(_(y[j],j,y))return j;return-1}function Dn(y,_,w){return _===_?wm(y,_,w):no(y,Hc,w)}function pm(y,_,w,P){for(var $=w-1,j=y.length;++$<j;)if(P(y[$],_))return $;return-1}function Hc(y){return y!==y}function Vc(y,_){var w=y==null?0:y.length;return w?ts(y,_)/w:Kr}function ji(y){return function(_){return _==null?n:_[y]}}function es(y){return function(_){return y==null?n:y[_]}}function qc(y,_,w,P,$){return $(y,function(j,ve,oe){w=P?(P=!1,j):_(w,j,ve,oe)}),w}function fm(y,_){var w=y.length;for(y.sort(_);w--;)y[w]=y[w].value;return y}function ts(y,_){for(var w,P=-1,$=y.length;++P<$;){var j=_(y[P]);j!==n&&(w=w===n?j:w+j)}return w}function ns(y,_){for(var w=-1,P=Array(y);++w<y;)P[w]=_(w);return P}function dm(y,_){return le(_,function(w){return[w,y[w]]})}function zc(y){return y&&y.slice(0,Xc(y)+1).replace($i,"")}function He(y){return function(_){return y(_)}}function rs(y,_){return le(_,function(w){return y[w]})}function dr(y,_){return y.has(_)}function Kc(y,_){for(var w=-1,P=y.length;++w<P&&Dn(_,y[w],0)>-1;);return w}function Yc(y,_){for(var w=y.length;w--&&Dn(_,y[w],0)>-1;);return w}function gm(y,_){for(var w=y.length,P=0;w--;)y[w]===_&&++P;return P}var mm=es(Qg),Tm=es(jg);function hm(y){return"\\"+tm[y]}function ym(y,_){return y==null?n:y[_]}function Nn(y){return Yg.test(y)}function xm(y){return Zg.test(y)}function Sm(y){for(var _,w=[];!(_=y.next()).done;)w.push(_.value);return w}function os(y){var _=-1,w=Array(y.size);return y.forEach(function(P,$){w[++_]=[$,P]}),w}function Zc(y,_){return function(w){return y(_(w))}}function Yt(y,_){for(var w=-1,P=y.length,$=0,j=[];++w<P;){var ve=y[w];(ve===_||ve===E)&&(y[w]=E,j[$++]=w)}return j}function ro(y){var _=-1,w=Array(y.size);return y.forEach(function(P){w[++_]=P}),w}function vm(y){var _=-1,w=Array(y.size);return y.forEach(function(P){w[++_]=[P,P]}),w}function wm(y,_,w){for(var P=w-1,$=y.length;++P<$;)if(y[P]===_)return P;return-1}function _m(y,_,w){for(var P=w+1;P--;)if(y[P]===_)return P;return P}function On(y){return Nn(y)?Im(y):cm(y)}function lt(y){return Nn(y)?bm(y):um(y)}function Xc(y){for(var _=y.length;_--&&gg.test(y.charAt(_)););return _}var Am=es(em);function Im(y){for(var _=Ki.lastIndex=0;Ki.test(y);)++_;return _}function bm(y){return y.match(Ki)||[]}function Lm(y){return y.match(Kg)||[]}var Em=function y(_){_=_==null?_e:Zt.defaults(_e.Object(),_,Zt.pick(_e,Xg));var w=_.Array,P=_.Date,$=_.Error,j=_.Function,ve=_.Math,oe=_.Object,is=_.RegExp,Cm=_.String,et=_.TypeError,oo=w.prototype,km=j.prototype,Mn=oe.prototype,io=_["__core-js_shared__"],so=km.toString,re=Mn.hasOwnProperty,Pm=0,Jc=function(){var e=/[^.]+$/.exec(io&&io.keys&&io.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ao=Mn.toString,Rm=so.call(oe),Dm=_e._,Nm=is("^"+so.call(re).replace(Gi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),co=Nc?_.Buffer:n,Xt=_.Symbol,uo=_.Uint8Array,Qc=co?co.allocUnsafe:n,lo=Zc(oe.getPrototypeOf,oe),jc=oe.create,eu=Mn.propertyIsEnumerable,po=oo.splice,tu=Xt?Xt.isConcatSpreadable:n,gr=Xt?Xt.iterator:n,ln=Xt?Xt.toStringTag:n,fo=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Om=_.clearTimeout!==_e.clearTimeout&&_.clearTimeout,Mm=P&&P.now!==_e.Date.now&&P.now,Fm=_.setTimeout!==_e.setTimeout&&_.setTimeout,go=ve.ceil,mo=ve.floor,ss=oe.getOwnPropertySymbols,Um=co?co.isBuffer:n,nu=_.isFinite,Bm=oo.join,Wm=Zc(oe.keys,oe),we=ve.max,Ee=ve.min,Gm=P.now,$m=_.parseInt,ru=ve.random,Hm=oo.reverse,as=mn(_,"DataView"),mr=mn(_,"Map"),cs=mn(_,"Promise"),Fn=mn(_,"Set"),Tr=mn(_,"WeakMap"),hr=mn(oe,"create"),To=Tr&&new Tr,Un={},Vm=Tn(as),qm=Tn(mr),zm=Tn(cs),Km=Tn(Fn),Ym=Tn(Tr),ho=Xt?Xt.prototype:n,yr=ho?ho.valueOf:n,ou=ho?ho.toString:n;function l(e){if(ge(e)&&!H(e)&&!(e instanceof X)){if(e instanceof tt)return e;if(re.call(e,"__wrapped__"))return il(e)}return new tt(e)}var Bn=function(){function e(){}return function(t){if(!fe(t))return{};if(jc)return jc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function yo(){}function tt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:cg,evaluate:ug,interpolate:dc,variable:"",imports:{_:l}},l.prototype=yo.prototype,l.prototype.constructor=l,tt.prototype=Bn(yo.prototype),tt.prototype.constructor=tt;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=mt,this.__views__=[]}function Zm(){var e=new X(this.__wrapped__);return e.__actions__=Oe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oe(this.__views__),e}function Xm(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Jm(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=uh(0,c,this.__views__),T=p.start,h=p.end,x=h-T,I=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,N=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&N==x)return Eu(e,this.__actions__);var U=[];e:for(;x--&&C<N;){I+=t;for(var q=-1,B=e[I];++q<L;){var Z=b[q],J=Z.iteratee,ze=Z.type,De=J(B);if(ze==qd)B=De;else if(!De){if(ze==cc)continue e;break e}}U[C++]=B}return U}X.prototype=Bn(yo.prototype),X.prototype.constructor=X;function pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function Qm(){this.__data__=hr?hr(null):{},this.size=0}function jm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function eT(e){var t=this.__data__;if(hr){var r=t[e];return r===v?n:r}return re.call(t,e)?t[e]:n}function tT(e){var t=this.__data__;return hr?t[e]!==n:re.call(t,e)}function nT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hr&&t===n?v:t,this}pn.prototype.clear=Qm,pn.prototype.delete=jm,pn.prototype.get=eT,pn.prototype.has=tT,pn.prototype.set=nT;function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function rT(){this.__data__=[],this.size=0}function oT(e){var t=this.__data__,r=xo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():po.call(t,r,1),--this.size,!0}function iT(e){var t=this.__data__,r=xo(t,e);return r<0?n:t[r][1]}function sT(e){return xo(this.__data__,e)>-1}function aT(e,t){var r=this.__data__,a=xo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Et.prototype.clear=rT,Et.prototype.delete=oT,Et.prototype.get=iT,Et.prototype.has=sT,Et.prototype.set=aT;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function cT(){this.size=0,this.__data__={hash:new pn,map:new(mr||Et),string:new pn}}function uT(e){var t=Po(this,e).delete(e);return this.size-=t?1:0,t}function lT(e){return Po(this,e).get(e)}function pT(e){return Po(this,e).has(e)}function fT(e,t){var r=Po(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Ct.prototype.clear=cT,Ct.prototype.delete=uT,Ct.prototype.get=lT,Ct.prototype.has=pT,Ct.prototype.set=fT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}function dT(e){return this.__data__.set(e,v),this}function gT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=dT,fn.prototype.has=gT;function pt(e){var t=this.__data__=new Et(e);this.size=t.size}function mT(){this.__data__=new Et,this.size=0}function TT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function hT(e){return this.__data__.get(e)}function yT(e){return this.__data__.has(e)}function xT(e,t){var r=this.__data__;if(r instanceof Et){var a=r.__data__;if(!mr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ct(a)}return r.set(e,t),this.size=r.size,this}pt.prototype.clear=mT,pt.prototype.delete=TT,pt.prototype.get=hT,pt.prototype.has=yT,pt.prototype.set=xT;function iu(e,t){var r=H(e),a=!r&&hn(e),c=!r&&!a&&tn(e),p=!r&&!a&&!c&&Hn(e),T=r||a||c||p,h=T?ns(e.length,Cm):[],x=h.length;for(var I in e)(t||re.call(e,I))&&!(T&&(I=="length"||c&&(I=="offset"||I=="parent")||p&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||Dt(I,x)))&&h.push(I);return h}function su(e){var t=e.length;return t?e[xs(0,t-1)]:n}function ST(e,t){return Ro(Oe(e),dn(t,0,e.length))}function vT(e){return Ro(Oe(e))}function us(e,t,r){(r!==n&&!ft(e[t],r)||r===n&&!(t in e))&&kt(e,t,r)}function xr(e,t,r){var a=e[t];(!(re.call(e,t)&&ft(a,r))||r===n&&!(t in e))&&kt(e,t,r)}function xo(e,t){for(var r=e.length;r--;)if(ft(e[r][0],t))return r;return-1}function wT(e,t,r,a){return Jt(e,function(c,p,T){t(a,c,r(c),T)}),a}function au(e,t){return e&&ht(t,Ae(t),e)}function _T(e,t){return e&&ht(t,Fe(t),e)}function kt(e,t,r){t=="__proto__"&&fo?fo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ls(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:Vs(e,t[r]);return c}function dn(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function nt(e,t,r,a,c,p){var T,h=t&R,x=t&G,I=t&M;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!fe(e))return e;var b=H(e);if(b){if(T=ph(e),!h)return Oe(e,T)}else{var L=Ce(e),C=L==Xr||L==uc;if(tn(e))return Pu(e,h);if(L==Lt||L==kn||C&&!c){if(T=x||C?{}:Xu(e),!h)return x?eh(e,_T(T,e)):jT(e,au(T,e))}else{if(!se[L])return c?e:{};T=fh(e,L,h)}}p||(p=new pt);var N=p.get(e);if(N)return N;p.set(e,T),Il(e)?e.forEach(function(B){T.add(nt(B,t,r,B,e,p))}):_l(e)&&e.forEach(function(B,Z){T.set(Z,nt(B,t,r,Z,e,p))});var U=I?x?ks:Cs:x?Fe:Ae,q=b?n:U(e);return je(q||e,function(B,Z){q&&(Z=B,B=e[Z]),xr(T,Z,nt(B,t,r,Z,e,p))}),T}function AT(e){var t=Ae(e);return function(r){return cu(r,e,t)}}function cu(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],p=t[c],T=e[c];if(T===n&&!(c in e)||!p(T))return!1}return!0}function uu(e,t,r){if(typeof e!="function")throw new et(m);return br(function(){e.apply(n,r)},t)}function Sr(e,t,r,a){var c=-1,p=to,T=!0,h=e.length,x=[],I=t.length;if(!h)return x;r&&(t=le(t,He(r))),a?(p=Xi,T=!1):t.length>=i&&(p=dr,T=!1,t=new fn(t));e:for(;++c<h;){var b=e[c],L=r==null?b:r(b);if(b=a||b!==0?b:0,T&&L===L){for(var C=I;C--;)if(t[C]===L)continue e;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Jt=Mu(Tt),lu=Mu(fs,!0);function IT(e,t){var r=!0;return Jt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function So(e,t,r){for(var a=-1,c=e.length;++a<c;){var p=e[a],T=t(p);if(T!=null&&(h===n?T===T&&!qe(T):r(T,h)))var h=T,x=p}return x}function bT(e,t,r,a){var c=e.length;for(r=V(r),r<0&&(r=-r>c?0:c+r),a=a===n||a>c?c:V(a),a<0&&(a+=c),a=r>a?0:Ll(a);r<a;)e[r++]=t;return e}function pu(e,t){var r=[];return Jt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function be(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=gh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Kt(c,h):a||(c[c.length]=h)}return c}var ps=Fu(),fu=Fu(!0);function Tt(e,t){return e&&ps(e,t,Ae)}function fs(e,t){return e&&fu(e,t,Ae)}function vo(e,t){return zt(t,function(r){return Nt(e[r])})}function gn(e,t){t=jt(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[yt(t[r++])];return r&&r==a?e:n}function du(e,t,r){var a=t(e);return H(e)?a:Kt(a,r(e))}function Pe(e){return e==null?e===n?tg:jd:ln&&ln in oe(e)?ch(e):vh(e)}function ds(e,t){return e>t}function LT(e,t){return e!=null&&re.call(e,t)}function ET(e,t){return e!=null&&t in oe(e)}function CT(e,t,r){return e>=Ee(t,r)&&e<we(t,r)}function gs(e,t,r){for(var a=r?Xi:to,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,I=[];T--;){var b=e[T];T&&t&&(b=le(b,He(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new fn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&I.length<x;){var N=b[L],U=t?t(N):N;if(N=r||N!==0?N:0,!(C?dr(C,U):a(I,U,r))){for(T=p;--T;){var q=h[T];if(!(q?dr(q,U):a(e[T],U,r)))continue e}C&&C.push(U),I.push(N)}}return I}function kT(e,t,r,a){return Tt(e,function(c,p,T){t(a,r(c),p,T)}),a}function vr(e,t,r){t=jt(t,e),e=el(e,t);var a=e==null?e:e[yt(ot(t))];return a==null?n:$e(a,e,r)}function gu(e){return ge(e)&&Pe(e)==kn}function PT(e){return ge(e)&&Pe(e)==fr}function RT(e){return ge(e)&&Pe(e)==ar}function wr(e,t,r,a,c){return e===t?!0:e==null||t==null||!ge(e)&&!ge(t)?e!==e&&t!==t:DT(e,t,r,a,wr,c)}function DT(e,t,r,a,c,p){var T=H(e),h=H(t),x=T?Yr:Ce(e),I=h?Yr:Ce(t);x=x==kn?Lt:x,I=I==kn?Lt:I;var b=x==Lt,L=I==Lt,C=x==I;if(C&&tn(e)){if(!tn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new pt),T||Hn(e)?Ku(e,t,r,a,c,p):sh(e,t,x,r,a,c,p);if(!(r&ue)){var N=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(N||U){var q=N?e.value():e,B=U?t.value():t;return p||(p=new pt),c(q,B,r,a,p)}}return C?(p||(p=new pt),ah(e,t,r,a,c,p)):!1}function NT(e){return ge(e)&&Ce(e)==ct}function ms(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],I=e[x],b=h[1];if(T&&h[2]){if(I===n&&!(x in e))return!1}else{var L=new pt;if(a)var C=a(I,b,x,e,t,L);if(!(C===n?wr(b,I,ue|de,a,L):C))return!1}}return!0}function mu(e){if(!fe(e)||Th(e))return!1;var t=Nt(e)?Nm:Ag;return t.test(Tn(e))}function OT(e){return ge(e)&&Pe(e)==ur}function MT(e){return ge(e)&&Ce(e)==ut}function FT(e){return ge(e)&&Uo(e.length)&&!!ce[Pe(e)]}function Tu(e){return typeof e=="function"?e:e==null?Ue:typeof e=="object"?H(e)?xu(e[0],e[1]):yu(e):Ul(e)}function Ts(e){if(!Ir(e))return Wm(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function UT(e){if(!fe(e))return Sh(e);var t=Ir(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function hs(e,t){return e<t}function hu(e,t){var r=-1,a=Me(e)?w(e.length):[];return Jt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function yu(e){var t=Rs(e);return t.length==1&&t[0][2]?Qu(t[0][0],t[0][1]):function(r){return r===e||ms(r,e,t)}}function xu(e,t){return Ns(e)&&Ju(t)?Qu(yt(e),t):function(r){var a=Vs(r,e);return a===n&&a===t?qs(r,e):wr(t,a,ue|de)}}function wo(e,t,r,a,c){e!==t&&ps(t,function(p,T){if(c||(c=new pt),fe(p))BT(e,t,T,r,wo,a,c);else{var h=a?a(Ms(e,T),p,T+"",e,t,c):n;h===n&&(h=p),us(e,T,h)}},Fe)}function BT(e,t,r,a,c,p,T){var h=Ms(e,r),x=Ms(t,r),I=T.get(x);if(I){us(e,r,I);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=H(x),N=!C&&tn(x),U=!C&&!N&&Hn(x);b=x,C||N||U?H(h)?b=h:Te(h)?b=Oe(h):N?(L=!1,b=Pu(x,!0)):U?(L=!1,b=Ru(x,!0)):b=[]:Lr(x)||hn(x)?(b=h,hn(h)?b=El(h):(!fe(h)||Nt(h))&&(b=Xu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),us(e,r,b)}function Su(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Dt(t,r)?e[t]:n}function vu(e,t,r){t.length?t=le(t,function(p){return H(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Ue];var a=-1;t=le(t,He(F()));var c=hu(e,function(p,T,h){var x=le(t,function(I){return I(p)});return{criteria:x,index:++a,value:p}});return fm(c,function(p,T){return QT(p,T,r)})}function WT(e,t){return wu(e,t,function(r,a){return qs(e,a)})}function wu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=gn(e,T);r(h,T)&&_r(p,jt(T,e),h)}return p}function GT(e){return function(t){return gn(t,e)}}function ys(e,t,r,a){var c=a?pm:Dn,p=-1,T=t.length,h=e;for(e===t&&(t=Oe(t)),r&&(h=le(e,He(r)));++p<T;)for(var x=0,I=t[p],b=r?r(I):I;(x=c(h,b,x,a))>-1;)h!==e&&po.call(h,x,1),po.call(e,x,1);return e}function _u(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Dt(c)?po.call(e,c,1):ws(e,c)}}return e}function xs(e,t){return e+mo(ru()*(t-e+1))}function $T(e,t,r,a){for(var c=-1,p=we(go((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function Ss(e,t){var r="";if(!e||t<1||t>qt)return r;do t%2&&(r+=e),t=mo(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Fs(ju(e,t,Ue),e+"")}function HT(e){return su(Vn(e))}function VT(e,t){var r=Vn(e);return Ro(r,dn(t,0,r.length))}function _r(e,t,r,a){if(!fe(e))return e;t=jt(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=yt(t[c]),I=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];I=a?a(b,x,h):n,I===n&&(I=fe(b)?b:Dt(t[c+1])?[]:{})}xr(h,x,I),h=h[x]}return e}var Au=To?function(e,t){return To.set(e,t),e}:Ue,qT=fo?function(e,t){return fo(e,"toString",{configurable:!0,enumerable:!1,value:Ks(t),writable:!0})}:Ue;function zT(e){return Ro(Vn(e))}function rt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var p=w(c);++a<c;)p[a]=e[a+t];return p}function KT(e,t){var r;return Jt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function _o(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=Zd){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!qe(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return vs(e,t,Ue,r)}function vs(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=qe(t),I=t===n;c<p;){var b=mo((c+p)/2),L=r(e[b]),C=L!==n,N=L===null,U=L===L,q=qe(L);if(T)var B=a||U;else I?B=U&&(a||C):h?B=U&&C&&(a||!N):x?B=U&&C&&!N&&(a||!q):N||q?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,Yd)}function Iu(e,t){for(var r=-1,a=e.length,c=0,p=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!ft(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function bu(e){return typeof e=="number"?e:qe(e)?Kr:+e}function Ve(e){if(typeof e=="string")return e;if(H(e))return le(e,Ve)+"";if(qe(e))return ou?ou.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Qt(e,t,r){var a=-1,c=to,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=Xi;else if(p>=i){var I=t?null:oh(e);if(I)return ro(I);T=!1,c=dr,x=new fn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function ws(e,t){return t=jt(t,e),e=el(e,t),e==null||delete e[yt(ot(t))]}function Lu(e,t,r,a){return _r(e,t,r(gn(e,t)),a)}function Ao(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?rt(e,a?0:p,a?p+1:c):rt(e,a?p+1:0,a?c:p)}function Eu(e,t){var r=e;return r instanceof X&&(r=r.value()),Ji(t,function(a,c){return c.func.apply(c.thisArg,Kt([a],c.args))},r)}function _s(e,t,r){var a=e.length;if(a<2)return a?Qt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=Sr(p[c]||T,e[h],t,r));return Qt(be(p,1),t,r)}function Cu(e,t,r){for(var a=-1,c=e.length,p=t.length,T={};++a<c;){var h=a<p?t[a]:n;r(T,e[a],h)}return T}function As(e){return Te(e)?e:[]}function Is(e){return typeof e=="function"?e:Ue}function jt(e,t){return H(e)?e:Ns(e,t)?[e]:ol(te(e))}var YT=Y;function en(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:rt(e,t,r)}var ku=Om||function(e){return _e.clearTimeout(e)};function Pu(e,t){if(t)return e.slice();var r=e.length,a=Qc?Qc(r):new e.constructor(r);return e.copy(a),a}function bs(e){var t=new e.constructor(e.byteLength);return new uo(t).set(new uo(e)),t}function ZT(e,t){var r=t?bs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function XT(e){var t=new e.constructor(e.source,gc.exec(e));return t.lastIndex=e.lastIndex,t}function JT(e){return yr?oe(yr.call(e)):{}}function Ru(e,t){var r=t?bs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Du(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=qe(e),T=t!==n,h=t===null,x=t===t,I=qe(t);if(!h&&!I&&!p&&e>t||p&&T&&x&&!h&&!I||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!I&&e<t||I&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)return-1}return 0}function QT(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var x=Du(c[a],p[a]);if(x){if(a>=h)return x;var I=r[a];return x*(I=="desc"?-1:1)}}return e.index-t.index}function Nu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,I=we(p-T,0),b=w(x+I),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;I--;)b[h++]=e[c++];return b}function Ou(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,I=t.length,b=we(p-h,0),L=w(b+I),C=!a;++c<b;)L[c]=e[c];for(var N=c;++x<I;)L[N+x]=t[x];for(;++T<h;)(C||c<p)&&(L[N+r[T]]=e[c++]);return L}function Oe(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function ht(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?kt(r,h,x):xr(r,h,x)}return r}function jT(e,t){return ht(e,Ds(e),t)}function eh(e,t){return ht(e,Yu(e),t)}function Io(e,t){return function(r,a){var c=H(r)?im:wT,p=t?t():{};return c(r,e,F(a,2),p)}}function Wn(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Mu(e,t){return function(r,a){if(r==null)return r;if(!Me(r))return e(r,a);for(var c=r.length,p=t?c:-1,T=oe(r);(t?p--:++p<c)&&a(T[p],p,T)!==!1;);return r}}function Fu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function th(e,t,r){var a=t&pe,c=Ar(e);function p(){var T=this&&this!==_e&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Uu(e){return function(t){t=te(t);var r=Nn(t)?lt(t):n,a=r?r[0]:t.charAt(0),c=r?en(r,1).join(""):t.slice(1);return a[e]()+c}}function Gn(e){return function(t){return Ji(Ml(Ol(t).replace(qg,"")),e,"")}}function Ar(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Bn(e.prototype),a=e.apply(r,t);return fe(a)?a:r}}function nh(e,t,r){var a=Ar(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=$n(c);h--;)T[h]=arguments[h];var I=p<3&&T[0]!==x&&T[p-1]!==x?[]:Yt(T,x);if(p-=I.length,p<r)return Hu(e,t,bo,c.placeholder,n,T,I,n,n,r-p);var b=this&&this!==_e&&this instanceof c?a:e;return $e(b,this,T)}return c}function Bu(e){return function(t,r,a){var c=oe(t);if(!Me(t)){var p=F(r,3);t=Ae(t),r=function(h){return p(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[p?t[T]:T]:n}}function Wu(e){return Rt(function(t){var r=t.length,a=r,c=tt.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new et(m);if(c&&!T&&ko(p)=="wrapper")var T=new tt([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=ko(p),x=h=="wrapper"?Ps(p):n;x&&Os(x[0])&&x[1]==(bt|Je|Ne|ir)&&!x[4].length&&x[9]==1?T=T[ko(x[0])].apply(T,x[3]):T=p.length==1&&Os(p)?T[h]():T.thru(p)}return function(){var I=arguments,b=I[0];if(T&&I.length==1&&H(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,I):b;++L<r;)C=t[L].call(this,C);return C}})}function bo(e,t,r,a,c,p,T,h,x,I){var b=t&bt,L=t&pe,C=t&Se,N=t&(Je|It),U=t&Pi,q=C?n:Ar(e);function B(){for(var Z=arguments.length,J=w(Z),ze=Z;ze--;)J[ze]=arguments[ze];if(N)var De=$n(B),Ke=gm(J,De);if(a&&(J=Nu(J,a,c,N)),p&&(J=Ou(J,p,T,N)),Z-=Ke,N&&Z<I){var he=Yt(J,De);return Hu(e,t,bo,B.placeholder,r,J,he,h,x,I-Z)}var dt=L?r:this,Mt=C?dt[e]:e;return Z=J.length,h?J=wh(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==_e&&this instanceof B&&(Mt=q||Ar(Mt)),Mt.apply(dt,J)}return B}function Gu(e,t){return function(r,a){return kT(r,e,t(a),{})}}function Lo(e,t){return function(r,a){var c;if(r===n&&a===n)return t;if(r!==n&&(c=r),a!==n){if(c===n)return a;typeof r=="string"||typeof a=="string"?(r=Ve(r),a=Ve(a)):(r=bu(r),a=bu(a)),c=e(r,a)}return c}}function Ls(e){return Rt(function(t){return t=le(t,He(F())),Y(function(r){var a=this;return e(t,function(c){return $e(c,a,r)})})})}function Eo(e,t){t=t===n?" ":Ve(t);var r=t.length;if(r<2)return r?Ss(t,e):t;var a=Ss(t,go(e/On(t)));return Nn(t)?en(lt(a),0,e).join(""):a.slice(0,e)}function rh(e,t,r,a){var c=t&pe,p=Ar(e);function T(){for(var h=-1,x=arguments.length,I=-1,b=a.length,L=w(b+x),C=this&&this!==_e&&this instanceof T?p:e;++I<b;)L[I]=a[I];for(;x--;)L[I++]=arguments[++h];return $e(C,c?r:this,L)}return T}function $u(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Ot(t),r===n?(r=t,t=0):r=Ot(r),a=a===n?t<r?1:-1:Ot(a),$T(t,r,a,e)}}function Co(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=it(t),r=it(r)),e(t,r)}}function Hu(e,t,r,a,c,p,T,h,x,I){var b=t&Je,L=b?T:n,C=b?n:T,N=b?p:n,U=b?n:p;t|=b?Ne:Vt,t&=~(b?Vt:Ne),t&zr||(t&=~(pe|Se));var q=[e,t,c,N,L,U,C,h,x,I],B=r.apply(n,q);return Os(e)&&tl(B,q),B.placeholder=a,nl(B,e,t)}function Es(e){var t=ve[e];return function(r,a){if(r=it(r),a=a==null?0:Ee(V(a),292),a&&nu(r)){var c=(te(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(te(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var oh=Fn&&1/ro(new Fn([,-0]))[1]==cn?function(e){return new Fn(e)}:Xs;function Vu(e){return function(t){var r=Ce(t);return r==ct?os(t):r==ut?vm(t):dm(t,e(t))}}function Pt(e,t,r,a,c,p,T,h){var x=t&Se;if(!x&&typeof e!="function")throw new et(m);var I=a?a.length:0;if(I||(t&=~(Ne|Vt),a=c=n),T=T===n?T:we(V(T),0),h=h===n?h:V(h),I-=c?c.length:0,t&Vt){var b=a,L=c;a=c=n}var C=x?n:Ps(e),N=[e,t,r,a,c,b,L,p,T,h];if(C&&xh(N,C),e=N[0],t=N[1],r=N[2],a=N[3],c=N[4],h=N[9]=N[9]===n?x?0:e.length:we(N[9]-I,0),!h&&t&(Je|It)&&(t&=~(Je|It)),!t||t==pe)var U=th(e,t,r);else t==Je||t==It?U=nh(e,t,h):(t==Ne||t==(pe|Ne))&&!c.length?U=rh(e,t,r,a):U=bo.apply(n,N);var q=C?Au:tl;return nl(q(U,N),e,t)}function qu(e,t,r,a){return e===n||ft(e,Mn[r])&&!re.call(a,r)?t:e}function zu(e,t,r,a,c,p){return fe(e)&&fe(t)&&(p.set(t,e),wo(e,t,n,zu,p),p.delete(t)),e}function ih(e){return Lr(e)?n:e}function Ku(e,t,r,a,c,p){var T=r&ue,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var I=p.get(e),b=p.get(t);if(I&&b)return I==t&&b==e;var L=-1,C=!0,N=r&de?new fn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],q=t[L];if(a)var B=T?a(q,U,L,t,e,p):a(U,q,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(N){if(!Qi(t,function(Z,J){if(!dr(N,J)&&(U===Z||c(U,Z,r,a,p)))return N.push(J)})){C=!1;break}}else if(!(U===q||c(U,q,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function sh(e,t,r,a,c,p,T){switch(r){case Pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fr:return!(e.byteLength!=t.byteLength||!p(new uo(e),new uo(t)));case sr:case ar:case cr:return ft(+e,+t);case Zr:return e.name==t.name&&e.message==t.message;case ur:case lr:return e==t+"";case ct:var h=os;case ut:var x=a&ue;if(h||(h=ro),e.size!=t.size&&!x)return!1;var I=T.get(e);if(I)return I==t;a|=de,T.set(e,t);var b=Ku(h(e),h(t),a,c,p,T);return T.delete(e),b;case Jr:if(yr)return yr.call(e)==yr.call(t)}return!1}function ah(e,t,r,a,c,p){var T=r&ue,h=Cs(e),x=h.length,I=Cs(t),b=I.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var N=p.get(e),U=p.get(t);if(N&&U)return N==t&&U==e;var q=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var ze=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(ze===n?Z===J||c(Z,J,r,a,p):ze)){q=!1;break}B||(B=C=="constructor")}if(q&&!B){var De=e.constructor,Ke=t.constructor;De!=Ke&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof Ke=="function"&&Ke instanceof Ke)&&(q=!1)}return p.delete(e),p.delete(t),q}function Rt(e){return Fs(ju(e,n,cl),e+"")}function Cs(e){return du(e,Ae,Ds)}function ks(e){return du(e,Fe,Yu)}var Ps=To?function(e){return To.get(e)}:Xs;function ko(e){for(var t=e.name+"",r=Un[t],a=re.call(Un,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function $n(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||Ys;return e=e===Ys?Tu:e,arguments.length?e(arguments[0],arguments[1]):e}function Po(e,t){var r=e.__data__;return mh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Rs(e){for(var t=Ae(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Ju(c)]}return t}function mn(e,t){var r=ym(e,t);return mu(r)?r:n}function ch(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=ao.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Ds=ss?function(e){return e==null?[]:(e=oe(e),zt(ss(e),function(t){return eu.call(e,t)}))}:Js,Yu=ss?function(e){for(var t=[];e;)Kt(t,Ds(e)),e=lo(e);return t}:Js,Ce=Pe;(as&&Ce(new as(new ArrayBuffer(1)))!=Pn||mr&&Ce(new mr)!=ct||cs&&Ce(cs.resolve())!=lc||Fn&&Ce(new Fn)!=ut||Tr&&Ce(new Tr)!=pr)&&(Ce=function(e){var t=Pe(e),r=t==Lt?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case Vm:return Pn;case qm:return ct;case zm:return lc;case Km:return ut;case Ym:return pr}return t});function uh(e,t,r){for(var a=-1,c=r.length;++a<c;){var p=r[a],T=p.size;switch(p.type){case"drop":e+=T;break;case"dropRight":t-=T;break;case"take":t=Ee(t,e+T);break;case"takeRight":e=we(e,t-T);break}}return{start:e,end:t}}function lh(e){var t=e.match(Tg);return t?t[1].split(hg):[]}function Zu(e,t,r){t=jt(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=yt(t[a]);if(!(p=e!=null&&r(e,T)))break;e=e[T]}return p||++a!=c?p:(c=e==null?0:e.length,!!c&&Uo(c)&&Dt(T,c)&&(H(e)||hn(e)))}function ph(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Xu(e){return typeof e.constructor=="function"&&!Ir(e)?Bn(lo(e)):{}}function fh(e,t,r){var a=e.constructor;switch(t){case fr:return bs(e);case sr:case ar:return new a(+e);case Pn:return ZT(e,r);case Ri:case Di:case Ni:case Oi:case Mi:case Fi:case Ui:case Bi:case Wi:return Ru(e,r);case ct:return new a;case cr:case lr:return new a(e);case ur:return XT(e);case ut:return new a;case Jr:return JT(e)}}function dh(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(mg,`{
2
2
  /* [wrapped with `+t+`] */
3
- `)}function fh(e){return H(e)||hn(e)||!!(tu&&e&&e[tu])}function Dt(e,t){var r=typeof e;return t=t==null?qt:t,!!t&&(r=="number"||r!="symbol"&&Ag.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!fe(r))return!1;var a=typeof t;return(a=="number"?Me(r)&&Dt(t,r.length):a=="string"&&t in r)?ft(r[t],e):!1}function Ns(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qe(e)?!0:ug.test(e)||!cg.test(e)||t!=null&&e in oe(t)}function dh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Os(e){var t=ko(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ps(r);return!!a&&e===a[0]}function gh(e){return!!Jc&&Jc in e}var mh=io?Nt:Qs;function Ir(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mn;return e===r}function Ju(e){return e===e&&!fe(e)}function Qu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function Th(e){var t=Mo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function hh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(pe|Se|bt),T=a==bt&&r==Je||a==bt&&r==ir&&e[7].length<=t[8]||a==(bt|ir)&&t[7].length<=t[8]&&r==Je;if(!(p||T))return e;a&pe&&(e[2]=t[2],c|=r&pe?0:zr);var h=t[3];if(h){var x=e[3];e[3]=x?Nu(x,h,t[4]):h,e[4]=x?Yt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Ou(x,h,t[6]):h,e[6]=x?Yt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&bt&&(e[8]=e[8]==null?t[8]:Ee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function yh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function xh(e){return ao.call(e)}function ju(e,t,r){return t=we(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=we(a.length-t,0),T=w(p);++c<p;)T[c]=a[t+c];c=-1;for(var h=w(t+1);++c<t;)h[c]=a[c];return h[t]=r(T),$e(e,this,h)}}function el(e,t){return t.length<2?e:gn(e,rt(t,0,-1))}function Sh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Oe(e);a--;){var p=t[a];e[a]=Dt(p,r)?c[p]:n}return e}function Ms(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tl=rl(Au),br=Om||function(e,t){return _e.setTimeout(e,t)},Fs=rl(HT);function nl(e,t,r){var a=t+"";return Fs(e,ph(a,vh(ch(a),r)))}function rl(e){var t=0,r=0;return function(){var a=Bm(),c=$d-(a-r);if(r=a,c>0){if(++t>=Gd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=xs(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var ol=Th(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lg,function(r,a,c,p){t.push(c?p.replace(yg,"$1"):a||r)}),t});function yt(e){if(typeof e=="string"||qe(e))return e;var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Tn(e){if(e!=null){try{return so.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function vh(e,t){return je(Yd,function(r){var a="_."+r[0];t&r[1]&&!to(e,a)&&e.push(a)}),e.sort()}function il(e){if(e instanceof X)return e.clone();var t=new tt(e.__wrapped__,e.__chain__);return t.__actions__=Oe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function wh(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=we(V(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(go(a/t));c<a;)T[p++]=rt(e,c,c+=t);return T}function _h(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var p=e[t];p&&(c[a++]=p)}return c}function Ah(){var e=arguments.length;if(!e)return[];for(var t=w(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Kt(H(r)?Oe(r):[r],be(t,1))}var Ih=Y(function(e,t){return Te(e)?Sr(e,be(t,1,Te,!0)):[]}),bh=Y(function(e,t){var r=ot(t);return Te(r)&&(r=n),Te(e)?Sr(e,be(t,1,Te,!0),F(r,2)):[]}),Lh=Y(function(e,t){var r=ot(t);return Te(r)&&(r=n),Te(e)?Sr(e,be(t,1,Te,!0),n,r):[]});function Eh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),rt(e,t<0?0:t,a)):[]}function Ch(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,rt(e,0,t<0?0:t)):[]}function kh(e,t){return e&&e.length?Ao(e,F(t,3),!0,!0):[]}function Ph(e,t){return e&&e.length?Ao(e,F(t,3),!0):[]}function Rh(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&Re(e,t,r)&&(r=0,a=c),AT(e,t,r,a)):[]}function sl(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:V(r);return c<0&&(c=we(a+c,0)),no(e,F(t,3),c)}function al(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==n&&(c=V(r),c=r<0?we(a+c,0):Ee(c,a-1)),no(e,F(t,3),c,!0)}function cl(e){var t=e==null?0:e.length;return t?be(e,1):[]}function Dh(e){var t=e==null?0:e.length;return t?be(e,cn):[]}function Nh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),be(e,t)):[]}function Oh(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function ul(e){return e&&e.length?e[0]:n}function Mh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:V(r);return c<0&&(c=we(a+c,0)),Dn(e,t,c)}function Fh(e){var t=e==null?0:e.length;return t?rt(e,0,-1):[]}var Uh=Y(function(e){var t=le(e,As);return t.length&&t[0]===e[0]?gs(t):[]}),Bh=Y(function(e){var t=ot(e),r=le(e,As);return t===ot(r)?t=n:r.pop(),r.length&&r[0]===e[0]?gs(r,F(t,2)):[]}),Wh=Y(function(e){var t=ot(e),r=le(e,As);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?gs(r,n,t):[]});function Gh(e,t){return e==null?"":Fm.call(e,t)}function ot(e){var t=e==null?0:e.length;return t?e[t-1]:n}function $h(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==n&&(c=V(r),c=c<0?we(a+c,0):Ee(c,a-1)),t===t?vm(e,t,c):no(e,Hc,c,!0)}function Hh(e,t){return e&&e.length?Su(e,V(t)):n}var Vh=Y(ll);function ll(e,t){return e&&e.length&&t&&t.length?ys(e,t):e}function qh(e,t,r){return e&&e.length&&t&&t.length?ys(e,t,F(r,2)):e}function zh(e,t,r){return e&&e.length&&t&&t.length?ys(e,t,n,r):e}var Kh=Rt(function(e,t){var r=e==null?0:e.length,a=ls(e,t);return _u(e,le(t,function(c){return Dt(c,r)?+c:c}).sort(Du)),a});function Yh(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=F(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return _u(e,c),r}function Us(e){return e==null?e:Gm.call(e)}function Zh(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&Re(e,t,r)?(t=0,r=a):(t=t==null?0:V(t),r=r===n?a:V(r)),rt(e,t,r)):[]}function Xh(e,t){return _o(e,t)}function Jh(e,t,r){return vs(e,t,F(r,2))}function Qh(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t);if(a<r&&ft(e[a],t))return a}return-1}function jh(e,t){return _o(e,t,!0)}function ey(e,t,r){return vs(e,t,F(r,2),!0)}function ty(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t,!0)-1;if(ft(e[a],t))return a}return-1}function ny(e){return e&&e.length?Iu(e):[]}function ry(e,t){return e&&e.length?Iu(e,F(t,2)):[]}function oy(e){var t=e==null?0:e.length;return t?rt(e,1,t):[]}function iy(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),rt(e,0,t<0?0:t)):[]}function sy(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,rt(e,t<0?0:t,a)):[]}function ay(e,t){return e&&e.length?Ao(e,F(t,3),!1,!0):[]}function cy(e,t){return e&&e.length?Ao(e,F(t,3)):[]}var uy=Y(function(e){return Qt(be(e,1,Te,!0))}),ly=Y(function(e){var t=ot(e);return Te(t)&&(t=n),Qt(be(e,1,Te,!0),F(t,2))}),py=Y(function(e){var t=ot(e);return t=typeof t=="function"?t:n,Qt(be(e,1,Te,!0),n,t)});function fy(e){return e&&e.length?Qt(e):[]}function dy(e,t){return e&&e.length?Qt(e,F(t,2)):[]}function gy(e,t){return t=typeof t=="function"?t:n,e&&e.length?Qt(e,n,t):[]}function Bs(e){if(!(e&&e.length))return[];var t=0;return e=zt(e,function(r){if(Te(r))return t=we(r.length,t),!0}),ns(t,function(r){return le(e,ji(r))})}function pl(e,t){if(!(e&&e.length))return[];var r=Bs(e);return t==null?r:le(r,function(a){return $e(t,n,a)})}var my=Y(function(e,t){return Te(e)?Sr(e,t):[]}),Ty=Y(function(e){return _s(zt(e,Te))}),hy=Y(function(e){var t=ot(e);return Te(t)&&(t=n),_s(zt(e,Te),F(t,2))}),yy=Y(function(e){var t=ot(e);return t=typeof t=="function"?t:n,_s(zt(e,Te),n,t)}),xy=Y(Bs);function Sy(e,t){return Cu(e||[],t||[],xr)}function vy(e,t){return Cu(e||[],t||[],_r)}var wy=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,pl(e,r)});function fl(e){var t=l(e);return t.__chain__=!0,t}function _y(e,t){return t(e),e}function Do(e,t){return t(e)}var Ay=Rt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return ls(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Dt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Do,args:[c],thisArg:n}),new tt(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function Iy(){return fl(this)}function by(){return new tt(this.value(),this.__chain__)}function Ly(){this.__values__===n&&(this.__values__=bl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Ey(){return this}function Cy(e){for(var t,r=this;r instanceof yo;){var a=il(r);a.__index__=0,a.__values__=n,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function ky(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Do,args:[Us],thisArg:n}),new tt(t,this.__chain__)}return this.thru(Us)}function Py(){return Eu(this.__wrapped__,this.__actions__)}var Ry=Io(function(e,t,r){re.call(e,r)?++e[r]:kt(e,r,1)});function Dy(e,t,r){var a=H(e)?Gc:_T;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}function Ny(e,t){var r=H(e)?zt:pu;return r(e,F(t,3))}var Oy=Bu(sl),My=Bu(al);function Fy(e,t){return be(No(e,t),1)}function Uy(e,t){return be(No(e,t),cn)}function By(e,t,r){return r=r===n?1:V(r),be(No(e,t),r)}function dl(e,t){var r=H(e)?je:Jt;return r(e,F(t,3))}function gl(e,t){var r=H(e)?om:lu;return r(e,F(t,3))}var Wy=Io(function(e,t,r){re.call(e,r)?e[r].push(t):kt(e,r,[t])});function Gy(e,t,r,a){e=Me(e)?e:Vn(e),r=r&&!a?V(r):0;var c=e.length;return r<0&&(r=we(c+r,0)),Bo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Dn(e,t,r)>-1}var $y=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Me(e)?w(e.length):[];return Jt(e,function(T){p[++a]=c?$e(t,T,r):vr(T,t,r)}),p}),Hy=Io(function(e,t,r){kt(e,r,t)});function No(e,t){var r=H(e)?le:hu;return r(e,F(t,3))}function Vy(e,t,r,a){return e==null?[]:(H(t)||(t=t==null?[]:[t]),r=a?n:r,H(r)||(r=r==null?[]:[r]),vu(e,t,r))}var qy=Io(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function zy(e,t,r){var a=H(e)?Ji:qc,c=arguments.length<3;return a(e,F(t,4),r,c,Jt)}function Ky(e,t,r){var a=H(e)?im:qc,c=arguments.length<3;return a(e,F(t,4),r,c,lu)}function Yy(e,t){var r=H(e)?zt:pu;return r(e,Fo(F(t,3)))}function Zy(e){var t=H(e)?su:GT;return t(e)}function Xy(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=H(e)?yT:$T;return a(e,t)}function Jy(e){var t=H(e)?xT:VT;return t(e)}function Qy(e){if(e==null)return 0;if(Me(e))return Bo(e)?On(e):e.length;var t=Ce(e);return t==ct||t==ut?e.size:Ts(e).length}function jy(e,t,r){var a=H(e)?Qi:qT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}var ex=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),vu(e,be(t,1),[])}),Oo=Nm||function(){return _e.Date.now()};function tx(e,t){if(typeof t!="function")throw new et(m);return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function ml(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Pt(e,bt,n,n,n,n,t)}function Tl(e,t){var r;if(typeof t!="function")throw new et(m);return e=V(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ws=Y(function(e,t,r){var a=pe;if(r.length){var c=Yt(r,$n(Ws));a|=Ne}return Pt(e,a,t,r,c)}),hl=Y(function(e,t,r){var a=pe|Se;if(r.length){var c=Yt(r,$n(hl));a|=Ne}return Pt(t,a,e,r,c)});function yl(e,t,r){t=r?n:t;var a=Pt(e,Je,n,n,n,n,n,t);return a.placeholder=yl.placeholder,a}function xl(e,t,r){t=r?n:t;var a=Pt(e,It,n,n,n,n,n,t);return a.placeholder=xl.placeholder,a}function Sl(e,t,r){var a,c,p,T,h,x,I=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new et(m);t=it(t)||0,fe(r)&&(b=!!r.leading,L="maxWait"in r,p=L?we(it(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function N(he){var dt=a,Mt=c;return a=c=n,I=he,T=e.apply(Mt,dt),T}function U(he){return I=he,h=br(Z,t),b?N(he):T}function q(he){var dt=he-x,Mt=he-I,Bl=t-dt;return L?Ee(Bl,p-Mt):Bl}function B(he){var dt=he-x,Mt=he-I;return x===n||dt>=t||dt<0||L&&Mt>=p}function Z(){var he=Oo();if(B(he))return J(he);h=br(Z,q(he))}function J(he){return h=n,C&&a?N(he):(a=c=n,T)}function ze(){h!==n&&ku(h),I=0,a=x=c=h=n}function De(){return h===n?T:J(Oo())}function Ke(){var he=Oo(),dt=B(he);if(a=arguments,c=this,x=he,dt){if(h===n)return U(x);if(L)return ku(h),h=br(Z,t),N(x)}return h===n&&(h=br(Z,t)),T}return Ke.cancel=ze,Ke.flush=De,Ke}var nx=Y(function(e,t){return uu(e,1,t)}),rx=Y(function(e,t,r){return uu(e,it(t)||0,r)});function ox(e){return Pt(e,Pi)}function Mo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new et(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],p=r.cache;if(p.has(c))return p.get(c);var T=e.apply(this,a);return r.cache=p.set(c,T)||p,T};return r.cache=new(Mo.Cache||Ct),r}Mo.Cache=Ct;function Fo(e){if(typeof e!="function")throw new et(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ix(e){return Tl(2,e)}var sx=zT(function(e,t){t=t.length==1&&H(t[0])?le(t[0],He(F())):le(be(t,1),He(F()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return $e(e,this,a)})}),Gs=Y(function(e,t){var r=Yt(t,$n(Gs));return Pt(e,Ne,n,t,r)}),vl=Y(function(e,t){var r=Yt(t,$n(vl));return Pt(e,Vt,n,t,r)}),ax=Rt(function(e,t){return Pt(e,ir,n,n,n,t)});function cx(e,t){if(typeof e!="function")throw new et(m);return t=t===n?t:V(t),Y(e,t)}function ux(e,t){if(typeof e!="function")throw new et(m);return t=t==null?0:we(V(t),0),Y(function(r){var a=r[t],c=en(r,0,t);return a&&Kt(c,a),$e(e,this,c)})}function lx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new et(m);return fe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Sl(e,t,{leading:a,maxWait:t,trailing:c})}function px(e){return ml(e,1)}function fx(e,t){return Gs(Is(t),e)}function dx(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function gx(e){return nt(e,M)}function mx(e,t){return t=typeof t=="function"?t:n,nt(e,M,t)}function Tx(e){return nt(e,R|M)}function hx(e,t){return t=typeof t=="function"?t:n,nt(e,R|M,t)}function yx(e,t){return t==null||cu(e,t,Ae(t))}function ft(e,t){return e===t||e!==e&&t!==t}var xx=Co(ds),Sx=Co(function(e,t){return e>=t}),hn=gu(function(){return arguments}())?gu:function(e){return ge(e)&&re.call(e,"callee")&&!eu.call(e,"callee")},H=w.isArray,vx=Oc?He(Oc):CT;function Me(e){return e!=null&&Uo(e.length)&&!Nt(e)}function Te(e){return ge(e)&&Me(e)}function wx(e){return e===!0||e===!1||ge(e)&&Pe(e)==sr}var tn=Mm||Qs,_x=Mc?He(Mc):kT;function Ax(e){return ge(e)&&e.nodeType===1&&!Lr(e)}function Ix(e){if(e==null)return!0;if(Me(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||tn(e)||Hn(e)||hn(e)))return!e.length;var t=Ce(e);if(t==ct||t==ut)return!e.size;if(Ir(e))return!Ts(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function bx(e,t){return wr(e,t)}function Lx(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?wr(e,t,n,r):!!a}function $s(e){if(!ge(e))return!1;var t=Pe(e);return t==Zr||t==Xd||typeof e.message=="string"&&typeof e.name=="string"&&!Lr(e)}function Ex(e){return typeof e=="number"&&nu(e)}function Nt(e){if(!fe(e))return!1;var t=Pe(e);return t==Xr||t==uc||t==Zd||t==Qd}function wl(e){return typeof e=="number"&&e==V(e)}function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qt}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ge(e){return e!=null&&typeof e=="object"}var _l=Fc?He(Fc):RT;function Cx(e,t){return e===t||ms(e,t,Rs(t))}function kx(e,t,r){return r=typeof r=="function"?r:n,ms(e,t,Rs(t),r)}function Px(e){return Al(e)&&e!=+e}function Rx(e){if(mh(e))throw new $(u);return mu(e)}function Dx(e){return e===null}function Nx(e){return e==null}function Al(e){return typeof e=="number"||ge(e)&&Pe(e)==cr}function Lr(e){if(!ge(e)||Pe(e)!=Lt)return!1;var t=lo(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&so.call(r)==km}var Hs=Uc?He(Uc):DT;function Ox(e){return wl(e)&&e>=-qt&&e<=qt}var Il=Bc?He(Bc):NT;function Bo(e){return typeof e=="string"||!H(e)&&ge(e)&&Pe(e)==lr}function qe(e){return typeof e=="symbol"||ge(e)&&Pe(e)==Jr}var Hn=Wc?He(Wc):OT;function Mx(e){return e===n}function Fx(e){return ge(e)&&Ce(e)==pr}function Ux(e){return ge(e)&&Pe(e)==eg}var Bx=Co(hs),Wx=Co(function(e,t){return e<=t});function bl(e){if(!e)return[];if(Me(e))return Bo(e)?lt(e):Oe(e);if(gr&&e[gr])return ym(e[gr]());var t=Ce(e),r=t==ct?os:t==ut?ro:Vn;return r(e)}function Ot(e){if(!e)return e===0?e:0;if(e=it(e),e===cn||e===-cn){var t=e<0?-1:1;return t*qd}return e===e?e:0}function V(e){var t=Ot(e),r=t%1;return t===t?r?t-r:t:0}function Ll(e){return e?dn(V(e),0,mt):0}function it(e){if(typeof e=="number")return e;if(qe(e))return Kr;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zc(e);var r=vg.test(e);return r||_g.test(e)?tm(e.slice(2),r?2:8):Sg.test(e)?Kr:+e}function El(e){return ht(e,Fe(e))}function Gx(e){return e?dn(V(e),-qt,qt):e===0?e:0}function te(e){return e==null?"":Ve(e)}var $x=Wn(function(e,t){if(Ir(t)||Me(t)){ht(t,Ae(t),e);return}for(var r in t)re.call(t,r)&&xr(e,r,t[r])}),Cl=Wn(function(e,t){ht(t,Fe(t),e)}),Wo=Wn(function(e,t,r,a){ht(t,Fe(t),e,a)}),Hx=Wn(function(e,t,r,a){ht(t,Ae(t),e,a)}),Vx=Rt(ls);function qx(e,t){var r=Bn(e);return t==null?r:au(r,t)}var zx=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Fe(p),h=-1,x=T.length;++h<x;){var I=T[h],b=e[I];(b===n||ft(b,Mn[I])&&!re.call(e,I))&&(e[I]=p[I])}return e}),Kx=Y(function(e){return e.push(n,zu),$e(kl,n,e)});function Yx(e,t){return $c(e,F(t,3),Tt)}function Zx(e,t){return $c(e,F(t,3),fs)}function Xx(e,t){return e==null?e:ps(e,F(t,3),Fe)}function Jx(e,t){return e==null?e:fu(e,F(t,3),Fe)}function Qx(e,t){return e&&Tt(e,F(t,3))}function jx(e,t){return e&&fs(e,F(t,3))}function eS(e){return e==null?[]:vo(e,Ae(e))}function tS(e){return e==null?[]:vo(e,Fe(e))}function Vs(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function nS(e,t){return e!=null&&Zu(e,t,IT)}function qs(e,t){return e!=null&&Zu(e,t,bT)}var rS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ao.call(t)),e[t]=r},Ks(Ue)),oS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ao.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},F),iS=Y(vr);function Ae(e){return Me(e)?iu(e):Ts(e)}function Fe(e){return Me(e)?iu(e,!0):MT(e)}function sS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,t(a,c,p),a)}),r}function aS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,c,t(a,c,p))}),r}var cS=Wn(function(e,t,r){wo(e,t,r)}),kl=Wn(function(e,t,r,a){wo(e,t,r,a)}),uS=Rt(function(e,t){var r={};if(e==null)return r;var a=!1;t=le(t,function(p){return p=jt(p,e),a||(a=p.length>1),p}),ht(e,ks(e),r),a&&(r=nt(r,R|G|M,rh));for(var c=t.length;c--;)ws(r,t[c]);return r});function lS(e,t){return Pl(e,Fo(F(t)))}var pS=Rt(function(e,t){return e==null?{}:UT(e,t)});function Pl(e,t){if(e==null)return{};var r=le(ks(e),function(a){return[a]});return t=F(t),wu(e,r,function(a,c){return t(a,c[0])})}function fS(e,t,r){t=jt(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[yt(t[a])];p===n&&(a=c,p=r),e=Nt(p)?p.call(e):p}return e}function dS(e,t,r){return e==null?e:_r(e,t,r)}function gS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:_r(e,t,r,a)}var Rl=Vu(Ae),Dl=Vu(Fe);function mS(e,t,r){var a=H(e),c=a||tn(e)||Hn(e);if(t=F(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:fe(e)?r=Nt(p)?Bn(lo(e)):{}:r={}}return(c?je:Tt)(e,function(T,h,x){return t(r,T,h,x)}),r}function TS(e,t){return e==null?!0:ws(e,t)}function hS(e,t,r){return e==null?e:Lu(e,t,Is(r))}function yS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Lu(e,t,Is(r),a)}function Vn(e){return e==null?[]:rs(e,Ae(e))}function xS(e){return e==null?[]:rs(e,Fe(e))}function SS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=it(r),r=r===r?r:0),t!==n&&(t=it(t),t=t===t?t:0),dn(it(e),t,r)}function vS(e,t,r){return t=Ot(t),r===n?(r=t,t=0):r=Ot(r),e=it(e),LT(e,t,r)}function wS(e,t,r){if(r&&typeof r!="boolean"&&Re(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ot(e),t===n?(t=e,e=0):t=Ot(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=ru();return Ee(e+c*(t-e+em("1e-"+((c+"").length-1))),t)}return xs(e,t)}var _S=Gn(function(e,t,r){return t=t.toLowerCase(),e+(r?Nl(t):t)});function Nl(e){return zs(te(e).toLowerCase())}function Ol(e){return e=te(e),e&&e.replace(Ig,dm).replace(Vg,"")}function AS(e,t,r){e=te(e),t=Ve(t);var a=e.length;r=r===n?a:dn(V(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function IS(e){return e=te(e),e&&ig.test(e)?e.replace(fc,gm):e}function bS(e){return e=te(e),e&&pg.test(e)?e.replace(Gi,"\\$&"):e}var LS=Gn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ES=Gn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),CS=Uu("toLowerCase");function kS(e,t,r){e=te(e),t=V(t);var a=t?On(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Eo(mo(c),r)+e+Eo(go(c),r)}function PS(e,t,r){e=te(e),t=V(t);var a=t?On(e):0;return t&&a<t?e+Eo(t-a,r):e}function RS(e,t,r){e=te(e),t=V(t);var a=t?On(e):0;return t&&a<t?Eo(t-a,r)+e:e}function DS(e,t,r){return r||t==null?t=0:t&&(t=+t),Wm(te(e).replace($i,""),t||0)}function NS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),Ss(te(e),t)}function OS(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var MS=Gn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function FS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?mt:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!Hs(t))&&(t=Ve(t),!t&&Nn(e))?en(lt(e),0,r):e.split(t,r)):[]}var US=Gn(function(e,t,r){return e+(r?" ":"")+zs(t)});function BS(e,t,r){return e=te(e),r=r==null?0:dn(V(r),0,e.length),t=Ve(t),e.slice(r,r+t.length)==t}function WS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Wo({},t,a,qu);var c=Wo({},t.imports,a.imports,qu),p=Ae(c),T=rs(c,p),h,x,I=0,b=t.interpolate||Qr,L="__p += '",C=is((t.escape||Qr).source+"|"+b.source+"|"+(b===dc?xg:Qr).source+"|"+(t.evaluate||Qr).source+"|$","g"),N="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zg+"]")+`
4
- `;e.replace(C,function(B,Z,J,ze,De,Ke){return J||(J=ze),L+=e.slice(I,Ke).replace(bg,mm),Z&&(h=!0,L+=`' +
3
+ `)}function gh(e){return H(e)||hn(e)||!!(tu&&e&&e[tu])}function Dt(e,t){var r=typeof e;return t=t==null?qt:t,!!t&&(r=="number"||r!="symbol"&&bg.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!fe(r))return!1;var a=typeof t;return(a=="number"?Me(r)&&Dt(t,r.length):a=="string"&&t in r)?ft(r[t],e):!1}function Ns(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qe(e)?!0:pg.test(e)||!lg.test(e)||t!=null&&e in oe(t)}function mh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Os(e){var t=ko(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ps(r);return!!a&&e===a[0]}function Th(e){return!!Jc&&Jc in e}var hh=io?Nt:Qs;function Ir(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mn;return e===r}function Ju(e){return e===e&&!fe(e)}function Qu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function yh(e){var t=Mo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function xh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(pe|Se|bt),T=a==bt&&r==Je||a==bt&&r==ir&&e[7].length<=t[8]||a==(bt|ir)&&t[7].length<=t[8]&&r==Je;if(!(p||T))return e;a&pe&&(e[2]=t[2],c|=r&pe?0:zr);var h=t[3];if(h){var x=e[3];e[3]=x?Nu(x,h,t[4]):h,e[4]=x?Yt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Ou(x,h,t[6]):h,e[6]=x?Yt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&bt&&(e[8]=e[8]==null?t[8]:Ee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function Sh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function vh(e){return ao.call(e)}function ju(e,t,r){return t=we(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=we(a.length-t,0),T=w(p);++c<p;)T[c]=a[t+c];c=-1;for(var h=w(t+1);++c<t;)h[c]=a[c];return h[t]=r(T),$e(e,this,h)}}function el(e,t){return t.length<2?e:gn(e,rt(t,0,-1))}function wh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Oe(e);a--;){var p=t[a];e[a]=Dt(p,r)?c[p]:n}return e}function Ms(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tl=rl(Au),br=Fm||function(e,t){return _e.setTimeout(e,t)},Fs=rl(qT);function nl(e,t,r){var a=t+"";return Fs(e,dh(a,_h(lh(a),r)))}function rl(e){var t=0,r=0;return function(){var a=Gm(),c=Vd-(a-r);if(r=a,c>0){if(++t>=Hd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=xs(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var ol=yh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fg,function(r,a,c,p){t.push(c?p.replace(Sg,"$1"):a||r)}),t});function yt(e){if(typeof e=="string"||qe(e))return e;var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Tn(e){if(e!=null){try{return so.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _h(e,t){return je(Xd,function(r){var a="_."+r[0];t&r[1]&&!to(e,a)&&e.push(a)}),e.sort()}function il(e){if(e instanceof X)return e.clone();var t=new tt(e.__wrapped__,e.__chain__);return t.__actions__=Oe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ah(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=we(V(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(go(a/t));c<a;)T[p++]=rt(e,c,c+=t);return T}function Ih(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var p=e[t];p&&(c[a++]=p)}return c}function bh(){var e=arguments.length;if(!e)return[];for(var t=w(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Kt(H(r)?Oe(r):[r],be(t,1))}var Lh=Y(function(e,t){return Te(e)?Sr(e,be(t,1,Te,!0)):[]}),Eh=Y(function(e,t){var r=ot(t);return Te(r)&&(r=n),Te(e)?Sr(e,be(t,1,Te,!0),F(r,2)):[]}),Ch=Y(function(e,t){var r=ot(t);return Te(r)&&(r=n),Te(e)?Sr(e,be(t,1,Te,!0),n,r):[]});function kh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),rt(e,t<0?0:t,a)):[]}function Ph(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,rt(e,0,t<0?0:t)):[]}function Rh(e,t){return e&&e.length?Ao(e,F(t,3),!0,!0):[]}function Dh(e,t){return e&&e.length?Ao(e,F(t,3),!0):[]}function Nh(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&Re(e,t,r)&&(r=0,a=c),bT(e,t,r,a)):[]}function sl(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:V(r);return c<0&&(c=we(a+c,0)),no(e,F(t,3),c)}function al(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==n&&(c=V(r),c=r<0?we(a+c,0):Ee(c,a-1)),no(e,F(t,3),c,!0)}function cl(e){var t=e==null?0:e.length;return t?be(e,1):[]}function Oh(e){var t=e==null?0:e.length;return t?be(e,cn):[]}function Mh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),be(e,t)):[]}function Fh(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function ul(e){return e&&e.length?e[0]:n}function Uh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:V(r);return c<0&&(c=we(a+c,0)),Dn(e,t,c)}function Bh(e){var t=e==null?0:e.length;return t?rt(e,0,-1):[]}var Wh=Y(function(e){var t=le(e,As);return t.length&&t[0]===e[0]?gs(t):[]}),Gh=Y(function(e){var t=ot(e),r=le(e,As);return t===ot(r)?t=n:r.pop(),r.length&&r[0]===e[0]?gs(r,F(t,2)):[]}),$h=Y(function(e){var t=ot(e),r=le(e,As);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?gs(r,n,t):[]});function Hh(e,t){return e==null?"":Bm.call(e,t)}function ot(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Vh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==n&&(c=V(r),c=c<0?we(a+c,0):Ee(c,a-1)),t===t?_m(e,t,c):no(e,Hc,c,!0)}function qh(e,t){return e&&e.length?Su(e,V(t)):n}var zh=Y(ll);function ll(e,t){return e&&e.length&&t&&t.length?ys(e,t):e}function Kh(e,t,r){return e&&e.length&&t&&t.length?ys(e,t,F(r,2)):e}function Yh(e,t,r){return e&&e.length&&t&&t.length?ys(e,t,n,r):e}var Zh=Rt(function(e,t){var r=e==null?0:e.length,a=ls(e,t);return _u(e,le(t,function(c){return Dt(c,r)?+c:c}).sort(Du)),a});function Xh(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=F(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return _u(e,c),r}function Us(e){return e==null?e:Hm.call(e)}function Jh(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&Re(e,t,r)?(t=0,r=a):(t=t==null?0:V(t),r=r===n?a:V(r)),rt(e,t,r)):[]}function Qh(e,t){return _o(e,t)}function jh(e,t,r){return vs(e,t,F(r,2))}function ey(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t);if(a<r&&ft(e[a],t))return a}return-1}function ty(e,t){return _o(e,t,!0)}function ny(e,t,r){return vs(e,t,F(r,2),!0)}function ry(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t,!0)-1;if(ft(e[a],t))return a}return-1}function oy(e){return e&&e.length?Iu(e):[]}function iy(e,t){return e&&e.length?Iu(e,F(t,2)):[]}function sy(e){var t=e==null?0:e.length;return t?rt(e,1,t):[]}function ay(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),rt(e,0,t<0?0:t)):[]}function cy(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,rt(e,t<0?0:t,a)):[]}function uy(e,t){return e&&e.length?Ao(e,F(t,3),!1,!0):[]}function ly(e,t){return e&&e.length?Ao(e,F(t,3)):[]}var py=Y(function(e){return Qt(be(e,1,Te,!0))}),fy=Y(function(e){var t=ot(e);return Te(t)&&(t=n),Qt(be(e,1,Te,!0),F(t,2))}),dy=Y(function(e){var t=ot(e);return t=typeof t=="function"?t:n,Qt(be(e,1,Te,!0),n,t)});function gy(e){return e&&e.length?Qt(e):[]}function my(e,t){return e&&e.length?Qt(e,F(t,2)):[]}function Ty(e,t){return t=typeof t=="function"?t:n,e&&e.length?Qt(e,n,t):[]}function Bs(e){if(!(e&&e.length))return[];var t=0;return e=zt(e,function(r){if(Te(r))return t=we(r.length,t),!0}),ns(t,function(r){return le(e,ji(r))})}function pl(e,t){if(!(e&&e.length))return[];var r=Bs(e);return t==null?r:le(r,function(a){return $e(t,n,a)})}var hy=Y(function(e,t){return Te(e)?Sr(e,t):[]}),yy=Y(function(e){return _s(zt(e,Te))}),xy=Y(function(e){var t=ot(e);return Te(t)&&(t=n),_s(zt(e,Te),F(t,2))}),Sy=Y(function(e){var t=ot(e);return t=typeof t=="function"?t:n,_s(zt(e,Te),n,t)}),vy=Y(Bs);function wy(e,t){return Cu(e||[],t||[],xr)}function _y(e,t){return Cu(e||[],t||[],_r)}var Ay=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,pl(e,r)});function fl(e){var t=l(e);return t.__chain__=!0,t}function Iy(e,t){return t(e),e}function Do(e,t){return t(e)}var by=Rt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return ls(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Dt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Do,args:[c],thisArg:n}),new tt(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function Ly(){return fl(this)}function Ey(){return new tt(this.value(),this.__chain__)}function Cy(){this.__values__===n&&(this.__values__=bl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function ky(){return this}function Py(e){for(var t,r=this;r instanceof yo;){var a=il(r);a.__index__=0,a.__values__=n,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function Ry(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Do,args:[Us],thisArg:n}),new tt(t,this.__chain__)}return this.thru(Us)}function Dy(){return Eu(this.__wrapped__,this.__actions__)}var Ny=Io(function(e,t,r){re.call(e,r)?++e[r]:kt(e,r,1)});function Oy(e,t,r){var a=H(e)?Gc:IT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}function My(e,t){var r=H(e)?zt:pu;return r(e,F(t,3))}var Fy=Bu(sl),Uy=Bu(al);function By(e,t){return be(No(e,t),1)}function Wy(e,t){return be(No(e,t),cn)}function Gy(e,t,r){return r=r===n?1:V(r),be(No(e,t),r)}function dl(e,t){var r=H(e)?je:Jt;return r(e,F(t,3))}function gl(e,t){var r=H(e)?sm:lu;return r(e,F(t,3))}var $y=Io(function(e,t,r){re.call(e,r)?e[r].push(t):kt(e,r,[t])});function Hy(e,t,r,a){e=Me(e)?e:Vn(e),r=r&&!a?V(r):0;var c=e.length;return r<0&&(r=we(c+r,0)),Bo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Dn(e,t,r)>-1}var Vy=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Me(e)?w(e.length):[];return Jt(e,function(T){p[++a]=c?$e(t,T,r):vr(T,t,r)}),p}),qy=Io(function(e,t,r){kt(e,r,t)});function No(e,t){var r=H(e)?le:hu;return r(e,F(t,3))}function zy(e,t,r,a){return e==null?[]:(H(t)||(t=t==null?[]:[t]),r=a?n:r,H(r)||(r=r==null?[]:[r]),vu(e,t,r))}var Ky=Io(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Yy(e,t,r){var a=H(e)?Ji:qc,c=arguments.length<3;return a(e,F(t,4),r,c,Jt)}function Zy(e,t,r){var a=H(e)?am:qc,c=arguments.length<3;return a(e,F(t,4),r,c,lu)}function Xy(e,t){var r=H(e)?zt:pu;return r(e,Fo(F(t,3)))}function Jy(e){var t=H(e)?su:HT;return t(e)}function Qy(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=H(e)?ST:VT;return a(e,t)}function jy(e){var t=H(e)?vT:zT;return t(e)}function ex(e){if(e==null)return 0;if(Me(e))return Bo(e)?On(e):e.length;var t=Ce(e);return t==ct||t==ut?e.size:Ts(e).length}function tx(e,t,r){var a=H(e)?Qi:KT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}var nx=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),vu(e,be(t,1),[])}),Oo=Mm||function(){return _e.Date.now()};function rx(e,t){if(typeof t!="function")throw new et(m);return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function ml(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Pt(e,bt,n,n,n,n,t)}function Tl(e,t){var r;if(typeof t!="function")throw new et(m);return e=V(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ws=Y(function(e,t,r){var a=pe;if(r.length){var c=Yt(r,$n(Ws));a|=Ne}return Pt(e,a,t,r,c)}),hl=Y(function(e,t,r){var a=pe|Se;if(r.length){var c=Yt(r,$n(hl));a|=Ne}return Pt(t,a,e,r,c)});function yl(e,t,r){t=r?n:t;var a=Pt(e,Je,n,n,n,n,n,t);return a.placeholder=yl.placeholder,a}function xl(e,t,r){t=r?n:t;var a=Pt(e,It,n,n,n,n,n,t);return a.placeholder=xl.placeholder,a}function Sl(e,t,r){var a,c,p,T,h,x,I=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new et(m);t=it(t)||0,fe(r)&&(b=!!r.leading,L="maxWait"in r,p=L?we(it(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function N(he){var dt=a,Mt=c;return a=c=n,I=he,T=e.apply(Mt,dt),T}function U(he){return I=he,h=br(Z,t),b?N(he):T}function q(he){var dt=he-x,Mt=he-I,Bl=t-dt;return L?Ee(Bl,p-Mt):Bl}function B(he){var dt=he-x,Mt=he-I;return x===n||dt>=t||dt<0||L&&Mt>=p}function Z(){var he=Oo();if(B(he))return J(he);h=br(Z,q(he))}function J(he){return h=n,C&&a?N(he):(a=c=n,T)}function ze(){h!==n&&ku(h),I=0,a=x=c=h=n}function De(){return h===n?T:J(Oo())}function Ke(){var he=Oo(),dt=B(he);if(a=arguments,c=this,x=he,dt){if(h===n)return U(x);if(L)return ku(h),h=br(Z,t),N(x)}return h===n&&(h=br(Z,t)),T}return Ke.cancel=ze,Ke.flush=De,Ke}var ox=Y(function(e,t){return uu(e,1,t)}),ix=Y(function(e,t,r){return uu(e,it(t)||0,r)});function sx(e){return Pt(e,Pi)}function Mo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new et(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],p=r.cache;if(p.has(c))return p.get(c);var T=e.apply(this,a);return r.cache=p.set(c,T)||p,T};return r.cache=new(Mo.Cache||Ct),r}Mo.Cache=Ct;function Fo(e){if(typeof e!="function")throw new et(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ax(e){return Tl(2,e)}var cx=YT(function(e,t){t=t.length==1&&H(t[0])?le(t[0],He(F())):le(be(t,1),He(F()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return $e(e,this,a)})}),Gs=Y(function(e,t){var r=Yt(t,$n(Gs));return Pt(e,Ne,n,t,r)}),vl=Y(function(e,t){var r=Yt(t,$n(vl));return Pt(e,Vt,n,t,r)}),ux=Rt(function(e,t){return Pt(e,ir,n,n,n,t)});function lx(e,t){if(typeof e!="function")throw new et(m);return t=t===n?t:V(t),Y(e,t)}function px(e,t){if(typeof e!="function")throw new et(m);return t=t==null?0:we(V(t),0),Y(function(r){var a=r[t],c=en(r,0,t);return a&&Kt(c,a),$e(e,this,c)})}function fx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new et(m);return fe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Sl(e,t,{leading:a,maxWait:t,trailing:c})}function dx(e){return ml(e,1)}function gx(e,t){return Gs(Is(t),e)}function mx(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function Tx(e){return nt(e,M)}function hx(e,t){return t=typeof t=="function"?t:n,nt(e,M,t)}function yx(e){return nt(e,R|M)}function xx(e,t){return t=typeof t=="function"?t:n,nt(e,R|M,t)}function Sx(e,t){return t==null||cu(e,t,Ae(t))}function ft(e,t){return e===t||e!==e&&t!==t}var vx=Co(ds),wx=Co(function(e,t){return e>=t}),hn=gu(function(){return arguments}())?gu:function(e){return ge(e)&&re.call(e,"callee")&&!eu.call(e,"callee")},H=w.isArray,_x=Oc?He(Oc):PT;function Me(e){return e!=null&&Uo(e.length)&&!Nt(e)}function Te(e){return ge(e)&&Me(e)}function Ax(e){return e===!0||e===!1||ge(e)&&Pe(e)==sr}var tn=Um||Qs,Ix=Mc?He(Mc):RT;function bx(e){return ge(e)&&e.nodeType===1&&!Lr(e)}function Lx(e){if(e==null)return!0;if(Me(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||tn(e)||Hn(e)||hn(e)))return!e.length;var t=Ce(e);if(t==ct||t==ut)return!e.size;if(Ir(e))return!Ts(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Ex(e,t){return wr(e,t)}function Cx(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?wr(e,t,n,r):!!a}function $s(e){if(!ge(e))return!1;var t=Pe(e);return t==Zr||t==Qd||typeof e.message=="string"&&typeof e.name=="string"&&!Lr(e)}function kx(e){return typeof e=="number"&&nu(e)}function Nt(e){if(!fe(e))return!1;var t=Pe(e);return t==Xr||t==uc||t==Jd||t==eg}function wl(e){return typeof e=="number"&&e==V(e)}function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qt}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ge(e){return e!=null&&typeof e=="object"}var _l=Fc?He(Fc):NT;function Px(e,t){return e===t||ms(e,t,Rs(t))}function Rx(e,t,r){return r=typeof r=="function"?r:n,ms(e,t,Rs(t),r)}function Dx(e){return Al(e)&&e!=+e}function Nx(e){if(hh(e))throw new $(u);return mu(e)}function Ox(e){return e===null}function Mx(e){return e==null}function Al(e){return typeof e=="number"||ge(e)&&Pe(e)==cr}function Lr(e){if(!ge(e)||Pe(e)!=Lt)return!1;var t=lo(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&so.call(r)==Rm}var Hs=Uc?He(Uc):OT;function Fx(e){return wl(e)&&e>=-qt&&e<=qt}var Il=Bc?He(Bc):MT;function Bo(e){return typeof e=="string"||!H(e)&&ge(e)&&Pe(e)==lr}function qe(e){return typeof e=="symbol"||ge(e)&&Pe(e)==Jr}var Hn=Wc?He(Wc):FT;function Ux(e){return e===n}function Bx(e){return ge(e)&&Ce(e)==pr}function Wx(e){return ge(e)&&Pe(e)==ng}var Gx=Co(hs),$x=Co(function(e,t){return e<=t});function bl(e){if(!e)return[];if(Me(e))return Bo(e)?lt(e):Oe(e);if(gr&&e[gr])return Sm(e[gr]());var t=Ce(e),r=t==ct?os:t==ut?ro:Vn;return r(e)}function Ot(e){if(!e)return e===0?e:0;if(e=it(e),e===cn||e===-cn){var t=e<0?-1:1;return t*Kd}return e===e?e:0}function V(e){var t=Ot(e),r=t%1;return t===t?r?t-r:t:0}function Ll(e){return e?dn(V(e),0,mt):0}function it(e){if(typeof e=="number")return e;if(qe(e))return Kr;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zc(e);var r=_g.test(e);return r||Ig.test(e)?rm(e.slice(2),r?2:8):wg.test(e)?Kr:+e}function El(e){return ht(e,Fe(e))}function Hx(e){return e?dn(V(e),-qt,qt):e===0?e:0}function te(e){return e==null?"":Ve(e)}var Vx=Wn(function(e,t){if(Ir(t)||Me(t)){ht(t,Ae(t),e);return}for(var r in t)re.call(t,r)&&xr(e,r,t[r])}),Cl=Wn(function(e,t){ht(t,Fe(t),e)}),Wo=Wn(function(e,t,r,a){ht(t,Fe(t),e,a)}),qx=Wn(function(e,t,r,a){ht(t,Ae(t),e,a)}),zx=Rt(ls);function Kx(e,t){var r=Bn(e);return t==null?r:au(r,t)}var Yx=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Fe(p),h=-1,x=T.length;++h<x;){var I=T[h],b=e[I];(b===n||ft(b,Mn[I])&&!re.call(e,I))&&(e[I]=p[I])}return e}),Zx=Y(function(e){return e.push(n,zu),$e(kl,n,e)});function Xx(e,t){return $c(e,F(t,3),Tt)}function Jx(e,t){return $c(e,F(t,3),fs)}function Qx(e,t){return e==null?e:ps(e,F(t,3),Fe)}function jx(e,t){return e==null?e:fu(e,F(t,3),Fe)}function eS(e,t){return e&&Tt(e,F(t,3))}function tS(e,t){return e&&fs(e,F(t,3))}function nS(e){return e==null?[]:vo(e,Ae(e))}function rS(e){return e==null?[]:vo(e,Fe(e))}function Vs(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function oS(e,t){return e!=null&&Zu(e,t,LT)}function qs(e,t){return e!=null&&Zu(e,t,ET)}var iS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ao.call(t)),e[t]=r},Ks(Ue)),sS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ao.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},F),aS=Y(vr);function Ae(e){return Me(e)?iu(e):Ts(e)}function Fe(e){return Me(e)?iu(e,!0):UT(e)}function cS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,t(a,c,p),a)}),r}function uS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,c,t(a,c,p))}),r}var lS=Wn(function(e,t,r){wo(e,t,r)}),kl=Wn(function(e,t,r,a){wo(e,t,r,a)}),pS=Rt(function(e,t){var r={};if(e==null)return r;var a=!1;t=le(t,function(p){return p=jt(p,e),a||(a=p.length>1),p}),ht(e,ks(e),r),a&&(r=nt(r,R|G|M,ih));for(var c=t.length;c--;)ws(r,t[c]);return r});function fS(e,t){return Pl(e,Fo(F(t)))}var dS=Rt(function(e,t){return e==null?{}:WT(e,t)});function Pl(e,t){if(e==null)return{};var r=le(ks(e),function(a){return[a]});return t=F(t),wu(e,r,function(a,c){return t(a,c[0])})}function gS(e,t,r){t=jt(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[yt(t[a])];p===n&&(a=c,p=r),e=Nt(p)?p.call(e):p}return e}function mS(e,t,r){return e==null?e:_r(e,t,r)}function TS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:_r(e,t,r,a)}var Rl=Vu(Ae),Dl=Vu(Fe);function hS(e,t,r){var a=H(e),c=a||tn(e)||Hn(e);if(t=F(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:fe(e)?r=Nt(p)?Bn(lo(e)):{}:r={}}return(c?je:Tt)(e,function(T,h,x){return t(r,T,h,x)}),r}function yS(e,t){return e==null?!0:ws(e,t)}function xS(e,t,r){return e==null?e:Lu(e,t,Is(r))}function SS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Lu(e,t,Is(r),a)}function Vn(e){return e==null?[]:rs(e,Ae(e))}function vS(e){return e==null?[]:rs(e,Fe(e))}function wS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=it(r),r=r===r?r:0),t!==n&&(t=it(t),t=t===t?t:0),dn(it(e),t,r)}function _S(e,t,r){return t=Ot(t),r===n?(r=t,t=0):r=Ot(r),e=it(e),CT(e,t,r)}function AS(e,t,r){if(r&&typeof r!="boolean"&&Re(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ot(e),t===n?(t=e,e=0):t=Ot(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=ru();return Ee(e+c*(t-e+nm("1e-"+((c+"").length-1))),t)}return xs(e,t)}var IS=Gn(function(e,t,r){return t=t.toLowerCase(),e+(r?Nl(t):t)});function Nl(e){return zs(te(e).toLowerCase())}function Ol(e){return e=te(e),e&&e.replace(Lg,mm).replace(zg,"")}function bS(e,t,r){e=te(e),t=Ve(t);var a=e.length;r=r===n?a:dn(V(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function LS(e){return e=te(e),e&&ag.test(e)?e.replace(fc,Tm):e}function ES(e){return e=te(e),e&&dg.test(e)?e.replace(Gi,"\\$&"):e}var CS=Gn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),kS=Gn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),PS=Uu("toLowerCase");function RS(e,t,r){e=te(e),t=V(t);var a=t?On(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Eo(mo(c),r)+e+Eo(go(c),r)}function DS(e,t,r){e=te(e),t=V(t);var a=t?On(e):0;return t&&a<t?e+Eo(t-a,r):e}function NS(e,t,r){e=te(e),t=V(t);var a=t?On(e):0;return t&&a<t?Eo(t-a,r)+e:e}function OS(e,t,r){return r||t==null?t=0:t&&(t=+t),$m(te(e).replace($i,""),t||0)}function MS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),Ss(te(e),t)}function FS(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var US=Gn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function BS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?mt:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!Hs(t))&&(t=Ve(t),!t&&Nn(e))?en(lt(e),0,r):e.split(t,r)):[]}var WS=Gn(function(e,t,r){return e+(r?" ":"")+zs(t)});function GS(e,t,r){return e=te(e),r=r==null?0:dn(V(r),0,e.length),t=Ve(t),e.slice(r,r+t.length)==t}function $S(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Wo({},t,a,qu);var c=Wo({},t.imports,a.imports,qu),p=Ae(c),T=rs(c,p),h,x,I=0,b=t.interpolate||Qr,L="__p += '",C=is((t.escape||Qr).source+"|"+b.source+"|"+(b===dc?vg:Qr).source+"|"+(t.evaluate||Qr).source+"|$","g"),N="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jg+"]")+`
4
+ `;e.replace(C,function(B,Z,J,ze,De,Ke){return J||(J=ze),L+=e.slice(I,Ke).replace(Eg,hm),Z&&(h=!0,L+=`' +
5
5
  __e(`+Z+`) +
6
6
  '`),De&&(x=!0,L+=`';
7
7
  `+De+`;
@@ -11,13 +11,13 @@ __p += '`),J&&(L+=`' +
11
11
  `;var U=re.call(t,"variable")&&t.variable;if(!U)L=`with (obj) {
12
12
  `+L+`
13
13
  }
14
- `;else if(hg.test(U))throw new $(S);L=(x?L.replace(tg,""):L).replace(ng,"$1").replace(rg,"$1;"),L="function("+(U||"obj")+`) {
14
+ `;else if(xg.test(U))throw new $(S);L=(x?L.replace(rg,""):L).replace(og,"$1").replace(ig,"$1;"),L="function("+(U||"obj")+`) {
15
15
  `+(U?"":`obj || (obj = {});
16
16
  `)+"var __t, __p = ''"+(h?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
19
  `)+L+`return __p
20
- }`;var q=Fl(function(){return j(p,N+"return "+L).apply(n,T)});if(q.source=L,$s(q))throw q;return q}function GS(e){return te(e).toLowerCase()}function $S(e){return te(e).toUpperCase()}function HS(e,t,r){if(e=te(e),e&&(r||t===n))return zc(e);if(!e||!(t=Ve(t)))return e;var a=lt(e),c=lt(t),p=Kc(a,c),T=Yc(a,c)+1;return en(a,p,T).join("")}function VS(e,t,r){if(e=te(e),e&&(r||t===n))return e.slice(0,Xc(e)+1);if(!e||!(t=Ve(t)))return e;var a=lt(e),c=Yc(a,lt(t))+1;return en(a,0,c).join("")}function qS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace($i,"");if(!e||!(t=Ve(t)))return e;var a=lt(e),c=Kc(a,lt(t));return en(a,c).join("")}function zS(e,t){var r=Bd,a=Wd;if(fe(t)){var c="separator"in t?t.separator:c;r="length"in t?V(t.length):r,a="omission"in t?Ve(t.omission):a}e=te(e);var p=e.length;if(Nn(e)){var T=lt(e);p=T.length}if(r>=p)return e;var h=r-On(a);if(h<1)return a;var x=T?en(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),Hs(c)){if(e.slice(h).search(c)){var I,b=x;for(c.global||(c=is(c.source,te(gc.exec(c))+"g")),c.lastIndex=0;I=c.exec(b);)var L=I.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(Ve(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function KS(e){return e=te(e),e&&og.test(e)?e.replace(pc,wm):e}var YS=Gn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),zs=Uu("toUpperCase");function Ml(e,t,r){return e=te(e),t=r?n:t,t===n?hm(e)?Im(e):cm(e):e.match(t)||[]}var Fl=Y(function(e,t){try{return $e(e,n,t)}catch(r){return $s(r)?r:new $(r)}}),ZS=Rt(function(e,t){return je(t,function(r){r=yt(r),kt(e,r,Ws(e[r],e))}),e});function XS(e){var t=e==null?0:e.length,r=F();return e=t?le(e,function(a){if(typeof a[1]!="function")throw new et(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var p=e[c];if($e(p[0],this,a))return $e(p[1],this,a)}})}function JS(e){return wT(nt(e,R))}function Ks(e){return function(){return e}}function QS(e,t){return e==null||e!==e?t:e}var jS=Wu(),ev=Wu(!0);function Ue(e){return e}function Ys(e){return Tu(typeof e=="function"?e:nt(e,R))}function tv(e){return yu(nt(e,R))}function nv(e,t){return xu(e,nt(t,R))}var rv=Y(function(e,t){return function(r){return vr(r,e,t)}}),ov=Y(function(e,t){return function(r){return vr(e,r,t)}});function Zs(e,t,r){var a=Ae(t),c=vo(t,a);r==null&&!(fe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=vo(t,Ae(t)));var p=!(fe(r)&&"chain"in r)||!!r.chain,T=Nt(e);return je(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var I=this.__chain__;if(p||I){var b=e(this.__wrapped__),L=b.__actions__=Oe(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=I,b}return x.apply(e,Kt([this.value()],arguments))})}),e}function iv(){return _e._===this&&(_e._=Pm),this}function Xs(){}function sv(e){return e=V(e),Y(function(t){return Su(t,e)})}var av=Ls(le),cv=Ls(Gc),uv=Ls(Qi);function Ul(e){return Ns(e)?ji(yt(e)):BT(e)}function lv(e){return function(t){return e==null?n:gn(e,t)}}var pv=$u(),fv=$u(!0);function Js(){return[]}function Qs(){return!1}function dv(){return{}}function gv(){return""}function mv(){return!0}function Tv(e,t){if(e=V(e),e<1||e>qt)return[];var r=mt,a=Ee(e,mt);t=F(t),e-=mt;for(var c=ns(a,t);++r<e;)t(r);return c}function hv(e){return H(e)?le(e,yt):qe(e)?[e]:Oe(ol(te(e)))}function yv(e){var t=++Cm;return te(e)+t}var xv=Lo(function(e,t){return e+t},0),Sv=Es("ceil"),vv=Lo(function(e,t){return e/t},1),wv=Es("floor");function _v(e){return e&&e.length?So(e,Ue,ds):n}function Av(e,t){return e&&e.length?So(e,F(t,2),ds):n}function Iv(e){return Vc(e,Ue)}function bv(e,t){return Vc(e,F(t,2))}function Lv(e){return e&&e.length?So(e,Ue,hs):n}function Ev(e,t){return e&&e.length?So(e,F(t,2),hs):n}var Cv=Lo(function(e,t){return e*t},1),kv=Es("round"),Pv=Lo(function(e,t){return e-t},0);function Rv(e){return e&&e.length?ts(e,Ue):0}function Dv(e,t){return e&&e.length?ts(e,F(t,2)):0}return l.after=tx,l.ary=ml,l.assign=$x,l.assignIn=Cl,l.assignInWith=Wo,l.assignWith=Hx,l.at=Vx,l.before=Tl,l.bind=Ws,l.bindAll=ZS,l.bindKey=hl,l.castArray=dx,l.chain=fl,l.chunk=wh,l.compact=_h,l.concat=Ah,l.cond=XS,l.conforms=JS,l.constant=Ks,l.countBy=Ry,l.create=qx,l.curry=yl,l.curryRight=xl,l.debounce=Sl,l.defaults=zx,l.defaultsDeep=Kx,l.defer=nx,l.delay=rx,l.difference=Ih,l.differenceBy=bh,l.differenceWith=Lh,l.drop=Eh,l.dropRight=Ch,l.dropRightWhile=kh,l.dropWhile=Ph,l.fill=Rh,l.filter=Ny,l.flatMap=Fy,l.flatMapDeep=Uy,l.flatMapDepth=By,l.flatten=cl,l.flattenDeep=Dh,l.flattenDepth=Nh,l.flip=ox,l.flow=jS,l.flowRight=ev,l.fromPairs=Oh,l.functions=eS,l.functionsIn=tS,l.groupBy=Wy,l.initial=Fh,l.intersection=Uh,l.intersectionBy=Bh,l.intersectionWith=Wh,l.invert=rS,l.invertBy=oS,l.invokeMap=$y,l.iteratee=Ys,l.keyBy=Hy,l.keys=Ae,l.keysIn=Fe,l.map=No,l.mapKeys=sS,l.mapValues=aS,l.matches=tv,l.matchesProperty=nv,l.memoize=Mo,l.merge=cS,l.mergeWith=kl,l.method=rv,l.methodOf=ov,l.mixin=Zs,l.negate=Fo,l.nthArg=sv,l.omit=uS,l.omitBy=lS,l.once=ix,l.orderBy=Vy,l.over=av,l.overArgs=sx,l.overEvery=cv,l.overSome=uv,l.partial=Gs,l.partialRight=vl,l.partition=qy,l.pick=pS,l.pickBy=Pl,l.property=Ul,l.propertyOf=lv,l.pull=Vh,l.pullAll=ll,l.pullAllBy=qh,l.pullAllWith=zh,l.pullAt=Kh,l.range=pv,l.rangeRight=fv,l.rearg=ax,l.reject=Yy,l.remove=Yh,l.rest=cx,l.reverse=Us,l.sampleSize=Xy,l.set=dS,l.setWith=gS,l.shuffle=Jy,l.slice=Zh,l.sortBy=ex,l.sortedUniq=ny,l.sortedUniqBy=ry,l.split=FS,l.spread=ux,l.tail=oy,l.take=iy,l.takeRight=sy,l.takeRightWhile=ay,l.takeWhile=cy,l.tap=_y,l.throttle=lx,l.thru=Do,l.toArray=bl,l.toPairs=Rl,l.toPairsIn=Dl,l.toPath=hv,l.toPlainObject=El,l.transform=mS,l.unary=px,l.union=uy,l.unionBy=ly,l.unionWith=py,l.uniq=fy,l.uniqBy=dy,l.uniqWith=gy,l.unset=TS,l.unzip=Bs,l.unzipWith=pl,l.update=hS,l.updateWith=yS,l.values=Vn,l.valuesIn=xS,l.without=my,l.words=Ml,l.wrap=fx,l.xor=Ty,l.xorBy=hy,l.xorWith=yy,l.zip=xy,l.zipObject=Sy,l.zipObjectDeep=vy,l.zipWith=wy,l.entries=Rl,l.entriesIn=Dl,l.extend=Cl,l.extendWith=Wo,Zs(l,l),l.add=xv,l.attempt=Fl,l.camelCase=_S,l.capitalize=Nl,l.ceil=Sv,l.clamp=SS,l.clone=gx,l.cloneDeep=Tx,l.cloneDeepWith=hx,l.cloneWith=mx,l.conformsTo=yx,l.deburr=Ol,l.defaultTo=QS,l.divide=vv,l.endsWith=AS,l.eq=ft,l.escape=IS,l.escapeRegExp=bS,l.every=Dy,l.find=Oy,l.findIndex=sl,l.findKey=Yx,l.findLast=My,l.findLastIndex=al,l.findLastKey=Zx,l.floor=wv,l.forEach=dl,l.forEachRight=gl,l.forIn=Xx,l.forInRight=Jx,l.forOwn=Qx,l.forOwnRight=jx,l.get=Vs,l.gt=xx,l.gte=Sx,l.has=nS,l.hasIn=qs,l.head=ul,l.identity=Ue,l.includes=Gy,l.indexOf=Mh,l.inRange=vS,l.invoke=iS,l.isArguments=hn,l.isArray=H,l.isArrayBuffer=vx,l.isArrayLike=Me,l.isArrayLikeObject=Te,l.isBoolean=wx,l.isBuffer=tn,l.isDate=_x,l.isElement=Ax,l.isEmpty=Ix,l.isEqual=bx,l.isEqualWith=Lx,l.isError=$s,l.isFinite=Ex,l.isFunction=Nt,l.isInteger=wl,l.isLength=Uo,l.isMap=_l,l.isMatch=Cx,l.isMatchWith=kx,l.isNaN=Px,l.isNative=Rx,l.isNil=Nx,l.isNull=Dx,l.isNumber=Al,l.isObject=fe,l.isObjectLike=ge,l.isPlainObject=Lr,l.isRegExp=Hs,l.isSafeInteger=Ox,l.isSet=Il,l.isString=Bo,l.isSymbol=qe,l.isTypedArray=Hn,l.isUndefined=Mx,l.isWeakMap=Fx,l.isWeakSet=Ux,l.join=Gh,l.kebabCase=LS,l.last=ot,l.lastIndexOf=$h,l.lowerCase=ES,l.lowerFirst=CS,l.lt=Bx,l.lte=Wx,l.max=_v,l.maxBy=Av,l.mean=Iv,l.meanBy=bv,l.min=Lv,l.minBy=Ev,l.stubArray=Js,l.stubFalse=Qs,l.stubObject=dv,l.stubString=gv,l.stubTrue=mv,l.multiply=Cv,l.nth=Hh,l.noConflict=iv,l.noop=Xs,l.now=Oo,l.pad=kS,l.padEnd=PS,l.padStart=RS,l.parseInt=DS,l.random=wS,l.reduce=zy,l.reduceRight=Ky,l.repeat=NS,l.replace=OS,l.result=fS,l.round=kv,l.runInContext=y,l.sample=Zy,l.size=Qy,l.snakeCase=MS,l.some=jy,l.sortedIndex=Xh,l.sortedIndexBy=Jh,l.sortedIndexOf=Qh,l.sortedLastIndex=jh,l.sortedLastIndexBy=ey,l.sortedLastIndexOf=ty,l.startCase=US,l.startsWith=BS,l.subtract=Pv,l.sum=Rv,l.sumBy=Dv,l.template=WS,l.times=Tv,l.toFinite=Ot,l.toInteger=V,l.toLength=Ll,l.toLower=GS,l.toNumber=it,l.toSafeInteger=Gx,l.toString=te,l.toUpper=$S,l.trim=HS,l.trimEnd=VS,l.trimStart=qS,l.truncate=zS,l.unescape=KS,l.uniqueId=yv,l.upperCase=YS,l.upperFirst=zs,l.each=dl,l.eachRight=gl,l.first=ul,Zs(l,function(){var e={};return Tt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),je(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:we(V(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,mt),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),je(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==cc||r==Vd;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:F(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),je(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),je(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Ue)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return vr(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Fo(F(e)))},X.prototype.slice=function(e,t){e=V(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=V(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(mt)},Tt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,I=h[0],b=x||H(T),L=function(Z){var J=c.apply(l,Kt([Z],h));return a&&C?J[0]:J};b&&r&&typeof I=="function"&&I.length!=1&&(x=b=!1);var C=this.__chain__,N=!!this.__actions__.length,U=p&&!C,q=x&&!N;if(!p&&b){T=q?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Do,args:[L],thisArg:n}),new tt(B,C)}return U&&q?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=oo[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var p=this.value();return t.apply(H(p)?p:[],c)}return this[r](function(T){return t.apply(H(T)?T:[],c)})}}),Tt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Un,a)||(Un[a]=[]),Un[a].push({name:t,func:r})}}),Un[bo(n,Se).name]=[{name:"wrapper",func:n}],X.prototype.clone=Km,X.prototype.reverse=Ym,X.prototype.value=Zm,l.prototype.at=Ay,l.prototype.chain=Iy,l.prototype.commit=by,l.prototype.next=Ly,l.prototype.plant=Cy,l.prototype.reverse=ky,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Py,l.prototype.first=l.prototype.head,gr&&(l.prototype[gr]=Ey),l},Zt=bm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(_e._=Zt,define(function(){return Zt})):un?((un.exports=Zt)._=Zt,Yi._=Zt):_e._=Zt}).call(rr)});var DA={};yn(DA,{useTransactionToast:()=>RA});module.exports=kr(DA);s();var qr=require("react");ie();s();s();s();var Uf=require("react"),er=require("react-redux");s();var Ba=require("@reduxjs/toolkit"),Mf=require("react-redux/lib/utils/Subscription");ae();s();var ff=z(require("lodash.throttle"));ie();s();var pf=z(require("lodash.isequal")),mi=require("reselect");xe();var D=(0,mi.createSelectorCreator)(mi.defaultMemoize,pf.default),Ur=(n,o)=>n!=""&&Boolean(o);ae();Ia();Xn();Zn();var ew=[Zo],Ti=!1,tw=(0,ff.default)(()=>{Nr(Dr())},5e3),df=n=>o=>i=>{var E;if(ew.includes(i.type))return o(i);let u=n.getState(),m=An.local.getItem(nn.loginExpiresAt);if(!Ur((E=u==null?void 0:u.loginInfo)==null?void 0:E.loginMethod,u==null?void 0:u.account.address))return o(i);if(m==null)return Nr(Dr());let v=Date.now();return m-v<0&&!Ti?setTimeout(()=>{Ti=!0,n.dispatch(Gp())},1e3):(Ti&&(Ti=!1),tw()),o(i)};s();s();function hi(){return typeof sessionStorage!="undefined"}var Df=hi()?(Af(),kr(_f)).default:(bf(),kr(If)).default,Nf=hi()?(Ef(),kr(Lf)).default:[],Of=hi()?(Rf(),kr(Pf)).default:n=>n;yi();var ee=(0,Ba.configureStore)({reducer:Df,middleware:n=>n({serializableCheck:{ignoredActions:[...Nf,Aa.type,_a.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(df)}),Ff=(0,Mf.createSubscription)(ee),sE=Of(ee),aE=(0,Ba.configureStore)({reducer:Ln});var _w={store:ee,subscription:Ff},Wa=(0,Uf.createContext)(_w),pE=(0,er.createStoreHook)(Wa),Ge=(0,er.createDispatchHook)(Wa),ne=(0,er.createSelectorHook)(Wa);s();s();ae();var Gt=n=>n.account,tr=D(Gt,n=>n.address),Wr=D(Gt,tr,(n,o)=>o in n.accounts?n.accounts[o]:Xo),Aw=D(Gt,Wr,(n,o)=>{let m=n,{accounts:i}=m,u=$o(m,["accounts"]);return Q(O({},u),{account:o})}),Iw=D(Wr,n=>n.balance),bw=D(Wr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),Bf=D(Gt,n=>n.shard),Lw=D(Gt,n=>n.ledgerAccount),mE=D(Gt,n=>n.walletConnectAccount),TE=D(Gt,n=>n.isAccountLoading),hE=D(Gt,n=>n.accountLoadingError),Wf=D(Gt,n=>n.websocketEvent);s();var gt=n=>n.loginInfo,vE=D(gt,n=>n.loginMethod),Ga=D(gt,tr,(n,o)=>Ur(n.loginMethod,o)),wE=D(gt,n=>n.walletConnectLogin),_E=D(gt,n=>n.ledgerLogin),Ew=D(gt,n=>n.walletLogin),AE=D(gt,n=>n.isLoginSessionInvalid),Cw=D(gt,n=>n.tokenLogin),IE=D(gt,n=>n.logoutRoute);s();var Gf=n=>n.modals,EE=D(Gf,n=>n.txSubmittedModal),kw=D(Gf,n=>n.notificationModal);s();var $t=n=>n.networkConfig,xi=D($t,n=>n.chainID),Pw=D($t,n=>n.network.walletConnectBridgeAddress),Rw=D($t,n=>n.network.walletConnectV2RelayAddress),Dw=D($t,n=>n.network.walletConnectV2ProjectId),Nw=D($t,n=>n.network.walletConnectV2Options),$f=D($t,n=>n.network.walletConnectDeepLink),sn=D($t,n=>n.network),Hf=D(sn,n=>n.apiAddress),Vf=D(sn,n=>n.explorerAddress),qf=D(sn,n=>n.egldLabel);s();var $a=n=>n.signedMessageInfo,DE=D($a,n=>n.isSigning),NE=D($a,n=>n.errorMessage),OE=D($a,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Ha=n=>n.toasts,UE=D(Ha,n=>n.customToasts),BE=D(Ha,n=>n.transactionToasts),WE=D(Ha,n=>n.failTransactionToast);s();ae();var zf={errorMessage:Ra,successMessage:Da,processingMessage:Na},Ow=n=>n.transactionsInfo,Kf=D(Ow,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||zf);s();s();var Xe=require("@multiversx/sdk-core");ie();s();function Si(n){try{return f.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function vi(n){var m,S,v;let{data:o}=n,i=Si(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Pr,gasPrice:(S=n.gasPrice.valueOf())!=null?S:Yo,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((v=n.version)!=null?v:Ip)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var qa=require("@multiversx/sdk-core/out");s();ie();var Mw=n=>{let o=f.Buffer.from([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);if(n.slice(0,o.length).equals(o))return!0;let u=f.Buffer.alloc(32).fill(0);return n.equals(u)},Va=n=>{try{let i=parseInt("11",2),u=parseInt("01",2),m=f.Buffer.from(n,"hex"),S=m[31];if(Mw(m))return ga;let v=S&i;return v>3-1&&(v=S&u),v}catch(o){return-1}};function Yf({receiverAddress:n,senderShard:o,senderAddress:i}){try{let u=new qa.Address(n),m=Va(u.pubkey());if(o==null&&i!=null){let S=new qa.Address(i);return Va(S)===m}return m===o}catch(u){return!1}}s();var Ka=require("@multiversx/sdk-core");xe();s();var Fw=require("@multiversx/sdk-core");function Zf({receiver:n,data:o}){try{if(!o)return n;let i=Si(o)?Ka.TransactionPayload.fromEncoded(o).toString():o,u=Uw(i),m=i.split("@");return u>-1?m[u]:n}catch(i){console.log(i);return}}function Uw(n){return n.includes("MultiESDTNFTTransfer")?1:n.includes("ESDTNFTTransfer")?4:-1}var Xf=(n,o=1)=>n!=null&&n.length?n.reduce((i,{receiver:u,data:m})=>{let S=Zf({receiver:u,data:m!=null?m:""});return S==null?i:i&&Yf({receiverAddress:S,senderShard:o})},!0):!0;s();s();s();var Ww=require("@multiversx/sdk-core"),Gw=z(require("bignumber.js"));me();s();s();s();s();s();var Ya="blocks";s();s();s();s();We();s();s();We();s();s();s();var Zw=z(require("bignumber.js"));ie();s();var Yw=require("@multiversx/sdk-core"),Za=z(require("bignumber.js"));ie();s();var zw=z(require("bignumber.js"));s();Za.default.config({ROUNDING_MODE:Za.default.ROUND_FLOOR});s();s();s();ie();s();s();s();s();ie();s();ie();s();var Xw=require("@multiversx/sdk-core");ie();s();var Gr=require("@multiversx/sdk-core"),jw=require("@multiversx/sdk-network-providers");ie();s();s();var Jw=z(require("bignumber.js"));ie();s();ie();s();s();s();s();s();ie();s();We();var t_=["reDelegateRewards","claimRewards","unBond"],n_=["wrapEgld","unwrapEgld"],r_=["unStake"],o_=["unDelegate"];s();s();s();ie();s();var c_=z(require("bignumber.js"));s();s();s();s();We();s();var u_=z(require("bignumber.js"));s();s();s();var f_=z(require("bignumber.js"));xe();s();s();s();s();me();s();s();s();s();We();s();s();s();var d_=z(require("linkifyjs"));s();ie();s();var g_=z(require("bignumber.js"));s();xe();s();s();me();s();me();s();s();s();We();s();We();s();var m_=z(require("bignumber.js"));ie();We();s();We();s();var sd=require("react");xe();s();s();We();s();s();var T_=require("@multiversx/sdk-core/out"),h_=z(require("bignumber.js"));We();s();xe();s();s();xe();var hD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var ad=require("react");xe();s();var x_=require("react");We();var AD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];bn();var Ii=n=>n.transactions,nr=D(Ii,n=>n.signedTransactions),S_=D(Ii,n=>n.signTransactionsError),cd=D(Ii,n=>n.signTransactionsCancelMessage),bi=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),ud=D(nr,bi(rn)),ld=D(nr,bi(Qn)),pd=D(nr,bi(jn)),v_=D(nr,bi(Mr)),fd=D(Ii,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>vi(i)))||[]})}),w_=D(nr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var dd=require("react");s();ae();s();s();s();s();s();s();s();s();var __=require("@multiversx/sdk-extension-provider"),A_=require("@multiversx/sdk-hw-provider"),I_=require("@multiversx/sdk-opera-provider"),b_=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),L_=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),E_=require("@multiversx/sdk-web-wallet-provider");ie();me();var Ht=n=>`Unable to perform ${n}, Provider not initialized`,Ja=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Ht(`login with options: ${o}`))}logout(o){throw new Error(Ht(`logout with options: ${o}`))}getAddress(){throw new Error(Ht("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Ht(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Ht(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Ht(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Ht(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Ht(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Ht(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},C_=new Ja;ae();s();s();var k_=z(require("axios"));s();s();s();me();s();s();s();bn();s();s();s();var P_=z(require("axios"));s();var R_=z(require("axios"));s();var N_=z(require("axios"));s();s();var O_=z(require("axios"));s();var M_=z(require("axios"));s();ae();me();s();s();ae();s();s();var hd=require("@multiversx/sdk-core");s();ke();xe();s();bn();s();ae();me();s();ae();xe();s();s();s();xe();s();s();s();s();var W_=z(require("axios")),G_=z(require("swr"));s();function yd(n){return ne(o=>Kf(o,n))}s();var xd=require("react");s();var H_=require("react"),V_=require("@multiversx/sdk-web-wallet-provider"),q_=z(require("qs"));ie();ae();me();s();var vd=require("react");La();s();var Id=require("react"),eA=require("@multiversx/sdk-extension-provider");ie();s();ae();me();s();s();s();s();var Ad=require("react"),X_=require("@multiversx/sdk-extension-provider");ie();s();s();s();s();s();s();s();s();var $r=z(require("react"));var lU=(0,$r.createContext)({}),pU=ee.getState();s();var _d=z(require("react"));s();var tc=z(require("react")),K_=z(require("axios"));s();s();ae();s();s();var tA=z(require("axios"));ae();xe();Or();s();wn();ae();s();s();var pA=require("react");s();s();s();ae();s();s();var oA=z(require("bignumber.js"));ie();ae();xe();s();var rA=z(require("bignumber.js"));ie();s();var iA=require("@multiversx/sdk-core"),sA=z(require("bignumber.js"));ie();s();s();s();s();var Ed=z(require("axios"));s();s();s();function bd(n){return K(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Ld=(n,o,i,u=0)=>K(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield bd(o.delay)),yield Ld(n,o,i,u+1)):null}}),rc=(n,o={retries:5,delay:500})=>(...i)=>K(void 0,null,function*(){return yield Ld(n,o,i)});var aA=4;var tW=rc((n,o)=>K(void 0,null,function*(){let{data:i}=yield Ed.default.get(`${n}/${Ya}?from=${aA}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Rr();s();s();var cA=z(Cd());s();var kd,gW={origin:typeof window!="undefined"?(kd=window==null?void 0:window.location)==null?void 0:kd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();me();bn();s();var Pd=require("react");s();s();var dA=require("react"),gA=require("@multiversx/sdk-extension-provider");wn();ke();me();s();In();s();var fA=require("react"),Rd=require("@multiversx/sdk-core");ae();s();var mA=require("react"),TA=require("@multiversx/sdk-opera-provider");wn();ke();me();In();s();var xA=require("react");wn();ae();s();s();s();Ta();s();s();var hA=z(require("platform"));s();ke();xe();Or();Xn();Zn();s();s();s();s();s();s();s();s();s();s();me();s();Or();Xn();s();s();s();ae();s();s();var yA=z(require("axios"));s();s();var Dd=require("react"),vA=require("@multiversx/sdk-hw-provider");wn();ke();ae();me();In();s();var SA=require("react");s();var ic=require("react"),AA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");ke();ae();me();In();s();var sc=require("react"),IA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");ke();ae();me();In();s();s();var Nd=require("react");s();var EA=require("react");s();var ac=require("react"),LA=require("socket.io-client");ae();s();s();s();s();var Od=n=>n.dappModal,CA=D(Od,n=>n.visible),ki=D(Od,n=>n.modal),Z3=D(ki,n=>n.showHeader),X3=D(ki,n=>n.showFooter),J3=D(ki,n=>n.headerText),Q3=D(ki,n=>n.footerText);xe();Rr();ma();bn();s();var kA=`.dapp-core-component__transactionToast-styles__content {
20
+ }`;var q=Fl(function(){return j(p,N+"return "+L).apply(n,T)});if(q.source=L,$s(q))throw q;return q}function HS(e){return te(e).toLowerCase()}function VS(e){return te(e).toUpperCase()}function qS(e,t,r){if(e=te(e),e&&(r||t===n))return zc(e);if(!e||!(t=Ve(t)))return e;var a=lt(e),c=lt(t),p=Kc(a,c),T=Yc(a,c)+1;return en(a,p,T).join("")}function zS(e,t,r){if(e=te(e),e&&(r||t===n))return e.slice(0,Xc(e)+1);if(!e||!(t=Ve(t)))return e;var a=lt(e),c=Yc(a,lt(t))+1;return en(a,0,c).join("")}function KS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace($i,"");if(!e||!(t=Ve(t)))return e;var a=lt(e),c=Kc(a,lt(t));return en(a,c).join("")}function YS(e,t){var r=Gd,a=$d;if(fe(t)){var c="separator"in t?t.separator:c;r="length"in t?V(t.length):r,a="omission"in t?Ve(t.omission):a}e=te(e);var p=e.length;if(Nn(e)){var T=lt(e);p=T.length}if(r>=p)return e;var h=r-On(a);if(h<1)return a;var x=T?en(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),Hs(c)){if(e.slice(h).search(c)){var I,b=x;for(c.global||(c=is(c.source,te(gc.exec(c))+"g")),c.lastIndex=0;I=c.exec(b);)var L=I.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(Ve(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function ZS(e){return e=te(e),e&&sg.test(e)?e.replace(pc,Am):e}var XS=Gn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),zs=Uu("toUpperCase");function Ml(e,t,r){return e=te(e),t=r?n:t,t===n?xm(e)?Lm(e):lm(e):e.match(t)||[]}var Fl=Y(function(e,t){try{return $e(e,n,t)}catch(r){return $s(r)?r:new $(r)}}),JS=Rt(function(e,t){return je(t,function(r){r=yt(r),kt(e,r,Ws(e[r],e))}),e});function QS(e){var t=e==null?0:e.length,r=F();return e=t?le(e,function(a){if(typeof a[1]!="function")throw new et(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var p=e[c];if($e(p[0],this,a))return $e(p[1],this,a)}})}function jS(e){return AT(nt(e,R))}function Ks(e){return function(){return e}}function ev(e,t){return e==null||e!==e?t:e}var tv=Wu(),nv=Wu(!0);function Ue(e){return e}function Ys(e){return Tu(typeof e=="function"?e:nt(e,R))}function rv(e){return yu(nt(e,R))}function ov(e,t){return xu(e,nt(t,R))}var iv=Y(function(e,t){return function(r){return vr(r,e,t)}}),sv=Y(function(e,t){return function(r){return vr(e,r,t)}});function Zs(e,t,r){var a=Ae(t),c=vo(t,a);r==null&&!(fe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=vo(t,Ae(t)));var p=!(fe(r)&&"chain"in r)||!!r.chain,T=Nt(e);return je(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var I=this.__chain__;if(p||I){var b=e(this.__wrapped__),L=b.__actions__=Oe(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=I,b}return x.apply(e,Kt([this.value()],arguments))})}),e}function av(){return _e._===this&&(_e._=Dm),this}function Xs(){}function cv(e){return e=V(e),Y(function(t){return Su(t,e)})}var uv=Ls(le),lv=Ls(Gc),pv=Ls(Qi);function Ul(e){return Ns(e)?ji(yt(e)):GT(e)}function fv(e){return function(t){return e==null?n:gn(e,t)}}var dv=$u(),gv=$u(!0);function Js(){return[]}function Qs(){return!1}function mv(){return{}}function Tv(){return""}function hv(){return!0}function yv(e,t){if(e=V(e),e<1||e>qt)return[];var r=mt,a=Ee(e,mt);t=F(t),e-=mt;for(var c=ns(a,t);++r<e;)t(r);return c}function xv(e){return H(e)?le(e,yt):qe(e)?[e]:Oe(ol(te(e)))}function Sv(e){var t=++Pm;return te(e)+t}var vv=Lo(function(e,t){return e+t},0),wv=Es("ceil"),_v=Lo(function(e,t){return e/t},1),Av=Es("floor");function Iv(e){return e&&e.length?So(e,Ue,ds):n}function bv(e,t){return e&&e.length?So(e,F(t,2),ds):n}function Lv(e){return Vc(e,Ue)}function Ev(e,t){return Vc(e,F(t,2))}function Cv(e){return e&&e.length?So(e,Ue,hs):n}function kv(e,t){return e&&e.length?So(e,F(t,2),hs):n}var Pv=Lo(function(e,t){return e*t},1),Rv=Es("round"),Dv=Lo(function(e,t){return e-t},0);function Nv(e){return e&&e.length?ts(e,Ue):0}function Ov(e,t){return e&&e.length?ts(e,F(t,2)):0}return l.after=rx,l.ary=ml,l.assign=Vx,l.assignIn=Cl,l.assignInWith=Wo,l.assignWith=qx,l.at=zx,l.before=Tl,l.bind=Ws,l.bindAll=JS,l.bindKey=hl,l.castArray=mx,l.chain=fl,l.chunk=Ah,l.compact=Ih,l.concat=bh,l.cond=QS,l.conforms=jS,l.constant=Ks,l.countBy=Ny,l.create=Kx,l.curry=yl,l.curryRight=xl,l.debounce=Sl,l.defaults=Yx,l.defaultsDeep=Zx,l.defer=ox,l.delay=ix,l.difference=Lh,l.differenceBy=Eh,l.differenceWith=Ch,l.drop=kh,l.dropRight=Ph,l.dropRightWhile=Rh,l.dropWhile=Dh,l.fill=Nh,l.filter=My,l.flatMap=By,l.flatMapDeep=Wy,l.flatMapDepth=Gy,l.flatten=cl,l.flattenDeep=Oh,l.flattenDepth=Mh,l.flip=sx,l.flow=tv,l.flowRight=nv,l.fromPairs=Fh,l.functions=nS,l.functionsIn=rS,l.groupBy=$y,l.initial=Bh,l.intersection=Wh,l.intersectionBy=Gh,l.intersectionWith=$h,l.invert=iS,l.invertBy=sS,l.invokeMap=Vy,l.iteratee=Ys,l.keyBy=qy,l.keys=Ae,l.keysIn=Fe,l.map=No,l.mapKeys=cS,l.mapValues=uS,l.matches=rv,l.matchesProperty=ov,l.memoize=Mo,l.merge=lS,l.mergeWith=kl,l.method=iv,l.methodOf=sv,l.mixin=Zs,l.negate=Fo,l.nthArg=cv,l.omit=pS,l.omitBy=fS,l.once=ax,l.orderBy=zy,l.over=uv,l.overArgs=cx,l.overEvery=lv,l.overSome=pv,l.partial=Gs,l.partialRight=vl,l.partition=Ky,l.pick=dS,l.pickBy=Pl,l.property=Ul,l.propertyOf=fv,l.pull=zh,l.pullAll=ll,l.pullAllBy=Kh,l.pullAllWith=Yh,l.pullAt=Zh,l.range=dv,l.rangeRight=gv,l.rearg=ux,l.reject=Xy,l.remove=Xh,l.rest=lx,l.reverse=Us,l.sampleSize=Qy,l.set=mS,l.setWith=TS,l.shuffle=jy,l.slice=Jh,l.sortBy=nx,l.sortedUniq=oy,l.sortedUniqBy=iy,l.split=BS,l.spread=px,l.tail=sy,l.take=ay,l.takeRight=cy,l.takeRightWhile=uy,l.takeWhile=ly,l.tap=Iy,l.throttle=fx,l.thru=Do,l.toArray=bl,l.toPairs=Rl,l.toPairsIn=Dl,l.toPath=xv,l.toPlainObject=El,l.transform=hS,l.unary=dx,l.union=py,l.unionBy=fy,l.unionWith=dy,l.uniq=gy,l.uniqBy=my,l.uniqWith=Ty,l.unset=yS,l.unzip=Bs,l.unzipWith=pl,l.update=xS,l.updateWith=SS,l.values=Vn,l.valuesIn=vS,l.without=hy,l.words=Ml,l.wrap=gx,l.xor=yy,l.xorBy=xy,l.xorWith=Sy,l.zip=vy,l.zipObject=wy,l.zipObjectDeep=_y,l.zipWith=Ay,l.entries=Rl,l.entriesIn=Dl,l.extend=Cl,l.extendWith=Wo,Zs(l,l),l.add=vv,l.attempt=Fl,l.camelCase=IS,l.capitalize=Nl,l.ceil=wv,l.clamp=wS,l.clone=Tx,l.cloneDeep=yx,l.cloneDeepWith=xx,l.cloneWith=hx,l.conformsTo=Sx,l.deburr=Ol,l.defaultTo=ev,l.divide=_v,l.endsWith=bS,l.eq=ft,l.escape=LS,l.escapeRegExp=ES,l.every=Oy,l.find=Fy,l.findIndex=sl,l.findKey=Xx,l.findLast=Uy,l.findLastIndex=al,l.findLastKey=Jx,l.floor=Av,l.forEach=dl,l.forEachRight=gl,l.forIn=Qx,l.forInRight=jx,l.forOwn=eS,l.forOwnRight=tS,l.get=Vs,l.gt=vx,l.gte=wx,l.has=oS,l.hasIn=qs,l.head=ul,l.identity=Ue,l.includes=Hy,l.indexOf=Uh,l.inRange=_S,l.invoke=aS,l.isArguments=hn,l.isArray=H,l.isArrayBuffer=_x,l.isArrayLike=Me,l.isArrayLikeObject=Te,l.isBoolean=Ax,l.isBuffer=tn,l.isDate=Ix,l.isElement=bx,l.isEmpty=Lx,l.isEqual=Ex,l.isEqualWith=Cx,l.isError=$s,l.isFinite=kx,l.isFunction=Nt,l.isInteger=wl,l.isLength=Uo,l.isMap=_l,l.isMatch=Px,l.isMatchWith=Rx,l.isNaN=Dx,l.isNative=Nx,l.isNil=Mx,l.isNull=Ox,l.isNumber=Al,l.isObject=fe,l.isObjectLike=ge,l.isPlainObject=Lr,l.isRegExp=Hs,l.isSafeInteger=Fx,l.isSet=Il,l.isString=Bo,l.isSymbol=qe,l.isTypedArray=Hn,l.isUndefined=Ux,l.isWeakMap=Bx,l.isWeakSet=Wx,l.join=Hh,l.kebabCase=CS,l.last=ot,l.lastIndexOf=Vh,l.lowerCase=kS,l.lowerFirst=PS,l.lt=Gx,l.lte=$x,l.max=Iv,l.maxBy=bv,l.mean=Lv,l.meanBy=Ev,l.min=Cv,l.minBy=kv,l.stubArray=Js,l.stubFalse=Qs,l.stubObject=mv,l.stubString=Tv,l.stubTrue=hv,l.multiply=Pv,l.nth=qh,l.noConflict=av,l.noop=Xs,l.now=Oo,l.pad=RS,l.padEnd=DS,l.padStart=NS,l.parseInt=OS,l.random=AS,l.reduce=Yy,l.reduceRight=Zy,l.repeat=MS,l.replace=FS,l.result=gS,l.round=Rv,l.runInContext=y,l.sample=Jy,l.size=ex,l.snakeCase=US,l.some=tx,l.sortedIndex=Qh,l.sortedIndexBy=jh,l.sortedIndexOf=ey,l.sortedLastIndex=ty,l.sortedLastIndexBy=ny,l.sortedLastIndexOf=ry,l.startCase=WS,l.startsWith=GS,l.subtract=Dv,l.sum=Nv,l.sumBy=Ov,l.template=$S,l.times=yv,l.toFinite=Ot,l.toInteger=V,l.toLength=Ll,l.toLower=HS,l.toNumber=it,l.toSafeInteger=Hx,l.toString=te,l.toUpper=VS,l.trim=qS,l.trimEnd=zS,l.trimStart=KS,l.truncate=YS,l.unescape=ZS,l.uniqueId=Sv,l.upperCase=XS,l.upperFirst=zs,l.each=dl,l.eachRight=gl,l.first=ul,Zs(l,function(){var e={};return Tt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),je(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:we(V(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,mt),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),je(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==cc||r==zd;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:F(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),je(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),je(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Ue)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return vr(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Fo(F(e)))},X.prototype.slice=function(e,t){e=V(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=V(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(mt)},Tt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,I=h[0],b=x||H(T),L=function(Z){var J=c.apply(l,Kt([Z],h));return a&&C?J[0]:J};b&&r&&typeof I=="function"&&I.length!=1&&(x=b=!1);var C=this.__chain__,N=!!this.__actions__.length,U=p&&!C,q=x&&!N;if(!p&&b){T=q?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Do,args:[L],thisArg:n}),new tt(B,C)}return U&&q?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=oo[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var p=this.value();return t.apply(H(p)?p:[],c)}return this[r](function(T){return t.apply(H(T)?T:[],c)})}}),Tt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Un,a)||(Un[a]=[]),Un[a].push({name:t,func:r})}}),Un[bo(n,Se).name]=[{name:"wrapper",func:n}],X.prototype.clone=Zm,X.prototype.reverse=Xm,X.prototype.value=Jm,l.prototype.at=by,l.prototype.chain=Ly,l.prototype.commit=Ey,l.prototype.next=Cy,l.prototype.plant=Py,l.prototype.reverse=Ry,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Dy,l.prototype.first=l.prototype.head,gr&&(l.prototype[gr]=ky),l},Zt=Em();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(_e._=Zt,define(function(){return Zt})):un?((un.exports=Zt)._=Zt,Yi._=Zt):_e._=Zt}).call(rr)});var OA={};yn(OA,{useTransactionToast:()=>NA});module.exports=kr(OA);s();var qr=require("react");ie();s();s();s();var Uf=require("react"),er=require("react-redux");s();var Ba=require("@reduxjs/toolkit"),Mf=require("react-redux/lib/utils/Subscription");ae();s();var ff=z(require("lodash.throttle"));ie();s();var pf=z(require("lodash.isequal")),mi=require("reselect");xe();var D=(0,mi.createSelectorCreator)(mi.defaultMemoize,pf.default),Ur=(n,o)=>n!=""&&Boolean(o);ae();Ia();Xn();Zn();var nw=[Zo],Ti=!1,rw=(0,ff.default)(()=>{Nr(Dr())},5e3),df=n=>o=>i=>{var E;if(nw.includes(i.type))return o(i);let u=n.getState(),m=An.local.getItem(nn.loginExpiresAt);if(!Ur((E=u==null?void 0:u.loginInfo)==null?void 0:E.loginMethod,u==null?void 0:u.account.address))return o(i);if(m==null)return Nr(Dr());let v=Date.now();return m-v<0&&!Ti?setTimeout(()=>{Ti=!0,n.dispatch(Gp())},1e3):(Ti&&(Ti=!1),rw()),o(i)};s();s();function hi(){return typeof sessionStorage!="undefined"}var Df=hi()?(Af(),kr(_f)).default:(bf(),kr(If)).default,Nf=hi()?(Ef(),kr(Lf)).default:[],Of=hi()?(Rf(),kr(Pf)).default:n=>n;yi();var ee=(0,Ba.configureStore)({reducer:Df,middleware:n=>n({serializableCheck:{ignoredActions:[...Nf,Aa.type,_a.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(df)}),Ff=(0,Mf.createSubscription)(ee),cE=Of(ee),uE=(0,Ba.configureStore)({reducer:Ln});var Iw={store:ee,subscription:Ff},Wa=(0,Uf.createContext)(Iw),dE=(0,er.createStoreHook)(Wa),Ge=(0,er.createDispatchHook)(Wa),ne=(0,er.createSelectorHook)(Wa);s();s();ae();var Gt=n=>n.account,tr=D(Gt,n=>n.address),Wr=D(Gt,tr,(n,o)=>o in n.accounts?n.accounts[o]:Xo),bw=D(Gt,Wr,(n,o)=>{let m=n,{accounts:i}=m,u=$o(m,["accounts"]);return Q(O({},u),{account:o})}),Lw=D(Wr,n=>n.balance),Ew=D(Wr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),Bf=D(Gt,n=>n.shard),Cw=D(Gt,n=>n.ledgerAccount),hE=D(Gt,n=>n.walletConnectAccount),yE=D(Gt,n=>n.isAccountLoading),xE=D(Gt,n=>n.accountLoadingError),Wf=D(Gt,n=>n.websocketEvent);s();var gt=n=>n.loginInfo,_E=D(gt,n=>n.loginMethod),Ga=D(gt,tr,(n,o)=>Ur(n.loginMethod,o)),AE=D(gt,n=>n.walletConnectLogin),IE=D(gt,n=>n.ledgerLogin),kw=D(gt,n=>n.walletLogin),bE=D(gt,n=>n.isLoginSessionInvalid),Pw=D(gt,n=>n.tokenLogin),LE=D(gt,n=>n.logoutRoute);s();var Gf=n=>n.modals,kE=D(Gf,n=>n.txSubmittedModal),Rw=D(Gf,n=>n.notificationModal);s();var $t=n=>n.networkConfig,xi=D($t,n=>n.chainID),Dw=D($t,n=>n.network.walletConnectBridgeAddress),Nw=D($t,n=>n.network.walletConnectV2RelayAddress),Ow=D($t,n=>n.network.walletConnectV2ProjectId),Mw=D($t,n=>n.network.walletConnectV2Options),$f=D($t,n=>n.network.walletConnectDeepLink),sn=D($t,n=>n.network),Hf=D(sn,n=>n.apiAddress),Vf=D(sn,n=>n.explorerAddress),qf=D(sn,n=>n.egldLabel);s();var $a=n=>n.signedMessageInfo,OE=D($a,n=>n.isSigning),ME=D($a,n=>n.errorMessage),FE=D($a,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Ha=n=>n.toasts,WE=D(Ha,n=>n.customToasts),GE=D(Ha,n=>n.transactionToasts),$E=D(Ha,n=>n.failTransactionToast);s();ae();var zf={errorMessage:Ra,successMessage:Da,processingMessage:Na},Fw=n=>n.transactionsInfo,Kf=D(Fw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||zf);s();s();var Xe=require("@multiversx/sdk-core");ie();s();function Si(n){try{return f.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function vi(n){var m,S,v;let{data:o}=n,i=Si(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Pr,gasPrice:(S=n.gasPrice.valueOf())!=null?S:Yo,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((v=n.version)!=null?v:Ip)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var qa=require("@multiversx/sdk-core/out");s();ie();var Uw=n=>{let o=f.Buffer.from([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);if(n.slice(0,o.length).equals(o))return!0;let u=f.Buffer.alloc(32).fill(0);return n.equals(u)},Va=n=>{try{let i=parseInt("11",2),u=parseInt("01",2),m=f.Buffer.from(n,"hex"),S=m[31];if(Uw(m))return ga;let v=S&i;return v>3-1&&(v=S&u),v}catch(o){return-1}};function Yf({receiverAddress:n,senderShard:o,senderAddress:i}){try{let u=new qa.Address(n),m=Va(u.pubkey());if(o==null&&i!=null){let S=new qa.Address(i);return Va(S)===m}return m===o}catch(u){return!1}}s();var Ka=require("@multiversx/sdk-core");xe();s();var Bw=require("@multiversx/sdk-core");function Zf({receiver:n,data:o}){try{if(!o)return n;let i=Si(o)?Ka.TransactionPayload.fromEncoded(o).toString():o,u=Ww(i),m=i.split("@");return u>-1?m[u]:n}catch(i){console.log(i);return}}function Ww(n){return n.includes("MultiESDTNFTTransfer")?1:n.includes("ESDTNFTTransfer")?4:-1}var Xf=(n,o=1)=>n!=null&&n.length?n.reduce((i,{receiver:u,data:m})=>{let S=Zf({receiver:u,data:m!=null?m:""});return S==null?i:i&&Yf({receiverAddress:S,senderShard:o})},!0):!0;s();s();s();var $w=require("@multiversx/sdk-core"),Hw=z(require("bignumber.js"));me();s();s();s();s();s();var Ya="blocks";s();s();s();s();We();s();s();We();s();s();s();var Jw=z(require("bignumber.js"));ie();s();var Xw=require("@multiversx/sdk-core"),Za=z(require("bignumber.js"));ie();s();var Yw=z(require("bignumber.js"));s();Za.default.config({ROUNDING_MODE:Za.default.ROUND_FLOOR});s();s();s();ie();s();s();s();s();ie();s();ie();s();var Qw=require("@multiversx/sdk-core");ie();s();var Gr=require("@multiversx/sdk-core"),t_=require("@multiversx/sdk-network-providers");ie();s();s();var jw=z(require("bignumber.js"));ie();s();ie();s();s();s();s();s();ie();s();We();var r_=["reDelegateRewards","claimRewards","unBond"],o_=["wrapEgld","unwrapEgld"],i_=["unStake"],s_=["unDelegate"];s();s();s();ie();s();var l_=z(require("bignumber.js"));s();s();s();s();We();s();var p_=z(require("bignumber.js"));s();s();s();var g_=z(require("bignumber.js"));xe();s();s();s();s();me();s();s();s();s();We();s();s();s();var m_=z(require("linkifyjs"));s();ie();s();var T_=z(require("bignumber.js"));s();xe();s();s();me();s();me();s();s();s();We();s();We();s();var h_=z(require("bignumber.js"));ie();We();s();We();s();var sd=require("react");xe();s();s();We();s();s();var y_=require("@multiversx/sdk-core/out"),x_=z(require("bignumber.js"));We();s();xe();s();s();xe();var xD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var ad=require("react");xe();s();var v_=require("react");We();var bD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];bn();var Ii=n=>n.transactions,nr=D(Ii,n=>n.signedTransactions),w_=D(Ii,n=>n.signTransactionsError),cd=D(Ii,n=>n.signTransactionsCancelMessage),bi=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),ud=D(nr,bi(rn)),ld=D(nr,bi(Qn)),pd=D(nr,bi(jn)),__=D(nr,bi(Mr)),fd=D(Ii,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>vi(i)))||[]})}),A_=D(nr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var dd=require("react");s();ae();s();s();s();s();s();s();s();s();var I_=require("@multiversx/sdk-extension-provider"),b_=require("@multiversx/sdk-hw-provider"),L_=require("@multiversx/sdk-opera-provider"),E_=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),C_=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),k_=require("@multiversx/sdk-web-wallet-provider");ie();me();var Ht=n=>`Unable to perform ${n}, Provider not initialized`,Ja=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Ht(`login with options: ${o}`))}logout(o){throw new Error(Ht(`logout with options: ${o}`))}getAddress(){throw new Error(Ht("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Ht(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Ht(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Ht(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Ht(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Ht(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Ht(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},P_=new Ja;ae();s();s();var R_=z(require("axios"));s();s();s();me();s();s();s();bn();s();s();s();var D_=z(require("axios"));s();var N_=z(require("axios"));s();var M_=z(require("axios"));s();s();var F_=z(require("axios"));s();var U_=z(require("axios"));s();ae();me();s();s();ae();s();s();var hd=require("@multiversx/sdk-core");s();ke();xe();s();bn();s();ae();me();s();ae();xe();s();s();s();xe();s();s();s();s();var $_=z(require("axios")),H_=z(require("swr"));s();function yd(n){return ne(o=>Kf(o,n))}s();var xd=require("react");s();var z_=require("react"),wd=require("@multiversx/sdk-web-wallet-provider"),K_=z(require("qs"));ie();ae();me();s();s();var Sd,EF={search:(Sd=window==null?void 0:window.location)==null?void 0:Sd.search,removeParams:[]};s();var _d=require("react");La();s();var Ld=require("react"),nA=require("@multiversx/sdk-extension-provider");ie();s();ae();me();s();s();s();s();var bd=require("react"),Q_=require("@multiversx/sdk-extension-provider");ie();s();s();s();s();s();s();s();s();var $r=z(require("react"));var xU=(0,$r.createContext)({}),SU=ee.getState();s();var Id=z(require("react"));s();var tc=z(require("react")),Z_=z(require("axios"));s();s();ae();s();s();var rA=z(require("axios"));ae();xe();Or();s();wn();ae();s();s();var dA=require("react");s();s();s();ae();s();s();var sA=z(require("bignumber.js"));ie();ae();xe();s();var iA=z(require("bignumber.js"));ie();s();var aA=require("@multiversx/sdk-core"),cA=z(require("bignumber.js"));ie();s();s();s();s();var kd=z(require("axios"));s();s();s();function Ed(n){return K(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Cd=(n,o,i,u=0)=>K(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield Ed(o.delay)),yield Cd(n,o,i,u+1)):null}}),rc=(n,o={retries:5,delay:500})=>(...i)=>K(void 0,null,function*(){return yield Cd(n,o,i)});var uA=4;var lW=rc((n,o)=>K(void 0,null,function*(){let{data:i}=yield kd.default.get(`${n}/${Ya}?from=${uA}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Rr();s();s();var lA=z(Pd());s();var Rd,_W={origin:typeof window!="undefined"?(Rd=window==null?void 0:window.location)==null?void 0:Rd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();me();bn();s();var Dd=require("react");s();s();var mA=require("react"),TA=require("@multiversx/sdk-extension-provider");wn();ke();me();s();In();s();var gA=require("react"),Nd=require("@multiversx/sdk-core");ae();s();var hA=require("react"),yA=require("@multiversx/sdk-opera-provider");wn();ke();me();In();s();var vA=require("react");wn();ae();s();s();Ta();s();s();var xA=z(require("platform"));s();ke();xe();Or();Xn();Zn();s();s();s();s();s();s();s();s();s();me();s();Or();Xn();s();s();s();ae();s();s();var SA=z(require("axios"));s();s();var Od=require("react"),_A=require("@multiversx/sdk-hw-provider");wn();ke();ae();me();In();s();var wA=require("react");s();var ic=require("react"),bA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");ke();ae();me();In();s();var sc=require("react"),LA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");ke();ae();me();In();s();s();var Md=require("react");s();var kA=require("react");s();var ac=require("react"),CA=require("socket.io-client");ae();s();s();s();s();var Fd=n=>n.dappModal,PA=D(Fd,n=>n.visible),ki=D(Fd,n=>n.modal),e6=D(ki,n=>n.showHeader),t6=D(ki,n=>n.showFooter),n6=D(ki,n=>n.headerText),r6=D(ki,n=>n.footerText);xe();Rr();ma();bn();s();var RA=`.dapp-core-component__transactionToast-styles__content {
21
21
  display: flex;
22
22
  align-items: center;
23
23
  }
@@ -88,7 +88,7 @@ function print() { __p += __j.call(arguments, '') }
88
88
  }
89
89
  .dapp-core-component__transactionToast-styles__content .dapp-core-component__transactionToast-styles__right .dapp-core-component__transactionToast-styles__heading .dapp-core-component__transactionToast-styles__footer {
90
90
  display: block;
91
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(kA));var Md={content:"dapp-core-component__transactionToast-styles__content",left:"dapp-core-component__transactionToast-styles__left",warning:"dapp-core-component__transactionToast-styles__warning",danger:"dapp-core-component__transactionToast-styles__danger",success:"dapp-core-component__transactionToast-styles__success",icon:"dapp-core-component__transactionToast-styles__icon",svg:"dapp-core-component__transactionToast-styles__svg",right:"dapp-core-component__transactionToast-styles__right",heading:"dapp-core-component__transactionToast-styles__heading",title:"dapp-core-component__transactionToast-styles__title",close:"dapp-core-component__transactionToast-styles__close",footer:"dapp-core-component__transactionToast-styles__footer"};s();s();var Cn=require("@fortawesome/free-solid-svg-icons");xe();var Fd=({status:n,toastId:o,classes:i={success:"success",danger:"danger",warning:"warning"},transactionDisplayInfo:u})=>{var E,R,G,M;let m={id:o,icon:Cn.faCheck,expires:3e4,hasCloseButton:!0,title:(E=u==null?void 0:u.successMessage)!=null?E:"Transaction successful",iconClassName:i.success},S={id:o,expires:!1,icon:Cn.faHourglass,hasCloseButton:!1,title:(R=u==null?void 0:u.processingMessage)!=null?R:"Processing transaction",iconClassName:i.warning},v={id:o,icon:Cn.faTimes,title:(G=u==null?void 0:u.errorMessage)!=null?G:"Transaction failed",hasCloseButton:!0,iconClassName:i.danger},k={id:o,icon:Cn.faTimes,title:(M=u==null?void 0:u.timedOutMessage)!=null?M:"Transaction timed out",hasCloseButton:!0,iconClassName:i.warning};switch(n){case"signed":case"sent":return S;case"success":return m;case"cancelled":case"fail":return v;case"timedOut":return k;default:return S}};var RA=({toastId:n,transactions:o,status:i,lifetimeAfterSuccess:u,startTimestamp:m,endTimeProgress:S,onDelete:v})=>{let k=yd(n),E=ne(Bf),R=(0,qr.useMemo)(()=>Xf(o,E),[o,E]),G=R?6e3:5*6e3,M=(k==null?void 0:k.transactionDuration)||G,[ue,de]=(0,qr.useMemo)(()=>{let Ne=m||_n(),Vt=S||Lp(M);return[Ne,Vt]},[]),pe={startTime:ue,endTime:de},Se=rn(i),zr=Mr(i),Je=Fd({status:i,toastId:n,transactionDisplayInfo:k,classes:Md}),It=()=>{v==null||v(n)};return(0,qr.useEffect)(()=>{if(i!=="success"||!u)return;let Ne=setTimeout(()=>{It()},u);return()=>{clearTimeout(Ne)}},[u,i]),{isCrossShard:!R,progress:pe,isPending:Se,isTimedOut:zr,toastDataState:Je,handleDeleteToast:It}};0&&(module.exports={useTransactionToast});
91
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(RA));var Ud={content:"dapp-core-component__transactionToast-styles__content",left:"dapp-core-component__transactionToast-styles__left",warning:"dapp-core-component__transactionToast-styles__warning",danger:"dapp-core-component__transactionToast-styles__danger",success:"dapp-core-component__transactionToast-styles__success",icon:"dapp-core-component__transactionToast-styles__icon",svg:"dapp-core-component__transactionToast-styles__svg",right:"dapp-core-component__transactionToast-styles__right",heading:"dapp-core-component__transactionToast-styles__heading",title:"dapp-core-component__transactionToast-styles__title",close:"dapp-core-component__transactionToast-styles__close",footer:"dapp-core-component__transactionToast-styles__footer"};s();s();var Cn=require("@fortawesome/free-solid-svg-icons");xe();var Bd=({status:n,toastId:o,classes:i={success:"success",danger:"danger",warning:"warning"},transactionDisplayInfo:u})=>{var E,R,G,M;let m={id:o,icon:Cn.faCheck,expires:3e4,hasCloseButton:!0,title:(E=u==null?void 0:u.successMessage)!=null?E:"Transaction successful",iconClassName:i.success},S={id:o,expires:!1,icon:Cn.faHourglass,hasCloseButton:!1,title:(R=u==null?void 0:u.processingMessage)!=null?R:"Processing transaction",iconClassName:i.warning},v={id:o,icon:Cn.faTimes,title:(G=u==null?void 0:u.errorMessage)!=null?G:"Transaction failed",hasCloseButton:!0,iconClassName:i.danger},k={id:o,icon:Cn.faTimes,title:(M=u==null?void 0:u.timedOutMessage)!=null?M:"Transaction timed out",hasCloseButton:!0,iconClassName:i.warning};switch(n){case"signed":case"sent":return S;case"success":return m;case"cancelled":case"fail":return v;case"timedOut":return k;default:return S}};var NA=({toastId:n,transactions:o,status:i,lifetimeAfterSuccess:u,startTimestamp:m,endTimeProgress:S,onDelete:v})=>{let k=yd(n),E=ne(Bf),R=(0,qr.useMemo)(()=>Xf(o,E),[o,E]),G=R?6e3:5*6e3,M=(k==null?void 0:k.transactionDuration)||G,[ue,de]=(0,qr.useMemo)(()=>{let Ne=m||_n(),Vt=S||Lp(M);return[Ne,Vt]},[]),pe={startTime:ue,endTime:de},Se=rn(i),zr=Mr(i),Je=Bd({status:i,toastId:n,transactionDisplayInfo:k,classes:Ud}),It=()=>{v==null||v(n)};return(0,qr.useEffect)(()=>{if(i!=="success"||!u)return;let Ne=setTimeout(()=>{It()},u);return()=>{clearTimeout(Ne)}},[u,i]),{isCrossShard:!R,progress:pe,isPending:Se,isTimedOut:zr,toastDataState:Je,handleDeleteToast:It}};0&&(module.exports={useTransactionToast});
92
92
  /*!
93
93
  * The buffer module from node.js, for the browser.
94
94
  *