@abtnode/blocklet-services 1.16.38-beta-20250120-112111-55c032e8 → 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.
- package/api/routes/user-session.js +23 -4
- package/api/services/auth/session.js +1 -1
- package/api/services/studio/index.js +2 -0
- package/dist/assets/Add-Bk4Lbgr-.js +1 -0
- package/dist/assets/ArrowDropDown-Df_gfPLu.js +1 -0
- package/dist/assets/CheckCircle-DHVFIbL0.js +1 -0
- package/dist/assets/ChevronLeft-Dgwl6TbO.js +1 -0
- package/dist/assets/ChevronRight-eWuyXadV.js +1 -0
- package/dist/assets/DeleteOutline-BgJS3M_C.js +1 -0
- package/dist/assets/Done-DEqpodCF.js +1 -0
- package/dist/assets/Download-BqmPcEfL.js +1 -0
- package/dist/assets/Error-BYxOoAVo.js +1 -0
- package/dist/assets/Google-CSVZMPcX.js +27 -0
- package/dist/assets/InfoOutlined-DEEWjfzD.js +1 -0
- package/dist/assets/Launch-DOUVA2XM.js +1 -0
- package/dist/assets/LaunchOutlined-Coy9mtK0.js +1 -0
- package/dist/assets/Loop-ImNW3c_O.js +1 -0
- package/dist/assets/MoreHoriz-BukKE4JJ.js +1 -0
- package/dist/assets/PlayArrow-swX4whzo.js +1 -0
- package/dist/assets/ViewList-cXzDGSb4.js +1 -0
- package/dist/assets/access-control-BkK8FrPA.js +13 -0
- package/dist/assets/{actions-Ca8zHti6.js → actions-BY2UpTuo.js} +1 -1
- package/dist/assets/add-component-core-DwV6kONw.js +765 -0
- package/dist/assets/add-resource-MM2jCA3R.js +1 -0
- package/dist/assets/{addon-CD5JNqbI.js → addon-DdFmPnBN.js} +1 -1
- package/dist/assets/analytics-BqslcZBV.js +47 -0
- package/dist/assets/api-hLQrqHOJ.js +1 -0
- package/dist/assets/{ar-4M8AtNpp.js → ar-D1VagXPW.js} +1 -1
- package/dist/assets/{audit-logs-BKvkrneR.js → audit-logs--gsofZ06.js} +1 -1
- package/dist/assets/{base32-uGF9kxBw.js → base32-CX18Q7D5.js} +1 -1
- package/dist/assets/branding-DInWWRgz.js +40 -0
- package/dist/assets/bundle-avatar-Ki6WwKnC.js +1 -0
- package/dist/assets/button-CQkyi5io.js +1 -0
- package/dist/assets/{click-to-copy-DSvEXBYz.js → click-to-copy-BB-UXfLh.js} +1 -1
- package/dist/assets/cloneDeep-gFMzIJP-.js +1 -0
- package/dist/assets/{complete-DOx-lUao.js → complete-CBDhO1CU.js} +2 -2
- package/dist/assets/{component-DuXXl9Wb.js → component-BrNJwPIe.js} +58 -58
- package/dist/assets/config--BH8-z9r.js +1 -0
- package/dist/assets/{config-BY9NHNw2.js → config-DG_LFEZ2.js} +2 -2
- package/dist/assets/config-navigation-Ypn8iWNz.js +26 -0
- package/dist/assets/config-space-DodcLLqs.js +1 -0
- package/dist/assets/{confirm-DUAXonUU.js → confirm-B_nTIsRa.js} +1 -1
- package/dist/assets/connect-Cf-w5xzj.js +1 -0
- package/dist/assets/connect-Cz_ogdYB.js +5 -0
- package/dist/assets/connect-to-DmO7iq5D.js +1 -0
- package/dist/assets/dashboard-i4ZTBfIK.js +86 -0
- package/dist/assets/{de-D7CG0ov1.js → de-CvDV7d-6.js} +1 -1
- package/dist/assets/{did-address-BD4xjcb5.js → did-address-BHDYBHge.js} +1 -1
- package/dist/assets/domain-DEmX5KPr.js +9 -0
- package/dist/assets/domain-list-DUMTDIXn.js +15 -0
- package/dist/assets/{email-Bne33m4E.js → email-CJ4XMRei.js} +2 -2
- package/dist/assets/{es-DDr-aesw.js → es-DGK_gDT-.js} +1 -1
- package/dist/assets/exchange-passport-Cya8tXHd.js +1 -0
- package/dist/assets/form-text-input-BqBSVrsK.js +11 -0
- package/dist/assets/{fr-CsECkLCu.js → fr-BuGbCF-_.js} +1 -1
- package/dist/assets/fuel-CH0_3l_-.js +32 -0
- package/dist/assets/{fullpage-Dd-4ilXd.js → fullpage-CukyDM7S.js} +1 -1
- package/dist/assets/{get-safe-url-CWTjw4O_.js → get-safe-url-BGQfxr73.js} +1 -1
- package/dist/assets/{get-safe-url-g5s2_Tjs.js → get-safe-url-CUNkDpRh.js} +1 -1
- package/dist/assets/hi-w7-Xo0pj.js +1 -0
- package/dist/assets/{home-Cy8ZPRh3.js → home-CzSofhhz.js} +1 -1
- package/dist/assets/{id-PvpxFUDg.js → id-DfsK8869.js} +1 -1
- package/dist/assets/{iframe-B1rCM9Eo.js → iframe-CsSJXjn-.js} +1 -1
- package/dist/assets/index-BG2TK3L9.js +144 -0
- package/dist/assets/index-BSwL4CIV.js +104 -0
- package/dist/assets/index-BaNqg_YA.js +2 -0
- package/dist/assets/{index-D2ZJq7sT.js → index-Bj4H5GTM.js} +9 -9
- package/dist/assets/{index-HfngL4ZQ.js → index-Boo9QVHC.js} +2 -2
- package/dist/assets/{index-D5GvmQYq.js → index-C6qYsil9.js} +22 -22
- package/dist/assets/{index-wVbkSf51.js → index-CK6a45b0.js} +1 -1
- package/dist/assets/{index-BEw2AyDT.js → index-CuDwM2ph.js} +7 -7
- package/dist/assets/{index-BnIb4VTf.js → index-Cy0CDG7H.js} +2 -2
- package/dist/assets/{index-C1Xq6XBK.js → index-DOBbdjLX.js} +1 -1
- package/dist/assets/{index-C73dl7Hb.js → index-Di9oSquh.js} +1 -1
- package/dist/assets/{index-Dtif7RsI.js → index-Dkwa_Vhl.js} +1 -1
- package/dist/assets/{index-DKA7-XNE.js → index-DtXmDMLc.js} +1 -1
- package/dist/assets/index-Dux6RGAz.js +5 -0
- package/dist/assets/{index-Bj0uuh8o.js → index-Ouxr9lbr.js} +3 -3
- package/dist/assets/{index-0YXNPVgm.js → index-vQU4GuwB.js} +41 -41
- package/dist/assets/{invitation-HSZrTxov.js → invitation-C5d6O5eZ.js} +7 -7
- package/dist/assets/invite-Dk62Yxut.js +5 -0
- package/dist/assets/issue-passport-CMM-WTIR.js +1 -0
- package/dist/assets/item-B2yN9mDQ.js +2 -0
- package/dist/assets/{ja-B9wMKQOb.js → ja-CQJHpvK1.js} +1 -1
- package/dist/assets/{ko-C_Flkwn-.js → ko-9oNzTJow.js} +1 -1
- package/dist/assets/{layout-C4CjSZo6.js → layout-DoHX-KTx.js} +1 -1
- package/dist/assets/{list-header-DH99VXjo.js → list-header-D5AuJWlL.js} +1 -1
- package/dist/assets/localization-BZdVtYRI.js +1 -0
- package/dist/assets/{log-DURqeXoL.js → log-GdCSoLtw.js} +11 -11
- package/dist/assets/login-BpSAKGaL.js +1 -0
- package/dist/assets/login-bg-BMPVKR1k.svg +5 -0
- package/dist/assets/login-oauth-callback-EOz9oVYT.js +1 -0
- package/dist/assets/logo-uploader-CLn4ASpU.js +133 -0
- package/dist/assets/{lost-passport-BSTbRq2w.js → lost-passport-BwL9ej_E.js} +3 -3
- package/dist/assets/{open-window-CbZilAH2.js → open-window-DQT0NyNv.js} +1 -1
- package/dist/assets/overview-CwoF_5-j.js +12 -0
- package/dist/assets/{page-header-CjQ-ywzU.js → page-header-BJ0JDhAC.js} +1 -1
- package/dist/assets/{permission-7KeKIEKG.js → permission-CY0rjHhe.js} +1 -1
- package/dist/assets/{preferences-BvdZgVe4.js → preferences-BqjVySQU.js} +1 -1
- package/dist/assets/pt-DMLN8oh9.js +1 -0
- package/dist/assets/{publish-resource-DKGi8v_y.js → publish-resource-CHOsL-Wz.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-1AJr8vv6.js → react-beautiful-dnd.esm-DdBIMuMX.js} +1 -1
- package/dist/assets/{relative-time-DXGmoAYD.js → relative-time-BvHPmaa5.js} +1 -1
- package/dist/assets/ru-CGG1vu9C.js +1 -0
- package/dist/assets/sdk-DhOls9Mj.js +1 -0
- package/dist/assets/session-BdZwp1m1.js +1 -0
- package/dist/assets/setup-zEHhcITK.js +19 -0
- package/dist/assets/start-Mb20LvOg.js +187 -0
- package/dist/assets/{step-actions-BF4Z-WD4.js → step-actions-7XrSq1Ty.js} +1 -1
- package/dist/assets/studio-g7S_h0IK.js +6 -0
- package/dist/assets/{switch-control-Df6SSLH9.js → switch-control-BB9KcpOQ.js} +1 -1
- package/dist/assets/th-D-lApkQp.js +1 -0
- package/dist/assets/transfer-m4XxmI1c.js +16 -0
- package/dist/assets/unsubscribe-DdvzUVXS.js +1 -0
- package/dist/assets/{useAsync-D2wKH3Wq.js → useAsync-DCGc7Pdb.js} +1 -1
- package/dist/assets/{useAsyncRetry-B87-aW-H.js → useAsyncRetry-0k7mm5ej.js} +1 -1
- package/dist/assets/{useLocalStorage-Dsxa7zZV.js → useLocalStorage-D5HE_OXe.js} +1 -1
- package/dist/assets/user-center-lC5tDSyz.js +232 -0
- package/dist/assets/util-vgJ3SQ5U.js +1 -0
- package/dist/assets/{vendor-arcblock-D-SOxQ_x.js → vendor-arcblock-BXWj1K81.js} +47 -47
- package/dist/assets/vendor-hooks-DWAhU9cy.js +7 -0
- package/dist/assets/vendor-utils-u2ViqIqX.js +11 -0
- package/dist/assets/vi-D45dg9B_.js +1 -0
- package/dist/assets/wrap-locale-B2_X1_63.js +1 -0
- package/dist/assets/{zh-D0JQ3A7z.js → zh-CcLxBIl6.js} +1 -1
- package/dist/assets/{zh-tw-CnxtpiBO.js → zh-tw-Bqy7j8qE.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/service-worker.js +1 -1
- package/package.json +22 -21
- package/dist/assets/Add-DwDyMZjP.js +0 -1
- package/dist/assets/ArrowDropDown-6xgUlX8W.js +0 -1
- package/dist/assets/CheckCircle-D3qBEHQS.js +0 -1
- package/dist/assets/ChevronLeft-DgLREh72.js +0 -1
- package/dist/assets/ChevronRight-IFh5bkgF.js +0 -1
- package/dist/assets/DeleteOutline-DQMkPBvg.js +0 -1
- package/dist/assets/Done-DLCsccPu.js +0 -1
- package/dist/assets/Download-DTpNGuLl.js +0 -1
- package/dist/assets/Error-UtB5QYSZ.js +0 -1
- package/dist/assets/Google-BOAVI-Xc.js +0 -27
- package/dist/assets/InfoOutlined-DQLlyyVh.js +0 -1
- package/dist/assets/Launch-Dh_xOrs9.js +0 -1
- package/dist/assets/LaunchOutlined-foAf5c3n.js +0 -1
- package/dist/assets/Loop-C4-HT3aE.js +0 -1
- package/dist/assets/MoreHoriz-CUpIy534.js +0 -1
- package/dist/assets/PlayArrow-DXnaLQNG.js +0 -1
- package/dist/assets/ViewList-CRla7mfM.js +0 -1
- package/dist/assets/_createAggregator-B36dTDyD.js +0 -1
- package/dist/assets/access-control-vt3SOToF.js +0 -13
- package/dist/assets/add-component-core-CacRzL5C.js +0 -716
- package/dist/assets/add-resource-ZEGylpES.js +0 -1
- package/dist/assets/analytics-hNGjKcAT.js +0 -47
- package/dist/assets/api-CjgpDSsI.js +0 -1
- package/dist/assets/branding-BfuJue_R.js +0 -40
- package/dist/assets/bundle-avatar-BkNNM9he.js +0 -1
- package/dist/assets/button-6RO042tO.js +0 -1
- package/dist/assets/config-_Ff2iSUC.js +0 -1
- package/dist/assets/config-navigation-m1gKN3Qh.js +0 -26
- package/dist/assets/config-space-DFc6Pvuv.js +0 -1
- package/dist/assets/connect-B8cD_Man.js +0 -1
- package/dist/assets/connect-CywmqoEu.js +0 -5
- package/dist/assets/connect-to-DrkQpX8j.js +0 -1
- package/dist/assets/dashboard-ChoAkepn.js +0 -86
- package/dist/assets/domain-C3fxr6Yg.js +0 -9
- package/dist/assets/domain-list-Do_JR9rl.js +0 -15
- package/dist/assets/exchange-passport-De6icZUJ.js +0 -1
- package/dist/assets/form-text-input-BCHcrKD9.js +0 -11
- package/dist/assets/fuel-BCXVQ7L0.js +0 -32
- package/dist/assets/hi-Bojespkc.js +0 -1
- package/dist/assets/index-3ytyTrcC.js +0 -2
- package/dist/assets/index-BJ7_xt0j.js +0 -104
- package/dist/assets/index-CWMVCzCZ.js +0 -144
- package/dist/assets/index-CfrumxV3.js +0 -5
- package/dist/assets/invite-Bq0wk8ts.js +0 -5
- package/dist/assets/issue-passport-CVJgqjoO.js +0 -1
- package/dist/assets/item-ClsWGBWW.js +0 -2
- package/dist/assets/localization-CBcpjiaX.js +0 -1
- package/dist/assets/login-Bspf2QPd.js +0 -1
- package/dist/assets/login-oauth-callback-C_wyWhiQ.js +0 -1
- package/dist/assets/logo-uploader-Dd2aFjos.js +0 -133
- package/dist/assets/overview-fXNI1ek4.js +0 -12
- package/dist/assets/pt-BqEVlA-1.js +0 -1
- package/dist/assets/ru-u0x_icQc.js +0 -1
- package/dist/assets/sdk-iUaLet3q.js +0 -1
- package/dist/assets/session-Cz3pOVxP.js +0 -1
- package/dist/assets/setup-BoMrIrRo.js +0 -19
- package/dist/assets/start-DbCciQyK.js +0 -187
- package/dist/assets/studio-DJOlNVRZ.js +0 -6
- package/dist/assets/th-BX_96cb2.js +0 -1
- package/dist/assets/toUpper-BYBs387H.js +0 -1
- package/dist/assets/transfer-CoIJ2-Fh.js +0 -16
- package/dist/assets/unsubscribe-DHlZPuAs.js +0 -1
- package/dist/assets/user-center-BY7PdrGc.js +0 -203
- package/dist/assets/util-DzhfzPwC.js +0 -1
- package/dist/assets/vendor-hooks-CAfthYak.js +0 -7
- package/dist/assets/vendor-utils-B7sI0FpJ.js +0 -11
- package/dist/assets/vi-7r8InJhP.js +0 -1
- package/dist/assets/wrap-locale-CjCBeQlY.js +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{e as mn,g as gn,a as ai}from"./vendor-react-D-afvo_7.js";var wn={exports:{}};(function(t,r){(function(s,u){t.exports=u()})(mn,function(){var s=1e3,u=6e4,d=36e5,f="millisecond",v="second",_="minute",F="hour",C="day",g="week",B="month",T="quarter",$="year",I="date",U="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,W=/\[([^\]]+)]|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,G={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(e){var a=["th","st","nd","rd"],h=e%100;return"["+e+(a[(h-20)%10]||a[h]||a[0])+"]"}},X=function(e,a,h){var c=String(e);return!c||c.length>=a?e:""+Array(a+1-c.length).join(h)+e},at={s:X,z:function(e){var a=-e.utcOffset(),h=Math.abs(a),c=Math.floor(h/60),p=h%60;return(a<=0?"+":"-")+X(c,2,"0")+":"+X(p,2,"0")},m:function e(a,h){if(a.date()<h.date())return-e(h,a);var c=12*(h.year()-a.year())+(h.month()-a.month()),p=a.clone().add(c,B),M=h-p<0,E=a.clone().add(c+(M?-1:1),B);return+(-(c+(h-p)/(M?p-E:E-p))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:B,y:$,w:g,d:C,D:I,h:F,m:_,s:v,ms:f,Q:T}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return e===void 0}},Q="en",J={};J[Q]=G;var Lt="$isDayjsObject",ht=function(e){return e instanceof kt||!(!e||!e[Lt])},Pt=function e(a,h,c){var p;if(!a)return Q;if(typeof a=="string"){var M=a.toLowerCase();J[M]&&(p=M),h&&(J[M]=h,p=M);var E=a.split("-");if(!p&&E.length>1)return e(E[0])}else{var w=a.name;J[w]=a,p=w}return!c&&p&&(Q=p),p||!c&&Q},rt=function(e,a){if(ht(e))return e.clone();var h=typeof a=="object"?a:{};return h.date=e,h.args=arguments,new kt(h)},k=at;k.l=Pt,k.i=ht,k.w=function(e,a){return rt(e,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var kt=function(){function e(h){this.$L=Pt(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[Lt]=!0}var a=e.prototype;return a.parse=function(h){this.$d=function(c){var p=c.date,M=c.utc;if(p===null)return new Date(NaN);if(k.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var E=p.match(L);if(E){var w=E[2]-1||0,o=(E[7]||"0").substring(0,3);return M?new Date(Date.UTC(E[1],w,E[3]||1,E[4]||0,E[5]||0,E[6]||0,o)):new Date(E[1],w,E[3]||1,E[4]||0,E[5]||0,E[6]||0,o)}}return new Date(p)}(h),this.init()},a.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},a.$utils=function(){return k},a.isValid=function(){return this.$d.toString()!==U},a.isSame=function(h,c){var p=rt(h);return this.startOf(c)<=p&&p<=this.endOf(c)},a.isAfter=function(h,c){return rt(h)<this.startOf(c)},a.isBefore=function(h,c){return this.endOf(c)<rt(h)},a.$g=function(h,c,p){return k.u(h)?this[c]:this.set(p,h)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(h,c){var p=this,M=!!k.u(c)||c,E=k.p(h),w=function(K,yt){var Z=k.w(p.$u?Date.UTC(p.$y,yt,K):new Date(p.$y,yt,K),p);return M?Z:Z.endOf(C)},o=function(K,yt){return k.w(p.toDate()[K].apply(p.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(yt)),p)},y=this.$W,O=this.$M,N=this.$D,P="set"+(this.$u?"UTC":"");switch(E){case $:return M?w(1,0):w(31,11);case B:return M?w(1,O):w(0,O+1);case g:var tt=this.$locale().weekStart||0,V=(y<tt?y+7:y)-tt;return w(M?N-V:N+(6-V),O);case C:case I:return o(P+"Hours",0);case F:return o(P+"Minutes",1);case _:return o(P+"Seconds",2);case v:return o(P+"Milliseconds",3);default:return this.clone()}},a.endOf=function(h){return this.startOf(h,!1)},a.$set=function(h,c){var p,M=k.p(h),E="set"+(this.$u?"UTC":""),w=(p={},p[C]=E+"Date",p[I]=E+"Date",p[B]=E+"Month",p[$]=E+"FullYear",p[F]=E+"Hours",p[_]=E+"Minutes",p[v]=E+"Seconds",p[f]=E+"Milliseconds",p)[M],o=M===C?this.$D+(c-this.$W):c;if(M===B||M===$){var y=this.clone().set(I,1);y.$d[w](o),y.init(),this.$d=y.set(I,Math.min(this.$D,y.daysInMonth())).$d}else w&&this.$d[w](o);return this.init(),this},a.set=function(h,c){return this.clone().$set(h,c)},a.get=function(h){return this[k.p(h)]()},a.add=function(h,c){var p,M=this;h=Number(h);var E=k.p(c),w=function(O){var N=rt(M);return k.w(N.date(N.date()+Math.round(O*h)),M)};if(E===B)return this.set(B,this.$M+h);if(E===$)return this.set($,this.$y+h);if(E===C)return w(1);if(E===g)return w(7);var o=(p={},p[_]=u,p[F]=d,p[v]=s,p)[E]||1,y=this.$d.getTime()+h*o;return k.w(y,this)},a.subtract=function(h,c){return this.add(-1*h,c)},a.format=function(h){var c=this,p=this.$locale();if(!this.isValid())return p.invalidDate||U;var M=h||"YYYY-MM-DDTHH:mm:ssZ",E=k.z(this),w=this.$H,o=this.$m,y=this.$M,O=p.weekdays,N=p.months,P=p.meridiem,tt=function(yt,Z,Y,Zt){return yt&&(yt[Z]||yt(c,M))||Y[Z].slice(0,Zt)},V=function(yt){return k.s(w%12||12,yt,"0")},K=P||function(yt,Z,Y){var Zt=yt<12?"AM":"PM";return Y?Zt.toLowerCase():Zt};return M.replace(W,function(yt,Z){return Z||function(Y){switch(Y){case"YY":return String(c.$y).slice(-2);case"YYYY":return k.s(c.$y,4,"0");case"M":return y+1;case"MM":return k.s(y+1,2,"0");case"MMM":return tt(p.monthsShort,y,N,3);case"MMMM":return tt(N,y);case"D":return c.$D;case"DD":return k.s(c.$D,2,"0");case"d":return String(c.$W);case"dd":return tt(p.weekdaysMin,c.$W,O,2);case"ddd":return tt(p.weekdaysShort,c.$W,O,3);case"dddd":return O[c.$W];case"H":return String(w);case"HH":return k.s(w,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return K(w,o,!0);case"A":return K(w,o,!1);case"m":return String(o);case"mm":return k.s(o,2,"0");case"s":return String(c.$s);case"ss":return k.s(c.$s,2,"0");case"SSS":return k.s(c.$ms,3,"0");case"Z":return E}return null}(yt)||E.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(h,c,p){var M,E=this,w=k.p(c),o=rt(h),y=(o.utcOffset()-this.utcOffset())*u,O=this-o,N=function(){return k.m(E,o)};switch(w){case $:M=N()/12;break;case B:M=N();break;case T:M=N()/3;break;case g:M=(O-y)/6048e5;break;case C:M=(O-y)/864e5;break;case F:M=O/d;break;case _:M=O/u;break;case v:M=O/s;break;default:M=O}return p?M:k.a(M)},a.daysInMonth=function(){return this.endOf(B).$D},a.$locale=function(){return J[this.$L]},a.locale=function(h,c){if(!h)return this.$L;var p=this.clone(),M=Pt(h,c,!0);return M&&(p.$L=M),p},a.clone=function(){return k.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},e}(),x=kt.prototype;return rt.prototype=x,[["$ms",f],["$s",v],["$m",_],["$H",F],["$W",C],["$M",B],["$y",$],["$D",I]].forEach(function(e){x[e[1]]=function(a){return this.$g(a,e[0],e[1])}}),rt.extend=function(e,a){return e.$i||(e(a,kt,rt),e.$i=!0),rt},rt.locale=Pt,rt.isDayjs=ht,rt.unix=function(e){return rt(1e3*e)},rt.en=J[Q],rt.Ls=J,rt.p={},rt})})(wn);var ui=wn.exports;const Ia=gn(ui),fi=globalThis||void 0||self,hi=/[^\0-\x7E]/,li=/[\x2E\u3002\uFF0E\uFF61]/g,ci={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},fe=Math.floor,wr=String.fromCharCode;function Xr(t){throw new RangeError(ci[t])}const Qr=function(t,r){return t+22+75*(t<26)-((r!=0)<<5)},di=function(t,r,s){let u=0;for(t=s?fe(t/700):t>>1,t+=fe(t/r);t>455;u+=36)t=fe(t/35);return fe(u+36*t/(t+38))};function pi(t){return function(r,s){const u=r.split("@");let d="";u.length>1&&(d=u[0]+"@",r=u[1]);const f=function(v,_){const F=[];let C=v.length;for(;C--;)F[C]=_(v[C]);return F}((r=r.replace(li,".")).split("."),s).join(".");return d+f}(t,function(r){return hi.test(r)?"xn--"+function(s){const u=[],d=(s=function(g){const B=[];let T=0;const $=g.length;for(;T<$;){const I=g.charCodeAt(T++);if(I>=55296&&I<=56319&&T<$){const U=g.charCodeAt(T++);(64512&U)==56320?B.push(((1023&I)<<10)+(1023&U)+65536):(B.push(I),T--)}else B.push(I)}return B}(s)).length;let f=128,v=0,_=72;for(const g of s)g<128&&u.push(wr(g));const F=u.length;let C=F;for(F&&u.push("-");C<d;){let g=2147483647;for(const T of s)T>=f&&T<g&&(g=T);const B=C+1;g-f>fe((2147483647-v)/B)&&Xr("overflow"),v+=(g-f)*B,f=g;for(const T of s)if(T<f&&++v>2147483647&&Xr("overflow"),T==f){let $=v;for(let I=36;;I+=36){const U=I<=_?1:I>=_+26?26:I-_;if($<U)break;const L=$-U,W=36-U;u.push(wr(Qr(U+L%W,0))),$=fe(L/W)}u.push(wr(Qr($,0))),_=di(v,B,C==F),v=0,++C}++v,++f}return u.join("")}(r):r})}const yn=/#/g,vn=/&/g,Mn=/\//g,mi=/=/g,gi=/\?/g,ke=/\+/g,xn=/%5e/gi,wi=/%60/gi,yi=/%7b/gi,vi=/%7c/gi,Mi=/%7d/gi,xi=/%20/gi,Ei=/%2f/gi,bi=/%252f/gi;function De(t){return encodeURI(""+t).replace(vi,"|")}function qe(t){return De(t).replace(yi,"{").replace(Mi,"}").replace(xn,"^")}function Oe(t){return De(typeof t=="string"?t:JSON.stringify(t)).replace(ke,"%2B").replace(xi,"+").replace(yn,"%23").replace(vn,"%26").replace(wi,"`").replace(xn,"^").replace(Mn,"%2F")}function Re(t){return Oe(t).replace(mi,"%3D")}function je(t){return De(t).replace(yn,"%23").replace(gi,"%3F").replace(bi,"%2F").replace(vn,"%26").replace(ke,"%2B")}function Si(t){return je(t).replace(Mn,"%2F")}function Ut(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function Nr(t){return Ut(t.replace(Ei,"%252F"))}function En(t){return Ut(t.replace(ke," "))}function bn(t){return Ut(t.replace(ke," "))}function Le(t=""){return pi(t)}function ie(t=""){const r={};t[0]==="?"&&(t=t.slice(1));for(const s of t.split("&")){const u=s.match(/([^=]+)=?(.*)/)||[];if(u.length<2)continue;const d=En(u[1]);if(d==="__proto__"||d==="constructor")continue;const f=bn(u[2]||"");r[d]===void 0?r[d]=f:Array.isArray(r[d])?r[d].push(f):r[d]=[r[d],f]}return r}function Sn(t,r){return(typeof r=="number"||typeof r=="boolean")&&(r=String(r)),r?Array.isArray(r)?r.map(s=>`${Re(t)}=${Oe(s)}`).join("&"):`${Re(t)}=${Oe(r)}`:Re(t)}function xe(t){return Object.keys(t).filter(r=>t[r]!==void 0).map(r=>Sn(r,t[r])).filter(Boolean).join("&")}const _i=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,_n=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ci=/^([/\\]\s*){2,}[^/\\]/,Ri=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Bi=/\/$|\/\?|\/#/,Ai=/^\.?\//;function Fi(t){return["./","../"].some(r=>t.startsWith(r))}function He(t,r={}){return typeof r=="boolean"&&(r={acceptRelative:r}),r.strict?_i.test(t):_n.test(t)||(r.acceptRelative?Ci.test(t):!1)}function Ti(t){return!!t&&Ri.test(t)}function Ne(t="",r){return r?Bi.test(t):t.endsWith("/")}function ve(t="",r){if(!r)return(Ne(t)?t.slice(0,-1):t)||"/";if(!Ne(t,!0))return t||"/";let s=t,u="";const d=t.indexOf("#");d>=0&&(s=t.slice(0,d),u=t.slice(d));const[f,...v]=s.split("?");return((f.endsWith("/")?f.slice(0,-1):f)||"/")+(v.length>0?`?${v.join("?")}`:"")+u}function le(t="",r){if(!r)return t.endsWith("/")?t:t+"/";if(Ne(t,!0))return t||"/";let s=t,u="";const d=t.indexOf("#");if(d>=0&&(s=t.slice(0,d),u=t.slice(d),!s))return u;const[f,...v]=s.split("?");return f+"/"+(v.length>0?`?${v.join("?")}`:"")+u}function Ur(t=""){return t.startsWith("/")}function $r(t=""){return(Ur(t)?t.slice(1):t)||"/"}function br(t=""){return Ur(t)?t:"/"+t}function Ii(t=""){return t.split("://").map(r=>r.replace(/\/{2,}/g,"/")).join("://")}function Oi(t,r){if(Pr(r)||He(t))return t;const s=ve(r);return t.startsWith(s)?t:Cn(s,t)}function Li(t,r){if(Pr(r))return t;const s=ve(r);if(!t.startsWith(s))return t;const u=t.slice(s.length);return u[0]==="/"?u:"/"+u}function Ni(t,r){const s=zt(t),u={...ie(s.search),...r};return s.search=xe(u),me(s)}function Ui(t){return ie(zt(t).search)}function Pr(t){return!t||t==="/"}function kr(t){return t&&t!=="/"}function Cn(t,...r){let s=t||"";for(const u of r.filter(d=>kr(d)))if(s){const d=u.replace(Ai,"");s=le(s)+d}else s=u;return s}function $i(...t){var v,_,F,C;const r=/\/(?!\/)/,s=t.filter(Boolean),u=[];let d=0;for(const g of s)if(!(!g||g==="/")){for(const[B,T]of g.split(r).entries())if(!(!T||T===".")){if(T===".."){if(u.length===1&&He(u[0]))continue;u.pop(),d--;continue}if(B===1&&((v=u[u.length-1])!=null&&v.endsWith(":/"))){u[u.length-1]+="/"+T;continue}u.push(T),d++}}let f=u.join("/");return d>=0?(_=s[0])!=null&&_.startsWith("/")&&!f.startsWith("/")?f="/"+f:(F=s[0])!=null&&F.startsWith("./")&&!f.startsWith("./")&&(f="./"+f):f="../".repeat(-1*d)+f,(C=s[s.length-1])!=null&&C.endsWith("/")&&!f.endsWith("/")&&(f+="/"),f}function Pi(t){return ze(t,"http://")}function ki(t){return ze(t,"https://")}function Di(t){return ze(t,"")}function ze(t,r){let s=t.match(_n);return s||(s=t.match(/^\/{2,}/)),s?r+t.slice(s[0].length):r+t}function qi(t){const r=zt(t);return r.pathname=je(Nr(r.pathname)),r.hash=qe(Ut(r.hash)),r.host=Le(Ut(r.host)),r.search=xe(ie(r.search)),me(r)}function ji(t="",...r){if(typeof t!="string")throw new TypeError(`URL input should be string received ${typeof t} (${t})`);const s=r.filter(d=>kr(d));if(s.length===0)return t;const u=zt(t);for(const d of s){const f=zt(d);if(f.pathname&&(u.pathname=le(u.pathname)+$r(f.pathname)),f.hash&&f.hash!=="#"&&(u.hash=f.hash),f.search&&f.search!=="?")if(u.search&&u.search!=="?"){const v=xe({...ie(u.search),...ie(f.search)});u.search=v.length>0?"?"+v:""}else u.search=f.search}return me(u)}function Hi(t,r){return Ut(ve(t))===Ut(ve(r))}function zi(t,r,s={}){return s.trailingSlash||(t=le(t),r=le(r)),s.leadingSlash||(t=br(t),r=br(r)),s.encoding||(t=Ut(t),r=Ut(r)),t===r}function Wi(t,r){if(!r||r==="#")return t;const s=zt(t);return s.hash=r===""?"":"#"+qe(r),me(s)}function Ji(t){return me({...zt(t),hash:""})}function Zi(t){const r=zt(t);return(r.pathname||"/")+r.search+r.hash}const Rn=Symbol.for("ufo:protocolRelative");function zt(t="",r){const s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){const[,B,T=""]=s;return{protocol:B.toLowerCase(),pathname:T,href:B+T,auth:"",host:"",search:"",hash:""}}if(!He(t,{acceptRelative:!0}))return r?zt(r+t):Sr(t);const[,u="",d,f=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,v="",_=""]=f.match(/([^#/?]*)(.*)?/)||[];u==="file:"&&(_=_.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:F,search:C,hash:g}=Sr(_);return{protocol:u.toLowerCase(),auth:d?d.slice(0,Math.max(0,d.length-1)):"",host:v,pathname:F,search:C,hash:g,[Rn]:!u}}function Sr(t=""){const[r="",s="",u=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:r,search:s,hash:u}}function Be(t=""){const[r,s]=t.split(":");return{username:Ut(r),password:Ut(s)}}function _r(t=""){const[r,s]=(t.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:Ut(r),port:s}}function me(t){const r=t.pathname||"",s=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",u=t.hash||"",d=t.auth?t.auth+"@":"",f=t.host||"";return(t.protocol||t[Rn]?(t.protocol||"")+"//":"")+d+f+r+s+u}const Vi=/\/([^/]+\.[^/]+)$/,Ki=/\/([^/]+)$/;function Gi(t="",{strict:r}){const{pathname:s}=zt(t),u=r?s.match(Vi):s.match(Ki);return u?u[1]:void 0}var Yi=Object.defineProperty,Xi=(t,r,s)=>r in t?Yi(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,ae=(t,r,s)=>(Xi(t,typeof r!="symbol"?r+"":r,s),s);class Bn{constructor(r=""){if(ae(this,"protocol"),ae(this,"host"),ae(this,"auth"),ae(this,"pathname"),ae(this,"query",{}),ae(this,"hash"),typeof r!="string")throw new TypeError(`URL input should be string received ${typeof r} (${r})`);const s=zt(r);this.protocol=Ut(s.protocol),this.host=Ut(s.host),this.auth=Ut(s.auth),this.pathname=Nr(s.pathname),this.query=ie(s.search),this.hash=Ut(s.hash)}get hostname(){return _r(this.host).hostname}get port(){return _r(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 r=xe(this.query);return r.length>0?"?"+r:""}get searchParams(){const r=new URLSearchParams;for(const s in this.query){const u=this.query[s];if(Array.isArray(u))for(const d of u)r.append(s,d);else r.append(s,typeof u=="string"?u:JSON.stringify(u))}return r}get origin(){return(this.protocol?this.protocol+"//":"")+Le(this.host)}get fullpath(){return je(this.pathname)+this.search+qe(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:r,password:s}=Be(this.auth);return encodeURIComponent(r)+(s?":"+encodeURIComponent(s):"")}get href(){const r=this.encodedAuth,s=(this.protocol?this.protocol+"//":"")+(r?r+"@":"")+Le(this.host);return this.hasProtocol&&this.isAbsolute?s+this.fullpath:this.fullpath}append(r){if(r.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,r.query),r.pathname&&(this.pathname=le(this.pathname)+$r(r.pathname)),r.hash&&(this.hash=r.hash)}toJSON(){return this.href}toString(){return this.href}}function Qi(t){return new Bn(t)}const Oa=Object.freeze(Object.defineProperty({__proto__:null,$URL:Bn,cleanDoubleSlashes:Ii,createURL:Qi,decode:Ut,decodePath:Nr,decodeQueryKey:En,decodeQueryValue:bn,encode:De,encodeHash:qe,encodeHost:Le,encodeParam:Si,encodePath:je,encodeQueryItem:Sn,encodeQueryKey:Re,encodeQueryValue:Oe,getQuery:Ui,hasLeadingSlash:Ur,hasProtocol:He,hasTrailingSlash:Ne,isEmptyURL:Pr,isEqual:zi,isNonEmptyURL:kr,isRelative:Fi,isSamePath:Hi,isScriptProtocol:Ti,joinRelativeURL:$i,joinURL:Cn,normalizeURL:qi,parseAuth:Be,parseFilename:Gi,parseHost:_r,parsePath:Sr,parseQuery:ie,parseURL:zt,resolveURL:ji,stringifyParsedURL:me,stringifyQuery:xe,withBase:Oi,withFragment:Wi,withHttp:Pi,withHttps:ki,withLeadingSlash:br,withProtocol:ze,withQuery:Ni,withTrailingSlash:le,withoutBase:Li,withoutFragment:Ji,withoutHost:Zi,withoutLeadingSlash:$r,withoutProtocol:Di,withoutTrailingSlash:ve},Symbol.toStringTag,{value:"Module"}));function to(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var An={exports:{}},wt=An.exports={},Kt,Gt;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"?Kt=setTimeout:Kt=Cr}catch{Kt=Cr}try{typeof clearTimeout=="function"?Gt=clearTimeout:Gt=Rr}catch{Gt=Rr}})();function Fn(t){if(Kt===setTimeout)return setTimeout(t,0);if((Kt===Cr||!Kt)&&setTimeout)return Kt=setTimeout,setTimeout(t,0);try{return Kt(t,0)}catch{try{return Kt.call(null,t,0)}catch{return Kt.call(this,t,0)}}}function eo(t){if(Gt===clearTimeout)return clearTimeout(t);if((Gt===Rr||!Gt)&&clearTimeout)return Gt=clearTimeout,clearTimeout(t);try{return Gt(t)}catch{try{return Gt.call(null,t)}catch{return Gt.call(this,t)}}}var Qt=[],he=!1,ee,Ae=-1;function ro(){!he||!ee||(he=!1,ee.length?Qt=ee.concat(Qt):Ae=-1,Qt.length&&Tn())}function Tn(){if(!he){var t=Fn(ro);he=!0;for(var r=Qt.length;r;){for(ee=Qt,Qt=[];++Ae<r;)ee&&ee[Ae].run();Ae=-1,r=Qt.length}ee=null,he=!1,eo(t)}}wt.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)r[s-1]=arguments[s];Qt.push(new In(t,r)),Qt.length===1&&!he&&Fn(Tn)};function In(t,r){this.fun=t,this.array=r}In.prototype.run=function(){this.fun.apply(null,this.array)};wt.title="browser";wt.browser=!0;wt.env={};wt.argv=[];wt.version="";wt.versions={};function te(){}wt.on=te;wt.addListener=te;wt.once=te;wt.off=te;wt.removeListener=te;wt.removeAllListeners=te;wt.emit=te;wt.prependListener=te;wt.prependOnceListener=te;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 no=An.exports;const Ue=to(no);var Nt={},We={};We.byteLength=so;We.toByteArray=uo;We.fromByteArray=lo;var Yt=[],Ht=[],io=typeof Uint8Array<"u"?Uint8Array:Array,yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ue=0,oo=yr.length;ue<oo;++ue)Yt[ue]=yr[ue],Ht[yr.charCodeAt(ue)]=ue;Ht[45]=62;Ht[95]=63;function On(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.indexOf("=");s===-1&&(s=r);var u=s===r?0:4-s%4;return[s,u]}function so(t){var r=On(t),s=r[0],u=r[1];return(s+u)*3/4-u}function ao(t,r,s){return(r+s)*3/4-s}function uo(t){var r,s=On(t),u=s[0],d=s[1],f=new io(ao(t,u,d)),v=0,_=d>0?u-4:u,F;for(F=0;F<_;F+=4)r=Ht[t.charCodeAt(F)]<<18|Ht[t.charCodeAt(F+1)]<<12|Ht[t.charCodeAt(F+2)]<<6|Ht[t.charCodeAt(F+3)],f[v++]=r>>16&255,f[v++]=r>>8&255,f[v++]=r&255;return d===2&&(r=Ht[t.charCodeAt(F)]<<2|Ht[t.charCodeAt(F+1)]>>4,f[v++]=r&255),d===1&&(r=Ht[t.charCodeAt(F)]<<10|Ht[t.charCodeAt(F+1)]<<4|Ht[t.charCodeAt(F+2)]>>2,f[v++]=r>>8&255,f[v++]=r&255),f}function fo(t){return Yt[t>>18&63]+Yt[t>>12&63]+Yt[t>>6&63]+Yt[t&63]}function ho(t,r,s){for(var u,d=[],f=r;f<s;f+=3)u=(t[f]<<16&16711680)+(t[f+1]<<8&65280)+(t[f+2]&255),d.push(fo(u));return d.join("")}function lo(t){for(var r,s=t.length,u=s%3,d=[],f=16383,v=0,_=s-u;v<_;v+=f)d.push(ho(t,v,v+f>_?_:v+f));return u===1?(r=t[s-1],d.push(Yt[r>>2]+Yt[r<<4&63]+"==")):u===2&&(r=(t[s-2]<<8)+t[s-1],d.push(Yt[r>>10]+Yt[r>>4&63]+Yt[r<<2&63]+"=")),d.join("")}var Dr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Dr.read=function(t,r,s,u,d){var f,v,_=d*8-u-1,F=(1<<_)-1,C=F>>1,g=-7,B=s?d-1:0,T=s?-1:1,$=t[r+B];for(B+=T,f=$&(1<<-g)-1,$>>=-g,g+=_;g>0;f=f*256+t[r+B],B+=T,g-=8);for(v=f&(1<<-g)-1,f>>=-g,g+=u;g>0;v=v*256+t[r+B],B+=T,g-=8);if(f===0)f=1-C;else{if(f===F)return v?NaN:($?-1:1)*(1/0);v=v+Math.pow(2,u),f=f-C}return($?-1:1)*v*Math.pow(2,f-u)};Dr.write=function(t,r,s,u,d,f){var v,_,F,C=f*8-d-1,g=(1<<C)-1,B=g>>1,T=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,$=u?0:f-1,I=u?1:-1,U=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(_=isNaN(r)?1:0,v=g):(v=Math.floor(Math.log(r)/Math.LN2),r*(F=Math.pow(2,-v))<1&&(v--,F*=2),v+B>=1?r+=T/F:r+=T*Math.pow(2,1-B),r*F>=2&&(v++,F/=2),v+B>=g?(_=0,v=g):v+B>=1?(_=(r*F-1)*Math.pow(2,d),v=v+B):(_=r*Math.pow(2,B-1)*Math.pow(2,d),v=0));d>=8;t[s+$]=_&255,$+=I,_/=256,d-=8);for(v=v<<d|_,C+=d;C>0;t[s+$]=v&255,$+=I,v/=256,C-=8);t[s+$-I]|=U*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 r=We,s=Dr,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=g,t.SlowBuffer=Q,t.INSPECT_MAX_BYTES=50;const d=2147483647;t.kMaxLength=d;const{Uint8Array:f,ArrayBuffer:v,SharedArrayBuffer:_}=globalThis;g.TYPED_ARRAY_SUPPORT=F(),!g.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 l=new f(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,f.prototype),Object.setPrototypeOf(l,n),l.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function C(l){if(l>d)throw new RangeError('The value "'+l+'" is invalid for option "size"');const n=new f(l);return Object.setPrototypeOf(n,g.prototype),n}function g(l,n,i){if(typeof l=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(l)}return B(l,n,i)}g.poolSize=8192;function B(l,n,i){if(typeof l=="string")return U(l,n);if(v.isView(l))return W(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(qt(l,v)||l&&qt(l.buffer,v)||typeof _<"u"&&(qt(l,_)||l&&qt(l.buffer,_)))return G(l,n,i);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=l.valueOf&&l.valueOf();if(m!=null&&m!==l)return g.from(m,n,i);const b=X(l);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return g.from(l[Symbol.toPrimitive]("string"),n,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}g.from=function(l,n,i){return B(l,n,i)},Object.setPrototypeOf(g.prototype,f.prototype),Object.setPrototypeOf(g,f);function T(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function $(l,n,i){return T(l),l<=0?C(l):n!==void 0?typeof i=="string"?C(l).fill(n,i):C(l).fill(n):C(l)}g.alloc=function(l,n,i){return $(l,n,i)};function I(l){return T(l),C(l<0?0:at(l)|0)}g.allocUnsafe=function(l){return I(l)},g.allocUnsafeSlow=function(l){return I(l)};function U(l,n){if((typeof n!="string"||n==="")&&(n="utf8"),!g.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const i=J(l,n)|0;let m=C(i);const b=m.write(l,n);return b!==i&&(m=m.slice(0,b)),m}function L(l){const n=l.length<0?0:at(l.length)|0,i=C(n);for(let m=0;m<n;m+=1)i[m]=l[m]&255;return i}function W(l){if(qt(l,f)){const n=new f(l);return G(n.buffer,n.byteOffset,n.byteLength)}return L(l)}function G(l,n,i){if(n<0||l.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<n+(i||0))throw new RangeError('"length" is outside of buffer bounds');let m;return n===void 0&&i===void 0?m=new f(l):i===void 0?m=new f(l,n):m=new f(l,n,i),Object.setPrototypeOf(m,g.prototype),m}function X(l){if(g.isBuffer(l)){const n=at(l.length)|0,i=C(n);return i.length===0||l.copy(i,0,0,n),i}if(l.length!==void 0)return typeof l.length!="number"||st(l.length)?C(0):L(l);if(l.type==="Buffer"&&Array.isArray(l.data))return L(l.data)}function at(l){if(l>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return l|0}function Q(l){return+l!=l&&(l=0),g.alloc(+l)}g.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==g.prototype},g.compare=function(n,i){if(qt(n,f)&&(n=g.from(n,n.offset,n.byteLength)),qt(i,f)&&(i=g.from(i,i.offset,i.byteLength)),!g.isBuffer(n)||!g.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;let m=n.length,b=i.length;for(let S=0,R=Math.min(m,b);S<R;++S)if(n[S]!==i[S]){m=n[S],b=i[S];break}return m<b?-1:b<m?1:0},g.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}},g.concat=function(n,i){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return g.alloc(0);let m;if(i===void 0)for(i=0,m=0;m<n.length;++m)i+=n[m].length;const b=g.allocUnsafe(i);let S=0;for(m=0;m<n.length;++m){let R=n[m];if(qt(R,f))S+R.length>b.length?(g.isBuffer(R)||(R=g.from(R)),R.copy(b,S)):f.prototype.set.call(b,R,S);else if(g.isBuffer(R))R.copy(b,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=R.length}return b};function J(l,n){if(g.isBuffer(l))return l.length;if(v.isView(l)||qt(l,v))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const i=l.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&i===0)return 0;let b=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return ot(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ft(l).length;default:if(b)return m?-1:ot(l).length;n=(""+n).toLowerCase(),b=!0}}g.byteLength=J;function Lt(l,n,i){let m=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,n>>>=0,i<=n))return"";for(l||(l="utf8");;)switch(l){case"hex":return o(this,n,i);case"utf8":case"utf-8":return c(this,n,i);case"ascii":return E(this,n,i);case"latin1":case"binary":return w(this,n,i);case"base64":return h(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,n,i);default:if(m)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),m=!0}}g.prototype._isBuffer=!0;function ht(l,n,i){const m=l[n];l[n]=l[i],l[i]=m}g.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 i=0;i<n;i+=2)ht(this,i,i+1);return this},g.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 i=0;i<n;i+=4)ht(this,i,i+3),ht(this,i+1,i+2);return this},g.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 i=0;i<n;i+=8)ht(this,i,i+7),ht(this,i+1,i+6),ht(this,i+2,i+5),ht(this,i+3,i+4);return this},g.prototype.toString=function(){const n=this.length;return n===0?"":arguments.length===0?c(this,0,n):Lt.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(n){if(!g.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:g.compare(this,n)===0},g.prototype.inspect=function(){let n="";const i=t.INSPECT_MAX_BYTES;return n=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(n+=" ... "),"<Buffer "+n+">"},u&&(g.prototype[u]=g.prototype.inspect),g.prototype.compare=function(n,i,m,b,S){if(qt(n,f)&&(n=g.from(n,n.offset,n.byteLength)),!g.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(i===void 0&&(i=0),m===void 0&&(m=n?n.length:0),b===void 0&&(b=0),S===void 0&&(S=this.length),i<0||m>n.length||b<0||S>this.length)throw new RangeError("out of range index");if(b>=S&&i>=m)return 0;if(b>=S)return-1;if(i>=m)return 1;if(i>>>=0,m>>>=0,b>>>=0,S>>>=0,this===n)return 0;let R=S-b,z=m-i;const j=Math.min(R,z),q=this.slice(b,S),it=n.slice(i,m);for(let D=0;D<j;++D)if(q[D]!==it[D]){R=q[D],z=it[D];break}return R<z?-1:z<R?1:0};function Pt(l,n,i,m,b){if(l.length===0)return-1;if(typeof i=="string"?(m=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,st(i)&&(i=b?0:l.length-1),i<0&&(i=l.length+i),i>=l.length){if(b)return-1;i=l.length-1}else if(i<0)if(b)i=0;else return-1;if(typeof n=="string"&&(n=g.from(n,m)),g.isBuffer(n))return n.length===0?-1:rt(l,n,i,m,b);if(typeof n=="number")return n=n&255,typeof f.prototype.indexOf=="function"?b?f.prototype.indexOf.call(l,n,i):f.prototype.lastIndexOf.call(l,n,i):rt(l,[n],i,m,b);throw new TypeError("val must be string, number or Buffer")}function rt(l,n,i,m,b){let S=1,R=l.length,z=n.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(l.length<2||n.length<2)return-1;S=2,R/=2,z/=2,i/=2}function j(it,D){return S===1?it[D]:it.readUInt16BE(D*S)}let q;if(b){let it=-1;for(q=i;q<R;q++)if(j(l,q)===j(n,it===-1?0:q-it)){if(it===-1&&(it=q),q-it+1===z)return it*S}else it!==-1&&(q-=q-it),it=-1}else for(i+z>R&&(i=R-z),q=i;q>=0;q--){let it=!0;for(let D=0;D<z;D++)if(j(l,q+D)!==j(n,D)){it=!1;break}if(it)return q}return-1}g.prototype.includes=function(n,i,m){return this.indexOf(n,i,m)!==-1},g.prototype.indexOf=function(n,i,m){return Pt(this,n,i,m,!0)},g.prototype.lastIndexOf=function(n,i,m){return Pt(this,n,i,m,!1)};function k(l,n,i,m){i=Number(i)||0;const b=l.length-i;m?(m=Number(m),m>b&&(m=b)):m=b;const S=n.length;m>S/2&&(m=S/2);let R;for(R=0;R<m;++R){const z=parseInt(n.substr(R*2,2),16);if(st(z))return R;l[i+R]=z}return R}function kt(l,n,i,m){return nt(ot(n,l.length-i),l,i,m)}function x(l,n,i,m){return nt(dt(n),l,i,m)}function e(l,n,i,m){return nt(ft(n),l,i,m)}function a(l,n,i,m){return nt(_e(n,l.length-i),l,i,m)}g.prototype.write=function(n,i,m,b){if(i===void 0)b="utf8",m=this.length,i=0;else if(m===void 0&&typeof i=="string")b=i,m=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(m)?(m=m>>>0,b===void 0&&(b="utf8")):(b=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const S=this.length-i;if((m===void 0||m>S)&&(m=S),n.length>0&&(m<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let R=!1;for(;;)switch(b){case"hex":return k(this,n,i,m);case"utf8":case"utf-8":return kt(this,n,i,m);case"ascii":case"latin1":case"binary":return x(this,n,i,m);case"base64":return e(this,n,i,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a(this,n,i,m);default:if(R)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),R=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function h(l,n,i){return n===0&&i===l.length?r.fromByteArray(l):r.fromByteArray(l.slice(n,i))}function c(l,n,i){i=Math.min(l.length,i);const m=[];let b=n;for(;b<i;){const S=l[b];let R=null,z=S>239?4:S>223?3:S>191?2:1;if(b+z<=i){let j,q,it,D;switch(z){case 1:S<128&&(R=S);break;case 2:j=l[b+1],(j&192)===128&&(D=(S&31)<<6|j&63,D>127&&(R=D));break;case 3:j=l[b+1],q=l[b+2],(j&192)===128&&(q&192)===128&&(D=(S&15)<<12|(j&63)<<6|q&63,D>2047&&(D<55296||D>57343)&&(R=D));break;case 4:j=l[b+1],q=l[b+2],it=l[b+3],(j&192)===128&&(q&192)===128&&(it&192)===128&&(D=(S&15)<<18|(j&63)<<12|(q&63)<<6|it&63,D>65535&&D<1114112&&(R=D))}}R===null?(R=65533,z=1):R>65535&&(R-=65536,m.push(R>>>10&1023|55296),R=56320|R&1023),m.push(R),b+=z}return M(m)}const p=4096;function M(l){const n=l.length;if(n<=p)return String.fromCharCode.apply(String,l);let i="",m=0;for(;m<n;)i+=String.fromCharCode.apply(String,l.slice(m,m+=p));return i}function E(l,n,i){let m="";i=Math.min(l.length,i);for(let b=n;b<i;++b)m+=String.fromCharCode(l[b]&127);return m}function w(l,n,i){let m="";i=Math.min(l.length,i);for(let b=n;b<i;++b)m+=String.fromCharCode(l[b]);return m}function o(l,n,i){const m=l.length;(!n||n<0)&&(n=0),(!i||i<0||i>m)&&(i=m);let b="";for(let S=n;S<i;++S)b+=pt[l[S]];return b}function y(l,n,i){const m=l.slice(n,i);let b="";for(let S=0;S<m.length-1;S+=2)b+=String.fromCharCode(m[S]+m[S+1]*256);return b}g.prototype.slice=function(n,i){const m=this.length;n=~~n,i=i===void 0?m:~~i,n<0?(n+=m,n<0&&(n=0)):n>m&&(n=m),i<0?(i+=m,i<0&&(i=0)):i>m&&(i=m),i<n&&(i=n);const b=this.subarray(n,i);return Object.setPrototypeOf(b,g.prototype),b};function O(l,n,i){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+n>i)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(n,i,m){n=n>>>0,i=i>>>0,m||O(n,i,this.length);let b=this[n],S=1,R=0;for(;++R<i&&(S*=256);)b+=this[n+R]*S;return b},g.prototype.readUintBE=g.prototype.readUIntBE=function(n,i,m){n=n>>>0,i=i>>>0,m||O(n,i,this.length);let b=this[n+--i],S=1;for(;i>0&&(S*=256);)b+=this[n+--i]*S;return b},g.prototype.readUint8=g.prototype.readUInt8=function(n,i){return n=n>>>0,i||O(n,1,this.length),this[n]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(n,i){return n=n>>>0,i||O(n,2,this.length),this[n]|this[n+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(n,i){return n=n>>>0,i||O(n,2,this.length),this[n]<<8|this[n+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(n,i){return n=n>>>0,i||O(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(n,i){return n=n>>>0,i||O(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},g.prototype.readBigUInt64LE=Wt(function(n){n=n>>>0,Xt(n,"offset");const i=this[n],m=this[n+7];(i===void 0||m===void 0)&&et(n,this.length-8);const b=i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,S=this[++n]+this[++n]*2**8+this[++n]*2**16+m*2**24;return BigInt(b)+(BigInt(S)<<BigInt(32))}),g.prototype.readBigUInt64BE=Wt(function(n){n=n>>>0,Xt(n,"offset");const i=this[n],m=this[n+7];(i===void 0||m===void 0)&&et(n,this.length-8);const b=i*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],S=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+m;return(BigInt(b)<<BigInt(32))+BigInt(S)}),g.prototype.readIntLE=function(n,i,m){n=n>>>0,i=i>>>0,m||O(n,i,this.length);let b=this[n],S=1,R=0;for(;++R<i&&(S*=256);)b+=this[n+R]*S;return S*=128,b>=S&&(b-=Math.pow(2,8*i)),b},g.prototype.readIntBE=function(n,i,m){n=n>>>0,i=i>>>0,m||O(n,i,this.length);let b=i,S=1,R=this[n+--b];for(;b>0&&(S*=256);)R+=this[n+--b]*S;return S*=128,R>=S&&(R-=Math.pow(2,8*i)),R},g.prototype.readInt8=function(n,i){return n=n>>>0,i||O(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},g.prototype.readInt16LE=function(n,i){n=n>>>0,i||O(n,2,this.length);const m=this[n]|this[n+1]<<8;return m&32768?m|4294901760:m},g.prototype.readInt16BE=function(n,i){n=n>>>0,i||O(n,2,this.length);const m=this[n+1]|this[n]<<8;return m&32768?m|4294901760:m},g.prototype.readInt32LE=function(n,i){return n=n>>>0,i||O(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},g.prototype.readInt32BE=function(n,i){return n=n>>>0,i||O(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},g.prototype.readBigInt64LE=Wt(function(n){n=n>>>0,Xt(n,"offset");const i=this[n],m=this[n+7];(i===void 0||m===void 0)&&et(n,this.length-8);const b=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(m<<24);return(BigInt(b)<<BigInt(32))+BigInt(i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)}),g.prototype.readBigInt64BE=Wt(function(n){n=n>>>0,Xt(n,"offset");const i=this[n],m=this[n+7];(i===void 0||m===void 0)&&et(n,this.length-8);const b=(i<<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+m)}),g.prototype.readFloatLE=function(n,i){return n=n>>>0,i||O(n,4,this.length),s.read(this,n,!0,23,4)},g.prototype.readFloatBE=function(n,i){return n=n>>>0,i||O(n,4,this.length),s.read(this,n,!1,23,4)},g.prototype.readDoubleLE=function(n,i){return n=n>>>0,i||O(n,8,this.length),s.read(this,n,!0,52,8)},g.prototype.readDoubleBE=function(n,i){return n=n>>>0,i||O(n,8,this.length),s.read(this,n,!1,52,8)};function N(l,n,i,m,b,S){if(!g.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>b||n<S)throw new RangeError('"value" argument is out of bounds');if(i+m>l.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(n,i,m,b){if(n=+n,i=i>>>0,m=m>>>0,!b){const z=Math.pow(2,8*m)-1;N(this,n,i,m,z,0)}let S=1,R=0;for(this[i]=n&255;++R<m&&(S*=256);)this[i+R]=n/S&255;return i+m},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(n,i,m,b){if(n=+n,i=i>>>0,m=m>>>0,!b){const z=Math.pow(2,8*m)-1;N(this,n,i,m,z,0)}let S=m-1,R=1;for(this[i+S]=n&255;--S>=0&&(R*=256);)this[i+S]=n/R&255;return i+m},g.prototype.writeUint8=g.prototype.writeUInt8=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,1,255,0),this[i]=n&255,i+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,2,65535,0),this[i]=n&255,this[i+1]=n>>>8,i+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=n&255,i+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,4,4294967295,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=n&255,i+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,4,4294967295,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4};function P(l,n,i,m,b){ut(n,m,b,l,i,7);let S=Number(n&BigInt(4294967295));l[i++]=S,S=S>>8,l[i++]=S,S=S>>8,l[i++]=S,S=S>>8,l[i++]=S;let R=Number(n>>BigInt(32)&BigInt(4294967295));return l[i++]=R,R=R>>8,l[i++]=R,R=R>>8,l[i++]=R,R=R>>8,l[i++]=R,i}function tt(l,n,i,m,b){ut(n,m,b,l,i,7);let S=Number(n&BigInt(4294967295));l[i+7]=S,S=S>>8,l[i+6]=S,S=S>>8,l[i+5]=S,S=S>>8,l[i+4]=S;let R=Number(n>>BigInt(32)&BigInt(4294967295));return l[i+3]=R,R=R>>8,l[i+2]=R,R=R>>8,l[i+1]=R,R=R>>8,l[i]=R,i+8}g.prototype.writeBigUInt64LE=Wt(function(n,i=0){return P(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=Wt(function(n,i=0){return tt(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(n,i,m,b){if(n=+n,i=i>>>0,!b){const j=Math.pow(2,8*m-1);N(this,n,i,m,j-1,-j)}let S=0,R=1,z=0;for(this[i]=n&255;++S<m&&(R*=256);)n<0&&z===0&&this[i+S-1]!==0&&(z=1),this[i+S]=(n/R>>0)-z&255;return i+m},g.prototype.writeIntBE=function(n,i,m,b){if(n=+n,i=i>>>0,!b){const j=Math.pow(2,8*m-1);N(this,n,i,m,j-1,-j)}let S=m-1,R=1,z=0;for(this[i+S]=n&255;--S>=0&&(R*=256);)n<0&&z===0&&this[i+S+1]!==0&&(z=1),this[i+S]=(n/R>>0)-z&255;return i+m},g.prototype.writeInt8=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=n&255,i+1},g.prototype.writeInt16LE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,2,32767,-32768),this[i]=n&255,this[i+1]=n>>>8,i+2},g.prototype.writeInt16BE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=n&255,i+2},g.prototype.writeInt32LE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,4,2147483647,-2147483648),this[i]=n&255,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},g.prototype.writeInt32BE=function(n,i,m){return n=+n,i=i>>>0,m||N(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4},g.prototype.writeBigInt64LE=Wt(function(n,i=0){return P(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=Wt(function(n,i=0){return tt(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function V(l,n,i,m,b,S){if(i+m>l.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function K(l,n,i,m,b){return n=+n,i=i>>>0,b||V(l,n,i,4),s.write(l,n,i,m,23,4),i+4}g.prototype.writeFloatLE=function(n,i,m){return K(this,n,i,!0,m)},g.prototype.writeFloatBE=function(n,i,m){return K(this,n,i,!1,m)};function yt(l,n,i,m,b){return n=+n,i=i>>>0,b||V(l,n,i,8),s.write(l,n,i,m,52,8),i+8}g.prototype.writeDoubleLE=function(n,i,m){return yt(this,n,i,!0,m)},g.prototype.writeDoubleBE=function(n,i,m){return yt(this,n,i,!1,m)},g.prototype.copy=function(n,i,m,b){if(!g.isBuffer(n))throw new TypeError("argument should be a Buffer");if(m||(m=0),!b&&b!==0&&(b=this.length),i>=n.length&&(i=n.length),i||(i=0),b>0&&b<m&&(b=m),b===m||n.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=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-i<b-m&&(b=n.length-i+m);const S=b-m;return this===n&&typeof f.prototype.copyWithin=="function"?this.copyWithin(i,m,b):f.prototype.set.call(n,this.subarray(m,b),i),S},g.prototype.fill=function(n,i,m,b){if(typeof n=="string"){if(typeof i=="string"?(b=i,i=0,m=this.length):typeof m=="string"&&(b=m,m=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!g.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(n.length===1){const R=n.charCodeAt(0);(b==="utf8"&&R<128||b==="latin1")&&(n=R)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(i<0||this.length<i||this.length<m)throw new RangeError("Out of range index");if(m<=i)return this;i=i>>>0,m=m===void 0?this.length:m>>>0,n||(n=0);let S;if(typeof n=="number")for(S=i;S<m;++S)this[S]=n;else{const R=g.isBuffer(n)?n:g.from(n,b),z=R.length;if(z===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(S=0;S<m-i;++S)this[S+i]=R[S%z]}return this};const Z={};function Y(l,n,i){Z[l]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(l,n){return`The "${l}" argument must be of type number. Received type ${typeof n}`},TypeError),Y("ERR_OUT_OF_RANGE",function(l,n,i){let m=`The value of "${l}" is out of range.`,b=i;return Number.isInteger(i)&&Math.abs(i)>2**32?b=Zt(String(i)):typeof i=="bigint"&&(b=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(b=Zt(b)),b+="n"),m+=` It must be ${n}. Received ${b}`,m},RangeError);function Zt(l){let n="",i=l.length;const m=l[0]==="-"?1:0;for(;i>=m+4;i-=3)n=`_${l.slice(i-3,i)}${n}`;return`${l.slice(0,i)}${n}`}function lt(l,n,i){Xt(n,"offset"),(l[n]===void 0||l[n+i]===void 0)&&et(n,l.length-(i+1))}function ut(l,n,i,m,b,S){if(l>i||l<n){const R=typeof n=="bigint"?"n":"";let z;throw n===0||n===BigInt(0)?z=`>= 0${R} and < 2${R} ** ${(S+1)*8}${R}`:z=`>= -(2${R} ** ${(S+1)*8-1}${R}) and < 2 ** ${(S+1)*8-1}${R}`,new Z.ERR_OUT_OF_RANGE("value",z,l)}lt(m,b,S)}function Xt(l,n){if(typeof l!="number")throw new Z.ERR_INVALID_ARG_TYPE(n,"number",l)}function et(l,n,i){throw Math.floor(l)!==l?(Xt(l,i),new Z.ERR_OUT_OF_RANGE("offset","an integer",l)):n<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${n}`,l)}const ct=/[^+/0-9A-Za-z-_]/g;function Se(l){if(l=l.split("=")[0],l=l.trim().replace(ct,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function ot(l,n){n=n||1/0;let i;const m=l.length;let b=null;const S=[];for(let R=0;R<m;++R){if(i=l.charCodeAt(R),i>55295&&i<57344){if(!b){if(i>56319){(n-=3)>-1&&S.push(239,191,189);continue}else if(R+1===m){(n-=3)>-1&&S.push(239,191,189);continue}b=i;continue}if(i<56320){(n-=3)>-1&&S.push(239,191,189),b=i;continue}i=(b-55296<<10|i-56320)+65536}else b&&(n-=3)>-1&&S.push(239,191,189);if(b=null,i<128){if((n-=1)<0)break;S.push(i)}else if(i<2048){if((n-=2)<0)break;S.push(i>>6|192,i&63|128)}else if(i<65536){if((n-=3)<0)break;S.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((n-=4)<0)break;S.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return S}function dt(l){const n=[];for(let i=0;i<l.length;++i)n.push(l.charCodeAt(i)&255);return n}function _e(l,n){let i,m,b;const S=[];for(let R=0;R<l.length&&!((n-=2)<0);++R)i=l.charCodeAt(R),m=i>>8,b=i%256,S.push(b),S.push(m);return S}function ft(l){return r.toByteArray(Se(l))}function nt(l,n,i,m){let b;for(b=0;b<m&&!(b+i>=n.length||b>=l.length);++b)n[b+i]=l[b];return b}function qt(l,n){return l instanceof n||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===n.name}function st(l){return l!==l}const pt=function(){const l="0123456789abcdef",n=new Array(256);for(let i=0;i<16;++i){const m=i*16;for(let b=0;b<16;++b)n[m+b]=l[i]+l[b]}return n}();function Wt(l){return typeof BigInt>"u"?mt:l}function mt(){throw new Error("BigInt not supported")}})(Nt);const Ln=Nt.Buffer,co=Nt.Blob,po=Nt.BlobOptions,mo=Nt.Buffer,go=Nt.File,wo=Nt.FileOptions,yo=Nt.INSPECT_MAX_BYTES,vo=Nt.SlowBuffer,Mo=Nt.TranscodeEncoding,xo=Nt.atob,Eo=Nt.btoa,bo=Nt.constants,So=Nt.isAscii,_o=Nt.isUtf8,Co=Nt.kMaxLength,Ro=Nt.kStringMaxLength,Bo=Nt.resolveObjectURL,Ao=Nt.transcode,Fo=Object.freeze(Object.defineProperty({__proto__:null,Blob:co,BlobOptions:po,Buffer:mo,File:go,FileOptions:wo,INSPECT_MAX_BYTES:yo,SlowBuffer:vo,TranscodeEncoding:Mo,atob:xo,btoa:Eo,constants:bo,default:Ln,isAscii:So,isUtf8:_o,kMaxLength:Co,kStringMaxLength:Ro,resolveObjectURL:Bo,transcode:Ao},Symbol.toStringTag,{value:"Module"})),To=ai(Fo);var qr={exports:{}};qr.exports;(function(t){(function(r,s){function u(x,e){if(!x)throw new Error(e||"Assertion failed")}function d(x,e){x.super_=e;var a=function(){};a.prototype=e.prototype,x.prototype=new a,x.prototype.constructor=x}function f(x,e,a){if(f.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((e==="le"||e==="be")&&(a=e,e=10),this._init(x||0,e||10,a||"be"))}typeof r=="object"?r.exports=f:s.BN=f,f.BN=f,f.wordSize=26;var v;try{typeof window<"u"&&typeof window.Buffer<"u"?v=window.Buffer:v=To.Buffer}catch{}f.isBN=function(e){return e instanceof f?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===f.wordSize&&Array.isArray(e.words)},f.max=function(e,a){return e.cmp(a)>0?e:a},f.min=function(e,a){return e.cmp(a)<0?e:a},f.prototype._init=function(e,a,h){if(typeof e=="number")return this._initNumber(e,a,h);if(typeof e=="object")return this._initArray(e,a,h);a==="hex"&&(a=16),u(a===(a|0)&&a>=2&&a<=36),e=e.toString().replace(/\s+/g,"");var c=0;e[0]==="-"&&(c++,this.negative=1),c<e.length&&(a===16?this._parseHex(e,c,h):(this._parseBase(e,a,c),h==="le"&&this._initArray(this.toArray(),a,h)))},f.prototype._initNumber=function(e,a,h){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(u(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),h==="le"&&this._initArray(this.toArray(),a,h)},f.prototype._initArray=function(e,a,h){if(u(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var p,M,E=0;if(h==="be")for(c=e.length-1,p=0;c>=0;c-=3)M=e[c]|e[c-1]<<8|e[c-2]<<16,this.words[p]|=M<<E&67108863,this.words[p+1]=M>>>26-E&67108863,E+=24,E>=26&&(E-=26,p++);else if(h==="le")for(c=0,p=0;c<e.length;c+=3)M=e[c]|e[c+1]<<8|e[c+2]<<16,this.words[p]|=M<<E&67108863,this.words[p+1]=M>>>26-E&67108863,E+=24,E>=26&&(E-=26,p++);return this._strip()};function _(x,e){var a=x.charCodeAt(e);if(a>=48&&a<=57)return a-48;if(a>=65&&a<=70)return a-55;if(a>=97&&a<=102)return a-87;u(!1,"Invalid character in "+x)}function F(x,e,a){var h=_(x,a);return a-1>=e&&(h|=_(x,a-1)<<4),h}f.prototype._parseHex=function(e,a,h){this.length=Math.ceil((e.length-a)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var p=0,M=0,E;if(h==="be")for(c=e.length-1;c>=a;c-=2)E=F(e,a,c)<<p,this.words[M]|=E&67108863,p>=18?(p-=18,M+=1,this.words[M]|=E>>>26):p+=8;else{var w=e.length-a;for(c=w%2===0?a+1:a;c<e.length;c+=2)E=F(e,a,c)<<p,this.words[M]|=E&67108863,p>=18?(p-=18,M+=1,this.words[M]|=E>>>26):p+=8}this._strip()};function C(x,e,a,h){for(var c=0,p=0,M=Math.min(x.length,a),E=e;E<M;E++){var w=x.charCodeAt(E)-48;c*=h,w>=49?p=w-49+10:w>=17?p=w-17+10:p=w,u(w>=0&&p<h,"Invalid character"),c+=p}return c}f.prototype._parseBase=function(e,a,h){this.words=[0],this.length=1;for(var c=0,p=1;p<=67108863;p*=a)c++;c--,p=p/a|0;for(var M=e.length-h,E=M%c,w=Math.min(M,M-E)+h,o=0,y=h;y<w;y+=c)o=C(e,y,y+c,a),this.imuln(p),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(E!==0){var O=1;for(o=C(e,y,e.length,a),y=0;y<E;y++)O*=a;this.imuln(O),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this._strip()},f.prototype.copy=function(e){e.words=new Array(this.length);for(var a=0;a<this.length;a++)e.words[a]=this.words[a];e.length=this.length,e.negative=this.negative,e.red=this.red};function g(x,e){x.words=e.words,x.length=e.length,x.negative=e.negative,x.red=e.red}if(f.prototype._move=function(e){g(e,this)},f.prototype.clone=function(){var e=new f(null);return this.copy(e),e},f.prototype._expand=function(e){for(;this.length<e;)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},typeof Symbol<"u"&&typeof Symbol.for=="function")try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=B}catch{f.prototype.inspect=B}else f.prototype.inspect=B;function B(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var T=["","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],I=[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(e,a){e=e||10,a=a|0||1;var h;if(e===16||e==="hex"){h="";for(var c=0,p=0,M=0;M<this.length;M++){var E=this.words[M],w=((E<<c|p)&16777215).toString(16);p=E>>>24-c&16777215,c+=2,c>=26&&(c-=26,M--),p!==0||M!==this.length-1?h=T[6-w.length]+w+h:h=w+h}for(p!==0&&(h=p.toString(16)+h);h.length%a!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}if(e===(e|0)&&e>=2&&e<=36){var o=$[e],y=I[e];h="";var O=this.clone();for(O.negative=0;!O.isZero();){var N=O.modrn(y).toString(e);O=O.idivn(y),O.isZero()?h=N+h:h=T[o-N.length]+N+h}for(this.isZero()&&(h="0"+h);h.length%a!==0;)h="0"+h;return this.negative!==0&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},f.prototype.toJSON=function(){return this.toString(16,2)},v&&(f.prototype.toBuffer=function(e,a){return this.toArrayLike(v,e,a)}),f.prototype.toArray=function(e,a){return this.toArrayLike(Array,e,a)};var U=function(e,a){return e.allocUnsafe?e.allocUnsafe(a):new e(a)};f.prototype.toArrayLike=function(e,a,h){this._strip();var c=this.byteLength(),p=h||Math.max(1,c);u(c<=p,"byte array longer than desired length"),u(p>0,"Requested array length <= 0");var M=U(e,p),E=a==="le"?"LE":"BE";return this["_toArrayLike"+E](M,c),M},f.prototype._toArrayLikeLE=function(e,a){for(var h=0,c=0,p=0,M=0;p<this.length;p++){var E=this.words[p]<<M|c;e[h++]=E&255,h<e.length&&(e[h++]=E>>8&255),h<e.length&&(e[h++]=E>>16&255),M===6?(h<e.length&&(e[h++]=E>>24&255),c=0,M=0):(c=E>>>24,M+=2)}if(h<e.length)for(e[h++]=c;h<e.length;)e[h++]=0},f.prototype._toArrayLikeBE=function(e,a){for(var h=e.length-1,c=0,p=0,M=0;p<this.length;p++){var E=this.words[p]<<M|c;e[h--]=E&255,h>=0&&(e[h--]=E>>8&255),h>=0&&(e[h--]=E>>16&255),M===6?(h>=0&&(e[h--]=E>>24&255),c=0,M=0):(c=E>>>24,M+=2)}if(h>=0)for(e[h--]=c;h>=0;)e[h--]=0},Math.clz32?f.prototype._countBits=function(e){return 32-Math.clz32(e)}:f.prototype._countBits=function(e){var a=e,h=0;return a>=4096&&(h+=13,a>>>=13),a>=64&&(h+=7,a>>>=7),a>=8&&(h+=4,a>>>=4),a>=2&&(h+=2,a>>>=2),h+a},f.prototype._zeroBits=function(e){if(e===0)return 26;var a=e,h=0;return a&8191||(h+=13,a>>>=13),a&127||(h+=7,a>>>=7),a&15||(h+=4,a>>>=4),a&3||(h+=2,a>>>=2),a&1||h++,h},f.prototype.bitLength=function(){var e=this.words[this.length-1],a=this._countBits(e);return(this.length-1)*26+a};function L(x){for(var e=new Array(x.bitLength()),a=0;a<e.length;a++){var h=a/26|0,c=a%26;e[a]=x.words[h]>>>c&1}return e}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,a=0;a<this.length;a++){var h=this._zeroBits(this.words[a]);if(e+=h,h!==26)break}return e},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},f.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).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(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var a=0;a<e.length;a++)this.words[a]=this.words[a]|e.words[a];return this._strip()},f.prototype.ior=function(e){return u((this.negative|e.negative)===0),this.iuor(e)},f.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},f.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},f.prototype.iuand=function(e){var a;this.length>e.length?a=e:a=this;for(var h=0;h<a.length;h++)this.words[h]=this.words[h]&e.words[h];return this.length=a.length,this._strip()},f.prototype.iand=function(e){return u((this.negative|e.negative)===0),this.iuand(e)},f.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},f.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},f.prototype.iuxor=function(e){var a,h;this.length>e.length?(a=this,h=e):(a=e,h=this);for(var c=0;c<h.length;c++)this.words[c]=a.words[c]^h.words[c];if(this!==a)for(;c<a.length;c++)this.words[c]=a.words[c];return this.length=a.length,this._strip()},f.prototype.ixor=function(e){return u((this.negative|e.negative)===0),this.iuxor(e)},f.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},f.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},f.prototype.inotn=function(e){u(typeof e=="number"&&e>=0);var a=Math.ceil(e/26)|0,h=e%26;this._expand(a),h>0&&a--;for(var c=0;c<a;c++)this.words[c]=~this.words[c]&67108863;return h>0&&(this.words[c]=~this.words[c]&67108863>>26-h),this._strip()},f.prototype.notn=function(e){return this.clone().inotn(e)},f.prototype.setn=function(e,a){u(typeof e=="number"&&e>=0);var h=e/26|0,c=e%26;return this._expand(h+1),a?this.words[h]=this.words[h]|1<<c:this.words[h]=this.words[h]&~(1<<c),this._strip()},f.prototype.iadd=function(e){var a;if(this.negative!==0&&e.negative===0)return this.negative=0,a=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,a=this.isub(e),e.negative=1,a._normSign();var h,c;this.length>e.length?(h=this,c=e):(h=e,c=this);for(var p=0,M=0;M<c.length;M++)a=(h.words[M]|0)+(c.words[M]|0)+p,this.words[M]=a&67108863,p=a>>>26;for(;p!==0&&M<h.length;M++)a=(h.words[M]|0)+p,this.words[M]=a&67108863,p=a>>>26;if(this.length=h.length,p!==0)this.words[this.length]=p,this.length++;else if(h!==this)for(;M<h.length;M++)this.words[M]=h.words[M];return this},f.prototype.add=function(e){var a;return e.negative!==0&&this.negative===0?(e.negative=0,a=this.sub(e),e.negative^=1,a):e.negative===0&&this.negative!==0?(this.negative=0,a=e.sub(this),this.negative=1,a):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},f.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var a=this.iadd(e);return e.negative=1,a._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var h=this.cmp(e);if(h===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,p;h>0?(c=this,p=e):(c=e,p=this);for(var M=0,E=0;E<p.length;E++)a=(c.words[E]|0)-(p.words[E]|0)+M,M=a>>26,this.words[E]=a&67108863;for(;M!==0&&E<c.length;E++)a=(c.words[E]|0)+M,M=a>>26,this.words[E]=a&67108863;if(M===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(e){return this.clone().isub(e)};function W(x,e,a){a.negative=e.negative^x.negative;var h=x.length+e.length|0;a.length=h,h=h-1|0;var c=x.words[0]|0,p=e.words[0]|0,M=c*p,E=M&67108863,w=M/67108864|0;a.words[0]=E;for(var o=1;o<h;o++){for(var y=w>>>26,O=w&67108863,N=Math.min(o,e.length-1),P=Math.max(0,o-x.length+1);P<=N;P++){var tt=o-P|0;c=x.words[tt]|0,p=e.words[P]|0,M=c*p+O,y+=M/67108864|0,O=M&67108863}a.words[o]=O|0,w=y|0}return w!==0?a.words[o]=w|0:a.length--,a._strip()}var G=function(e,a,h){var c=e.words,p=a.words,M=h.words,E=0,w,o,y,O=c[0]|0,N=O&8191,P=O>>>13,tt=c[1]|0,V=tt&8191,K=tt>>>13,yt=c[2]|0,Z=yt&8191,Y=yt>>>13,Zt=c[3]|0,lt=Zt&8191,ut=Zt>>>13,Xt=c[4]|0,et=Xt&8191,ct=Xt>>>13,Se=c[5]|0,ot=Se&8191,dt=Se>>>13,_e=c[6]|0,ft=_e&8191,nt=_e>>>13,qt=c[7]|0,st=qt&8191,pt=qt>>>13,Wt=c[8]|0,mt=Wt&8191,l=Wt>>>13,n=c[9]|0,i=n&8191,m=n>>>13,b=p[0]|0,S=b&8191,R=b>>>13,z=p[1]|0,j=z&8191,q=z>>>13,it=p[2]|0,D=it&8191,vt=it>>>13,Wr=p[3]|0,Mt=Wr&8191,xt=Wr>>>13,Jr=p[4]|0,Et=Jr&8191,bt=Jr>>>13,Zr=p[5]|0,St=Zr&8191,_t=Zr>>>13,Vr=p[6]|0,Ct=Vr&8191,Rt=Vr>>>13,Kr=p[7]|0,Bt=Kr&8191,At=Kr>>>13,Gr=p[8]|0,Ft=Gr&8191,Tt=Gr>>>13,Yr=p[9]|0,It=Yr&8191,Ot=Yr>>>13;h.negative=e.negative^a.negative,h.length=19,w=Math.imul(N,S),o=Math.imul(N,R),o=o+Math.imul(P,S)|0,y=Math.imul(P,R);var Xe=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,w=Math.imul(V,S),o=Math.imul(V,R),o=o+Math.imul(K,S)|0,y=Math.imul(K,R),w=w+Math.imul(N,j)|0,o=o+Math.imul(N,q)|0,o=o+Math.imul(P,j)|0,y=y+Math.imul(P,q)|0;var Qe=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,w=Math.imul(Z,S),o=Math.imul(Z,R),o=o+Math.imul(Y,S)|0,y=Math.imul(Y,R),w=w+Math.imul(V,j)|0,o=o+Math.imul(V,q)|0,o=o+Math.imul(K,j)|0,y=y+Math.imul(K,q)|0,w=w+Math.imul(N,D)|0,o=o+Math.imul(N,vt)|0,o=o+Math.imul(P,D)|0,y=y+Math.imul(P,vt)|0;var tr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(lt,S),o=Math.imul(lt,R),o=o+Math.imul(ut,S)|0,y=Math.imul(ut,R),w=w+Math.imul(Z,j)|0,o=o+Math.imul(Z,q)|0,o=o+Math.imul(Y,j)|0,y=y+Math.imul(Y,q)|0,w=w+Math.imul(V,D)|0,o=o+Math.imul(V,vt)|0,o=o+Math.imul(K,D)|0,y=y+Math.imul(K,vt)|0,w=w+Math.imul(N,Mt)|0,o=o+Math.imul(N,xt)|0,o=o+Math.imul(P,Mt)|0,y=y+Math.imul(P,xt)|0;var er=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(et,S),o=Math.imul(et,R),o=o+Math.imul(ct,S)|0,y=Math.imul(ct,R),w=w+Math.imul(lt,j)|0,o=o+Math.imul(lt,q)|0,o=o+Math.imul(ut,j)|0,y=y+Math.imul(ut,q)|0,w=w+Math.imul(Z,D)|0,o=o+Math.imul(Z,vt)|0,o=o+Math.imul(Y,D)|0,y=y+Math.imul(Y,vt)|0,w=w+Math.imul(V,Mt)|0,o=o+Math.imul(V,xt)|0,o=o+Math.imul(K,Mt)|0,y=y+Math.imul(K,xt)|0,w=w+Math.imul(N,Et)|0,o=o+Math.imul(N,bt)|0,o=o+Math.imul(P,Et)|0,y=y+Math.imul(P,bt)|0;var rr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(rr>>>26)|0,rr&=67108863,w=Math.imul(ot,S),o=Math.imul(ot,R),o=o+Math.imul(dt,S)|0,y=Math.imul(dt,R),w=w+Math.imul(et,j)|0,o=o+Math.imul(et,q)|0,o=o+Math.imul(ct,j)|0,y=y+Math.imul(ct,q)|0,w=w+Math.imul(lt,D)|0,o=o+Math.imul(lt,vt)|0,o=o+Math.imul(ut,D)|0,y=y+Math.imul(ut,vt)|0,w=w+Math.imul(Z,Mt)|0,o=o+Math.imul(Z,xt)|0,o=o+Math.imul(Y,Mt)|0,y=y+Math.imul(Y,xt)|0,w=w+Math.imul(V,Et)|0,o=o+Math.imul(V,bt)|0,o=o+Math.imul(K,Et)|0,y=y+Math.imul(K,bt)|0,w=w+Math.imul(N,St)|0,o=o+Math.imul(N,_t)|0,o=o+Math.imul(P,St)|0,y=y+Math.imul(P,_t)|0;var nr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(ft,S),o=Math.imul(ft,R),o=o+Math.imul(nt,S)|0,y=Math.imul(nt,R),w=w+Math.imul(ot,j)|0,o=o+Math.imul(ot,q)|0,o=o+Math.imul(dt,j)|0,y=y+Math.imul(dt,q)|0,w=w+Math.imul(et,D)|0,o=o+Math.imul(et,vt)|0,o=o+Math.imul(ct,D)|0,y=y+Math.imul(ct,vt)|0,w=w+Math.imul(lt,Mt)|0,o=o+Math.imul(lt,xt)|0,o=o+Math.imul(ut,Mt)|0,y=y+Math.imul(ut,xt)|0,w=w+Math.imul(Z,Et)|0,o=o+Math.imul(Z,bt)|0,o=o+Math.imul(Y,Et)|0,y=y+Math.imul(Y,bt)|0,w=w+Math.imul(V,St)|0,o=o+Math.imul(V,_t)|0,o=o+Math.imul(K,St)|0,y=y+Math.imul(K,_t)|0,w=w+Math.imul(N,Ct)|0,o=o+Math.imul(N,Rt)|0,o=o+Math.imul(P,Ct)|0,y=y+Math.imul(P,Rt)|0;var ir=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(st,S),o=Math.imul(st,R),o=o+Math.imul(pt,S)|0,y=Math.imul(pt,R),w=w+Math.imul(ft,j)|0,o=o+Math.imul(ft,q)|0,o=o+Math.imul(nt,j)|0,y=y+Math.imul(nt,q)|0,w=w+Math.imul(ot,D)|0,o=o+Math.imul(ot,vt)|0,o=o+Math.imul(dt,D)|0,y=y+Math.imul(dt,vt)|0,w=w+Math.imul(et,Mt)|0,o=o+Math.imul(et,xt)|0,o=o+Math.imul(ct,Mt)|0,y=y+Math.imul(ct,xt)|0,w=w+Math.imul(lt,Et)|0,o=o+Math.imul(lt,bt)|0,o=o+Math.imul(ut,Et)|0,y=y+Math.imul(ut,bt)|0,w=w+Math.imul(Z,St)|0,o=o+Math.imul(Z,_t)|0,o=o+Math.imul(Y,St)|0,y=y+Math.imul(Y,_t)|0,w=w+Math.imul(V,Ct)|0,o=o+Math.imul(V,Rt)|0,o=o+Math.imul(K,Ct)|0,y=y+Math.imul(K,Rt)|0,w=w+Math.imul(N,Bt)|0,o=o+Math.imul(N,At)|0,o=o+Math.imul(P,Bt)|0,y=y+Math.imul(P,At)|0;var or=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(or>>>26)|0,or&=67108863,w=Math.imul(mt,S),o=Math.imul(mt,R),o=o+Math.imul(l,S)|0,y=Math.imul(l,R),w=w+Math.imul(st,j)|0,o=o+Math.imul(st,q)|0,o=o+Math.imul(pt,j)|0,y=y+Math.imul(pt,q)|0,w=w+Math.imul(ft,D)|0,o=o+Math.imul(ft,vt)|0,o=o+Math.imul(nt,D)|0,y=y+Math.imul(nt,vt)|0,w=w+Math.imul(ot,Mt)|0,o=o+Math.imul(ot,xt)|0,o=o+Math.imul(dt,Mt)|0,y=y+Math.imul(dt,xt)|0,w=w+Math.imul(et,Et)|0,o=o+Math.imul(et,bt)|0,o=o+Math.imul(ct,Et)|0,y=y+Math.imul(ct,bt)|0,w=w+Math.imul(lt,St)|0,o=o+Math.imul(lt,_t)|0,o=o+Math.imul(ut,St)|0,y=y+Math.imul(ut,_t)|0,w=w+Math.imul(Z,Ct)|0,o=o+Math.imul(Z,Rt)|0,o=o+Math.imul(Y,Ct)|0,y=y+Math.imul(Y,Rt)|0,w=w+Math.imul(V,Bt)|0,o=o+Math.imul(V,At)|0,o=o+Math.imul(K,Bt)|0,y=y+Math.imul(K,At)|0,w=w+Math.imul(N,Ft)|0,o=o+Math.imul(N,Tt)|0,o=o+Math.imul(P,Ft)|0,y=y+Math.imul(P,Tt)|0;var sr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(sr>>>26)|0,sr&=67108863,w=Math.imul(i,S),o=Math.imul(i,R),o=o+Math.imul(m,S)|0,y=Math.imul(m,R),w=w+Math.imul(mt,j)|0,o=o+Math.imul(mt,q)|0,o=o+Math.imul(l,j)|0,y=y+Math.imul(l,q)|0,w=w+Math.imul(st,D)|0,o=o+Math.imul(st,vt)|0,o=o+Math.imul(pt,D)|0,y=y+Math.imul(pt,vt)|0,w=w+Math.imul(ft,Mt)|0,o=o+Math.imul(ft,xt)|0,o=o+Math.imul(nt,Mt)|0,y=y+Math.imul(nt,xt)|0,w=w+Math.imul(ot,Et)|0,o=o+Math.imul(ot,bt)|0,o=o+Math.imul(dt,Et)|0,y=y+Math.imul(dt,bt)|0,w=w+Math.imul(et,St)|0,o=o+Math.imul(et,_t)|0,o=o+Math.imul(ct,St)|0,y=y+Math.imul(ct,_t)|0,w=w+Math.imul(lt,Ct)|0,o=o+Math.imul(lt,Rt)|0,o=o+Math.imul(ut,Ct)|0,y=y+Math.imul(ut,Rt)|0,w=w+Math.imul(Z,Bt)|0,o=o+Math.imul(Z,At)|0,o=o+Math.imul(Y,Bt)|0,y=y+Math.imul(Y,At)|0,w=w+Math.imul(V,Ft)|0,o=o+Math.imul(V,Tt)|0,o=o+Math.imul(K,Ft)|0,y=y+Math.imul(K,Tt)|0,w=w+Math.imul(N,It)|0,o=o+Math.imul(N,Ot)|0,o=o+Math.imul(P,It)|0,y=y+Math.imul(P,Ot)|0;var ar=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(ar>>>26)|0,ar&=67108863,w=Math.imul(i,j),o=Math.imul(i,q),o=o+Math.imul(m,j)|0,y=Math.imul(m,q),w=w+Math.imul(mt,D)|0,o=o+Math.imul(mt,vt)|0,o=o+Math.imul(l,D)|0,y=y+Math.imul(l,vt)|0,w=w+Math.imul(st,Mt)|0,o=o+Math.imul(st,xt)|0,o=o+Math.imul(pt,Mt)|0,y=y+Math.imul(pt,xt)|0,w=w+Math.imul(ft,Et)|0,o=o+Math.imul(ft,bt)|0,o=o+Math.imul(nt,Et)|0,y=y+Math.imul(nt,bt)|0,w=w+Math.imul(ot,St)|0,o=o+Math.imul(ot,_t)|0,o=o+Math.imul(dt,St)|0,y=y+Math.imul(dt,_t)|0,w=w+Math.imul(et,Ct)|0,o=o+Math.imul(et,Rt)|0,o=o+Math.imul(ct,Ct)|0,y=y+Math.imul(ct,Rt)|0,w=w+Math.imul(lt,Bt)|0,o=o+Math.imul(lt,At)|0,o=o+Math.imul(ut,Bt)|0,y=y+Math.imul(ut,At)|0,w=w+Math.imul(Z,Ft)|0,o=o+Math.imul(Z,Tt)|0,o=o+Math.imul(Y,Ft)|0,y=y+Math.imul(Y,Tt)|0,w=w+Math.imul(V,It)|0,o=o+Math.imul(V,Ot)|0,o=o+Math.imul(K,It)|0,y=y+Math.imul(K,Ot)|0;var ur=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(ur>>>26)|0,ur&=67108863,w=Math.imul(i,D),o=Math.imul(i,vt),o=o+Math.imul(m,D)|0,y=Math.imul(m,vt),w=w+Math.imul(mt,Mt)|0,o=o+Math.imul(mt,xt)|0,o=o+Math.imul(l,Mt)|0,y=y+Math.imul(l,xt)|0,w=w+Math.imul(st,Et)|0,o=o+Math.imul(st,bt)|0,o=o+Math.imul(pt,Et)|0,y=y+Math.imul(pt,bt)|0,w=w+Math.imul(ft,St)|0,o=o+Math.imul(ft,_t)|0,o=o+Math.imul(nt,St)|0,y=y+Math.imul(nt,_t)|0,w=w+Math.imul(ot,Ct)|0,o=o+Math.imul(ot,Rt)|0,o=o+Math.imul(dt,Ct)|0,y=y+Math.imul(dt,Rt)|0,w=w+Math.imul(et,Bt)|0,o=o+Math.imul(et,At)|0,o=o+Math.imul(ct,Bt)|0,y=y+Math.imul(ct,At)|0,w=w+Math.imul(lt,Ft)|0,o=o+Math.imul(lt,Tt)|0,o=o+Math.imul(ut,Ft)|0,y=y+Math.imul(ut,Tt)|0,w=w+Math.imul(Z,It)|0,o=o+Math.imul(Z,Ot)|0,o=o+Math.imul(Y,It)|0,y=y+Math.imul(Y,Ot)|0;var fr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(fr>>>26)|0,fr&=67108863,w=Math.imul(i,Mt),o=Math.imul(i,xt),o=o+Math.imul(m,Mt)|0,y=Math.imul(m,xt),w=w+Math.imul(mt,Et)|0,o=o+Math.imul(mt,bt)|0,o=o+Math.imul(l,Et)|0,y=y+Math.imul(l,bt)|0,w=w+Math.imul(st,St)|0,o=o+Math.imul(st,_t)|0,o=o+Math.imul(pt,St)|0,y=y+Math.imul(pt,_t)|0,w=w+Math.imul(ft,Ct)|0,o=o+Math.imul(ft,Rt)|0,o=o+Math.imul(nt,Ct)|0,y=y+Math.imul(nt,Rt)|0,w=w+Math.imul(ot,Bt)|0,o=o+Math.imul(ot,At)|0,o=o+Math.imul(dt,Bt)|0,y=y+Math.imul(dt,At)|0,w=w+Math.imul(et,Ft)|0,o=o+Math.imul(et,Tt)|0,o=o+Math.imul(ct,Ft)|0,y=y+Math.imul(ct,Tt)|0,w=w+Math.imul(lt,It)|0,o=o+Math.imul(lt,Ot)|0,o=o+Math.imul(ut,It)|0,y=y+Math.imul(ut,Ot)|0;var hr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(hr>>>26)|0,hr&=67108863,w=Math.imul(i,Et),o=Math.imul(i,bt),o=o+Math.imul(m,Et)|0,y=Math.imul(m,bt),w=w+Math.imul(mt,St)|0,o=o+Math.imul(mt,_t)|0,o=o+Math.imul(l,St)|0,y=y+Math.imul(l,_t)|0,w=w+Math.imul(st,Ct)|0,o=o+Math.imul(st,Rt)|0,o=o+Math.imul(pt,Ct)|0,y=y+Math.imul(pt,Rt)|0,w=w+Math.imul(ft,Bt)|0,o=o+Math.imul(ft,At)|0,o=o+Math.imul(nt,Bt)|0,y=y+Math.imul(nt,At)|0,w=w+Math.imul(ot,Ft)|0,o=o+Math.imul(ot,Tt)|0,o=o+Math.imul(dt,Ft)|0,y=y+Math.imul(dt,Tt)|0,w=w+Math.imul(et,It)|0,o=o+Math.imul(et,Ot)|0,o=o+Math.imul(ct,It)|0,y=y+Math.imul(ct,Ot)|0;var lr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(lr>>>26)|0,lr&=67108863,w=Math.imul(i,St),o=Math.imul(i,_t),o=o+Math.imul(m,St)|0,y=Math.imul(m,_t),w=w+Math.imul(mt,Ct)|0,o=o+Math.imul(mt,Rt)|0,o=o+Math.imul(l,Ct)|0,y=y+Math.imul(l,Rt)|0,w=w+Math.imul(st,Bt)|0,o=o+Math.imul(st,At)|0,o=o+Math.imul(pt,Bt)|0,y=y+Math.imul(pt,At)|0,w=w+Math.imul(ft,Ft)|0,o=o+Math.imul(ft,Tt)|0,o=o+Math.imul(nt,Ft)|0,y=y+Math.imul(nt,Tt)|0,w=w+Math.imul(ot,It)|0,o=o+Math.imul(ot,Ot)|0,o=o+Math.imul(dt,It)|0,y=y+Math.imul(dt,Ot)|0;var cr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(cr>>>26)|0,cr&=67108863,w=Math.imul(i,Ct),o=Math.imul(i,Rt),o=o+Math.imul(m,Ct)|0,y=Math.imul(m,Rt),w=w+Math.imul(mt,Bt)|0,o=o+Math.imul(mt,At)|0,o=o+Math.imul(l,Bt)|0,y=y+Math.imul(l,At)|0,w=w+Math.imul(st,Ft)|0,o=o+Math.imul(st,Tt)|0,o=o+Math.imul(pt,Ft)|0,y=y+Math.imul(pt,Tt)|0,w=w+Math.imul(ft,It)|0,o=o+Math.imul(ft,Ot)|0,o=o+Math.imul(nt,It)|0,y=y+Math.imul(nt,Ot)|0;var dr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(dr>>>26)|0,dr&=67108863,w=Math.imul(i,Bt),o=Math.imul(i,At),o=o+Math.imul(m,Bt)|0,y=Math.imul(m,At),w=w+Math.imul(mt,Ft)|0,o=o+Math.imul(mt,Tt)|0,o=o+Math.imul(l,Ft)|0,y=y+Math.imul(l,Tt)|0,w=w+Math.imul(st,It)|0,o=o+Math.imul(st,Ot)|0,o=o+Math.imul(pt,It)|0,y=y+Math.imul(pt,Ot)|0;var pr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(pr>>>26)|0,pr&=67108863,w=Math.imul(i,Ft),o=Math.imul(i,Tt),o=o+Math.imul(m,Ft)|0,y=Math.imul(m,Tt),w=w+Math.imul(mt,It)|0,o=o+Math.imul(mt,Ot)|0,o=o+Math.imul(l,It)|0,y=y+Math.imul(l,Ot)|0;var mr=(E+w|0)+((o&8191)<<13)|0;E=(y+(o>>>13)|0)+(mr>>>26)|0,mr&=67108863,w=Math.imul(i,It),o=Math.imul(i,Ot),o=o+Math.imul(m,It)|0,y=Math.imul(m,Ot);var gr=(E+w|0)+((o&8191)<<13)|0;return E=(y+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,M[0]=Xe,M[1]=Qe,M[2]=tr,M[3]=er,M[4]=rr,M[5]=nr,M[6]=ir,M[7]=or,M[8]=sr,M[9]=ar,M[10]=ur,M[11]=fr,M[12]=hr,M[13]=lr,M[14]=cr,M[15]=dr,M[16]=pr,M[17]=mr,M[18]=gr,E!==0&&(M[19]=E,h.length++),h};Math.imul||(G=W);function X(x,e,a){a.negative=e.negative^x.negative,a.length=x.length+e.length;for(var h=0,c=0,p=0;p<a.length-1;p++){var M=c;c=0;for(var E=h&67108863,w=Math.min(p,e.length-1),o=Math.max(0,p-x.length+1);o<=w;o++){var y=p-o,O=x.words[y]|0,N=e.words[o]|0,P=O*N,tt=P&67108863;M=M+(P/67108864|0)|0,tt=tt+E|0,E=tt&67108863,M=M+(tt>>>26)|0,c+=M>>>26,M&=67108863}a.words[p]=E,h=M,M=c}return h!==0?a.words[p]=h:a.length--,a._strip()}function at(x,e,a){return X(x,e,a)}f.prototype.mulTo=function(e,a){var h,c=this.length+e.length;return this.length===10&&e.length===10?h=G(this,e,a):c<63?h=W(this,e,a):c<1024?h=X(this,e,a):h=at(this,e,a),h},f.prototype.mul=function(e){var a=new f(null);return a.words=new Array(this.length+e.length),this.mulTo(e,a)},f.prototype.mulf=function(e){var a=new f(null);return a.words=new Array(this.length+e.length),at(this,e,a)},f.prototype.imul=function(e){return this.clone().mulTo(e,this)},f.prototype.imuln=function(e){var a=e<0;a&&(e=-e),u(typeof e=="number"),u(e<67108864);for(var h=0,c=0;c<this.length;c++){var p=(this.words[c]|0)*e,M=(p&67108863)+(h&67108863);h>>=26,h+=p/67108864|0,h+=M>>>26,this.words[c]=M&67108863}return h!==0&&(this.words[c]=h,this.length++),a?this.ineg():this},f.prototype.muln=function(e){return this.clone().imuln(e)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(e){var a=L(e);if(a.length===0)return new f(1);for(var h=this,c=0;c<a.length&&a[c]===0;c++,h=h.sqr());if(++c<a.length)for(var p=h.sqr();c<a.length;c++,p=p.sqr())a[c]!==0&&(h=h.mul(p));return h},f.prototype.iushln=function(e){u(typeof e=="number"&&e>=0);var a=e%26,h=(e-a)/26,c=67108863>>>26-a<<26-a,p;if(a!==0){var M=0;for(p=0;p<this.length;p++){var E=this.words[p]&c,w=(this.words[p]|0)-E<<a;this.words[p]=w|M,M=E>>>26-a}M&&(this.words[p]=M,this.length++)}if(h!==0){for(p=this.length-1;p>=0;p--)this.words[p+h]=this.words[p];for(p=0;p<h;p++)this.words[p]=0;this.length+=h}return this._strip()},f.prototype.ishln=function(e){return u(this.negative===0),this.iushln(e)},f.prototype.iushrn=function(e,a,h){u(typeof e=="number"&&e>=0);var c;a?c=(a-a%26)/26:c=0;var p=e%26,M=Math.min((e-p)/26,this.length),E=67108863^67108863>>>p<<p,w=h;if(c-=M,c=Math.max(0,c),w){for(var o=0;o<M;o++)w.words[o]=this.words[o];w.length=M}if(M!==0)if(this.length>M)for(this.length-=M,o=0;o<this.length;o++)this.words[o]=this.words[o+M];else this.words[0]=0,this.length=1;var y=0;for(o=this.length-1;o>=0&&(y!==0||o>=c);o--){var O=this.words[o]|0;this.words[o]=y<<26-p|O>>>p,y=O&E}return w&&y!==0&&(w.words[w.length++]=y),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(e,a,h){return u(this.negative===0),this.iushrn(e,a,h)},f.prototype.shln=function(e){return this.clone().ishln(e)},f.prototype.ushln=function(e){return this.clone().iushln(e)},f.prototype.shrn=function(e){return this.clone().ishrn(e)},f.prototype.ushrn=function(e){return this.clone().iushrn(e)},f.prototype.testn=function(e){u(typeof e=="number"&&e>=0);var a=e%26,h=(e-a)/26,c=1<<a;if(this.length<=h)return!1;var p=this.words[h];return!!(p&c)},f.prototype.imaskn=function(e){u(typeof e=="number"&&e>=0);var a=e%26,h=(e-a)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=h)return this;if(a!==0&&h++,this.length=Math.min(h,this.length),a!==0){var c=67108863^67108863>>>a<<a;this.words[this.length-1]&=c}return this._strip()},f.prototype.maskn=function(e){return this.clone().imaskn(e)},f.prototype.iaddn=function(e){return u(typeof e=="number"),u(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<=e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},f.prototype._iaddn=function(e){this.words[0]+=e;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},f.prototype.isubn=function(e){if(u(typeof e=="number"),u(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this._strip()},f.prototype.addn=function(e){return this.clone().iaddn(e)},f.prototype.subn=function(e){return this.clone().isubn(e)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(e,a,h){var c=e.length+h,p;this._expand(c);var M,E=0;for(p=0;p<e.length;p++){M=(this.words[p+h]|0)+E;var w=(e.words[p]|0)*a;M-=w&67108863,E=(M>>26)-(w/67108864|0),this.words[p+h]=M&67108863}for(;p<this.length-h;p++)M=(this.words[p+h]|0)+E,E=M>>26,this.words[p+h]=M&67108863;if(E===0)return this._strip();for(u(E===-1),E=0,p=0;p<this.length;p++)M=-(this.words[p]|0)+E,E=M>>26,this.words[p]=M&67108863;return this.negative=1,this._strip()},f.prototype._wordDiv=function(e,a){var h=this.length-e.length,c=this.clone(),p=e,M=p.words[p.length-1]|0,E=this._countBits(M);h=26-E,h!==0&&(p=p.ushln(h),c.iushln(h),M=p.words[p.length-1]|0);var w=c.length-p.length,o;if(a!=="mod"){o=new f(null),o.length=w+1,o.words=new Array(o.length);for(var y=0;y<o.length;y++)o.words[y]=0}var O=c.clone()._ishlnsubmul(p,1,w);O.negative===0&&(c=O,o&&(o.words[w]=1));for(var N=w-1;N>=0;N--){var P=(c.words[p.length+N]|0)*67108864+(c.words[p.length+N-1]|0);for(P=Math.min(P/M|0,67108863),c._ishlnsubmul(p,P,N);c.negative!==0;)P--,c.negative=0,c._ishlnsubmul(p,1,N),c.isZero()||(c.negative^=1);o&&(o.words[N]=P)}return o&&o._strip(),c._strip(),a!=="div"&&h!==0&&c.iushrn(h),{div:o||null,mod:c}},f.prototype.divmod=function(e,a,h){if(u(!e.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var c,p,M;return this.negative!==0&&e.negative===0?(M=this.neg().divmod(e,a),a!=="mod"&&(c=M.div.neg()),a!=="div"&&(p=M.mod.neg(),h&&p.negative!==0&&p.iadd(e)),{div:c,mod:p}):this.negative===0&&e.negative!==0?(M=this.divmod(e.neg(),a),a!=="mod"&&(c=M.div.neg()),{div:c,mod:M.mod}):this.negative&e.negative?(M=this.neg().divmod(e.neg(),a),a!=="div"&&(p=M.mod.neg(),h&&p.negative!==0&&p.isub(e)),{div:M.div,mod:p}):e.length>this.length||this.cmp(e)<0?{div:new f(0),mod:this}:e.length===1?a==="div"?{div:this.divn(e.words[0]),mod:null}:a==="mod"?{div:null,mod:new f(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new f(this.modrn(e.words[0]))}:this._wordDiv(e,a)},f.prototype.div=function(e){return this.divmod(e,"div",!1).div},f.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},f.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},f.prototype.divRound=function(e){var a=this.divmod(e);if(a.mod.isZero())return a.div;var h=a.div.negative!==0?a.mod.isub(e):a.mod,c=e.ushrn(1),p=e.andln(1),M=h.cmp(c);return M<0||p===1&&M===0?a.div:a.div.negative!==0?a.div.isubn(1):a.div.iaddn(1)},f.prototype.modrn=function(e){var a=e<0;a&&(e=-e),u(e<=67108863);for(var h=(1<<26)%e,c=0,p=this.length-1;p>=0;p--)c=(h*c+(this.words[p]|0))%e;return a?-c:c},f.prototype.modn=function(e){return this.modrn(e)},f.prototype.idivn=function(e){var a=e<0;a&&(e=-e),u(e<=67108863);for(var h=0,c=this.length-1;c>=0;c--){var p=(this.words[c]|0)+h*67108864;this.words[c]=p/e|0,h=p%e}return this._strip(),a?this.ineg():this},f.prototype.divn=function(e){return this.clone().idivn(e)},f.prototype.egcd=function(e){u(e.negative===0),u(!e.isZero());var a=this,h=e.clone();a.negative!==0?a=a.umod(e):a=a.clone();for(var c=new f(1),p=new f(0),M=new f(0),E=new f(1),w=0;a.isEven()&&h.isEven();)a.iushrn(1),h.iushrn(1),++w;for(var o=h.clone(),y=a.clone();!a.isZero();){for(var O=0,N=1;!(a.words[0]&N)&&O<26;++O,N<<=1);if(O>0)for(a.iushrn(O);O-- >0;)(c.isOdd()||p.isOdd())&&(c.iadd(o),p.isub(y)),c.iushrn(1),p.iushrn(1);for(var P=0,tt=1;!(h.words[0]&tt)&&P<26;++P,tt<<=1);if(P>0)for(h.iushrn(P);P-- >0;)(M.isOdd()||E.isOdd())&&(M.iadd(o),E.isub(y)),M.iushrn(1),E.iushrn(1);a.cmp(h)>=0?(a.isub(h),c.isub(M),p.isub(E)):(h.isub(a),M.isub(c),E.isub(p))}return{a:M,b:E,gcd:h.iushln(w)}},f.prototype._invmp=function(e){u(e.negative===0),u(!e.isZero());var a=this,h=e.clone();a.negative!==0?a=a.umod(e):a=a.clone();for(var c=new f(1),p=new f(0),M=h.clone();a.cmpn(1)>0&&h.cmpn(1)>0;){for(var E=0,w=1;!(a.words[0]&w)&&E<26;++E,w<<=1);if(E>0)for(a.iushrn(E);E-- >0;)c.isOdd()&&c.iadd(M),c.iushrn(1);for(var o=0,y=1;!(h.words[0]&y)&&o<26;++o,y<<=1);if(o>0)for(h.iushrn(o);o-- >0;)p.isOdd()&&p.iadd(M),p.iushrn(1);a.cmp(h)>=0?(a.isub(h),c.isub(p)):(h.isub(a),p.isub(c))}var O;return a.cmpn(1)===0?O=c:O=p,O.cmpn(0)<0&&O.iadd(e),O},f.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),h=e.clone();a.negative=0,h.negative=0;for(var c=0;a.isEven()&&h.isEven();c++)a.iushrn(1),h.iushrn(1);do{for(;a.isEven();)a.iushrn(1);for(;h.isEven();)h.iushrn(1);var p=a.cmp(h);if(p<0){var M=a;a=h,h=M}else if(p===0||h.cmpn(1)===0)break;a.isub(h)}while(!0);return h.iushln(c)},f.prototype.invm=function(e){return this.egcd(e).a.umod(e)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(e){return this.words[0]&e},f.prototype.bincn=function(e){u(typeof e=="number");var a=e%26,h=(e-a)/26,c=1<<a;if(this.length<=h)return this._expand(h+1),this.words[h]|=c,this;for(var p=c,M=h;p!==0&&M<this.length;M++){var E=this.words[M]|0;E+=p,p=E>>>26,E&=67108863,this.words[M]=E}return p!==0&&(this.words[M]=p,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(e){var a=e<0;if(this.negative!==0&&!a)return-1;if(this.negative===0&&a)return 1;this._strip();var h;if(this.length>1)h=1;else{a&&(e=-e),u(e<=67108863,"Number is too big");var c=this.words[0]|0;h=c===e?0:c<e?-1:1}return this.negative!==0?-h|0:h},f.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var a=this.ucmp(e);return this.negative!==0?-a|0:a},f.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var a=0,h=this.length-1;h>=0;h--){var c=this.words[h]|0,p=e.words[h]|0;if(c!==p){c<p?a=-1:c>p&&(a=1);break}}return a},f.prototype.gtn=function(e){return this.cmpn(e)===1},f.prototype.gt=function(e){return this.cmp(e)===1},f.prototype.gten=function(e){return this.cmpn(e)>=0},f.prototype.gte=function(e){return this.cmp(e)>=0},f.prototype.ltn=function(e){return this.cmpn(e)===-1},f.prototype.lt=function(e){return this.cmp(e)===-1},f.prototype.lten=function(e){return this.cmpn(e)<=0},f.prototype.lte=function(e){return this.cmp(e)<=0},f.prototype.eqn=function(e){return this.cmpn(e)===0},f.prototype.eq=function(e){return this.cmp(e)===0},f.red=function(e){return new k(e)},f.prototype.toRed=function(e){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(e){return this.red=e,this},f.prototype.forceRed=function(e){return u(!this.red,"Already a number in reduction context"),this._forceRed(e)},f.prototype.redAdd=function(e){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},f.prototype.redIAdd=function(e){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},f.prototype.redSub=function(e){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},f.prototype.redISub=function(e){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},f.prototype.redShl=function(e){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},f.prototype.redMul=function(e){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},f.prototype.redIMul=function(e){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(e){return u(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Q={k256:null,p224:null,p192:null,p25519:null};function J(x,e){this.name=x,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}J.prototype._tmp=function(){var e=new f(null);return e.words=new Array(Math.ceil(this.n/13)),e},J.prototype.ireduce=function(e){var a=e,h;do this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),h=a.bitLength();while(h>this.n);var c=h<this.n?-1:a.ucmp(this.p);return c===0?(a.words[0]=0,a.length=1):c>0?a.isub(this.p):a.strip!==void 0?a.strip():a._strip(),a},J.prototype.split=function(e,a){e.iushrn(this.n,0,a)},J.prototype.imulK=function(e){return e.imul(this.k)};function Lt(){J.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}d(Lt,J),Lt.prototype.split=function(e,a){for(var h=4194303,c=Math.min(e.length,9),p=0;p<c;p++)a.words[p]=e.words[p];if(a.length=c,e.length<=9){e.words[0]=0,e.length=1;return}var M=e.words[9];for(a.words[a.length++]=M&h,p=10;p<e.length;p++){var E=e.words[p]|0;e.words[p-10]=(E&h)<<4|M>>>22,M=E}M>>>=22,e.words[p-10]=M,M===0&&e.length>10?e.length-=10:e.length-=9},Lt.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var a=0,h=0;h<e.length;h++){var c=e.words[h]|0;a+=c*977,e.words[h]=a&67108863,a=c*64+(a/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function ht(){J.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}d(ht,J);function Pt(){J.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}d(Pt,J);function rt(){J.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}d(rt,J),rt.prototype.imulK=function(e){for(var a=0,h=0;h<e.length;h++){var c=(e.words[h]|0)*19+a,p=c&67108863;c>>>=26,e.words[h]=p,a=c}return a!==0&&(e.words[e.length++]=a),e},f._prime=function(e){if(Q[e])return Q[e];var a;if(e==="k256")a=new Lt;else if(e==="p224")a=new ht;else if(e==="p192")a=new Pt;else if(e==="p25519")a=new rt;else throw new Error("Unknown prime "+e);return Q[e]=a,a};function k(x){if(typeof x=="string"){var e=f._prime(x);this.m=e.p,this.prime=e}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}k.prototype._verify1=function(e){u(e.negative===0,"red works only with positives"),u(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,a){u((e.negative|a.negative)===0,"red works only with positives"),u(e.red&&e.red===a.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(g(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,a){this._verify2(e,a);var h=e.add(a);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},k.prototype.iadd=function(e,a){this._verify2(e,a);var h=e.iadd(a);return h.cmp(this.m)>=0&&h.isub(this.m),h},k.prototype.sub=function(e,a){this._verify2(e,a);var h=e.sub(a);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},k.prototype.isub=function(e,a){this._verify2(e,a);var h=e.isub(a);return h.cmpn(0)<0&&h.iadd(this.m),h},k.prototype.shl=function(e,a){return this._verify1(e),this.imod(e.ushln(a))},k.prototype.imul=function(e,a){return this._verify2(e,a),this.imod(e.imul(a))},k.prototype.mul=function(e,a){return this._verify2(e,a),this.imod(e.mul(a))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var a=this.m.andln(3);if(u(a%2===1),a===3){var h=this.m.add(new f(1)).iushrn(2);return this.pow(e,h)}for(var c=this.m.subn(1),p=0;!c.isZero()&&c.andln(1)===0;)p++,c.iushrn(1);u(!c.isZero());var M=new f(1).toRed(this),E=M.redNeg(),w=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new f(2*o*o).toRed(this);this.pow(o,w).cmp(E)!==0;)o.redIAdd(E);for(var y=this.pow(o,c),O=this.pow(e,c.addn(1).iushrn(1)),N=this.pow(e,c),P=p;N.cmp(M)!==0;){for(var tt=N,V=0;tt.cmp(M)!==0;V++)tt=tt.redSqr();u(V<P);var K=this.pow(y,new f(1).iushln(P-V-1));O=O.redMul(K),y=K.redSqr(),N=N.redMul(y),P=V}return O},k.prototype.invm=function(e){var a=e._invmp(this.m);return a.negative!==0?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},k.prototype.pow=function(e,a){if(a.isZero())return new f(1).toRed(this);if(a.cmpn(1)===0)return e.clone();var h=4,c=new Array(1<<h);c[0]=new f(1).toRed(this),c[1]=e;for(var p=2;p<c.length;p++)c[p]=this.mul(c[p-1],e);var M=c[0],E=0,w=0,o=a.bitLength()%26;for(o===0&&(o=26),p=a.length-1;p>=0;p--){for(var y=a.words[p],O=o-1;O>=0;O--){var N=y>>O&1;if(M!==c[0]&&(M=this.sqr(M)),N===0&&E===0){w=0;continue}E<<=1,E|=N,w++,!(w!==h&&(p!==0||O!==0))&&(M=this.mul(M,c[E]),w=0,E=0)}o=26}return M},k.prototype.convertTo=function(e){var a=e.umod(this.m);return a===e?a.clone():a},k.prototype.convertFrom=function(e){var a=e.clone();return a.red=null,a},f.mont=function(e){return new kt(e)};function kt(x){k.call(this,x),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)}d(kt,k),kt.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},kt.prototype.convertFrom=function(e){var a=this.imod(e.mul(this.rinv));return a.red=null,a},kt.prototype.imul=function(e,a){if(e.isZero()||a.isZero())return e.words[0]=0,e.length=1,e;var h=e.imul(a),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=h.isub(c).iushrn(this.shift),M=p;return p.cmp(this.m)>=0?M=p.isub(this.m):p.cmpn(0)<0&&(M=p.iadd(this.m)),M._forceRed(this)},kt.prototype.mul=function(e,a){if(e.isZero()||a.isZero())return new f(0)._forceRed(this);var h=e.mul(a),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=h.isub(c).iushrn(this.shift),M=p;return p.cmp(this.m)>=0?M=p.isub(this.m):p.cmpn(0)<0&&(M=p.iadd(this.m)),M._forceRed(this)},kt.prototype.invm=function(e){var a=this.imod(e._invmp(this.m).mul(this.r2));return a._forceRed(this)}})(t,mn)})(qr);var Na=qr.exports;function Nn(t,r){return function(){return t.apply(r,arguments)}}const{toString:Io}=Object.prototype,{getPrototypeOf:jr}=Object,Je=(t=>r=>{const s=Io.call(r);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Jt=t=>(t=t.toLowerCase(),r=>Je(r)===t),Ze=t=>r=>typeof r===t,{isArray:ge}=Array,Me=Ze("undefined");function Oo(t){return t!==null&&!Me(t)&&t.constructor!==null&&!Me(t.constructor)&&jt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Un=Jt("ArrayBuffer");function Lo(t){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&Un(t.buffer),r}const No=Ze("string"),jt=Ze("function"),$n=Ze("number"),Ve=t=>t!==null&&typeof t=="object",Uo=t=>t===!0||t===!1,Fe=t=>{if(Je(t)!=="object")return!1;const r=jr(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},$o=Jt("Date"),Po=Jt("File"),ko=Jt("Blob"),Do=Jt("FileList"),qo=t=>Ve(t)&&jt(t.pipe),jo=t=>{let r;return t&&(typeof FormData=="function"&&t instanceof FormData||jt(t.append)&&((r=Je(t))==="formdata"||r==="object"&&jt(t.toString)&&t.toString()==="[object FormData]"))},Ho=Jt("URLSearchParams"),[zo,Wo,Jo,Zo]=["ReadableStream","Request","Response","Headers"].map(Jt),Vo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ee(t,r,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let u,d;if(typeof t!="object"&&(t=[t]),ge(t))for(u=0,d=t.length;u<d;u++)r.call(null,t[u],u,t);else{const f=s?Object.getOwnPropertyNames(t):Object.keys(t),v=f.length;let _;for(u=0;u<v;u++)_=f[u],r.call(null,t[_],_,t)}}function Pn(t,r){r=r.toLowerCase();const s=Object.keys(t);let u=s.length,d;for(;u-- >0;)if(d=s[u],r===d.toLowerCase())return d;return null}const re=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:fi,kn=t=>!Me(t)&&t!==re;function Br(){const{caseless:t}=kn(this)&&this||{},r={},s=(u,d)=>{const f=t&&Pn(r,d)||d;Fe(r[f])&&Fe(u)?r[f]=Br(r[f],u):Fe(u)?r[f]=Br({},u):ge(u)?r[f]=u.slice():r[f]=u};for(let u=0,d=arguments.length;u<d;u++)arguments[u]&&Ee(arguments[u],s);return r}const Ko=(t,r,s,{allOwnKeys:u}={})=>(Ee(r,(d,f)=>{s&&jt(d)?t[f]=Nn(d,s):t[f]=d},{allOwnKeys:u}),t),Go=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Yo=(t,r,s,u)=>{t.prototype=Object.create(r.prototype,u),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:r.prototype}),s&&Object.assign(t.prototype,s)},Xo=(t,r,s,u)=>{let d,f,v;const _={};if(r=r||{},t==null)return r;do{for(d=Object.getOwnPropertyNames(t),f=d.length;f-- >0;)v=d[f],(!u||u(v,t,r))&&!_[v]&&(r[v]=t[v],_[v]=!0);t=s!==!1&&jr(t)}while(t&&(!s||s(t,r))&&t!==Object.prototype);return r},Qo=(t,r,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=r.length;const u=t.indexOf(r,s);return u!==-1&&u===s},ts=t=>{if(!t)return null;if(ge(t))return t;let r=t.length;if(!$n(r))return null;const s=new Array(r);for(;r-- >0;)s[r]=t[r];return s},es=(t=>r=>t&&r instanceof t)(typeof Uint8Array<"u"&&jr(Uint8Array)),rs=(t,r)=>{const u=(t&&t[Symbol.iterator]).call(t);let d;for(;(d=u.next())&&!d.done;){const f=d.value;r.call(t,f[0],f[1])}},ns=(t,r)=>{let s;const u=[];for(;(s=t.exec(r))!==null;)u.push(s);return u},is=Jt("HTMLFormElement"),os=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,u,d){return u.toUpperCase()+d}),tn=(({hasOwnProperty:t})=>(r,s)=>t.call(r,s))(Object.prototype),ss=Jt("RegExp"),Dn=(t,r)=>{const s=Object.getOwnPropertyDescriptors(t),u={};Ee(s,(d,f)=>{let v;(v=r(d,f,t))!==!1&&(u[f]=v||d)}),Object.defineProperties(t,u)},as=t=>{Dn(t,(r,s)=>{if(jt(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const u=t[s];if(jt(u)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},us=(t,r)=>{const s={},u=d=>{d.forEach(f=>{s[f]=!0})};return ge(t)?u(t):u(String(t).split(r)),s},fs=()=>{},hs=(t,r)=>t!=null&&Number.isFinite(t=+t)?t:r,vr="abcdefghijklmnopqrstuvwxyz",en="0123456789",qn={DIGIT:en,ALPHA:vr,ALPHA_DIGIT:vr+vr.toUpperCase()+en},ls=(t=16,r=qn.ALPHA_DIGIT)=>{let s="";const{length:u}=r;for(;t--;)s+=r[Math.random()*u|0];return s};function cs(t){return!!(t&&jt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ds=t=>{const r=new Array(10),s=(u,d)=>{if(Ve(u)){if(r.indexOf(u)>=0)return;if(!("toJSON"in u)){r[d]=u;const f=ge(u)?[]:{};return Ee(u,(v,_)=>{const F=s(v,d+1);!Me(F)&&(f[_]=F)}),r[d]=void 0,f}}return u};return s(t,0)},ps=Jt("AsyncFunction"),ms=t=>t&&(Ve(t)||jt(t))&&jt(t.then)&&jt(t.catch),jn=((t,r)=>t?setImmediate:r?((s,u)=>(re.addEventListener("message",({source:d,data:f})=>{d===re&&f===s&&u.length&&u.shift()()},!1),d=>{u.push(d),re.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",jt(re.postMessage)),gs=typeof queueMicrotask<"u"?queueMicrotask.bind(re):typeof Ue<"u"&&Ue.nextTick||jn,A={isArray:ge,isArrayBuffer:Un,isBuffer:Oo,isFormData:jo,isArrayBufferView:Lo,isString:No,isNumber:$n,isBoolean:Uo,isObject:Ve,isPlainObject:Fe,isReadableStream:zo,isRequest:Wo,isResponse:Jo,isHeaders:Zo,isUndefined:Me,isDate:$o,isFile:Po,isBlob:ko,isRegExp:ss,isFunction:jt,isStream:qo,isURLSearchParams:Ho,isTypedArray:es,isFileList:Do,forEach:Ee,merge:Br,extend:Ko,trim:Vo,stripBOM:Go,inherits:Yo,toFlatObject:Xo,kindOf:Je,kindOfTest:Jt,endsWith:Qo,toArray:ts,forEachEntry:rs,matchAll:ns,isHTMLForm:is,hasOwnProperty:tn,hasOwnProp:tn,reduceDescriptors:Dn,freezeMethods:as,toObjectSet:us,toCamelCase:os,noop:fs,toFiniteNumber:hs,findKey:Pn,global:re,isContextDefined:kn,ALPHABET:qn,generateString:ls,isSpecCompliantForm:cs,toJSONObject:ds,isAsyncFn:ps,isThenable:ms,setImmediate:jn,asap:gs};function H(t,r,s,u,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",r&&(this.code=r),s&&(this.config=s),u&&(this.request=u),d&&(this.response=d,this.status=d.status?d.status:null)}A.inherits(H,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 Hn=H.prototype,zn={};["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=>{zn[t]={value:t}});Object.defineProperties(H,zn);Object.defineProperty(Hn,"isAxiosError",{value:!0});H.from=(t,r,s,u,d,f)=>{const v=Object.create(Hn);return A.toFlatObject(t,v,function(F){return F!==Error.prototype},_=>_!=="isAxiosError"),H.call(v,t.message,r,s,u,d),v.cause=t,v.name=t.name,f&&Object.assign(v,f),v};const ws=null;function Ar(t){return A.isPlainObject(t)||A.isArray(t)}function Wn(t){return A.endsWith(t,"[]")?t.slice(0,-2):t}function rn(t,r,s){return t?t.concat(r).map(function(d,f){return d=Wn(d),!s&&f?"["+d+"]":d}).join(s?".":""):r}function ys(t){return A.isArray(t)&&!t.some(Ar)}const vs=A.toFlatObject(A,{},null,function(r){return/^is[A-Z]/.test(r)});function Ke(t,r,s){if(!A.isObject(t))throw new TypeError("target must be an object");r=r||new FormData,s=A.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(U,L){return!A.isUndefined(L[U])});const u=s.metaTokens,d=s.visitor||g,f=s.dots,v=s.indexes,F=(s.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(r);if(!A.isFunction(d))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 H("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(I)||A.isTypedArray(I)?F&&typeof Blob=="function"?new Blob([I]):Ln.from(I):I}function g(I,U,L){let W=I;if(I&&!L&&typeof I=="object"){if(A.endsWith(U,"{}"))U=u?U:U.slice(0,-2),I=JSON.stringify(I);else if(A.isArray(I)&&ys(I)||(A.isFileList(I)||A.endsWith(U,"[]"))&&(W=A.toArray(I)))return U=Wn(U),W.forEach(function(X,at){!(A.isUndefined(X)||X===null)&&r.append(v===!0?rn([U],at,f):v===null?U:U+"[]",C(X))}),!1}return Ar(I)?!0:(r.append(rn(L,U,f),C(I)),!1)}const B=[],T=Object.assign(vs,{defaultVisitor:g,convertValue:C,isVisitable:Ar});function $(I,U){if(!A.isUndefined(I)){if(B.indexOf(I)!==-1)throw Error("Circular reference detected in "+U.join("."));B.push(I),A.forEach(I,function(W,G){(!(A.isUndefined(W)||W===null)&&d.call(r,W,A.isString(G)?G.trim():G,U,T))===!0&&$(W,U?U.concat(G):[G])}),B.pop()}}if(!A.isObject(t))throw new TypeError("data must be an object");return $(t),r}function nn(t){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(u){return r[u]})}function Hr(t,r){this._pairs=[],t&&Ke(t,this,r)}const Jn=Hr.prototype;Jn.append=function(r,s){this._pairs.push([r,s])};Jn.toString=function(r){const s=r?function(u){return r.call(this,u,nn)}:nn;return this._pairs.map(function(d){return s(d[0])+"="+s(d[1])},"").join("&")};function Ms(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zn(t,r,s){if(!r)return t;const u=s&&s.encode||Ms;A.isFunction(s)&&(s={serialize:s});const d=s&&s.serialize;let f;if(d?f=d(r,s):f=A.isURLSearchParams(r)?r.toString():new Hr(r,s).toString(u),f){const v=t.indexOf("#");v!==-1&&(t=t.slice(0,v)),t+=(t.indexOf("?")===-1?"?":"&")+f}return t}class on{constructor(){this.handlers=[]}use(r,s,u){return this.handlers.push({fulfilled:r,rejected:s,synchronous:u?u.synchronous:!1,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){A.forEach(this.handlers,function(u){u!==null&&r(u)})}}const Vn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xs=typeof URLSearchParams<"u"?URLSearchParams:Hr,Es=typeof FormData<"u"?FormData:null,bs=typeof Blob<"u"?Blob:null,Ss={isBrowser:!0,classes:{URLSearchParams:xs,FormData:Es,Blob:bs},protocols:["http","https","file","blob","url","data"]},zr=typeof window<"u"&&typeof document<"u",Fr=typeof navigator=="object"&&navigator||void 0,_s=zr&&(!Fr||["ReactNative","NativeScript","NS"].indexOf(Fr.product)<0),Cs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rs=zr&&window.location.href||"http://localhost",Bs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zr,hasStandardBrowserEnv:_s,hasStandardBrowserWebWorkerEnv:Cs,navigator:Fr,origin:Rs},Symbol.toStringTag,{value:"Module"})),$t={...Bs,...Ss};function As(t,r){return Ke(t,new $t.classes.URLSearchParams,Object.assign({visitor:function(s,u,d,f){return $t.isNode&&A.isBuffer(s)?(this.append(u,s.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},r))}function Fs(t){return A.matchAll(/\w+|\[(\w*)]/g,t).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Ts(t){const r={},s=Object.keys(t);let u;const d=s.length;let f;for(u=0;u<d;u++)f=s[u],r[f]=t[f];return r}function Kn(t){function r(s,u,d,f){let v=s[f++];if(v==="__proto__")return!0;const _=Number.isFinite(+v),F=f>=s.length;return v=!v&&A.isArray(d)?d.length:v,F?(A.hasOwnProp(d,v)?d[v]=[d[v],u]:d[v]=u,!_):((!d[v]||!A.isObject(d[v]))&&(d[v]=[]),r(s,u,d[v],f)&&A.isArray(d[v])&&(d[v]=Ts(d[v])),!_)}if(A.isFormData(t)&&A.isFunction(t.entries)){const s={};return A.forEachEntry(t,(u,d)=>{r(Fs(u),d,s,0)}),s}return null}function Is(t,r,s){if(A.isString(t))try{return(r||JSON.parse)(t),A.trim(t)}catch(u){if(u.name!=="SyntaxError")throw u}return(s||JSON.stringify)(t)}const be={transitional:Vn,adapter:["xhr","http","fetch"],transformRequest:[function(r,s){const u=s.getContentType()||"",d=u.indexOf("application/json")>-1,f=A.isObject(r);if(f&&A.isHTMLForm(r)&&(r=new FormData(r)),A.isFormData(r))return d?JSON.stringify(Kn(r)):r;if(A.isArrayBuffer(r)||A.isBuffer(r)||A.isStream(r)||A.isFile(r)||A.isBlob(r)||A.isReadableStream(r))return r;if(A.isArrayBufferView(r))return r.buffer;if(A.isURLSearchParams(r))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let _;if(f){if(u.indexOf("application/x-www-form-urlencoded")>-1)return As(r,this.formSerializer).toString();if((_=A.isFileList(r))||u.indexOf("multipart/form-data")>-1){const F=this.env&&this.env.FormData;return Ke(_?{"files[]":r}:r,F&&new F,this.formSerializer)}}return f||d?(s.setContentType("application/json",!1),Is(r)):r}],transformResponse:[function(r){const s=this.transitional||be.transitional,u=s&&s.forcedJSONParsing,d=this.responseType==="json";if(A.isResponse(r)||A.isReadableStream(r))return r;if(r&&A.isString(r)&&(u&&!this.responseType||d)){const v=!(s&&s.silentJSONParsing)&&d;try{return JSON.parse(r)}catch(_){if(v)throw _.name==="SyntaxError"?H.from(_,H.ERR_BAD_RESPONSE,this,null,this.response):_}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$t.classes.FormData,Blob:$t.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],t=>{be.headers[t]={}});const Os=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"]),Ls=t=>{const r={};let s,u,d;return t&&t.split(`
|
|
7
|
-
`).forEach(function(v){d=v.indexOf(":"),s=v.substring(0,d).trim().toLowerCase(),u=v.substring(d+1).trim(),!(!s||r[s]&&Os[s])&&(s==="set-cookie"?r[s]?r[s].push(u):r[s]=[u]:r[s]=r[s]?r[s]+", "+u:u)}),r},sn=Symbol("internals");function ye(t){return t&&String(t).trim().toLowerCase()}function Te(t){return t===!1||t==null?t:A.isArray(t)?t.map(Te):String(t)}function Ns(t){const r=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let u;for(;u=s.exec(t);)r[u[1]]=u[2];return r}const Us=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Mr(t,r,s,u,d){if(A.isFunction(u))return u.call(this,r,s);if(d&&(r=s),!!A.isString(r)){if(A.isString(u))return r.indexOf(u)!==-1;if(A.isRegExp(u))return u.test(r)}}function $s(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,s,u)=>s.toUpperCase()+u)}function Ps(t,r){const s=A.toCamelCase(" "+r);["get","set","has"].forEach(u=>{Object.defineProperty(t,u+s,{value:function(d,f,v){return this[u].call(this,r,d,f,v)},configurable:!0})})}let Dt=class{constructor(r){r&&this.set(r)}set(r,s,u){const d=this;function f(_,F,C){const g=ye(F);if(!g)throw new Error("header name must be a non-empty string");const B=A.findKey(d,g);(!B||d[B]===void 0||C===!0||C===void 0&&d[B]!==!1)&&(d[B||F]=Te(_))}const v=(_,F)=>A.forEach(_,(C,g)=>f(C,g,F));if(A.isPlainObject(r)||r instanceof this.constructor)v(r,s);else if(A.isString(r)&&(r=r.trim())&&!Us(r))v(Ls(r),s);else if(A.isHeaders(r))for(const[_,F]of r.entries())f(F,_,u);else r!=null&&f(s,r,u);return this}get(r,s){if(r=ye(r),r){const u=A.findKey(this,r);if(u){const d=this[u];if(!s)return d;if(s===!0)return Ns(d);if(A.isFunction(s))return s.call(this,d,u);if(A.isRegExp(s))return s.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,s){if(r=ye(r),r){const u=A.findKey(this,r);return!!(u&&this[u]!==void 0&&(!s||Mr(this,this[u],u,s)))}return!1}delete(r,s){const u=this;let d=!1;function f(v){if(v=ye(v),v){const _=A.findKey(u,v);_&&(!s||Mr(u,u[_],_,s))&&(delete u[_],d=!0)}}return A.isArray(r)?r.forEach(f):f(r),d}clear(r){const s=Object.keys(this);let u=s.length,d=!1;for(;u--;){const f=s[u];(!r||Mr(this,this[f],f,r,!0))&&(delete this[f],d=!0)}return d}normalize(r){const s=this,u={};return A.forEach(this,(d,f)=>{const v=A.findKey(u,f);if(v){s[v]=Te(d),delete s[f];return}const _=r?$s(f):String(f).trim();_!==f&&delete s[f],s[_]=Te(d),u[_]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const s=Object.create(null);return A.forEach(this,(u,d)=>{u!=null&&u!==!1&&(s[d]=r&&A.isArray(u)?u.join(", "):u)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,s])=>r+": "+s).join(`
|
|
8
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...s){const u=new this(r);return s.forEach(d=>u.set(d)),u}static accessor(r){const u=(this[sn]=this[sn]={accessors:{}}).accessors,d=this.prototype;function f(v){const _=ye(v);u[_]||(Ps(d,v),u[_]=!0)}return A.isArray(r)?r.forEach(f):f(r),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(Dt.prototype,({value:t},r)=>{let s=r[0].toUpperCase()+r.slice(1);return{get:()=>t,set(u){this[s]=u}}});A.freezeMethods(Dt);function xr(t,r){const s=this||be,u=r||s,d=Dt.from(u.headers);let f=u.data;return A.forEach(t,function(_){f=_.call(s,f,d.normalize(),r?r.status:void 0)}),d.normalize(),f}function Gn(t){return!!(t&&t.__CANCEL__)}function we(t,r,s){H.call(this,t??"canceled",H.ERR_CANCELED,r,s),this.name="CanceledError"}A.inherits(we,H,{__CANCEL__:!0});function Yn(t,r,s){const u=s.config.validateStatus;!s.status||!u||u(s.status)?t(s):r(new H("Request failed with status code "+s.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function ks(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function Ds(t,r){t=t||10;const s=new Array(t),u=new Array(t);let d=0,f=0,v;return r=r!==void 0?r:1e3,function(F){const C=Date.now(),g=u[f];v||(v=C),s[d]=F,u[d]=C;let B=f,T=0;for(;B!==d;)T+=s[B++],B=B%t;if(d=(d+1)%t,d===f&&(f=(f+1)%t),C-v<r)return;const $=g&&C-g;return $?Math.round(T*1e3/$):void 0}}function qs(t,r){let s=0,u=1e3/r,d,f;const v=(C,g=Date.now())=>{s=g,d=null,f&&(clearTimeout(f),f=null),t.apply(null,C)};return[(...C)=>{const g=Date.now(),B=g-s;B>=u?v(C,g):(d=C,f||(f=setTimeout(()=>{f=null,v(d)},u-B)))},()=>d&&v(d)]}const $e=(t,r,s=3)=>{let u=0;const d=Ds(50,250);return qs(f=>{const v=f.loaded,_=f.lengthComputable?f.total:void 0,F=v-u,C=d(F),g=v<=_;u=v;const B={loaded:v,total:_,progress:_?v/_:void 0,bytes:F,rate:C||void 0,estimated:C&&_&&g?(_-v)/C:void 0,event:f,lengthComputable:_!=null,[r?"download":"upload"]:!0};t(B)},s)},an=(t,r)=>{const s=t!=null;return[u=>r[0]({lengthComputable:s,total:t,loaded:u}),r[1]]},un=t=>(...r)=>A.asap(()=>t(...r)),js=$t.hasStandardBrowserEnv?((t,r)=>s=>(s=new URL(s,$t.origin),t.protocol===s.protocol&&t.host===s.host&&(r||t.port===s.port)))(new URL($t.origin),$t.navigator&&/(msie|trident)/i.test($t.navigator.userAgent)):()=>!0,Hs=$t.hasStandardBrowserEnv?{write(t,r,s,u,d,f){const v=[t+"="+encodeURIComponent(r)];A.isNumber(s)&&v.push("expires="+new Date(s).toGMTString()),A.isString(u)&&v.push("path="+u),A.isString(d)&&v.push("domain="+d),f===!0&&v.push("secure"),document.cookie=v.join("; ")},read(t){const r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zs(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ws(t,r){return r?t.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):t}function Xn(t,r){return t&&!zs(r)?Ws(t,r):r}const fn=t=>t instanceof Dt?{...t}:t;function oe(t,r){r=r||{};const s={};function u(C,g,B,T){return A.isPlainObject(C)&&A.isPlainObject(g)?A.merge.call({caseless:T},C,g):A.isPlainObject(g)?A.merge({},g):A.isArray(g)?g.slice():g}function d(C,g,B,T){if(A.isUndefined(g)){if(!A.isUndefined(C))return u(void 0,C,B,T)}else return u(C,g,B,T)}function f(C,g){if(!A.isUndefined(g))return u(void 0,g)}function v(C,g){if(A.isUndefined(g)){if(!A.isUndefined(C))return u(void 0,C)}else return u(void 0,g)}function _(C,g,B){if(B in r)return u(C,g);if(B in t)return u(void 0,C)}const F={url:f,method:f,data:f,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:_,headers:(C,g,B)=>d(fn(C),fn(g),B,!0)};return A.forEach(Object.keys(Object.assign({},t,r)),function(g){const B=F[g]||d,T=B(t[g],r[g],g);A.isUndefined(T)&&B!==_||(s[g]=T)}),s}const Qn=t=>{const r=oe({},t);let{data:s,withXSRFToken:u,xsrfHeaderName:d,xsrfCookieName:f,headers:v,auth:_}=r;r.headers=v=Dt.from(v),r.url=Zn(Xn(r.baseURL,r.url),t.params,t.paramsSerializer),_&&v.set("Authorization","Basic "+btoa((_.username||"")+":"+(_.password?unescape(encodeURIComponent(_.password)):"")));let F;if(A.isFormData(s)){if($t.hasStandardBrowserEnv||$t.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((F=v.getContentType())!==!1){const[C,...g]=F?F.split(";").map(B=>B.trim()).filter(Boolean):[];v.setContentType([C||"multipart/form-data",...g].join("; "))}}if($t.hasStandardBrowserEnv&&(u&&A.isFunction(u)&&(u=u(r)),u||u!==!1&&js(r.url))){const C=d&&f&&Hs.read(f);C&&v.set(d,C)}return r},Js=typeof XMLHttpRequest<"u",Zs=Js&&function(t){return new Promise(function(s,u){const d=Qn(t);let f=d.data;const v=Dt.from(d.headers).normalize();let{responseType:_,onUploadProgress:F,onDownloadProgress:C}=d,g,B,T,$,I;function U(){$&&$(),I&&I(),d.cancelToken&&d.cancelToken.unsubscribe(g),d.signal&&d.signal.removeEventListener("abort",g)}let L=new XMLHttpRequest;L.open(d.method.toUpperCase(),d.url,!0),L.timeout=d.timeout;function W(){if(!L)return;const X=Dt.from("getAllResponseHeaders"in L&&L.getAllResponseHeaders()),Q={data:!_||_==="text"||_==="json"?L.responseText:L.response,status:L.status,statusText:L.statusText,headers:X,config:t,request:L};Yn(function(Lt){s(Lt),U()},function(Lt){u(Lt),U()},Q),L=null}"onloadend"in L?L.onloadend=W:L.onreadystatechange=function(){!L||L.readyState!==4||L.status===0&&!(L.responseURL&&L.responseURL.indexOf("file:")===0)||setTimeout(W)},L.onabort=function(){L&&(u(new H("Request aborted",H.ECONNABORTED,t,L)),L=null)},L.onerror=function(){u(new H("Network Error",H.ERR_NETWORK,t,L)),L=null},L.ontimeout=function(){let at=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded";const Q=d.transitional||Vn;d.timeoutErrorMessage&&(at=d.timeoutErrorMessage),u(new H(at,Q.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,L)),L=null},f===void 0&&v.setContentType(null),"setRequestHeader"in L&&A.forEach(v.toJSON(),function(at,Q){L.setRequestHeader(Q,at)}),A.isUndefined(d.withCredentials)||(L.withCredentials=!!d.withCredentials),_&&_!=="json"&&(L.responseType=d.responseType),C&&([T,I]=$e(C,!0),L.addEventListener("progress",T)),F&&L.upload&&([B,$]=$e(F),L.upload.addEventListener("progress",B),L.upload.addEventListener("loadend",$)),(d.cancelToken||d.signal)&&(g=X=>{L&&(u(!X||X.type?new we(null,t,L):X),L.abort(),L=null)},d.cancelToken&&d.cancelToken.subscribe(g),d.signal&&(d.signal.aborted?g():d.signal.addEventListener("abort",g)));const G=ks(d.url);if(G&&$t.protocols.indexOf(G)===-1){u(new H("Unsupported protocol "+G+":",H.ERR_BAD_REQUEST,t));return}L.send(f||null)})},Vs=(t,r)=>{const{length:s}=t=t?t.filter(Boolean):[];if(r||s){let u=new AbortController,d;const f=function(C){if(!d){d=!0,_();const g=C instanceof Error?C:this.reason;u.abort(g instanceof H?g:new we(g instanceof Error?g.message:g))}};let v=r&&setTimeout(()=>{v=null,f(new H(`timeout ${r} of ms exceeded`,H.ETIMEDOUT))},r);const _=()=>{t&&(v&&clearTimeout(v),v=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}=u;return F.unsubscribe=()=>A.asap(_),F}},Ks=function*(t,r){let s=t.byteLength;if(!r||s<r){yield t;return}let u=0,d;for(;u<s;)d=u+r,yield t.slice(u,d),u=d},Gs=async function*(t,r){for await(const s of Ys(t))yield*Ks(s,r)},Ys=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const r=t.getReader();try{for(;;){const{done:s,value:u}=await r.read();if(s)break;yield u}}finally{await r.cancel()}},hn=(t,r,s,u)=>{const d=Gs(t,r);let f=0,v,_=F=>{v||(v=!0,u&&u(F))};return new ReadableStream({async pull(F){try{const{done:C,value:g}=await d.next();if(C){_(),F.close();return}let B=g.byteLength;if(s){let T=f+=B;s(T)}F.enqueue(new Uint8Array(g))}catch(C){throw _(C),C}},cancel(F){return _(F),d.return()}},{highWaterMark:2})},Ge=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ti=Ge&&typeof ReadableStream=="function",Xs=Ge&&(typeof TextEncoder=="function"?(t=>r=>t.encode(r))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ei=(t,...r)=>{try{return!!t(...r)}catch{return!1}},Qs=ti&&ei(()=>{let t=!1;const r=new Request($t.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!r}),ln=64*1024,Tr=ti&&ei(()=>A.isReadableStream(new Response("").body)),Pe={stream:Tr&&(t=>t.body)};Ge&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!Pe[r]&&(Pe[r]=A.isFunction(t[r])?s=>s[r]():(s,u)=>{throw new H(`Response type '${r}' is not supported`,H.ERR_NOT_SUPPORT,u)})})})(new Response);const ta=async t=>{if(t==null)return 0;if(A.isBlob(t))return t.size;if(A.isSpecCompliantForm(t))return(await new Request($t.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 Xs(t)).byteLength},ea=async(t,r)=>{const s=A.toFiniteNumber(t.getContentLength());return s??ta(r)},ra=Ge&&(async t=>{let{url:r,method:s,data:u,signal:d,cancelToken:f,timeout:v,onDownloadProgress:_,onUploadProgress:F,responseType:C,headers:g,withCredentials:B="same-origin",fetchOptions:T}=Qn(t);C=C?(C+"").toLowerCase():"text";let $=Vs([d,f&&f.toAbortSignal()],v),I;const U=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let L;try{if(F&&Qs&&s!=="get"&&s!=="head"&&(L=await ea(g,u))!==0){let Q=new Request(r,{method:"POST",body:u,duplex:"half"}),J;if(A.isFormData(u)&&(J=Q.headers.get("content-type"))&&g.setContentType(J),Q.body){const[Lt,ht]=an(L,$e(un(F)));u=hn(Q.body,ln,Lt,ht)}}A.isString(B)||(B=B?"include":"omit");const W="credentials"in Request.prototype;I=new Request(r,{...T,signal:$,method:s.toUpperCase(),headers:g.normalize().toJSON(),body:u,duplex:"half",credentials:W?B:void 0});let G=await fetch(I);const X=Tr&&(C==="stream"||C==="response");if(Tr&&(_||X&&U)){const Q={};["status","statusText","headers"].forEach(Pt=>{Q[Pt]=G[Pt]});const J=A.toFiniteNumber(G.headers.get("content-length")),[Lt,ht]=_&&an(J,$e(un(_),!0))||[];G=new Response(hn(G.body,ln,Lt,()=>{ht&&ht(),U&&U()}),Q)}C=C||"text";let at=await Pe[A.findKey(Pe,C)||"text"](G,t);return!X&&U&&U(),await new Promise((Q,J)=>{Yn(Q,J,{data:at,headers:Dt.from(G.headers),status:G.status,statusText:G.statusText,config:t,request:I})})}catch(W){throw U&&U(),W&&W.name==="TypeError"&&/fetch/i.test(W.message)?Object.assign(new H("Network Error",H.ERR_NETWORK,t,I),{cause:W.cause||W}):H.from(W,W&&W.code,t,I)}}),Ir={http:ws,xhr:Zs,fetch:ra};A.forEach(Ir,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const cn=t=>`- ${t}`,na=t=>A.isFunction(t)||t===null||t===!1,ri={getAdapter:t=>{t=A.isArray(t)?t:[t];const{length:r}=t;let s,u;const d={};for(let f=0;f<r;f++){s=t[f];let v;if(u=s,!na(s)&&(u=Ir[(v=String(s)).toLowerCase()],u===void 0))throw new H(`Unknown adapter '${v}'`);if(u)break;d[v||"#"+f]=u}if(!u){const f=Object.entries(d).map(([_,F])=>`adapter ${_} `+(F===!1?"is not supported by the environment":"is not available in the build"));let v=r?f.length>1?`since :
|
|
9
|
-
`+f.map(cn).join(`
|
|
10
|
-
`):" "+cn(f[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return u},adapters:Ir};function Er(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new we(null,t)}function dn(t){return Er(t),t.headers=Dt.from(t.headers),t.data=xr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ri.getAdapter(t.adapter||be.adapter)(t).then(function(u){return Er(t),u.data=xr.call(t,t.transformResponse,u),u.headers=Dt.from(u.headers),u},function(u){return Gn(u)||(Er(t),u&&u.response&&(u.response.data=xr.call(t,t.transformResponse,u.response),u.response.headers=Dt.from(u.response.headers))),Promise.reject(u)})}const ni="1.7.9",Ye={};["object","boolean","number","function","string","symbol"].forEach((t,r)=>{Ye[t]=function(u){return typeof u===t||"a"+(r<1?"n ":" ")+t}});const pn={};Ye.transitional=function(r,s,u){function d(f,v){return"[Axios v"+ni+"] Transitional option '"+f+"'"+v+(u?". "+u:"")}return(f,v,_)=>{if(r===!1)throw new H(d(v," has been removed"+(s?" in "+s:"")),H.ERR_DEPRECATED);return s&&!pn[v]&&(pn[v]=!0,console.warn(d(v," has been deprecated since v"+s+" and will be removed in the near future"))),r?r(f,v,_):!0}};Ye.spelling=function(r){return(s,u)=>(console.warn(`${u} is likely a misspelling of ${r}`),!0)};function ia(t,r,s){if(typeof t!="object")throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const u=Object.keys(t);let d=u.length;for(;d-- >0;){const f=u[d],v=r[f];if(v){const _=t[f],F=_===void 0||v(_,f,t);if(F!==!0)throw new H("option "+f+" must be "+F,H.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new H("Unknown option "+f,H.ERR_BAD_OPTION)}}const Ie={assertOptions:ia,validators:Ye},Vt=Ie.validators;let ne=class{constructor(r){this.defaults=r,this.interceptors={request:new on,response:new on}}async request(r,s){try{return await this._request(r,s)}catch(u){if(u instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const f=d.stack?d.stack.replace(/^.+\n/,""):"";try{u.stack?f&&!String(u.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(u.stack+=`
|
|
11
|
-
`+f):u.stack=f}catch{}}throw u}}_request(r,s){typeof r=="string"?(s=s||{},s.url=r):s=r||{},s=oe(this.defaults,s);const{transitional:u,paramsSerializer:d,headers:f}=s;u!==void 0&&Ie.assertOptions(u,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),d!=null&&(A.isFunction(d)?s.paramsSerializer={serialize:d}:Ie.assertOptions(d,{encode:Vt.function,serialize:Vt.function},!0)),Ie.assertOptions(s,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let v=f&&A.merge(f.common,f[s.method]);f&&A.forEach(["delete","get","head","post","put","patch","common"],I=>{delete f[I]}),s.headers=Dt.concat(v,f);const _=[];let F=!0;this.interceptors.request.forEach(function(U){typeof U.runWhen=="function"&&U.runWhen(s)===!1||(F=F&&U.synchronous,_.unshift(U.fulfilled,U.rejected))});const C=[];this.interceptors.response.forEach(function(U){C.push(U.fulfilled,U.rejected)});let g,B=0,T;if(!F){const I=[dn.bind(this),void 0];for(I.unshift.apply(I,_),I.push.apply(I,C),T=I.length,g=Promise.resolve(s);B<T;)g=g.then(I[B++],I[B++]);return g}T=_.length;let $=s;for(B=0;B<T;){const I=_[B++],U=_[B++];try{$=I($)}catch(L){U.call(this,L);break}}try{g=dn.call(this,$)}catch(I){return Promise.reject(I)}for(B=0,T=C.length;B<T;)g=g.then(C[B++],C[B++]);return g}getUri(r){r=oe(this.defaults,r);const s=Xn(r.baseURL,r.url);return Zn(s,r.params,r.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(r){ne.prototype[r]=function(s,u){return this.request(oe(u||{},{method:r,url:s,data:(u||{}).data}))}});A.forEach(["post","put","patch"],function(r){function s(u){return function(f,v,_){return this.request(oe(_||{},{method:r,headers:u?{"Content-Type":"multipart/form-data"}:{},url:f,data:v}))}}ne.prototype[r]=s(),ne.prototype[r+"Form"]=s(!0)});let oa=class ii{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(f){s=f});const u=this;this.promise.then(d=>{if(!u._listeners)return;let f=u._listeners.length;for(;f-- >0;)u._listeners[f](d);u._listeners=null}),this.promise.then=d=>{let f;const v=new Promise(_=>{u.subscribe(_),f=_}).then(d);return v.cancel=function(){u.unsubscribe(f)},v},r(function(f,v,_){u.reason||(u.reason=new we(f,v,_),s(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const s=this._listeners.indexOf(r);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const r=new AbortController,s=u=>{r.abort(u)};return this.subscribe(s),r.signal.unsubscribe=()=>this.unsubscribe(s),r.signal}static source(){let r;return{token:new ii(function(d){r=d}),cancel:r}}};function sa(t){return function(s){return t.apply(null,s)}}function aa(t){return A.isObject(t)&&t.isAxiosError===!0}const Or={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(Or).forEach(([t,r])=>{Or[r]=t});function oi(t){const r=new ne(t),s=Nn(ne.prototype.request,r);return A.extend(s,ne.prototype,r,{allOwnKeys:!0}),A.extend(s,r,null,{allOwnKeys:!0}),s.create=function(d){return oi(oe(t,d))},s}const gt=oi(be);gt.Axios=ne;gt.CanceledError=we;gt.CancelToken=oa;gt.isCancel=Gn;gt.VERSION=ni;gt.toFormData=Ke;gt.AxiosError=H;gt.Cancel=gt.CanceledError;gt.all=function(r){return Promise.all(r)};gt.spread=sa;gt.isAxiosError=aa;gt.mergeConfig=oe;gt.AxiosHeaders=Dt;gt.formToJSON=t=>Kn(A.isHTMLForm(t)?new FormData(t):t);gt.getAdapter=ri.getAdapter;gt.HttpStatusCode=Or;gt.default=gt;const{Axios:ua,AxiosError:fa,CanceledError:ha,isCancel:la,CancelToken:ca,VERSION:da,all:pa,Cancel:ma,isAxiosError:ga,spread:wa,toFormData:ya,AxiosHeaders:va,HttpStatusCode:Ma,formToJSON:xa,getAdapter:Ea,mergeConfig:ba}=gt,Pa=Object.freeze(Object.defineProperty({__proto__:null,Axios:ua,AxiosError:fa,AxiosHeaders:va,Cancel:ma,CancelToken:ca,CanceledError:ha,HttpStatusCode:Ma,VERSION:da,all:pa,default:gt,formToJSON:xa,getAdapter:Ea,isAxiosError:ga,isCancel:la,mergeConfig:ba,spread:wa,toFormData:ya},Symbol.toStringTag,{value:"Module"}));var Lr={exports:{}},ce=1e3,de=ce*60,pe=de*60,se=pe*24,Sa=se*7,_a=se*365.25,si=function(t,r){r=r||{};var s=typeof t;if(s==="string"&&t.length>0)return Ca(t);if(s==="number"&&isFinite(t))return r.long?Ba(t):Ra(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Ca(t){if(t=String(t),!(t.length>100)){var r=/^(-?(?:\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(r){var s=parseFloat(r[1]),u=(r[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return s*_a;case"weeks":case"week":case"w":return s*Sa;case"days":case"day":case"d":return s*se;case"hours":case"hour":case"hrs":case"hr":case"h":return s*pe;case"minutes":case"minute":case"mins":case"min":case"m":return s*de;case"seconds":case"second":case"secs":case"sec":case"s":return s*ce;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function Ra(t){var r=Math.abs(t);return r>=se?Math.round(t/se)+"d":r>=pe?Math.round(t/pe)+"h":r>=de?Math.round(t/de)+"m":r>=ce?Math.round(t/ce)+"s":t+"ms"}function Ba(t){var r=Math.abs(t);return r>=se?Ce(t,r,se,"day"):r>=pe?Ce(t,r,pe,"hour"):r>=de?Ce(t,r,de,"minute"):r>=ce?Ce(t,r,ce,"second"):t+" ms"}function Ce(t,r,s,u){var d=r>=s*1.5;return Math.round(t/s)+" "+u+(d?"s":"")}const ka=gn(si);function Aa(t){s.debug=s,s.default=s,s.coerce=F,s.disable=v,s.enable=d,s.enabled=_,s.humanize=si,s.destroy=C,Object.keys(t).forEach(g=>{s[g]=t[g]}),s.names=[],s.skips=[],s.formatters={};function r(g){let B=0;for(let T=0;T<g.length;T++)B=(B<<5)-B+g.charCodeAt(T),B|=0;return s.colors[Math.abs(B)%s.colors.length]}s.selectColor=r;function s(g){let B,T=null,$,I;function U(...L){if(!U.enabled)return;const W=U,G=Number(new Date),X=G-(B||G);W.diff=X,W.prev=B,W.curr=G,B=G,L[0]=s.coerce(L[0]),typeof L[0]!="string"&&L.unshift("%O");let at=0;L[0]=L[0].replace(/%([a-zA-Z%])/g,(J,Lt)=>{if(J==="%%")return"%";at++;const ht=s.formatters[Lt];if(typeof ht=="function"){const Pt=L[at];J=ht.call(W,Pt),L.splice(at,1),at--}return J}),s.formatArgs.call(W,L),(W.log||s.log).apply(W,L)}return U.namespace=g,U.useColors=s.useColors(),U.color=s.selectColor(g),U.extend=u,U.destroy=s.destroy,Object.defineProperty(U,"enabled",{enumerable:!0,configurable:!1,get:()=>T!==null?T:($!==s.namespaces&&($=s.namespaces,I=s.enabled(g)),I),set:L=>{T=L}}),typeof s.init=="function"&&s.init(U),U}function u(g,B){const T=s(this.namespace+(typeof B>"u"?":":B)+g);return T.log=this.log,T}function d(g){s.save(g),s.namespaces=g,s.names=[],s.skips=[];const B=(typeof g=="string"?g:"").trim().replace(" ",",").split(",").filter(Boolean);for(const T of B)T[0]==="-"?s.skips.push(T.slice(1)):s.names.push(T)}function f(g,B){let T=0,$=0,I=-1,U=0;for(;T<g.length;)if($<B.length&&(B[$]===g[T]||B[$]==="*"))B[$]==="*"?(I=$,U=T,$++):(T++,$++);else if(I!==-1)$=I+1,U++,T=U;else return!1;for(;$<B.length&&B[$]==="*";)$++;return $===B.length}function v(){const g=[...s.names,...s.skips.map(B=>"-"+B)].join(",");return s.enable(""),g}function _(g){for(const B of s.skips)if(f(g,B))return!1;for(const B of s.names)if(f(g,B))return!0;return!1}function F(g){return g instanceof Error?g.stack||g.message:g}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 Fa=Aa;(function(t,r){var s={};r.formatArgs=d,r.save=f,r.load=v,r.useColors=u,r.storage=_(),r.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`."))}})(),r.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 u(){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 d(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 g="color: "+this.color;C.splice(1,0,g,"color: inherit");let B=0,T=0;C[0].replace(/%[a-zA-Z%]/g,$=>{$!=="%%"&&(B++,$==="%c"&&(T=B))}),C.splice(T,0,g)}r.log=console.debug||console.log||(()=>{});function f(C){try{C?r.storage.setItem("debug",C):r.storage.removeItem("debug")}catch{}}function v(){let C;try{C=r.storage.getItem("debug")}catch{}return!C&&typeof Ue<"u"&&"env"in Ue&&(C=s.DEBUG),C}function _(){try{return localStorage}catch{}}t.exports=Fa(r);const{formatters:F}=t.exports;F.j=function(C){try{return JSON.stringify(C)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}})(Lr,Lr.exports);var Da=Lr.exports;export{fa as A,Ln as B,gt as a,Na as b,mo as c,Ia as d,ui as e,Da as f,fi as g,Zs as h,Ui as i,Cn as j,ve as k,Pa as l,Oa as m,ki as n,Pi as o,Ue as p,zt as q,To as r,ie as s,Gi as t,me as u,ka as v,Ni as w,le as x};
|