@multiversx/sdk-dapp 2.10.10 → 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 (209) 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-HAEPPCYL.js → chunk-45ARMIIV.js} +2 -2
  60. package/__chunks__/{chunk-MOP2PGBR.js → chunk-4AY436A3.js} +2 -2
  61. package/__chunks__/chunk-64WNNRH3.js +2 -0
  62. package/__chunks__/{chunk-FMROZJCR.js → chunk-AAQSGHFG.js} +2 -2
  63. package/__chunks__/{chunk-WOVYNC3H.js → chunk-AGGHZD2X.js} +2 -2
  64. package/__chunks__/{chunk-MDKCK2U5.js → chunk-BUAPQSLE.js} +2 -2
  65. package/__chunks__/{chunk-SX6GHX6H.js → chunk-D6K2SNBC.js} +2 -2
  66. package/__chunks__/{chunk-6CAJ2NNC.js → chunk-HO5YNQLL.js} +2 -2
  67. package/__chunks__/{chunk-VZX4SOAF.js → chunk-HOF5K2JI.js} +2 -2
  68. package/__chunks__/chunk-I5KWE6U5.js +2 -0
  69. package/__chunks__/{chunk-6U5ZKZIN.js → chunk-IHUJVHF6.js} +2 -2
  70. package/__chunks__/{chunk-MLIXWSWL.js → chunk-IVVW25DH.js} +2 -2
  71. package/__chunks__/{chunk-DN3FBQHS.js → chunk-M2A6EX5R.js} +2 -2
  72. package/__chunks__/{chunk-E4EQIILV.js → chunk-MGZU5WBA.js} +2 -2
  73. package/__chunks__/{chunk-WWUS4U72.js → chunk-OM6IXIGK.js} +2 -2
  74. package/__chunks__/{chunk-WNKZRRCU.js → chunk-RT6D3JZM.js} +2 -2
  75. package/__chunks__/chunk-WISK7MIJ.js +2 -0
  76. package/__chunks__/chunk-XXEMCYU3.js +2 -0
  77. package/__chunks__/{chunk-XZCNMRIW.js → chunk-YSWO56CP.js} +2 -2
  78. package/__chunks__/{chunk-A3ANJRRQ.js → chunk-YUXJXHBM.js} +2 -2
  79. package/__chunks__/chunk-ZRLJX7WH.js +2 -0
  80. package/__commonjs/UI/DappModal/hooks/index.js +5 -5
  81. package/__commonjs/UI/DappModal/hooks/useDappModal.js +5 -5
  82. package/__commonjs/UI/DappModal/index.js +9 -9
  83. package/__commonjs/UI/ModalContainer/ModalContainer.js +7 -7
  84. package/__commonjs/UI/ModalContainer/index.js +7 -7
  85. package/__commonjs/UI/NotificationModal/index.js +8 -8
  86. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +26 -26
  87. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +9 -9
  88. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +11 -11
  89. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +9 -9
  90. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  91. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +11 -11
  92. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +9 -9
  93. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +9 -9
  94. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +19 -19
  95. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +19 -19
  96. package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +14 -14
  97. package/__commonjs/UI/SignTransactionsModals/components/index.js +18 -18
  98. package/__commonjs/UI/SignTransactionsModals/index.js +26 -26
  99. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +40 -40
  100. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +6 -6
  101. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +6 -6
  102. package/__commonjs/UI/TransactionInfo/components/index.js +41 -41
  103. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +7 -7
  104. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +7 -7
  105. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +37 -37
  106. package/__commonjs/UI/TransactionInfo/index.js +41 -41
  107. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +18 -18
  108. package/__commonjs/UI/TransactionsTable/index.js +18 -18
  109. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +18 -18
  110. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +13 -13
  111. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +13 -13
  112. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +13 -13
  113. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +11 -11
  114. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +11 -11
  115. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +13 -13
  116. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +13 -13
  117. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +13 -13
  118. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +13 -13
  119. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +13 -13
  120. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +6 -6
  121. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +13 -13
  122. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +13 -13
  123. package/__commonjs/UI/TransactionsToastList/components/index.js +18 -18
  124. package/__commonjs/UI/TransactionsToastList/index.js +18 -18
  125. package/__commonjs/UI/index.js +71 -71
  126. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +24 -24
  127. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +8 -8
  128. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +6 -6
  129. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +22 -22
  130. package/__commonjs/UI/ledger/index.js +24 -24
  131. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +7 -7
  132. package/__commonjs/UI/pages/UnlockPage/index.js +26 -26
  133. package/__commonjs/UI/pages/index.js +26 -26
  134. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +13 -13
  135. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +10 -10
  136. package/__commonjs/UI/walletConnect/index.js +13 -13
  137. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +7 -7
  138. package/__commonjs/__mocks__/index.js +5 -5
  139. package/__commonjs/__mocks__/utils/index.js +11 -11
  140. package/__commonjs/__mocks__/utils/renderWithProvider.js +11 -11
  141. package/__commonjs/components/LogoutListener/LogoutListener.js +5 -5
  142. package/__commonjs/components/LogoutListener/helpers/index.js +5 -5
  143. package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +5 -5
  144. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +5 -5
  145. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +5 -5
  146. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +5 -5
  147. package/__commonjs/components/LogoutListener/index.js +5 -5
  148. package/__commonjs/components/ProviderInitializer.js +11 -11
  149. package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +14 -14
  150. package/__commonjs/components/TransactionsTracker/TransactionTracker.js +5 -5
  151. package/__commonjs/components/TransactionsTracker/index.js +5 -5
  152. package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +5 -5
  153. package/__commonjs/hooks/index.js +7 -7
  154. package/__commonjs/hooks/login/index.js +5 -5
  155. package/__commonjs/hooks/login/useLedgerLogin.js +5 -5
  156. package/__commonjs/hooks/login/useWebWalletLogin.js +5 -5
  157. package/__commonjs/hooks/signMessage/index.js +1 -1
  158. package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
  159. package/__commonjs/hooks/transactions/index.js +11 -11
  160. package/__commonjs/hooks/transactions/useParseSignedTransactions.js +1 -1
  161. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  162. package/__commonjs/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  163. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  164. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  165. package/__commonjs/utils/index.js +3 -3
  166. package/__commonjs/utils/parseNavigationParams.js +1 -1
  167. package/__commonjs/wrappers/DappProvider/CustomComponents.js +5 -5
  168. package/__commonjs/wrappers/DappProvider/index.js +11 -11
  169. package/__commonjs/wrappers/index.js +5 -5
  170. package/__mocks__/index.js +1 -1
  171. package/__mocks__/utils/index.js +1 -1
  172. package/__mocks__/utils/renderWithProvider.js +1 -1
  173. package/components/LogoutListener/LogoutListener.js +1 -1
  174. package/components/LogoutListener/helpers/index.js +1 -1
  175. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  176. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  177. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  178. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  179. package/components/LogoutListener/index.js +1 -1
  180. package/components/ProviderInitializer.js +1 -1
  181. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  182. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  183. package/components/TransactionsTracker/index.js +1 -1
  184. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  185. package/hooks/index.js +1 -1
  186. package/hooks/login/index.js +1 -1
  187. package/hooks/login/useLedgerLogin.js +1 -1
  188. package/hooks/login/useWebWalletLogin.js +1 -1
  189. package/hooks/signMessage/index.js +1 -1
  190. package/hooks/signMessage/useSignMessage.js +1 -1
  191. package/hooks/transactions/index.js +1 -1
  192. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  193. package/hooks/transactions/useSignTransactions.js +1 -1
  194. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  195. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  196. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  197. package/package.json +1 -1
  198. package/utils/index.js +1 -1
  199. package/utils/parseNavigationParams.d.ts +12 -1
  200. package/utils/parseNavigationParams.js +1 -1
  201. package/utils/tests/parseNavigationParams.test.d.ts +2 -0
  202. package/wrappers/DappProvider/CustomComponents.js +1 -1
  203. package/wrappers/DappProvider/index.js +1 -1
  204. package/wrappers/index.js +1 -1
  205. package/__chunks__/chunk-BJELQMZG.js +0 -2
  206. package/__chunks__/chunk-D35V4POU.js +0 -2
  207. package/__chunks__/chunk-R2TK2Z7D.js +0 -2
  208. package/__chunks__/chunk-UKZ3QJNI.js +0 -2
  209. package/__chunks__/chunk-YC54AOOW.js +0 -2
@@ -1,7 +1,7 @@
1
- "use strict";var n0=Object.create;var Cr=Object.defineProperty,r0=Object.defineProperties,o0=Object.getOwnPropertyDescriptor,i0=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertyNames,Vo=Object.getOwnPropertySymbols,a0=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)=>r0(n,i0(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 s0(o))!da.call(n,m)&&m!==i&&Cr(n,m,{get:()=>o[m],enumerable:!(u=o0(o,m))||u.enumerable});return n};var Y=(n,o,i)=>(i=n!=null?n0(a0(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=u0;zo.toByteArray=p0;zo.fromByteArray=g0;var St=[],ot=[],c0=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 u0(n){var o=tp(n),i=o[0],u=o[1];return(i+u)*3/4-u}function l0(n,o,i){return(o+i)*3/4-i}function p0(n){var o,i=tp(n),u=i[0],m=i[1],v=new c0(l0(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 f0(n){return St[n>>18&63]+St[n>>12&63]+St[n>>6&63]+St[n&63]}function d0(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(f0(u));return m.join("")}function g0(n){for(var o,i=n.length,u=i%3,m=[],v=16383,y=0,k=i-u;y<k;y+=v)m.push(d0(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=S0;Zn.INSPECT_MAX_BYTES=50;var Ko=2147483647;Zn.kMaxLength=Ko;I.TYPED_ARRAY_SUPPORT=m0();!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 m0(){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 h0(n,o);if(ArrayBuffer.isView(n))return y0(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=x0(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 T0(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 T0(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 h0(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 y0(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 x0(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 S0(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 v0(n,o,i){var u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(n||(n="utf8");;)switch(n){case"hex":return P0(this,o,i);case"utf8":case"utf-8":return pp(this,o,i);case"ascii":return k0(this,o,i);case"latin1":case"binary":return C0(this,o,i);case"base64":return L0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R0(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):v0.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 w0(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 A0(n,o,i,u){return Yo(xa(o,n.length-i),n,i,u)}function I0(n,o,i,u){return Yo(O0(o),n,i,u)}function _0(n,o,i,u){return Yo(mp(o),n,i,u)}function b0(n,o,i,u){return Yo(M0(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 w0(this,o,i,u);case"utf8":case"utf-8":return A0(this,o,i,u);case"ascii":case"latin1":case"binary":return I0(this,o,i,u);case"base64":return _0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b0(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 L0(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 E0(u)}var sp=4096;function E0(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 k0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]&127);return u}function C0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]);return u}function P0(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+=F0[n[v]];return m}function R0(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 D0=/[^+/0-9A-Za-z-_]/g;function N0(n){if(n=n.split("=")[0],n=n.trim().replace(D0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function 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 O0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function M0(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(N0(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 F0=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((zI,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 U0(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 B0(){!Xn||!vn||(Xn=!1,vn.length?Bt=vn.concat(Bt):Zo=-1,Bt.length&&yp())}function yp(){if(!Xn){var n=hp(B0);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,U0(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,W0,f,s=W(()=>{d=Y(Tp()),g=Y(vp()),W0=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=W0});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,p_,Cp,f_,Pp,d_,g_,m_,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:p_}=_a["devnet"],{chainId:Cp,egldLabel:f_}=_a["testnet"],{chainId:Pp,egldLabel:d_}=_a["mainnet"],g_={["devnet"]:kp,["testnet"]:Cp,["mainnet"]:Pp},m_={[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:()=>$0,localStorageKeys:()=>rn,removeItem:()=>H0,setItem:()=>G0});var rn,ka,G0,$0,H0,Qn=W(()=>{"use strict";s();Ea();rn={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ka=typeof localStorage!="undefined",G0=({key:n,data:o,expires:i})=>{!ka||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},$0=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},H0=n=>{!ka||localStorage.removeItem(String(n))}});var Pa={};yn(Pa,{clear:()=>Hp,getItem:()=>Gp,removeItem:()=>$p,setItem:()=>Wp,storage:()=>V0});var Wp,Gp,$p,Hp,V0,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(),V0={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,K_,Oa,Y_,q0,z0,Z_,X_,J_,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:K_,setAccountNonce:Oa,setAccountShard:Y_,setLedgerAccount:q0,updateLedgerAccount:z0,setWalletConnectAccount:Z_,setIsAccountLoading:X_,setAccountLoadingError:J_,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,ab,Qp,K0,Y0,cb,Z0,jp,ub,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:ab,setWalletConnectLogin:Qp,setLedgerLogin:K0,setTokenLogin:Y0,setTokenLoginSignature:cb,setWalletLogin:Z0,invalidateLoginSession:jp,setLogoutRoute:ub}=Jp.actions,oi=Jp.reducer});var tf,ef,nf,db,X0,gb,J0,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:db,setNotificationModal:X0,clearTxSubmittedModal:gb,clearNotificationModal:J0}=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,Q0,uf,kb,Cb,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"},Q0={network:Ba,chainID:"-1"},uf=(0,af.createSlice)({name:"appConfig",initialState:Q0,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:kb,setChainID:Cb}=uf.actions,ci=uf.reducer});var lf,Wa,pf,Mb,Fb,Ub,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:Mb,clearSignedMessageInfo:Fb,setSignSessionState:Ub}=pf.actions,li=pf.reducer});var df,gf,ff,mf,j0,Ga,zb,Kb,Yb,Zb,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:j0,removeCustomToast:Ga,addTransactionToast:zb,removeTransactionToast:Kb,addFailTransactionToast:Yb,removeFailTransactionToast:Zb}=mf.actions,fi=mf.reducer});var Tf,Ha,Va,qa,ew,$a,hf,jb,tw,za,gi,mi=W(()=>{"use strict";s();Tf=require("@reduxjs/toolkit");Ce();Ha="Transaction failed",Va="Transaction successful",qa="Processing transaction",ew="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)||ew,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:jb,setTransactionsDisplayInfo:tw,clearTransactionsInfoForSessionId:za}=hf.actions,gi=hf.reducer});function Gt(n){return n!=null&&(uw(n)||dw(n))}function bn(n){return n!=null&&(lw(n)||gw(n))}function Ln(n){return n!=null&&(pw(n)||mw(n))}function Ka(n){return n!=null&&fw(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)}function mw(n){return n!=null&&cw.includes(n)}var nw,rw,ow,iw,sw,aw,cw,tr=W(()=>{"use strict";s();de();nw=["sent"],rw=["success"],ow=["fail","cancelled","timedOut"],iw=["timedOut"],sw=["pending"],aw=["success"],cw=["fail","invalid"]});var yf,xf,Ur,Tw,Sf,Br,Ti,hw,hi,yw,xw,cL,Sw,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:{}},Tw={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])||Tw;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:hw,clearAllTransactionsToSign:hi,clearAllSignedTransactions:yw,clearSignedTransaction:xw,clearTransactionToSign:cL,setSignTransactionsError:Sw,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,TE,hE,yE,xE,SE,vE,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:TE,setDappModalHeaderVisibility:hE,setDappModalFooterVisibility:yE,setDappModalHeaderText:xE,setDappModalFooterText:SE,setDappModalConfig:vE}=Df.actions,Nf=Df.reducer});var Mf,Ow,Mw,kn,Ei=W(()=>{"use strict";s();Mf=require("@reduxjs/toolkit");ja();ri();Of();ii();ai();ui();pi();di();mi();Si();Ow={["account"]:ni,["dappModal"]:Nf,["loginInfo"]:oi,["modals"]:si,["networkConfig"]:ci,["signedMessageInfo"]:li,["toasts"]:fi,["transactionsInfo"]:gi,["transactions"]:xi},Mw=(n={})=>(0,Mf.combineReducers)(O(O({},Ow),n)),kn=Mw});var Wf={};yn(Wf,{default:()=>Jw,sessionStorageReducers:()=>ec});function sn(n,o=[]){return{key:n,version:1,storage:Uf.default,blacklist:o}}var Ze,Ff,Uf,Fw,Gr,Uw,Bw,Ww,Gw,$w,Hw,Vw,qw,zw,Bf,Kw,ec,Yw,Zw,Xw,Jw,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();Fw={persistReducersStorageType:"localStorage"},Gr={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Uw=sn(Gr["account"]),Bw=sn(Gr["loginInfo"]),Ww=sn(Gr["modals"]),Gw=sn(Gr["networkConfig"]),$w={2:n=>j(O({},n),{networkConfig:Ba})};Hw=sn("sdk-dapp-transactionsInfo"),Vw=sn("sdk-dapp-transactions",["transactionsToSign"]),qw=sn("sdk-dapp-toasts"),zw=sn("sdk-dapp-signedMessageInfo"),Bf={key:"sdk-dapp-store",version:2,storage:Ff.default,whitelist:Object.keys(Gr),migrate:(0,Ze.createMigrate)($w,{debug:!1})},Kw=j(O({},Bf),{whitelist:[]}),ec={["toasts"]:(0,Ze.persistReducer)(qw,fi),["transactions"]:(0,Ze.persistReducer)(Vw,xi),["transactionsInfo"]:(0,Ze.persistReducer)(Hw,gi),["signedMessageInfo"]:(0,Ze.persistReducer)(zw,li)},Yw=j(O({},ec),{["account"]:(0,Ze.persistReducer)(Uw,ni),["loginInfo"]:(0,Ze.persistReducer)(Bw,oi),["modals"]:(0,Ze.persistReducer)(Ww,si),["networkConfig"]:(0,Ze.persistReducer)(Gw,ci)}),Zw=Fw.persistReducersStorageType==="localStorage",Xw=Zw?(0,Ze.persistReducer)(Bf,kn(ec)):(0,Ze.persistReducer)(Kw,kn(Yw)),Jw=Xw});var $f={};yn($f,{default:()=>Qw});var Qw,Hf=W(()=>{"use strict";s();Ei();Qw=kn()});var Vf={};yn(Vf,{default:()=>eA});var it,jw,eA,qf=W(()=>{"use strict";s();it=require("redux-persist"),jw=[it.FLUSH,it.REHYDRATE,it.PAUSE,it.PERSIST,it.PURGE,it.REGISTER],eA=jw});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,ag=30,cg="...",ug=800,lg=16,xc=1,pg=2,fg=3,cn=1/0,zt=9007199254740991,dg=17976931348623157e292,Xr=0/0,Tt=4294967295,gg=Tt-1,mg=Tt>>>1,Tg=[["ary",Lt],["bind",ge],["bindKey",_e],["curry",gt],["curryRight",Pn],["flip",qi],["partial",mt],["partialRight",Rn],["rearg",ar]],Dn="[object Arguments]",Jr="[object Array]",hg="[object AsyncFunction]",cr="[object Boolean]",ur="[object Date]",yg="[object DOMException]",Qr="[object Error]",jr="[object Function]",Sc="[object GeneratorFunction]",st="[object Map]",lr="[object Number]",xg="[object Null]",Et="[object Object]",vc="[object Promise]",Sg="[object Proxy]",pr="[object RegExp]",at="[object Set]",fr="[object String]",eo="[object Symbol]",vg="[object Undefined]",dr="[object WeakMap]",wg="[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]",Ag=/\b__p \+= '';/g,Ig=/\b(__p \+=) '' \+/g,_g=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wc=/&(?:amp|lt|gt|quot|#39);/g,Ac=/[&<>"']/g,bg=RegExp(wc.source),Lg=RegExp(Ac.source),Eg=/<%-([\s\S]+?)%>/g,kg=/<%([\s\S]+?)%>/g,Ic=/<%=([\s\S]+?)%>/g,Cg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pg=/^\w*$/,Rg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ts=/[\\^$.*+?()[\]{}|]/g,Dg=RegExp(ts.source),ns=/^\s+/,Ng=/\s/,Og=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mg=/\{\n\/\* \[wrapped with (.+)\] \*/,Fg=/,? & /,Ug=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bg=/[()=,{}\[\]\/\s]/,Wg=/\\(\\)?/g,Gg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_c=/\w*$/,$g=/^[-+]0x[0-9a-f]+$/i,Hg=/^0b[01]+$/i,Vg=/^\[object .+?Constructor\]$/,qg=/^0o[0-7]+$/i,zg=/^(?:0|[1-9]\d*)$/,Kg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,to=/($^)/,Yg=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Zg="\\u0300-\\u036f",Xg="\\ufe20-\\ufe2f",Jg="\\u20d0-\\u20ff",bc=Zg+Xg+Jg,Lc="\\u2700-\\u27bf",Ec="a-z\\xdf-\\xf6\\xf8-\\xff",Qg="\\xac\\xb1\\xd7\\xf7",jg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",em="\\u2000-\\u206f",tm=" \\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=Qg+jg+em+tm,rs="['\u2019]",nm="["+no+"]",Rc="["+Pc+"]",ro="["+bc+"]",Dc="\\d+",rm="["+Lc+"]",Nc="["+Ec+"]",Oc="[^"+no+Pc+Dc+Lc+Ec+kc+"]",os="\\ud83c[\\udffb-\\udfff]",om="(?:"+ro+"|"+os+")",Mc="[^"+no+"]",is="(?:\\ud83c[\\udde6-\\uddff]){2}",ss="[\\ud800-\\udbff][\\udc00-\\udfff]",On="["+kc+"]",Fc="\\u200d",Uc="(?:"+Nc+"|"+Oc+")",im="(?:"+On+"|"+Oc+")",Bc="(?:"+rs+"(?:d|ll|m|re|s|t|ve))?",Wc="(?:"+rs+"(?:D|LL|M|RE|S|T|VE))?",Gc=om+"?",$c="["+Cc+"]?",sm="(?:"+Fc+"(?:"+[Mc,is,ss].join("|")+")"+$c+Gc+")*",am="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hc=$c+Gc+sm,um="(?:"+[rm,is,ss].join("|")+")"+Hc,lm="(?:"+[Mc+ro+"?",ro,is,ss,nm].join("|")+")",pm=RegExp(rs,"g"),fm=RegExp(ro,"g"),as=RegExp(os+"(?="+os+")|"+lm+Hc,"g"),dm=RegExp([On+"?"+Nc+"+"+Bc+"(?="+[Rc,On,"$"].join("|")+")",im+"+"+Wc+"(?="+[Rc,On+Uc,"$"].join("|")+")",On+"?"+Uc+"+"+Bc,On+"+"+Wc,cm,am,Dc,um].join("|"),"g"),gm=RegExp("["+Fc+no+bc+Cc+"]"),mm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tm=["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"],hm=-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 ym={\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"},xm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},vm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wm=parseFloat,Am=parseInt,Vc=typeof f=="object"&&f&&f.Object===Object&&f,Im=typeof self=="object"&&self&&self.Object===Object&&self,ve=Vc||Im||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 _m(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 bm(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 Lm(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 Em=ds("length");function km(x){return x.split("")}function Cm(x){return x.match(Ug)||[]}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?$m(x,A,w):io(x,eu,w)}function Pm(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 Rm(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 Dm(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 Nm(x,A){for(var w=x.length,P=0;w--;)x[w]===A&&++P;return P}var Om=gs(ym),Mm=gs(xm);function Fm(x){return"\\"+vm[x]}function Um(x,A){return x==null?n:x[A]}function Fn(x){return gm.test(x)}function Bm(x){return mm.test(x)}function Wm(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 Gm(x){var A=-1,w=Array(x.size);return x.forEach(function(P){w[++A]=[P,P]}),w}function $m(x,A,w){for(var P=w-1,$=x.length;++P<$;)if(x[P]===A)return P;return-1}function Hm(x,A,w){for(var P=w+1;P--;)if(x[P]===A)return P;return P}function Un(x){return Fn(x)?qm(x):Em(x)}function ct(x){return Fn(x)?zm(x):km(x)}function au(x){for(var A=x.length;A--&&Ng.test(x.charAt(A)););return A}var Vm=gs(Sm);function qm(x){for(var A=as.lastIndex=0;as.test(x);)++A;return A}function zm(x){return x.match(as)||[]}function Km(x){return x.match(dm)||[]}var Ym=function x(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,Tm));var w=A.Array,P=A.Date,$=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,xs=A.RegExp,Zm=A.String,Qe=A.TypeError,ao=w.prototype,Xm=ee.prototype,Bn=oe.prototype,co=A["__core-js_shared__"],uo=Xm.toString,re=Bn.hasOwnProperty,Jm=0,cu=function(){var e=/[^.]+$/.exec(co&&co.keys&&co.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lo=Bn.toString,Qm=uo.call(oe),jm=ve._,eT=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){}}(),tT=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,nT=P&&P.now!==ve.Date.now&&P.now,rT=A.setTimeout!==ve.setTimeout&&A.setTimeout,ho=xe.ceil,yo=xe.floor,Ss=oe.getOwnPropertySymbols,oT=po?po.isBuffer:n,du=A.isFinite,iT=ao.join,sT=su(oe.keys,oe),Se=xe.max,Ee=xe.min,aT=P.now,cT=A.parseInt,gu=xe.random,uT=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={},lT=Tn(vs),pT=Tn(hr),fT=Tn(ws),dT=Tn(Wn),gT=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:Eg,evaluate:kg,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 mT(){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 TT(){if(this.__filtered__){var e=new J(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hT(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=kh(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==pg)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 yT(){this.__data__=xr?xr(null):{},this.size=0}function xT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function ST(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 vT(e){var t=this.__data__;return xr?t[e]!==n:re.call(t,e)}function wT(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=yT,pn.prototype.delete=xT,pn.prototype.get=ST,pn.prototype.has=vT,pn.prototype.set=wT;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 AT(){this.__data__=[],this.size=0}function IT(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 _T(e){var t=this.__data__,r=wo(t,e);return r<0?n:t[r][1]}function bT(e){return wo(this.__data__,e)>-1}function LT(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=AT,kt.prototype.delete=IT,kt.prototype.get=_T,kt.prototype.has=bT,kt.prototype.set=LT;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 ET(){this.size=0,this.__data__={hash:new pn,map:new(hr||kt),string:new pn}}function kT(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t}function CT(e){return No(this,e).get(e)}function PT(e){return No(this,e).has(e)}function RT(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=ET,Ct.prototype.delete=kT,Ct.prototype.get=CT,Ct.prototype.has=PT,Ct.prototype.set=RT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}function DT(e){return this.__data__.set(e,y),this}function NT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=DT,fn.prototype.has=NT;function ut(e){var t=this.__data__=new kt(e);this.size=t.size}function OT(){this.__data__=new kt,this.size=0}function MT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function FT(e){return this.__data__.get(e)}function UT(e){return this.__data__.has(e)}function BT(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=OT,ut.prototype.delete=MT,ut.prototype.get=FT,ut.prototype.has=UT,ut.prototype.set=BT;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,Zm):[],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 WT(e,t){return Oo(Oe(e),dn(t,0,e.length))}function GT(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 $T(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 HT(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=Ph(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?Sh(e,HT(T,e)):xh(e,yu(T,e))}else{if(!ie[L])return c?e:{};T=Rh(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 VT(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 qT(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 zT(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=Nh),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?vg:xg:ln&&ln in oe(e)?Eh(e):Gh(e)}function Ls(e,t){return e>t}function KT(e,t){return e!=null&&re.call(e,t)}function YT(e,t){return e!=null&&t in oe(e)}function ZT(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 XT(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 JT(e){return fe(e)&&Pe(e)==gr}function QT(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:jT(e,t,r,a,Ir,c)}function jT(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):bh(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),Lh(e,t,r,a,c,p)):!1}function eh(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)||Mh(e))return!1;var t=Ot(e)?eT:Vg;return t.test(Tn(e))}function th(e){return fe(e)&&Pe(e)==pr}function nh(e){return fe(e)&&ke(e)==at}function rh(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 sT(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function oh(e){if(!le(e))return Wh(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))ih(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 ih(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 Rm(c,function(p,T){return yh(p,T,r)})}function sh(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 ah(e){return function(t){return gn(t,e)}}function Rs(e,t,r,a){var c=a?Pm: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 ch(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 uh(e){return hu(Kn(e))}function lh(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,ph=To?function(e,t){return To(e,"toString",{configurable:!0,enumerable:!1,value:aa(t),writable:!0})}:Ue;function fh(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 dh(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<=mg){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,gg)}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:Ih(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 gh=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=tT||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 mh(e,t){var r=t?Ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Th(e){var t=new e.constructor(e.source,_c.exec(e));return t.lastIndex=e.lastIndex,t}function hh(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 yh(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 xh(e,t){return yt(e,Ks(e),t)}function Sh(e,t){return yt(e,il(e),t)}function Eo(e,t){return function(r,a){var c=H(r)?_m:$T,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 vh(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(pm,"")),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 wh(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=Nm(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=$h(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 XT(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 Ah(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),ch(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 Ih=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?Gm(t):Dm(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&&Bh(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=vh(e,t,r);else t==gt||t==Pn?U=wh(e,t,h):(t==mt||t==(ge|mt))&&!c.length?U=Ah(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 _h(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 bh(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 Lh(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 Oh(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=Um(e,t);return bu(r)?r:n}function Eh(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 lT:return Nn;case pT:return st;case fT:return vc;case dT:return at;case gT:return dr}return t});function kh(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 Ch(e){var t=e.match(Mg);return t?t[1].split(Fg):[]}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 Ph(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function al(e){return typeof e.constructor=="function"&&!Lr(e)?$n(go(e)):{}}function Rh(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 mh(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 Th(e);case at:return new a;case eo:return hh(e)}}function Dh(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(Og,`{
1
+ "use strict";var o0=Object.create;var Cr=Object.defineProperty,i0=Object.defineProperties,s0=Object.getOwnPropertyDescriptor,a0=Object.getOwnPropertyDescriptors,c0=Object.getOwnPropertyNames,Vo=Object.getOwnPropertySymbols,u0=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)=>i0(n,a0(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 c0(o))!da.call(n,m)&&m!==i&&Cr(n,m,{get:()=>o[m],enumerable:!(u=s0(o,m))||u.enumerable});return n};var Y=(n,o,i)=>(i=n!=null?o0(u0(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=p0;zo.toByteArray=d0;zo.fromByteArray=T0;var St=[],ot=[],l0=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 p0(n){var o=tp(n),i=o[0],u=o[1];return(i+u)*3/4-u}function f0(n,o,i){return(o+i)*3/4-i}function d0(n){var o,i=tp(n),u=i[0],m=i[1],v=new l0(f0(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 g0(n){return St[n>>18&63]+St[n>>12&63]+St[n>>6&63]+St[n&63]}function m0(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(g0(u));return m.join("")}function T0(n){for(var o,i=n.length,u=i%3,m=[],v=16383,y=0,k=i-u;y<k;y+=v)m.push(m0(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=w0;Zn.INSPECT_MAX_BYTES=50;var Ko=2147483647;Zn.kMaxLength=Ko;I.TYPED_ARRAY_SUPPORT=h0();!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 h0(){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 x0(n,o);if(ArrayBuffer.isView(n))return S0(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=v0(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 y0(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 y0(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 x0(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 S0(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 v0(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 w0(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 A0(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 D0(this,o,i);case"utf8":case"utf-8":return pp(this,o,i);case"ascii":return P0(this,o,i);case"latin1":case"binary":return R0(this,o,i);case"base64":return k0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N0(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):A0.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 I0(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 _0(n,o,i,u){return Yo(xa(o,n.length-i),n,i,u)}function b0(n,o,i,u){return Yo(F0(o),n,i,u)}function L0(n,o,i,u){return Yo(mp(o),n,i,u)}function E0(n,o,i,u){return Yo(U0(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 I0(this,o,i,u);case"utf8":case"utf-8":return _0(this,o,i,u);case"ascii":case"latin1":case"binary":return b0(this,o,i,u);case"base64":return L0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E0(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 k0(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 C0(u)}var sp=4096;function C0(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 P0(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 R0(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 D0(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+=B0[n[v]];return m}function N0(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 O0=/[^+/0-9A-Za-z-_]/g;function M0(n){if(n=n.split("=")[0],n=n.trim().replace(O0,""),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 F0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function U0(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(M0(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 B0=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((YI,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 W0(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 G0(){!Xn||!vn||(Xn=!1,vn.length?Bt=vn.concat(Bt):Zo=-1,Bt.length&&yp())}function yp(){if(!Xn){var n=hp(G0);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,W0(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,$0,f,s=W(()=>{d=Y(Tp()),g=Y(vp()),$0=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=$0});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,d_,Cp,g_,Pp,m_,T_,h_,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:d_}=_a["devnet"],{chainId:Cp,egldLabel:g_}=_a["testnet"],{chainId:Pp,egldLabel:m_}=_a["mainnet"],T_={["devnet"]:kp,["testnet"]:Cp,["mainnet"]:Pp},h_={[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:()=>V0,localStorageKeys:()=>rn,removeItem:()=>q0,setItem:()=>H0});var rn,ka,H0,V0,q0,Qn=W(()=>{"use strict";s();Ea();rn={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ka=typeof localStorage!="undefined",H0=({key:n,data:o,expires:i})=>{!ka||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},V0=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},q0=n=>{!ka||localStorage.removeItem(String(n))}});var Pa={};yn(Pa,{clear:()=>Hp,getItem:()=>Gp,removeItem:()=>$p,setItem:()=>Wp,storage:()=>z0});var Wp,Gp,$p,Hp,z0,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(),z0={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,X_,K0,Y0,J_,Q_,j_,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:X_,setLedgerAccount:K0,updateLedgerAccount:Y0,setWalletConnectAccount:J_,setIsAccountLoading:Q_,setAccountLoadingError:j_,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,ub,Qp,Z0,X0,lb,J0,jp,pb,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:ub,setWalletConnectLogin:Qp,setLedgerLogin:Z0,setTokenLogin:X0,setTokenLoginSignature:lb,setWalletLogin:J0,invalidateLoginSession:jp,setLogoutRoute:pb}=Jp.actions,oi=Jp.reducer});var tf,ef,nf,mb,Q0,Tb,j0,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:mb,setNotificationModal:Q0,clearTxSubmittedModal:Tb,clearNotificationModal:j0}=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,ew,uf,Pb,Rb,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"},ew={network:Ba,chainID:"-1"},uf=(0,af.createSlice)({name:"appConfig",initialState:ew,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:Pb,setChainID:Rb}=uf.actions,ci=uf.reducer});var lf,Wa,pf,Ub,Bb,Wb,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:Ub,clearSignedMessageInfo:Bb,setSignSessionState:Wb}=pf.actions,li=pf.reducer});var df,gf,ff,mf,tw,Ga,Yb,Zb,Xb,Jb,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:tw,removeCustomToast:Ga,addTransactionToast:Yb,removeTransactionToast:Zb,addFailTransactionToast:Xb,removeFailTransactionToast:Jb}=mf.actions,fi=mf.reducer});var Tf,Ha,Va,qa,nw,$a,hf,tL,rw,za,gi,mi=W(()=>{"use strict";s();Tf=require("@reduxjs/toolkit");Ce();Ha="Transaction failed",Va="Transaction successful",qa="Processing transaction",nw="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)||nw,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:tL,setTransactionsDisplayInfo:rw,clearTransactionsInfoForSessionId:za}=hf.actions,gi=hf.reducer});function Gt(n){return n!=null&&(pw(n)||mw(n))}function bn(n){return n!=null&&(fw(n)||Tw(n))}function Ln(n){return n!=null&&(dw(n)||hw(n))}function Ka(n){return n!=null&&gw(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)}function hw(n){return n!=null&&lw.includes(n)}var ow,iw,sw,aw,cw,uw,lw,tr=W(()=>{"use strict";s();de();ow=["sent"],iw=["success"],sw=["fail","cancelled","timedOut"],aw=["timedOut"],cw=["pending"],uw=["success"],lw=["fail","invalid"]});var yf,xf,Ur,yw,Sf,Br,Ti,xw,hi,Sw,vw,lL,ww,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:{}},yw={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])||yw;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:xw,clearAllTransactionsToSign:hi,clearAllSignedTransactions:Sw,clearSignedTransaction:vw,clearTransactionToSign:lL,setSignTransactionsError:ww,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,yE,xE,SE,vE,wE,AE,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:yE,setDappModalHeaderVisibility:xE,setDappModalFooterVisibility:SE,setDappModalHeaderText:vE,setDappModalFooterText:wE,setDappModalConfig:AE}=Df.actions,Nf=Df.reducer});var Mf,Fw,Uw,kn,Ei=W(()=>{"use strict";s();Mf=require("@reduxjs/toolkit");ja();ri();Of();ii();ai();ui();pi();di();mi();Si();Fw={["account"]:ni,["dappModal"]:Nf,["loginInfo"]:oi,["modals"]:si,["networkConfig"]:ci,["signedMessageInfo"]:li,["toasts"]:fi,["transactionsInfo"]:gi,["transactions"]:xi},Uw=(n={})=>(0,Mf.combineReducers)(O(O({},Fw),n)),kn=Uw});var Wf={};yn(Wf,{default:()=>jw,sessionStorageReducers:()=>ec});function sn(n,o=[]){return{key:n,version:1,storage:Uf.default,blacklist:o}}var Ze,Ff,Uf,Bw,Gr,Ww,Gw,$w,Hw,Vw,qw,zw,Kw,Yw,Bf,Zw,ec,Xw,Jw,Qw,jw,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();Bw={persistReducersStorageType:"localStorage"},Gr={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Ww=sn(Gr["account"]),Gw=sn(Gr["loginInfo"]),$w=sn(Gr["modals"]),Hw=sn(Gr["networkConfig"]),Vw={2:n=>j(O({},n),{networkConfig:Ba})};qw=sn("sdk-dapp-transactionsInfo"),zw=sn("sdk-dapp-transactions",["transactionsToSign"]),Kw=sn("sdk-dapp-toasts"),Yw=sn("sdk-dapp-signedMessageInfo"),Bf={key:"sdk-dapp-store",version:2,storage:Ff.default,whitelist:Object.keys(Gr),migrate:(0,Ze.createMigrate)(Vw,{debug:!1})},Zw=j(O({},Bf),{whitelist:[]}),ec={["toasts"]:(0,Ze.persistReducer)(Kw,fi),["transactions"]:(0,Ze.persistReducer)(zw,xi),["transactionsInfo"]:(0,Ze.persistReducer)(qw,gi),["signedMessageInfo"]:(0,Ze.persistReducer)(Yw,li)},Xw=j(O({},ec),{["account"]:(0,Ze.persistReducer)(Ww,ni),["loginInfo"]:(0,Ze.persistReducer)(Gw,oi),["modals"]:(0,Ze.persistReducer)($w,si),["networkConfig"]:(0,Ze.persistReducer)(Hw,ci)}),Jw=Bw.persistReducersStorageType==="localStorage",Qw=Jw?(0,Ze.persistReducer)(Bf,kn(ec)):(0,Ze.persistReducer)(Zw,kn(Xw)),jw=Qw});var $f={};yn($f,{default:()=>eA});var eA,Hf=W(()=>{"use strict";s();Ei();eA=kn()});var Vf={};yn(Vf,{default:()=>nA});var it,tA,nA,qf=W(()=>{"use strict";s();it=require("redux-persist"),tA=[it.FLUSH,it.REHYDRATE,it.PAUSE,it.PERSIST,it.PURGE,it.REGISTER],nA=tA});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,ug=30,lg="...",pg=800,fg=16,xc=1,dg=2,gg=3,cn=1/0,zt=9007199254740991,mg=17976931348623157e292,Xr=0/0,Tt=4294967295,Tg=Tt-1,hg=Tt>>>1,yg=[["ary",Lt],["bind",ge],["bindKey",_e],["curry",gt],["curryRight",Pn],["flip",qi],["partial",mt],["partialRight",Rn],["rearg",ar]],Dn="[object Arguments]",Jr="[object Array]",xg="[object AsyncFunction]",cr="[object Boolean]",ur="[object Date]",Sg="[object DOMException]",Qr="[object Error]",jr="[object Function]",Sc="[object GeneratorFunction]",st="[object Map]",lr="[object Number]",vg="[object Null]",Et="[object Object]",vc="[object Promise]",wg="[object Proxy]",pr="[object RegExp]",at="[object Set]",fr="[object String]",eo="[object Symbol]",Ag="[object Undefined]",dr="[object WeakMap]",Ig="[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]",_g=/\b__p \+= '';/g,bg=/\b(__p \+=) '' \+/g,Lg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wc=/&(?:amp|lt|gt|quot|#39);/g,Ac=/[&<>"']/g,Eg=RegExp(wc.source),kg=RegExp(Ac.source),Cg=/<%-([\s\S]+?)%>/g,Pg=/<%([\s\S]+?)%>/g,Ic=/<%=([\s\S]+?)%>/g,Rg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dg=/^\w*$/,Ng=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ts=/[\\^$.*+?()[\]{}|]/g,Og=RegExp(ts.source),ns=/^\s+/,Mg=/\s/,Fg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ug=/\{\n\/\* \[wrapped with (.+)\] \*/,Bg=/,? & /,Wg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gg=/[()=,{}\[\]\/\s]/,$g=/\\(\\)?/g,Hg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_c=/\w*$/,Vg=/^[-+]0x[0-9a-f]+$/i,qg=/^0b[01]+$/i,zg=/^\[object .+?Constructor\]$/,Kg=/^0o[0-7]+$/i,Yg=/^(?:0|[1-9]\d*)$/,Zg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,to=/($^)/,Xg=/['\n\r\u2028\u2029\\]/g,no="\\ud800-\\udfff",Jg="\\u0300-\\u036f",Qg="\\ufe20-\\ufe2f",jg="\\u20d0-\\u20ff",bc=Jg+Qg+jg,Lc="\\u2700-\\u27bf",Ec="a-z\\xdf-\\xf6\\xf8-\\xff",em="\\xac\\xb1\\xd7\\xf7",tm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nm="\\u2000-\\u206f",rm=" \\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=em+tm+nm+rm,rs="['\u2019]",om="["+no+"]",Rc="["+Pc+"]",ro="["+bc+"]",Dc="\\d+",im="["+Lc+"]",Nc="["+Ec+"]",Oc="[^"+no+Pc+Dc+Lc+Ec+kc+"]",os="\\ud83c[\\udffb-\\udfff]",sm="(?:"+ro+"|"+os+")",Mc="[^"+no+"]",is="(?:\\ud83c[\\udde6-\\uddff]){2}",ss="[\\ud800-\\udbff][\\udc00-\\udfff]",On="["+kc+"]",Fc="\\u200d",Uc="(?:"+Nc+"|"+Oc+")",am="(?:"+On+"|"+Oc+")",Bc="(?:"+rs+"(?:d|ll|m|re|s|t|ve))?",Wc="(?:"+rs+"(?:D|LL|M|RE|S|T|VE))?",Gc=sm+"?",$c="["+Cc+"]?",cm="(?:"+Fc+"(?:"+[Mc,is,ss].join("|")+")"+$c+Gc+")*",um="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hc=$c+Gc+cm,pm="(?:"+[im,is,ss].join("|")+")"+Hc,fm="(?:"+[Mc+ro+"?",ro,is,ss,om].join("|")+")",dm=RegExp(rs,"g"),gm=RegExp(ro,"g"),as=RegExp(os+"(?="+os+")|"+fm+Hc,"g"),mm=RegExp([On+"?"+Nc+"+"+Bc+"(?="+[Rc,On,"$"].join("|")+")",am+"+"+Wc+"(?="+[Rc,On+Uc,"$"].join("|")+")",On+"?"+Uc+"+"+Bc,On+"+"+Wc,lm,um,Dc,pm].join("|"),"g"),Tm=RegExp("["+Fc+no+bc+Cc+"]"),hm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ym=["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"],xm=-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 Sm={\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"},vm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},wm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Am={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Im=parseFloat,_m=parseInt,Vc=typeof f=="object"&&f&&f.Object===Object&&f,bm=typeof self=="object"&&self&&self.Object===Object&&self,ve=Vc||bm||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 Lm(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 Em(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 km(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 Cm=ds("length");function Pm(x){return x.split("")}function Rm(x){return x.match(Wg)||[]}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?Vm(x,A,w):io(x,eu,w)}function Dm(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 Nm(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 Om(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 Mm(x,A){for(var w=x.length,P=0;w--;)x[w]===A&&++P;return P}var Fm=gs(Sm),Um=gs(vm);function Bm(x){return"\\"+Am[x]}function Wm(x,A){return x==null?n:x[A]}function Fn(x){return Tm.test(x)}function Gm(x){return hm.test(x)}function $m(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 Hm(x){var A=-1,w=Array(x.size);return x.forEach(function(P){w[++A]=[P,P]}),w}function Vm(x,A,w){for(var P=w-1,$=x.length;++P<$;)if(x[P]===A)return P;return-1}function qm(x,A,w){for(var P=w+1;P--;)if(x[P]===A)return P;return P}function Un(x){return Fn(x)?Km(x):Cm(x)}function ct(x){return Fn(x)?Ym(x):Pm(x)}function au(x){for(var A=x.length;A--&&Mg.test(x.charAt(A)););return A}var zm=gs(wm);function Km(x){for(var A=as.lastIndex=0;as.test(x);)++A;return A}function Ym(x){return x.match(as)||[]}function Zm(x){return x.match(mm)||[]}var Xm=function x(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,ym));var w=A.Array,P=A.Date,$=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,xs=A.RegExp,Jm=A.String,Qe=A.TypeError,ao=w.prototype,Qm=ee.prototype,Bn=oe.prototype,co=A["__core-js_shared__"],uo=Qm.toString,re=Bn.hasOwnProperty,jm=0,cu=function(){var e=/[^.]+$/.exec(co&&co.keys&&co.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lo=Bn.toString,eT=uo.call(oe),tT=ve._,nT=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){}}(),rT=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,oT=P&&P.now!==ve.Date.now&&P.now,iT=A.setTimeout!==ve.setTimeout&&A.setTimeout,ho=xe.ceil,yo=xe.floor,Ss=oe.getOwnPropertySymbols,sT=po?po.isBuffer:n,du=A.isFinite,aT=ao.join,cT=su(oe.keys,oe),Se=xe.max,Ee=xe.min,uT=P.now,lT=A.parseInt,gu=xe.random,pT=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={},fT=Tn(vs),dT=Tn(hr),gT=Tn(ws),mT=Tn(Wn),TT=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:Cg,evaluate:Pg,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 hT(){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 yT(){if(this.__filtered__){var e=new J(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function xT(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=Ph(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==dg)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 ST(){this.__data__=xr?xr(null):{},this.size=0}function vT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function wT(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 AT(e){var t=this.__data__;return xr?t[e]!==n:re.call(t,e)}function IT(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=ST,pn.prototype.delete=vT,pn.prototype.get=wT,pn.prototype.has=AT,pn.prototype.set=IT;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 _T(){this.__data__=[],this.size=0}function bT(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 LT(e){var t=this.__data__,r=wo(t,e);return r<0?n:t[r][1]}function ET(e){return wo(this.__data__,e)>-1}function kT(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=_T,kt.prototype.delete=bT,kt.prototype.get=LT,kt.prototype.has=ET,kt.prototype.set=kT;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function CT(){this.size=0,this.__data__={hash:new pn,map:new(hr||kt),string:new pn}}function PT(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t}function RT(e){return No(this,e).get(e)}function DT(e){return No(this,e).has(e)}function NT(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=CT,Ct.prototype.delete=PT,Ct.prototype.get=RT,Ct.prototype.has=DT,Ct.prototype.set=NT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ct;++t<r;)this.add(e[t])}function OT(e){return this.__data__.set(e,y),this}function MT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=OT,fn.prototype.has=MT;function ut(e){var t=this.__data__=new kt(e);this.size=t.size}function FT(){this.__data__=new kt,this.size=0}function UT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function BT(e){return this.__data__.get(e)}function WT(e){return this.__data__.has(e)}function GT(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=FT,ut.prototype.delete=UT,ut.prototype.get=BT,ut.prototype.has=WT,ut.prototype.set=GT;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,Jm):[],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 $T(e,t){return Oo(Oe(e),dn(t,0,e.length))}function HT(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 VT(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 qT(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=Dh(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?wh(e,qT(T,e)):vh(e,yu(T,e))}else{if(!ie[L])return c?e:{};T=Nh(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 zT(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 KT(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 YT(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=Mh),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?Ag:vg:ln&&ln in oe(e)?Ch(e):Hh(e)}function Ls(e,t){return e>t}function ZT(e,t){return e!=null&&re.call(e,t)}function XT(e,t){return e!=null&&t in oe(e)}function JT(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 QT(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 jT(e){return fe(e)&&Pe(e)==gr}function eh(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:th(e,t,r,a,Ir,c)}function th(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):Eh(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),kh(e,t,r,a,c,p)):!1}function nh(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)||Uh(e))return!1;var t=Ot(e)?nT:zg;return t.test(Tn(e))}function rh(e){return fe(e)&&Pe(e)==pr}function oh(e){return fe(e)&&ke(e)==at}function ih(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 cT(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function sh(e){if(!le(e))return $h(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))ah(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 ah(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 Nm(c,function(p,T){return Sh(p,T,r)})}function ch(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 uh(e){return function(t){return gn(t,e)}}function Rs(e,t,r,a){var c=a?Dm: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 lh(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 ph(e){return hu(Kn(e))}function fh(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,dh=To?function(e,t){return To(e,"toString",{configurable:!0,enumerable:!1,value:aa(t),writable:!0})}:Ue;function gh(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 mh(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<=hg){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,Tg)}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:bh(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 Th=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=rT||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 hh(e,t){var r=t?Ws(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function yh(e){var t=new e.constructor(e.source,_c.exec(e));return t.lastIndex=e.lastIndex,t}function xh(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 Sh(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 vh(e,t){return yt(e,Ks(e),t)}function wh(e,t){return yt(e,il(e),t)}function Eo(e,t){return function(r,a){var c=H(r)?Lm:VT,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 Ah(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(dm,"")),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 Ih(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=Mm(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=Vh(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 QT(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 _h(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),lh(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 bh=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?Hm(t):Om(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&&Gh(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=Ah(e,t,r);else t==gt||t==Pn?U=Ih(e,t,h):(t==mt||t==(ge|mt))&&!c.length?U=_h(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 Lh(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 Eh(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 kh(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 Fh(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=Wm(e,t);return bu(r)?r:n}function Ch(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=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 fT:return Nn;case dT:return st;case gT:return vc;case mT:return at;case TT:return dr}return t});function Ph(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 Rh(e){var t=e.match(Ug);return t?t[1].split(Bg):[]}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 Dh(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 Nh(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 hh(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 yh(e);case at:return new a;case eo:return xh(e)}}function Oh(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(Fg,`{
2
2
  /* [wrapped with `+t+`] */
3
- `)}function Nh(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"&&zg.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:Pg.test(e)||!Cg.test(e)||t!=null&&e in oe(t)}function Oh(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 Mh(e){return!!cu&&cu in e}var Fh=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 Uh(e){var t=Bo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function Bh(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 Wh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function Gh(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 $h(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=rT||function(e,t){return ve.setTimeout(e,t)},Js=gl(ph);function dl(e,t,r){var a=t+"";return Js(e,Dh(a,Hh(Ch(a),r)))}function gl(e){var t=0,r=0;return function(){var a=aT(),c=lg-(a-r);if(r=a,c>0){if(++t>=ug)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=Uh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rg,function(r,a,c,p){t.push(c?p.replace(Wg,"$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 Hh(e,t){return Je(Tg,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 Vh(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 qh(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 zh(){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 Kh=Z(function(e,t){return me(e)?wr(e,be(t,1,me,!0)):[]}),Yh=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)):[]}),Zh=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 Xh(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 Jh(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 Qh(e,t){return e&&e.length?Lo(e,M(t,3),!0,!0):[]}function jh(e,t){return e&&e.length?Lo(e,M(t,3),!0):[]}function ey(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),zT(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 ty(e){var t=e==null?0:e.length;return t?be(e,cn):[]}function ny(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),be(e,t)):[]}function ry(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 oy(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 iy(e){var t=e==null?0:e.length;return t?tt(e,0,-1):[]}var sy=Z(function(e){var t=ue(e,Us);return t.length&&t[0]===e[0]?Es(t):[]}),ay=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)):[]}),cy=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 uy(e,t){return e==null?"":iT.call(e,t)}function nt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function ly(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?Hm(e,t,c):io(e,eu,c,!0)}function py(e,t){return e&&e.length?Pu(e,V(t)):n}var fy=Z(vl);function vl(e,t){return e&&e.length&&t&&t.length?Rs(e,t):e}function dy(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,M(r,2)):e}function gy(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,n,r):e}var my=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 Ty(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:uT.call(e)}function hy(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 yy(e,t){return bo(e,t)}function xy(e,t,r){return Os(e,t,M(r,2))}function Sy(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 vy(e,t){return bo(e,t,!0)}function wy(e,t,r){return Os(e,t,M(r,2),!0)}function Ay(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 Iy(e){return e&&e.length?Mu(e):[]}function _y(e,t){return e&&e.length?Mu(e,M(t,2)):[]}function by(e){var t=e==null?0:e.length;return t?tt(e,1,t):[]}function Ly(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),tt(e,0,t<0?0:t)):[]}function Ey(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 ky(e,t){return e&&e.length?Lo(e,M(t,3),!1,!0):[]}function Cy(e,t){return e&&e.length?Lo(e,M(t,3)):[]}var Py=Z(function(e){return jt(be(e,1,me,!0))}),Ry=Z(function(e){var t=nt(e);return me(t)&&(t=n),jt(be(e,1,me,!0),M(t,2))}),Dy=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,jt(be(e,1,me,!0),n,t)});function Ny(e){return e&&e.length?jt(e):[]}function Oy(e,t){return e&&e.length?jt(e,M(t,2)):[]}function My(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 Fy=Z(function(e,t){return me(e)?wr(e,t):[]}),Uy=Z(function(e){return Fs(Kt(e,me))}),By=Z(function(e){var t=nt(e);return me(t)&&(t=n),Fs(Kt(e,me),M(t,2))}),Wy=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,Fs(Kt(e,me),n,t)}),Gy=Z(js);function $y(e,t){return Wu(e||[],t||[],vr)}function Hy(e,t){return Wu(e||[],t||[],_r)}var Vy=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 qy(e,t){return t(e),e}function Mo(e,t){return t(e)}var zy=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 Ky(){return Al(this)}function Yy(){return new je(this.value(),this.__chain__)}function Zy(){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 Xy(){return this}function Jy(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 Qy(){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 jy(){return Bu(this.__wrapped__,this.__actions__)}var ex=Eo(function(e,t,r){re.call(e,r)?++e[r]:Pt(e,r,1)});function tx(e,t,r){var a=H(e)?Qc:qT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function nx(e,t){var r=H(e)?Kt:wu;return r(e,M(t,3))}var rx=Xu(hl),ox=Xu(yl);function ix(e,t){return be(Fo(e,t),1)}function sx(e,t){return be(Fo(e,t),cn)}function ax(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)?bm:vu;return r(e,M(t,3))}var cx=Eo(function(e,t,r){re.call(e,r)?e[r].push(t):Pt(e,r,[t])});function ux(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 lx=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}),px=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 fx(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 dx=Eo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function gx(e,t,r){var a=H(e)?ps:nu,c=arguments.length<3;return a(e,M(t,4),r,c,Qt)}function mx(e,t,r){var a=H(e)?Lm:nu,c=arguments.length<3;return a(e,M(t,4),r,c,vu)}function Tx(e,t){var r=H(e)?Kt:wu;return r(e,Wo(M(t,3)))}function hx(e){var t=H(e)?hu:uh;return t(e)}function yx(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=H(e)?WT:lh;return a(e,t)}function xx(e){var t=H(e)?GT:fh;return t(e)}function Sx(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 vx(e,t,r){var a=H(e)?fs:dh;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var wx=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=nT||function(){return ve.Date.now()};function Ax(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 Ix=Z(function(e,t){return Su(e,1,t)}),_x=Z(function(e,t,r){return Su(e,rt(t)||0,r)});function bx(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 Lx(e){return Ll(2,e)}var Ex=gh(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)}),kx=Dt(function(e,t){return Rt(e,ar,n,n,n,t)});function Cx(e,t){if(typeof e!="function")throw new Qe(m);return t=t===n?t:V(t),Z(e,t)}function Px(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 Rx(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 Dx(e){return bl(e,1)}function Nx(e,t){return ta(Bs(t),e)}function Ox(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function Mx(e){return et(e,F)}function Fx(e,t){return t=typeof t=="function"?t:n,et(e,F,t)}function Ux(e){return et(e,N|F)}function Bx(e,t){return t=typeof t=="function"?t:n,et(e,N|F,t)}function Wx(e,t){return t==null||xu(e,t,we(t))}function lt(e,t){return e===t||e!==e&&t!==t}var Gx=Ro(Ls),$x=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,Hx=zc?$e(zc):JT;function Me(e){return e!=null&&Go(e.length)&&!Ot(e)}function me(e){return fe(e)&&Me(e)}function Vx(e){return e===!0||e===!1||fe(e)&&Pe(e)==cr}var nn=oT||fa,qx=Kc?$e(Kc):QT;function zx(e){return fe(e)&&e.nodeType===1&&!kr(e)}function Kx(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 Yx(e,t){return Ir(e,t)}function Zx(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==yg||typeof e.message=="string"&&typeof e.name=="string"&&!kr(e)}function Xx(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==hg||t==Sg}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):eh;function Jx(e,t){return e===t||ks(e,t,zs(t))}function Qx(e,t,r){return r=typeof r=="function"?r:n,ks(e,t,zs(t),r)}function jx(e){return Ol(e)&&e!=+e}function eS(e){if(Fh(e))throw new $(u);return bu(e)}function tS(e){return e===null}function nS(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)==Qm}var ra=Zc?$e(Zc):th;function rS(e){return Dl(e)&&e>=-zt&&e<=zt}var Ml=Xc?$e(Xc):nh;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):rh;function oS(e){return e===n}function iS(e){return fe(e)&&ke(e)==dr}function sS(e){return fe(e)&&Pe(e)==wg}var aS=Ro(Ps),cS=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 Wm(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*dg}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=Hg.test(e);return r||qg.test(e)?Am(e.slice(2),r?2:8):$g.test(e)?Xr:+e}function Bl(e){return yt(e,Fe(e))}function uS(e){return e?dn(V(e),-zt,zt):e===0?e:0}function ne(e){return e==null?"":He(e)}var lS=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)}),pS=Hn(function(e,t,r,a){yt(t,we(t),e,a)}),fS=Dt(Is);function dS(e,t){var r=$n(e);return t==null?r:yu(r,t)}var gS=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}),mS=Z(function(e){return e.push(n,rl),Ge(Gl,n,e)});function TS(e,t){return jc(e,M(t,3),ht)}function hS(e,t){return jc(e,M(t,3),bs)}function yS(e,t){return e==null?e:_s(e,M(t,3),Fe)}function xS(e,t){return e==null?e:Au(e,M(t,3),Fe)}function SS(e,t){return e&&ht(e,M(t,3))}function vS(e,t){return e&&bs(e,M(t,3))}function wS(e){return e==null?[]:Io(e,we(e))}function AS(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 IS(e,t){return e!=null&&sl(e,t,KT)}function ia(e,t){return e!=null&&sl(e,t,YT)}var _S=Qu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=lo.call(t)),e[t]=r},aa(Ue)),bS=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),LS=Z(Ar);function we(e){return Me(e)?Tu(e):Cs(e)}function Fe(e){return Me(e)?Tu(e,!0):oh(e)}function ES(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,t(a,c,p),a)}),r}function kS(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,c,t(a,c,p))}),r}var CS=Hn(function(e,t,r){_o(e,t,r)}),Gl=Hn(function(e,t,r,a){_o(e,t,r,a)}),PS=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,_h));for(var c=t.length;c--;)Ms(r,t[c]);return r});function RS(e,t){return $l(e,Wo(M(t)))}var DS=Dt(function(e,t){return e==null?{}:sh(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 NS(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 OS(e,t,r){return e==null?e:_r(e,t,r)}function MS(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 FS(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 US(e,t){return e==null?!0:Ms(e,t)}function BS(e,t,r){return e==null?e:Uu(e,t,Bs(r))}function WS(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 GS(e){return e==null?[]:hs(e,Fe(e))}function $S(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 HS(e,t,r){return t=Mt(t),r===n?(r=t,t=0):r=Mt(r),e=rt(e),ZT(e,t,r)}function VS(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+wm("1e-"+((c+"").length-1))),t)}return Ds(e,t)}var qS=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(Kg,Om).replace(fm,"")}function zS(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 KS(e){return e=ne(e),e&&Lg.test(e)?e.replace(Ac,Mm):e}function YS(e){return e=ne(e),e&&Dg.test(e)?e.replace(ts,"\\$&"):e}var ZS=Vn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),XS=Vn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),JS=Zu("toLowerCase");function QS(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 jS(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 ev(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 tv(e,t,r){return r||t==null?t=0:t&&(t=+t),cT(ne(e).replace(ns,""),t||0)}function nv(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),Ns(ne(e),t)}function rv(){var e=arguments,t=ne(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ov=Vn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function iv(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 sv=Vn(function(e,t,r){return e+(r?" ":"")+sa(t)});function av(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 cv(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?Gg:to).source+"|"+(t.evaluate||to).source+"|$","g"),D="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hm+"]")+`
4
- `;e.replace(C,function(B,X,Q,qe,De,ze){return Q||(Q=qe),L+=e.slice(_,ze).replace(Yg,Fm),X&&(h=!0,L+=`' +
3
+ `)}function Mh(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"&&Yg.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:Dg.test(e)||!Rg.test(e)||t!=null&&e in oe(t)}function Fh(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 Uh(e){return!!cu&&cu in e}var Bh=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 Wh(e){var t=Bo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function Gh(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 $h(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function Hh(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 Vh(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=iT||function(e,t){return ve.setTimeout(e,t)},Js=gl(dh);function dl(e,t,r){var a=t+"";return Js(e,Oh(a,qh(Rh(a),r)))}function gl(e){var t=0,r=0;return function(){var a=uT(),c=fg-(a-r);if(r=a,c>0){if(++t>=pg)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=Wh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ng,function(r,a,c,p){t.push(c?p.replace($g,"$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 qh(e,t){return Je(yg,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 zh(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 Kh(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 Yh(){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)):[]}),Xh=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)):[]}),Jh=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 Qh(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 jh(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 ey(e,t){return e&&e.length?Lo(e,M(t,3),!0,!0):[]}function ty(e,t){return e&&e.length?Lo(e,M(t,3),!0):[]}function ny(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),YT(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 ry(e){var t=e==null?0:e.length;return t?be(e,cn):[]}function oy(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),be(e,t)):[]}function iy(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 sy(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 ay(e){var t=e==null?0:e.length;return t?tt(e,0,-1):[]}var cy=Z(function(e){var t=ue(e,Us);return t.length&&t[0]===e[0]?Es(t):[]}),uy=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)):[]}),ly=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 py(e,t){return e==null?"":aT.call(e,t)}function nt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function fy(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?qm(e,t,c):io(e,eu,c,!0)}function dy(e,t){return e&&e.length?Pu(e,V(t)):n}var gy=Z(vl);function vl(e,t){return e&&e.length&&t&&t.length?Rs(e,t):e}function my(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,M(r,2)):e}function Ty(e,t,r){return e&&e.length&&t&&t.length?Rs(e,t,n,r):e}var hy=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 yy(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:pT.call(e)}function xy(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 Sy(e,t){return bo(e,t)}function vy(e,t,r){return Os(e,t,M(r,2))}function wy(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 Ay(e,t){return bo(e,t,!0)}function Iy(e,t,r){return Os(e,t,M(r,2),!0)}function _y(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 by(e){return e&&e.length?Mu(e):[]}function Ly(e,t){return e&&e.length?Mu(e,M(t,2)):[]}function Ey(e){var t=e==null?0:e.length;return t?tt(e,1,t):[]}function ky(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),tt(e,0,t<0?0:t)):[]}function Cy(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,tt(e,t<0?0:t,a)):[]}function Py(e,t){return e&&e.length?Lo(e,M(t,3),!1,!0):[]}function Ry(e,t){return e&&e.length?Lo(e,M(t,3)):[]}var Dy=Z(function(e){return jt(be(e,1,me,!0))}),Ny=Z(function(e){var t=nt(e);return me(t)&&(t=n),jt(be(e,1,me,!0),M(t,2))}),Oy=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,jt(be(e,1,me,!0),n,t)});function My(e){return e&&e.length?jt(e):[]}function Fy(e,t){return e&&e.length?jt(e,M(t,2)):[]}function Uy(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 By=Z(function(e,t){return me(e)?wr(e,t):[]}),Wy=Z(function(e){return Fs(Kt(e,me))}),Gy=Z(function(e){var t=nt(e);return me(t)&&(t=n),Fs(Kt(e,me),M(t,2))}),$y=Z(function(e){var t=nt(e);return t=typeof t=="function"?t:n,Fs(Kt(e,me),n,t)}),Hy=Z(js);function Vy(e,t){return Wu(e||[],t||[],vr)}function qy(e,t){return Wu(e||[],t||[],_r)}var zy=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 Ky(e,t){return t(e),e}function Mo(e,t){return t(e)}var Yy=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 Xy(){return new je(this.value(),this.__chain__)}function Jy(){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 Qy(){return this}function jy(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 ex(){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 tx(){return Bu(this.__wrapped__,this.__actions__)}var nx=Eo(function(e,t,r){re.call(e,r)?++e[r]:Pt(e,r,1)});function rx(e,t,r){var a=H(e)?Qc:KT;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}function ox(e,t){var r=H(e)?Kt:wu;return r(e,M(t,3))}var ix=Xu(hl),sx=Xu(yl);function ax(e,t){return be(Fo(e,t),1)}function cx(e,t){return be(Fo(e,t),cn)}function ux(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)?Em:vu;return r(e,M(t,3))}var lx=Eo(function(e,t,r){re.call(e,r)?e[r].push(t):Pt(e,r,[t])});function px(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 fx=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}),dx=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 gx(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 mx=Eo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Tx(e,t,r){var a=H(e)?ps:nu,c=arguments.length<3;return a(e,M(t,4),r,c,Qt)}function hx(e,t,r){var a=H(e)?km:nu,c=arguments.length<3;return a(e,M(t,4),r,c,vu)}function yx(e,t){var r=H(e)?Kt:wu;return r(e,Wo(M(t,3)))}function xx(e){var t=H(e)?hu:ph;return t(e)}function Sx(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=H(e)?$T:fh;return a(e,t)}function vx(e){var t=H(e)?HT:gh;return t(e)}function wx(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 Ax(e,t,r){var a=H(e)?fs:mh;return r&&Re(e,t,r)&&(t=n),a(e,M(t,3))}var Ix=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=oT||function(){return ve.Date.now()};function _x(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 bx=Z(function(e,t){return Su(e,1,t)}),Lx=Z(function(e,t,r){return Su(e,rt(t)||0,r)});function Ex(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 kx(e){return Ll(2,e)}var Cx=Th(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)}),Px=Dt(function(e,t){return Rt(e,ar,n,n,n,t)});function Rx(e,t){if(typeof e!="function")throw new Qe(m);return t=t===n?t:V(t),Z(e,t)}function Dx(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 Nx(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 Ox(e){return bl(e,1)}function Mx(e,t){return ta(Bs(t),e)}function Fx(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function Ux(e){return et(e,F)}function Bx(e,t){return t=typeof t=="function"?t:n,et(e,F,t)}function Wx(e){return et(e,N|F)}function Gx(e,t){return t=typeof t=="function"?t:n,et(e,N|F,t)}function $x(e,t){return t==null||xu(e,t,we(t))}function lt(e,t){return e===t||e!==e&&t!==t}var Hx=Ro(Ls),Vx=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,qx=zc?$e(zc):jT;function Me(e){return e!=null&&Go(e.length)&&!Ot(e)}function me(e){return fe(e)&&Me(e)}function zx(e){return e===!0||e===!1||fe(e)&&Pe(e)==cr}var nn=sT||fa,Kx=Kc?$e(Kc):eh;function Yx(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 Xx(e,t){return Ir(e,t)}function Jx(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==Sg||typeof e.message=="string"&&typeof e.name=="string"&&!kr(e)}function Qx(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==xg||t==wg}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):nh;function jx(e,t){return e===t||ks(e,t,zs(t))}function eS(e,t,r){return r=typeof r=="function"?r:n,ks(e,t,zs(t),r)}function tS(e){return Ol(e)&&e!=+e}function nS(e){if(Bh(e))throw new $(u);return bu(e)}function rS(e){return e===null}function oS(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)==eT}var ra=Zc?$e(Zc):rh;function iS(e){return Dl(e)&&e>=-zt&&e<=zt}var Ml=Xc?$e(Xc):oh;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):ih;function sS(e){return e===n}function aS(e){return fe(e)&&ke(e)==dr}function cS(e){return fe(e)&&Pe(e)==Ig}var uS=Ro(Ps),lS=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 $m(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*mg}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=qg.test(e);return r||Kg.test(e)?_m(e.slice(2),r?2:8):Vg.test(e)?Xr:+e}function Bl(e){return yt(e,Fe(e))}function pS(e){return e?dn(V(e),-zt,zt):e===0?e:0}function ne(e){return e==null?"":He(e)}var fS=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)}),dS=Hn(function(e,t,r,a){yt(t,we(t),e,a)}),gS=Dt(Is);function mS(e,t){var r=$n(e);return t==null?r:yu(r,t)}var TS=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}),hS=Z(function(e){return e.push(n,rl),Ge(Gl,n,e)});function yS(e,t){return jc(e,M(t,3),ht)}function xS(e,t){return jc(e,M(t,3),bs)}function SS(e,t){return e==null?e:_s(e,M(t,3),Fe)}function vS(e,t){return e==null?e:Au(e,M(t,3),Fe)}function wS(e,t){return e&&ht(e,M(t,3))}function AS(e,t){return e&&bs(e,M(t,3))}function IS(e){return e==null?[]:Io(e,we(e))}function _S(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 bS(e,t){return e!=null&&sl(e,t,ZT)}function ia(e,t){return e!=null&&sl(e,t,XT)}var LS=Qu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=lo.call(t)),e[t]=r},aa(Ue)),ES=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),kS=Z(Ar);function we(e){return Me(e)?Tu(e):Cs(e)}function Fe(e){return Me(e)?Tu(e,!0):sh(e)}function CS(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,t(a,c,p),a)}),r}function PS(e,t){var r={};return t=M(t,3),ht(e,function(a,c,p){Pt(r,c,t(a,c,p))}),r}var RS=Hn(function(e,t,r){_o(e,t,r)}),Gl=Hn(function(e,t,r,a){_o(e,t,r,a)}),DS=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,Lh));for(var c=t.length;c--;)Ms(r,t[c]);return r});function NS(e,t){return $l(e,Wo(M(t)))}var OS=Dt(function(e,t){return e==null?{}:ch(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 MS(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 FS(e,t,r){return e==null?e:_r(e,t,r)}function US(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 BS(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 WS(e,t){return e==null?!0:Ms(e,t)}function GS(e,t,r){return e==null?e:Uu(e,t,Bs(r))}function $S(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 HS(e){return e==null?[]:hs(e,Fe(e))}function VS(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 qS(e,t,r){return t=Mt(t),r===n?(r=t,t=0):r=Mt(r),e=rt(e),JT(e,t,r)}function zS(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+Im("1e-"+((c+"").length-1))),t)}return Ds(e,t)}var KS=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,Fm).replace(gm,"")}function YS(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&&kg.test(e)?e.replace(Ac,Um):e}function XS(e){return e=ne(e),e&&Og.test(e)?e.replace(ts,"\\$&"):e}var JS=Vn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),QS=Vn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),jS=Zu("toLowerCase");function ev(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 tv(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 nv(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 rv(e,t,r){return r||t==null?t=0:t&&(t=+t),lT(ne(e).replace(ns,""),t||0)}function ov(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),Ns(ne(e),t)}function iv(){var e=arguments,t=ne(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sv=Vn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function av(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 cv=Vn(function(e,t,r){return e+(r?" ":"")+sa(t)});function uv(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 lv(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?Hg:to).source+"|"+(t.evaluate||to).source+"|$","g"),D="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xm+"]")+`
4
+ `;e.replace(C,function(B,X,Q,qe,De,ze){return Q||(Q=qe),L+=e.slice(_,ze).replace(Xg,Bm),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(Bg.test(U))throw new $(v);L=(S?L.replace(Ag,""):L).replace(Ig,"$1").replace(_g,"$1;"),L="function("+(U||"obj")+`) {
14
+ `;else if(Gg.test(U))throw new $(v);L=(S?L.replace(_g,""):L).replace(bg,"$1").replace(Lg,"$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 uv(e){return ne(e).toLowerCase()}function lv(e){return ne(e).toUpperCase()}function pv(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 fv(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 dv(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 gv(e,t){var r=ag,a=cg;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 mv(e){return e=ne(e),e&&bg.test(e)?e.replace(wc,Vm):e}var Tv=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?Bm(e)?Km(e):Cm(e):e.match(t)||[]}var Yl=Z(function(e,t){try{return Ge(e,n,t)}catch(r){return na(r)?r:new $(r)}}),hv=Dt(function(e,t){return Je(t,function(r){r=xt(r),Pt(e,r,ea(e[r],e))}),e});function yv(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 xv(e){return VT(et(e,N))}function aa(e){return function(){return e}}function Sv(e,t){return e==null||e!==e?t:e}var vv=Ju(),wv=Ju(!0);function Ue(e){return e}function ca(e){return Lu(typeof e=="function"?e:et(e,N))}function Av(e){return ku(et(e,N))}function Iv(e,t){return Cu(e,et(t,N))}var _v=Z(function(e,t){return function(r){return Ar(r,e,t)}}),bv=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 Lv(){return ve._===this&&(ve._=jm),this}function la(){}function Ev(e){return e=V(e),Z(function(t){return Pu(t,e)})}var kv=Gs(ue),Cv=Gs(Qc),Pv=Gs(fs);function Zl(e){return Ys(e)?ds(xt(e)):ah(e)}function Rv(e){return function(t){return e==null?n:gn(e,t)}}var Dv=ju(),Nv=ju(!0);function pa(){return[]}function fa(){return!1}function Ov(){return{}}function Mv(){return""}function Fv(){return!0}function Uv(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 Bv(e){return H(e)?ue(e,xt):Ve(e)?[e]:Oe(ml(ne(e)))}function Wv(e){var t=++Jm;return ne(e)+t}var Gv=Co(function(e,t){return e+t},0),$v=$s("ceil"),Hv=Co(function(e,t){return e/t},1),Vv=$s("floor");function qv(e){return e&&e.length?Ao(e,Ue,Ls):n}function zv(e,t){return e&&e.length?Ao(e,M(t,2),Ls):n}function Kv(e){return tu(e,Ue)}function Yv(e,t){return tu(e,M(t,2))}function Zv(e){return e&&e.length?Ao(e,Ue,Ps):n}function Xv(e,t){return e&&e.length?Ao(e,M(t,2),Ps):n}var Jv=Co(function(e,t){return e*t},1),Qv=$s("round"),jv=Co(function(e,t){return e-t},0);function e0(e){return e&&e.length?ms(e,Ue):0}function t0(e,t){return e&&e.length?ms(e,M(t,2)):0}return l.after=Ax,l.ary=bl,l.assign=lS,l.assignIn=Wl,l.assignInWith=Ho,l.assignWith=pS,l.at=fS,l.before=Ll,l.bind=ea,l.bindAll=hv,l.bindKey=El,l.castArray=Ox,l.chain=Al,l.chunk=Vh,l.compact=qh,l.concat=zh,l.cond=yv,l.conforms=xv,l.constant=aa,l.countBy=ex,l.create=dS,l.curry=kl,l.curryRight=Cl,l.debounce=Pl,l.defaults=gS,l.defaultsDeep=mS,l.defer=Ix,l.delay=_x,l.difference=Kh,l.differenceBy=Yh,l.differenceWith=Zh,l.drop=Xh,l.dropRight=Jh,l.dropRightWhile=Qh,l.dropWhile=jh,l.fill=ey,l.filter=nx,l.flatMap=ix,l.flatMapDeep=sx,l.flatMapDepth=ax,l.flatten=xl,l.flattenDeep=ty,l.flattenDepth=ny,l.flip=bx,l.flow=vv,l.flowRight=wv,l.fromPairs=ry,l.functions=wS,l.functionsIn=AS,l.groupBy=cx,l.initial=iy,l.intersection=sy,l.intersectionBy=ay,l.intersectionWith=cy,l.invert=_S,l.invertBy=bS,l.invokeMap=lx,l.iteratee=ca,l.keyBy=px,l.keys=we,l.keysIn=Fe,l.map=Fo,l.mapKeys=ES,l.mapValues=kS,l.matches=Av,l.matchesProperty=Iv,l.memoize=Bo,l.merge=CS,l.mergeWith=Gl,l.method=_v,l.methodOf=bv,l.mixin=ua,l.negate=Wo,l.nthArg=Ev,l.omit=PS,l.omitBy=RS,l.once=Lx,l.orderBy=fx,l.over=kv,l.overArgs=Ex,l.overEvery=Cv,l.overSome=Pv,l.partial=ta,l.partialRight=Rl,l.partition=dx,l.pick=DS,l.pickBy=$l,l.property=Zl,l.propertyOf=Rv,l.pull=fy,l.pullAll=vl,l.pullAllBy=dy,l.pullAllWith=gy,l.pullAt=my,l.range=Dv,l.rangeRight=Nv,l.rearg=kx,l.reject=Tx,l.remove=Ty,l.rest=Cx,l.reverse=Qs,l.sampleSize=yx,l.set=OS,l.setWith=MS,l.shuffle=xx,l.slice=hy,l.sortBy=wx,l.sortedUniq=Iy,l.sortedUniqBy=_y,l.split=iv,l.spread=Px,l.tail=by,l.take=Ly,l.takeRight=Ey,l.takeRightWhile=ky,l.takeWhile=Cy,l.tap=qy,l.throttle=Rx,l.thru=Mo,l.toArray=Fl,l.toPairs=Hl,l.toPairsIn=Vl,l.toPath=Bv,l.toPlainObject=Bl,l.transform=FS,l.unary=Dx,l.union=Py,l.unionBy=Ry,l.unionWith=Dy,l.uniq=Ny,l.uniqBy=Oy,l.uniqWith=My,l.unset=US,l.unzip=js,l.unzipWith=wl,l.update=BS,l.updateWith=WS,l.values=Kn,l.valuesIn=GS,l.without=Fy,l.words=Kl,l.wrap=Nx,l.xor=Uy,l.xorBy=By,l.xorWith=Wy,l.zip=Gy,l.zipObject=$y,l.zipObjectDeep=Hy,l.zipWith=Vy,l.entries=Hl,l.entriesIn=Vl,l.extend=Wl,l.extendWith=Ho,ua(l,l),l.add=Gv,l.attempt=Yl,l.camelCase=qS,l.capitalize=ql,l.ceil=$v,l.clamp=$S,l.clone=Mx,l.cloneDeep=Ux,l.cloneDeepWith=Bx,l.cloneWith=Fx,l.conformsTo=Wx,l.deburr=zl,l.defaultTo=Sv,l.divide=Hv,l.endsWith=zS,l.eq=lt,l.escape=KS,l.escapeRegExp=YS,l.every=tx,l.find=rx,l.findIndex=hl,l.findKey=TS,l.findLast=ox,l.findLastIndex=yl,l.findLastKey=hS,l.floor=Vv,l.forEach=Il,l.forEachRight=_l,l.forIn=yS,l.forInRight=xS,l.forOwn=SS,l.forOwnRight=vS,l.get=oa,l.gt=Gx,l.gte=$x,l.has=IS,l.hasIn=ia,l.head=Sl,l.identity=Ue,l.includes=ux,l.indexOf=oy,l.inRange=HS,l.invoke=LS,l.isArguments=hn,l.isArray=H,l.isArrayBuffer=Hx,l.isArrayLike=Me,l.isArrayLikeObject=me,l.isBoolean=Vx,l.isBuffer=nn,l.isDate=qx,l.isElement=zx,l.isEmpty=Kx,l.isEqual=Yx,l.isEqualWith=Zx,l.isError=na,l.isFinite=Xx,l.isFunction=Ot,l.isInteger=Dl,l.isLength=Go,l.isMap=Nl,l.isMatch=Jx,l.isMatchWith=Qx,l.isNaN=jx,l.isNative=eS,l.isNil=nS,l.isNull=tS,l.isNumber=Ol,l.isObject=le,l.isObjectLike=fe,l.isPlainObject=kr,l.isRegExp=ra,l.isSafeInteger=rS,l.isSet=Ml,l.isString=$o,l.isSymbol=Ve,l.isTypedArray=zn,l.isUndefined=oS,l.isWeakMap=iS,l.isWeakSet=sS,l.join=uy,l.kebabCase=ZS,l.last=nt,l.lastIndexOf=ly,l.lowerCase=XS,l.lowerFirst=JS,l.lt=aS,l.lte=cS,l.max=qv,l.maxBy=zv,l.mean=Kv,l.meanBy=Yv,l.min=Zv,l.minBy=Xv,l.stubArray=pa,l.stubFalse=fa,l.stubObject=Ov,l.stubString=Mv,l.stubTrue=Fv,l.multiply=Jv,l.nth=py,l.noConflict=Lv,l.noop=la,l.now=Uo,l.pad=QS,l.padEnd=jS,l.padStart=ev,l.parseInt=tv,l.random=VS,l.reduce=gx,l.reduceRight=mx,l.repeat=nv,l.replace=rv,l.result=NS,l.round=Qv,l.runInContext=x,l.sample=hx,l.size=Sx,l.snakeCase=ov,l.some=vx,l.sortedIndex=yy,l.sortedIndexBy=xy,l.sortedIndexOf=Sy,l.sortedLastIndex=vy,l.sortedLastIndexBy=wy,l.sortedLastIndexOf=Ay,l.startCase=sv,l.startsWith=av,l.subtract=jv,l.sum=e0,l.sumBy=t0,l.template=cv,l.times=Uv,l.toFinite=Mt,l.toInteger=V,l.toLength=Ul,l.toLower=uv,l.toNumber=rt,l.toSafeInteger=uS,l.toString=ne,l.toUpper=lv,l.trim=pv,l.trimEnd=fv,l.trimStart=dv,l.truncate=gv,l.unescape=mv,l.uniqueId=Wv,l.upperCase=Tv,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==fg;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=mT,J.prototype.reverse=TT,J.prototype.value=hT,l.prototype.at=zy,l.prototype.chain=Ky,l.prototype.commit=Yy,l.prototype.next=Zy,l.prototype.plant=Jy,l.prototype.reverse=Qy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=jy,l.prototype.first=l.prototype.head,Tr&&(l.prototype[Tr]=Xy),l},Xt=Ym();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 GI={};yn(GI,{TransactionsTracker:()=>WI});module.exports=Rr(GI);s();s();var ig=require("react");s();s();var $A=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),vw=R($t,nr,(n,o)=>{let m=n,{accounts:i}=m,u=qo(m,["accounts"]);return j(O({},u),{account:o})}),ww=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}),AL=R($t,n=>n.shard),Aw=R($t,n=>n.ledgerAccount),IL=R($t,n=>n.walletConnectAccount),_L=R($t,n=>n.isAccountLoading),bL=R($t,n=>n.accountLoadingError),Za=R($t,n=>n.websocketEvent);s();var ft=n=>n.loginInfo,CL=R(ft,n=>n.loginMethod),wi=R(ft,En,(n,o)=>Wr(n.loginMethod,o)),PL=R(ft,n=>n.walletConnectLogin),RL=R(ft,n=>n.ledgerLogin),Af=R(ft,n=>n.walletLogin),DL=R(ft,n=>n.isLoginSessionInvalid),Iw=R(ft,n=>n.tokenLogin),NL=R(ft,n=>n.logoutRoute);s();var If=n=>n.modals,FL=R(If,n=>n.txSubmittedModal),_w=R(If,n=>n.notificationModal);s();var bt=n=>n.networkConfig,Ai=R(bt,n=>n.chainID),bw=R(bt,n=>n.network.walletConnectBridgeAddress),Lw=R(bt,n=>n.network.walletConnectV2RelayAddress),Ew=R(bt,n=>n.network.walletConnectV2ProjectId),kw=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,$L=R(Xa,n=>n.isSigning),HL=R(Xa,n=>n.errorMessage),VL=R(Xa,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var Ja=n=>n.toasts,KL=R(Ja,n=>n.customToasts),YL=R(Ja,n=>n.transactionToasts),ZL=R(Ja,n=>n.failTransactionToast);s();ae();var Ef={errorMessage:Ha,successMessage:Va,processingMessage:qa},Cw=n=>n.transactionsInfo,Pw=R(Cw,(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 Rw=[Qo],bi=!1,Dw=(0,kf.default)(()=>{Mr(Or())},5e3),Cf=n=>o=>i=>{var E;if(Rw.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),Dw()),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),QE=Qf(q),jE=(0,tc.configureStore)({reducer:kn});s();s();var nA=require("@multiversx/sdk-core/out");s();se();s();var nd=require("@multiversx/sdk-core");Ie();s();var td=require("@multiversx/sdk-core");function rA(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)&&rA(n)}s();s();s();var iA=require("@multiversx/sdk-core"),sA=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 gA=Y(require("bignumber.js"));se();s();var dA=require("@multiversx/sdk-core"),rc=Y(require("bignumber.js"));se();s();var pA=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 mA=require("@multiversx/sdk-core");se();s();var Hr=require("@multiversx/sdk-core"),yA=require("@multiversx/sdk-network-providers");se();s();s();var TA=Y(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();We();var SA=["reDelegateRewards","claimRewards","unBond"],vA=["wrapEgld","unwrapEgld"],wA=["unStake"],AA=["unDelegate"];s();s();s();se();s();var LA=Y(require("bignumber.js"));s();s();s();s();We();s();var EA=Y(require("bignumber.js"));s();s();s();var PA=Y(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();We();s();s();s();var RA=Y(require("linkifyjs"));s();se();s();var DA=Y(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();We();s();We();s();var NA=Y(require("bignumber.js"));se();We();s();We();s();var pd=require("react");Ie();s();s();We();s();s();var OA=require("@multiversx/sdk-core/out"),MA=Y(require("bignumber.js"));We();s();Ie();s();s();Ie();var _D=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var fd=require("react");Ie();s();var UA=require("react");We();var RD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];tr();var Di=n=>n.transactions,rr=R(Di,n=>n.signedTransactions),BA=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)),WA=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)))||[]})}),GA=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 VA=Y(require("axios"));s();s();var qA=Y(require("axios"));s();var zA=Y(require("axios"));s();s();s();s();var xd=require("react"),or=require("react-redux");var KA={store:q,subscription:ed},sc=(0,xd.createContext)(KA),QN=(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 YA=uc;function dt(){return YA||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 ZA({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)ZA({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 XA=Y(require("axios")),JA=Y(require("swr"));s();s();var Fd=require("react");s();var jA=require("react"),eI=require("@multiversx/sdk-web-wallet-provider"),tI=Y(require("qs"));se();ae();de();s();var Bd=require("react");Ua();s();var Hd=require("react"),lI=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var $d=require("react"),sI=require("@multiversx/sdk-extension-provider");se();s();s();s();var zr=()=>te(nr);s();s();s();s();s();var Kr=Y(require("react"));var gU=(0,Kr.createContext)({}),mU=q.getState();s();var Gd=Y(require("react"));s();var fc=Y(require("react")),rI=Y(require("axios"));s();s();ae();s();s();var pI=Y(require("axios"));ae();Ie();Fr();s();wn();ae();s();s();var vI=require("react");s();s();s();ae();s();s();var gI=Y(require("bignumber.js"));se();ae();Ie();s();var dI=Y(require("bignumber.js"));se();s();var mI=require("@multiversx/sdk-core"),TI=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 hI=4;var iW=Gi((n,o)=>G(void 0,null,function*(){let{data:i}=yield zd.default.get(`${n}/${nc}?from=${hI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();jo();s();s();var yI=Y(Kd());s();var Yd,yW={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 AI=require("react"),II=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();In();s();var wI=require("react"),Xd=require("@multiversx/sdk-core");ae();s();var _I=require("react"),bI=require("@multiversx/sdk-opera-provider");wn();Ce();de();In();s();var EI=require("react");wn();ae();s();s();s();Ea();s();s();var LI=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"),CI=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();In();s();var kI=require("react");s();var Tc=require("react"),DI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();In();s();var hc=require("react"),NI=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 OI=3e3,MI=3,FI=500,UI=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))},UI)},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:MI,timeout:OI,query:{address:o}}),qt.status="completed",qt.current.onAny(k=>{m(k)})}),{retries:2,delay:FI}),[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,BI=R(og,n=>n.visible),Vi=R(og,n=>n.modal),J3=R(Vi,n=>n.showHeader),Q3=R(Vi,n=>n.showFooter),j3=R(Vi,n=>n.headerText),e6=R(Vi,n=>n.footerText);function sg(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])}function WI({getTransactionsByHash:n}){return sg({getTransactionsByHash:n}),null}0&&(module.exports={TransactionsTracker});
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 pv(e){return ne(e).toLowerCase()}function fv(e){return ne(e).toUpperCase()}function dv(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 gv(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 mv(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 Tv(e,t){var r=ug,a=lg;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 hv(e){return e=ne(e),e&&Eg.test(e)?e.replace(wc,zm):e}var yv=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?Gm(e)?Zm(e):Rm(e):e.match(t)||[]}var Yl=Z(function(e,t){try{return Ge(e,n,t)}catch(r){return na(r)?r:new $(r)}}),xv=Dt(function(e,t){return Je(t,function(r){r=xt(r),Pt(e,r,ea(e[r],e))}),e});function Sv(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 vv(e){return zT(et(e,N))}function aa(e){return function(){return e}}function wv(e,t){return e==null||e!==e?t:e}var Av=Ju(),Iv=Ju(!0);function Ue(e){return e}function ca(e){return Lu(typeof e=="function"?e:et(e,N))}function _v(e){return ku(et(e,N))}function bv(e,t){return Cu(e,et(t,N))}var Lv=Z(function(e,t){return function(r){return Ar(r,e,t)}}),Ev=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 kv(){return ve._===this&&(ve._=tT),this}function la(){}function Cv(e){return e=V(e),Z(function(t){return Pu(t,e)})}var Pv=Gs(ue),Rv=Gs(Qc),Dv=Gs(fs);function Zl(e){return Ys(e)?ds(xt(e)):uh(e)}function Nv(e){return function(t){return e==null?n:gn(e,t)}}var Ov=ju(),Mv=ju(!0);function pa(){return[]}function fa(){return!1}function Fv(){return{}}function Uv(){return""}function Bv(){return!0}function Wv(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 Gv(e){return H(e)?ue(e,xt):Ve(e)?[e]:Oe(ml(ne(e)))}function $v(e){var t=++jm;return ne(e)+t}var Hv=Co(function(e,t){return e+t},0),Vv=$s("ceil"),qv=Co(function(e,t){return e/t},1),zv=$s("floor");function Kv(e){return e&&e.length?Ao(e,Ue,Ls):n}function Yv(e,t){return e&&e.length?Ao(e,M(t,2),Ls):n}function Zv(e){return tu(e,Ue)}function Xv(e,t){return tu(e,M(t,2))}function Jv(e){return e&&e.length?Ao(e,Ue,Ps):n}function Qv(e,t){return e&&e.length?Ao(e,M(t,2),Ps):n}var jv=Co(function(e,t){return e*t},1),e0=$s("round"),t0=Co(function(e,t){return e-t},0);function n0(e){return e&&e.length?ms(e,Ue):0}function r0(e,t){return e&&e.length?ms(e,M(t,2)):0}return l.after=_x,l.ary=bl,l.assign=fS,l.assignIn=Wl,l.assignInWith=Ho,l.assignWith=dS,l.at=gS,l.before=Ll,l.bind=ea,l.bindAll=xv,l.bindKey=El,l.castArray=Fx,l.chain=Al,l.chunk=zh,l.compact=Kh,l.concat=Yh,l.cond=Sv,l.conforms=vv,l.constant=aa,l.countBy=nx,l.create=mS,l.curry=kl,l.curryRight=Cl,l.debounce=Pl,l.defaults=TS,l.defaultsDeep=hS,l.defer=bx,l.delay=Lx,l.difference=Zh,l.differenceBy=Xh,l.differenceWith=Jh,l.drop=Qh,l.dropRight=jh,l.dropRightWhile=ey,l.dropWhile=ty,l.fill=ny,l.filter=ox,l.flatMap=ax,l.flatMapDeep=cx,l.flatMapDepth=ux,l.flatten=xl,l.flattenDeep=ry,l.flattenDepth=oy,l.flip=Ex,l.flow=Av,l.flowRight=Iv,l.fromPairs=iy,l.functions=IS,l.functionsIn=_S,l.groupBy=lx,l.initial=ay,l.intersection=cy,l.intersectionBy=uy,l.intersectionWith=ly,l.invert=LS,l.invertBy=ES,l.invokeMap=fx,l.iteratee=ca,l.keyBy=dx,l.keys=we,l.keysIn=Fe,l.map=Fo,l.mapKeys=CS,l.mapValues=PS,l.matches=_v,l.matchesProperty=bv,l.memoize=Bo,l.merge=RS,l.mergeWith=Gl,l.method=Lv,l.methodOf=Ev,l.mixin=ua,l.negate=Wo,l.nthArg=Cv,l.omit=DS,l.omitBy=NS,l.once=kx,l.orderBy=gx,l.over=Pv,l.overArgs=Cx,l.overEvery=Rv,l.overSome=Dv,l.partial=ta,l.partialRight=Rl,l.partition=mx,l.pick=OS,l.pickBy=$l,l.property=Zl,l.propertyOf=Nv,l.pull=gy,l.pullAll=vl,l.pullAllBy=my,l.pullAllWith=Ty,l.pullAt=hy,l.range=Ov,l.rangeRight=Mv,l.rearg=Px,l.reject=yx,l.remove=yy,l.rest=Rx,l.reverse=Qs,l.sampleSize=Sx,l.set=FS,l.setWith=US,l.shuffle=vx,l.slice=xy,l.sortBy=Ix,l.sortedUniq=by,l.sortedUniqBy=Ly,l.split=av,l.spread=Dx,l.tail=Ey,l.take=ky,l.takeRight=Cy,l.takeRightWhile=Py,l.takeWhile=Ry,l.tap=Ky,l.throttle=Nx,l.thru=Mo,l.toArray=Fl,l.toPairs=Hl,l.toPairsIn=Vl,l.toPath=Gv,l.toPlainObject=Bl,l.transform=BS,l.unary=Ox,l.union=Dy,l.unionBy=Ny,l.unionWith=Oy,l.uniq=My,l.uniqBy=Fy,l.uniqWith=Uy,l.unset=WS,l.unzip=js,l.unzipWith=wl,l.update=GS,l.updateWith=$S,l.values=Kn,l.valuesIn=HS,l.without=By,l.words=Kl,l.wrap=Mx,l.xor=Wy,l.xorBy=Gy,l.xorWith=$y,l.zip=Hy,l.zipObject=Vy,l.zipObjectDeep=qy,l.zipWith=zy,l.entries=Hl,l.entriesIn=Vl,l.extend=Wl,l.extendWith=Ho,ua(l,l),l.add=Hv,l.attempt=Yl,l.camelCase=KS,l.capitalize=ql,l.ceil=Vv,l.clamp=VS,l.clone=Ux,l.cloneDeep=Wx,l.cloneDeepWith=Gx,l.cloneWith=Bx,l.conformsTo=$x,l.deburr=zl,l.defaultTo=wv,l.divide=qv,l.endsWith=YS,l.eq=lt,l.escape=ZS,l.escapeRegExp=XS,l.every=rx,l.find=ix,l.findIndex=hl,l.findKey=yS,l.findLast=sx,l.findLastIndex=yl,l.findLastKey=xS,l.floor=zv,l.forEach=Il,l.forEachRight=_l,l.forIn=SS,l.forInRight=vS,l.forOwn=wS,l.forOwnRight=AS,l.get=oa,l.gt=Hx,l.gte=Vx,l.has=bS,l.hasIn=ia,l.head=Sl,l.identity=Ue,l.includes=px,l.indexOf=sy,l.inRange=qS,l.invoke=kS,l.isArguments=hn,l.isArray=H,l.isArrayBuffer=qx,l.isArrayLike=Me,l.isArrayLikeObject=me,l.isBoolean=zx,l.isBuffer=nn,l.isDate=Kx,l.isElement=Yx,l.isEmpty=Zx,l.isEqual=Xx,l.isEqualWith=Jx,l.isError=na,l.isFinite=Qx,l.isFunction=Ot,l.isInteger=Dl,l.isLength=Go,l.isMap=Nl,l.isMatch=jx,l.isMatchWith=eS,l.isNaN=tS,l.isNative=nS,l.isNil=oS,l.isNull=rS,l.isNumber=Ol,l.isObject=le,l.isObjectLike=fe,l.isPlainObject=kr,l.isRegExp=ra,l.isSafeInteger=iS,l.isSet=Ml,l.isString=$o,l.isSymbol=Ve,l.isTypedArray=zn,l.isUndefined=sS,l.isWeakMap=aS,l.isWeakSet=cS,l.join=py,l.kebabCase=JS,l.last=nt,l.lastIndexOf=fy,l.lowerCase=QS,l.lowerFirst=jS,l.lt=uS,l.lte=lS,l.max=Kv,l.maxBy=Yv,l.mean=Zv,l.meanBy=Xv,l.min=Jv,l.minBy=Qv,l.stubArray=pa,l.stubFalse=fa,l.stubObject=Fv,l.stubString=Uv,l.stubTrue=Bv,l.multiply=jv,l.nth=dy,l.noConflict=kv,l.noop=la,l.now=Uo,l.pad=ev,l.padEnd=tv,l.padStart=nv,l.parseInt=rv,l.random=zS,l.reduce=Tx,l.reduceRight=hx,l.repeat=ov,l.replace=iv,l.result=MS,l.round=e0,l.runInContext=x,l.sample=xx,l.size=wx,l.snakeCase=sv,l.some=Ax,l.sortedIndex=Sy,l.sortedIndexBy=vy,l.sortedIndexOf=wy,l.sortedLastIndex=Ay,l.sortedLastIndexBy=Iy,l.sortedLastIndexOf=_y,l.startCase=cv,l.startsWith=uv,l.subtract=t0,l.sum=n0,l.sumBy=r0,l.template=lv,l.times=Wv,l.toFinite=Mt,l.toInteger=V,l.toLength=Ul,l.toLower=pv,l.toNumber=rt,l.toSafeInteger=pS,l.toString=ne,l.toUpper=fv,l.trim=dv,l.trimEnd=gv,l.trimStart=mv,l.truncate=Tv,l.unescape=hv,l.uniqueId=$v,l.upperCase=yv,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==gg;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=hT,J.prototype.reverse=yT,J.prototype.value=xT,l.prototype.at=Yy,l.prototype.chain=Zy,l.prototype.commit=Xy,l.prototype.next=Jy,l.prototype.plant=jy,l.prototype.reverse=ex,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=tx,l.prototype.first=l.prototype.head,Tr&&(l.prototype[Tr]=Qy),l},Xt=Xm();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 HI={};yn(HI,{TransactionsTracker:()=>$I});module.exports=Rr(HI);s();s();var ag=require("react");s();s();var VA=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),Aw=R($t,nr,(n,o)=>{let m=n,{accounts:i}=m,u=qo(m,["accounts"]);return j(O({},u),{account:o})}),Iw=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}),_L=R($t,n=>n.shard),_w=R($t,n=>n.ledgerAccount),bL=R($t,n=>n.walletConnectAccount),LL=R($t,n=>n.isAccountLoading),EL=R($t,n=>n.accountLoadingError),Za=R($t,n=>n.websocketEvent);s();var ft=n=>n.loginInfo,RL=R(ft,n=>n.loginMethod),wi=R(ft,En,(n,o)=>Wr(n.loginMethod,o)),DL=R(ft,n=>n.walletConnectLogin),NL=R(ft,n=>n.ledgerLogin),Af=R(ft,n=>n.walletLogin),OL=R(ft,n=>n.isLoginSessionInvalid),bw=R(ft,n=>n.tokenLogin),ML=R(ft,n=>n.logoutRoute);s();var If=n=>n.modals,BL=R(If,n=>n.txSubmittedModal),Lw=R(If,n=>n.notificationModal);s();var bt=n=>n.networkConfig,Ai=R(bt,n=>n.chainID),Ew=R(bt,n=>n.network.walletConnectBridgeAddress),kw=R(bt,n=>n.network.walletConnectV2RelayAddress),Cw=R(bt,n=>n.network.walletConnectV2ProjectId),Pw=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,VL=R(Xa,n=>n.isSigning),qL=R(Xa,n=>n.errorMessage),zL=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),XL=R(Ja,n=>n.transactionToasts),JL=R(Ja,n=>n.failTransactionToast);s();ae();var Ef={errorMessage:Ha,successMessage:Va,processingMessage:qa},Rw=n=>n.transactionsInfo,Dw=R(Rw,(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 Nw=[Qo],bi=!1,Ow=(0,kf.default)(()=>{Mr(Or())},5e3),Cf=n=>o=>i=>{var E;if(Nw.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),Ow()),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),e1=Qf(q),t1=(0,tc.configureStore)({reducer:kn});s();s();var oA=require("@multiversx/sdk-core/out");s();se();s();var nd=require("@multiversx/sdk-core");Ie();s();var td=require("@multiversx/sdk-core");function iA(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)&&iA(n)}s();s();s();var aA=require("@multiversx/sdk-core"),cA=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 TA=Y(require("bignumber.js"));se();s();var mA=require("@multiversx/sdk-core"),rc=Y(require("bignumber.js"));se();s();var dA=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 hA=require("@multiversx/sdk-core");se();s();var Hr=require("@multiversx/sdk-core"),SA=require("@multiversx/sdk-network-providers");se();s();s();var yA=Y(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();We();var wA=["reDelegateRewards","claimRewards","unBond"],AA=["wrapEgld","unwrapEgld"],IA=["unStake"],_A=["unDelegate"];s();s();s();se();s();var kA=Y(require("bignumber.js"));s();s();s();s();We();s();var CA=Y(require("bignumber.js"));s();s();s();var DA=Y(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();We();s();s();s();var NA=Y(require("linkifyjs"));s();se();s();var OA=Y(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();We();s();We();s();var MA=Y(require("bignumber.js"));se();We();s();We();s();var pd=require("react");Ie();s();s();We();s();s();var FA=require("@multiversx/sdk-core/out"),UA=Y(require("bignumber.js"));We();s();Ie();s();s();Ie();var LD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var fd=require("react");Ie();s();var WA=require("react");We();var ND=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];tr();var Di=n=>n.transactions,rr=R(Di,n=>n.signedTransactions),GA=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)),$A=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)))||[]})}),HA=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 zA=Y(require("axios"));s();s();var KA=Y(require("axios"));s();var YA=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),eO=(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 XA=uc;function dt(){return XA||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 JA({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)JA({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 QA=Y(require("axios")),jA=Y(require("swr"));s();s();var Fd=require("react");s();var nI=require("react"),Wd=require("@multiversx/sdk-web-wallet-provider"),rI=Y(require("qs"));se();ae();de();s();s();var Ud,RF={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"),fI=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var Vd=require("react"),cI=require("@multiversx/sdk-extension-provider");se();s();s();s();var zr=()=>te(nr);s();s();s();s();s();var Kr=Y(require("react"));var AU=(0,Kr.createContext)({}),IU=q.getState();s();var Hd=Y(require("react"));s();var fc=Y(require("react")),iI=Y(require("axios"));s();s();ae();s();s();var dI=Y(require("axios"));ae();Ie();Fr();s();wn();ae();s();s();var AI=require("react");s();s();s();ae();s();s();var TI=Y(require("bignumber.js"));se();ae();Ie();s();var mI=Y(require("bignumber.js"));se();s();var hI=require("@multiversx/sdk-core"),yI=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 xI=4;var gW=Gi((n,o)=>G(void 0,null,function*(){let{data:i}=yield Yd.default.get(`${n}/${nc}?from=${xI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();jo();s();s();var SI=Y(Zd());s();var Xd,LW={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 _I=require("react"),bI=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();In();s();var II=require("react"),Qd=require("@multiversx/sdk-core");ae();s();var LI=require("react"),EI=require("@multiversx/sdk-opera-provider");wn();Ce();de();In();s();var CI=require("react");wn();ae();s();s();Ea();s();s();var kI=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"),RI=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();In();s();var PI=require("react");s();var Tc=require("react"),OI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();In();s();var hc=require("react"),MI=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 FI=3e3,UI=3,BI=500,WI=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))},WI)},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:UI,timeout:FI,query:{address:o}}),qt.status="completed",qt.current.onAny(k=>{m(k)})}),{retries:2,delay:BI}),[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,GI=R(sg,n=>n.visible),Vi=R(sg,n=>n.modal),n6=R(Vi,n=>n.showHeader),r6=R(Vi,n=>n.showFooter),o6=R(Vi,n=>n.headerText),i6=R(Vi,n=>n.footerText);function cg(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])}function $I({getTransactionsByHash:n}){return cg({getTransactionsByHash:n}),null}0&&(module.exports={TransactionsTracker});
21
21
  /*!
22
22
  * The buffer module from node.js, for the browser.
23
23
  *