@abtnode/blocklet-services 1.16.38-beta-20250118-033334-2da05ae8 → 1.16.38-beta-20250121-093201-3cdcfa78

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 (210) hide show
  1. package/api/routes/env.js +2 -0
  2. package/api/routes/user-session.js +23 -4
  3. package/api/services/auth/session.js +1 -1
  4. package/api/services/studio/index.js +2 -0
  5. package/dist/assets/Add-Bk4Lbgr-.js +1 -0
  6. package/dist/assets/ArrowDropDown-Df_gfPLu.js +1 -0
  7. package/dist/assets/CheckCircle-DHVFIbL0.js +1 -0
  8. package/dist/assets/ChevronLeft-Dgwl6TbO.js +1 -0
  9. package/dist/assets/ChevronRight-eWuyXadV.js +1 -0
  10. package/dist/assets/DeleteOutline-BgJS3M_C.js +1 -0
  11. package/dist/assets/Done-DEqpodCF.js +1 -0
  12. package/dist/assets/Download-BqmPcEfL.js +1 -0
  13. package/dist/assets/Error-BYxOoAVo.js +1 -0
  14. package/dist/assets/Google-CSVZMPcX.js +27 -0
  15. package/dist/assets/InfoOutlined-DEEWjfzD.js +1 -0
  16. package/dist/assets/Launch-DOUVA2XM.js +1 -0
  17. package/dist/assets/LaunchOutlined-Coy9mtK0.js +1 -0
  18. package/dist/assets/Loop-ImNW3c_O.js +1 -0
  19. package/dist/assets/MoreHoriz-BukKE4JJ.js +1 -0
  20. package/dist/assets/PlayArrow-swX4whzo.js +1 -0
  21. package/dist/assets/ViewList-cXzDGSb4.js +1 -0
  22. package/dist/assets/access-control-BkK8FrPA.js +13 -0
  23. package/dist/assets/{actions-DDDMPf_w.js → actions-BY2UpTuo.js} +1 -1
  24. package/dist/assets/add-component-core-DwV6kONw.js +765 -0
  25. package/dist/assets/add-resource-MM2jCA3R.js +1 -0
  26. package/dist/assets/{addon-DRWTut9y.js → addon-DdFmPnBN.js} +1 -1
  27. package/dist/assets/analytics-BqslcZBV.js +47 -0
  28. package/dist/assets/api-hLQrqHOJ.js +1 -0
  29. package/dist/assets/ar-D1VagXPW.js +3 -0
  30. package/dist/assets/{audit-logs-Dm5FbBZf.js → audit-logs--gsofZ06.js} +1 -1
  31. package/dist/assets/{base32-BJ0zdvwj.js → base32-CX18Q7D5.js} +1 -1
  32. package/dist/assets/branding-DInWWRgz.js +40 -0
  33. package/dist/assets/bundle-avatar-Ki6WwKnC.js +1 -0
  34. package/dist/assets/button-CQkyi5io.js +1 -0
  35. package/dist/assets/{click-to-copy-CmMy3CrF.js → click-to-copy-BB-UXfLh.js} +1 -1
  36. package/dist/assets/cloneDeep-gFMzIJP-.js +1 -0
  37. package/dist/assets/{complete-DrVsBs5y.js → complete-CBDhO1CU.js} +2 -2
  38. package/dist/assets/{component-C5IX8wdu.js → component-BrNJwPIe.js} +58 -58
  39. package/dist/assets/config--BH8-z9r.js +1 -0
  40. package/dist/assets/{config-10aPmzrE.js → config-DG_LFEZ2.js} +2 -2
  41. package/dist/assets/config-navigation-Ypn8iWNz.js +26 -0
  42. package/dist/assets/config-space-DodcLLqs.js +1 -0
  43. package/dist/assets/{confirm-CCF7Eh83.js → confirm-B_nTIsRa.js} +1 -1
  44. package/dist/assets/connect-Cf-w5xzj.js +1 -0
  45. package/dist/assets/connect-Cz_ogdYB.js +5 -0
  46. package/dist/assets/connect-to-DmO7iq5D.js +1 -0
  47. package/dist/assets/dashboard-i4ZTBfIK.js +86 -0
  48. package/dist/assets/{de-BYtQQOr-.js → de-BVgb1fEg.js} +1 -1
  49. package/dist/assets/de-CvDV7d-6.js +3 -0
  50. package/dist/assets/{did-address-DsOFwsmU.js → did-address-BHDYBHge.js} +1 -1
  51. package/dist/assets/domain-DEmX5KPr.js +9 -0
  52. package/dist/assets/domain-list-DUMTDIXn.js +15 -0
  53. package/dist/assets/{email-DiKDXKCR.js → email-CJ4XMRei.js} +3 -3
  54. package/dist/assets/es-DGK_gDT-.js +3 -0
  55. package/dist/assets/exchange-passport-Cya8tXHd.js +1 -0
  56. package/dist/assets/form-text-input-BqBSVrsK.js +11 -0
  57. package/dist/assets/fr-BuGbCF-_.js +3 -0
  58. package/dist/assets/fuel-CH0_3l_-.js +32 -0
  59. package/dist/assets/{fullpage-vhYlt62g.js → fullpage-CukyDM7S.js} +1 -1
  60. package/dist/assets/{get-safe-url-Bg-eYJFz.js → get-safe-url-BGQfxr73.js} +1 -1
  61. package/dist/assets/{get-safe-url-CUm2E-jn.js → get-safe-url-CUNkDpRh.js} +1 -1
  62. package/dist/assets/hi-w7-Xo0pj.js +1 -0
  63. package/dist/assets/{home-X6wxlptK.js → home-CzSofhhz.js} +1 -1
  64. package/dist/assets/{id-CgtYzmhQ.js → id-CUsGyKYW.js} +1 -1
  65. package/dist/assets/id-DfsK8869.js +3 -0
  66. package/dist/assets/{iframe-CVBJbqTp.js → iframe-CsSJXjn-.js} +1 -1
  67. package/dist/assets/index-BG2TK3L9.js +144 -0
  68. package/dist/assets/index-BSwL4CIV.js +104 -0
  69. package/dist/assets/index-BaNqg_YA.js +2 -0
  70. package/dist/assets/index-Bj4H5GTM.js +228 -0
  71. package/dist/assets/{index-B-my800N.js → index-Boo9QVHC.js} +2 -2
  72. package/dist/assets/{index-CUlGef8y.js → index-C6qYsil9.js} +22 -22
  73. package/dist/assets/{index-BbrJG83p.js → index-CK6a45b0.js} +1 -1
  74. package/dist/assets/{index-CYWGE7K9.js → index-CuDwM2ph.js} +7 -7
  75. package/dist/assets/{index-JFhSGIs6.js → index-Cy0CDG7H.js} +2 -2
  76. package/dist/assets/{index-C9c6FdP7.js → index-DOBbdjLX.js} +1 -1
  77. package/dist/assets/{index-CuxhzgqO.js → index-Di9oSquh.js} +1 -1
  78. package/dist/assets/{index-BGO2DsWz.js → index-Dkwa_Vhl.js} +1 -1
  79. package/dist/assets/{index-CEmXvpjH.js → index-DtXmDMLc.js} +1 -1
  80. package/dist/assets/index-Dux6RGAz.js +5 -0
  81. package/dist/assets/{index-NpTIA0Yh.js → index-Ouxr9lbr.js} +3 -3
  82. package/dist/assets/{index-H5hAQJcb.js → index-vQU4GuwB.js} +41 -41
  83. package/dist/assets/{invitation-CVhobKZ4.js → invitation-C5d6O5eZ.js} +7 -7
  84. package/dist/assets/invite-Dk62Yxut.js +5 -0
  85. package/dist/assets/issue-passport-CMM-WTIR.js +1 -0
  86. package/dist/assets/item-B2yN9mDQ.js +2 -0
  87. package/dist/assets/ja-CQJHpvK1.js +3 -0
  88. package/dist/assets/ko-9oNzTJow.js +3 -0
  89. package/dist/assets/{layout-CTddQfyh.js → layout-DoHX-KTx.js} +1 -1
  90. package/dist/assets/{list-header-Bce1kvpA.js → list-header-D5AuJWlL.js} +1 -1
  91. package/dist/assets/localization-BZdVtYRI.js +1 -0
  92. package/dist/assets/{log-DV5xJK8V.js → log-GdCSoLtw.js} +11 -11
  93. package/dist/assets/login-BpSAKGaL.js +1 -0
  94. package/dist/assets/login-bg-BMPVKR1k.svg +5 -0
  95. package/dist/assets/login-oauth-callback-EOz9oVYT.js +1 -0
  96. package/dist/assets/logo-uploader-CLn4ASpU.js +133 -0
  97. package/dist/assets/{lost-passport-C6Doyr0n.js → lost-passport-BwL9ej_E.js} +3 -3
  98. package/dist/assets/{open-window-CIN-c_8i.js → open-window-DQT0NyNv.js} +1 -1
  99. package/dist/assets/overview-CwoF_5-j.js +12 -0
  100. package/dist/assets/{page-header-PFRlhj0j.js → page-header-BJ0JDhAC.js} +1 -1
  101. package/dist/assets/{permission-BwvfjqYI.js → permission-CY0rjHhe.js} +1 -1
  102. package/dist/assets/{preferences-DY1qnOCx.js → preferences-BqjVySQU.js} +1 -1
  103. package/dist/assets/pt-DMLN8oh9.js +1 -0
  104. package/dist/assets/publish-resource-CHOsL-Wz.js +1 -0
  105. package/dist/assets/{react-beautiful-dnd.esm-DZo8yE8C.js → react-beautiful-dnd.esm-DdBIMuMX.js} +4 -4
  106. package/dist/assets/{relative-time-C-6wlxmy.js → relative-time-BvHPmaa5.js} +1 -1
  107. package/dist/assets/ru-CGG1vu9C.js +1 -0
  108. package/dist/assets/sdk-DhOls9Mj.js +1 -0
  109. package/dist/assets/session-BdZwp1m1.js +1 -0
  110. package/dist/assets/setup-zEHhcITK.js +19 -0
  111. package/dist/assets/start-Mb20LvOg.js +187 -0
  112. package/dist/assets/{step-actions-BbCSiBWz.js → step-actions-7XrSq1Ty.js} +1 -1
  113. package/dist/assets/studio-g7S_h0IK.js +6 -0
  114. package/dist/assets/{switch-control-DzGhrJO3.js → switch-control-BB9KcpOQ.js} +1 -1
  115. package/dist/assets/th-D-lApkQp.js +1 -0
  116. package/dist/assets/transfer-m4XxmI1c.js +16 -0
  117. package/dist/assets/unsubscribe-DdvzUVXS.js +1 -0
  118. package/dist/assets/{useAsync-cdOzMWPw.js → useAsync-DCGc7Pdb.js} +1 -1
  119. package/dist/assets/{useAsyncRetry-ng-QDeMG.js → useAsyncRetry-0k7mm5ej.js} +1 -1
  120. package/dist/assets/{useLocalStorage-CM8R1gkX.js → useLocalStorage-D5HE_OXe.js} +1 -1
  121. package/dist/assets/user-center-lC5tDSyz.js +232 -0
  122. package/dist/assets/util-vgJ3SQ5U.js +1 -0
  123. package/dist/assets/vendor-arcblock-BXWj1K81.js +3509 -0
  124. package/dist/assets/vendor-hooks-DWAhU9cy.js +7 -0
  125. package/dist/assets/vendor-utils-u2ViqIqX.js +11 -0
  126. package/dist/assets/vi-D45dg9B_.js +1 -0
  127. package/dist/assets/wrap-locale-B2_X1_63.js +1 -0
  128. package/dist/assets/zh-CcLxBIl6.js +4 -0
  129. package/dist/assets/{zh-tw-B8oIFv7R.js → zh-tw-Bqy7j8qE.js} +1 -1
  130. package/dist/index.html +4 -4
  131. package/dist/service-worker.js +1 -1
  132. package/package.json +22 -21
  133. package/dist/assets/Add-DA06or_T.js +0 -1
  134. package/dist/assets/ArrowDropDown-ByvmY1fG.js +0 -1
  135. package/dist/assets/CheckCircle-61kAAbS7.js +0 -1
  136. package/dist/assets/ChevronLeft-BEMgr19u.js +0 -1
  137. package/dist/assets/ChevronRight-C9Sf_Tx7.js +0 -1
  138. package/dist/assets/DeleteOutline-CUlVP0SU.js +0 -1
  139. package/dist/assets/Done-DBzH2QOU.js +0 -1
  140. package/dist/assets/Download-CufGBMcn.js +0 -1
  141. package/dist/assets/Error-BRj42iX7.js +0 -1
  142. package/dist/assets/Google-C9fXfahB.js +0 -27
  143. package/dist/assets/InfoOutlined-CB0cJwBU.js +0 -1
  144. package/dist/assets/Launch-DhDcxyle.js +0 -1
  145. package/dist/assets/LaunchOutlined--NsW2V4X.js +0 -1
  146. package/dist/assets/Loop-DecQ6hrf.js +0 -1
  147. package/dist/assets/MoreHoriz-jR1hvlRv.js +0 -1
  148. package/dist/assets/PlayArrow-BQPL8ZKx.js +0 -1
  149. package/dist/assets/ViewList-COpI8i9D.js +0 -1
  150. package/dist/assets/_createAggregator-D73d37er.js +0 -1
  151. package/dist/assets/access-control-DRWHWy3M.js +0 -13
  152. package/dist/assets/add-component-core-Cz5AqUoX.js +0 -716
  153. package/dist/assets/add-resource-BsYmNHG4.js +0 -1
  154. package/dist/assets/analytics-DJeRvifL.js +0 -47
  155. package/dist/assets/api-C0C4sDJA.js +0 -1
  156. package/dist/assets/ar-Dr7fntBt.js +0 -3
  157. package/dist/assets/branding-CJaxWW-w.js +0 -40
  158. package/dist/assets/bundle-avatar-C5AcmC3p.js +0 -1
  159. package/dist/assets/button-bqdvVuzW.js +0 -1
  160. package/dist/assets/config-CJbVE0vv.js +0 -1
  161. package/dist/assets/config-navigation-CE_c3uZg.js +0 -26
  162. package/dist/assets/config-space-vTcG8SS6.js +0 -1
  163. package/dist/assets/connect-DLAivc8W.js +0 -5
  164. package/dist/assets/connect-DjXf6uie.js +0 -1
  165. package/dist/assets/connect-to-DDEY8_e3.js +0 -1
  166. package/dist/assets/dashboard-D7d4Tags.js +0 -86
  167. package/dist/assets/de-GmIXK1UD.js +0 -3
  168. package/dist/assets/domain-ZudrUt0P.js +0 -9
  169. package/dist/assets/domain-list-DmocBvA0.js +0 -15
  170. package/dist/assets/es-DVK5-peZ.js +0 -3
  171. package/dist/assets/exchange-passport-CTKeYxYs.js +0 -1
  172. package/dist/assets/form-text-input-juPY5e76.js +0 -11
  173. package/dist/assets/fr-CjZFjFm5.js +0 -3
  174. package/dist/assets/fuel-kHIIeGc9.js +0 -32
  175. package/dist/assets/hi-8hECDYim.js +0 -1
  176. package/dist/assets/id-Dv6VZG0f.js +0 -3
  177. package/dist/assets/index-BguQHm2Z.js +0 -5
  178. package/dist/assets/index-BnQkyyTO.js +0 -104
  179. package/dist/assets/index-XdZHSkHK.js +0 -144
  180. package/dist/assets/index-iNTIfB79.js +0 -228
  181. package/dist/assets/invite-CEfQ9Xdu.js +0 -5
  182. package/dist/assets/issue-passport-C-sKKAKS.js +0 -1
  183. package/dist/assets/item-BueNp2tn.js +0 -2
  184. package/dist/assets/ja-Cdy8ZhTC.js +0 -3
  185. package/dist/assets/ko-DrTpzs7q.js +0 -3
  186. package/dist/assets/localization-_hzGA-9a.js +0 -1
  187. package/dist/assets/login-CW9RVbaj.js +0 -1
  188. package/dist/assets/login-oauth-callback-BVkafEHi.js +0 -1
  189. package/dist/assets/logo-uploader-BuW1IV_-.js +0 -133
  190. package/dist/assets/overview-Cx1NHKw_.js +0 -12
  191. package/dist/assets/pt-CMTeSYTi.js +0 -1
  192. package/dist/assets/publish-resource-ByN4rwnZ.js +0 -1
  193. package/dist/assets/ru-C9ShBb28.js +0 -1
  194. package/dist/assets/sdk-CrCNIpAP.js +0 -1
  195. package/dist/assets/session-Ku4cwX2M.js +0 -1
  196. package/dist/assets/setup-Ejw_ADHH.js +0 -19
  197. package/dist/assets/start-mCJ8IO-s.js +0 -187
  198. package/dist/assets/studio-C8ceaGGk.js +0 -6
  199. package/dist/assets/th-Ci6_lraJ.js +0 -1
  200. package/dist/assets/toUpper-Ch8IcBS5.js +0 -1
  201. package/dist/assets/transfer-B7yyybIU.js +0 -16
  202. package/dist/assets/unsubscribe-DqJ3ZVmc.js +0 -1
  203. package/dist/assets/user-center-BEkeBApB.js +0 -202
  204. package/dist/assets/util-D8HyMwt2.js +0 -1
  205. package/dist/assets/vendor-arcblock-BlPSuvWz.js +0 -3506
  206. package/dist/assets/vendor-hooks-CLzfFpO7.js +0 -7
  207. package/dist/assets/vendor-utils-DCpRgzMR.js +0 -11
  208. package/dist/assets/vi-CzSsX7fL.js +0 -1
  209. package/dist/assets/wrap-locale-CQCi4c6m.js +0 -1
  210. package/dist/assets/zh-Bo-Td4CQ.js +0 -4
@@ -1,7 +0,0 @@
1
- import{g as B,e as Z,r as v,a as Ft}from"./vendor-react-D-afvo_7.js";import{d as zt,g as ve}from"./vendor-utils-DCpRgzMR.js";var Bt=typeof Element<"u",Wt=typeof Map=="function",Ht=typeof Set=="function",Nt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ee(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ee(e[n],t[n]))return!1;return!0}var o;if(Wt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!ee(n.value[1],t.get(n.value[0])))return!1;return!0}if(Ht&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Nt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(Bt&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!ee(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var Gt=function(t,r){try{return ee(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Ut=B(Gt);var kt=typeof Z=="object"&&Z&&Z.Object===Object&&Z,qt=kt,Kt=qt,Vt=typeof self=="object"&&self&&self.Object===Object&&self,Jt=Kt||Vt||Function("return this")(),Ge=Jt,Yt=Ge,Xt=Yt.Symbol,Ue=Xt,Pe=Ue,ke=Object.prototype,Qt=ke.hasOwnProperty,Zt=ke.toString,q=Pe?Pe.toStringTag:void 0;function er(e){var t=Qt.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch{}var i=Zt.call(e);return n&&(t?e[q]=r:delete e[q]),i}var tr=er,rr=Object.prototype,nr=rr.toString;function ir(e){return nr.call(e)}var or=ir,xe=Ue,ar=tr,ur=or,cr="[object Null]",fr="[object Undefined]",Ae=xe?xe.toStringTag:void 0;function sr(e){return e==null?e===void 0?fr:cr:Ae&&Ae in Object(e)?ar(e):ur(e)}var qe=sr;function lr(e){return e!=null&&typeof e=="object"}var Ke=lr,dr=qe,vr=Ke,hr="[object Symbol]";function pr(e){return typeof e=="symbol"||vr(e)&&dr(e)==hr}var mr=pr;function gr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oe=gr;const Pi=B(oe);var Ve={exports:{}};/*!
2
- * JavaScript Cookie v2.2.1
3
- * https://github.com/js-cookie/js-cookie
4
- *
5
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6
- * Released under the MIT license
7
- */(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var f in u)a[f]=u[f]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,l,s){if(!(typeof document>"u")){s=r({path:"/"},a.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var p=JSON.stringify(l);/^[\{\[]/.test(p)&&(l=p)}catch{}l=o.write?o.write(l,c):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=c+"="+l+d}}function f(c,l){if(!(typeof document>"u")){for(var s={},p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var h=p[d].split("="),m=h.slice(1).join("=");!l&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var g=n(h[0]);if(m=(o.read||o)(m,g)||n(m),l)try{m=JSON.parse(m)}catch{}if(s[g]=m,c===g)break}catch{}}return c?s[c]:s}}return a.set=u,a.get=function(c){return f(c,!1)},a.getJSON=function(c){return f(c,!0)},a.remove=function(c,l){u(c,"",r(l,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(Ve);var yr=Ve.exports;const xi=B(yr);var br=/\s/;function wr(e){for(var t=e.length;t--&&br.test(e.charAt(t)););return t}var _r=wr,Er=_r,Or=/^\s+/;function Sr(e){return e&&e.slice(0,Er(e)+1).replace(Or,"")}var Rr=Sr,Tr=Rr,Me=oe,jr=mr,De=NaN,Cr=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,xr=/^0o[0-7]+$/i,Ar=parseInt;function Mr(e){if(typeof e=="number")return e;if(jr(e))return De;if(Me(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Me(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Tr(e);var r=Pr.test(e);return r||xr.test(e)?Ar(e.slice(2),r?2:8):Cr.test(e)?De:+e}var Dr=Mr;function Lr(e,t){return function(r){return e(t(r))}}var $r=Lr,Ir=$r,Fr=Ir(Object.getPrototypeOf,Object),zr=Fr,Br=qe,Wr=zr,Hr=Ke,Nr="[object Object]",Gr=Function.prototype,Ur=Object.prototype,Je=Gr.toString,kr=Ur.hasOwnProperty,qr=Je.call(Object);function Kr(e){if(!Hr(e)||Br(e)!=Nr)return!1;var t=Wr(e);if(t===null)return!0;var r=kr.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Je.call(r)==qr}var Vr=Kr;const Jr=B(Vr);var Yr=function(e){return function(t,r){var n=v.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ge(e,t)};function Ye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ge(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var j=function(){return j=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},j.apply(this,arguments)};function ae(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Xe(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Qe(e,t){return function(r,n){t(r,n,e)}}function Ze(e,t,r,n,i,o){function a(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var u=n.kind,f=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),s,p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]=m==="access"?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(_){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(_||null))};var g=(0,r[d])(u==="accessor"?{get:l.get,set:l.set}:l[f],h);if(u==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(s=a(g.get))&&(l.get=s),(s=a(g.set))&&(l.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&(u==="field"?i.unshift(s):l[f]=s)}c&&Object.defineProperty(c,n.name,l),p=!0}function et(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function tt(e){return typeof e=="symbol"?e:"".concat(e)}function rt(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function nt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Y(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{c(n.next(l))}catch(s){a(s)}}function f(l){try{c(n.throw(l))}catch(s){a(s)}}function c(l){l.done?o(l.value):i(l.value).then(u,f)}c((n=n.apply(e,t||[])).next())})}function X(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(l){return f([c,l])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ue=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function it(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ue(t,e,r)}function I(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function ot(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function at(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function E(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function ut(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(h){return Promise.resolve(h).then(d,s)}}function u(d,h){n[d]&&(i[d]=function(m){return new Promise(function(g,_){o.push([d,m,g,_])>1||f(d,m)})},h&&(i[d]=h(i[d])))}function f(d,h){try{c(n[d](h))}catch(m){p(o[0][3],m)}}function c(d){d.value instanceof G?Promise.resolve(d.value.v).then(l,s):p(o[0][2],d)}function l(d){f("next",d)}function s(d){f("throw",d)}function p(d,h){d(h),o.shift(),o.length&&f(o[0][0],o[0][1])}}function ct(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function ft(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof I=="function"?I(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,f){a=e[o](a),i(u,f,a.done,a.value)})}}function i(o,a,u,f){Promise.resolve(f).then(function(c){o({value:c,done:u})},a)}}function st(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Xr=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ye=function(e){return ye=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},ye(e)};function lt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ye(e),n=0;n<r.length;n++)r[n]!=="default"&&ue(t,e,r[n]);return Xr(t,e),t}function dt(e){return e&&e.__esModule?e:{default:e}}function vt(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function ht(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function pt(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function mt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Qr=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function gt(e){function t(o){e.error=e.hasError?new Qr(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function yt(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Zr={__extends:Ye,__assign:j,__rest:ae,__decorate:Xe,__param:Qe,__esDecorate:Ze,__runInitializers:et,__propKey:tt,__setFunctionName:rt,__metadata:nt,__awaiter:Y,__generator:X,__createBinding:ue,__exportStar:it,__values:I,__read:y,__spread:ot,__spreadArrays:at,__spreadArray:E,__await:G,__asyncGenerator:ut,__asyncDelegator:ct,__asyncValues:ft,__makeTemplateObject:st,__importStar:lt,__importDefault:dt,__classPrivateFieldGet:vt,__classPrivateFieldSet:ht,__classPrivateFieldIn:pt,__addDisposableResource:mt,__disposeResources:gt,__rewriteRelativeImportExtension:yt},en=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:mt,get __assign(){return j},__asyncDelegator:ct,__asyncGenerator:ut,__asyncValues:ft,__await:G,__awaiter:Y,__classPrivateFieldGet:vt,__classPrivateFieldIn:pt,__classPrivateFieldSet:ht,__createBinding:ue,__decorate:Xe,__disposeResources:gt,__esDecorate:Ze,__exportStar:it,__extends:Ye,__generator:X,__importDefault:dt,__importStar:lt,__makeTemplateObject:st,__metadata:nt,__param:Qe,__propKey:tt,__read:y,__rest:ae,__rewriteRelativeImportExtension:yt,__runInitializers:et,__setFunctionName:rt,__spread:ot,__spreadArray:E,__spreadArrays:at,__values:I,default:Zr},Symbol.toStringTag,{value:"Module"}));var F=function(e){return typeof e=="function"},tn=function(e){return typeof e=="string"},ce=function(e){return typeof e=="number"},rn=function(e){return typeof e>"u"};function D(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var r=v.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const J=Yr(v.useEffect);var bt=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,f=u===void 0?[]:u,c=t.refreshDepsAction,l=v.useRef(!1);return l.current=!1,J(function(){!r&&i&&(l.current=!0,e.run.apply(e,E([],y(a),!1)))},[i]),J(function(){l.current||r||(l.current=!0,c?c():e.refresh())},E([],y(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};bt.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function be(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function Oe(e,t){var r=v.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!be(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function L(e){var t=v.useRef(e);return t.current=e,t}var W=function(e){var t=L(e);v.useEffect(function(){return function(){t.current()}},[])},te=new Map,nn=function(e,t,r){var n=te.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){te.delete(e)},t)),te.set(e,j(j({},r),{timer:i}))},on=function(e){return te.get(e)},re=new Map,an=function(e){return re.get(e)},un=function(e,t){re.set(e,t),t.then(function(r){return re.delete(e),r}).catch(function(){re.delete(e)})},$={},cn=function(e,t){$[e]&&$[e].forEach(function(r){return r(t)})},he=function(e,t){return $[e]||($[e]=[]),$[e].push(t),function(){var n=$[e].indexOf(t);$[e].splice(n,1)}},fn=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,f=t.getCache,c=v.useRef(),l=v.useRef(),s=function(d,h){u?u(h):nn(d,i,h),cn(d,h.data)},p=function(d,h){return h===void 0&&(h=[]),f?f(h):on(d)};return Oe(function(){if(r){var d=p(r);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(a===-1||new Date().getTime()-d.time<=a)&&(e.state.loading=!1)),c.current=he(r,function(h){e.setState({data:h})})}},[]),W(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),r?{onBefore:function(d){var h=p(r,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:a===-1||new Date().getTime()-h.time<=a?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var m=an(r);return m&&m!==l.current?{servicePromise:m}:(m=d.apply(void 0,E([],y(h),!1)),l.current=m,un(r,m),{servicePromise:m})},onSuccess:function(d,h){var m;r&&((m=c.current)===null||m===void 0||m.call(c),s(r,{data:d,params:h,time:new Date().getTime()}),c.current=he(r,function(g){e.setState({data:g})}))},onMutate:function(d){var h;r&&((h=c.current)===null||h===void 0||h.call(c),s(r,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=he(r,function(m){e.setState({data:m})}))}}:{}},sn=Ge,ln=function(){return sn.Date.now()},dn=ln,vn=oe,pe=dn,Le=Dr,hn="Expected a function",pn=Math.max,mn=Math.min;function gn(e,t,r){var n,i,o,a,u,f,c=0,l=!1,s=!1,p=!0;if(typeof e!="function")throw new TypeError(hn);t=Le(t)||0,vn(r)&&(l=!!r.leading,s="maxWait"in r,o=s?pn(Le(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function d(w){var T=n,O=i;return n=i=void 0,c=w,a=e.apply(O,T),a}function h(w){return c=w,u=setTimeout(_,t),l?d(w):a}function m(w){var T=w-f,O=w-c,x=t-T;return s?mn(x,o-O):x}function g(w){var T=w-f,O=w-c;return f===void 0||T>=t||T<0||s&&O>=o}function _(){var w=pe();if(g(w))return b(w);u=setTimeout(_,m(w))}function b(w){return u=void 0,p&&n?d(w):(n=i=void 0,a)}function R(){u!==void 0&&clearTimeout(u),c=0,n=f=i=u=void 0}function P(){return u===void 0?a:b(pe())}function S(){var w=pe(),T=g(w);if(n=arguments,i=this,f=w,T){if(u===void 0)return h(f);if(s)return clearTimeout(u),u=setTimeout(_,t),d(f)}return u===void 0&&(u=setTimeout(_,t)),a}return S.cancel=R,S.flush=P,S}var wt=gn;const _t=B(wt);var yn=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=v.useRef(),u=v.useMemo(function(){var f={};return n!==void 0&&(f.leading=n),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[n,i,o]);return v.useEffect(function(){if(r){var f=e.runAsync.bind(e);return a.current=_t(function(c){c()},r,u),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(s,p){var d;(d=a.current)===null||d===void 0||d.call(a,function(){f.apply(void 0,E([],y(c),!1)).then(s).catch(p)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=f}}},[r,u]),r?{onCancel:function(){var f;(f=a.current)===null||f===void 0||f.cancel()}}:{}},bn=function(e,t){var r=t.loadingDelay,n=t.ready,i=v.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},H=!!(typeof window<"u"&&window.document&&window.document.createElement);function Se(){return H?document.visibilityState!=="hidden":!0}var K=[];function wn(e){return K.push(e),function(){var r=K.indexOf(e);K.splice(r,1)}}if(H){var _n=function(){if(Se())for(var e=0;e<K.length;e++){var t=K[e];t()}};window.addEventListener("visibilitychange",_n,!1)}var En=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=v.useRef(),f=v.useRef(),c=v.useRef(0),l=function(){var s;u.current&&clearTimeout(u.current),(s=f.current)===null||s===void 0||s.call(f)};return J(function(){r||l()},[r]),r?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!Se()?f.current=wn(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){l()}}:{}};function On(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,E([],y(n),!1)),setTimeout(function(){r=!1},t))}}function Sn(){return H&&typeof navigator.onLine<"u"?navigator.onLine:!0}var V=[];function Rn(e){return V.push(e),function(){var r=V.indexOf(e);r>-1&&V.splice(r,1)}}if(H){var $e=function(){if(!(!Se()||!Sn()))for(var e=0;e<V.length;e++){var t=V[e];t()}};window.addEventListener("visibilitychange",$e,!1),window.addEventListener("focus",$e,!1)}var Tn=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=v.useRef(),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return v.useEffect(function(){if(r){var u=On(e.refresh.bind(e),i);o.current=Rn(function(){u()})}return function(){a()}},[r,i]),W(function(){a()}),{}},jn=function(e,t){var r=t.retryInterval,n=t.retryCount,i=v.useRef(),o=v.useRef(0),a=v.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},Cn=wt,Pn=oe,xn="Expected a function";function An(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(xn);return Pn(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Cn(e,t,{leading:n,maxWait:t,trailing:i})}var Mn=An;const Et=B(Mn);var Dn=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=v.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),v.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=Et(function(f){f()},r,a),e.runAsync=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];return new Promise(function(l,s){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,E([],y(f),!1)).then(l).catch(s)})})},function(){var f;e.runAsync=u,(f=o.current)===null||f===void 0||f.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},Ln=function(e){v.useEffect(function(){e==null||e()},[])},Ot=function(){var e=y(v.useState({}),2),t=e[1];return v.useCallback(function(){return t({})},[])},$n=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=j(j(j({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=j(j({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,E([o],y(r),!1))}).filter(Boolean);return Object.assign.apply(Object,E([{}],y(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Y(this,void 0,void 0,function(){var n,i,o,a,u,f,c,l,s,p,d,h,m,g,_,b,R,P,S,w,T;return X(this,function(O){switch(O.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,f=u===void 0?!1:u,c=ae(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(j({loading:!0,params:t},c)),f)return[2,Promise.resolve(c.data)];(m=(h=this.options).onBefore)===null||m===void 0||m.call(h,t),O.label=1;case 1:return O.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,l||(l=(d=this.serviceRef).current.apply(d,E([],y(t),!1))),[4,l];case 2:return s=O.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:s,error:void 0,loading:!1}),(_=(g=this.options).onSuccess)===null||_===void 0||_.call(g,s,t),this.runPluginHandler("onSuccess",s,t),(R=(b=this.options).onFinally)===null||R===void 0||R.call(b,t,s,void 0),n===this.count&&this.runPluginHandler("onFinally",t,s,void 0),[2,s]);case 3:if(p=O.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(S=(P=this.options).onError)===null||S===void 0||S.call(P,p,t),this.runPluginHandler("onError",p,t),(T=(w=this.options).onFinally)===null||T===void 0||T.call(w,t,void 0,p),n===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,E([],y(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,E([],y(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,E([],y(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=F(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function In(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=ae(t,["manual","ready"]),f=j({manual:i,ready:a},u),c=L(e),l=Ot(),s=Oe(function(){var p=r.map(function(d){var h;return(h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,f)}).filter(Boolean);return new $n(c,f,l,Object.assign.apply(Object,E([{}],y(p),!1)))},[]);return s.options=f,s.pluginImpls=r.map(function(p){return p(s,f)}),Ln(function(){if(!i&&a){var p=s.state.params||t.defaultParams||[];s.run.apply(s,E([],y(p),!1))}}),W(function(){s.cancel()}),{loading:s.state.loading,data:s.state.data,error:s.state.error,params:s.state.params||[],cancel:D(s.cancel.bind(s)),refresh:D(s.refresh.bind(s)),refreshAsync:D(s.refreshAsync.bind(s)),run:D(s.run.bind(s)),runAsync:D(s.runAsync.bind(s)),mutate:D(s.mutate.bind(s))}}function Fn(e,t,r){return In(e,t,E(E([],y([]),!1),[yn,bn,En,Tn,Dn,bt,fn,jn],!1))}function zn(e){return F(e[Symbol.asyncIterator])}function Ai(e,t){v.useEffect(function(){var r=e(),n=!1;function i(){return Y(this,void 0,void 0,function(){var o;return X(this,function(a){switch(a.label){case 0:if(!zn(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function Bn(e,t){var r=y(v.useState(e),2),n=r[0],i=r[1],o=v.useMemo(function(){var a=!e,u=function(){return i(function(s){return s===e?a:e})},f=function(s){return i(s)},c=function(){return i(e)},l=function(){return i(a)};return{toggle:u,set:f,setLeft:c,setRight:l}},[]);return[n,o]}function Mi(e){var t=y(Bn(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=v.useMemo(function(){var u=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:f}},[]);return[r,a]}function z(e,t){if(H){if(!e)return t;var r;return F(e)?r=e():"current"in e?r=e.current:r=e,r}}var St=function(e){var t=function(r,n,i){var o=v.useRef(!1),a=v.useRef([]),u=v.useRef([]),f=v.useRef();e(function(){var c,l=Array.isArray(i)?i:[i],s=l.map(function(p){return z(p)});if(!o.current){o.current=!0,a.current=s,u.current=n,f.current=r();return}(s.length!==a.current.length||!be(a.current,s)||!be(u.current,n))&&((c=f.current)===null||c===void 0||c.call(f),a.current=s,u.current=n,f.current=r())}),W(function(){var c;(c=f.current)===null||c===void 0||c.call(f),o.current=!1})};return t},Re=St(v.useEffect),me=function(e){if(!e)return 0;var t=zt(e).valueOf()-Date.now();return t<0?0:t},Wn=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},Di=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=v.useMemo(function(){return ce(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?u:n,c=y(v.useState(function(){return me(f)}),2),l=c[0],s=c[1],p=L(a);v.useEffect(function(){if(!f){s(0);return}s(me(f));var h=setInterval(function(){var m,g=me(f);s(g),g===0&&(clearInterval(h),(m=p.current)===null||m===void 0||m.call(p))},o);return function(){return clearInterval(h)}},[f,o]);var d=v.useMemo(function(){return Wn(l)},[l]);return[l,d]};function Hn(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return _t(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,E([],y(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Li(e,t){var r=y(v.useState(e),2),n=r[0],i=r[1],o=Hn(function(){i(e)},t).run;return v.useEffect(function(){o()},[e]),n}var Nn=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),Ut(e,t)};function we(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=L(t);Re(function(){if(i){var a=z(r.target,window);if(a!=null&&a.addEventListener){var u=function(c){return o.current(c)},f=Array.isArray(e)?e:[e];return f.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function $i(e){var t=y(v.useState(e),2),r=t[0],n=t[1],i=L(r),o=v.useCallback(function(){return i.current},[]);return[r,n,o]}var Gn=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Ie=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Un=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ii=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,f=t.reloadDeps,c=f===void 0?[]:f,l=t.manual,s=t.onBefore,p=t.onSuccess,d=t.onError,h=t.onFinally,m=y(v.useState(),2),g=m[0],_=m[1],b=y(v.useState(!1),2),R=b[0],P=b[1],S=u==="top",w=v.useRef(),T=v.useRef(0),O=v.useMemo(function(){return n?n(g):!1},[g]),x=Fn(function(A){return Y(void 0,void 0,void 0,function(){var C,M,N,k;return X(this,function(Ce){switch(Ce.label){case 0:return[4,e(A)];case 1:return C=Ce.sent(),_(A?j(j({},C),{list:S?E(E([],y(C.list),!1),y((N=A.list)!==null&&N!==void 0?N:[]),!1):E(E([],y((k=A.list)!==null&&k!==void 0?k:[]),!1),y(C.list),!1)}):j(j({},C),{list:E([],y((M=C.list)!==null&&M!==void 0?M:[]),!1)})),[2,C]}})})},{manual:l,onFinally:function(A,C,M){P(!1),h==null||h(C,M)},onBefore:function(){return s==null?void 0:s()},onSuccess:function(A){setTimeout(function(){if(S){var C=z(r);if(C=C===document?document.documentElement:C,C){var M=Ie(C);C.scrollTo(0,M-T.current)}}else je()}),p==null||p(A)},onError:function(A){return d==null?void 0:d(A)}}),Q=x.loading,se=x.error,le=x.run,Te=x.runAsync,Dt=x.cancel,de=D(function(){O||(P(!0),le(g))}),Lt=D(function(){return O?Promise.reject():(P(!0),Te(g))}),$t=function(){return P(!1),le()},It=function(){return P(!1),Te()},je=function(){var A=z(r);if(A){var C=A===document?document.documentElement:A,M=Gn(C),N=Ie(C),k=Un(C);S?(w.current!==void 0&&w.current>M&&M<=o&&de(),w.current=M,T.current=N-M):N-M<=k+o&&de()}};return we("scroll",function(){Q||R||je()},{target:r}),J(function(){le()},E([],y(c),!1)),{data:g,loading:!R&&Q,error:se,loadingMore:R,noMore:O,loadMore:de,loadMoreAsync:Lt,reload:D($t),reloadAsync:D(It),mutate:_,cancel:Dt}},Fi=function(e,t,r){r===void 0&&(r={});var n=D(e),i=v.useRef(null),o=v.useCallback(function(){i.current&&clearInterval(i.current)},[]);return v.useEffect(function(){if(!(!ce(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},kn=function(e,t,r){var n=v.useRef(),i=v.useRef(0);Nn(t,n.current)||(i.current+=1),n.current=t,Re(e,[i.current],r)},qn=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),Rt={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:qn?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},_e={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?Rt.meta.includes(e.keyCode):e.metaKey}};function Tt(e){return tn(e)||ce(e)}function Kn(e){var t=Object.keys(_e).reduce(function(r,n){return _e[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Fe(e,t,r){var n,i;if(!e.key)return!1;if(ce(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=I(o),f=u.next();!f.done;f=u.next()){var c=f.value,l=_e[c],s=Rt[c.toLowerCase()];(l&&l(e)||s&&s===e.keyCode)&&a++}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&Kn(e)===o.length?t:!1:a===o.length?t:!1}function Vn(e,t){return F(e)?e:Tt(e)?function(r){return Fe(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Fe(r,n,t)})}:function(){return!!e}}var Jn=["keydown"];function zi(e,t,r){var n=r||{},i=n.events,o=i===void 0?Jn:i,a=n.target,u=n.exactMatch,f=u===void 0?!1:u,c=n.useCapture,l=c===void 0?!1:c,s=L(t),p=L(e);kn(function(){var d,h,m,g=z(a,window);if(g){var _=function(S){var w,T=Vn(p.current,f),O=T(S),x=Tt(O)?O:S.key;if(O)return(w=s.current)===null||w===void 0?void 0:w.call(s,S,x)};try{for(var b=I(o),R=b.next();!R.done;R=b.next()){var P=R.value;(m=g==null?void 0:g.addEventListener)===null||m===void 0||m.call(g,P,_,l)}}catch(S){d={error:S}}finally{try{R&&!R.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}return function(){var S,w,T;try{for(var O=I(o),x=O.next();!x.done;x=O.next()){var Q=x.value;(T=g==null?void 0:g.removeEventListener)===null||T===void 0||T.call(g,Q,_,l)}}catch(se){S={error:se}}finally{try{x&&!x.done&&(w=O.return)&&w.call(O)}finally{if(S)throw S.error}}}}},[o],a)}var ze="AHOOKS_SYNC_STORAGE_EVENT_NAME";function Yn(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,f=u===void 0?function(b){console.error(b)}:u;try{i=e()}catch(b){f(b)}var c=function(b){return n.serializer?n.serializer(b):JSON.stringify(b)},l=function(b){return n.deserializer?n.deserializer(b):JSON.parse(b)};function s(){try{var b=i==null?void 0:i.getItem(r);if(b)return l(b)}catch(R){f(R)}return F(n.defaultValue)?n.defaultValue():n.defaultValue}var p=y(v.useState(s),2),d=p[0],h=p[1];J(function(){h(s())},[r]);var m=function(b){var R=F(b)?b(d):b;a||h(R);try{var P=void 0,S=i==null?void 0:i.getItem(r);rn(R)?(P=null,i==null||i.removeItem(r)):(P=c(R),i==null||i.setItem(r,P)),dispatchEvent(new CustomEvent(ze,{detail:{key:r,newValue:P,oldValue:S,storageArea:i}}))}catch(w){f(w)}},g=function(b){b.key!==r||b.storageArea!==i||h(s())},_=function(b){g(b.detail)};return we("storage",g,{enable:a}),we(ze,_,{enable:a}),[d,D(m)]}return t}var Bi=Yn(function(){return H?localStorage:void 0});function Xn(e){var t=v.useRef(0),r=y(v.useState(e),2),n=r[0],i=r[1],o=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return W(function(){cancelAnimationFrame(t.current)}),[n,o]}var Qn=function(e,t){return!Object.is(e,t)};function Wi(e,t){t===void 0&&(t=Qn);var r=v.useRef(),n=v.useRef();return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var Be=new WeakMap,We=new WeakMap;function jt(e,t){var r=Be.get(e);if(r)return r;if(We.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),f=Reflect.getOwnPropertyDescriptor(i,o);return!(f!=null&&f.configurable)&&!(f!=null&&f.writable)?u:Jr(u)||Array.isArray(u)?jt(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return Be.set(e,n),We.set(n,e),n}function Hi(e){var t=Ot(),r=v.useRef(e),n=Oe(function(){return jt(r.current,function(){t()})},[]);return n}var Ni=function(e){var t=y(v.useState(e),2),r=t[0],n=t[1],i=D(function(o){n(function(a){var u=F(o)?o(a):o;return u?j(j({},a),u):a})});return[r,i]},Ct=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),Ee=typeof window<"u"&&typeof document<"u"&&window.document===document,ne=function(){return typeof ve<"u"&&ve.Math===Math?ve:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Zn=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ne):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),ei=2;function ti(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){Zn(o)}function u(){var f=Date.now();if(r){if(f-i<ei)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=f}return u}var ri=20,ni=["top","right","bottom","left","width","height","size","weight"],ii=typeof MutationObserver<"u",oi=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ti(this.refresh.bind(this),ri)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ee||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ii?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ee||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=ni.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},U=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ne},xt=fe(0,0,0,0);function ie(e){return parseFloat(e)||0}function He(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+ie(o)},0)}function ai(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=ie(a)}return r}function ui(e){var t=e.getBBox();return fe(0,0,t.width,t.height)}function ci(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return xt;var n=U(e).getComputedStyle(e),i=ai(n),o=i.left+i.right,a=i.top+i.bottom,u=ie(n.width),f=ie(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=He(n,"left","right")+o),Math.round(f+a)!==r&&(f-=He(n,"top","bottom")+a)),!si(e)){var c=Math.round(u+o)-t,l=Math.round(f+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(l)!==1&&(f-=l)}return fe(i.left,i.top,u,f)}var fi=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof U(e).SVGGraphicsElement}:function(e){return e instanceof U(e).SVGElement&&typeof e.getBBox=="function"}}();function si(e){return e===U(e).document.documentElement}function li(e){return Ee?fi(e)?ui(e):ci(e):xt}function di(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Pt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function fe(e,t,r,n){return{x:e,y:t,width:r,height:n}}var vi=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fe(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=li(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),hi=function(){function e(t,r){var n=di(r);Pt(this,{target:t,contentRect:n})}return e}(),pi=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Ct,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof U(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new vi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof U(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new hi(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),At=typeof WeakMap<"u"?new WeakMap:new Ct,Mt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=oi.getInstance(),n=new pi(t,r,this);At.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Mt.prototype[e]=function(){var t;return(t=At.get(this))[e].apply(t,arguments)}});var mi=function(){return typeof ne.ResizeObserver<"u"?ne.ResizeObserver:Mt}(),gi=St(v.useLayoutEffect),yi=H?gi:Re;function Gi(e){var t=y(Xn(function(){var i=z(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return yi(function(){var i=z(e);if(i){var o=new mi(function(a){a.forEach(function(u){var f=u.target,c=f.clientWidth,l=f.clientHeight;n({width:c,height:l})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function Ui(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return Et(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,E([],y(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var bi=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},wi=bi,Ne={"text/plain":"Text","text/html":"Url",default:"Text"},_i="Copy to clipboard: #{key}, Enter";function Ei(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Oi(e,t){var r,n,i,o,a,u,f=!1;t||(t={}),r=t.debug||!1;try{i=wi(),o=document.createRange(),a=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=Ne[t.format]||Ne.default;window.clipboardData.setData(s,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");f=!0}catch(l){r&&console.error("unable to copy using execCommand: ",l),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),n=Ei("message"in t?t.message:_i),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return f}var Si=Oi;const ki=B(Si),qi=Ft(en);function Ri(){var e=v.useRef(!1),t=v.useCallback(function(){return e.current},[]);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Ti(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=v.useRef(0),i=Ri(),o=v.useState(r),a=o[0],u=o[1],f=v.useCallback(function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var s=++n.current;return a.loading||u(function(p){return j(j({},p),{loading:!0})}),e.apply(void 0,c).then(function(p){return i()&&s===n.current&&u({value:p,loading:!1}),p},function(p){return i()&&s===n.current&&u({error:p,loading:!1}),p})},t);return[a,f]}function Ki(e,t){t===void 0&&(t=[]);var r=Ti(e,t,{loading:!0}),n=r[0],i=r[1];return v.useEffect(function(){i()},[i]),n}export{J as A,Fn as B,xi as C,W as D,L as E,Ui as F,_r as G,Di as H,Ni as I,qi as J,Ii as K,Ki as L,Ot as M,wt as N,zi as O,Mi as P,_t as Q,Et as R,$i as S,qe as _,mr as a,oe as b,Ge as c,Ue as d,zr as e,Ke as f,qt as g,Vr as h,Ut as i,$r as j,Hi as k,Xe as l,ki as m,Gi as n,Oe as o,Pi as p,Hn as q,Rr as r,Fi as s,Dr as t,D as u,Li as v,Ai as w,Bi as x,Ln as y,Wi as z};
@@ -1,11 +0,0 @@
1
- import{e as dn,g as pn,a as oi}from"./vendor-react-D-afvo_7.js";var mn={exports:{}};(function(t,e){(function(s,a){t.exports=a()})(dn,function(){var s=1e3,a=6e4,m=36e5,f="millisecond",M="second",S="minute",F="hour",C="day",y="week",_="month",O="quarter",P="year",I="date",$="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var c=["th","st","nd","rd"],d=l%100;return"["+l+(c[(d-20)%10]||c[d]||c[0])+"]"}},Q=function(l,c,d){var x=String(l);return!x||x.length>=c?l:""+Array(c+1-x.length).join(d)+l},Y={s:Q,z:function(l){var c=-l.utcOffset(),d=Math.abs(c),x=Math.floor(d/60),E=d%60;return(c<=0?"+":"-")+Q(x,2,"0")+":"+Q(E,2,"0")},m:function l(c,d){if(c.date()<d.date())return-l(d,c);var x=12*(d.year()-c.year())+(d.month()-c.month()),E=c.clone().add(x,_),p=d-E<0,i=c.clone().add(x+(p?-1:1),_);return+(-(x+(d-E)/(p?E-i:i-E))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:_,y:P,w:y,d:C,D:I,h:F,m:S,s:M,ms:f,Q:O}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},it="en",at={};at[it]=j;var Ut="$isDayjsObject",ht=function(l){return l instanceof r||!(!l||!l[Ut])},G=function l(c,d,x){var E;if(!c)return it;if(typeof c=="string"){var p=c.toLowerCase();at[p]&&(E=p),d&&(at[p]=d,E=p);var i=c.split("-");if(!E&&i.length>1)return l(i[0])}else{var w=c.name;at[w]=c,E=w}return!x&&E&&(it=E),E||!x&&it},rt=function(l,c){if(ht(l))return l.clone();var d=typeof c=="object"?c:{};return d.date=l,d.args=arguments,new r(d)},v=Y;v.l=G,v.i=ht,v.w=function(l,c){return rt(l,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var r=function(){function l(d){this.$L=G(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[Ut]=!0}var c=l.prototype;return c.parse=function(d){this.$d=function(x){var E=x.date,p=x.utc;if(E===null)return new Date(NaN);if(v.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var i=E.match(N);if(i){var w=i[2]-1||0,L=(i[7]||"0").substring(0,3);return p?new Date(Date.UTC(i[1],w,i[3]||1,i[4]||0,i[5]||0,i[6]||0,L)):new Date(i[1],w,i[3]||1,i[4]||0,i[5]||0,i[6]||0,L)}}return new Date(E)}(d),this.init()},c.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},c.$utils=function(){return v},c.isValid=function(){return this.$d.toString()!==$},c.isSame=function(d,x){var E=rt(d);return this.startOf(x)<=E&&E<=this.endOf(x)},c.isAfter=function(d,x){return rt(d)<this.startOf(x)},c.isBefore=function(d,x){return this.endOf(x)<rt(d)},c.$g=function(d,x,E){return v.u(d)?this[x]:this.set(E,d)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(d,x){var E=this,p=!!v.u(x)||x,i=v.p(d),w=function(K,z){var Lt=v.w(E.$u?Date.UTC(E.$y,z,K):new Date(E.$y,z,K),E);return p?Lt:Lt.endOf(C)},L=function(K,z){return v.w(E.toDate()[K].apply(E.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(z)),E)},U=this.$W,T=this.$M,k=this.$D,J="set"+(this.$u?"UTC":"");switch(i){case P:return p?w(1,0):w(31,11);case _:return p?w(1,T):w(0,T+1);case y:var V=this.$locale().weekStart||0,Nt=(U<V?U+7:U)-V;return w(p?k-Nt:k+(6-Nt),T);case C:case I:return L(J+"Hours",0);case F:return L(J+"Minutes",1);case S:return L(J+"Seconds",2);case M:return L(J+"Milliseconds",3);default:return this.clone()}},c.endOf=function(d){return this.startOf(d,!1)},c.$set=function(d,x){var E,p=v.p(d),i="set"+(this.$u?"UTC":""),w=(E={},E[C]=i+"Date",E[I]=i+"Date",E[_]=i+"Month",E[P]=i+"FullYear",E[F]=i+"Hours",E[S]=i+"Minutes",E[M]=i+"Seconds",E[f]=i+"Milliseconds",E)[p],L=p===C?this.$D+(x-this.$W):x;if(p===_||p===P){var U=this.clone().set(I,1);U.$d[w](L),U.init(),this.$d=U.set(I,Math.min(this.$D,U.daysInMonth())).$d}else w&&this.$d[w](L);return this.init(),this},c.set=function(d,x){return this.clone().$set(d,x)},c.get=function(d){return this[v.p(d)]()},c.add=function(d,x){var E,p=this;d=Number(d);var i=v.p(x),w=function(T){var k=rt(p);return v.w(k.date(k.date()+Math.round(T*d)),p)};if(i===_)return this.set(_,this.$M+d);if(i===P)return this.set(P,this.$y+d);if(i===C)return w(1);if(i===y)return w(7);var L=(E={},E[S]=a,E[F]=m,E[M]=s,E)[i]||1,U=this.$d.getTime()+d*L;return v.w(U,this)},c.subtract=function(d,x){return this.add(-1*d,x)},c.format=function(d){var x=this,E=this.$locale();if(!this.isValid())return E.invalidDate||$;var p=d||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),w=this.$H,L=this.$m,U=this.$M,T=E.weekdays,k=E.months,J=E.meridiem,V=function(z,Lt,tt,ot){return z&&(z[Lt]||z(x,p))||tt[Lt].slice(0,ot)},Nt=function(z){return v.s(w%12||12,z,"0")},K=J||function(z,Lt,tt){var ot=z<12?"AM":"PM";return tt?ot.toLowerCase():ot};return p.replace(Z,function(z,Lt){return Lt||function(tt){switch(tt){case"YY":return String(x.$y).slice(-2);case"YYYY":return v.s(x.$y,4,"0");case"M":return U+1;case"MM":return v.s(U+1,2,"0");case"MMM":return V(E.monthsShort,U,k,3);case"MMMM":return V(k,U);case"D":return x.$D;case"DD":return v.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return V(E.weekdaysMin,x.$W,T,2);case"ddd":return V(E.weekdaysShort,x.$W,T,3);case"dddd":return T[x.$W];case"H":return String(w);case"HH":return v.s(w,2,"0");case"h":return Nt(1);case"hh":return Nt(2);case"a":return K(w,L,!0);case"A":return K(w,L,!1);case"m":return String(L);case"mm":return v.s(L,2,"0");case"s":return String(x.$s);case"ss":return v.s(x.$s,2,"0");case"SSS":return v.s(x.$ms,3,"0");case"Z":return i}return null}(z)||i.replace(":","")})},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(d,x,E){var p,i=this,w=v.p(x),L=rt(d),U=(L.utcOffset()-this.utcOffset())*a,T=this-L,k=function(){return v.m(i,L)};switch(w){case P:p=k()/12;break;case _:p=k();break;case O:p=k()/3;break;case y:p=(T-U)/6048e5;break;case C:p=(T-U)/864e5;break;case F:p=T/m;break;case S:p=T/a;break;case M:p=T/s;break;default:p=T}return E?p:v.a(p)},c.daysInMonth=function(){return this.endOf(_).$D},c.$locale=function(){return at[this.$L]},c.locale=function(d,x){if(!d)return this.$L;var E=this.clone(),p=G(d,x,!0);return p&&(E.$L=p),E},c.clone=function(){return v.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},l}(),u=r.prototype;return rt.prototype=u,[["$ms",f],["$s",M],["$m",S],["$H",F],["$W",C],["$M",_],["$y",P],["$D",I]].forEach(function(l){u[l[1]]=function(c){return this.$g(c,l[0],l[1])}}),rt.extend=function(l,c){return l.$i||(l(c,r,rt),l.$i=!0),rt},rt.locale=G,rt.isDayjs=ht,rt.unix=function(l){return rt(1e3*l)},rt.en=at[it],rt.Ls=at,rt.p={},rt})})(mn);var si=mn.exports;const Fa=pn(si),ai=globalThis||void 0||self,ui=/[^\0-\x7E]/,fi=/[\x2E\u3002\uFF0E\uFF61]/g,hi={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},ae=Math.floor,gr=String.fromCharCode;function Gr(t){throw new RangeError(hi[t])}const Yr=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},li=function(t,e,s){let a=0;for(t=s?ae(t/700):t>>1,t+=ae(t/e);t>455;a+=36)t=ae(t/35);return ae(a+36*t/(t+38))};function ci(t){return function(e,s){const a=e.split("@");let m="";a.length>1&&(m=a[0]+"@",e=a[1]);const f=function(M,S){const F=[];let C=M.length;for(;C--;)F[C]=S(M[C]);return F}((e=e.replace(fi,".")).split("."),s).join(".");return m+f}(t,function(e){return ui.test(e)?"xn--"+function(s){const a=[],m=(s=function(y){const _=[];let O=0;const P=y.length;for(;O<P;){const I=y.charCodeAt(O++);if(I>=55296&&I<=56319&&O<P){const $=y.charCodeAt(O++);(64512&$)==56320?_.push(((1023&I)<<10)+(1023&$)+65536):(_.push(I),O--)}else _.push(I)}return _}(s)).length;let f=128,M=0,S=72;for(const y of s)y<128&&a.push(gr(y));const F=a.length;let C=F;for(F&&a.push("-");C<m;){let y=2147483647;for(const O of s)O>=f&&O<y&&(y=O);const _=C+1;y-f>ae((2147483647-M)/_)&&Gr("overflow"),M+=(y-f)*_,f=y;for(const O of s)if(O<f&&++M>2147483647&&Gr("overflow"),O==f){let P=M;for(let I=36;;I+=36){const $=I<=S?1:I>=S+26?26:I-S;if(P<$)break;const N=P-$,Z=36-$;a.push(gr(Yr($+N%Z,0))),P=ae(N/Z)}a.push(gr(Yr(P,0))),S=li(M,_,C==F),M=0,++C}++M,++f}return a.join("")}(e):e})}const gn=/#/g,yn=/&/g,wn=/\//g,di=/=/g,pi=/\?/g,Pe=/\+/g,vn=/%5e/gi,mi=/%60/gi,gi=/%7b/gi,yi=/%7c/gi,wi=/%7d/gi,vi=/%20/gi,Mi=/%2f/gi,xi=/%252f/gi;function ke(t){return encodeURI(""+t).replace(yi,"|")}function De(t){return ke(t).replace(gi,"{").replace(wi,"}").replace(vn,"^")}function Ie(t){return ke(typeof t=="string"?t:JSON.stringify(t)).replace(Pe,"%2B").replace(vi,"+").replace(gn,"%23").replace(yn,"%26").replace(mi,"`").replace(vn,"^").replace(wn,"%2F")}function Re(t){return Ie(t).replace(di,"%3D")}function qe(t){return ke(t).replace(gn,"%23").replace(pi,"%3F").replace(xi,"%2F").replace(yn,"%26").replace(Pe,"%2B")}function Ei(t){return qe(t).replace(wn,"%2F")}function $t(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function Lr(t){return $t(t.replace(Mi,"%252F"))}function Mn(t){return $t(t.replace(Pe," "))}function xn(t){return $t(t.replace(Pe," "))}function Oe(t=""){return ci(t)}function te(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const s of t.split("&")){const a=s.match(/([^=]+)=?(.*)/)||[];if(a.length<2)continue;const m=Mn(a[1]);if(m==="__proto__"||m==="constructor")continue;const f=xn(a[2]||"");e[m]===void 0?e[m]=f:Array.isArray(e[m])?e[m].push(f):e[m]=[e[m],f]}return e}function En(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(s=>`${Re(t)}=${Ie(s)}`).join("&"):`${Re(t)}=${Ie(e)}`:Re(t)}function Me(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>En(e,t[e])).filter(Boolean).join("&")}const bi=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,bn=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Si=/^([/\\]\s*){2,}[^/\\]/,Ci=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ri=/\/$|\/\?|\/#/,Bi=/^\.?\//;function Ai(t){return["./","../"].some(e=>t.startsWith(e))}function He(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?bi.test(t):bn.test(t)||(e.acceptRelative?Si.test(t):!1)}function _i(t){return!!t&&Ci.test(t)}function Le(t="",e){return e?Ri.test(t):t.endsWith("/")}function we(t="",e){if(!e)return(Le(t)?t.slice(0,-1):t)||"/";if(!Le(t,!0))return t||"/";let s=t,a="";const m=t.indexOf("#");m>=0&&(s=t.slice(0,m),a=t.slice(m));const[f,...M]=s.split("?");return((f.endsWith("/")?f.slice(0,-1):f)||"/")+(M.length>0?`?${M.join("?")}`:"")+a}function fe(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(Le(t,!0))return t||"/";let s=t,a="";const m=t.indexOf("#");if(m>=0&&(s=t.slice(0,m),a=t.slice(m),!s))return a;const[f,...M]=s.split("?");return f+"/"+(M.length>0?`?${M.join("?")}`:"")+a}function Ur(t=""){return t.startsWith("/")}function Nr(t=""){return(Ur(t)?t.slice(1):t)||"/"}function Er(t=""){return Ur(t)?t:"/"+t}function Fi(t=""){return t.split("://").map(e=>e.replace(/\/{2,}/g,"/")).join("://")}function Ti(t,e){if($r(e)||He(t))return t;const s=we(e);return t.startsWith(s)?t:Sn(s,t)}function Ii(t,e){if($r(e))return t;const s=we(e);if(!t.startsWith(s))return t;const a=t.slice(s.length);return a[0]==="/"?a:"/"+a}function Oi(t,e){const s=Ht(t),a={...te(s.search),...e};return s.search=Me(a),de(s)}function Li(t){return te(Ht(t).search)}function $r(t){return!t||t==="/"}function Pr(t){return t&&t!=="/"}function Sn(t,...e){let s=t||"";for(const a of e.filter(m=>Pr(m)))if(s){const m=a.replace(Bi,"");s=fe(s)+m}else s=a;return s}function Ui(...t){var M,S,F,C;const e=/\/(?!\/)/,s=t.filter(Boolean),a=[];let m=0;for(const y of s)if(!(!y||y==="/")){for(const[_,O]of y.split(e).entries())if(!(!O||O===".")){if(O===".."){if(a.length===1&&He(a[0]))continue;a.pop(),m--;continue}if(_===1&&((M=a[a.length-1])!=null&&M.endsWith(":/"))){a[a.length-1]+="/"+O;continue}a.push(O),m++}}let f=a.join("/");return m>=0?(S=s[0])!=null&&S.startsWith("/")&&!f.startsWith("/")?f="/"+f:(F=s[0])!=null&&F.startsWith("./")&&!f.startsWith("./")&&(f="./"+f):f="../".repeat(-1*m)+f,(C=s[s.length-1])!=null&&C.endsWith("/")&&!f.endsWith("/")&&(f+="/"),f}function Ni(t){return je(t,"http://")}function $i(t){return je(t,"https://")}function Pi(t){return je(t,"")}function je(t,e){let s=t.match(bn);return s||(s=t.match(/^\/{2,}/)),s?e+t.slice(s[0].length):e+t}function ki(t){const e=Ht(t);return e.pathname=qe(Lr(e.pathname)),e.hash=De($t(e.hash)),e.host=Oe($t(e.host)),e.search=Me(te(e.search)),de(e)}function Di(t="",...e){if(typeof t!="string")throw new TypeError(`URL input should be string received ${typeof t} (${t})`);const s=e.filter(m=>Pr(m));if(s.length===0)return t;const a=Ht(t);for(const m of s){const f=Ht(m);if(f.pathname&&(a.pathname=fe(a.pathname)+Nr(f.pathname)),f.hash&&f.hash!=="#"&&(a.hash=f.hash),f.search&&f.search!=="?")if(a.search&&a.search!=="?"){const M=Me({...te(a.search),...te(f.search)});a.search=M.length>0?"?"+M:""}else a.search=f.search}return de(a)}function qi(t,e){return $t(we(t))===$t(we(e))}function Hi(t,e,s={}){return s.trailingSlash||(t=fe(t),e=fe(e)),s.leadingSlash||(t=Er(t),e=Er(e)),s.encoding||(t=$t(t),e=$t(e)),t===e}function ji(t,e){if(!e||e==="#")return t;const s=Ht(t);return s.hash=e===""?"":"#"+De(e),de(s)}function zi(t){return de({...Ht(t),hash:""})}function Wi(t){const e=Ht(t);return(e.pathname||"/")+e.search+e.hash}const Cn=Symbol.for("ufo:protocolRelative");function Ht(t="",e){const s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){const[,_,O=""]=s;return{protocol:_.toLowerCase(),pathname:O,href:_+O,auth:"",host:"",search:"",hash:""}}if(!He(t,{acceptRelative:!0}))return e?Ht(e+t):br(t);const[,a="",m,f=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,M="",S=""]=f.match(/([^#/?]*)(.*)?/)||[];a==="file:"&&(S=S.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:F,search:C,hash:y}=br(S);return{protocol:a.toLowerCase(),auth:m?m.slice(0,Math.max(0,m.length-1)):"",host:M,pathname:F,search:C,hash:y,[Cn]:!a}}function br(t=""){const[e="",s="",a=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:s,hash:a}}function Be(t=""){const[e,s]=t.split(":");return{username:$t(e),password:$t(s)}}function Sr(t=""){const[e,s]=(t.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:$t(e),port:s}}function de(t){const e=t.pathname||"",s=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",a=t.hash||"",m=t.auth?t.auth+"@":"",f=t.host||"";return(t.protocol||t[Cn]?(t.protocol||"")+"//":"")+m+f+e+s+a}const Ji=/\/([^/]+\.[^/]+)$/,Zi=/\/([^/]+)$/;function Vi(t="",{strict:e}){const{pathname:s}=Ht(t),a=e?s.match(Ji):s.match(Zi);return a?a[1]:void 0}var Ki=Object.defineProperty,Gi=(t,e,s)=>e in t?Ki(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,oe=(t,e,s)=>(Gi(t,typeof e!="symbol"?e+"":e,s),s);class Rn{constructor(e=""){if(oe(this,"protocol"),oe(this,"host"),oe(this,"auth"),oe(this,"pathname"),oe(this,"query",{}),oe(this,"hash"),typeof e!="string")throw new TypeError(`URL input should be string received ${typeof e} (${e})`);const s=Ht(e);this.protocol=$t(s.protocol),this.host=$t(s.host),this.auth=$t(s.auth),this.pathname=Lr(s.pathname),this.query=te(s.search),this.hash=$t(s.hash)}get hostname(){return Sr(this.host).hostname}get port(){return Sr(this.host).port||""}get username(){return Be(this.auth).username}get password(){return Be(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const e=Me(this.query);return e.length>0?"?"+e:""}get searchParams(){const e=new URLSearchParams;for(const s in this.query){const a=this.query[s];if(Array.isArray(a))for(const m of a)e.append(s,m);else e.append(s,typeof a=="string"?a:JSON.stringify(a))}return e}get origin(){return(this.protocol?this.protocol+"//":"")+Oe(this.host)}get fullpath(){return qe(this.pathname)+this.search+De(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:e,password:s}=Be(this.auth);return encodeURIComponent(e)+(s?":"+encodeURIComponent(s):"")}get href(){const e=this.encodedAuth,s=(this.protocol?this.protocol+"//":"")+(e?e+"@":"")+Oe(this.host);return this.hasProtocol&&this.isAbsolute?s+this.fullpath:this.fullpath}append(e){if(e.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,e.query),e.pathname&&(this.pathname=fe(this.pathname)+Nr(e.pathname)),e.hash&&(this.hash=e.hash)}toJSON(){return this.href}toString(){return this.href}}function Yi(t){return new Rn(t)}const Ta=Object.freeze(Object.defineProperty({__proto__:null,$URL:Rn,cleanDoubleSlashes:Fi,createURL:Yi,decode:$t,decodePath:Lr,decodeQueryKey:Mn,decodeQueryValue:xn,encode:ke,encodeHash:De,encodeHost:Oe,encodeParam:Ei,encodePath:qe,encodeQueryItem:En,encodeQueryKey:Re,encodeQueryValue:Ie,getQuery:Li,hasLeadingSlash:Ur,hasProtocol:He,hasTrailingSlash:Le,isEmptyURL:$r,isEqual:Hi,isNonEmptyURL:Pr,isRelative:Ai,isSamePath:qi,isScriptProtocol:_i,joinRelativeURL:Ui,joinURL:Sn,normalizeURL:ki,parseAuth:Be,parseFilename:Vi,parseHost:Sr,parsePath:br,parseQuery:te,parseURL:Ht,resolveURL:Di,stringifyParsedURL:de,stringifyQuery:Me,withBase:Ti,withFragment:ji,withHttp:Ni,withHttps:$i,withLeadingSlash:Er,withProtocol:je,withQuery:Oi,withTrailingSlash:fe,withoutBase:Ii,withoutFragment:zi,withoutHost:Wi,withoutLeadingSlash:Nr,withoutProtocol:Pi,withoutTrailingSlash:we},Symbol.toStringTag,{value:"Module"}));function Xi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bn={exports:{}},wt=Bn.exports={},Wt,Jt;function Cr(){throw new Error("setTimeout has not been defined")}function Rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Wt=setTimeout:Wt=Cr}catch{Wt=Cr}try{typeof clearTimeout=="function"?Jt=clearTimeout:Jt=Rr}catch{Jt=Rr}})();function An(t){if(Wt===setTimeout)return setTimeout(t,0);if((Wt===Cr||!Wt)&&setTimeout)return Wt=setTimeout,setTimeout(t,0);try{return Wt(t,0)}catch{try{return Wt.call(null,t,0)}catch{return Wt.call(this,t,0)}}}function Qi(t){if(Jt===clearTimeout)return clearTimeout(t);if((Jt===Rr||!Jt)&&clearTimeout)return Jt=clearTimeout,clearTimeout(t);try{return Jt(t)}catch{try{return Jt.call(null,t)}catch{return Jt.call(this,t)}}}var Vt=[],ue=!1,Yt,Ae=-1;function to(){!ue||!Yt||(ue=!1,Yt.length?Vt=Yt.concat(Vt):Ae=-1,Vt.length&&_n())}function _n(){if(!ue){var t=An(to);ue=!0;for(var e=Vt.length;e;){for(Yt=Vt,Vt=[];++Ae<e;)Yt&&Yt[Ae].run();Ae=-1,e=Vt.length}Yt=null,ue=!1,Qi(t)}}wt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)e[s-1]=arguments[s];Vt.push(new Fn(t,e)),Vt.length===1&&!ue&&An(_n)};function Fn(t,e){this.fun=t,this.array=e}Fn.prototype.run=function(){this.fun.apply(null,this.array)};wt.title="browser";wt.browser=!0;wt.env={};wt.argv=[];wt.version="";wt.versions={};function Kt(){}wt.on=Kt;wt.addListener=Kt;wt.once=Kt;wt.off=Kt;wt.removeListener=Kt;wt.removeAllListeners=Kt;wt.emit=Kt;wt.prependListener=Kt;wt.prependOnceListener=Kt;wt.listeners=function(t){return[]};wt.binding=function(t){throw new Error("process.binding is not supported")};wt.cwd=function(){return"/"};wt.chdir=function(t){throw new Error("process.chdir is not supported")};wt.umask=function(){return 0};var eo=Bn.exports;const Ue=Xi(eo);var Ot={},ze={};ze.byteLength=io;ze.toByteArray=so;ze.fromByteArray=fo;var Zt=[],qt=[],ro=typeof Uint8Array<"u"?Uint8Array:Array,yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var se=0,no=yr.length;se<no;++se)Zt[se]=yr[se],qt[yr.charCodeAt(se)]=se;qt[45]=62;qt[95]=63;function Tn(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.indexOf("=");s===-1&&(s=e);var a=s===e?0:4-s%4;return[s,a]}function io(t){var e=Tn(t),s=e[0],a=e[1];return(s+a)*3/4-a}function oo(t,e,s){return(e+s)*3/4-s}function so(t){var e,s=Tn(t),a=s[0],m=s[1],f=new ro(oo(t,a,m)),M=0,S=m>0?a-4:a,F;for(F=0;F<S;F+=4)e=qt[t.charCodeAt(F)]<<18|qt[t.charCodeAt(F+1)]<<12|qt[t.charCodeAt(F+2)]<<6|qt[t.charCodeAt(F+3)],f[M++]=e>>16&255,f[M++]=e>>8&255,f[M++]=e&255;return m===2&&(e=qt[t.charCodeAt(F)]<<2|qt[t.charCodeAt(F+1)]>>4,f[M++]=e&255),m===1&&(e=qt[t.charCodeAt(F)]<<10|qt[t.charCodeAt(F+1)]<<4|qt[t.charCodeAt(F+2)]>>2,f[M++]=e>>8&255,f[M++]=e&255),f}function ao(t){return Zt[t>>18&63]+Zt[t>>12&63]+Zt[t>>6&63]+Zt[t&63]}function uo(t,e,s){for(var a,m=[],f=e;f<s;f+=3)a=(t[f]<<16&16711680)+(t[f+1]<<8&65280)+(t[f+2]&255),m.push(ao(a));return m.join("")}function fo(t){for(var e,s=t.length,a=s%3,m=[],f=16383,M=0,S=s-a;M<S;M+=f)m.push(uo(t,M,M+f>S?S:M+f));return a===1?(e=t[s-1],m.push(Zt[e>>2]+Zt[e<<4&63]+"==")):a===2&&(e=(t[s-2]<<8)+t[s-1],m.push(Zt[e>>10]+Zt[e>>4&63]+Zt[e<<2&63]+"=")),m.join("")}var kr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */kr.read=function(t,e,s,a,m){var f,M,S=m*8-a-1,F=(1<<S)-1,C=F>>1,y=-7,_=s?m-1:0,O=s?-1:1,P=t[e+_];for(_+=O,f=P&(1<<-y)-1,P>>=-y,y+=S;y>0;f=f*256+t[e+_],_+=O,y-=8);for(M=f&(1<<-y)-1,f>>=-y,y+=a;y>0;M=M*256+t[e+_],_+=O,y-=8);if(f===0)f=1-C;else{if(f===F)return M?NaN:(P?-1:1)*(1/0);M=M+Math.pow(2,a),f=f-C}return(P?-1:1)*M*Math.pow(2,f-a)};kr.write=function(t,e,s,a,m,f){var M,S,F,C=f*8-m-1,y=(1<<C)-1,_=y>>1,O=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=a?0:f-1,I=a?1:-1,$=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(S=isNaN(e)?1:0,M=y):(M=Math.floor(Math.log(e)/Math.LN2),e*(F=Math.pow(2,-M))<1&&(M--,F*=2),M+_>=1?e+=O/F:e+=O*Math.pow(2,1-_),e*F>=2&&(M++,F/=2),M+_>=y?(S=0,M=y):M+_>=1?(S=(e*F-1)*Math.pow(2,m),M=M+_):(S=e*Math.pow(2,_-1)*Math.pow(2,m),M=0));m>=8;t[s+P]=S&255,P+=I,S/=256,m-=8);for(M=M<<m|S,C+=m;C>0;t[s+P]=M&255,P+=I,M/=256,C-=8);t[s+P-I]|=$*128};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */(function(t){const e=ze,s=kr,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=y,t.SlowBuffer=it,t.INSPECT_MAX_BYTES=50;const m=2147483647;t.kMaxLength=m;const{Uint8Array:f,ArrayBuffer:M,SharedArrayBuffer:S}=globalThis;y.TYPED_ARRAY_SUPPORT=F(),!y.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 F(){try{const h=new f(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,f.prototype),Object.setPrototypeOf(h,n),h.foo()===42}catch{return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function C(h){if(h>m)throw new RangeError('The value "'+h+'" is invalid for option "size"');const n=new f(h);return Object.setPrototypeOf(n,y.prototype),n}function y(h,n,o){if(typeof h=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(h)}return _(h,n,o)}y.poolSize=8192;function _(h,n,o){if(typeof h=="string")return $(h,n);if(M.isView(h))return Z(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(X(h,M)||h&&X(h.buffer,M)||typeof S<"u"&&(X(h,S)||h&&X(h.buffer,S)))return j(h,n,o);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=h.valueOf&&h.valueOf();if(g!=null&&g!==h)return y.from(g,n,o);const b=Q(h);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return y.from(h[Symbol.toPrimitive]("string"),n,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}y.from=function(h,n,o){return _(h,n,o)},Object.setPrototypeOf(y.prototype,f.prototype),Object.setPrototypeOf(y,f);function O(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function P(h,n,o){return O(h),h<=0?C(h):n!==void 0?typeof o=="string"?C(h).fill(n,o):C(h).fill(n):C(h)}y.alloc=function(h,n,o){return P(h,n,o)};function I(h){return O(h),C(h<0?0:Y(h)|0)}y.allocUnsafe=function(h){return I(h)},y.allocUnsafeSlow=function(h){return I(h)};function $(h,n){if((typeof n!="string"||n==="")&&(n="utf8"),!y.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const o=at(h,n)|0;let g=C(o);const b=g.write(h,n);return b!==o&&(g=g.slice(0,b)),g}function N(h){const n=h.length<0?0:Y(h.length)|0,o=C(n);for(let g=0;g<n;g+=1)o[g]=h[g]&255;return o}function Z(h){if(X(h,f)){const n=new f(h);return j(n.buffer,n.byteOffset,n.byteLength)}return N(h)}function j(h,n,o){if(n<0||h.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(h.byteLength<n+(o||0))throw new RangeError('"length" is outside of buffer bounds');let g;return n===void 0&&o===void 0?g=new f(h):o===void 0?g=new f(h,n):g=new f(h,n,o),Object.setPrototypeOf(g,y.prototype),g}function Q(h){if(y.isBuffer(h)){const n=Y(h.length)|0,o=C(n);return o.length===0||h.copy(o,0,0,n),o}if(h.length!==void 0)return typeof h.length!="number"||ie(h.length)?C(0):N(h);if(h.type==="Buffer"&&Array.isArray(h.data))return N(h.data)}function Y(h){if(h>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return h|0}function it(h){return+h!=h&&(h=0),y.alloc(+h)}y.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==y.prototype},y.compare=function(n,o){if(X(n,f)&&(n=y.from(n,n.offset,n.byteLength)),X(o,f)&&(o=y.from(o,o.offset,o.byteLength)),!y.isBuffer(n)||!y.isBuffer(o))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===o)return 0;let g=n.length,b=o.length;for(let R=0,B=Math.min(g,b);R<B;++R)if(n[R]!==o[R]){g=n[R],b=o[R];break}return g<b?-1:b<g?1:0},y.isEncoding=function(n){switch(String(n).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}},y.concat=function(n,o){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return y.alloc(0);let g;if(o===void 0)for(o=0,g=0;g<n.length;++g)o+=n[g].length;const b=y.allocUnsafe(o);let R=0;for(g=0;g<n.length;++g){let B=n[g];if(X(B,f))R+B.length>b.length?(y.isBuffer(B)||(B=y.from(B)),B.copy(b,R)):f.prototype.set.call(b,B,R);else if(y.isBuffer(B))B.copy(b,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=B.length}return b};function at(h,n){if(y.isBuffer(h))return h.length;if(M.isView(h)||X(h,M))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);const o=h.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&o===0)return 0;let b=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return ne(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o*2;case"hex":return o>>>1;case"base64":return ge(h).length;default:if(b)return g?-1:ne(h).length;n=(""+n).toLowerCase(),b=!0}}y.byteLength=at;function Ut(h,n,o){let g=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((o===void 0||o>this.length)&&(o=this.length),o<=0)||(o>>>=0,n>>>=0,o<=n))return"";for(h||(h="utf8");;)switch(h){case"hex":return L(this,n,o);case"utf8":case"utf-8":return x(this,n,o);case"ascii":return i(this,n,o);case"latin1":case"binary":return w(this,n,o);case"base64":return d(this,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,n,o);default:if(g)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),g=!0}}y.prototype._isBuffer=!0;function ht(h,n,o){const g=h[n];h[n]=h[o],h[o]=g}y.prototype.swap16=function(){const n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let o=0;o<n;o+=2)ht(this,o,o+1);return this},y.prototype.swap32=function(){const n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let o=0;o<n;o+=4)ht(this,o,o+3),ht(this,o+1,o+2);return this},y.prototype.swap64=function(){const n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let o=0;o<n;o+=8)ht(this,o,o+7),ht(this,o+1,o+6),ht(this,o+2,o+5),ht(this,o+3,o+4);return this},y.prototype.toString=function(){const n=this.length;return n===0?"":arguments.length===0?x(this,0,n):Ut.apply(this,arguments)},y.prototype.toLocaleString=y.prototype.toString,y.prototype.equals=function(n){if(!y.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:y.compare(this,n)===0},y.prototype.inspect=function(){let n="";const o=t.INSPECT_MAX_BYTES;return n=this.toString("hex",0,o).replace(/(.{2})/g,"$1 ").trim(),this.length>o&&(n+=" ... "),"<Buffer "+n+">"},a&&(y.prototype[a]=y.prototype.inspect),y.prototype.compare=function(n,o,g,b,R){if(X(n,f)&&(n=y.from(n,n.offset,n.byteLength)),!y.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(o===void 0&&(o=0),g===void 0&&(g=n?n.length:0),b===void 0&&(b=0),R===void 0&&(R=this.length),o<0||g>n.length||b<0||R>this.length)throw new RangeError("out of range index");if(b>=R&&o>=g)return 0;if(b>=R)return-1;if(o>=g)return 1;if(o>>>=0,g>>>=0,b>>>=0,R>>>=0,this===n)return 0;let B=R-b,D=g-o;const ft=Math.min(B,D),q=this.slice(b,R),H=n.slice(o,g);for(let et=0;et<ft;++et)if(q[et]!==H[et]){B=q[et],D=H[et];break}return B<D?-1:D<B?1:0};function G(h,n,o,g,b){if(h.length===0)return-1;if(typeof o=="string"?(g=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,ie(o)&&(o=b?0:h.length-1),o<0&&(o=h.length+o),o>=h.length){if(b)return-1;o=h.length-1}else if(o<0)if(b)o=0;else return-1;if(typeof n=="string"&&(n=y.from(n,g)),y.isBuffer(n))return n.length===0?-1:rt(h,n,o,g,b);if(typeof n=="number")return n=n&255,typeof f.prototype.indexOf=="function"?b?f.prototype.indexOf.call(h,n,o):f.prototype.lastIndexOf.call(h,n,o):rt(h,[n],o,g,b);throw new TypeError("val must be string, number or Buffer")}function rt(h,n,o,g,b){let R=1,B=h.length,D=n.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(h.length<2||n.length<2)return-1;R=2,B/=2,D/=2,o/=2}function ft(H,et){return R===1?H[et]:H.readUInt16BE(et*R)}let q;if(b){let H=-1;for(q=o;q<B;q++)if(ft(h,q)===ft(n,H===-1?0:q-H)){if(H===-1&&(H=q),q-H+1===D)return H*R}else H!==-1&&(q-=q-H),H=-1}else for(o+D>B&&(o=B-D),q=o;q>=0;q--){let H=!0;for(let et=0;et<D;et++)if(ft(h,q+et)!==ft(n,et)){H=!1;break}if(H)return q}return-1}y.prototype.includes=function(n,o,g){return this.indexOf(n,o,g)!==-1},y.prototype.indexOf=function(n,o,g){return G(this,n,o,g,!0)},y.prototype.lastIndexOf=function(n,o,g){return G(this,n,o,g,!1)};function v(h,n,o,g){o=Number(o)||0;const b=h.length-o;g?(g=Number(g),g>b&&(g=b)):g=b;const R=n.length;g>R/2&&(g=R/2);let B;for(B=0;B<g;++B){const D=parseInt(n.substr(B*2,2),16);if(ie(D))return B;h[o+B]=D}return B}function r(h,n,o,g){return ut(ne(n,h.length-o),h,o,g)}function u(h,n,o,g){return ut(pt(n),h,o,g)}function l(h,n,o,g){return ut(ge(n),h,o,g)}function c(h,n,o,g){return ut(mt(n,h.length-o),h,o,g)}y.prototype.write=function(n,o,g,b){if(o===void 0)b="utf8",g=this.length,o=0;else if(g===void 0&&typeof o=="string")b=o,g=this.length,o=0;else if(isFinite(o))o=o>>>0,isFinite(g)?(g=g>>>0,b===void 0&&(b="utf8")):(b=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const R=this.length-o;if((g===void 0||g>R)&&(g=R),n.length>0&&(g<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let B=!1;for(;;)switch(b){case"hex":return v(this,n,o,g);case"utf8":case"utf-8":return r(this,n,o,g);case"ascii":case"latin1":case"binary":return u(this,n,o,g);case"base64":return l(this,n,o,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c(this,n,o,g);default:if(B)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),B=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function d(h,n,o){return n===0&&o===h.length?e.fromByteArray(h):e.fromByteArray(h.slice(n,o))}function x(h,n,o){o=Math.min(h.length,o);const g=[];let b=n;for(;b<o;){const R=h[b];let B=null,D=R>239?4:R>223?3:R>191?2:1;if(b+D<=o){let ft,q,H,et;switch(D){case 1:R<128&&(B=R);break;case 2:ft=h[b+1],(ft&192)===128&&(et=(R&31)<<6|ft&63,et>127&&(B=et));break;case 3:ft=h[b+1],q=h[b+2],(ft&192)===128&&(q&192)===128&&(et=(R&15)<<12|(ft&63)<<6|q&63,et>2047&&(et<55296||et>57343)&&(B=et));break;case 4:ft=h[b+1],q=h[b+2],H=h[b+3],(ft&192)===128&&(q&192)===128&&(H&192)===128&&(et=(R&15)<<18|(ft&63)<<12|(q&63)<<6|H&63,et>65535&&et<1114112&&(B=et))}}B===null?(B=65533,D=1):B>65535&&(B-=65536,g.push(B>>>10&1023|55296),B=56320|B&1023),g.push(B),b+=D}return p(g)}const E=4096;function p(h){const n=h.length;if(n<=E)return String.fromCharCode.apply(String,h);let o="",g=0;for(;g<n;)o+=String.fromCharCode.apply(String,h.slice(g,g+=E));return o}function i(h,n,o){let g="";o=Math.min(h.length,o);for(let b=n;b<o;++b)g+=String.fromCharCode(h[b]&127);return g}function w(h,n,o){let g="";o=Math.min(h.length,o);for(let b=n;b<o;++b)g+=String.fromCharCode(h[b]);return g}function L(h,n,o){const g=h.length;(!n||n<0)&&(n=0),(!o||o<0||o>g)&&(o=g);let b="";for(let R=n;R<o;++R)b+=gt[h[R]];return b}function U(h,n,o){const g=h.slice(n,o);let b="";for(let R=0;R<g.length-1;R+=2)b+=String.fromCharCode(g[R]+g[R+1]*256);return b}y.prototype.slice=function(n,o){const g=this.length;n=~~n,o=o===void 0?g:~~o,n<0?(n+=g,n<0&&(n=0)):n>g&&(n=g),o<0?(o+=g,o<0&&(o=0)):o>g&&(o=g),o<n&&(o=n);const b=this.subarray(n,o);return Object.setPrototypeOf(b,y.prototype),b};function T(h,n,o){if(h%1!==0||h<0)throw new RangeError("offset is not uint");if(h+n>o)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=this[n],R=1,B=0;for(;++B<o&&(R*=256);)b+=this[n+B]*R;return b},y.prototype.readUintBE=y.prototype.readUIntBE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=this[n+--o],R=1;for(;o>0&&(R*=256);)b+=this[n+--o]*R;return b},y.prototype.readUint8=y.prototype.readUInt8=function(n,o){return n=n>>>0,o||T(n,1,this.length),this[n]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(n,o){return n=n>>>0,o||T(n,2,this.length),this[n]|this[n+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(n,o){return n=n>>>0,o||T(n,2,this.length),this[n]<<8|this[n+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(n,o){return n=n>>>0,o||T(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(n,o){return n=n>>>0,o||T(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},y.prototype.readBigUInt64LE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=o+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,R=this[++n]+this[++n]*2**8+this[++n]*2**16+g*2**24;return BigInt(b)+(BigInt(R)<<BigInt(32))}),y.prototype.readBigUInt64BE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=o*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],R=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+g;return(BigInt(b)<<BigInt(32))+BigInt(R)}),y.prototype.readIntLE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=this[n],R=1,B=0;for(;++B<o&&(R*=256);)b+=this[n+B]*R;return R*=128,b>=R&&(b-=Math.pow(2,8*o)),b},y.prototype.readIntBE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=o,R=1,B=this[n+--b];for(;b>0&&(R*=256);)B+=this[n+--b]*R;return R*=128,B>=R&&(B-=Math.pow(2,8*o)),B},y.prototype.readInt8=function(n,o){return n=n>>>0,o||T(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},y.prototype.readInt16LE=function(n,o){n=n>>>0,o||T(n,2,this.length);const g=this[n]|this[n+1]<<8;return g&32768?g|4294901760:g},y.prototype.readInt16BE=function(n,o){n=n>>>0,o||T(n,2,this.length);const g=this[n+1]|this[n]<<8;return g&32768?g|4294901760:g},y.prototype.readInt32LE=function(n,o){return n=n>>>0,o||T(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},y.prototype.readInt32BE=function(n,o){return n=n>>>0,o||T(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},y.prototype.readBigInt64LE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(g<<24);return(BigInt(b)<<BigInt(32))+BigInt(o+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)}),y.prototype.readBigInt64BE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=(o<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(b)<<BigInt(32))+BigInt(this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+g)}),y.prototype.readFloatLE=function(n,o){return n=n>>>0,o||T(n,4,this.length),s.read(this,n,!0,23,4)},y.prototype.readFloatBE=function(n,o){return n=n>>>0,o||T(n,4,this.length),s.read(this,n,!1,23,4)},y.prototype.readDoubleLE=function(n,o){return n=n>>>0,o||T(n,8,this.length),s.read(this,n,!0,52,8)},y.prototype.readDoubleBE=function(n,o){return n=n>>>0,o||T(n,8,this.length),s.read(this,n,!1,52,8)};function k(h,n,o,g,b,R){if(!y.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>b||n<R)throw new RangeError('"value" argument is out of bounds');if(o+g>h.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(n,o,g,b){if(n=+n,o=o>>>0,g=g>>>0,!b){const D=Math.pow(2,8*g)-1;k(this,n,o,g,D,0)}let R=1,B=0;for(this[o]=n&255;++B<g&&(R*=256);)this[o+B]=n/R&255;return o+g},y.prototype.writeUintBE=y.prototype.writeUIntBE=function(n,o,g,b){if(n=+n,o=o>>>0,g=g>>>0,!b){const D=Math.pow(2,8*g)-1;k(this,n,o,g,D,0)}let R=g-1,B=1;for(this[o+R]=n&255;--R>=0&&(B*=256);)this[o+R]=n/B&255;return o+g},y.prototype.writeUint8=y.prototype.writeUInt8=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,1,255,0),this[o]=n&255,o+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,65535,0),this[o]=n&255,this[o+1]=n>>>8,o+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,65535,0),this[o]=n>>>8,this[o+1]=n&255,o+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,4294967295,0),this[o+3]=n>>>24,this[o+2]=n>>>16,this[o+1]=n>>>8,this[o]=n&255,o+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,4294967295,0),this[o]=n>>>24,this[o+1]=n>>>16,this[o+2]=n>>>8,this[o+3]=n&255,o+4};function J(h,n,o,g,b){lt(n,g,b,h,o,7);let R=Number(n&BigInt(4294967295));h[o++]=R,R=R>>8,h[o++]=R,R=R>>8,h[o++]=R,R=R>>8,h[o++]=R;let B=Number(n>>BigInt(32)&BigInt(4294967295));return h[o++]=B,B=B>>8,h[o++]=B,B=B>>8,h[o++]=B,B=B>>8,h[o++]=B,o}function V(h,n,o,g,b){lt(n,g,b,h,o,7);let R=Number(n&BigInt(4294967295));h[o+7]=R,R=R>>8,h[o+6]=R,R=R>>8,h[o+5]=R,R=R>>8,h[o+4]=R;let B=Number(n>>BigInt(32)&BigInt(4294967295));return h[o+3]=B,B=B>>8,h[o+2]=B,B=B>>8,h[o+1]=B,B=B>>8,h[o]=B,o+8}y.prototype.writeBigUInt64LE=nt(function(n,o=0){return J(this,n,o,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=nt(function(n,o=0){return V(this,n,o,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(n,o,g,b){if(n=+n,o=o>>>0,!b){const ft=Math.pow(2,8*g-1);k(this,n,o,g,ft-1,-ft)}let R=0,B=1,D=0;for(this[o]=n&255;++R<g&&(B*=256);)n<0&&D===0&&this[o+R-1]!==0&&(D=1),this[o+R]=(n/B>>0)-D&255;return o+g},y.prototype.writeIntBE=function(n,o,g,b){if(n=+n,o=o>>>0,!b){const ft=Math.pow(2,8*g-1);k(this,n,o,g,ft-1,-ft)}let R=g-1,B=1,D=0;for(this[o+R]=n&255;--R>=0&&(B*=256);)n<0&&D===0&&this[o+R+1]!==0&&(D=1),this[o+R]=(n/B>>0)-D&255;return o+g},y.prototype.writeInt8=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,1,127,-128),n<0&&(n=255+n+1),this[o]=n&255,o+1},y.prototype.writeInt16LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,32767,-32768),this[o]=n&255,this[o+1]=n>>>8,o+2},y.prototype.writeInt16BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,32767,-32768),this[o]=n>>>8,this[o+1]=n&255,o+2},y.prototype.writeInt32LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,2147483647,-2147483648),this[o]=n&255,this[o+1]=n>>>8,this[o+2]=n>>>16,this[o+3]=n>>>24,o+4},y.prototype.writeInt32BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[o]=n>>>24,this[o+1]=n>>>16,this[o+2]=n>>>8,this[o+3]=n&255,o+4},y.prototype.writeBigInt64LE=nt(function(n,o=0){return J(this,n,o,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=nt(function(n,o=0){return V(this,n,o,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Nt(h,n,o,g,b,R){if(o+g>h.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function K(h,n,o,g,b){return n=+n,o=o>>>0,b||Nt(h,n,o,4),s.write(h,n,o,g,23,4),o+4}y.prototype.writeFloatLE=function(n,o,g){return K(this,n,o,!0,g)},y.prototype.writeFloatBE=function(n,o,g){return K(this,n,o,!1,g)};function z(h,n,o,g,b){return n=+n,o=o>>>0,b||Nt(h,n,o,8),s.write(h,n,o,g,52,8),o+8}y.prototype.writeDoubleLE=function(n,o,g){return z(this,n,o,!0,g)},y.prototype.writeDoubleBE=function(n,o,g){return z(this,n,o,!1,g)},y.prototype.copy=function(n,o,g,b){if(!y.isBuffer(n))throw new TypeError("argument should be a Buffer");if(g||(g=0),!b&&b!==0&&(b=this.length),o>=n.length&&(o=n.length),o||(o=0),b>0&&b<g&&(b=g),b===g||n.length===0||this.length===0)return 0;if(o<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),n.length-o<b-g&&(b=n.length-o+g);const R=b-g;return this===n&&typeof f.prototype.copyWithin=="function"?this.copyWithin(o,g,b):f.prototype.set.call(n,this.subarray(g,b),o),R},y.prototype.fill=function(n,o,g,b){if(typeof n=="string"){if(typeof o=="string"?(b=o,o=0,g=this.length):typeof g=="string"&&(b=g,g=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!y.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(n.length===1){const B=n.charCodeAt(0);(b==="utf8"&&B<128||b==="latin1")&&(n=B)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(o<0||this.length<o||this.length<g)throw new RangeError("Out of range index");if(g<=o)return this;o=o>>>0,g=g===void 0?this.length:g>>>0,n||(n=0);let R;if(typeof n=="number")for(R=o;R<g;++R)this[R]=n;else{const B=y.isBuffer(n)?n:y.from(n,b),D=B.length;if(D===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(R=0;R<g-o;++R)this[R+o]=B[R%D]}return this};const Lt={};function tt(h,n,o){Lt[h]=class extends o{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${h}]`,this.stack,delete this.name}get code(){return h}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${h}]: ${this.message}`}}}tt("ERR_BUFFER_OUT_OF_BOUNDS",function(h){return h?`${h} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),tt("ERR_INVALID_ARG_TYPE",function(h,n){return`The "${h}" argument must be of type number. Received type ${typeof n}`},TypeError),tt("ERR_OUT_OF_RANGE",function(h,n,o){let g=`The value of "${h}" is out of range.`,b=o;return Number.isInteger(o)&&Math.abs(o)>2**32?b=ot(String(o)):typeof o=="bigint"&&(b=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(b=ot(b)),b+="n"),g+=` It must be ${n}. Received ${b}`,g},RangeError);function ot(h){let n="",o=h.length;const g=h[0]==="-"?1:0;for(;o>=g+4;o-=3)n=`_${h.slice(o-3,o)}${n}`;return`${h.slice(0,o)}${n}`}function be(h,n,o){st(n,"offset"),(h[n]===void 0||h[n+o]===void 0)&&Gt(n,h.length-(o+1))}function lt(h,n,o,g,b,R){if(h>o||h<n){const B=typeof n=="bigint"?"n":"";let D;throw n===0||n===BigInt(0)?D=`>= 0${B} and < 2${B} ** ${(R+1)*8}${B}`:D=`>= -(2${B} ** ${(R+1)*8-1}${B}) and < 2 ** ${(R+1)*8-1}${B}`,new Lt.ERR_OUT_OF_RANGE("value",D,h)}be(g,b,R)}function st(h,n){if(typeof h!="number")throw new Lt.ERR_INVALID_ARG_TYPE(n,"number",h)}function Gt(h,n,o){throw Math.floor(h)!==h?(st(h,o),new Lt.ERR_OUT_OF_RANGE("offset","an integer",h)):n<0?new Lt.ERR_BUFFER_OUT_OF_BOUNDS:new Lt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${n}`,h)}const ct=/[^+/0-9A-Za-z-_]/g;function dt(h){if(h=h.split("=")[0],h=h.trim().replace(ct,""),h.length<2)return"";for(;h.length%4!==0;)h=h+"=";return h}function ne(h,n){n=n||1/0;let o;const g=h.length;let b=null;const R=[];for(let B=0;B<g;++B){if(o=h.charCodeAt(B),o>55295&&o<57344){if(!b){if(o>56319){(n-=3)>-1&&R.push(239,191,189);continue}else if(B+1===g){(n-=3)>-1&&R.push(239,191,189);continue}b=o;continue}if(o<56320){(n-=3)>-1&&R.push(239,191,189),b=o;continue}o=(b-55296<<10|o-56320)+65536}else b&&(n-=3)>-1&&R.push(239,191,189);if(b=null,o<128){if((n-=1)<0)break;R.push(o)}else if(o<2048){if((n-=2)<0)break;R.push(o>>6|192,o&63|128)}else if(o<65536){if((n-=3)<0)break;R.push(o>>12|224,o>>6&63|128,o&63|128)}else if(o<1114112){if((n-=4)<0)break;R.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else throw new Error("Invalid code point")}return R}function pt(h){const n=[];for(let o=0;o<h.length;++o)n.push(h.charCodeAt(o)&255);return n}function mt(h,n){let o,g,b;const R=[];for(let B=0;B<h.length&&!((n-=2)<0);++B)o=h.charCodeAt(B),g=o>>8,b=o%256,R.push(b),R.push(g);return R}function ge(h){return e.toByteArray(dt(h))}function ut(h,n,o,g){let b;for(b=0;b<g&&!(b+o>=n.length||b>=h.length);++b)n[b+o]=h[b];return b}function X(h,n){return h instanceof n||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===n.name}function ie(h){return h!==h}const gt=function(){const h="0123456789abcdef",n=new Array(256);for(let o=0;o<16;++o){const g=o*16;for(let b=0;b<16;++b)n[g+b]=h[o]+h[b]}return n}();function nt(h){return typeof BigInt>"u"?Se:h}function Se(){throw new Error("BigInt not supported")}})(Ot);const In=Ot.Buffer,ho=Ot.Blob,lo=Ot.BlobOptions,co=Ot.Buffer,po=Ot.File,mo=Ot.FileOptions,go=Ot.INSPECT_MAX_BYTES,yo=Ot.SlowBuffer,wo=Ot.TranscodeEncoding,vo=Ot.atob,Mo=Ot.btoa,xo=Ot.constants,Eo=Ot.isAscii,bo=Ot.isUtf8,So=Ot.kMaxLength,Co=Ot.kStringMaxLength,Ro=Ot.resolveObjectURL,Bo=Ot.transcode,Ao=Object.freeze(Object.defineProperty({__proto__:null,Blob:ho,BlobOptions:lo,Buffer:co,File:po,FileOptions:mo,INSPECT_MAX_BYTES:go,SlowBuffer:yo,TranscodeEncoding:wo,atob:vo,btoa:Mo,constants:xo,default:In,isAscii:Eo,isUtf8:bo,kMaxLength:So,kStringMaxLength:Co,resolveObjectURL:Ro,transcode:Bo},Symbol.toStringTag,{value:"Module"})),_o=oi(Ao);var Dr={exports:{}};Dr.exports;(function(t){(function(e,s){function a(v,r){if(!v)throw new Error(r||"Assertion failed")}function m(v,r){v.super_=r;var u=function(){};u.prototype=r.prototype,v.prototype=new u,v.prototype.constructor=v}function f(v,r,u){if(f.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,v!==null&&((r==="le"||r==="be")&&(u=r,r=10),this._init(v||0,r||10,u||"be"))}typeof e=="object"?e.exports=f:s.BN=f,f.BN=f,f.wordSize=26;var M;try{typeof window<"u"&&typeof window.Buffer<"u"?M=window.Buffer:M=_o.Buffer}catch{}f.isBN=function(r){return r instanceof f?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===f.wordSize&&Array.isArray(r.words)},f.max=function(r,u){return r.cmp(u)>0?r:u},f.min=function(r,u){return r.cmp(u)<0?r:u},f.prototype._init=function(r,u,l){if(typeof r=="number")return this._initNumber(r,u,l);if(typeof r=="object")return this._initArray(r,u,l);u==="hex"&&(u=16),a(u===(u|0)&&u>=2&&u<=36),r=r.toString().replace(/\s+/g,"");var c=0;r[0]==="-"&&(c++,this.negative=1),c<r.length&&(u===16?this._parseHex(r,c,l):(this._parseBase(r,u,c),l==="le"&&this._initArray(this.toArray(),u,l)))},f.prototype._initNumber=function(r,u,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),u,l)},f.prototype._initArray=function(r,u,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var d,x,E=0;if(l==="be")for(c=r.length-1,d=0;c>=0;c-=3)x=r[c]|r[c-1]<<8|r[c-2]<<16,this.words[d]|=x<<E&67108863,this.words[d+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,d++);else if(l==="le")for(c=0,d=0;c<r.length;c+=3)x=r[c]|r[c+1]<<8|r[c+2]<<16,this.words[d]|=x<<E&67108863,this.words[d+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,d++);return this.strip()};function S(v,r){var u=v.charCodeAt(r);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function F(v,r,u){var l=S(v,u);return u-1>=r&&(l|=S(v,u-1)<<4),l}f.prototype._parseHex=function(r,u,l){this.length=Math.ceil((r.length-u)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var d=0,x=0,E;if(l==="be")for(c=r.length-1;c>=u;c-=2)E=F(r,u,c)<<d,this.words[x]|=E&67108863,d>=18?(d-=18,x+=1,this.words[x]|=E>>>26):d+=8;else{var p=r.length-u;for(c=p%2===0?u+1:u;c<r.length;c+=2)E=F(r,u,c)<<d,this.words[x]|=E&67108863,d>=18?(d-=18,x+=1,this.words[x]|=E>>>26):d+=8}this.strip()};function C(v,r,u,l){for(var c=0,d=Math.min(v.length,u),x=r;x<d;x++){var E=v.charCodeAt(x)-48;c*=l,E>=49?c+=E-49+10:E>=17?c+=E-17+10:c+=E}return c}f.prototype._parseBase=function(r,u,l){this.words=[0],this.length=1;for(var c=0,d=1;d<=67108863;d*=u)c++;c--,d=d/u|0;for(var x=r.length-l,E=x%c,p=Math.min(x,x-E)+l,i=0,w=l;w<p;w+=c)i=C(r,w,w+c,u),this.imuln(d),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i);if(E!==0){var L=1;for(i=C(r,w,r.length,u),w=0;w<E;w++)L*=u;this.imuln(L),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i)}this.strip()},f.prototype.copy=function(r){r.words=new Array(this.length);for(var u=0;u<this.length;u++)r.words[u]=this.words[u];r.length=this.length,r.negative=this.negative,r.red=this.red},f.prototype.clone=function(){var r=new f(null);return this.copy(r),r},f.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var y=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(r,u){r=r||10,u=u|0||1;var l;if(r===16||r==="hex"){l="";for(var c=0,d=0,x=0;x<this.length;x++){var E=this.words[x],p=((E<<c|d)&16777215).toString(16);d=E>>>24-c&16777215,d!==0||x!==this.length-1?l=y[6-p.length]+p+l:l=p+l,c+=2,c>=26&&(c-=26,x--)}for(d!==0&&(l=d.toString(16)+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var i=_[r],w=O[r];l="";var L=this.clone();for(L.negative=0;!L.isZero();){var U=L.modn(w).toString(r);L=L.idivn(w),L.isZero()?l=U+l:l=y[i-U.length]+U+l}for(this.isZero()&&(l="0"+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(r,u){return a(typeof M<"u"),this.toArrayLike(M,r,u)},f.prototype.toArray=function(r,u){return this.toArrayLike(Array,r,u)},f.prototype.toArrayLike=function(r,u,l){var c=this.byteLength(),d=l||Math.max(1,c);a(c<=d,"byte array longer than desired length"),a(d>0,"Requested array length <= 0"),this.strip();var x=u==="le",E=new r(d),p,i,w=this.clone();if(x){for(i=0;!w.isZero();i++)p=w.andln(255),w.iushrn(8),E[i]=p;for(;i<d;i++)E[i]=0}else{for(i=0;i<d-c;i++)E[i]=0;for(i=0;!w.isZero();i++)p=w.andln(255),w.iushrn(8),E[d-i-1]=p}return E},Math.clz32?f.prototype._countBits=function(r){return 32-Math.clz32(r)}:f.prototype._countBits=function(r){var u=r,l=0;return u>=4096&&(l+=13,u>>>=13),u>=64&&(l+=7,u>>>=7),u>=8&&(l+=4,u>>>=4),u>=2&&(l+=2,u>>>=2),l+u},f.prototype._zeroBits=function(r){if(r===0)return 26;var u=r,l=0;return u&8191||(l+=13,u>>>=13),u&127||(l+=7,u>>>=7),u&15||(l+=4,u>>>=4),u&3||(l+=2,u>>>=2),u&1||l++,l},f.prototype.bitLength=function(){var r=this.words[this.length-1],u=this._countBits(r);return(this.length-1)*26+u};function P(v){for(var r=new Array(v.bitLength()),u=0;u<r.length;u++){var l=u/26|0,c=u%26;r[u]=(v.words[l]&1<<c)>>>c}return r}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,u=0;u<this.length;u++){var l=this._zeroBits(this.words[u]);if(r+=l,l!==26)break}return r},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},f.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return this.negative!==0},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]|r.words[u];return this.strip()},f.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},f.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},f.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},f.prototype.iuand=function(r){var u;this.length>r.length?u=r:u=this;for(var l=0;l<u.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=u.length,this.strip()},f.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},f.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},f.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},f.prototype.iuxor=function(r){var u,l;this.length>r.length?(u=this,l=r):(u=r,l=this);for(var c=0;c<l.length;c++)this.words[c]=u.words[c]^l.words[c];if(this!==u)for(;c<u.length;c++)this.words[c]=u.words[c];return this.length=u.length,this.strip()},f.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},f.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},f.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},f.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var u=Math.ceil(r/26)|0,l=r%26;this._expand(u),l>0&&u--;for(var c=0;c<u;c++)this.words[c]=~this.words[c]&67108863;return l>0&&(this.words[c]=~this.words[c]&67108863>>26-l),this.strip()},f.prototype.notn=function(r){return this.clone().inotn(r)},f.prototype.setn=function(r,u){a(typeof r=="number"&&r>=0);var l=r/26|0,c=r%26;return this._expand(l+1),u?this.words[l]=this.words[l]|1<<c:this.words[l]=this.words[l]&~(1<<c),this.strip()},f.prototype.iadd=function(r){var u;if(this.negative!==0&&r.negative===0)return this.negative=0,u=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,u=this.isub(r),r.negative=1,u._normSign();var l,c;this.length>r.length?(l=this,c=r):(l=r,c=this);for(var d=0,x=0;x<c.length;x++)u=(l.words[x]|0)+(c.words[x]|0)+d,this.words[x]=u&67108863,d=u>>>26;for(;d!==0&&x<l.length;x++)u=(l.words[x]|0)+d,this.words[x]=u&67108863,d=u>>>26;if(this.length=l.length,d!==0)this.words[this.length]=d,this.length++;else if(l!==this)for(;x<l.length;x++)this.words[x]=l.words[x];return this},f.prototype.add=function(r){var u;return r.negative!==0&&this.negative===0?(r.negative=0,u=this.sub(r),r.negative^=1,u):r.negative===0&&this.negative!==0?(this.negative=0,u=r.sub(this),this.negative=1,u):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},f.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var u=this.iadd(r);return r.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,d;l>0?(c=this,d=r):(c=r,d=this);for(var x=0,E=0;E<d.length;E++)u=(c.words[E]|0)-(d.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;for(;x!==0&&E<c.length;E++)u=(c.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;if(x===0&&E<c.length&&c!==this)for(;E<c.length;E++)this.words[E]=c.words[E];return this.length=Math.max(this.length,E),c!==this&&(this.negative=1),this.strip()},f.prototype.sub=function(r){return this.clone().isub(r)};function I(v,r,u){u.negative=r.negative^v.negative;var l=v.length+r.length|0;u.length=l,l=l-1|0;var c=v.words[0]|0,d=r.words[0]|0,x=c*d,E=x&67108863,p=x/67108864|0;u.words[0]=E;for(var i=1;i<l;i++){for(var w=p>>>26,L=p&67108863,U=Math.min(i,r.length-1),T=Math.max(0,i-v.length+1);T<=U;T++){var k=i-T|0;c=v.words[k]|0,d=r.words[T]|0,x=c*d+L,w+=x/67108864|0,L=x&67108863}u.words[i]=L|0,p=w|0}return p!==0?u.words[i]=p|0:u.length--,u.strip()}var $=function(r,u,l){var c=r.words,d=u.words,x=l.words,E=0,p,i,w,L=c[0]|0,U=L&8191,T=L>>>13,k=c[1]|0,J=k&8191,V=k>>>13,Nt=c[2]|0,K=Nt&8191,z=Nt>>>13,Lt=c[3]|0,tt=Lt&8191,ot=Lt>>>13,be=c[4]|0,lt=be&8191,st=be>>>13,Gt=c[5]|0,ct=Gt&8191,dt=Gt>>>13,ne=c[6]|0,pt=ne&8191,mt=ne>>>13,ge=c[7]|0,ut=ge&8191,X=ge>>>13,ie=c[8]|0,gt=ie&8191,nt=ie>>>13,Se=c[9]|0,h=Se&8191,n=Se>>>13,o=d[0]|0,g=o&8191,b=o>>>13,R=d[1]|0,B=R&8191,D=R>>>13,ft=d[2]|0,q=ft&8191,H=ft>>>13,et=d[3]|0,vt=et&8191,Mt=et>>>13,zr=d[4]|0,xt=zr&8191,Et=zr>>>13,Wr=d[5]|0,bt=Wr&8191,St=Wr>>>13,Jr=d[6]|0,Ct=Jr&8191,Rt=Jr>>>13,Zr=d[7]|0,Bt=Zr&8191,At=Zr>>>13,Vr=d[8]|0,_t=Vr&8191,Ft=Vr>>>13,Kr=d[9]|0,Tt=Kr&8191,It=Kr>>>13;l.negative=r.negative^u.negative,l.length=19,p=Math.imul(U,g),i=Math.imul(U,b),i=i+Math.imul(T,g)|0,w=Math.imul(T,b);var Ye=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,p=Math.imul(J,g),i=Math.imul(J,b),i=i+Math.imul(V,g)|0,w=Math.imul(V,b),p=p+Math.imul(U,B)|0,i=i+Math.imul(U,D)|0,i=i+Math.imul(T,B)|0,w=w+Math.imul(T,D)|0;var Xe=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,p=Math.imul(K,g),i=Math.imul(K,b),i=i+Math.imul(z,g)|0,w=Math.imul(z,b),p=p+Math.imul(J,B)|0,i=i+Math.imul(J,D)|0,i=i+Math.imul(V,B)|0,w=w+Math.imul(V,D)|0,p=p+Math.imul(U,q)|0,i=i+Math.imul(U,H)|0,i=i+Math.imul(T,q)|0,w=w+Math.imul(T,H)|0;var Qe=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,p=Math.imul(tt,g),i=Math.imul(tt,b),i=i+Math.imul(ot,g)|0,w=Math.imul(ot,b),p=p+Math.imul(K,B)|0,i=i+Math.imul(K,D)|0,i=i+Math.imul(z,B)|0,w=w+Math.imul(z,D)|0,p=p+Math.imul(J,q)|0,i=i+Math.imul(J,H)|0,i=i+Math.imul(V,q)|0,w=w+Math.imul(V,H)|0,p=p+Math.imul(U,vt)|0,i=i+Math.imul(U,Mt)|0,i=i+Math.imul(T,vt)|0,w=w+Math.imul(T,Mt)|0;var tr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(tr>>>26)|0,tr&=67108863,p=Math.imul(lt,g),i=Math.imul(lt,b),i=i+Math.imul(st,g)|0,w=Math.imul(st,b),p=p+Math.imul(tt,B)|0,i=i+Math.imul(tt,D)|0,i=i+Math.imul(ot,B)|0,w=w+Math.imul(ot,D)|0,p=p+Math.imul(K,q)|0,i=i+Math.imul(K,H)|0,i=i+Math.imul(z,q)|0,w=w+Math.imul(z,H)|0,p=p+Math.imul(J,vt)|0,i=i+Math.imul(J,Mt)|0,i=i+Math.imul(V,vt)|0,w=w+Math.imul(V,Mt)|0,p=p+Math.imul(U,xt)|0,i=i+Math.imul(U,Et)|0,i=i+Math.imul(T,xt)|0,w=w+Math.imul(T,Et)|0;var er=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(er>>>26)|0,er&=67108863,p=Math.imul(ct,g),i=Math.imul(ct,b),i=i+Math.imul(dt,g)|0,w=Math.imul(dt,b),p=p+Math.imul(lt,B)|0,i=i+Math.imul(lt,D)|0,i=i+Math.imul(st,B)|0,w=w+Math.imul(st,D)|0,p=p+Math.imul(tt,q)|0,i=i+Math.imul(tt,H)|0,i=i+Math.imul(ot,q)|0,w=w+Math.imul(ot,H)|0,p=p+Math.imul(K,vt)|0,i=i+Math.imul(K,Mt)|0,i=i+Math.imul(z,vt)|0,w=w+Math.imul(z,Mt)|0,p=p+Math.imul(J,xt)|0,i=i+Math.imul(J,Et)|0,i=i+Math.imul(V,xt)|0,w=w+Math.imul(V,Et)|0,p=p+Math.imul(U,bt)|0,i=i+Math.imul(U,St)|0,i=i+Math.imul(T,bt)|0,w=w+Math.imul(T,St)|0;var rr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(rr>>>26)|0,rr&=67108863,p=Math.imul(pt,g),i=Math.imul(pt,b),i=i+Math.imul(mt,g)|0,w=Math.imul(mt,b),p=p+Math.imul(ct,B)|0,i=i+Math.imul(ct,D)|0,i=i+Math.imul(dt,B)|0,w=w+Math.imul(dt,D)|0,p=p+Math.imul(lt,q)|0,i=i+Math.imul(lt,H)|0,i=i+Math.imul(st,q)|0,w=w+Math.imul(st,H)|0,p=p+Math.imul(tt,vt)|0,i=i+Math.imul(tt,Mt)|0,i=i+Math.imul(ot,vt)|0,w=w+Math.imul(ot,Mt)|0,p=p+Math.imul(K,xt)|0,i=i+Math.imul(K,Et)|0,i=i+Math.imul(z,xt)|0,w=w+Math.imul(z,Et)|0,p=p+Math.imul(J,bt)|0,i=i+Math.imul(J,St)|0,i=i+Math.imul(V,bt)|0,w=w+Math.imul(V,St)|0,p=p+Math.imul(U,Ct)|0,i=i+Math.imul(U,Rt)|0,i=i+Math.imul(T,Ct)|0,w=w+Math.imul(T,Rt)|0;var nr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(nr>>>26)|0,nr&=67108863,p=Math.imul(ut,g),i=Math.imul(ut,b),i=i+Math.imul(X,g)|0,w=Math.imul(X,b),p=p+Math.imul(pt,B)|0,i=i+Math.imul(pt,D)|0,i=i+Math.imul(mt,B)|0,w=w+Math.imul(mt,D)|0,p=p+Math.imul(ct,q)|0,i=i+Math.imul(ct,H)|0,i=i+Math.imul(dt,q)|0,w=w+Math.imul(dt,H)|0,p=p+Math.imul(lt,vt)|0,i=i+Math.imul(lt,Mt)|0,i=i+Math.imul(st,vt)|0,w=w+Math.imul(st,Mt)|0,p=p+Math.imul(tt,xt)|0,i=i+Math.imul(tt,Et)|0,i=i+Math.imul(ot,xt)|0,w=w+Math.imul(ot,Et)|0,p=p+Math.imul(K,bt)|0,i=i+Math.imul(K,St)|0,i=i+Math.imul(z,bt)|0,w=w+Math.imul(z,St)|0,p=p+Math.imul(J,Ct)|0,i=i+Math.imul(J,Rt)|0,i=i+Math.imul(V,Ct)|0,w=w+Math.imul(V,Rt)|0,p=p+Math.imul(U,Bt)|0,i=i+Math.imul(U,At)|0,i=i+Math.imul(T,Bt)|0,w=w+Math.imul(T,At)|0;var ir=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(ir>>>26)|0,ir&=67108863,p=Math.imul(gt,g),i=Math.imul(gt,b),i=i+Math.imul(nt,g)|0,w=Math.imul(nt,b),p=p+Math.imul(ut,B)|0,i=i+Math.imul(ut,D)|0,i=i+Math.imul(X,B)|0,w=w+Math.imul(X,D)|0,p=p+Math.imul(pt,q)|0,i=i+Math.imul(pt,H)|0,i=i+Math.imul(mt,q)|0,w=w+Math.imul(mt,H)|0,p=p+Math.imul(ct,vt)|0,i=i+Math.imul(ct,Mt)|0,i=i+Math.imul(dt,vt)|0,w=w+Math.imul(dt,Mt)|0,p=p+Math.imul(lt,xt)|0,i=i+Math.imul(lt,Et)|0,i=i+Math.imul(st,xt)|0,w=w+Math.imul(st,Et)|0,p=p+Math.imul(tt,bt)|0,i=i+Math.imul(tt,St)|0,i=i+Math.imul(ot,bt)|0,w=w+Math.imul(ot,St)|0,p=p+Math.imul(K,Ct)|0,i=i+Math.imul(K,Rt)|0,i=i+Math.imul(z,Ct)|0,w=w+Math.imul(z,Rt)|0,p=p+Math.imul(J,Bt)|0,i=i+Math.imul(J,At)|0,i=i+Math.imul(V,Bt)|0,w=w+Math.imul(V,At)|0,p=p+Math.imul(U,_t)|0,i=i+Math.imul(U,Ft)|0,i=i+Math.imul(T,_t)|0,w=w+Math.imul(T,Ft)|0;var or=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(or>>>26)|0,or&=67108863,p=Math.imul(h,g),i=Math.imul(h,b),i=i+Math.imul(n,g)|0,w=Math.imul(n,b),p=p+Math.imul(gt,B)|0,i=i+Math.imul(gt,D)|0,i=i+Math.imul(nt,B)|0,w=w+Math.imul(nt,D)|0,p=p+Math.imul(ut,q)|0,i=i+Math.imul(ut,H)|0,i=i+Math.imul(X,q)|0,w=w+Math.imul(X,H)|0,p=p+Math.imul(pt,vt)|0,i=i+Math.imul(pt,Mt)|0,i=i+Math.imul(mt,vt)|0,w=w+Math.imul(mt,Mt)|0,p=p+Math.imul(ct,xt)|0,i=i+Math.imul(ct,Et)|0,i=i+Math.imul(dt,xt)|0,w=w+Math.imul(dt,Et)|0,p=p+Math.imul(lt,bt)|0,i=i+Math.imul(lt,St)|0,i=i+Math.imul(st,bt)|0,w=w+Math.imul(st,St)|0,p=p+Math.imul(tt,Ct)|0,i=i+Math.imul(tt,Rt)|0,i=i+Math.imul(ot,Ct)|0,w=w+Math.imul(ot,Rt)|0,p=p+Math.imul(K,Bt)|0,i=i+Math.imul(K,At)|0,i=i+Math.imul(z,Bt)|0,w=w+Math.imul(z,At)|0,p=p+Math.imul(J,_t)|0,i=i+Math.imul(J,Ft)|0,i=i+Math.imul(V,_t)|0,w=w+Math.imul(V,Ft)|0,p=p+Math.imul(U,Tt)|0,i=i+Math.imul(U,It)|0,i=i+Math.imul(T,Tt)|0,w=w+Math.imul(T,It)|0;var sr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(sr>>>26)|0,sr&=67108863,p=Math.imul(h,B),i=Math.imul(h,D),i=i+Math.imul(n,B)|0,w=Math.imul(n,D),p=p+Math.imul(gt,q)|0,i=i+Math.imul(gt,H)|0,i=i+Math.imul(nt,q)|0,w=w+Math.imul(nt,H)|0,p=p+Math.imul(ut,vt)|0,i=i+Math.imul(ut,Mt)|0,i=i+Math.imul(X,vt)|0,w=w+Math.imul(X,Mt)|0,p=p+Math.imul(pt,xt)|0,i=i+Math.imul(pt,Et)|0,i=i+Math.imul(mt,xt)|0,w=w+Math.imul(mt,Et)|0,p=p+Math.imul(ct,bt)|0,i=i+Math.imul(ct,St)|0,i=i+Math.imul(dt,bt)|0,w=w+Math.imul(dt,St)|0,p=p+Math.imul(lt,Ct)|0,i=i+Math.imul(lt,Rt)|0,i=i+Math.imul(st,Ct)|0,w=w+Math.imul(st,Rt)|0,p=p+Math.imul(tt,Bt)|0,i=i+Math.imul(tt,At)|0,i=i+Math.imul(ot,Bt)|0,w=w+Math.imul(ot,At)|0,p=p+Math.imul(K,_t)|0,i=i+Math.imul(K,Ft)|0,i=i+Math.imul(z,_t)|0,w=w+Math.imul(z,Ft)|0,p=p+Math.imul(J,Tt)|0,i=i+Math.imul(J,It)|0,i=i+Math.imul(V,Tt)|0,w=w+Math.imul(V,It)|0;var ar=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(ar>>>26)|0,ar&=67108863,p=Math.imul(h,q),i=Math.imul(h,H),i=i+Math.imul(n,q)|0,w=Math.imul(n,H),p=p+Math.imul(gt,vt)|0,i=i+Math.imul(gt,Mt)|0,i=i+Math.imul(nt,vt)|0,w=w+Math.imul(nt,Mt)|0,p=p+Math.imul(ut,xt)|0,i=i+Math.imul(ut,Et)|0,i=i+Math.imul(X,xt)|0,w=w+Math.imul(X,Et)|0,p=p+Math.imul(pt,bt)|0,i=i+Math.imul(pt,St)|0,i=i+Math.imul(mt,bt)|0,w=w+Math.imul(mt,St)|0,p=p+Math.imul(ct,Ct)|0,i=i+Math.imul(ct,Rt)|0,i=i+Math.imul(dt,Ct)|0,w=w+Math.imul(dt,Rt)|0,p=p+Math.imul(lt,Bt)|0,i=i+Math.imul(lt,At)|0,i=i+Math.imul(st,Bt)|0,w=w+Math.imul(st,At)|0,p=p+Math.imul(tt,_t)|0,i=i+Math.imul(tt,Ft)|0,i=i+Math.imul(ot,_t)|0,w=w+Math.imul(ot,Ft)|0,p=p+Math.imul(K,Tt)|0,i=i+Math.imul(K,It)|0,i=i+Math.imul(z,Tt)|0,w=w+Math.imul(z,It)|0;var ur=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(ur>>>26)|0,ur&=67108863,p=Math.imul(h,vt),i=Math.imul(h,Mt),i=i+Math.imul(n,vt)|0,w=Math.imul(n,Mt),p=p+Math.imul(gt,xt)|0,i=i+Math.imul(gt,Et)|0,i=i+Math.imul(nt,xt)|0,w=w+Math.imul(nt,Et)|0,p=p+Math.imul(ut,bt)|0,i=i+Math.imul(ut,St)|0,i=i+Math.imul(X,bt)|0,w=w+Math.imul(X,St)|0,p=p+Math.imul(pt,Ct)|0,i=i+Math.imul(pt,Rt)|0,i=i+Math.imul(mt,Ct)|0,w=w+Math.imul(mt,Rt)|0,p=p+Math.imul(ct,Bt)|0,i=i+Math.imul(ct,At)|0,i=i+Math.imul(dt,Bt)|0,w=w+Math.imul(dt,At)|0,p=p+Math.imul(lt,_t)|0,i=i+Math.imul(lt,Ft)|0,i=i+Math.imul(st,_t)|0,w=w+Math.imul(st,Ft)|0,p=p+Math.imul(tt,Tt)|0,i=i+Math.imul(tt,It)|0,i=i+Math.imul(ot,Tt)|0,w=w+Math.imul(ot,It)|0;var fr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(fr>>>26)|0,fr&=67108863,p=Math.imul(h,xt),i=Math.imul(h,Et),i=i+Math.imul(n,xt)|0,w=Math.imul(n,Et),p=p+Math.imul(gt,bt)|0,i=i+Math.imul(gt,St)|0,i=i+Math.imul(nt,bt)|0,w=w+Math.imul(nt,St)|0,p=p+Math.imul(ut,Ct)|0,i=i+Math.imul(ut,Rt)|0,i=i+Math.imul(X,Ct)|0,w=w+Math.imul(X,Rt)|0,p=p+Math.imul(pt,Bt)|0,i=i+Math.imul(pt,At)|0,i=i+Math.imul(mt,Bt)|0,w=w+Math.imul(mt,At)|0,p=p+Math.imul(ct,_t)|0,i=i+Math.imul(ct,Ft)|0,i=i+Math.imul(dt,_t)|0,w=w+Math.imul(dt,Ft)|0,p=p+Math.imul(lt,Tt)|0,i=i+Math.imul(lt,It)|0,i=i+Math.imul(st,Tt)|0,w=w+Math.imul(st,It)|0;var hr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(hr>>>26)|0,hr&=67108863,p=Math.imul(h,bt),i=Math.imul(h,St),i=i+Math.imul(n,bt)|0,w=Math.imul(n,St),p=p+Math.imul(gt,Ct)|0,i=i+Math.imul(gt,Rt)|0,i=i+Math.imul(nt,Ct)|0,w=w+Math.imul(nt,Rt)|0,p=p+Math.imul(ut,Bt)|0,i=i+Math.imul(ut,At)|0,i=i+Math.imul(X,Bt)|0,w=w+Math.imul(X,At)|0,p=p+Math.imul(pt,_t)|0,i=i+Math.imul(pt,Ft)|0,i=i+Math.imul(mt,_t)|0,w=w+Math.imul(mt,Ft)|0,p=p+Math.imul(ct,Tt)|0,i=i+Math.imul(ct,It)|0,i=i+Math.imul(dt,Tt)|0,w=w+Math.imul(dt,It)|0;var lr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(lr>>>26)|0,lr&=67108863,p=Math.imul(h,Ct),i=Math.imul(h,Rt),i=i+Math.imul(n,Ct)|0,w=Math.imul(n,Rt),p=p+Math.imul(gt,Bt)|0,i=i+Math.imul(gt,At)|0,i=i+Math.imul(nt,Bt)|0,w=w+Math.imul(nt,At)|0,p=p+Math.imul(ut,_t)|0,i=i+Math.imul(ut,Ft)|0,i=i+Math.imul(X,_t)|0,w=w+Math.imul(X,Ft)|0,p=p+Math.imul(pt,Tt)|0,i=i+Math.imul(pt,It)|0,i=i+Math.imul(mt,Tt)|0,w=w+Math.imul(mt,It)|0;var cr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(cr>>>26)|0,cr&=67108863,p=Math.imul(h,Bt),i=Math.imul(h,At),i=i+Math.imul(n,Bt)|0,w=Math.imul(n,At),p=p+Math.imul(gt,_t)|0,i=i+Math.imul(gt,Ft)|0,i=i+Math.imul(nt,_t)|0,w=w+Math.imul(nt,Ft)|0,p=p+Math.imul(ut,Tt)|0,i=i+Math.imul(ut,It)|0,i=i+Math.imul(X,Tt)|0,w=w+Math.imul(X,It)|0;var dr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(dr>>>26)|0,dr&=67108863,p=Math.imul(h,_t),i=Math.imul(h,Ft),i=i+Math.imul(n,_t)|0,w=Math.imul(n,Ft),p=p+Math.imul(gt,Tt)|0,i=i+Math.imul(gt,It)|0,i=i+Math.imul(nt,Tt)|0,w=w+Math.imul(nt,It)|0;var pr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(pr>>>26)|0,pr&=67108863,p=Math.imul(h,Tt),i=Math.imul(h,It),i=i+Math.imul(n,Tt)|0,w=Math.imul(n,It);var mr=(E+p|0)+((i&8191)<<13)|0;return E=(w+(i>>>13)|0)+(mr>>>26)|0,mr&=67108863,x[0]=Ye,x[1]=Xe,x[2]=Qe,x[3]=tr,x[4]=er,x[5]=rr,x[6]=nr,x[7]=ir,x[8]=or,x[9]=sr,x[10]=ar,x[11]=ur,x[12]=fr,x[13]=hr,x[14]=lr,x[15]=cr,x[16]=dr,x[17]=pr,x[18]=mr,E!==0&&(x[19]=E,l.length++),l};Math.imul||($=I);function N(v,r,u){u.negative=r.negative^v.negative,u.length=v.length+r.length;for(var l=0,c=0,d=0;d<u.length-1;d++){var x=c;c=0;for(var E=l&67108863,p=Math.min(d,r.length-1),i=Math.max(0,d-v.length+1);i<=p;i++){var w=d-i,L=v.words[w]|0,U=r.words[i]|0,T=L*U,k=T&67108863;x=x+(T/67108864|0)|0,k=k+E|0,E=k&67108863,x=x+(k>>>26)|0,c+=x>>>26,x&=67108863}u.words[d]=E,l=x,x=c}return l!==0?u.words[d]=l:u.length--,u.strip()}function Z(v,r,u){var l=new j;return l.mulp(v,r,u)}f.prototype.mulTo=function(r,u){var l,c=this.length+r.length;return this.length===10&&r.length===10?l=$(this,r,u):c<63?l=I(this,r,u):c<1024?l=N(this,r,u):l=Z(this,r,u),l};function j(v,r){this.x=v,this.y=r}j.prototype.makeRBT=function(r){for(var u=new Array(r),l=f.prototype._countBits(r)-1,c=0;c<r;c++)u[c]=this.revBin(c,l,r);return u},j.prototype.revBin=function(r,u,l){if(r===0||r===l-1)return r;for(var c=0,d=0;d<u;d++)c|=(r&1)<<u-d-1,r>>=1;return c},j.prototype.permute=function(r,u,l,c,d,x){for(var E=0;E<x;E++)c[E]=u[r[E]],d[E]=l[r[E]]},j.prototype.transform=function(r,u,l,c,d,x){this.permute(x,r,u,l,c,d);for(var E=1;E<d;E<<=1)for(var p=E<<1,i=Math.cos(2*Math.PI/p),w=Math.sin(2*Math.PI/p),L=0;L<d;L+=p)for(var U=i,T=w,k=0;k<E;k++){var J=l[L+k],V=c[L+k],Nt=l[L+k+E],K=c[L+k+E],z=U*Nt-T*K;K=U*K+T*Nt,Nt=z,l[L+k]=J+Nt,c[L+k]=V+K,l[L+k+E]=J-Nt,c[L+k+E]=V-K,k!==p&&(z=i*U-w*T,T=i*T+w*U,U=z)}},j.prototype.guessLen13b=function(r,u){var l=Math.max(u,r)|1,c=l&1,d=0;for(l=l/2|0;l;l=l>>>1)d++;return 1<<d+1+c},j.prototype.conjugate=function(r,u,l){if(!(l<=1))for(var c=0;c<l/2;c++){var d=r[c];r[c]=r[l-c-1],r[l-c-1]=d,d=u[c],u[c]=-u[l-c-1],u[l-c-1]=-d}},j.prototype.normalize13b=function(r,u){for(var l=0,c=0;c<u/2;c++){var d=Math.round(r[2*c+1]/u)*8192+Math.round(r[2*c]/u)+l;r[c]=d&67108863,d<67108864?l=0:l=d/67108864|0}return r},j.prototype.convert13b=function(r,u,l,c){for(var d=0,x=0;x<u;x++)d=d+(r[x]|0),l[2*x]=d&8191,d=d>>>13,l[2*x+1]=d&8191,d=d>>>13;for(x=2*u;x<c;++x)l[x]=0;a(d===0),a((d&-8192)===0)},j.prototype.stub=function(r){for(var u=new Array(r),l=0;l<r;l++)u[l]=0;return u},j.prototype.mulp=function(r,u,l){var c=2*this.guessLen13b(r.length,u.length),d=this.makeRBT(c),x=this.stub(c),E=new Array(c),p=new Array(c),i=new Array(c),w=new Array(c),L=new Array(c),U=new Array(c),T=l.words;T.length=c,this.convert13b(r.words,r.length,E,c),this.convert13b(u.words,u.length,w,c),this.transform(E,x,p,i,c,d),this.transform(w,x,L,U,c,d);for(var k=0;k<c;k++){var J=p[k]*L[k]-i[k]*U[k];i[k]=p[k]*U[k]+i[k]*L[k],p[k]=J}return this.conjugate(p,i,c),this.transform(p,i,T,x,c,d),this.conjugate(T,x,c),this.normalize13b(T,c),l.negative=r.negative^u.negative,l.length=r.length+u.length,l.strip()},f.prototype.mul=function(r){var u=new f(null);return u.words=new Array(this.length+r.length),this.mulTo(r,u)},f.prototype.mulf=function(r){var u=new f(null);return u.words=new Array(this.length+r.length),Z(this,r,u)},f.prototype.imul=function(r){return this.clone().mulTo(r,this)},f.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var u=0,l=0;l<this.length;l++){var c=(this.words[l]|0)*r,d=(c&67108863)+(u&67108863);u>>=26,u+=c/67108864|0,u+=d>>>26,this.words[l]=d&67108863}return u!==0&&(this.words[l]=u,this.length++),this},f.prototype.muln=function(r){return this.clone().imuln(r)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(r){var u=P(r);if(u.length===0)return new f(1);for(var l=this,c=0;c<u.length&&u[c]===0;c++,l=l.sqr());if(++c<u.length)for(var d=l.sqr();c<u.length;c++,d=d.sqr())u[c]!==0&&(l=l.mul(d));return l},f.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var u=r%26,l=(r-u)/26,c=67108863>>>26-u<<26-u,d;if(u!==0){var x=0;for(d=0;d<this.length;d++){var E=this.words[d]&c,p=(this.words[d]|0)-E<<u;this.words[d]=p|x,x=E>>>26-u}x&&(this.words[d]=x,this.length++)}if(l!==0){for(d=this.length-1;d>=0;d--)this.words[d+l]=this.words[d];for(d=0;d<l;d++)this.words[d]=0;this.length+=l}return this.strip()},f.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},f.prototype.iushrn=function(r,u,l){a(typeof r=="number"&&r>=0);var c;u?c=(u-u%26)/26:c=0;var d=r%26,x=Math.min((r-d)/26,this.length),E=67108863^67108863>>>d<<d,p=l;if(c-=x,c=Math.max(0,c),p){for(var i=0;i<x;i++)p.words[i]=this.words[i];p.length=x}if(x!==0)if(this.length>x)for(this.length-=x,i=0;i<this.length;i++)this.words[i]=this.words[i+x];else this.words[0]=0,this.length=1;var w=0;for(i=this.length-1;i>=0&&(w!==0||i>=c);i--){var L=this.words[i]|0;this.words[i]=w<<26-d|L>>>d,w=L&E}return p&&w!==0&&(p.words[p.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(r,u,l){return a(this.negative===0),this.iushrn(r,u,l)},f.prototype.shln=function(r){return this.clone().ishln(r)},f.prototype.ushln=function(r){return this.clone().iushln(r)},f.prototype.shrn=function(r){return this.clone().ishrn(r)},f.prototype.ushrn=function(r){return this.clone().iushrn(r)},f.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var u=r%26,l=(r-u)/26,c=1<<u;if(this.length<=l)return!1;var d=this.words[l];return!!(d&c)},f.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var u=r%26,l=(r-u)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(u!==0&&l++,this.length=Math.min(l,this.length),u!==0){var c=67108863^67108863>>>u<<u;this.words[this.length-1]&=c}return this.strip()},f.prototype.maskn=function(r){return this.clone().imaskn(r)},f.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},f.prototype._iaddn=function(r){this.words[0]+=r;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},f.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},f.prototype.addn=function(r){return this.clone().iaddn(r)},f.prototype.subn=function(r){return this.clone().isubn(r)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(r,u,l){var c=r.length+l,d;this._expand(c);var x,E=0;for(d=0;d<r.length;d++){x=(this.words[d+l]|0)+E;var p=(r.words[d]|0)*u;x-=p&67108863,E=(x>>26)-(p/67108864|0),this.words[d+l]=x&67108863}for(;d<this.length-l;d++)x=(this.words[d+l]|0)+E,E=x>>26,this.words[d+l]=x&67108863;if(E===0)return this.strip();for(a(E===-1),E=0,d=0;d<this.length;d++)x=-(this.words[d]|0)+E,E=x>>26,this.words[d]=x&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(r,u){var l=this.length-r.length,c=this.clone(),d=r,x=d.words[d.length-1]|0,E=this._countBits(x);l=26-E,l!==0&&(d=d.ushln(l),c.iushln(l),x=d.words[d.length-1]|0);var p=c.length-d.length,i;if(u!=="mod"){i=new f(null),i.length=p+1,i.words=new Array(i.length);for(var w=0;w<i.length;w++)i.words[w]=0}var L=c.clone()._ishlnsubmul(d,1,p);L.negative===0&&(c=L,i&&(i.words[p]=1));for(var U=p-1;U>=0;U--){var T=(c.words[d.length+U]|0)*67108864+(c.words[d.length+U-1]|0);for(T=Math.min(T/x|0,67108863),c._ishlnsubmul(d,T,U);c.negative!==0;)T--,c.negative=0,c._ishlnsubmul(d,1,U),c.isZero()||(c.negative^=1);i&&(i.words[U]=T)}return i&&i.strip(),c.strip(),u!=="div"&&l!==0&&c.iushrn(l),{div:i||null,mod:c}},f.prototype.divmod=function(r,u,l){if(a(!r.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var c,d,x;return this.negative!==0&&r.negative===0?(x=this.neg().divmod(r,u),u!=="mod"&&(c=x.div.neg()),u!=="div"&&(d=x.mod.neg(),l&&d.negative!==0&&d.iadd(r)),{div:c,mod:d}):this.negative===0&&r.negative!==0?(x=this.divmod(r.neg(),u),u!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&r.negative?(x=this.neg().divmod(r.neg(),u),u!=="div"&&(d=x.mod.neg(),l&&d.negative!==0&&d.isub(r)),{div:x.div,mod:d}):r.length>this.length||this.cmp(r)<0?{div:new f(0),mod:this}:r.length===1?u==="div"?{div:this.divn(r.words[0]),mod:null}:u==="mod"?{div:null,mod:new f(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new f(this.modn(r.words[0]))}:this._wordDiv(r,u)},f.prototype.div=function(r){return this.divmod(r,"div",!1).div},f.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},f.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},f.prototype.divRound=function(r){var u=this.divmod(r);if(u.mod.isZero())return u.div;var l=u.div.negative!==0?u.mod.isub(r):u.mod,c=r.ushrn(1),d=r.andln(1),x=l.cmp(c);return x<0||d===1&&x===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},f.prototype.modn=function(r){a(r<=67108863);for(var u=(1<<26)%r,l=0,c=this.length-1;c>=0;c--)l=(u*l+(this.words[c]|0))%r;return l},f.prototype.idivn=function(r){a(r<=67108863);for(var u=0,l=this.length-1;l>=0;l--){var c=(this.words[l]|0)+u*67108864;this.words[l]=c/r|0,u=c%r}return this.strip()},f.prototype.divn=function(r){return this.clone().idivn(r)},f.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var u=this,l=r.clone();u.negative!==0?u=u.umod(r):u=u.clone();for(var c=new f(1),d=new f(0),x=new f(0),E=new f(1),p=0;u.isEven()&&l.isEven();)u.iushrn(1),l.iushrn(1),++p;for(var i=l.clone(),w=u.clone();!u.isZero();){for(var L=0,U=1;!(u.words[0]&U)&&L<26;++L,U<<=1);if(L>0)for(u.iushrn(L);L-- >0;)(c.isOdd()||d.isOdd())&&(c.iadd(i),d.isub(w)),c.iushrn(1),d.iushrn(1);for(var T=0,k=1;!(l.words[0]&k)&&T<26;++T,k<<=1);if(T>0)for(l.iushrn(T);T-- >0;)(x.isOdd()||E.isOdd())&&(x.iadd(i),E.isub(w)),x.iushrn(1),E.iushrn(1);u.cmp(l)>=0?(u.isub(l),c.isub(x),d.isub(E)):(l.isub(u),x.isub(c),E.isub(d))}return{a:x,b:E,gcd:l.iushln(p)}},f.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var u=this,l=r.clone();u.negative!==0?u=u.umod(r):u=u.clone();for(var c=new f(1),d=new f(0),x=l.clone();u.cmpn(1)>0&&l.cmpn(1)>0;){for(var E=0,p=1;!(u.words[0]&p)&&E<26;++E,p<<=1);if(E>0)for(u.iushrn(E);E-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var i=0,w=1;!(l.words[0]&w)&&i<26;++i,w<<=1);if(i>0)for(l.iushrn(i);i-- >0;)d.isOdd()&&d.iadd(x),d.iushrn(1);u.cmp(l)>=0?(u.isub(l),c.isub(d)):(l.isub(u),d.isub(c))}var L;return u.cmpn(1)===0?L=c:L=d,L.cmpn(0)<0&&L.iadd(r),L},f.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var u=this.clone(),l=r.clone();u.negative=0,l.negative=0;for(var c=0;u.isEven()&&l.isEven();c++)u.iushrn(1),l.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;l.isEven();)l.iushrn(1);var d=u.cmp(l);if(d<0){var x=u;u=l,l=x}else if(d===0||l.cmpn(1)===0)break;u.isub(l)}while(!0);return l.iushln(c)},f.prototype.invm=function(r){return this.egcd(r).a.umod(r)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(r){return this.words[0]&r},f.prototype.bincn=function(r){a(typeof r=="number");var u=r%26,l=(r-u)/26,c=1<<u;if(this.length<=l)return this._expand(l+1),this.words[l]|=c,this;for(var d=c,x=l;d!==0&&x<this.length;x++){var E=this.words[x]|0;E+=d,d=E>>>26,E&=67108863,this.words[x]=E}return d!==0&&(this.words[x]=d,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(r){var u=r<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var l;if(this.length>1)l=1;else{u&&(r=-r),a(r<=67108863,"Number is too big");var c=this.words[0]|0;l=c===r?0:c<r?-1:1}return this.negative!==0?-l|0:l},f.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var u=this.ucmp(r);return this.negative!==0?-u|0:u},f.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var u=0,l=this.length-1;l>=0;l--){var c=this.words[l]|0,d=r.words[l]|0;if(c!==d){c<d?u=-1:c>d&&(u=1);break}}return u},f.prototype.gtn=function(r){return this.cmpn(r)===1},f.prototype.gt=function(r){return this.cmp(r)===1},f.prototype.gten=function(r){return this.cmpn(r)>=0},f.prototype.gte=function(r){return this.cmp(r)>=0},f.prototype.ltn=function(r){return this.cmpn(r)===-1},f.prototype.lt=function(r){return this.cmp(r)===-1},f.prototype.lten=function(r){return this.cmpn(r)<=0},f.prototype.lte=function(r){return this.cmp(r)<=0},f.prototype.eqn=function(r){return this.cmpn(r)===0},f.prototype.eq=function(r){return this.cmp(r)===0},f.red=function(r){return new G(r)},f.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},f.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(r){return this.red=r,this},f.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},f.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},f.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},f.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},f.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},f.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},f.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},f.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},f.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var Q={k256:null,p224:null,p192:null,p25519:null};function Y(v,r){this.name=v,this.p=new f(r,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Y.prototype._tmp=function(){var r=new f(null);return r.words=new Array(Math.ceil(this.n/13)),r},Y.prototype.ireduce=function(r){var u=r,l;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),l=u.bitLength();while(l>this.n);var c=l<this.n?-1:u.ucmp(this.p);return c===0?(u.words[0]=0,u.length=1):c>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},Y.prototype.split=function(r,u){r.iushrn(this.n,0,u)},Y.prototype.imulK=function(r){return r.imul(this.k)};function it(){Y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(it,Y),it.prototype.split=function(r,u){for(var l=4194303,c=Math.min(r.length,9),d=0;d<c;d++)u.words[d]=r.words[d];if(u.length=c,r.length<=9){r.words[0]=0,r.length=1;return}var x=r.words[9];for(u.words[u.length++]=x&l,d=10;d<r.length;d++){var E=r.words[d]|0;r.words[d-10]=(E&l)<<4|x>>>22,x=E}x>>>=22,r.words[d-10]=x,x===0&&r.length>10?r.length-=10:r.length-=9},it.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var u=0,l=0;l<r.length;l++){var c=r.words[l]|0;u+=c*977,r.words[l]=u&67108863,u=c*64+(u/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function at(){Y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(at,Y);function Ut(){Y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Ut,Y);function ht(){Y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ht,Y),ht.prototype.imulK=function(r){for(var u=0,l=0;l<r.length;l++){var c=(r.words[l]|0)*19+u,d=c&67108863;c>>>=26,r.words[l]=d,u=c}return u!==0&&(r.words[r.length++]=u),r},f._prime=function(r){if(Q[r])return Q[r];var u;if(r==="k256")u=new it;else if(r==="p224")u=new at;else if(r==="p192")u=new Ut;else if(r==="p25519")u=new ht;else throw new Error("Unknown prime "+r);return Q[r]=u,u};function G(v){if(typeof v=="string"){var r=f._prime(v);this.m=r.p,this.prime=r}else a(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}G.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},G.prototype._verify2=function(r,u){a((r.negative|u.negative)===0,"red works only with positives"),a(r.red&&r.red===u.red,"red works only with red numbers")},G.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},G.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},G.prototype.add=function(r,u){this._verify2(r,u);var l=r.add(u);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},G.prototype.iadd=function(r,u){this._verify2(r,u);var l=r.iadd(u);return l.cmp(this.m)>=0&&l.isub(this.m),l},G.prototype.sub=function(r,u){this._verify2(r,u);var l=r.sub(u);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},G.prototype.isub=function(r,u){this._verify2(r,u);var l=r.isub(u);return l.cmpn(0)<0&&l.iadd(this.m),l},G.prototype.shl=function(r,u){return this._verify1(r),this.imod(r.ushln(u))},G.prototype.imul=function(r,u){return this._verify2(r,u),this.imod(r.imul(u))},G.prototype.mul=function(r,u){return this._verify2(r,u),this.imod(r.mul(u))},G.prototype.isqr=function(r){return this.imul(r,r.clone())},G.prototype.sqr=function(r){return this.mul(r,r)},G.prototype.sqrt=function(r){if(r.isZero())return r.clone();var u=this.m.andln(3);if(a(u%2===1),u===3){var l=this.m.add(new f(1)).iushrn(2);return this.pow(r,l)}for(var c=this.m.subn(1),d=0;!c.isZero()&&c.andln(1)===0;)d++,c.iushrn(1);a(!c.isZero());var x=new f(1).toRed(this),E=x.redNeg(),p=this.m.subn(1).iushrn(1),i=this.m.bitLength();for(i=new f(2*i*i).toRed(this);this.pow(i,p).cmp(E)!==0;)i.redIAdd(E);for(var w=this.pow(i,c),L=this.pow(r,c.addn(1).iushrn(1)),U=this.pow(r,c),T=d;U.cmp(x)!==0;){for(var k=U,J=0;k.cmp(x)!==0;J++)k=k.redSqr();a(J<T);var V=this.pow(w,new f(1).iushln(T-J-1));L=L.redMul(V),w=V.redSqr(),U=U.redMul(w),T=J}return L},G.prototype.invm=function(r){var u=r._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},G.prototype.pow=function(r,u){if(u.isZero())return new f(1).toRed(this);if(u.cmpn(1)===0)return r.clone();var l=4,c=new Array(1<<l);c[0]=new f(1).toRed(this),c[1]=r;for(var d=2;d<c.length;d++)c[d]=this.mul(c[d-1],r);var x=c[0],E=0,p=0,i=u.bitLength()%26;for(i===0&&(i=26),d=u.length-1;d>=0;d--){for(var w=u.words[d],L=i-1;L>=0;L--){var U=w>>L&1;if(x!==c[0]&&(x=this.sqr(x)),U===0&&E===0){p=0;continue}E<<=1,E|=U,p++,!(p!==l&&(d!==0||L!==0))&&(x=this.mul(x,c[E]),p=0,E=0)}i=26}return x},G.prototype.convertTo=function(r){var u=r.umod(this.m);return u===r?u.clone():u},G.prototype.convertFrom=function(r){var u=r.clone();return u.red=null,u},f.mont=function(r){return new rt(r)};function rt(v){G.call(this,v),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(rt,G),rt.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},rt.prototype.convertFrom=function(r){var u=this.imod(r.mul(this.rinv));return u.red=null,u},rt.prototype.imul=function(r,u){if(r.isZero()||u.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(u),c=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=l.isub(c).iushrn(this.shift),x=d;return d.cmp(this.m)>=0?x=d.isub(this.m):d.cmpn(0)<0&&(x=d.iadd(this.m)),x._forceRed(this)},rt.prototype.mul=function(r,u){if(r.isZero()||u.isZero())return new f(0)._forceRed(this);var l=r.mul(u),c=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=l.isub(c).iushrn(this.shift),x=d;return d.cmp(this.m)>=0?x=d.isub(this.m):d.cmpn(0)<0&&(x=d.iadd(this.m)),x._forceRed(this)},rt.prototype.invm=function(r){var u=this.imod(r._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(t,dn)})(Dr);var Oa=Dr.exports;function On(t,e){return function(){return t.apply(e,arguments)}}const{toString:Fo}=Object.prototype,{getPrototypeOf:qr}=Object,We=(t=>e=>{const s=Fo.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),jt=t=>(t=t.toLowerCase(),e=>We(e)===t),Je=t=>e=>typeof e===t,{isArray:pe}=Array,ve=Je("undefined");function To(t){return t!==null&&!ve(t)&&t.constructor!==null&&!ve(t.constructor)&&Dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ln=jt("ArrayBuffer");function Io(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ln(t.buffer),e}const Oo=Je("string"),Dt=Je("function"),Un=Je("number"),Ze=t=>t!==null&&typeof t=="object",Lo=t=>t===!0||t===!1,_e=t=>{if(We(t)!=="object")return!1;const e=qr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Uo=jt("Date"),No=jt("File"),$o=jt("Blob"),Po=jt("FileList"),ko=t=>Ze(t)&&Dt(t.pipe),Do=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Dt(t.append)&&((e=We(t))==="formdata"||e==="object"&&Dt(t.toString)&&t.toString()==="[object FormData]"))},qo=jt("URLSearchParams"),[Ho,jo,zo,Wo]=["ReadableStream","Request","Response","Headers"].map(jt),Jo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xe(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let a,m;if(typeof t!="object"&&(t=[t]),pe(t))for(a=0,m=t.length;a<m;a++)e.call(null,t[a],a,t);else{const f=s?Object.getOwnPropertyNames(t):Object.keys(t),M=f.length;let S;for(a=0;a<M;a++)S=f[a],e.call(null,t[S],S,t)}}function Nn(t,e){e=e.toLowerCase();const s=Object.keys(t);let a=s.length,m;for(;a-- >0;)if(m=s[a],e===m.toLowerCase())return m;return null}const Xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ai,$n=t=>!ve(t)&&t!==Xt;function Br(){const{caseless:t}=$n(this)&&this||{},e={},s=(a,m)=>{const f=t&&Nn(e,m)||m;_e(e[f])&&_e(a)?e[f]=Br(e[f],a):_e(a)?e[f]=Br({},a):pe(a)?e[f]=a.slice():e[f]=a};for(let a=0,m=arguments.length;a<m;a++)arguments[a]&&xe(arguments[a],s);return e}const Zo=(t,e,s,{allOwnKeys:a}={})=>(xe(e,(m,f)=>{s&&Dt(m)?t[f]=On(m,s):t[f]=m},{allOwnKeys:a}),t),Vo=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ko=(t,e,s,a)=>{t.prototype=Object.create(e.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},Go=(t,e,s,a)=>{let m,f,M;const S={};if(e=e||{},t==null)return e;do{for(m=Object.getOwnPropertyNames(t),f=m.length;f-- >0;)M=m[f],(!a||a(M,t,e))&&!S[M]&&(e[M]=t[M],S[M]=!0);t=s!==!1&&qr(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},Yo=(t,e,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=e.length;const a=t.indexOf(e,s);return a!==-1&&a===s},Xo=t=>{if(!t)return null;if(pe(t))return t;let e=t.length;if(!Un(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},Qo=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qr(Uint8Array)),ts=(t,e)=>{const a=(t&&t[Symbol.iterator]).call(t);let m;for(;(m=a.next())&&!m.done;){const f=m.value;e.call(t,f[0],f[1])}},es=(t,e)=>{let s;const a=[];for(;(s=t.exec(e))!==null;)a.push(s);return a},rs=jt("HTMLFormElement"),ns=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,a,m){return a.toUpperCase()+m}),Xr=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),is=jt("RegExp"),Pn=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),a={};xe(s,(m,f)=>{let M;(M=e(m,f,t))!==!1&&(a[f]=M||m)}),Object.defineProperties(t,a)},os=t=>{Pn(t,(e,s)=>{if(Dt(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const a=t[s];if(Dt(a)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},ss=(t,e)=>{const s={},a=m=>{m.forEach(f=>{s[f]=!0})};return pe(t)?a(t):a(String(t).split(e)),s},as=()=>{},us=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,wr="abcdefghijklmnopqrstuvwxyz",Qr="0123456789",kn={DIGIT:Qr,ALPHA:wr,ALPHA_DIGIT:wr+wr.toUpperCase()+Qr},fs=(t=16,e=kn.ALPHA_DIGIT)=>{let s="";const{length:a}=e;for(;t--;)s+=e[Math.random()*a|0];return s};function hs(t){return!!(t&&Dt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ls=t=>{const e=new Array(10),s=(a,m)=>{if(Ze(a)){if(e.indexOf(a)>=0)return;if(!("toJSON"in a)){e[m]=a;const f=pe(a)?[]:{};return xe(a,(M,S)=>{const F=s(M,m+1);!ve(F)&&(f[S]=F)}),e[m]=void 0,f}}return a};return s(t,0)},cs=jt("AsyncFunction"),ds=t=>t&&(Ze(t)||Dt(t))&&Dt(t.then)&&Dt(t.catch),Dn=((t,e)=>t?setImmediate:e?((s,a)=>(Xt.addEventListener("message",({source:m,data:f})=>{m===Xt&&f===s&&a.length&&a.shift()()},!1),m=>{a.push(m),Xt.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Dt(Xt.postMessage)),ps=typeof queueMicrotask<"u"?queueMicrotask.bind(Xt):typeof Ue<"u"&&Ue.nextTick||Dn,A={isArray:pe,isArrayBuffer:Ln,isBuffer:To,isFormData:Do,isArrayBufferView:Io,isString:Oo,isNumber:Un,isBoolean:Lo,isObject:Ze,isPlainObject:_e,isReadableStream:Ho,isRequest:jo,isResponse:zo,isHeaders:Wo,isUndefined:ve,isDate:Uo,isFile:No,isBlob:$o,isRegExp:is,isFunction:Dt,isStream:ko,isURLSearchParams:qo,isTypedArray:Qo,isFileList:Po,forEach:xe,merge:Br,extend:Zo,trim:Jo,stripBOM:Vo,inherits:Ko,toFlatObject:Go,kindOf:We,kindOfTest:jt,endsWith:Yo,toArray:Xo,forEachEntry:ts,matchAll:es,isHTMLForm:rs,hasOwnProperty:Xr,hasOwnProp:Xr,reduceDescriptors:Pn,freezeMethods:os,toObjectSet:ss,toCamelCase:ns,noop:as,toFiniteNumber:us,findKey:Nn,global:Xt,isContextDefined:$n,ALPHABET:kn,generateString:fs,isSpecCompliantForm:hs,toJSONObject:ls,isAsyncFn:cs,isThenable:ds,setImmediate:Dn,asap:ps};function W(t,e,s,a,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),a&&(this.request=a),m&&(this.response=m,this.status=m.status?m.status:null)}A.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const qn=W.prototype,Hn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Hn[t]={value:t}});Object.defineProperties(W,Hn);Object.defineProperty(qn,"isAxiosError",{value:!0});W.from=(t,e,s,a,m,f)=>{const M=Object.create(qn);return A.toFlatObject(t,M,function(F){return F!==Error.prototype},S=>S!=="isAxiosError"),W.call(M,t.message,e,s,a,m),M.cause=t,M.name=t.name,f&&Object.assign(M,f),M};const ms=null;function Ar(t){return A.isPlainObject(t)||A.isArray(t)}function jn(t){return A.endsWith(t,"[]")?t.slice(0,-2):t}function tn(t,e,s){return t?t.concat(e).map(function(m,f){return m=jn(m),!s&&f?"["+m+"]":m}).join(s?".":""):e}function gs(t){return A.isArray(t)&&!t.some(Ar)}const ys=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function Ve(t,e,s){if(!A.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=A.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function($,N){return!A.isUndefined(N[$])});const a=s.metaTokens,m=s.visitor||y,f=s.dots,M=s.indexes,F=(s.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(e);if(!A.isFunction(m))throw new TypeError("visitor must be a function");function C(I){if(I===null)return"";if(A.isDate(I))return I.toISOString();if(!F&&A.isBlob(I))throw new W("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(I)||A.isTypedArray(I)?F&&typeof Blob=="function"?new Blob([I]):In.from(I):I}function y(I,$,N){let Z=I;if(I&&!N&&typeof I=="object"){if(A.endsWith($,"{}"))$=a?$:$.slice(0,-2),I=JSON.stringify(I);else if(A.isArray(I)&&gs(I)||(A.isFileList(I)||A.endsWith($,"[]"))&&(Z=A.toArray(I)))return $=jn($),Z.forEach(function(Q,Y){!(A.isUndefined(Q)||Q===null)&&e.append(M===!0?tn([$],Y,f):M===null?$:$+"[]",C(Q))}),!1}return Ar(I)?!0:(e.append(tn(N,$,f),C(I)),!1)}const _=[],O=Object.assign(ys,{defaultVisitor:y,convertValue:C,isVisitable:Ar});function P(I,$){if(!A.isUndefined(I)){if(_.indexOf(I)!==-1)throw Error("Circular reference detected in "+$.join("."));_.push(I),A.forEach(I,function(Z,j){(!(A.isUndefined(Z)||Z===null)&&m.call(e,Z,A.isString(j)?j.trim():j,$,O))===!0&&P(Z,$?$.concat(j):[j])}),_.pop()}}if(!A.isObject(t))throw new TypeError("data must be an object");return P(t),e}function en(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return e[a]})}function Hr(t,e){this._pairs=[],t&&Ve(t,this,e)}const zn=Hr.prototype;zn.append=function(e,s){this._pairs.push([e,s])};zn.toString=function(e){const s=e?function(a){return e.call(this,a,en)}:en;return this._pairs.map(function(m){return s(m[0])+"="+s(m[1])},"").join("&")};function ws(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wn(t,e,s){if(!e)return t;const a=s&&s.encode||ws;A.isFunction(s)&&(s={serialize:s});const m=s&&s.serialize;let f;if(m?f=m(e,s):f=A.isURLSearchParams(e)?e.toString():new Hr(e,s).toString(a),f){const M=t.indexOf("#");M!==-1&&(t=t.slice(0,M)),t+=(t.indexOf("?")===-1?"?":"&")+f}return t}class rn{constructor(){this.handlers=[]}use(e,s,a){return this.handlers.push({fulfilled:e,rejected:s,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){A.forEach(this.handlers,function(a){a!==null&&e(a)})}}const Jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vs=typeof URLSearchParams<"u"?URLSearchParams:Hr,Ms=typeof FormData<"u"?FormData:null,xs=typeof Blob<"u"?Blob:null,Es={isBrowser:!0,classes:{URLSearchParams:vs,FormData:Ms,Blob:xs},protocols:["http","https","file","blob","url","data"]},jr=typeof window<"u"&&typeof document<"u",_r=typeof navigator=="object"&&navigator||void 0,bs=jr&&(!_r||["ReactNative","NativeScript","NS"].indexOf(_r.product)<0),Ss=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Cs=jr&&window.location.href||"http://localhost",Rs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jr,hasStandardBrowserEnv:bs,hasStandardBrowserWebWorkerEnv:Ss,navigator:_r,origin:Cs},Symbol.toStringTag,{value:"Module"})),Pt={...Rs,...Es};function Bs(t,e){return Ve(t,new Pt.classes.URLSearchParams,Object.assign({visitor:function(s,a,m,f){return Pt.isNode&&A.isBuffer(s)?(this.append(a,s.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},e))}function As(t){return A.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _s(t){const e={},s=Object.keys(t);let a;const m=s.length;let f;for(a=0;a<m;a++)f=s[a],e[f]=t[f];return e}function Zn(t){function e(s,a,m,f){let M=s[f++];if(M==="__proto__")return!0;const S=Number.isFinite(+M),F=f>=s.length;return M=!M&&A.isArray(m)?m.length:M,F?(A.hasOwnProp(m,M)?m[M]=[m[M],a]:m[M]=a,!S):((!m[M]||!A.isObject(m[M]))&&(m[M]=[]),e(s,a,m[M],f)&&A.isArray(m[M])&&(m[M]=_s(m[M])),!S)}if(A.isFormData(t)&&A.isFunction(t.entries)){const s={};return A.forEachEntry(t,(a,m)=>{e(As(a),m,s,0)}),s}return null}function Fs(t,e,s){if(A.isString(t))try{return(e||JSON.parse)(t),A.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(s||JSON.stringify)(t)}const Ee={transitional:Jn,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const a=s.getContentType()||"",m=a.indexOf("application/json")>-1,f=A.isObject(e);if(f&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return m?JSON.stringify(Zn(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)||A.isReadableStream(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let S;if(f){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Bs(e,this.formSerializer).toString();if((S=A.isFileList(e))||a.indexOf("multipart/form-data")>-1){const F=this.env&&this.env.FormData;return Ve(S?{"files[]":e}:e,F&&new F,this.formSerializer)}}return f||m?(s.setContentType("application/json",!1),Fs(e)):e}],transformResponse:[function(e){const s=this.transitional||Ee.transitional,a=s&&s.forcedJSONParsing,m=this.responseType==="json";if(A.isResponse(e)||A.isReadableStream(e))return e;if(e&&A.isString(e)&&(a&&!this.responseType||m)){const M=!(s&&s.silentJSONParsing)&&m;try{return JSON.parse(e)}catch(S){if(M)throw S.name==="SyntaxError"?W.from(S,W.ERR_BAD_RESPONSE,this,null,this.response):S}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],t=>{Ee.headers[t]={}});const Ts=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Is=t=>{const e={};let s,a,m;return t&&t.split(`
7
- `).forEach(function(M){m=M.indexOf(":"),s=M.substring(0,m).trim().toLowerCase(),a=M.substring(m+1).trim(),!(!s||e[s]&&Ts[s])&&(s==="set-cookie"?e[s]?e[s].push(a):e[s]=[a]:e[s]=e[s]?e[s]+", "+a:a)}),e},nn=Symbol("internals");function ye(t){return t&&String(t).trim().toLowerCase()}function Fe(t){return t===!1||t==null?t:A.isArray(t)?t.map(Fe):String(t)}function Os(t){const e=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=s.exec(t);)e[a[1]]=a[2];return e}const Ls=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function vr(t,e,s,a,m){if(A.isFunction(a))return a.call(this,e,s);if(m&&(e=s),!!A.isString(e)){if(A.isString(a))return e.indexOf(a)!==-1;if(A.isRegExp(a))return a.test(e)}}function Us(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,a)=>s.toUpperCase()+a)}function Ns(t,e){const s=A.toCamelCase(" "+e);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+s,{value:function(m,f,M){return this[a].call(this,e,m,f,M)},configurable:!0})})}let kt=class{constructor(e){e&&this.set(e)}set(e,s,a){const m=this;function f(S,F,C){const y=ye(F);if(!y)throw new Error("header name must be a non-empty string");const _=A.findKey(m,y);(!_||m[_]===void 0||C===!0||C===void 0&&m[_]!==!1)&&(m[_||F]=Fe(S))}const M=(S,F)=>A.forEach(S,(C,y)=>f(C,y,F));if(A.isPlainObject(e)||e instanceof this.constructor)M(e,s);else if(A.isString(e)&&(e=e.trim())&&!Ls(e))M(Is(e),s);else if(A.isHeaders(e))for(const[S,F]of e.entries())f(F,S,a);else e!=null&&f(s,e,a);return this}get(e,s){if(e=ye(e),e){const a=A.findKey(this,e);if(a){const m=this[a];if(!s)return m;if(s===!0)return Os(m);if(A.isFunction(s))return s.call(this,m,a);if(A.isRegExp(s))return s.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=ye(e),e){const a=A.findKey(this,e);return!!(a&&this[a]!==void 0&&(!s||vr(this,this[a],a,s)))}return!1}delete(e,s){const a=this;let m=!1;function f(M){if(M=ye(M),M){const S=A.findKey(a,M);S&&(!s||vr(a,a[S],S,s))&&(delete a[S],m=!0)}}return A.isArray(e)?e.forEach(f):f(e),m}clear(e){const s=Object.keys(this);let a=s.length,m=!1;for(;a--;){const f=s[a];(!e||vr(this,this[f],f,e,!0))&&(delete this[f],m=!0)}return m}normalize(e){const s=this,a={};return A.forEach(this,(m,f)=>{const M=A.findKey(a,f);if(M){s[M]=Fe(m),delete s[f];return}const S=e?Us(f):String(f).trim();S!==f&&delete s[f],s[S]=Fe(m),a[S]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return A.forEach(this,(a,m)=>{a!=null&&a!==!1&&(s[m]=e&&A.isArray(a)?a.join(", "):a)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,s])=>e+": "+s).join(`
8
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const a=new this(e);return s.forEach(m=>a.set(m)),a}static accessor(e){const a=(this[nn]=this[nn]={accessors:{}}).accessors,m=this.prototype;function f(M){const S=ye(M);a[S]||(Ns(m,M),a[S]=!0)}return A.isArray(e)?e.forEach(f):f(e),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(kt.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(a){this[s]=a}}});A.freezeMethods(kt);function Mr(t,e){const s=this||Ee,a=e||s,m=kt.from(a.headers);let f=a.data;return A.forEach(t,function(S){f=S.call(s,f,m.normalize(),e?e.status:void 0)}),m.normalize(),f}function Vn(t){return!!(t&&t.__CANCEL__)}function me(t,e,s){W.call(this,t??"canceled",W.ERR_CANCELED,e,s),this.name="CanceledError"}A.inherits(me,W,{__CANCEL__:!0});function Kn(t,e,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?t(s):e(new W("Request failed with status code "+s.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function $s(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ps(t,e){t=t||10;const s=new Array(t),a=new Array(t);let m=0,f=0,M;return e=e!==void 0?e:1e3,function(F){const C=Date.now(),y=a[f];M||(M=C),s[m]=F,a[m]=C;let _=f,O=0;for(;_!==m;)O+=s[_++],_=_%t;if(m=(m+1)%t,m===f&&(f=(f+1)%t),C-M<e)return;const P=y&&C-y;return P?Math.round(O*1e3/P):void 0}}function ks(t,e){let s=0,a=1e3/e,m,f;const M=(C,y=Date.now())=>{s=y,m=null,f&&(clearTimeout(f),f=null),t.apply(null,C)};return[(...C)=>{const y=Date.now(),_=y-s;_>=a?M(C,y):(m=C,f||(f=setTimeout(()=>{f=null,M(m)},a-_)))},()=>m&&M(m)]}const Ne=(t,e,s=3)=>{let a=0;const m=Ps(50,250);return ks(f=>{const M=f.loaded,S=f.lengthComputable?f.total:void 0,F=M-a,C=m(F),y=M<=S;a=M;const _={loaded:M,total:S,progress:S?M/S:void 0,bytes:F,rate:C||void 0,estimated:C&&S&&y?(S-M)/C:void 0,event:f,lengthComputable:S!=null,[e?"download":"upload"]:!0};t(_)},s)},on=(t,e)=>{const s=t!=null;return[a=>e[0]({lengthComputable:s,total:t,loaded:a}),e[1]]},sn=t=>(...e)=>A.asap(()=>t(...e)),Ds=Pt.hasStandardBrowserEnv?((t,e)=>s=>(s=new URL(s,Pt.origin),t.protocol===s.protocol&&t.host===s.host&&(e||t.port===s.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,qs=Pt.hasStandardBrowserEnv?{write(t,e,s,a,m,f){const M=[t+"="+encodeURIComponent(e)];A.isNumber(s)&&M.push("expires="+new Date(s).toGMTString()),A.isString(a)&&M.push("path="+a),A.isString(m)&&M.push("domain="+m),f===!0&&M.push("secure"),document.cookie=M.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hs(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function js(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Gn(t,e){return t&&!Hs(e)?js(t,e):e}const an=t=>t instanceof kt?{...t}:t;function ee(t,e){e=e||{};const s={};function a(C,y,_,O){return A.isPlainObject(C)&&A.isPlainObject(y)?A.merge.call({caseless:O},C,y):A.isPlainObject(y)?A.merge({},y):A.isArray(y)?y.slice():y}function m(C,y,_,O){if(A.isUndefined(y)){if(!A.isUndefined(C))return a(void 0,C,_,O)}else return a(C,y,_,O)}function f(C,y){if(!A.isUndefined(y))return a(void 0,y)}function M(C,y){if(A.isUndefined(y)){if(!A.isUndefined(C))return a(void 0,C)}else return a(void 0,y)}function S(C,y,_){if(_ in e)return a(C,y);if(_ in t)return a(void 0,C)}const F={url:f,method:f,data:f,baseURL:M,transformRequest:M,transformResponse:M,paramsSerializer:M,timeout:M,timeoutMessage:M,withCredentials:M,withXSRFToken:M,adapter:M,responseType:M,xsrfCookieName:M,xsrfHeaderName:M,onUploadProgress:M,onDownloadProgress:M,decompress:M,maxContentLength:M,maxBodyLength:M,beforeRedirect:M,transport:M,httpAgent:M,httpsAgent:M,cancelToken:M,socketPath:M,responseEncoding:M,validateStatus:S,headers:(C,y,_)=>m(an(C),an(y),_,!0)};return A.forEach(Object.keys(Object.assign({},t,e)),function(y){const _=F[y]||m,O=_(t[y],e[y],y);A.isUndefined(O)&&_!==S||(s[y]=O)}),s}const Yn=t=>{const e=ee({},t);let{data:s,withXSRFToken:a,xsrfHeaderName:m,xsrfCookieName:f,headers:M,auth:S}=e;e.headers=M=kt.from(M),e.url=Wn(Gn(e.baseURL,e.url),t.params,t.paramsSerializer),S&&M.set("Authorization","Basic "+btoa((S.username||"")+":"+(S.password?unescape(encodeURIComponent(S.password)):"")));let F;if(A.isFormData(s)){if(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv)M.setContentType(void 0);else if((F=M.getContentType())!==!1){const[C,...y]=F?F.split(";").map(_=>_.trim()).filter(Boolean):[];M.setContentType([C||"multipart/form-data",...y].join("; "))}}if(Pt.hasStandardBrowserEnv&&(a&&A.isFunction(a)&&(a=a(e)),a||a!==!1&&Ds(e.url))){const C=m&&f&&qs.read(f);C&&M.set(m,C)}return e},zs=typeof XMLHttpRequest<"u",Ws=zs&&function(t){return new Promise(function(s,a){const m=Yn(t);let f=m.data;const M=kt.from(m.headers).normalize();let{responseType:S,onUploadProgress:F,onDownloadProgress:C}=m,y,_,O,P,I;function $(){P&&P(),I&&I(),m.cancelToken&&m.cancelToken.unsubscribe(y),m.signal&&m.signal.removeEventListener("abort",y)}let N=new XMLHttpRequest;N.open(m.method.toUpperCase(),m.url,!0),N.timeout=m.timeout;function Z(){if(!N)return;const Q=kt.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),it={data:!S||S==="text"||S==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:Q,config:t,request:N};Kn(function(Ut){s(Ut),$()},function(Ut){a(Ut),$()},it),N=null}"onloadend"in N?N.onloadend=Z:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(Z)},N.onabort=function(){N&&(a(new W("Request aborted",W.ECONNABORTED,t,N)),N=null)},N.onerror=function(){a(new W("Network Error",W.ERR_NETWORK,t,N)),N=null},N.ontimeout=function(){let Y=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded";const it=m.transitional||Jn;m.timeoutErrorMessage&&(Y=m.timeoutErrorMessage),a(new W(Y,it.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,N)),N=null},f===void 0&&M.setContentType(null),"setRequestHeader"in N&&A.forEach(M.toJSON(),function(Y,it){N.setRequestHeader(it,Y)}),A.isUndefined(m.withCredentials)||(N.withCredentials=!!m.withCredentials),S&&S!=="json"&&(N.responseType=m.responseType),C&&([O,I]=Ne(C,!0),N.addEventListener("progress",O)),F&&N.upload&&([_,P]=Ne(F),N.upload.addEventListener("progress",_),N.upload.addEventListener("loadend",P)),(m.cancelToken||m.signal)&&(y=Q=>{N&&(a(!Q||Q.type?new me(null,t,N):Q),N.abort(),N=null)},m.cancelToken&&m.cancelToken.subscribe(y),m.signal&&(m.signal.aborted?y():m.signal.addEventListener("abort",y)));const j=$s(m.url);if(j&&Pt.protocols.indexOf(j)===-1){a(new W("Unsupported protocol "+j+":",W.ERR_BAD_REQUEST,t));return}N.send(f||null)})},Js=(t,e)=>{const{length:s}=t=t?t.filter(Boolean):[];if(e||s){let a=new AbortController,m;const f=function(C){if(!m){m=!0,S();const y=C instanceof Error?C:this.reason;a.abort(y instanceof W?y:new me(y instanceof Error?y.message:y))}};let M=e&&setTimeout(()=>{M=null,f(new W(`timeout ${e} of ms exceeded`,W.ETIMEDOUT))},e);const S=()=>{t&&(M&&clearTimeout(M),M=null,t.forEach(C=>{C.unsubscribe?C.unsubscribe(f):C.removeEventListener("abort",f)}),t=null)};t.forEach(C=>C.addEventListener("abort",f));const{signal:F}=a;return F.unsubscribe=()=>A.asap(S),F}},Zs=function*(t,e){let s=t.byteLength;if(!e||s<e){yield t;return}let a=0,m;for(;a<s;)m=a+e,yield t.slice(a,m),a=m},Vs=async function*(t,e){for await(const s of Ks(t))yield*Zs(s,e)},Ks=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:s,value:a}=await e.read();if(s)break;yield a}}finally{await e.cancel()}},un=(t,e,s,a)=>{const m=Vs(t,e);let f=0,M,S=F=>{M||(M=!0,a&&a(F))};return new ReadableStream({async pull(F){try{const{done:C,value:y}=await m.next();if(C){S(),F.close();return}let _=y.byteLength;if(s){let O=f+=_;s(O)}F.enqueue(new Uint8Array(y))}catch(C){throw S(C),C}},cancel(F){return S(F),m.return()}},{highWaterMark:2})},Ke=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xn=Ke&&typeof ReadableStream=="function",Gs=Ke&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Qn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Ys=Xn&&Qn(()=>{let t=!1;const e=new Request(Pt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),fn=64*1024,Fr=Xn&&Qn(()=>A.isReadableStream(new Response("").body)),$e={stream:Fr&&(t=>t.body)};Ke&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$e[e]&&($e[e]=A.isFunction(t[e])?s=>s[e]():(s,a)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,a)})})})(new Response);const Xs=async t=>{if(t==null)return 0;if(A.isBlob(t))return t.size;if(A.isSpecCompliantForm(t))return(await new Request(Pt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(A.isArrayBufferView(t)||A.isArrayBuffer(t))return t.byteLength;if(A.isURLSearchParams(t)&&(t=t+""),A.isString(t))return(await Gs(t)).byteLength},Qs=async(t,e)=>{const s=A.toFiniteNumber(t.getContentLength());return s??Xs(e)},ta=Ke&&(async t=>{let{url:e,method:s,data:a,signal:m,cancelToken:f,timeout:M,onDownloadProgress:S,onUploadProgress:F,responseType:C,headers:y,withCredentials:_="same-origin",fetchOptions:O}=Yn(t);C=C?(C+"").toLowerCase():"text";let P=Js([m,f&&f.toAbortSignal()],M),I;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N;try{if(F&&Ys&&s!=="get"&&s!=="head"&&(N=await Qs(y,a))!==0){let it=new Request(e,{method:"POST",body:a,duplex:"half"}),at;if(A.isFormData(a)&&(at=it.headers.get("content-type"))&&y.setContentType(at),it.body){const[Ut,ht]=on(N,Ne(sn(F)));a=un(it.body,fn,Ut,ht)}}A.isString(_)||(_=_?"include":"omit");const Z="credentials"in Request.prototype;I=new Request(e,{...O,signal:P,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:Z?_:void 0});let j=await fetch(I);const Q=Fr&&(C==="stream"||C==="response");if(Fr&&(S||Q&&$)){const it={};["status","statusText","headers"].forEach(G=>{it[G]=j[G]});const at=A.toFiniteNumber(j.headers.get("content-length")),[Ut,ht]=S&&on(at,Ne(sn(S),!0))||[];j=new Response(un(j.body,fn,Ut,()=>{ht&&ht(),$&&$()}),it)}C=C||"text";let Y=await $e[A.findKey($e,C)||"text"](j,t);return!Q&&$&&$(),await new Promise((it,at)=>{Kn(it,at,{data:Y,headers:kt.from(j.headers),status:j.status,statusText:j.statusText,config:t,request:I})})}catch(Z){throw $&&$(),Z&&Z.name==="TypeError"&&/fetch/i.test(Z.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,t,I),{cause:Z.cause||Z}):W.from(Z,Z&&Z.code,t,I)}}),Tr={http:ms,xhr:Ws,fetch:ta};A.forEach(Tr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const hn=t=>`- ${t}`,ea=t=>A.isFunction(t)||t===null||t===!1,ti={getAdapter:t=>{t=A.isArray(t)?t:[t];const{length:e}=t;let s,a;const m={};for(let f=0;f<e;f++){s=t[f];let M;if(a=s,!ea(s)&&(a=Tr[(M=String(s)).toLowerCase()],a===void 0))throw new W(`Unknown adapter '${M}'`);if(a)break;m[M||"#"+f]=a}if(!a){const f=Object.entries(m).map(([S,F])=>`adapter ${S} `+(F===!1?"is not supported by the environment":"is not available in the build"));let M=e?f.length>1?`since :
9
- `+f.map(hn).join(`
10
- `):" "+hn(f[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+M,"ERR_NOT_SUPPORT")}return a},adapters:Tr};function xr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new me(null,t)}function ln(t){return xr(t),t.headers=kt.from(t.headers),t.data=Mr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ti.getAdapter(t.adapter||Ee.adapter)(t).then(function(a){return xr(t),a.data=Mr.call(t,t.transformResponse,a),a.headers=kt.from(a.headers),a},function(a){return Vn(a)||(xr(t),a&&a.response&&(a.response.data=Mr.call(t,t.transformResponse,a.response),a.response.headers=kt.from(a.response.headers))),Promise.reject(a)})}const ei="1.7.9",Ge={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ge[t]=function(a){return typeof a===t||"a"+(e<1?"n ":" ")+t}});const cn={};Ge.transitional=function(e,s,a){function m(f,M){return"[Axios v"+ei+"] Transitional option '"+f+"'"+M+(a?". "+a:"")}return(f,M,S)=>{if(e===!1)throw new W(m(M," has been removed"+(s?" in "+s:"")),W.ERR_DEPRECATED);return s&&!cn[M]&&(cn[M]=!0,console.warn(m(M," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(f,M,S):!0}};Ge.spelling=function(e){return(s,a)=>(console.warn(`${a} is likely a misspelling of ${e}`),!0)};function ra(t,e,s){if(typeof t!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let m=a.length;for(;m-- >0;){const f=a[m],M=e[f];if(M){const S=t[f],F=S===void 0||M(S,f,t);if(F!==!0)throw new W("option "+f+" must be "+F,W.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new W("Unknown option "+f,W.ERR_BAD_OPTION)}}const Te={assertOptions:ra,validators:Ge},zt=Te.validators;let Qt=class{constructor(e){this.defaults=e,this.interceptors={request:new rn,response:new rn}}async request(e,s){try{return await this._request(e,s)}catch(a){if(a instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const f=m.stack?m.stack.replace(/^.+\n/,""):"";try{a.stack?f&&!String(a.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(a.stack+=`
11
- `+f):a.stack=f}catch{}}throw a}}_request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=ee(this.defaults,s);const{transitional:a,paramsSerializer:m,headers:f}=s;a!==void 0&&Te.assertOptions(a,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean)},!1),m!=null&&(A.isFunction(m)?s.paramsSerializer={serialize:m}:Te.assertOptions(m,{encode:zt.function,serialize:zt.function},!0)),Te.assertOptions(s,{baseUrl:zt.spelling("baseURL"),withXsrfToken:zt.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let M=f&&A.merge(f.common,f[s.method]);f&&A.forEach(["delete","get","head","post","put","patch","common"],I=>{delete f[I]}),s.headers=kt.concat(M,f);const S=[];let F=!0;this.interceptors.request.forEach(function($){typeof $.runWhen=="function"&&$.runWhen(s)===!1||(F=F&&$.synchronous,S.unshift($.fulfilled,$.rejected))});const C=[];this.interceptors.response.forEach(function($){C.push($.fulfilled,$.rejected)});let y,_=0,O;if(!F){const I=[ln.bind(this),void 0];for(I.unshift.apply(I,S),I.push.apply(I,C),O=I.length,y=Promise.resolve(s);_<O;)y=y.then(I[_++],I[_++]);return y}O=S.length;let P=s;for(_=0;_<O;){const I=S[_++],$=S[_++];try{P=I(P)}catch(N){$.call(this,N);break}}try{y=ln.call(this,P)}catch(I){return Promise.reject(I)}for(_=0,O=C.length;_<O;)y=y.then(C[_++],C[_++]);return y}getUri(e){e=ee(this.defaults,e);const s=Gn(e.baseURL,e.url);return Wn(s,e.params,e.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){Qt.prototype[e]=function(s,a){return this.request(ee(a||{},{method:e,url:s,data:(a||{}).data}))}});A.forEach(["post","put","patch"],function(e){function s(a){return function(f,M,S){return this.request(ee(S||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:f,data:M}))}}Qt.prototype[e]=s(),Qt.prototype[e+"Form"]=s(!0)});let na=class ri{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(f){s=f});const a=this;this.promise.then(m=>{if(!a._listeners)return;let f=a._listeners.length;for(;f-- >0;)a._listeners[f](m);a._listeners=null}),this.promise.then=m=>{let f;const M=new Promise(S=>{a.subscribe(S),f=S}).then(m);return M.cancel=function(){a.unsubscribe(f)},M},e(function(f,M,S){a.reason||(a.reason=new me(f,M,S),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const e=new AbortController,s=a=>{e.abort(a)};return this.subscribe(s),e.signal.unsubscribe=()=>this.unsubscribe(s),e.signal}static source(){let e;return{token:new ri(function(m){e=m}),cancel:e}}};function ia(t){return function(s){return t.apply(null,s)}}function oa(t){return A.isObject(t)&&t.isAxiosError===!0}const Ir={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ir).forEach(([t,e])=>{Ir[e]=t});function ni(t){const e=new Qt(t),s=On(Qt.prototype.request,e);return A.extend(s,Qt.prototype,e,{allOwnKeys:!0}),A.extend(s,e,null,{allOwnKeys:!0}),s.create=function(m){return ni(ee(t,m))},s}const yt=ni(Ee);yt.Axios=Qt;yt.CanceledError=me;yt.CancelToken=na;yt.isCancel=Vn;yt.VERSION=ei;yt.toFormData=Ve;yt.AxiosError=W;yt.Cancel=yt.CanceledError;yt.all=function(e){return Promise.all(e)};yt.spread=ia;yt.isAxiosError=oa;yt.mergeConfig=ee;yt.AxiosHeaders=kt;yt.formToJSON=t=>Zn(A.isHTMLForm(t)?new FormData(t):t);yt.getAdapter=ti.getAdapter;yt.HttpStatusCode=Ir;yt.default=yt;const{Axios:sa,AxiosError:aa,CanceledError:ua,isCancel:fa,CancelToken:ha,VERSION:la,all:ca,Cancel:da,isAxiosError:pa,spread:ma,toFormData:ga,AxiosHeaders:ya,HttpStatusCode:wa,formToJSON:va,getAdapter:Ma,mergeConfig:xa}=yt,Na=Object.freeze(Object.defineProperty({__proto__:null,Axios:sa,AxiosError:aa,AxiosHeaders:ya,Cancel:da,CancelToken:ha,CanceledError:ua,HttpStatusCode:wa,VERSION:la,all:ca,default:yt,formToJSON:va,getAdapter:Ma,isAxiosError:pa,isCancel:fa,mergeConfig:xa,spread:ma,toFormData:ga},Symbol.toStringTag,{value:"Module"}));var Or={exports:{}},he=1e3,le=he*60,ce=le*60,re=ce*24,Ea=re*7,ba=re*365.25,ii=function(t,e){e=e||{};var s=typeof t;if(s==="string"&&t.length>0)return Sa(t);if(s==="number"&&isFinite(t))return e.long?Ra(t):Ca(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Sa(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]),a=(e[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return s*ba;case"weeks":case"week":case"w":return s*Ea;case"days":case"day":case"d":return s*re;case"hours":case"hour":case"hrs":case"hr":case"h":return s*ce;case"minutes":case"minute":case"mins":case"min":case"m":return s*le;case"seconds":case"second":case"secs":case"sec":case"s":return s*he;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function Ca(t){var e=Math.abs(t);return e>=re?Math.round(t/re)+"d":e>=ce?Math.round(t/ce)+"h":e>=le?Math.round(t/le)+"m":e>=he?Math.round(t/he)+"s":t+"ms"}function Ra(t){var e=Math.abs(t);return e>=re?Ce(t,e,re,"day"):e>=ce?Ce(t,e,ce,"hour"):e>=le?Ce(t,e,le,"minute"):e>=he?Ce(t,e,he,"second"):t+" ms"}function Ce(t,e,s,a){var m=e>=s*1.5;return Math.round(t/s)+" "+a+(m?"s":"")}const $a=pn(ii);function Ba(t){s.debug=s,s.default=s,s.coerce=F,s.disable=M,s.enable=m,s.enabled=S,s.humanize=ii,s.destroy=C,Object.keys(t).forEach(y=>{s[y]=t[y]}),s.names=[],s.skips=[],s.formatters={};function e(y){let _=0;for(let O=0;O<y.length;O++)_=(_<<5)-_+y.charCodeAt(O),_|=0;return s.colors[Math.abs(_)%s.colors.length]}s.selectColor=e;function s(y){let _,O=null,P,I;function $(...N){if(!$.enabled)return;const Z=$,j=Number(new Date),Q=j-(_||j);Z.diff=Q,Z.prev=_,Z.curr=j,_=j,N[0]=s.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let Y=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(at,Ut)=>{if(at==="%%")return"%";Y++;const ht=s.formatters[Ut];if(typeof ht=="function"){const G=N[Y];at=ht.call(Z,G),N.splice(Y,1),Y--}return at}),s.formatArgs.call(Z,N),(Z.log||s.log).apply(Z,N)}return $.namespace=y,$.useColors=s.useColors(),$.color=s.selectColor(y),$.extend=a,$.destroy=s.destroy,Object.defineProperty($,"enabled",{enumerable:!0,configurable:!1,get:()=>O!==null?O:(P!==s.namespaces&&(P=s.namespaces,I=s.enabled(y)),I),set:N=>{O=N}}),typeof s.init=="function"&&s.init($),$}function a(y,_){const O=s(this.namespace+(typeof _>"u"?":":_)+y);return O.log=this.log,O}function m(y){s.save(y),s.namespaces=y,s.names=[],s.skips=[];const _=(typeof y=="string"?y:"").trim().replace(" ",",").split(",").filter(Boolean);for(const O of _)O[0]==="-"?s.skips.push(O.slice(1)):s.names.push(O)}function f(y,_){let O=0,P=0,I=-1,$=0;for(;O<y.length;)if(P<_.length&&(_[P]===y[O]||_[P]==="*"))_[P]==="*"?(I=P,$=O,P++):(O++,P++);else if(I!==-1)P=I+1,$++,O=$;else return!1;for(;P<_.length&&_[P]==="*";)P++;return P===_.length}function M(){const y=[...s.names,...s.skips.map(_=>"-"+_)].join(",");return s.enable(""),y}function S(y){for(const _ of s.skips)if(f(y,_))return!1;for(const _ of s.names)if(f(y,_))return!0;return!1}function F(y){return y instanceof Error?y.stack||y.message:y}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}var Aa=Ba;(function(t,e){var s={};e.formatArgs=m,e.save=f,e.load=M,e.useColors=a,e.storage=S(),e.destroy=(()=>{let C=!1;return()=>{C||(C=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let C;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(C=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(C[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function m(C){if(C[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+C[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const y="color: "+this.color;C.splice(1,0,y,"color: inherit");let _=0,O=0;C[0].replace(/%[a-zA-Z%]/g,P=>{P!=="%%"&&(_++,P==="%c"&&(O=_))}),C.splice(O,0,y)}e.log=console.debug||console.log||(()=>{});function f(C){try{C?e.storage.setItem("debug",C):e.storage.removeItem("debug")}catch{}}function M(){let C;try{C=e.storage.getItem("debug")}catch{}return!C&&typeof Ue<"u"&&"env"in Ue&&(C=s.DEBUG),C}function S(){try{return localStorage}catch{}}t.exports=Aa(e);const{formatters:F}=t.exports;F.j=function(C){try{return JSON.stringify(C)}catch(y){return"[UnexpectedJSONParseError]: "+y.message}}})(Or,Or.exports);var Pa=Or.exports;export{aa as A,In as B,yt as a,Oa as b,co as c,Fa as d,si as e,Pa as f,ai as g,Ws as h,Li as i,Sn as j,we as k,Na as l,Ta as m,$i as n,Ni as o,Ue as p,Ht as q,_o as r,te as s,Vi as t,de as u,$a as v,Oi as w,fe as x};