@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 t0=Object.create;var Cr=Object.defineProperty,n0=Object.defineProperties,r0=Object.getOwnPropertyDescriptor,o0=Object.getOwnPropertyDescriptors,i0=Object.getOwnPropertyNames,Vo=Object.getOwnPropertySymbols,s0=Object.getPrototypeOf,da=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable;var Jl=(n,o,i)=>o in n?Cr(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))da.call(o,i)&&Jl(n,i,o[i]);if(Vo)for(var i of Vo(o))Ql.call(o,i)&&Jl(n,i,o[i]);return n},j=(n,o)=>n0(n,o0(o));var qo=(n,o)=>{var i={};for(var u in n)da.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Vo)for(var u of Vo(n))o.indexOf(u)<0&&Ql.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Pr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Cr(n,i,{get:o[i],enumerable:!0})},jl=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of i0(o))!da.call(n,m)&&m!==i&&Cr(n,m,{get:()=>o[m],enumerable:!(u=r0(o,m))||u.enumerable});return n};var Y=(n,o,i)=>(i=n!=null?t0(s0(n)):{},jl(o||!n||!n.__esModule?Cr(i,"default",{value:n,enumerable:!0}):i,n)),Rr=n=>jl(Cr({},"__esModule",{value:!0}),n);var G=(n,o,i)=>new Promise((u,m)=>{var v=E=>{try{k(i.next(E))}catch(N){m(N)}},y=E=>{try{k(i.throw(E))}catch(N){m(N)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(v,y);k((i=i.apply(n,o)).next())});var np=Pr(zo=>{"use strict";s();zo.byteLength=c0;zo.toByteArray=l0;zo.fromByteArray=d0;var St=[],ot=[],a0=typeof Uint8Array!="undefined"?Uint8Array:Array,ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,ep=ga.length;xn<ep;++xn)St[xn]=ga[xn],ot[ga.charCodeAt(xn)]=xn;var xn,ep;ot["-".charCodeAt(0)]=62;ot["_".charCodeAt(0)]=63;function tp(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 c0(n){var o=tp(n),i=o[0],u=o[1];return(i+u)*3/4-u}function u0(n,o,i){return(o+i)*3/4-i}function l0(n){var o,i=tp(n),u=i[0],m=i[1],v=new a0(u0(n,u,m)),y=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=ot[n.charCodeAt(E)]<<18|ot[n.charCodeAt(E+1)]<<12|ot[n.charCodeAt(E+2)]<<6|ot[n.charCodeAt(E+3)],v[y++]=o>>16&255,v[y++]=o>>8&255,v[y++]=o&255;return m===2&&(o=ot[n.charCodeAt(E)]<<2|ot[n.charCodeAt(E+1)]>>4,v[y++]=o&255),m===1&&(o=ot[n.charCodeAt(E)]<<10|ot[n.charCodeAt(E+1)]<<4|ot[n.charCodeAt(E+2)]>>2,v[y++]=o>>8&255,v[y++]=o&255),v}function p0(n){return St[n>>18&63]+St[n>>12&63]+St[n>>6&63]+St[n&63]}function f0(n,o,i){for(var u,m=[],v=o;v<i;v+=3)u=(n[v]<<16&16711680)+(n[v+1]<<8&65280)+(n[v+2]&255),m.push(p0(u));return m.join("")}function d0(n){for(var o,i=n.length,u=i%3,m=[],v=16383,y=0,k=i-u;y<k;y+=v)m.push(f0(n,y,y+v>k?k:y+v));return u===1?(o=n[i-1],m.push(St[o>>2]+St[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(St[o>>10]+St[o>>4&63]+St[o<<2&63]+"=")),m.join("")}});var rp=Pr(ma=>{s();ma.read=function(n,o,i,u,m){var v,y,k=m*8-u-1,E=(1<<k)-1,N=E>>1,z=-7,F=i?m-1:0,pe=i?-1:1,ye=n[o+F];for(F+=pe,v=ye&(1<<-z)-1,ye>>=-z,z+=k;z>0;v=v*256+n[o+F],F+=pe,z-=8);for(y=v&(1<<-z)-1,v>>=-z,z+=u;z>0;y=y*256+n[o+F],F+=pe,z-=8);if(v===0)v=1-N;else{if(v===E)return y?NaN:(ye?-1:1)*(1/0);y=y+Math.pow(2,u),v=v-N}return(ye?-1:1)*y*Math.pow(2,v-u)};ma.write=function(n,o,i,u,m,v){var y,k,E,N=v*8-m-1,z=(1<<N)-1,F=z>>1,pe=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:v-1,ge=u?1:-1,_e=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,y=z):(y=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-y))<1&&(y--,E*=2),y+F>=1?o+=pe/E:o+=pe*Math.pow(2,1-F),o*E>=2&&(y++,E/=2),y+F>=z?(k=0,y=z):y+F>=1?(k=(o*E-1)*Math.pow(2,m),y=y+F):(k=o*Math.pow(2,F-1)*Math.pow(2,m),y=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(y=y<<m|k,N+=m;N>0;n[i+ye]=y&255,ye+=ge,y/=256,N-=8);n[i+ye-ge]|=_e*128}});var Tp=Pr(Zn=>{"use strict";s();var Ta=np(),Yn=rp(),op=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zn.Buffer=I;Zn.SlowBuffer=x0;Zn.INSPECT_MAX_BYTES=50;var Ko=2147483647;Zn.kMaxLength=Ko;I.TYPED_ARRAY_SUPPORT=g0();!I.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 g0(){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(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}});Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function Ut(n){if(n>Ko)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,I.prototype),o}function I(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 ap(n,o,i)}I.poolSize=8192;function ap(n,o,i){if(typeof n=="string")return T0(n,o);if(ArrayBuffer.isView(n))return h0(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(vt(n,ArrayBuffer)||n&&vt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(vt(n,SharedArrayBuffer)||n&&vt(n.buffer,SharedArrayBuffer)))return ya(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 I.from(u,o,i);var m=y0(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return I.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)}I.from=function(n,o,i){return ap(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function cp(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 m0(n,o,i){return cp(n),n<=0?Ut(n):o!==void 0?typeof i=="string"?Ut(n).fill(o,i):Ut(n).fill(o):Ut(n)}I.alloc=function(n,o,i){return m0(n,o,i)};function Sa(n){return cp(n),Ut(n<0?0:va(n)|0)}I.allocUnsafe=function(n){return Sa(n)};I.allocUnsafeSlow=function(n){return Sa(n)};function T0(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=up(n,o)|0,u=Ut(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ha(n){for(var o=n.length<0?0:va(n.length)|0,i=Ut(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function h0(n){if(vt(n,Uint8Array)){var o=new Uint8Array(n);return ya(o.buffer,o.byteOffset,o.byteLength)}return ha(n)}function ya(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,I.prototype),u}function y0(n){if(I.isBuffer(n)){var o=va(n.length)|0,i=Ut(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||wa(n.length)?Ut(0):ha(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ha(n.data)}function va(n){if(n>=Ko)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ko.toString(16)+" bytes");return n|0}function x0(n){return+n!=n&&(n=0),I.alloc(+n)}I.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==I.prototype};I.compare=function(o,i){if(vt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),vt(i,Uint8Array)&&(i=I.from(i,i.offset,i.byteLength)),!I.isBuffer(o)||!I.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,v=0,y=Math.min(u,m);v<y;++v)if(o[v]!==i[v]){u=o[v],m=i[v];break}return u<m?-1:m<u?1:0};I.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}};I.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return I.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=I.allocUnsafe(i),v=0;for(u=0;u<o.length;++u){var y=o[u];if(vt(y,Uint8Array))v+y.length>m.length?I.from(y).copy(m,v):Uint8Array.prototype.set.call(m,y,v);else if(I.isBuffer(y))y.copy(m,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=y.length}return m};function up(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||vt(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 xa(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return mp(n).length;default:if(m)return u?-1:xa(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=up;function S0(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 C0(this,o,i);case"utf8":case"utf-8":return pp(this,o,i);case"ascii":return E0(this,o,i);case"latin1":case"binary":return k0(this,o,i);case"base64":return b0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Sn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}I.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};I.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};I.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};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?pp(this,0,o):S0.apply(this,arguments)};I.prototype.toLocaleString=I.prototype.toString;I.prototype.equals=function(o){if(!I.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:I.compare(this,o)===0};I.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+">"};op&&(I.prototype[op]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,v){if(vt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),!I.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),v===void 0&&(v=this.length),i<0||u>o.length||m<0||v>this.length)throw new RangeError("out of range index");if(m>=v&&i>=u)return 0;if(m>=v)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,v>>>=0,this===o)return 0;for(var y=v-m,k=u-i,E=Math.min(y,k),N=this.slice(m,v),z=o.slice(i,u),F=0;F<E;++F)if(N[F]!==z[F]){y=N[F],k=z[F];break}return y<k?-1:k<y?1:0};function lp(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,wa(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=I.from(o,u)),I.isBuffer(o))return o.length===0?-1:ip(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):ip(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function ip(n,o,i,u,m){var v=1,y=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;v=2,y/=2,k/=2,i/=2}function E(ye,ge){return v===1?ye[ge]:ye.readUInt16BE(ge*v)}var N;if(m){var z=-1;for(N=i;N<y;N++)if(E(n,N)===E(o,z===-1?0:N-z)){if(z===-1&&(z=N),N-z+1===k)return z*v}else z!==-1&&(N-=N-z),z=-1}else for(i+k>y&&(i=y-k),N=i;N>=0;N--){for(var F=!0,pe=0;pe<k;pe++)if(E(n,N+pe)!==E(o,pe)){F=!1;break}if(F)return N}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return lp(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return lp(this,o,i,u,!1)};function v0(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var v=o.length;u>v/2&&(u=v/2);for(var y=0;y<u;++y){var k=parseInt(o.substr(y*2,2),16);if(wa(k))return y;n[i+y]=k}return y}function w0(n,o,i,u){return Yo(xa(o,n.length-i),n,i,u)}function A0(n,o,i,u){return Yo(N0(o),n,i,u)}function I0(n,o,i,u){return Yo(mp(o),n,i,u)}function _0(n,o,i,u){return Yo(O0(o,n.length-i),n,i,u)}I.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 v=this.length-i;if((u===void 0||u>v)&&(u=v),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var y=!1;;)switch(m){case"hex":return v0(this,o,i,u);case"utf8":case"utf-8":return w0(this,o,i,u);case"ascii":case"latin1":case"binary":return A0(this,o,i,u);case"base64":return I0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _0(this,o,i,u);default:if(y)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),y=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function b0(n,o,i){return o===0&&i===n.length?Ta.fromByteArray(n):Ta.fromByteArray(n.slice(o,i))}function pp(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var v=n[m],y=null,k=v>239?4:v>223?3:v>191?2:1;if(m+k<=i){var E,N,z,F;switch(k){case 1:v<128&&(y=v);break;case 2:E=n[m+1],(E&192)===128&&(F=(v&31)<<6|E&63,F>127&&(y=F));break;case 3:E=n[m+1],N=n[m+2],(E&192)===128&&(N&192)===128&&(F=(v&15)<<12|(E&63)<<6|N&63,F>2047&&(F<55296||F>57343)&&(y=F));break;case 4:E=n[m+1],N=n[m+2],z=n[m+3],(E&192)===128&&(N&192)===128&&(z&192)===128&&(F=(v&15)<<18|(E&63)<<12|(N&63)<<6|z&63,F>65535&&F<1114112&&(y=F))}}y===null?(y=65533,k=1):y>65535&&(y-=65536,u.push(y>>>10&1023|55296),y=56320|y&1023),u.push(y),m+=k}return L0(u)}var sp=4096;function L0(n){var o=n.length;if(o<=sp)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=sp));return i}function E0(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 k0(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 C0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",v=o;v<i;++v)m+=M0[n[v]];return m}function P0(n,o,i){for(var u=n.slice(o,i),m="",v=0;v<u.length-1;v+=2)m+=String.fromCharCode(u[v]+u[v+1]*256);return m}I.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,I.prototype),m};function Ae(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")}I.prototype.readUintLE=I.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,y=0;++y<i&&(v*=256);)m+=this[o+y]*v;return m};I.prototype.readUintBE=I.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o+--i],v=1;i>0&&(v*=256);)m+=this[o+--i]*v;return m};I.prototype.readUint8=I.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]};I.prototype.readUint16LE=I.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]|this[o+1]<<8};I.prototype.readUint16BE=I.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]<<8|this[o+1]};I.prototype.readUint32LE=I.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};I.prototype.readUint32BE=I.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};I.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,y=0;++y<i&&(v*=256);)m+=this[o+y]*v;return v*=128,m>=v&&(m-=Math.pow(2,8*i)),m};I.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=i,v=1,y=this[o+--m];m>0&&(v*=256);)y+=this[o+--m]*v;return v*=128,y>=v&&(y-=Math.pow(2,8*i)),y};I.prototype.readInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};I.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};I.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};I.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};I.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};I.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Yn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Yn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Yn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Yn.read(this,o,!1,52,8)};function Be(n,o,i,u,m,v){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<v)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Be(this,o,i,u,v,0)}var y=1,k=0;for(this[i]=o&255;++k<u&&(y*=256);)this[i+k]=o/y&255;return i+u};I.prototype.writeUintBE=I.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Be(this,o,i,u,v,0)}var y=u-1,k=1;for(this[i+y]=o&255;--y>=0&&(k*=256);)this[i+y]=o/k&255;return i+u};I.prototype.writeUint8=I.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};I.prototype.writeUint16LE=I.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};I.prototype.writeUint16BE=I.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};I.prototype.writeUint32LE=I.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};I.prototype.writeUint32BE=I.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};I.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Be(this,o,i,u,v-1,-v)}var y=0,k=1,E=0;for(this[i]=o&255;++y<u&&(k*=256);)o<0&&E===0&&this[i+y-1]!==0&&(E=1),this[i+y]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Be(this,o,i,u,v-1,-v)}var y=u-1,k=1,E=0;for(this[i+y]=o&255;--y>=0&&(k*=256);)o<0&&E===0&&this[i+y+1]!==0&&(E=1),this[i+y]=(o/k>>0)-E&255;return i+u};I.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};I.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};I.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};I.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};I.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 fp(n,o,i,u,m,v){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function dp(n,o,i,u,m){return o=+o,i=i>>>0,m||fp(n,o,i,4,34028234663852886e22,-34028234663852886e22),Yn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return dp(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return dp(this,o,i,!1,u)};function gp(n,o,i,u,m){return o=+o,i=i>>>0,m||fp(n,o,i,8,17976931348623157e292,-17976931348623157e292),Yn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return gp(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return gp(this,o,i,!1,u)};I.prototype.copy=function(o,i,u,m){if(!I.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 v=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),v};I.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"&&!I.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var v=o.charCodeAt(0);(m==="utf8"&&v<128||m==="latin1")&&(o=v)}}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 y;if(typeof o=="number")for(y=i;y<u;++y)this[y]=o;else{var k=I.isBuffer(o)?o:I.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(y=0;y<u-i;++y)this[y+i]=k[y%E]}return this};var R0=/[^+/0-9A-Za-z-_]/g;function D0(n){if(n=n.split("=")[0],n=n.trim().replace(R0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function xa(n,o){o=o||1/0;for(var i,u=n.length,m=null,v=[],y=0;y<u;++y){if(i=n.charCodeAt(y),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&v.push(239,191,189);continue}else if(y+1===u){(o-=3)>-1&&v.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&v.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&v.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;v.push(i)}else if(i<2048){if((o-=2)<0)break;v.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;v.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;v.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return v}function N0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function O0(n,o){for(var i,u,m,v=[],y=0;y<n.length&&!((o-=2)<0);++y)i=n.charCodeAt(y),u=i>>8,m=i%256,v.push(m),v.push(u);return v}function mp(n){return Ta.toByteArray(D0(n))}function Yo(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 vt(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function wa(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 vp=Pr((qI,Sp)=>{s();var he=Sp.exports={},wt,At;function Aa(){throw new Error("setTimeout has not been defined")}function Ia(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?wt=setTimeout:wt=Aa}catch(n){wt=Aa}try{typeof clearTimeout=="function"?At=clearTimeout:At=Ia}catch(n){At=Ia}})();function hp(n){if(wt===setTimeout)return setTimeout(n,0);if((wt===Aa||!wt)&&setTimeout)return wt=setTimeout,setTimeout(n,0);try{return wt(n,0)}catch(o){try{return wt.call(null,n,0)}catch(i){return wt.call(this,n,0)}}}function F0(n){if(At===clearTimeout)return clearTimeout(n);if((At===Ia||!At)&&clearTimeout)return At=clearTimeout,clearTimeout(n);try{return At(n)}catch(o){try{return At.call(null,n)}catch(i){return At.call(this,n)}}}var Bt=[],Xn=!1,vn,Zo=-1;function U0(){!Xn||!vn||(Xn=!1,vn.length?Bt=vn.concat(Bt):Zo=-1,Bt.length&&yp())}function yp(){if(!Xn){var n=hp(U0);Xn=!0;for(var o=Bt.length;o;){for(vn=Bt,Bt=[];++Zo<o;)vn&&vn[Zo].run();Zo=-1,o=Bt.length}vn=null,Xn=!1,F0(n)}}he.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];Bt.push(new xp(n,o)),Bt.length===1&&!Xn&&hp(yp)};function xp(n,o){this.fun=n,this.array=o}xp.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Wt(){}he.on=Wt;he.addListener=Wt;he.once=Wt;he.off=Wt;he.removeListener=Wt;he.removeAllListeners=Wt;he.emit=Wt;he.prependListener=Wt;he.prependOnceListener=Wt;he.listeners=function(n){return[]};he.binding=function(n){throw new Error("process.binding is not supported")};he.cwd=function(){return"/"};he.chdir=function(n){throw new Error("process.chdir is not supported")};he.umask=function(){return 0}});var d,g,B0,f,s=W(()=>{d=Y(Tp()),g=Y(vp()),B0=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),f=B0});var wn=W(()=>{"use strict";s()});var wp=W(()=>{"use strict";s()});var Ap=W(()=>{"use strict";s()});var Ip=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var _p=W(()=>{"use strict";s()});var bp=W(()=>{"use strict";s()});var We=W(()=>{"use strict";s()});var Lp=W(()=>{"use strict";s()});var Ep=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();wp();Ap();Ip();de();_p();bp();We();Lp();Ep()});var _a,kp,l_,Cp,p_,Pp,f_,d_,g_,Rp=W(()=>{"use strict";s();Ie();_a={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:kp,egldLabel:l_}=_a["devnet"],{chainId:Cp,egldLabel:p_}=_a["testnet"],{chainId:Pp,egldLabel:f_}=_a["mainnet"],d_={["devnet"]:kp,["testnet"]:Cp,["mainnet"]:Pp},g_={[kp]:"devnet",[Cp]:"testnet",[Pp]:"mainnet"}});var ba=W(()=>{"use strict";s()});var Dp=W(()=>{"use strict";s()});var Xo,La=W(()=>{"use strict";s();Xo="transaction-status-toast-id"});var It,Np=W(()=>{"use strict";s();It=require("@multiversx/sdk-web-wallet-provider")});var Op=W(()=>{"use strict";s()});var Dr,Jo,Mp,Qo,Fp,Jn,se=W(()=>{"use strict";s();wn();Rp();ba();Dp();La();Np();Op();Dr=5e4,Jo=1e9,Mp=1,Qo="logout",Fp="login",Jn="0"});var Nr,jo=W(()=>{"use strict";s();Nr=()=>Date.now()/1e3});var Up=W(()=>{"use strict";s()});var Bp=W(()=>{"use strict";s()});var Ea=W(()=>{"use strict";s();jo();Up();Bp()});var Ca={};yn(Ca,{getItem:()=>G0,localStorageKeys:()=>rn,removeItem:()=>$0,setItem:()=>W0});var rn,ka,W0,G0,$0,Qn=W(()=>{"use strict";s();Ea();rn={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ka=typeof localStorage!="undefined",W0=({key:n,data:o,expires:i})=>{!ka||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},G0=n=>{if(!ka)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:Nr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},$0=n=>{!ka||localStorage.removeItem(String(n))}});var Pa={};yn(Pa,{clear:()=>Hp,getItem:()=>Gp,removeItem:()=>$p,setItem:()=>Wp,storage:()=>H0});var Wp,Gp,$p,Hp,H0,Vp=W(()=>{"use strict";s();Wp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Gp=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},$p=n=>sessionStorage.removeItem(String(n)),Hp=()=>sessionStorage.clear(),H0={setItem:Wp,getItem:Gp,removeItem:$p,clear:Hp}});var An,jn=W(()=>{"use strict";s();Qn();Vp();An={session:Pa,local:Ca}});var Ra,Le,_t,Ce=W(()=>{"use strict";s();Ra=require("@reduxjs/toolkit");se();Le=(0,Ra.createAction)(Qo),_t=(0,Ra.createAction)(Fp,n=>({payload:n}))});var Na,qp,zp,ei,Da,Kp,ti,z_,Oa,K_,V0,q0,Y_,Z_,X_,Yp,ni,ri=W(()=>{"use strict";s();Na=require("@multiversx/sdk-core"),qp=require("@reduxjs/toolkit"),zp=require("redux-persist");se();jn();Qn();Ce();ei={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Jn},Da={address:"",websocketEvent:null,accounts:{"":ei},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Kp=(0,qp.createSlice)({name:"accountInfoSlice",initialState:Da,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new Na.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:ei},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(rn.loginExpiresAt),Da)),n.addCase(_t,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new Na.Address(u).hex()}),n.addCase(zp.REHYDRATE,(o,i)=>{var N;if(!((N=i.payload)!=null&&N.account))return;let{account:u}=i.payload,{address:m,shard:v,accounts:y,publicKey:k}=u;o.address=m,o.shard=v;let E=y&&m in y;o.accounts=E?y:Da.accounts,o.publicKey=k})}}),{setAccount:ti,setAddress:z_,setAccountNonce:Oa,setAccountShard:K_,setLedgerAccount:V0,updateLedgerAccount:q0,setWalletConnectAccount:Y_,setIsAccountLoading:Z_,setAccountLoadingError:X_,setWebsocketEvent:Yp}=Kp.actions,ni=Kp.reducer});function Or(){return new Date().setHours(new Date().getHours()+24)}function Mr(n){An.local.setItem({key:rn.loginExpiresAt,data:n,expires:n})}var Ma=W(()=>{"use strict";s();jn();Qn()});var Xp,Zp,Jp,sb,Qp,z0,K0,ab,Y0,jp,cb,oi,ii=W(()=>{"use strict";s();Xp=require("@reduxjs/toolkit");Ma();de();Ce();Zp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Jp=(0,Xp.createSlice)({name:"loginInfoSlice",initialState:Zp,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,()=>Zp),n.addCase(_t,(o,i)=>{o.loginMethod=i.payload.loginMethod,Mr(Or())})}}),{setLoginMethod:sb,setWalletConnectLogin:Qp,setLedgerLogin:z0,setTokenLogin:K0,setTokenLoginSignature:ab,setWalletLogin:Y0,invalidateLoginSession:jp,setLogoutRoute:cb}=Jp.actions,oi=Jp.reducer});var tf,ef,nf,fb,Z0,db,X0,si,ai=W(()=>{"use strict";s();tf=require("@reduxjs/toolkit");Ce();ef={},nf=(0,tf.createSlice)({name:"modalsSlice",initialState:ef,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,()=>ef)}}),{setTxSubmittedModal:fb,setNotificationModal:Z0,clearTxSubmittedModal:db,clearNotificationModal:X0}=nf.actions,si=nf.reducer});var Fr=W(()=>{"use strict";s()});var of=W(()=>{"use strict";s();Fr()});function Fa(n){return n[Math.floor(Math.random()*n.length)]}var sf=W(()=>{"use strict";s()});var Ua=W(()=>{"use strict";s();ba()});var In=W(()=>{"use strict";s();of();sf();Ua()});var af,cf,Ba,J0,uf,Eb,kb,ci,ui=W(()=>{"use strict";s();af=require("@reduxjs/toolkit"),cf=Y(require("lodash.omit"));In();Ba={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},J0={network:Ba,chainID:"-1"},uf=(0,af.createSlice)({name:"appConfig",initialState:J0,reducers:{initializeNetworkConfig:(n,o)=>{let i=Fa(o.payload.walletConnectBridgeAddresses),u=Fa(o.payload.walletConnectV2RelayAddresses),m=(0,cf.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=j(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:Eb,setChainID:kb}=uf.actions,ci=uf.reducer});var lf,Wa,pf,Ob,Mb,Fb,li,pi=W(()=>{"use strict";s();lf=require("@reduxjs/toolkit");Ie();Ce();Wa={isSigning:!1,signedSessions:{}},pf=(0,lf.createSlice)({name:"signedMessageInfoSliceState",initialState:Wa,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return j(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:j(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Wa},extraReducers:n=>{n.addCase(Le,()=>Wa)}}),{setSignSession:Ob,clearSignedMessageInfo:Mb,setSignSessionState:Fb}=pf.actions,li=pf.reducer});var df,gf,ff,mf,Q0,Ga,qb,zb,Kb,Yb,fi,di=W(()=>{"use strict";s();df=require("@reduxjs/toolkit"),gf=require("redux-persist");La();Ie();jo();Ce();ff={customToasts:[],transactionToasts:[],failTransactionToast:null},mf=(0,df.createSlice)({name:"toastsSlice",initialState:ff,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(j(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:Nr(),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=j(O({},o.payload),{toastId:Xo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>ff),n.addCase(gf.REHYDRATE,(o,i)=>{var m,v;let u=(v=(m=i.customToasts)==null?void 0:m.filter(y=>!("component"in y)))!=null?v:[];o.customToasts=u})}}),{addCustomToast:Q0,removeCustomToast:Ga,addTransactionToast:qb,removeTransactionToast:zb,addFailTransactionToast:Kb,removeFailTransactionToast:Yb}=mf.actions,fi=mf.reducer});var Tf,Ha,Va,qa,j0,$a,hf,Qb,ew,za,gi,mi=W(()=>{"use strict";s();Tf=require("@reduxjs/toolkit");Ce();Ha="Transaction failed",Va="Transaction successful",qa="Processing transaction",j0="Transaction submitted",$a={},hf=(0,Tf.createSlice)({name:"transactionsInfo",initialState:$a,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ha,successMessage:(u==null?void 0:u.successMessage)||Va,processingMessage:(u==null?void 0:u.processingMessage)||qa,submittedMessage:(u==null?void 0:u.submittedMessage)||j0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>$a},extraReducers:n=>{n.addCase(Le,()=>$a)}}),{clearTransactionsInfo:Qb,setTransactionsDisplayInfo:ew,clearTransactionsInfoForSessionId:za}=hf.actions,gi=hf.reducer});function Gt(n){return n!=null&&(cw(n)||fw(n))}function bn(n){return n!=null&&(uw(n)||dw(n))}function Ln(n){return n!=null&&(lw(n)||gw(n))}function Ka(n){return n!=null&&pw(n)}function cw(n){return n!=null&&tw.includes(n)}function uw(n){return n!=null&&nw.includes(n)}function lw(n){return n!=null&&rw.includes(n)}function pw(n){return n!=null&&ow.includes(n)}function fw(n){return n!=null&&iw.includes(n)}function dw(n){return n!=null&&sw.includes(n)}function gw(n){return n!=null&&aw.includes(n)}var tw,nw,rw,ow,iw,sw,aw,tr=W(()=>{"use strict";s();de();tw=["sent"],nw=["success"],rw=["fail","cancelled","timedOut"],ow=["timedOut"],iw=["pending"],sw=["success"],aw=["fail","invalid"]});var yf,xf,Ur,mw,Sf,Br,Ti,Tw,hi,hw,yw,aL,xw,yi,Ya,xi,Si=W(()=>{"use strict";s();yf=require("@reduxjs/toolkit"),xf=require("redux-persist");de();tr();Ce();Ur={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},mw={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Sf=(0,yf.createSlice)({name:"transactionsSlice",initialState:Ur,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,N;let{sessionId:i,transactions:u,errorMessage:m,status:v,redirectRoute:y}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||mw;n.signedTransactions[i]={transactions:u,status:v,errorMessage:m,redirectRoute:y,customTransactionInformation:k},((N=n==null?void 0:n.transactionsToSign)==null?void 0:N.sessionId)===i&&(n.transactionsToSign=Ur.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:v}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),v!=null&&(n.signedTransactions[i].transactions=v))},updateSignedTransactionStatus:(n,o)=>{var k,E,N,z,F,pe;let{sessionId:i,status:u,errorMessage:m,transactionHash:v}=o.payload,y=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(y!=null){n.signedTransactions[i].transactions=y.map(_e=>_e.hash===v?j(O({},_e),{status:u,errorMessage:m}):_e);let ye=(z=(N=n.signedTransactions[i])==null?void 0:N.transactions)==null?void 0:z.every(_e=>bn(_e.status)),ge=(pe=(F=n.signedTransactions[i])==null?void 0:F.transactions)==null?void 0:pe.every(_e=>Ln(_e.status));ye&&(n.signedTransactions[i].status="success"),ge&&(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=Ur.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Ur.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Ur),n.addCase(xf.REHYDRATE,(o,i)=>{var y;if(o.signTransactionsCancelMessage=null,!((y=i.payload)!=null&&y.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,v=Object.entries(u).reduce((k,[E,N])=>{let z=new Date(E),F=new Date;return F.setHours(F.getHours()+5),F-z>0||(k[E]=N),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=v)})}}),{updateSignedTransactionStatus:Br,updateSignedTransactions:Ti,setTransactionsToSign:Tw,clearAllTransactionsToSign:hi,clearAllSignedTransactions:hw,clearSignedTransaction:yw,clearTransactionToSign:aL,setSignTransactionsError:xw,setSignTransactionsCancelMessage:yi,moveTransactionsToSignedState:Ya}=Sf.actions,xi=Sf.reducer});var ae=W(()=>{"use strict";s();ri();ii();ai();ui();pi();di();mi();Si()});var ja=W(()=>{"use strict";s()});var Rf,Pf,Df,mE,TE,hE,yE,xE,SE,Nf,Of=W(()=>{"use strict";s();Rf=require("@reduxjs/toolkit");Ce();Pf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Df=(0,Rf.createSlice)({name:"dappModalsSlice",initialState:Pf,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,()=>Pf)}}),{setDappModalVisibility:mE,setDappModalHeaderVisibility:TE,setDappModalFooterVisibility:hE,setDappModalHeaderText:yE,setDappModalFooterText:xE,setDappModalConfig:SE}=Df.actions,Nf=Df.reducer});var Mf,Nw,Ow,kn,Ei=W(()=>{"use strict";s();Mf=require("@reduxjs/toolkit");ja();ri();Of();ii();ai();ui();pi();di();mi();Si();Nw={["account"]:ni,["dappModal"]:Nf,["loginInfo"]:oi,["modals"]:si,["networkConfig"]:ci,["signedMessageInfo"]:li,["toasts"]:fi,["transactionsInfo"]:gi,["transactions"]:xi},Ow=(n={})=>(0,Mf.combineReducers)(O(O({},Nw),n)),kn=Ow});var Wf={};yn(Wf,{default:()=>Xw,sessionStorageReducers:()=>ec});function sn(n,o=[]){return{key:n,version:1,storage:Uf.default,blacklist:o}}var Ze,Ff,Uf,Mw,Gr,Fw,Uw,Bw,Ww,Gw,$w,Hw,Vw,qw,Bf,zw,ec,Kw,Yw,Zw,Xw,Gf=W(()=>{"use strict";s();Ze=require("redux-persist"),Ff=Y(require("redux-persist/lib/storage")),Uf=Y(require("redux-persist/lib/storage/session"));Ei();ae();ri();ii();ai();ui();pi();di();mi();Si();ja();Mw={persistReducersStorageType:"localStorage"},Gr={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Fw=sn(Gr["account"]),Uw=sn(Gr["loginInfo"]),Bw=sn(Gr["modals"]),Ww=sn(Gr["networkConfig"]),Gw={2:n=>j(O({},n),{networkConfig:Ba})};$w=sn("sdk-dapp-transactionsInfo"),Hw=sn("sdk-dapp-transactions",["transactionsToSign"]),Vw=sn("sdk-dapp-toasts"),qw=sn("sdk-dapp-signedMessageInfo"),Bf={key:"sdk-dapp-store",version:2,storage:Ff.default,whitelist:Object.keys(Gr),migrate:(0,Ze.createMigrate)(Gw,{debug:!1})},zw=j(O({},Bf),{whitelist:[]}),ec={["toasts"]:(0,Ze.persistReducer)(Vw,fi),["transactions"]:(0,Ze.persistReducer)(Hw,xi),["transactionsInfo"]:(0,Ze.persistReducer)($w,gi),["signedMessageInfo"]:(0,Ze.persistReducer)(qw,li)},Kw=j(O({},ec),{["account"]:(0,Ze.persistReducer)(Fw,ni),["loginInfo"]:(0,Ze.persistReducer)(Uw,oi),["modals"]:(0,Ze.persistReducer)(Bw,si),["networkConfig"]:(0,Ze.persistReducer)(Ww,ci)}),Yw=Mw.persistReducersStorageType==="localStorage",Zw=Yw?(0,Ze.persistReducer)(Bf,kn(ec)):(0,Ze.persistReducer)(zw,kn(Kw)),Xw=Zw});var $f={};yn($f,{default:()=>Jw});var Jw,Hf=W(()=>{"use strict";s();Ei();Jw=kn()});var Vf={};yn(Vf,{default:()=>jw});var it,Qw,jw,qf=W(()=>{"use strict";s();it=require("redux-persist"),Qw=[it.FLUSH,it.REHYDRATE,it.PAUSE,it.PERSIST,it.PURGE,it.REGISTER],jw=Qw});var Yf={};yn(Yf,{default:()=>Kf});function Kf(n){return(0,zf.persistStore)(n)}var zf,Zf=W(()=>{"use strict";s();zf=require("redux-persist")});var Kd=Pr((ir,Yr)=>{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",v="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",N=1,z=2,F=4,pe=1,ye=2,ge=1,_e=2,yc=4,gt=8,Pn=16,mt=32,Rn=64,Lt=128,ar=256,qi=512,sg=30,ag="...",cg=800,ug=16,xc=1,lg=2,pg=3,cn=1/0,zt=9007199254740991,fg=17976931348623157e292,Xr=0/0,Tt=4294967295,dg=Tt-1,gg=Tt>>>1,mg=[["ary",Lt],["bind",ge],["bindKey",_e],["curry",gt],["curryRight",Pn],["flip",qi],["partial",mt],["partialRight",Rn],["rearg",ar]],Dn="[object Arguments]",Jr="[object Array]",Tg="[object AsyncFunction]",cr="[object Boolean]",ur="[object Date]",hg="[object DOMException]",Qr="[object Error]",jr="[object Function]",Sc="[object GeneratorFunction]",st="[object Map]",lr="[object Number]",yg="[object Null]",Et="[object Object]",vc="[object Promise]",xg="[object Proxy]",pr="[object RegExp]",at="[object Set]",fr="[object String]",eo="[object Symbol]",Sg="[object Undefined]",dr="[object WeakMap]",vg="[object WeakSet]",gr="[object ArrayBuffer]",Nn="[object DataView]",zi="[object Float32Array]",Ki="[object Float64Array]",Yi="[object Int8Array]",Zi="[object Int16Array]",Xi="[object Int32Array]",Ji="[object Uint8Array]",Qi="[object Uint8ClampedArray]",ji="[object Uint16Array]",es="[object Uint32Array]",wg=/\b__p \+= '';/g,Ag=/\b(__p \+=) '' \+/g,Ig=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wc=/&(?:amp|lt|gt|quot|#39);/g,Ac=/[&<>"']/g,_g=RegExp(wc.source),bg=RegExp(Ac.source),Lg=/<%-([\s\S]+?)%>/g,Eg=/<%([\s\S]+?)%>/g,Ic=/<%=([\s\S]+?)%>/g,kg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cg=/^\w*$/,Pg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ts=/[\\^$.*+?()[\]{}|]/g,Rg=RegExp(ts.source),ns=/^\s+/,Dg=/\s/,Ng=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Og=/\{\n\/\* \[wrapped with (.+)\] \*/,Mg=/,? & /,Fg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ug=/[()=,{}\[\]\/\s]/,Bg=/\\(\\)?/g,Wg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_c=/\w*$/,Gg=/^[-+]0x[0-9a-f]+$/i,$g=/^0b[01]+$/i,Hg=/^\[object .+?Constructor\]$/,Vg=/^0o[0-7]+$/i,qg=/^(?:0|[1-9]\d*)$/,zg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,to=/($^)/,Kg=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Yg="\\u0300-\\u036f",Zg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",bc=Yg+Zg+Xg,Lc="\\u2700-\\u27bf",Ec="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Qg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jg="\\u2000-\\u206f",em=" \\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",kc="A-Z\\xc0-\\xd6\\xd8-\\xde",Cc="\\ufe0e\\ufe0f",Pc=Jg+Qg+jg+em,rs="['\u2019]",tm="["+no+"]",Rc="["+Pc+"]",ro="["+bc+"]",Dc="\\d+",nm="["+Lc+"]",Nc="["+Ec+"]",Oc="[^"+no+Pc+Dc+Lc+Ec+kc+"]",os="\\ud83c[\\udffb-\\udfff]",rm="(?:"+ro+"|"+os+")",Mc="[^"+no+"]",is="(?:\\ud83c[\\udde6-\\uddff]){2}",ss="[\\ud800-\\udbff][\\udc00-\\udfff]",On="["+kc+"]",Fc="\\u200d",Uc="(?:"+Nc+"|"+Oc+")",om="(?:"+On+"|"+Oc+")",Bc="(?:"+rs+"(?:d|ll|m|re|s|t|ve))?",Wc="(?:"+rs+"(?:D|LL|M|RE|S|T|VE))?",Gc=rm+"?",$c="["+Cc+"]?",im="(?:"+Fc+"(?:"+[Mc,is,ss].join("|")+")"+$c+Gc+")*",sm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",am="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hc=$c+Gc+im,cm="(?:"+[nm,is,ss].join("|")+")"+Hc,um="(?:"+[Mc+ro+"?",ro,is,ss,tm].join("|")+")",lm=RegExp(rs,"g"),pm=RegExp(ro,"g"),as=RegExp(os+"(?="+os+")|"+um+Hc,"g"),fm=RegExp([On+"?"+Nc+"+"+Bc+"(?="+[Rc,On,"$"].join("|")+")",om+"+"+Wc+"(?="+[Rc,On+Uc,"$"].join("|")+")",On+"?"+Uc+"+"+Bc,On+"+"+Wc,am,sm,Dc,cm].join("|"),"g"),dm=RegExp("["+Fc+no+bc+Cc+"]"),gm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mm=["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"],Tm=-1,ce={};ce[zi]=ce[Ki]=ce[Yi]=ce[Zi]=ce[Xi]=ce[Ji]=ce[Qi]=ce[ji]=ce[es]=!0,ce[Dn]=ce[Jr]=ce[gr]=ce[cr]=ce[Nn]=ce[ur]=ce[Qr]=ce[jr]=ce[st]=ce[lr]=ce[Et]=ce[pr]=ce[at]=ce[fr]=ce[dr]=!1;var ie={};ie[Dn]=ie[Jr]=ie[gr]=ie[Nn]=ie[cr]=ie[ur]=ie[zi]=ie[Ki]=ie[Yi]=ie[Zi]=ie[Xi]=ie[st]=ie[lr]=ie[Et]=ie[pr]=ie[at]=ie[fr]=ie[eo]=ie[Ji]=ie[Qi]=ie[ji]=ie[es]=!0,ie[Qr]=ie[jr]=ie[dr]=!1;var hm={\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"},ym={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vm=parseFloat,wm=parseInt,Vc=typeof f=="object"&&f&&f.Object===Object&&f,Am=typeof self=="object"&&self&&self.Object===Object&&self,ve=Vc||Am||Function("return this")(),cs=typeof ir=="object"&&ir&&!ir.nodeType&&ir,un=cs&&typeof Yr=="object"&&Yr&&!Yr.nodeType&&Yr,qc=un&&un.exports===cs,us=qc&&Vc.process,Xe=function(){try{var x=un&&un.require&&un.require("util").types;return x||us&&us.binding&&us.binding("util")}catch(A){}}(),zc=Xe&&Xe.isArrayBuffer,Kc=Xe&&Xe.isDate,Yc=Xe&&Xe.isMap,Zc=Xe&&Xe.isRegExp,Xc=Xe&&Xe.isSet,Jc=Xe&&Xe.isTypedArray;function Ge(x,A,w){switch(w.length){case 0:return x.call(A);case 1:return x.call(A,w[0]);case 2:return x.call(A,w[0],w[1]);case 3:return x.call(A,w[0],w[1],w[2])}return x.apply(A,w)}function Im(x,A,w,P){for(var $=-1,ee=x==null?0:x.length;++$<ee;){var xe=x[$];A(P,xe,w(xe),x)}return P}function Je(x,A){for(var w=-1,P=x==null?0:x.length;++w<P&&A(x[w],w,x)!==!1;);return x}function _m(x,A){for(var w=x==null?0:x.length;w--&&A(x[w],w,x)!==!1;);return x}function Qc(x,A){for(var w=-1,P=x==null?0:x.length;++w<P;)if(!A(x[w],w,x))return!1;return!0}function Kt(x,A){for(var w=-1,P=x==null?0:x.length,$=0,ee=[];++w<P;){var xe=x[w];A(xe,w,x)&&(ee[$++]=xe)}return ee}function oo(x,A){var w=x==null?0:x.length;return!!w&&Mn(x,A,0)>-1}function ls(x,A,w){for(var P=-1,$=x==null?0:x.length;++P<$;)if(w(A,x[P]))return!0;return!1}function ue(x,A){for(var w=-1,P=x==null?0:x.length,$=Array(P);++w<P;)$[w]=A(x[w],w,x);return $}function Yt(x,A){for(var w=-1,P=A.length,$=x.length;++w<P;)x[$+w]=A[w];return x}function ps(x,A,w,P){var $=-1,ee=x==null?0:x.length;for(P&&ee&&(w=x[++$]);++$<ee;)w=A(w,x[$],$,x);return w}function bm(x,A,w,P){var $=x==null?0:x.length;for(P&&$&&(w=x[--$]);$--;)w=A(w,x[$],$,x);return w}function fs(x,A){for(var w=-1,P=x==null?0:x.length;++w<P;)if(A(x[w],w,x))return!0;return!1}var Lm=ds("length");function Em(x){return x.split("")}function km(x){return x.match(Fg)||[]}function jc(x,A,w){var P;return w(x,function($,ee,xe){if(A($,ee,xe))return P=ee,!1}),P}function io(x,A,w,P){for(var $=x.length,ee=w+(P?1:-1);P?ee--:++ee<$;)if(A(x[ee],ee,x))return ee;return-1}function Mn(x,A,w){return A===A?Gm(x,A,w):io(x,eu,w)}function Cm(x,A,w,P){for(var $=w-1,ee=x.length;++$<ee;)if(P(x[$],A))return $;return-1}function eu(x){return x!==x}function tu(x,A){var w=x==null?0:x.length;return w?ms(x,A)/w:Xr}function ds(x){return function(A){return A==null?n:A[x]}}function gs(x){return function(A){return x==null?n:x[A]}}function nu(x,A,w,P,$){return $(x,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function Pm(x,A){var w=x.length;for(x.sort(A);w--;)x[w]=x[w].value;return x}function ms(x,A){for(var w,P=-1,$=x.length;++P<$;){var ee=A(x[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function Ts(x,A){for(var w=-1,P=Array(x);++w<x;)P[w]=A(w);return P}function Rm(x,A){return ue(A,function(w){return[w,x[w]]})}function ru(x){return x&&x.slice(0,au(x)+1).replace(ns,"")}function $e(x){return function(A){return x(A)}}function hs(x,A){return ue(A,function(w){return x[w]})}function mr(x,A){return x.has(A)}function ou(x,A){for(var w=-1,P=x.length;++w<P&&Mn(A,x[w],0)>-1;);return w}function iu(x,A){for(var w=x.length;w--&&Mn(A,x[w],0)>-1;);return w}function Dm(x,A){for(var w=x.length,P=0;w--;)x[w]===A&&++P;return P}var Nm=gs(hm),Om=gs(ym);function Mm(x){return"\\"+Sm[x]}function Fm(x,A){return x==null?n:x[A]}function Fn(x){return dm.test(x)}function Um(x){return gm.test(x)}function Bm(x){for(var A,w=[];!(A=x.next()).done;)w.push(A.value);return w}function ys(x){var A=-1,w=Array(x.size);return x.forEach(function(P,$){w[++A]=[$,P]}),w}function su(x,A){return function(w){return x(A(w))}}function Zt(x,A){for(var w=-1,P=x.length,$=0,ee=[];++w<P;){var xe=x[w];(xe===A||xe===E)&&(x[w]=E,ee[$++]=w)}return ee}function so(x){var A=-1,w=Array(x.size);return x.forEach(function(P){w[++A]=P}),w}function Wm(x){var A=-1,w=Array(x.size);return x.forEach(function(P){w[++A]=[P,P]}),w}function Gm(x,A,w){for(var P=w-1,$=x.length;++P<$;)if(x[P]===A)return P;return-1}function $m(x,A,w){for(var P=w+1;P--;)if(x[P]===A)return P;return P}function Un(x){return Fn(x)?Vm(x):Lm(x)}function ct(x){return Fn(x)?qm(x):Em(x)}function au(x){for(var A=x.length;A--&&Dg.test(x.charAt(A)););return A}var Hm=gs(xm);function Vm(x){for(var A=as.lastIndex=0;as.test(x);)++A;return A}function qm(x){return x.match(as)||[]}function zm(x){return x.match(fm)||[]}var Km=function x(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,mm));var w=A.Array,P=A.Date,$=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,xs=A.RegExp,Ym=A.String,Qe=A.TypeError,ao=w.prototype,Zm=ee.prototype,Bn=oe.prototype,co=A["__core-js_shared__"],uo=Zm.toString,re=Bn.hasOwnProperty,Xm=0,cu=function(){var e=/[^.]+$/.exec(co&&co.keys&&co.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lo=Bn.toString,Jm=uo.call(oe),Qm=ve._,jm=xs("^"+uo.call(re).replace(ts,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),po=qc?A.Buffer:n,Jt=A.Symbol,fo=A.Uint8Array,uu=po?po.allocUnsafe:n,go=su(oe.getPrototypeOf,oe),lu=oe.create,pu=Bn.propertyIsEnumerable,mo=ao.splice,fu=Jt?Jt.isConcatSpreadable:n,Tr=Jt?Jt.iterator:n,ln=Jt?Jt.toStringTag:n,To=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),eT=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,tT=P&&P.now!==ve.Date.now&&P.now,nT=A.setTimeout!==ve.setTimeout&&A.setTimeout,ho=xe.ceil,yo=xe.floor,Ss=oe.getOwnPropertySymbols,rT=po?po.isBuffer:n,du=A.isFinite,oT=ao.join,iT=su(oe.keys,oe),Se=xe.max,Ee=xe.min,sT=P.now,aT=A.parseInt,gu=xe.random,cT=ao.reverse,vs=mn(A,"DataView"),hr=mn(A,"Map"),ws=mn(A,"Promise"),Wn=mn(A,"Set"),yr=mn(A,"WeakMap"),xr=mn(oe,"create"),xo=yr&&new yr,Gn={},uT=Tn(vs),lT=Tn(hr),pT=Tn(ws),fT=Tn(Wn),dT=Tn(yr),So=Jt?Jt.prototype:n,Sr=So?So.valueOf:n,mu=So?So.toString:n;function l(e){if(fe(e)&&!H(e)&&!(e instanceof J)){if(e instanceof je)return e;if(re.call(e,"__wrapped__"))return Tl(e)}return new je(e)}var $n=function(){function e(){}return function(t){if(!le(t))return{};if(lu)return lu(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function vo(){}function je(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:Lg,evaluate:Eg,interpolate:Ic,variable:"",imports:{_:l}},l.prototype=vo.prototype,l.prototype.constructor=l,je.prototype=$n(vo.prototype),je.prototype.constructor=je;function J(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Tt,this.__views__=[]}function gT(){var e=new J(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 mT(){if(this.__filtered__){var e=new J(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function TT(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=Eh(0,c,this.__views__),T=p.start,h=p.end,S=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,D=Ee(S,this.__takeCount__);if(!r||!a&&c==S&&D==S)return Bu(e,this.__actions__);var U=[];e:for(;S--&&C<D;){_+=t;for(var K=-1,B=e[_];++K<L;){var X=b[K],Q=X.iteratee,qe=X.type,De=Q(B);if(qe==lg)B=De;else if(!De){if(qe==xc)continue e;break e}}U[C++]=B}return U}J.prototype=$n(vo.prototype),J.prototype.constructor=J;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 hT(){this.__data__=xr?xr(null):{},this.size=0}function yT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function xT(e){var t=this.__data__;if(xr){var r=t[e];return r===y?n:r}return re.call(t,e)?t[e]:n}function ST(e){var t=this.__data__;return xr?t[e]!==n:re.call(t,e)}function vT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xr&&t===n?y:t,this}pn.prototype.clear=hT,pn.prototype.delete=yT,pn.prototype.get=xT,pn.prototype.has=ST,pn.prototype.set=vT;function kt(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 wT(){this.__data__=[],this.size=0}function AT(e){var t=this.__data__,r=wo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():mo.call(t,r,1),--this.size,!0}function IT(e){var t=this.__data__,r=wo(t,e);return r<0?n:t[r][1]}function _T(e){return wo(this.__data__,e)>-1}function bT(e,t){var r=this.__data__,a=wo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}kt.prototype.clear=wT,kt.prototype.delete=AT,kt.prototype.get=IT,kt.prototype.has=_T,kt.prototype.set=bT;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 LT(){this.size=0,this.__data__={hash:new pn,map:new(hr||kt),string:new pn}}function ET(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t}function kT(e){return No(this,e).get(e)}function CT(e){return No(this,e).has(e)}function PT(e,t){var r=No(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Ct.prototype.clear=LT,Ct.prototype.delete=ET,Ct.prototype.get=kT,Ct.prototype.has=CT,Ct.prototype.set=PT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}function RT(e){return this.__data__.set(e,y),this}function DT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=RT,fn.prototype.has=DT;function ut(e){var t=this.__data__=new kt(e);this.size=t.size}function NT(){this.__data__=new kt,this.size=0}function OT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function MT(e){return this.__data__.get(e)}function FT(e){return this.__data__.has(e)}function UT(e,t){var r=this.__data__;if(r instanceof kt){var a=r.__data__;if(!hr||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}ut.prototype.clear=NT,ut.prototype.delete=OT,ut.prototype.get=MT,ut.prototype.has=FT,ut.prototype.set=UT;function Tu(e,t){var r=H(e),a=!r&&hn(e),c=!r&&!a&&nn(e),p=!r&&!a&&!c&&zn(e),T=r||a||c||p,h=T?Ts(e.length,Ym):[],S=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Nt(_,S)))&&h.push(_);return h}function hu(e){var t=e.length;return t?e[Ds(0,t-1)]:n}function BT(e,t){return Oo(Oe(e),dn(t,0,e.length))}function WT(e){return Oo(Oe(e))}function As(e,t,r){(r!==n&&!lt(e[t],r)||r===n&&!(t in e))&&Pt(e,t,r)}function vr(e,t,r){var a=e[t];(!(re.call(e,t)&&lt(a,r))||r===n&&!(t in e))&&Pt(e,t,r)}function wo(e,t){for(var r=e.length;r--;)if(lt(e[r][0],t))return r;return-1}function GT(e,t,r,a){return Qt(e,function(c,p,T){t(a,c,r(c),T)}),a}function yu(e,t){return e&&yt(t,we(t),e)}function $T(e,t){return e&&yt(t,Fe(t),e)}function Pt(e,t,r){t=="__proto__"&&To?To(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Is(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:oa(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 et(e,t,r,a,c,p){var T,h=t&N,S=t&z,_=t&F;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!le(e))return e;var b=H(e);if(b){if(T=Ch(e),!h)return Oe(e,T)}else{var L=ke(e),C=L==jr||L==Sc;if(nn(e))return $u(e,h);if(L==Et||L==Dn||C&&!c){if(T=S||C?{}:al(e),!h)return S?xh(e,$T(T,e)):yh(e,yu(T,e))}else{if(!ie[L])return c?e:{};T=Ph(e,L,h)}}p||(p=new ut);var D=p.get(e);if(D)return D;p.set(e,T),Ml(e)?e.forEach(function(B){T.add(et(B,t,r,B,e,p))}):Nl(e)&&e.forEach(function(B,X){T.set(X,et(B,t,r,X,e,p))});var U=_?S?Vs:Hs:S?Fe:we,K=b?n:U(e);return Je(K||e,function(B,X){K&&(X=B,B=e[X]),vr(T,X,et(B,t,r,X,e,p))}),T}function HT(e){var t=we(e);return function(r){return xu(r,e,t)}}function xu(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 Su(e,t,r){if(typeof e!="function")throw new Qe(m);return Er(function(){e.apply(n,r)},t)}function wr(e,t,r,a){var c=-1,p=oo,T=!0,h=e.length,S=[],_=t.length;if(!h)return S;r&&(t=ue(t,$e(r))),a?(p=ls,T=!1):t.length>=i&&(p=mr,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=_;C--;)if(t[C]===L)continue e;S.push(b)}else p(t,L,a)||S.push(b)}return S}var Qt=Ku(ht),vu=Ku(bs,!0);function VT(e,t){var r=!0;return Qt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function Ao(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&&!Ve(T):r(T,h)))var h=T,S=p}return S}function qT(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:Ul(a);r<a;)e[r++]=t;return e}function wu(e,t){var r=[];return Qt(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=Dh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Yt(c,h):a||(c[c.length]=h)}return c}var _s=Yu(),Au=Yu(!0);function ht(e,t){return e&&_s(e,t,we)}function bs(e,t){return e&&Au(e,t,we)}function Io(e,t){return Kt(t,function(r){return Ot(e[r])})}function gn(e,t){t=en(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[xt(t[r++])];return r&&r==a?e:n}function Iu(e,t,r){var a=t(e);return H(e)?a:Yt(a,r(e))}function Pe(e){return e==null?e===n?Sg:yg:ln&&ln in oe(e)?Lh(e):Wh(e)}function Ls(e,t){return e>t}function zT(e,t){return e!=null&&re.call(e,t)}function KT(e,t){return e!=null&&t in oe(e)}function YT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function Es(e,t,r){for(var a=r?ls:oo,c=e[0].length,p=e.length,T=p,h=w(p),S=1/0,_=[];T--;){var b=e[T];T&&t&&(b=ue(b,$e(t))),S=Ee(b.length,S),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&&_.length<S;){var D=b[L],U=t?t(D):D;if(D=r||D!==0?D:0,!(C?mr(C,U):a(_,U,r))){for(T=p;--T;){var K=h[T];if(!(K?mr(K,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(D)}}return _}function ZT(e,t,r,a){return ht(e,function(c,p,T){t(a,r(c),p,T)}),a}function Ar(e,t,r){t=en(t,e),e=pl(e,t);var a=e==null?e:e[xt(nt(t))];return a==null?n:Ge(a,e,r)}function _u(e){return fe(e)&&Pe(e)==Dn}function XT(e){return fe(e)&&Pe(e)==gr}function JT(e){return fe(e)&&Pe(e)==ur}function Ir(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:QT(e,t,r,a,Ir,c)}function QT(e,t,r,a,c,p){var T=H(e),h=H(t),S=T?Jr:ke(e),_=h?Jr:ke(t);S=S==Dn?Et:S,_=_==Dn?Et:_;var b=S==Et,L=_==Et,C=S==_;if(C&&nn(e)){if(!nn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new ut),T||zn(e)?ol(e,t,r,a,c,p):_h(e,t,S,r,a,c,p);if(!(r&pe)){var D=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(D||U){var K=D?e.value():e,B=U?t.value():t;return p||(p=new ut),c(K,B,r,a,p)}}return C?(p||(p=new ut),bh(e,t,r,a,c,p)):!1}function jT(e){return fe(e)&&ke(e)==st}function ks(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 S=h[0],_=e[S],b=h[1];if(T&&h[2]){if(_===n&&!(S in e))return!1}else{var L=new ut;if(a)var C=a(_,b,S,e,t,L);if(!(C===n?Ir(b,_,pe|ye,a,L):C))return!1}}return!0}function bu(e){if(!le(e)||Oh(e))return!1;var t=Ot(e)?jm:Hg;return t.test(Tn(e))}function eh(e){return fe(e)&&Pe(e)==pr}function th(e){return fe(e)&&ke(e)==at}function nh(e){return fe(e)&&Go(e.length)&&!!ce[Pe(e)]}function Lu(e){return typeof e=="function"?e:e==null?Ue:typeof e=="object"?H(e)?Cu(e[0],e[1]):ku(e):Zl(e)}function Cs(e){if(!Lr(e))return iT(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function rh(e){if(!le(e))return Bh(e);var t=Lr(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function Ps(e,t){return e<t}function Eu(e,t){var r=-1,a=Me(e)?w(e.length):[];return Qt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function ku(e){var t=zs(e);return t.length==1&&t[0][2]?ul(t[0][0],t[0][1]):function(r){return r===e||ks(r,e,t)}}function Cu(e,t){return Ys(e)&&cl(t)?ul(xt(e),t):function(r){var a=oa(r,e);return a===n&&a===t?ia(r,e):Ir(t,a,pe|ye)}}function _o(e,t,r,a,c){e!==t&&_s(t,function(p,T){if(c||(c=new ut),le(p))oh(e,t,T,r,_o,a,c);else{var h=a?a(Xs(e,T),p,T+"",e,t,c):n;h===n&&(h=p),As(e,T,h)}},Fe)}function oh(e,t,r,a,c,p,T){var h=Xs(e,r),S=Xs(t,r),_=T.get(S);if(_){As(e,r,_);return}var b=p?p(h,S,r+"",e,t,T):n,L=b===n;if(L){var C=H(S),D=!C&&nn(S),U=!C&&!D&&zn(S);b=S,C||D||U?H(h)?b=h:me(h)?b=Oe(h):D?(L=!1,b=$u(S,!0)):U?(L=!1,b=Hu(S,!0)):b=[]:kr(S)||hn(S)?(b=h,hn(h)?b=Bl(h):(!le(h)||Ot(h))&&(b=al(S))):L=!1}L&&(T.set(S,b),c(b,S,a,p,T),T.delete(S)),As(e,r,b)}function Pu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Nt(t,r)?e[t]:n}function Ru(e,t,r){t.length?t=ue(t,function(p){return H(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Ue];var a=-1;t=ue(t,$e(M()));var c=Eu(e,function(p,T,h){var S=ue(t,function(_){return _(p)});return{criteria:S,index:++a,value:p}});return Pm(c,function(p,T){return hh(p,T,r)})}function ih(e,t){return Du(e,t,function(r,a){return ia(e,a)})}function Du(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,en(T,e),h)}return p}function sh(e){return function(t){return gn(t,e)}}function Rs(e,t,r,a){var c=a?Cm:Mn,p=-1,T=t.length,h=e;for(e===t&&(t=Oe(t)),r&&(h=ue(e,$e(r)));++p<T;)for(var S=0,_=t[p],b=r?r(_):_;(S=c(h,b,S,a))>-1;)h!==e&&mo.call(h,S,1),mo.call(e,S,1);return e}function Nu(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;Nt(c)?mo.call(e,c,1):Ms(e,c)}}return e}function Ds(e,t){return e+yo(gu()*(t-e+1))}function ah(e,t,r,a){for(var c=-1,p=Se(ho((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function Ns(e,t){var r="";if(!e||t<1||t>zt)return r;do t%2&&(r+=e),t=yo(t/2),t&&(e+=e);while(t);return r}function Z(e,t){return Js(ll(e,t,Ue),e+"")}function ch(e){return hu(Kn(e))}function uh(e,t){var r=Kn(e);return Oo(r,dn(t,0,r.length))}function _r(e,t,r,a){if(!le(e))return e;t=en(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var S=xt(t[c]),_=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(c!=T){var b=h[S];_=a?a(b,S,h):n,_===n&&(_=le(b)?b:Nt(t[c+1])?[]:{})}vr(h,S,_),h=h[S]}return e}var Ou=xo?function(e,t){return xo.set(e,t),e}:Ue,lh=To?function(e,t){return To(e,"toString",{configurable:!0,enumerable:!1,value:aa(t),writable:!0})}:Ue;function ph(e){return Oo(Kn(e))}function tt(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 fh(e,t){var r;return Qt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function bo(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=gg){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return Os(e,t,Ue,r)}function Os(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,S=Ve(t),_=t===n;c<p;){var b=yo((c+p)/2),L=r(e[b]),C=L!==n,D=L===null,U=L===L,K=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!D):S?B=U&&C&&!D&&(a||!K):D||K?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,dg)}function Mu(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||!lt(h,S)){var S=h;p[c++]=T===0?0:T}}return p}function Fu(e){return typeof e=="number"?e:Ve(e)?Xr:+e}function He(e){if(typeof e=="string")return e;if(H(e))return ue(e,He)+"";if(Ve(e))return mu?mu.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function jt(e,t,r){var a=-1,c=oo,p=e.length,T=!0,h=[],S=h;if(r)T=!1,c=ls;else if(p>=i){var _=t?null:Ah(e);if(_)return so(_);T=!1,c=mr,S=new fn}else S=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=S.length;C--;)if(S[C]===L)continue e;t&&S.push(L),h.push(b)}else c(S,L,r)||(S!==h&&S.push(L),h.push(b))}return h}function Ms(e,t){return t=en(t,e),e=pl(e,t),e==null||delete e[xt(nt(t))]}function Uu(e,t,r,a){return _r(e,t,r(gn(e,t)),a)}function Lo(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?tt(e,a?0:p,a?p+1:c):tt(e,a?p+1:0,a?c:p)}function Bu(e,t){var r=e;return r instanceof J&&(r=r.value()),ps(t,function(a,c){return c.func.apply(c.thisArg,Yt([a],c.args))},r)}function Fs(e,t,r){var a=e.length;if(a<2)return a?jt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=wr(p[c]||T,e[h],t,r));return jt(be(p,1),t,r)}function Wu(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 Us(e){return me(e)?e:[]}function Bs(e){return typeof e=="function"?e:Ue}function en(e,t){return H(e)?e:Ys(e,t)?[e]:ml(ne(e))}var dh=Z;function tn(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:tt(e,t,r)}var Gu=eT||function(e){return ve.clearTimeout(e)};function $u(e,t){if(t)return e.slice();var r=e.length,a=uu?uu(r):new e.constructor(r);return e.copy(a),a}function Ws(e){var t=new e.constructor(e.byteLength);return new fo(t).set(new fo(e)),t}function gh(e,t){var r=t?Ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function mh(e){var t=new e.constructor(e.source,_c.exec(e));return t.lastIndex=e.lastIndex,t}function Th(e){return Sr?oe(Sr.call(e)):{}}function Hu(e,t){var r=t?Ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Vu(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,S=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&S&&!h&&!_||a&&T&&S||!r&&S||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!S)return-1}return 0}function hh(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var S=Vu(c[a],p[a]);if(S){if(a>=h)return S;var _=r[a];return S*(_=="desc"?-1:1)}}return e.index-t.index}function qu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,S=t.length,_=Se(p-T,0),b=w(S+_),L=!a;++h<S;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function zu(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,S=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var D=c;++S<_;)L[D+S]=t[S];for(;++T<h;)(C||c<p)&&(L[D+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 yt(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],S=a?a(r[h],e[h],h,r,e):n;S===n&&(S=e[h]),c?Pt(r,h,S):vr(r,h,S)}return r}function yh(e,t){return yt(e,Ks(e),t)}function xh(e,t){return yt(e,il(e),t)}function Eo(e,t){return function(r,a){var c=H(r)?Im:GT,p=t?t():{};return c(r,e,M(a,2),p)}}function Hn(e){return Z(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 Ku(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 Yu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var S=T[e?h:++c];if(r(p[S],S,p)===!1)break}return t}}function Sh(e,t,r){var a=t&ge,c=br(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Zu(e){return function(t){t=ne(t);var r=Fn(t)?ct(t):n,a=r?r[0]:t.charAt(0),c=r?tn(r,1).join(""):t.slice(1);return a[e]()+c}}function Vn(e){return function(t){return ps(Kl(zl(t).replace(lm,"")),e,"")}}function br(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=$n(e.prototype),a=e.apply(r,t);return le(a)?a:r}}function vh(e,t,r){var a=br(e);function c(){for(var p=arguments.length,T=w(p),h=p,S=qn(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==S&&T[p-1]!==S?[]:Zt(T,S);if(p-=_.length,p<r)return el(e,t,ko,c.placeholder,n,T,_,n,n,r-p);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Xu(e){return function(t,r,a){var c=oe(t);if(!Me(t)){var p=M(r,3);t=we(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 Ju(e){return Dt(function(t){var r=t.length,a=r,c=je.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new Qe(m);if(c&&!T&&Do(p)=="wrapper")var T=new je([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=Do(p),S=h=="wrapper"?qs(p):n;S&&Zs(S[0])&&S[1]==(Lt|gt|mt|ar)&&!S[4].length&&S[9]==1?T=T[Do(S[0])].apply(T,S[3]):T=p.length==1&&Zs(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&H(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,_):b;++L<r;)C=t[L].call(this,C);return C}})}function ko(e,t,r,a,c,p,T,h,S,_){var b=t&Lt,L=t&ge,C=t&_e,D=t&(gt|Pn),U=t&qi,K=C?n:br(e);function B(){for(var X=arguments.length,Q=w(X),qe=X;qe--;)Q[qe]=arguments[qe];if(D)var De=qn(B),ze=Dm(Q,De);if(a&&(Q=qu(Q,a,c,D)),p&&(Q=zu(Q,p,T,D)),X-=ze,D&&X<_){var Te=Zt(Q,De);return el(e,t,ko,B.placeholder,r,Q,Te,h,S,_-X)}var pt=L?r:this,Ft=C?pt[e]:e;return X=Q.length,h?Q=Gh(Q,h):U&&X>1&&Q.reverse(),b&&S<X&&(Q.length=S),this&&this!==ve&&this instanceof B&&(Ft=K||br(Ft)),Ft.apply(pt,Q)}return B}function Qu(e,t){return function(r,a){return ZT(r,e,t(a),{})}}function Co(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=He(r),a=He(a)):(r=Fu(r),a=Fu(a)),c=e(r,a)}return c}}function Gs(e){return Dt(function(t){return t=ue(t,$e(M())),Z(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function Po(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?Ns(t,e):t;var a=Ns(t,ho(e/Un(t)));return Fn(t)?tn(ct(a),0,e).join(""):a.slice(0,e)}function wh(e,t,r,a){var c=t&ge,p=br(e);function T(){for(var h=-1,S=arguments.length,_=-1,b=a.length,L=w(b+S),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;S--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function ju(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Mt(t),r===n?(r=t,t=0):r=Mt(r),a=a===n?t<r?1:-1:Mt(a),ah(t,r,a,e)}}function Ro(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=rt(t),r=rt(r)),e(t,r)}}function el(e,t,r,a,c,p,T,h,S,_){var b=t&gt,L=b?T:n,C=b?n:T,D=b?p:n,U=b?n:p;t|=b?mt:Rn,t&=~(b?Rn:mt),t&yc||(t&=~(ge|_e));var K=[e,t,c,D,L,U,C,h,S,_],B=r.apply(n,K);return Zs(e)&&fl(B,K),B.placeholder=a,dl(B,e,t)}function $s(e){var t=xe[e];return function(r,a){if(r=rt(r),a=a==null?0:Ee(V(a),292),a&&du(r)){var c=(ne(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(ne(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var Ah=Wn&&1/so(new Wn([,-0]))[1]==cn?function(e){return new Wn(e)}:la;function tl(e){return function(t){var r=ke(t);return r==st?ys(t):r==at?Wm(t):Rm(t,e(t))}}function Rt(e,t,r,a,c,p,T,h){var S=t&_e;if(!S&&typeof e!="function")throw new Qe(m);var _=a?a.length:0;if(_||(t&=~(mt|Rn),a=c=n),T=T===n?T:Se(V(T),0),h=h===n?h:V(h),_-=c?c.length:0,t&Rn){var b=a,L=c;a=c=n}var C=S?n:qs(e),D=[e,t,r,a,c,b,L,p,T,h];if(C&&Uh(D,C),e=D[0],t=D[1],r=D[2],a=D[3],c=D[4],h=D[9]=D[9]===n?S?0:e.length:Se(D[9]-_,0),!h&&t&(gt|Pn)&&(t&=~(gt|Pn)),!t||t==ge)var U=Sh(e,t,r);else t==gt||t==Pn?U=vh(e,t,h):(t==mt||t==(ge|mt))&&!c.length?U=wh(e,t,r,a):U=ko.apply(n,D);var K=C?Ou:fl;return dl(K(U,D),e,t)}function nl(e,t,r,a){return e===n||lt(e,Bn[r])&&!re.call(a,r)?t:e}function rl(e,t,r,a,c,p){return le(e)&&le(t)&&(p.set(t,e),_o(e,t,n,rl,p),p.delete(t)),e}function Ih(e){return kr(e)?n:e}function ol(e,t,r,a,c,p){var T=r&pe,h=e.length,S=t.length;if(h!=S&&!(T&&S>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,D=r&ye?new fn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],K=t[L];if(a)var B=T?a(K,U,L,t,e,p):a(U,K,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(D){if(!fs(t,function(X,Q){if(!mr(D,Q)&&(U===X||c(U,X,r,a,p)))return D.push(Q)})){C=!1;break}}else if(!(U===K||c(U,K,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function _h(e,t,r,a,c,p,T){switch(r){case Nn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gr:return!(e.byteLength!=t.byteLength||!p(new fo(e),new fo(t)));case cr:case ur:case lr:return lt(+e,+t);case Qr:return e.name==t.name&&e.message==t.message;case pr:case fr:return e==t+"";case st:var h=ys;case at:var S=a&pe;if(h||(h=so),e.size!=t.size&&!S)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=ol(h(e),h(t),a,c,p,T);return T.delete(e),b;case eo:if(Sr)return Sr.call(e)==Sr.call(t)}return!1}function bh(e,t,r,a,c,p){var T=r&pe,h=Hs(e),S=h.length,_=Hs(t),b=_.length;if(S!=b&&!T)return!1;for(var L=S;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var D=p.get(e),U=p.get(t);if(D&&U)return D==t&&U==e;var K=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<S;){C=h[L];var X=e[C],Q=t[C];if(a)var qe=T?a(Q,X,C,t,e,p):a(X,Q,C,e,t,p);if(!(qe===n?X===Q||c(X,Q,r,a,p):qe)){K=!1;break}B||(B=C=="constructor")}if(K&&!B){var De=e.constructor,ze=t.constructor;De!=ze&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof ze=="function"&&ze instanceof ze)&&(K=!1)}return p.delete(e),p.delete(t),K}function Dt(e){return Js(ll(e,n,xl),e+"")}function Hs(e){return Iu(e,we,Ks)}function Vs(e){return Iu(e,Fe,il)}var qs=xo?function(e){return xo.get(e)}:la;function Do(e){for(var t=e.name+"",r=Gn[t],a=re.call(Gn,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function qn(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function M(){var e=l.iteratee||ca;return e=e===ca?Lu:e,arguments.length?e(arguments[0],arguments[1]):e}function No(e,t){var r=e.__data__;return Nh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function zs(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,cl(c)]}return t}function mn(e,t){var r=Fm(e,t);return bu(r)?r:n}function Lh(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=lo.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Ks=Ss?function(e){return e==null?[]:(e=oe(e),Kt(Ss(e),function(t){return pu.call(e,t)}))}:pa,il=Ss?function(e){for(var t=[];e;)Yt(t,Ks(e)),e=go(e);return t}:pa,ke=Pe;(vs&&ke(new vs(new ArrayBuffer(1)))!=Nn||hr&&ke(new hr)!=st||ws&&ke(ws.resolve())!=vc||Wn&&ke(new Wn)!=at||yr&&ke(new yr)!=dr)&&(ke=function(e){var t=Pe(e),r=t==Et?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case uT:return Nn;case lT:return st;case pT:return vc;case fT:return at;case dT:return dr}return t});function Eh(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=Se(e,t-T);break}}return{start:e,end:t}}function kh(e){var t=e.match(Og);return t?t[1].split(Mg):[]}function sl(e,t,r){t=en(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=xt(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&&Go(c)&&Nt(T,c)&&(H(e)||hn(e)))}function Ch(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 al(e){return typeof e.constructor=="function"&&!Lr(e)?$n(go(e)):{}}function Ph(e,t,r){var a=e.constructor;switch(t){case gr:return Ws(e);case cr:case ur:return new a(+e);case Nn:return gh(e,r);case zi:case Ki:case Yi:case Zi:case Xi:case Ji:case Qi:case ji:case es:return Hu(e,r);case st:return new a;case lr:case fr:return new a(e);case pr:return mh(e);case at:return new a;case eo:return Th(e)}}function Rh(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(Ng,`{
1
+ "use strict";var r0=Object.create;var Cr=Object.defineProperty,o0=Object.defineProperties,i0=Object.getOwnPropertyDescriptor,s0=Object.getOwnPropertyDescriptors,a0=Object.getOwnPropertyNames,Vo=Object.getOwnPropertySymbols,c0=Object.getPrototypeOf,da=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable;var Jl=(n,o,i)=>o in n?Cr(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))da.call(o,i)&&Jl(n,i,o[i]);if(Vo)for(var i of Vo(o))Ql.call(o,i)&&Jl(n,i,o[i]);return n},j=(n,o)=>o0(n,s0(o));var qo=(n,o)=>{var i={};for(var u in n)da.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Vo)for(var u of Vo(n))o.indexOf(u)<0&&Ql.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Pr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Cr(n,i,{get:o[i],enumerable:!0})},jl=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of a0(o))!da.call(n,m)&&m!==i&&Cr(n,m,{get:()=>o[m],enumerable:!(u=i0(o,m))||u.enumerable});return n};var Y=(n,o,i)=>(i=n!=null?r0(c0(n)):{},jl(o||!n||!n.__esModule?Cr(i,"default",{value:n,enumerable:!0}):i,n)),Rr=n=>jl(Cr({},"__esModule",{value:!0}),n);var G=(n,o,i)=>new Promise((u,m)=>{var v=E=>{try{k(i.next(E))}catch(N){m(N)}},y=E=>{try{k(i.throw(E))}catch(N){m(N)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(v,y);k((i=i.apply(n,o)).next())});var np=Pr(zo=>{"use strict";s();zo.byteLength=l0;zo.toByteArray=f0;zo.fromByteArray=m0;var St=[],ot=[],u0=typeof Uint8Array!="undefined"?Uint8Array:Array,ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,ep=ga.length;xn<ep;++xn)St[xn]=ga[xn],ot[ga.charCodeAt(xn)]=xn;var xn,ep;ot["-".charCodeAt(0)]=62;ot["_".charCodeAt(0)]=63;function tp(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 l0(n){var o=tp(n),i=o[0],u=o[1];return(i+u)*3/4-u}function p0(n,o,i){return(o+i)*3/4-i}function f0(n){var o,i=tp(n),u=i[0],m=i[1],v=new u0(p0(n,u,m)),y=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=ot[n.charCodeAt(E)]<<18|ot[n.charCodeAt(E+1)]<<12|ot[n.charCodeAt(E+2)]<<6|ot[n.charCodeAt(E+3)],v[y++]=o>>16&255,v[y++]=o>>8&255,v[y++]=o&255;return m===2&&(o=ot[n.charCodeAt(E)]<<2|ot[n.charCodeAt(E+1)]>>4,v[y++]=o&255),m===1&&(o=ot[n.charCodeAt(E)]<<10|ot[n.charCodeAt(E+1)]<<4|ot[n.charCodeAt(E+2)]>>2,v[y++]=o>>8&255,v[y++]=o&255),v}function d0(n){return St[n>>18&63]+St[n>>12&63]+St[n>>6&63]+St[n&63]}function g0(n,o,i){for(var u,m=[],v=o;v<i;v+=3)u=(n[v]<<16&16711680)+(n[v+1]<<8&65280)+(n[v+2]&255),m.push(d0(u));return m.join("")}function m0(n){for(var o,i=n.length,u=i%3,m=[],v=16383,y=0,k=i-u;y<k;y+=v)m.push(g0(n,y,y+v>k?k:y+v));return u===1?(o=n[i-1],m.push(St[o>>2]+St[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(St[o>>10]+St[o>>4&63]+St[o<<2&63]+"=")),m.join("")}});var rp=Pr(ma=>{s();ma.read=function(n,o,i,u,m){var v,y,k=m*8-u-1,E=(1<<k)-1,N=E>>1,z=-7,F=i?m-1:0,pe=i?-1:1,ye=n[o+F];for(F+=pe,v=ye&(1<<-z)-1,ye>>=-z,z+=k;z>0;v=v*256+n[o+F],F+=pe,z-=8);for(y=v&(1<<-z)-1,v>>=-z,z+=u;z>0;y=y*256+n[o+F],F+=pe,z-=8);if(v===0)v=1-N;else{if(v===E)return y?NaN:(ye?-1:1)*(1/0);y=y+Math.pow(2,u),v=v-N}return(ye?-1:1)*y*Math.pow(2,v-u)};ma.write=function(n,o,i,u,m,v){var y,k,E,N=v*8-m-1,z=(1<<N)-1,F=z>>1,pe=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:v-1,ge=u?1:-1,_e=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,y=z):(y=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-y))<1&&(y--,E*=2),y+F>=1?o+=pe/E:o+=pe*Math.pow(2,1-F),o*E>=2&&(y++,E/=2),y+F>=z?(k=0,y=z):y+F>=1?(k=(o*E-1)*Math.pow(2,m),y=y+F):(k=o*Math.pow(2,F-1)*Math.pow(2,m),y=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(y=y<<m|k,N+=m;N>0;n[i+ye]=y&255,ye+=ge,y/=256,N-=8);n[i+ye-ge]|=_e*128}});var Tp=Pr(Zn=>{"use strict";s();var Ta=np(),Yn=rp(),op=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zn.Buffer=I;Zn.SlowBuffer=v0;Zn.INSPECT_MAX_BYTES=50;var Ko=2147483647;Zn.kMaxLength=Ko;I.TYPED_ARRAY_SUPPORT=T0();!I.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 T0(){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(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}});Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function Ut(n){if(n>Ko)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,I.prototype),o}function I(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 ap(n,o,i)}I.poolSize=8192;function ap(n,o,i){if(typeof n=="string")return y0(n,o);if(ArrayBuffer.isView(n))return x0(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(vt(n,ArrayBuffer)||n&&vt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(vt(n,SharedArrayBuffer)||n&&vt(n.buffer,SharedArrayBuffer)))return ya(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 I.from(u,o,i);var m=S0(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return I.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)}I.from=function(n,o,i){return ap(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function cp(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 h0(n,o,i){return cp(n),n<=0?Ut(n):o!==void 0?typeof i=="string"?Ut(n).fill(o,i):Ut(n).fill(o):Ut(n)}I.alloc=function(n,o,i){return h0(n,o,i)};function Sa(n){return cp(n),Ut(n<0?0:va(n)|0)}I.allocUnsafe=function(n){return Sa(n)};I.allocUnsafeSlow=function(n){return Sa(n)};function y0(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=up(n,o)|0,u=Ut(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ha(n){for(var o=n.length<0?0:va(n.length)|0,i=Ut(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function x0(n){if(vt(n,Uint8Array)){var o=new Uint8Array(n);return ya(o.buffer,o.byteOffset,o.byteLength)}return ha(n)}function ya(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,I.prototype),u}function S0(n){if(I.isBuffer(n)){var o=va(n.length)|0,i=Ut(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||wa(n.length)?Ut(0):ha(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ha(n.data)}function va(n){if(n>=Ko)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ko.toString(16)+" bytes");return n|0}function v0(n){return+n!=n&&(n=0),I.alloc(+n)}I.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==I.prototype};I.compare=function(o,i){if(vt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),vt(i,Uint8Array)&&(i=I.from(i,i.offset,i.byteLength)),!I.isBuffer(o)||!I.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,v=0,y=Math.min(u,m);v<y;++v)if(o[v]!==i[v]){u=o[v],m=i[v];break}return u<m?-1:m<u?1:0};I.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}};I.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return I.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=I.allocUnsafe(i),v=0;for(u=0;u<o.length;++u){var y=o[u];if(vt(y,Uint8Array))v+y.length>m.length?I.from(y).copy(m,v):Uint8Array.prototype.set.call(m,y,v);else if(I.isBuffer(y))y.copy(m,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=y.length}return m};function up(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||vt(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 xa(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return mp(n).length;default:if(m)return u?-1:xa(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=up;function w0(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 R0(this,o,i);case"utf8":case"utf-8":return pp(this,o,i);case"ascii":return C0(this,o,i);case"latin1":case"binary":return P0(this,o,i);case"base64":return E0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Sn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}I.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};I.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};I.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};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?pp(this,0,o):w0.apply(this,arguments)};I.prototype.toLocaleString=I.prototype.toString;I.prototype.equals=function(o){if(!I.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:I.compare(this,o)===0};I.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+">"};op&&(I.prototype[op]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,v){if(vt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),!I.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),v===void 0&&(v=this.length),i<0||u>o.length||m<0||v>this.length)throw new RangeError("out of range index");if(m>=v&&i>=u)return 0;if(m>=v)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,v>>>=0,this===o)return 0;for(var y=v-m,k=u-i,E=Math.min(y,k),N=this.slice(m,v),z=o.slice(i,u),F=0;F<E;++F)if(N[F]!==z[F]){y=N[F],k=z[F];break}return y<k?-1:k<y?1:0};function lp(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,wa(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=I.from(o,u)),I.isBuffer(o))return o.length===0?-1:ip(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):ip(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function ip(n,o,i,u,m){var v=1,y=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;v=2,y/=2,k/=2,i/=2}function E(ye,ge){return v===1?ye[ge]:ye.readUInt16BE(ge*v)}var N;if(m){var z=-1;for(N=i;N<y;N++)if(E(n,N)===E(o,z===-1?0:N-z)){if(z===-1&&(z=N),N-z+1===k)return z*v}else z!==-1&&(N-=N-z),z=-1}else for(i+k>y&&(i=y-k),N=i;N>=0;N--){for(var F=!0,pe=0;pe<k;pe++)if(E(n,N+pe)!==E(o,pe)){F=!1;break}if(F)return N}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return lp(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return lp(this,o,i,u,!1)};function A0(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var v=o.length;u>v/2&&(u=v/2);for(var y=0;y<u;++y){var k=parseInt(o.substr(y*2,2),16);if(wa(k))return y;n[i+y]=k}return y}function I0(n,o,i,u){return Yo(xa(o,n.length-i),n,i,u)}function _0(n,o,i,u){return Yo(M0(o),n,i,u)}function b0(n,o,i,u){return Yo(mp(o),n,i,u)}function L0(n,o,i,u){return Yo(F0(o,n.length-i),n,i,u)}I.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 v=this.length-i;if((u===void 0||u>v)&&(u=v),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var y=!1;;)switch(m){case"hex":return A0(this,o,i,u);case"utf8":case"utf-8":return I0(this,o,i,u);case"ascii":case"latin1":case"binary":return _0(this,o,i,u);case"base64":return b0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L0(this,o,i,u);default:if(y)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),y=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E0(n,o,i){return o===0&&i===n.length?Ta.fromByteArray(n):Ta.fromByteArray(n.slice(o,i))}function pp(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var v=n[m],y=null,k=v>239?4:v>223?3:v>191?2:1;if(m+k<=i){var E,N,z,F;switch(k){case 1:v<128&&(y=v);break;case 2:E=n[m+1],(E&192)===128&&(F=(v&31)<<6|E&63,F>127&&(y=F));break;case 3:E=n[m+1],N=n[m+2],(E&192)===128&&(N&192)===128&&(F=(v&15)<<12|(E&63)<<6|N&63,F>2047&&(F<55296||F>57343)&&(y=F));break;case 4:E=n[m+1],N=n[m+2],z=n[m+3],(E&192)===128&&(N&192)===128&&(z&192)===128&&(F=(v&15)<<18|(E&63)<<12|(N&63)<<6|z&63,F>65535&&F<1114112&&(y=F))}}y===null?(y=65533,k=1):y>65535&&(y-=65536,u.push(y>>>10&1023|55296),y=56320|y&1023),u.push(y),m+=k}return k0(u)}var sp=4096;function k0(n){var o=n.length;if(o<=sp)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=sp));return i}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]&127);return u}function P0(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 R0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",v=o;v<i;++v)m+=U0[n[v]];return m}function D0(n,o,i){for(var u=n.slice(o,i),m="",v=0;v<u.length-1;v+=2)m+=String.fromCharCode(u[v]+u[v+1]*256);return m}I.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,I.prototype),m};function Ae(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")}I.prototype.readUintLE=I.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,y=0;++y<i&&(v*=256);)m+=this[o+y]*v;return m};I.prototype.readUintBE=I.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o+--i],v=1;i>0&&(v*=256);)m+=this[o+--i]*v;return m};I.prototype.readUint8=I.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]};I.prototype.readUint16LE=I.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]|this[o+1]<<8};I.prototype.readUint16BE=I.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]<<8|this[o+1]};I.prototype.readUint32LE=I.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};I.prototype.readUint32BE=I.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};I.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],v=1,y=0;++y<i&&(v*=256);)m+=this[o+y]*v;return v*=128,m>=v&&(m-=Math.pow(2,8*i)),m};I.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=i,v=1,y=this[o+--m];m>0&&(v*=256);)y+=this[o+--m]*v;return v*=128,y>=v&&(y-=Math.pow(2,8*i)),y};I.prototype.readInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};I.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};I.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};I.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};I.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};I.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Yn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Yn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Yn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Yn.read(this,o,!1,52,8)};function Be(n,o,i,u,m,v){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<v)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Be(this,o,i,u,v,0)}var y=1,k=0;for(this[i]=o&255;++k<u&&(y*=256);)this[i+k]=o/y&255;return i+u};I.prototype.writeUintBE=I.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var v=Math.pow(2,8*u)-1;Be(this,o,i,u,v,0)}var y=u-1,k=1;for(this[i+y]=o&255;--y>=0&&(k*=256);)this[i+y]=o/k&255;return i+u};I.prototype.writeUint8=I.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};I.prototype.writeUint16LE=I.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};I.prototype.writeUint16BE=I.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};I.prototype.writeUint32LE=I.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};I.prototype.writeUint32BE=I.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};I.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Be(this,o,i,u,v-1,-v)}var y=0,k=1,E=0;for(this[i]=o&255;++y<u&&(k*=256);)o<0&&E===0&&this[i+y-1]!==0&&(E=1),this[i+y]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var v=Math.pow(2,8*u-1);Be(this,o,i,u,v-1,-v)}var y=u-1,k=1,E=0;for(this[i+y]=o&255;--y>=0&&(k*=256);)o<0&&E===0&&this[i+y+1]!==0&&(E=1),this[i+y]=(o/k>>0)-E&255;return i+u};I.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};I.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};I.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};I.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};I.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 fp(n,o,i,u,m,v){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function dp(n,o,i,u,m){return o=+o,i=i>>>0,m||fp(n,o,i,4,34028234663852886e22,-34028234663852886e22),Yn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return dp(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return dp(this,o,i,!1,u)};function gp(n,o,i,u,m){return o=+o,i=i>>>0,m||fp(n,o,i,8,17976931348623157e292,-17976931348623157e292),Yn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return gp(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return gp(this,o,i,!1,u)};I.prototype.copy=function(o,i,u,m){if(!I.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 v=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),v};I.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"&&!I.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var v=o.charCodeAt(0);(m==="utf8"&&v<128||m==="latin1")&&(o=v)}}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 y;if(typeof o=="number")for(y=i;y<u;++y)this[y]=o;else{var k=I.isBuffer(o)?o:I.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(y=0;y<u-i;++y)this[y+i]=k[y%E]}return this};var N0=/[^+/0-9A-Za-z-_]/g;function O0(n){if(n=n.split("=")[0],n=n.trim().replace(N0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function xa(n,o){o=o||1/0;for(var i,u=n.length,m=null,v=[],y=0;y<u;++y){if(i=n.charCodeAt(y),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&v.push(239,191,189);continue}else if(y+1===u){(o-=3)>-1&&v.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&v.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&v.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;v.push(i)}else if(i<2048){if((o-=2)<0)break;v.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;v.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;v.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return v}function M0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function F0(n,o){for(var i,u,m,v=[],y=0;y<n.length&&!((o-=2)<0);++y)i=n.charCodeAt(y),u=i>>8,m=i%256,v.push(m),v.push(u);return v}function mp(n){return Ta.toByteArray(O0(n))}function Yo(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 vt(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function wa(n){return n!==n}var U0=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 vp=Pr((KI,Sp)=>{s();var he=Sp.exports={},wt,At;function Aa(){throw new Error("setTimeout has not been defined")}function Ia(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?wt=setTimeout:wt=Aa}catch(n){wt=Aa}try{typeof clearTimeout=="function"?At=clearTimeout:At=Ia}catch(n){At=Ia}})();function hp(n){if(wt===setTimeout)return setTimeout(n,0);if((wt===Aa||!wt)&&setTimeout)return wt=setTimeout,setTimeout(n,0);try{return wt(n,0)}catch(o){try{return wt.call(null,n,0)}catch(i){return wt.call(this,n,0)}}}function B0(n){if(At===clearTimeout)return clearTimeout(n);if((At===Ia||!At)&&clearTimeout)return At=clearTimeout,clearTimeout(n);try{return At(n)}catch(o){try{return At.call(null,n)}catch(i){return At.call(this,n)}}}var Bt=[],Xn=!1,vn,Zo=-1;function W0(){!Xn||!vn||(Xn=!1,vn.length?Bt=vn.concat(Bt):Zo=-1,Bt.length&&yp())}function yp(){if(!Xn){var n=hp(W0);Xn=!0;for(var o=Bt.length;o;){for(vn=Bt,Bt=[];++Zo<o;)vn&&vn[Zo].run();Zo=-1,o=Bt.length}vn=null,Xn=!1,B0(n)}}he.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];Bt.push(new xp(n,o)),Bt.length===1&&!Xn&&hp(yp)};function xp(n,o){this.fun=n,this.array=o}xp.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Wt(){}he.on=Wt;he.addListener=Wt;he.once=Wt;he.off=Wt;he.removeListener=Wt;he.removeAllListeners=Wt;he.emit=Wt;he.prependListener=Wt;he.prependOnceListener=Wt;he.listeners=function(n){return[]};he.binding=function(n){throw new Error("process.binding is not supported")};he.cwd=function(){return"/"};he.chdir=function(n){throw new Error("process.chdir is not supported")};he.umask=function(){return 0}});var d,g,G0,f,s=W(()=>{d=Y(Tp()),g=Y(vp()),G0=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),f=G0});var wn=W(()=>{"use strict";s()});var wp=W(()=>{"use strict";s()});var Ap=W(()=>{"use strict";s()});var Ip=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var _p=W(()=>{"use strict";s()});var bp=W(()=>{"use strict";s()});var We=W(()=>{"use strict";s()});var Lp=W(()=>{"use strict";s()});var Ep=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();wp();Ap();Ip();de();_p();bp();We();Lp();Ep()});var _a,kp,f_,Cp,d_,Pp,g_,m_,T_,Rp=W(()=>{"use strict";s();Ie();_a={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:kp,egldLabel:f_}=_a["devnet"],{chainId:Cp,egldLabel:d_}=_a["testnet"],{chainId:Pp,egldLabel:g_}=_a["mainnet"],m_={["devnet"]:kp,["testnet"]:Cp,["mainnet"]:Pp},T_={[kp]:"devnet",[Cp]:"testnet",[Pp]:"mainnet"}});var ba=W(()=>{"use strict";s()});var Dp=W(()=>{"use strict";s()});var Xo,La=W(()=>{"use strict";s();Xo="transaction-status-toast-id"});var It,Np=W(()=>{"use strict";s();It=require("@multiversx/sdk-web-wallet-provider")});var Op=W(()=>{"use strict";s()});var Dr,Jo,Mp,Qo,Fp,Jn,se=W(()=>{"use strict";s();wn();Rp();ba();Dp();La();Np();Op();Dr=5e4,Jo=1e9,Mp=1,Qo="logout",Fp="login",Jn="0"});var Nr,jo=W(()=>{"use strict";s();Nr=()=>Date.now()/1e3});var Up=W(()=>{"use strict";s()});var Bp=W(()=>{"use strict";s()});var Ea=W(()=>{"use strict";s();jo();Up();Bp()});var Ca={};yn(Ca,{getItem:()=>H0,localStorageKeys:()=>rn,removeItem:()=>V0,setItem:()=>$0});var rn,ka,$0,H0,V0,Qn=W(()=>{"use strict";s();Ea();rn={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ka=typeof localStorage!="undefined",$0=({key:n,data:o,expires:i})=>{!ka||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},H0=n=>{if(!ka)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:Nr()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},V0=n=>{!ka||localStorage.removeItem(String(n))}});var Pa={};yn(Pa,{clear:()=>Hp,getItem:()=>Gp,removeItem:()=>$p,setItem:()=>Wp,storage:()=>q0});var Wp,Gp,$p,Hp,q0,Vp=W(()=>{"use strict";s();Wp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Gp=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},$p=n=>sessionStorage.removeItem(String(n)),Hp=()=>sessionStorage.clear(),q0={setItem:Wp,getItem:Gp,removeItem:$p,clear:Hp}});var An,jn=W(()=>{"use strict";s();Qn();Vp();An={session:Pa,local:Ca}});var Ra,Le,_t,Ce=W(()=>{"use strict";s();Ra=require("@reduxjs/toolkit");se();Le=(0,Ra.createAction)(Qo),_t=(0,Ra.createAction)(Fp,n=>({payload:n}))});var Na,qp,zp,ei,Da,Kp,ti,Y_,Oa,Z_,z0,K0,X_,J_,Q_,Yp,ni,ri=W(()=>{"use strict";s();Na=require("@multiversx/sdk-core"),qp=require("@reduxjs/toolkit"),zp=require("redux-persist");se();jn();Qn();Ce();ei={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Jn},Da={address:"",websocketEvent:null,accounts:{"":ei},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Kp=(0,qp.createSlice)({name:"accountInfoSlice",initialState:Da,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new Na.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:ei},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(rn.loginExpiresAt),Da)),n.addCase(_t,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new Na.Address(u).hex()}),n.addCase(zp.REHYDRATE,(o,i)=>{var N;if(!((N=i.payload)!=null&&N.account))return;let{account:u}=i.payload,{address:m,shard:v,accounts:y,publicKey:k}=u;o.address=m,o.shard=v;let E=y&&m in y;o.accounts=E?y:Da.accounts,o.publicKey=k})}}),{setAccount:ti,setAddress:Y_,setAccountNonce:Oa,setAccountShard:Z_,setLedgerAccount:z0,updateLedgerAccount:K0,setWalletConnectAccount:X_,setIsAccountLoading:J_,setAccountLoadingError:Q_,setWebsocketEvent:Yp}=Kp.actions,ni=Kp.reducer});function Or(){return new Date().setHours(new Date().getHours()+24)}function Mr(n){An.local.setItem({key:rn.loginExpiresAt,data:n,expires:n})}var Ma=W(()=>{"use strict";s();jn();Qn()});var Xp,Zp,Jp,cb,Qp,Y0,Z0,ub,X0,jp,lb,oi,ii=W(()=>{"use strict";s();Xp=require("@reduxjs/toolkit");Ma();de();Ce();Zp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Jp=(0,Xp.createSlice)({name:"loginInfoSlice",initialState:Zp,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,()=>Zp),n.addCase(_t,(o,i)=>{o.loginMethod=i.payload.loginMethod,Mr(Or())})}}),{setLoginMethod:cb,setWalletConnectLogin:Qp,setLedgerLogin:Y0,setTokenLogin:Z0,setTokenLoginSignature:ub,setWalletLogin:X0,invalidateLoginSession:jp,setLogoutRoute:lb}=Jp.actions,oi=Jp.reducer});var tf,ef,nf,gb,J0,mb,Q0,si,ai=W(()=>{"use strict";s();tf=require("@reduxjs/toolkit");Ce();ef={},nf=(0,tf.createSlice)({name:"modalsSlice",initialState:ef,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,()=>ef)}}),{setTxSubmittedModal:gb,setNotificationModal:J0,clearTxSubmittedModal:mb,clearNotificationModal:Q0}=nf.actions,si=nf.reducer});var Fr=W(()=>{"use strict";s()});var of=W(()=>{"use strict";s();Fr()});function Fa(n){return n[Math.floor(Math.random()*n.length)]}var sf=W(()=>{"use strict";s()});var Ua=W(()=>{"use strict";s();ba()});var In=W(()=>{"use strict";s();of();sf();Ua()});var af,cf,Ba,j0,uf,Cb,Pb,ci,ui=W(()=>{"use strict";s();af=require("@reduxjs/toolkit"),cf=Y(require("lodash.omit"));In();Ba={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},j0={network:Ba,chainID:"-1"},uf=(0,af.createSlice)({name:"appConfig",initialState:j0,reducers:{initializeNetworkConfig:(n,o)=>{let i=Fa(o.payload.walletConnectBridgeAddresses),u=Fa(o.payload.walletConnectV2RelayAddresses),m=(0,cf.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=j(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:Cb,setChainID:Pb}=uf.actions,ci=uf.reducer});var lf,Wa,pf,Fb,Ub,Bb,li,pi=W(()=>{"use strict";s();lf=require("@reduxjs/toolkit");Ie();Ce();Wa={isSigning:!1,signedSessions:{}},pf=(0,lf.createSlice)({name:"signedMessageInfoSliceState",initialState:Wa,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return j(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:j(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Wa},extraReducers:n=>{n.addCase(Le,()=>Wa)}}),{setSignSession:Fb,clearSignedMessageInfo:Ub,setSignSessionState:Bb}=pf.actions,li=pf.reducer});var df,gf,ff,mf,ew,Ga,Kb,Yb,Zb,Xb,fi,di=W(()=>{"use strict";s();df=require("@reduxjs/toolkit"),gf=require("redux-persist");La();Ie();jo();Ce();ff={customToasts:[],transactionToasts:[],failTransactionToast:null},mf=(0,df.createSlice)({name:"toastsSlice",initialState:ff,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(j(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:Nr(),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=j(O({},o.payload),{toastId:Xo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>ff),n.addCase(gf.REHYDRATE,(o,i)=>{var m,v;let u=(v=(m=i.customToasts)==null?void 0:m.filter(y=>!("component"in y)))!=null?v:[];o.customToasts=u})}}),{addCustomToast:ew,removeCustomToast:Ga,addTransactionToast:Kb,removeTransactionToast:Yb,addFailTransactionToast:Zb,removeFailTransactionToast:Xb}=mf.actions,fi=mf.reducer});var Tf,Ha,Va,qa,tw,$a,hf,eL,nw,za,gi,mi=W(()=>{"use strict";s();Tf=require("@reduxjs/toolkit");Ce();Ha="Transaction failed",Va="Transaction successful",qa="Processing transaction",tw="Transaction submitted",$a={},hf=(0,Tf.createSlice)({name:"transactionsInfo",initialState:$a,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ha,successMessage:(u==null?void 0:u.successMessage)||Va,processingMessage:(u==null?void 0:u.processingMessage)||qa,submittedMessage:(u==null?void 0:u.submittedMessage)||tw,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>$a},extraReducers:n=>{n.addCase(Le,()=>$a)}}),{clearTransactionsInfo:eL,setTransactionsDisplayInfo:nw,clearTransactionsInfoForSessionId:za}=hf.actions,gi=hf.reducer});function Gt(n){return n!=null&&(lw(n)||gw(n))}function bn(n){return n!=null&&(pw(n)||mw(n))}function Ln(n){return n!=null&&(fw(n)||Tw(n))}function Ka(n){return n!=null&&dw(n)}function lw(n){return n!=null&&rw.includes(n)}function pw(n){return n!=null&&ow.includes(n)}function fw(n){return n!=null&&iw.includes(n)}function dw(n){return n!=null&&sw.includes(n)}function gw(n){return n!=null&&aw.includes(n)}function mw(n){return n!=null&&cw.includes(n)}function Tw(n){return n!=null&&uw.includes(n)}var rw,ow,iw,sw,aw,cw,uw,tr=W(()=>{"use strict";s();de();rw=["sent"],ow=["success"],iw=["fail","cancelled","timedOut"],sw=["timedOut"],aw=["pending"],cw=["success"],uw=["fail","invalid"]});var yf,xf,Ur,hw,Sf,Br,Ti,yw,hi,xw,Sw,uL,vw,yi,Ya,xi,Si=W(()=>{"use strict";s();yf=require("@reduxjs/toolkit"),xf=require("redux-persist");de();tr();Ce();Ur={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},hw={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},Sf=(0,yf.createSlice)({name:"transactionsSlice",initialState:Ur,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,N;let{sessionId:i,transactions:u,errorMessage:m,status:v,redirectRoute:y}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||hw;n.signedTransactions[i]={transactions:u,status:v,errorMessage:m,redirectRoute:y,customTransactionInformation:k},((N=n==null?void 0:n.transactionsToSign)==null?void 0:N.sessionId)===i&&(n.transactionsToSign=Ur.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:v}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),v!=null&&(n.signedTransactions[i].transactions=v))},updateSignedTransactionStatus:(n,o)=>{var k,E,N,z,F,pe;let{sessionId:i,status:u,errorMessage:m,transactionHash:v}=o.payload,y=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(y!=null){n.signedTransactions[i].transactions=y.map(_e=>_e.hash===v?j(O({},_e),{status:u,errorMessage:m}):_e);let ye=(z=(N=n.signedTransactions[i])==null?void 0:N.transactions)==null?void 0:z.every(_e=>bn(_e.status)),ge=(pe=(F=n.signedTransactions[i])==null?void 0:F.transactions)==null?void 0:pe.every(_e=>Ln(_e.status));ye&&(n.signedTransactions[i].status="success"),ge&&(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=Ur.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Ur.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Ur),n.addCase(xf.REHYDRATE,(o,i)=>{var y;if(o.signTransactionsCancelMessage=null,!((y=i.payload)!=null&&y.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,v=Object.entries(u).reduce((k,[E,N])=>{let z=new Date(E),F=new Date;return F.setHours(F.getHours()+5),F-z>0||(k[E]=N),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=v)})}}),{updateSignedTransactionStatus:Br,updateSignedTransactions:Ti,setTransactionsToSign:yw,clearAllTransactionsToSign:hi,clearAllSignedTransactions:xw,clearSignedTransaction:Sw,clearTransactionToSign:uL,setSignTransactionsError:vw,setSignTransactionsCancelMessage:yi,moveTransactionsToSignedState:Ya}=Sf.actions,xi=Sf.reducer});var ae=W(()=>{"use strict";s();ri();ii();ai();ui();pi();di();mi();Si()});var ja=W(()=>{"use strict";s()});var Rf,Pf,Df,hE,yE,xE,SE,vE,wE,Nf,Of=W(()=>{"use strict";s();Rf=require("@reduxjs/toolkit");Ce();Pf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Df=(0,Rf.createSlice)({name:"dappModalsSlice",initialState:Pf,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,()=>Pf)}}),{setDappModalVisibility:hE,setDappModalHeaderVisibility:yE,setDappModalFooterVisibility:xE,setDappModalHeaderText:SE,setDappModalFooterText:vE,setDappModalConfig:wE}=Df.actions,Nf=Df.reducer});var Mf,Mw,Fw,kn,Ei=W(()=>{"use strict";s();Mf=require("@reduxjs/toolkit");ja();ri();Of();ii();ai();ui();pi();di();mi();Si();Mw={["account"]:ni,["dappModal"]:Nf,["loginInfo"]:oi,["modals"]:si,["networkConfig"]:ci,["signedMessageInfo"]:li,["toasts"]:fi,["transactionsInfo"]:gi,["transactions"]:xi},Fw=(n={})=>(0,Mf.combineReducers)(O(O({},Mw),n)),kn=Fw});var Wf={};yn(Wf,{default:()=>Qw,sessionStorageReducers:()=>ec});function sn(n,o=[]){return{key:n,version:1,storage:Uf.default,blacklist:o}}var Ze,Ff,Uf,Uw,Gr,Bw,Ww,Gw,$w,Hw,Vw,qw,zw,Kw,Bf,Yw,ec,Zw,Xw,Jw,Qw,Gf=W(()=>{"use strict";s();Ze=require("redux-persist"),Ff=Y(require("redux-persist/lib/storage")),Uf=Y(require("redux-persist/lib/storage/session"));Ei();ae();ri();ii();ai();ui();pi();di();mi();Si();ja();Uw={persistReducersStorageType:"localStorage"},Gr={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Bw=sn(Gr["account"]),Ww=sn(Gr["loginInfo"]),Gw=sn(Gr["modals"]),$w=sn(Gr["networkConfig"]),Hw={2:n=>j(O({},n),{networkConfig:Ba})};Vw=sn("sdk-dapp-transactionsInfo"),qw=sn("sdk-dapp-transactions",["transactionsToSign"]),zw=sn("sdk-dapp-toasts"),Kw=sn("sdk-dapp-signedMessageInfo"),Bf={key:"sdk-dapp-store",version:2,storage:Ff.default,whitelist:Object.keys(Gr),migrate:(0,Ze.createMigrate)(Hw,{debug:!1})},Yw=j(O({},Bf),{whitelist:[]}),ec={["toasts"]:(0,Ze.persistReducer)(zw,fi),["transactions"]:(0,Ze.persistReducer)(qw,xi),["transactionsInfo"]:(0,Ze.persistReducer)(Vw,gi),["signedMessageInfo"]:(0,Ze.persistReducer)(Kw,li)},Zw=j(O({},ec),{["account"]:(0,Ze.persistReducer)(Bw,ni),["loginInfo"]:(0,Ze.persistReducer)(Ww,oi),["modals"]:(0,Ze.persistReducer)(Gw,si),["networkConfig"]:(0,Ze.persistReducer)($w,ci)}),Xw=Uw.persistReducersStorageType==="localStorage",Jw=Xw?(0,Ze.persistReducer)(Bf,kn(ec)):(0,Ze.persistReducer)(Yw,kn(Zw)),Qw=Jw});var $f={};yn($f,{default:()=>jw});var jw,Hf=W(()=>{"use strict";s();Ei();jw=kn()});var Vf={};yn(Vf,{default:()=>tA});var it,eA,tA,qf=W(()=>{"use strict";s();it=require("redux-persist"),eA=[it.FLUSH,it.REHYDRATE,it.PAUSE,it.PERSIST,it.PURGE,it.REGISTER],tA=eA});var Yf={};yn(Yf,{default:()=>Kf});function Kf(n){return(0,zf.persistStore)(n)}var zf,Zf=W(()=>{"use strict";s();zf=require("redux-persist")});var Zd=Pr((ir,Yr)=>{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",v="Invalid `variable` option passed into `_.template`",y="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",N=1,z=2,F=4,pe=1,ye=2,ge=1,_e=2,yc=4,gt=8,Pn=16,mt=32,Rn=64,Lt=128,ar=256,qi=512,cg=30,ug="...",lg=800,pg=16,xc=1,fg=2,dg=3,cn=1/0,zt=9007199254740991,gg=17976931348623157e292,Xr=0/0,Tt=4294967295,mg=Tt-1,Tg=Tt>>>1,hg=[["ary",Lt],["bind",ge],["bindKey",_e],["curry",gt],["curryRight",Pn],["flip",qi],["partial",mt],["partialRight",Rn],["rearg",ar]],Dn="[object Arguments]",Jr="[object Array]",yg="[object AsyncFunction]",cr="[object Boolean]",ur="[object Date]",xg="[object DOMException]",Qr="[object Error]",jr="[object Function]",Sc="[object GeneratorFunction]",st="[object Map]",lr="[object Number]",Sg="[object Null]",Et="[object Object]",vc="[object Promise]",vg="[object Proxy]",pr="[object RegExp]",at="[object Set]",fr="[object String]",eo="[object Symbol]",wg="[object Undefined]",dr="[object WeakMap]",Ag="[object WeakSet]",gr="[object ArrayBuffer]",Nn="[object DataView]",zi="[object Float32Array]",Ki="[object Float64Array]",Yi="[object Int8Array]",Zi="[object Int16Array]",Xi="[object Int32Array]",Ji="[object Uint8Array]",Qi="[object Uint8ClampedArray]",ji="[object Uint16Array]",es="[object Uint32Array]",Ig=/\b__p \+= '';/g,_g=/\b(__p \+=) '' \+/g,bg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wc=/&(?:amp|lt|gt|quot|#39);/g,Ac=/[&<>"']/g,Lg=RegExp(wc.source),Eg=RegExp(Ac.source),kg=/<%-([\s\S]+?)%>/g,Cg=/<%([\s\S]+?)%>/g,Ic=/<%=([\s\S]+?)%>/g,Pg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rg=/^\w*$/,Dg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ts=/[\\^$.*+?()[\]{}|]/g,Ng=RegExp(ts.source),ns=/^\s+/,Og=/\s/,Mg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fg=/\{\n\/\* \[wrapped with (.+)\] \*/,Ug=/,? & /,Bg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wg=/[()=,{}\[\]\/\s]/,Gg=/\\(\\)?/g,$g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_c=/\w*$/,Hg=/^[-+]0x[0-9a-f]+$/i,Vg=/^0b[01]+$/i,qg=/^\[object .+?Constructor\]$/,zg=/^0o[0-7]+$/i,Kg=/^(?:0|[1-9]\d*)$/,Yg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,to=/($^)/,Zg=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Xg="\\u0300-\\u036f",Jg="\\ufe20-\\ufe2f",Qg="\\u20d0-\\u20ff",bc=Xg+Jg+Qg,Lc="\\u2700-\\u27bf",Ec="a-z\\xdf-\\xf6\\xf8-\\xff",jg="\\xac\\xb1\\xd7\\xf7",em="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tm="\\u2000-\\u206f",nm=" \\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",kc="A-Z\\xc0-\\xd6\\xd8-\\xde",Cc="\\ufe0e\\ufe0f",Pc=jg+em+tm+nm,rs="['\u2019]",rm="["+no+"]",Rc="["+Pc+"]",ro="["+bc+"]",Dc="\\d+",om="["+Lc+"]",Nc="["+Ec+"]",Oc="[^"+no+Pc+Dc+Lc+Ec+kc+"]",os="\\ud83c[\\udffb-\\udfff]",im="(?:"+ro+"|"+os+")",Mc="[^"+no+"]",is="(?:\\ud83c[\\udde6-\\uddff]){2}",ss="[\\ud800-\\udbff][\\udc00-\\udfff]",On="["+kc+"]",Fc="\\u200d",Uc="(?:"+Nc+"|"+Oc+")",sm="(?:"+On+"|"+Oc+")",Bc="(?:"+rs+"(?:d|ll|m|re|s|t|ve))?",Wc="(?:"+rs+"(?:D|LL|M|RE|S|T|VE))?",Gc=im+"?",$c="["+Cc+"]?",am="(?:"+Fc+"(?:"+[Mc,is,ss].join("|")+")"+$c+Gc+")*",cm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",um="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hc=$c+Gc+am,lm="(?:"+[om,is,ss].join("|")+")"+Hc,pm="(?:"+[Mc+ro+"?",ro,is,ss,rm].join("|")+")",fm=RegExp(rs,"g"),dm=RegExp(ro,"g"),as=RegExp(os+"(?="+os+")|"+pm+Hc,"g"),gm=RegExp([On+"?"+Nc+"+"+Bc+"(?="+[Rc,On,"$"].join("|")+")",sm+"+"+Wc+"(?="+[Rc,On+Uc,"$"].join("|")+")",On+"?"+Uc+"+"+Bc,On+"+"+Wc,um,cm,Dc,lm].join("|"),"g"),mm=RegExp("["+Fc+no+bc+Cc+"]"),Tm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hm=["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"],ym=-1,ce={};ce[zi]=ce[Ki]=ce[Yi]=ce[Zi]=ce[Xi]=ce[Ji]=ce[Qi]=ce[ji]=ce[es]=!0,ce[Dn]=ce[Jr]=ce[gr]=ce[cr]=ce[Nn]=ce[ur]=ce[Qr]=ce[jr]=ce[st]=ce[lr]=ce[Et]=ce[pr]=ce[at]=ce[fr]=ce[dr]=!1;var ie={};ie[Dn]=ie[Jr]=ie[gr]=ie[Nn]=ie[cr]=ie[ur]=ie[zi]=ie[Ki]=ie[Yi]=ie[Zi]=ie[Xi]=ie[st]=ie[lr]=ie[Et]=ie[pr]=ie[at]=ie[fr]=ie[eo]=ie[Ji]=ie[Qi]=ie[ji]=ie[es]=!0,ie[Qr]=ie[jr]=ie[dr]=!1;var xm={\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"},Sm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},wm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Am=parseFloat,Im=parseInt,Vc=typeof f=="object"&&f&&f.Object===Object&&f,_m=typeof self=="object"&&self&&self.Object===Object&&self,ve=Vc||_m||Function("return this")(),cs=typeof ir=="object"&&ir&&!ir.nodeType&&ir,un=cs&&typeof Yr=="object"&&Yr&&!Yr.nodeType&&Yr,qc=un&&un.exports===cs,us=qc&&Vc.process,Xe=function(){try{var x=un&&un.require&&un.require("util").types;return x||us&&us.binding&&us.binding("util")}catch(A){}}(),zc=Xe&&Xe.isArrayBuffer,Kc=Xe&&Xe.isDate,Yc=Xe&&Xe.isMap,Zc=Xe&&Xe.isRegExp,Xc=Xe&&Xe.isSet,Jc=Xe&&Xe.isTypedArray;function Ge(x,A,w){switch(w.length){case 0:return x.call(A);case 1:return x.call(A,w[0]);case 2:return x.call(A,w[0],w[1]);case 3:return x.call(A,w[0],w[1],w[2])}return x.apply(A,w)}function bm(x,A,w,P){for(var $=-1,ee=x==null?0:x.length;++$<ee;){var xe=x[$];A(P,xe,w(xe),x)}return P}function Je(x,A){for(var w=-1,P=x==null?0:x.length;++w<P&&A(x[w],w,x)!==!1;);return x}function Lm(x,A){for(var w=x==null?0:x.length;w--&&A(x[w],w,x)!==!1;);return x}function Qc(x,A){for(var w=-1,P=x==null?0:x.length;++w<P;)if(!A(x[w],w,x))return!1;return!0}function Kt(x,A){for(var w=-1,P=x==null?0:x.length,$=0,ee=[];++w<P;){var xe=x[w];A(xe,w,x)&&(ee[$++]=xe)}return ee}function oo(x,A){var w=x==null?0:x.length;return!!w&&Mn(x,A,0)>-1}function ls(x,A,w){for(var P=-1,$=x==null?0:x.length;++P<$;)if(w(A,x[P]))return!0;return!1}function ue(x,A){for(var w=-1,P=x==null?0:x.length,$=Array(P);++w<P;)$[w]=A(x[w],w,x);return $}function Yt(x,A){for(var w=-1,P=A.length,$=x.length;++w<P;)x[$+w]=A[w];return x}function ps(x,A,w,P){var $=-1,ee=x==null?0:x.length;for(P&&ee&&(w=x[++$]);++$<ee;)w=A(w,x[$],$,x);return w}function Em(x,A,w,P){var $=x==null?0:x.length;for(P&&$&&(w=x[--$]);$--;)w=A(w,x[$],$,x);return w}function fs(x,A){for(var w=-1,P=x==null?0:x.length;++w<P;)if(A(x[w],w,x))return!0;return!1}var km=ds("length");function Cm(x){return x.split("")}function Pm(x){return x.match(Bg)||[]}function jc(x,A,w){var P;return w(x,function($,ee,xe){if(A($,ee,xe))return P=ee,!1}),P}function io(x,A,w,P){for(var $=x.length,ee=w+(P?1:-1);P?ee--:++ee<$;)if(A(x[ee],ee,x))return ee;return-1}function Mn(x,A,w){return A===A?Hm(x,A,w):io(x,eu,w)}function Rm(x,A,w,P){for(var $=w-1,ee=x.length;++$<ee;)if(P(x[$],A))return $;return-1}function eu(x){return x!==x}function tu(x,A){var w=x==null?0:x.length;return w?ms(x,A)/w:Xr}function ds(x){return function(A){return A==null?n:A[x]}}function gs(x){return function(A){return x==null?n:x[A]}}function nu(x,A,w,P,$){return $(x,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function Dm(x,A){var w=x.length;for(x.sort(A);w--;)x[w]=x[w].value;return x}function ms(x,A){for(var w,P=-1,$=x.length;++P<$;){var ee=A(x[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function Ts(x,A){for(var w=-1,P=Array(x);++w<x;)P[w]=A(w);return P}function Nm(x,A){return ue(A,function(w){return[w,x[w]]})}function ru(x){return x&&x.slice(0,au(x)+1).replace(ns,"")}function $e(x){return function(A){return x(A)}}function hs(x,A){return ue(A,function(w){return x[w]})}function mr(x,A){return x.has(A)}function ou(x,A){for(var w=-1,P=x.length;++w<P&&Mn(A,x[w],0)>-1;);return w}function iu(x,A){for(var w=x.length;w--&&Mn(A,x[w],0)>-1;);return w}function Om(x,A){for(var w=x.length,P=0;w--;)x[w]===A&&++P;return P}var Mm=gs(xm),Fm=gs(Sm);function Um(x){return"\\"+wm[x]}function Bm(x,A){return x==null?n:x[A]}function Fn(x){return mm.test(x)}function Wm(x){return Tm.test(x)}function Gm(x){for(var A,w=[];!(A=x.next()).done;)w.push(A.value);return w}function ys(x){var A=-1,w=Array(x.size);return x.forEach(function(P,$){w[++A]=[$,P]}),w}function su(x,A){return function(w){return x(A(w))}}function Zt(x,A){for(var w=-1,P=x.length,$=0,ee=[];++w<P;){var xe=x[w];(xe===A||xe===E)&&(x[w]=E,ee[$++]=w)}return ee}function so(x){var A=-1,w=Array(x.size);return x.forEach(function(P){w[++A]=P}),w}function $m(x){var A=-1,w=Array(x.size);return x.forEach(function(P){w[++A]=[P,P]}),w}function Hm(x,A,w){for(var P=w-1,$=x.length;++P<$;)if(x[P]===A)return P;return-1}function Vm(x,A,w){for(var P=w+1;P--;)if(x[P]===A)return P;return P}function Un(x){return Fn(x)?zm(x):km(x)}function ct(x){return Fn(x)?Km(x):Cm(x)}function au(x){for(var A=x.length;A--&&Og.test(x.charAt(A)););return A}var qm=gs(vm);function zm(x){for(var A=as.lastIndex=0;as.test(x);)++A;return A}function Km(x){return x.match(as)||[]}function Ym(x){return x.match(gm)||[]}var Zm=function x(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,hm));var w=A.Array,P=A.Date,$=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,xs=A.RegExp,Xm=A.String,Qe=A.TypeError,ao=w.prototype,Jm=ee.prototype,Bn=oe.prototype,co=A["__core-js_shared__"],uo=Jm.toString,re=Bn.hasOwnProperty,Qm=0,cu=function(){var e=/[^.]+$/.exec(co&&co.keys&&co.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lo=Bn.toString,jm=uo.call(oe),eT=ve._,tT=xs("^"+uo.call(re).replace(ts,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),po=qc?A.Buffer:n,Jt=A.Symbol,fo=A.Uint8Array,uu=po?po.allocUnsafe:n,go=su(oe.getPrototypeOf,oe),lu=oe.create,pu=Bn.propertyIsEnumerable,mo=ao.splice,fu=Jt?Jt.isConcatSpreadable:n,Tr=Jt?Jt.iterator:n,ln=Jt?Jt.toStringTag:n,To=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),nT=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,rT=P&&P.now!==ve.Date.now&&P.now,oT=A.setTimeout!==ve.setTimeout&&A.setTimeout,ho=xe.ceil,yo=xe.floor,Ss=oe.getOwnPropertySymbols,iT=po?po.isBuffer:n,du=A.isFinite,sT=ao.join,aT=su(oe.keys,oe),Se=xe.max,Ee=xe.min,cT=P.now,uT=A.parseInt,gu=xe.random,lT=ao.reverse,vs=mn(A,"DataView"),hr=mn(A,"Map"),ws=mn(A,"Promise"),Wn=mn(A,"Set"),yr=mn(A,"WeakMap"),xr=mn(oe,"create"),xo=yr&&new yr,Gn={},pT=Tn(vs),fT=Tn(hr),dT=Tn(ws),gT=Tn(Wn),mT=Tn(yr),So=Jt?Jt.prototype:n,Sr=So?So.valueOf:n,mu=So?So.toString:n;function l(e){if(fe(e)&&!H(e)&&!(e instanceof J)){if(e instanceof je)return e;if(re.call(e,"__wrapped__"))return Tl(e)}return new je(e)}var $n=function(){function e(){}return function(t){if(!le(t))return{};if(lu)return lu(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function vo(){}function je(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:kg,evaluate:Cg,interpolate:Ic,variable:"",imports:{_:l}},l.prototype=vo.prototype,l.prototype.constructor=l,je.prototype=$n(vo.prototype),je.prototype.constructor=je;function J(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Tt,this.__views__=[]}function TT(){var e=new J(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 hT(){if(this.__filtered__){var e=new J(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yT(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=Ch(0,c,this.__views__),T=p.start,h=p.end,S=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,D=Ee(S,this.__takeCount__);if(!r||!a&&c==S&&D==S)return Bu(e,this.__actions__);var U=[];e:for(;S--&&C<D;){_+=t;for(var K=-1,B=e[_];++K<L;){var X=b[K],Q=X.iteratee,qe=X.type,De=Q(B);if(qe==fg)B=De;else if(!De){if(qe==xc)continue e;break e}}U[C++]=B}return U}J.prototype=$n(vo.prototype),J.prototype.constructor=J;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 xT(){this.__data__=xr?xr(null):{},this.size=0}function ST(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function vT(e){var t=this.__data__;if(xr){var r=t[e];return r===y?n:r}return re.call(t,e)?t[e]:n}function wT(e){var t=this.__data__;return xr?t[e]!==n:re.call(t,e)}function AT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xr&&t===n?y:t,this}pn.prototype.clear=xT,pn.prototype.delete=ST,pn.prototype.get=vT,pn.prototype.has=wT,pn.prototype.set=AT;function kt(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 IT(){this.__data__=[],this.size=0}function _T(e){var t=this.__data__,r=wo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():mo.call(t,r,1),--this.size,!0}function bT(e){var t=this.__data__,r=wo(t,e);return r<0?n:t[r][1]}function LT(e){return wo(this.__data__,e)>-1}function ET(e,t){var r=this.__data__,a=wo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}kt.prototype.clear=IT,kt.prototype.delete=_T,kt.prototype.get=bT,kt.prototype.has=LT,kt.prototype.set=ET;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 kT(){this.size=0,this.__data__={hash:new pn,map:new(hr||kt),string:new pn}}function CT(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t}function PT(e){return No(this,e).get(e)}function RT(e){return No(this,e).has(e)}function DT(e,t){var r=No(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Ct.prototype.clear=kT,Ct.prototype.delete=CT,Ct.prototype.get=PT,Ct.prototype.has=RT,Ct.prototype.set=DT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}function NT(e){return this.__data__.set(e,y),this}function OT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=NT,fn.prototype.has=OT;function ut(e){var t=this.__data__=new kt(e);this.size=t.size}function MT(){this.__data__=new kt,this.size=0}function FT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function UT(e){return this.__data__.get(e)}function BT(e){return this.__data__.has(e)}function WT(e,t){var r=this.__data__;if(r instanceof kt){var a=r.__data__;if(!hr||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}ut.prototype.clear=MT,ut.prototype.delete=FT,ut.prototype.get=UT,ut.prototype.has=BT,ut.prototype.set=WT;function Tu(e,t){var r=H(e),a=!r&&hn(e),c=!r&&!a&&nn(e),p=!r&&!a&&!c&&zn(e),T=r||a||c||p,h=T?Ts(e.length,Xm):[],S=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Nt(_,S)))&&h.push(_);return h}function hu(e){var t=e.length;return t?e[Ds(0,t-1)]:n}function GT(e,t){return Oo(Oe(e),dn(t,0,e.length))}function $T(e){return Oo(Oe(e))}function As(e,t,r){(r!==n&&!lt(e[t],r)||r===n&&!(t in e))&&Pt(e,t,r)}function vr(e,t,r){var a=e[t];(!(re.call(e,t)&&lt(a,r))||r===n&&!(t in e))&&Pt(e,t,r)}function wo(e,t){for(var r=e.length;r--;)if(lt(e[r][0],t))return r;return-1}function HT(e,t,r,a){return Qt(e,function(c,p,T){t(a,c,r(c),T)}),a}function yu(e,t){return e&&yt(t,we(t),e)}function VT(e,t){return e&&yt(t,Fe(t),e)}function Pt(e,t,r){t=="__proto__"&&To?To(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Is(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:oa(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 et(e,t,r,a,c,p){var T,h=t&N,S=t&z,_=t&F;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!le(e))return e;var b=H(e);if(b){if(T=Rh(e),!h)return Oe(e,T)}else{var L=ke(e),C=L==jr||L==Sc;if(nn(e))return $u(e,h);if(L==Et||L==Dn||C&&!c){if(T=S||C?{}:al(e),!h)return S?vh(e,VT(T,e)):Sh(e,yu(T,e))}else{if(!ie[L])return c?e:{};T=Dh(e,L,h)}}p||(p=new ut);var D=p.get(e);if(D)return D;p.set(e,T),Ml(e)?e.forEach(function(B){T.add(et(B,t,r,B,e,p))}):Nl(e)&&e.forEach(function(B,X){T.set(X,et(B,t,r,X,e,p))});var U=_?S?Vs:Hs:S?Fe:we,K=b?n:U(e);return Je(K||e,function(B,X){K&&(X=B,B=e[X]),vr(T,X,et(B,t,r,X,e,p))}),T}function qT(e){var t=we(e);return function(r){return xu(r,e,t)}}function xu(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 Su(e,t,r){if(typeof e!="function")throw new Qe(m);return Er(function(){e.apply(n,r)},t)}function wr(e,t,r,a){var c=-1,p=oo,T=!0,h=e.length,S=[],_=t.length;if(!h)return S;r&&(t=ue(t,$e(r))),a?(p=ls,T=!1):t.length>=i&&(p=mr,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=_;C--;)if(t[C]===L)continue e;S.push(b)}else p(t,L,a)||S.push(b)}return S}var Qt=Ku(ht),vu=Ku(bs,!0);function zT(e,t){var r=!0;return Qt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function Ao(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&&!Ve(T):r(T,h)))var h=T,S=p}return S}function KT(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:Ul(a);r<a;)e[r++]=t;return e}function wu(e,t){var r=[];return Qt(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=Oh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Yt(c,h):a||(c[c.length]=h)}return c}var _s=Yu(),Au=Yu(!0);function ht(e,t){return e&&_s(e,t,we)}function bs(e,t){return e&&Au(e,t,we)}function Io(e,t){return Kt(t,function(r){return Ot(e[r])})}function gn(e,t){t=en(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[xt(t[r++])];return r&&r==a?e:n}function Iu(e,t,r){var a=t(e);return H(e)?a:Yt(a,r(e))}function Pe(e){return e==null?e===n?wg:Sg:ln&&ln in oe(e)?kh(e):$h(e)}function Ls(e,t){return e>t}function YT(e,t){return e!=null&&re.call(e,t)}function ZT(e,t){return e!=null&&t in oe(e)}function XT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function Es(e,t,r){for(var a=r?ls:oo,c=e[0].length,p=e.length,T=p,h=w(p),S=1/0,_=[];T--;){var b=e[T];T&&t&&(b=ue(b,$e(t))),S=Ee(b.length,S),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&&_.length<S;){var D=b[L],U=t?t(D):D;if(D=r||D!==0?D:0,!(C?mr(C,U):a(_,U,r))){for(T=p;--T;){var K=h[T];if(!(K?mr(K,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(D)}}return _}function JT(e,t,r,a){return ht(e,function(c,p,T){t(a,r(c),p,T)}),a}function Ar(e,t,r){t=en(t,e),e=pl(e,t);var a=e==null?e:e[xt(nt(t))];return a==null?n:Ge(a,e,r)}function _u(e){return fe(e)&&Pe(e)==Dn}function QT(e){return fe(e)&&Pe(e)==gr}function jT(e){return fe(e)&&Pe(e)==ur}function Ir(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:eh(e,t,r,a,Ir,c)}function eh(e,t,r,a,c,p){var T=H(e),h=H(t),S=T?Jr:ke(e),_=h?Jr:ke(t);S=S==Dn?Et:S,_=_==Dn?Et:_;var b=S==Et,L=_==Et,C=S==_;if(C&&nn(e)){if(!nn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new ut),T||zn(e)?ol(e,t,r,a,c,p):Lh(e,t,S,r,a,c,p);if(!(r&pe)){var D=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(D||U){var K=D?e.value():e,B=U?t.value():t;return p||(p=new ut),c(K,B,r,a,p)}}return C?(p||(p=new ut),Eh(e,t,r,a,c,p)):!1}function th(e){return fe(e)&&ke(e)==st}function ks(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 S=h[0],_=e[S],b=h[1];if(T&&h[2]){if(_===n&&!(S in e))return!1}else{var L=new ut;if(a)var C=a(_,b,S,e,t,L);if(!(C===n?Ir(b,_,pe|ye,a,L):C))return!1}}return!0}function bu(e){if(!le(e)||Fh(e))return!1;var t=Ot(e)?tT:qg;return t.test(Tn(e))}function nh(e){return fe(e)&&Pe(e)==pr}function rh(e){return fe(e)&&ke(e)==at}function oh(e){return fe(e)&&Go(e.length)&&!!ce[Pe(e)]}function Lu(e){return typeof e=="function"?e:e==null?Ue:typeof e=="object"?H(e)?Cu(e[0],e[1]):ku(e):Zl(e)}function Cs(e){if(!Lr(e))return aT(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function ih(e){if(!le(e))return Gh(e);var t=Lr(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function Ps(e,t){return e<t}function Eu(e,t){var r=-1,a=Me(e)?w(e.length):[];return Qt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function ku(e){var t=zs(e);return t.length==1&&t[0][2]?ul(t[0][0],t[0][1]):function(r){return r===e||ks(r,e,t)}}function Cu(e,t){return Ys(e)&&cl(t)?ul(xt(e),t):function(r){var a=oa(r,e);return a===n&&a===t?ia(r,e):Ir(t,a,pe|ye)}}function _o(e,t,r,a,c){e!==t&&_s(t,function(p,T){if(c||(c=new ut),le(p))sh(e,t,T,r,_o,a,c);else{var h=a?a(Xs(e,T),p,T+"",e,t,c):n;h===n&&(h=p),As(e,T,h)}},Fe)}function sh(e,t,r,a,c,p,T){var h=Xs(e,r),S=Xs(t,r),_=T.get(S);if(_){As(e,r,_);return}var b=p?p(h,S,r+"",e,t,T):n,L=b===n;if(L){var C=H(S),D=!C&&nn(S),U=!C&&!D&&zn(S);b=S,C||D||U?H(h)?b=h:me(h)?b=Oe(h):D?(L=!1,b=$u(S,!0)):U?(L=!1,b=Hu(S,!0)):b=[]:kr(S)||hn(S)?(b=h,hn(h)?b=Bl(h):(!le(h)||Ot(h))&&(b=al(S))):L=!1}L&&(T.set(S,b),c(b,S,a,p,T),T.delete(S)),As(e,r,b)}function Pu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Nt(t,r)?e[t]:n}function Ru(e,t,r){t.length?t=ue(t,function(p){return H(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Ue];var a=-1;t=ue(t,$e(M()));var c=Eu(e,function(p,T,h){var S=ue(t,function(_){return _(p)});return{criteria:S,index:++a,value:p}});return Dm(c,function(p,T){return xh(p,T,r)})}function ah(e,t){return Du(e,t,function(r,a){return ia(e,a)})}function Du(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,en(T,e),h)}return p}function ch(e){return function(t){return gn(t,e)}}function Rs(e,t,r,a){var c=a?Rm:Mn,p=-1,T=t.length,h=e;for(e===t&&(t=Oe(t)),r&&(h=ue(e,$e(r)));++p<T;)for(var S=0,_=t[p],b=r?r(_):_;(S=c(h,b,S,a))>-1;)h!==e&&mo.call(h,S,1),mo.call(e,S,1);return e}function Nu(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;Nt(c)?mo.call(e,c,1):Ms(e,c)}}return e}function Ds(e,t){return e+yo(gu()*(t-e+1))}function uh(e,t,r,a){for(var c=-1,p=Se(ho((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function Ns(e,t){var r="";if(!e||t<1||t>zt)return r;do t%2&&(r+=e),t=yo(t/2),t&&(e+=e);while(t);return r}function Z(e,t){return Js(ll(e,t,Ue),e+"")}function lh(e){return hu(Kn(e))}function ph(e,t){var r=Kn(e);return Oo(r,dn(t,0,r.length))}function _r(e,t,r,a){if(!le(e))return e;t=en(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var S=xt(t[c]),_=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(c!=T){var b=h[S];_=a?a(b,S,h):n,_===n&&(_=le(b)?b:Nt(t[c+1])?[]:{})}vr(h,S,_),h=h[S]}return e}var Ou=xo?function(e,t){return xo.set(e,t),e}:Ue,fh=To?function(e,t){return To(e,"toString",{configurable:!0,enumerable:!1,value:aa(t),writable:!0})}:Ue;function dh(e){return Oo(Kn(e))}function tt(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 gh(e,t){var r;return Qt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function bo(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=Tg){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return Os(e,t,Ue,r)}function Os(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,S=Ve(t),_=t===n;c<p;){var b=yo((c+p)/2),L=r(e[b]),C=L!==n,D=L===null,U=L===L,K=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!D):S?B=U&&C&&!D&&(a||!K):D||K?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,mg)}function Mu(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||!lt(h,S)){var S=h;p[c++]=T===0?0:T}}return p}function Fu(e){return typeof e=="number"?e:Ve(e)?Xr:+e}function He(e){if(typeof e=="string")return e;if(H(e))return ue(e,He)+"";if(Ve(e))return mu?mu.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function jt(e,t,r){var a=-1,c=oo,p=e.length,T=!0,h=[],S=h;if(r)T=!1,c=ls;else if(p>=i){var _=t?null:_h(e);if(_)return so(_);T=!1,c=mr,S=new fn}else S=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=S.length;C--;)if(S[C]===L)continue e;t&&S.push(L),h.push(b)}else c(S,L,r)||(S!==h&&S.push(L),h.push(b))}return h}function Ms(e,t){return t=en(t,e),e=pl(e,t),e==null||delete e[xt(nt(t))]}function Uu(e,t,r,a){return _r(e,t,r(gn(e,t)),a)}function Lo(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?tt(e,a?0:p,a?p+1:c):tt(e,a?p+1:0,a?c:p)}function Bu(e,t){var r=e;return r instanceof J&&(r=r.value()),ps(t,function(a,c){return c.func.apply(c.thisArg,Yt([a],c.args))},r)}function Fs(e,t,r){var a=e.length;if(a<2)return a?jt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=wr(p[c]||T,e[h],t,r));return jt(be(p,1),t,r)}function Wu(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 Us(e){return me(e)?e:[]}function Bs(e){return typeof e=="function"?e:Ue}function en(e,t){return H(e)?e:Ys(e,t)?[e]:ml(ne(e))}var mh=Z;function tn(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:tt(e,t,r)}var Gu=nT||function(e){return ve.clearTimeout(e)};function $u(e,t){if(t)return e.slice();var r=e.length,a=uu?uu(r):new e.constructor(r);return e.copy(a),a}function Ws(e){var t=new e.constructor(e.byteLength);return new fo(t).set(new fo(e)),t}function Th(e,t){var r=t?Ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function hh(e){var t=new e.constructor(e.source,_c.exec(e));return t.lastIndex=e.lastIndex,t}function yh(e){return Sr?oe(Sr.call(e)):{}}function Hu(e,t){var r=t?Ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Vu(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,S=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&S&&!h&&!_||a&&T&&S||!r&&S||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!S)return-1}return 0}function xh(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var S=Vu(c[a],p[a]);if(S){if(a>=h)return S;var _=r[a];return S*(_=="desc"?-1:1)}}return e.index-t.index}function qu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,S=t.length,_=Se(p-T,0),b=w(S+_),L=!a;++h<S;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function zu(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,S=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var D=c;++S<_;)L[D+S]=t[S];for(;++T<h;)(C||c<p)&&(L[D+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 yt(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],S=a?a(r[h],e[h],h,r,e):n;S===n&&(S=e[h]),c?Pt(r,h,S):vr(r,h,S)}return r}function Sh(e,t){return yt(e,Ks(e),t)}function vh(e,t){return yt(e,il(e),t)}function Eo(e,t){return function(r,a){var c=H(r)?bm:HT,p=t?t():{};return c(r,e,M(a,2),p)}}function Hn(e){return Z(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 Ku(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 Yu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var S=T[e?h:++c];if(r(p[S],S,p)===!1)break}return t}}function wh(e,t,r){var a=t&ge,c=br(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Zu(e){return function(t){t=ne(t);var r=Fn(t)?ct(t):n,a=r?r[0]:t.charAt(0),c=r?tn(r,1).join(""):t.slice(1);return a[e]()+c}}function Vn(e){return function(t){return ps(Kl(zl(t).replace(fm,"")),e,"")}}function br(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=$n(e.prototype),a=e.apply(r,t);return le(a)?a:r}}function Ah(e,t,r){var a=br(e);function c(){for(var p=arguments.length,T=w(p),h=p,S=qn(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==S&&T[p-1]!==S?[]:Zt(T,S);if(p-=_.length,p<r)return el(e,t,ko,c.placeholder,n,T,_,n,n,r-p);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Xu(e){return function(t,r,a){var c=oe(t);if(!Me(t)){var p=M(r,3);t=we(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 Ju(e){return Dt(function(t){var r=t.length,a=r,c=je.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new Qe(m);if(c&&!T&&Do(p)=="wrapper")var T=new je([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=Do(p),S=h=="wrapper"?qs(p):n;S&&Zs(S[0])&&S[1]==(Lt|gt|mt|ar)&&!S[4].length&&S[9]==1?T=T[Do(S[0])].apply(T,S[3]):T=p.length==1&&Zs(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&H(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,_):b;++L<r;)C=t[L].call(this,C);return C}})}function ko(e,t,r,a,c,p,T,h,S,_){var b=t&Lt,L=t&ge,C=t&_e,D=t&(gt|Pn),U=t&qi,K=C?n:br(e);function B(){for(var X=arguments.length,Q=w(X),qe=X;qe--;)Q[qe]=arguments[qe];if(D)var De=qn(B),ze=Om(Q,De);if(a&&(Q=qu(Q,a,c,D)),p&&(Q=zu(Q,p,T,D)),X-=ze,D&&X<_){var Te=Zt(Q,De);return el(e,t,ko,B.placeholder,r,Q,Te,h,S,_-X)}var pt=L?r:this,Ft=C?pt[e]:e;return X=Q.length,h?Q=Hh(Q,h):U&&X>1&&Q.reverse(),b&&S<X&&(Q.length=S),this&&this!==ve&&this instanceof B&&(Ft=K||br(Ft)),Ft.apply(pt,Q)}return B}function Qu(e,t){return function(r,a){return JT(r,e,t(a),{})}}function Co(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=He(r),a=He(a)):(r=Fu(r),a=Fu(a)),c=e(r,a)}return c}}function Gs(e){return Dt(function(t){return t=ue(t,$e(M())),Z(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function Po(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?Ns(t,e):t;var a=Ns(t,ho(e/Un(t)));return Fn(t)?tn(ct(a),0,e).join(""):a.slice(0,e)}function Ih(e,t,r,a){var c=t&ge,p=br(e);function T(){for(var h=-1,S=arguments.length,_=-1,b=a.length,L=w(b+S),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;S--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function ju(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Mt(t),r===n?(r=t,t=0):r=Mt(r),a=a===n?t<r?1:-1:Mt(a),uh(t,r,a,e)}}function Ro(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=rt(t),r=rt(r)),e(t,r)}}function el(e,t,r,a,c,p,T,h,S,_){var b=t&gt,L=b?T:n,C=b?n:T,D=b?p:n,U=b?n:p;t|=b?mt:Rn,t&=~(b?Rn:mt),t&yc||(t&=~(ge|_e));var K=[e,t,c,D,L,U,C,h,S,_],B=r.apply(n,K);return Zs(e)&&fl(B,K),B.placeholder=a,dl(B,e,t)}function $s(e){var t=xe[e];return function(r,a){if(r=rt(r),a=a==null?0:Ee(V(a),292),a&&du(r)){var c=(ne(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(ne(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var _h=Wn&&1/so(new Wn([,-0]))[1]==cn?function(e){return new Wn(e)}:la;function tl(e){return function(t){var r=ke(t);return r==st?ys(t):r==at?$m(t):Nm(t,e(t))}}function Rt(e,t,r,a,c,p,T,h){var S=t&_e;if(!S&&typeof e!="function")throw new Qe(m);var _=a?a.length:0;if(_||(t&=~(mt|Rn),a=c=n),T=T===n?T:Se(V(T),0),h=h===n?h:V(h),_-=c?c.length:0,t&Rn){var b=a,L=c;a=c=n}var C=S?n:qs(e),D=[e,t,r,a,c,b,L,p,T,h];if(C&&Wh(D,C),e=D[0],t=D[1],r=D[2],a=D[3],c=D[4],h=D[9]=D[9]===n?S?0:e.length:Se(D[9]-_,0),!h&&t&(gt|Pn)&&(t&=~(gt|Pn)),!t||t==ge)var U=wh(e,t,r);else t==gt||t==Pn?U=Ah(e,t,h):(t==mt||t==(ge|mt))&&!c.length?U=Ih(e,t,r,a):U=ko.apply(n,D);var K=C?Ou:fl;return dl(K(U,D),e,t)}function nl(e,t,r,a){return e===n||lt(e,Bn[r])&&!re.call(a,r)?t:e}function rl(e,t,r,a,c,p){return le(e)&&le(t)&&(p.set(t,e),_o(e,t,n,rl,p),p.delete(t)),e}function bh(e){return kr(e)?n:e}function ol(e,t,r,a,c,p){var T=r&pe,h=e.length,S=t.length;if(h!=S&&!(T&&S>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,D=r&ye?new fn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],K=t[L];if(a)var B=T?a(K,U,L,t,e,p):a(U,K,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(D){if(!fs(t,function(X,Q){if(!mr(D,Q)&&(U===X||c(U,X,r,a,p)))return D.push(Q)})){C=!1;break}}else if(!(U===K||c(U,K,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function Lh(e,t,r,a,c,p,T){switch(r){case Nn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gr:return!(e.byteLength!=t.byteLength||!p(new fo(e),new fo(t)));case cr:case ur:case lr:return lt(+e,+t);case Qr:return e.name==t.name&&e.message==t.message;case pr:case fr:return e==t+"";case st:var h=ys;case at:var S=a&pe;if(h||(h=so),e.size!=t.size&&!S)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=ol(h(e),h(t),a,c,p,T);return T.delete(e),b;case eo:if(Sr)return Sr.call(e)==Sr.call(t)}return!1}function Eh(e,t,r,a,c,p){var T=r&pe,h=Hs(e),S=h.length,_=Hs(t),b=_.length;if(S!=b&&!T)return!1;for(var L=S;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var D=p.get(e),U=p.get(t);if(D&&U)return D==t&&U==e;var K=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<S;){C=h[L];var X=e[C],Q=t[C];if(a)var qe=T?a(Q,X,C,t,e,p):a(X,Q,C,e,t,p);if(!(qe===n?X===Q||c(X,Q,r,a,p):qe)){K=!1;break}B||(B=C=="constructor")}if(K&&!B){var De=e.constructor,ze=t.constructor;De!=ze&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof ze=="function"&&ze instanceof ze)&&(K=!1)}return p.delete(e),p.delete(t),K}function Dt(e){return Js(ll(e,n,xl),e+"")}function Hs(e){return Iu(e,we,Ks)}function Vs(e){return Iu(e,Fe,il)}var qs=xo?function(e){return xo.get(e)}:la;function Do(e){for(var t=e.name+"",r=Gn[t],a=re.call(Gn,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function qn(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function M(){var e=l.iteratee||ca;return e=e===ca?Lu:e,arguments.length?e(arguments[0],arguments[1]):e}function No(e,t){var r=e.__data__;return Mh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function zs(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,cl(c)]}return t}function mn(e,t){var r=Bm(e,t);return bu(r)?r:n}function kh(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=lo.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Ks=Ss?function(e){return e==null?[]:(e=oe(e),Kt(Ss(e),function(t){return pu.call(e,t)}))}:pa,il=Ss?function(e){for(var t=[];e;)Yt(t,Ks(e)),e=go(e);return t}:pa,ke=Pe;(vs&&ke(new vs(new ArrayBuffer(1)))!=Nn||hr&&ke(new hr)!=st||ws&&ke(ws.resolve())!=vc||Wn&&ke(new Wn)!=at||yr&&ke(new yr)!=dr)&&(ke=function(e){var t=Pe(e),r=t==Et?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case pT:return Nn;case fT:return st;case dT:return vc;case gT:return at;case mT:return dr}return t});function Ch(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=Se(e,t-T);break}}return{start:e,end:t}}function Ph(e){var t=e.match(Fg);return t?t[1].split(Ug):[]}function sl(e,t,r){t=en(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=xt(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&&Go(c)&&Nt(T,c)&&(H(e)||hn(e)))}function Rh(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 al(e){return typeof e.constructor=="function"&&!Lr(e)?$n(go(e)):{}}function Dh(e,t,r){var a=e.constructor;switch(t){case gr:return Ws(e);case cr:case ur:return new a(+e);case Nn:return Th(e,r);case zi:case Ki:case Yi:case Zi:case Xi:case Ji:case Qi:case ji:case es:return Hu(e,r);case st:return new a;case lr:case fr:return new a(e);case pr:return hh(e);case at:return new a;case eo:return yh(e)}}function Nh(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 Dh(e){return H(e)||hn(e)||!!(fu&&e&&e[fu])}function Nt(e,t){var r=typeof e;return t=t==null?zt:t,!!t&&(r=="number"||r!="symbol"&&qg.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!le(r))return!1;var a=typeof t;return(a=="number"?Me(r)&&Nt(t,r.length):a=="string"&&t in r)?lt(r[t],e):!1}function Ys(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:Cg.test(e)||!kg.test(e)||t!=null&&e in oe(t)}function Nh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Zs(e){var t=Do(e),r=l[t];if(typeof r!="function"||!(t in J.prototype))return!1;if(e===r)return!0;var a=qs(r);return!!a&&e===a[0]}function Oh(e){return!!cu&&cu in e}var Mh=co?Ot:fa;function Lr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bn;return e===r}function cl(e){return e===e&&!le(e)}function ul(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function Fh(e){var t=Bo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function Uh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|_e|Lt),T=a==Lt&&r==gt||a==Lt&&r==ar&&e[7].length<=t[8]||a==(Lt|ar)&&t[7].length<=t[8]&&r==gt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:yc);var h=t[3];if(h){var S=e[3];e[3]=S?qu(S,h,t[4]):h,e[4]=S?Zt(e[3],E):t[4]}return h=t[5],h&&(S=e[5],e[5]=S?zu(S,h,t[6]):h,e[6]=S?Zt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&Lt&&(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 Bh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function Wh(e){return lo.call(e)}function ll(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=Se(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),Ge(e,this,h)}}function pl(e,t){return t.length<2?e:gn(e,tt(t,0,-1))}function Gh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Oe(e);a--;){var p=t[a];e[a]=Nt(p,r)?c[p]:n}return e}function Xs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var fl=gl(Ou),Er=nT||function(e,t){return ve.setTimeout(e,t)},Js=gl(lh);function dl(e,t,r){var a=t+"";return Js(e,Rh(a,$h(kh(a),r)))}function gl(e){var t=0,r=0;return function(){var a=sT(),c=ug-(a-r);if(r=a,c>0){if(++t>=cg)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Oo(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=Ds(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var ml=Fh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Pg,function(r,a,c,p){t.push(c?p.replace(Bg,"$1"):a||r)}),t});function xt(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Tn(e){if(e!=null){try{return uo.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function $h(e,t){return Je(mg,function(r){var a="_."+r[0];t&r[1]&&!oo(e,a)&&e.push(a)}),e.sort()}function Tl(e){if(e instanceof J)return e.clone();var t=new je(e.__wrapped__,e.__chain__);return t.__actions__=Oe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Hh(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=Se(V(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(ho(a/t));c<a;)T[p++]=tt(e,c,c+=t);return T}function Vh(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 qh(){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 Yt(H(r)?Oe(r):[r],be(t,1))}var zh=Z(function(e,t){return me(e)?wr(e,be(t,1,me,!0)):[]}),Kh=Z(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?wr(e,be(t,1,me,!0),M(r,2)):[]}),Yh=Z(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?wr(e,be(t,1,me,!0),n,r):[]});function Zh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),tt(e,t<0?0:t,a)):[]}function Xh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,tt(e,0,t<0?0:t)):[]}function Jh(e,t){return e&&e.length?Lo(e,M(t,3),!0,!0):[]}function Qh(e,t){return e&&e.length?Lo(e,M(t,3),!0):[]}function jh(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),qT(e,t,r,a)):[]}function hl(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=Se(a+c,0)),io(e,M(t,3),c)}function yl(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?Se(a+c,0):Ee(c,a-1)),io(e,M(t,3),c,!0)}function xl(e){var t=e==null?0:e.length;return t?be(e,1):[]}function ey(e){var t=e==null?0:e.length;return t?be(e,cn):[]}function ty(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),be(e,t)):[]}function ny(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 Sl(e){return e&&e.length?e[0]:n}function ry(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=Se(a+c,0)),Mn(e,t,c)}function oy(e){var t=e==null?0:e.length;return t?tt(e,0,-1):[]}var iy=Z(function(e){var t=ue(e,Us);return t.length&&t[0]===e[0]?Es(t):[]}),sy=Z(function(e){var t=nt(e),r=ue(e,Us);return t===nt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Es(r,M(t,2)):[]}),ay=Z(function(e){var t=nt(e),r=ue(e,Us);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Es(r,n,t):[]});function cy(e,t){return e==null?"":oT.call(e,t)}function nt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function uy(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?Se(a+c,0):Ee(c,a-1)),t===t?$m(e,t,c):io(e,eu,c,!0)}function ly(e,t){return e&&e.length?Pu(e,V(t)):n}var py=Z(vl);function vl(e,t){return e&&e.length&&t&&t.length?Rs(e,t):e}function fy(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,M(r,2)):e}function dy(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,n,r):e}var gy=Dt(function(e,t){var r=e==null?0:e.length,a=Is(e,t);return Nu(e,ue(t,function(c){return Nt(c,r)?+c:c}).sort(Vu)),a});function my(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=M(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return Nu(e,c),r}function Qs(e){return e==null?e:cT.call(e)}function Ty(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)),tt(e,t,r)):[]}function hy(e,t){return bo(e,t)}function yy(e,t,r){return Os(e,t,M(r,2))}function xy(e,t){var r=e==null?0:e.length;if(r){var a=bo(e,t);if(a<r&&lt(e[a],t))return a}return-1}function Sy(e,t){return bo(e,t,!0)}function vy(e,t,r){return Os(e,t,M(r,2),!0)}function wy(e,t){var r=e==null?0:e.length;if(r){var a=bo(e,t,!0)-1;if(lt(e[a],t))return a}return-1}function Ay(e){return e&&e.length?Mu(e):[]}function Iy(e,t){return e&&e.length?Mu(e,M(t,2)):[]}function _y(e){var t=e==null?0:e.length;return t?tt(e,1,t):[]}function by(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),tt(e,0,t<0?0:t)):[]}function Ly(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,tt(e,t<0?0:t,a)):[]}function Ey(e,t){return e&&e.length?Lo(e,M(t,3),!1,!0):[]}function ky(e,t){return e&&e.length?Lo(e,M(t,3)):[]}var Cy=Z(function(e){return jt(be(e,1,me,!0))}),Py=Z(function(e){var t=nt(e);return me(t)&&(t=n),jt(be(e,1,me,!0),M(t,2))}),Ry=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,jt(be(e,1,me,!0),n,t)});function Dy(e){return e&&e.length?jt(e):[]}function Ny(e,t){return e&&e.length?jt(e,M(t,2)):[]}function Oy(e,t){return t=typeof t=="function"?t:n,e&&e.length?jt(e,n,t):[]}function js(e){if(!(e&&e.length))return[];var t=0;return e=Kt(e,function(r){if(me(r))return t=Se(r.length,t),!0}),Ts(t,function(r){return ue(e,ds(r))})}function wl(e,t){if(!(e&&e.length))return[];var r=js(e);return t==null?r:ue(r,function(a){return Ge(t,n,a)})}var My=Z(function(e,t){return me(e)?wr(e,t):[]}),Fy=Z(function(e){return Fs(Kt(e,me))}),Uy=Z(function(e){var t=nt(e);return me(t)&&(t=n),Fs(Kt(e,me),M(t,2))}),By=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,Fs(Kt(e,me),n,t)}),Wy=Z(js);function Gy(e,t){return Wu(e||[],t||[],vr)}function $y(e,t){return Wu(e||[],t||[],_r)}var Hy=Z(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,wl(e,r)});function Al(e){var t=l(e);return t.__chain__=!0,t}function Vy(e,t){return t(e),e}function Mo(e,t){return t(e)}var qy=Dt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return Is(p,e)};return t>1||this.__actions__.length||!(a instanceof J)||!Nt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Mo,args:[c],thisArg:n}),new je(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function zy(){return Al(this)}function Ky(){return new je(this.value(),this.__chain__)}function Yy(){this.__values__===n&&(this.__values__=Fl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Zy(){return this}function Xy(e){for(var t,r=this;r instanceof vo;){var a=Tl(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 Jy(){var e=this.__wrapped__;if(e instanceof J){var t=e;return this.__actions__.length&&(t=new J(this)),t=t.reverse(),t.__actions__.push({func:Mo,args:[Qs],thisArg:n}),new je(t,this.__chain__)}return this.thru(Qs)}function Qy(){return Bu(this.__wrapped__,this.__actions__)}var jy=Eo(function(e,t,r){re.call(e,r)?++e[r]:Pt(e,r,1)});function ex(e,t,r){var a=H(e)?Qc:VT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function tx(e,t){var r=H(e)?Kt:wu;return r(e,M(t,3))}var nx=Xu(hl),rx=Xu(yl);function ox(e,t){return be(Fo(e,t),1)}function ix(e,t){return be(Fo(e,t),cn)}function sx(e,t,r){return r=r===n?1:V(r),be(Fo(e,t),r)}function Il(e,t){var r=H(e)?Je:Qt;return r(e,M(t,3))}function _l(e,t){var r=H(e)?_m:vu;return r(e,M(t,3))}var ax=Eo(function(e,t,r){re.call(e,r)?e[r].push(t):Pt(e,r,[t])});function cx(e,t,r,a){e=Me(e)?e:Kn(e),r=r&&!a?V(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),$o(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Mn(e,t,r)>-1}var ux=Z(function(e,t,r){var a=-1,c=typeof t=="function",p=Me(e)?w(e.length):[];return Qt(e,function(T){p[++a]=c?Ge(t,T,r):Ar(T,t,r)}),p}),lx=Eo(function(e,t,r){Pt(e,r,t)});function Fo(e,t){var r=H(e)?ue:Eu;return r(e,M(t,3))}function px(e,t,r,a){return e==null?[]:(H(t)||(t=t==null?[]:[t]),r=a?n:r,H(r)||(r=r==null?[]:[r]),Ru(e,t,r))}var fx=Eo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function dx(e,t,r){var a=H(e)?ps:nu,c=arguments.length<3;return a(e,M(t,4),r,c,Qt)}function gx(e,t,r){var a=H(e)?bm:nu,c=arguments.length<3;return a(e,M(t,4),r,c,vu)}function mx(e,t){var r=H(e)?Kt:wu;return r(e,Wo(M(t,3)))}function Tx(e){var t=H(e)?hu:ch;return t(e)}function hx(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=H(e)?BT:uh;return a(e,t)}function yx(e){var t=H(e)?WT:ph;return t(e)}function xx(e){if(e==null)return 0;if(Me(e))return $o(e)?Un(e):e.length;var t=ke(e);return t==st||t==at?e.size:Cs(e).length}function Sx(e,t,r){var a=H(e)?fs:fh;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var vx=Z(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]]),Ru(e,be(t,1),[])}),Uo=tT||function(){return ve.Date.now()};function wx(e,t){if(typeof t!="function")throw new Qe(m);return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function bl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Rt(e,Lt,n,n,n,n,t)}function Ll(e,t){var r;if(typeof t!="function")throw new Qe(m);return e=V(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ea=Z(function(e,t,r){var a=ge;if(r.length){var c=Zt(r,qn(ea));a|=mt}return Rt(e,a,t,r,c)}),El=Z(function(e,t,r){var a=ge|_e;if(r.length){var c=Zt(r,qn(El));a|=mt}return Rt(t,a,e,r,c)});function kl(e,t,r){t=r?n:t;var a=Rt(e,gt,n,n,n,n,n,t);return a.placeholder=kl.placeholder,a}function Cl(e,t,r){t=r?n:t;var a=Rt(e,Pn,n,n,n,n,n,t);return a.placeholder=Cl.placeholder,a}function Pl(e,t,r){var a,c,p,T,h,S,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new Qe(m);t=rt(t)||0,le(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(rt(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function D(Te){var pt=a,Ft=c;return a=c=n,_=Te,T=e.apply(Ft,pt),T}function U(Te){return _=Te,h=Er(X,t),b?D(Te):T}function K(Te){var pt=Te-S,Ft=Te-_,Xl=t-pt;return L?Ee(Xl,p-Ft):Xl}function B(Te){var pt=Te-S,Ft=Te-_;return S===n||pt>=t||pt<0||L&&Ft>=p}function X(){var Te=Uo();if(B(Te))return Q(Te);h=Er(X,K(Te))}function Q(Te){return h=n,C&&a?D(Te):(a=c=n,T)}function qe(){h!==n&&Gu(h),_=0,a=S=c=h=n}function De(){return h===n?T:Q(Uo())}function ze(){var Te=Uo(),pt=B(Te);if(a=arguments,c=this,S=Te,pt){if(h===n)return U(S);if(L)return Gu(h),h=Er(X,t),D(S)}return h===n&&(h=Er(X,t)),T}return ze.cancel=qe,ze.flush=De,ze}var Ax=Z(function(e,t){return Su(e,1,t)}),Ix=Z(function(e,t,r){return Su(e,rt(t)||0,r)});function _x(e){return Rt(e,qi)}function Bo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Qe(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(Bo.Cache||Ct),r}Bo.Cache=Ct;function Wo(e){if(typeof e!="function")throw new Qe(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 bx(e){return Ll(2,e)}var Lx=dh(function(e,t){t=t.length==1&&H(t[0])?ue(t[0],$e(M())):ue(be(t,1),$e(M()));var r=t.length;return Z(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),ta=Z(function(e,t){var r=Zt(t,qn(ta));return Rt(e,mt,n,t,r)}),Rl=Z(function(e,t){var r=Zt(t,qn(Rl));return Rt(e,Rn,n,t,r)}),Ex=Dt(function(e,t){return Rt(e,ar,n,n,n,t)});function kx(e,t){if(typeof e!="function")throw new Qe(m);return t=t===n?t:V(t),Z(e,t)}function Cx(e,t){if(typeof e!="function")throw new Qe(m);return t=t==null?0:Se(V(t),0),Z(function(r){var a=r[t],c=tn(r,0,t);return a&&Yt(c,a),Ge(e,this,c)})}function Px(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new Qe(m);return le(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Pl(e,t,{leading:a,maxWait:t,trailing:c})}function Rx(e){return bl(e,1)}function Dx(e,t){return ta(Bs(t),e)}function Nx(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function Ox(e){return et(e,F)}function Mx(e,t){return t=typeof t=="function"?t:n,et(e,F,t)}function Fx(e){return et(e,N|F)}function Ux(e,t){return t=typeof t=="function"?t:n,et(e,N|F,t)}function Bx(e,t){return t==null||xu(e,t,we(t))}function lt(e,t){return e===t||e!==e&&t!==t}var Wx=Ro(Ls),Gx=Ro(function(e,t){return e>=t}),hn=_u(function(){return arguments}())?_u:function(e){return fe(e)&&re.call(e,"callee")&&!pu.call(e,"callee")},H=w.isArray,$x=zc?$e(zc):XT;function Me(e){return e!=null&&Go(e.length)&&!Ot(e)}function me(e){return fe(e)&&Me(e)}function Hx(e){return e===!0||e===!1||fe(e)&&Pe(e)==cr}var nn=rT||fa,Vx=Kc?$e(Kc):JT;function qx(e){return fe(e)&&e.nodeType===1&&!kr(e)}function zx(e){if(e==null)return!0;if(Me(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||zn(e)||hn(e)))return!e.length;var t=ke(e);if(t==st||t==at)return!e.size;if(Lr(e))return!Cs(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Kx(e,t){return Ir(e,t)}function Yx(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?Ir(e,t,n,r):!!a}function na(e){if(!fe(e))return!1;var t=Pe(e);return t==Qr||t==hg||typeof e.message=="string"&&typeof e.name=="string"&&!kr(e)}function Zx(e){return typeof e=="number"&&du(e)}function Ot(e){if(!le(e))return!1;var t=Pe(e);return t==jr||t==Sc||t==Tg||t==xg}function Dl(e){return typeof e=="number"&&e==V(e)}function Go(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zt}function le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var Nl=Yc?$e(Yc):jT;function Xx(e,t){return e===t||ks(e,t,zs(t))}function Jx(e,t,r){return r=typeof r=="function"?r:n,ks(e,t,zs(t),r)}function Qx(e){return Ol(e)&&e!=+e}function jx(e){if(Mh(e))throw new $(u);return bu(e)}function eS(e){return e===null}function tS(e){return e==null}function Ol(e){return typeof e=="number"||fe(e)&&Pe(e)==lr}function kr(e){if(!fe(e)||Pe(e)!=Et)return!1;var t=go(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uo.call(r)==Jm}var ra=Zc?$e(Zc):eh;function nS(e){return Dl(e)&&e>=-zt&&e<=zt}var Ml=Xc?$e(Xc):th;function $o(e){return typeof e=="string"||!H(e)&&fe(e)&&Pe(e)==fr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==eo}var zn=Jc?$e(Jc):nh;function rS(e){return e===n}function oS(e){return fe(e)&&ke(e)==dr}function iS(e){return fe(e)&&Pe(e)==vg}var sS=Ro(Ps),aS=Ro(function(e,t){return e<=t});function Fl(e){if(!e)return[];if(Me(e))return $o(e)?ct(e):Oe(e);if(Tr&&e[Tr])return Bm(e[Tr]());var t=ke(e),r=t==st?ys:t==at?so:Kn;return r(e)}function Mt(e){if(!e)return e===0?e:0;if(e=rt(e),e===cn||e===-cn){var t=e<0?-1:1;return t*fg}return e===e?e:0}function V(e){var t=Mt(e),r=t%1;return t===t?r?t-r:t:0}function Ul(e){return e?dn(V(e),0,Tt):0}function rt(e){if(typeof e=="number")return e;if(Ve(e))return Xr;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ru(e);var r=$g.test(e);return r||Vg.test(e)?wm(e.slice(2),r?2:8):Gg.test(e)?Xr:+e}function Bl(e){return yt(e,Fe(e))}function cS(e){return e?dn(V(e),-zt,zt):e===0?e:0}function ne(e){return e==null?"":He(e)}var uS=Hn(function(e,t){if(Lr(t)||Me(t)){yt(t,we(t),e);return}for(var r in t)re.call(t,r)&&vr(e,r,t[r])}),Wl=Hn(function(e,t){yt(t,Fe(t),e)}),Ho=Hn(function(e,t,r,a){yt(t,Fe(t),e,a)}),lS=Hn(function(e,t,r,a){yt(t,we(t),e,a)}),pS=Dt(Is);function fS(e,t){var r=$n(e);return t==null?r:yu(r,t)}var dS=Z(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,S=T.length;++h<S;){var _=T[h],b=e[_];(b===n||lt(b,Bn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),gS=Z(function(e){return e.push(n,rl),Ge(Gl,n,e)});function mS(e,t){return jc(e,M(t,3),ht)}function TS(e,t){return jc(e,M(t,3),bs)}function hS(e,t){return e==null?e:_s(e,M(t,3),Fe)}function yS(e,t){return e==null?e:Au(e,M(t,3),Fe)}function xS(e,t){return e&&ht(e,M(t,3))}function SS(e,t){return e&&bs(e,M(t,3))}function vS(e){return e==null?[]:Io(e,we(e))}function wS(e){return e==null?[]:Io(e,Fe(e))}function oa(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function AS(e,t){return e!=null&&sl(e,t,zT)}function ia(e,t){return e!=null&&sl(e,t,KT)}var IS=Qu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=lo.call(t)),e[t]=r},aa(Ue)),_S=Qu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=lo.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},M),bS=Z(Ar);function we(e){return Me(e)?Tu(e):Cs(e)}function Fe(e){return Me(e)?Tu(e,!0):rh(e)}function LS(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,t(a,c,p),a)}),r}function ES(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,c,t(a,c,p))}),r}var kS=Hn(function(e,t,r){_o(e,t,r)}),Gl=Hn(function(e,t,r,a){_o(e,t,r,a)}),CS=Dt(function(e,t){var r={};if(e==null)return r;var a=!1;t=ue(t,function(p){return p=en(p,e),a||(a=p.length>1),p}),yt(e,Vs(e),r),a&&(r=et(r,N|z|F,Ih));for(var c=t.length;c--;)Ms(r,t[c]);return r});function PS(e,t){return $l(e,Wo(M(t)))}var RS=Dt(function(e,t){return e==null?{}:ih(e,t)});function $l(e,t){if(e==null)return{};var r=ue(Vs(e),function(a){return[a]});return t=M(t),Du(e,r,function(a,c){return t(a,c[0])})}function DS(e,t,r){t=en(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[xt(t[a])];p===n&&(a=c,p=r),e=Ot(p)?p.call(e):p}return e}function NS(e,t,r){return e==null?e:_r(e,t,r)}function OS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:_r(e,t,r,a)}var Hl=tl(we),Vl=tl(Fe);function MS(e,t,r){var a=H(e),c=a||nn(e)||zn(e);if(t=M(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:le(e)?r=Ot(p)?$n(go(e)):{}:r={}}return(c?Je:ht)(e,function(T,h,S){return t(r,T,h,S)}),r}function FS(e,t){return e==null?!0:Ms(e,t)}function US(e,t,r){return e==null?e:Uu(e,t,Bs(r))}function BS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Uu(e,t,Bs(r),a)}function Kn(e){return e==null?[]:hs(e,we(e))}function WS(e){return e==null?[]:hs(e,Fe(e))}function GS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=rt(r),r=r===r?r:0),t!==n&&(t=rt(t),t=t===t?t:0),dn(rt(e),t,r)}function $S(e,t,r){return t=Mt(t),r===n?(r=t,t=0):r=Mt(r),e=rt(e),YT(e,t,r)}function HS(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=Mt(e),t===n?(t=e,e=0):t=Mt(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=gu();return Ee(e+c*(t-e+vm("1e-"+((c+"").length-1))),t)}return Ds(e,t)}var VS=Vn(function(e,t,r){return t=t.toLowerCase(),e+(r?ql(t):t)});function ql(e){return sa(ne(e).toLowerCase())}function zl(e){return e=ne(e),e&&e.replace(zg,Nm).replace(pm,"")}function qS(e,t,r){e=ne(e),t=He(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 zS(e){return e=ne(e),e&&bg.test(e)?e.replace(Ac,Om):e}function KS(e){return e=ne(e),e&&Rg.test(e)?e.replace(ts,"\\$&"):e}var YS=Vn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ZS=Vn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),XS=Zu("toLowerCase");function JS(e,t,r){e=ne(e),t=V(t);var a=t?Un(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Po(yo(c),r)+e+Po(ho(c),r)}function QS(e,t,r){e=ne(e),t=V(t);var a=t?Un(e):0;return t&&a<t?e+Po(t-a,r):e}function jS(e,t,r){e=ne(e),t=V(t);var a=t?Un(e):0;return t&&a<t?Po(t-a,r)+e:e}function ev(e,t,r){return r||t==null?t=0:t&&(t=+t),aT(ne(e).replace(ns,""),t||0)}function tv(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),Ns(ne(e),t)}function nv(){var e=arguments,t=ne(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var rv=Vn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function ov(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?Tt:r>>>0,r?(e=ne(e),e&&(typeof t=="string"||t!=null&&!ra(t))&&(t=He(t),!t&&Fn(e))?tn(ct(e),0,r):e.split(t,r)):[]}var iv=Vn(function(e,t,r){return e+(r?" ":"")+sa(t)});function sv(e,t,r){return e=ne(e),r=r==null?0:dn(V(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function av(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=ne(e),t=Ho({},t,a,nl);var c=Ho({},t.imports,a.imports,nl),p=we(c),T=hs(c,p),h,S,_=0,b=t.interpolate||to,L="__p += '",C=xs((t.escape||to).source+"|"+b.source+"|"+(b===Ic?Wg:to).source+"|"+(t.evaluate||to).source+"|$","g"),D="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tm+"]")+`
4
- `;e.replace(C,function(B,X,Q,qe,De,ze){return Q||(Q=qe),L+=e.slice(_,ze).replace(Kg,Mm),X&&(h=!0,L+=`' +
3
+ `)}function Oh(e){return H(e)||hn(e)||!!(fu&&e&&e[fu])}function Nt(e,t){var r=typeof e;return t=t==null?zt:t,!!t&&(r=="number"||r!="symbol"&&Kg.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!le(r))return!1;var a=typeof t;return(a=="number"?Me(r)&&Nt(t,r.length):a=="string"&&t in r)?lt(r[t],e):!1}function Ys(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:Rg.test(e)||!Pg.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 Zs(e){var t=Do(e),r=l[t];if(typeof r!="function"||!(t in J.prototype))return!1;if(e===r)return!0;var a=qs(r);return!!a&&e===a[0]}function Fh(e){return!!cu&&cu in e}var Uh=co?Ot:fa;function Lr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bn;return e===r}function cl(e){return e===e&&!le(e)}function ul(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function Bh(e){var t=Bo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function Wh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|_e|Lt),T=a==Lt&&r==gt||a==Lt&&r==ar&&e[7].length<=t[8]||a==(Lt|ar)&&t[7].length<=t[8]&&r==gt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:yc);var h=t[3];if(h){var S=e[3];e[3]=S?qu(S,h,t[4]):h,e[4]=S?Zt(e[3],E):t[4]}return h=t[5],h&&(S=e[5],e[5]=S?zu(S,h,t[6]):h,e[6]=S?Zt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&Lt&&(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 Gh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function $h(e){return lo.call(e)}function ll(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=Se(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),Ge(e,this,h)}}function pl(e,t){return t.length<2?e:gn(e,tt(t,0,-1))}function Hh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Oe(e);a--;){var p=t[a];e[a]=Nt(p,r)?c[p]:n}return e}function Xs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var fl=gl(Ou),Er=oT||function(e,t){return ve.setTimeout(e,t)},Js=gl(fh);function dl(e,t,r){var a=t+"";return Js(e,Nh(a,Vh(Ph(a),r)))}function gl(e){var t=0,r=0;return function(){var a=cT(),c=pg-(a-r);if(r=a,c>0){if(++t>=lg)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Oo(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=Ds(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var ml=Bh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Dg,function(r,a,c,p){t.push(c?p.replace(Gg,"$1"):a||r)}),t});function xt(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function Tn(e){if(e!=null){try{return uo.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Vh(e,t){return Je(hg,function(r){var a="_."+r[0];t&r[1]&&!oo(e,a)&&e.push(a)}),e.sort()}function Tl(e){if(e instanceof J)return e.clone();var t=new je(e.__wrapped__,e.__chain__);return t.__actions__=Oe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qh(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=Se(V(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(ho(a/t));c<a;)T[p++]=tt(e,c,c+=t);return T}function zh(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 Kh(){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 Yt(H(r)?Oe(r):[r],be(t,1))}var Yh=Z(function(e,t){return me(e)?wr(e,be(t,1,me,!0)):[]}),Zh=Z(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?wr(e,be(t,1,me,!0),M(r,2)):[]}),Xh=Z(function(e,t){var r=nt(t);return me(r)&&(r=n),me(e)?wr(e,be(t,1,me,!0),n,r):[]});function Jh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),tt(e,t<0?0:t,a)):[]}function Qh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,tt(e,0,t<0?0:t)):[]}function jh(e,t){return e&&e.length?Lo(e,M(t,3),!0,!0):[]}function ey(e,t){return e&&e.length?Lo(e,M(t,3),!0):[]}function ty(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),KT(e,t,r,a)):[]}function hl(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=Se(a+c,0)),io(e,M(t,3),c)}function yl(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?Se(a+c,0):Ee(c,a-1)),io(e,M(t,3),c,!0)}function xl(e){var t=e==null?0:e.length;return t?be(e,1):[]}function ny(e){var t=e==null?0:e.length;return t?be(e,cn):[]}function ry(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),be(e,t)):[]}function oy(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 Sl(e){return e&&e.length?e[0]:n}function iy(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=Se(a+c,0)),Mn(e,t,c)}function sy(e){var t=e==null?0:e.length;return t?tt(e,0,-1):[]}var ay=Z(function(e){var t=ue(e,Us);return t.length&&t[0]===e[0]?Es(t):[]}),cy=Z(function(e){var t=nt(e),r=ue(e,Us);return t===nt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Es(r,M(t,2)):[]}),uy=Z(function(e){var t=nt(e),r=ue(e,Us);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Es(r,n,t):[]});function ly(e,t){return e==null?"":sT.call(e,t)}function nt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function py(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?Se(a+c,0):Ee(c,a-1)),t===t?Vm(e,t,c):io(e,eu,c,!0)}function fy(e,t){return e&&e.length?Pu(e,V(t)):n}var dy=Z(vl);function vl(e,t){return e&&e.length&&t&&t.length?Rs(e,t):e}function gy(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,M(r,2)):e}function my(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,n,r):e}var Ty=Dt(function(e,t){var r=e==null?0:e.length,a=Is(e,t);return Nu(e,ue(t,function(c){return Nt(c,r)?+c:c}).sort(Vu)),a});function hy(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=M(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return Nu(e,c),r}function Qs(e){return e==null?e:lT.call(e)}function yy(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)),tt(e,t,r)):[]}function xy(e,t){return bo(e,t)}function Sy(e,t,r){return Os(e,t,M(r,2))}function vy(e,t){var r=e==null?0:e.length;if(r){var a=bo(e,t);if(a<r&&lt(e[a],t))return a}return-1}function wy(e,t){return bo(e,t,!0)}function Ay(e,t,r){return Os(e,t,M(r,2),!0)}function Iy(e,t){var r=e==null?0:e.length;if(r){var a=bo(e,t,!0)-1;if(lt(e[a],t))return a}return-1}function _y(e){return e&&e.length?Mu(e):[]}function by(e,t){return e&&e.length?Mu(e,M(t,2)):[]}function Ly(e){var t=e==null?0:e.length;return t?tt(e,1,t):[]}function Ey(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),tt(e,0,t<0?0:t)):[]}function ky(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,tt(e,t<0?0:t,a)):[]}function Cy(e,t){return e&&e.length?Lo(e,M(t,3),!1,!0):[]}function Py(e,t){return e&&e.length?Lo(e,M(t,3)):[]}var Ry=Z(function(e){return jt(be(e,1,me,!0))}),Dy=Z(function(e){var t=nt(e);return me(t)&&(t=n),jt(be(e,1,me,!0),M(t,2))}),Ny=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,jt(be(e,1,me,!0),n,t)});function Oy(e){return e&&e.length?jt(e):[]}function My(e,t){return e&&e.length?jt(e,M(t,2)):[]}function Fy(e,t){return t=typeof t=="function"?t:n,e&&e.length?jt(e,n,t):[]}function js(e){if(!(e&&e.length))return[];var t=0;return e=Kt(e,function(r){if(me(r))return t=Se(r.length,t),!0}),Ts(t,function(r){return ue(e,ds(r))})}function wl(e,t){if(!(e&&e.length))return[];var r=js(e);return t==null?r:ue(r,function(a){return Ge(t,n,a)})}var Uy=Z(function(e,t){return me(e)?wr(e,t):[]}),By=Z(function(e){return Fs(Kt(e,me))}),Wy=Z(function(e){var t=nt(e);return me(t)&&(t=n),Fs(Kt(e,me),M(t,2))}),Gy=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,Fs(Kt(e,me),n,t)}),$y=Z(js);function Hy(e,t){return Wu(e||[],t||[],vr)}function Vy(e,t){return Wu(e||[],t||[],_r)}var qy=Z(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,wl(e,r)});function Al(e){var t=l(e);return t.__chain__=!0,t}function zy(e,t){return t(e),e}function Mo(e,t){return t(e)}var Ky=Dt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return Is(p,e)};return t>1||this.__actions__.length||!(a instanceof J)||!Nt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Mo,args:[c],thisArg:n}),new je(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function Yy(){return Al(this)}function Zy(){return new je(this.value(),this.__chain__)}function Xy(){this.__values__===n&&(this.__values__=Fl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Jy(){return this}function Qy(e){for(var t,r=this;r instanceof vo;){var a=Tl(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 jy(){var e=this.__wrapped__;if(e instanceof J){var t=e;return this.__actions__.length&&(t=new J(this)),t=t.reverse(),t.__actions__.push({func:Mo,args:[Qs],thisArg:n}),new je(t,this.__chain__)}return this.thru(Qs)}function ex(){return Bu(this.__wrapped__,this.__actions__)}var tx=Eo(function(e,t,r){re.call(e,r)?++e[r]:Pt(e,r,1)});function nx(e,t,r){var a=H(e)?Qc:zT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function rx(e,t){var r=H(e)?Kt:wu;return r(e,M(t,3))}var ox=Xu(hl),ix=Xu(yl);function sx(e,t){return be(Fo(e,t),1)}function ax(e,t){return be(Fo(e,t),cn)}function cx(e,t,r){return r=r===n?1:V(r),be(Fo(e,t),r)}function Il(e,t){var r=H(e)?Je:Qt;return r(e,M(t,3))}function _l(e,t){var r=H(e)?Lm:vu;return r(e,M(t,3))}var ux=Eo(function(e,t,r){re.call(e,r)?e[r].push(t):Pt(e,r,[t])});function lx(e,t,r,a){e=Me(e)?e:Kn(e),r=r&&!a?V(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),$o(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Mn(e,t,r)>-1}var px=Z(function(e,t,r){var a=-1,c=typeof t=="function",p=Me(e)?w(e.length):[];return Qt(e,function(T){p[++a]=c?Ge(t,T,r):Ar(T,t,r)}),p}),fx=Eo(function(e,t,r){Pt(e,r,t)});function Fo(e,t){var r=H(e)?ue:Eu;return r(e,M(t,3))}function dx(e,t,r,a){return e==null?[]:(H(t)||(t=t==null?[]:[t]),r=a?n:r,H(r)||(r=r==null?[]:[r]),Ru(e,t,r))}var gx=Eo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function mx(e,t,r){var a=H(e)?ps:nu,c=arguments.length<3;return a(e,M(t,4),r,c,Qt)}function Tx(e,t,r){var a=H(e)?Em:nu,c=arguments.length<3;return a(e,M(t,4),r,c,vu)}function hx(e,t){var r=H(e)?Kt:wu;return r(e,Wo(M(t,3)))}function yx(e){var t=H(e)?hu:lh;return t(e)}function xx(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=H(e)?GT:ph;return a(e,t)}function Sx(e){var t=H(e)?$T:dh;return t(e)}function vx(e){if(e==null)return 0;if(Me(e))return $o(e)?Un(e):e.length;var t=ke(e);return t==st||t==at?e.size:Cs(e).length}function wx(e,t,r){var a=H(e)?fs:gh;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var Ax=Z(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]]),Ru(e,be(t,1),[])}),Uo=rT||function(){return ve.Date.now()};function Ix(e,t){if(typeof t!="function")throw new Qe(m);return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function bl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Rt(e,Lt,n,n,n,n,t)}function Ll(e,t){var r;if(typeof t!="function")throw new Qe(m);return e=V(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ea=Z(function(e,t,r){var a=ge;if(r.length){var c=Zt(r,qn(ea));a|=mt}return Rt(e,a,t,r,c)}),El=Z(function(e,t,r){var a=ge|_e;if(r.length){var c=Zt(r,qn(El));a|=mt}return Rt(t,a,e,r,c)});function kl(e,t,r){t=r?n:t;var a=Rt(e,gt,n,n,n,n,n,t);return a.placeholder=kl.placeholder,a}function Cl(e,t,r){t=r?n:t;var a=Rt(e,Pn,n,n,n,n,n,t);return a.placeholder=Cl.placeholder,a}function Pl(e,t,r){var a,c,p,T,h,S,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new Qe(m);t=rt(t)||0,le(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(rt(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function D(Te){var pt=a,Ft=c;return a=c=n,_=Te,T=e.apply(Ft,pt),T}function U(Te){return _=Te,h=Er(X,t),b?D(Te):T}function K(Te){var pt=Te-S,Ft=Te-_,Xl=t-pt;return L?Ee(Xl,p-Ft):Xl}function B(Te){var pt=Te-S,Ft=Te-_;return S===n||pt>=t||pt<0||L&&Ft>=p}function X(){var Te=Uo();if(B(Te))return Q(Te);h=Er(X,K(Te))}function Q(Te){return h=n,C&&a?D(Te):(a=c=n,T)}function qe(){h!==n&&Gu(h),_=0,a=S=c=h=n}function De(){return h===n?T:Q(Uo())}function ze(){var Te=Uo(),pt=B(Te);if(a=arguments,c=this,S=Te,pt){if(h===n)return U(S);if(L)return Gu(h),h=Er(X,t),D(S)}return h===n&&(h=Er(X,t)),T}return ze.cancel=qe,ze.flush=De,ze}var _x=Z(function(e,t){return Su(e,1,t)}),bx=Z(function(e,t,r){return Su(e,rt(t)||0,r)});function Lx(e){return Rt(e,qi)}function Bo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Qe(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(Bo.Cache||Ct),r}Bo.Cache=Ct;function Wo(e){if(typeof e!="function")throw new Qe(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 Ex(e){return Ll(2,e)}var kx=mh(function(e,t){t=t.length==1&&H(t[0])?ue(t[0],$e(M())):ue(be(t,1),$e(M()));var r=t.length;return Z(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),ta=Z(function(e,t){var r=Zt(t,qn(ta));return Rt(e,mt,n,t,r)}),Rl=Z(function(e,t){var r=Zt(t,qn(Rl));return Rt(e,Rn,n,t,r)}),Cx=Dt(function(e,t){return Rt(e,ar,n,n,n,t)});function Px(e,t){if(typeof e!="function")throw new Qe(m);return t=t===n?t:V(t),Z(e,t)}function Rx(e,t){if(typeof e!="function")throw new Qe(m);return t=t==null?0:Se(V(t),0),Z(function(r){var a=r[t],c=tn(r,0,t);return a&&Yt(c,a),Ge(e,this,c)})}function Dx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new Qe(m);return le(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Pl(e,t,{leading:a,maxWait:t,trailing:c})}function Nx(e){return bl(e,1)}function Ox(e,t){return ta(Bs(t),e)}function Mx(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function Fx(e){return et(e,F)}function Ux(e,t){return t=typeof t=="function"?t:n,et(e,F,t)}function Bx(e){return et(e,N|F)}function Wx(e,t){return t=typeof t=="function"?t:n,et(e,N|F,t)}function Gx(e,t){return t==null||xu(e,t,we(t))}function lt(e,t){return e===t||e!==e&&t!==t}var $x=Ro(Ls),Hx=Ro(function(e,t){return e>=t}),hn=_u(function(){return arguments}())?_u:function(e){return fe(e)&&re.call(e,"callee")&&!pu.call(e,"callee")},H=w.isArray,Vx=zc?$e(zc):QT;function Me(e){return e!=null&&Go(e.length)&&!Ot(e)}function me(e){return fe(e)&&Me(e)}function qx(e){return e===!0||e===!1||fe(e)&&Pe(e)==cr}var nn=iT||fa,zx=Kc?$e(Kc):jT;function Kx(e){return fe(e)&&e.nodeType===1&&!kr(e)}function Yx(e){if(e==null)return!0;if(Me(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||zn(e)||hn(e)))return!e.length;var t=ke(e);if(t==st||t==at)return!e.size;if(Lr(e))return!Cs(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Zx(e,t){return Ir(e,t)}function Xx(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?Ir(e,t,n,r):!!a}function na(e){if(!fe(e))return!1;var t=Pe(e);return t==Qr||t==xg||typeof e.message=="string"&&typeof e.name=="string"&&!kr(e)}function Jx(e){return typeof e=="number"&&du(e)}function Ot(e){if(!le(e))return!1;var t=Pe(e);return t==jr||t==Sc||t==yg||t==vg}function Dl(e){return typeof e=="number"&&e==V(e)}function Go(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zt}function le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var Nl=Yc?$e(Yc):th;function Qx(e,t){return e===t||ks(e,t,zs(t))}function jx(e,t,r){return r=typeof r=="function"?r:n,ks(e,t,zs(t),r)}function eS(e){return Ol(e)&&e!=+e}function tS(e){if(Uh(e))throw new $(u);return bu(e)}function nS(e){return e===null}function rS(e){return e==null}function Ol(e){return typeof e=="number"||fe(e)&&Pe(e)==lr}function kr(e){if(!fe(e)||Pe(e)!=Et)return!1;var t=go(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uo.call(r)==jm}var ra=Zc?$e(Zc):nh;function oS(e){return Dl(e)&&e>=-zt&&e<=zt}var Ml=Xc?$e(Xc):rh;function $o(e){return typeof e=="string"||!H(e)&&fe(e)&&Pe(e)==fr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==eo}var zn=Jc?$e(Jc):oh;function iS(e){return e===n}function sS(e){return fe(e)&&ke(e)==dr}function aS(e){return fe(e)&&Pe(e)==Ag}var cS=Ro(Ps),uS=Ro(function(e,t){return e<=t});function Fl(e){if(!e)return[];if(Me(e))return $o(e)?ct(e):Oe(e);if(Tr&&e[Tr])return Gm(e[Tr]());var t=ke(e),r=t==st?ys:t==at?so:Kn;return r(e)}function Mt(e){if(!e)return e===0?e:0;if(e=rt(e),e===cn||e===-cn){var t=e<0?-1:1;return t*gg}return e===e?e:0}function V(e){var t=Mt(e),r=t%1;return t===t?r?t-r:t:0}function Ul(e){return e?dn(V(e),0,Tt):0}function rt(e){if(typeof e=="number")return e;if(Ve(e))return Xr;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ru(e);var r=Vg.test(e);return r||zg.test(e)?Im(e.slice(2),r?2:8):Hg.test(e)?Xr:+e}function Bl(e){return yt(e,Fe(e))}function lS(e){return e?dn(V(e),-zt,zt):e===0?e:0}function ne(e){return e==null?"":He(e)}var pS=Hn(function(e,t){if(Lr(t)||Me(t)){yt(t,we(t),e);return}for(var r in t)re.call(t,r)&&vr(e,r,t[r])}),Wl=Hn(function(e,t){yt(t,Fe(t),e)}),Ho=Hn(function(e,t,r,a){yt(t,Fe(t),e,a)}),fS=Hn(function(e,t,r,a){yt(t,we(t),e,a)}),dS=Dt(Is);function gS(e,t){var r=$n(e);return t==null?r:yu(r,t)}var mS=Z(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,S=T.length;++h<S;){var _=T[h],b=e[_];(b===n||lt(b,Bn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),TS=Z(function(e){return e.push(n,rl),Ge(Gl,n,e)});function hS(e,t){return jc(e,M(t,3),ht)}function yS(e,t){return jc(e,M(t,3),bs)}function xS(e,t){return e==null?e:_s(e,M(t,3),Fe)}function SS(e,t){return e==null?e:Au(e,M(t,3),Fe)}function vS(e,t){return e&&ht(e,M(t,3))}function wS(e,t){return e&&bs(e,M(t,3))}function AS(e){return e==null?[]:Io(e,we(e))}function IS(e){return e==null?[]:Io(e,Fe(e))}function oa(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function _S(e,t){return e!=null&&sl(e,t,YT)}function ia(e,t){return e!=null&&sl(e,t,ZT)}var bS=Qu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=lo.call(t)),e[t]=r},aa(Ue)),LS=Qu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=lo.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},M),ES=Z(Ar);function we(e){return Me(e)?Tu(e):Cs(e)}function Fe(e){return Me(e)?Tu(e,!0):ih(e)}function kS(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,t(a,c,p),a)}),r}function CS(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,c,t(a,c,p))}),r}var PS=Hn(function(e,t,r){_o(e,t,r)}),Gl=Hn(function(e,t,r,a){_o(e,t,r,a)}),RS=Dt(function(e,t){var r={};if(e==null)return r;var a=!1;t=ue(t,function(p){return p=en(p,e),a||(a=p.length>1),p}),yt(e,Vs(e),r),a&&(r=et(r,N|z|F,bh));for(var c=t.length;c--;)Ms(r,t[c]);return r});function DS(e,t){return $l(e,Wo(M(t)))}var NS=Dt(function(e,t){return e==null?{}:ah(e,t)});function $l(e,t){if(e==null)return{};var r=ue(Vs(e),function(a){return[a]});return t=M(t),Du(e,r,function(a,c){return t(a,c[0])})}function OS(e,t,r){t=en(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[xt(t[a])];p===n&&(a=c,p=r),e=Ot(p)?p.call(e):p}return e}function MS(e,t,r){return e==null?e:_r(e,t,r)}function FS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:_r(e,t,r,a)}var Hl=tl(we),Vl=tl(Fe);function US(e,t,r){var a=H(e),c=a||nn(e)||zn(e);if(t=M(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:le(e)?r=Ot(p)?$n(go(e)):{}:r={}}return(c?Je:ht)(e,function(T,h,S){return t(r,T,h,S)}),r}function BS(e,t){return e==null?!0:Ms(e,t)}function WS(e,t,r){return e==null?e:Uu(e,t,Bs(r))}function GS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Uu(e,t,Bs(r),a)}function Kn(e){return e==null?[]:hs(e,we(e))}function $S(e){return e==null?[]:hs(e,Fe(e))}function HS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=rt(r),r=r===r?r:0),t!==n&&(t=rt(t),t=t===t?t:0),dn(rt(e),t,r)}function VS(e,t,r){return t=Mt(t),r===n?(r=t,t=0):r=Mt(r),e=rt(e),XT(e,t,r)}function qS(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=Mt(e),t===n?(t=e,e=0):t=Mt(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=gu();return Ee(e+c*(t-e+Am("1e-"+((c+"").length-1))),t)}return Ds(e,t)}var zS=Vn(function(e,t,r){return t=t.toLowerCase(),e+(r?ql(t):t)});function ql(e){return sa(ne(e).toLowerCase())}function zl(e){return e=ne(e),e&&e.replace(Yg,Mm).replace(dm,"")}function KS(e,t,r){e=ne(e),t=He(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 YS(e){return e=ne(e),e&&Eg.test(e)?e.replace(Ac,Fm):e}function ZS(e){return e=ne(e),e&&Ng.test(e)?e.replace(ts,"\\$&"):e}var XS=Vn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),JS=Vn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),QS=Zu("toLowerCase");function jS(e,t,r){e=ne(e),t=V(t);var a=t?Un(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Po(yo(c),r)+e+Po(ho(c),r)}function ev(e,t,r){e=ne(e),t=V(t);var a=t?Un(e):0;return t&&a<t?e+Po(t-a,r):e}function tv(e,t,r){e=ne(e),t=V(t);var a=t?Un(e):0;return t&&a<t?Po(t-a,r)+e:e}function nv(e,t,r){return r||t==null?t=0:t&&(t=+t),uT(ne(e).replace(ns,""),t||0)}function rv(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),Ns(ne(e),t)}function ov(){var e=arguments,t=ne(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var iv=Vn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function sv(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?Tt:r>>>0,r?(e=ne(e),e&&(typeof t=="string"||t!=null&&!ra(t))&&(t=He(t),!t&&Fn(e))?tn(ct(e),0,r):e.split(t,r)):[]}var av=Vn(function(e,t,r){return e+(r?" ":"")+sa(t)});function cv(e,t,r){return e=ne(e),r=r==null?0:dn(V(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function uv(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=ne(e),t=Ho({},t,a,nl);var c=Ho({},t.imports,a.imports,nl),p=we(c),T=hs(c,p),h,S,_=0,b=t.interpolate||to,L="__p += '",C=xs((t.escape||to).source+"|"+b.source+"|"+(b===Ic?$g:to).source+"|"+(t.evaluate||to).source+"|$","g"),D="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ym+"]")+`
4
+ `;e.replace(C,function(B,X,Q,qe,De,ze){return Q||(Q=qe),L+=e.slice(_,ze).replace(Zg,Um),X&&(h=!0,L+=`' +
5
5
  __e(`+X+`) +
6
6
  '`),De&&(S=!0,L+=`';
7
7
  `+De+`;
@@ -11,13 +11,13 @@ __p += '`),Q&&(L+=`' +
11
11
  `;var U=re.call(t,"variable")&&t.variable;if(!U)L=`with (obj) {
12
12
  `+L+`
13
13
  }
14
- `;else if(Ug.test(U))throw new $(v);L=(S?L.replace(wg,""):L).replace(Ag,"$1").replace(Ig,"$1;"),L="function("+(U||"obj")+`) {
14
+ `;else if(Wg.test(U))throw new $(v);L=(S?L.replace(Ig,""):L).replace(_g,"$1").replace(bg,"$1;"),L="function("+(U||"obj")+`) {
15
15
  `+(U?"":`obj || (obj = {});
16
16
  `)+"var __t, __p = ''"+(h?", __e = _.escape":"")+(S?`, __j = Array.prototype.join;
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
19
  `)+L+`return __p
20
- }`;var K=Yl(function(){return ee(p,D+"return "+L).apply(n,T)});if(K.source=L,na(K))throw K;return K}function cv(e){return ne(e).toLowerCase()}function uv(e){return ne(e).toUpperCase()}function lv(e,t,r){if(e=ne(e),e&&(r||t===n))return ru(e);if(!e||!(t=He(t)))return e;var a=ct(e),c=ct(t),p=ou(a,c),T=iu(a,c)+1;return tn(a,p,T).join("")}function pv(e,t,r){if(e=ne(e),e&&(r||t===n))return e.slice(0,au(e)+1);if(!e||!(t=He(t)))return e;var a=ct(e),c=iu(a,ct(t))+1;return tn(a,0,c).join("")}function fv(e,t,r){if(e=ne(e),e&&(r||t===n))return e.replace(ns,"");if(!e||!(t=He(t)))return e;var a=ct(e),c=ou(a,ct(t));return tn(a,c).join("")}function dv(e,t){var r=sg,a=ag;if(le(t)){var c="separator"in t?t.separator:c;r="length"in t?V(t.length):r,a="omission"in t?He(t.omission):a}e=ne(e);var p=e.length;if(Fn(e)){var T=ct(e);p=T.length}if(r>=p)return e;var h=r-Un(a);if(h<1)return a;var S=T?tn(T,0,h).join(""):e.slice(0,h);if(c===n)return S+a;if(T&&(h+=S.length-h),ra(c)){if(e.slice(h).search(c)){var _,b=S;for(c.global||(c=xs(c.source,ne(_c.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;S=S.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=S.lastIndexOf(c);C>-1&&(S=S.slice(0,C))}return S+a}function gv(e){return e=ne(e),e&&_g.test(e)?e.replace(wc,Hm):e}var mv=Vn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),sa=Zu("toUpperCase");function Kl(e,t,r){return e=ne(e),t=r?n:t,t===n?Um(e)?zm(e):km(e):e.match(t)||[]}var Yl=Z(function(e,t){try{return Ge(e,n,t)}catch(r){return na(r)?r:new $(r)}}),Tv=Dt(function(e,t){return Je(t,function(r){r=xt(r),Pt(e,r,ea(e[r],e))}),e});function hv(e){var t=e==null?0:e.length,r=M();return e=t?ue(e,function(a){if(typeof a[1]!="function")throw new Qe(m);return[r(a[0]),a[1]]}):[],Z(function(a){for(var c=-1;++c<t;){var p=e[c];if(Ge(p[0],this,a))return Ge(p[1],this,a)}})}function yv(e){return HT(et(e,N))}function aa(e){return function(){return e}}function xv(e,t){return e==null||e!==e?t:e}var Sv=Ju(),vv=Ju(!0);function Ue(e){return e}function ca(e){return Lu(typeof e=="function"?e:et(e,N))}function wv(e){return ku(et(e,N))}function Av(e,t){return Cu(e,et(t,N))}var Iv=Z(function(e,t){return function(r){return Ar(r,e,t)}}),_v=Z(function(e,t){return function(r){return Ar(e,r,t)}});function ua(e,t,r){var a=we(t),c=Io(t,a);r==null&&!(le(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=Io(t,we(t)));var p=!(le(r)&&"chain"in r)||!!r.chain,T=Ot(e);return Je(c,function(h){var S=t[h];e[h]=S,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Oe(this.__actions__);return L.push({func:S,args:arguments,thisArg:e}),b.__chain__=_,b}return S.apply(e,Yt([this.value()],arguments))})}),e}function bv(){return ve._===this&&(ve._=Qm),this}function la(){}function Lv(e){return e=V(e),Z(function(t){return Pu(t,e)})}var Ev=Gs(ue),kv=Gs(Qc),Cv=Gs(fs);function Zl(e){return Ys(e)?ds(xt(e)):sh(e)}function Pv(e){return function(t){return e==null?n:gn(e,t)}}var Rv=ju(),Dv=ju(!0);function pa(){return[]}function fa(){return!1}function Nv(){return{}}function Ov(){return""}function Mv(){return!0}function Fv(e,t){if(e=V(e),e<1||e>zt)return[];var r=Tt,a=Ee(e,Tt);t=M(t),e-=Tt;for(var c=Ts(a,t);++r<e;)t(r);return c}function Uv(e){return H(e)?ue(e,xt):Ve(e)?[e]:Oe(ml(ne(e)))}function Bv(e){var t=++Xm;return ne(e)+t}var Wv=Co(function(e,t){return e+t},0),Gv=$s("ceil"),$v=Co(function(e,t){return e/t},1),Hv=$s("floor");function Vv(e){return e&&e.length?Ao(e,Ue,Ls):n}function qv(e,t){return e&&e.length?Ao(e,M(t,2),Ls):n}function zv(e){return tu(e,Ue)}function Kv(e,t){return tu(e,M(t,2))}function Yv(e){return e&&e.length?Ao(e,Ue,Ps):n}function Zv(e,t){return e&&e.length?Ao(e,M(t,2),Ps):n}var Xv=Co(function(e,t){return e*t},1),Jv=$s("round"),Qv=Co(function(e,t){return e-t},0);function jv(e){return e&&e.length?ms(e,Ue):0}function e0(e,t){return e&&e.length?ms(e,M(t,2)):0}return l.after=wx,l.ary=bl,l.assign=uS,l.assignIn=Wl,l.assignInWith=Ho,l.assignWith=lS,l.at=pS,l.before=Ll,l.bind=ea,l.bindAll=Tv,l.bindKey=El,l.castArray=Nx,l.chain=Al,l.chunk=Hh,l.compact=Vh,l.concat=qh,l.cond=hv,l.conforms=yv,l.constant=aa,l.countBy=jy,l.create=fS,l.curry=kl,l.curryRight=Cl,l.debounce=Pl,l.defaults=dS,l.defaultsDeep=gS,l.defer=Ax,l.delay=Ix,l.difference=zh,l.differenceBy=Kh,l.differenceWith=Yh,l.drop=Zh,l.dropRight=Xh,l.dropRightWhile=Jh,l.dropWhile=Qh,l.fill=jh,l.filter=tx,l.flatMap=ox,l.flatMapDeep=ix,l.flatMapDepth=sx,l.flatten=xl,l.flattenDeep=ey,l.flattenDepth=ty,l.flip=_x,l.flow=Sv,l.flowRight=vv,l.fromPairs=ny,l.functions=vS,l.functionsIn=wS,l.groupBy=ax,l.initial=oy,l.intersection=iy,l.intersectionBy=sy,l.intersectionWith=ay,l.invert=IS,l.invertBy=_S,l.invokeMap=ux,l.iteratee=ca,l.keyBy=lx,l.keys=we,l.keysIn=Fe,l.map=Fo,l.mapKeys=LS,l.mapValues=ES,l.matches=wv,l.matchesProperty=Av,l.memoize=Bo,l.merge=kS,l.mergeWith=Gl,l.method=Iv,l.methodOf=_v,l.mixin=ua,l.negate=Wo,l.nthArg=Lv,l.omit=CS,l.omitBy=PS,l.once=bx,l.orderBy=px,l.over=Ev,l.overArgs=Lx,l.overEvery=kv,l.overSome=Cv,l.partial=ta,l.partialRight=Rl,l.partition=fx,l.pick=RS,l.pickBy=$l,l.property=Zl,l.propertyOf=Pv,l.pull=py,l.pullAll=vl,l.pullAllBy=fy,l.pullAllWith=dy,l.pullAt=gy,l.range=Rv,l.rangeRight=Dv,l.rearg=Ex,l.reject=mx,l.remove=my,l.rest=kx,l.reverse=Qs,l.sampleSize=hx,l.set=NS,l.setWith=OS,l.shuffle=yx,l.slice=Ty,l.sortBy=vx,l.sortedUniq=Ay,l.sortedUniqBy=Iy,l.split=ov,l.spread=Cx,l.tail=_y,l.take=by,l.takeRight=Ly,l.takeRightWhile=Ey,l.takeWhile=ky,l.tap=Vy,l.throttle=Px,l.thru=Mo,l.toArray=Fl,l.toPairs=Hl,l.toPairsIn=Vl,l.toPath=Uv,l.toPlainObject=Bl,l.transform=MS,l.unary=Rx,l.union=Cy,l.unionBy=Py,l.unionWith=Ry,l.uniq=Dy,l.uniqBy=Ny,l.uniqWith=Oy,l.unset=FS,l.unzip=js,l.unzipWith=wl,l.update=US,l.updateWith=BS,l.values=Kn,l.valuesIn=WS,l.without=My,l.words=Kl,l.wrap=Dx,l.xor=Fy,l.xorBy=Uy,l.xorWith=By,l.zip=Wy,l.zipObject=Gy,l.zipObjectDeep=$y,l.zipWith=Hy,l.entries=Hl,l.entriesIn=Vl,l.extend=Wl,l.extendWith=Ho,ua(l,l),l.add=Wv,l.attempt=Yl,l.camelCase=VS,l.capitalize=ql,l.ceil=Gv,l.clamp=GS,l.clone=Ox,l.cloneDeep=Fx,l.cloneDeepWith=Ux,l.cloneWith=Mx,l.conformsTo=Bx,l.deburr=zl,l.defaultTo=xv,l.divide=$v,l.endsWith=qS,l.eq=lt,l.escape=zS,l.escapeRegExp=KS,l.every=ex,l.find=nx,l.findIndex=hl,l.findKey=mS,l.findLast=rx,l.findLastIndex=yl,l.findLastKey=TS,l.floor=Hv,l.forEach=Il,l.forEachRight=_l,l.forIn=hS,l.forInRight=yS,l.forOwn=xS,l.forOwnRight=SS,l.get=oa,l.gt=Wx,l.gte=Gx,l.has=AS,l.hasIn=ia,l.head=Sl,l.identity=Ue,l.includes=cx,l.indexOf=ry,l.inRange=$S,l.invoke=bS,l.isArguments=hn,l.isArray=H,l.isArrayBuffer=$x,l.isArrayLike=Me,l.isArrayLikeObject=me,l.isBoolean=Hx,l.isBuffer=nn,l.isDate=Vx,l.isElement=qx,l.isEmpty=zx,l.isEqual=Kx,l.isEqualWith=Yx,l.isError=na,l.isFinite=Zx,l.isFunction=Ot,l.isInteger=Dl,l.isLength=Go,l.isMap=Nl,l.isMatch=Xx,l.isMatchWith=Jx,l.isNaN=Qx,l.isNative=jx,l.isNil=tS,l.isNull=eS,l.isNumber=Ol,l.isObject=le,l.isObjectLike=fe,l.isPlainObject=kr,l.isRegExp=ra,l.isSafeInteger=nS,l.isSet=Ml,l.isString=$o,l.isSymbol=Ve,l.isTypedArray=zn,l.isUndefined=rS,l.isWeakMap=oS,l.isWeakSet=iS,l.join=cy,l.kebabCase=YS,l.last=nt,l.lastIndexOf=uy,l.lowerCase=ZS,l.lowerFirst=XS,l.lt=sS,l.lte=aS,l.max=Vv,l.maxBy=qv,l.mean=zv,l.meanBy=Kv,l.min=Yv,l.minBy=Zv,l.stubArray=pa,l.stubFalse=fa,l.stubObject=Nv,l.stubString=Ov,l.stubTrue=Mv,l.multiply=Xv,l.nth=ly,l.noConflict=bv,l.noop=la,l.now=Uo,l.pad=JS,l.padEnd=QS,l.padStart=jS,l.parseInt=ev,l.random=HS,l.reduce=dx,l.reduceRight=gx,l.repeat=tv,l.replace=nv,l.result=DS,l.round=Jv,l.runInContext=x,l.sample=Tx,l.size=xx,l.snakeCase=rv,l.some=Sx,l.sortedIndex=hy,l.sortedIndexBy=yy,l.sortedIndexOf=xy,l.sortedLastIndex=Sy,l.sortedLastIndexBy=vy,l.sortedLastIndexOf=wy,l.startCase=iv,l.startsWith=sv,l.subtract=Qv,l.sum=jv,l.sumBy=e0,l.template=av,l.times=Fv,l.toFinite=Mt,l.toInteger=V,l.toLength=Ul,l.toLower=cv,l.toNumber=rt,l.toSafeInteger=cS,l.toString=ne,l.toUpper=uv,l.trim=lv,l.trimEnd=pv,l.trimStart=fv,l.truncate=dv,l.unescape=gv,l.uniqueId=Bv,l.upperCase=mv,l.upperFirst=sa,l.each=Il,l.eachRight=_l,l.first=Sl,ua(l,function(){var e={};return ht(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){J.prototype[e]=function(r){r=r===n?1:Se(V(r),0);var a=this.__filtered__&&!t?new J(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,Tt),type:e+(a.__dir__<0?"Right":"")}),a},J.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Je(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==xc||r==pg;J.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:M(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Je(["head","last"],function(e,t){var r="take"+(t?"Right":"");J.prototype[e]=function(){return this[r](1).value()[0]}}),Je(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");J.prototype[e]=function(){return this.__filtered__?new J(this):this[r](1)}}),J.prototype.compact=function(){return this.filter(Ue)},J.prototype.find=function(e){return this.filter(e).head()},J.prototype.findLast=function(e){return this.reverse().find(e)},J.prototype.invokeMap=Z(function(e,t){return typeof e=="function"?new J(this):this.map(function(r){return Ar(r,e,t)})}),J.prototype.reject=function(e){return this.filter(Wo(M(e)))},J.prototype.slice=function(e,t){e=V(e);var r=this;return r.__filtered__&&(e>0||t<0)?new J(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)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(Tt)},ht(J.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,S=T instanceof J,_=h[0],b=S||H(T),L=function(X){var Q=c.apply(l,Yt([X],h));return a&&C?Q[0]:Q};b&&r&&typeof _=="function"&&_.length!=1&&(S=b=!1);var C=this.__chain__,D=!!this.__actions__.length,U=p&&!C,K=S&&!D;if(!p&&b){T=K?T:new J(this);var B=e.apply(T,h);return B.__actions__.push({func:Mo,args:[L],thisArg:n}),new je(B,C)}return U&&K?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=ao[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)})}}),ht(J.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Gn,a)||(Gn[a]=[]),Gn[a].push({name:t,func:r})}}),Gn[ko(n,_e).name]=[{name:"wrapper",func:n}],J.prototype.clone=gT,J.prototype.reverse=mT,J.prototype.value=TT,l.prototype.at=qy,l.prototype.chain=zy,l.prototype.commit=Ky,l.prototype.next=Yy,l.prototype.plant=Xy,l.prototype.reverse=Jy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qy,l.prototype.first=l.prototype.head,Tr&&(l.prototype[Tr]=Zy),l},Xt=Km();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=Xt,define(function(){return Xt})):un?((un.exports=Xt)._=Xt,cs._=Xt):ve._=Xt}).call(ir)});var WI={};yn(WI,{useTransactionsTracker:()=>BI});module.exports=Rr(WI);s();var ig=require("react");s();s();var GA=Y(require("axios"));s();s();ae();s();var vf=Y(require("lodash.isequal")),vi=require("reselect");Ie();var R=(0,vi.createSelectorCreator)(vi.defaultMemoize,vf.default),Wr=(n,o)=>n!=""&&Boolean(o);var $t=n=>n.account,En=R($t,n=>n.address),nr=R($t,En,(n,o)=>o in n.accounts?n.accounts[o]:ei),Sw=R($t,nr,(n,o)=>{let m=n,{accounts:i}=m,u=qo(m,["accounts"]);return j(O({},u),{account:o})}),vw=R(nr,n=>n.balance),wf=R(nr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),wL=R($t,n=>n.shard),ww=R($t,n=>n.ledgerAccount),AL=R($t,n=>n.walletConnectAccount),IL=R($t,n=>n.isAccountLoading),_L=R($t,n=>n.accountLoadingError),Za=R($t,n=>n.websocketEvent);s();var ft=n=>n.loginInfo,kL=R(ft,n=>n.loginMethod),wi=R(ft,En,(n,o)=>Wr(n.loginMethod,o)),CL=R(ft,n=>n.walletConnectLogin),PL=R(ft,n=>n.ledgerLogin),Af=R(ft,n=>n.walletLogin),RL=R(ft,n=>n.isLoginSessionInvalid),Aw=R(ft,n=>n.tokenLogin),DL=R(ft,n=>n.logoutRoute);s();var If=n=>n.modals,ML=R(If,n=>n.txSubmittedModal),Iw=R(If,n=>n.notificationModal);s();var bt=n=>n.networkConfig,Ai=R(bt,n=>n.chainID),_w=R(bt,n=>n.network.walletConnectBridgeAddress),bw=R(bt,n=>n.network.walletConnectV2RelayAddress),Lw=R(bt,n=>n.network.walletConnectV2ProjectId),Ew=R(bt,n=>n.network.walletConnectV2Options),_f=R(bt,n=>n.network.walletConnectDeepLink),on=R(bt,n=>n.network),Ii=R(on,n=>n.apiAddress),bf=R(on,n=>n.explorerAddress),Lf=R(on,n=>n.egldLabel);s();var Xa=n=>n.signedMessageInfo,GL=R(Xa,n=>n.isSigning),$L=R(Xa,n=>n.errorMessage),HL=R(Xa,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Ja=n=>n.toasts,zL=R(Ja,n=>n.customToasts),KL=R(Ja,n=>n.transactionToasts),YL=R(Ja,n=>n.failTransactionToast);s();ae();var Ef={errorMessage:Ha,successMessage:Va,processingMessage:qa},kw=n=>n.transactionsInfo,Cw=R(kw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Ef);s();s();var Ye=require("@multiversx/sdk-core");se();s();function Qa(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function _i(n){var m,v,y;let{data:o}=n,i=Qa(o!=null?o:"")?Ye.TransactionPayload.fromEncoded(o):new Ye.TransactionPayload(o),u=new Ye.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Ye.Address(n.receiver),sender:new Ye.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Dr,gasPrice:(v=n.gasPrice.valueOf())!=null?v:Jo,chainID:n.chainID.valueOf(),version:new Ye.TransactionVersion((y=n.version)!=null?y:Mp)},n.options?{options:new Ye.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Ye.Address(n.sender)),u}s();s();s();s();var tc=require("@reduxjs/toolkit"),jf=require("react-redux/lib/utils/Subscription");ae();s();var kf=Y(require("lodash.throttle"));se();ae();Ma();jn();Qn();var Pw=[Qo],bi=!1,Rw=(0,kf.default)(()=>{Mr(Or())},5e3),Cf=n=>o=>i=>{var E;if(Pw.includes(i.type))return o(i);let u=n.getState(),m=An.local.getItem(rn.loginExpiresAt);if(!Wr((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 Mr(Or());let y=Date.now();return m-y<0&&!bi?setTimeout(()=>{bi=!0,n.dispatch(jp())},1e3):(bi&&(bi=!1),Rw()),o(i)};s();s();function Li(){return typeof sessionStorage!="undefined"}var Xf=Li()?(Gf(),Rr(Wf)).default:(Hf(),Rr($f)).default,Jf=Li()?(qf(),Rr(Vf)).default:[],Qf=Li()?(Zf(),Rr(Yf)).default:n=>n;Ei();var q=(0,tc.configureStore)({reducer:Xf,middleware:n=>n({serializableCheck:{ignoredActions:[...Jf,Oa.type,ti.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Cf)}),ed=(0,jf.createSubscription)(q),JE=Qf(q),QE=(0,tc.configureStore)({reducer:kn});s();s();var tA=require("@multiversx/sdk-core/out");s();se();s();var nd=require("@multiversx/sdk-core");Ie();s();var td=require("@multiversx/sdk-core");function nA(n){try{let o=new td.Address(n);return Boolean(o.bech32())}catch(o){return!1}}function $r(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&nA(n)}s();s();s();var oA=require("@multiversx/sdk-core"),iA=Y(require("bignumber.js"));de();s();s();s();s();s();var ki="accounts";var nc="blocks";s();s();s();s();We();s();s();We();s();s();s();var dA=Y(require("bignumber.js"));se();s();var fA=require("@multiversx/sdk-core"),rc=Y(require("bignumber.js"));se();s();var lA=Y(require("bignumber.js"));s();rc.default.config({ROUNDING_MODE:rc.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var gA=require("@multiversx/sdk-core");se();s();var Hr=require("@multiversx/sdk-core"),hA=require("@multiversx/sdk-network-providers");se();s();s();var mA=Y(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();We();var xA=["reDelegateRewards","claimRewards","unBond"],SA=["wrapEgld","unwrapEgld"],vA=["unStake"],wA=["unDelegate"];s();s();s();se();s();var bA=Y(require("bignumber.js"));s();s();s();s();We();s();var LA=Y(require("bignumber.js"));s();s();s();var CA=Y(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();We();s();s();s();var PA=Y(require("linkifyjs"));s();se();s();var RA=Y(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();We();s();We();s();var DA=Y(require("bignumber.js"));se();We();s();We();s();var pd=require("react");Ie();s();s();We();s();s();var NA=require("@multiversx/sdk-core/out"),OA=Y(require("bignumber.js"));We();s();Ie();s();s();Ie();var ID=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var fd=require("react");Ie();s();var FA=require("react");We();var PD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];tr();var Di=n=>n.transactions,rr=R(Di,n=>n.signedTransactions),UA=R(Di,n=>n.signTransactionsError),dd=R(Di,n=>n.signTransactionsCancelMessage),Ni=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),ic=R(rr,Ni(Gt)),gd=R(rr,Ni(bn)),md=R(rr,Ni(Ln)),BA=R(rr,Ni(Ka)),Td=R(Di,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:j(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>_i(i)))||[]})}),WA=R(rr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var hd=Y(require("axios"));function Oi(n){return G(this,null,function*(){let o=Ii(q.getState()),i=n.map(m=>m.hash),{data:u}=yield hd.default.get(`${o}/transactions`,{params:{hashes:i.join(","),withScResults:!0}});return n.map(({hash:m,previousStatus:v})=>{let y=u.find(k=>(k==null?void 0:k.txHash)===m);return{hash:m,data:y==null?void 0:y.data,invalidTransaction:y==null,status:y==null?void 0:y.status,results:y==null?void 0:y.results,sender:y==null?void 0:y.sender,receiver:y==null?void 0:y.receiver,previousStatus:v,hasStatusChanged:y&&y.status!==v}})})}s();var HA=Y(require("axios"));s();s();var VA=Y(require("axios"));s();var qA=Y(require("axios"));s();s();s();s();var xd=require("react"),or=require("react-redux");var zA={store:q,subscription:ed},sc=(0,xd.createContext)(zA),JN=(0,or.createStoreHook)(sc),Ne=(0,or.createDispatchHook)(sc),te=(0,or.createSelectorHook)(sc);var ac=()=>te(bt);s();var Sd=require("react");s();ae();s();s();s();s();function cc(){let n=te(ic),o=Object.entries(n),i=(o==null?void 0:o.length)>0;return{pendingTransactions:n,pendingTransactionsArray:o,hasPendingTransactions:i}}s();s();s();s();var vd=require("@multiversx/sdk-extension-provider"),wd=require("@multiversx/sdk-hw-provider"),Ad=require("@multiversx/sdk-opera-provider"),Id=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),_d=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),bd=require("@multiversx/sdk-web-wallet-provider");se();de();var Vr=n=>{switch(n==null?void 0:n.constructor){case bd.WalletProvider:return"wallet";case Id.WalletConnectProvider:return"walletconnect";case _d.WalletConnectV2Provider:return"walletconnectv2";case wd.HWProvider:return"ledger";case vd.ExtensionProvider:return"extension";case Ad.OperaProvider:return"opera";case Mi:return"";default:return"extra"}};var Ht=n=>`Unable to perform ${n}, Provider not initialized`,Mi=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)}},uc=new Mi;var KA=uc;function dt(){return KA||uc}ae();s();s();var Ed=Y(require("axios"));s();s();var Ld=n=>{let o=n!=null?n:Ii(q.getState());return o.endsWith("/")?o.slice(0,-1):o};function kd(n){return G(this,null,function*(){if(!n)return null;let i=`${Ld()}/${ki}/${n}`;try{let{data:u}=yield Ed.default.get(i);return u}catch(u){console.error("error fetching configuration for ",i)}return null})}function qr(n){return G(this,null,function*(){return yield kd(n)})}s();de();s();s();function Cd(){let n=dt();return Vr(n)}function Vt(n){return Cd()===n}function Fi(){let n=window==null?void 0:window.location.search,o=q.getState(),i=dt(),u=En(o),m=wi(o),v=Af(o);if(!i)throw"provider not initialized";return Vt("ledger")&&m?new Promise(y=>{y(u)}):!Vt("")&&!Vt("wallet")&&!Vt("extra")?i.getAddress():new Promise(y=>{if(v!=null){let k=new URLSearchParams(n),E=Object.fromEntries(k);$r(E.address)&&y(E.address)}m&&y(u),y("")})}s();function Ui(n){let o=q.getState(),i=wf(o);return n?i&&!isNaN(i)?Math.max(i,n.nonce):n.nonce:i}var Pd=()=>G(void 0,null,function*(){try{let n=yield Fi();try{let o=yield qr(n);if(o!=null){let i=j(O({},o),{nonce:Ui(o)});return q.dispatch(ti(i)),i}}catch(o){console.error("Failed getting account ",o)}}catch(n){console.error("Failed getting address ",n)}return null});function Bi(){return G(this,null,function*(){let n=dt();if(n==null)throw"Provider not initialized";if(!n.isInitialized||n.isInitialized())return Pd();try{if(!n.init)throw"Current provider does not have init() function";return(yield n.init())?Pd():void 0}catch(o){console.error("Failed initializing provider ",o)}})}tr();s();ae();de();s();s();ae();s();s();var Rd=require("@multiversx/sdk-core");s();Ce();Ie();s();tr();function Dd(n,o){return n.reduce((u,{status:m,hash:v})=>(v!=null&&!o.includes(v)&&Gt(m)&&u.push({hash:v,previousStatus:m}),u),[])}s();ae();de();function Nd({results:n,hash:o,sessionId:i}){let u=n==null?void 0:n.find(m=>(m==null?void 0:m.returnMessage)!=="");q.dispatch(Br({transactionHash:o,sessionId:i,status:"fail",errorMessage:u==null?void 0:u.returnMessage})),q.dispatch(Ti({sessionId:i,status:"fail",errorMessage:u==null?void 0:u.returnMessage}))}s();ae();Ie();function lc(n){q.dispatch(Ti({sessionId:n,status:"timedOut"}))}var Wi={},pc=[];function YA({serverTransaction:n,sessionId:o,customTransactionInformation:i,shouldRefreshBalance:u}){let{hash:m,status:v,results:y,invalidTransaction:k,hasStatusChanged:E}=n;try{if(pc.includes(m))return;if(Wi[m]>30){lc(o);return}if(k||Gt(v)){Wi[m]=Wi[m]?Wi[m]+1:1;return}E&&(bn(v)&&(i==null?void 0:i.completedTransactionsDelay)!=null?(pc.push(m),setTimeout(()=>q.dispatch(Br({sessionId:o,status:"success",transactionHash:m})),i==null?void 0:i.completedTransactionsDelay)):q.dispatch(Br({sessionId:o,status:v,transactionHash:m}))),u||Bi(),Ln(v)&&Nd({sessionId:o,hash:m,results:y})}catch(N){console.error(N),lc(o)}}function Od(v){return G(this,arguments,function*({sessionId:n,transactionBatch:{transactions:o,customTransactionInformation:i},getTransactionsByHash:u=Oi,shouldRefreshBalance:m}){try{if(o==null)return;let y=Dd(o,pc),k=yield u(y);for(let E of k)YA({serverTransaction:E,sessionId:n,customTransactionInformation:i,shouldRefreshBalance:m})}catch(y){console.error(y)}})}function Md(){let{pendingTransactionsArray:n}=cc();function o(i){return G(this,null,function*(){let u=n.filter(([m,v])=>m!=null&&Gt(v.status));if(u.length>0)for(let[m,v]of u)yield Od(O({sessionId:m,transactionBatch:v},i));i.shouldRefreshBalance&&Bi()})}return o}s();s();s();Ie();s();s();s();s();var ZA=Y(require("axios")),XA=Y(require("swr"));s();s();var Fd=require("react");s();var QA=require("react"),jA=require("@multiversx/sdk-web-wallet-provider"),eI=Y(require("qs"));se();ae();de();s();var Bd=require("react");Ua();s();var Hd=require("react"),uI=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var $d=require("react"),iI=require("@multiversx/sdk-extension-provider");se();s();s();s();var zr=()=>te(nr);s();s();s();s();s();var Kr=Y(require("react"));var dU=(0,Kr.createContext)({}),gU=q.getState();s();var Gd=Y(require("react"));s();var fc=Y(require("react")),nI=Y(require("axios"));s();s();ae();s();s();var lI=Y(require("axios"));ae();Ie();Fr();s();wn();ae();s();s();var SI=require("react");s();s();s();ae();s();s();var dI=Y(require("bignumber.js"));se();ae();Ie();s();var fI=Y(require("bignumber.js"));se();s();var gI=require("@multiversx/sdk-core"),mI=Y(require("bignumber.js"));se();s();s();s();s();var zd=Y(require("axios"));s();s();s();function Vd(n){return G(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var qd=(n,o,i,u=0)=>G(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield Vd(o.delay)),yield qd(n,o,i,u+1)):null}}),Gi=(n,o={retries:5,delay:500})=>(...i)=>G(void 0,null,function*(){return yield qd(n,o,i)});var TI=4;var oW=Gi((n,o)=>G(void 0,null,function*(){let{data:i}=yield zd.default.get(`${n}/${nc}?from=${TI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();jo();s();s();var hI=Y(Kd());s();var Yd,hW={origin:typeof window!="undefined"?(Yd=window==null?void 0:window.location)==null?void 0:Yd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();tr();s();var Zd=require("react");s();s();var wI=require("react"),AI=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();In();s();var vI=require("react"),Xd=require("@multiversx/sdk-core");ae();s();var II=require("react"),_I=require("@multiversx/sdk-opera-provider");wn();Ce();de();In();s();var LI=require("react");wn();ae();s();s();s();Ea();s();s();var bI=Y(require("platform"));s();Ce();Ie();Fr();jn();Qn();s();s();s();s();s();s();s();s();s();s();de();s();Fr();jn();s();s();s();ae();s();s();var Jd=Y(require("axios"));function mc(n){return G(this,null,function*(){try{let{data:o}=yield Jd.default.get(`${n}/websocket/config`);return`wss://${o.url}`}catch(o){throw console.error(o),new Error("Can not get websocket url")}})}s();s();var Qd=require("react"),kI=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();In();s();var EI=require("react");s();var Tc=require("react"),RI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();In();s();var hc=require("react"),DI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();In();s();s();var jd=require("react");s();var ng=require("react");s();var Cn=require("react"),eg=require("socket.io-client");ae();s();var qt={current:null,status:"not_initialized"};var NI=3e3,OI=3,MI=500,FI=1e3;function tg(){let n=(0,Cn.useRef)(null),{address:o}=zr(),i=Ne(),{network:u}=ac(),m=y=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{i(Yp(y))},FI)},v=(0,Cn.useCallback)(Gi(()=>G(this,null,function*(){qt.status="pending";let y=yield mc(u.apiAddress);if(y==null){console.warn("Can not get websocket url");return}qt.current=(0,eg.io)(y,{forceNew:!0,reconnectionAttempts:OI,timeout:NI,query:{address:o}}),qt.status="completed",qt.current.onAny(k=>{m(k)})}),{retries:2,delay:MI}),[o]);(0,Cn.useEffect)(()=>{o&&qt.status==="not_initialized"&&!qt.current&&v()},[o,qt.current]),(0,Cn.useEffect)(()=>()=>{var y;(y=qt.current)==null||y.close(),n.current&&clearTimeout(n.current)},[])}function rg(n){tg();let o=te(Za);(0,ng.useEffect)(()=>{let i=o==null?void 0:o.message;i&&n(i)},[n,o])}s();s();s();var og=n=>n.dappModal,UI=R(og,n=>n.visible),Vi=R(og,n=>n.modal),X3=R(Vi,n=>n.showHeader),J3=R(Vi,n=>n.showFooter),Q3=R(Vi,n=>n.headerText),j3=R(Vi,n=>n.footerText);function BI(n){var m;let o=Md(),i=(m=n==null?void 0:n.getTransactionsByHash)!=null?m:Oi,u=()=>{o({shouldRefreshBalance:!0,getTransactionsByHash:i})};rg(u),(0,ig.useEffect)(()=>{let v=setInterval(u,3e4);return()=>{clearInterval(v)}},[u])}0&&(module.exports={useTransactionsTracker});
20
+ }`;var K=Yl(function(){return ee(p,D+"return "+L).apply(n,T)});if(K.source=L,na(K))throw K;return K}function lv(e){return ne(e).toLowerCase()}function pv(e){return ne(e).toUpperCase()}function fv(e,t,r){if(e=ne(e),e&&(r||t===n))return ru(e);if(!e||!(t=He(t)))return e;var a=ct(e),c=ct(t),p=ou(a,c),T=iu(a,c)+1;return tn(a,p,T).join("")}function dv(e,t,r){if(e=ne(e),e&&(r||t===n))return e.slice(0,au(e)+1);if(!e||!(t=He(t)))return e;var a=ct(e),c=iu(a,ct(t))+1;return tn(a,0,c).join("")}function gv(e,t,r){if(e=ne(e),e&&(r||t===n))return e.replace(ns,"");if(!e||!(t=He(t)))return e;var a=ct(e),c=ou(a,ct(t));return tn(a,c).join("")}function mv(e,t){var r=cg,a=ug;if(le(t)){var c="separator"in t?t.separator:c;r="length"in t?V(t.length):r,a="omission"in t?He(t.omission):a}e=ne(e);var p=e.length;if(Fn(e)){var T=ct(e);p=T.length}if(r>=p)return e;var h=r-Un(a);if(h<1)return a;var S=T?tn(T,0,h).join(""):e.slice(0,h);if(c===n)return S+a;if(T&&(h+=S.length-h),ra(c)){if(e.slice(h).search(c)){var _,b=S;for(c.global||(c=xs(c.source,ne(_c.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;S=S.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=S.lastIndexOf(c);C>-1&&(S=S.slice(0,C))}return S+a}function Tv(e){return e=ne(e),e&&Lg.test(e)?e.replace(wc,qm):e}var hv=Vn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),sa=Zu("toUpperCase");function Kl(e,t,r){return e=ne(e),t=r?n:t,t===n?Wm(e)?Ym(e):Pm(e):e.match(t)||[]}var Yl=Z(function(e,t){try{return Ge(e,n,t)}catch(r){return na(r)?r:new $(r)}}),yv=Dt(function(e,t){return Je(t,function(r){r=xt(r),Pt(e,r,ea(e[r],e))}),e});function xv(e){var t=e==null?0:e.length,r=M();return e=t?ue(e,function(a){if(typeof a[1]!="function")throw new Qe(m);return[r(a[0]),a[1]]}):[],Z(function(a){for(var c=-1;++c<t;){var p=e[c];if(Ge(p[0],this,a))return Ge(p[1],this,a)}})}function Sv(e){return qT(et(e,N))}function aa(e){return function(){return e}}function vv(e,t){return e==null||e!==e?t:e}var wv=Ju(),Av=Ju(!0);function Ue(e){return e}function ca(e){return Lu(typeof e=="function"?e:et(e,N))}function Iv(e){return ku(et(e,N))}function _v(e,t){return Cu(e,et(t,N))}var bv=Z(function(e,t){return function(r){return Ar(r,e,t)}}),Lv=Z(function(e,t){return function(r){return Ar(e,r,t)}});function ua(e,t,r){var a=we(t),c=Io(t,a);r==null&&!(le(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=Io(t,we(t)));var p=!(le(r)&&"chain"in r)||!!r.chain,T=Ot(e);return Je(c,function(h){var S=t[h];e[h]=S,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Oe(this.__actions__);return L.push({func:S,args:arguments,thisArg:e}),b.__chain__=_,b}return S.apply(e,Yt([this.value()],arguments))})}),e}function Ev(){return ve._===this&&(ve._=eT),this}function la(){}function kv(e){return e=V(e),Z(function(t){return Pu(t,e)})}var Cv=Gs(ue),Pv=Gs(Qc),Rv=Gs(fs);function Zl(e){return Ys(e)?ds(xt(e)):ch(e)}function Dv(e){return function(t){return e==null?n:gn(e,t)}}var Nv=ju(),Ov=ju(!0);function pa(){return[]}function fa(){return!1}function Mv(){return{}}function Fv(){return""}function Uv(){return!0}function Bv(e,t){if(e=V(e),e<1||e>zt)return[];var r=Tt,a=Ee(e,Tt);t=M(t),e-=Tt;for(var c=Ts(a,t);++r<e;)t(r);return c}function Wv(e){return H(e)?ue(e,xt):Ve(e)?[e]:Oe(ml(ne(e)))}function Gv(e){var t=++Qm;return ne(e)+t}var $v=Co(function(e,t){return e+t},0),Hv=$s("ceil"),Vv=Co(function(e,t){return e/t},1),qv=$s("floor");function zv(e){return e&&e.length?Ao(e,Ue,Ls):n}function Kv(e,t){return e&&e.length?Ao(e,M(t,2),Ls):n}function Yv(e){return tu(e,Ue)}function Zv(e,t){return tu(e,M(t,2))}function Xv(e){return e&&e.length?Ao(e,Ue,Ps):n}function Jv(e,t){return e&&e.length?Ao(e,M(t,2),Ps):n}var Qv=Co(function(e,t){return e*t},1),jv=$s("round"),e0=Co(function(e,t){return e-t},0);function t0(e){return e&&e.length?ms(e,Ue):0}function n0(e,t){return e&&e.length?ms(e,M(t,2)):0}return l.after=Ix,l.ary=bl,l.assign=pS,l.assignIn=Wl,l.assignInWith=Ho,l.assignWith=fS,l.at=dS,l.before=Ll,l.bind=ea,l.bindAll=yv,l.bindKey=El,l.castArray=Mx,l.chain=Al,l.chunk=qh,l.compact=zh,l.concat=Kh,l.cond=xv,l.conforms=Sv,l.constant=aa,l.countBy=tx,l.create=gS,l.curry=kl,l.curryRight=Cl,l.debounce=Pl,l.defaults=mS,l.defaultsDeep=TS,l.defer=_x,l.delay=bx,l.difference=Yh,l.differenceBy=Zh,l.differenceWith=Xh,l.drop=Jh,l.dropRight=Qh,l.dropRightWhile=jh,l.dropWhile=ey,l.fill=ty,l.filter=rx,l.flatMap=sx,l.flatMapDeep=ax,l.flatMapDepth=cx,l.flatten=xl,l.flattenDeep=ny,l.flattenDepth=ry,l.flip=Lx,l.flow=wv,l.flowRight=Av,l.fromPairs=oy,l.functions=AS,l.functionsIn=IS,l.groupBy=ux,l.initial=sy,l.intersection=ay,l.intersectionBy=cy,l.intersectionWith=uy,l.invert=bS,l.invertBy=LS,l.invokeMap=px,l.iteratee=ca,l.keyBy=fx,l.keys=we,l.keysIn=Fe,l.map=Fo,l.mapKeys=kS,l.mapValues=CS,l.matches=Iv,l.matchesProperty=_v,l.memoize=Bo,l.merge=PS,l.mergeWith=Gl,l.method=bv,l.methodOf=Lv,l.mixin=ua,l.negate=Wo,l.nthArg=kv,l.omit=RS,l.omitBy=DS,l.once=Ex,l.orderBy=dx,l.over=Cv,l.overArgs=kx,l.overEvery=Pv,l.overSome=Rv,l.partial=ta,l.partialRight=Rl,l.partition=gx,l.pick=NS,l.pickBy=$l,l.property=Zl,l.propertyOf=Dv,l.pull=dy,l.pullAll=vl,l.pullAllBy=gy,l.pullAllWith=my,l.pullAt=Ty,l.range=Nv,l.rangeRight=Ov,l.rearg=Cx,l.reject=hx,l.remove=hy,l.rest=Px,l.reverse=Qs,l.sampleSize=xx,l.set=MS,l.setWith=FS,l.shuffle=Sx,l.slice=yy,l.sortBy=Ax,l.sortedUniq=_y,l.sortedUniqBy=by,l.split=sv,l.spread=Rx,l.tail=Ly,l.take=Ey,l.takeRight=ky,l.takeRightWhile=Cy,l.takeWhile=Py,l.tap=zy,l.throttle=Dx,l.thru=Mo,l.toArray=Fl,l.toPairs=Hl,l.toPairsIn=Vl,l.toPath=Wv,l.toPlainObject=Bl,l.transform=US,l.unary=Nx,l.union=Ry,l.unionBy=Dy,l.unionWith=Ny,l.uniq=Oy,l.uniqBy=My,l.uniqWith=Fy,l.unset=BS,l.unzip=js,l.unzipWith=wl,l.update=WS,l.updateWith=GS,l.values=Kn,l.valuesIn=$S,l.without=Uy,l.words=Kl,l.wrap=Ox,l.xor=By,l.xorBy=Wy,l.xorWith=Gy,l.zip=$y,l.zipObject=Hy,l.zipObjectDeep=Vy,l.zipWith=qy,l.entries=Hl,l.entriesIn=Vl,l.extend=Wl,l.extendWith=Ho,ua(l,l),l.add=$v,l.attempt=Yl,l.camelCase=zS,l.capitalize=ql,l.ceil=Hv,l.clamp=HS,l.clone=Fx,l.cloneDeep=Bx,l.cloneDeepWith=Wx,l.cloneWith=Ux,l.conformsTo=Gx,l.deburr=zl,l.defaultTo=vv,l.divide=Vv,l.endsWith=KS,l.eq=lt,l.escape=YS,l.escapeRegExp=ZS,l.every=nx,l.find=ox,l.findIndex=hl,l.findKey=hS,l.findLast=ix,l.findLastIndex=yl,l.findLastKey=yS,l.floor=qv,l.forEach=Il,l.forEachRight=_l,l.forIn=xS,l.forInRight=SS,l.forOwn=vS,l.forOwnRight=wS,l.get=oa,l.gt=$x,l.gte=Hx,l.has=_S,l.hasIn=ia,l.head=Sl,l.identity=Ue,l.includes=lx,l.indexOf=iy,l.inRange=VS,l.invoke=ES,l.isArguments=hn,l.isArray=H,l.isArrayBuffer=Vx,l.isArrayLike=Me,l.isArrayLikeObject=me,l.isBoolean=qx,l.isBuffer=nn,l.isDate=zx,l.isElement=Kx,l.isEmpty=Yx,l.isEqual=Zx,l.isEqualWith=Xx,l.isError=na,l.isFinite=Jx,l.isFunction=Ot,l.isInteger=Dl,l.isLength=Go,l.isMap=Nl,l.isMatch=Qx,l.isMatchWith=jx,l.isNaN=eS,l.isNative=tS,l.isNil=rS,l.isNull=nS,l.isNumber=Ol,l.isObject=le,l.isObjectLike=fe,l.isPlainObject=kr,l.isRegExp=ra,l.isSafeInteger=oS,l.isSet=Ml,l.isString=$o,l.isSymbol=Ve,l.isTypedArray=zn,l.isUndefined=iS,l.isWeakMap=sS,l.isWeakSet=aS,l.join=ly,l.kebabCase=XS,l.last=nt,l.lastIndexOf=py,l.lowerCase=JS,l.lowerFirst=QS,l.lt=cS,l.lte=uS,l.max=zv,l.maxBy=Kv,l.mean=Yv,l.meanBy=Zv,l.min=Xv,l.minBy=Jv,l.stubArray=pa,l.stubFalse=fa,l.stubObject=Mv,l.stubString=Fv,l.stubTrue=Uv,l.multiply=Qv,l.nth=fy,l.noConflict=Ev,l.noop=la,l.now=Uo,l.pad=jS,l.padEnd=ev,l.padStart=tv,l.parseInt=nv,l.random=qS,l.reduce=mx,l.reduceRight=Tx,l.repeat=rv,l.replace=ov,l.result=OS,l.round=jv,l.runInContext=x,l.sample=yx,l.size=vx,l.snakeCase=iv,l.some=wx,l.sortedIndex=xy,l.sortedIndexBy=Sy,l.sortedIndexOf=vy,l.sortedLastIndex=wy,l.sortedLastIndexBy=Ay,l.sortedLastIndexOf=Iy,l.startCase=av,l.startsWith=cv,l.subtract=e0,l.sum=t0,l.sumBy=n0,l.template=uv,l.times=Bv,l.toFinite=Mt,l.toInteger=V,l.toLength=Ul,l.toLower=lv,l.toNumber=rt,l.toSafeInteger=lS,l.toString=ne,l.toUpper=pv,l.trim=fv,l.trimEnd=dv,l.trimStart=gv,l.truncate=mv,l.unescape=Tv,l.uniqueId=Gv,l.upperCase=hv,l.upperFirst=sa,l.each=Il,l.eachRight=_l,l.first=Sl,ua(l,function(){var e={};return ht(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){J.prototype[e]=function(r){r=r===n?1:Se(V(r),0);var a=this.__filtered__&&!t?new J(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,Tt),type:e+(a.__dir__<0?"Right":"")}),a},J.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Je(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==xc||r==dg;J.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:M(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Je(["head","last"],function(e,t){var r="take"+(t?"Right":"");J.prototype[e]=function(){return this[r](1).value()[0]}}),Je(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");J.prototype[e]=function(){return this.__filtered__?new J(this):this[r](1)}}),J.prototype.compact=function(){return this.filter(Ue)},J.prototype.find=function(e){return this.filter(e).head()},J.prototype.findLast=function(e){return this.reverse().find(e)},J.prototype.invokeMap=Z(function(e,t){return typeof e=="function"?new J(this):this.map(function(r){return Ar(r,e,t)})}),J.prototype.reject=function(e){return this.filter(Wo(M(e)))},J.prototype.slice=function(e,t){e=V(e);var r=this;return r.__filtered__&&(e>0||t<0)?new J(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)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(Tt)},ht(J.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,S=T instanceof J,_=h[0],b=S||H(T),L=function(X){var Q=c.apply(l,Yt([X],h));return a&&C?Q[0]:Q};b&&r&&typeof _=="function"&&_.length!=1&&(S=b=!1);var C=this.__chain__,D=!!this.__actions__.length,U=p&&!C,K=S&&!D;if(!p&&b){T=K?T:new J(this);var B=e.apply(T,h);return B.__actions__.push({func:Mo,args:[L],thisArg:n}),new je(B,C)}return U&&K?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=ao[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)})}}),ht(J.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Gn,a)||(Gn[a]=[]),Gn[a].push({name:t,func:r})}}),Gn[ko(n,_e).name]=[{name:"wrapper",func:n}],J.prototype.clone=TT,J.prototype.reverse=hT,J.prototype.value=yT,l.prototype.at=Ky,l.prototype.chain=Yy,l.prototype.commit=Zy,l.prototype.next=Xy,l.prototype.plant=Qy,l.prototype.reverse=jy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=ex,l.prototype.first=l.prototype.head,Tr&&(l.prototype[Tr]=Jy),l},Xt=Zm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=Xt,define(function(){return Xt})):un?((un.exports=Xt)._=Xt,cs._=Xt):ve._=Xt}).call(ir)});var $I={};yn($I,{useTransactionsTracker:()=>GI});module.exports=Rr($I);s();var ag=require("react");s();s();var HA=Y(require("axios"));s();s();ae();s();var vf=Y(require("lodash.isequal")),vi=require("reselect");Ie();var R=(0,vi.createSelectorCreator)(vi.defaultMemoize,vf.default),Wr=(n,o)=>n!=""&&Boolean(o);var $t=n=>n.account,En=R($t,n=>n.address),nr=R($t,En,(n,o)=>o in n.accounts?n.accounts[o]:ei),ww=R($t,nr,(n,o)=>{let m=n,{accounts:i}=m,u=qo(m,["accounts"]);return j(O({},u),{account:o})}),Aw=R(nr,n=>n.balance),wf=R(nr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),IL=R($t,n=>n.shard),Iw=R($t,n=>n.ledgerAccount),_L=R($t,n=>n.walletConnectAccount),bL=R($t,n=>n.isAccountLoading),LL=R($t,n=>n.accountLoadingError),Za=R($t,n=>n.websocketEvent);s();var ft=n=>n.loginInfo,PL=R(ft,n=>n.loginMethod),wi=R(ft,En,(n,o)=>Wr(n.loginMethod,o)),RL=R(ft,n=>n.walletConnectLogin),DL=R(ft,n=>n.ledgerLogin),Af=R(ft,n=>n.walletLogin),NL=R(ft,n=>n.isLoginSessionInvalid),_w=R(ft,n=>n.tokenLogin),OL=R(ft,n=>n.logoutRoute);s();var If=n=>n.modals,UL=R(If,n=>n.txSubmittedModal),bw=R(If,n=>n.notificationModal);s();var bt=n=>n.networkConfig,Ai=R(bt,n=>n.chainID),Lw=R(bt,n=>n.network.walletConnectBridgeAddress),Ew=R(bt,n=>n.network.walletConnectV2RelayAddress),kw=R(bt,n=>n.network.walletConnectV2ProjectId),Cw=R(bt,n=>n.network.walletConnectV2Options),_f=R(bt,n=>n.network.walletConnectDeepLink),on=R(bt,n=>n.network),Ii=R(on,n=>n.apiAddress),bf=R(on,n=>n.explorerAddress),Lf=R(on,n=>n.egldLabel);s();var Xa=n=>n.signedMessageInfo,HL=R(Xa,n=>n.isSigning),VL=R(Xa,n=>n.errorMessage),qL=R(Xa,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Ja=n=>n.toasts,YL=R(Ja,n=>n.customToasts),ZL=R(Ja,n=>n.transactionToasts),XL=R(Ja,n=>n.failTransactionToast);s();ae();var Ef={errorMessage:Ha,successMessage:Va,processingMessage:qa},Pw=n=>n.transactionsInfo,Rw=R(Pw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Ef);s();s();var Ye=require("@multiversx/sdk-core");se();s();function Qa(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function _i(n){var m,v,y;let{data:o}=n,i=Qa(o!=null?o:"")?Ye.TransactionPayload.fromEncoded(o):new Ye.TransactionPayload(o),u=new Ye.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Ye.Address(n.receiver),sender:new Ye.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Dr,gasPrice:(v=n.gasPrice.valueOf())!=null?v:Jo,chainID:n.chainID.valueOf(),version:new Ye.TransactionVersion((y=n.version)!=null?y:Mp)},n.options?{options:new Ye.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Ye.Address(n.sender)),u}s();s();s();s();var tc=require("@reduxjs/toolkit"),jf=require("react-redux/lib/utils/Subscription");ae();s();var kf=Y(require("lodash.throttle"));se();ae();Ma();jn();Qn();var Dw=[Qo],bi=!1,Nw=(0,kf.default)(()=>{Mr(Or())},5e3),Cf=n=>o=>i=>{var E;if(Dw.includes(i.type))return o(i);let u=n.getState(),m=An.local.getItem(rn.loginExpiresAt);if(!Wr((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 Mr(Or());let y=Date.now();return m-y<0&&!bi?setTimeout(()=>{bi=!0,n.dispatch(jp())},1e3):(bi&&(bi=!1),Nw()),o(i)};s();s();function Li(){return typeof sessionStorage!="undefined"}var Xf=Li()?(Gf(),Rr(Wf)).default:(Hf(),Rr($f)).default,Jf=Li()?(qf(),Rr(Vf)).default:[],Qf=Li()?(Zf(),Rr(Yf)).default:n=>n;Ei();var q=(0,tc.configureStore)({reducer:Xf,middleware:n=>n({serializableCheck:{ignoredActions:[...Jf,Oa.type,ti.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Cf)}),ed=(0,jf.createSubscription)(q),jE=Qf(q),e1=(0,tc.configureStore)({reducer:kn});s();s();var rA=require("@multiversx/sdk-core/out");s();se();s();var nd=require("@multiversx/sdk-core");Ie();s();var td=require("@multiversx/sdk-core");function oA(n){try{let o=new td.Address(n);return Boolean(o.bech32())}catch(o){return!1}}function $r(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&oA(n)}s();s();s();var sA=require("@multiversx/sdk-core"),aA=Y(require("bignumber.js"));de();s();s();s();s();s();var ki="accounts";var nc="blocks";s();s();s();s();We();s();s();We();s();s();s();var mA=Y(require("bignumber.js"));se();s();var gA=require("@multiversx/sdk-core"),rc=Y(require("bignumber.js"));se();s();var fA=Y(require("bignumber.js"));s();rc.default.config({ROUNDING_MODE:rc.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var TA=require("@multiversx/sdk-core");se();s();var Hr=require("@multiversx/sdk-core"),xA=require("@multiversx/sdk-network-providers");se();s();s();var hA=Y(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();We();var vA=["reDelegateRewards","claimRewards","unBond"],wA=["wrapEgld","unwrapEgld"],AA=["unStake"],IA=["unDelegate"];s();s();s();se();s();var EA=Y(require("bignumber.js"));s();s();s();s();We();s();var kA=Y(require("bignumber.js"));s();s();s();var RA=Y(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();We();s();s();s();var DA=Y(require("linkifyjs"));s();se();s();var NA=Y(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();We();s();We();s();var OA=Y(require("bignumber.js"));se();We();s();We();s();var pd=require("react");Ie();s();s();We();s();s();var MA=require("@multiversx/sdk-core/out"),FA=Y(require("bignumber.js"));We();s();Ie();s();s();Ie();var bD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var fd=require("react");Ie();s();var BA=require("react");We();var DD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];tr();var Di=n=>n.transactions,rr=R(Di,n=>n.signedTransactions),WA=R(Di,n=>n.signTransactionsError),dd=R(Di,n=>n.signTransactionsCancelMessage),Ni=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),ic=R(rr,Ni(Gt)),gd=R(rr,Ni(bn)),md=R(rr,Ni(Ln)),GA=R(rr,Ni(Ka)),Td=R(Di,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:j(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>_i(i)))||[]})}),$A=R(rr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var hd=Y(require("axios"));function Oi(n){return G(this,null,function*(){let o=Ii(q.getState()),i=n.map(m=>m.hash),{data:u}=yield hd.default.get(`${o}/transactions`,{params:{hashes:i.join(","),withScResults:!0}});return n.map(({hash:m,previousStatus:v})=>{let y=u.find(k=>(k==null?void 0:k.txHash)===m);return{hash:m,data:y==null?void 0:y.data,invalidTransaction:y==null,status:y==null?void 0:y.status,results:y==null?void 0:y.results,sender:y==null?void 0:y.sender,receiver:y==null?void 0:y.receiver,previousStatus:v,hasStatusChanged:y&&y.status!==v}})})}s();var qA=Y(require("axios"));s();s();var zA=Y(require("axios"));s();var KA=Y(require("axios"));s();s();s();s();var xd=require("react"),or=require("react-redux");var YA={store:q,subscription:ed},sc=(0,xd.createContext)(YA),jN=(0,or.createStoreHook)(sc),Ne=(0,or.createDispatchHook)(sc),te=(0,or.createSelectorHook)(sc);var ac=()=>te(bt);s();var Sd=require("react");s();ae();s();s();s();s();function cc(){let n=te(ic),o=Object.entries(n),i=(o==null?void 0:o.length)>0;return{pendingTransactions:n,pendingTransactionsArray:o,hasPendingTransactions:i}}s();s();s();s();var vd=require("@multiversx/sdk-extension-provider"),wd=require("@multiversx/sdk-hw-provider"),Ad=require("@multiversx/sdk-opera-provider"),Id=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),_d=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),bd=require("@multiversx/sdk-web-wallet-provider");se();de();var Vr=n=>{switch(n==null?void 0:n.constructor){case bd.WalletProvider:return"wallet";case Id.WalletConnectProvider:return"walletconnect";case _d.WalletConnectV2Provider:return"walletconnectv2";case wd.HWProvider:return"ledger";case vd.ExtensionProvider:return"extension";case Ad.OperaProvider:return"opera";case Mi:return"";default:return"extra"}};var Ht=n=>`Unable to perform ${n}, Provider not initialized`,Mi=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)}},uc=new Mi;var ZA=uc;function dt(){return ZA||uc}ae();s();s();var Ed=Y(require("axios"));s();s();var Ld=n=>{let o=n!=null?n:Ii(q.getState());return o.endsWith("/")?o.slice(0,-1):o};function kd(n){return G(this,null,function*(){if(!n)return null;let i=`${Ld()}/${ki}/${n}`;try{let{data:u}=yield Ed.default.get(i);return u}catch(u){console.error("error fetching configuration for ",i)}return null})}function qr(n){return G(this,null,function*(){return yield kd(n)})}s();de();s();s();function Cd(){let n=dt();return Vr(n)}function Vt(n){return Cd()===n}function Fi(){let n=window==null?void 0:window.location.search,o=q.getState(),i=dt(),u=En(o),m=wi(o),v=Af(o);if(!i)throw"provider not initialized";return Vt("ledger")&&m?new Promise(y=>{y(u)}):!Vt("")&&!Vt("wallet")&&!Vt("extra")?i.getAddress():new Promise(y=>{if(v!=null){let k=new URLSearchParams(n),E=Object.fromEntries(k);$r(E.address)&&y(E.address)}m&&y(u),y("")})}s();function Ui(n){let o=q.getState(),i=wf(o);return n?i&&!isNaN(i)?Math.max(i,n.nonce):n.nonce:i}var Pd=()=>G(void 0,null,function*(){try{let n=yield Fi();try{let o=yield qr(n);if(o!=null){let i=j(O({},o),{nonce:Ui(o)});return q.dispatch(ti(i)),i}}catch(o){console.error("Failed getting account ",o)}}catch(n){console.error("Failed getting address ",n)}return null});function Bi(){return G(this,null,function*(){let n=dt();if(n==null)throw"Provider not initialized";if(!n.isInitialized||n.isInitialized())return Pd();try{if(!n.init)throw"Current provider does not have init() function";return(yield n.init())?Pd():void 0}catch(o){console.error("Failed initializing provider ",o)}})}tr();s();ae();de();s();s();ae();s();s();var Rd=require("@multiversx/sdk-core");s();Ce();Ie();s();tr();function Dd(n,o){return n.reduce((u,{status:m,hash:v})=>(v!=null&&!o.includes(v)&&Gt(m)&&u.push({hash:v,previousStatus:m}),u),[])}s();ae();de();function Nd({results:n,hash:o,sessionId:i}){let u=n==null?void 0:n.find(m=>(m==null?void 0:m.returnMessage)!=="");q.dispatch(Br({transactionHash:o,sessionId:i,status:"fail",errorMessage:u==null?void 0:u.returnMessage})),q.dispatch(Ti({sessionId:i,status:"fail",errorMessage:u==null?void 0:u.returnMessage}))}s();ae();Ie();function lc(n){q.dispatch(Ti({sessionId:n,status:"timedOut"}))}var Wi={},pc=[];function XA({serverTransaction:n,sessionId:o,customTransactionInformation:i,shouldRefreshBalance:u}){let{hash:m,status:v,results:y,invalidTransaction:k,hasStatusChanged:E}=n;try{if(pc.includes(m))return;if(Wi[m]>30){lc(o);return}if(k||Gt(v)){Wi[m]=Wi[m]?Wi[m]+1:1;return}E&&(bn(v)&&(i==null?void 0:i.completedTransactionsDelay)!=null?(pc.push(m),setTimeout(()=>q.dispatch(Br({sessionId:o,status:"success",transactionHash:m})),i==null?void 0:i.completedTransactionsDelay)):q.dispatch(Br({sessionId:o,status:v,transactionHash:m}))),u||Bi(),Ln(v)&&Nd({sessionId:o,hash:m,results:y})}catch(N){console.error(N),lc(o)}}function Od(v){return G(this,arguments,function*({sessionId:n,transactionBatch:{transactions:o,customTransactionInformation:i},getTransactionsByHash:u=Oi,shouldRefreshBalance:m}){try{if(o==null)return;let y=Dd(o,pc),k=yield u(y);for(let E of k)XA({serverTransaction:E,sessionId:n,customTransactionInformation:i,shouldRefreshBalance:m})}catch(y){console.error(y)}})}function Md(){let{pendingTransactionsArray:n}=cc();function o(i){return G(this,null,function*(){let u=n.filter(([m,v])=>m!=null&&Gt(v.status));if(u.length>0)for(let[m,v]of u)yield Od(O({sessionId:m,transactionBatch:v},i));i.shouldRefreshBalance&&Bi()})}return o}s();s();s();Ie();s();s();s();s();var JA=Y(require("axios")),QA=Y(require("swr"));s();s();var Fd=require("react");s();var tI=require("react"),Wd=require("@multiversx/sdk-web-wallet-provider"),nI=Y(require("qs"));se();ae();de();s();s();var Ud,PF={search:(Ud=window==null?void 0:window.location)==null?void 0:Ud.search,removeParams:[]};s();var Gd=require("react");Ua();s();var qd=require("react"),pI=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var Vd=require("react"),aI=require("@multiversx/sdk-extension-provider");se();s();s();s();var zr=()=>te(nr);s();s();s();s();s();var Kr=Y(require("react"));var wU=(0,Kr.createContext)({}),AU=q.getState();s();var Hd=Y(require("react"));s();var fc=Y(require("react")),oI=Y(require("axios"));s();s();ae();s();s();var fI=Y(require("axios"));ae();Ie();Fr();s();wn();ae();s();s();var wI=require("react");s();s();s();ae();s();s();var mI=Y(require("bignumber.js"));se();ae();Ie();s();var gI=Y(require("bignumber.js"));se();s();var TI=require("@multiversx/sdk-core"),hI=Y(require("bignumber.js"));se();s();s();s();s();var Yd=Y(require("axios"));s();s();s();function zd(n){return G(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Kd=(n,o,i,u=0)=>G(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield zd(o.delay)),yield Kd(n,o,i,u+1)):null}}),Gi=(n,o={retries:5,delay:500})=>(...i)=>G(void 0,null,function*(){return yield Kd(n,o,i)});var yI=4;var dW=Gi((n,o)=>G(void 0,null,function*(){let{data:i}=yield Yd.default.get(`${n}/${nc}?from=${yI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();jo();s();s();var xI=Y(Zd());s();var Xd,bW={origin:typeof window!="undefined"?(Xd=window==null?void 0:window.location)==null?void 0:Xd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();tr();s();var Jd=require("react");s();s();var II=require("react"),_I=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();In();s();var AI=require("react"),Qd=require("@multiversx/sdk-core");ae();s();var bI=require("react"),LI=require("@multiversx/sdk-opera-provider");wn();Ce();de();In();s();var kI=require("react");wn();ae();s();s();Ea();s();s();var EI=Y(require("platform"));s();Ce();Ie();Fr();jn();Qn();s();s();s();s();s();s();s();s();s();de();s();Fr();jn();s();s();s();ae();s();s();var jd=Y(require("axios"));function mc(n){return G(this,null,function*(){try{let{data:o}=yield jd.default.get(`${n}/websocket/config`);return`wss://${o.url}`}catch(o){throw console.error(o),new Error("Can not get websocket url")}})}s();s();var eg=require("react"),PI=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();In();s();var CI=require("react");s();var Tc=require("react"),NI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();In();s();var hc=require("react"),OI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();In();s();s();var tg=require("react");s();var og=require("react");s();var Cn=require("react"),ng=require("socket.io-client");ae();s();var qt={current:null,status:"not_initialized"};var MI=3e3,FI=3,UI=500,BI=1e3;function rg(){let n=(0,Cn.useRef)(null),{address:o}=zr(),i=Ne(),{network:u}=ac(),m=y=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{i(Yp(y))},BI)},v=(0,Cn.useCallback)(Gi(()=>G(this,null,function*(){qt.status="pending";let y=yield mc(u.apiAddress);if(y==null){console.warn("Can not get websocket url");return}qt.current=(0,ng.io)(y,{forceNew:!0,reconnectionAttempts:FI,timeout:MI,query:{address:o}}),qt.status="completed",qt.current.onAny(k=>{m(k)})}),{retries:2,delay:UI}),[o]);(0,Cn.useEffect)(()=>{o&&qt.status==="not_initialized"&&!qt.current&&v()},[o,qt.current]),(0,Cn.useEffect)(()=>()=>{var y;(y=qt.current)==null||y.close(),n.current&&clearTimeout(n.current)},[])}function ig(n){rg();let o=te(Za);(0,og.useEffect)(()=>{let i=o==null?void 0:o.message;i&&n(i)},[n,o])}s();s();s();var sg=n=>n.dappModal,WI=R(sg,n=>n.visible),Vi=R(sg,n=>n.modal),t6=R(Vi,n=>n.showHeader),n6=R(Vi,n=>n.showFooter),r6=R(Vi,n=>n.headerText),o6=R(Vi,n=>n.footerText);function GI(n){var m;let o=Md(),i=(m=n==null?void 0:n.getTransactionsByHash)!=null?m:Oi,u=()=>{o({shouldRefreshBalance:!0,getTransactionsByHash:i})};ig(u),(0,ag.useEffect)(()=>{let v=setInterval(u,3e4);return()=>{clearInterval(v)}},[u])}0&&(module.exports={useTransactionsTracker});
21
21
  /*!
22
22
  * The buffer module from node.js, for the browser.
23
23
  *