@multiversx/sdk-dapp 2.10.11 → 2.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/UI/DappModal/hooks/index.js +1 -1
  2. package/UI/DappModal/hooks/useDappModal.js +1 -1
  3. package/UI/DappModal/index.js +1 -1
  4. package/UI/ModalContainer/ModalContainer.js +1 -1
  5. package/UI/ModalContainer/index.js +1 -1
  6. package/UI/NotificationModal/index.js +1 -1
  7. package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
  8. package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
  9. package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
  10. package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
  11. package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  12. package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
  13. package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
  14. package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
  15. package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
  16. package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
  17. package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
  18. package/UI/SignTransactionsModals/components/index.js +1 -1
  19. package/UI/SignTransactionsModals/index.js +1 -1
  20. package/UI/TransactionInfo/TransactionInfo.js +1 -1
  21. package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
  22. package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
  23. package/UI/TransactionInfo/components/index.js +1 -1
  24. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
  25. package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
  26. package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
  27. package/UI/TransactionInfo/index.js +1 -1
  28. package/UI/TransactionsTable/TransactionsTable.js +1 -1
  29. package/UI/TransactionsTable/index.js +1 -1
  30. package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
  31. package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
  32. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
  33. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
  34. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
  35. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
  36. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
  37. package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
  38. package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
  39. package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
  40. package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
  41. package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
  42. package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
  43. package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
  44. package/UI/TransactionsToastList/components/index.js +1 -1
  45. package/UI/TransactionsToastList/index.js +1 -1
  46. package/UI/index.js +1 -1
  47. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  48. package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
  49. package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
  50. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  51. package/UI/ledger/index.js +1 -1
  52. package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
  53. package/UI/pages/UnlockPage/index.js +1 -1
  54. package/UI/pages/index.js +1 -1
  55. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  56. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  57. package/UI/walletConnect/index.js +1 -1
  58. package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
  59. package/__chunks__/{chunk-FFCO2QCC.js → chunk-45ARMIIV.js} +2 -2
  60. package/__chunks__/{chunk-NAEZYYME.js → chunk-4AY436A3.js} +2 -2
  61. package/__chunks__/chunk-64WNNRH3.js +2 -0
  62. package/__chunks__/{chunk-2DEMXGE3.js → chunk-AGGHZD2X.js} +2 -2
  63. package/__chunks__/{chunk-ZD2FOYXH.js → chunk-BUAPQSLE.js} +2 -2
  64. package/__chunks__/{chunk-SXK2WRU5.js → chunk-D6K2SNBC.js} +2 -2
  65. package/__chunks__/{chunk-GO5RYX6I.js → chunk-HO5YNQLL.js} +2 -2
  66. package/__chunks__/{chunk-NV453TM2.js → chunk-HOF5K2JI.js} +2 -2
  67. package/__chunks__/{chunk-6U5ZKZIN.js → chunk-IHUJVHF6.js} +2 -2
  68. package/__chunks__/{chunk-YGN4D6EE.js → chunk-IVVW25DH.js} +2 -2
  69. package/__chunks__/{chunk-TM4XVRT6.js → chunk-M2A6EX5R.js} +2 -2
  70. package/__chunks__/{chunk-E4EQIILV.js → chunk-MGZU5WBA.js} +2 -2
  71. package/__chunks__/chunk-WISK7MIJ.js +2 -0
  72. package/__chunks__/{chunk-XZCNMRIW.js → chunk-YSWO56CP.js} +2 -2
  73. package/__chunks__/{chunk-A3ANJRRQ.js → chunk-YUXJXHBM.js} +2 -2
  74. package/__chunks__/chunk-ZRLJX7WH.js +2 -0
  75. package/__commonjs/UI/DappModal/hooks/index.js +5 -5
  76. package/__commonjs/UI/DappModal/hooks/useDappModal.js +5 -5
  77. package/__commonjs/UI/DappModal/index.js +9 -9
  78. package/__commonjs/UI/ModalContainer/ModalContainer.js +7 -7
  79. package/__commonjs/UI/ModalContainer/index.js +7 -7
  80. package/__commonjs/UI/NotificationModal/index.js +8 -8
  81. package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +26 -26
  82. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +9 -9
  83. package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +11 -11
  84. package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +9 -9
  85. package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
  86. package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +11 -11
  87. package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +9 -9
  88. package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +9 -9
  89. package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +18 -18
  90. package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +19 -19
  91. package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +14 -14
  92. package/__commonjs/UI/SignTransactionsModals/components/index.js +18 -18
  93. package/__commonjs/UI/SignTransactionsModals/index.js +26 -26
  94. package/__commonjs/UI/TransactionInfo/TransactionInfo.js +40 -40
  95. package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +6 -6
  96. package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +6 -6
  97. package/__commonjs/UI/TransactionInfo/components/index.js +41 -41
  98. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +7 -7
  99. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +7 -7
  100. package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +37 -37
  101. package/__commonjs/UI/TransactionInfo/index.js +41 -41
  102. package/__commonjs/UI/TransactionsTable/TransactionsTable.js +18 -18
  103. package/__commonjs/UI/TransactionsTable/index.js +18 -18
  104. package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +18 -18
  105. package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +13 -13
  106. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +13 -13
  107. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +13 -13
  108. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +11 -11
  109. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +11 -11
  110. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +13 -13
  111. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +13 -13
  112. package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +13 -13
  113. package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +13 -13
  114. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +13 -13
  115. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +6 -6
  116. package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +13 -13
  117. package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +13 -13
  118. package/__commonjs/UI/TransactionsToastList/components/index.js +18 -18
  119. package/__commonjs/UI/TransactionsToastList/index.js +18 -18
  120. package/__commonjs/UI/index.js +68 -68
  121. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +20 -20
  122. package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +8 -8
  123. package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +6 -6
  124. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +20 -20
  125. package/__commonjs/UI/ledger/index.js +20 -20
  126. package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +7 -7
  127. package/__commonjs/UI/pages/UnlockPage/index.js +23 -23
  128. package/__commonjs/UI/pages/index.js +23 -23
  129. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +13 -13
  130. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +10 -10
  131. package/__commonjs/UI/walletConnect/index.js +13 -13
  132. package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +7 -7
  133. package/__commonjs/__mocks__/index.js +5 -5
  134. package/__commonjs/__mocks__/utils/index.js +11 -11
  135. package/__commonjs/__mocks__/utils/renderWithProvider.js +11 -11
  136. package/__commonjs/components/LogoutListener/LogoutListener.js +5 -5
  137. package/__commonjs/components/LogoutListener/helpers/index.js +5 -5
  138. package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +5 -5
  139. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +5 -5
  140. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +5 -5
  141. package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +5 -5
  142. package/__commonjs/components/LogoutListener/index.js +5 -5
  143. package/__commonjs/components/ProviderInitializer.js +11 -11
  144. package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +14 -14
  145. package/__commonjs/components/TransactionsTracker/TransactionTracker.js +5 -5
  146. package/__commonjs/components/TransactionsTracker/index.js +5 -5
  147. package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +5 -5
  148. package/__commonjs/hooks/index.js +7 -7
  149. package/__commonjs/hooks/login/index.js +5 -5
  150. package/__commonjs/hooks/login/useLedgerLogin.js +5 -5
  151. package/__commonjs/hooks/login/useWebWalletLogin.js +5 -5
  152. package/__commonjs/hooks/signMessage/index.js +1 -1
  153. package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
  154. package/__commonjs/hooks/transactions/index.js +5 -5
  155. package/__commonjs/hooks/transactions/useParseSignedTransactions.js +1 -1
  156. package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
  157. package/__commonjs/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  158. package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  159. package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  160. package/__commonjs/utils/index.js +3 -3
  161. package/__commonjs/utils/parseNavigationParams.js +1 -1
  162. package/__commonjs/wrappers/DappProvider/CustomComponents.js +5 -5
  163. package/__commonjs/wrappers/DappProvider/index.js +11 -11
  164. package/__commonjs/wrappers/index.js +5 -5
  165. package/__mocks__/index.js +1 -1
  166. package/__mocks__/utils/index.js +1 -1
  167. package/__mocks__/utils/renderWithProvider.js +1 -1
  168. package/components/LogoutListener/LogoutListener.js +1 -1
  169. package/components/LogoutListener/helpers/index.js +1 -1
  170. package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
  171. package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
  172. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
  173. package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
  174. package/components/LogoutListener/index.js +1 -1
  175. package/components/ProviderInitializer.js +1 -1
  176. package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
  177. package/components/TransactionsTracker/TransactionTracker.js +1 -1
  178. package/components/TransactionsTracker/index.js +1 -1
  179. package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
  180. package/hooks/index.js +1 -1
  181. package/hooks/login/index.js +1 -1
  182. package/hooks/login/useLedgerLogin.js +1 -1
  183. package/hooks/login/useWebWalletLogin.js +1 -1
  184. package/hooks/signMessage/index.js +1 -1
  185. package/hooks/signMessage/useSignMessage.js +1 -1
  186. package/hooks/transactions/index.js +1 -1
  187. package/hooks/transactions/useParseSignedTransactions.js +1 -1
  188. package/hooks/transactions/useSignTransactions.js +1 -1
  189. package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
  190. package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
  191. package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
  192. package/package.json +1 -1
  193. package/utils/index.js +1 -1
  194. package/utils/parseNavigationParams.d.ts +12 -1
  195. package/utils/parseNavigationParams.js +1 -1
  196. package/utils/tests/parseNavigationParams.test.d.ts +2 -0
  197. package/wrappers/DappProvider/CustomComponents.js +1 -1
  198. package/wrappers/DappProvider/index.js +1 -1
  199. package/wrappers/index.js +1 -1
  200. package/__chunks__/chunk-BKQNIGD5.js +0 -2
  201. package/__chunks__/chunk-D35V4POU.js +0 -2
  202. package/__chunks__/chunk-W47X2A4Z.js +0 -2
@@ -1,7 +1,7 @@
1
- "use strict";var $v=Object.create;var Pr=Object.defineProperty,Hv=Object.defineProperties,Vv=Object.getOwnPropertyDescriptor,qv=Object.getOwnPropertyDescriptors,zv=Object.getOwnPropertyNames,Ho=Object.getOwnPropertySymbols,Kv=Object.getPrototypeOf,oa=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable;var $l=(n,o,i)=>o in n?Pr(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))oa.call(o,i)&&$l(n,i,o[i]);if(Ho)for(var i of Ho(o))Hl.call(o,i)&&$l(n,i,o[i]);return n},Q=(n,o)=>Hv(n,qv(o));var Vo=(n,o)=>{var i={};for(var u in n)oa.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Ho)for(var u of Ho(n))o.indexOf(u)<0&&Hl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Rr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Pr(n,i,{get:o[i],enumerable:!0})},Vl=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of zv(o))!oa.call(n,m)&&m!==i&&Pr(n,m,{get:()=>o[m],enumerable:!(u=Vv(o,m))||u.enumerable});return n};var q=(n,o,i)=>(i=n!=null?$v(Kv(n)):{},Vl(o||!n||!n.__esModule?Pr(i,"default",{value:n,enumerable:!0}):i,n)),Dr=n=>Vl(Pr({},"__esModule",{value:!0}),n);var z=(n,o,i)=>new Promise((u,m)=>{var v=E=>{try{k(i.next(E))}catch(R){m(R)}},S=E=>{try{k(i.throw(E))}catch(R){m(R)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(v,S);k((i=i.apply(n,o)).next())});var Kl=Rr(qo=>{"use strict";s();qo.byteLength=Zv;qo.toByteArray=Jv;qo.fromByteArray=e0;var vt=[],it=[],Yv=typeof Uint8Array!="undefined"?Uint8Array:Array,ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,ql=ia.length;xn<ql;++xn)vt[xn]=ia[xn],it[ia.charCodeAt(xn)]=xn;var xn,ql;it["-".charCodeAt(0)]=62;it["_".charCodeAt(0)]=63;function zl(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 Zv(n){var o=zl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function Xv(n,o,i){return(o+i)*3/4-i}function Jv(n){var o,i=zl(n),u=i[0],m=i[1],v=new Yv(Xv(n,u,m)),S=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=it[n.charCodeAt(E)]<<18|it[n.charCodeAt(E+1)]<<12|it[n.charCodeAt(E+2)]<<6|it[n.charCodeAt(E+3)],v[S++]=o>>16&255,v[S++]=o>>8&255,v[S++]=o&255;return m===2&&(o=it[n.charCodeAt(E)]<<2|it[n.charCodeAt(E+1)]>>4,v[S++]=o&255),m===1&&(o=it[n.charCodeAt(E)]<<10|it[n.charCodeAt(E+1)]<<4|it[n.charCodeAt(E+2)]>>2,v[S++]=o>>8&255,v[S++]=o&255),v}function Qv(n){return vt[n>>18&63]+vt[n>>12&63]+vt[n>>6&63]+vt[n&63]}function jv(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(Qv(u));return m.join("")}function e0(n){for(var o,i=n.length,u=i%3,m=[],v=16383,S=0,k=i-u;S<k;S+=v)m.push(jv(n,S,S+v>k?k:S+v));return u===1?(o=n[i-1],m.push(vt[o>>2]+vt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(vt[o>>10]+vt[o>>4&63]+vt[o<<2&63]+"=")),m.join("")}});var Yl=Rr(sa=>{s();sa.read=function(n,o,i,u,m){var v,S,k=m*8-u-1,E=(1<<k)-1,R=E>>1,H=-7,M=i?m-1:0,ue=i?-1:1,ye=n[o+M];for(M+=ue,v=ye&(1<<-H)-1,ye>>=-H,H+=k;H>0;v=v*256+n[o+M],M+=ue,H-=8);for(S=v&(1<<-H)-1,v>>=-H,H+=u;H>0;S=S*256+n[o+M],M+=ue,H-=8);if(v===0)v=1-R;else{if(v===E)return S?NaN:(ye?-1:1)*(1/0);S=S+Math.pow(2,u),v=v-R}return(ye?-1:1)*S*Math.pow(2,v-u)};sa.write=function(n,o,i,u,m,v){var S,k,E,R=v*8-m-1,H=(1<<R)-1,M=H>>1,ue=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:v-1,ge=u?1:-1,be=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,S=H):(S=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-S))<1&&(S--,E*=2),S+M>=1?o+=ue/E:o+=ue*Math.pow(2,1-M),o*E>=2&&(S++,E/=2),S+M>=H?(k=0,S=H):S+M>=1?(k=(o*E-1)*Math.pow(2,m),S=S+M):(k=o*Math.pow(2,M-1)*Math.pow(2,m),S=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(S=S<<m|k,R+=m;R>0;n[i+ye]=S&255,ye+=ge,S/=256,R-=8);n[i+ye-ge]|=be*128}});var ap=Rr(zn=>{"use strict";s();var aa=Kl(),qn=Yl(),Zl=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 zo=2147483647;zn.kMaxLength=zo;I.TYPED_ARRAY_SUPPORT=t0();!I.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function t0(){try{var n=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(n,o),n.foo()===42}catch(i){return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}});Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function Bt(n){if(n>zo)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 pa(n)}return Ql(n,o,i)}I.poolSize=8192;function Ql(n,o,i){if(typeof n=="string")return r0(n,o);if(ArrayBuffer.isView(n))return o0(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(wt(n,ArrayBuffer)||n&&wt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(wt(n,SharedArrayBuffer)||n&&wt(n.buffer,SharedArrayBuffer)))return ua(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=i0(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 Ql(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function jl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function n0(n,o,i){return jl(n),n<=0?Bt(n):o!==void 0?typeof i=="string"?Bt(n).fill(o,i):Bt(n).fill(o):Bt(n)}I.alloc=function(n,o,i){return n0(n,o,i)};function pa(n){return jl(n),Bt(n<0?0:fa(n)|0)}I.allocUnsafe=function(n){return pa(n)};I.allocUnsafeSlow=function(n){return pa(n)};function r0(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=ep(n,o)|0,u=Bt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ca(n){for(var o=n.length<0?0:fa(n.length)|0,i=Bt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function o0(n){if(wt(n,Uint8Array)){var o=new Uint8Array(n);return ua(o.buffer,o.byteOffset,o.byteLength)}return ca(n)}function ua(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 i0(n){if(I.isBuffer(n)){var o=fa(n.length)|0,i=Bt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||da(n.length)?Bt(0):ca(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ca(n.data)}function fa(n){if(n>=zo)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+zo.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(wt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),wt(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,S=Math.min(u,m);v<S;++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 S=o[u];if(wt(S,Uint8Array))v+S.length>m.length?I.from(S).copy(m,v):Uint8Array.prototype.set.call(m,S,v);else if(I.isBuffer(S))S.copy(m,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=S.length}return m};function ep(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||wt(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 la(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return sp(n).length;default:if(m)return u?-1:la(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=ep;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 h0(this,o,i);case"utf8":case"utf-8":return np(this,o,i);case"ascii":return m0(this,o,i);case"latin1":case"binary":return T0(this,o,i);case"base64":return d0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y0(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?np(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+">"};Zl&&(I.prototype[Zl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,v){if(wt(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 S=v-m,k=u-i,E=Math.min(S,k),R=this.slice(m,v),H=o.slice(i,u),M=0;M<E;++M)if(R[M]!==H[M]){S=R[M],k=H[M];break}return S<k?-1:k<S?1:0};function tp(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,da(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:Xl(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):Xl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Xl(n,o,i,u,m){var v=1,S=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,S/=2,k/=2,i/=2}function E(ye,ge){return v===1?ye[ge]:ye.readUInt16BE(ge*v)}var R;if(m){var H=-1;for(R=i;R<S;R++)if(E(n,R)===E(o,H===-1?0:R-H)){if(H===-1&&(H=R),R-H+1===k)return H*v}else H!==-1&&(R-=R-H),H=-1}else for(i+k>S&&(i=S-k),R=i;R>=0;R--){for(var M=!0,ue=0;ue<k;ue++)if(E(n,R+ue)!==E(o,ue)){M=!1;break}if(M)return R}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return tp(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return tp(this,o,i,u,!1)};function c0(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 S=0;S<u;++S){var k=parseInt(o.substr(S*2,2),16);if(da(k))return S;n[i+S]=k}return S}function u0(n,o,i,u){return Ko(la(o,n.length-i),n,i,u)}function l0(n,o,i,u){return Ko(v0(o),n,i,u)}function p0(n,o,i,u){return Ko(sp(o),n,i,u)}function f0(n,o,i,u){return Ko(w0(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 S=!1;;)switch(m){case"hex":return c0(this,o,i,u);case"utf8":case"utf-8":return u0(this,o,i,u);case"ascii":case"latin1":case"binary":return l0(this,o,i,u);case"base64":return p0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f0(this,o,i,u);default:if(S)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),S=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function d0(n,o,i){return o===0&&i===n.length?aa.fromByteArray(n):aa.fromByteArray(n.slice(o,i))}function np(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var v=n[m],S=null,k=v>239?4:v>223?3:v>191?2:1;if(m+k<=i){var E,R,H,M;switch(k){case 1:v<128&&(S=v);break;case 2:E=n[m+1],(E&192)===128&&(M=(v&31)<<6|E&63,M>127&&(S=M));break;case 3:E=n[m+1],R=n[m+2],(E&192)===128&&(R&192)===128&&(M=(v&15)<<12|(E&63)<<6|R&63,M>2047&&(M<55296||M>57343)&&(S=M));break;case 4:E=n[m+1],R=n[m+2],H=n[m+3],(E&192)===128&&(R&192)===128&&(H&192)===128&&(M=(v&15)<<18|(E&63)<<12|(R&63)<<6|H&63,M>65535&&M<1114112&&(S=M))}}S===null?(S=65533,k=1):S>65535&&(S-=65536,u.push(S>>>10&1023|55296),S=56320|S&1023),u.push(S),m+=k}return g0(u)}var Jl=4096;function g0(n){var o=n.length;if(o<=Jl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Jl));return i}function m0(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 T0(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 h0(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+=A0[n[v]];return m}function y0(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,S=0;++S<i&&(v*=256);)m+=this[o+S]*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,S=0;++S<i&&(v*=256);)m+=this[o+S]*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,S=this[o+--m];m>0&&(v*=256);)S+=this[o+--m]*v;return v*=128,S>=v&&(S-=Math.pow(2,8*i)),S};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),qn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),qn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!1,52,8)};function Ue(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;Ue(this,o,i,u,v,0)}var S=1,k=0;for(this[i]=o&255;++k<u&&(S*=256);)this[i+k]=o/S&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;Ue(this,o,i,u,v,0)}var S=u-1,k=1;for(this[i+S]=o&255;--S>=0&&(k*=256);)this[i+S]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(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||Ue(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||Ue(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||Ue(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||Ue(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);Ue(this,o,i,u,v-1,-v)}var S=0,k=1,E=0;for(this[i]=o&255;++S<u&&(k*=256);)o<0&&E===0&&this[i+S-1]!==0&&(E=1),this[i+S]=(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);Ue(this,o,i,u,v-1,-v)}var S=u-1,k=1,E=0;for(this[i+S]=o&255;--S>=0&&(k*=256);)o<0&&E===0&&this[i+S+1]!==0&&(E=1),this[i+S]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(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||Ue(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||Ue(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||Ue(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||Ue(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 rp(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 op(n,o,i,u,m){return o=+o,i=i>>>0,m||rp(n,o,i,4,34028234663852886e22,-34028234663852886e22),qn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return op(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return op(this,o,i,!1,u)};function ip(n,o,i,u,m){return o=+o,i=i>>>0,m||rp(n,o,i,8,17976931348623157e292,-17976931348623157e292),qn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return ip(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return ip(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 S;if(typeof o=="number")for(S=i;S<u;++S)this[S]=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(S=0;S<u-i;++S)this[S+i]=k[S%E]}return this};var x0=/[^+/0-9A-Za-z-_]/g;function S0(n){if(n=n.split("=")[0],n=n.trim().replace(x0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function la(n,o){o=o||1/0;for(var i,u=n.length,m=null,v=[],S=0;S<u;++S){if(i=n.charCodeAt(S),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&v.push(239,191,189);continue}else if(S+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 v0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function w0(n,o){for(var i,u,m,v=[],S=0;S<n.length&&!((o-=2)<0);++S)i=n.charCodeAt(S),u=i>>8,m=i%256,v.push(m),v.push(u);return v}function sp(n){return aa.toByteArray(S0(n))}function Ko(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 wt(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function da(n){return n!==n}var A0=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 fp=Rr((FI,pp)=>{s();var he=pp.exports={},At,It;function ga(){throw new Error("setTimeout has not been defined")}function ma(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?At=setTimeout:At=ga}catch(n){At=ga}try{typeof clearTimeout=="function"?It=clearTimeout:It=ma}catch(n){It=ma}})();function cp(n){if(At===setTimeout)return setTimeout(n,0);if((At===ga||!At)&&setTimeout)return At=setTimeout,setTimeout(n,0);try{return At(n,0)}catch(o){try{return At.call(null,n,0)}catch(i){return At.call(this,n,0)}}}function I0(n){if(It===clearTimeout)return clearTimeout(n);if((It===ma||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(n);try{return It(n)}catch(o){try{return It.call(null,n)}catch(i){return It.call(this,n)}}}var Wt=[],Kn=!1,vn,Yo=-1;function _0(){!Kn||!vn||(Kn=!1,vn.length?Wt=vn.concat(Wt):Yo=-1,Wt.length&&up())}function up(){if(!Kn){var n=cp(_0);Kn=!0;for(var o=Wt.length;o;){for(vn=Wt,Wt=[];++Yo<o;)vn&&vn[Yo].run();Yo=-1,o=Wt.length}vn=null,Kn=!1,I0(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];Wt.push(new lp(n,o)),Wt.length===1&&!Kn&&cp(up)};function lp(n,o){this.fun=n,this.array=o}lp.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Gt(){}he.on=Gt;he.addListener=Gt;he.once=Gt;he.off=Gt;he.removeListener=Gt;he.removeAllListeners=Gt;he.emit=Gt;he.prependListener=Gt;he.prependOnceListener=Gt;he.listeners=function(n){return[]};he.binding=function(n){throw new Error("process.binding is not supported")};he.cwd=function(){return"/"};he.chdir=function(n){throw new Error("process.chdir is not supported")};he.umask=function(){return 0}});var d,g,b0,f,s=W(()=>{d=q(ap()),g=q(fp()),b0=function(n){function o(){var u=this||self;return delete n.prototype.__magic__,u}if(typeof globalThis=="object")return globalThis;if(this)return o();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:o});var i=__magic__;return i}(Object),f=b0});var wn=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var hp=W(()=>{"use strict";s()});var Be=W(()=>{"use strict";s()});var yp=W(()=>{"use strict";s()});var xp=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();dp();gp();mp();de();Tp();hp();Be();yp();xp()});var Ta,Sp,n_,vp,r_,wp,o_,i_,s_,Ap=W(()=>{"use strict";s();Ie();Ta={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:Sp,egldLabel:n_}=Ta["devnet"],{chainId:vp,egldLabel:r_}=Ta["testnet"],{chainId:wp,egldLabel:o_}=Ta["mainnet"],i_={["devnet"]:Sp,["testnet"]:vp,["mainnet"]:wp},s_={[Sp]:"devnet",[vp]:"testnet",[wp]:"mainnet"}});var ha=W(()=>{"use strict";s()});var Ip=W(()=>{"use strict";s()});var Zo,ya=W(()=>{"use strict";s();Zo="transaction-status-toast-id"});var _t,_p=W(()=>{"use strict";s();_t=require("@multiversx/sdk-web-wallet-provider")});var bp=W(()=>{"use strict";s()});var Nr,Xo,Lp,Jo,Ep,Yn,se=W(()=>{"use strict";s();wn();Ap();ha();Ip();ya();_p();bp();Nr=5e4,Xo=1e9,Lp=1,Jo="logout",Ep="login",Yn="0"});var Zn,Qo=W(()=>{"use strict";s();Zn=()=>Date.now()/1e3});var kp=W(()=>{"use strict";s()});var Cp=W(()=>{"use strict";s()});var xa=W(()=>{"use strict";s();Qo();kp();Cp()});var va={};yn(va,{getItem:()=>E0,localStorageKeys:()=>dt,removeItem:()=>k0,setItem:()=>L0});var dt,Sa,L0,E0,k0,Xn=W(()=>{"use strict";s();xa();dt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Sa=typeof localStorage!="undefined",L0=({key:n,data:o,expires:i})=>{!Sa||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},E0=n=>{if(!Sa)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:Zn()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},k0=n=>{!Sa||localStorage.removeItem(String(n))}});var wa={};yn(wa,{clear:()=>Np,getItem:()=>Rp,removeItem:()=>Dp,setItem:()=>Pp,storage:()=>C0});var Pp,Rp,Dp,Np,C0,Op=W(()=>{"use strict";s();Pp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Rp=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},Dp=n=>sessionStorage.removeItem(String(n)),Np=()=>sessionStorage.clear(),C0={setItem:Pp,getItem:Rp,removeItem:Dp,clear:Np}});var bt,Jn=W(()=>{"use strict";s();Xn();Op();bt={session:wa,local:va}});var Aa,_e,Lt,Ce=W(()=>{"use strict";s();Aa=require("@reduxjs/toolkit");se();_e=(0,Aa.createAction)(Jo),Lt=(0,Aa.createAction)(Ep,n=>({payload:n}))});var _a,Mp,Fp,jo,Ia,Up,ba,U_,La,B_,P0,R0,W_,G_,$_,D0,ei,ti=W(()=>{"use strict";s();_a=require("@multiversx/sdk-core"),Mp=require("@reduxjs/toolkit"),Fp=require("redux-persist");se();Jn();Xn();Ce();jo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Yn},Ia={address:"",websocketEvent:null,accounts:{"":jo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Up=(0,Mp.createSlice)({name:"accountInfoSlice",initialState:Ia,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new _a.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:jo},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(_e,()=>(bt.local.removeItem(dt.loginExpiresAt),Ia)),n.addCase(Lt,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new _a.Address(u).hex()}),n.addCase(Fp.REHYDRATE,(o,i)=>{var R;if(!((R=i.payload)!=null&&R.account))return;let{account:u}=i.payload,{address:m,shard:v,accounts:S,publicKey:k}=u;o.address=m,o.shard=v;let E=S&&m in S;o.accounts=E?S:Ia.accounts,o.publicKey=k})}}),{setAccount:ba,setAddress:U_,setAccountNonce:La,setAccountShard:B_,setLedgerAccount:P0,updateLedgerAccount:R0,setWalletConnectAccount:W_,setIsAccountLoading:G_,setAccountLoadingError:$_,setWebsocketEvent:D0}=Up.actions,ei=Up.reducer});function Or(){return new Date().setHours(new Date().getHours()+24)}function Mr(n){bt.local.setItem({key:dt.loginExpiresAt,data:n,expires:n})}var Ea=W(()=>{"use strict";s();Jn();Xn()});var Wp,Bp,Gp,Q_,$p,N0,O0,j_,M0,Hp,eb,ni,ri=W(()=>{"use strict";s();Wp=require("@reduxjs/toolkit");Ea();de();Ce();Bp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Gp=(0,Wp.createSlice)({name:"loginInfoSlice",initialState:Bp,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(_e,()=>Bp),n.addCase(Lt,(o,i)=>{o.loginMethod=i.payload.loginMethod,Mr(Or())})}}),{setLoginMethod:Q_,setWalletConnectLogin:$p,setLedgerLogin:N0,setTokenLogin:O0,setTokenLoginSignature:j_,setWalletLogin:M0,invalidateLoginSession:Hp,setLogoutRoute:eb}=Gp.actions,ni=Gp.reducer});var qp,Vp,zp,ob,F0,ib,U0,oi,ii=W(()=>{"use strict";s();qp=require("@reduxjs/toolkit");Ce();Vp={},zp=(0,qp.createSlice)({name:"modalsSlice",initialState:Vp,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(_e,()=>Vp)}}),{setTxSubmittedModal:ob,setNotificationModal:F0,clearTxSubmittedModal:ib,clearNotificationModal:U0}=zp.actions,oi=zp.reducer});var Kp,Yp,si,Fr=W(()=>{"use strict";s();Kp=!1,Yp=(n=!0)=>{Kp=n},si=(n,o=0)=>{Kp||setTimeout(()=>{!window||(window.location.href=n,window.location.assign(n))},o)}});var Zp=W(()=>{"use strict";s();Fr()});function ka(n){return n[Math.floor(Math.random()*n.length)]}var Xp=W(()=>{"use strict";s()});var Ca=W(()=>{"use strict";s();ha()});var An=W(()=>{"use strict";s();Zp();Xp();Ca()});var Jp,Qp,Pa,B0,jp,Sb,vb,ai,ci=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit"),Qp=q(require("lodash.omit"));An();Pa={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},B0={network:Pa,chainID:"-1"},jp=(0,Jp.createSlice)({name:"appConfig",initialState:B0,reducers:{initializeNetworkConfig:(n,o)=>{let i=ka(o.payload.walletConnectBridgeAddresses),u=ka(o.payload.walletConnectV2RelayAddresses),m=(0,Qp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:Sb,setChainID:vb}=jp.actions,ai=jp.reducer});var ef,Ra,tf,Lb,Eb,kb,ui,li=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit");Ie();Ce();Ra={isSigning:!1,signedSessions:{}},tf=(0,ef.createSlice)({name:"signedMessageInfoSliceState",initialState:Ra,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Ra},extraReducers:n=>{n.addCase(_e,()=>Ra)}}),{setSignSession:Lb,clearSignedMessageInfo:Eb,setSignSessionState:kb}=tf.actions,ui=tf.reducer});var rf,of,nf,sf,W0,Da,Fb,Ub,Bb,Wb,pi,fi=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit"),of=require("redux-persist");ya();Ie();Qo();Ce();nf={customToasts:[],transactionToasts:[],failTransactionToast:null},sf=(0,rf.createSlice)({name:"toastsSlice",initialState:nf,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Zn(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=Q(O({},o.payload),{toastId:Zo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(_e,()=>nf),n.addCase(of.REHYDRATE,(o,i)=>{var m,v;let u=(v=(m=i.customToasts)==null?void 0:m.filter(S=>!("component"in S)))!=null?v:[];o.customToasts=u})}}),{addCustomToast:W0,removeCustomToast:Da,addTransactionToast:Fb,removeTransactionToast:Ub,addFailTransactionToast:Bb,removeFailTransactionToast:Wb}=sf.actions,pi=sf.reducer});var af,Oa,Ma,Fa,G0,Na,cf,Vb,$0,Ua,di,gi=W(()=>{"use strict";s();af=require("@reduxjs/toolkit");Ce();Oa="Transaction failed",Ma="Transaction successful",Fa="Processing transaction",G0="Transaction submitted",Na={},cf=(0,af.createSlice)({name:"transactionsInfo",initialState:Na,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Oa,successMessage:(u==null?void 0:u.successMessage)||Ma,processingMessage:(u==null?void 0:u.processingMessage)||Fa,submittedMessage:(u==null?void 0:u.submittedMessage)||G0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>Na},extraReducers:n=>{n.addCase(_e,()=>Na)}}),{clearTransactionsInfo:Vb,setTransactionsDisplayInfo:$0,clearTransactionsInfoForSessionId:Ua}=cf.actions,di=cf.reducer});function jn(n){return n!=null&&(X0(n)||ew(n))}function er(n){return n!=null&&(J0(n)||tw(n))}function tr(n){return n!=null&&(Q0(n)||nw(n))}function Ba(n){return n!=null&&j0(n)}function X0(n){return n!=null&&H0.includes(n)}function J0(n){return n!=null&&V0.includes(n)}function Q0(n){return n!=null&&q0.includes(n)}function j0(n){return n!=null&&z0.includes(n)}function ew(n){return n!=null&&K0.includes(n)}function tw(n){return n!=null&&Y0.includes(n)}function nw(n){return n!=null&&Z0.includes(n)}var H0,V0,q0,z0,K0,Y0,Z0,nr=W(()=>{"use strict";s();de();H0=["sent"],V0=["success"],q0=["fail","cancelled","timedOut"],z0=["timedOut"],K0=["pending"],Y0=["success"],Z0=["fail","invalid"]});var uf,lf,Ur,rw,pf,ff,df,ow,mi,iw,sw,jb,aw,Ti,Wa,hi,yi=W(()=>{"use strict";s();uf=require("@reduxjs/toolkit"),lf=require("redux-persist");de();nr();Ce();Ur={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},rw={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},pf=(0,uf.createSlice)({name:"transactionsSlice",initialState:Ur,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,R;let{sessionId:i,transactions:u,errorMessage:m,status:v,redirectRoute:S}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||rw;n.signedTransactions[i]={transactions:u,status:v,errorMessage:m,redirectRoute:S,customTransactionInformation:k},((R=n==null?void 0:n.transactionsToSign)==null?void 0:R.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,R,H,M,ue;let{sessionId:i,status:u,errorMessage:m,transactionHash:v}=o.payload,S=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(S!=null){n.signedTransactions[i].transactions=S.map(be=>be.hash===v?Q(O({},be),{status:u,errorMessage:m}):be);let ye=(H=(R=n.signedTransactions[i])==null?void 0:R.transactions)==null?void 0:H.every(be=>er(be.status)),ge=(ue=(M=n.signedTransactions[i])==null?void 0:M.transactions)==null?void 0:ue.every(be=>tr(be.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(_e,()=>Ur),n.addCase(lf.REHYDRATE,(o,i)=>{var S;if(o.signTransactionsCancelMessage=null,!((S=i.payload)!=null&&S.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,v=Object.entries(u).reduce((k,[E,R])=>{let H=new Date(E),M=new Date;return M.setHours(M.getHours()+5),M-H>0||(k[E]=R),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=v)})}}),{updateSignedTransactionStatus:ff,updateSignedTransactions:df,setTransactionsToSign:ow,clearAllTransactionsToSign:mi,clearAllSignedTransactions:iw,clearSignedTransaction:sw,clearTransactionToSign:jb,setSignTransactionsError:aw,setSignTransactionsCancelMessage:Ti,moveTransactionsToSignedState:Wa}=pf.actions,hi=pf.reducer});var ae=W(()=>{"use strict";s();ti();ri();ii();ci();li();fi();gi();yi()});var Ga=W(()=>{"use strict";s()});var yf,hf,xf,AL,IL,_L,bL,LL,EL,Sf,vf=W(()=>{"use strict";s();yf=require("@reduxjs/toolkit");Ce();hf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},xf=(0,yf.createSlice)({name:"dappModalsSlice",initialState:hf,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(_e,()=>hf)}}),{setDappModalVisibility:AL,setDappModalHeaderVisibility:IL,setDappModalFooterVisibility:_L,setDappModalHeaderText:bL,setDappModalFooterText:LL,setDappModalConfig:EL}=xf.actions,Sf=xf.reducer});var wf,pw,fw,_n,wi=W(()=>{"use strict";s();wf=require("@reduxjs/toolkit");Ga();ti();vf();ri();ii();ci();li();fi();gi();yi();pw={["account"]:ei,["dappModal"]:Sf,["loginInfo"]:ni,["modals"]:oi,["networkConfig"]:ai,["signedMessageInfo"]:ui,["toasts"]:pi,["transactionsInfo"]:di,["transactions"]:hi},fw=(n={})=>(0,wf.combineReducers)(O(O({},pw),n)),_n=fw});var bf={};yn(bf,{default:()=>Lw,sessionStorageReducers:()=>$a});function rn(n,o=[]){return{key:n,version:1,storage:If.default,blacklist:o}}var Ye,Af,If,dw,Wr,gw,mw,Tw,hw,yw,xw,Sw,vw,ww,_f,Aw,$a,Iw,_w,bw,Lw,Lf=W(()=>{"use strict";s();Ye=require("redux-persist"),Af=q(require("redux-persist/lib/storage")),If=q(require("redux-persist/lib/storage/session"));wi();ae();ti();ri();ii();ci();li();fi();gi();yi();Ga();dw={persistReducersStorageType:"localStorage"},Wr={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},gw=rn(Wr["account"]),mw=rn(Wr["loginInfo"]),Tw=rn(Wr["modals"]),hw=rn(Wr["networkConfig"]),yw={2:n=>Q(O({},n),{networkConfig:Pa})};xw=rn("sdk-dapp-transactionsInfo"),Sw=rn("sdk-dapp-transactions",["transactionsToSign"]),vw=rn("sdk-dapp-toasts"),ww=rn("sdk-dapp-signedMessageInfo"),_f={key:"sdk-dapp-store",version:2,storage:Af.default,whitelist:Object.keys(Wr),migrate:(0,Ye.createMigrate)(yw,{debug:!1})},Aw=Q(O({},_f),{whitelist:[]}),$a={["toasts"]:(0,Ye.persistReducer)(vw,pi),["transactions"]:(0,Ye.persistReducer)(Sw,hi),["transactionsInfo"]:(0,Ye.persistReducer)(xw,di),["signedMessageInfo"]:(0,Ye.persistReducer)(ww,ui)},Iw=Q(O({},$a),{["account"]:(0,Ye.persistReducer)(gw,ei),["loginInfo"]:(0,Ye.persistReducer)(mw,ni),["modals"]:(0,Ye.persistReducer)(Tw,oi),["networkConfig"]:(0,Ye.persistReducer)(hw,ai)}),_w=dw.persistReducersStorageType==="localStorage",bw=_w?(0,Ye.persistReducer)(_f,_n($a)):(0,Ye.persistReducer)(Aw,_n(Iw)),Lw=bw});var Ef={};yn(Ef,{default:()=>Ew});var Ew,kf=W(()=>{"use strict";s();wi();Ew=_n()});var Cf={};yn(Cf,{default:()=>Cw});var st,kw,Cw,Pf=W(()=>{"use strict";s();st=require("redux-persist"),kw=[st.FLUSH,st.REHYDRATE,st.PAUSE,st.PERSIST,st.PURGE,st.REGISTER],Cw=kw});var Nf={};yn(Nf,{default:()=>Df});function Df(n){return(0,Rf.persistStore)(n)}var Rf,Of=W(()=>{"use strict";s();Rf=require("redux-persist")});var Md=Rr((sr,zr)=>{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`",S="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",R=1,H=2,M=4,ue=1,ye=2,ge=1,be=2,uc=4,mt=8,En=16,Tt=32,kn=64,Et=128,cr=256,Mi=512,Kd=30,Yd="...",Zd=800,Xd=16,lc=1,Jd=2,Qd=3,cn=1/0,zt=9007199254740991,jd=17976931348623157e292,Zr=0/0,ht=4294967295,eg=ht-1,tg=ht>>>1,ng=[["ary",Et],["bind",ge],["bindKey",be],["curry",mt],["curryRight",En],["flip",Mi],["partial",Tt],["partialRight",kn],["rearg",cr]],Cn="[object Arguments]",Xr="[object Array]",rg="[object AsyncFunction]",ur="[object Boolean]",lr="[object Date]",og="[object DOMException]",Jr="[object Error]",Qr="[object Function]",pc="[object GeneratorFunction]",at="[object Map]",pr="[object Number]",ig="[object Null]",kt="[object Object]",fc="[object Promise]",sg="[object Proxy]",fr="[object RegExp]",ct="[object Set]",dr="[object String]",jr="[object Symbol]",ag="[object Undefined]",gr="[object WeakMap]",cg="[object WeakSet]",mr="[object ArrayBuffer]",Pn="[object DataView]",Fi="[object Float32Array]",Ui="[object Float64Array]",Bi="[object Int8Array]",Wi="[object Int16Array]",Gi="[object Int32Array]",$i="[object Uint8Array]",Hi="[object Uint8ClampedArray]",Vi="[object Uint16Array]",qi="[object Uint32Array]",ug=/\b__p \+= '';/g,lg=/\b(__p \+=) '' \+/g,pg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dc=/&(?:amp|lt|gt|quot|#39);/g,gc=/[&<>"']/g,fg=RegExp(dc.source),dg=RegExp(gc.source),gg=/<%-([\s\S]+?)%>/g,mg=/<%([\s\S]+?)%>/g,mc=/<%=([\s\S]+?)%>/g,Tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hg=/^\w*$/,yg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zi=/[\\^$.*+?()[\]{}|]/g,xg=RegExp(zi.source),Ki=/^\s+/,Sg=/\s/,vg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wg=/\{\n\/\* \[wrapped with (.+)\] \*/,Ag=/,? & /,Ig=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_g=/[()=,{}\[\]\/\s]/,bg=/\\(\\)?/g,Lg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tc=/\w*$/,Eg=/^[-+]0x[0-9a-f]+$/i,kg=/^0b[01]+$/i,Cg=/^\[object .+?Constructor\]$/,Pg=/^0o[0-7]+$/i,Rg=/^(?:0|[1-9]\d*)$/,Dg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eo=/($^)/,Ng=/['\n\r\u2028\u2029\\]/g,to="\\ud800-\\udfff",Og="\\u0300-\\u036f",Mg="\\ufe20-\\ufe2f",Fg="\\u20d0-\\u20ff",hc=Og+Mg+Fg,yc="\\u2700-\\u27bf",xc="a-z\\xdf-\\xf6\\xf8-\\xff",Ug="\\xac\\xb1\\xd7\\xf7",Bg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wg="\\u2000-\\u206f",Gg=" \\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",Sc="A-Z\\xc0-\\xd6\\xd8-\\xde",vc="\\ufe0e\\ufe0f",wc=Ug+Bg+Wg+Gg,Yi="['\u2019]",$g="["+to+"]",Ac="["+wc+"]",no="["+hc+"]",Ic="\\d+",Hg="["+yc+"]",_c="["+xc+"]",bc="[^"+to+wc+Ic+yc+xc+Sc+"]",Zi="\\ud83c[\\udffb-\\udfff]",Vg="(?:"+no+"|"+Zi+")",Lc="[^"+to+"]",Xi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ji="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+Sc+"]",Ec="\\u200d",kc="(?:"+_c+"|"+bc+")",qg="(?:"+Rn+"|"+bc+")",Cc="(?:"+Yi+"(?:d|ll|m|re|s|t|ve))?",Pc="(?:"+Yi+"(?:D|LL|M|RE|S|T|VE))?",Rc=Vg+"?",Dc="["+vc+"]?",zg="(?:"+Ec+"(?:"+[Lc,Xi,Ji].join("|")+")"+Dc+Rc+")*",Kg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nc=Dc+Rc+zg,Zg="(?:"+[Hg,Xi,Ji].join("|")+")"+Nc,Xg="(?:"+[Lc+no+"?",no,Xi,Ji,$g].join("|")+")",Jg=RegExp(Yi,"g"),Qg=RegExp(no,"g"),Qi=RegExp(Zi+"(?="+Zi+")|"+Xg+Nc,"g"),jg=RegExp([Rn+"?"+_c+"+"+Cc+"(?="+[Ac,Rn,"$"].join("|")+")",qg+"+"+Pc+"(?="+[Ac,Rn+kc,"$"].join("|")+")",Rn+"?"+kc+"+"+Cc,Rn+"+"+Pc,Yg,Kg,Ic,Zg].join("|"),"g"),em=RegExp("["+Ec+to+hc+vc+"]"),tm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nm=["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"],rm=-1,ce={};ce[Fi]=ce[Ui]=ce[Bi]=ce[Wi]=ce[Gi]=ce[$i]=ce[Hi]=ce[Vi]=ce[qi]=!0,ce[Cn]=ce[Xr]=ce[mr]=ce[ur]=ce[Pn]=ce[lr]=ce[Jr]=ce[Qr]=ce[at]=ce[pr]=ce[kt]=ce[fr]=ce[ct]=ce[dr]=ce[gr]=!1;var ie={};ie[Cn]=ie[Xr]=ie[mr]=ie[Pn]=ie[ur]=ie[lr]=ie[Fi]=ie[Ui]=ie[Bi]=ie[Wi]=ie[Gi]=ie[at]=ie[pr]=ie[kt]=ie[fr]=ie[ct]=ie[dr]=ie[jr]=ie[$i]=ie[Hi]=ie[Vi]=ie[qi]=!0,ie[Jr]=ie[Qr]=ie[gr]=!1;var om={\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"},im={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},am={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cm=parseFloat,um=parseInt,Oc=typeof f=="object"&&f&&f.Object===Object&&f,lm=typeof self=="object"&&self&&self.Object===Object&&self,ve=Oc||lm||Function("return this")(),ji=typeof sr=="object"&&sr&&!sr.nodeType&&sr,un=ji&&typeof zr=="object"&&zr&&!zr.nodeType&&zr,Mc=un&&un.exports===ji,es=Mc&&Oc.process,Je=function(){try{var y=un&&un.require&&un.require("util").types;return y||es&&es.binding&&es.binding("util")}catch(A){}}(),Fc=Je&&Je.isArrayBuffer,Uc=Je&&Je.isDate,Bc=Je&&Je.isMap,Wc=Je&&Je.isRegExp,Gc=Je&&Je.isSet,$c=Je&&Je.isTypedArray;function Ge(y,A,w){switch(w.length){case 0:return y.call(A);case 1:return y.call(A,w[0]);case 2:return y.call(A,w[0],w[1]);case 3:return y.call(A,w[0],w[1],w[2])}return y.apply(A,w)}function pm(y,A,w,P){for(var G=-1,ee=y==null?0:y.length;++G<ee;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Qe(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function fm(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Hc(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!A(y[w],w,y))return!1;return!0}function Kt(y,A){for(var w=-1,P=y==null?0:y.length,G=0,ee=[];++w<P;){var xe=y[w];A(xe,w,y)&&(ee[G++]=xe)}return ee}function ro(y,A){var w=y==null?0:y.length;return!!w&&Dn(y,A,0)>-1}function ts(y,A,w){for(var P=-1,G=y==null?0:y.length;++P<G;)if(w(A,y[P]))return!0;return!1}function le(y,A){for(var w=-1,P=y==null?0:y.length,G=Array(P);++w<P;)G[w]=A(y[w],w,y);return G}function Yt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function ns(y,A,w,P){var G=-1,ee=y==null?0:y.length;for(P&&ee&&(w=y[++G]);++G<ee;)w=A(w,y[G],G,y);return w}function dm(y,A,w,P){var G=y==null?0:y.length;for(P&&G&&(w=y[--G]);G--;)w=A(w,y[G],G,y);return w}function rs(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(A(y[w],w,y))return!0;return!1}var gm=os("length");function mm(y){return y.split("")}function Tm(y){return y.match(Ig)||[]}function Vc(y,A,w){var P;return w(y,function(G,ee,xe){if(A(G,ee,xe))return P=ee,!1}),P}function oo(y,A,w,P){for(var G=y.length,ee=w+(P?1:-1);P?ee--:++ee<G;)if(A(y[ee],ee,y))return ee;return-1}function Dn(y,A,w){return A===A?Em(y,A,w):oo(y,qc,w)}function hm(y,A,w,P){for(var G=w-1,ee=y.length;++G<ee;)if(P(y[G],A))return G;return-1}function qc(y){return y!==y}function zc(y,A){var w=y==null?0:y.length;return w?ss(y,A)/w:Zr}function os(y){return function(A){return A==null?n:A[y]}}function is(y){return function(A){return y==null?n:y[A]}}function Kc(y,A,w,P,G){return G(y,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function ym(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function ss(y,A){for(var w,P=-1,G=y.length;++P<G;){var ee=A(y[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function as(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function xm(y,A){return le(A,function(w){return[w,y[w]]})}function Yc(y){return y&&y.slice(0,Qc(y)+1).replace(Ki,"")}function $e(y){return function(A){return y(A)}}function cs(y,A){return le(A,function(w){return y[w]})}function Tr(y,A){return y.has(A)}function Zc(y,A){for(var w=-1,P=y.length;++w<P&&Dn(A,y[w],0)>-1;);return w}function Xc(y,A){for(var w=y.length;w--&&Dn(A,y[w],0)>-1;);return w}function Sm(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var vm=is(om),wm=is(im);function Am(y){return"\\"+am[y]}function Im(y,A){return y==null?n:y[A]}function Nn(y){return em.test(y)}function _m(y){return tm.test(y)}function bm(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function us(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function Jc(y,A){return function(w){return y(A(w))}}function Zt(y,A){for(var w=-1,P=y.length,G=0,ee=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,ee[G++]=w)}return ee}function io(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function Lm(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function Em(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function km(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function On(y){return Nn(y)?Pm(y):gm(y)}function ut(y){return Nn(y)?Rm(y):mm(y)}function Qc(y){for(var A=y.length;A--&&Sg.test(y.charAt(A)););return A}var Cm=is(sm);function Pm(y){for(var A=Qi.lastIndex=0;Qi.test(y);)++A;return A}function Rm(y){return y.match(Qi)||[]}function Dm(y){return y.match(jg)||[]}var Nm=function y(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,nm));var w=A.Array,P=A.Date,G=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,ls=A.RegExp,Om=A.String,je=A.TypeError,so=w.prototype,Mm=ee.prototype,Mn=oe.prototype,ao=A["__core-js_shared__"],co=Mm.toString,re=Mn.hasOwnProperty,Fm=0,jc=function(){var e=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),uo=Mn.toString,Um=co.call(oe),Bm=ve._,Wm=ls("^"+co.call(re).replace(zi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lo=Mc?A.Buffer:n,Jt=A.Symbol,po=A.Uint8Array,eu=lo?lo.allocUnsafe:n,fo=Jc(oe.getPrototypeOf,oe),tu=oe.create,nu=Mn.propertyIsEnumerable,go=so.splice,ru=Jt?Jt.isConcatSpreadable:n,hr=Jt?Jt.iterator:n,ln=Jt?Jt.toStringTag:n,mo=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Gm=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,$m=P&&P.now!==ve.Date.now&&P.now,Hm=A.setTimeout!==ve.setTimeout&&A.setTimeout,To=xe.ceil,ho=xe.floor,ps=oe.getOwnPropertySymbols,Vm=lo?lo.isBuffer:n,ou=A.isFinite,qm=so.join,zm=Jc(oe.keys,oe),Se=xe.max,Ee=xe.min,Km=P.now,Ym=A.parseInt,iu=xe.random,Zm=so.reverse,fs=mn(A,"DataView"),yr=mn(A,"Map"),ds=mn(A,"Promise"),Fn=mn(A,"Set"),xr=mn(A,"WeakMap"),Sr=mn(oe,"create"),yo=xr&&new xr,Un={},Xm=Tn(fs),Jm=Tn(yr),Qm=Tn(ds),jm=Tn(Fn),eT=Tn(xr),xo=Jt?Jt.prototype:n,vr=xo?xo.valueOf:n,su=xo?xo.toString:n;function l(e){if(fe(e)&&!$(e)&&!(e instanceof X)){if(e instanceof et)return e;if(re.call(e,"__wrapped__"))return al(e)}return new et(e)}var Bn=function(){function e(){}return function(t){if(!pe(t))return{};if(tu)return tu(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function So(){}function et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:gg,evaluate:mg,interpolate:mc,variable:"",imports:{_:l}},l.prototype=So.prototype,l.prototype.constructor=l,et.prototype=Bn(So.prototype),et.prototype.constructor=et;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ht,this.__views__=[]}function tT(){var e=new X(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function nT(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function rT(){var e=this.__wrapped__.value(),t=this.__dir__,r=$(e),a=t<0,c=r?e.length:0,p=mh(0,c,this.__views__),T=p.start,h=p.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,N=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&N==x)return Cu(e,this.__actions__);var U=[];e:for(;x--&&C<N;){_+=t;for(var K=-1,B=e[_];++K<L;){var Z=b[K],J=Z.iteratee,qe=Z.type,De=J(B);if(qe==Jd)B=De;else if(!De){if(qe==lc)continue e;break e}}U[C++]=B}return U}X.prototype=Bn(So.prototype),X.prototype.constructor=X;function pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function oT(){this.__data__=Sr?Sr(null):{},this.size=0}function iT(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(Sr){var r=t[e];return r===S?n:r}return re.call(t,e)?t[e]:n}function aT(e){var t=this.__data__;return Sr?t[e]!==n:re.call(t,e)}function cT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sr&&t===n?S:t,this}pn.prototype.clear=oT,pn.prototype.delete=iT,pn.prototype.get=sT,pn.prototype.has=aT,pn.prototype.set=cT;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 uT(){this.__data__=[],this.size=0}function lT(e){var t=this.__data__,r=vo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():go.call(t,r,1),--this.size,!0}function pT(e){var t=this.__data__,r=vo(t,e);return r<0?n:t[r][1]}function fT(e){return vo(this.__data__,e)>-1}function dT(e,t){var r=this.__data__,a=vo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Ct.prototype.clear=uT,Ct.prototype.delete=lT,Ct.prototype.get=pT,Ct.prototype.has=fT,Ct.prototype.set=dT;function Pt(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 gT(){this.size=0,this.__data__={hash:new pn,map:new(yr||Ct),string:new pn}}function mT(e){var t=Do(this,e).delete(e);return this.size-=t?1:0,t}function TT(e){return Do(this,e).get(e)}function hT(e){return Do(this,e).has(e)}function yT(e,t){var r=Do(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Pt.prototype.clear=gT,Pt.prototype.delete=mT,Pt.prototype.get=TT,Pt.prototype.has=hT,Pt.prototype.set=yT;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}function xT(e){return this.__data__.set(e,S),this}function ST(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=xT,fn.prototype.has=ST;function lt(e){var t=this.__data__=new Ct(e);this.size=t.size}function vT(){this.__data__=new Ct,this.size=0}function wT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function AT(e){return this.__data__.get(e)}function IT(e){return this.__data__.has(e)}function _T(e,t){var r=this.__data__;if(r instanceof Ct){var a=r.__data__;if(!yr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(a)}return r.set(e,t),this.size=r.size,this}lt.prototype.clear=vT,lt.prototype.delete=wT,lt.prototype.get=AT,lt.prototype.has=IT,lt.prototype.set=_T;function au(e,t){var r=$(e),a=!r&&hn(e),c=!r&&!a&&nn(e),p=!r&&!a&&!c&&Hn(e),T=r||a||c||p,h=T?as(e.length,Om):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ot(_,x)))&&h.push(_);return h}function cu(e){var t=e.length;return t?e[Is(0,t-1)]:n}function bT(e,t){return No(Ne(e),dn(t,0,e.length))}function LT(e){return No(Ne(e))}function gs(e,t,r){(r!==n&&!pt(e[t],r)||r===n&&!(t in e))&&Rt(e,t,r)}function wr(e,t,r){var a=e[t];(!(re.call(e,t)&&pt(a,r))||r===n&&!(t in e))&&Rt(e,t,r)}function vo(e,t){for(var r=e.length;r--;)if(pt(e[r][0],t))return r;return-1}function ET(e,t,r,a){return Qt(e,function(c,p,T){t(a,c,r(c),T)}),a}function uu(e,t){return e&&xt(t,we(t),e)}function kT(e,t){return e&&xt(t,Me(t),e)}function Rt(e,t,r){t=="__proto__"&&mo?mo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ms(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:Zs(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 tt(e,t,r,a,c,p){var T,h=t&R,x=t&H,_=t&M;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!pe(e))return e;var b=$(e);if(b){if(T=hh(e),!h)return Ne(e,T)}else{var L=ke(e),C=L==Qr||L==pc;if(nn(e))return Du(e,h);if(L==kt||L==Cn||C&&!c){if(T=x||C?{}:Qu(e),!h)return x?sh(e,kT(T,e)):ih(e,uu(T,e))}else{if(!ie[L])return c?e:{};T=yh(e,L,h)}}p||(p=new lt);var N=p.get(e);if(N)return N;p.set(e,T),Ll(e)?e.forEach(function(B){T.add(tt(B,t,r,B,e,p))}):_l(e)&&e.forEach(function(B,Z){T.set(Z,tt(B,t,r,Z,e,p))});var U=_?x?Os:Ns:x?Me:we,K=b?n:U(e);return Qe(K||e,function(B,Z){K&&(Z=B,B=e[Z]),wr(T,Z,tt(B,t,r,Z,e,p))}),T}function CT(e){var t=we(e);return function(r){return lu(r,e,t)}}function lu(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 pu(e,t,r){if(typeof e!="function")throw new je(m);return kr(function(){e.apply(n,r)},t)}function Ar(e,t,r,a){var c=-1,p=ro,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=le(t,$e(r))),a?(p=ts,T=!1):t.length>=i&&(p=Tr,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;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Qt=Uu(yt),fu=Uu(hs,!0);function PT(e,t){var r=!0;return Qt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function wo(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,x=p}return x}function RT(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:kl(a);r<a;)e[r++]=t;return e}function du(e,t){var r=[];return Qt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function Le(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=Sh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?Le(h,t-1,r,a,c):Yt(c,h):a||(c[c.length]=h)}return c}var Ts=Bu(),gu=Bu(!0);function yt(e,t){return e&&Ts(e,t,we)}function hs(e,t){return e&&gu(e,t,we)}function Ao(e,t){return Kt(t,function(r){return Mt(e[r])})}function gn(e,t){t=en(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[St(t[r++])];return r&&r==a?e:n}function mu(e,t,r){var a=t(e);return $(e)?a:Yt(a,r(e))}function Pe(e){return e==null?e===n?ag:ig:ln&&ln in oe(e)?gh(e):Lh(e)}function ys(e,t){return e>t}function DT(e,t){return e!=null&&re.call(e,t)}function NT(e,t){return e!=null&&t in oe(e)}function OT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function xs(e,t,r){for(var a=r?ts:ro,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,_=[];T--;){var b=e[T];T&&t&&(b=le(b,$e(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new fn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var N=b[L],U=t?t(N):N;if(N=r||N!==0?N:0,!(C?Tr(C,U):a(_,U,r))){for(T=p;--T;){var K=h[T];if(!(K?Tr(K,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(N)}}return _}function MT(e,t,r,a){return yt(e,function(c,p,T){t(a,r(c),p,T)}),a}function Ir(e,t,r){t=en(t,e),e=nl(e,t);var a=e==null?e:e[St(rt(t))];return a==null?n:Ge(a,e,r)}function Tu(e){return fe(e)&&Pe(e)==Cn}function FT(e){return fe(e)&&Pe(e)==mr}function UT(e){return fe(e)&&Pe(e)==lr}function _r(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:BT(e,t,r,a,_r,c)}function BT(e,t,r,a,c,p){var T=$(e),h=$(t),x=T?Xr:ke(e),_=h?Xr:ke(t);x=x==Cn?kt:x,_=_==Cn?kt:_;var b=x==kt,L=_==kt,C=x==_;if(C&&nn(e)){if(!nn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new lt),T||Hn(e)?Zu(e,t,r,a,c,p):fh(e,t,x,r,a,c,p);if(!(r&ue)){var N=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(N||U){var K=N?e.value():e,B=U?t.value():t;return p||(p=new lt),c(K,B,r,a,p)}}return C?(p||(p=new lt),dh(e,t,r,a,c,p)):!1}function WT(e){return fe(e)&&ke(e)==at}function Ss(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],_=e[x],b=h[1];if(T&&h[2]){if(_===n&&!(x in e))return!1}else{var L=new lt;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?_r(b,_,ue|ye,a,L):C))return!1}}return!0}function hu(e){if(!pe(e)||wh(e))return!1;var t=Mt(e)?Wm:Cg;return t.test(Tn(e))}function GT(e){return fe(e)&&Pe(e)==fr}function $T(e){return fe(e)&&ke(e)==ct}function HT(e){return fe(e)&&Wo(e.length)&&!!ce[Pe(e)]}function yu(e){return typeof e=="function"?e:e==null?Fe:typeof e=="object"?$(e)?vu(e[0],e[1]):Su(e):Wl(e)}function vs(e){if(!Er(e))return zm(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function VT(e){if(!pe(e))return bh(e);var t=Er(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function ws(e,t){return e<t}function xu(e,t){var r=-1,a=Oe(e)?w(e.length):[];return Qt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function Su(e){var t=Fs(e);return t.length==1&&t[0][2]?el(t[0][0],t[0][1]):function(r){return r===e||Ss(r,e,t)}}function vu(e,t){return Bs(e)&&ju(t)?el(St(e),t):function(r){var a=Zs(r,e);return a===n&&a===t?Xs(r,e):_r(t,a,ue|ye)}}function Io(e,t,r,a,c){e!==t&&Ts(t,function(p,T){if(c||(c=new lt),pe(p))qT(e,t,T,r,Io,a,c);else{var h=a?a(Gs(e,T),p,T+"",e,t,c):n;h===n&&(h=p),gs(e,T,h)}},Me)}function qT(e,t,r,a,c,p,T){var h=Gs(e,r),x=Gs(t,r),_=T.get(x);if(_){gs(e,r,_);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=$(x),N=!C&&nn(x),U=!C&&!N&&Hn(x);b=x,C||N||U?$(h)?b=h:me(h)?b=Ne(h):N?(L=!1,b=Du(x,!0)):U?(L=!1,b=Nu(x,!0)):b=[]:Cr(x)||hn(x)?(b=h,hn(h)?b=Cl(h):(!pe(h)||Mt(h))&&(b=Qu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),gs(e,r,b)}function wu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Ot(t,r)?e[t]:n}function Au(e,t,r){t.length?t=le(t,function(p){return $(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Fe];var a=-1;t=le(t,$e(F()));var c=xu(e,function(p,T,h){var x=le(t,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return ym(c,function(p,T){return oh(p,T,r)})}function zT(e,t){return Iu(e,t,function(r,a){return Xs(e,a)})}function Iu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=gn(e,T);r(h,T)&&br(p,en(T,e),h)}return p}function KT(e){return function(t){return gn(t,e)}}function As(e,t,r,a){var c=a?hm:Dn,p=-1,T=t.length,h=e;for(e===t&&(t=Ne(t)),r&&(h=le(e,$e(r)));++p<T;)for(var x=0,_=t[p],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&go.call(h,x,1),go.call(e,x,1);return e}function _u(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Ot(c)?go.call(e,c,1):Ls(e,c)}}return e}function Is(e,t){return e+ho(iu()*(t-e+1))}function YT(e,t,r,a){for(var c=-1,p=Se(To((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function _s(e,t){var r="";if(!e||t<1||t>zt)return r;do t%2&&(r+=e),t=ho(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return $s(tl(e,t,Fe),e+"")}function ZT(e){return cu(Vn(e))}function XT(e,t){var r=Vn(e);return No(r,dn(t,0,r.length))}function br(e,t,r,a){if(!pe(e))return e;t=en(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=St(t[c]),_=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];_=a?a(b,x,h):n,_===n&&(_=pe(b)?b:Ot(t[c+1])?[]:{})}wr(h,x,_),h=h[x]}return e}var bu=yo?function(e,t){return yo.set(e,t),e}:Fe,JT=mo?function(e,t){return mo(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:Fe;function QT(e){return No(Vn(e))}function nt(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 jT(e,t){var r;return Qt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function _o(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=tg){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return bs(e,t,Fe,r)}function bs(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<p;){var b=ho((c+p)/2),L=r(e[b]),C=L!==n,N=L===null,U=L===L,K=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!N):x?B=U&&C&&!N&&(a||!K):N||K?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,eg)}function Lu(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||!pt(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function Eu(e){return typeof e=="number"?e:Ve(e)?Zr:+e}function He(e){if(typeof e=="string")return e;if($(e))return le(e,He)+"";if(Ve(e))return su?su.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function jt(e,t,r){var a=-1,c=ro,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=ts;else if(p>=i){var _=t?null:lh(e);if(_)return io(_);T=!1,c=Tr,x=new fn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function Ls(e,t){return t=en(t,e),e=nl(e,t),e==null||delete e[St(rt(t))]}function ku(e,t,r,a){return br(e,t,r(gn(e,t)),a)}function bo(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?nt(e,a?0:p,a?p+1:c):nt(e,a?p+1:0,a?c:p)}function Cu(e,t){var r=e;return r instanceof X&&(r=r.value()),ns(t,function(a,c){return c.func.apply(c.thisArg,Yt([a],c.args))},r)}function Es(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]=Ar(p[c]||T,e[h],t,r));return jt(Le(p,1),t,r)}function Pu(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 ks(e){return me(e)?e:[]}function Cs(e){return typeof e=="function"?e:Fe}function en(e,t){return $(e)?e:Bs(e,t)?[e]:sl(ne(e))}var eh=Y;function tn(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:nt(e,t,r)}var Ru=Gm||function(e){return ve.clearTimeout(e)};function Du(e,t){if(t)return e.slice();var r=e.length,a=eu?eu(r):new e.constructor(r);return e.copy(a),a}function Ps(e){var t=new e.constructor(e.byteLength);return new po(t).set(new po(e)),t}function th(e,t){var r=t?Ps(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function nh(e){var t=new e.constructor(e.source,Tc.exec(e));return t.lastIndex=e.lastIndex,t}function rh(e){return vr?oe(vr.call(e)):{}}function Nu(e,t){var r=t?Ps(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ou(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)return-1}return 0}function oh(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var x=Ou(c[a],p[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function Mu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,_=Se(p-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Fu(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var N=c;++x<_;)L[N+x]=t[x];for(;++T<h;)(C||c<p)&&(L[N+r[T]]=e[c++]);return L}function Ne(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function xt(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?Rt(r,h,x):wr(r,h,x)}return r}function ih(e,t){return xt(e,Us(e),t)}function sh(e,t){return xt(e,Xu(e),t)}function Lo(e,t){return function(r,a){var c=$(r)?pm:ET,p=t?t():{};return c(r,e,F(a,2),p)}}function Wn(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Uu(e,t){return function(r,a){if(r==null)return r;if(!Oe(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 Bu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function ah(e,t,r){var a=t&ge,c=Lr(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Wu(e){return function(t){t=ne(t);var r=Nn(t)?ut(t):n,a=r?r[0]:t.charAt(0),c=r?tn(r,1).join(""):t.slice(1);return a[e]()+c}}function Gn(e){return function(t){return ns(Ul(Fl(t).replace(Jg,"")),e,"")}}function Lr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Bn(e.prototype),a=e.apply(r,t);return pe(a)?a:r}}function ch(e,t,r){var a=Lr(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=$n(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==x&&T[p-1]!==x?[]:Zt(T,x);if(p-=_.length,p<r)return qu(e,t,Eo,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 Gu(e){return function(t,r,a){var c=oe(t);if(!Oe(t)){var p=F(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 $u(e){return Nt(function(t){var r=t.length,a=r,c=et.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new je(m);if(c&&!T&&Ro(p)=="wrapper")var T=new et([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=Ro(p),x=h=="wrapper"?Ms(p):n;x&&Ws(x[0])&&x[1]==(Et|mt|Tt|cr)&&!x[4].length&&x[9]==1?T=T[Ro(x[0])].apply(T,x[3]):T=p.length==1&&Ws(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&$(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 Eo(e,t,r,a,c,p,T,h,x,_){var b=t&Et,L=t&ge,C=t&be,N=t&(mt|En),U=t&Mi,K=C?n:Lr(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(N)var De=$n(B),ze=Sm(J,De);if(a&&(J=Mu(J,a,c,N)),p&&(J=Fu(J,p,T,N)),Z-=ze,N&&Z<_){var Te=Zt(J,De);return qu(e,t,Eo,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ut=C?ft[e]:e;return Z=J.length,h?J=Eh(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ut=K||Lr(Ut)),Ut.apply(ft,J)}return B}function Hu(e,t){return function(r,a){return MT(r,e,t(a),{})}}function ko(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=Eu(r),a=Eu(a)),c=e(r,a)}return c}}function Rs(e){return Nt(function(t){return t=le(t,$e(F())),Y(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function Co(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?_s(t,e):t;var a=_s(t,To(e/On(t)));return Nn(t)?tn(ut(a),0,e).join(""):a.slice(0,e)}function uh(e,t,r,a){var c=t&ge,p=Lr(e);function T(){for(var h=-1,x=arguments.length,_=-1,b=a.length,L=w(b+x),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function Vu(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Ft(t),r===n?(r=t,t=0):r=Ft(r),a=a===n?t<r?1:-1:Ft(a),YT(t,r,a,e)}}function Po(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=ot(t),r=ot(r)),e(t,r)}}function qu(e,t,r,a,c,p,T,h,x,_){var b=t&mt,L=b?T:n,C=b?n:T,N=b?p:n,U=b?n:p;t|=b?Tt:kn,t&=~(b?kn:Tt),t&uc||(t&=~(ge|be));var K=[e,t,c,N,L,U,C,h,x,_],B=r.apply(n,K);return Ws(e)&&rl(B,K),B.placeholder=a,ol(B,e,t)}function Ds(e){var t=xe[e];return function(r,a){if(r=ot(r),a=a==null?0:Ee(V(a),292),a&&ou(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 lh=Fn&&1/io(new Fn([,-0]))[1]==cn?function(e){return new Fn(e)}:ta;function zu(e){return function(t){var r=ke(t);return r==at?us(t):r==ct?Lm(t):xm(t,e(t))}}function Dt(e,t,r,a,c,p,T,h){var x=t&be;if(!x&&typeof e!="function")throw new je(m);var _=a?a.length:0;if(_||(t&=~(Tt|kn),a=c=n),T=T===n?T:Se(V(T),0),h=h===n?h:V(h),_-=c?c.length:0,t&kn){var b=a,L=c;a=c=n}var C=x?n:Ms(e),N=[e,t,r,a,c,b,L,p,T,h];if(C&&_h(N,C),e=N[0],t=N[1],r=N[2],a=N[3],c=N[4],h=N[9]=N[9]===n?x?0:e.length:Se(N[9]-_,0),!h&&t&(mt|En)&&(t&=~(mt|En)),!t||t==ge)var U=ah(e,t,r);else t==mt||t==En?U=ch(e,t,h):(t==Tt||t==(ge|Tt))&&!c.length?U=uh(e,t,r,a):U=Eo.apply(n,N);var K=C?bu:rl;return ol(K(U,N),e,t)}function Ku(e,t,r,a){return e===n||pt(e,Mn[r])&&!re.call(a,r)?t:e}function Yu(e,t,r,a,c,p){return pe(e)&&pe(t)&&(p.set(t,e),Io(e,t,n,Yu,p),p.delete(t)),e}function ph(e){return Cr(e)?n:e}function Zu(e,t,r,a,c,p){var T=r&ue,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,N=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(N){if(!rs(t,function(Z,J){if(!Tr(N,J)&&(U===Z||c(U,Z,r,a,p)))return N.push(J)})){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 fh(e,t,r,a,c,p,T){switch(r){case Pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mr:return!(e.byteLength!=t.byteLength||!p(new po(e),new po(t)));case ur:case lr:case pr:return pt(+e,+t);case Jr:return e.name==t.name&&e.message==t.message;case fr:case dr:return e==t+"";case at:var h=us;case ct:var x=a&ue;if(h||(h=io),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=Zu(h(e),h(t),a,c,p,T);return T.delete(e),b;case jr:if(vr)return vr.call(e)==vr.call(t)}return!1}function dh(e,t,r,a,c,p){var T=r&ue,h=Ns(e),x=h.length,_=Ns(t),b=_.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var N=p.get(e),U=p.get(t);if(N&&U)return N==t&&U==e;var K=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var qe=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(qe===n?Z===J||c(Z,J,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 Nt(e){return $s(tl(e,n,ll),e+"")}function Ns(e){return mu(e,we,Us)}function Os(e){return mu(e,Me,Xu)}var Ms=yo?function(e){return yo.get(e)}:ta;function Ro(e){for(var t=e.name+"",r=Un[t],a=re.call(Un,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function $n(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||js;return e=e===js?yu:e,arguments.length?e(arguments[0],arguments[1]):e}function Do(e,t){var r=e.__data__;return vh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Fs(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,ju(c)]}return t}function mn(e,t){var r=Im(e,t);return hu(r)?r:n}function gh(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=uo.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Us=ps?function(e){return e==null?[]:(e=oe(e),Kt(ps(e),function(t){return nu.call(e,t)}))}:na,Xu=ps?function(e){for(var t=[];e;)Yt(t,Us(e)),e=fo(e);return t}:na,ke=Pe;(fs&&ke(new fs(new ArrayBuffer(1)))!=Pn||yr&&ke(new yr)!=at||ds&&ke(ds.resolve())!=fc||Fn&&ke(new Fn)!=ct||xr&&ke(new xr)!=gr)&&(ke=function(e){var t=Pe(e),r=t==kt?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case Xm:return Pn;case Jm:return at;case Qm:return fc;case jm:return ct;case eT:return gr}return t});function mh(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 Th(e){var t=e.match(wg);return t?t[1].split(Ag):[]}function Ju(e,t,r){t=en(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=St(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&&Wo(c)&&Ot(T,c)&&($(e)||hn(e)))}function hh(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 Qu(e){return typeof e.constructor=="function"&&!Er(e)?Bn(fo(e)):{}}function yh(e,t,r){var a=e.constructor;switch(t){case mr:return Ps(e);case ur:case lr:return new a(+e);case Pn:return th(e,r);case Fi:case Ui:case Bi:case Wi:case Gi:case $i:case Hi:case Vi:case qi:return Nu(e,r);case at:return new a;case pr:case dr:return new a(e);case fr:return nh(e);case ct:return new a;case jr:return rh(e)}}function xh(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(vg,`{
1
+ "use strict";var Vv=Object.create;var Pr=Object.defineProperty,qv=Object.defineProperties,zv=Object.getOwnPropertyDescriptor,Kv=Object.getOwnPropertyDescriptors,Yv=Object.getOwnPropertyNames,Ho=Object.getOwnPropertySymbols,Zv=Object.getPrototypeOf,oa=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable;var $l=(n,o,i)=>o in n?Pr(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))oa.call(o,i)&&$l(n,i,o[i]);if(Ho)for(var i of Ho(o))Hl.call(o,i)&&$l(n,i,o[i]);return n},Q=(n,o)=>qv(n,Kv(o));var Vo=(n,o)=>{var i={};for(var u in n)oa.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Ho)for(var u of Ho(n))o.indexOf(u)<0&&Hl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Rr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),yn=(n,o)=>{for(var i in o)Pr(n,i,{get:o[i],enumerable:!0})},Vl=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of Yv(o))!oa.call(n,m)&&m!==i&&Pr(n,m,{get:()=>o[m],enumerable:!(u=zv(o,m))||u.enumerable});return n};var q=(n,o,i)=>(i=n!=null?Vv(Zv(n)):{},Vl(o||!n||!n.__esModule?Pr(i,"default",{value:n,enumerable:!0}):i,n)),Dr=n=>Vl(Pr({},"__esModule",{value:!0}),n);var z=(n,o,i)=>new Promise((u,m)=>{var v=E=>{try{k(i.next(E))}catch(R){m(R)}},S=E=>{try{k(i.throw(E))}catch(R){m(R)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(v,S);k((i=i.apply(n,o)).next())});var Kl=Rr(qo=>{"use strict";s();qo.byteLength=Jv;qo.toByteArray=jv;qo.fromByteArray=n0;var vt=[],it=[],Xv=typeof Uint8Array!="undefined"?Uint8Array:Array,ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xn=0,ql=ia.length;xn<ql;++xn)vt[xn]=ia[xn],it[ia.charCodeAt(xn)]=xn;var xn,ql;it["-".charCodeAt(0)]=62;it["_".charCodeAt(0)]=63;function zl(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 Jv(n){var o=zl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function Qv(n,o,i){return(o+i)*3/4-i}function jv(n){var o,i=zl(n),u=i[0],m=i[1],v=new Xv(Qv(n,u,m)),S=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=it[n.charCodeAt(E)]<<18|it[n.charCodeAt(E+1)]<<12|it[n.charCodeAt(E+2)]<<6|it[n.charCodeAt(E+3)],v[S++]=o>>16&255,v[S++]=o>>8&255,v[S++]=o&255;return m===2&&(o=it[n.charCodeAt(E)]<<2|it[n.charCodeAt(E+1)]>>4,v[S++]=o&255),m===1&&(o=it[n.charCodeAt(E)]<<10|it[n.charCodeAt(E+1)]<<4|it[n.charCodeAt(E+2)]>>2,v[S++]=o>>8&255,v[S++]=o&255),v}function e0(n){return vt[n>>18&63]+vt[n>>12&63]+vt[n>>6&63]+vt[n&63]}function t0(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(e0(u));return m.join("")}function n0(n){for(var o,i=n.length,u=i%3,m=[],v=16383,S=0,k=i-u;S<k;S+=v)m.push(t0(n,S,S+v>k?k:S+v));return u===1?(o=n[i-1],m.push(vt[o>>2]+vt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(vt[o>>10]+vt[o>>4&63]+vt[o<<2&63]+"=")),m.join("")}});var Yl=Rr(sa=>{s();sa.read=function(n,o,i,u,m){var v,S,k=m*8-u-1,E=(1<<k)-1,R=E>>1,H=-7,M=i?m-1:0,ue=i?-1:1,ye=n[o+M];for(M+=ue,v=ye&(1<<-H)-1,ye>>=-H,H+=k;H>0;v=v*256+n[o+M],M+=ue,H-=8);for(S=v&(1<<-H)-1,v>>=-H,H+=u;H>0;S=S*256+n[o+M],M+=ue,H-=8);if(v===0)v=1-R;else{if(v===E)return S?NaN:(ye?-1:1)*(1/0);S=S+Math.pow(2,u),v=v-R}return(ye?-1:1)*S*Math.pow(2,v-u)};sa.write=function(n,o,i,u,m,v){var S,k,E,R=v*8-m-1,H=(1<<R)-1,M=H>>1,ue=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:v-1,ge=u?1:-1,be=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,S=H):(S=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-S))<1&&(S--,E*=2),S+M>=1?o+=ue/E:o+=ue*Math.pow(2,1-M),o*E>=2&&(S++,E/=2),S+M>=H?(k=0,S=H):S+M>=1?(k=(o*E-1)*Math.pow(2,m),S=S+M):(k=o*Math.pow(2,M-1)*Math.pow(2,m),S=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(S=S<<m|k,R+=m;R>0;n[i+ye]=S&255,ye+=ge,S/=256,R-=8);n[i+ye-ge]|=be*128}});var ap=Rr(zn=>{"use strict";s();var aa=Kl(),qn=Yl(),Zl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zn.Buffer=I;zn.SlowBuffer=c0;zn.INSPECT_MAX_BYTES=50;var zo=2147483647;zn.kMaxLength=zo;I.TYPED_ARRAY_SUPPORT=r0();!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 r0(){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 Bt(n){if(n>zo)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 pa(n)}return Ql(n,o,i)}I.poolSize=8192;function Ql(n,o,i){if(typeof n=="string")return i0(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(wt(n,ArrayBuffer)||n&&wt(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(wt(n,SharedArrayBuffer)||n&&wt(n.buffer,SharedArrayBuffer)))return ua(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=a0(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 Ql(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function jl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function o0(n,o,i){return jl(n),n<=0?Bt(n):o!==void 0?typeof i=="string"?Bt(n).fill(o,i):Bt(n).fill(o):Bt(n)}I.alloc=function(n,o,i){return o0(n,o,i)};function pa(n){return jl(n),Bt(n<0?0:fa(n)|0)}I.allocUnsafe=function(n){return pa(n)};I.allocUnsafeSlow=function(n){return pa(n)};function i0(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=ep(n,o)|0,u=Bt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function ca(n){for(var o=n.length<0?0:fa(n.length)|0,i=Bt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function s0(n){if(wt(n,Uint8Array)){var o=new Uint8Array(n);return ua(o.buffer,o.byteOffset,o.byteLength)}return ca(n)}function ua(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 a0(n){if(I.isBuffer(n)){var o=fa(n.length)|0,i=Bt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||da(n.length)?Bt(0):ca(n);if(n.type==="Buffer"&&Array.isArray(n.data))return ca(n.data)}function fa(n){if(n>=zo)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+zo.toString(16)+" bytes");return n|0}function c0(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(wt(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),wt(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,S=Math.min(u,m);v<S;++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 S=o[u];if(wt(S,Uint8Array))v+S.length>m.length?I.from(S).copy(m,v):Uint8Array.prototype.set.call(m,S,v);else if(I.isBuffer(S))S.copy(m,v);else throw new TypeError('"list" argument must be an Array of Buffers');v+=S.length}return m};function ep(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||wt(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 la(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return sp(n).length;default:if(m)return u?-1:la(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=ep;function u0(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 x0(this,o,i);case"utf8":case"utf-8":return np(this,o,i);case"ascii":return h0(this,o,i);case"latin1":case"binary":return y0(this,o,i);case"base64":return m0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S0(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?np(this,0,o):u0.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+">"};Zl&&(I.prototype[Zl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,v){if(wt(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 S=v-m,k=u-i,E=Math.min(S,k),R=this.slice(m,v),H=o.slice(i,u),M=0;M<E;++M)if(R[M]!==H[M]){S=R[M],k=H[M];break}return S<k?-1:k<S?1:0};function tp(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,da(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:Xl(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):Xl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Xl(n,o,i,u,m){var v=1,S=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,S/=2,k/=2,i/=2}function E(ye,ge){return v===1?ye[ge]:ye.readUInt16BE(ge*v)}var R;if(m){var H=-1;for(R=i;R<S;R++)if(E(n,R)===E(o,H===-1?0:R-H)){if(H===-1&&(H=R),R-H+1===k)return H*v}else H!==-1&&(R-=R-H),H=-1}else for(i+k>S&&(i=S-k),R=i;R>=0;R--){for(var M=!0,ue=0;ue<k;ue++)if(E(n,R+ue)!==E(o,ue)){M=!1;break}if(M)return R}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return tp(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return tp(this,o,i,u,!1)};function l0(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 S=0;S<u;++S){var k=parseInt(o.substr(S*2,2),16);if(da(k))return S;n[i+S]=k}return S}function p0(n,o,i,u){return Ko(la(o,n.length-i),n,i,u)}function f0(n,o,i,u){return Ko(A0(o),n,i,u)}function d0(n,o,i,u){return Ko(sp(o),n,i,u)}function g0(n,o,i,u){return Ko(I0(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 S=!1;;)switch(m){case"hex":return l0(this,o,i,u);case"utf8":case"utf-8":return p0(this,o,i,u);case"ascii":case"latin1":case"binary":return f0(this,o,i,u);case"base64":return d0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g0(this,o,i,u);default:if(S)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),S=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m0(n,o,i){return o===0&&i===n.length?aa.fromByteArray(n):aa.fromByteArray(n.slice(o,i))}function np(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var v=n[m],S=null,k=v>239?4:v>223?3:v>191?2:1;if(m+k<=i){var E,R,H,M;switch(k){case 1:v<128&&(S=v);break;case 2:E=n[m+1],(E&192)===128&&(M=(v&31)<<6|E&63,M>127&&(S=M));break;case 3:E=n[m+1],R=n[m+2],(E&192)===128&&(R&192)===128&&(M=(v&15)<<12|(E&63)<<6|R&63,M>2047&&(M<55296||M>57343)&&(S=M));break;case 4:E=n[m+1],R=n[m+2],H=n[m+3],(E&192)===128&&(R&192)===128&&(H&192)===128&&(M=(v&15)<<18|(E&63)<<12|(R&63)<<6|H&63,M>65535&&M<1114112&&(S=M))}}S===null?(S=65533,k=1):S>65535&&(S-=65536,u.push(S>>>10&1023|55296),S=56320|S&1023),u.push(S),m+=k}return T0(u)}var Jl=4096;function T0(n){var o=n.length;if(o<=Jl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Jl));return i}function h0(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 y0(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 x0(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+=_0[n[v]];return m}function S0(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,S=0;++S<i&&(v*=256);)m+=this[o+S]*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,S=0;++S<i&&(v*=256);)m+=this[o+S]*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,S=this[o+--m];m>0&&(v*=256);)S+=this[o+--m]*v;return v*=128,S>=v&&(S-=Math.pow(2,8*i)),S};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),qn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),qn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),qn.read(this,o,!1,52,8)};function Ue(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;Ue(this,o,i,u,v,0)}var S=1,k=0;for(this[i]=o&255;++k<u&&(S*=256);)this[i+k]=o/S&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;Ue(this,o,i,u,v,0)}var S=u-1,k=1;for(this[i+S]=o&255;--S>=0&&(k*=256);)this[i+S]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(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||Ue(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||Ue(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||Ue(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||Ue(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);Ue(this,o,i,u,v-1,-v)}var S=0,k=1,E=0;for(this[i]=o&255;++S<u&&(k*=256);)o<0&&E===0&&this[i+S-1]!==0&&(E=1),this[i+S]=(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);Ue(this,o,i,u,v-1,-v)}var S=u-1,k=1,E=0;for(this[i+S]=o&255;--S>=0&&(k*=256);)o<0&&E===0&&this[i+S+1]!==0&&(E=1),this[i+S]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(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||Ue(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||Ue(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||Ue(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||Ue(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 rp(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 op(n,o,i,u,m){return o=+o,i=i>>>0,m||rp(n,o,i,4,34028234663852886e22,-34028234663852886e22),qn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return op(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return op(this,o,i,!1,u)};function ip(n,o,i,u,m){return o=+o,i=i>>>0,m||rp(n,o,i,8,17976931348623157e292,-17976931348623157e292),qn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return ip(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return ip(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 S;if(typeof o=="number")for(S=i;S<u;++S)this[S]=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(S=0;S<u-i;++S)this[S+i]=k[S%E]}return this};var v0=/[^+/0-9A-Za-z-_]/g;function w0(n){if(n=n.split("=")[0],n=n.trim().replace(v0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function la(n,o){o=o||1/0;for(var i,u=n.length,m=null,v=[],S=0;S<u;++S){if(i=n.charCodeAt(S),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&v.push(239,191,189);continue}else if(S+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 A0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function I0(n,o){for(var i,u,m,v=[],S=0;S<n.length&&!((o-=2)<0);++S)i=n.charCodeAt(S),u=i>>8,m=i%256,v.push(m),v.push(u);return v}function sp(n){return aa.toByteArray(w0(n))}function Ko(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 wt(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function da(n){return n!==n}var _0=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 fp=Rr((BI,pp)=>{s();var he=pp.exports={},At,It;function ga(){throw new Error("setTimeout has not been defined")}function ma(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?At=setTimeout:At=ga}catch(n){At=ga}try{typeof clearTimeout=="function"?It=clearTimeout:It=ma}catch(n){It=ma}})();function cp(n){if(At===setTimeout)return setTimeout(n,0);if((At===ga||!At)&&setTimeout)return At=setTimeout,setTimeout(n,0);try{return At(n,0)}catch(o){try{return At.call(null,n,0)}catch(i){return At.call(this,n,0)}}}function b0(n){if(It===clearTimeout)return clearTimeout(n);if((It===ma||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(n);try{return It(n)}catch(o){try{return It.call(null,n)}catch(i){return It.call(this,n)}}}var Wt=[],Kn=!1,vn,Yo=-1;function L0(){!Kn||!vn||(Kn=!1,vn.length?Wt=vn.concat(Wt):Yo=-1,Wt.length&&up())}function up(){if(!Kn){var n=cp(L0);Kn=!0;for(var o=Wt.length;o;){for(vn=Wt,Wt=[];++Yo<o;)vn&&vn[Yo].run();Yo=-1,o=Wt.length}vn=null,Kn=!1,b0(n)}}he.nextTick=function(n){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Wt.push(new lp(n,o)),Wt.length===1&&!Kn&&cp(up)};function lp(n,o){this.fun=n,this.array=o}lp.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Gt(){}he.on=Gt;he.addListener=Gt;he.once=Gt;he.off=Gt;he.removeListener=Gt;he.removeAllListeners=Gt;he.emit=Gt;he.prependListener=Gt;he.prependOnceListener=Gt;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,E0,f,s=W(()=>{d=q(ap()),g=q(fp()),E0=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=E0});var wn=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var hp=W(()=>{"use strict";s()});var Be=W(()=>{"use strict";s()});var yp=W(()=>{"use strict";s()});var xp=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();dp();gp();mp();de();Tp();hp();Be();yp();xp()});var Ta,Sp,o_,vp,i_,wp,s_,a_,c_,Ap=W(()=>{"use strict";s();Ie();Ta={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:Sp,egldLabel:o_}=Ta["devnet"],{chainId:vp,egldLabel:i_}=Ta["testnet"],{chainId:wp,egldLabel:s_}=Ta["mainnet"],a_={["devnet"]:Sp,["testnet"]:vp,["mainnet"]:wp},c_={[Sp]:"devnet",[vp]:"testnet",[wp]:"mainnet"}});var ha=W(()=>{"use strict";s()});var Ip=W(()=>{"use strict";s()});var Zo,ya=W(()=>{"use strict";s();Zo="transaction-status-toast-id"});var _t,_p=W(()=>{"use strict";s();_t=require("@multiversx/sdk-web-wallet-provider")});var bp=W(()=>{"use strict";s()});var Nr,Xo,Lp,Jo,Ep,Yn,se=W(()=>{"use strict";s();wn();Ap();ha();Ip();ya();_p();bp();Nr=5e4,Xo=1e9,Lp=1,Jo="logout",Ep="login",Yn="0"});var Zn,Qo=W(()=>{"use strict";s();Zn=()=>Date.now()/1e3});var kp=W(()=>{"use strict";s()});var Cp=W(()=>{"use strict";s()});var xa=W(()=>{"use strict";s();Qo();kp();Cp()});var va={};yn(va,{getItem:()=>C0,localStorageKeys:()=>dt,removeItem:()=>P0,setItem:()=>k0});var dt,Sa,k0,C0,P0,Xn=W(()=>{"use strict";s();xa();dt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},Sa=typeof localStorage!="undefined",k0=({key:n,data:o,expires:i})=>{!Sa||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},C0=n=>{if(!Sa)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:Zn()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},P0=n=>{!Sa||localStorage.removeItem(String(n))}});var wa={};yn(wa,{clear:()=>Np,getItem:()=>Rp,removeItem:()=>Dp,setItem:()=>Pp,storage:()=>R0});var Pp,Rp,Dp,Np,R0,Op=W(()=>{"use strict";s();Pp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Rp=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},Dp=n=>sessionStorage.removeItem(String(n)),Np=()=>sessionStorage.clear(),R0={setItem:Pp,getItem:Rp,removeItem:Dp,clear:Np}});var bt,Jn=W(()=>{"use strict";s();Xn();Op();bt={session:wa,local:va}});var Aa,_e,Lt,Ce=W(()=>{"use strict";s();Aa=require("@reduxjs/toolkit");se();_e=(0,Aa.createAction)(Jo),Lt=(0,Aa.createAction)(Ep,n=>({payload:n}))});var _a,Mp,Fp,jo,Ia,Up,ba,W_,La,G_,D0,N0,$_,H_,V_,O0,ei,ti=W(()=>{"use strict";s();_a=require("@multiversx/sdk-core"),Mp=require("@reduxjs/toolkit"),Fp=require("redux-persist");se();Jn();Xn();Ce();jo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:Yn},Ia={address:"",websocketEvent:null,accounts:{"":jo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Up=(0,Mp.createSlice)({name:"accountInfoSlice",initialState:Ia,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new _a.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:jo},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(_e,()=>(bt.local.removeItem(dt.loginExpiresAt),Ia)),n.addCase(Lt,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new _a.Address(u).hex()}),n.addCase(Fp.REHYDRATE,(o,i)=>{var R;if(!((R=i.payload)!=null&&R.account))return;let{account:u}=i.payload,{address:m,shard:v,accounts:S,publicKey:k}=u;o.address=m,o.shard=v;let E=S&&m in S;o.accounts=E?S:Ia.accounts,o.publicKey=k})}}),{setAccount:ba,setAddress:W_,setAccountNonce:La,setAccountShard:G_,setLedgerAccount:D0,updateLedgerAccount:N0,setWalletConnectAccount:$_,setIsAccountLoading:H_,setAccountLoadingError:V_,setWebsocketEvent:O0}=Up.actions,ei=Up.reducer});function Or(){return new Date().setHours(new Date().getHours()+24)}function Mr(n){bt.local.setItem({key:dt.loginExpiresAt,data:n,expires:n})}var Ea=W(()=>{"use strict";s();Jn();Xn()});var Wp,Bp,Gp,eb,$p,M0,F0,tb,U0,Hp,nb,ni,ri=W(()=>{"use strict";s();Wp=require("@reduxjs/toolkit");Ea();de();Ce();Bp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Gp=(0,Wp.createSlice)({name:"loginInfoSlice",initialState:Bp,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(_e,()=>Bp),n.addCase(Lt,(o,i)=>{o.loginMethod=i.payload.loginMethod,Mr(Or())})}}),{setLoginMethod:eb,setWalletConnectLogin:$p,setLedgerLogin:M0,setTokenLogin:F0,setTokenLoginSignature:tb,setWalletLogin:U0,invalidateLoginSession:Hp,setLogoutRoute:nb}=Gp.actions,ni=Gp.reducer});var qp,Vp,zp,sb,B0,ab,W0,oi,ii=W(()=>{"use strict";s();qp=require("@reduxjs/toolkit");Ce();Vp={},zp=(0,qp.createSlice)({name:"modalsSlice",initialState:Vp,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(_e,()=>Vp)}}),{setTxSubmittedModal:sb,setNotificationModal:B0,clearTxSubmittedModal:ab,clearNotificationModal:W0}=zp.actions,oi=zp.reducer});var Kp,Yp,si,Fr=W(()=>{"use strict";s();Kp=!1,Yp=(n=!0)=>{Kp=n},si=(n,o=0)=>{Kp||setTimeout(()=>{!window||(window.location.href=n,window.location.assign(n))},o)}});var Zp=W(()=>{"use strict";s();Fr()});function ka(n){return n[Math.floor(Math.random()*n.length)]}var Xp=W(()=>{"use strict";s()});var Ca=W(()=>{"use strict";s();ha()});var An=W(()=>{"use strict";s();Zp();Xp();Ca()});var Jp,Qp,Pa,G0,jp,wb,Ab,ai,ci=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit"),Qp=q(require("lodash.omit"));An();Pa={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},G0={network:Pa,chainID:"-1"},jp=(0,Jp.createSlice)({name:"appConfig",initialState:G0,reducers:{initializeNetworkConfig:(n,o)=>{let i=ka(o.payload.walletConnectBridgeAddresses),u=ka(o.payload.walletConnectV2RelayAddresses),m=(0,Qp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:wb,setChainID:Ab}=jp.actions,ai=jp.reducer});var ef,Ra,tf,kb,Cb,Pb,ui,li=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit");Ie();Ce();Ra={isSigning:!1,signedSessions:{}},tf=(0,ef.createSlice)({name:"signedMessageInfoSliceState",initialState:Ra,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>Ra},extraReducers:n=>{n.addCase(_e,()=>Ra)}}),{setSignSession:kb,clearSignedMessageInfo:Cb,setSignSessionState:Pb}=tf.actions,ui=tf.reducer});var rf,of,nf,sf,$0,Da,Bb,Wb,Gb,$b,pi,fi=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit"),of=require("redux-persist");ya();Ie();Qo();Ce();nf={customToasts:[],transactionToasts:[],failTransactionToast:null},sf=(0,rf.createSlice)({name:"toastsSlice",initialState:nf,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Zn(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=Q(O({},o.payload),{toastId:Zo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(_e,()=>nf),n.addCase(of.REHYDRATE,(o,i)=>{var m,v;let u=(v=(m=i.customToasts)==null?void 0:m.filter(S=>!("component"in S)))!=null?v:[];o.customToasts=u})}}),{addCustomToast:$0,removeCustomToast:Da,addTransactionToast:Bb,removeTransactionToast:Wb,addFailTransactionToast:Gb,removeFailTransactionToast:$b}=sf.actions,pi=sf.reducer});var af,Oa,Ma,Fa,H0,Na,cf,zb,V0,Ua,di,gi=W(()=>{"use strict";s();af=require("@reduxjs/toolkit");Ce();Oa="Transaction failed",Ma="Transaction successful",Fa="Processing transaction",H0="Transaction submitted",Na={},cf=(0,af.createSlice)({name:"transactionsInfo",initialState:Na,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Oa,successMessage:(u==null?void 0:u.successMessage)||Ma,processingMessage:(u==null?void 0:u.processingMessage)||Fa,submittedMessage:(u==null?void 0:u.submittedMessage)||H0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>Na},extraReducers:n=>{n.addCase(_e,()=>Na)}}),{clearTransactionsInfo:zb,setTransactionsDisplayInfo:V0,clearTransactionsInfoForSessionId:Ua}=cf.actions,di=cf.reducer});function jn(n){return n!=null&&(Q0(n)||nw(n))}function er(n){return n!=null&&(j0(n)||rw(n))}function tr(n){return n!=null&&(ew(n)||ow(n))}function Ba(n){return n!=null&&tw(n)}function Q0(n){return n!=null&&q0.includes(n)}function j0(n){return n!=null&&z0.includes(n)}function ew(n){return n!=null&&K0.includes(n)}function tw(n){return n!=null&&Y0.includes(n)}function nw(n){return n!=null&&Z0.includes(n)}function rw(n){return n!=null&&X0.includes(n)}function ow(n){return n!=null&&J0.includes(n)}var q0,z0,K0,Y0,Z0,X0,J0,nr=W(()=>{"use strict";s();de();q0=["sent"],z0=["success"],K0=["fail","cancelled","timedOut"],Y0=["timedOut"],Z0=["pending"],X0=["success"],J0=["fail","invalid"]});var uf,lf,Ur,iw,pf,ff,df,sw,mi,aw,cw,tL,uw,Ti,Wa,hi,yi=W(()=>{"use strict";s();uf=require("@reduxjs/toolkit"),lf=require("redux-persist");de();nr();Ce();Ur={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},iw={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},pf=(0,uf.createSlice)({name:"transactionsSlice",initialState:Ur,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,R;let{sessionId:i,transactions:u,errorMessage:m,status:v,redirectRoute:S}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||iw;n.signedTransactions[i]={transactions:u,status:v,errorMessage:m,redirectRoute:S,customTransactionInformation:k},((R=n==null?void 0:n.transactionsToSign)==null?void 0:R.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,R,H,M,ue;let{sessionId:i,status:u,errorMessage:m,transactionHash:v}=o.payload,S=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(S!=null){n.signedTransactions[i].transactions=S.map(be=>be.hash===v?Q(O({},be),{status:u,errorMessage:m}):be);let ye=(H=(R=n.signedTransactions[i])==null?void 0:R.transactions)==null?void 0:H.every(be=>er(be.status)),ge=(ue=(M=n.signedTransactions[i])==null?void 0:M.transactions)==null?void 0:ue.every(be=>tr(be.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(_e,()=>Ur),n.addCase(lf.REHYDRATE,(o,i)=>{var S;if(o.signTransactionsCancelMessage=null,!((S=i.payload)!=null&&S.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,v=Object.entries(u).reduce((k,[E,R])=>{let H=new Date(E),M=new Date;return M.setHours(M.getHours()+5),M-H>0||(k[E]=R),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=v)})}}),{updateSignedTransactionStatus:ff,updateSignedTransactions:df,setTransactionsToSign:sw,clearAllTransactionsToSign:mi,clearAllSignedTransactions:aw,clearSignedTransaction:cw,clearTransactionToSign:tL,setSignTransactionsError:uw,setSignTransactionsCancelMessage:Ti,moveTransactionsToSignedState:Wa}=pf.actions,hi=pf.reducer});var ae=W(()=>{"use strict";s();ti();ri();ii();ci();li();fi();gi();yi()});var Ga=W(()=>{"use strict";s()});var yf,hf,xf,_L,bL,LL,EL,kL,CL,Sf,vf=W(()=>{"use strict";s();yf=require("@reduxjs/toolkit");Ce();hf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},xf=(0,yf.createSlice)({name:"dappModalsSlice",initialState:hf,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(_e,()=>hf)}}),{setDappModalVisibility:_L,setDappModalHeaderVisibility:bL,setDappModalFooterVisibility:LL,setDappModalHeaderText:EL,setDappModalFooterText:kL,setDappModalConfig:CL}=xf.actions,Sf=xf.reducer});var wf,dw,gw,_n,wi=W(()=>{"use strict";s();wf=require("@reduxjs/toolkit");Ga();ti();vf();ri();ii();ci();li();fi();gi();yi();dw={["account"]:ei,["dappModal"]:Sf,["loginInfo"]:ni,["modals"]:oi,["networkConfig"]:ai,["signedMessageInfo"]:ui,["toasts"]:pi,["transactionsInfo"]:di,["transactions"]:hi},gw=(n={})=>(0,wf.combineReducers)(O(O({},dw),n)),_n=gw});var bf={};yn(bf,{default:()=>kw,sessionStorageReducers:()=>$a});function rn(n,o=[]){return{key:n,version:1,storage:If.default,blacklist:o}}var Ye,Af,If,mw,Wr,Tw,hw,yw,xw,Sw,vw,ww,Aw,Iw,_f,_w,$a,bw,Lw,Ew,kw,Lf=W(()=>{"use strict";s();Ye=require("redux-persist"),Af=q(require("redux-persist/lib/storage")),If=q(require("redux-persist/lib/storage/session"));wi();ae();ti();ri();ii();ci();li();fi();gi();yi();Ga();mw={persistReducersStorageType:"localStorage"},Wr={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},Tw=rn(Wr["account"]),hw=rn(Wr["loginInfo"]),yw=rn(Wr["modals"]),xw=rn(Wr["networkConfig"]),Sw={2:n=>Q(O({},n),{networkConfig:Pa})};vw=rn("sdk-dapp-transactionsInfo"),ww=rn("sdk-dapp-transactions",["transactionsToSign"]),Aw=rn("sdk-dapp-toasts"),Iw=rn("sdk-dapp-signedMessageInfo"),_f={key:"sdk-dapp-store",version:2,storage:Af.default,whitelist:Object.keys(Wr),migrate:(0,Ye.createMigrate)(Sw,{debug:!1})},_w=Q(O({},_f),{whitelist:[]}),$a={["toasts"]:(0,Ye.persistReducer)(Aw,pi),["transactions"]:(0,Ye.persistReducer)(ww,hi),["transactionsInfo"]:(0,Ye.persistReducer)(vw,di),["signedMessageInfo"]:(0,Ye.persistReducer)(Iw,ui)},bw=Q(O({},$a),{["account"]:(0,Ye.persistReducer)(Tw,ei),["loginInfo"]:(0,Ye.persistReducer)(hw,ni),["modals"]:(0,Ye.persistReducer)(yw,oi),["networkConfig"]:(0,Ye.persistReducer)(xw,ai)}),Lw=mw.persistReducersStorageType==="localStorage",Ew=Lw?(0,Ye.persistReducer)(_f,_n($a)):(0,Ye.persistReducer)(_w,_n(bw)),kw=Ew});var Ef={};yn(Ef,{default:()=>Cw});var Cw,kf=W(()=>{"use strict";s();wi();Cw=_n()});var Cf={};yn(Cf,{default:()=>Rw});var st,Pw,Rw,Pf=W(()=>{"use strict";s();st=require("redux-persist"),Pw=[st.FLUSH,st.REHYDRATE,st.PAUSE,st.PERSIST,st.PURGE,st.REGISTER],Rw=Pw});var Nf={};yn(Nf,{default:()=>Df});function Df(n){return(0,Rf.persistStore)(n)}var Rf,Of=W(()=>{"use strict";s();Rf=require("redux-persist")});var Ud=Rr((sr,zr)=>{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`",S="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",R=1,H=2,M=4,ue=1,ye=2,ge=1,be=2,uc=4,mt=8,En=16,Tt=32,kn=64,Et=128,cr=256,Mi=512,Zd=30,Xd="...",Jd=800,Qd=16,lc=1,jd=2,eg=3,cn=1/0,zt=9007199254740991,tg=17976931348623157e292,Zr=0/0,ht=4294967295,ng=ht-1,rg=ht>>>1,og=[["ary",Et],["bind",ge],["bindKey",be],["curry",mt],["curryRight",En],["flip",Mi],["partial",Tt],["partialRight",kn],["rearg",cr]],Cn="[object Arguments]",Xr="[object Array]",ig="[object AsyncFunction]",ur="[object Boolean]",lr="[object Date]",sg="[object DOMException]",Jr="[object Error]",Qr="[object Function]",pc="[object GeneratorFunction]",at="[object Map]",pr="[object Number]",ag="[object Null]",kt="[object Object]",fc="[object Promise]",cg="[object Proxy]",fr="[object RegExp]",ct="[object Set]",dr="[object String]",jr="[object Symbol]",ug="[object Undefined]",gr="[object WeakMap]",lg="[object WeakSet]",mr="[object ArrayBuffer]",Pn="[object DataView]",Fi="[object Float32Array]",Ui="[object Float64Array]",Bi="[object Int8Array]",Wi="[object Int16Array]",Gi="[object Int32Array]",$i="[object Uint8Array]",Hi="[object Uint8ClampedArray]",Vi="[object Uint16Array]",qi="[object Uint32Array]",pg=/\b__p \+= '';/g,fg=/\b(__p \+=) '' \+/g,dg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dc=/&(?:amp|lt|gt|quot|#39);/g,gc=/[&<>"']/g,gg=RegExp(dc.source),mg=RegExp(gc.source),Tg=/<%-([\s\S]+?)%>/g,hg=/<%([\s\S]+?)%>/g,mc=/<%=([\s\S]+?)%>/g,yg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xg=/^\w*$/,Sg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zi=/[\\^$.*+?()[\]{}|]/g,vg=RegExp(zi.source),Ki=/^\s+/,wg=/\s/,Ag=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ig=/\{\n\/\* \[wrapped with (.+)\] \*/,_g=/,? & /,bg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lg=/[()=,{}\[\]\/\s]/,Eg=/\\(\\)?/g,kg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tc=/\w*$/,Cg=/^[-+]0x[0-9a-f]+$/i,Pg=/^0b[01]+$/i,Rg=/^\[object .+?Constructor\]$/,Dg=/^0o[0-7]+$/i,Ng=/^(?:0|[1-9]\d*)$/,Og=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eo=/($^)/,Mg=/['\n\r\u2028\u2029\\]/g,to="\\ud800-\\udfff",Fg="\\u0300-\\u036f",Ug="\\ufe20-\\ufe2f",Bg="\\u20d0-\\u20ff",hc=Fg+Ug+Bg,yc="\\u2700-\\u27bf",xc="a-z\\xdf-\\xf6\\xf8-\\xff",Wg="\\xac\\xb1\\xd7\\xf7",Gg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$g="\\u2000-\\u206f",Hg=" \\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",Sc="A-Z\\xc0-\\xd6\\xd8-\\xde",vc="\\ufe0e\\ufe0f",wc=Wg+Gg+$g+Hg,Yi="['\u2019]",Vg="["+to+"]",Ac="["+wc+"]",no="["+hc+"]",Ic="\\d+",qg="["+yc+"]",_c="["+xc+"]",bc="[^"+to+wc+Ic+yc+xc+Sc+"]",Zi="\\ud83c[\\udffb-\\udfff]",zg="(?:"+no+"|"+Zi+")",Lc="[^"+to+"]",Xi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ji="[\\ud800-\\udbff][\\udc00-\\udfff]",Rn="["+Sc+"]",Ec="\\u200d",kc="(?:"+_c+"|"+bc+")",Kg="(?:"+Rn+"|"+bc+")",Cc="(?:"+Yi+"(?:d|ll|m|re|s|t|ve))?",Pc="(?:"+Yi+"(?:D|LL|M|RE|S|T|VE))?",Rc=zg+"?",Dc="["+vc+"]?",Yg="(?:"+Ec+"(?:"+[Lc,Xi,Ji].join("|")+")"+Dc+Rc+")*",Zg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nc=Dc+Rc+Yg,Jg="(?:"+[qg,Xi,Ji].join("|")+")"+Nc,Qg="(?:"+[Lc+no+"?",no,Xi,Ji,Vg].join("|")+")",jg=RegExp(Yi,"g"),em=RegExp(no,"g"),Qi=RegExp(Zi+"(?="+Zi+")|"+Qg+Nc,"g"),tm=RegExp([Rn+"?"+_c+"+"+Cc+"(?="+[Ac,Rn,"$"].join("|")+")",Kg+"+"+Pc+"(?="+[Ac,Rn+kc,"$"].join("|")+")",Rn+"?"+kc+"+"+Cc,Rn+"+"+Pc,Xg,Zg,Ic,Jg].join("|"),"g"),nm=RegExp("["+Ec+to+hc+vc+"]"),rm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,om=["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"],im=-1,ce={};ce[Fi]=ce[Ui]=ce[Bi]=ce[Wi]=ce[Gi]=ce[$i]=ce[Hi]=ce[Vi]=ce[qi]=!0,ce[Cn]=ce[Xr]=ce[mr]=ce[ur]=ce[Pn]=ce[lr]=ce[Jr]=ce[Qr]=ce[at]=ce[pr]=ce[kt]=ce[fr]=ce[ct]=ce[dr]=ce[gr]=!1;var ie={};ie[Cn]=ie[Xr]=ie[mr]=ie[Pn]=ie[ur]=ie[lr]=ie[Fi]=ie[Ui]=ie[Bi]=ie[Wi]=ie[Gi]=ie[at]=ie[pr]=ie[kt]=ie[fr]=ie[ct]=ie[dr]=ie[jr]=ie[$i]=ie[Hi]=ie[Vi]=ie[qi]=!0,ie[Jr]=ie[Qr]=ie[gr]=!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"},am={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},um={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lm=parseFloat,pm=parseInt,Oc=typeof f=="object"&&f&&f.Object===Object&&f,fm=typeof self=="object"&&self&&self.Object===Object&&self,ve=Oc||fm||Function("return this")(),ji=typeof sr=="object"&&sr&&!sr.nodeType&&sr,un=ji&&typeof zr=="object"&&zr&&!zr.nodeType&&zr,Mc=un&&un.exports===ji,es=Mc&&Oc.process,Je=function(){try{var y=un&&un.require&&un.require("util").types;return y||es&&es.binding&&es.binding("util")}catch(A){}}(),Fc=Je&&Je.isArrayBuffer,Uc=Je&&Je.isDate,Bc=Je&&Je.isMap,Wc=Je&&Je.isRegExp,Gc=Je&&Je.isSet,$c=Je&&Je.isTypedArray;function Ge(y,A,w){switch(w.length){case 0:return y.call(A);case 1:return y.call(A,w[0]);case 2:return y.call(A,w[0],w[1]);case 3:return y.call(A,w[0],w[1],w[2])}return y.apply(A,w)}function dm(y,A,w,P){for(var G=-1,ee=y==null?0:y.length;++G<ee;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Qe(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function gm(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Hc(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!A(y[w],w,y))return!1;return!0}function Kt(y,A){for(var w=-1,P=y==null?0:y.length,G=0,ee=[];++w<P;){var xe=y[w];A(xe,w,y)&&(ee[G++]=xe)}return ee}function ro(y,A){var w=y==null?0:y.length;return!!w&&Dn(y,A,0)>-1}function ts(y,A,w){for(var P=-1,G=y==null?0:y.length;++P<G;)if(w(A,y[P]))return!0;return!1}function le(y,A){for(var w=-1,P=y==null?0:y.length,G=Array(P);++w<P;)G[w]=A(y[w],w,y);return G}function Yt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function ns(y,A,w,P){var G=-1,ee=y==null?0:y.length;for(P&&ee&&(w=y[++G]);++G<ee;)w=A(w,y[G],G,y);return w}function mm(y,A,w,P){var G=y==null?0:y.length;for(P&&G&&(w=y[--G]);G--;)w=A(w,y[G],G,y);return w}function rs(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(A(y[w],w,y))return!0;return!1}var Tm=os("length");function hm(y){return y.split("")}function ym(y){return y.match(bg)||[]}function Vc(y,A,w){var P;return w(y,function(G,ee,xe){if(A(G,ee,xe))return P=ee,!1}),P}function oo(y,A,w,P){for(var G=y.length,ee=w+(P?1:-1);P?ee--:++ee<G;)if(A(y[ee],ee,y))return ee;return-1}function Dn(y,A,w){return A===A?Cm(y,A,w):oo(y,qc,w)}function xm(y,A,w,P){for(var G=w-1,ee=y.length;++G<ee;)if(P(y[G],A))return G;return-1}function qc(y){return y!==y}function zc(y,A){var w=y==null?0:y.length;return w?ss(y,A)/w:Zr}function os(y){return function(A){return A==null?n:A[y]}}function is(y){return function(A){return y==null?n:y[A]}}function Kc(y,A,w,P,G){return G(y,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function Sm(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function ss(y,A){for(var w,P=-1,G=y.length;++P<G;){var ee=A(y[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function as(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function vm(y,A){return le(A,function(w){return[w,y[w]]})}function Yc(y){return y&&y.slice(0,Qc(y)+1).replace(Ki,"")}function $e(y){return function(A){return y(A)}}function cs(y,A){return le(A,function(w){return y[w]})}function Tr(y,A){return y.has(A)}function Zc(y,A){for(var w=-1,P=y.length;++w<P&&Dn(A,y[w],0)>-1;);return w}function Xc(y,A){for(var w=y.length;w--&&Dn(A,y[w],0)>-1;);return w}function wm(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var Am=is(sm),Im=is(am);function _m(y){return"\\"+um[y]}function bm(y,A){return y==null?n:y[A]}function Nn(y){return nm.test(y)}function Lm(y){return rm.test(y)}function Em(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function us(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function Jc(y,A){return function(w){return y(A(w))}}function Zt(y,A){for(var w=-1,P=y.length,G=0,ee=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,ee[G++]=w)}return ee}function io(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function km(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function Cm(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function Pm(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function On(y){return Nn(y)?Dm(y):Tm(y)}function ut(y){return Nn(y)?Nm(y):hm(y)}function Qc(y){for(var A=y.length;A--&&wg.test(y.charAt(A)););return A}var Rm=is(cm);function Dm(y){for(var A=Qi.lastIndex=0;Qi.test(y);)++A;return A}function Nm(y){return y.match(Qi)||[]}function Om(y){return y.match(tm)||[]}var Mm=function y(A){A=A==null?ve:Xt.defaults(ve.Object(),A,Xt.pick(ve,om));var w=A.Array,P=A.Date,G=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,ls=A.RegExp,Fm=A.String,je=A.TypeError,so=w.prototype,Um=ee.prototype,Mn=oe.prototype,ao=A["__core-js_shared__"],co=Um.toString,re=Mn.hasOwnProperty,Bm=0,jc=function(){var e=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),uo=Mn.toString,Wm=co.call(oe),Gm=ve._,$m=ls("^"+co.call(re).replace(zi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lo=Mc?A.Buffer:n,Jt=A.Symbol,po=A.Uint8Array,eu=lo?lo.allocUnsafe:n,fo=Jc(oe.getPrototypeOf,oe),tu=oe.create,nu=Mn.propertyIsEnumerable,go=so.splice,ru=Jt?Jt.isConcatSpreadable:n,hr=Jt?Jt.iterator:n,ln=Jt?Jt.toStringTag:n,mo=function(){try{var e=mn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Hm=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,Vm=P&&P.now!==ve.Date.now&&P.now,qm=A.setTimeout!==ve.setTimeout&&A.setTimeout,To=xe.ceil,ho=xe.floor,ps=oe.getOwnPropertySymbols,zm=lo?lo.isBuffer:n,ou=A.isFinite,Km=so.join,Ym=Jc(oe.keys,oe),Se=xe.max,Ee=xe.min,Zm=P.now,Xm=A.parseInt,iu=xe.random,Jm=so.reverse,fs=mn(A,"DataView"),yr=mn(A,"Map"),ds=mn(A,"Promise"),Fn=mn(A,"Set"),xr=mn(A,"WeakMap"),Sr=mn(oe,"create"),yo=xr&&new xr,Un={},Qm=Tn(fs),jm=Tn(yr),eT=Tn(ds),tT=Tn(Fn),nT=Tn(xr),xo=Jt?Jt.prototype:n,vr=xo?xo.valueOf:n,su=xo?xo.toString:n;function l(e){if(fe(e)&&!$(e)&&!(e instanceof X)){if(e instanceof et)return e;if(re.call(e,"__wrapped__"))return al(e)}return new et(e)}var Bn=function(){function e(){}return function(t){if(!pe(t))return{};if(tu)return tu(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function So(){}function et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:Tg,evaluate:hg,interpolate:mc,variable:"",imports:{_:l}},l.prototype=So.prototype,l.prototype.constructor=l,et.prototype=Bn(So.prototype),et.prototype.constructor=et;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ht,this.__views__=[]}function rT(){var e=new X(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function oT(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function iT(){var e=this.__wrapped__.value(),t=this.__dir__,r=$(e),a=t<0,c=r?e.length:0,p=hh(0,c,this.__views__),T=p.start,h=p.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,N=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&N==x)return Cu(e,this.__actions__);var U=[];e:for(;x--&&C<N;){_+=t;for(var K=-1,B=e[_];++K<L;){var Z=b[K],J=Z.iteratee,qe=Z.type,De=J(B);if(qe==jd)B=De;else if(!De){if(qe==lc)continue e;break e}}U[C++]=B}return U}X.prototype=Bn(So.prototype),X.prototype.constructor=X;function pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function sT(){this.__data__=Sr?Sr(null):{},this.size=0}function aT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function cT(e){var t=this.__data__;if(Sr){var r=t[e];return r===S?n:r}return re.call(t,e)?t[e]:n}function uT(e){var t=this.__data__;return Sr?t[e]!==n:re.call(t,e)}function lT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Sr&&t===n?S:t,this}pn.prototype.clear=sT,pn.prototype.delete=aT,pn.prototype.get=cT,pn.prototype.has=uT,pn.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 pT(){this.__data__=[],this.size=0}function fT(e){var t=this.__data__,r=vo(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():go.call(t,r,1),--this.size,!0}function dT(e){var t=this.__data__,r=vo(t,e);return r<0?n:t[r][1]}function gT(e){return vo(this.__data__,e)>-1}function mT(e,t){var r=this.__data__,a=vo(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Ct.prototype.clear=pT,Ct.prototype.delete=fT,Ct.prototype.get=dT,Ct.prototype.has=gT,Ct.prototype.set=mT;function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function TT(){this.size=0,this.__data__={hash:new pn,map:new(yr||Ct),string:new pn}}function hT(e){var t=Do(this,e).delete(e);return this.size-=t?1:0,t}function yT(e){return Do(this,e).get(e)}function xT(e){return Do(this,e).has(e)}function ST(e,t){var r=Do(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Pt.prototype.clear=TT,Pt.prototype.delete=hT,Pt.prototype.get=yT,Pt.prototype.has=xT,Pt.prototype.set=ST;function fn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}function vT(e){return this.__data__.set(e,S),this}function wT(e){return this.__data__.has(e)}fn.prototype.add=fn.prototype.push=vT,fn.prototype.has=wT;function lt(e){var t=this.__data__=new Ct(e);this.size=t.size}function AT(){this.__data__=new Ct,this.size=0}function IT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function _T(e){return this.__data__.get(e)}function bT(e){return this.__data__.has(e)}function LT(e,t){var r=this.__data__;if(r instanceof Ct){var a=r.__data__;if(!yr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(a)}return r.set(e,t),this.size=r.size,this}lt.prototype.clear=AT,lt.prototype.delete=IT,lt.prototype.get=_T,lt.prototype.has=bT,lt.prototype.set=LT;function au(e,t){var r=$(e),a=!r&&hn(e),c=!r&&!a&&nn(e),p=!r&&!a&&!c&&Hn(e),T=r||a||c||p,h=T?as(e.length,Fm):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ot(_,x)))&&h.push(_);return h}function cu(e){var t=e.length;return t?e[Is(0,t-1)]:n}function ET(e,t){return No(Ne(e),dn(t,0,e.length))}function kT(e){return No(Ne(e))}function gs(e,t,r){(r!==n&&!pt(e[t],r)||r===n&&!(t in e))&&Rt(e,t,r)}function wr(e,t,r){var a=e[t];(!(re.call(e,t)&&pt(a,r))||r===n&&!(t in e))&&Rt(e,t,r)}function vo(e,t){for(var r=e.length;r--;)if(pt(e[r][0],t))return r;return-1}function CT(e,t,r,a){return Qt(e,function(c,p,T){t(a,c,r(c),T)}),a}function uu(e,t){return e&&xt(t,we(t),e)}function PT(e,t){return e&&xt(t,Me(t),e)}function Rt(e,t,r){t=="__proto__"&&mo?mo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ms(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:Zs(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 tt(e,t,r,a,c,p){var T,h=t&R,x=t&H,_=t&M;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!pe(e))return e;var b=$(e);if(b){if(T=xh(e),!h)return Ne(e,T)}else{var L=ke(e),C=L==Qr||L==pc;if(nn(e))return Du(e,h);if(L==kt||L==Cn||C&&!c){if(T=x||C?{}:Qu(e),!h)return x?ch(e,PT(T,e)):ah(e,uu(T,e))}else{if(!ie[L])return c?e:{};T=Sh(e,L,h)}}p||(p=new lt);var N=p.get(e);if(N)return N;p.set(e,T),Ll(e)?e.forEach(function(B){T.add(tt(B,t,r,B,e,p))}):_l(e)&&e.forEach(function(B,Z){T.set(Z,tt(B,t,r,Z,e,p))});var U=_?x?Os:Ns:x?Me:we,K=b?n:U(e);return Qe(K||e,function(B,Z){K&&(Z=B,B=e[Z]),wr(T,Z,tt(B,t,r,Z,e,p))}),T}function RT(e){var t=we(e);return function(r){return lu(r,e,t)}}function lu(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 pu(e,t,r){if(typeof e!="function")throw new je(m);return kr(function(){e.apply(n,r)},t)}function Ar(e,t,r,a){var c=-1,p=ro,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=le(t,$e(r))),a?(p=ts,T=!1):t.length>=i&&(p=Tr,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;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Qt=Uu(yt),fu=Uu(hs,!0);function DT(e,t){var r=!0;return Qt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function wo(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,x=p}return x}function NT(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:kl(a);r<a;)e[r++]=t;return e}function du(e,t){var r=[];return Qt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function Le(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=wh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?Le(h,t-1,r,a,c):Yt(c,h):a||(c[c.length]=h)}return c}var Ts=Bu(),gu=Bu(!0);function yt(e,t){return e&&Ts(e,t,we)}function hs(e,t){return e&&gu(e,t,we)}function Ao(e,t){return Kt(t,function(r){return Mt(e[r])})}function gn(e,t){t=en(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[St(t[r++])];return r&&r==a?e:n}function mu(e,t,r){var a=t(e);return $(e)?a:Yt(a,r(e))}function Pe(e){return e==null?e===n?ug:ag:ln&&ln in oe(e)?Th(e):kh(e)}function ys(e,t){return e>t}function OT(e,t){return e!=null&&re.call(e,t)}function MT(e,t){return e!=null&&t in oe(e)}function FT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function xs(e,t,r){for(var a=r?ts:ro,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,_=[];T--;){var b=e[T];T&&t&&(b=le(b,$e(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new fn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var N=b[L],U=t?t(N):N;if(N=r||N!==0?N:0,!(C?Tr(C,U):a(_,U,r))){for(T=p;--T;){var K=h[T];if(!(K?Tr(K,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(N)}}return _}function UT(e,t,r,a){return yt(e,function(c,p,T){t(a,r(c),p,T)}),a}function Ir(e,t,r){t=en(t,e),e=nl(e,t);var a=e==null?e:e[St(rt(t))];return a==null?n:Ge(a,e,r)}function Tu(e){return fe(e)&&Pe(e)==Cn}function BT(e){return fe(e)&&Pe(e)==mr}function WT(e){return fe(e)&&Pe(e)==lr}function _r(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:GT(e,t,r,a,_r,c)}function GT(e,t,r,a,c,p){var T=$(e),h=$(t),x=T?Xr:ke(e),_=h?Xr:ke(t);x=x==Cn?kt:x,_=_==Cn?kt:_;var b=x==kt,L=_==kt,C=x==_;if(C&&nn(e)){if(!nn(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new lt),T||Hn(e)?Zu(e,t,r,a,c,p):gh(e,t,x,r,a,c,p);if(!(r&ue)){var N=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(N||U){var K=N?e.value():e,B=U?t.value():t;return p||(p=new lt),c(K,B,r,a,p)}}return C?(p||(p=new lt),mh(e,t,r,a,c,p)):!1}function $T(e){return fe(e)&&ke(e)==at}function Ss(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],_=e[x],b=h[1];if(T&&h[2]){if(_===n&&!(x in e))return!1}else{var L=new lt;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?_r(b,_,ue|ye,a,L):C))return!1}}return!0}function hu(e){if(!pe(e)||Ih(e))return!1;var t=Mt(e)?$m:Rg;return t.test(Tn(e))}function HT(e){return fe(e)&&Pe(e)==fr}function VT(e){return fe(e)&&ke(e)==ct}function qT(e){return fe(e)&&Wo(e.length)&&!!ce[Pe(e)]}function yu(e){return typeof e=="function"?e:e==null?Fe:typeof e=="object"?$(e)?vu(e[0],e[1]):Su(e):Wl(e)}function vs(e){if(!Er(e))return Ym(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function zT(e){if(!pe(e))return Eh(e);var t=Er(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function ws(e,t){return e<t}function xu(e,t){var r=-1,a=Oe(e)?w(e.length):[];return Qt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function Su(e){var t=Fs(e);return t.length==1&&t[0][2]?el(t[0][0],t[0][1]):function(r){return r===e||Ss(r,e,t)}}function vu(e,t){return Bs(e)&&ju(t)?el(St(e),t):function(r){var a=Zs(r,e);return a===n&&a===t?Xs(r,e):_r(t,a,ue|ye)}}function Io(e,t,r,a,c){e!==t&&Ts(t,function(p,T){if(c||(c=new lt),pe(p))KT(e,t,T,r,Io,a,c);else{var h=a?a(Gs(e,T),p,T+"",e,t,c):n;h===n&&(h=p),gs(e,T,h)}},Me)}function KT(e,t,r,a,c,p,T){var h=Gs(e,r),x=Gs(t,r),_=T.get(x);if(_){gs(e,r,_);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=$(x),N=!C&&nn(x),U=!C&&!N&&Hn(x);b=x,C||N||U?$(h)?b=h:me(h)?b=Ne(h):N?(L=!1,b=Du(x,!0)):U?(L=!1,b=Nu(x,!0)):b=[]:Cr(x)||hn(x)?(b=h,hn(h)?b=Cl(h):(!pe(h)||Mt(h))&&(b=Qu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),gs(e,r,b)}function wu(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Ot(t,r)?e[t]:n}function Au(e,t,r){t.length?t=le(t,function(p){return $(p)?function(T){return gn(T,p.length===1?p[0]:p)}:p}):t=[Fe];var a=-1;t=le(t,$e(F()));var c=xu(e,function(p,T,h){var x=le(t,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return Sm(c,function(p,T){return sh(p,T,r)})}function YT(e,t){return Iu(e,t,function(r,a){return Xs(e,a)})}function Iu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=gn(e,T);r(h,T)&&br(p,en(T,e),h)}return p}function ZT(e){return function(t){return gn(t,e)}}function As(e,t,r,a){var c=a?xm:Dn,p=-1,T=t.length,h=e;for(e===t&&(t=Ne(t)),r&&(h=le(e,$e(r)));++p<T;)for(var x=0,_=t[p],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&go.call(h,x,1),go.call(e,x,1);return e}function _u(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Ot(c)?go.call(e,c,1):Ls(e,c)}}return e}function Is(e,t){return e+ho(iu()*(t-e+1))}function XT(e,t,r,a){for(var c=-1,p=Se(To((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function _s(e,t){var r="";if(!e||t<1||t>zt)return r;do t%2&&(r+=e),t=ho(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return $s(tl(e,t,Fe),e+"")}function JT(e){return cu(Vn(e))}function QT(e,t){var r=Vn(e);return No(r,dn(t,0,r.length))}function br(e,t,r,a){if(!pe(e))return e;t=en(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=St(t[c]),_=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];_=a?a(b,x,h):n,_===n&&(_=pe(b)?b:Ot(t[c+1])?[]:{})}wr(h,x,_),h=h[x]}return e}var bu=yo?function(e,t){return yo.set(e,t),e}:Fe,jT=mo?function(e,t){return mo(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:Fe;function eh(e){return No(Vn(e))}function nt(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 th(e,t){var r;return Qt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function _o(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=rg){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 bs(e,t,Fe,r)}function bs(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<p;){var b=ho((c+p)/2),L=r(e[b]),C=L!==n,N=L===null,U=L===L,K=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!N):x?B=U&&C&&!N&&(a||!K):N||K?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,ng)}function Lu(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||!pt(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function Eu(e){return typeof e=="number"?e:Ve(e)?Zr:+e}function He(e){if(typeof e=="string")return e;if($(e))return le(e,He)+"";if(Ve(e))return su?su.call(e):"";var t=e+"";return t=="0"&&1/e==-cn?"-0":t}function jt(e,t,r){var a=-1,c=ro,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=ts;else if(p>=i){var _=t?null:fh(e);if(_)return io(_);T=!1,c=Tr,x=new fn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function Ls(e,t){return t=en(t,e),e=nl(e,t),e==null||delete e[St(rt(t))]}function ku(e,t,r,a){return br(e,t,r(gn(e,t)),a)}function bo(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?nt(e,a?0:p,a?p+1:c):nt(e,a?p+1:0,a?c:p)}function Cu(e,t){var r=e;return r instanceof X&&(r=r.value()),ns(t,function(a,c){return c.func.apply(c.thisArg,Yt([a],c.args))},r)}function Es(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]=Ar(p[c]||T,e[h],t,r));return jt(Le(p,1),t,r)}function Pu(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 ks(e){return me(e)?e:[]}function Cs(e){return typeof e=="function"?e:Fe}function en(e,t){return $(e)?e:Bs(e,t)?[e]:sl(ne(e))}var nh=Y;function tn(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:nt(e,t,r)}var Ru=Hm||function(e){return ve.clearTimeout(e)};function Du(e,t){if(t)return e.slice();var r=e.length,a=eu?eu(r):new e.constructor(r);return e.copy(a),a}function Ps(e){var t=new e.constructor(e.byteLength);return new po(t).set(new po(e)),t}function rh(e,t){var r=t?Ps(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function oh(e){var t=new e.constructor(e.source,Tc.exec(e));return t.lastIndex=e.lastIndex,t}function ih(e){return vr?oe(vr.call(e)):{}}function Nu(e,t){var r=t?Ps(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ou(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)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 x=Ou(c[a],p[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function Mu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,_=Se(p-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Fu(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var N=c;++x<_;)L[N+x]=t[x];for(;++T<h;)(C||c<p)&&(L[N+r[T]]=e[c++]);return L}function Ne(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function xt(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?Rt(r,h,x):wr(r,h,x)}return r}function ah(e,t){return xt(e,Us(e),t)}function ch(e,t){return xt(e,Xu(e),t)}function Lo(e,t){return function(r,a){var c=$(r)?dm:CT,p=t?t():{};return c(r,e,F(a,2),p)}}function Wn(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Uu(e,t){return function(r,a){if(r==null)return r;if(!Oe(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 Bu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function uh(e,t,r){var a=t&ge,c=Lr(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Wu(e){return function(t){t=ne(t);var r=Nn(t)?ut(t):n,a=r?r[0]:t.charAt(0),c=r?tn(r,1).join(""):t.slice(1);return a[e]()+c}}function Gn(e){return function(t){return ns(Ul(Fl(t).replace(jg,"")),e,"")}}function Lr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Bn(e.prototype),a=e.apply(r,t);return pe(a)?a:r}}function lh(e,t,r){var a=Lr(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=$n(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==x&&T[p-1]!==x?[]:Zt(T,x);if(p-=_.length,p<r)return qu(e,t,Eo,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 Gu(e){return function(t,r,a){var c=oe(t);if(!Oe(t)){var p=F(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 $u(e){return Nt(function(t){var r=t.length,a=r,c=et.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new je(m);if(c&&!T&&Ro(p)=="wrapper")var T=new et([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=Ro(p),x=h=="wrapper"?Ms(p):n;x&&Ws(x[0])&&x[1]==(Et|mt|Tt|cr)&&!x[4].length&&x[9]==1?T=T[Ro(x[0])].apply(T,x[3]):T=p.length==1&&Ws(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&$(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 Eo(e,t,r,a,c,p,T,h,x,_){var b=t&Et,L=t&ge,C=t&be,N=t&(mt|En),U=t&Mi,K=C?n:Lr(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(N)var De=$n(B),ze=wm(J,De);if(a&&(J=Mu(J,a,c,N)),p&&(J=Fu(J,p,T,N)),Z-=ze,N&&Z<_){var Te=Zt(J,De);return qu(e,t,Eo,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ut=C?ft[e]:e;return Z=J.length,h?J=Ch(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ut=K||Lr(Ut)),Ut.apply(ft,J)}return B}function Hu(e,t){return function(r,a){return UT(r,e,t(a),{})}}function ko(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=Eu(r),a=Eu(a)),c=e(r,a)}return c}}function Rs(e){return Nt(function(t){return t=le(t,$e(F())),Y(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function Co(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?_s(t,e):t;var a=_s(t,To(e/On(t)));return Nn(t)?tn(ut(a),0,e).join(""):a.slice(0,e)}function ph(e,t,r,a){var c=t&ge,p=Lr(e);function T(){for(var h=-1,x=arguments.length,_=-1,b=a.length,L=w(b+x),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function Vu(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Ft(t),r===n?(r=t,t=0):r=Ft(r),a=a===n?t<r?1:-1:Ft(a),XT(t,r,a,e)}}function Po(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=ot(t),r=ot(r)),e(t,r)}}function qu(e,t,r,a,c,p,T,h,x,_){var b=t&mt,L=b?T:n,C=b?n:T,N=b?p:n,U=b?n:p;t|=b?Tt:kn,t&=~(b?kn:Tt),t&uc||(t&=~(ge|be));var K=[e,t,c,N,L,U,C,h,x,_],B=r.apply(n,K);return Ws(e)&&rl(B,K),B.placeholder=a,ol(B,e,t)}function Ds(e){var t=xe[e];return function(r,a){if(r=ot(r),a=a==null?0:Ee(V(a),292),a&&ou(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 fh=Fn&&1/io(new Fn([,-0]))[1]==cn?function(e){return new Fn(e)}:ta;function zu(e){return function(t){var r=ke(t);return r==at?us(t):r==ct?km(t):vm(t,e(t))}}function Dt(e,t,r,a,c,p,T,h){var x=t&be;if(!x&&typeof e!="function")throw new je(m);var _=a?a.length:0;if(_||(t&=~(Tt|kn),a=c=n),T=T===n?T:Se(V(T),0),h=h===n?h:V(h),_-=c?c.length:0,t&kn){var b=a,L=c;a=c=n}var C=x?n:Ms(e),N=[e,t,r,a,c,b,L,p,T,h];if(C&&Lh(N,C),e=N[0],t=N[1],r=N[2],a=N[3],c=N[4],h=N[9]=N[9]===n?x?0:e.length:Se(N[9]-_,0),!h&&t&(mt|En)&&(t&=~(mt|En)),!t||t==ge)var U=uh(e,t,r);else t==mt||t==En?U=lh(e,t,h):(t==Tt||t==(ge|Tt))&&!c.length?U=ph(e,t,r,a):U=Eo.apply(n,N);var K=C?bu:rl;return ol(K(U,N),e,t)}function Ku(e,t,r,a){return e===n||pt(e,Mn[r])&&!re.call(a,r)?t:e}function Yu(e,t,r,a,c,p){return pe(e)&&pe(t)&&(p.set(t,e),Io(e,t,n,Yu,p),p.delete(t)),e}function dh(e){return Cr(e)?n:e}function Zu(e,t,r,a,c,p){var T=r&ue,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,N=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(N){if(!rs(t,function(Z,J){if(!Tr(N,J)&&(U===Z||c(U,Z,r,a,p)))return N.push(J)})){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 gh(e,t,r,a,c,p,T){switch(r){case Pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mr:return!(e.byteLength!=t.byteLength||!p(new po(e),new po(t)));case ur:case lr:case pr:return pt(+e,+t);case Jr:return e.name==t.name&&e.message==t.message;case fr:case dr:return e==t+"";case at:var h=us;case ct:var x=a&ue;if(h||(h=io),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=Zu(h(e),h(t),a,c,p,T);return T.delete(e),b;case jr:if(vr)return vr.call(e)==vr.call(t)}return!1}function mh(e,t,r,a,c,p){var T=r&ue,h=Ns(e),x=h.length,_=Ns(t),b=_.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var N=p.get(e),U=p.get(t);if(N&&U)return N==t&&U==e;var K=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var qe=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(qe===n?Z===J||c(Z,J,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 Nt(e){return $s(tl(e,n,ll),e+"")}function Ns(e){return mu(e,we,Us)}function Os(e){return mu(e,Me,Xu)}var Ms=yo?function(e){return yo.get(e)}:ta;function Ro(e){for(var t=e.name+"",r=Un[t],a=re.call(Un,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function $n(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||js;return e=e===js?yu:e,arguments.length?e(arguments[0],arguments[1]):e}function Do(e,t){var r=e.__data__;return Ah(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Fs(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,ju(c)]}return t}function mn(e,t){var r=bm(e,t);return hu(r)?r:n}function Th(e){var t=re.call(e,ln),r=e[ln];try{e[ln]=n;var a=!0}catch(p){}var c=uo.call(e);return a&&(t?e[ln]=r:delete e[ln]),c}var Us=ps?function(e){return e==null?[]:(e=oe(e),Kt(ps(e),function(t){return nu.call(e,t)}))}:na,Xu=ps?function(e){for(var t=[];e;)Yt(t,Us(e)),e=fo(e);return t}:na,ke=Pe;(fs&&ke(new fs(new ArrayBuffer(1)))!=Pn||yr&&ke(new yr)!=at||ds&&ke(ds.resolve())!=fc||Fn&&ke(new Fn)!=ct||xr&&ke(new xr)!=gr)&&(ke=function(e){var t=Pe(e),r=t==kt?e.constructor:n,a=r?Tn(r):"";if(a)switch(a){case Qm:return Pn;case jm:return at;case eT:return fc;case tT:return ct;case nT:return gr}return t});function hh(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 yh(e){var t=e.match(Ig);return t?t[1].split(_g):[]}function Ju(e,t,r){t=en(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=St(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&&Wo(c)&&Ot(T,c)&&($(e)||hn(e)))}function xh(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 Qu(e){return typeof e.constructor=="function"&&!Er(e)?Bn(fo(e)):{}}function Sh(e,t,r){var a=e.constructor;switch(t){case mr:return Ps(e);case ur:case lr:return new a(+e);case Pn:return rh(e,r);case Fi:case Ui:case Bi:case Wi:case Gi:case $i:case Hi:case Vi:case qi:return Nu(e,r);case at:return new a;case pr:case dr:return new a(e);case fr:return oh(e);case ct:return new a;case jr:return ih(e)}}function vh(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(Ag,`{
2
2
  /* [wrapped with `+t+`] */
3
- `)}function Sh(e){return $(e)||hn(e)||!!(ru&&e&&e[ru])}function Ot(e,t){var r=typeof e;return t=t==null?zt:t,!!t&&(r=="number"||r!="symbol"&&Rg.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!pe(r))return!1;var a=typeof t;return(a=="number"?Oe(r)&&Ot(t,r.length):a=="string"&&t in r)?pt(r[t],e):!1}function Bs(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:hg.test(e)||!Tg.test(e)||t!=null&&e in oe(t)}function vh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ws(e){var t=Ro(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ms(r);return!!a&&e===a[0]}function wh(e){return!!jc&&jc in e}var Ah=ao?Mt:ra;function Er(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mn;return e===r}function ju(e){return e===e&&!pe(e)}function el(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function Ih(e){var t=Uo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function _h(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|be|Et),T=a==Et&&r==mt||a==Et&&r==cr&&e[7].length<=t[8]||a==(Et|cr)&&t[7].length<=t[8]&&r==mt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:uc);var h=t[3];if(h){var x=e[3];e[3]=x?Mu(x,h,t[4]):h,e[4]=x?Zt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Fu(x,h,t[6]):h,e[6]=x?Zt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&Et&&(e[8]=e[8]==null?t[8]:Ee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function bh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function Lh(e){return uo.call(e)}function tl(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 nl(e,t){return t.length<2?e:gn(e,nt(t,0,-1))}function Eh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Ne(e);a--;){var p=t[a];e[a]=Ot(p,r)?c[p]:n}return e}function Gs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var rl=il(bu),kr=Hm||function(e,t){return ve.setTimeout(e,t)},$s=il(JT);function ol(e,t,r){var a=t+"";return $s(e,xh(a,kh(Th(a),r)))}function il(e){var t=0,r=0;return function(){var a=Km(),c=Xd-(a-r);if(r=a,c>0){if(++t>=Zd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function No(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=Is(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var sl=Ih(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yg,function(r,a,c,p){t.push(c?p.replace(bg,"$1"):a||r)}),t});function St(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 co.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function kh(e,t){return Qe(ng,function(r){var a="_."+r[0];t&r[1]&&!ro(e,a)&&e.push(a)}),e.sort()}function al(e){if(e instanceof X)return e.clone();var t=new et(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ch(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(To(a/t));c<a;)T[p++]=nt(e,c,c+=t);return T}function Ph(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 Rh(){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($(r)?Ne(r):[r],Le(t,1))}var Dh=Y(function(e,t){return me(e)?Ar(e,Le(t,1,me,!0)):[]}),Nh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Ar(e,Le(t,1,me,!0),F(r,2)):[]}),Oh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Ar(e,Le(t,1,me,!0),n,r):[]});function Mh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),nt(e,t<0?0:t,a)):[]}function Fh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,nt(e,0,t<0?0:t)):[]}function Uh(e,t){return e&&e.length?bo(e,F(t,3),!0,!0):[]}function Bh(e,t){return e&&e.length?bo(e,F(t,3),!0):[]}function Wh(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),RT(e,t,r,a)):[]}function cl(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)),oo(e,F(t,3),c)}function ul(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)),oo(e,F(t,3),c,!0)}function ll(e){var t=e==null?0:e.length;return t?Le(e,1):[]}function Gh(e){var t=e==null?0:e.length;return t?Le(e,cn):[]}function $h(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),Le(e,t)):[]}function Hh(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 pl(e){return e&&e.length?e[0]:n}function Vh(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)),Dn(e,t,c)}function qh(e){var t=e==null?0:e.length;return t?nt(e,0,-1):[]}var zh=Y(function(e){var t=le(e,ks);return t.length&&t[0]===e[0]?xs(t):[]}),Kh=Y(function(e){var t=rt(e),r=le(e,ks);return t===rt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?xs(r,F(t,2)):[]}),Yh=Y(function(e){var t=rt(e),r=le(e,ks);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?xs(r,n,t):[]});function Zh(e,t){return e==null?"":qm.call(e,t)}function rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Xh(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?km(e,t,c):oo(e,qc,c,!0)}function Jh(e,t){return e&&e.length?wu(e,V(t)):n}var Qh=Y(fl);function fl(e,t){return e&&e.length&&t&&t.length?As(e,t):e}function jh(e,t,r){return e&&e.length&&t&&t.length?As(e,t,F(r,2)):e}function ey(e,t,r){return e&&e.length&&t&&t.length?As(e,t,n,r):e}var ty=Nt(function(e,t){var r=e==null?0:e.length,a=ms(e,t);return _u(e,le(t,function(c){return Ot(c,r)?+c:c}).sort(Ou)),a});function ny(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=F(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return _u(e,c),r}function Hs(e){return e==null?e:Zm.call(e)}function ry(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)),nt(e,t,r)):[]}function oy(e,t){return _o(e,t)}function iy(e,t,r){return bs(e,t,F(r,2))}function sy(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t);if(a<r&&pt(e[a],t))return a}return-1}function ay(e,t){return _o(e,t,!0)}function cy(e,t,r){return bs(e,t,F(r,2),!0)}function uy(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t,!0)-1;if(pt(e[a],t))return a}return-1}function ly(e){return e&&e.length?Lu(e):[]}function py(e,t){return e&&e.length?Lu(e,F(t,2)):[]}function fy(e){var t=e==null?0:e.length;return t?nt(e,1,t):[]}function dy(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),nt(e,0,t<0?0:t)):[]}function gy(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,nt(e,t<0?0:t,a)):[]}function my(e,t){return e&&e.length?bo(e,F(t,3),!1,!0):[]}function Ty(e,t){return e&&e.length?bo(e,F(t,3)):[]}var hy=Y(function(e){return jt(Le(e,1,me,!0))}),yy=Y(function(e){var t=rt(e);return me(t)&&(t=n),jt(Le(e,1,me,!0),F(t,2))}),xy=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,jt(Le(e,1,me,!0),n,t)});function Sy(e){return e&&e.length?jt(e):[]}function vy(e,t){return e&&e.length?jt(e,F(t,2)):[]}function wy(e,t){return t=typeof t=="function"?t:n,e&&e.length?jt(e,n,t):[]}function Vs(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}),as(t,function(r){return le(e,os(r))})}function dl(e,t){if(!(e&&e.length))return[];var r=Vs(e);return t==null?r:le(r,function(a){return Ge(t,n,a)})}var Ay=Y(function(e,t){return me(e)?Ar(e,t):[]}),Iy=Y(function(e){return Es(Kt(e,me))}),_y=Y(function(e){var t=rt(e);return me(t)&&(t=n),Es(Kt(e,me),F(t,2))}),by=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,Es(Kt(e,me),n,t)}),Ly=Y(Vs);function Ey(e,t){return Pu(e||[],t||[],wr)}function ky(e,t){return Pu(e||[],t||[],br)}var Cy=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,dl(e,r)});function gl(e){var t=l(e);return t.__chain__=!0,t}function Py(e,t){return t(e),e}function Oo(e,t){return t(e)}var Ry=Nt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return ms(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Ot(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Oo,args:[c],thisArg:n}),new et(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function Dy(){return gl(this)}function Ny(){return new et(this.value(),this.__chain__)}function Oy(){this.__values__===n&&(this.__values__=El(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function My(){return this}function Fy(e){for(var t,r=this;r instanceof So;){var a=al(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 Uy(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Oo,args:[Hs],thisArg:n}),new et(t,this.__chain__)}return this.thru(Hs)}function By(){return Cu(this.__wrapped__,this.__actions__)}var Wy=Lo(function(e,t,r){re.call(e,r)?++e[r]:Rt(e,r,1)});function Gy(e,t,r){var a=$(e)?Hc:PT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}function $y(e,t){var r=$(e)?Kt:du;return r(e,F(t,3))}var Hy=Gu(cl),Vy=Gu(ul);function qy(e,t){return Le(Mo(e,t),1)}function zy(e,t){return Le(Mo(e,t),cn)}function Ky(e,t,r){return r=r===n?1:V(r),Le(Mo(e,t),r)}function ml(e,t){var r=$(e)?Qe:Qt;return r(e,F(t,3))}function Tl(e,t){var r=$(e)?fm:fu;return r(e,F(t,3))}var Yy=Lo(function(e,t,r){re.call(e,r)?e[r].push(t):Rt(e,r,[t])});function Zy(e,t,r,a){e=Oe(e)?e:Vn(e),r=r&&!a?V(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Go(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Dn(e,t,r)>-1}var Xy=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Oe(e)?w(e.length):[];return Qt(e,function(T){p[++a]=c?Ge(t,T,r):Ir(T,t,r)}),p}),Jy=Lo(function(e,t,r){Rt(e,r,t)});function Mo(e,t){var r=$(e)?le:xu;return r(e,F(t,3))}function Qy(e,t,r,a){return e==null?[]:($(t)||(t=t==null?[]:[t]),r=a?n:r,$(r)||(r=r==null?[]:[r]),Au(e,t,r))}var jy=Lo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function ex(e,t,r){var a=$(e)?ns:Kc,c=arguments.length<3;return a(e,F(t,4),r,c,Qt)}function tx(e,t,r){var a=$(e)?dm:Kc,c=arguments.length<3;return a(e,F(t,4),r,c,fu)}function nx(e,t){var r=$(e)?Kt:du;return r(e,Bo(F(t,3)))}function rx(e){var t=$(e)?cu:ZT;return t(e)}function ox(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=$(e)?bT:XT;return a(e,t)}function ix(e){var t=$(e)?LT:QT;return t(e)}function sx(e){if(e==null)return 0;if(Oe(e))return Go(e)?On(e):e.length;var t=ke(e);return t==at||t==ct?e.size:vs(e).length}function ax(e,t,r){var a=$(e)?rs:jT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}var cx=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),Au(e,Le(t,1),[])}),Fo=$m||function(){return ve.Date.now()};function ux(e,t){if(typeof t!="function")throw new je(m);return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function hl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Dt(e,Et,n,n,n,n,t)}function yl(e,t){var r;if(typeof t!="function")throw new je(m);return e=V(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var qs=Y(function(e,t,r){var a=ge;if(r.length){var c=Zt(r,$n(qs));a|=Tt}return Dt(e,a,t,r,c)}),xl=Y(function(e,t,r){var a=ge|be;if(r.length){var c=Zt(r,$n(xl));a|=Tt}return Dt(t,a,e,r,c)});function Sl(e,t,r){t=r?n:t;var a=Dt(e,mt,n,n,n,n,n,t);return a.placeholder=Sl.placeholder,a}function vl(e,t,r){t=r?n:t;var a=Dt(e,En,n,n,n,n,n,t);return a.placeholder=vl.placeholder,a}function wl(e,t,r){var a,c,p,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new je(m);t=ot(t)||0,pe(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(ot(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function N(Te){var ft=a,Ut=c;return a=c=n,_=Te,T=e.apply(Ut,ft),T}function U(Te){return _=Te,h=kr(Z,t),b?N(Te):T}function K(Te){var ft=Te-x,Ut=Te-_,Gl=t-ft;return L?Ee(Gl,p-Ut):Gl}function B(Te){var ft=Te-x,Ut=Te-_;return x===n||ft>=t||ft<0||L&&Ut>=p}function Z(){var Te=Fo();if(B(Te))return J(Te);h=kr(Z,K(Te))}function J(Te){return h=n,C&&a?N(Te):(a=c=n,T)}function qe(){h!==n&&Ru(h),_=0,a=x=c=h=n}function De(){return h===n?T:J(Fo())}function ze(){var Te=Fo(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return Ru(h),h=kr(Z,t),N(x)}return h===n&&(h=kr(Z,t)),T}return ze.cancel=qe,ze.flush=De,ze}var lx=Y(function(e,t){return pu(e,1,t)}),px=Y(function(e,t,r){return pu(e,ot(t)||0,r)});function fx(e){return Dt(e,Mi)}function Uo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new je(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(Uo.Cache||Pt),r}Uo.Cache=Pt;function Bo(e){if(typeof e!="function")throw new je(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 dx(e){return yl(2,e)}var gx=eh(function(e,t){t=t.length==1&&$(t[0])?le(t[0],$e(F())):le(Le(t,1),$e(F()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),zs=Y(function(e,t){var r=Zt(t,$n(zs));return Dt(e,Tt,n,t,r)}),Al=Y(function(e,t){var r=Zt(t,$n(Al));return Dt(e,kn,n,t,r)}),mx=Nt(function(e,t){return Dt(e,cr,n,n,n,t)});function Tx(e,t){if(typeof e!="function")throw new je(m);return t=t===n?t:V(t),Y(e,t)}function hx(e,t){if(typeof e!="function")throw new je(m);return t=t==null?0:Se(V(t),0),Y(function(r){var a=r[t],c=tn(r,0,t);return a&&Yt(c,a),Ge(e,this,c)})}function yx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new je(m);return pe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),wl(e,t,{leading:a,maxWait:t,trailing:c})}function xx(e){return hl(e,1)}function Sx(e,t){return zs(Cs(t),e)}function vx(){if(!arguments.length)return[];var e=arguments[0];return $(e)?e:[e]}function wx(e){return tt(e,M)}function Ax(e,t){return t=typeof t=="function"?t:n,tt(e,M,t)}function Ix(e){return tt(e,R|M)}function _x(e,t){return t=typeof t=="function"?t:n,tt(e,R|M,t)}function bx(e,t){return t==null||lu(e,t,we(t))}function pt(e,t){return e===t||e!==e&&t!==t}var Lx=Po(ys),Ex=Po(function(e,t){return e>=t}),hn=Tu(function(){return arguments}())?Tu:function(e){return fe(e)&&re.call(e,"callee")&&!nu.call(e,"callee")},$=w.isArray,kx=Fc?$e(Fc):FT;function Oe(e){return e!=null&&Wo(e.length)&&!Mt(e)}function me(e){return fe(e)&&Oe(e)}function Cx(e){return e===!0||e===!1||fe(e)&&Pe(e)==ur}var nn=Vm||ra,Px=Uc?$e(Uc):UT;function Rx(e){return fe(e)&&e.nodeType===1&&!Cr(e)}function Dx(e){if(e==null)return!0;if(Oe(e)&&($(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||Hn(e)||hn(e)))return!e.length;var t=ke(e);if(t==at||t==ct)return!e.size;if(Er(e))return!vs(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Nx(e,t){return _r(e,t)}function Ox(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?_r(e,t,n,r):!!a}function Ks(e){if(!fe(e))return!1;var t=Pe(e);return t==Jr||t==og||typeof e.message=="string"&&typeof e.name=="string"&&!Cr(e)}function Mx(e){return typeof e=="number"&&ou(e)}function Mt(e){if(!pe(e))return!1;var t=Pe(e);return t==Qr||t==pc||t==rg||t==sg}function Il(e){return typeof e=="number"&&e==V(e)}function Wo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zt}function pe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var _l=Bc?$e(Bc):WT;function Fx(e,t){return e===t||Ss(e,t,Fs(t))}function Ux(e,t,r){return r=typeof r=="function"?r:n,Ss(e,t,Fs(t),r)}function Bx(e){return bl(e)&&e!=+e}function Wx(e){if(Ah(e))throw new G(u);return hu(e)}function Gx(e){return e===null}function $x(e){return e==null}function bl(e){return typeof e=="number"||fe(e)&&Pe(e)==pr}function Cr(e){if(!fe(e)||Pe(e)!=kt)return!1;var t=fo(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&co.call(r)==Um}var Ys=Wc?$e(Wc):GT;function Hx(e){return Il(e)&&e>=-zt&&e<=zt}var Ll=Gc?$e(Gc):$T;function Go(e){return typeof e=="string"||!$(e)&&fe(e)&&Pe(e)==dr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==jr}var Hn=$c?$e($c):HT;function Vx(e){return e===n}function qx(e){return fe(e)&&ke(e)==gr}function zx(e){return fe(e)&&Pe(e)==cg}var Kx=Po(ws),Yx=Po(function(e,t){return e<=t});function El(e){if(!e)return[];if(Oe(e))return Go(e)?ut(e):Ne(e);if(hr&&e[hr])return bm(e[hr]());var t=ke(e),r=t==at?us:t==ct?io:Vn;return r(e)}function Ft(e){if(!e)return e===0?e:0;if(e=ot(e),e===cn||e===-cn){var t=e<0?-1:1;return t*jd}return e===e?e:0}function V(e){var t=Ft(e),r=t%1;return t===t?r?t-r:t:0}function kl(e){return e?dn(V(e),0,ht):0}function ot(e){if(typeof e=="number")return e;if(Ve(e))return Zr;if(pe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Yc(e);var r=kg.test(e);return r||Pg.test(e)?um(e.slice(2),r?2:8):Eg.test(e)?Zr:+e}function Cl(e){return xt(e,Me(e))}function Zx(e){return e?dn(V(e),-zt,zt):e===0?e:0}function ne(e){return e==null?"":He(e)}var Xx=Wn(function(e,t){if(Er(t)||Oe(t)){xt(t,we(t),e);return}for(var r in t)re.call(t,r)&&wr(e,r,t[r])}),Pl=Wn(function(e,t){xt(t,Me(t),e)}),$o=Wn(function(e,t,r,a){xt(t,Me(t),e,a)}),Jx=Wn(function(e,t,r,a){xt(t,we(t),e,a)}),Qx=Nt(ms);function jx(e,t){var r=Bn(e);return t==null?r:uu(r,t)}var eS=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Me(p),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||pt(b,Mn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),tS=Y(function(e){return e.push(n,Yu),Ge(Rl,n,e)});function nS(e,t){return Vc(e,F(t,3),yt)}function rS(e,t){return Vc(e,F(t,3),hs)}function oS(e,t){return e==null?e:Ts(e,F(t,3),Me)}function iS(e,t){return e==null?e:gu(e,F(t,3),Me)}function sS(e,t){return e&&yt(e,F(t,3))}function aS(e,t){return e&&hs(e,F(t,3))}function cS(e){return e==null?[]:Ao(e,we(e))}function uS(e){return e==null?[]:Ao(e,Me(e))}function Zs(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function lS(e,t){return e!=null&&Ju(e,t,DT)}function Xs(e,t){return e!=null&&Ju(e,t,NT)}var pS=Hu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=uo.call(t)),e[t]=r},Qs(Fe)),fS=Hu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=uo.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},F),dS=Y(Ir);function we(e){return Oe(e)?au(e):vs(e)}function Me(e){return Oe(e)?au(e,!0):VT(e)}function gS(e,t){var r={};return t=F(t,3),yt(e,function(a,c,p){Rt(r,t(a,c,p),a)}),r}function mS(e,t){var r={};return t=F(t,3),yt(e,function(a,c,p){Rt(r,c,t(a,c,p))}),r}var TS=Wn(function(e,t,r){Io(e,t,r)}),Rl=Wn(function(e,t,r,a){Io(e,t,r,a)}),hS=Nt(function(e,t){var r={};if(e==null)return r;var a=!1;t=le(t,function(p){return p=en(p,e),a||(a=p.length>1),p}),xt(e,Os(e),r),a&&(r=tt(r,R|H|M,ph));for(var c=t.length;c--;)Ls(r,t[c]);return r});function yS(e,t){return Dl(e,Bo(F(t)))}var xS=Nt(function(e,t){return e==null?{}:zT(e,t)});function Dl(e,t){if(e==null)return{};var r=le(Os(e),function(a){return[a]});return t=F(t),Iu(e,r,function(a,c){return t(a,c[0])})}function SS(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[St(t[a])];p===n&&(a=c,p=r),e=Mt(p)?p.call(e):p}return e}function vS(e,t,r){return e==null?e:br(e,t,r)}function wS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:br(e,t,r,a)}var Nl=zu(we),Ol=zu(Me);function AS(e,t,r){var a=$(e),c=a||nn(e)||Hn(e);if(t=F(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:pe(e)?r=Mt(p)?Bn(fo(e)):{}:r={}}return(c?Qe:yt)(e,function(T,h,x){return t(r,T,h,x)}),r}function IS(e,t){return e==null?!0:Ls(e,t)}function _S(e,t,r){return e==null?e:ku(e,t,Cs(r))}function bS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:ku(e,t,Cs(r),a)}function Vn(e){return e==null?[]:cs(e,we(e))}function LS(e){return e==null?[]:cs(e,Me(e))}function ES(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=ot(r),r=r===r?r:0),t!==n&&(t=ot(t),t=t===t?t:0),dn(ot(e),t,r)}function kS(e,t,r){return t=Ft(t),r===n?(r=t,t=0):r=Ft(r),e=ot(e),OT(e,t,r)}function CS(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=Ft(e),t===n?(t=e,e=0):t=Ft(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=iu();return Ee(e+c*(t-e+cm("1e-"+((c+"").length-1))),t)}return Is(e,t)}var PS=Gn(function(e,t,r){return t=t.toLowerCase(),e+(r?Ml(t):t)});function Ml(e){return Js(ne(e).toLowerCase())}function Fl(e){return e=ne(e),e&&e.replace(Dg,vm).replace(Qg,"")}function RS(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 DS(e){return e=ne(e),e&&dg.test(e)?e.replace(gc,wm):e}function NS(e){return e=ne(e),e&&xg.test(e)?e.replace(zi,"\\$&"):e}var OS=Gn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),MS=Gn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),FS=Wu("toLowerCase");function US(e,t,r){e=ne(e),t=V(t);var a=t?On(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Co(ho(c),r)+e+Co(To(c),r)}function BS(e,t,r){e=ne(e),t=V(t);var a=t?On(e):0;return t&&a<t?e+Co(t-a,r):e}function WS(e,t,r){e=ne(e),t=V(t);var a=t?On(e):0;return t&&a<t?Co(t-a,r)+e:e}function GS(e,t,r){return r||t==null?t=0:t&&(t=+t),Ym(ne(e).replace(Ki,""),t||0)}function $S(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),_s(ne(e),t)}function HS(){var e=arguments,t=ne(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var VS=Gn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function qS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?ht:r>>>0,r?(e=ne(e),e&&(typeof t=="string"||t!=null&&!Ys(t))&&(t=He(t),!t&&Nn(e))?tn(ut(e),0,r):e.split(t,r)):[]}var zS=Gn(function(e,t,r){return e+(r?" ":"")+Js(t)});function KS(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 YS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=ne(e),t=$o({},t,a,Ku);var c=$o({},t.imports,a.imports,Ku),p=we(c),T=cs(c,p),h,x,_=0,b=t.interpolate||eo,L="__p += '",C=ls((t.escape||eo).source+"|"+b.source+"|"+(b===mc?Lg:eo).source+"|"+(t.evaluate||eo).source+"|$","g"),N="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rm+"]")+`
4
- `;e.replace(C,function(B,Z,J,qe,De,ze){return J||(J=qe),L+=e.slice(_,ze).replace(Ng,Am),Z&&(h=!0,L+=`' +
3
+ `)}function wh(e){return $(e)||hn(e)||!!(ru&&e&&e[ru])}function Ot(e,t){var r=typeof e;return t=t==null?zt:t,!!t&&(r=="number"||r!="symbol"&&Ng.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!pe(r))return!1;var a=typeof t;return(a=="number"?Oe(r)&&Ot(t,r.length):a=="string"&&t in r)?pt(r[t],e):!1}function Bs(e,t){if($(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:xg.test(e)||!yg.test(e)||t!=null&&e in oe(t)}function Ah(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ws(e){var t=Ro(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Ms(r);return!!a&&e===a[0]}function Ih(e){return!!jc&&jc in e}var _h=ao?Mt:ra;function Er(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mn;return e===r}function ju(e){return e===e&&!pe(e)}function el(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function bh(e){var t=Uo(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function Lh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|be|Et),T=a==Et&&r==mt||a==Et&&r==cr&&e[7].length<=t[8]||a==(Et|cr)&&t[7].length<=t[8]&&r==mt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:uc);var h=t[3];if(h){var x=e[3];e[3]=x?Mu(x,h,t[4]):h,e[4]=x?Zt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Fu(x,h,t[6]):h,e[6]=x?Zt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&Et&&(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 Eh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function kh(e){return uo.call(e)}function tl(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 nl(e,t){return t.length<2?e:gn(e,nt(t,0,-1))}function Ch(e,t){for(var r=e.length,a=Ee(t.length,r),c=Ne(e);a--;){var p=t[a];e[a]=Ot(p,r)?c[p]:n}return e}function Gs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var rl=il(bu),kr=qm||function(e,t){return ve.setTimeout(e,t)},$s=il(jT);function ol(e,t,r){var a=t+"";return $s(e,vh(a,Ph(yh(a),r)))}function il(e){var t=0,r=0;return function(){var a=Zm(),c=Qd-(a-r);if(r=a,c>0){if(++t>=Jd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function No(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=Is(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var sl=bh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Sg,function(r,a,c,p){t.push(c?p.replace(Eg,"$1"):a||r)}),t});function St(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 co.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ph(e,t){return Qe(og,function(r){var a="_."+r[0];t&r[1]&&!ro(e,a)&&e.push(a)}),e.sort()}function al(e){if(e instanceof X)return e.clone();var t=new et(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Rh(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(To(a/t));c<a;)T[p++]=nt(e,c,c+=t);return T}function Dh(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 Nh(){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($(r)?Ne(r):[r],Le(t,1))}var Oh=Y(function(e,t){return me(e)?Ar(e,Le(t,1,me,!0)):[]}),Mh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Ar(e,Le(t,1,me,!0),F(r,2)):[]}),Fh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?Ar(e,Le(t,1,me,!0),n,r):[]});function Uh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),nt(e,t<0?0:t,a)):[]}function Bh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,nt(e,0,t<0?0:t)):[]}function Wh(e,t){return e&&e.length?bo(e,F(t,3),!0,!0):[]}function Gh(e,t){return e&&e.length?bo(e,F(t,3),!0):[]}function $h(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),NT(e,t,r,a)):[]}function cl(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)),oo(e,F(t,3),c)}function ul(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)),oo(e,F(t,3),c,!0)}function ll(e){var t=e==null?0:e.length;return t?Le(e,1):[]}function Hh(e){var t=e==null?0:e.length;return t?Le(e,cn):[]}function Vh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:V(t),Le(e,t)):[]}function qh(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 pl(e){return e&&e.length?e[0]:n}function zh(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)),Dn(e,t,c)}function Kh(e){var t=e==null?0:e.length;return t?nt(e,0,-1):[]}var Yh=Y(function(e){var t=le(e,ks);return t.length&&t[0]===e[0]?xs(t):[]}),Zh=Y(function(e){var t=rt(e),r=le(e,ks);return t===rt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?xs(r,F(t,2)):[]}),Xh=Y(function(e){var t=rt(e),r=le(e,ks);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?xs(r,n,t):[]});function Jh(e,t){return e==null?"":Km.call(e,t)}function rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Qh(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?Pm(e,t,c):oo(e,qc,c,!0)}function jh(e,t){return e&&e.length?wu(e,V(t)):n}var ey=Y(fl);function fl(e,t){return e&&e.length&&t&&t.length?As(e,t):e}function ty(e,t,r){return e&&e.length&&t&&t.length?As(e,t,F(r,2)):e}function ny(e,t,r){return e&&e.length&&t&&t.length?As(e,t,n,r):e}var ry=Nt(function(e,t){var r=e==null?0:e.length,a=ms(e,t);return _u(e,le(t,function(c){return Ot(c,r)?+c:c}).sort(Ou)),a});function oy(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=F(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return _u(e,c),r}function Hs(e){return e==null?e:Jm.call(e)}function iy(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)),nt(e,t,r)):[]}function sy(e,t){return _o(e,t)}function ay(e,t,r){return bs(e,t,F(r,2))}function cy(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t);if(a<r&&pt(e[a],t))return a}return-1}function uy(e,t){return _o(e,t,!0)}function ly(e,t,r){return bs(e,t,F(r,2),!0)}function py(e,t){var r=e==null?0:e.length;if(r){var a=_o(e,t,!0)-1;if(pt(e[a],t))return a}return-1}function fy(e){return e&&e.length?Lu(e):[]}function dy(e,t){return e&&e.length?Lu(e,F(t,2)):[]}function gy(e){var t=e==null?0:e.length;return t?nt(e,1,t):[]}function my(e,t,r){return e&&e.length?(t=r||t===n?1:V(t),nt(e,0,t<0?0:t)):[]}function Ty(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:V(t),t=a-t,nt(e,t<0?0:t,a)):[]}function hy(e,t){return e&&e.length?bo(e,F(t,3),!1,!0):[]}function yy(e,t){return e&&e.length?bo(e,F(t,3)):[]}var xy=Y(function(e){return jt(Le(e,1,me,!0))}),Sy=Y(function(e){var t=rt(e);return me(t)&&(t=n),jt(Le(e,1,me,!0),F(t,2))}),vy=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,jt(Le(e,1,me,!0),n,t)});function wy(e){return e&&e.length?jt(e):[]}function Ay(e,t){return e&&e.length?jt(e,F(t,2)):[]}function Iy(e,t){return t=typeof t=="function"?t:n,e&&e.length?jt(e,n,t):[]}function Vs(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}),as(t,function(r){return le(e,os(r))})}function dl(e,t){if(!(e&&e.length))return[];var r=Vs(e);return t==null?r:le(r,function(a){return Ge(t,n,a)})}var _y=Y(function(e,t){return me(e)?Ar(e,t):[]}),by=Y(function(e){return Es(Kt(e,me))}),Ly=Y(function(e){var t=rt(e);return me(t)&&(t=n),Es(Kt(e,me),F(t,2))}),Ey=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,Es(Kt(e,me),n,t)}),ky=Y(Vs);function Cy(e,t){return Pu(e||[],t||[],wr)}function Py(e,t){return Pu(e||[],t||[],br)}var Ry=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,dl(e,r)});function gl(e){var t=l(e);return t.__chain__=!0,t}function Dy(e,t){return t(e),e}function Oo(e,t){return t(e)}var Ny=Nt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return ms(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Ot(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Oo,args:[c],thisArg:n}),new et(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function Oy(){return gl(this)}function My(){return new et(this.value(),this.__chain__)}function Fy(){this.__values__===n&&(this.__values__=El(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Uy(){return this}function By(e){for(var t,r=this;r instanceof So;){var a=al(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 Wy(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Oo,args:[Hs],thisArg:n}),new et(t,this.__chain__)}return this.thru(Hs)}function Gy(){return Cu(this.__wrapped__,this.__actions__)}var $y=Lo(function(e,t,r){re.call(e,r)?++e[r]:Rt(e,r,1)});function Hy(e,t,r){var a=$(e)?Hc:DT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}function Vy(e,t){var r=$(e)?Kt:du;return r(e,F(t,3))}var qy=Gu(cl),zy=Gu(ul);function Ky(e,t){return Le(Mo(e,t),1)}function Yy(e,t){return Le(Mo(e,t),cn)}function Zy(e,t,r){return r=r===n?1:V(r),Le(Mo(e,t),r)}function ml(e,t){var r=$(e)?Qe:Qt;return r(e,F(t,3))}function Tl(e,t){var r=$(e)?gm:fu;return r(e,F(t,3))}var Xy=Lo(function(e,t,r){re.call(e,r)?e[r].push(t):Rt(e,r,[t])});function Jy(e,t,r,a){e=Oe(e)?e:Vn(e),r=r&&!a?V(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Go(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Dn(e,t,r)>-1}var Qy=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Oe(e)?w(e.length):[];return Qt(e,function(T){p[++a]=c?Ge(t,T,r):Ir(T,t,r)}),p}),jy=Lo(function(e,t,r){Rt(e,r,t)});function Mo(e,t){var r=$(e)?le:xu;return r(e,F(t,3))}function ex(e,t,r,a){return e==null?[]:($(t)||(t=t==null?[]:[t]),r=a?n:r,$(r)||(r=r==null?[]:[r]),Au(e,t,r))}var tx=Lo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function nx(e,t,r){var a=$(e)?ns:Kc,c=arguments.length<3;return a(e,F(t,4),r,c,Qt)}function rx(e,t,r){var a=$(e)?mm:Kc,c=arguments.length<3;return a(e,F(t,4),r,c,fu)}function ox(e,t){var r=$(e)?Kt:du;return r(e,Bo(F(t,3)))}function ix(e){var t=$(e)?cu:JT;return t(e)}function sx(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=V(t);var a=$(e)?ET:QT;return a(e,t)}function ax(e){var t=$(e)?kT:eh;return t(e)}function cx(e){if(e==null)return 0;if(Oe(e))return Go(e)?On(e):e.length;var t=ke(e);return t==at||t==ct?e.size:vs(e).length}function ux(e,t,r){var a=$(e)?rs:th;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}var lx=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),Au(e,Le(t,1),[])}),Fo=Vm||function(){return ve.Date.now()};function px(e,t){if(typeof t!="function")throw new je(m);return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function hl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Dt(e,Et,n,n,n,n,t)}function yl(e,t){var r;if(typeof t!="function")throw new je(m);return e=V(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var qs=Y(function(e,t,r){var a=ge;if(r.length){var c=Zt(r,$n(qs));a|=Tt}return Dt(e,a,t,r,c)}),xl=Y(function(e,t,r){var a=ge|be;if(r.length){var c=Zt(r,$n(xl));a|=Tt}return Dt(t,a,e,r,c)});function Sl(e,t,r){t=r?n:t;var a=Dt(e,mt,n,n,n,n,n,t);return a.placeholder=Sl.placeholder,a}function vl(e,t,r){t=r?n:t;var a=Dt(e,En,n,n,n,n,n,t);return a.placeholder=vl.placeholder,a}function wl(e,t,r){var a,c,p,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new je(m);t=ot(t)||0,pe(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(ot(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function N(Te){var ft=a,Ut=c;return a=c=n,_=Te,T=e.apply(Ut,ft),T}function U(Te){return _=Te,h=kr(Z,t),b?N(Te):T}function K(Te){var ft=Te-x,Ut=Te-_,Gl=t-ft;return L?Ee(Gl,p-Ut):Gl}function B(Te){var ft=Te-x,Ut=Te-_;return x===n||ft>=t||ft<0||L&&Ut>=p}function Z(){var Te=Fo();if(B(Te))return J(Te);h=kr(Z,K(Te))}function J(Te){return h=n,C&&a?N(Te):(a=c=n,T)}function qe(){h!==n&&Ru(h),_=0,a=x=c=h=n}function De(){return h===n?T:J(Fo())}function ze(){var Te=Fo(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return Ru(h),h=kr(Z,t),N(x)}return h===n&&(h=kr(Z,t)),T}return ze.cancel=qe,ze.flush=De,ze}var fx=Y(function(e,t){return pu(e,1,t)}),dx=Y(function(e,t,r){return pu(e,ot(t)||0,r)});function gx(e){return Dt(e,Mi)}function Uo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new je(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(Uo.Cache||Pt),r}Uo.Cache=Pt;function Bo(e){if(typeof e!="function")throw new je(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 mx(e){return yl(2,e)}var Tx=nh(function(e,t){t=t.length==1&&$(t[0])?le(t[0],$e(F())):le(Le(t,1),$e(F()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),zs=Y(function(e,t){var r=Zt(t,$n(zs));return Dt(e,Tt,n,t,r)}),Al=Y(function(e,t){var r=Zt(t,$n(Al));return Dt(e,kn,n,t,r)}),hx=Nt(function(e,t){return Dt(e,cr,n,n,n,t)});function yx(e,t){if(typeof e!="function")throw new je(m);return t=t===n?t:V(t),Y(e,t)}function xx(e,t){if(typeof e!="function")throw new je(m);return t=t==null?0:Se(V(t),0),Y(function(r){var a=r[t],c=tn(r,0,t);return a&&Yt(c,a),Ge(e,this,c)})}function Sx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new je(m);return pe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),wl(e,t,{leading:a,maxWait:t,trailing:c})}function vx(e){return hl(e,1)}function wx(e,t){return zs(Cs(t),e)}function Ax(){if(!arguments.length)return[];var e=arguments[0];return $(e)?e:[e]}function Ix(e){return tt(e,M)}function _x(e,t){return t=typeof t=="function"?t:n,tt(e,M,t)}function bx(e){return tt(e,R|M)}function Lx(e,t){return t=typeof t=="function"?t:n,tt(e,R|M,t)}function Ex(e,t){return t==null||lu(e,t,we(t))}function pt(e,t){return e===t||e!==e&&t!==t}var kx=Po(ys),Cx=Po(function(e,t){return e>=t}),hn=Tu(function(){return arguments}())?Tu:function(e){return fe(e)&&re.call(e,"callee")&&!nu.call(e,"callee")},$=w.isArray,Px=Fc?$e(Fc):BT;function Oe(e){return e!=null&&Wo(e.length)&&!Mt(e)}function me(e){return fe(e)&&Oe(e)}function Rx(e){return e===!0||e===!1||fe(e)&&Pe(e)==ur}var nn=zm||ra,Dx=Uc?$e(Uc):WT;function Nx(e){return fe(e)&&e.nodeType===1&&!Cr(e)}function Ox(e){if(e==null)return!0;if(Oe(e)&&($(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||Hn(e)||hn(e)))return!e.length;var t=ke(e);if(t==at||t==ct)return!e.size;if(Er(e))return!vs(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Mx(e,t){return _r(e,t)}function Fx(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?_r(e,t,n,r):!!a}function Ks(e){if(!fe(e))return!1;var t=Pe(e);return t==Jr||t==sg||typeof e.message=="string"&&typeof e.name=="string"&&!Cr(e)}function Ux(e){return typeof e=="number"&&ou(e)}function Mt(e){if(!pe(e))return!1;var t=Pe(e);return t==Qr||t==pc||t==ig||t==cg}function Il(e){return typeof e=="number"&&e==V(e)}function Wo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zt}function pe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var _l=Bc?$e(Bc):$T;function Bx(e,t){return e===t||Ss(e,t,Fs(t))}function Wx(e,t,r){return r=typeof r=="function"?r:n,Ss(e,t,Fs(t),r)}function Gx(e){return bl(e)&&e!=+e}function $x(e){if(_h(e))throw new G(u);return hu(e)}function Hx(e){return e===null}function Vx(e){return e==null}function bl(e){return typeof e=="number"||fe(e)&&Pe(e)==pr}function Cr(e){if(!fe(e)||Pe(e)!=kt)return!1;var t=fo(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&co.call(r)==Wm}var Ys=Wc?$e(Wc):HT;function qx(e){return Il(e)&&e>=-zt&&e<=zt}var Ll=Gc?$e(Gc):VT;function Go(e){return typeof e=="string"||!$(e)&&fe(e)&&Pe(e)==dr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==jr}var Hn=$c?$e($c):qT;function zx(e){return e===n}function Kx(e){return fe(e)&&ke(e)==gr}function Yx(e){return fe(e)&&Pe(e)==lg}var Zx=Po(ws),Xx=Po(function(e,t){return e<=t});function El(e){if(!e)return[];if(Oe(e))return Go(e)?ut(e):Ne(e);if(hr&&e[hr])return Em(e[hr]());var t=ke(e),r=t==at?us:t==ct?io:Vn;return r(e)}function Ft(e){if(!e)return e===0?e:0;if(e=ot(e),e===cn||e===-cn){var t=e<0?-1:1;return t*tg}return e===e?e:0}function V(e){var t=Ft(e),r=t%1;return t===t?r?t-r:t:0}function kl(e){return e?dn(V(e),0,ht):0}function ot(e){if(typeof e=="number")return e;if(Ve(e))return Zr;if(pe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Yc(e);var r=Pg.test(e);return r||Dg.test(e)?pm(e.slice(2),r?2:8):Cg.test(e)?Zr:+e}function Cl(e){return xt(e,Me(e))}function Jx(e){return e?dn(V(e),-zt,zt):e===0?e:0}function ne(e){return e==null?"":He(e)}var Qx=Wn(function(e,t){if(Er(t)||Oe(t)){xt(t,we(t),e);return}for(var r in t)re.call(t,r)&&wr(e,r,t[r])}),Pl=Wn(function(e,t){xt(t,Me(t),e)}),$o=Wn(function(e,t,r,a){xt(t,Me(t),e,a)}),jx=Wn(function(e,t,r,a){xt(t,we(t),e,a)}),eS=Nt(ms);function tS(e,t){var r=Bn(e);return t==null?r:uu(r,t)}var nS=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Me(p),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||pt(b,Mn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),rS=Y(function(e){return e.push(n,Yu),Ge(Rl,n,e)});function oS(e,t){return Vc(e,F(t,3),yt)}function iS(e,t){return Vc(e,F(t,3),hs)}function sS(e,t){return e==null?e:Ts(e,F(t,3),Me)}function aS(e,t){return e==null?e:gu(e,F(t,3),Me)}function cS(e,t){return e&&yt(e,F(t,3))}function uS(e,t){return e&&hs(e,F(t,3))}function lS(e){return e==null?[]:Ao(e,we(e))}function pS(e){return e==null?[]:Ao(e,Me(e))}function Zs(e,t,r){var a=e==null?n:gn(e,t);return a===n?r:a}function fS(e,t){return e!=null&&Ju(e,t,OT)}function Xs(e,t){return e!=null&&Ju(e,t,MT)}var dS=Hu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=uo.call(t)),e[t]=r},Qs(Fe)),gS=Hu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=uo.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},F),mS=Y(Ir);function we(e){return Oe(e)?au(e):vs(e)}function Me(e){return Oe(e)?au(e,!0):zT(e)}function TS(e,t){var r={};return t=F(t,3),yt(e,function(a,c,p){Rt(r,t(a,c,p),a)}),r}function hS(e,t){var r={};return t=F(t,3),yt(e,function(a,c,p){Rt(r,c,t(a,c,p))}),r}var yS=Wn(function(e,t,r){Io(e,t,r)}),Rl=Wn(function(e,t,r,a){Io(e,t,r,a)}),xS=Nt(function(e,t){var r={};if(e==null)return r;var a=!1;t=le(t,function(p){return p=en(p,e),a||(a=p.length>1),p}),xt(e,Os(e),r),a&&(r=tt(r,R|H|M,dh));for(var c=t.length;c--;)Ls(r,t[c]);return r});function SS(e,t){return Dl(e,Bo(F(t)))}var vS=Nt(function(e,t){return e==null?{}:YT(e,t)});function Dl(e,t){if(e==null)return{};var r=le(Os(e),function(a){return[a]});return t=F(t),Iu(e,r,function(a,c){return t(a,c[0])})}function wS(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[St(t[a])];p===n&&(a=c,p=r),e=Mt(p)?p.call(e):p}return e}function AS(e,t,r){return e==null?e:br(e,t,r)}function IS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:br(e,t,r,a)}var Nl=zu(we),Ol=zu(Me);function _S(e,t,r){var a=$(e),c=a||nn(e)||Hn(e);if(t=F(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:pe(e)?r=Mt(p)?Bn(fo(e)):{}:r={}}return(c?Qe:yt)(e,function(T,h,x){return t(r,T,h,x)}),r}function bS(e,t){return e==null?!0:Ls(e,t)}function LS(e,t,r){return e==null?e:ku(e,t,Cs(r))}function ES(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:ku(e,t,Cs(r),a)}function Vn(e){return e==null?[]:cs(e,we(e))}function kS(e){return e==null?[]:cs(e,Me(e))}function CS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=ot(r),r=r===r?r:0),t!==n&&(t=ot(t),t=t===t?t:0),dn(ot(e),t,r)}function PS(e,t,r){return t=Ft(t),r===n?(r=t,t=0):r=Ft(r),e=ot(e),FT(e,t,r)}function RS(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=Ft(e),t===n?(t=e,e=0):t=Ft(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=iu();return Ee(e+c*(t-e+lm("1e-"+((c+"").length-1))),t)}return Is(e,t)}var DS=Gn(function(e,t,r){return t=t.toLowerCase(),e+(r?Ml(t):t)});function Ml(e){return Js(ne(e).toLowerCase())}function Fl(e){return e=ne(e),e&&e.replace(Og,Am).replace(em,"")}function NS(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 OS(e){return e=ne(e),e&&mg.test(e)?e.replace(gc,Im):e}function MS(e){return e=ne(e),e&&vg.test(e)?e.replace(zi,"\\$&"):e}var FS=Gn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),US=Gn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),BS=Wu("toLowerCase");function WS(e,t,r){e=ne(e),t=V(t);var a=t?On(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return Co(ho(c),r)+e+Co(To(c),r)}function GS(e,t,r){e=ne(e),t=V(t);var a=t?On(e):0;return t&&a<t?e+Co(t-a,r):e}function $S(e,t,r){e=ne(e),t=V(t);var a=t?On(e):0;return t&&a<t?Co(t-a,r)+e:e}function HS(e,t,r){return r||t==null?t=0:t&&(t=+t),Xm(ne(e).replace(Ki,""),t||0)}function VS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=V(t),_s(ne(e),t)}function qS(){var e=arguments,t=ne(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var zS=Gn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function KS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?ht:r>>>0,r?(e=ne(e),e&&(typeof t=="string"||t!=null&&!Ys(t))&&(t=He(t),!t&&Nn(e))?tn(ut(e),0,r):e.split(t,r)):[]}var YS=Gn(function(e,t,r){return e+(r?" ":"")+Js(t)});function ZS(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 XS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=ne(e),t=$o({},t,a,Ku);var c=$o({},t.imports,a.imports,Ku),p=we(c),T=cs(c,p),h,x,_=0,b=t.interpolate||eo,L="__p += '",C=ls((t.escape||eo).source+"|"+b.source+"|"+(b===mc?kg:eo).source+"|"+(t.evaluate||eo).source+"|$","g"),N="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++im+"]")+`
4
+ `;e.replace(C,function(B,Z,J,qe,De,ze){return J||(J=qe),L+=e.slice(_,ze).replace(Mg,_m),Z&&(h=!0,L+=`' +
5
5
  __e(`+Z+`) +
6
6
  '`),De&&(x=!0,L+=`';
7
7
  `+De+`;
@@ -11,13 +11,13 @@ __p += '`),J&&(L+=`' +
11
11
  `;var U=re.call(t,"variable")&&t.variable;if(!U)L=`with (obj) {
12
12
  `+L+`
13
13
  }
14
- `;else if(_g.test(U))throw new G(v);L=(x?L.replace(ug,""):L).replace(lg,"$1").replace(pg,"$1;"),L="function("+(U||"obj")+`) {
14
+ `;else if(Lg.test(U))throw new G(v);L=(x?L.replace(pg,""):L).replace(fg,"$1").replace(dg,"$1;"),L="function("+(U||"obj")+`) {
15
15
  `+(U?"":`obj || (obj = {});
16
16
  `)+"var __t, __p = ''"+(h?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
19
  `)+L+`return __p
20
- }`;var K=Bl(function(){return ee(p,N+"return "+L).apply(n,T)});if(K.source=L,Ks(K))throw K;return K}function ZS(e){return ne(e).toLowerCase()}function XS(e){return ne(e).toUpperCase()}function JS(e,t,r){if(e=ne(e),e&&(r||t===n))return Yc(e);if(!e||!(t=He(t)))return e;var a=ut(e),c=ut(t),p=Zc(a,c),T=Xc(a,c)+1;return tn(a,p,T).join("")}function QS(e,t,r){if(e=ne(e),e&&(r||t===n))return e.slice(0,Qc(e)+1);if(!e||!(t=He(t)))return e;var a=ut(e),c=Xc(a,ut(t))+1;return tn(a,0,c).join("")}function jS(e,t,r){if(e=ne(e),e&&(r||t===n))return e.replace(Ki,"");if(!e||!(t=He(t)))return e;var a=ut(e),c=Zc(a,ut(t));return tn(a,c).join("")}function ev(e,t){var r=Kd,a=Yd;if(pe(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(Nn(e)){var T=ut(e);p=T.length}if(r>=p)return e;var h=r-On(a);if(h<1)return a;var x=T?tn(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),Ys(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=ls(c.source,ne(Tc.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function tv(e){return e=ne(e),e&&fg.test(e)?e.replace(dc,Cm):e}var nv=Gn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Js=Wu("toUpperCase");function Ul(e,t,r){return e=ne(e),t=r?n:t,t===n?_m(e)?Dm(e):Tm(e):e.match(t)||[]}var Bl=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Ks(r)?r:new G(r)}}),rv=Nt(function(e,t){return Qe(t,function(r){r=St(r),Rt(e,r,qs(e[r],e))}),e});function ov(e){var t=e==null?0:e.length,r=F();return e=t?le(e,function(a){if(typeof a[1]!="function")throw new je(m);return[r(a[0]),a[1]]}):[],Y(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 iv(e){return CT(tt(e,R))}function Qs(e){return function(){return e}}function sv(e,t){return e==null||e!==e?t:e}var av=$u(),cv=$u(!0);function Fe(e){return e}function js(e){return yu(typeof e=="function"?e:tt(e,R))}function uv(e){return Su(tt(e,R))}function lv(e,t){return vu(e,tt(t,R))}var pv=Y(function(e,t){return function(r){return Ir(r,e,t)}}),fv=Y(function(e,t){return function(r){return Ir(e,r,t)}});function ea(e,t,r){var a=we(t),c=Ao(t,a);r==null&&!(pe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=Ao(t,we(t)));var p=!(pe(r)&&"chain"in r)||!!r.chain,T=Mt(e);return Qe(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Ne(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Yt([this.value()],arguments))})}),e}function dv(){return ve._===this&&(ve._=Bm),this}function ta(){}function gv(e){return e=V(e),Y(function(t){return wu(t,e)})}var mv=Rs(le),Tv=Rs(Hc),hv=Rs(rs);function Wl(e){return Bs(e)?os(St(e)):KT(e)}function yv(e){return function(t){return e==null?n:gn(e,t)}}var xv=Vu(),Sv=Vu(!0);function na(){return[]}function ra(){return!1}function vv(){return{}}function wv(){return""}function Av(){return!0}function Iv(e,t){if(e=V(e),e<1||e>zt)return[];var r=ht,a=Ee(e,ht);t=F(t),e-=ht;for(var c=as(a,t);++r<e;)t(r);return c}function _v(e){return $(e)?le(e,St):Ve(e)?[e]:Ne(sl(ne(e)))}function bv(e){var t=++Fm;return ne(e)+t}var Lv=ko(function(e,t){return e+t},0),Ev=Ds("ceil"),kv=ko(function(e,t){return e/t},1),Cv=Ds("floor");function Pv(e){return e&&e.length?wo(e,Fe,ys):n}function Rv(e,t){return e&&e.length?wo(e,F(t,2),ys):n}function Dv(e){return zc(e,Fe)}function Nv(e,t){return zc(e,F(t,2))}function Ov(e){return e&&e.length?wo(e,Fe,ws):n}function Mv(e,t){return e&&e.length?wo(e,F(t,2),ws):n}var Fv=ko(function(e,t){return e*t},1),Uv=Ds("round"),Bv=ko(function(e,t){return e-t},0);function Wv(e){return e&&e.length?ss(e,Fe):0}function Gv(e,t){return e&&e.length?ss(e,F(t,2)):0}return l.after=ux,l.ary=hl,l.assign=Xx,l.assignIn=Pl,l.assignInWith=$o,l.assignWith=Jx,l.at=Qx,l.before=yl,l.bind=qs,l.bindAll=rv,l.bindKey=xl,l.castArray=vx,l.chain=gl,l.chunk=Ch,l.compact=Ph,l.concat=Rh,l.cond=ov,l.conforms=iv,l.constant=Qs,l.countBy=Wy,l.create=jx,l.curry=Sl,l.curryRight=vl,l.debounce=wl,l.defaults=eS,l.defaultsDeep=tS,l.defer=lx,l.delay=px,l.difference=Dh,l.differenceBy=Nh,l.differenceWith=Oh,l.drop=Mh,l.dropRight=Fh,l.dropRightWhile=Uh,l.dropWhile=Bh,l.fill=Wh,l.filter=$y,l.flatMap=qy,l.flatMapDeep=zy,l.flatMapDepth=Ky,l.flatten=ll,l.flattenDeep=Gh,l.flattenDepth=$h,l.flip=fx,l.flow=av,l.flowRight=cv,l.fromPairs=Hh,l.functions=cS,l.functionsIn=uS,l.groupBy=Yy,l.initial=qh,l.intersection=zh,l.intersectionBy=Kh,l.intersectionWith=Yh,l.invert=pS,l.invertBy=fS,l.invokeMap=Xy,l.iteratee=js,l.keyBy=Jy,l.keys=we,l.keysIn=Me,l.map=Mo,l.mapKeys=gS,l.mapValues=mS,l.matches=uv,l.matchesProperty=lv,l.memoize=Uo,l.merge=TS,l.mergeWith=Rl,l.method=pv,l.methodOf=fv,l.mixin=ea,l.negate=Bo,l.nthArg=gv,l.omit=hS,l.omitBy=yS,l.once=dx,l.orderBy=Qy,l.over=mv,l.overArgs=gx,l.overEvery=Tv,l.overSome=hv,l.partial=zs,l.partialRight=Al,l.partition=jy,l.pick=xS,l.pickBy=Dl,l.property=Wl,l.propertyOf=yv,l.pull=Qh,l.pullAll=fl,l.pullAllBy=jh,l.pullAllWith=ey,l.pullAt=ty,l.range=xv,l.rangeRight=Sv,l.rearg=mx,l.reject=nx,l.remove=ny,l.rest=Tx,l.reverse=Hs,l.sampleSize=ox,l.set=vS,l.setWith=wS,l.shuffle=ix,l.slice=ry,l.sortBy=cx,l.sortedUniq=ly,l.sortedUniqBy=py,l.split=qS,l.spread=hx,l.tail=fy,l.take=dy,l.takeRight=gy,l.takeRightWhile=my,l.takeWhile=Ty,l.tap=Py,l.throttle=yx,l.thru=Oo,l.toArray=El,l.toPairs=Nl,l.toPairsIn=Ol,l.toPath=_v,l.toPlainObject=Cl,l.transform=AS,l.unary=xx,l.union=hy,l.unionBy=yy,l.unionWith=xy,l.uniq=Sy,l.uniqBy=vy,l.uniqWith=wy,l.unset=IS,l.unzip=Vs,l.unzipWith=dl,l.update=_S,l.updateWith=bS,l.values=Vn,l.valuesIn=LS,l.without=Ay,l.words=Ul,l.wrap=Sx,l.xor=Iy,l.xorBy=_y,l.xorWith=by,l.zip=Ly,l.zipObject=Ey,l.zipObjectDeep=ky,l.zipWith=Cy,l.entries=Nl,l.entriesIn=Ol,l.extend=Pl,l.extendWith=$o,ea(l,l),l.add=Lv,l.attempt=Bl,l.camelCase=PS,l.capitalize=Ml,l.ceil=Ev,l.clamp=ES,l.clone=wx,l.cloneDeep=Ix,l.cloneDeepWith=_x,l.cloneWith=Ax,l.conformsTo=bx,l.deburr=Fl,l.defaultTo=sv,l.divide=kv,l.endsWith=RS,l.eq=pt,l.escape=DS,l.escapeRegExp=NS,l.every=Gy,l.find=Hy,l.findIndex=cl,l.findKey=nS,l.findLast=Vy,l.findLastIndex=ul,l.findLastKey=rS,l.floor=Cv,l.forEach=ml,l.forEachRight=Tl,l.forIn=oS,l.forInRight=iS,l.forOwn=sS,l.forOwnRight=aS,l.get=Zs,l.gt=Lx,l.gte=Ex,l.has=lS,l.hasIn=Xs,l.head=pl,l.identity=Fe,l.includes=Zy,l.indexOf=Vh,l.inRange=kS,l.invoke=dS,l.isArguments=hn,l.isArray=$,l.isArrayBuffer=kx,l.isArrayLike=Oe,l.isArrayLikeObject=me,l.isBoolean=Cx,l.isBuffer=nn,l.isDate=Px,l.isElement=Rx,l.isEmpty=Dx,l.isEqual=Nx,l.isEqualWith=Ox,l.isError=Ks,l.isFinite=Mx,l.isFunction=Mt,l.isInteger=Il,l.isLength=Wo,l.isMap=_l,l.isMatch=Fx,l.isMatchWith=Ux,l.isNaN=Bx,l.isNative=Wx,l.isNil=$x,l.isNull=Gx,l.isNumber=bl,l.isObject=pe,l.isObjectLike=fe,l.isPlainObject=Cr,l.isRegExp=Ys,l.isSafeInteger=Hx,l.isSet=Ll,l.isString=Go,l.isSymbol=Ve,l.isTypedArray=Hn,l.isUndefined=Vx,l.isWeakMap=qx,l.isWeakSet=zx,l.join=Zh,l.kebabCase=OS,l.last=rt,l.lastIndexOf=Xh,l.lowerCase=MS,l.lowerFirst=FS,l.lt=Kx,l.lte=Yx,l.max=Pv,l.maxBy=Rv,l.mean=Dv,l.meanBy=Nv,l.min=Ov,l.minBy=Mv,l.stubArray=na,l.stubFalse=ra,l.stubObject=vv,l.stubString=wv,l.stubTrue=Av,l.multiply=Fv,l.nth=Jh,l.noConflict=dv,l.noop=ta,l.now=Fo,l.pad=US,l.padEnd=BS,l.padStart=WS,l.parseInt=GS,l.random=CS,l.reduce=ex,l.reduceRight=tx,l.repeat=$S,l.replace=HS,l.result=SS,l.round=Uv,l.runInContext=y,l.sample=rx,l.size=sx,l.snakeCase=VS,l.some=ax,l.sortedIndex=oy,l.sortedIndexBy=iy,l.sortedIndexOf=sy,l.sortedLastIndex=ay,l.sortedLastIndexBy=cy,l.sortedLastIndexOf=uy,l.startCase=zS,l.startsWith=KS,l.subtract=Bv,l.sum=Wv,l.sumBy=Gv,l.template=YS,l.times=Iv,l.toFinite=Ft,l.toInteger=V,l.toLength=kl,l.toLower=ZS,l.toNumber=ot,l.toSafeInteger=Zx,l.toString=ne,l.toUpper=XS,l.trim=JS,l.trimEnd=QS,l.trimStart=jS,l.truncate=ev,l.unescape=tv,l.uniqueId=bv,l.upperCase=nv,l.upperFirst=Js,l.each=ml,l.eachRight=Tl,l.first=pl,ea(l,function(){var e={};return yt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Qe(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:Se(V(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,ht),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Qe(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==lc||r==Qd;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:F(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Qe(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Qe(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Fe)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return Ir(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Bo(F(e)))},X.prototype.slice=function(e,t){e=V(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=V(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(ht)},yt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,_=h[0],b=x||$(T),L=function(Z){var J=c.apply(l,Yt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,N=!!this.__actions__.length,U=p&&!C,K=x&&!N;if(!p&&b){T=K?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Oo,args:[L],thisArg:n}),new et(B,C)}return U&&K?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=so[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($(p)?p:[],c)}return this[r](function(T){return t.apply($(T)?T:[],c)})}}),yt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Un,a)||(Un[a]=[]),Un[a].push({name:t,func:r})}}),Un[Eo(n,be).name]=[{name:"wrapper",func:n}],X.prototype.clone=tT,X.prototype.reverse=nT,X.prototype.value=rT,l.prototype.at=Ry,l.prototype.chain=Dy,l.prototype.commit=Ny,l.prototype.next=Oy,l.prototype.plant=Fy,l.prototype.reverse=Uy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=By,l.prototype.first=l.prototype.head,hr&&(l.prototype[hr]=My),l},Xt=Nm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=Xt,define(function(){return Xt})):un?((un.exports=Xt)._=Xt,ji._=Xt):ve._=Xt}).call(sr)});var RI={};yn(RI,{useNativeAuthLogout:()=>PI});module.exports=Dr(RI);s();var ar=require("react"),zd=q(require("bignumber.js"));s();s();s();var Gf=require("react"),rr=require("react-redux");s();var Ha=require("@reduxjs/toolkit"),Bf=require("react-redux/lib/utils/Subscription");ae();s();var mf=q(require("lodash.throttle"));se();s();var gf=q(require("lodash.isequal")),xi=require("reselect");Ie();var D=(0,xi.createSelectorCreator)(xi.defaultMemoize,gf.default),Br=(n,o)=>n!=""&&Boolean(o);ae();Ea();Jn();Xn();var cw=[Jo],Si=!1,uw=(0,mf.default)(()=>{Mr(Or())},5e3),Tf=n=>o=>i=>{var E;if(cw.includes(i.type))return o(i);let u=n.getState(),m=bt.local.getItem(dt.loginExpiresAt);if(!Br((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 S=Date.now();return m-S<0&&!Si?setTimeout(()=>{Si=!0,n.dispatch(Hp())},1e3):(Si&&(Si=!1),uw()),o(i)};s();s();function vi(){return typeof sessionStorage!="undefined"}var Mf=vi()?(Lf(),Dr(bf)).default:(kf(),Dr(Ef)).default,Ff=vi()?(Pf(),Dr(Cf)).default:[],Uf=vi()?(Of(),Dr(Nf)).default:n=>n;wi();var j=(0,Ha.configureStore)({reducer:Mf,middleware:n=>n({serializableCheck:{ignoredActions:[...Ff,La.type,ba.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Tf)}),Wf=(0,Bf.createSubscription)(j),iE=Uf(j),sE=(0,Ha.configureStore)({reducer:_n});var Pw={store:j,subscription:Wf},Va=(0,Gf.createContext)(Pw),lE=(0,rr.createStoreHook)(Va),We=(0,rr.createDispatchHook)(Va),te=(0,rr.createSelectorHook)(Va);s();s();ae();var $t=n=>n.account,bn=D($t,n=>n.address),Gr=D($t,bn,(n,o)=>o in n.accounts?n.accounts[o]:jo),$f=D($t,Gr,(n,o)=>{let m=n,{accounts:i}=m,u=Vo(m,["accounts"]);return Q(O({},u),{account:o})}),Rw=D(Gr,n=>n.balance),Dw=D(Gr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),gE=D($t,n=>n.shard),Nw=D($t,n=>n.ledgerAccount),mE=D($t,n=>n.walletConnectAccount),TE=D($t,n=>n.isAccountLoading),hE=D($t,n=>n.accountLoadingError),Hf=D($t,n=>n.websocketEvent);s();var Ze=n=>n.loginInfo,vE=D(Ze,n=>n.loginMethod),$r=D(Ze,bn,(n,o)=>Br(n.loginMethod,o)),wE=D(Ze,n=>n.walletConnectLogin),AE=D(Ze,n=>n.ledgerLogin),Vf=D(Ze,n=>n.walletLogin),IE=D(Ze,n=>n.isLoginSessionInvalid),Ow=D(Ze,n=>n.tokenLogin),qf=D(Ze,n=>n.logoutRoute);s();var zf=n=>n.modals,LE=D(zf,n=>n.txSubmittedModal),Mw=D(zf,n=>n.notificationModal);s();var Ht=n=>n.networkConfig,Ai=D(Ht,n=>n.chainID),Fw=D(Ht,n=>n.network.walletConnectBridgeAddress),Uw=D(Ht,n=>n.network.walletConnectV2RelayAddress),Bw=D(Ht,n=>n.network.walletConnectV2ProjectId),Ww=D(Ht,n=>n.network.walletConnectV2Options),Kf=D(Ht,n=>n.network.walletConnectDeepLink),on=D(Ht,n=>n.network),Yf=D(on,n=>n.apiAddress),Zf=D(on,n=>n.explorerAddress),Xf=D(on,n=>n.egldLabel);s();var qa=n=>n.signedMessageInfo,RE=D(qa,n=>n.isSigning),DE=D(qa,n=>n.errorMessage),NE=D(qa,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var za=n=>n.toasts,FE=D(za,n=>n.customToasts),UE=D(za,n=>n.transactionToasts),BE=D(za,n=>n.failTransactionToast);s();ae();var Jf={errorMessage:Oa,successMessage:Ma,processingMessage:Fa},Gw=n=>n.transactionsInfo,$w=D(Gw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Jf);s();s();var Xe=require("@multiversx/sdk-core");se();s();function Ii(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function Ln(n){return Ii(n)?atob(n):n}function _i(n){var m,v,S;let{data:o}=n,i=Ii(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Nr,gasPrice:(v=n.gasPrice.valueOf())!=null?v:Xo,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((S=n.version)!=null?S:Lp)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var Vw=require("@multiversx/sdk-core/out");s();se();s();var jf=require("@multiversx/sdk-core");Ie();s();var Qf=require("@multiversx/sdk-core");function qw(n){try{let o=new Qf.Address(n);return Boolean(o.bech32())}catch(o){return!1}}function Hr(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&qw(n)}s();s();s();var Kw=require("@multiversx/sdk-core"),Yw=q(require("bignumber.js"));de();s();s();s();s();s();var Ka="blocks";s();s();s();s();Be();s();s();Be();s();s();s();var nA=q(require("bignumber.js"));se();s();var tA=require("@multiversx/sdk-core"),Ya=q(require("bignumber.js"));se();s();var jw=q(require("bignumber.js"));s();Ya.default.config({ROUNDING_MODE:Ya.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var rA=require("@multiversx/sdk-core");se();s();var Vr=require("@multiversx/sdk-core"),sA=require("@multiversx/sdk-network-providers");se();s();s();var oA=q(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();Be();var cA=["reDelegateRewards","claimRewards","unBond"],uA=["wrapEgld","unwrapEgld"],lA=["unStake"],pA=["unDelegate"];s();s();s();se();s();var mA=q(require("bignumber.js"));s();s();s();s();Be();s();var TA=q(require("bignumber.js"));s();s();s();var xA=q(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();Be();s();s();s();var SA=q(require("linkifyjs"));s();se();s();var vA=q(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();Be();s();Be();s();var wA=q(require("bignumber.js"));se();Be();s();Be();s();var cd=require("react");Ie();s();s();Be();s();s();var AA=require("@multiversx/sdk-core/out"),IA=q(require("bignumber.js"));Be();s();Ie();s();s();Ie();var xD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var ud=require("react");Ie();s();var bA=require("react");Be();var bD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];nr();var ki=n=>n.transactions,or=D(ki,n=>n.signedTransactions),LA=D(ki,n=>n.signTransactionsError),ld=D(ki,n=>n.signTransactionsCancelMessage),Ci=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),pd=D(or,Ci(jn)),fd=D(or,Ci(er)),dd=D(or,Ci(tr)),EA=D(or,Ci(Ba)),gd=D(ki,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>_i(i)))||[]})}),kA=D(or,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var md=require("react");s();ae();s();s();s();s();s();s();s();s();var Td=require("@multiversx/sdk-extension-provider"),hd=require("@multiversx/sdk-hw-provider"),yd=require("@multiversx/sdk-opera-provider"),xd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Sd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),vd=require("@multiversx/sdk-web-wallet-provider");se();de();var ir=n=>{switch(n==null?void 0:n.constructor){case vd.WalletProvider:return"wallet";case xd.WalletConnectProvider:return"walletconnect";case Sd.WalletConnectV2Provider:return"walletconnectv2";case hd.HWProvider:return"ledger";case Td.ExtensionProvider:return"extension";case yd.OperaProvider:return"opera";case Pi:return"";default:return"extra"}};var Vt=n=>`Unable to perform ${n}, Provider not initialized`,Pi=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Vt(`login with options: ${o}`))}logout(o){throw new Error(Vt(`logout with options: ${o}`))}getAddress(){throw new Error(Vt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Vt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Vt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Vt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Vt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Vt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Vt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Xa=new Pi;var CA=Xa;function gt(){return CA||Xa}ae();s();s();var PA=q(require("axios"));s();s();s();de();s();s();function wd(){let n=gt();return ir(n)}function qt(n){return wd()===n}function Ri(){let n=window==null?void 0:window.location.search,o=j.getState(),i=gt(),u=bn(o),m=$r(o),v=Vf(o);if(!i)throw"provider not initialized";return qt("ledger")&&m?new Promise(S=>{S(u)}):!qt("")&&!qt("wallet")&&!qt("extra")?i.getAddress():new Promise(S=>{if(v!=null){let k=new URLSearchParams(n),E=Object.fromEntries(k);Hr(E.address)&&S(E.address)}m&&S(u),S("")})}s();nr();s();s();s();var RA=q(require("axios"));s();var DA=q(require("axios"));s();var OA=q(require("axios"));s();s();var MA=q(require("axios"));s();var FA=q(require("axios"));s();ae();de();s();s();ae();s();s();var _d=require("@multiversx/sdk-core");s();Ce();Ie();s();nr();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var GA=q(require("axios")),$A=q(require("swr"));s();s();var bd=require("react");s();var VA=require("react"),qA=require("@multiversx/sdk-web-wallet-provider"),zA=q(require("qs"));se();ae();de();s();var Ed=require("react");Ca();s();var Rd=require("react"),tI=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var Pd=require("react"),JA=require("@multiversx/sdk-extension-provider");se();s();s();var Qa=()=>te($f);s();s();s();s();s();s();var qr=q(require("react"));var pU=(0,qr.createContext)({}),fU=j.getState();s();var Cd=q(require("react"));s();var ec=q(require("react")),YA=q(require("axios"));s();s();ae();s();s();var nI=q(require("axios"));ae();Ie();Fr();s();wn();ae();s();s();var fI=require("react");s();s();s();ae();s();s();var iI=q(require("bignumber.js"));se();ae();Ie();s();var oI=q(require("bignumber.js"));se();s();var sI=require("@multiversx/sdk-core"),aI=q(require("bignumber.js"));se();s();s();s();s();var Od=q(require("axios"));s();s();s();function Dd(n){return z(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Nd=(n,o,i,u=0)=>z(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield Dd(o.delay)),yield Nd(n,o,i,u+1)):null}}),nc=(n,o={retries:5,delay:500})=>(...i)=>z(void 0,null,function*(){return yield Nd(n,o,i)});var cI=4;var tW=nc((n,o)=>z(void 0,null,function*(){let{data:i}=yield Od.default.get(`${n}/${Ka}?from=${cI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Qo();s();s();var Fd=q(Md());var Ud=n=>{if(!n||!(0,Fd.isString)(n))return null;let o=n.split(".");if(o.length!==4)return console.error("Invalid loginToken. You may be trying to decode a nativeAuthToken. Try using decodeNativeAuthToken method instead"),null;try{let[i,u,m,v]=o,S=JSON.parse(Ln(v)),k=Ln(i);return{ttl:Number(m),extraInfo:S,origin:k,blockHash:u}}catch(i){return console.error(`Error trying to decode ${n}:`,i),null}};function uI(n){return Object.prototype.toString.call(n)==="[object String]"}var Bd=n=>{var i;if(!n||!uI(n))return null;let o=n.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[u,m,v]=o,S=Ln(u),k=Ln(m),E=Ud(k);if(!E)return{address:S,body:k,signature:v,blockHash:"",origin:"",ttl:0};let R=Q(O({},E),{address:S,body:k,signature:v});return(i=E.extraInfo)!=null&&i.timestamp||delete R.extraInfo,R}catch(u){return null}};var rc=n=>{let o=Bd(n);if(!o)return{isExpired:!1};let i=Zn(),{ttl:u,extraInfo:m}=o,v=m==null?void 0:m.timestamp;if(!v)return{isExpired:!1};let S=v+u,k=i>S,E=S-i;return{isExpired:k,expiresAt:S,secondsUntilExpires:E}};s();var Wd,fW={origin:typeof window!="undefined"?(Wd=window==null?void 0:window.location)==null?void 0:Wd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();nr();s();var Gd=require("react");s();s();var gI=require("react"),mI=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();function an(){return $r(j.getState())}An();s();var dI=require("react"),$d=require("@multiversx/sdk-core");ae();s();var TI=require("react"),hI=require("@multiversx/sdk-opera-provider");wn();Ce();de();An();s();var vI=require("react");wn();ae();s();s();s();xa();s();s();var yI=q(require("platform"));s();Ce();Ie();Fr();Jn();Xn();var xI=n=>{let o=bt.local.getItem(dt.logoutEvent),{data:i}=o?JSON.parse(o):{data:n};n===i&&(bt.local.setItem({key:dt.logoutEvent,data:n,expires:0}),bt.local.removeItem(dt.logoutEvent))};function Yr(n,o,i=!0){return z(this,null,function*(){let u=gt(),m=ir(u),v=an(),S=m==="wallet";if(i&&(u==null?void 0:u.relogin)!=null)return yield u.relogin();if(!v||!u){ic(n,o,!1);return}try{let k=yield Ri();xI(k)}catch(k){ic(n,o,!1),console.error("error fetching logout address",k)}S&&Yp(),j.dispatch(_e());try{let E=S&&!n?window==null?void 0:window.location.origin:n;S?setTimeout(()=>{u.logout({callbackUrl:E})}):(yield u.logout({callbackUrl:E}),ic(n,o,S))}catch(k){console.error("error logging out",k)}})}function ic(n,o,i){n&&!i&&(typeof o=="function"?o(n):si(n))}s();s();s();s();s();s();s();s();s();s();de();s();Fr();Jn();s();s();s();ae();s();s();var SI=q(require("axios"));s();s();var Hd=require("react"),AI=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();An();s();var wI=require("react");s();var sc=require("react"),_I=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();An();s();var ac=require("react"),bI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();An();s();s();var Vd=require("react");s();var kI=require("react");s();var cc=require("react"),EI=require("socket.io-client");ae();s();s();s();s();var qd=n=>n.dappModal,CI=D(qd,n=>n.visible),Oi=D(qd,n=>n.modal),q6=D(Oi,n=>n.showHeader),z6=D(Oi,n=>n.showFooter),K6=D(Oi,n=>n.headerText),Y6=D(Oi,n=>n.footerText);var PI=()=>{let{address:n}=Qa(),{tokenLogin:o}=te(Ze),i=te(qf),{isExpired:u,secondsUntilExpires:m,expiresAt:v}=rc(o==null?void 0:o.nativeAuthToken),S=(0,ar.useRef)(""),k=(0,ar.useRef)();return(0,ar.useEffect)(()=>{n&&u&&Yr(i)},[u,n,i]),(0,ar.useEffect)(()=>{let E=new zd.default(String(m)),R=`${n}_${v}`,H=S.current===R;if(!(m&&E.isGreaterThan(0))||H)return;S.current=R,clearTimeout(k.current);let ue=E.times(1e3);return k.current=setTimeout(()=>{Yr(i)},ue.toNumber()),()=>{clearTimeout(k.current)}},[v,n,i]),null};0&&(module.exports={useNativeAuthLogout});
20
+ }`;var K=Bl(function(){return ee(p,N+"return "+L).apply(n,T)});if(K.source=L,Ks(K))throw K;return K}function JS(e){return ne(e).toLowerCase()}function QS(e){return ne(e).toUpperCase()}function jS(e,t,r){if(e=ne(e),e&&(r||t===n))return Yc(e);if(!e||!(t=He(t)))return e;var a=ut(e),c=ut(t),p=Zc(a,c),T=Xc(a,c)+1;return tn(a,p,T).join("")}function ev(e,t,r){if(e=ne(e),e&&(r||t===n))return e.slice(0,Qc(e)+1);if(!e||!(t=He(t)))return e;var a=ut(e),c=Xc(a,ut(t))+1;return tn(a,0,c).join("")}function tv(e,t,r){if(e=ne(e),e&&(r||t===n))return e.replace(Ki,"");if(!e||!(t=He(t)))return e;var a=ut(e),c=Zc(a,ut(t));return tn(a,c).join("")}function nv(e,t){var r=Zd,a=Xd;if(pe(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(Nn(e)){var T=ut(e);p=T.length}if(r>=p)return e;var h=r-On(a);if(h<1)return a;var x=T?tn(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),Ys(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=ls(c.source,ne(Tc.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function rv(e){return e=ne(e),e&&gg.test(e)?e.replace(dc,Rm):e}var ov=Gn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Js=Wu("toUpperCase");function Ul(e,t,r){return e=ne(e),t=r?n:t,t===n?Lm(e)?Om(e):ym(e):e.match(t)||[]}var Bl=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Ks(r)?r:new G(r)}}),iv=Nt(function(e,t){return Qe(t,function(r){r=St(r),Rt(e,r,qs(e[r],e))}),e});function sv(e){var t=e==null?0:e.length,r=F();return e=t?le(e,function(a){if(typeof a[1]!="function")throw new je(m);return[r(a[0]),a[1]]}):[],Y(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 av(e){return RT(tt(e,R))}function Qs(e){return function(){return e}}function cv(e,t){return e==null||e!==e?t:e}var uv=$u(),lv=$u(!0);function Fe(e){return e}function js(e){return yu(typeof e=="function"?e:tt(e,R))}function pv(e){return Su(tt(e,R))}function fv(e,t){return vu(e,tt(t,R))}var dv=Y(function(e,t){return function(r){return Ir(r,e,t)}}),gv=Y(function(e,t){return function(r){return Ir(e,r,t)}});function ea(e,t,r){var a=we(t),c=Ao(t,a);r==null&&!(pe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=Ao(t,we(t)));var p=!(pe(r)&&"chain"in r)||!!r.chain,T=Mt(e);return Qe(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Ne(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Yt([this.value()],arguments))})}),e}function mv(){return ve._===this&&(ve._=Gm),this}function ta(){}function Tv(e){return e=V(e),Y(function(t){return wu(t,e)})}var hv=Rs(le),yv=Rs(Hc),xv=Rs(rs);function Wl(e){return Bs(e)?os(St(e)):ZT(e)}function Sv(e){return function(t){return e==null?n:gn(e,t)}}var vv=Vu(),wv=Vu(!0);function na(){return[]}function ra(){return!1}function Av(){return{}}function Iv(){return""}function _v(){return!0}function bv(e,t){if(e=V(e),e<1||e>zt)return[];var r=ht,a=Ee(e,ht);t=F(t),e-=ht;for(var c=as(a,t);++r<e;)t(r);return c}function Lv(e){return $(e)?le(e,St):Ve(e)?[e]:Ne(sl(ne(e)))}function Ev(e){var t=++Bm;return ne(e)+t}var kv=ko(function(e,t){return e+t},0),Cv=Ds("ceil"),Pv=ko(function(e,t){return e/t},1),Rv=Ds("floor");function Dv(e){return e&&e.length?wo(e,Fe,ys):n}function Nv(e,t){return e&&e.length?wo(e,F(t,2),ys):n}function Ov(e){return zc(e,Fe)}function Mv(e,t){return zc(e,F(t,2))}function Fv(e){return e&&e.length?wo(e,Fe,ws):n}function Uv(e,t){return e&&e.length?wo(e,F(t,2),ws):n}var Bv=ko(function(e,t){return e*t},1),Wv=Ds("round"),Gv=ko(function(e,t){return e-t},0);function $v(e){return e&&e.length?ss(e,Fe):0}function Hv(e,t){return e&&e.length?ss(e,F(t,2)):0}return l.after=px,l.ary=hl,l.assign=Qx,l.assignIn=Pl,l.assignInWith=$o,l.assignWith=jx,l.at=eS,l.before=yl,l.bind=qs,l.bindAll=iv,l.bindKey=xl,l.castArray=Ax,l.chain=gl,l.chunk=Rh,l.compact=Dh,l.concat=Nh,l.cond=sv,l.conforms=av,l.constant=Qs,l.countBy=$y,l.create=tS,l.curry=Sl,l.curryRight=vl,l.debounce=wl,l.defaults=nS,l.defaultsDeep=rS,l.defer=fx,l.delay=dx,l.difference=Oh,l.differenceBy=Mh,l.differenceWith=Fh,l.drop=Uh,l.dropRight=Bh,l.dropRightWhile=Wh,l.dropWhile=Gh,l.fill=$h,l.filter=Vy,l.flatMap=Ky,l.flatMapDeep=Yy,l.flatMapDepth=Zy,l.flatten=ll,l.flattenDeep=Hh,l.flattenDepth=Vh,l.flip=gx,l.flow=uv,l.flowRight=lv,l.fromPairs=qh,l.functions=lS,l.functionsIn=pS,l.groupBy=Xy,l.initial=Kh,l.intersection=Yh,l.intersectionBy=Zh,l.intersectionWith=Xh,l.invert=dS,l.invertBy=gS,l.invokeMap=Qy,l.iteratee=js,l.keyBy=jy,l.keys=we,l.keysIn=Me,l.map=Mo,l.mapKeys=TS,l.mapValues=hS,l.matches=pv,l.matchesProperty=fv,l.memoize=Uo,l.merge=yS,l.mergeWith=Rl,l.method=dv,l.methodOf=gv,l.mixin=ea,l.negate=Bo,l.nthArg=Tv,l.omit=xS,l.omitBy=SS,l.once=mx,l.orderBy=ex,l.over=hv,l.overArgs=Tx,l.overEvery=yv,l.overSome=xv,l.partial=zs,l.partialRight=Al,l.partition=tx,l.pick=vS,l.pickBy=Dl,l.property=Wl,l.propertyOf=Sv,l.pull=ey,l.pullAll=fl,l.pullAllBy=ty,l.pullAllWith=ny,l.pullAt=ry,l.range=vv,l.rangeRight=wv,l.rearg=hx,l.reject=ox,l.remove=oy,l.rest=yx,l.reverse=Hs,l.sampleSize=sx,l.set=AS,l.setWith=IS,l.shuffle=ax,l.slice=iy,l.sortBy=lx,l.sortedUniq=fy,l.sortedUniqBy=dy,l.split=KS,l.spread=xx,l.tail=gy,l.take=my,l.takeRight=Ty,l.takeRightWhile=hy,l.takeWhile=yy,l.tap=Dy,l.throttle=Sx,l.thru=Oo,l.toArray=El,l.toPairs=Nl,l.toPairsIn=Ol,l.toPath=Lv,l.toPlainObject=Cl,l.transform=_S,l.unary=vx,l.union=xy,l.unionBy=Sy,l.unionWith=vy,l.uniq=wy,l.uniqBy=Ay,l.uniqWith=Iy,l.unset=bS,l.unzip=Vs,l.unzipWith=dl,l.update=LS,l.updateWith=ES,l.values=Vn,l.valuesIn=kS,l.without=_y,l.words=Ul,l.wrap=wx,l.xor=by,l.xorBy=Ly,l.xorWith=Ey,l.zip=ky,l.zipObject=Cy,l.zipObjectDeep=Py,l.zipWith=Ry,l.entries=Nl,l.entriesIn=Ol,l.extend=Pl,l.extendWith=$o,ea(l,l),l.add=kv,l.attempt=Bl,l.camelCase=DS,l.capitalize=Ml,l.ceil=Cv,l.clamp=CS,l.clone=Ix,l.cloneDeep=bx,l.cloneDeepWith=Lx,l.cloneWith=_x,l.conformsTo=Ex,l.deburr=Fl,l.defaultTo=cv,l.divide=Pv,l.endsWith=NS,l.eq=pt,l.escape=OS,l.escapeRegExp=MS,l.every=Hy,l.find=qy,l.findIndex=cl,l.findKey=oS,l.findLast=zy,l.findLastIndex=ul,l.findLastKey=iS,l.floor=Rv,l.forEach=ml,l.forEachRight=Tl,l.forIn=sS,l.forInRight=aS,l.forOwn=cS,l.forOwnRight=uS,l.get=Zs,l.gt=kx,l.gte=Cx,l.has=fS,l.hasIn=Xs,l.head=pl,l.identity=Fe,l.includes=Jy,l.indexOf=zh,l.inRange=PS,l.invoke=mS,l.isArguments=hn,l.isArray=$,l.isArrayBuffer=Px,l.isArrayLike=Oe,l.isArrayLikeObject=me,l.isBoolean=Rx,l.isBuffer=nn,l.isDate=Dx,l.isElement=Nx,l.isEmpty=Ox,l.isEqual=Mx,l.isEqualWith=Fx,l.isError=Ks,l.isFinite=Ux,l.isFunction=Mt,l.isInteger=Il,l.isLength=Wo,l.isMap=_l,l.isMatch=Bx,l.isMatchWith=Wx,l.isNaN=Gx,l.isNative=$x,l.isNil=Vx,l.isNull=Hx,l.isNumber=bl,l.isObject=pe,l.isObjectLike=fe,l.isPlainObject=Cr,l.isRegExp=Ys,l.isSafeInteger=qx,l.isSet=Ll,l.isString=Go,l.isSymbol=Ve,l.isTypedArray=Hn,l.isUndefined=zx,l.isWeakMap=Kx,l.isWeakSet=Yx,l.join=Jh,l.kebabCase=FS,l.last=rt,l.lastIndexOf=Qh,l.lowerCase=US,l.lowerFirst=BS,l.lt=Zx,l.lte=Xx,l.max=Dv,l.maxBy=Nv,l.mean=Ov,l.meanBy=Mv,l.min=Fv,l.minBy=Uv,l.stubArray=na,l.stubFalse=ra,l.stubObject=Av,l.stubString=Iv,l.stubTrue=_v,l.multiply=Bv,l.nth=jh,l.noConflict=mv,l.noop=ta,l.now=Fo,l.pad=WS,l.padEnd=GS,l.padStart=$S,l.parseInt=HS,l.random=RS,l.reduce=nx,l.reduceRight=rx,l.repeat=VS,l.replace=qS,l.result=wS,l.round=Wv,l.runInContext=y,l.sample=ix,l.size=cx,l.snakeCase=zS,l.some=ux,l.sortedIndex=sy,l.sortedIndexBy=ay,l.sortedIndexOf=cy,l.sortedLastIndex=uy,l.sortedLastIndexBy=ly,l.sortedLastIndexOf=py,l.startCase=YS,l.startsWith=ZS,l.subtract=Gv,l.sum=$v,l.sumBy=Hv,l.template=XS,l.times=bv,l.toFinite=Ft,l.toInteger=V,l.toLength=kl,l.toLower=JS,l.toNumber=ot,l.toSafeInteger=Jx,l.toString=ne,l.toUpper=QS,l.trim=jS,l.trimEnd=ev,l.trimStart=tv,l.truncate=nv,l.unescape=rv,l.uniqueId=Ev,l.upperCase=ov,l.upperFirst=Js,l.each=ml,l.eachRight=Tl,l.first=pl,ea(l,function(){var e={};return yt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Qe(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:Se(V(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,ht),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Qe(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==lc||r==eg;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:F(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Qe(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Qe(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Fe)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return Ir(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Bo(F(e)))},X.prototype.slice=function(e,t){e=V(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=V(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(ht)},yt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,_=h[0],b=x||$(T),L=function(Z){var J=c.apply(l,Yt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,N=!!this.__actions__.length,U=p&&!C,K=x&&!N;if(!p&&b){T=K?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Oo,args:[L],thisArg:n}),new et(B,C)}return U&&K?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=so[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($(p)?p:[],c)}return this[r](function(T){return t.apply($(T)?T:[],c)})}}),yt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Un,a)||(Un[a]=[]),Un[a].push({name:t,func:r})}}),Un[Eo(n,be).name]=[{name:"wrapper",func:n}],X.prototype.clone=rT,X.prototype.reverse=oT,X.prototype.value=iT,l.prototype.at=Ny,l.prototype.chain=Oy,l.prototype.commit=My,l.prototype.next=Fy,l.prototype.plant=By,l.prototype.reverse=Wy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Gy,l.prototype.first=l.prototype.head,hr&&(l.prototype[hr]=Uy),l},Xt=Mm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=Xt,define(function(){return Xt})):un?((un.exports=Xt)._=Xt,ji._=Xt):ve._=Xt}).call(sr)});var NI={};yn(NI,{useNativeAuthLogout:()=>DI});module.exports=Dr(NI);s();var ar=require("react"),Yd=q(require("bignumber.js"));s();s();s();var Gf=require("react"),rr=require("react-redux");s();var Ha=require("@reduxjs/toolkit"),Bf=require("react-redux/lib/utils/Subscription");ae();s();var mf=q(require("lodash.throttle"));se();s();var gf=q(require("lodash.isequal")),xi=require("reselect");Ie();var D=(0,xi.createSelectorCreator)(xi.defaultMemoize,gf.default),Br=(n,o)=>n!=""&&Boolean(o);ae();Ea();Jn();Xn();var lw=[Jo],Si=!1,pw=(0,mf.default)(()=>{Mr(Or())},5e3),Tf=n=>o=>i=>{var E;if(lw.includes(i.type))return o(i);let u=n.getState(),m=bt.local.getItem(dt.loginExpiresAt);if(!Br((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 S=Date.now();return m-S<0&&!Si?setTimeout(()=>{Si=!0,n.dispatch(Hp())},1e3):(Si&&(Si=!1),pw()),o(i)};s();s();function vi(){return typeof sessionStorage!="undefined"}var Mf=vi()?(Lf(),Dr(bf)).default:(kf(),Dr(Ef)).default,Ff=vi()?(Pf(),Dr(Cf)).default:[],Uf=vi()?(Of(),Dr(Nf)).default:n=>n;wi();var j=(0,Ha.configureStore)({reducer:Mf,middleware:n=>n({serializableCheck:{ignoredActions:[...Ff,La.type,ba.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(Tf)}),Wf=(0,Bf.createSubscription)(j),aE=Uf(j),cE=(0,Ha.configureStore)({reducer:_n});var Dw={store:j,subscription:Wf},Va=(0,Gf.createContext)(Dw),fE=(0,rr.createStoreHook)(Va),We=(0,rr.createDispatchHook)(Va),te=(0,rr.createSelectorHook)(Va);s();s();ae();var $t=n=>n.account,bn=D($t,n=>n.address),Gr=D($t,bn,(n,o)=>o in n.accounts?n.accounts[o]:jo),$f=D($t,Gr,(n,o)=>{let m=n,{accounts:i}=m,u=Vo(m,["accounts"]);return Q(O({},u),{account:o})}),Nw=D(Gr,n=>n.balance),Ow=D(Gr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),TE=D($t,n=>n.shard),Mw=D($t,n=>n.ledgerAccount),hE=D($t,n=>n.walletConnectAccount),yE=D($t,n=>n.isAccountLoading),xE=D($t,n=>n.accountLoadingError),Hf=D($t,n=>n.websocketEvent);s();var Ze=n=>n.loginInfo,AE=D(Ze,n=>n.loginMethod),$r=D(Ze,bn,(n,o)=>Br(n.loginMethod,o)),IE=D(Ze,n=>n.walletConnectLogin),_E=D(Ze,n=>n.ledgerLogin),Vf=D(Ze,n=>n.walletLogin),bE=D(Ze,n=>n.isLoginSessionInvalid),Fw=D(Ze,n=>n.tokenLogin),qf=D(Ze,n=>n.logoutRoute);s();var zf=n=>n.modals,kE=D(zf,n=>n.txSubmittedModal),Uw=D(zf,n=>n.notificationModal);s();var Ht=n=>n.networkConfig,Ai=D(Ht,n=>n.chainID),Bw=D(Ht,n=>n.network.walletConnectBridgeAddress),Ww=D(Ht,n=>n.network.walletConnectV2RelayAddress),Gw=D(Ht,n=>n.network.walletConnectV2ProjectId),$w=D(Ht,n=>n.network.walletConnectV2Options),Kf=D(Ht,n=>n.network.walletConnectDeepLink),on=D(Ht,n=>n.network),Yf=D(on,n=>n.apiAddress),Zf=D(on,n=>n.explorerAddress),Xf=D(on,n=>n.egldLabel);s();var qa=n=>n.signedMessageInfo,NE=D(qa,n=>n.isSigning),OE=D(qa,n=>n.errorMessage),ME=D(qa,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var za=n=>n.toasts,BE=D(za,n=>n.customToasts),WE=D(za,n=>n.transactionToasts),GE=D(za,n=>n.failTransactionToast);s();ae();var Jf={errorMessage:Oa,successMessage:Ma,processingMessage:Fa},Hw=n=>n.transactionsInfo,Vw=D(Hw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||Jf);s();s();var Xe=require("@multiversx/sdk-core");se();s();function Ii(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function Ln(n){return Ii(n)?atob(n):n}function _i(n){var m,v,S;let{data:o}=n,i=Ii(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Nr,gasPrice:(v=n.gasPrice.valueOf())!=null?v:Xo,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((S=n.version)!=null?S:Lp)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var zw=require("@multiversx/sdk-core/out");s();se();s();var jf=require("@multiversx/sdk-core");Ie();s();var Qf=require("@multiversx/sdk-core");function Kw(n){try{let o=new Qf.Address(n);return Boolean(o.bech32())}catch(o){return!1}}function Hr(n){return(n==null?void 0:n.startsWith("erd"))&&n.length===62&&/^\w+$/.test(n)&&Kw(n)}s();s();s();var Zw=require("@multiversx/sdk-core"),Xw=q(require("bignumber.js"));de();s();s();s();s();s();var Ka="blocks";s();s();s();s();Be();s();s();Be();s();s();s();var oA=q(require("bignumber.js"));se();s();var rA=require("@multiversx/sdk-core"),Ya=q(require("bignumber.js"));se();s();var tA=q(require("bignumber.js"));s();Ya.default.config({ROUNDING_MODE:Ya.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var iA=require("@multiversx/sdk-core");se();s();var Vr=require("@multiversx/sdk-core"),cA=require("@multiversx/sdk-network-providers");se();s();s();var sA=q(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();Be();var lA=["reDelegateRewards","claimRewards","unBond"],pA=["wrapEgld","unwrapEgld"],fA=["unStake"],dA=["unDelegate"];s();s();s();se();s();var hA=q(require("bignumber.js"));s();s();s();s();Be();s();var yA=q(require("bignumber.js"));s();s();s();var vA=q(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();Be();s();s();s();var wA=q(require("linkifyjs"));s();se();s();var AA=q(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();Be();s();Be();s();var IA=q(require("bignumber.js"));se();Be();s();Be();s();var cd=require("react");Ie();s();s();Be();s();s();var _A=require("@multiversx/sdk-core/out"),bA=q(require("bignumber.js"));Be();s();Ie();s();s();Ie();var vD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var ud=require("react");Ie();s();var EA=require("react");Be();var ED=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];nr();var ki=n=>n.transactions,or=D(ki,n=>n.signedTransactions),kA=D(ki,n=>n.signTransactionsError),ld=D(ki,n=>n.signTransactionsCancelMessage),Ci=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),pd=D(or,Ci(jn)),fd=D(or,Ci(er)),dd=D(or,Ci(tr)),CA=D(or,Ci(Ba)),gd=D(ki,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>_i(i)))||[]})}),PA=D(or,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var md=require("react");s();ae();s();s();s();s();s();s();s();s();var Td=require("@multiversx/sdk-extension-provider"),hd=require("@multiversx/sdk-hw-provider"),yd=require("@multiversx/sdk-opera-provider"),xd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),Sd=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),vd=require("@multiversx/sdk-web-wallet-provider");se();de();var ir=n=>{switch(n==null?void 0:n.constructor){case vd.WalletProvider:return"wallet";case xd.WalletConnectProvider:return"walletconnect";case Sd.WalletConnectV2Provider:return"walletconnectv2";case hd.HWProvider:return"ledger";case Td.ExtensionProvider:return"extension";case yd.OperaProvider:return"opera";case Pi:return"";default:return"extra"}};var Vt=n=>`Unable to perform ${n}, Provider not initialized`,Pi=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Vt(`login with options: ${o}`))}logout(o){throw new Error(Vt(`logout with options: ${o}`))}getAddress(){throw new Error(Vt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Vt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Vt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Vt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Vt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Vt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Vt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},Xa=new Pi;var RA=Xa;function gt(){return RA||Xa}ae();s();s();var DA=q(require("axios"));s();s();s();de();s();s();function wd(){let n=gt();return ir(n)}function qt(n){return wd()===n}function Ri(){let n=window==null?void 0:window.location.search,o=j.getState(),i=gt(),u=bn(o),m=$r(o),v=Vf(o);if(!i)throw"provider not initialized";return qt("ledger")&&m?new Promise(S=>{S(u)}):!qt("")&&!qt("wallet")&&!qt("extra")?i.getAddress():new Promise(S=>{if(v!=null){let k=new URLSearchParams(n),E=Object.fromEntries(k);Hr(E.address)&&S(E.address)}m&&S(u),S("")})}s();nr();s();s();s();var NA=q(require("axios"));s();var OA=q(require("axios"));s();var FA=q(require("axios"));s();s();var UA=q(require("axios"));s();var BA=q(require("axios"));s();ae();de();s();s();ae();s();s();var _d=require("@multiversx/sdk-core");s();Ce();Ie();s();nr();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var HA=q(require("axios")),VA=q(require("swr"));s();s();var bd=require("react");s();var KA=require("react"),kd=require("@multiversx/sdk-web-wallet-provider"),YA=q(require("qs"));se();ae();de();s();s();var Ld,kF={search:(Ld=window==null?void 0:window.location)==null?void 0:Ld.search,removeParams:[]};s();var Cd=require("react");Ca();s();var Nd=require("react"),rI=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var Dd=require("react"),jA=require("@multiversx/sdk-extension-provider");se();s();s();var Qa=()=>te($f);s();s();s();s();s();s();var qr=q(require("react"));var SU=(0,qr.createContext)({}),vU=j.getState();s();var Rd=q(require("react"));s();var ec=q(require("react")),XA=q(require("axios"));s();s();ae();s();s();var oI=q(require("axios"));ae();Ie();Fr();s();wn();ae();s();s();var gI=require("react");s();s();s();ae();s();s();var aI=q(require("bignumber.js"));se();ae();Ie();s();var sI=q(require("bignumber.js"));se();s();var cI=require("@multiversx/sdk-core"),uI=q(require("bignumber.js"));se();s();s();s();s();var Fd=q(require("axios"));s();s();s();function Od(n){return z(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Md=(n,o,i,u=0)=>z(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield Od(o.delay)),yield Md(n,o,i,u+1)):null}}),nc=(n,o={retries:5,delay:500})=>(...i)=>z(void 0,null,function*(){return yield Md(n,o,i)});var lI=4;var lW=nc((n,o)=>z(void 0,null,function*(){let{data:i}=yield Fd.default.get(`${n}/${Ka}?from=${lI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Qo();s();s();var Bd=q(Ud());var Wd=n=>{if(!n||!(0,Bd.isString)(n))return null;let o=n.split(".");if(o.length!==4)return console.error("Invalid loginToken. You may be trying to decode a nativeAuthToken. Try using decodeNativeAuthToken method instead"),null;try{let[i,u,m,v]=o,S=JSON.parse(Ln(v)),k=Ln(i);return{ttl:Number(m),extraInfo:S,origin:k,blockHash:u}}catch(i){return console.error(`Error trying to decode ${n}:`,i),null}};function pI(n){return Object.prototype.toString.call(n)==="[object String]"}var Gd=n=>{var i;if(!n||!pI(n))return null;let o=n.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[u,m,v]=o,S=Ln(u),k=Ln(m),E=Wd(k);if(!E)return{address:S,body:k,signature:v,blockHash:"",origin:"",ttl:0};let R=Q(O({},E),{address:S,body:k,signature:v});return(i=E.extraInfo)!=null&&i.timestamp||delete R.extraInfo,R}catch(u){return null}};var rc=n=>{let o=Gd(n);if(!o)return{isExpired:!1};let i=Zn(),{ttl:u,extraInfo:m}=o,v=m==null?void 0:m.timestamp;if(!v)return{isExpired:!1};let S=v+u,k=i>S,E=S-i;return{isExpired:k,expiresAt:S,secondsUntilExpires:E}};s();var $d,vW={origin:typeof window!="undefined"?($d=window==null?void 0:window.location)==null?void 0:$d.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();nr();s();var Hd=require("react");s();s();var TI=require("react"),hI=require("@multiversx/sdk-extension-provider");wn();Ce();de();s();function an(){return $r(j.getState())}An();s();var mI=require("react"),Vd=require("@multiversx/sdk-core");ae();s();var yI=require("react"),xI=require("@multiversx/sdk-opera-provider");wn();Ce();de();An();s();var AI=require("react");wn();ae();s();s();xa();s();s();var SI=q(require("platform"));s();Ce();Ie();Fr();Jn();Xn();var vI=n=>{let o=bt.local.getItem(dt.logoutEvent),{data:i}=o?JSON.parse(o):{data:n};n===i&&(bt.local.setItem({key:dt.logoutEvent,data:n,expires:0}),bt.local.removeItem(dt.logoutEvent))};function Yr(n,o,i=!0){return z(this,null,function*(){let u=gt(),m=ir(u),v=an(),S=m==="wallet";if(i&&(u==null?void 0:u.relogin)!=null)return yield u.relogin();if(!v||!u){ic(n,o,!1);return}try{let k=yield Ri();vI(k)}catch(k){ic(n,o,!1),console.error("error fetching logout address",k)}S&&Yp(),j.dispatch(_e());try{let E=S&&!n?window==null?void 0:window.location.origin:n;S?setTimeout(()=>{u.logout({callbackUrl:E})}):(yield u.logout({callbackUrl:E}),ic(n,o,S))}catch(k){console.error("error logging out",k)}})}function ic(n,o,i){n&&!i&&(typeof o=="function"?o(n):si(n))}s();s();s();s();s();s();s();s();s();de();s();Fr();Jn();s();s();s();ae();s();s();var wI=q(require("axios"));s();s();var qd=require("react"),_I=require("@multiversx/sdk-hw-provider");wn();Ce();ae();de();An();s();var II=require("react");s();var sc=require("react"),LI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();An();s();var ac=require("react"),EI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();An();s();s();var zd=require("react");s();var PI=require("react");s();var cc=require("react"),CI=require("socket.io-client");ae();s();s();s();s();var Kd=n=>n.dappModal,RI=D(Kd,n=>n.visible),Oi=D(Kd,n=>n.modal),X6=D(Oi,n=>n.showHeader),J6=D(Oi,n=>n.showFooter),Q6=D(Oi,n=>n.headerText),j6=D(Oi,n=>n.footerText);var DI=()=>{let{address:n}=Qa(),{tokenLogin:o}=te(Ze),i=te(qf),{isExpired:u,secondsUntilExpires:m,expiresAt:v}=rc(o==null?void 0:o.nativeAuthToken),S=(0,ar.useRef)(""),k=(0,ar.useRef)();return(0,ar.useEffect)(()=>{n&&u&&Yr(i)},[u,n,i]),(0,ar.useEffect)(()=>{let E=new Yd.default(String(m)),R=`${n}_${v}`,H=S.current===R;if(!(m&&E.isGreaterThan(0))||H)return;S.current=R,clearTimeout(k.current);let ue=E.times(1e3);return k.current=setTimeout(()=>{Yr(i)},ue.toNumber()),()=>{clearTimeout(k.current)}},[v,n,i]),null};0&&(module.exports={useNativeAuthLogout});
21
21
  /*!
22
22
  * The buffer module from node.js, for the browser.
23
23
  *