@zeniai/web-app-ui 5.4.10-dev → 5.4.11-dev
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/dist/assets/{AccountMappingScreen-BT4O8HTD.js → AccountMappingScreen-CMj3JkGt.js} +2 -2
- package/dist/assets/ActualMatchingMatchDetailScreen-Dd_vJSSr.js +1 -0
- package/dist/assets/AddressRoutes-7FdlQcLM.js +1 -0
- package/dist/assets/AddressScreen-BbgME8aO.js +9 -0
- package/dist/assets/{AiCfoScreen-RbcUBAdM.js → AiCfoScreen-CU1e2Oi8.js} +5 -5
- package/dist/assets/{AppDrawer-Sa4LLULj.js → AppDrawer-Dm9C8j__.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BbNV-MR5.js → BillPayApprovalRoutes-GN_PKZBM.js} +1 -1
- package/dist/assets/{BillPayRoutes-uNYLvj5o.js → BillPayRoutes-7abJ7Y81.js} +8 -8
- package/dist/assets/{BusinessVerificationPageScreen-ibSIK2nI.js → BusinessVerificationPageScreen-8VbyEZWD.js} +2 -2
- package/dist/assets/CardsAiCfoScreen-BcEHiZtA.js +14 -0
- package/dist/assets/{ChargeCardRoutes-CO87Ou5-.js → ChargeCardRoutes-BR5_qY8y.js} +9 -9
- package/dist/assets/CompanyPassportScreen-L6OY8AwA.js +1 -0
- package/dist/assets/ConnectionAuthScreen-F-iZ536h.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-Gnqx1b1N.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BynW3iC3.js → CustomerOnboardingRoutes-3OH4ZWPk.js} +3 -3
- package/dist/assets/{DashboardRoutes-ndbO6Qws.js → DashboardRoutes-X31R7cQf.js} +4 -4
- package/dist/assets/{DefaultTenantHome-2hNb0a3U.js → DefaultTenantHome-FpeIWNLr.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BZbvzqXc.js +18 -0
- package/dist/assets/{DrawerScreen-b7QdOhuW.js → DrawerScreen-CmgVB1Zi.js} +1 -1
- package/dist/assets/EntityDetailRoutes-5IMi-E-b.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-C6_zyg5Q.js → ExpenseAutomationRoutes-DH5uN2wQ.js} +6 -6
- package/dist/assets/{FeaturePreviewScreen-B5U7lEG-.js → FeaturePreviewScreen-Cnh2Fe6t.js} +1 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-C94ZBMtd.js +1 -0
- package/dist/assets/InboxNotificationsProvider-CJt6vmnU.js +1 -0
- package/dist/assets/{InvoicingRoutes-C4zfN1Wc.js → InvoicingRoutes-Q-6aUqgu.js} +2 -2
- package/dist/assets/{MagicLinkRoutes-BDl3Flj2.js → MagicLinkRoutes-CR6ShXCQ.js} +20 -20
- package/dist/assets/MagicLinkSignInScreen-CBjgwG_1.js +12 -0
- package/dist/assets/{MobileAppDrawer-DVldqyUl.js → MobileAppDrawer-B4_Hh2uX.js} +1 -1
- package/dist/assets/NotFoundScreen-CxVO6BUm.js +1 -0
- package/dist/assets/{NotificationRoutes-UAhv091T.js → NotificationRoutes-CDa5TISi.js} +1 -1
- package/dist/assets/OAuthConsentScreen-D8WvwiVN.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-CiaozOzI.js +1 -0
- package/dist/assets/PaymentLinkScreen-BN13u2tw.js +21 -0
- package/dist/assets/PeopleRoutes-B5eZw1Xs.js +22 -0
- package/dist/assets/PerformanceRoutes-B5KqyHoS.js +1 -0
- package/dist/assets/{Preview-CU7aguP4.js → Preview-gj_-pUjR.js} +1 -1
- package/dist/assets/QBOConnectionScreen-BD6w4pxT.js +101 -0
- package/dist/assets/{ReimbursementApprovalRoutes-DrsMWkl8.js → ReimbursementApprovalRoutes-_wQ1m-SZ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Dw7QQEoQ.js → ReimbursementApprovalRuleDetailScreen-CQJ7WhRf.js} +1 -1
- package/dist/assets/ReimbursementRoutes-mHGAbMEo.js +68 -0
- package/dist/assets/{ReportsRoutes-B5lACyrL.js → ReportsRoutes-DNdr9gVu.js} +1 -1
- package/dist/assets/RewardsRoutes-CRQaDmuu.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-LwZh192V.js → ScheduleDetailsPrepaidExpensesScreen-Bgrqk-Br.js} +5 -5
- package/dist/assets/ScreenRoutes-Cix6ynkH.js +2 -0
- package/dist/assets/{SettingsRoutes-DEHUtOgG.js → SettingsRoutes-CXzUd0P6.js} +6 -6
- package/dist/assets/{SetupPagesScreen-Dv6lGRG5.js → SetupPagesScreen-DzLiX5R5.js} +5 -5
- package/dist/assets/SignInScreen-VX0iUVME.js +1 -0
- package/dist/assets/SignOutScreen-BXVxv4o-.js +9 -0
- package/dist/assets/{TaskListScreen-8hq6cEbk.js → TaskListScreen-Dv5TjArL.js} +2 -2
- package/dist/assets/TaskRoutes-aDI7RZCK.js +9 -0
- package/dist/assets/TransactionDetailRoutes-C0gGgGik.js +1 -0
- package/dist/assets/{TransactionDetailScreen-It6ORIbN.js → TransactionDetailScreen-BsGN3Yd5.js} +2 -2
- package/dist/assets/{TransactionListRoutes-BTjkHFVX.js → TransactionListRoutes-_bc9UoMG.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Bys8F57E.js → TreasuryRoutes-C7ABXX2A.js} +6 -6
- package/dist/assets/{VendorsRoutes-abjQ1HGQ.js → VendorsRoutes-BlorNbi4.js} +11 -11
- package/dist/assets/WiseConfirmationScreen-DhPTIeWc.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DlvpS2Bq.js → ZeniAccountRoutes-QObrERl4.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-BHlw6cTG.js +9 -0
- package/dist/assets/{accountMappingHelper-C9fFA6EC.js → accountMappingHelper-BbISzw1n.js} +1 -1
- package/dist/assets/{analytics-C3OBHjEG.js → analytics-C4ICDJLl.js} +1 -1
- package/dist/assets/{analyticsHelper-exrV7AE9.js → analyticsHelper-CPHVprda.js} +1 -1
- package/dist/assets/{core-o-ca34AJ.js → core-C4Vfz6Ll.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CdLVPaCS.js → decodeURIComponentSafe-CYsmEPcV.js} +1 -1
- package/dist/assets/{dnd-sqKp8sUm.js → dnd-kAQqqaX2.js} +1 -1
- package/dist/assets/{empty-CynSKeaU.js → empty-asCy4wrm.js} +1 -1
- package/dist/assets/{empty-BnmFWJHQ.js → empty-uRyODf4S.js} +1 -1
- package/dist/assets/{emptyVideoElement-BUTaximG.js → emptyVideoElement-79iYt27c.js} +1 -1
- package/dist/assets/epic-B2pHLhBD.js +2 -0
- package/dist/assets/expenseAutomationHelper-hmRJBbGd.js +1 -0
- package/dist/assets/{getLocaleForTenant-CBmE-ohA.js → getLocaleForTenant-DJIJUZ-c.js} +1 -1
- package/dist/assets/{index-BLrePuqf.js → index-BTd7WWV0.js} +1 -1
- package/dist/assets/{index-Btt0Zihe.js → index-B_kv_EmZ.js} +1 -1
- package/dist/assets/{index-Bqod5kmp.js → index-Bg8f4cim.js} +1 -1
- package/dist/assets/{index-Bx2gJO4r.js → index-CJ_pjNEa.js} +7 -7
- package/dist/assets/{index-j2p4Lnj3.js → index-Doknm_HP.js} +1 -1
- package/dist/assets/index-E3novWwq.js +1 -0
- package/dist/assets/{index-D4vHXZ_y.js → index-UMoTq5JU.js} +2 -2
- package/dist/assets/index-pA4BduR_.js +1 -0
- package/dist/assets/{lexical-CEO4_NFb.js → lexical-SeD-pdYj.js} +1 -1
- package/dist/assets/liveblocks-DZUXZ-JO.js +59 -0
- package/dist/assets/{lottie-Dl8uwTmw.js → lottie-txhqSe8x.js} +1 -1
- package/dist/assets/{mui-cK5UWUvi.js → mui-C0PYnbt1.js} +1 -1
- package/dist/assets/{pathToGoBack-Bk8jMuE9.js → pathToGoBack-DF1y-0ht.js} +1 -1
- package/dist/assets/{pdf-BNJo5ucI.js → pdf-bOGTjHnz.js} +5 -5
- package/dist/assets/{pdf-lib-C69QvBGc.js → pdf-lib-BsfRp21l.js} +1 -1
- package/dist/assets/{plaid-C8bTkbCG.js → plaid-hQES7k9Y.js} +1 -1
- package/dist/assets/{pusher-C6PXikRK.js → pusher-BoH5mrch.js} +1 -1
- package/dist/assets/{react-BgHw6ZMD.js → react-BQ6jUfzX.js} +1 -1
- package/dist/assets/{react-BCP4YdKf.js → react-BgJrrMxk.js} +1 -1
- package/dist/assets/{react-BfzBm-jN.js → react-Boil267a.js} +1 -1
- package/dist/assets/{react-CTNewL67.js → react-DXSBT-1v.js} +1 -1
- package/dist/assets/{react-UiIuY6Fo.js → react-ZM05SSz2.js} +1 -1
- package/dist/assets/{react-ixvlVzZ9.js → react-qLaRPrw4.js} +1 -1
- package/dist/assets/{recharts-DK1tbN_A.js → recharts-rN5v_P87.js} +1 -1
- package/dist/assets/{reportTimeframe-6FnDbaGY.js → reportTimeframe-C5AD1AL2.js} +1 -1
- package/dist/assets/{routePaths-DBf4ybcn.js → routePaths-DYebh4Li.js} +1 -1
- package/dist/assets/{sentry-Buwow292.js → sentry-DfoGRlTp.js} +1 -1
- package/dist/assets/{stripSplatSuffix-BKbpznmZ.js → stripSplatSuffix-Db8ayksN.js} +1 -1
- package/dist/assets/{url-B_oojQRK.js → url-B-JScRaX.js} +1 -1
- package/dist/assets/{url-C7oPARVv.js → url-BtS-4pap.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-DBoUtV2d.js → useActualMatchingMatchDetail-DPtaMcdm.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-D_VhexUa.js → useAiCfoDashboardSuggestedQuestionsChips-D2InIpSO.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-k11tYjVi.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-B6OwhCNo.js → useChargeCardPusherEvents-Bf7Vv0PE.js} +1 -1
- package/dist/assets/{useDeviceId-CeB6LWI8.js → useDeviceId-_3Ay4Sah.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-BCLtP2Ad.js +1 -0
- package/dist/assets/useEnsureVendorListLoaded-Bud-c91I.js +1 -0
- package/dist/assets/{useInitialThreadRequest-C3w5IRp7.js → useInitialThreadRequest-BVMcY486.js} +1 -1
- package/dist/assets/useTaskManagerAccess-Cp8R2Cu9.js +1 -0
- package/dist/assets/{useTaskManagerPusherEvents-LOx5aVW8.js → useTaskManagerPusherEvents-p1TIydvw.js} +1 -1
- package/dist/assets/utils-CmKqkYr5.js +36 -0
- package/dist/assets/{withTransactionSidePanel-CVCleugc.js → withTransactionSidePanel-btBdqPWA.js} +5 -5
- package/dist/assets/{zeni-epic-state-MQ0qdl-Q.js → zeni-epic-state-DmXGRK_Y.js} +4 -4
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ActualMatchingMatchDetailScreen-Ce_XDU4u.js +0 -1
- package/dist/assets/AddressRoutes-BQEPn0Yr.js +0 -1
- package/dist/assets/AddressScreen-D2FVWJY-.js +0 -9
- package/dist/assets/CardsAiCfoScreen-CkEc2DEo.js +0 -14
- package/dist/assets/CompanyPassportScreen-DJeoMdCg.js +0 -1
- package/dist/assets/ConnectionAuthScreen-Bf2Ucb1Q.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-D3RbfqTk.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-BqDioG6P.js +0 -18
- package/dist/assets/EntityDetailRoutes-aGFvyTv5.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-Dr1Xep8u.js +0 -1
- package/dist/assets/InboxNotificationsProvider-Cph6MP0g.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-Bie6nkkJ.js +0 -12
- package/dist/assets/NotFoundScreen-BXfz4Cwt.js +0 -1
- package/dist/assets/OAuthConsentScreen-yv2un5zc.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-DZO_Ak_R.js +0 -1
- package/dist/assets/PaymentLinkScreen-DgjQbdJS.js +0 -21
- package/dist/assets/PeopleRoutes-CBBW0nYr.js +0 -22
- package/dist/assets/PerformanceRoutes-CIoRY1pR.js +0 -1
- package/dist/assets/QBOConnectionScreen-CI47ZrlS.js +0 -100
- package/dist/assets/ReimbursementRoutes-BiacT-VJ.js +0 -68
- package/dist/assets/RewardsRoutes-26PBDRkk.js +0 -1
- package/dist/assets/ScreenRoutes-CdEeBqiV.js +0 -2
- package/dist/assets/SignInScreen-CzvdRg4U.js +0 -1
- package/dist/assets/SignOutScreen-DfTRMdjb.js +0 -9
- package/dist/assets/TaskRoutes-C1KzEFV7.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BB45JvGj.js +0 -1
- package/dist/assets/WiseConfirmationScreen-DewxnFTy.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-DVR6RIK2.js +0 -9
- package/dist/assets/epic-bBvrG0DE.js +0 -2
- package/dist/assets/expenseAutomationHelper-8n6GRk1T.js +0 -1
- package/dist/assets/index-BzW-Y7Lk.js +0 -1
- package/dist/assets/index-Cmb8jqqj.js +0 -1
- package/dist/assets/liveblocks-BdMPZzDQ.js +0 -59
- package/dist/assets/useAskAiCfoHostNavButtonProps-B6lOnQ69.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-t37-D3lN.js +0 -1
- package/dist/assets/useEnsureVendorListLoaded-BmranjK0.js +0 -1
- package/dist/assets/useTaskManagerAccess-By_NjZen.js +0 -1
- package/dist/assets/utils-D4KfE2cr.js +0 -36
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import{j as Gl}from"./liveblocks-DZUXZ-JO.js";import{p as te,d as Bc,c as qc,g as Hl,a as zl}from"./sentry-DfoGRlTp.js";import{H as ge,bZ as Gc,fE as Hc,UG as zc,Vx as Zl,c6 as Vl}from"./zeni-epic-state-DmXGRK_Y.js";import{a as pe,b as Yl,c as Kl,d as Wl,e as pn,f as Jl,g as Xl,h as Ql,i as Ve,j as Zc,k as rt,l as kt,m as ef,o as at,p as tf}from"./utils-CmKqkYr5.js";import{r as rf}from"./url-BtS-4pap.js";import{r as hn}from"./empty-uRyODf4S.js";import{r as nf,a as of,b as sf,c as af}from"./pdf-lib-BsfRp21l.js";import{a as Ye,r as uf}from"./index-BTd7WWV0.js";import{r as cf}from"./index-E3novWwq.js";import{h as lf,g as ff,u as pf,j as kn,l as hf}from"./core-C4Vfz6Ll.js";import{u as df,z as Vc,L as mf,aj as yf,ak as gf,X as vf,I as bf}from"./index-CJ_pjNEa.js";import"./mui-C0PYnbt1.js";import{d as Lt}from"./decodeURIComponentSafe-CYsmEPcV.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new r.Error().stack;u&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[u]="b84d900e-cae9-473f-a2d2-03b3ddfa5394",r._sentryDebugIdIdentifier="sentry-dbid-b84d900e-cae9-473f-a2d2-03b3ddfa5394")}catch{}})();var An,Rn={exports:{}},Pn,In,Nn,Ln,$n,Mn,Cn,Dn,Fn,$t,Un,Bn,qn,Gn,Hn,zn,Zn,Vn,Yn,Kn,Wn,Mt,Jn,Xn,Qn,eo,to,ro,no,Ct,oo,io,so,ao,uo,co,lo,Dt={exports:{}},Ft={exports:{}},Ut={};function Yc(){if(Pn)return Ut;function r(t){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,c){return o.__proto__=c,o},u(t,e)}function m(t){var e=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var o,c=i(t);if(e){var a=i(this).constructor;o=Reflect.construct(c,arguments,a)}else o=c.apply(this,arguments);return(function(f,b){if(b&&(r(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v})(f)})(this,o)}}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(t)}Pn=1;var s,p,h={};function l(t,e,o){o||(o=Error);var c=(function(a){(function(d,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(y&&y.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),y&&u(d,y)})(v,a);var f,b=m(v);function v(d,y,g){var _;return(function(E,O){if(!(E instanceof O))throw new TypeError("Cannot call a class as a function")})(this,v),_=b.call(this,(function(E,O,$){return typeof e=="string"?e:e(E,O,$)})(d,y,g)),_.code=t,_}return f=v,Object.defineProperty(f,"prototype",{writable:!1}),f})(o);h[t]=c}function n(t,e){if(Array.isArray(t)){var o=t.length;return t=t.map((function(c){return String(c)})),o>2?"one of ".concat(e," ").concat(t.slice(0,o-1).join(", "),", or ")+t[o-1]:o===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}return l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(t,e,o){var c,a,f;if(s===void 0&&(s=nt()),s(typeof t=="string","'name' must be a string"),typeof e=="string"&&(a="not ",e.substr(0,a.length)===a)?(c="must not be",e=e.replace(/^not /,"")):c="must be",(function(v,d,y){return(y===void 0||y>v.length)&&(y=v.length),v.substring(y-d.length,y)===d})(t," argument"))f="The ".concat(t," ").concat(c," ").concat(n(e,"type"));else{var b=(function(v,d,y){return typeof y!="number"&&(y=0),!(y+d.length>v.length)&&v.indexOf(d,y)!==-1})(t,".")?"property":"argument";f='The "'.concat(t,'" ').concat(b," ").concat(c," ").concat(n(e,"type"))}return f+=". Received type ".concat(r(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";p===void 0&&(p=pe());var c=p.inspect(e);return c.length>128&&(c="".concat(c.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(o,". Received ").concat(c)}),TypeError),l("ERR_INVALID_RETURN_VALUE",(function(t,e,o){var c;return c=o&&o.constructor&&o.constructor.name?"instance of ".concat(o.constructor.name):"type ".concat(r(o)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(c,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];s===void 0&&(s=nt()),s(e.length>0,"At least one arg needs to be specified");var c="The ",a=e.length;switch(e=e.map((function(f){return'"'.concat(f,'"')})),a){case 1:c+="".concat(e[0]," argument");break;case 2:c+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:c+=e.slice(0,a-1).join(", "),c+=", and ".concat(e[a-1]," arguments")}return"".concat(c," must be specified")}),TypeError),Ut.codes=h,Ut}function wf(){if(Nn)return In;function r(j,w){var S=Object.keys(j);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(j);w&&(R=R.filter((function(T){return Object.getOwnPropertyDescriptor(j,T).enumerable}))),S.push.apply(S,R)}return S}function u(j){for(var w=1;w<arguments.length;w++){var S=arguments[w]!=null?arguments[w]:{};w%2?r(Object(S),!0).forEach((function(R){m(j,R,S[R])})):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(S)):r(Object(S)).forEach((function(R){Object.defineProperty(j,R,Object.getOwnPropertyDescriptor(S,R))}))}return j}function m(j,w,S){return(w=s(w))in j?Object.defineProperty(j,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):j[w]=S,j}function i(j,w,S){return w&&(function(R,T){for(var U=0;U<T.length;U++){var N=T[U];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(R,s(N.key),N)}})(j.prototype,w),Object.defineProperty(j,"prototype",{writable:!1}),j}function s(j){var w=(function(S,R){if(c(S)!=="object"||S===null)return S;var T=S[Symbol.toPrimitive];if(T!==void 0){var U=T.call(S,R);if(c(U)!=="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)})(j,"string");return c(w)==="symbol"?w:String(w)}function p(j,w){if(w&&(c(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(j)}function h(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function l(j){var w=typeof Map=="function"?new Map:void 0;return l=function(S){if(S===null||(R=S,Function.toString.call(R).indexOf("[native code]")===-1))return S;var R;if(typeof S!="function")throw new TypeError("Super expression must either be null or a function");if(w!==void 0){if(w.has(S))return w.get(S);w.set(S,T)}function T(){return n(S,arguments,o(this).constructor)}return T.prototype=Object.create(S.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),e(T,S)},l(j)}function n(j,w,S){return n=t()?Reflect.construct.bind():function(R,T,U){var N=[null];N.push.apply(N,T);var A=new(Function.bind.apply(R,N));return U&&e(A,U.prototype),A},n.apply(null,arguments)}function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}function e(j,w){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,R){return S.__proto__=R,S},e(j,w)}function o(j){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},o(j)}function c(j){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},c(j)}Nn=1;var a=pe().inspect,f=Yc().codes.ERR_INVALID_ARG_TYPE;function b(j,w,S){return(S===void 0||S>j.length)&&(S=j.length),j.substring(S-w.length,S)===w}var v="",d="",y="",g="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function E(j){var w=Object.keys(j),S=Object.create(Object.getPrototypeOf(j));return w.forEach((function(R){S[R]=j[R]})),Object.defineProperty(S,"message",{value:j.message}),S}function O(j){return a(j,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function $(j,w,S){var R="",T="",U=0,N="",A=!1,H=O(j),P=H.split(`
|
|
2
|
+
`),I=O(w).split(`
|
|
3
|
+
`),x=0,C="";if(S==="strictEqual"&&c(j)==="object"&&c(w)==="object"&&j!==null&&w!==null&&(S="strictEqualObject"),P.length===1&&I.length===1&&P[0]!==I[0]){var Z=P[0].length+I[0].length;if(Z<=10){if(!(c(j)==="object"&&j!==null||c(w)==="object"&&w!==null||j===0&&w===0))return"".concat(_[S],`
|
|
4
|
+
|
|
5
|
+
`)+"".concat(P[0]," !== ").concat(I[0],`
|
|
6
|
+
`)}else if(S!=="strictEqualObject"&&Z<(te.stderr&&te.stderr.isTTY?te.stderr.columns:80)){for(;P[0][x]===I[0][x];)x++;x>2&&(C=`
|
|
7
|
+
`.concat((function(W,Q){if(Q=Math.floor(Q),W.length==0||Q==0)return"";var ee=W.length*Q;for(Q=Math.floor(Math.log(Q)/Math.log(2));Q;)W+=W,Q--;return W+W.substring(0,ee-W.length)})(" ",x),"^"),x=0)}}for(var V=P[P.length-1],L=I[I.length-1];V===L&&(x++<2?N=`
|
|
8
|
+
`.concat(V).concat(N):R=V,P.pop(),I.pop(),P.length!==0&&I.length!==0);)V=P[P.length-1],L=I[I.length-1];var M=Math.max(P.length,I.length);if(M===0){var F=H.split(`
|
|
9
|
+
`);if(F.length>30)for(F[26]="".concat(v,"...").concat(g);F.length>27;)F.pop();return"".concat(_.notIdentical,`
|
|
10
|
+
|
|
11
|
+
`).concat(F.join(`
|
|
12
|
+
`),`
|
|
13
|
+
`)}x>3&&(N=`
|
|
14
|
+
`.concat(v,"...").concat(g).concat(N),A=!0),R!==""&&(N=`
|
|
15
|
+
`.concat(R).concat(N),R="");var B=0,G=_[S]+`
|
|
16
|
+
`.concat(d,"+ actual").concat(g," ").concat(y,"- expected").concat(g),z=" ".concat(v,"...").concat(g," Lines skipped");for(x=0;x<M;x++){var K=x-U;if(P.length<x+1)K>1&&x>2&&(K>4?(T+=`
|
|
17
|
+
`.concat(v,"...").concat(g),A=!0):K>3&&(T+=`
|
|
18
|
+
`.concat(I[x-2]),B++),T+=`
|
|
19
|
+
`.concat(I[x-1]),B++),U=x,R+=`
|
|
20
|
+
`.concat(y,"-").concat(g," ").concat(I[x]),B++;else if(I.length<x+1)K>1&&x>2&&(K>4?(T+=`
|
|
21
|
+
`.concat(v,"...").concat(g),A=!0):K>3&&(T+=`
|
|
22
|
+
`.concat(P[x-2]),B++),T+=`
|
|
23
|
+
`.concat(P[x-1]),B++),U=x,T+=`
|
|
24
|
+
`.concat(d,"+").concat(g," ").concat(P[x]),B++;else{var k=I[x],D=P[x],Y=D!==k&&(!b(D,",")||D.slice(0,-1)!==k);Y&&b(k,",")&&k.slice(0,-1)===D&&(Y=!1,D+=","),Y?(K>1&&x>2&&(K>4?(T+=`
|
|
25
|
+
`.concat(v,"...").concat(g),A=!0):K>3&&(T+=`
|
|
26
|
+
`.concat(P[x-2]),B++),T+=`
|
|
27
|
+
`.concat(P[x-1]),B++),U=x,T+=`
|
|
28
|
+
`.concat(d,"+").concat(g," ").concat(D),R+=`
|
|
29
|
+
`.concat(y,"-").concat(g," ").concat(k),B+=2):(T+=R,R="",K!==1&&x!==0||(T+=`
|
|
30
|
+
`.concat(D),B++))}if(B>20&&x<M-2)return"".concat(G).concat(z,`
|
|
31
|
+
`).concat(T,`
|
|
32
|
+
`).concat(v,"...").concat(g).concat(R,`
|
|
33
|
+
`)+"".concat(v,"...").concat(g)}return"".concat(G).concat(A?z:"",`
|
|
34
|
+
`).concat(T).concat(R).concat(N).concat(C)}var q=(function(j,w){(function(N,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(A&&A.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),A&&e(N,A)})(U,j);var S,R,T=(S=U,R=t(),function(){var N,A=o(S);if(R){var H=o(this).constructor;N=Reflect.construct(A,arguments,H)}else N=A.apply(this,arguments);return p(this,N)});function U(N){var A;if((function(G,z){if(!(G instanceof z))throw new TypeError("Cannot call a class as a function")})(this,U),c(N)!=="object"||N===null)throw new f("options","Object",N);var H=N.message,P=N.operator,I=N.stackStartFn,x=N.actual,C=N.expected,Z=Error.stackTraceLimit;if(Error.stackTraceLimit=0,H!=null)A=T.call(this,String(H));else if(te.stderr&&te.stderr.isTTY&&(te.stderr&&te.stderr.getColorDepth&&te.stderr.getColorDepth()!==1?(v="\x1B[34m",d="\x1B[32m",g="\x1B[39m",y="\x1B[31m"):(v="",d="",g="",y="")),c(x)==="object"&&x!==null&&c(C)==="object"&&C!==null&&"stack"in x&&x instanceof Error&&"stack"in C&&C instanceof Error&&(x=E(x),C=E(C)),P==="deepStrictEqual"||P==="strictEqual")A=T.call(this,$(x,C,P));else if(P==="notDeepStrictEqual"||P==="notStrictEqual"){var V=_[P],L=O(x).split(`
|
|
35
|
+
`);if(P==="notStrictEqual"&&c(x)==="object"&&x!==null&&(V=_.notStrictEqualObject),L.length>30)for(L[26]="".concat(v,"...").concat(g);L.length>27;)L.pop();A=L.length===1?T.call(this,"".concat(V," ").concat(L[0])):T.call(this,"".concat(V,`
|
|
36
|
+
|
|
37
|
+
`).concat(L.join(`
|
|
38
|
+
`),`
|
|
39
|
+
`))}else{var M=O(x),F="",B=_[P];P==="notDeepEqual"||P==="notEqual"?(M="".concat(_[P],`
|
|
40
|
+
|
|
41
|
+
`).concat(M)).length>1024&&(M="".concat(M.slice(0,1021),"...")):(F="".concat(O(C)),M.length>512&&(M="".concat(M.slice(0,509),"...")),F.length>512&&(F="".concat(F.slice(0,509),"...")),P==="deepEqual"||P==="equal"?M="".concat(B,`
|
|
42
|
+
|
|
43
|
+
`).concat(M,`
|
|
44
|
+
|
|
45
|
+
should equal
|
|
46
|
+
|
|
47
|
+
`):F=" ".concat(P," ").concat(F)),A=T.call(this,"".concat(M).concat(F))}return Error.stackTraceLimit=Z,A.generatedMessage=!H,Object.defineProperty(h(A),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),A.code="ERR_ASSERTION",A.actual=x,A.expected=C,A.operator=P,Error.captureStackTrace&&Error.captureStackTrace(h(A),I),A.stack,A.name="AssertionError",p(A)}return i(U,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:w,value:function(N,A){return a(this,u(u({},A),{},{customInspect:!1,depth:0}))}}]),U})(l(Error),a.custom);return In=q}function Kc(){if($n)return Ln;$n=1;var r=Object.prototype.toString;return Ln=function(u){var m=r.call(u),i=m==="[object Arguments]";return i||(i=m!=="[object Array]"&&u!==null&&typeof u=="object"&&typeof u.length=="number"&&u.length>=0&&r.call(u.callee)==="[object Function]"),i}}function Ef(){if(Cn)return Mn;var r;if(Cn=1,!Object.keys){var u=Object.prototype.hasOwnProperty,m=Object.prototype.toString,i=Kc(),s=Object.prototype.propertyIsEnumerable,p=!s.call({toString:null},"toString"),h=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(o){var c=o.constructor;return c&&c.prototype===o},t={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=(function(){if(typeof window>"u")return!1;for(var o in window)try{if(!t["$"+o]&&u.call(window,o)&&window[o]!==null&&typeof window[o]=="object")try{n(window[o])}catch{return!0}}catch{return!0}return!1})();r=function(o){var c=o!==null&&typeof o=="object",a=m.call(o)==="[object Function]",f=i(o),b=c&&m.call(o)==="[object String]",v=[];if(!c&&!a&&!f)throw new TypeError("Object.keys called on a non-object");var d=h&&a;if(b&&o.length>0&&!u.call(o,0))for(var y=0;y<o.length;++y)v.push(String(y));if(f&&o.length>0)for(var g=0;g<o.length;++g)v.push(String(g));else for(var _ in o)d&&_==="prototype"||!u.call(o,_)||v.push(String(_));if(p)for(var E=(function($){if(typeof window>"u"||!e)return n($);try{return n($)}catch{return!1}})(o),O=0;O<l.length;++O)E&&l[O]==="constructor"||!u.call(o,l[O])||v.push(l[O]);return v}}return Mn=r}function Wc(){if(Fn)return Dn;Fn=1;var r=Array.prototype.slice,u=Kc(),m=Object.keys,i=m?function(p){return m(p)}:Ef(),s=Object.keys;return i.shim=function(){if(Object.keys){var p=(function(){var h=Object.keys(arguments);return h&&h.length===arguments.length})(1,2);p||(Object.keys=function(h){return u(h)?s(r.call(h)):s(h)})}else Object.keys=i;return Object.keys||i},Dn=i}function _f(){if(qn)return Bn;qn=1;var r=(function(){if(Un)return $t;Un=1;var u=Wc(),m=Yl()(),i=Kl(),s=Wl(),p=i("Array.prototype.push"),h=i("Object.prototype.propertyIsEnumerable"),l=m?s.getOwnPropertySymbols:null;return $t=function(n,t){if(n==null)throw new TypeError("target must be an object");var e=s(n);if(arguments.length===1)return e;for(var o=1;o<arguments.length;++o){var c=s(arguments[o]),a=u(c),f=m&&(s.getOwnPropertySymbols||l);if(f)for(var b=f(c),v=0;v<b.length;++v){var d=b[v];h(c,d)&&p(a,d)}for(var y=0;y<a.length;++y){var g=a[y];if(h(c,g)){var _=c[g];e[g]=_}}}return e},$t})();return Bn=function(){return Object.assign?(function(){if(!Object.assign)return!1;for(var u="abcdefghijklmnopqrst",m=u.split(""),i={},s=0;s<m.length;++s)i[m[s]]=m[s];var p=Object.assign({},i),h="";for(var l in p)h+=l;return u!==h})()||(function(){if(!Object.assign||!Object.preventExtensions)return!1;var u=Object.preventExtensions({1:2});try{Object.assign(u,"xy")}catch{return u[1]==="y"}return!1})()?r:Object.assign:r}}function Jc(){if(Hn)return Gn;Hn=1;var r=function(u){return u!=u};return Gn=function(u,m){return u===0&&m===0?1/u==1/m:u===m||!(!r(u)||!r(m))}}function un(){if(Zn)return zn;Zn=1;var r=Jc();return zn=function(){return typeof Object.is=="function"?Object.is:r}}function St(){if(Wn)return Kn;Wn=1;var r=Wc(),u=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",m=Object.prototype.toString,i=Array.prototype.concat,s=Ql(),p=Xl()(),h=function(n,t,e,o){if(t in n){if(o===!0){if(n[t]===e)return}else if(typeof(c=o)!="function"||m.call(c)!=="[object Function]"||!o())return}var c;p?s(n,t,e,!0):s(n,t,e)},l=function(n,t){var e=arguments.length>2?arguments[2]:{},o=r(t);u&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var c=0;c<o.length;c+=1)h(n,o[c],t[o[c]],e[o[c]])};return l.supportsDescriptors=!!p,Kn=l}function Sf(){if(Qn)return Xn;Qn=1;var r=St(),u=pn(),m=Jc(),i=un(),s=(function(){if(Jn)return Mt;Jn=1;var h=un(),l=St();return Mt=function(){var n=h();return l(Object,{is:n},{is:function(){return Object.is!==n}}),n},Mt})(),p=u(i(),Object);return r(p,{getPolyfill:i,implementation:m,shim:s}),Xn=p}function Xc(){return to?eo:(to=1,eo=function(r){return r!=r})}function Qc(){if(no)return ro;no=1;var r=Xc();return ro=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}}function Of(){if(oo)return Ct;oo=1;var r=St(),u=Qc();return Ct=function(){var m=u();return r(Number,{isNaN:m},{isNaN:function(){return Number.isNaN!==m}}),m},Ct}function jf(){if(uo)return ao;function r(L,M){return(function(F){if(Array.isArray(F))return F})(L)||(function(F,B){var G=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(G!=null){var z,K,k,D,Y=[],W=!0,Q=!1;try{if(k=(G=G.call(F)).next,B!==0)for(;!(W=(z=k.call(G)).done)&&(Y.push(z.value),Y.length!==B);W=!0);}catch(ee){Q=!0,K=ee}finally{try{if(!W&&G.return!=null&&(D=G.return(),Object(D)!==D))return}finally{if(Q)throw K}}return Y}})(L,M)||(function(F,B){if(F){if(typeof F=="string")return u(F,B);var G=Object.prototype.toString.call(F).slice(8,-1);if(G==="Object"&&F.constructor&&(G=F.constructor.name),G==="Map"||G==="Set")return Array.from(F);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return u(F,B)}})(L,M)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function u(L,M){(M==null||M>L.length)&&(M=L.length);for(var F=0,B=new Array(M);F<M;F++)B[F]=L[F];return B}function m(L){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},m(L)}uo=1;var i=/a/g.flags!==void 0,s=function(L){var M=[];return L.forEach((function(F){return M.push(F)})),M},p=function(L){var M=[];return L.forEach((function(F,B){return M.push([B,F])})),M},h=Object.is?Object.is:Sf(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},n=Number.isNaN?Number.isNaN:(function(){if(so)return io;so=1;var L=pn(),M=St(),F=Xc(),B=Qc(),G=Of(),z=L(B(),Number);return M(z,{getPolyfill:B,implementation:F,shim:G}),io=z})();function t(L){return L.call.bind(L)}var e=t(Object.prototype.hasOwnProperty),o=t(Object.prototype.propertyIsEnumerable),c=t(Object.prototype.toString),a=pe().types,f=a.isAnyArrayBuffer,b=a.isArrayBufferView,v=a.isDate,d=a.isMap,y=a.isRegExp,g=a.isSet,_=a.isNativeError,E=a.isBoxedPrimitive,O=a.isNumberObject,$=a.isStringObject,q=a.isBooleanObject,j=a.isBigIntObject,w=a.isSymbolObject,S=a.isFloat32Array,R=a.isFloat64Array;function T(L){if(L.length===0||L.length>10)return!0;for(var M=0;M<L.length;M++){var F=L.charCodeAt(M);if(F<48||F>57)return!0}return L.length===10&&L>=Math.pow(2,32)}function U(L){return Object.keys(L).filter(T).concat(l(L).filter(Object.prototype.propertyIsEnumerable.bind(L)))}function N(L,M){if(L===M)return 0;for(var F=L.length,B=M.length,G=0,z=Math.min(F,B);G<z;++G)if(L[G]!==M[G]){F=L[G],B=M[G];break}return F<B?-1:B<F?1:0}function A(L,M,F,B){if(L===M)return L!==0||!F||h(L,M);if(F){if(m(L)!=="object")return typeof L=="number"&&n(L)&&n(M);if(m(M)!=="object"||L===null||M===null||Object.getPrototypeOf(L)!==Object.getPrototypeOf(M))return!1}else{if(L===null||m(L)!=="object")return(M===null||m(M)!=="object")&&L==M;if(M===null||m(M)!=="object")return!1}var G,z,K,k,D=c(L);if(D!==c(M))return!1;if(Array.isArray(L)){if(L.length!==M.length)return!1;var Y=U(L),W=U(M);return Y.length===W.length&&P(L,M,F,B,1,Y)}if(D==="[object Object]"&&(!d(L)&&d(M)||!g(L)&&g(M)))return!1;if(v(L)){if(!v(M)||Date.prototype.getTime.call(L)!==Date.prototype.getTime.call(M))return!1}else if(y(L)){if(!y(M)||(K=L,k=M,!(i?K.source===k.source&&K.flags===k.flags:RegExp.prototype.toString.call(K)===RegExp.prototype.toString.call(k))))return!1}else if(_(L)||L instanceof Error){if(L.message!==M.message||L.name!==M.name)return!1}else{if(b(L)){if(F||!S(L)&&!R(L)){if(!(function(X,J){return X.byteLength===J.byteLength&&N(new Uint8Array(X.buffer,X.byteOffset,X.byteLength),new Uint8Array(J.buffer,J.byteOffset,J.byteLength))===0})(L,M))return!1}else if(!(function(X,J){if(X.byteLength!==J.byteLength)return!1;for(var re=0;re<X.byteLength;re++)if(X[re]!==J[re])return!1;return!0})(L,M))return!1;var Q=U(L),ee=U(M);return Q.length===ee.length&&P(L,M,F,B,0,Q)}if(g(L))return!(!g(M)||L.size!==M.size)&&P(L,M,F,B,2);if(d(L))return!(!d(M)||L.size!==M.size)&&P(L,M,F,B,3);if(f(L)){if(z=M,(G=L).byteLength!==z.byteLength||N(new Uint8Array(G),new Uint8Array(z))!==0)return!1}else if(E(L)&&!(function(X,J){return O(X)?O(J)&&h(Number.prototype.valueOf.call(X),Number.prototype.valueOf.call(J)):$(X)?$(J)&&String.prototype.valueOf.call(X)===String.prototype.valueOf.call(J):q(X)?q(J)&&Boolean.prototype.valueOf.call(X)===Boolean.prototype.valueOf.call(J):j(X)?j(J)&&BigInt.prototype.valueOf.call(X)===BigInt.prototype.valueOf.call(J):w(J)&&Symbol.prototype.valueOf.call(X)===Symbol.prototype.valueOf.call(J)})(L,M))return!1}return P(L,M,F,B,0)}function H(L,M){return M.filter((function(F){return o(L,F)}))}function P(L,M,F,B,G,z){if(arguments.length===5){z=Object.keys(L);var K=Object.keys(M);if(z.length!==K.length)return!1}for(var k=0;k<z.length;k++)if(!e(M,z[k]))return!1;if(F&&arguments.length===5){var D=l(L);if(D.length!==0){var Y=0;for(k=0;k<D.length;k++){var W=D[k];if(o(L,W)){if(!o(M,W))return!1;z.push(W),Y++}else if(o(M,W))return!1}var Q=l(M);if(D.length!==Q.length&&H(M,Q).length!==Y)return!1}else{var ee=l(M);if(ee.length!==0&&H(M,ee).length!==0)return!1}}if(z.length===0&&(G===0||G===1&&L.length===0||L.size===0))return!0;if(B===void 0)B={val1:new Map,val2:new Map,position:0};else{var X=B.val1.get(L);if(X!==void 0){var J=B.val2.get(M);if(J!==void 0)return X===J}B.position++}B.val1.set(L,B.position),B.val2.set(M,B.position);var re=(function(ie,oe,ce,Ae,be,we){var se=0;if(we===2){if(!(function(me,Re,je,Pe){for(var ue=null,Ke=s(me),Me=0;Me<Ke.length;Me++){var Te=Ke[Me];if(m(Te)==="object"&&Te!==null)ue===null&&(ue=new Set),ue.add(Te);else if(!Re.has(Te)){if(je||!C(me,Re,Te))return!1;ue===null&&(ue=new Set),ue.add(Te)}}if(ue!==null){for(var Se=s(Re),Ue=0;Ue<Se.length;Ue++){var Ie=Se[Ue];if(m(Ie)==="object"&&Ie!==null){if(!I(ue,Ie,je,Pe))return!1}else if(!je&&!me.has(Ie)&&!I(ue,Ie,je,Pe))return!1}return ue.size===0}return!0})(ie,oe,ce,be))return!1}else if(we===3){if(!(function(me,Re,je,Pe){for(var ue=null,Ke=p(me),Me=0;Me<Ke.length;Me++){var Te=r(Ke[Me],2),Se=Te[0],Ue=Te[1];if(m(Se)==="object"&&Se!==null)ue===null&&(ue=new Set),ue.add(Se);else{var Ie=Re.get(Se);if(Ie===void 0&&!Re.has(Se)||!A(Ue,Ie,je,Pe)){if(je||!Z(me,Re,Se,Ue,Pe))return!1;ue===null&&(ue=new Set),ue.add(Se)}}}if(ue!==null){for(var Tn=p(Re),It=0;It<Tn.length;It++){var xn=r(Tn[It],2),Be=xn[0],Nt=xn[1];if(m(Be)==="object"&&Be!==null){if(!V(ue,me,Be,Nt,je,Pe))return!1}else if(!(je||me.has(Be)&&A(me.get(Be),Nt,!1,Pe)||V(ue,me,Be,Nt,!1,Pe)))return!1}return ue.size===0}return!0})(ie,oe,ce,be))return!1}else if(we===1)for(;se<ie.length;se++){if(!e(ie,se)){if(e(oe,se))return!1;for(var le=Object.keys(ie);se<le.length;se++){var de=le[se];if(!e(oe,de)||!A(ie[de],oe[de],ce,be))return!1}return le.length===Object.keys(oe).length}if(!e(oe,se)||!A(ie[se],oe[se],ce,be))return!1}for(se=0;se<Ae.length;se++){var ne=Ae[se];if(!A(ie[ne],oe[ne],ce,be))return!1}return!0})(L,M,F,z,B,G);return B.val1.delete(L),B.val2.delete(M),re}function I(L,M,F,B){for(var G=s(L),z=0;z<G.length;z++){var K=G[z];if(A(M,K,F,B))return L.delete(K),!0}return!1}function x(L){switch(m(L)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":L=+L;case"number":if(n(L))return!1}return!0}function C(L,M,F){var B=x(F);return B??(M.has(B)&&!L.has(B))}function Z(L,M,F,B,G){var z=x(F);if(z!=null)return z;var K=M.get(z);return!(K===void 0&&!M.has(z)||!A(B,K,!1,G))&&!L.has(z)&&A(B,K,!1,G)}function V(L,M,F,B,G,z){for(var K=s(L),k=0;k<K.length;k++){var D=K[k];if(A(F,D,G,z)&&A(B,M.get(D),G,z))return L.delete(D),!0}return!1}return ao={isDeepEqual:function(L,M){return A(L,M,!1)},isDeepStrictEqual:function(L,M){return A(L,M,!0)}}}function nt(){if(co)return Ft.exports;function r(P){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},r(P)}function u(P,I,x){return Object.defineProperty(P,"prototype",{writable:!1}),P}co=1;var m,i,s=Yc().codes,p=s.ERR_AMBIGUOUS_ARGUMENT,h=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,n=s.ERR_INVALID_RETURN_VALUE,t=s.ERR_MISSING_ARGS,e=wf(),o=pe().inspect,c=pe().types,a=c.isPromise,f=c.isRegExp,b=_f()(),v=un()(),d=(function(){if(Yn)return Vn;Yn=1;var P=Jl(),I=pn(),x=I(P("String.prototype.indexOf"));return Vn=function(C,Z){var V=P(C,!!Z);return typeof V=="function"&&x(C,".prototype.")>-1?I(V):V}})()("RegExp.prototype.test");function y(){var P=jf();m=P.isDeepEqual,i=P.isDeepStrictEqual}var g=!1,_=Ft.exports=q,E={};function O(P){throw P.message instanceof Error?P.message:new e(P)}function $(P,I,x,C){if(!x){var Z=!1;if(I===0)Z=!0,C="No value argument passed to `assert.ok()`";else if(C instanceof Error)throw C;var V=new e({actual:x,expected:!0,message:C,operator:"==",stackStartFn:P});throw V.generatedMessage=Z,V}}function q(){for(var P=arguments.length,I=new Array(P),x=0;x<P;x++)I[x]=arguments[x];$.apply(void 0,[q,I.length].concat(I))}_.fail=function P(I,x,C,Z,V){var L,M=arguments.length;if(M===0?L="Failed":M===1?(C=I,I=void 0):(g===!1&&(g=!0,(te.emitWarning?te.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),M===2&&(Z="!=")),C instanceof Error)throw C;var F={actual:I,expected:x,operator:Z===void 0?"fail":Z,stackStartFn:V||P};C!==void 0&&(F.message=C);var B=new e(F);throw L&&(B.message=L,B.generatedMessage=!0),B},_.AssertionError=e,_.ok=q,_.equal=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");I!=x&&O({actual:I,expected:x,message:C,operator:"==",stackStartFn:P})},_.notEqual=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");I==x&&O({actual:I,expected:x,message:C,operator:"!=",stackStartFn:P})},_.deepEqual=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");m===void 0&&y(),m(I,x)||O({actual:I,expected:x,message:C,operator:"deepEqual",stackStartFn:P})},_.notDeepEqual=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");m===void 0&&y(),m(I,x)&&O({actual:I,expected:x,message:C,operator:"notDeepEqual",stackStartFn:P})},_.deepStrictEqual=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");m===void 0&&y(),i(I,x)||O({actual:I,expected:x,message:C,operator:"deepStrictEqual",stackStartFn:P})},_.notDeepStrictEqual=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");m===void 0&&y(),i(I,x)&&O({actual:I,expected:x,message:C,operator:"notDeepStrictEqual",stackStartFn:P})},_.strictEqual=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");v(I,x)||O({actual:I,expected:x,message:C,operator:"strictEqual",stackStartFn:P})},_.notStrictEqual=function P(I,x,C){if(arguments.length<2)throw new t("actual","expected");v(I,x)&&O({actual:I,expected:x,message:C,operator:"notStrictEqual",stackStartFn:P})};var j=u((function P(I,x,C){var Z=this;(function(V,L){if(!(V instanceof L))throw new TypeError("Cannot call a class as a function")})(this,P),x.forEach((function(V){V in I&&(C!==void 0&&typeof C[V]=="string"&&f(I[V])&&d(I[V],C[V])?Z[V]=C[V]:Z[V]=I[V])}))}));function w(P,I,x,C){if(typeof I!="function"){if(f(I))return d(I,P);if(arguments.length===2)throw new h("expected",["Function","RegExp"],I);if(r(P)!=="object"||P===null){var Z=new e({actual:P,expected:I,message:x,operator:"deepStrictEqual",stackStartFn:C});throw Z.operator=C.name,Z}var V=Object.keys(I);if(I instanceof Error)V.push("name","message");else if(V.length===0)throw new l("error",I,"may not be an empty object");return m===void 0&&y(),V.forEach((function(L){typeof P[L]=="string"&&f(I[L])&&d(I[L],P[L])||(function(M,F,B,G,z,K){if(!(B in M)||!i(M[B],F[B])){if(!G){var k=new j(M,z),D=new j(F,z,M),Y=new e({actual:k,expected:D,operator:"deepStrictEqual",stackStartFn:K});throw Y.actual=M,Y.expected=F,Y.operator=K.name,Y}O({actual:M,expected:F,message:G,operator:K.name,stackStartFn:K})}})(P,I,L,x,V,C)})),!0}return I.prototype!==void 0&&P instanceof I||!Error.isPrototypeOf(I)&&I.call({},P)===!0}function S(P){if(typeof P!="function")throw new h("fn","Function",P);try{P()}catch(I){return I}return E}function R(P){return a(P)||P!==null&&r(P)==="object"&&typeof P.then=="function"&&typeof P.catch=="function"}function T(P){return Promise.resolve().then((function(){var I;if(typeof P=="function"){if(!R(I=P()))throw new n("instance of Promise","promiseFn",I)}else{if(!R(P))throw new h("promiseFn",["Function","Promise"],P);I=P}return Promise.resolve().then((function(){return I})).then((function(){return E})).catch((function(x){return x}))}))}function U(P,I,x,C){if(typeof x=="string"){if(arguments.length===4)throw new h("error",["Object","Error","Function","RegExp"],x);if(r(I)==="object"&&I!==null){if(I.message===x)throw new p("error/message",'The error message "'.concat(I.message,'" is identical to the message.'))}else if(I===x)throw new p("error/message",'The error "'.concat(I,'" is identical to the message.'));C=x,x=void 0}else if(x!=null&&r(x)!=="object"&&typeof x!="function")throw new h("error",["Object","Error","Function","RegExp"],x);if(I===E){var Z="";x&&x.name&&(Z+=" (".concat(x.name,")")),Z+=C?": ".concat(C):".";var V=P.name==="rejects"?"rejection":"exception";O({actual:void 0,expected:x,operator:P.name,message:"Missing expected ".concat(V).concat(Z),stackStartFn:P})}if(x&&!w(I,x,C,P))throw I}function N(P,I,x,C){if(I!==E){if(typeof x=="string"&&(C=x,x=void 0),!x||w(I,x)){var Z=C?": ".concat(C):".",V=P.name==="doesNotReject"?"rejection":"exception";O({actual:I,expected:x,operator:P.name,message:"Got unwanted ".concat(V).concat(Z,`
|
|
49
|
+
`)+'Actual message: "'.concat(I&&I.message,'"'),stackStartFn:P})}throw I}}function A(P,I,x,C,Z){if(!f(I))throw new h("regexp","RegExp",I);var V=Z==="match";if(typeof P!="string"||d(I,P)!==V){if(x instanceof Error)throw x;var L=!x;x=x||(typeof P!="string"?'The "string" argument must be of type string. Received type '+"".concat(r(P)," (").concat(o(P),")"):(V?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(o(I),`. Input:
|
|
50
|
+
|
|
51
|
+
`).concat(o(P),`
|
|
52
|
+
`));var M=new e({actual:P,expected:I,message:x,operator:Z,stackStartFn:C});throw M.generatedMessage=L,M}}function H(){for(var P=arguments.length,I=new Array(P),x=0;x<P;x++)I[x]=arguments[x];$.apply(void 0,[H,I.length].concat(I))}return _.throws=function P(I){for(var x=arguments.length,C=new Array(x>1?x-1:0),Z=1;Z<x;Z++)C[Z-1]=arguments[Z];U.apply(void 0,[P,S(I)].concat(C))},_.rejects=function P(I){for(var x=arguments.length,C=new Array(x>1?x-1:0),Z=1;Z<x;Z++)C[Z-1]=arguments[Z];return T(I).then((function(V){return U.apply(void 0,[P,V].concat(C))}))},_.doesNotThrow=function P(I){for(var x=arguments.length,C=new Array(x>1?x-1:0),Z=1;Z<x;Z++)C[Z-1]=arguments[Z];N.apply(void 0,[P,S(I)].concat(C))},_.doesNotReject=function P(I){for(var x=arguments.length,C=new Array(x>1?x-1:0),Z=1;Z<x;Z++)C[Z-1]=arguments[Z];return T(I).then((function(V){return N.apply(void 0,[P,V].concat(C))}))},_.ifError=function P(I){if(I!=null){var x="ifError got unwanted exception: ";r(I)==="object"&&typeof I.message=="string"?I.message.length===0&&I.constructor?x+=I.constructor.name:x+=I.message:x+=o(I);var C=new e({actual:I,expected:null,operator:"ifError",message:x,stackStartFn:P}),Z=I.stack;if(typeof Z=="string"){var V=Z.split(`
|
|
53
|
+
`);V.shift();for(var L=C.stack.split(`
|
|
54
|
+
`),M=0;M<V.length;M++){var F=L.indexOf(V[M]);if(F!==-1){L=L.slice(0,F);break}}C.stack="".concat(L.join(`
|
|
55
|
+
`),`
|
|
56
|
+
`).concat(V.join(`
|
|
57
|
+
`))}throw C}},_.match=function P(I,x,C){A(I,x,C,P,"match")},_.doesNotMatch=function P(I,x,C){A(I,x,C,P,"doesNotMatch")},_.strict=b(H,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict,Ft.exports}function Tf(){return lo||(lo=1,(function(r,u){var m=nt();function i(s){m(typeof s=="string","the list of characters must be a string!");var p=ge.byteLength(s);return function(h){m(typeof(h=h||10)=="number"&&h>=0,"the length of the random string must be a number!");for(var l="",n=0;n<h;n++)l+=s[Math.floor(p*Math.random())];return l}}(u=r.exports=i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62=u,u.base36=i("abcdefghijklmnopqrstuvwxyz0123456789"),u.base10=i("0123456789"),u.create=i})(Dt,Dt.exports)),Dt.exports}var fo,po,ho,mo,Bt,yo,lt={exports:{}},ft={exports:{}};function xf(){if(fo)return ft.exports;fo=1;var r=Ve(),u=r.randomBytes===r.pseudoRandomBytes?1:3;function m(i,s,p){r.randomBytes(i,(function(h,l){return h?--s?void setTimeout(m.bind(null,i,s,p),10):p(h):p(null,l)}))}return ft.exports=function(i,s){if(s!==void 0&&typeof s!="function")throw new TypeError("argument callback must be a function");if(!s&&!Bc.Promise)throw new TypeError("argument callback is required");return s?m(i,u,s):new Promise((function(p,h){m(i,u,(function(l,n){if(l)return h(l);p(n)}))}))},ft.exports.sync=function(i){for(var s=null,p=0;p<u;p++)try{return r.randomBytes(i)}catch(h){s=h}throw s},ft.exports}function kf(){if(mo)return ho;mo=1;var r=Ve();return ho=function(u,m){var i=String(u),s=String(m),p=r.pseudoRandomBytes(32);return(function(h,l){if(h.length!==l.length)return!1;if(r.timingSafeEqual)return r.timingSafeEqual(h,l);for(var n=0;n<h.length;n++)if(h[n]!==l[n])return!1;return!0})(r.createHmac("sha256",p).update(i).digest(),r.createHmac("sha256",p).update(s).digest())&&u===m}}function Af(){if(yo)return Bt;yo=1;var r=Tf(),u=(function(){if(po)return lt.exports;po=1;var n=xf(),t=/=+$/,e=/\+/g,o=/\//g;function c(f,b){n(f,(function(v,d){if(v)return b(v);b(null,a(d))}))}function a(f){return f.toString("base64").replace(t,"").replace(e,"-").replace(o,"_")}return lt.exports=function(f,b){if(b!==void 0&&typeof b!="function")throw new TypeError("argument callback must be a function");if(!b&&!Bc.Promise)throw new TypeError("argument callback is required");return b?c(f,b):new Promise((function(v,d){c(f,(function(y,g){if(y)return d(y);v(g)}))}))},lt.exports.sync=function(f){return a(n.sync(f))},lt.exports})(),m=kf(),i=Ve(),s=/=/g,p=/\+/g,h=/\//g;function l(n){if(!(this instanceof l))return new l(n);var t=n||{},e=t.saltLength!==void 0?t.saltLength:8;if(typeof e!="number"||!isFinite(e)||e<1)throw new TypeError("option saltLength must be finite number > 1");var o=t.secretLength!==void 0?t.secretLength:18;if(typeof o!="number"||!isFinite(o)||o<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=e,this.secretLength=o}return Bt=l,l.prototype.create=function(n){if(!n||typeof n!="string")throw new TypeError("argument secret is required");return this._tokenize(n,r(this.saltLength))},l.prototype.secret=function(n){return u(this.secretLength,n)},l.prototype.secretSync=function(){return u.sync(this.secretLength)},l.prototype._tokenize=function(n,t){return t+"-"+(e=t+"-"+n,i.createHash("sha1").update(e,"ascii").digest("base64").replace(p,"-").replace(h,"_").replace(s,""));var e},l.prototype.verify=function(n,t){if(!n||typeof n!="string"||!t||typeof t!="string")return!1;var e=t.indexOf("-");if(e===-1)return!1;var o=t.substr(0,e),c=this._tokenize(n,o);return m(t,c)},Bt}var go,vo,bo,wo,Eo,_o,So,Oo,jo,To={};function Rf(){return vo?go:(vo=1,go=r=>encodeURIComponent(r).replace(/[!'()*]/g,(u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`)))}function Pf(){if(wo)return bo;wo=1;var r="%[a-f0-9]{2}",u=new RegExp("("+r+")|([^%]+?)","gi"),m=new RegExp("("+r+")+","gi");function i(p,h){try{return[decodeURIComponent(p.join(""))]}catch{}if(p.length===1)return p;h=h||1;var l=p.slice(0,h),n=p.slice(h);return Array.prototype.concat.call([],i(l),i(n))}function s(p){try{return decodeURIComponent(p)}catch{for(var h=p.match(u)||[],l=1;l<h.length;l++)h=(p=i(h,l).join("")).match(u)||[];return p}}return bo=function(p){if(typeof p!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof p+"`");try{return p=p.replace(/\+/g," "),decodeURIComponent(p)}catch{return(function(l){for(var n={"%FE%FF":"��","%FF%FE":"��"},t=m.exec(l);t;){try{n[t[0]]=decodeURIComponent(t[0])}catch{var e=s(t[0]);e!==t[0]&&(n[t[0]]=e)}t=m.exec(l)}n["%C2"]="�";for(var o=Object.keys(n),c=0;c<o.length;c++){var a=o[c];l=l.replace(new RegExp(a,"g"),n[a])}return l})(p)}}}function If(){return _o?Eo:(_o=1,Eo=(r,u)=>{if(typeof r!="string"||typeof u!="string")throw new TypeError("Expected the arguments to be of type `string`");if(u==="")return[r];const m=r.indexOf(u);return m===-1?[r]:[r.slice(0,m),r.slice(m+u.length)]})}function Nf(){return jo||(jo=1,(function(r){const u=Rf(),m=Pf(),i=If(),s=Oo?So:(Oo=1,So=function(a,f){for(var b={},v=Object.keys(a),d=Array.isArray(f),y=0;y<v.length;y++){var g=v[y],_=a[g];(d?f.indexOf(g)!==-1:f(g,_,a))&&(b[g]=_)}return b});function p(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(a,f){return f.encode?f.strict?u(a):encodeURIComponent(a):a}function l(a,f){return f.decode?m(a):a}function n(a){return Array.isArray(a)?a.sort():typeof a=="object"?n(Object.keys(a)).sort(((f,b)=>Number(f)-Number(b))).map((f=>a[f])):a}function t(a){const f=a.indexOf("#");return f!==-1&&(a=a.slice(0,f)),a}function e(a){const f=(a=t(a)).indexOf("?");return f===-1?"":a.slice(f+1)}function o(a,f){return f.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):!f.parseBooleans||a===null||a.toLowerCase()!=="true"&&a.toLowerCase()!=="false"||(a=a.toLowerCase()==="true"),a}function c(a,f){p((f=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},f)).arrayFormatSeparator);const b=(function(d){let y;switch(d.arrayFormat){case"index":return(g,_,E)=>{y=/\[(\d*)\]$/.exec(g),g=g.replace(/\[\d*\]$/,""),y?(E[g]===void 0&&(E[g]={}),E[g][y[1]]=_):E[g]=_};case"bracket":return(g,_,E)=>{y=/(\[\])$/.exec(g),g=g.replace(/\[\]$/,""),y?E[g]!==void 0?E[g]=[].concat(E[g],_):E[g]=[_]:E[g]=_};case"comma":case"separator":return(g,_,E)=>{const O=typeof _=="string"&&_.includes(d.arrayFormatSeparator),$=typeof _=="string"&&!O&&l(_,d).includes(d.arrayFormatSeparator);_=$?l(_,d):_;const q=O||$?_.split(d.arrayFormatSeparator).map((j=>l(j,d))):_===null?_:l(_,d);E[g]=q};default:return(g,_,E)=>{E[g]!==void 0?E[g]=[].concat(E[g],_):E[g]=_}}})(f),v=Object.create(null);if(typeof a!="string"||!(a=a.trim().replace(/^[?#&]/,"")))return v;for(const d of a.split("&")){if(d==="")continue;let[y,g]=i(f.decode?d.replace(/\+/g," "):d,"=");g=g===void 0?null:["comma","separator"].includes(f.arrayFormat)?g:l(g,f),b(l(y,f),g,v)}for(const d of Object.keys(v)){const y=v[d];if(typeof y=="object"&&y!==null)for(const g of Object.keys(y))y[g]=o(y[g],f);else v[d]=o(y,f)}return f.sort===!1?v:(f.sort===!0?Object.keys(v).sort():Object.keys(v).sort(f.sort)).reduce(((d,y)=>{const g=v[y];return g&&typeof g=="object"&&!Array.isArray(g)?d[y]=n(g):d[y]=g,d}),Object.create(null))}r.extract=e,r.parse=c,r.stringify=(a,f)=>{if(!a)return"";p((f=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},f)).arrayFormatSeparator);const b=g=>f.skipNull&&a[g]==null||f.skipEmptyString&&a[g]==="",v=(function(g){switch(g.arrayFormat){case"index":return _=>(E,O)=>{const $=E.length;return O===void 0||g.skipNull&&O===null||g.skipEmptyString&&O===""?E:O===null?[...E,[h(_,g),"[",$,"]"].join("")]:[...E,[h(_,g),"[",h($,g),"]=",h(O,g)].join("")]};case"bracket":return _=>(E,O)=>O===void 0||g.skipNull&&O===null||g.skipEmptyString&&O===""?E:O===null?[...E,[h(_,g),"[]"].join("")]:[...E,[h(_,g),"[]=",h(O,g)].join("")];case"comma":case"separator":return _=>(E,O)=>O==null||O.length===0?E:E.length===0?[[h(_,g),"=",h(O,g)].join("")]:[[E,h(O,g)].join(g.arrayFormatSeparator)];default:return _=>(E,O)=>O===void 0||g.skipNull&&O===null||g.skipEmptyString&&O===""?E:O===null?[...E,h(_,g)]:[...E,[h(_,g),"=",h(O,g)].join("")]}})(f),d={};for(const g of Object.keys(a))b(g)||(d[g]=a[g]);const y=Object.keys(d);return f.sort!==!1&&y.sort(f.sort),y.map((g=>{const _=a[g];return _===void 0?"":_===null?h(g,f):Array.isArray(_)?_.reduce(v(g),[]).join("&"):h(g,f)+"="+h(_,f)})).filter((g=>g.length>0)).join("&")},r.parseUrl=(a,f)=>{f=Object.assign({decode:!0},f);const[b,v]=i(a,"#");return Object.assign({url:b.split("?")[0]||"",query:c(e(a),f)},f&&f.parseFragmentIdentifier&&v?{fragmentIdentifier:l(v,f)}:{})},r.stringifyUrl=(a,f)=>{f=Object.assign({encode:!0,strict:!0},f);const b=t(a.url).split("?")[0]||"",v=r.extract(a.url),d=r.parse(v,{sort:!1}),y=Object.assign(d,a.query);let g=r.stringify(y,f);g&&(g=`?${g}`);let _=(function(E){let O="";const $=E.indexOf("#");return $!==-1&&(O=E.slice($)),O})(a.url);return a.fragmentIdentifier&&(_=`#${h(a.fragmentIdentifier,f)}`),`${b}${g}${_}`},r.pick=(a,f,b)=>{b=Object.assign({parseFragmentIdentifier:!0},b);const{url:v,query:d,fragmentIdentifier:y}=r.parseUrl(a,b);return r.stringifyUrl({url:v,query:s(d,f),fragmentIdentifier:y},b)},r.exclude=(a,f,b)=>{const v=Array.isArray(f)?d=>!f.includes(d):(d,y)=>!f(d,y);return r.pick(a,v,b)}})(To)),To}var xo,ko,Ao={};function dn(){return ko?xo:(ko=1,xo=FormData)}var qt,Ro,Gt,Po,Io,No,qe={},pt={},Ht={exports:{}},We={};function Lf(){return Io||(Io=1,We.decode=We.parse=(function(){if(Ro)return qt;function r(m,i){return Object.prototype.hasOwnProperty.call(m,i)}Ro=1,qt=function(m,i,s,p){i=i||"&",s=s||"=";var h={};if(typeof m!="string"||m.length===0)return h;var l=/\+/g;m=m.split(i);var n=1e3;p&&typeof p.maxKeys=="number"&&(n=p.maxKeys);var t=m.length;n>0&&t>n&&(t=n);for(var e=0;e<t;++e){var o,c,a,f,b=m[e].replace(l,"%20"),v=b.indexOf(s);v>=0?(o=b.substr(0,v),c=b.substr(v+1)):(o=b,c=""),a=decodeURIComponent(o),f=decodeURIComponent(c),r(h,a)?u(h[a])?h[a].push(f):h[a]=[h[a],f]:h[a]=f}return h};var u=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};return qt})(),We.encode=We.stringify=(function(){if(Po)return Gt;Po=1;var r=function(s){switch(typeof s){case"string":return s;case"boolean":return s?"true":"false";case"number":return isFinite(s)?s:"";default:return""}};Gt=function(s,p,h,l){return p=p||"&",h=h||"=",s===null&&(s=void 0),typeof s=="object"?m(i(s),(function(n){var t=encodeURIComponent(r(n))+h;return u(s[n])?m(s[n],(function(e){return t+encodeURIComponent(r(e))})).join(p):t+encodeURIComponent(r(s[n]))})).join(p):l?encodeURIComponent(r(l))+h+encodeURIComponent(r(s)):""};var u=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function m(s,p){if(s.map)return s.map(p);for(var h=[],l=0;l<s.length;l++)h.push(p(s[l],l));return h}var i=Object.keys||function(s){var p=[];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&p.push(h);return p};return Gt})()),We}function el(){return No||(No=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0});var m=Lf();function i(h){return encodeURIComponent(h)}function s(h){return decodeURIComponent(h)}var p={decode:m.decode,encode:m.encode,parse:m.parse,stringify:m.stringify,escape:i,unescape:s};Object.defineProperty(u,"decode",{enumerable:!0,get:function(){return m.decode}}),Object.defineProperty(u,"encode",{enumerable:!0,get:function(){return m.encode}}),Object.defineProperty(u,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(u,"stringify",{enumerable:!0,get:function(){return m.stringify}}),u.default=p,u.escape=i,u.unescape=s,u=r.exports=p})(Ht,Ht.exports)),Ht.exports}var Lo,$o,ht={};function tl(){return Lo||(Lo=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.splice=function(r,u,m){m===void 0&&(m=1);for(var i=u;i<r.length-m;i++)r[i]=r[i+m];r.length-=m}),ht}function mn(){if($o)return pt;$o=1,Object.defineProperty(pt,"__esModule",{value:!0});var r=rf(),u=el(),m=tl();function i(h){var l=h.toLowerCase();return l==="referrer"?"referer":l}function s(h,l){return h==null?l:Array.isArray(h)?h.concat(l):[h,l]}var p=(function(){function h(l){var n=l.url,t=l.headers,e=l.rawHeaders,o=l.query;if(this.Url={},this.rawHeaders=[],n!=null&&(this.url=n),o!=null&&(this.query=Object.assign(this.query,typeof o=="string"?u.parse(o):o)),e){if(e.length%2==1)throw new TypeError("Expected raw headers length to be even, was "+e.length);this.rawHeaders=e.slice(0)}else this.headers=t}return Object.defineProperty(h.prototype,"url",{get:function(){return r.format(this.Url)},set:function(l){this.Url=r.parse(l,!0,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"query",{get:function(){return this.Url.query},set:function(l){this.Url.query=typeof l=="string"?u.parse(l):l,this.Url.search=null},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"headers",{get:function(){for(var l={},n=0;n<this.rawHeaders.length;n+=2){var t=i(this.rawHeaders[n]),e=s(l[t],this.rawHeaders[n+1]);l[t]=e}return l},set:function(l){if(this.rawHeaders=[],l)for(var n=0,t=Object.keys(l);n<t.length;n++){var e=t[n];this.append(e,l[e])}},enumerable:!0,configurable:!0}),h.prototype.toHeaders=function(){for(var l={},n=0;n<this.rawHeaders.length;n+=2){var t=this.rawHeaders[n],e=s(l[t],this.rawHeaders[n+1]);l[t]=e}return l},h.prototype.set=function(l,n){return this.remove(l),this.append(l,n),this},h.prototype.append=function(l,n){if(Array.isArray(n))for(var t=0,e=n;t<e.length;t++){var o=e[t];o!=null&&this.rawHeaders.push(l,o)}else n!=null&&this.rawHeaders.push(l,n);return this},h.prototype.name=function(l){for(var n=i(l),t=0;t<this.rawHeaders.length;t+=2)if(i(this.rawHeaders[t])===n)return this.rawHeaders[t]},h.prototype.get=function(l){for(var n=i(l),t=0;t<this.rawHeaders.length;t+=2)if(i(this.rawHeaders[t])===n)return this.rawHeaders[t+1]},h.prototype.getAll=function(l){for(var n=i(l),t=[],e=0;e<this.rawHeaders.length;e+=2)i(this.rawHeaders[e])===n&&t.push(this.rawHeaders[e+1]);return t},h.prototype.remove=function(l){for(var n=i(l),t=0;t<this.rawHeaders.length;t+=2)i(this.rawHeaders[t])===n&&m.splice(this.rawHeaders,t,2);return this},h.prototype.type=function(l){return arguments.length===0?(n=this.get("Content-Type"))==null?null:n.split(/ *; */,1)[0]:this.set("Content-Type",l);var n},h})();return pt.Base=p,pt}var Mo,dt,Co,Do,Fo,Ge={},zt={exports:{}};function $f(){return Mo||(Mo=1,(function(r,u){var m=typeof Reflect<"u"?Reflect.construct:void 0,i=Object.defineProperty,s=Error.captureStackTrace;function p(l){l!==void 0&&i(this,"message",{configurable:!0,value:l,writable:!0});var n=this.constructor.name;n!==void 0&&n!==this.name&&i(this,"name",{configurable:!0,value:n,writable:!0}),s(this,this.constructor)}s===void 0&&(s=function(l){var n=new Error;i(l,"stack",{configurable:!0,get:function(){var t=n.stack;return i(this,"stack",{configurable:!0,value:t,writable:!0}),t},set:function(t){i(l,"stack",{configurable:!0,value:t,writable:!0})}})}),p.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:p,writable:!0}});var h=(function(){function l(t,e){return i(t,"name",{configurable:!0,value:e})}try{var n=function(){};if(l(n,"foo"),n.name==="foo")return l}catch{}})();u=r.exports=function(l,n){if(n==null||n===Error)n=p;else if(typeof n!="function")throw new TypeError("super_ should be a function");var t;if(typeof l=="string")t=l,l=m!==void 0?function(){return m(n,arguments,this.constructor)}:function(){n.apply(this,arguments)},h!==void 0&&(h(l,t),t=void 0);else if(typeof l!="function")throw new TypeError("constructor should be either a string or a function");l.super_=l.super=n;var e={constructor:{configurable:!0,value:l,writable:!0}};return t!==void 0&&(e.name={configurable:!0,value:t,writable:!0}),l.prototype=Object.create(n.prototype,e),l},u.BaseError=p})(zt,zt.exports)),zt.exports}function rl(){if(Do)return Ge;Do=1;var r,u=Ge&&Ge.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,p){s.__proto__=p}||function(s,p){for(var h in p)p.hasOwnProperty(h)&&(s[h]=p[h])},function(s,p){function h(){this.constructor=s}r(s,p),s.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)});Object.defineProperty(Ge,"__esModule",{value:!0});var m=(function(){if(Co)return dt;Co=1;var h,s=dt&&dt.__extends||function(l,n){for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t]);function e(){this.constructor=l}l.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)},p=$f();function h(l,n){return n===void 0&&(n=h.BaseError),p(l,n)}return(function(l){var n=(function(t){function e(o,c){t.call(this,o),this.cause=c}return s(e,t),e.prototype.toString=function(){return t.prototype.toString.call(this)+(this.cause?`
|
|
58
|
+
Caused by: `+this.cause.toString():"")},e})(p.BaseError);l.BaseError=n})(h||(h={})),dt=h})(),i=(function(s){function p(h,l,n,t){var e=s.call(this,h,n)||this;return e.name="PopsicleError",e.code=l,e.popsicle=t,e}return u(p,s),p})(m.BaseError);return Ge.default=i,Ge}function Uo(){if(Fo)return qe;Fo=1;var r,u=qe&&qe.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,l){h.__proto__=l}||function(h,l){for(var n in l)l.hasOwnProperty(n)&&(h[n]=l[n])},function(h,l){function n(){this.constructor=h}r(h,l),h.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)});Object.defineProperty(qe,"__esModule",{value:!0});var m=mn(),i=tl(),s=rl(),p=(function(h){function l(n){var t=h.call(this,n)||this;return t.middleware=[],t.opened=!1,t.aborted=!1,t.uploaded=0,t.downloaded=0,t.timeout=0|n.timeout,t.method=(n.method||"GET").toUpperCase(),t.body=n.body,t.events=n.events||Object.create(null),t.transport=Object.assign({},n.transport),t.use(n.use||t.transport.use),t._promise=Promise.resolve().then((function(){return(function(e){var o=-1;function c(a){if(a<=o)throw new TypeError("`next()` called multiple times");if(e.aborted)return Promise.reject(e.error("Request aborted","EABORT"));o=a;var f=e.middleware[a]||function(){return e.handle()};return new Promise((function(b){return b(f(e,(function(){return c(a+1)})))}))}return c(0)})(t)})),t.once("abort",(function(){t.completed!==1&&(t.aborted=!0)})),t}return u(l,h),l.prototype.error=function(n,t,e){return new s.default(n,t,e,this)},l.prototype.then=function(n,t){return this._promise.then(n,t)},l.prototype.catch=function(n){return this._promise.then(null,n)},l.prototype.exec=function(n){this.then((function(t){return n(null,t)}),n)},l.prototype.toOptions=function(){return{url:this.url,method:this.method,body:this.body,transport:this.transport,timeout:this.timeout,rawHeaders:this.rawHeaders,use:this.middleware,events:this.events}},l.prototype.toJSON=function(){return{url:this.url,method:this.method,headers:this.headers,body:this.body,timeout:this.timeout}},l.prototype.clone=function(){return new l(this.toOptions())},l.prototype.use=function(n){return Array.isArray(n)?(t=this.middleware).push.apply(t,n):this.middleware.push(n),this;var t},l.prototype.on=function(n,t){return Object.prototype.hasOwnProperty.call(this.events,n)?this.events[n].push(t):this.events[n]=[t],this},l.prototype.off=function(n,t){if(Object.prototype.hasOwnProperty.call(this.events,n)){for(var e=this.events[n],o=-1,c=0;c<e.length;c++)if(e[c]===t||e[c].listener===t){o=c;break}o>-1&&(e.length===1?delete this.events[n]:i.splice(this.events[n],o))}return this},l.prototype.once=function(n,t){return this.on(n,(function(e,o,c){var a=!1,f=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];a||(a=!0,e.off(o,c),b.length===0?c.call(e):c.apply(e,b))};return f.listener=c,f})(this,n,t))},l.prototype.emit=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];if(!Object.prototype.hasOwnProperty.call(this.events,n))return this;var o=this.events[n];if(o.length===1)t.length===0?o[0].call(this):o[0].apply(this,t);else for(var c=0,a=o.slice();c<a.length;c++){var f=a[c];t.length===0?f.call(this):f.apply(this,t)}return this},l.prototype.abort=function(){return this.emit("abort")},l.prototype.handle=function(){var n=this;if(this.opened=!0,/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(this.url))return Promise.reject(this.error('Refused to connect to invalid URL "'+this.url+'"',"EINVALID"));var t,e=this.timeout,o=new Promise((function(c,a){e>0&&(t=setTimeout((function(){a(n.error("Timeout of "+e+"ms exceeded","ETIMEOUT")),n.abort()}),e)),n.once("abort",(function(){n.emit("progress"),a(n.error("Request aborted","EABORT")),n.transport.abort&&n.transport.abort(n)})),Promise.resolve(n.transport.open(n)).then((function(f){return c(f)}),(function(f){return a(f)}))}));return e>0&&o.then((function(){return clearTimeout(t)}),(function(){return clearTimeout(t)})),o},Object.defineProperty(l.prototype,"completed",{get:function(){return(this.uploaded+this.downloaded)/2},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"completedBytes",{get:function(){return this.uploadedBytes+this.downloadedBytes},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"totalBytes",{get:function(){return this.uploadLength+this.downloadLength},enumerable:!0,configurable:!0}),l.prototype._setUploadedBytes=function(n,t){n!==this.uploadedBytes&&(this.uploaded=t||n/this.uploadLength,this.uploadedBytes=n,this.emit("progress"))},l.prototype._setDownloadedBytes=function(n,t){n!==this.downloadedBytes&&(this.downloaded=t||n/this.downloadLength,this.downloadedBytes=n,this.emit("progress"))},l})(m.Base);return qe.Request=p,qe}var Bo,qo={},Ce={},Zt={},Go,Ho,zo,mt={};function nl(){if(Go)return mt;Go=1,Object.defineProperty(mt,"__esModule",{value:!0});var r=dn();return mt.default=function(u){var m=new r;return u&&Object.keys(u).forEach((function(i){m.append(i,u[i])})),m},mt}function Mf(){if(Ho)return Ce;Ho=1,Object.defineProperty(Ce,"__esModule",{value:!0});var r=dn(),u=el(),m=(Bo||(Bo=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.default=function(t){switch(Object.prototype.toString.call(t)){case"[object File]":case"[object Blob]":case"[object FormData]":case"[object ArrayBuffer]":return!0;default:return!1}}),Zt),i=nl(),s=/^application\/(?:[\w!#\$%&\*`\-\.\^~]*\+)?json$/i,p=/^application\/x-www-form-urlencoded$/i,h=/^multipart\/form-data$/i,l=/^\)\]\}',?\n/;function n(t){return function(){return t}}return Ce.wrap=n,Ce.headers=n((function(t,e){return t.get("Accept")||t.set("Accept","*/*"),t.remove("Host"),e()})),Ce.stringify=n((function(t,e){var o=t.body;if(Object(o)!==o)return t.body=o==null?null:String(o),e();if(m.default(o))return e();var c=t.type();c||(c="application/json",t.type(c));try{s.test(c)?t.body=JSON.stringify(o):h.test(c)?t.body=i.default(o):p.test(c)&&(t.body=u.stringify(o))}catch(a){return Promise.reject(t.error("Unable to stringify request body: "+a.message,"ESTRINGIFY",a))}return t.body instanceof r&&t.remove("Content-Type"),e()})),Ce.parse=function(t,e){for(var o=Array.isArray(t)?t:[t],c=0,a=o;c<a.length;c++){var f=a[c];if(f!=="json"&&f!=="urlencoded")throw new TypeError("Unexpected parse type: "+f)}return function(b,v){return v().then((function(d){var y=d.body,g=d.type();if(y==null||y==="")return d.body=null,d;if(g==null)throw b.error("Unable to parse empty response content type","EPARSE");if(typeof y!="string")throw b.error("Unable to parse non-string response body","EPARSE");for(var _=0,E=o;_<E.length;_++){var O=E[_];if(O==="json"&&s.test(g)){try{d.body=JSON.parse(y.replace(l,""))}catch($){throw b.error("Unable to parse response body: "+$.message,"EPARSE",$)}return d}if(O==="urlencoded"&&p.test(g))return d.body=u.parse(y),d}if(e!==!1)throw b.error("Unhandled response type: "+g,"EPARSE");return d}))}},Ce}function ol(){return zo||(zo=1,r=qo,Object.defineProperty(r,"__esModule",{value:!0}),(function(u){for(var m in u)r.hasOwnProperty(m)||(r[m]=u[m])})(Mf())),qo;var r}var Zo,Vo,yt={},gt={};function Cf(){if(Vo)return yt;Vo=1,Object.defineProperty(yt,"__esModule",{value:!0});var r=(function(){if(Zo)return gt;Zo=1,Object.defineProperty(gt,"__esModule",{value:!0});var u=function(){throw new TypeError("Cookie jars are not available in browsers")};return gt.CookieJar=u,gt})();return yt.default=function(u){return new r.CookieJar(u)},yt}var Yo,Ko,Wo,vt={},He={};function il(){if(Yo)return He;Yo=1;var r,u=He&&He.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var p in s)s.hasOwnProperty(p)&&(i[p]=s[p])},function(i,s){function p(){this.constructor=i}r(i,s),i.prototype=s===null?Object.create(s):(p.prototype=s.prototype,new p)});Object.defineProperty(He,"__esModule",{value:!0});var m=(function(i){function s(p){var h=i.call(this,p)||this;return h.body=p.body,h.status=p.status,h.statusText=p.statusText,h}return u(s,i),s.prototype.statusType=function(){return~~(this.status/100)},s.prototype.toJSON=function(){return{url:this.url,headers:this.headers,body:this.body,status:this.status,statusText:this.statusText}},s})(mn().Base);return He.Response=m,He}function Df(){if(Ko)return vt;Ko=1,Object.defineProperty(vt,"__esModule",{value:!0});var r=il(),u=ol();vt.createTransport=function(p){return{use:m,abort:i,open:function(h){return(function(l,n){return new Promise((function(t,e){var o=n.type||"text",c=l.url,a=l.method;if(window.location.protocol==="https:"&&/^http\:/.test(c))return e(l.error('The request to "'+c+'" was blocked',"EBLOCKED"));var f=l._raw=new XMLHttpRequest;function b(){return new Promise((function(d){return d(new r.Response({status:f.status===1223?204:f.status,statusText:f.statusText,rawHeaders:s(f.getAllResponseHeaders()),body:o==="text"?f.responseText:f.response,url:f.responseURL}))}))}f.onload=function(){return t(b())},f.onabort=function(){return t(b())},f.onerror=function(){return e(l.error('Unable to connect to "'+l.url+'"',"EUNAVAILABLE"))},f.onprogress=function(d){d.lengthComputable&&(l.downloadLength=d.total),l._setDownloadedBytes(d.loaded)},f.upload.onloadend=function(){return l.downloaded=1},a!=="GET"&&a!=="HEAD"&&f.upload?(f.upload.onprogress=function(d){d.lengthComputable&&(l.uploadLength=d.total),l._setUploadedBytes(d.loaded)},f.upload.onloadend=function(){return l.uploaded=1}):(l.uploadLength=0,l._setUploadedBytes(0,1));try{f.open(a,c)}catch(d){return e(l.error('Refused to connect to "'+c+'"',"ECSP",d))}if(n.withCredentials&&(f.withCredentials=!0),n.overrideMimeType&&f.overrideMimeType(n.overrideMimeType),o!=="text")try{f.responseType=o}finally{if(f.responseType!==o)return e(l.error("Unsupported type: "+o,"ETYPE"))}for(var v=0;v<l.rawHeaders.length;v+=2)f.setRequestHeader(l.rawHeaders[v],l.rawHeaders[v+1]);f.send(l.body)}))})(h,p)}}};var m=[u.stringify(),u.headers()];function i(p){p._raw.abort()}function s(p){for(var h=[],l=0,n=p.split(/\r?\n/);l<n.length;l++){var t=n[l];if(t){var e=t.indexOf(":"),o=t.substr(0,e).trim(),c=t.substr(e+1).trim();h.push(o,c)}}return h}return vt}var Jo,fe={};function Fe(){return Jo||(Jo=1,fe.endianness=function(){return"LE"},fe.hostname=function(){return typeof location<"u"?location.hostname:""},fe.loadavg=function(){return[]},fe.uptime=function(){return 0},fe.freemem=function(){return Number.MAX_VALUE},fe.totalmem=function(){return Number.MAX_VALUE},fe.cpus=function(){return[]},fe.type=function(){return"Browser"},fe.release=function(){return typeof navigator<"u"?navigator.appVersion:""},fe.networkInterfaces=fe.getNetworkInterfaces=function(){return{}},fe.arch=function(){return"javascript"},fe.platform=function(){return"browser"},fe.tmpdir=fe.tmpDir=function(){return"/tmp"},fe.EOL=`
|
|
59
|
+
`,fe.homedir=function(){return"/"}),fe}var Vt,Xo,Qo={},bt={};function ve(){if(Xo)return Vt;function r(l){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r(l)}function u(l,n,t){return n=p(n),(function(e,o){if(o&&(r(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c})(e)})(l,i()?Reflect.construct(n,t||[],p(l).constructor):n.apply(l,t))}function m(l){var n=typeof Map=="function"?new Map:void 0;return m=function(t){if(t===null||!(function(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}})(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return(function(o,c,a){if(i())return Reflect.construct.apply(null,arguments);var f=[null];f.push.apply(f,c);var b=new(o.bind.apply(o,f));return a&&s(b,a.prototype),b})(t,arguments,p(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s(e,t)},m(l)}function i(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(i=function(){return!!l})()}function s(l,n){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(l,n)}function p(l){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},p(l)}Xo=1;var h=(function(l){function n(e){var o;return(function(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")})(this,n),o=u(this,n,[`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
60
|
+
Found: `.concat(e.toString().split(`
|
|
61
|
+
`)[0],`
|
|
62
|
+
`)]),Error.captureStackTrace(o,n),o}return(function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),o&&s(e,o)})(n,l),t=n,Object.defineProperty(t,"prototype",{writable:!1}),t;var t})(m(Error));return Vt=function(l){if(l.length>2)throw new h(l);function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}function t(e){return new n(e)}return n.prototype.transform=l,t.Format=n,t},Vt}var ei,ti,ri,ni,oi,Je={exports:{}},ii={exports:{}},si={exports:{}},ai={exports:{}};function Ff(){return ei||(ei=1,(function(r){var u={};r.exports=u;var m={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(m).forEach((function(i){var s=m[i],p=u[i]=[];p.open="\x1B["+s[0]+"m",p.close="\x1B["+s[1]+"m"}))})(ai)),ai.exports}function Uf(){return ri?ti:(ri=1,ti=function(r,u){var m=(u=u||te.argv||[]).indexOf("--"),i=/^-{1,2}/.test(r)?"":"--",s=u.indexOf(i+r);return s!==-1&&(m===-1||s<m)})}function Bf(){if(oi)return ni;oi=1;var r=Fe(),u=Uf(),m={},i=void 0;function s(p){var h=(function(l){if(i===!1)return 0;if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2;if(l&&!l.isTTY&&i!==!0)return 0;var n=i?1:0;if(te.platform==="win32"){var t=r.release().split(".");return Number(te.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in m)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(o){return o in m}))||m.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in m){var e=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:n})(p);return(function(l){return l!==0&&{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}})(h)}return u("no-color")||u("no-colors")||u("color=false")?i=!1:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(i=!0),"FORCE_COLOR"in m&&(i=m.FORCE_COLOR.length===0||parseInt(m.FORCE_COLOR,10)!==0),ni={supportsColor:s,stdout:s(te.stdout),stderr:s(te.stderr)}}var ui,ci={exports:{}},li,fi={exports:{}},pi,hi={exports:{}},di,mi={exports:{}},yi,gi={exports:{}},vi,bi,wi,Ei={exports:{}};function qf(){return bi||(bi=1,(function(r){var u={};r.exports=u,u.themes={};var m=pe(),i=u.styles=Ff(),s=Object.defineProperties,p=new RegExp(/[\r\n]+/g);u.supportsColor=Bf().supportsColor,u.enabled===void 0&&(u.enabled=u.supportsColor()!==!1),u.enable=function(){u.enabled=!0},u.disable=function(){u.enabled=!1},u.stripColors=u.strip=function(f){return(""+f).replace(/\x1B\[\d+m/g,"")},u.stylize=function(f,b){if(!u.enabled)return f+"";var v=i[b];return!v&&b in u?u[b](f):v.open+f+v.close};var h=/[|\\{}()[\]^$+*?.]/g;function l(f){var b=function v(){return o.apply(v,arguments)};return b._styles=f,b.__proto__=e,b}var n,t=(n={},i.grey=i.gray,Object.keys(i).forEach((function(f){i[f].closeRe=new RegExp((function(b){if(typeof b!="string")throw new TypeError("Expected a string");return b.replace(h,"\\$&")})(i[f].close),"g"),n[f]={get:function(){return l(this._styles.concat(f))}}})),n),e=s((function(){}),t);function o(){var f=Array.prototype.slice.call(arguments).map((function(g){return g!=null&&g.constructor===String?g:m.inspect(g)})).join(" ");if(!u.enabled||!f)return f;for(var b=f.indexOf(`
|
|
63
|
+
`)!=-1,v=this._styles,d=v.length;d--;){var y=i[v[d]];f=y.open+f.replace(y.closeRe,y.open)+y.close,b&&(f=f.replace(p,(function(g){return y.close+g+y.open})))}return f}u.setTheme=function(f){if(typeof f!="string")for(var b in f)(function(v){u[v]=function(d){if(typeof f[v]=="object"){var y=d;for(var g in f[v])y=u[f[v][g]](y);return y}return u[f[v]](d)}})(b);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var c=function(f,b){var v=b.split("");return(v=v.map(f)).join("")};for(var a in u.trap=(ui||(ui=1,ci.exports=function(f,b){var v="";f=(f=f||"Run the trap, drop the bass").split("");var d={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return f.forEach((function(y){y=y.toLowerCase();var g=d[y]||[" "],_=Math.floor(Math.random()*g.length);v+=d[y]!==void 0?d[y][_]:y})),v}),ci.exports),u.zalgo=(li||(li=1,fi.exports=function(f,b){f=f||" he is here ";var v={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},d=[].concat(v.up,v.down,v.mid);function y(_){return Math.floor(Math.random()*_)}function g(_){var E=!1;return d.filter((function(O){E=O===_})),E}return(function(_,E){var O,$,q="";for($ in(E=E||{}).up=E.up===void 0||E.up,E.mid=E.mid===void 0||E.mid,E.down=E.down===void 0||E.down,E.size=E.size!==void 0?E.size:"maxi",_=_.split(""))if(!g($)){switch(q+=_[$],O={up:0,down:0,mid:0},E.size){case"mini":O.up=y(8),O.mid=y(2),O.down=y(8);break;case"maxi":O.up=y(16)+3,O.mid=y(4)+1,O.down=y(64)+3;break;default:O.up=y(8)+1,O.mid=y(6)/2,O.down=y(8)+1}var j=["up","mid","down"];for(var w in j)for(var S=j[w],R=0;R<=O[S];R++)E[S]&&(q+=v[S][y(v[S].length)])}return q})(f,b)}),fi.exports),u.maps={},u.maps.america=(pi||(pi=1,hi.exports=function(f){return function(b,v,d){if(b===" ")return b;switch(v%3){case 0:return f.red(b);case 1:return f.white(b);case 2:return f.blue(b)}}}),hi.exports)(u),u.maps.zebra=(di||(di=1,mi.exports=function(f){return function(b,v,d){return v%2==0?b:f.inverse(b)}}),mi.exports)(u),u.maps.rainbow=(yi||(yi=1,gi.exports=function(f){var b=["red","yellow","green","blue","magenta"];return function(v,d,y){return v===" "?v:f[b[d++%b.length]](v)}}),gi.exports)(u),u.maps.random=(vi||(vi=1,Ei.exports=function(f){var b=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(v,d,y){return v===" "?v:f[b[Math.round(Math.random()*(b.length-2))]](v)}}),Ei.exports)(u),u.maps)(function(f){u[f]=function(b){return c(u.maps[f],b)}})(a);s(u,(function(){var f={};return Object.keys(t).forEach((function(b){f[b]={get:function(){return l([b])}}})),f})())})(si)),si.exports}function sl(){return wi||(wi=1,(function(r){var u=qf();r.exports=u})(ii)),ii.exports}var _i,Si={},Oi={},Yt={},ji,Kt={},Ti,xi,ki,Ai,Wt,Ri,Pi,Ii,Jt={};function Gf(){return xi||(xi=1,r=Oi,Object.defineProperty(r,"cli",{value:(_i||(_i=1,Yt.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},Yt.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),Yt)}),Object.defineProperty(r,"npm",{value:(ji||(ji=1,Kt.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},Kt.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),Kt)}),Object.defineProperty(r,"syslog",{value:(Ti||(Ti=1,Jt.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},Jt.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),Jt)})),Oi;var r}function ae(){return ki||(ki=1,r=Si,Object.defineProperty(r,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(r,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(r,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(r,"configs",{value:Gf()})),Si;var r}function cn(){if(Ai)return Je.exports;function r(t){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}function u(t,e){for(var o=0;o<e.length;o++){var c=e[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,m(c.key),c)}}function m(t){var e=(function(o,c){if(r(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var f=a.call(o,c);if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)})(t,"string");return r(e)=="symbol"?e:e+""}Ai=1;var i=sl(),s=ae(),p=s.LEVEL,h=s.MESSAGE;i.enabled=!0;var l=/\s+/,n=(function(){function t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")})(this,t),a.colors&&this.addColors(a.colors),this.options=a}return e=t,c=[{key:"addColors",value:function(a){var f=Object.keys(a).reduce((function(b,v){return b[v]=l.test(a[v])?a[v].split(l):a[v],b}),{});return t.allColors=Object.assign({},t.allColors||{},f),t.allColors}}],(o=[{key:"addColors",value:function(a){return t.addColors(a)}},{key:"colorize",value:function(a,f,b){if(b===void 0&&(b=f),!Array.isArray(t.allColors[a]))return i[t.allColors[a]](b);for(var v=0,d=t.allColors[a].length;v<d;v++)b=i[t.allColors[a][v]](b);return b}},{key:"transform",value:function(a,f){return f.all&&typeof a[h]=="string"&&(a[h]=this.colorize(a[p],a.level,a[h])),(f.level||f.all||!f.message)&&(a.level=this.colorize(a[p],a.level)),(f.all||f.message)&&(a.message=this.colorize(a[p],a.level,a.message)),a}}])&&u(e.prototype,o),c&&u(e,c),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o,c})();return Je.exports=function(t){return new n(t)},Je.exports.Colorizer=Je.exports.Format=n,Je.exports}function Hf(){if(Ii)return Pi;Ii=1;var r=ve();return Pi=r((function(u){return u.message=" ".concat(u.message),u}))}var Ni,Li,wt={exports:{}},Xe={exports:{}};function al(){if(Ni)return Xe.exports;function r(e){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r(e)}function u(e){return(function(o){if(Array.isArray(o))return m(o)})(e)||(function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)})(e)||(function(o,c){if(o){if(typeof o=="string")return m(o,c);var a={}.toString.call(o).slice(8,-1);return a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set"?Array.from(o):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(o,c):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(e,o){(o==null||o>e.length)&&(o=e.length);for(var c=0,a=Array(o);c<o;c++)a[c]=e[c];return a}function i(e,o){for(var c=0;c<o.length;c++){var a=o[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,s(a.key),a)}}function s(e){var o=(function(c,a){if(r(c)!="object"||!c)return c;var f=c[Symbol.toPrimitive];if(f!==void 0){var b=f.call(c,a);if(r(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)})(e,"string");return r(o)=="symbol"?o:o+""}Ni=1;var p=ae(),h=p.configs,l=p.LEVEL,n=p.MESSAGE,t=(function(){function e(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:h.npm.levels};(function(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")})(this,e),this.paddings=e.paddingForLevels(f.levels,f.filler),this.options=f}return o=e,a=[{key:"getLongestLevel",value:function(f){var b=Object.keys(f).map((function(v){return v.length}));return Math.max.apply(Math,u(b))}},{key:"paddingForLevel",value:function(f,b,v){var d=v+1-f.length,y=Math.floor(d/b.length);return"".concat(b).concat(b.repeat(y)).slice(0,d)}},{key:"paddingForLevels",value:function(f){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",v=e.getLongestLevel(f);return Object.keys(f).reduce((function(d,y){return d[y]=e.paddingForLevel(y,b,v),d}),{})}}],(c=[{key:"transform",value:function(f,b){return f.message="".concat(this.paddings[f[l]]).concat(f.message),f[n]&&(f[n]="".concat(this.paddings[f[l]]).concat(f[n])),f}}])&&i(o.prototype,c),a&&i(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,c,a})();return Xe.exports=function(e){return new t(e)},Xe.exports.Padder=Xe.exports.Format=t,Xe.exports}function zf(){if(Li)return wt.exports;function r(t){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}function u(t,e,o){return e&&(function(c,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(c,m(b.key),b)}})(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t){var e=(function(o,c){if(r(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var f=a.call(o,c);if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)})(t,"string");return r(e)=="symbol"?e:e+""}Li=1;var i=cn().Colorizer,s=al().Padder,p=ae(),h=p.configs,l=p.MESSAGE,n=(function(){return u((function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),e.levels||(e.levels=h.cli.levels),this.colorizer=new i(e),this.padder=new s(e),this.options=e}),[{key:"transform",value:function(t,e){return this.colorizer.transform(this.padder.transform(t,e),e),t[l]="".concat(t.level,":").concat(t.message),t}}])})();return wt.exports=function(t){return new n(t)},wt.exports.Format=n,wt.exports}var $i,Mi,Ci,Et={exports:{}};function Zf(){if($i)return Et.exports;$i=1;var r=ve();function u(i){if(i.every(m))return function(s){for(var p=s,h=0;h<i.length;h++)if(!(p=i[h].transform(p,i[h].options)))return!1;return p}}function m(i){if(typeof i.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
|
65
|
+
`));return!0}return Et.exports=function(){for(var i=arguments.length,s=new Array(i),p=0;p<i;p++)s[p]=arguments[p];var h=r(u(s)),l=h();return l.Format=h.Format,l},Et.exports.cascade=u,Et.exports}function Vf(){if(Ci)return Mi;function r(h){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},r(h)}function u(h,l,n){return(l=(function(t){var e=(function(o,c){if(r(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var f=a.call(o,c);if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)})(t,"string");return r(e)=="symbol"?e:e+""})(l))in h?Object.defineProperty(h,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):h[l]=n,h}Ci=1;var m=ve(),i=ae(),s=i.LEVEL,p=i.MESSAGE;return Mi=m((function(h,l){var n=l.stack,t=l.cause;if(h instanceof Error){var e=Object.assign({},h,u(u(u({level:h.level},s,h[s]||h.level),"message",h.message),p,h[p]||h.message));return n&&(e.stack=h.stack),t&&(e.cause=h.cause),e}if(!(h.message instanceof Error))return h;var o=h.message;return Object.assign(h,o),h.message=o.message,h[p]=o.message,n&&(h.stack=o.stack),t&&(h.cause=o.cause),h}))}var Di,Fi,Ui,Bi,qi,Gi,Hi,Xt,zi,Zi,Vi,Yi,Ki,Qt,Wi,er={exports:{}};function ut(){return Di||(Di=1,(function(r,u){const{hasOwnProperty:m}=Object.prototype,i=c();i.configure=c,i.stringify=i,i.default=i,u.stringify=i,u.configure=c,r.exports=i;const s=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function p(a){return a.length<5e3&&!s.test(a)?`"${a}"`:JSON.stringify(a)}function h(a,f){if(a.length>200||f)return a.sort(f);for(let b=1;b<a.length;b++){const v=a[b];let d=b;for(;d!==0&&a[d-1]>v;)a[d]=a[d-1],d--;a[d]=v}return a}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function n(a){return l.call(a)!==void 0&&a.length!==0}function t(a,f,b){a.length<b&&(b=a.length);const v=f===","?"":" ";let d=`"0":${v}${a[0]}`;for(let y=1;y<b;y++)d+=`${f}"${y}":${v}${a[y]}`;return d}function e(a,f){let b;if(m.call(a,f)){if(b=a[f],typeof b!="number")throw new TypeError(`The "${f}" argument must be of type number`);if(!Number.isInteger(b))throw new TypeError(`The "${f}" argument must be an integer`);if(b<1)throw new RangeError(`The "${f}" argument must be >= 1`)}return b===void 0?1/0:b}function o(a){return a===1?"1 item":`${a} items`}function c(a){const f=(function(j){if(m.call(j,"strict")){const w=j.strict;if(typeof w!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(w)return S=>{let R="Object can not safely be stringified. Received type "+typeof S;throw typeof S!="function"&&(R+=` (${S.toString()})`),new Error(R)}}})(a={...a});f&&(a.bigint===void 0&&(a.bigint=!1),"circularValue"in a||(a.circularValue=Error));const b=(function(j){if(m.call(j,"circularValue")){const w=j.circularValue;if(typeof w=="string")return`"${w}"`;if(w==null)return w;if(w===Error||w===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'})(a),v=(function(j,w){let S;if(m.call(j,w)&&(S=j[w],typeof S!="boolean"))throw new TypeError(`The "${w}" argument must be of type boolean`);return S===void 0||S})(a,"bigint"),d=(function(j){let w;if(m.call(j,"deterministic")&&(w=j.deterministic,typeof w!="boolean"&&typeof w!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return w===void 0||w})(a),y=typeof d=="function"?d:void 0,g=e(a,"maximumDepth"),_=e(a,"maximumBreadth");function E(j,w,S,R,T,U){let N=w[j];switch(typeof N=="object"&&N!==null&&typeof N.toJSON=="function"&&(N=N.toJSON(j)),N=R.call(w,j,N),typeof N){case"string":return p(N);case"object":{if(N===null)return"null";if(S.indexOf(N)!==-1)return b;let A="",H=",";const P=U;if(Array.isArray(N)){if(N.length===0)return"[]";if(g<S.length+1)return'"[Array]"';S.push(N),T!==""&&(A+=`
|
|
66
|
+
${U+=T}`,H=`,
|
|
67
|
+
${U}`);const L=Math.min(N.length,_);let M=0;for(;M<L-1;M++){const B=E(String(M),N,S,R,T,U);A+=B!==void 0?B:"null",A+=H}const F=E(String(M),N,S,R,T,U);return A+=F!==void 0?F:"null",N.length-1>_&&(A+=`${H}"... ${o(N.length-_-1)} not stringified"`),T!==""&&(A+=`
|
|
68
|
+
${P}`),S.pop(),`[${A}]`}let I=Object.keys(N);const x=I.length;if(x===0)return"{}";if(g<S.length+1)return'"[Object]"';let C="",Z="";T!==""&&(H=`,
|
|
69
|
+
${U+=T}`,C=" ");const V=Math.min(x,_);d&&!n(N)&&(I=h(I,y)),S.push(N);for(let L=0;L<V;L++){const M=I[L],F=E(M,N,S,R,T,U);F!==void 0&&(A+=`${Z}${p(M)}:${C}${F}`,Z=H)}return x>_&&(A+=`${Z}"...":${C}"${o(x-_)} not stringified"`,Z=H),T!==""&&Z.length>1&&(A=`
|
|
70
|
+
${U}${A}
|
|
71
|
+
${P}`),S.pop(),`{${A}}`}case"number":return isFinite(N)?String(N):f?f(N):"null";case"boolean":return N===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(N);default:return f?f(N):void 0}}function O(j,w,S,R,T,U){switch(typeof w=="object"&&w!==null&&typeof w.toJSON=="function"&&(w=w.toJSON(j)),typeof w){case"string":return p(w);case"object":{if(w===null)return"null";if(S.indexOf(w)!==-1)return b;const N=U;let A="",H=",";if(Array.isArray(w)){if(w.length===0)return"[]";if(g<S.length+1)return'"[Array]"';S.push(w),T!==""&&(A+=`
|
|
72
|
+
${U+=T}`,H=`,
|
|
73
|
+
${U}`);const x=Math.min(w.length,_);let C=0;for(;C<x-1;C++){const V=O(String(C),w[C],S,R,T,U);A+=V!==void 0?V:"null",A+=H}const Z=O(String(C),w[C],S,R,T,U);return A+=Z!==void 0?Z:"null",w.length-1>_&&(A+=`${H}"... ${o(w.length-_-1)} not stringified"`),T!==""&&(A+=`
|
|
74
|
+
${N}`),S.pop(),`[${A}]`}S.push(w);let P="";T!==""&&(H=`,
|
|
75
|
+
${U+=T}`,P=" ");let I="";for(const x of R){const C=O(x,w[x],S,R,T,U);C!==void 0&&(A+=`${I}${p(x)}:${P}${C}`,I=H)}return T!==""&&I.length>1&&(A=`
|
|
76
|
+
${U}${A}
|
|
77
|
+
${N}`),S.pop(),`{${A}}`}case"number":return isFinite(w)?String(w):f?f(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(w);default:return f?f(w):void 0}}function $(j,w,S,R,T){switch(typeof w){case"string":return p(w);case"object":{if(w===null)return"null";if(typeof w.toJSON=="function"){if(typeof(w=w.toJSON(j))!="object")return $(j,w,S,R,T);if(w===null)return"null"}if(S.indexOf(w)!==-1)return b;const U=T;if(Array.isArray(w)){if(w.length===0)return"[]";if(g<S.length+1)return'"[Array]"';S.push(w);let C=`
|
|
78
|
+
${T+=R}`;const Z=`,
|
|
79
|
+
${T}`,V=Math.min(w.length,_);let L=0;for(;L<V-1;L++){const F=$(String(L),w[L],S,R,T);C+=F!==void 0?F:"null",C+=Z}const M=$(String(L),w[L],S,R,T);return C+=M!==void 0?M:"null",w.length-1>_&&(C+=`${Z}"... ${o(w.length-_-1)} not stringified"`),C+=`
|
|
80
|
+
${U}`,S.pop(),`[${C}]`}let N=Object.keys(w);const A=N.length;if(A===0)return"{}";if(g<S.length+1)return'"[Object]"';const H=`,
|
|
81
|
+
${T+=R}`;let P="",I="",x=Math.min(A,_);n(w)&&(P+=t(w,H,_),N=N.slice(w.length),x-=w.length,I=H),d&&(N=h(N,y)),S.push(w);for(let C=0;C<x;C++){const Z=N[C],V=$(Z,w[Z],S,R,T);V!==void 0&&(P+=`${I}${p(Z)}: ${V}`,I=H)}return A>_&&(P+=`${I}"...": "${o(A-_)} not stringified"`,I=H),I!==""&&(P=`
|
|
82
|
+
${T}${P}
|
|
83
|
+
${U}`),S.pop(),`{${P}}`}case"number":return isFinite(w)?String(w):f?f(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(w);default:return f?f(w):void 0}}function q(j,w,S){switch(typeof w){case"string":return p(w);case"object":{if(w===null)return"null";if(typeof w.toJSON=="function"){if(typeof(w=w.toJSON(j))!="object")return q(j,w,S);if(w===null)return"null"}if(S.indexOf(w)!==-1)return b;let R="";const T=w.length!==void 0;if(T&&Array.isArray(w)){if(w.length===0)return"[]";if(g<S.length+1)return'"[Array]"';S.push(w);const P=Math.min(w.length,_);let I=0;for(;I<P-1;I++){const C=q(String(I),w[I],S);R+=C!==void 0?C:"null",R+=","}const x=q(String(I),w[I],S);return R+=x!==void 0?x:"null",w.length-1>_&&(R+=`,"... ${o(w.length-_-1)} not stringified"`),S.pop(),`[${R}]`}let U=Object.keys(w);const N=U.length;if(N===0)return"{}";if(g<S.length+1)return'"[Object]"';let A="",H=Math.min(N,_);T&&n(w)&&(R+=t(w,",",_),U=U.slice(w.length),H-=w.length,A=","),d&&(U=h(U,y)),S.push(w);for(let P=0;P<H;P++){const I=U[P],x=q(I,w[I],S);x!==void 0&&(R+=`${A}${p(I)}:${x}`,A=",")}return N>_&&(R+=`${A}"...":"${o(N-_)} not stringified"`),S.pop(),`{${R}}`}case"number":return isFinite(w)?String(w):f?f(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(w);default:return f?f(w):void 0}}return function(j,w,S){if(arguments.length>1){let R="";if(typeof S=="number"?R=" ".repeat(Math.min(S,10)):typeof S=="string"&&(R=S.slice(0,10)),w!=null){if(typeof w=="function")return E("",{"":j},[],w,R,"");if(Array.isArray(w))return O("",j,[],(function(T){const U=new Set;for(const N of T)typeof N!="string"&&typeof N!="number"||U.add(String(N));return U})(w),R,"")}if(R.length!==0)return $("",j,[],R,"")}return q("",j,[])}}})(er,er.exports)),er.exports}function Yf(){if(Ui)return Fi;Ui=1;var r=ve(),u=ae().MESSAGE,m=ut();function i(s,p){return typeof p=="bigint"?p.toString():p}return Fi=r((function(s,p){var h=m.configure(p);return s[u]=h(s,p.replacer||i,p.space),s}))}function Kf(){if(qi)return Bi;qi=1;var r=ve();return Bi=r((function(u,m){return m.message?(u.message="[".concat(m.label,"] ").concat(u.message),u):(u.label=m.label,u)}))}function Wf(){if(Hi)return Gi;Hi=1;var r=ve(),u=ae().MESSAGE,m=ut();return Gi=r((function(i){var s={};return i.message&&(s["@message"]=i.message,delete i.message),i.timestamp&&(s["@timestamp"]=i.timestamp,delete i.timestamp),s["@fields"]=i,i[u]=m(s),i}))}function Jf(){if(zi)return Xt;function r(i){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},r(i)}function u(i,s,p){return(s=(function(h){var l=(function(n,t){if(r(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var o=e.call(n,t);if(r(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)})(h,"string");return r(l)=="symbol"?l:l+""})(s))in i?Object.defineProperty(i,s,{value:p,enumerable:!0,configurable:!0,writable:!0}):i[s]=p,i}zi=1;var m=ve();return Xt=m((function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p="metadata";s.key&&(p=s.key);var h=[];return s.fillExcept||s.fillWith||(h.push("level"),h.push("message")),s.fillExcept&&(h=s.fillExcept),h.length>0?(function(l,n,t){var e=n.reduce((function(c,a){return c[a]=l[a],delete l[a],c}),{}),o=Object.keys(l).reduce((function(c,a){return c[a]=l[a],delete l[a],c}),{});return Object.assign(l,e,u({},t,o)),l})(i,h,p):s.fillWith?(function(l,n,t){return l[t]=n.reduce((function(e,o){return e[o]=l[o],delete l[o],e}),{}),l})(i,s.fillWith,p):i})),Xt}function ul(){if(Vi)return Zi;Vi=1;var r=1e3,u=60*r,m=60*u,i=24*m,s=7*i,p=365.25*i;function h(l,n,t,e){var o=n>=1.5*t;return Math.round(l/t)+" "+e+(o?"s":"")}return Zi=function(l,n){n=n||{};var t=typeof l;if(t==="string"&&l.length>0)return(function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var c=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*p;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*m;case"minutes":case"minute":case"mins":case"min":case"m":return c*u;case"seconds":case"second":case"secs":case"sec":case"s":return c*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}})(l);if(t==="number"&&isFinite(l))return n.long?(function(e){var o=Math.abs(e);return o>=i?h(e,o,i,"day"):o>=m?h(e,o,m,"hour"):o>=u?h(e,o,u,"minute"):o>=r?h(e,o,r,"second"):e+" ms"})(l):(function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=m?Math.round(e/m)+"h":o>=u?Math.round(e/u)+"m":o>=r?Math.round(e/r)+"s":e+"ms"})(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}}function Xf(){if(Ki)return Yi;Ki=1;var r=void 0,u=ve(),m=ul();return Yi=u((function(i){var s=+new Date;return r.diff=s-(r.prevTime||s),r.prevTime=s,i.ms="+".concat(m(r.diff)),i}))}function Qf(){if(Wi)return Qt;Wi=1;var r=pe().inspect,u=ve(),m=ae(),i=m.LEVEL,s=m.MESSAGE,p=m.SPLAT;return Qt=u((function(h){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Object.assign({},h);return delete n[i],delete n[s],delete n[p],h[s]=r(n,!1,l.depth||null,l.colorize),h})),Qt}var Ji,Xi,Qi,es,ts,Qe={exports:{}};function ep(){if(Ji)return Qe.exports;function r(p){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},r(p)}function u(p,h,l){return h&&(function(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,m(o.key),o)}})(p.prototype,h),Object.defineProperty(p,"prototype",{writable:!1}),p}function m(p){var h=(function(l,n){if(r(l)!="object"||!l)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var e=t.call(l,n);if(r(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(p,"string");return r(h)=="symbol"?h:h+""}Ji=1;var i=ae().MESSAGE,s=(function(){return u((function p(h){(function(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")})(this,p),this.template=h}),[{key:"transform",value:function(p){return p[i]=this.template(p),p}}])})();return Qe.exports=function(p){return new s(p)},Qe.exports.Printf=Qe.exports.Format=s,Qe.exports}function tp(){if(Qi)return Xi;Qi=1;var r=ve(),u=ae().MESSAGE,m=ut();return Xi=r((function(i){var s=m(Object.assign({},i,{level:void 0,message:void 0,splat:void 0})),p=i.padding&&i.padding[i.level]||"";return i[u]=s!=="{}"?"".concat(i.level,":").concat(p," ").concat(i.message," ").concat(s):"".concat(i.level,":").concat(p," ").concat(i.message),i}))}function rp(){if(ts)return es;function r(e){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r(e)}function u(e){return(function(o){if(Array.isArray(o))return m(o)})(e)||(function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)})(e)||(function(o,c){if(o){if(typeof o=="string")return m(o,c);var a={}.toString.call(o).slice(8,-1);return a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set"?Array.from(o):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(o,c):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(e,o){(o==null||o>e.length)&&(o=e.length);for(var c=0,a=Array(o);c<o;c++)a[c]=e[c];return a}function i(e,o,c){return o&&(function(a,f){for(var b=0;b<f.length;b++){var v=f[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(a,s(v.key),v)}})(e.prototype,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var o=(function(c,a){if(r(c)!="object"||!c)return c;var f=c[Symbol.toPrimitive];if(f!==void 0){var b=f.call(c,a);if(r(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)})(e,"string");return r(o)=="symbol"?o:o+""}ts=1;var p=pe(),h=ae().SPLAT,l=/%[scdjifoO%]/g,n=/%%/g,t=(function(){return i((function e(o){(function(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=o}),[{key:"_splat",value:function(e,o){var c=e.message,a=e[h]||e.splat||[],f=c.match(n),b=f&&f.length||0,v=o.length-b-a.length,d=v<0?a.splice(v,-1*v):[],y=d.length;if(y)for(var g=0;g<y;g++)Object.assign(e,d[g]);return e.message=p.format.apply(p,[c].concat(u(a))),e}},{key:"transform",value:function(e){var o=e.message,c=e[h]||e.splat;if(!c||!c.length)return e;var a=o&&o.match&&o.match(l);if(!a&&(c||c.length)){var f=c.length>1?c.splice(0):c,b=f.length;if(b)for(var v=0;v<b;v++)Object.assign(e,f[v]);return e}return a?this._splat(e,a):e}}])})();return es=function(e){return new t(e)}}var cl=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Le="\\d\\d?",Ne="\\d\\d",tt="[^\\s]+",ll=/\[([^]*?)\]/gm;function fl(r,u){for(var m=[],i=0,s=r.length;i<s;i++)m.push(r[i].substr(0,u));return m}var rs=function(r){return function(u,m){var i=m[r].map((function(p){return p.toLowerCase()})),s=i.indexOf(u.toLowerCase());return s>-1?s:null}};function $e(r){for(var u=[],m=1;m<arguments.length;m++)u[m-1]=arguments[m];for(var i=0,s=u;i<s.length;i++){var p=s[i];for(var h in p)r[h]=p[h]}return r}var ns=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],pl=["January","February","March","April","May","June","July","August","September","October","November","December"],np=fl(pl,3),yn={dayNamesShort:fl(ns,3),dayNames:ns,monthNamesShort:np,monthNames:pl,amPm:["am","pm"],DoFn:function(r){return r+["th","st","nd","rd"][r%10>3?0:(r-r%10!=10?1:0)*r%10]}},Ot=$e({},yn),hl=function(r){return Ot=$e(Ot,r)},os=function(r){return r.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ye=function(r,u){for(u===void 0&&(u=2),r=String(r);r.length<u;)r="0"+r;return r},op={D:function(r){return String(r.getDate())},DD:function(r){return ye(r.getDate())},Do:function(r,u){return u.DoFn(r.getDate())},d:function(r){return String(r.getDay())},dd:function(r){return ye(r.getDay())},ddd:function(r,u){return u.dayNamesShort[r.getDay()]},dddd:function(r,u){return u.dayNames[r.getDay()]},M:function(r){return String(r.getMonth()+1)},MM:function(r){return ye(r.getMonth()+1)},MMM:function(r,u){return u.monthNamesShort[r.getMonth()]},MMMM:function(r,u){return u.monthNames[r.getMonth()]},YY:function(r){return ye(String(r.getFullYear()),4).substr(2)},YYYY:function(r){return ye(r.getFullYear(),4)},h:function(r){return String(r.getHours()%12||12)},hh:function(r){return ye(r.getHours()%12||12)},H:function(r){return String(r.getHours())},HH:function(r){return ye(r.getHours())},m:function(r){return String(r.getMinutes())},mm:function(r){return ye(r.getMinutes())},s:function(r){return String(r.getSeconds())},ss:function(r){return ye(r.getSeconds())},S:function(r){return String(Math.round(r.getMilliseconds()/100))},SS:function(r){return ye(Math.round(r.getMilliseconds()/10),2)},SSS:function(r){return ye(r.getMilliseconds(),3)},a:function(r,u){return r.getHours()<12?u.amPm[0]:u.amPm[1]},A:function(r,u){return r.getHours()<12?u.amPm[0].toUpperCase():u.amPm[1].toUpperCase()},ZZ:function(r){var u=r.getTimezoneOffset();return(u>0?"-":"+")+ye(100*Math.floor(Math.abs(u)/60)+Math.abs(u)%60,4)},Z:function(r){var u=r.getTimezoneOffset();return(u>0?"-":"+")+ye(Math.floor(Math.abs(u)/60),2)+":"+ye(Math.abs(u)%60,2)}},is=function(r){return+r-1},ss=[null,Le],as=[null,tt],us=["isPm",tt,function(r,u){var m=r.toLowerCase();return m===u.amPm[0]?0:m===u.amPm[1]?1:null}],cs=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(r){var u=(r+"").match(/([+-]|\d\d)/gi);if(u){var m=60*+u[1]+parseInt(u[2],10);return u[0]==="+"?m:-m}return 0}],ip={D:["day",Le],DD:["day",Ne],Do:["day",Le+tt,function(r){return parseInt(r,10)}],M:["month",Le,is],MM:["month",Ne,is],YY:["year",Ne,function(r){var u=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+r>68?u-1:u)+r)}],h:["hour",Le,void 0,"isPm"],hh:["hour",Ne,void 0,"isPm"],H:["hour",Le],HH:["hour",Ne],m:["minute",Le],mm:["minute",Ne],s:["second",Le],ss:["second",Ne],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(r){return 100*+r}],SS:["millisecond",Ne,function(r){return 10*+r}],SSS:["millisecond","\\d{3}"],d:ss,dd:ss,ddd:as,dddd:as,MMM:["month",tt,rs("monthNamesShort")],MMMM:["month",tt,rs("monthNames")],a:us,A:us,ZZ:cs,Z:cs},jt={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},dl=function(r){return $e(jt,r)},ml=function(r,u,m){if(u===void 0&&(u=jt.default),m===void 0&&(m={}),typeof r=="number"&&(r=new Date(r)),Object.prototype.toString.call(r)!=="[object Date]"||isNaN(r.getTime()))throw new Error("Invalid Date pass to format");var i=[];u=(u=jt[u]||u).replace(ll,(function(p,h){return i.push(h),"@@@"}));var s=$e($e({},Ot),m);return(u=u.replace(cl,(function(p){return op[p](r,s)}))).replace(/@@@/g,(function(){return i.shift()}))};function yl(r,u,m){if(m===void 0&&(m={}),typeof u!="string")throw new Error("Invalid format in fecha parse");if(u=jt[u]||u,r.length>1e3)return null;var i={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],p=[],h=u.replace(ll,(function(g,_){return p.push(os(_)),"@@@"})),l={},n={};h=os(h).replace(cl,(function(g){var _=ip[g],E=_[0],O=_[1],$=_[3];if(l[E])throw new Error("Invalid format. "+E+" specified twice in format");return l[E]=!0,$&&(n[$]=!0),s.push(_),"("+O+")"})),Object.keys(n).forEach((function(g){if(!l[g])throw new Error("Invalid format. "+g+" is required in specified format")})),h=h.replace(/@@@/g,(function(){return p.shift()}));var t=r.match(new RegExp(h,"i"));if(!t)return null;for(var e,o=$e($e({},Ot),m),c=1;c<t.length;c++){var a=s[c-1],f=a[0],b=a[2],v=b?b(t[c],o):+t[c];if(v==null)return null;i[f]=v}if(i.isPm===1&&i.hour!=null&&+i.hour!=12?i.hour=+i.hour+12:i.isPm===0&&+i.hour==12&&(i.hour=0),i.timezoneOffset==null){e=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var d=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],y=(c=0,d.length);c<y;c++)if(l[d[c][0]]&&i[d[c][0]]!==e[d[c][1]]())return null}else if(e=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return e}var sp={format:ml,parse:yl,defaultI18n:yn,setGlobalDateI18n:hl,setGlobalDateMasks:dl};const ap=qc(Object.freeze(Object.defineProperty({__proto__:null,assign:$e,default:sp,defaultI18n:yn,format:ml,parse:yl,setGlobalDateI18n:hl,setGlobalDateMasks:dl},Symbol.toStringTag,{value:"Module"})));var tr,ls,fs,ps,hs;function up(){if(ls)return tr;ls=1;var r=ap,u=ve();return tr=u((function(m){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.format&&(m.timestamp=typeof i.format=="function"?i.format():r.format(new Date,i.format)),m.timestamp||(m.timestamp=new Date().toISOString()),i.alias&&(m[i.alias]=m.timestamp),m})),tr}function cp(){if(ps)return fs;ps=1;var r=sl(),u=ve(),m=ae().MESSAGE;return fs=u((function(i,s){return s.level!==!1&&(i.level=r.strip(i.level)),s.message!==!1&&(i.message=r.strip(String(i.message))),s.raw!==!1&&i[m]&&(i[m]=r.strip(String(i[m]))),i}))}function gl(){if(hs)return bt;hs=1;var r=bt.format=ve();return bt.levels=(function(){if(Ri)return Wt;Ri=1;var u=cn().Colorizer;return Wt=function(m){return u.addColors(m.colors||m),m},Wt})(),Object.defineProperty(r,"align",{value:Hf()}),Object.defineProperty(r,"cli",{value:zf()}),Object.defineProperty(r,"colorize",{value:cn()}),Object.defineProperty(r,"combine",{value:Zf()}),Object.defineProperty(r,"errors",{value:Vf()}),Object.defineProperty(r,"json",{value:Yf()}),Object.defineProperty(r,"label",{value:Kf()}),Object.defineProperty(r,"logstash",{value:Wf()}),Object.defineProperty(r,"metadata",{value:Jf()}),Object.defineProperty(r,"ms",{value:Xf()}),Object.defineProperty(r,"padLevels",{value:al()}),Object.defineProperty(r,"prettyPrint",{value:Qf()}),Object.defineProperty(r,"printf",{value:ep()}),Object.defineProperty(r,"simple",{value:tp()}),Object.defineProperty(r,"splat",{value:rp()}),Object.defineProperty(r,"timestamp",{value:up()}),Object.defineProperty(r,"uncolorize",{value:cp()}),bt}var ds,ms={};function vl(){return ds||(ds=1,(function(r){var u=pe().format;r.warn={deprecated:function(m){return function(){throw new Error(u("{ %s } was removed in winston@3.0.0.",m))}},useFormat:function(m){return function(){throw new Error([u("{ %s } was removed in winston@3.0.0.",m),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
85
|
+
`))}},forFunctions:function(m,i,s){s.forEach((function(p){m[p]=r.warn[i](p)}))},forProperties:function(m,i,s){s.forEach((function(p){var h=r.warn[i](p);Object.defineProperty(m,p,{get:h,set:h})}))}}})(ms)),ms}const lp="3.17.0";var ys,gs={},rr={exports:{}},nr={exports:{}};function vs(){if(ys)return nr.exports;ys=1;var r=pe(),u=Zc(),m=ae().LEVEL,i=nr.exports=function(){var s=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u.call(this,{objectMode:!0,highWaterMark:p.highWaterMark}),this.format=p.format,this.level=p.level,this.handleExceptions=p.handleExceptions,this.handleRejections=p.handleRejections,this.silent=p.silent,p.log&&(this.log=p.log),p.logv&&(this.logv=p.logv),p.close&&(this.close=p.close),this.once("pipe",(function(h){s.levels=h.levels,s.parent=h})),this.once("unpipe",(function(h){h===s.parent&&(s.parent=null,s.close&&s.close())}))};return r.inherits(i,u),i.prototype._write=function(s,p,h){if(this.silent||s.exception===!0&&!this.handleExceptions)return h(null);var l=this.level||this.parent&&this.parent.level;if(!l||this.levels[l]>=this.levels[s[m]]){if(s&&!this.format)return this.log(s,h);var n=void 0,t=void 0;try{t=this.format.transform(Object.assign({},s),this.format.options)}catch(e){n=e}if(n||!t){if(h(),n)throw n;return}return this.log(t,h)}return this._writableState.sync=!1,h(null)},i.prototype._writev=function(s,p){if(this.logv){var h=s.filter(this._accept,this);return h.length?this.logv(h,p):p(null)}for(var l=0;l<s.length;l++)if(this._accept(s[l]))if(!s[l].chunk||this.format){var n=void 0,t=void 0;try{t=this.format.transform(Object.assign({},s[l].chunk),this.format.options)}catch(e){n=e}if(n||!t){if(s[l].callback(),n)throw p(null),n}else this.log(t,s[l].callback)}else this.log(s[l].chunk,s[l].callback);return p(null)},i.prototype._accept=function(s){var p=s.chunk;if(this.silent)return!1;var h=this.level||this.parent&&this.parent.level;return!(p.exception!==!0&&h&&!(this.levels[h]>=this.levels[p[m]])||!this.handleExceptions&&p.exception===!0)},i.prototype._nop=function(){},nr.exports}var bs,ws,or,Es,_s,Ss,ir={exports:{}};function ct(){return ws||(ws=1,rr.exports=vs(),rr.exports.LegacyTransportStream=(function(){if(bs)return ir.exports;bs=1;var r=pe(),u=ae().LEVEL,m=vs(),i=ir.exports=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(m.call(this,s),!s.transport||typeof s.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=s.transport,this.level=this.level||s.transport.level,this.handleExceptions=this.handleExceptions||s.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=(function(p){this.emit("error",p,this.transport)}).bind(this),this.transport.on("error",this.transport.__winstonError))};return r.inherits(i,m),i.prototype._write=function(s,p,h){if(this.silent||s.exception===!0&&!this.handleExceptions)return h(null);(!this.level||this.levels[this.level]>=this.levels[s[u]])&&this.transport.log(s[u],s.message,s,this._nop),h(null)},i.prototype._writev=function(s,p){for(var h=0;h<s.length;h++)this._accept(s[h])&&(this.transport.log(s[h].chunk[u],s[h].chunk.message,s[h].chunk,this._nop),s[h].callback());return p(null)},i.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
86
|
+
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},ir.exports})()),rr.exports}function fp(){if(Es)return or;function r(c){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(c)}function u(c,a,f){return a&&(function(b,v){for(var d=0;d<v.length;d++){var y=v[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(b,m(y.key),y)}})(c.prototype,a),Object.defineProperty(c,"prototype",{writable:!1}),c}function m(c){var a=(function(f,b){if(r(f)!="object"||!f)return f;var v=f[Symbol.toPrimitive];if(v!==void 0){var d=v.call(f,b);if(r(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)})(c,"string");return r(a)=="symbol"?a:a+""}function i(c,a,f){return a=p(a),(function(b,v){if(v&&(r(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d})(b)})(c,s()?Reflect.construct(a,f||[],p(c).constructor):a.apply(c,f))}function s(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(s=function(){return!!c})()}function p(c){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},p(c)}function h(c,a){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},h(c,a)}Es=1;var l=Fe(),n=ae(),t=n.LEVEL,e=n.MESSAGE,o=ct();return or=(function(c){function a(){var f,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(function(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")})(this,a),(f=i(this,a,[b])).name=b.name||"console",f.stderrLevels=f._stringArrayToSet(b.stderrLevels),f.consoleWarnLevels=f._stringArrayToSet(b.consoleWarnLevels),f.eol=typeof b.eol=="string"?b.eol:l.EOL,f.forceConsole=b.forceConsole||!1,f._consoleLog=console.log.bind(console),f._consoleWarn=console.warn.bind(console),f._consoleError=console.error.bind(console),f.setMaxListeners(30),f}return(function(f,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(b&&b.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),b&&h(f,b)})(a,c),u(a,[{key:"log",value:function(f,b){var v=this;return setImmediate((function(){return v.emit("logged",f)})),this.stderrLevels[f[t]]?(console._stderr&&!this.forceConsole?console._stderr.write("".concat(f[e]).concat(this.eol)):this._consoleError(f[e]),void(b&&b())):this.consoleWarnLevels[f[t]]?(console._stderr&&!this.forceConsole?console._stderr.write("".concat(f[e]).concat(this.eol)):this._consoleWarn(f[e]),void(b&&b())):(console._stdout&&!this.forceConsole?console._stdout.write("".concat(f[e]).concat(this.eol)):this._consoleLog(f[e]),void(b&&b()))}},{key:"_stringArrayToSet",value:function(f,b){if(!f)return{};if(b=b||"Cannot make set from type other than Array of string elements",!Array.isArray(f))throw new Error(b);return f.reduce((function(v,d){if(typeof d!="string")throw new Error(b);return v[d]=!0,v}),{})}}])})(o),or}function bl(){if(Ss)return _s;function r(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function u(i,s){for(var p,h="",l=0,n=-1,t=0,e=0;e<=i.length;++e){if(e<i.length)p=i.charCodeAt(e);else{if(p===47)break;p=47}if(p===47){if(!(n===e-1||t===1))if(n!==e-1&&t===2){if(h.length<2||l!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var o=h.lastIndexOf("/");if(o!==h.length-1){o===-1?(h="",l=0):l=(h=h.slice(0,o)).length-1-h.lastIndexOf("/"),n=e,t=0;continue}}else if(h.length===2||h.length===1){h="",l=0,n=e,t=0;continue}}s&&(h.length>0?h+="/..":h="..",l=2)}else h.length>0?h+="/"+i.slice(n+1,e):h=i.slice(n+1,e),l=e-n-1;n=e,t=0}else p===46&&t!==-1?++t:t=-1}return h}Ss=1;var m={resolve:function(){for(var i,s="",p=!1,h=arguments.length-1;h>=-1&&!p;h--){var l;h>=0?l=arguments[h]:(i===void 0&&(i=te.cwd()),l=i),r(l),l.length!==0&&(s=l+"/"+s,p=l.charCodeAt(0)===47)}return s=u(s,!p),p?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(i){if(r(i),i.length===0)return".";var s=i.charCodeAt(0)===47,p=i.charCodeAt(i.length-1)===47;return(i=u(i,!s)).length!==0||s||(i="."),i.length>0&&p&&(i+="/"),s?"/"+i:i},isAbsolute:function(i){return r(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,s=0;s<arguments.length;++s){var p=arguments[s];r(p),p.length>0&&(i===void 0?i=p:i+="/"+p)}return i===void 0?".":m.normalize(i)},relative:function(i,s){if(r(i),r(s),i===s||(i=m.resolve(i))===(s=m.resolve(s)))return"";for(var p=1;p<i.length&&i.charCodeAt(p)===47;++p);for(var h=i.length,l=h-p,n=1;n<s.length&&s.charCodeAt(n)===47;++n);for(var t=s.length-n,e=l<t?l:t,o=-1,c=0;c<=e;++c){if(c===e){if(t>e){if(s.charCodeAt(n+c)===47)return s.slice(n+c+1);if(c===0)return s.slice(n+c)}else l>e&&(i.charCodeAt(p+c)===47?o=c:c===0&&(o=0));break}var a=i.charCodeAt(p+c);if(a!==s.charCodeAt(n+c))break;a===47&&(o=c)}var f="";for(c=p+o+1;c<=h;++c)c!==h&&i.charCodeAt(c)!==47||(f.length===0?f+="..":f+="/..");return f.length>0?f+s.slice(n+o):(n+=o,s.charCodeAt(n)===47&&++n,s.slice(n))},_makeLong:function(i){return i},dirname:function(i){if(r(i),i.length===0)return".";for(var s=i.charCodeAt(0),p=s===47,h=-1,l=!0,n=i.length-1;n>=1;--n)if((s=i.charCodeAt(n))===47){if(!l){h=n;break}}else l=!1;return h===-1?p?"/":".":p&&h===1?"//":i.slice(0,h)},basename:function(i,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');r(i);var p,h=0,l=-1,n=!0;if(s!==void 0&&s.length>0&&s.length<=i.length){if(s.length===i.length&&s===i)return"";var t=s.length-1,e=-1;for(p=i.length-1;p>=0;--p){var o=i.charCodeAt(p);if(o===47){if(!n){h=p+1;break}}else e===-1&&(n=!1,e=p+1),t>=0&&(o===s.charCodeAt(t)?--t==-1&&(l=p):(t=-1,l=e))}return h===l?l=e:l===-1&&(l=i.length),i.slice(h,l)}for(p=i.length-1;p>=0;--p)if(i.charCodeAt(p)===47){if(!n){h=p+1;break}}else l===-1&&(n=!1,l=p+1);return l===-1?"":i.slice(h,l)},extname:function(i){r(i);for(var s=-1,p=0,h=-1,l=!0,n=0,t=i.length-1;t>=0;--t){var e=i.charCodeAt(t);if(e!==47)h===-1&&(l=!1,h=t+1),e===46?s===-1?s=t:n!==1&&(n=1):s!==-1&&(n=-1);else if(!l){p=t+1;break}}return s===-1||h===-1||n===0||n===1&&s===h-1&&s===p+1?"":i.slice(s,h)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return(function(s,p){var h=p.dir||p.root,l=p.base||(p.name||"")+(p.ext||"");return h?h===p.root?h+l:h+s+l:l})("/",i)},parse:function(i){r(i);var s={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return s;var p,h=i.charCodeAt(0),l=h===47;l?(s.root="/",p=1):p=0;for(var n=-1,t=0,e=-1,o=!0,c=i.length-1,a=0;c>=p;--c)if((h=i.charCodeAt(c))!==47)e===-1&&(o=!1,e=c+1),h===46?n===-1?n=c:a!==1&&(a=1):n!==-1&&(a=-1);else if(!o){t=c+1;break}return n===-1||e===-1||a===0||a===1&&n===e-1&&n===t+1?e!==-1&&(s.base=s.name=t===0&&l?i.slice(1,e):i.slice(t,e)):(t===0&&l?(s.name=i.slice(1,n),s.base=i.slice(1,e)):(s.name=i.slice(t,n),s.base=i.slice(t,e)),s.ext=i.slice(n,e)),t>0?s.dir=i.slice(0,t-1):l&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return m.posix=m,_s=m}var Os,sr={exports:{}},ar={exports:{}},ur={exports:{}};function gn(){return Os||(Os=1,r=ur,u=ur.exports,Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(m){return m&&typeof m.length=="number"&&m.length>=0&&m.length%1==0},r.exports=u.default),ur.exports;var r,u}var js,Oe={},cr={exports:{}},lr={exports:{}},Ts,xs,ks,xe={};function pp(){return xs||(xs=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(t){return(0,p.isAsync)(t)?function(...e){const o=e.pop();return l(t.apply(this,e),o)}:(0,i.default)((function(e,o){var c;try{c=t.apply(this,e)}catch(a){return o(a)}if(c&&typeof c.then=="function")return l(c,o);o(null,c)}))};var m=(function(){return js||(js=1,t=lr,e=lr.exports,Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){return function(...c){var a=c.pop();return o.call(this,c,a)}},t.exports=e.default),lr.exports;var t,e})(),i=h(m),s=h((function(){if(Ts)return xe;Ts=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.fallback=a,xe.wrap=f;var t,e=xe.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,o=xe.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,c=xe.hasNextTick=typeof te=="object"&&typeof te.nextTick=="function";function a(b){setTimeout(b,0)}function f(b){return(v,...d)=>b((()=>v(...d)))}return t=e?queueMicrotask:o?setImmediate:c?te.nextTick:a,xe.default=f(t),xe})()),p=Ze();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,e){return t.then((o=>{n(e,null,o)}),(o=>{n(e,o&&(o instanceof Error||o.message)?o:new Error(o))}))}function n(t,e,o){try{t(e,o)}catch(c){(0,s.default)((a=>{throw a}),c)}}r.exports=u.default})(cr,cr.exports)),cr.exports}function Ze(){if(ks)return Oe;ks=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isAsyncIterable=Oe.isAsyncGenerator=Oe.isAsync=void 0;var r,u=pp(),m=(r=u)&&r.__esModule?r:{default:r};function i(s){return s[Symbol.toStringTag]==="AsyncFunction"}return Oe.default=function(s){if(typeof s!="function")throw new Error("expected a function");return i(s)?(0,m.default)(s):s},Oe.isAsync=i,Oe.isAsyncGenerator=function(s){return s[Symbol.toStringTag]==="AsyncGenerator"},Oe.isAsyncIterable=function(s){return typeof s[Symbol.asyncIterator]=="function"},Oe}var As,Rs,fr={exports:{}};function ot(){return As||(As=1,r=fr,u=fr.exports,Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(m,i){if(i||(i=m.length),!i)throw new Error("arity is undefined");return function(...s){return typeof s[i-1]=="function"?m.apply(this,s):new Promise(((p,h)=>{s[i-1]=(l,...n)=>{if(l)return h(l);p(n.length>1?n:n[0])},m.apply(this,s)}))}},r.exports=u.default),fr.exports;var r,u}var Ps,pr={exports:{}},hr={exports:{}},dr={exports:{}},mr={exports:{}};function wl(){return Ps||(Ps=1,r=mr,u=mr.exports,Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(m){function i(...s){if(m!==null){var p=m;m=null,p.apply(this,s)}}return Object.assign(i,m),i},r.exports=u.default),mr.exports;var r,u}var Is,Ns,yr={exports:{}},gr={exports:{}};function hp(){return Ns||(Ns=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(h){if((0,m.default)(h))return(function(c){var a=-1,f=c.length;return function(){return++a<f?{value:c[a],key:a}:null}})(h);var l=(0,s.default)(h);return l?(function(c){var a=-1;return function(){var f=c.next();return f.done?null:(a++,{value:f.value,key:a})}})(l):(n=h,t=n?Object.keys(n):[],e=-1,o=t.length,function c(){var a=t[++e];return a==="__proto__"?c():e<o?{value:n[a],key:a}:null});var n,t,e,o};var m=p(gn()),i=(function(){return Is||(Is=1,h=gr,l=gr.exports,Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(n){return n[Symbol.iterator]&&n[Symbol.iterator]()},h.exports=l.default),gr.exports;var h,l})(),s=p(i);function p(h){return h&&h.__esModule?h:{default:h}}r.exports=u.default})(yr,yr.exports)),yr.exports}var Ls,vr={exports:{}};function El(){return Ls||(Ls=1,r=vr,u=vr.exports,Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(m){return function(...i){if(m===null)throw new Error("Callback was already called.");var s=m;m=null,s.apply(this,i)}},r.exports=u.default),vr.exports;var r,u}var $s,Ms,Cs,Ds,Fs,Us,br={exports:{}},wr={exports:{}};function ln(){return $s||($s=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default={},r.exports=u.default})(wr,wr.exports)),wr.exports}function dp(){return Cs||(Cs=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0});var m=t(wl()),i=t(hp()),s=t(El()),p=Ze(),h=(Ms||(Ms=1,(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(f,b,v,d){let y=!1,g=!1,_=!1,E=0,O=0;function $(){E>=b||_||y||(_=!0,f.next().then((({value:w,done:S})=>{if(!g&&!y){if(_=!1,S)return y=!0,void(E<=0&&d(null));E++,v(w,O,q),O++,$()}})).catch(j))}function q(w,S){if(E-=1,!g)return w?j(w):w===!1?(y=!0,void(g=!0)):S===a.default||y&&E<=0?(y=!0,d(null)):void $()}function j(w){g||(_=!1,y=!0,d(w))}$()};var c,a=(c=ln())&&c.__esModule?c:{default:c};e.exports=o.default})(br,br.exports)),br.exports),l=t(h),n=t(ln());function t(e){return e&&e.__esModule?e:{default:e}}u.default=e=>(o,c,a)=>{if(a=(0,m.default)(a),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!o)return a(null);if((0,p.isAsyncGenerator)(o))return(0,l.default)(o,e,c,a);if((0,p.isAsyncIterable)(o))return(0,l.default)(o[Symbol.asyncIterator](),e,c,a);var f=(0,i.default)(o),b=!1,v=!1,d=0,y=!1;function g(E,O){if(!v)if(d-=1,E)b=!0,a(E);else if(E===!1)b=!0,v=!0;else{if(O===n.default||b&&d<=0)return b=!0,a(null);y||_()}}function _(){for(y=!0;d<e&&!b;){var E=f();if(E===null)return b=!0,void(d<=0&&a(null));d+=1,c(E.value,E.key,(0,s.default)(g))}y=!1}_()},r.exports=u.default})(dr,dr.exports)),dr.exports}function _l(){return Ds||(Ds=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0});var m=p(dp()),i=p(Ze()),s=p(ot());function p(h){return h&&h.__esModule?h:{default:h}}u.default=(0,s.default)((function(h,l,n,t){return(0,m.default)(l)(h,(0,i.default)(n),t)}),4),r.exports=u.default})(hr,hr.exports)),hr.exports}function mp(){return Us||(Us=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(l,n){return(0,i.default)(p.default,l,n)};var m=(Rs||(Rs=1,(function(l,n){Object.defineProperty(n,"__esModule",{value:!0});var t=c(gn()),e=c(Ze()),o=c(ot());function c(a){return a&&a.__esModule?a:{default:a}}n.default=(0,o.default)(((a,f,b)=>{var v=(0,t.default)(f)?[]:{};a(f,((d,y,g)=>{(0,e.default)(d)(((_,...E)=>{E.length<2&&([E]=E),v[y]=E,g(_)}))}),(d=>b(d,v)))}),3),l.exports=n.default})(ar,ar.exports)),ar.exports),i=h(m),s=(Fs||(Fs=1,(function(l,n){Object.defineProperty(n,"__esModule",{value:!0});var t=o(_l()),e=o(ot());function o(c){return c&&c.__esModule?c:{default:c}}n.default=(0,e.default)((function(c,a,f){return(0,t.default)(c,1,a,f)}),3),l.exports=n.default})(pr,pr.exports)),pr.exports),p=h(s);function h(l){return l&&l.__esModule?l:{default:l}}r.exports=u.default})(sr,sr.exports)),sr.exports}var Bs,qs,Gs={},Hs={};function yp(){return Bs||(Bs=1,(function(r){var u=nt(),m=af(),i=nf(),s=of(),p=sf();for(var h in p)r[h]=p[h];r.NONE=0,r.DEFLATE=1,r.INFLATE=2,r.GZIP=3,r.GUNZIP=4,r.DEFLATERAW=5,r.INFLATERAW=6,r.UNZIP=7;function l(n){if(typeof n!="number"||n<r.DEFLATE||n>r.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=n,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,u(this.init_done,"close before init"),u(this.mode<=r.UNZIP),this.mode===r.DEFLATE||this.mode===r.GZIP||this.mode===r.DEFLATERAW?i.deflateEnd(this.strm):this.mode!==r.INFLATE&&this.mode!==r.GUNZIP&&this.mode!==r.INFLATERAW&&this.mode!==r.UNZIP||s.inflateEnd(this.strm),this.mode=r.NONE,this.dictionary=null)},l.prototype.write=function(n,t,e,o,c,a,f){return this._write(!0,n,t,e,o,c,a,f)},l.prototype.writeSync=function(n,t,e,o,c,a,f){return this._write(!1,n,t,e,o,c,a,f)},l.prototype._write=function(n,t,e,o,c,a,f,b){if(u.equal(arguments.length,8),u(this.init_done,"write before init"),u(this.mode!==r.NONE,"already finalized"),u.equal(!1,this.write_in_progress,"write already in progress"),u.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,u.equal(!1,t===void 0,"must provide flush value"),this.write_in_progress=!0,t!==r.Z_NO_FLUSH&&t!==r.Z_PARTIAL_FLUSH&&t!==r.Z_SYNC_FLUSH&&t!==r.Z_FULL_FLUSH&&t!==r.Z_FINISH&&t!==r.Z_BLOCK)throw new Error("Invalid flush value");if(e==null&&(e=ge.alloc(0),c=0,o=0),this.strm.avail_in=c,this.strm.input=e,this.strm.next_in=o,this.strm.avail_out=b,this.strm.output=a,this.strm.next_out=f,this.flush=t,!n)return this._process(),this._checkError()?this._afterSync():void 0;var v=this;return te.nextTick((function(){v._process(),v._after()})),this},l.prototype._afterSync=function(){var n=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,n]},l.prototype._process=function(){var n=null;switch(this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case r.UNZIP:switch(this.strm.avail_in>0&&(n=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(n===null)break;if(this.strm.input[n]!==31){this.mode=r.INFLATE;break}if(this.gzip_id_bytes_read=1,n++,this.strm.avail_in===1)break;case 1:if(n===null)break;this.strm.input[n]===139?(this.gzip_id_bytes_read=2,this.mode=r.GUNZIP):this.mode=r.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===r.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===r.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===r.Z_DATA_ERROR&&(this.err=r.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===r.GUNZIP&&this.err===r.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case r.Z_OK:case r.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===r.Z_FINISH)return this._error("unexpected end of file"),!1;break;case r.Z_STREAM_END:break;case r.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var n=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,n),this.pending_close&&this.close()}},l.prototype._error=function(n){this.strm.msg&&(n=this.strm.msg),this.onerror(n,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(n,t,e,o,c){u(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),u(n>=8&&n<=15,"invalid windowBits"),u(t>=-1&&t<=9,"invalid compression level"),u(e>=1&&e<=9,"invalid memlevel"),u(o===r.Z_FILTERED||o===r.Z_HUFFMAN_ONLY||o===r.Z_RLE||o===r.Z_FIXED||o===r.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,n,e,o,c),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(n,t,e,o,c){switch(this.level=n,this.windowBits=t,this.memLevel=e,this.strategy=o,this.flush=r.Z_NO_FLUSH,this.err=r.Z_OK,this.mode!==r.GZIP&&this.mode!==r.GUNZIP||(this.windowBits+=16),this.mode===r.UNZIP&&(this.windowBits+=32),this.mode!==r.DEFLATERAW&&this.mode!==r.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new m,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=i.deflateInit2(this.strm,this.level,r.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:case r.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==r.Z_OK&&this._error("Init error"),this.dictionary=c,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:this.err=i.deflateSetDictionary(this.strm,this.dictionary)}this.err!==r.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:case r.GZIP:this.err=i.deflateReset(this.strm);break;case r.INFLATE:case r.INFLATERAW:case r.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==r.Z_OK&&this._error("Failed to reset stream")},r.Zlib=l})(Hs)),Hs}var zs,Zs,Vs,Ys,Ks,Er,Ws,_r,Js,Sr,Xs,Qs,ea,Or,ta,ra,na={exports:{}};function gp(){if(Zs)return zs;Zs=1;var r=[],u=[],m=function(){};function i(c){return!~r.indexOf(c)&&(r.push(c),!0)}function s(c){m=c}function p(c){for(var a=[],f=0;f<r.length;f++)if(r[f].async)a.push(r[f]);else if(r[f](c))return!0;return!!a.length&&new Promise((function(b){Promise.all(a.map((function(v){return v(c)}))).then((function(v){b(v.some(Boolean))}))}))}function h(c){return!~u.indexOf(c)&&(u.push(c),!0)}function l(){m.apply(m,arguments)}function n(c){for(var a=0;a<u.length;a++)c=u[a].apply(u[a],arguments);return c}function t(c,a){var f=Object.prototype.hasOwnProperty;for(var b in a)f.call(a,b)&&(c[b]=a[b]);return c}function e(c){return c.enabled=!1,c.modify=h,c.set=s,c.use=i,t((function(){return!1}),c)}function o(c){return c.enabled=!0,c.modify=h,c.set=s,c.use=i,t((function(){var a=Array.prototype.slice.call(arguments,0);return l.call(l,c,n(a,c)),!0}),c)}return zs=function(c){return c.introduce=t,c.enabled=p,c.process=n,c.modify=h,c.write=l,c.nope=e,c.yep=o,c.set=s,c.use=i,c}}function At(){return Ks||(Ks=1,na.exports=(function(){if(Ys)return Vs;Ys=1;var r=gp()((function u(m,i){return(i=i||{}).namespace=m,i.prod=!0,i.dev=!1,i.force||u.force?u.yep(i):u.nope(i)}));return Vs=r})()),na.exports}function vp(){if(Ws)return Er;Ws=1;var r=hn(),u=ef().StringDecoder,m=Ye().Stream;function i(){}return Er=function(s,p){var h=ge.alloc(65536),l=new u("utf8"),n=new m,t="",e=0,o=0;return s.start===-1&&delete s.start,n.readable=!0,n.destroy=function(){n.destroyed=!0,n.emit("end"),n.emit("close")},r.open(s.file,"a+","0644",(function(c,a){if(c)return p?p(c):n.emit("error",c),void n.destroy();(function f(){if(!n.destroyed)return r.read(a,h,0,h.length,e,(function(b,v){if(b)return p?p(b):n.emit("error",b),void n.destroy();if(!v)return t&&((s.start==null||o>s.start)&&(p?p(null,t):n.emit("line",t)),o++,t=""),setTimeout(f,1e3);var d=l.write(h.slice(0,v));p||n.emit("data",d);for(var y=(d=(t+d).split(/\n+/)).length-1,g=0;g<y;g++)(s.start==null||o>s.start)&&(p?p(null,d[g]):n.emit("line",d[g])),o++;return t=d[y],e+=v,f()}));r.close(a,i)})()})),p?n.destroy:n},Er}function bp(){if(Js)return _r;function r(g){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},r(g)}function u(g,_,E){return _&&(function(O,$){for(var q=0;q<$.length;q++){var j=$[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,m(j.key),j)}})(g.prototype,_),Object.defineProperty(g,"prototype",{writable:!1}),g}function m(g){var _=(function(E,O){if(r(E)!="object"||!E)return E;var $=E[Symbol.toPrimitive];if($!==void 0){var q=$.call(E,O);if(r(q)!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(E)})(g,"string");return r(_)=="symbol"?_:_+""}function i(g,_,E){return _=p(_),(function(O,$){if($&&(r($)=="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q})(O)})(g,s()?Reflect.construct(_,E||[],p(g).constructor):_.apply(g,E))}function s(){try{var g=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(s=function(){return!!g})()}function p(g){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},p(g)}function h(g,_){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,O){return E.__proto__=O,E},h(g,_)}Js=1;var l=hn(),n=bl(),t=mp(),e=(qs||(qs=1,(function(g){var _=rt().Buffer,E=kt().Transform,O=yp(),$=pe(),q=nt().ok,j=rt().kMaxLength,w="Cannot create final Buffer. It would be larger than 0x"+j.toString(16)+" bytes";O.Z_MIN_WINDOWBITS=8,O.Z_MAX_WINDOWBITS=15,O.Z_DEFAULT_WINDOWBITS=15,O.Z_MIN_CHUNK=64,O.Z_MAX_CHUNK=1/0,O.Z_DEFAULT_CHUNK=16384,O.Z_MIN_MEMLEVEL=1,O.Z_MAX_MEMLEVEL=9,O.Z_DEFAULT_MEMLEVEL=8,O.Z_MIN_LEVEL=-1,O.Z_MAX_LEVEL=9,O.Z_DEFAULT_LEVEL=O.Z_DEFAULT_COMPRESSION;for(var S=Object.keys(O),R=0;R<S.length;R++){var T=S[R];T.match(/^Z/)&&Object.defineProperty(g,T,{enumerable:!0,value:O[T],writable:!1})}for(var U={Z_OK:O.Z_OK,Z_STREAM_END:O.Z_STREAM_END,Z_NEED_DICT:O.Z_NEED_DICT,Z_ERRNO:O.Z_ERRNO,Z_STREAM_ERROR:O.Z_STREAM_ERROR,Z_DATA_ERROR:O.Z_DATA_ERROR,Z_MEM_ERROR:O.Z_MEM_ERROR,Z_BUF_ERROR:O.Z_BUF_ERROR,Z_VERSION_ERROR:O.Z_VERSION_ERROR},N=Object.keys(U),A=0;A<N.length;A++){var H=N[A];U[U[H]]=H}function P(k,D,Y){var W=[],Q=0;function ee(){for(var J;(J=k.read())!==null;)W.push(J),Q+=J.length;k.once("readable",ee)}function X(){var J,re=null;Q>=j?re=new RangeError(w):J=_.concat(W,Q),W=[],k.close(),Y(re,J)}k.on("error",(function(J){k.removeListener("end",X),k.removeListener("readable",ee),Y(J)})),k.on("end",X),k.end(D),ee()}function I(k,D){if(typeof D=="string"&&(D=_.from(D)),!_.isBuffer(D))throw new TypeError("Not a string or buffer");var Y=k._finishFlushFlag;return k._processChunk(D,Y)}function x(k){if(!(this instanceof x))return new x(k);G.call(this,k,O.DEFLATE)}function C(k){if(!(this instanceof C))return new C(k);G.call(this,k,O.INFLATE)}function Z(k){if(!(this instanceof Z))return new Z(k);G.call(this,k,O.GZIP)}function V(k){if(!(this instanceof V))return new V(k);G.call(this,k,O.GUNZIP)}function L(k){if(!(this instanceof L))return new L(k);G.call(this,k,O.DEFLATERAW)}function M(k){if(!(this instanceof M))return new M(k);G.call(this,k,O.INFLATERAW)}function F(k){if(!(this instanceof F))return new F(k);G.call(this,k,O.UNZIP)}function B(k){return k===O.Z_NO_FLUSH||k===O.Z_PARTIAL_FLUSH||k===O.Z_SYNC_FLUSH||k===O.Z_FULL_FLUSH||k===O.Z_FINISH||k===O.Z_BLOCK}function G(k,D){var Y=this;if(this._opts=k=k||{},this._chunkSize=k.chunkSize||g.Z_DEFAULT_CHUNK,E.call(this,k),k.flush&&!B(k.flush))throw new Error("Invalid flush flag: "+k.flush);if(k.finishFlush&&!B(k.finishFlush))throw new Error("Invalid flush flag: "+k.finishFlush);if(this._flushFlag=k.flush||O.Z_NO_FLUSH,this._finishFlushFlag=k.finishFlush!==void 0?k.finishFlush:O.Z_FINISH,k.chunkSize&&(k.chunkSize<g.Z_MIN_CHUNK||k.chunkSize>g.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+k.chunkSize);if(k.windowBits&&(k.windowBits<g.Z_MIN_WINDOWBITS||k.windowBits>g.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+k.windowBits);if(k.level&&(k.level<g.Z_MIN_LEVEL||k.level>g.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+k.level);if(k.memLevel&&(k.memLevel<g.Z_MIN_MEMLEVEL||k.memLevel>g.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+k.memLevel);if(k.strategy&&k.strategy!=g.Z_FILTERED&&k.strategy!=g.Z_HUFFMAN_ONLY&&k.strategy!=g.Z_RLE&&k.strategy!=g.Z_FIXED&&k.strategy!=g.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+k.strategy);if(k.dictionary&&!_.isBuffer(k.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new O.Zlib(D);var W=this;this._hadError=!1,this._handle.onerror=function(X,J){z(W),W._hadError=!0;var re=new Error(X);re.errno=J,re.code=g.codes[J],W.emit("error",re)};var Q=g.Z_DEFAULT_COMPRESSION;typeof k.level=="number"&&(Q=k.level);var ee=g.Z_DEFAULT_STRATEGY;typeof k.strategy=="number"&&(ee=k.strategy),this._handle.init(k.windowBits||g.Z_DEFAULT_WINDOWBITS,Q,k.memLevel||g.Z_DEFAULT_MEMLEVEL,ee,k.dictionary),this._buffer=_.allocUnsafe(this._chunkSize),this._offset=0,this._level=Q,this._strategy=ee,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!Y._handle},configurable:!0,enumerable:!0})}function z(k,D){D&&te.nextTick(D),k._handle&&(k._handle.close(),k._handle=null)}function K(k){k.emit("close")}Object.defineProperty(g,"codes",{enumerable:!0,value:Object.freeze(U),writable:!1}),g.Deflate=x,g.Inflate=C,g.Gzip=Z,g.Gunzip=V,g.DeflateRaw=L,g.InflateRaw=M,g.Unzip=F,g.createDeflate=function(k){return new x(k)},g.createInflate=function(k){return new C(k)},g.createDeflateRaw=function(k){return new L(k)},g.createInflateRaw=function(k){return new M(k)},g.createGzip=function(k){return new Z(k)},g.createGunzip=function(k){return new V(k)},g.createUnzip=function(k){return new F(k)},g.deflate=function(k,D,Y){return typeof D=="function"&&(Y=D,D={}),P(new x(D),k,Y)},g.deflateSync=function(k,D){return I(new x(D),k)},g.gzip=function(k,D,Y){return typeof D=="function"&&(Y=D,D={}),P(new Z(D),k,Y)},g.gzipSync=function(k,D){return I(new Z(D),k)},g.deflateRaw=function(k,D,Y){return typeof D=="function"&&(Y=D,D={}),P(new L(D),k,Y)},g.deflateRawSync=function(k,D){return I(new L(D),k)},g.unzip=function(k,D,Y){return typeof D=="function"&&(Y=D,D={}),P(new F(D),k,Y)},g.unzipSync=function(k,D){return I(new F(D),k)},g.inflate=function(k,D,Y){return typeof D=="function"&&(Y=D,D={}),P(new C(D),k,Y)},g.inflateSync=function(k,D){return I(new C(D),k)},g.gunzip=function(k,D,Y){return typeof D=="function"&&(Y=D,D={}),P(new V(D),k,Y)},g.gunzipSync=function(k,D){return I(new V(D),k)},g.inflateRaw=function(k,D,Y){return typeof D=="function"&&(Y=D,D={}),P(new M(D),k,Y)},g.inflateRawSync=function(k,D){return I(new M(D),k)},$.inherits(G,E),G.prototype.params=function(k,D,Y){if(k<g.Z_MIN_LEVEL||k>g.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+k);if(D!=g.Z_FILTERED&&D!=g.Z_HUFFMAN_ONLY&&D!=g.Z_RLE&&D!=g.Z_FIXED&&D!=g.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+D);if(this._level!==k||this._strategy!==D){var W=this;this.flush(O.Z_SYNC_FLUSH,(function(){q(W._handle,"zlib binding closed"),W._handle.params(k,D),W._hadError||(W._level=k,W._strategy=D,Y&&Y())}))}else te.nextTick(Y)},G.prototype.reset=function(){return q(this._handle,"zlib binding closed"),this._handle.reset()},G.prototype._flush=function(k){this._transform(_.alloc(0),"",k)},G.prototype.flush=function(k,D){var Y=this,W=this._writableState;(typeof k=="function"||k===void 0&&!D)&&(D=k,k=O.Z_FULL_FLUSH),W.ended?D&&te.nextTick(D):W.ending?D&&this.once("end",D):W.needDrain?D&&this.once("drain",(function(){return Y.flush(k,D)})):(this._flushFlag=k,this.write(_.alloc(0),"",D))},G.prototype.close=function(k){z(this,k),te.nextTick(K,this)},G.prototype._transform=function(k,D,Y){var W,Q=this._writableState,ee=(Q.ending||Q.ended)&&(!k||Q.length===k.length);return k===null||_.isBuffer(k)?this._handle?(ee?W=this._finishFlushFlag:(W=this._flushFlag,k.length>=Q.length&&(this._flushFlag=this._opts.flush||O.Z_NO_FLUSH)),void this._processChunk(k,W,Y)):Y(new Error("zlib binding closed")):Y(new Error("invalid input"))},G.prototype._processChunk=function(k,D,Y){var W=k&&k.length,Q=this._chunkSize-this._offset,ee=0,X=this,J=typeof Y=="function";if(!J){var re,ie=[],oe=0;this.on("error",(function(se){re=se})),q(this._handle,"zlib binding closed");do var ce=this._handle.writeSync(D,k,ee,W,this._buffer,this._offset,Q);while(!this._hadError&&we(ce[0],ce[1]));if(this._hadError)throw re;if(oe>=j)throw z(this),new RangeError(w);var Ae=_.concat(ie,oe);return z(this),Ae}q(this._handle,"zlib binding closed");var be=this._handle.write(D,k,ee,W,this._buffer,this._offset,Q);function we(se,le){if(this&&(this.buffer=null,this.callback=null),!X._hadError){var de=Q-le;if(q(de>=0,"have should not go down"),de>0){var ne=X._buffer.slice(X._offset,X._offset+de);X._offset+=de,J?X.push(ne):(ie.push(ne),oe+=ne.length)}if((le===0||X._offset>=X._chunkSize)&&(Q=X._chunkSize,X._offset=0,X._buffer=_.allocUnsafe(X._chunkSize)),le===0){if(ee+=W-se,W=se,!J)return!0;var me=X._handle.write(D,k,ee,W,X._buffer,X._offset,X._chunkSize);return me.callback=we,void(me.buffer=k)}if(!J)return!1;Y()}}be.buffer=k,be.callback=we},$.inherits(x,G),$.inherits(C,G),$.inherits(Z,G),$.inherits(V,G),$.inherits(L,G),$.inherits(M,G),$.inherits(F,G)})(Gs)),Gs),o=ae().MESSAGE,c=Ye(),a=c.Stream,f=c.PassThrough,b=ct(),v=At()("winston:file"),d=Fe(),y=vp();return _r=(function(g){function _(){var E,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function $(q){for(var j=arguments.length,w=new Array(j>1?j-1:0),S=1;S<j;S++)w[S-1]=arguments[S];w.slice(1).forEach((function(R){if(O[R])throw new Error("Cannot set ".concat(R," and ").concat(q," together"))}))}if((function(q,j){if(!(q instanceof j))throw new TypeError("Cannot call a class as a function")})(this,_),(E=i(this,_,[O])).name=O.name||"file",E._stream=new f,E._stream.setMaxListeners(30),E._onError=E._onError.bind(E),O.filename||O.dirname)$("filename or dirname","stream"),E._basename=E.filename=O.filename?n.basename(O.filename):"winston.log",E.dirname=O.dirname||n.dirname(O.filename),E.options=O.options||{flags:"a"};else{if(!O.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),$("stream","filename","maxsize"),E._dest=E._stream.pipe(E._setupStream(O.stream)),E.dirname=n.dirname(E._dest.path)}return E.maxsize=O.maxsize||null,E.rotationFormat=O.rotationFormat||!1,E.zippedArchive=O.zippedArchive||!1,E.maxFiles=O.maxFiles||null,E.eol=typeof O.eol=="string"?O.eol:d.EOL,E.tailable=O.tailable||!1,E.lazy=O.lazy||!1,E._size=0,E._pendingSize=0,E._created=0,E._drain=!1,E._opening=!1,E._ending=!1,E._fileExist=!1,E.dirname&&E._createLogDirIfNotExist(E.dirname),E.lazy||E.open(),E}return(function(E,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(O&&O.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),O&&h(E,O)})(_,g),u(_,[{key:"finishIfEnding",value:function(){var E=this;this._ending&&(this._opening?this.once("open",(function(){E._stream.once("finish",(function(){return E.emit("finish")})),setImmediate((function(){return E._stream.end()}))})):(this._stream.once("finish",(function(){return E.emit("finish")})),setImmediate((function(){return E._stream.end()}))))}},{key:"log",value:function(E){var O=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return $(),!0;if(this._drain)this._stream.once("drain",(function(){O._drain=!1,O.log(E,$)}));else{if(!this._rotate){if(this.lazy){if(!this._fileExist)return this._opening||this.open(),void this.once("open",(function(){O._fileExist=!0,O.log(E,$)}));if(this._needsNewFile(this._pendingSize))return void this._dest.once("close",(function(){O._opening||O.open(),O.once("open",(function(){O.log(E,$)}))}))}var q="".concat(E[o]).concat(this.eol),j=ge.byteLength(q);this._pendingSize+=j,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var w=this._stream.write(q,(function(){var S=this;this._size+=j,this._pendingSize-=j,v("logged %s %s",this._size,q),this.emit("logged",E),this._rotate||this._opening||this._needsNewFile()&&(this.lazy?this._endStream((function(){S.emit("fileclosed")})):(this._rotate=!0,this._endStream((function(){return S._rotateFile()}))))}).bind(this));return w?$():(this._drain=!0,this._stream.once("drain",(function(){O._drain=!1,$()}))),v("written",w,this._drain),this.finishIfEnding(),w}this._stream.once("rotate",(function(){O._rotate=!1,O.log(E,$)}))}}},{key:"query",value:function(E,O){typeof E=="function"&&(O=E,E={}),E=(function(T){return T=T||{},T.rows=T.rows||T.limit||10,T.start=T.start||0,T.until=T.until||new Date,r(T.until)!=="object"&&(T.until=new Date(T.until)),T.from=T.from||T.until-864e5,r(T.from)!=="object"&&(T.from=new Date(T.from)),T.order=T.order||"desc",T})(E);var $=n.join(this.dirname,this.filename),q="",j=[],w=0,S=l.createReadStream($,{encoding:"utf8"});function R(T,U){try{var N=JSON.parse(T);(function(A){if(A&&r(A)==="object"){var H=new Date(A.timestamp);if(!(E.from&&H<E.from||E.until&&H>E.until||E.level&&E.level!==A.level))return!0}})(N)&&(function(A){if(E.rows&&j.length>=E.rows&&E.order!=="desc")return void(S.readable&&S.destroy());E.fields&&(A=E.fields.reduce((function(H,P){return H[P]=A[P],H}),{})),E.order==="desc"&&j.length>=E.rows&&j.shift(),j.push(A)})(N)}catch(A){U||S.emit("error",A)}}S.on("error",(function(T){if(S.readable&&S.destroy(),O)return T.code!=="ENOENT"?O(T):O(null,j)})),S.on("data",(function(T){for(var U=(T=(q+T).split(/\n+/)).length-1,N=0;N<U;N++)(!E.start||w>=E.start)&&R(T[N]),w++;q=T[U]})),S.on("close",(function(){q&&R(q,!0),E.order==="desc"&&(j=j.reverse()),O&&O(null,j)}))}},{key:"stream",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=n.join(this.dirname,this.filename),$=new a,q={file:O,start:E.start};return $.destroy=y(q,(function(j,w){if(j)return $.emit("error",j);try{$.emit("data",w),w=JSON.parse(w),$.emit("log",w)}catch(S){$.emit("error",S)}})),$}},{key:"open",value:function(){var E=this;this.filename&&(this._opening||(this._opening=!0,this.stat((function(O,$){if(O)return E.emit("error",O);v("stat done: %s { size: %s }",E.filename,$),E._size=$,E._dest=E._createStream(E._stream),E._opening=!1,E.once("open",(function(){E._stream.emit("rotate")||(E._rotate=!1)}))}))))}},{key:"stat",value:function(E){var O=this,$=this._getFile(),q=n.join(this.dirname,$);l.stat(q,(function(j,w){return j&&j.code==="ENOENT"?(v("ENOENT ok",q),O.filename=$,E(null,0)):j?(v("err ".concat(j.code," ").concat(q)),E(j)):!w||O._needsNewFile(w.size)?O._incFile((function(){return O.stat(E)})):(O.filename=$,void E(null,w.size))}))}},{key:"close",value:function(E){var O=this;this._stream&&this._stream.end((function(){E&&E(),O.emit("flush"),O.emit("closed")}))}},{key:"_needsNewFile",value:function(E){return E=E||this._size,this.maxsize&&E>=this.maxsize}},{key:"_onError",value:function(E){this.emit("error",E)}},{key:"_setupStream",value:function(E){return E.on("error",this._onError),E}},{key:"_cleanupStream",value:function(E){return E.removeListener("error",this._onError),E.destroy(),E}},{key:"_rotateFile",value:function(){var E=this;this._incFile((function(){return E.open()}))}},{key:"_endStream",value:function(){var E=this,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end((function(){E._cleanupStream(E._dest),O()}))):O()}},{key:"_createStream",value:function(E){var O=this,$=n.join(this.dirname,this.filename);v("create stream start",$,this.options);var q=l.createWriteStream($,this.options).on("error",(function(j){return v(j)})).on("close",(function(){return v("close",q.path,q.bytesWritten)})).on("open",(function(){v("file open ok",$),O.emit("open",$),E.pipe(q),O.rotatedWhileOpening&&(O._stream=new f,O._stream.setMaxListeners(30),O._rotateFile(),O.rotatedWhileOpening=!1,O._cleanupStream(q),E.end())}));return v("create stream ok",$),q}},{key:"_incFile",value:function(E){v("_incFile",this.filename);var O=n.extname(this._basename),$=n.basename(this._basename,O),q=[];this.zippedArchive&&q.push((function(j){var w=this._created>0&&!this.tailable?this._created:"";this._compressFile(n.join(this.dirname,"".concat($).concat(w).concat(O)),n.join(this.dirname,"".concat($).concat(w).concat(O,".gz")),j)}).bind(this)),q.push((function(j){this.tailable?this._checkMaxFilesTailable(O,$,j):(this._created+=1,this._checkMaxFilesIncrementing(O,$,j))}).bind(this)),t(q,E)}},{key:"_getFile",value:function(){var E=n.extname(this._basename),O=n.basename(this._basename,E),$=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?"".concat(O).concat($).concat(E):"".concat(O).concat(E)}},{key:"_checkMaxFilesIncrementing",value:function(E,O,$){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate($);var q=this._created-this.maxFiles,j=q!==0?q:"",w=this.zippedArchive?".gz":"",S="".concat(O).concat(j).concat(E).concat(w),R=n.join(this.dirname,S);l.unlink(R,$)}},{key:"_checkMaxFilesTailable",value:function(E,O,$){var q=this,j=[];if(this.maxFiles){for(var w=this.zippedArchive?".gz":"",S=this.maxFiles-1;S>1;S--)j.push((function(R,T){var U=this,N="".concat(O).concat(R-1).concat(E).concat(w),A=n.join(this.dirname,N);l.exists(A,(function(H){if(!H)return T(null);N="".concat(O).concat(R).concat(E).concat(w),l.rename(A,n.join(U.dirname,N),T)}))}).bind(this,S));t(j,(function(){l.rename(n.join(q.dirname,"".concat(O).concat(E).concat(w)),n.join(q.dirname,"".concat(O,"1").concat(E).concat(w)),$)}))}}},{key:"_compressFile",value:function(E,O,$){l.access(E,l.F_OK,(function(q){if(q)return $();var j=e.createGzip(),w=l.createReadStream(E),S=l.createWriteStream(O);S.on("finish",(function(){l.unlink(E,$)})),w.pipe(j).pipe(S)}))}},{key:"_createLogDirIfNotExist",value:function(E){l.existsSync(E)||l.mkdirSync(E,{recursive:!0})}}])})(b),_r}function wp(){if(Xs)return Sr;function r(b){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},r(b)}function u(b,v){var d=Object.keys(b);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(b);v&&(y=y.filter((function(g){return Object.getOwnPropertyDescriptor(b,g).enumerable}))),d.push.apply(d,y)}return d}function m(b){for(var v=1;v<arguments.length;v++){var d=arguments[v]!=null?arguments[v]:{};v%2?u(Object(d),!0).forEach((function(y){i(b,y,d[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(d)):u(Object(d)).forEach((function(y){Object.defineProperty(b,y,Object.getOwnPropertyDescriptor(d,y))}))}return b}function i(b,v,d){return(v=p(v))in b?Object.defineProperty(b,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):b[v]=d,b}function s(b,v,d){return v&&(function(y,g){for(var _=0;_<g.length;_++){var E=g[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,p(E.key),E)}})(b.prototype,v),Object.defineProperty(b,"prototype",{writable:!1}),b}function p(b){var v=(function(d,y){if(r(d)!="object"||!d)return d;var g=d[Symbol.toPrimitive];if(g!==void 0){var _=g.call(d,y);if(r(_)!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(d)})(b,"string");return r(v)=="symbol"?v:v+""}function h(b,v,d){return v=n(v),(function(y,g){if(g&&(r(g)=="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _})(y)})(b,l()?Reflect.construct(v,d||[],n(b).constructor):v.apply(b,d))}function l(){try{var b=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(l=function(){return!!b})()}function n(b){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},n(b)}function t(b,v){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,y){return d.__proto__=y,d},t(b,v)}Xs=1;var e=uf(),o=cf(),c=Ye().Stream,a=ct(),f=ut().configure;return Sr=(function(b){function v(){var d,y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(function(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")})(this,v),(d=h(this,v,[y])).options=y,d.name=y.name||"http",d.ssl=!!y.ssl,d.host=y.host||"localhost",d.port=y.port,d.auth=y.auth,d.path=y.path||"",d.maximumDepth=y.maximumDepth,d.agent=y.agent,d.headers=y.headers||{},d.headers["content-type"]="application/json",d.batch=y.batch||!1,d.batchInterval=y.batchInterval||5e3,d.batchCount=y.batchCount||10,d.batchOptions=[],d.batchTimeoutID=-1,d.batchCallback={},d.port||(d.port=d.ssl?443:80),d}return(function(d,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(y&&y.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),y&&t(d,y)})(v,b),s(v,[{key:"log",value:function(d,y){var g=this;this._request(d,null,null,(function(_,E){E&&E.statusCode!==200&&(_=new Error("Invalid HTTP Status Code: ".concat(E.statusCode))),_?g.emit("warn",_):g.emit("logged",d)})),y&&setImmediate(y)}},{key:"query",value:function(d,y){typeof d=="function"&&(y=d,d={});var g=(d={method:"query",params:this.normalizeQuery(d)}).params.auth||null;delete d.params.auth;var _=d.params.path||null;delete d.params.path,this._request(d,g,_,(function(E,O,$){if(O&&O.statusCode!==200&&(E=new Error("Invalid HTTP Status Code: ".concat(O.statusCode))),E)return y(E);if(typeof $=="string")try{$=JSON.parse($)}catch(q){return y(q)}y(null,$)}))}},{key:"stream",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=new c,g=(d={method:"stream",params:d}).params.path||null;delete d.params.path;var _=d.params.auth||null;delete d.params.auth;var E="",O=this._request(d,_,g);return y.destroy=function(){return O.destroy()},O.on("data",(function($){for(var q=($=(E+$).split(/\n+/)).length-1,j=0;j<q;j++)try{y.emit("log",JSON.parse($[j]))}catch(w){y.emit("error",w)}E=$[q]})),O.on("error",(function($){return y.emit("error",$)})),y}},{key:"_request",value:function(d,y,g,_){d=d||{},y=y||this.auth,g=g||this.path||"",this.batch?this._doBatch(d,_,y,g):this._doRequest(d,_,y,g)}},{key:"_doBatch",value:function(d,y,g,_){if(this.batchOptions.push(d),this.batchOptions.length===1){var E=this;this.batchCallback=y,this.batchTimeoutID=setTimeout((function(){E.batchTimeoutID=-1,E._doBatchRequest(E.batchCallback,g,_)}),this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,g,_)}},{key:"_doBatchRequest",value:function(d,y,g){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var _=this.batchOptions.slice();this.batchOptions=[],this._doRequest(_,d,y,g)}},{key:"_doRequest",value:function(d,y,g,_){var E=Object.assign({},this.headers);g&&g.bearer&&(E.Authorization="Bearer ".concat(g.bearer));var O=(this.ssl?o:e).request(m(m({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(_.replace(/^\//,"")),headers:E,auth:g&&g.username&&g.password?"".concat(g.username,":").concat(g.password):"",agent:this.agent}));O.on("error",y),O.on("response",(function(q){return q.on("end",(function(){return y(null,q)})).resume()}));var $=f(m({},this.maximumDepth&&{maximumDepth:this.maximumDepth}));O.end(ge.from($(d,this.options.replacer),"utf8"))}}])})(a),Sr}function Sl(){if(ea)return Qs;ea=1;const r=u=>u!==null&&typeof u=="object"&&typeof u.pipe=="function";return r.writable=u=>r(u)&&u.writable!==!1&&typeof u._write=="function"&&typeof u._writableState=="object",r.readable=u=>r(u)&&u.readable!==!1&&typeof u._read=="function"&&typeof u._readableState=="object",r.duplex=u=>r.writable(u)&&r.readable(u),r.transform=u=>r.duplex(u)&&typeof u._transform=="function",Qs=r}function Ep(){if(ta)return Or;function r(o){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r(o)}function u(o,c,a){return c&&(function(f,b){for(var v=0;v<b.length;v++){var d=b[v];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,m(d.key),d)}})(o.prototype,c),Object.defineProperty(o,"prototype",{writable:!1}),o}function m(o){var c=(function(a,f){if(r(a)!="object"||!a)return a;var b=a[Symbol.toPrimitive];if(b!==void 0){var v=b.call(a,f);if(r(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(o,"string");return r(c)=="symbol"?c:c+""}function i(o,c,a){return c=p(c),(function(f,b){if(b&&(r(b)=="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v})(f)})(o,s()?Reflect.construct(c,a||[],p(o).constructor):c.apply(o,a))}function s(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(s=function(){return!!o})()}function p(o){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},p(o)}function h(o,c){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,f){return a.__proto__=f,a},h(o,c)}ta=1;var l=Sl(),n=ae().MESSAGE,t=Fe(),e=ct();return Or=(function(o){function c(){var a,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if((function(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")})(this,c),a=i(this,c,[f]),!f.stream||!l(f.stream))throw new Error("options.stream is required.");return a._stream=f.stream,a._stream.setMaxListeners(1/0),a.isObjectMode=f.stream._writableState.objectMode,a.eol=typeof f.eol=="string"?f.eol:t.EOL,a}return(function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(f&&f.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),f&&h(a,f)})(c,o),u(c,[{key:"log",value:function(a,f){var b=this;if(setImmediate((function(){return b.emit("logged",a)})),this.isObjectMode)return this._stream.write(a),void(f&&f());this._stream.write("".concat(a[n]).concat(this.eol)),f&&f()}}])})(e),Or}var oa,ze={};function vn(){if(oa)return ze;oa=1;var r=gl(),u=ae().configs;return ze.cli=r.levels(u.cli),ze.npm=r.levels(u.npm),ze.syslog=r.levels(u.syslog),ze.addColors=r.levels,ze}var ia,jr={exports:{}},Tr={exports:{}},sa,aa,ua,ca,xr,la,kr={exports:{}};function bn(){return aa||(aa=1,(function(r,u){Object.defineProperty(u,"__esModule",{value:!0});var m=(ia||(ia=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var o=y(gn()),c=y(ln()),a=y(_l()),f=y(wl()),b=y(El()),v=y(Ze()),d=y(ot());function y(E){return E&&E.__esModule?E:{default:E}}function g(E,O,$){$=(0,f.default)($);var q=0,j=0,{length:w}=E,S=!1;function R(T,U){T===!1&&(S=!0),S!==!0&&(T?$(T):++j!==w&&U!==c.default||$(null))}for(w===0&&$(null);q<w;q++)O(E[q],q,(0,b.default)(R))}function _(E,O,$){return(0,a.default)(E,1/0,O,$)}e.default=(0,d.default)((function(E,O,$){return((0,o.default)(E)?g:_)(E,(0,v.default)(O),$)}),3),t.exports=e.default})(Tr,Tr.exports)),Tr.exports),i=n(m),s=(function(){return sa||(sa=1,t=kr,e=kr.exports,Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){return(c,a,f)=>o(c,f)},t.exports=e.default),kr.exports;var t,e})(),p=n(s),h=n(Ze()),l=n(ot());function n(t){return t&&t.__esModule?t:{default:t}}u.default=(0,l.default)((function(t,e,o){return(0,i.default)(t,(0,p.default)((0,h.default)(e)),o)}),3),r.exports=u.default})(jr,jr.exports)),jr.exports}function Ol(){if(la)return xr;la=1;var r=(function(){if(ca)return ua;ca=1;var u=Object.prototype.toString;return ua=function(m){if(typeof m.displayName=="string"&&m.constructor.name)return m.displayName;if(typeof m.name=="string"&&m.name)return m.name;if(typeof m=="object"&&m.constructor&&typeof m.constructor.name=="string")return m.constructor.name;var i=m.toString(),s=u.call(m).slice(8,-1);return(i=s==="Function"?i.substring(i.indexOf("(")+1,i.indexOf(")")):s)||"anonymous"}})();return xr=function(u){var m,i=0;function s(){return i||(i=1,m=u.apply(this,arguments),u=null),m}return s.displayName=r(u),s},xr}var fa,pa,ha,Ar,da,ma,ya,Rr,ga,va={};function jl(){return fa||(fa=1,(function(r){function u(m){for(var i in m)this[i]=m[i]}r.get=function(m){var i=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var s={},p=Error.prepareStackTrace;Error.prepareStackTrace=function(l,n){return n},Error.captureStackTrace(s,m||r.get);var h=s.stack;return Error.prepareStackTrace=p,Error.stackTraceLimit=i,h},r.parse=function(m){if(!m.stack)return[];var i=this;return m.stack.split(`
|
|
87
|
+
`).slice(1).map((function(s){if(s.match(/^\s*[-]{4,}$/))return i._createParsedCallSite({fileName:s,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var p=s.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(p){var h=null,l=null,n=null,t=null,e=null,o=p[5]==="native";if(p[1]){var c=(n=p[1]).lastIndexOf(".");if(n[c-1]=="."&&c--,c>0){h=n.substr(0,c),l=n.substr(c+1);var a=h.indexOf(".Module");a>0&&(n=n.substr(a+1),h=h.substr(0,a))}t=null}l&&(t=h,e=l),l==="<anonymous>"&&(e=null,n=null);var f={fileName:p[2]||null,lineNumber:parseInt(p[3],10)||null,functionName:n,typeName:t,methodName:e,columnNumber:parseInt(p[4],10)||null,native:o};return i._createParsedCallSite(f)}})).filter((function(s){return!!s}))},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(m){u.prototype[m]=null,u.prototype["get"+m[0].toUpperCase()+m.substr(1)]=function(){return this[m]}})),["topLevel","eval","native","constructor"].forEach((function(m){u.prototype[m]=!1,u.prototype["is"+m[0].toUpperCase()+m.substr(1)]=function(){return this[m]}})),r._createParsedCallSite=function(m){return new u(m)}})(va)),va}function _p(){if(ha)return pa;function r(n){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(n)}function u(n,t,e){return t&&(function(o,c){for(var a=0;a<c.length;a++){var f=c[a];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,m(f.key),f)}})(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function m(n){var t=(function(e,o){if(r(e)!="object"||!e)return e;var c=e[Symbol.toPrimitive];if(c!==void 0){var a=c.call(e,o);if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)})(n,"string");return r(t)=="symbol"?t:t+""}function i(n,t,e){return t=p(t),(function(o,c){if(c&&(r(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a})(o)})(n,s()?Reflect.construct(t,e||[],p(n).constructor):t.apply(n,e))}function s(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(s=function(){return!!n})()}function p(n){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(n)}function h(n,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},h(n,t)}ha=1;var l=Ye().Writable;return pa=(function(n){function t(e){var o;if((function(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")})(this,t),o=i(this,t,[{objectMode:!0}]),!e)throw new Error("ExceptionStream requires a TransportStream instance.");return o.handleExceptions=!0,o.transport=e,o}return(function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),o&&h(e,o)})(t,n),u(t,[{key:"_write",value:function(e,o,c){return e.exception?this.transport.log(e,c):(c(),!0)}}])})(l)}function Tl(){if(da)return Ar;function r(t){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}function u(t,e,o){return e&&(function(c,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(c,m(b.key),b)}})(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t){var e=(function(o,c){if(r(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var f=a.call(o,c);if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)})(t,"string");return r(e)=="symbol"?e:e+""}da=1;var i=Fe(),s=bn(),p=At()("winston:exception"),h=Ol(),l=jl(),n=_p();return Ar=(function(){return u((function t(e){if((function(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}),[{key:"handle",value:function(){for(var t=this,e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];o.forEach((function(a){if(Array.isArray(a))return a.forEach((function(f){return t._addHandler(f)}));t._addHandler(a)})),this.catcher||(this.catcher=this._uncaughtException.bind(this),te.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var t=this;this.catcher&&(te.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((function(e){return t.logger.unpipe(e)})))}},{key:"getAllInfo",value:function(t){var e=null;return t&&(e=typeof t=="string"?t:t.message),{error:t,level:"error",message:["uncaughtException: ".concat(e||"(no error message)"),t&&t.stack||" No stack trace"].join(`
|
|
88
|
+
`),stack:t&&t.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(t)}}},{key:"getProcessInfo",value:function(){return{pid:te.pid,uid:te.getuid?te.getuid():null,gid:te.getgid?te.getgid():null,cwd:te.cwd(),execPath:te.execPath,version:te.version,argv:te.argv,memoryUsage:te.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(t){return(t?l.parse(t):l.get()).map((function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}}))}},{key:"_addHandler",value:function(t){if(!this.handlers.has(t)){t.handleExceptions=!0;var e=new n(t);this.handlers.set(t,e),this.logger.pipe(e)}}},{key:"_uncaughtException",value:function(t){var e,o=this.getAllInfo(t),c=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(t):this.logger.exitOnError;function f(){p("doExit",a),p("process._exiting",te._exiting),a&&!te._exiting&&(e&&clearTimeout(e),te.exit(1))}if(!c.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1),!c||c.length===0)return te.nextTick(f);s(c,(function(b,v){var d=h(v),y=b.transport||b;function g(_){return function(){p(_),d()}}y._ending=!0,y.once("finish",g("finished")),y.once("error",g("error"))}),(function(){return a&&f()})),this.logger.log(o),a&&(e=setTimeout(f,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter((function(t){return(t.transport||t).handleExceptions}))}}])})(),Ar}function Sp(){if(ya)return ma;function r(n){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(n)}function u(n,t,e){return t&&(function(o,c){for(var a=0;a<c.length;a++){var f=c[a];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,m(f.key),f)}})(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function m(n){var t=(function(e,o){if(r(e)!="object"||!e)return e;var c=e[Symbol.toPrimitive];if(c!==void 0){var a=c.call(e,o);if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)})(n,"string");return r(t)=="symbol"?t:t+""}function i(n,t,e){return t=p(t),(function(o,c){if(c&&(r(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a})(o)})(n,s()?Reflect.construct(t,e||[],p(n).constructor):t.apply(n,e))}function s(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(s=function(){return!!n})()}function p(n){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(n)}function h(n,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},h(n,t)}ya=1;var l=Ye().Writable;return ma=(function(n){function t(e){var o;if((function(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")})(this,t),o=i(this,t,[{objectMode:!0}]),!e)throw new Error("RejectionStream requires a TransportStream instance.");return o.handleRejections=!0,o.transport=e,o}return(function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),o&&h(e,o)})(t,n),u(t,[{key:"_write",value:function(e,o,c){return e.rejection?this.transport.log(e,c):(c(),!0)}}])})(l)}function xl(){if(ga)return Rr;function r(t){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}function u(t,e,o){return e&&(function(c,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(c,m(b.key),b)}})(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t){var e=(function(o,c){if(r(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var f=a.call(o,c);if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)})(t,"string");return r(e)=="symbol"?e:e+""}ga=1;var i=Fe(),s=bn(),p=At()("winston:rejection"),h=Ol(),l=jl(),n=Sp();return Rr=(function(){return u((function t(e){if((function(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}),[{key:"handle",value:function(){for(var t=this,e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];o.forEach((function(a){if(Array.isArray(a))return a.forEach((function(f){return t._addHandler(f)}));t._addHandler(a)})),this.catcher||(this.catcher=this._unhandledRejection.bind(this),te.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var t=this;this.catcher&&(te.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((function(e){return t.logger.unpipe(e)})))}},{key:"getAllInfo",value:function(t){var e=null;return t&&(e=typeof t=="string"?t:t.message),{error:t,level:"error",message:["unhandledRejection: ".concat(e||"(no error message)"),t&&t.stack||" No stack trace"].join(`
|
|
89
|
+
`),stack:t&&t.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(t)}}},{key:"getProcessInfo",value:function(){return{pid:te.pid,uid:te.getuid?te.getuid():null,gid:te.getgid?te.getgid():null,cwd:te.cwd(),execPath:te.execPath,version:te.version,argv:te.argv,memoryUsage:te.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(t){return(t?l.parse(t):l.get()).map((function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}}))}},{key:"_addHandler",value:function(t){if(!this.handlers.has(t)){t.handleRejections=!0;var e=new n(t);this.handlers.set(t,e),this.logger.pipe(e)}}},{key:"_unhandledRejection",value:function(t){var e,o=this.getAllInfo(t),c=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(t):this.logger.exitOnError;function f(){p("doExit",a),p("process._exiting",te._exiting),a&&!te._exiting&&(e&&clearTimeout(e),te.exit(1))}if(!c.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1),!c||c.length===0)return te.nextTick(f);s(c,(function(b,v){var d=h(v),y=b.transport||b;function g(_){return function(){p(_),d()}}y._ending=!0,y.once("finish",g("finished")),y.once("error",g("error"))}),(function(){return a&&f()})),this.logger.log(o),a&&(e=setTimeout(f,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter((function(t){return(t.transport||t).handleRejections}))}}])})(),Rr}var ba,wa,Ea,_a,Sa,Oa,ja,Ta,xa,ka,Pr,Aa,Ir,Ra,Pa,Nr={exports:{}},Lr={exports:{}};function Op(){if(wa)return Nr.exports;wa=1;const r=pe(),{LEVEL:u}=ae(),m=(function(){if(ba)return Lr.exports;ba=1;const s=pe(),p=Zc(),{LEVEL:h}=ae(),l=Lr.exports=function(n={}){p.call(this,{objectMode:!0,highWaterMark:n.highWaterMark}),this.format=n.format,this.level=n.level,this.handleExceptions=n.handleExceptions,this.handleRejections=n.handleRejections,this.silent=n.silent,n.log&&(this.log=n.log),n.logv&&(this.logv=n.logv),n.close&&(this.close=n.close),this.once("pipe",(t=>{this.levels=t.levels,this.parent=t})),this.once("unpipe",(t=>{t===this.parent&&(this.parent=null,this.close&&this.close())}))};return s.inherits(l,p),l.prototype._write=function(n,t,e){if(this.silent||n.exception===!0&&!this.handleExceptions)return e(null);const o=this.level||this.parent&&this.parent.level;if(!o||this.levels[o]>=this.levels[n[h]]){if(n&&!this.format)return this.log(n,e);let c,a;try{a=this.format.transform(Object.assign({},n),this.format.options)}catch(f){c=f}if(c||!a){if(e(),c)throw c;return}return this.log(a,e)}return this._writableState.sync=!1,e(null)},l.prototype._writev=function(n,t){if(this.logv){const e=n.filter(this._accept,this);return e.length?this.logv(e,t):t(null)}for(let e=0;e<n.length;e++){if(!this._accept(n[e]))continue;if(n[e].chunk&&!this.format){this.log(n[e].chunk,n[e].callback);continue}let o,c;try{c=this.format.transform(Object.assign({},n[e].chunk),this.format.options)}catch(a){o=a}if(o||!c){if(n[e].callback(),o)throw t(null),o}else this.log(c,n[e].callback)}return t(null)},l.prototype._accept=function(n){const t=n.chunk;if(this.silent)return!1;const e=this.level||this.parent&&this.parent.level;return!(t.exception!==!0&&e&&!(this.levels[e]>=this.levels[t[h]])||!this.handleExceptions&&t.exception===!0)},l.prototype._nop=function(){},Lr.exports})(),i=Nr.exports=function(s={}){if(m.call(this,s),!s.transport||typeof s.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=s.transport,this.level=this.level||s.transport.level,this.handleExceptions=this.handleExceptions||s.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=(function(p){this.emit("error",p,this.transport)}).bind(this),this.transport.on("error",this.transport.__winstonError))};return r.inherits(i,m),i.prototype._write=function(s,p,h){if(this.silent||s.exception===!0&&!this.handleExceptions)return h(null);(!this.level||this.levels[this.level]>=this.levels[s[u]])&&this.transport.log(s[u],s.message,s,this._nop),h(null)},i.prototype._writev=function(s,p){for(let h=0;h<s.length;h++)this._accept(s[h])&&(this.transport.log(s[h].chunk[u],s[h].chunk.message,s[h].chunk,this._nop),s[h].callback());return p(null)},i.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
90
|
+
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},Nr.exports}function jp(){if(_a)return Ea;function r(s){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},r(s)}function u(s,p,h){return p&&(function(l,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,m(e.key),e)}})(s.prototype,p),Object.defineProperty(s,"prototype",{writable:!1}),s}function m(s){var p=(function(h,l){if(r(h)!="object"||!h)return h;var n=h[Symbol.toPrimitive];if(n!==void 0){var t=n.call(h,l);if(r(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)})(s,"string");return r(p)=="symbol"?p:p+""}_a=1;var i=(function(){return u((function s(p){(function(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")})(this,s);var h=wn();if(r(p)!=="object"||Array.isArray(p)||!(p instanceof h))throw new Error("Logger is required for profiling");this.logger=p,this.start=Date.now()}),[{key:"done",value:function(){for(var s=arguments.length,p=new Array(s),h=0;h<s;h++)p[h]=arguments[h];typeof p[p.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),p.pop());var l=r(p[p.length-1])==="object"?p.pop():{};return l.level=l.level||"info",l.durationMs=Date.now()-this.start,this.logger.write(l)}}])})();return Ea=i}function Tp(){if(Oa)return Sa;Oa=1;class r extends Error{constructor(m){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
91
|
+
Found: ${m.toString().split(`
|
|
92
|
+
`)[0]}
|
|
93
|
+
`),Error.captureStackTrace(this,r)}}return Sa=u=>{if(u.length>2)throw new r(u);function m(s={}){this.options=s}function i(s){return new m(s)}return m.prototype.transform=u,i.Format=m,i}}function wn(){if(ka)return xa;function r(j,w,S){return(w=i(w))in j?Object.defineProperty(j,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):j[w]=S,j}function u(j){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},u(j)}function m(j,w,S){return w&&(function(R,T){for(var U=0;U<T.length;U++){var N=T[U];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(R,i(N.key),N)}})(j.prototype,w),Object.defineProperty(j,"prototype",{writable:!1}),j}function i(j){var w=(function(S,R){if(u(S)!="object"||!S)return S;var T=S[Symbol.toPrimitive];if(T!==void 0){var U=T.call(S,R);if(u(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)})(j,"string");return u(w)=="symbol"?w:w+""}function s(j,w,S){return w=h(w),(function(R,T){if(T&&(u(T)=="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U})(R)})(j,p()?Reflect.construct(w,S||[],h(j).constructor):w.apply(j,S))}function p(){try{var j=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(p=function(){return!!j})()}function h(j){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},h(j)}function l(j,w){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,R){return S.__proto__=R,S},l(j,w)}ka=1;var n=Ye(),t=n.Stream,e=n.Transform,o=bn(),c=ae(),a=c.LEVEL,f=c.SPLAT,b=Sl(),v=Tl(),d=xl(),y=Op(),g=jp(),_=vl().warn,E=vn(),O=/%[scdjifoO%]/g,$=(function(j){function w(S){var R;return(function(T,U){if(!(T instanceof U))throw new TypeError("Cannot call a class as a function")})(this,w),(R=s(this,w,[{objectMode:!0}])).configure(S),R}return(function(S,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(R&&R.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),R&&l(S,R)})(w,j),m(w,[{key:"child",value:function(S){var R=this;return Object.create(R,{write:{value:function(T){var U=Object.assign({},S,T);T instanceof Error&&(U.stack=T.stack,U.message=T.message),R.write(U)}}})}},{key:"configure",value:function(){var S=this,R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=R.silent,U=R.format,N=R.defaultMeta,A=R.levels,H=R.level,P=H===void 0?"info":H,I=R.exitOnError,x=I===void 0||I,C=R.transports,Z=R.colors,V=R.emitErrs,L=R.formatters,M=R.padLevels,F=R.rewriters,B=R.stripColors,G=R.exceptionHandlers,z=R.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=T,this.format=U||this.format||(function(){if(Ta)return ja;Ta=1;const K=Tp(),{MESSAGE:k}=ae(),D=ut();function Y(W,Q){return typeof Q=="bigint"?Q.toString():Q}return ja=K(((W,Q)=>{const ee=D.configure(Q);return W[k]=ee(W,Q.replacer||Y,Q.space),W}))})()(),this.defaultMeta=N||null,this.levels=A||this.levels||E.npm.levels,this.level=P,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new v(this),this.rejections=new d(this),this.profilers={},this.exitOnError=x,C&&(C=Array.isArray(C)?C:[C]).forEach((function(K){return S.add(K)})),Z||V||L||M||F||B)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
94
|
+
`));G&&this.exceptions.handle(G),z&&this.rejections.handle(z)}},{key:"isLevelEnabled",value:function(S){var R=this,T=q(this.levels,S);if(T===null)return!1;var U=q(this.levels,this.level);return U!==null&&(this.transports&&this.transports.length!==0?this.transports.findIndex((function(N){var A=q(R.levels,N.level);return A===null&&(A=U),A>=T}))!==-1:U>=T)}},{key:"log",value:function(S,R){for(var T=arguments.length,U=new Array(T>2?T-2:0),N=2;N<T;N++)U[N-2]=arguments[N];if(arguments.length===1)return S[a]=S.level,this._addDefaultMeta(S),this.write(S),this;if(arguments.length===2)return R&&u(R)==="object"?(R[a]=R.level=S,this._addDefaultMeta(R),this.write(R),this):(R=r(r(r({},a,S),"level",S),"message",R),this._addDefaultMeta(R),this.write(R),this);var A=U[0];if(u(A)==="object"&&A!==null&&!(R&&R.match&&R.match(O))){var H=Object.assign({},this.defaultMeta,A,r(r(r(r({},a,S),f,U),"level",S),"message",R));return A.message&&(H.message="".concat(H.message," ").concat(A.message)),A.stack&&(H.stack=A.stack),A.cause&&(H.cause=A.cause),this.write(H),this}return this.write(Object.assign({},this.defaultMeta,r(r(r(r({},a,S),f,U),"level",S),"message",R))),this}},{key:"_transform",value:function(S,R,T){if(this.silent)return T();S[a]||(S[a]=S.level),this.levels[S[a]]||this.levels[S[a]]===0||console.error("[winston] Unknown logger level: %s",S[a]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",S);try{this.push(this.format.transform(S,this.format.options))}finally{this._writableState.sync=!1,T()}}},{key:"_final",value:function(S){var R=this.transports.slice();o(R,(function(T,U){if(!T||T.finished)return setImmediate(U);T.once("finish",U),T.end()}),S)}},{key:"add",value:function(S){var R=!b(S)||S.log.length>2?new y({transport:S}):S;if(!R._writableState||!R._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",R),this._onEvent("warn",R),this.pipe(R),S.handleExceptions&&this.exceptions.handle(),S.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(S){if(!S)return this;var R=S;return(!b(S)||S.log.length>2)&&(R=this.transports.filter((function(T){return T.transport===S}))[0]),R&&this.unpipe(R),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){_.deprecated("setLevels")}},{key:"query",value:function(S,R){typeof S=="function"&&(R=S,S={}),S=S||{};var T={},U=Object.assign({},S.query||{});o(this.transports.filter((function(N){return!!N.query})),(function(N,A){(function(H,P){S.query&&typeof H.formatQuery=="function"&&(S.query=H.formatQuery(U)),H.query(S,(function(I,x){if(I)return P(I);typeof H.formatResults=="function"&&(x=H.formatResults(x,S.format)),P(null,x)}))})(N,(function(H,P){A&&((P=H||P)&&(T[N.name]=P),A()),A=null}))}),(function(){return R(null,T)}))}},{key:"stream",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=new t,T=[];return R._streams=T,R.destroy=function(){for(var U=T.length;U--;)T[U].destroy()},this.transports.filter((function(U){return!!U.stream})).forEach((function(U){var N=U.stream(S);N&&(T.push(N),N.on("log",(function(A){A.transport=A.transport||[],A.transport.push(U.name),R.emit("log",A)})),N.on("error",(function(A){A.transport=A.transport||[],A.transport.push(U.name),R.emit("error",A)})))})),R}},{key:"startTimer",value:function(){return new g(this)}},{key:"profile",value:function(S){var R=Date.now();if(this.profilers[S]){var T=this.profilers[S];delete this.profilers[S];for(var U=arguments.length,N=new Array(U>1?U-1:0),A=1;A<U;A++)N[A-1]=arguments[A];typeof N[N.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),N.pop());var H=u(N[N.length-1])==="object"?N.pop():{};return H.level=H.level||"info",H.durationMs=R-T,H.message=H.message||S,this.write(H)}return this.profilers[S]=R,this}},{key:"handleExceptions",value:function(){var S;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(S=this.exceptions).handle.apply(S,arguments)}},{key:"unhandleExceptions",value:function(){var S;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(S=this.exceptions).unhandle.apply(S,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
95
|
+
`))}},{key:"_onEvent",value:function(S,R){R["__winston"+S]||(R["__winston"+S]=(function(T){S!=="error"||this.transports.includes(R)||this.add(R),this.emit(S,T,R)}).bind(this),R.on(S,R["__winston"+S]))}},{key:"_addDefaultMeta",value:function(S){this.defaultMeta&&Object.assign(S,this.defaultMeta)}}])})(e);function q(j,w){var S=j[w];return S||S===0?S:null}return Object.defineProperty($.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var j=this._readableState.pipes;return Array.isArray(j)?j:[j].filter(Boolean)}}),xa=$}function kl(){if(Aa)return Pr;function r(t){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}function u(t,e,o){return e=i(e),(function(c,a){if(a&&(r(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f})(c)})(t,m()?Reflect.construct(e,o||[],i(t).constructor):e.apply(t,o))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(m=function(){return!!t})()}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,c){return o.__proto__=c,o},s(t,e)}Aa=1;var p=ae().LEVEL,h=vn(),l=wn(),n=At()("winston:create-logger");return Pr=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.levels=t.levels||h.npm.levels;var e=(function(c){function a(b){return(function(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")})(this,a),u(this,a,[b])}return(function(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),v&&s(b,v)})(a,c),f=a,Object.defineProperty(f,"prototype",{writable:!1}),f;var f})(l),o=new e(t);return Object.keys(t.levels).forEach((function(c){n('Define prototype method for "%s"',c),c!=="log"?(e.prototype[c]=function(){for(var a=this||o,f=arguments.length,b=new Array(f),v=0;v<f;v++)b[v]=arguments[v];if(b.length===1){var d=b[0],y=d&&d.message&&d||{message:d};return y.level=y[p]=c,a._addDefaultMeta(y),a.write(y),this||o}return b.length===0?(a.log(c,""),a):a.log.apply(a,[c].concat(b))},e.prototype[(function(a){return"is"+a.charAt(0).toUpperCase()+a.slice(1)+"Enabled"})(c)]=function(){return(this||o).isLevelEnabled(c)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),o},Pr}function xp(){if(Ra)return Ir;function r(s){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},r(s)}function u(s,p,h){return p&&(function(l,n){for(var t=0;t<n.length;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,m(e.key),e)}})(s.prototype,p),Object.defineProperty(s,"prototype",{writable:!1}),s}function m(s){var p=(function(h,l){if(r(h)!="object"||!h)return h;var n=h[Symbol.toPrimitive];if(n!==void 0){var t=n.call(h,l);if(r(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)})(s,"string");return r(p)=="symbol"?p:p+""}Ra=1;var i=kl();return Ir=(function(){return u((function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(h,l){if(!(h instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.loggers=new Map,this.options=p}),[{key:"add",value:function(s,p){var h=this;if(!this.loggers.has(s)){var l=(p=Object.assign({},p||this.options)).transports||this.options.transports;p.transports=l?Array.isArray(l)?l.slice():[l]:[];var n=i(p);n.on("close",(function(){return h._delete(s)})),this.loggers.set(s,n)}return this.loggers.get(s)}},{key:"get",value:function(s,p){return this.add(s,p)}},{key:"has",value:function(s){return!!this.loggers.has(s)}},{key:"close",value:function(s){var p=this;if(s)return this._removeLogger(s);this.loggers.forEach((function(h,l){return p._removeLogger(l)}))}},{key:"_removeLogger",value:function(s){this.loggers.has(s)&&(this.loggers.get(s).close(),this._delete(s))}},{key:"_delete",value:function(s){this.loggers.delete(s)}}])})(),Ir}function kp(){return Pa||(Pa=1,(function(r){var u=gl(),m=vl().warn;r.version=lp,r.transports=(function(){return ra||(ra=1,s=gs,Object.defineProperty(s,"Console",{configurable:!0,enumerable:!0,get:function(){return fp()}}),Object.defineProperty(s,"File",{configurable:!0,enumerable:!0,get:function(){return bp()}}),Object.defineProperty(s,"Http",{configurable:!0,enumerable:!0,get:function(){return wp()}}),Object.defineProperty(s,"Stream",{configurable:!0,enumerable:!0,get:function(){return Ep()}})),gs;var s})(),r.config=vn(),r.addColors=u.levels,r.format=u.format,r.createLogger=kl(),r.Logger=wn(),r.ExceptionHandler=Tl(),r.RejectionHandler=xl(),r.Container=xp(),r.Transport=ct(),r.loggers=new r.Container;var i=r.createLogger();Object.keys(r.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((function(s){return r[s]=function(){return i[s].apply(i,arguments)}})),Object.defineProperty(r,"level",{get:function(){return i.level},set:function(s){i.level=s}}),Object.defineProperty(r,"exceptions",{get:function(){return i.exceptions}}),Object.defineProperty(r,"rejections",{get:function(){return i.rejections}}),["exitOnError"].forEach((function(s){Object.defineProperty(r,s,{get:function(){return i[s]},set:function(p){i[s]=p}})})),Object.defineProperty(r,"default",{get:function(){return{exceptionHandlers:i.exceptionHandlers,rejectionHandlers:i.rejectionHandlers,transports:i.transports}}}),m.deprecated(r,"setLevels"),m.forFunctions(r,"useFormat",["cli"]),m.forProperties(r,"useFormat",["padLevels","stripColors"]),m.forFunctions(r,"deprecated",["addRewriter","addFilter","clone","extend"]),m.forProperties(r,"deprecated",["emitErrs","levelLength"])})(Qo)),Qo}var Ia,Na,La,$a,Ma,Ca,Da={exports:{}};function Rt(){if(Na)return Ia;Na=1;var r=function(u,m){Error.call(this,u),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=u,m&&(this.inner=m)};return(r.prototype=Object.create(Error.prototype)).constructor=r,Ia=r}function Al(){if($a)return La;$a=1;var r=Rt(),u=function(m,i){r.call(this,m),this.name="NotBeforeError",this.date=i};return(u.prototype=Object.create(r.prototype)).constructor=u,La=u}function Rl(){if(Ca)return Ma;Ca=1;var r=Rt(),u=function(m,i){r.call(this,m),this.name="TokenExpiredError",this.expiredAt=i};return(u.prototype=Object.create(r.prototype)).constructor=u,Ma=u}var Fa,Ua,Ba,qa,Ga,Ha,$r,za,Za,Va,Ya,Ka,Wa,Ja,Xa,Qa,eu,tu,ru,Mr,nu,ke={};function Pl(){if(Ua)return Fa;Ua=1;var r=at().Buffer,u=kt();function m(i){if(this.buffer=null,this.writable=!0,this.readable=!0,!i)return this.buffer=r.alloc(0),this;if(typeof i.pipe=="function")return this.buffer=r.alloc(0),i.pipe(this),this;if(i.length||typeof i=="object")return this.buffer=i,this.writable=!1,te.nextTick((function(){this.emit("end",i),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof i+")")}return pe().inherits(m,u),m.prototype.write=function(i){this.buffer=r.concat([this.buffer,r.from(i)]),this.emit("data",i)},m.prototype.end=function(i){i&&this.write(i),this.emit("end",i),this.emit("close"),this.writable=!1,this.readable=!1},Fa=m}function Ap(){if(Ha)return Ga;Ha=1;var r=at().Buffer,u=(function(){if(qa)return Ba;function p(l){return(l/8|0)+(l%8==0?0:1)}qa=1;var h={ES256:p(256),ES384:p(384),ES512:p(521)};return Ba=function(l){var n=h[l];if(n)return n;throw new Error('Unknown algorithm "'+l+'"')}})(),m=128;function i(p){if(r.isBuffer(p))return p;if(typeof p=="string")return r.from(p,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function s(p,h,l){for(var n=0;h+n<l&&p[h+n]===0;)++n;return p[h+n]>=m&&--n,n}return Ga={derToJose:function(p,h){p=i(p);var l=u(h),n=l+1,t=p.length,e=0;if(p[e++]!==48)throw new Error('Could not find expected "seq"');var o=p[e++];if(o===129&&(o=p[e++]),t-e<o)throw new Error('"seq" specified length of "'+o+'", only "'+(t-e)+'" remaining');if(p[e++]!==2)throw new Error('Could not find expected "int" for "r"');var c=p[e++];if(t-e-2<c)throw new Error('"r" specified length of "'+c+'", only "'+(t-e-2)+'" available');if(n<c)throw new Error('"r" specified length of "'+c+'", max of "'+n+'" is acceptable');var a=e;if(e+=c,p[e++]!==2)throw new Error('Could not find expected "int" for "s"');var f=p[e++];if(t-e!==f)throw new Error('"s" specified length of "'+f+'", expected "'+(t-e)+'"');if(n<f)throw new Error('"s" specified length of "'+f+'", max of "'+n+'" is acceptable');var b=e;if((e+=f)!==t)throw new Error('Expected to consume entire buffer, but "'+(t-e)+'" bytes remain');var v=l-c,d=l-f,y=r.allocUnsafe(v+c+d+f);for(e=0;e<v;++e)y[e]=0;p.copy(y,e,a+Math.max(-v,0),a+c);for(var g=e=l;e<g+d;++e)y[e]=0;return p.copy(y,e,b+Math.max(-d,0),b+f),y=(y=y.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(p,h){p=i(p);var l=u(h),n=p.length;if(n!==2*l)throw new TypeError('"'+h+'" signatures must be "'+2*l+'" bytes, saw "'+n+'"');var t=s(p,0,l),e=s(p,l,p.length),o=l-t,c=l-e,a=2+o+1+1+c,f=a<m,b=r.allocUnsafe((f?2:3)+a),v=0;return b[v++]=48,f?b[v++]=a:(b[v++]=129,b[v++]=255&a),b[v++]=2,b[v++]=o,t<0?(b[v++]=0,v+=p.copy(b,v,0,l)):v+=p.copy(b,v,t,l),b[v++]=2,b[v++]=c,e<0?(b[v++]=0,p.copy(b,v,l)):p.copy(b,v,l+e),b}}}function Il(){if(Va)return Za;Va=1;var r,u=at().Buffer,m=Ve(),i=Ap(),s=pe(),p="secret must be a string or buffer",h="key must be a string or a buffer",l=typeof m.createPublicKey=="function";function n(j){if(!u.isBuffer(j)&&typeof j!="string"&&(!l||typeof j!="object"||typeof j.type!="string"||typeof j.asymmetricKeyType!="string"||typeof j.export!="function"))throw c(h)}function t(j){if(!u.isBuffer(j)&&typeof j!="string"&&typeof j!="object")throw c("key must be a string, a buffer or an object")}function e(j){return j.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function o(j){var w=4-(j=j.toString()).length%4;if(w!==4)for(var S=0;S<w;++S)j+="=";return j.replace(/\-/g,"+").replace(/_/g,"/")}function c(j){var w=[].slice.call(arguments,1),S=s.format.bind(s,j).apply(null,w);return new TypeError(S)}function a(j){var w;return w=j,u.isBuffer(w)||typeof w=="string"||(j=JSON.stringify(j)),j}function f(j){return function(w,S){(function(T){if(!u.isBuffer(T)){if(typeof T=="string")return T;if(!l||typeof T!="object"||T.type!=="secret"||typeof T.export!="function")throw c(p)}})(S),w=a(w);var R=m.createHmac("sha"+j,S);return e((R.update(w),R.digest("base64")))}}l&&(h+=" or a KeyObject",p+="or a KeyObject");var b="timingSafeEqual"in m?function(j,w){return j.byteLength===w.byteLength&&m.timingSafeEqual(j,w)}:function(j,w){return r||(r=(function(){if(za)return $r;za=1;var S=rt().Buffer,R=rt().SlowBuffer;function T(A,H){if(!S.isBuffer(A)||!S.isBuffer(H)||A.length!==H.length)return!1;for(var P=0,I=0;I<A.length;I++)P|=A[I]^H[I];return P===0}$r=T,T.install=function(){S.prototype.equal=R.prototype.equal=function(A){return T(this,A)}};var U=S.prototype.equal,N=R.prototype.equal;return T.restore=function(){S.prototype.equal=U,R.prototype.equal=N},$r})()),r(j,w)};function v(j){return function(w,S,R){var T=f(j)(w,R);return b(u.from(S),u.from(T))}}function d(j){return function(w,S){t(S),w=a(w);var R=m.createSign("RSA-SHA"+j);return e((R.update(w),R.sign(S,"base64")))}}function y(j){return function(w,S,R){n(R),w=a(w),S=o(S);var T=m.createVerify("RSA-SHA"+j);return T.update(w),T.verify(R,S,"base64")}}function g(j){return function(w,S){t(S),w=a(w);var R=m.createSign("RSA-SHA"+j);return e((R.update(w),R.sign({key:S,padding:m.constants.RSA_PKCS1_PSS_PADDING,saltLength:m.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function _(j){return function(w,S,R){n(R),w=a(w),S=o(S);var T=m.createVerify("RSA-SHA"+j);return T.update(w),T.verify({key:R,padding:m.constants.RSA_PKCS1_PSS_PADDING,saltLength:m.constants.RSA_PSS_SALTLEN_DIGEST},S,"base64")}}function E(j){var w=d(j);return function(){var S=w.apply(null,arguments);return S=i.derToJose(S,"ES"+j)}}function O(j){var w=y(j);return function(S,R,T){return R=i.joseToDer(R,"ES"+j).toString("base64"),w(S,R,T)}}function $(){return function(){return""}}function q(){return function(j,w){return w===""}}return Za=function(j){var w={hs:f,rs:d,ps:g,es:E,none:$},S={hs:v,rs:y,ps:_,es:O,none:q},R=j.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!R)throw c(`"%s" is not a valid algorithm.
|
|
96
|
+
Supported algorithms are:
|
|
97
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,j);var T=(R[1]||R[3]).toLowerCase(),U=R[2];return{sign:w[T](U),verify:S[T](U)}}}function Nl(){if(Ka)return Ya;Ka=1;var r=rt().Buffer;return Ya=function(u){return typeof u=="string"?u:typeof u=="number"||r.isBuffer(u)?u.toString():JSON.stringify(u)}}function Rp(){if(Ja)return Wa;Ja=1;var r=at().Buffer,u=Pl(),m=Il(),i=kt(),s=Nl(),p=pe();function h(t,e){return r.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(t){var e=t.header,o=t.payload,c=t.secret||t.privateKey,a=t.encoding,f=m(e.alg),b=(function(d,y,g){g=g||"utf8";var _=h(s(d),"binary"),E=h(s(y),g);return p.format("%s.%s",_,E)})(e,o,a),v=f.sign(b,c);return p.format("%s.%s",b,v)}function n(t){var e=t.secret;if(e=(e=e??t.privateKey)==null?t.key:e,/^hs/i.test(t.header.alg)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var o=new u(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=o,this.payload=new u(t.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}return p.inherits(n,i),n.prototype.sign=function(){try{var t=l({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",t),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},n.sign=l,Wa=n}function Pp(){if(Qa)return Xa;Qa=1;var r=at().Buffer,u=Pl(),m=Il(),i=kt(),s=Nl(),p=pe(),h=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function l(f){if((function(b){return Object.prototype.toString.call(b)==="[object Object]"})(f))return f;try{return JSON.parse(f)}catch{return}}function n(f){var b=f.split(".",1)[0];return l(r.from(b,"base64").toString("binary"))}function t(f){return f.split(".")[2]}function e(f){return h.test(f)&&!!n(f)}function o(f,b,v){if(!b){var d=new Error("Missing algorithm parameter for jws.verify");throw d.code="MISSING_ALGORITHM",d}var y=t(f=s(f)),g=(function(_){return _.split(".",2).join(".")})(f);return m(b).verify(g,y,v)}function c(f,b){if(b=b||{},!e(f=s(f)))return null;var v=n(f);if(!v)return null;var d=(function(y,g){g=g||"utf8";var _=y.split(".")[1];return r.from(_,"base64").toString(g)})(f);return(v.typ==="JWT"||b.json)&&(d=JSON.parse(d,b.encoding)),{header:v,payload:d,signature:t(f)}}function a(f){var b=(f=f||{}).secret;if(b=(b=b??f.publicKey)==null?f.key:b,/^hs/i.test(f.algorithm)===!0&&b==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var v=new u(b);this.readable=!0,this.algorithm=f.algorithm,this.encoding=f.encoding,this.secret=this.publicKey=this.key=v,this.signature=new u(f.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}return p.inherits(a,i),a.prototype.verify=function(){try{var f=o(this.signature.buffer,this.algorithm,this.key.buffer),b=c(this.signature.buffer,this.encoding);return this.emit("done",f,b),this.emit("data",f),this.emit("end"),this.readable=!1,f}catch(v){this.readable=!1,this.emit("error",v),this.emit("close")}},a.decode=c,a.isValid=e,a.verify=o,Xa=a}function En(){if(eu)return ke;eu=1;var r=Rp(),u=Pp();return ke.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],ke.sign=r.sign,ke.verify=u.verify,ke.decode=u.decode,ke.isValid=u.isValid,ke.createSign=function(m){return new r(m)},ke.createVerify=function(m){return new u(m)},ke}function Ll(){if(ru)return tu;ru=1;var r=En();return tu=function(u,m){m=m||{};var i=r.decode(u,m);if(!i)return null;var s=i.payload;if(typeof s=="string")try{var p=JSON.parse(s);p!==null&&typeof p=="object"&&(s=p)}catch{}return m.complete===!0?{header:i.header,payload:s,signature:i.signature}:s}}function $l(){if(nu)return Mr;nu=1;var r=ul();return Mr=function(u,m){var i=m||Math.floor(Date.now()/1e3);if(typeof u=="string"){var s=r(u);return s===void 0?void 0:Math.floor(i+s/1e3)}return typeof u=="number"?i+u:void 0},Mr}var ou,iu,su,au,uu,cu,lu,fu,pu,hu,du,Cr,mu,Dr,yu,Fr,gu,Ur,vu,bu,wu,Eu,_u,Su,Ou,ju,Tu,Br,xu,ku,Au,Ru,Pu,Iu,Nu,Lu,$u,Mu,Cu,Du,Fu,Uu,Bu,qu,Gu,Hu,zu,Zu,Vu,Yu,Ku,Wu,Ju,Xu,Qu,qr,ec,Gr,tc,rc,nc,Hr,oc,zr,ic,Zr,sc,Vr,ac,Yr,uc,Kr,cc,Wr,lc,Jr,fc,Xr,pc,Qr,hc,en,dc,mc,yc,tn,gc,vc,bc,wc,Ec,_c,Sc,Oc,jc,Tc,xc,kc,Ac,rn,Rc,nn={exports:{}};function it(){return iu?ou:(iu=1,ou={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function Pt(){if(au)return su;au=1;var r={};return su=typeof te=="object"&&r&&r.NODE_DEBUG&&/\bsemver\b/i.test(r.NODE_DEBUG)?(...m)=>console.error("SEMVER",...m):()=>{}}function st(){return uu||(uu=1,(function(r,u){const{MAX_SAFE_COMPONENT_LENGTH:m,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=it(),p=Pt(),h=(u=r.exports={}).re=[],l=u.safeRe=[],n=u.src=[],t=u.safeSrc=[],e=u.t={};let o=0;const c="[a-zA-Z0-9-]",a=[["\\s",1],["\\d",s],[c,i]],f=(b,v,d)=>{const y=(_=>{for(const[E,O]of a)_=_.split(`${E}*`).join(`${E}{0,${O}}`).split(`${E}+`).join(`${E}{1,${O}}`);return _})(v),g=o++;p(b,g,v),e[b]=g,n[g]=v,t[g]=y,h[g]=new RegExp(v,d?"g":void 0),l[g]=new RegExp(y,d?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),f("MAINVERSION",`(${n[e.NUMERICIDENTIFIER]})\\.(${n[e.NUMERICIDENTIFIER]})\\.(${n[e.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${n[e.NUMERICIDENTIFIERLOOSE]})\\.(${n[e.NUMERICIDENTIFIERLOOSE]})\\.(${n[e.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${n[e.NONNUMERICIDENTIFIER]}|${n[e.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${n[e.NONNUMERICIDENTIFIER]}|${n[e.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${n[e.PRERELEASEIDENTIFIER]}(?:\\.${n[e.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${n[e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[e.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${c}+`),f("BUILD",`(?:\\+(${n[e.BUILDIDENTIFIER]}(?:\\.${n[e.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${n[e.MAINVERSION]}${n[e.PRERELEASE]}?${n[e.BUILD]}?`),f("FULL",`^${n[e.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${n[e.MAINVERSIONLOOSE]}${n[e.PRERELEASELOOSE]}?${n[e.BUILD]}?`),f("LOOSE",`^${n[e.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${n[e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${n[e.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${n[e.XRANGEIDENTIFIER]})(?:\\.(${n[e.XRANGEIDENTIFIER]})(?:\\.(${n[e.XRANGEIDENTIFIER]})(?:${n[e.PRERELEASE]})?${n[e.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${n[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[e.XRANGEIDENTIFIERLOOSE]})(?:${n[e.PRERELEASELOOSE]})?${n[e.BUILD]}?)?)?`),f("XRANGE",`^${n[e.GTLT]}\\s*${n[e.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${n[e.GTLT]}\\s*${n[e.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${m}})(?:\\.(\\d{1,${m}}))?(?:\\.(\\d{1,${m}}))?`),f("COERCE",`${n[e.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",n[e.COERCEPLAIN]+`(?:${n[e.PRERELEASE]})?(?:${n[e.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",n[e.COERCE],!0),f("COERCERTLFULL",n[e.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${n[e.LONETILDE]}\\s+`,!0),u.tildeTrimReplace="$1~",f("TILDE",`^${n[e.LONETILDE]}${n[e.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${n[e.LONETILDE]}${n[e.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${n[e.LONECARET]}\\s+`,!0),u.caretTrimReplace="$1^",f("CARET",`^${n[e.LONECARET]}${n[e.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${n[e.LONECARET]}${n[e.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${n[e.GTLT]}\\s*(${n[e.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${n[e.GTLT]}\\s*(${n[e.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${n[e.GTLT]}\\s*(${n[e.LOOSEPLAIN]}|${n[e.XRANGEPLAIN]})`,!0),u.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${n[e.XRANGEPLAIN]})\\s+-\\s+(${n[e.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${n[e.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[e.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(nn,nn.exports)),nn.exports}function _n(){if(lu)return cu;lu=1;const r=Object.freeze({loose:!0}),u=Object.freeze({});return cu=m=>m?typeof m!="object"?r:m:u}function Ml(){if(pu)return fu;pu=1;const r=/^[0-9]+$/,u=(m,i)=>{if(typeof m=="number"&&typeof i=="number")return m===i?0:m<i?-1:1;const s=r.test(m),p=r.test(i);return s&&p&&(m=+m,i=+i),m===i?0:s&&!p?-1:p&&!s?1:m<i?-1:1};return fu={compareIdentifiers:u,rcompareIdentifiers:(m,i)=>u(i,m)}}function he(){if(du)return hu;du=1;const r=Pt(),{MAX_LENGTH:u,MAX_SAFE_INTEGER:m}=it(),{safeRe:i,t:s}=st(),p=_n(),{compareIdentifiers:h}=Ml();class l{constructor(t,e){if(e=p(e),t instanceof l){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>u)throw new TypeError(`version is longer than ${u} characters`);r("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const o=t.trim().match(e.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>m||this.major<0)throw new TypeError("Invalid major version");if(this.minor>m||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>m||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((c=>{if(/^[0-9]+$/.test(c)){const a=+c;if(a>=0&&a<m)return a}return c})):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(r("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if(typeof t=="string"&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof l||(t=new l(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const o=this.prerelease[e],c=t.prerelease[e];if(r("prerelease compare",e,o,c),o===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(o===void 0)return-1;if(o!==c)return h(o,c)}while(++e)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let e=0;do{const o=this.build[e],c=t.build[e];if(r("build compare",e,o,c),o===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(o===void 0)return-1;if(o!==c)return h(o,c)}while(++e)}inc(t,e,o){if(t.startsWith("pre")){if(!e&&o===!1)throw new Error("invalid increment argument: identifier is empty");if(e){const c=`-${e}`.match(this.options.loose?i[s.PRERELEASELOOSE]:i[s.PRERELEASE]);if(!c||c[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,o),this.inc("pre",e,o);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,o),this.inc("pre",e,o);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(o)?1:0;if(this.prerelease.length===0)this.prerelease=[c];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(e===this.prerelease.join(".")&&o===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(e){let a=[e,c];if(o===!1&&(a=[e]),((f,b)=>{const v=b.split(".");if(v.length>f.length)return!1;for(let d=0;d<v.length;d++)if(h(f[d],v[d])!==0)return!1;return!0})(this.prerelease,e)){const f=this.prerelease[e.split(".").length];isNaN(f)&&(this.prerelease=a)}else this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return hu=l}function De(){if(mu)return Cr;mu=1;const r=he();return Cr=(u,m,i=!1)=>{if(u instanceof r)return u;try{return new r(u,m)}catch(s){if(!i)return null;throw s}},Cr}function _e(){if(Au)return ku;Au=1;const r=he();return ku=(u,m,i)=>new r(u,i).compare(new r(m,i))}function on(){if($u)return Lu;$u=1;const r=he();return Lu=(u,m,i)=>{const s=new r(u,i),p=new r(m,i);return s.compare(p)||s.compareBuild(p)}}function Tt(){if(Bu)return Uu;Bu=1;const r=_e();return Uu=(u,m,i)=>r(u,m,i)>0}function Sn(){if(Gu)return qu;Gu=1;const r=_e();return qu=(u,m,i)=>r(u,m,i)<0}function Cl(){if(zu)return Hu;zu=1;const r=_e();return Hu=(u,m,i)=>r(u,m,i)===0}function Dl(){if(Vu)return Zu;Vu=1;const r=_e();return Zu=(u,m,i)=>r(u,m,i)!==0}function On(){if(Ku)return Yu;Ku=1;const r=_e();return Yu=(u,m,i)=>r(u,m,i)>=0}function jn(){if(Ju)return Wu;Ju=1;const r=_e();return Wu=(u,m,i)=>r(u,m,i)<=0}function Fl(){if(Qu)return Xu;Qu=1;const r=Cl(),u=Dl(),m=Tt(),i=On(),s=Sn(),p=jn();return Xu=(h,l,n,t)=>{switch(l){case"===":return typeof h=="object"&&(h=h.version),typeof n=="object"&&(n=n.version),h===n;case"!==":return typeof h=="object"&&(h=h.version),typeof n=="object"&&(n=n.version),h!==n;case"":case"=":case"==":return r(h,n,t);case"!=":return u(h,n,t);case">":return m(h,n,t);case">=":return i(h,n,t);case"<":return s(h,n,t);case"<=":return p(h,n,t);default:throw new TypeError(`Invalid operator: ${l}`)}}}function Ee(){if(oc)return Hr;oc=1;const r=/\s+/g;class u{constructor(A,H){if(H=i(H),A instanceof u)return A.loose===!!H.loose&&A.includePrerelease===!!H.includePrerelease?A:new u(A.raw,H);if(A instanceof s)return this.raw=A.value,this.set=[[A]],this.formatted=void 0,this;if(this.options=H,this.loose=!!H.loose,this.includePrerelease=!!H.includePrerelease,this.raw=A.trim().replace(r," "),this.set=this.raw.split("||").map((P=>this.parseRange(P.trim()))).filter((P=>P.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const P=this.set[0];if(this.set=this.set.filter((I=>!v(I[0]))),this.set.length===0)this.set=[P];else if(this.set.length>1){for(const I of this.set)if(I.length===1&&d(I[0])){this.set=[I];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let A=0;A<this.set.length;A++){A>0&&(this.formatted+="||");const H=this.set[A];for(let P=0;P<H.length;P++)P>0&&(this.formatted+=" "),this.formatted+=H[P].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(A){A=A.replace(b,"");const H=((this.options.includePrerelease&&a)|(this.options.loose&&f))+":"+A,P=m.get(H);if(P)return P;const I=this.options.loose,x=I?l[t.HYPHENRANGELOOSE]:l[t.HYPHENRANGE];A=A.replace(x,T(this.options.includePrerelease)),p("hyphen replace",A),A=A.replace(l[t.COMPARATORTRIM],e),p("comparator trim",A),A=A.replace(l[t.TILDETRIM],o),p("tilde trim",A),A=A.replace(l[t.CARETTRIM],c),p("caret trim",A);let C=A.split(" ").map((M=>g(M,this.options))).join(" ").split(/\s+/).map((M=>R(M,this.options)));I&&(C=C.filter((M=>(p("loose invalid filter",M,this.options),!!M.match(l[t.COMPARATORLOOSE]))))),p("range list",C);const Z=new Map,V=C.map((M=>new s(M,this.options)));for(const M of V){if(v(M))return[M];Z.set(M.value,M)}Z.size>1&&Z.has("")&&Z.delete("");const L=[...Z.values()];return m.set(H,L),L}intersects(A,H){if(!(A instanceof u))throw new TypeError("a Range is required");return this.set.some((P=>y(P,H)&&A.set.some((I=>y(I,H)&&P.every((x=>I.every((C=>x.intersects(C,H)))))))))}test(A){if(!A)return!1;if(typeof A=="string")try{A=new h(A,this.options)}catch{return!1}for(let H=0;H<this.set.length;H++)if(U(this.set[H],A,this.options))return!0;return!1}}Hr=u;const m=new(nc?rc:(nc=1,rc=class{constructor(){this.max=1e3,this.map=new Map}get(N){const A=this.map.get(N);return A===void 0?void 0:(this.map.delete(N),this.map.set(N,A),A)}delete(N){return this.map.delete(N)}set(N,A){if(!this.delete(N)&&A!==void 0){if(this.map.size>=this.max){const H=this.map.keys().next().value;this.delete(H)}this.map.set(N,A)}return this}})),i=_n(),s=xt(),p=Pt(),h=he(),{safeRe:l,src:n,t,comparatorTrimReplace:e,tildeTrimReplace:o,caretTrimReplace:c}=st(),{FLAG_INCLUDE_PRERELEASE:a,FLAG_LOOSE:f}=it(),b=new RegExp(n[t.BUILD],"g"),v=N=>N.value==="<0.0.0-0",d=N=>N.value==="",y=(N,A)=>{let H=!0;const P=N.slice();let I=P.pop();for(;H&&P.length;)H=P.every((x=>I.intersects(x,A))),I=P.pop();return H},g=(N,A)=>(N=N.replace(l[t.BUILD],""),p("comp",N,A),N=$(N,A),p("caret",N),N=E(N,A),p("tildes",N),N=j(N,A),p("xrange",N),N=S(N,A),p("stars",N),N),_=N=>!N||N.toLowerCase()==="x"||N==="*",E=(N,A)=>N.trim().split(/\s+/).map((H=>O(H,A))).join(" "),O=(N,A)=>{const H=A.loose?l[t.TILDELOOSE]:l[t.TILDE],P=A.includePrerelease?"-0":"";return N.replace(H,((I,x,C,Z,V)=>{let L;return p("tilde",N,I,x,C,Z,V),_(x)?L="":_(C)?L=`>=${x}.0.0${P} <${+x+1}.0.0-0`:_(Z)?L=`>=${x}.${C}.0${P} <${x}.${+C+1}.0-0`:V?(p("replaceTilde pr",V),L=`>=${x}.${C}.${Z}-${V} <${x}.${+C+1}.0-0`):L=`>=${x}.${C}.${Z} <${x}.${+C+1}.0-0`,p("tilde return",L),L}))},$=(N,A)=>N.trim().split(/\s+/).map((H=>q(H,A))).join(" "),q=(N,A)=>{p("caret",N,A);const H=A.loose?l[t.CARETLOOSE]:l[t.CARET],P=A.includePrerelease?"-0":"";return N.replace(H,((I,x,C,Z,V)=>{let L;return p("caret",N,I,x,C,Z,V),_(x)?L="":_(C)?L=`>=${x}.0.0${P} <${+x+1}.0.0-0`:_(Z)?L=x==="0"?`>=${x}.${C}.0${P} <${x}.${+C+1}.0-0`:`>=${x}.${C}.0${P} <${+x+1}.0.0-0`:V?(p("replaceCaret pr",V),L=x==="0"?C==="0"?`>=${x}.${C}.${Z}-${V} <${x}.${C}.${+Z+1}-0`:`>=${x}.${C}.${Z}-${V} <${x}.${+C+1}.0-0`:`>=${x}.${C}.${Z}-${V} <${+x+1}.0.0-0`):(p("no pr"),L=x==="0"?C==="0"?`>=${x}.${C}.${Z} <${x}.${C}.${+Z+1}-0`:`>=${x}.${C}.${Z} <${x}.${+C+1}.0-0`:`>=${x}.${C}.${Z} <${+x+1}.0.0-0`),p("caret return",L),L}))},j=(N,A)=>(p("replaceXRanges",N,A),N.split(/\s+/).map((H=>w(H,A))).join(" ")),w=(N,A)=>{N=N.trim();const H=A.loose?l[t.XRANGELOOSE]:l[t.XRANGE];return N.replace(H,((P,I,x,C,Z,V)=>{if(p("xRange",N,P,I,x,C,Z,V),((G,z,K)=>_(G)&&!_(z)||_(z)&&K&&!_(K))(x,C,Z))return N;const L=_(x),M=L||_(C),F=M||_(Z),B=F;return I==="="&&B&&(I=""),V=A.includePrerelease?"-0":"",L?P=I===">"||I==="<"?"<0.0.0-0":"*":I&&B?(M&&(C=0),Z=0,I===">"?(I=">=",M?(x=+x+1,C=0,Z=0):(C=+C+1,Z=0)):I==="<="&&(I="<",M?x=+x+1:C=+C+1),I==="<"&&(V="-0"),P=`${I+x}.${C}.${Z}${V}`):M?P=`>=${x}.0.0${V} <${+x+1}.0.0-0`:F&&(P=`>=${x}.${C}.0${V} <${x}.${+C+1}.0-0`),p("xRange return",P),P}))},S=(N,A)=>(p("replaceStars",N,A),N.trim().replace(l[t.STAR],"")),R=(N,A)=>(p("replaceGTE0",N,A),N.trim().replace(l[A.includePrerelease?t.GTE0PRE:t.GTE0],"")),T=N=>(A,H,P,I,x,C,Z,V,L,M,F,B)=>`${H=_(P)?"":_(I)?`>=${P}.0.0${N?"-0":""}`:_(x)?`>=${P}.${I}.0${N?"-0":""}`:C?`>=${H}`:`>=${H}${N?"-0":""}`} ${V=_(L)?"":_(M)?`<${+L+1}.0.0-0`:_(F)?`<${L}.${+M+1}.0-0`:B?`<=${L}.${M}.${F}-${B}`:N?`<${L}.${M}.${+F+1}-0`:`<=${V}`}`.trim(),U=(N,A,H)=>{for(let P=0;P<N.length;P++)if(!N[P].test(A))return!1;if(A.prerelease.length&&!H.includePrerelease){for(let P=0;P<N.length;P++)if(p(N[P].semver),N[P].semver!==s.ANY&&N[P].semver.prerelease.length>0){const I=N[P].semver;if(I.major===A.major&&I.minor===A.minor&&I.patch===A.patch)return!0}return!1}return!0};return Hr}function xt(){if(ic)return zr;ic=1;const r=Symbol("SemVer ANY");class u{static get ANY(){return r}constructor(e,o){if(o=m(o),e instanceof u){if(e.loose===!!o.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),h("comparator",e,o),this.options=o,this.loose=!!o.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,h("comp",this)}parse(e){const o=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],c=e.match(o);if(!c)throw new TypeError(`Invalid comparator: ${e}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new l(c[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(h("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if(typeof e=="string")try{e=new l(e,this.options)}catch{return!1}return p(e,this.operator,this.semver,this.options)}intersects(e,o){if(!(e instanceof u))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""||new n(e.value,o).test(this.value):e.operator===""?e.value===""||new n(this.value,o).test(e.semver):(!(o=m(o)).includePrerelease||this.value!=="<0.0.0-0"&&e.value!=="<0.0.0-0")&&!(!o.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||!!(p(this.semver,"<",e.semver,o)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(p(this.semver,">",e.semver,o)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}zr=u;const m=_n(),{safeRe:i,t:s}=st(),p=Fl(),h=Pt(),l=he(),n=Ee();return zr}function _t(){if(sc)return Zr;sc=1;const r=Ee();return Zr=(u,m,i)=>{try{m=new r(m,i)}catch{return!1}return m.test(u)},Zr}function Ip(){if(fc)return Jr;fc=1;const r=Ee();return Jr=(u,m)=>{try{return new r(u,m).range||"*"}catch{return null}},Jr}function sn(){if(pc)return Xr;pc=1;const r=he(),u=xt(),{ANY:m}=u,i=Ee(),s=_t(),p=Tt(),h=Sn(),l=jn(),n=On();return Xr=(t,e,o,c)=>{let a,f,b,v,d;switch(t=new r(t,c),e=new i(e,c),o){case">":a=p,f=l,b=h,v=">",d=">=";break;case"<":a=h,f=n,b=p,v="<",d="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(t,e,c))return!1;for(let y=0;y<e.set.length;++y){const g=e.set[y];let _=null,E=null;if(g.forEach((O=>{O.semver===m&&(O=new u(">=0.0.0")),_=_||O,E=E||O,a(O.semver,_.semver,c)?_=O:b(O.semver,E.semver,c)&&(E=O)})),_.operator===v||_.operator===d||(!E.operator||E.operator===v)&&f(t,E.semver)||E.operator===d&&b(t,E.semver))return!1}return!0},Xr}function fn(){if(Ec)return wc;Ec=1;const r=st(),u=it(),m=he(),i=Ml(),s=De(),p=(function(){if(yu)return Dr;yu=1;const F=De();return Dr=(B,G)=>{const z=F(B,G);return z?z.version:null},Dr})(),h=(function(){if(gu)return Fr;gu=1;const F=De();return Fr=(B,G)=>{const z=F(B.trim().replace(/^[=v]+/,""),G);return z?z.version:null},Fr})(),l=(function(){if(vu)return Ur;vu=1;const F=he();return Ur=(B,G,z,K,k)=>{typeof z=="string"&&(k=K,K=z,z=void 0);try{return new F(B instanceof F?B.version:B,z).inc(G,K,k).version}catch{return null}},Ur})(),n=(function(){if(wu)return bu;wu=1;const F=De();return bu=(B,G)=>{const z=F(B,null,!0),K=F(G,null,!0),k=z.compare(K);if(k===0)return null;const D=k>0,Y=D?z:K,W=D?K:z,Q=!!Y.prerelease.length;if(W.prerelease.length&&!Q){if(!W.patch&&!W.minor)return"major";if(W.compareMain(Y)===0)return W.minor&&!W.patch?"minor":"patch"}const ee=Q?"pre":"";return z.major!==K.major?ee+"major":z.minor!==K.minor?ee+"minor":z.patch!==K.patch?ee+"patch":"prerelease"}})(),t=(function(){if(_u)return Eu;_u=1;const F=he();return Eu=(B,G)=>new F(B,G).major})(),e=(function(){if(Ou)return Su;Ou=1;const F=he();return Su=(B,G)=>new F(B,G).minor})(),o=(function(){if(Tu)return ju;Tu=1;const F=he();return ju=(B,G)=>new F(B,G).patch})(),c=(function(){if(xu)return Br;xu=1;const F=De();return Br=(B,G)=>{const z=F(B,G);return z&&z.prerelease.length?z.prerelease:null},Br})(),a=_e(),f=(function(){if(Pu)return Ru;Pu=1;const F=_e();return Ru=(B,G,z)=>F(G,B,z)})(),b=(function(){if(Nu)return Iu;Nu=1;const F=_e();return Iu=(B,G)=>F(B,G,!0)})(),v=on(),d=(function(){if(Cu)return Mu;Cu=1;const F=on();return Mu=(B,G)=>B.sort(((z,K)=>F(z,K,G)))})(),y=(function(){if(Fu)return Du;Fu=1;const F=on();return Du=(B,G)=>B.sort(((z,K)=>F(K,z,G)))})(),g=Tt(),_=Sn(),E=Cl(),O=Dl(),$=On(),q=jn(),j=Fl(),w=(function(){if(ec)return qr;ec=1;const F=he(),B=De(),{safeRe:G,t:z}=st();return qr=(K,k)=>{if(K instanceof F)return K;if(typeof K=="number"&&(K=String(K)),typeof K!="string")return null;let D=null;if((k=k||{}).rtl){const J=k.includePrerelease?G[z.COERCERTLFULL]:G[z.COERCERTL];let re;for(;(re=J.exec(K))&&(!D||D.index+D[0].length!==K.length);)D&&re.index+re[0].length===D.index+D[0].length||(D=re),J.lastIndex=re.index+re[1].length+re[2].length;J.lastIndex=-1}else D=K.match(k.includePrerelease?G[z.COERCEFULL]:G[z.COERCE]);if(D===null)return null;const Y=D[2],W=D[3]||"0",Q=D[4]||"0",ee=k.includePrerelease&&D[5]?`-${D[5]}`:"",X=k.includePrerelease&&D[6]?`+${D[6]}`:"";return B(`${Y}.${W}.${Q}${ee}${X}`,k)},qr})(),S=(function(){if(tc)return Gr;tc=1;const F=De(),B=it(),G=he(),z=(D,Y)=>{const W=D instanceof G?D.version:D;return F(W,Y)},K=(D,Y)=>{if(k(Y))return D.version;switch(D.prerelease=[],Y){case"major":D.minor=0,D.patch=0;break;case"minor":D.patch=0}return D.format()},k=D=>D.startsWith("pre");return Gr=(D,Y,W)=>{if(!B.RELEASE_TYPES.includes(Y))return null;const Q=z(D,W);return Q&&K(Q,Y)},Gr})(),R=xt(),T=Ee(),U=_t(),N=(function(){if(ac)return Vr;ac=1;const F=Ee();return Vr=(B,G)=>new F(B,G).set.map((z=>z.map((K=>K.value)).join(" ").trim().split(" "))),Vr})(),A=(function(){if(uc)return Yr;uc=1;const F=he(),B=Ee();return Yr=(G,z,K)=>{let k=null,D=null,Y=null;try{Y=new B(z,K)}catch{return null}return G.forEach((W=>{Y.test(W)&&(k&&D.compare(W)!==-1||(k=W,D=new F(k,K)))})),k},Yr})(),H=(function(){if(cc)return Kr;cc=1;const F=he(),B=Ee();return Kr=(G,z,K)=>{let k=null,D=null,Y=null;try{Y=new B(z,K)}catch{return null}return G.forEach((W=>{Y.test(W)&&(k&&D.compare(W)!==1||(k=W,D=new F(k,K)))})),k},Kr})(),P=(function(){if(lc)return Wr;lc=1;const F=he(),B=Ee(),G=Tt();return Wr=(z,K)=>{z=new B(z,K);let k=new F("0.0.0");if(z.test(k)||(k=new F("0.0.0-0"),z.test(k)))return k;k=null;for(let D=0;D<z.set.length;++D){const Y=z.set[D];let W=null;Y.forEach((Q=>{const ee=new F(Q.semver.version);switch(Q.operator){case">":ee.prerelease.length===0?ee.patch++:ee.prerelease.push(0),ee.raw=ee.format();case"":case">=":W&&!G(ee,W)||(W=ee);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${Q.operator}`)}})),!W||k&&!G(k,W)||(k=W)}return k&&z.test(k)?k:null},Wr})(),I=Ip(),x=sn(),C=(function(){if(hc)return Qr;hc=1;const F=sn();return Qr=(B,G,z)=>F(B,G,">",z),Qr})(),Z=(function(){if(dc)return en;dc=1;const F=sn();return en=(B,G,z)=>F(B,G,"<",z),en})(),V=(function(){if(yc)return mc;yc=1;const F=Ee();return mc=(B,G,z)=>(B=new F(B,z),G=new F(G,z),B.intersects(G,z))})(),L=(function(){if(gc)return tn;gc=1;const F=_t(),B=_e();return tn=(G,z,K)=>{const k=[];let D=null,Y=null;const W=G.sort(((J,re)=>B(J,re,K)));for(const J of W)F(J,z,K)?(Y=J,D||(D=J)):(Y&&k.push([D,Y]),Y=null,D=null);D&&k.push([D,null]);const Q=[];for(const[J,re]of k)J===re?Q.push(J):re||J!==W[0]?re?J===W[0]?Q.push(`<=${re}`):Q.push(`${J} - ${re}`):Q.push(`>=${J}`):Q.push("*");const ee=Q.join(" || "),X=typeof z.raw=="string"?z.raw:String(z);return ee.length<X.length?ee:z},tn})(),M=(function(){if(bc)return vc;bc=1;const F=Ee(),B=xt(),{ANY:G}=B,z=_t(),K=_e(),k=[new B(">=0.0.0-0")],D=[new B(">=0.0.0")],Y=(ee,X,J)=>{if(ee===X)return!0;if(ee.length===1&&ee[0].semver===G){if(X.length===1&&X[0].semver===G)return!0;ee=J.includePrerelease?k:D}if(X.length===1&&X[0].semver===G){if(J.includePrerelease)return!0;X=D}const re=new Set;let ie,oe,ce,Ae,be,we,se;for(const ne of ee)ne.operator===">"||ne.operator===">="?ie=W(ie,ne,J):ne.operator==="<"||ne.operator==="<="?oe=Q(oe,ne,J):re.add(ne.semver);if(re.size>1||ie&&oe&&(ce=K(ie.semver,oe.semver,J),ce>0||ce===0&&(ie.operator!==">="||oe.operator!=="<=")))return null;for(const ne of re){if(ie&&!z(ne,String(ie),J)||oe&&!z(ne,String(oe),J))return null;for(const me of X)if(!z(ne,String(me),J))return!1;return!0}let le=!(!oe||J.includePrerelease||!oe.semver.prerelease.length)&&oe.semver,de=!(!ie||J.includePrerelease||!ie.semver.prerelease.length)&&ie.semver;le&&le.prerelease.length===1&&oe.operator==="<"&&le.prerelease[0]===0&&(le=!1);for(const ne of X){if(se=se||ne.operator===">"||ne.operator===">=",we=we||ne.operator==="<"||ne.operator==="<=",ie){if(de&&ne.semver.prerelease&&ne.semver.prerelease.length&&ne.semver.major===de.major&&ne.semver.minor===de.minor&&ne.semver.patch===de.patch&&(de=!1),ne.operator===">"||ne.operator===">="){if(Ae=W(ie,ne,J),Ae===ne&&Ae!==ie)return!1}else if(ie.operator===">="&&!ne.test(ie.semver))return!1}if(oe){if(le&&ne.semver.prerelease&&ne.semver.prerelease.length&&ne.semver.major===le.major&&ne.semver.minor===le.minor&&ne.semver.patch===le.patch&&(le=!1),ne.operator==="<"||ne.operator==="<="){if(be=Q(oe,ne,J),be===ne&&be!==oe)return!1}else if(oe.operator==="<="&&!ne.test(oe.semver))return!1}if(!ne.operator&&(oe||ie)&&ce!==0)return!1}return!(ie&&we&&!oe&&ce!==0||oe&&se&&!ie&&ce!==0||de||le)},W=(ee,X,J)=>{if(!ee)return X;const re=K(ee.semver,X.semver,J);return re>0?ee:re<0||X.operator===">"&&ee.operator===">="?X:ee},Q=(ee,X,J)=>{if(!ee)return X;const re=K(ee.semver,X.semver,J);return re<0?ee:re>0||X.operator==="<"&&ee.operator==="<="?X:ee};return vc=(ee,X,J={})=>{if(ee===X)return!0;ee=new F(ee,J),X=new F(X,J);let re=!1;e:for(const ie of ee.set){for(const oe of X.set){const ce=Y(ie,oe,J);if(re=re||ce!==null,ce)continue e}if(re)return!1}return!0}})();return wc={parse:s,valid:p,clean:h,inc:l,diff:n,major:t,minor:e,patch:o,prerelease:c,compare:a,rcompare:f,compareLoose:b,compareBuild:v,sort:d,rsort:y,gt:g,lt:_,eq:E,neq:O,gte:$,lte:q,cmp:j,coerce:w,truncate:S,Comparator:R,Range:T,satisfies:U,toComparators:N,maxSatisfying:A,minSatisfying:H,minVersion:P,validRange:I,outside:x,gtr:C,ltr:Z,intersects:V,simplifyRange:L,subset:M,SemVer:m,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:u.SEMVER_SPEC_VERSION,RELEASE_TYPES:u.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}}function Ul(){if(xc)return Tc;xc=1;const r=(function(){return Sc?_c:(Sc=1,_c=fn().satisfies(te.version,">=15.7.0"))})(),u=(function(){return jc?Oc:(jc=1,Oc=fn().satisfies(te.version,">=16.9.0"))})(),m={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return Tc=function(s,p){if(!s||!p)return;const h=p.asymmetricKeyType;if(!h)return;const l=m[h];if(!l)throw new Error(`Unknown key type "${h}".`);if(!l.includes(s))throw new Error(`"alg" parameter for "${h}" key type must be one of: ${l.join(", ")}.`);if(r)switch(h){case"ec":const n=p.asymmetricKeyDetails.namedCurve,t=i[s];if(n!==t)throw new Error(`"alg" parameter "${s}" requires curve "${t}".`);break;case"rsa-pss":if(u){const e=parseInt(s.slice(-3),10),{hashAlgorithm:o,mgf1HashAlgorithm:c,saltLength:a}=p.asymmetricKeyDetails;if(o!==`sha${e}`||c!==o)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${s}.`);if(a!==void 0&&a>e>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${s}.`)}}}}function Bl(){if(Ac)return kc;Ac=1;var r=fn();return kc=r.satisfies(te.version,"^6.12.0 || >=8.0.0")}function Np(){if(Rc)return rn;Rc=1;const r=Rt(),u=Al(),m=Rl(),i=Ll(),s=$l(),p=Ul(),h=Bl(),l=En(),{KeyObject:n,createSecretKey:t,createPublicKey:e}=Ve(),o=["RS256","RS384","RS512"],c=["ES256","ES384","ES512"],a=["RS256","RS384","RS512"],f=["HS256","HS384","HS512"];return h&&(o.splice(o.length,0,"PS256","PS384","PS512"),a.splice(a.length,0,"PS256","PS384","PS512")),rn=function(b,v,d,y){let g;if(typeof d!="function"||y||(y=d,d={}),d||(d={}),d=Object.assign({},d),g=y||function(j,w){if(j)throw j;return w},d.clockTimestamp&&typeof d.clockTimestamp!="number")return g(new r("clockTimestamp must be a number"));if(d.nonce!==void 0&&(typeof d.nonce!="string"||d.nonce.trim()===""))return g(new r("nonce must be a non-empty string"));if(d.allowInvalidAsymmetricKeyTypes!==void 0&&typeof d.allowInvalidAsymmetricKeyTypes!="boolean")return g(new r("allowInvalidAsymmetricKeyTypes must be a boolean"));const _=d.clockTimestamp||Math.floor(Date.now()/1e3);if(!b)return g(new r("jwt must be provided"));if(typeof b!="string")return g(new r("jwt must be a string"));const E=b.split(".");if(E.length!==3)return g(new r("jwt malformed"));let O;try{O=i(b,{complete:!0})}catch(j){return g(j)}if(!O)return g(new r("invalid token"));const $=O.header;let q;if(typeof v=="function"){if(!y)return g(new r("verify must be called asynchronous if secret or public key is provided as a callback"));q=v}else q=function(j,w){return w(null,v)};return q($,(function(j,w){if(j)return g(new r("error in secret or public key callback: "+j.message));const S=E[2].trim()!=="";if(!S&&w)return g(new r("jwt signature is required"));if(S&&!w)return g(new r("secret or public key must be provided"));if(!S&&!d.algorithms)return g(new r('please specify "none" in "algorithms" to verify unsigned tokens'));if(w!=null&&!(w instanceof n))try{w=e(w)}catch{try{w=t(typeof w=="string"?ge.from(w):w)}catch{return g(new r("secretOrPublicKey is not valid key material"))}}if(d.algorithms||(w.type==="secret"?d.algorithms=f:["rsa","rsa-pss"].includes(w.asymmetricKeyType)?d.algorithms=a:w.asymmetricKeyType==="ec"?d.algorithms=c:d.algorithms=o),d.algorithms.indexOf(O.header.alg)===-1)return g(new r("invalid algorithm"));if($.alg.startsWith("HS")&&w.type!=="secret")return g(new r(`secretOrPublicKey must be a symmetric key when using ${$.alg}`));if(/^(?:RS|PS|ES)/.test($.alg)&&w.type!=="public")return g(new r(`secretOrPublicKey must be an asymmetric key when using ${$.alg}`));if(!d.allowInvalidAsymmetricKeyTypes)try{p($.alg,w)}catch(U){return g(U)}let R;try{R=l.verify(b,O.header.alg,w)}catch(U){return g(U)}if(!R)return g(new r("invalid signature"));const T=O.payload;if(T.nbf!==void 0&&!d.ignoreNotBefore){if(typeof T.nbf!="number")return g(new r("invalid nbf value"));if(T.nbf>_+(d.clockTolerance||0))return g(new u("jwt not active",new Date(1e3*T.nbf)))}if(T.exp!==void 0&&!d.ignoreExpiration){if(typeof T.exp!="number")return g(new r("invalid exp value"));if(_>=T.exp+(d.clockTolerance||0))return g(new m("jwt expired",new Date(1e3*T.exp)))}if(d.audience){const U=Array.isArray(d.audience)?d.audience:[d.audience];if(!(Array.isArray(T.aud)?T.aud:[T.aud]).some((function(N){return U.some((function(A){return A instanceof RegExp?A.test(N):A===N}))})))return g(new r("jwt audience invalid. expected: "+U.join(" or ")))}if(d.issuer&&(typeof d.issuer=="string"&&T.iss!==d.issuer||Array.isArray(d.issuer)&&d.issuer.indexOf(T.iss)===-1))return g(new r("jwt issuer invalid. expected: "+d.issuer));if(d.subject&&T.sub!==d.subject)return g(new r("jwt subject invalid. expected: "+d.subject));if(d.jwtid&&T.jti!==d.jwtid)return g(new r("jwt jwtid invalid. expected: "+d.jwtid));if(d.nonce&&T.nonce!==d.nonce)return g(new r("jwt nonce invalid. expected: "+d.nonce));if(d.maxAge){if(typeof T.iat!="number")return g(new r("iat required when maxAge is specified"));const U=s(d.maxAge,T.iat);if(U===void 0)return g(new r('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(_>=U+(d.clockTolerance||0))return g(new m("maxAge exceeded",new Date(1e3*U)))}if(d.complete===!0){const U=O.signature;return g(null,{header:$,payload:T,signature:U})}return g(null,T)}))},rn}const Lp=qc(tf);var an,Pc,Ic,Nc,Lc;function $p(){if(Pc)return an;Pc=1;const r=$l(),u=Bl(),m=Ul(),i=En(),{includes:s,isBoolean:p,isInteger:h,isNumber:l,isPlainObject:n,isString:t,once:e}=Lp,{KeyObject:o,createSecretKey:c,createPrivateKey:a}=Ve(),f=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];u&&f.splice(3,0,"PS256","PS384","PS512");const b={expiresIn:{isValid:function(_){return h(_)||t(_)&&_},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(_){return h(_)||t(_)&&_},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(_){return t(_)||Array.isArray(_)},message:'"audience" must be a string or array'},algorithm:{isValid:s.bind(null,f),message:'"algorithm" must be a valid string enum value'},header:{isValid:n,message:'"header" must be an object'},encoding:{isValid:t,message:'"encoding" must be a string'},issuer:{isValid:t,message:'"issuer" must be a string'},subject:{isValid:t,message:'"subject" must be a string'},jwtid:{isValid:t,message:'"jwtid" must be a string'},noTimestamp:{isValid:p,message:'"noTimestamp" must be a boolean'},keyid:{isValid:t,message:'"keyid" must be a string'},mutatePayload:{isValid:p,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:p,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:p,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},v={iat:{isValid:l,message:'"iat" should be a number of seconds'},exp:{isValid:l,message:'"exp" should be a number of seconds'},nbf:{isValid:l,message:'"nbf" should be a number of seconds'}};function d(_,E,O,$){if(!n(O))throw new Error('Expected "'+$+'" to be a plain object.');Object.keys(O).forEach((function(q){const j=_[q];if(j){if(!j.isValid(O[q]))throw new Error(j.message)}else if(!E)throw new Error('"'+q+'" is not allowed in "'+$+'"')}))}const y={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},g=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return an=function(_,E,O,$){typeof O=="function"?($=O,O={}):O=O||{};const q=typeof _=="object"&&!ge.isBuffer(_),j=Object.assign({alg:O.algorithm||"HS256",typ:q?"JWT":void 0,kid:O.keyid},O.header);function w(T){if($)return $(T);throw T}if(!E&&O.algorithm!=="none")return w(new Error("secretOrPrivateKey must have a value"));if(E!=null&&!(E instanceof o))try{E=a(E)}catch{try{E=c(typeof E=="string"?ge.from(E):E)}catch{return w(new Error("secretOrPrivateKey is not valid key material"))}}if(j.alg.startsWith("HS")&&E.type!=="secret")return w(new Error(`secretOrPrivateKey must be a symmetric key when using ${j.alg}`));if(/^(?:RS|PS|ES)/.test(j.alg)){if(E.type!=="private")return w(new Error(`secretOrPrivateKey must be an asymmetric key when using ${j.alg}`));if(!O.allowInsecureKeySizes&&!j.alg.startsWith("ES")&&E.asymmetricKeyDetails!==void 0&&E.asymmetricKeyDetails.modulusLength<2048)return w(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${j.alg}`))}if(_===void 0)return w(new Error("payload is required"));if(q){try{(function(T){d(v,!0,T,"payload")})(_)}catch(T){return w(T)}O.mutatePayload||(_=Object.assign({},_))}else{const T=g.filter((function(U){return O[U]!==void 0}));if(T.length>0)return w(new Error("invalid "+T.join(",")+" option for "+typeof _+" payload"))}if(_.exp!==void 0&&O.expiresIn!==void 0)return w(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(_.nbf!==void 0&&O.notBefore!==void 0)return w(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{(function(T){d(b,!1,T,"options")})(O)}catch(T){return w(T)}if(!O.allowInvalidAsymmetricKeyTypes)try{m(j.alg,E)}catch(T){return w(T)}const S=_.iat||Math.floor(Date.now()/1e3);if(O.noTimestamp?delete _.iat:q&&(_.iat=S),O.notBefore!==void 0){try{_.nbf=r(O.notBefore,S)}catch(T){return w(T)}if(_.nbf===void 0)return w(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(O.expiresIn!==void 0&&typeof _=="object"){try{_.exp=r(O.expiresIn,S)}catch(T){return w(T)}if(_.exp===void 0)return w(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(y).forEach((function(T){const U=y[T];if(O[T]!==void 0){if(_[U]!==void 0)return w(new Error('Bad "options.'+T+'" option. The payload already has an "'+U+'" property.'));_[U]=O[T]}}));const R=O.encoding||"utf8";if(typeof $!="function"){let T=i.sign({header:j,payload:_,secret:E,encoding:R});if(!O.allowInsecureKeySizes&&/^(?:RS|PS)/.test(j.alg)&&T.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${j.alg}`);return T}$=$&&e($),i.createSign({header:j,privateKey:E,payload:_,encoding:R}).once("error",$).once("done",(function(T){if(!O.allowInsecureKeySizes&&/^(?:RS|PS)/.test(j.alg)&&T.length<256)return $(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${j.alg}`));$(null,T)}))},an}const Mp={version:"0.0.4"};var $c,Mc,Cc,Dc,Fc,Uc,Cp=(function(){if(Uc)return Fc;Uc=1;const r=(An||(An=1,u=Rn,m=window,s=typeof(i=m.atob)=="function"?i:typeof ge=="function"?function(d){return new ge(d,"base64").toString("binary")}:typeof m.base64js=="object"?function(d){var y=m.base64js.b64ToByteArray(d);return Array.prototype.map.call(y,(function(g){return String.fromCharCode(g)})).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")},m.atob=s,u&&u.exports&&(u.exports=s)),Rn.exports);var u,m,i,s;const p=Af(),h=Nf(),l=(Wo||(Wo=1,(function(d){function y(S){for(var R in S)d.hasOwnProperty(R)||(d[R]=S[R])}Object.defineProperty(d,"__esModule",{value:!0});var g=dn();d.FormData=g;var _=Uo(),E=ol();d.plugins=E;var O=nl();d.form=O.default;var $=Cf();d.jar=$.default;var q=rl();d.PopsicleError=q.default;var j=Df();function w(S){var R=j.createTransport({type:"text"}),T=Object.assign({},{transport:R},S);return function(U){var N=Object.assign({},T,typeof U=="string"?{url:U}:U);if(typeof N.url!="string")throw new TypeError("The URL must be a string");return new _.Request(N)}}d.createTransport=j.createTransport,d.defaults=w,d.request=w({}),d.get=w({method:"get"}),d.post=w({method:"post"}),d.put=w({method:"put"}),d.patch=w({method:"patch"}),d.del=w({method:"delete"}),d.head=w({method:"head"}),y(mn()),y(Uo()),y(il()),d.default=d.request})(Ao)),Ao),n=Fe(),t=kp(),e=bl(),o=hn(),c=(function(){return Ic||(Ic=1,(d=Da).exports={verify:Np(),sign:$p(),JsonWebTokenError:Rt(),NotBeforeError:Al(),TokenExpiredError:Rl()},Object.defineProperty(d.exports,"decode",{enumerable:!1,value:Ll()})),Da.exports;var d})(),a=(function(){if(Lc)return Nc;function d(y){this.token=y.token||"",this.response=y.response||"",this.body=y.responseText||"",this.json=null,this.intuit_tid=y.intuit_tid||""}return Lc=1,d.prototype.processResponse=function(y){this.response=y||"",this.body=y&&y.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=y&&y.headers&&y.headers.intuit_tid||""},d.prototype.getToken=function(){return this.token.getToken()},d.prototype.text=function(){return this.body},d.prototype.status=function(){return this.response.status},d.prototype.headers=function(){return this.response.headers},d.prototype.valid=function(){return this.response&&Number(this.response.status)>=200&&Number(this.response.status)<300},d.prototype.getJson=function(){if(!this.isJson())throw new Error("AuthResponse is not JSON");return this.json||(this.json=this.body?JSON.parse(this.body):null),this.json},d.prototype.get_intuit_tid=function(){return this.intuit_tid},d.prototype.isContentType=function(y){return this.getContentType().indexOf(y)>-1},d.prototype.getContentType=function(){return this.response.get(d._contentType)||""},d.prototype.isJson=function(){return this.isContentType("application/json")},d._contentType="Content-Type",d._jsonContentType="application/json",d._urlencodedContentType="application/x-www-form-urlencoded",Nc=d})(),f=Mp,b=(function(){if(Mc)return $c;function d(y){y=y||{},this.realmId=y.realmId||"",this.token_type=y.token_type||"",this.access_token=y.access_token||"",this.refresh_token=y.refresh_token||"",this.expires_in=y.expires_in||0,this.x_refresh_token_expires_in=y.x_refresh_token_expires_in||0,this.id_token=y.id_token||"",this.latency=y.latency||6e4,this.createdAt=y.createdAt||Date.now()}return Mc=1,d.prototype.accessToken=function(){return this.getToken().access_token},d.prototype.refreshToken=function(){return this.getToken().refresh_token},d.prototype.tokenType=function(){return this.getToken().token_type},d.prototype.getToken=function(){return{token_type:this.token_type,access_token:this.access_token,expires_in:this.expires_in,refresh_token:this.refresh_token,x_refresh_token_expires_in:this.x_refresh_token_expires_in,realmId:this.realmId,id_token:this.id_token,createdAt:this.createdAt}},d.prototype.setToken=function(y){return this.access_token=y.access_token,this.refresh_token=y.refresh_token,this.token_type=y.token_type,this.expires_in=y.expires_in,this.x_refresh_token_expires_in=y.x_refresh_token_expires_in,this.id_token=y.id_token||"",this.createdAt=y.createdAt||Date.now(),this},d.prototype.clearToken=function(){return this.access_token="",this.refresh_token="",this.token_type="",this.expires_in=0,this.x_refresh_token_expires_in=0,this.id_token="",this.createdAt=0,this},d.prototype._checkExpiry=function(y){return this.createdAt+1e3*y-this.latency>Date.now()},d.prototype.isAccessTokenValid=function(){return this._checkExpiry(this.expires_in)},d.prototype.isRefreshTokenValid=function(){return this._checkExpiry(this.x_refresh_token_expires_in)},$c=d})();function v(d){if(this.environment=d.environment,this.clientId=d.clientId,this.clientSecret=d.clientSecret,this.redirectUri=d.redirectUri,this.token=new b(d.token),this.logging=!(!Object.prototype.hasOwnProperty.call(d,"logging")||d.logging!==!0),this.logger=null,this.state=new p,this.logging){const y="./logs";o.existsSync(y)||o.mkdirSync(y),this.logger=t.createLogger({level:"info",format:t.format.combine(t.format.timestamp(),t.format.printf((g=>`${g.timestamp} ${g.level}: ${g.message}`))),transports:[new t.transports.File({filename:e.join(y,"oAuthClient-log.log")})]})}}return v.cacheId="cacheID",v.authorizeEndpoint="https://appcenter.intuit.com/connect/oauth2",v.tokenEndpoint="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer",v.revokeEndpoint="https://developer.api.intuit.com/v2/oauth2/tokens/revoke",v.userinfo_endpoint_production="https://accounts.platform.intuit.com/v1/openid_connect/userinfo",v.userinfo_endpoint_sandbox="https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo",v.migrate_sandbox="https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate",v.migrate_production="https://developer.api.intuit.com/v2/oauth2/tokens/migrate",v.environment={sandbox:"https://sandbox-quickbooks.api.intuit.com/",production:"https://quickbooks.api.intuit.com/"},v.jwks_uri="https://oauth.platform.intuit.com/op/v1/jwks",v.scopes={Accounting:"com.intuit.quickbooks.accounting",Payment:"com.intuit.quickbooks.payment",Payroll:"com.intuit.quickbooks.payroll",TimeTracking:"com.intuit.quickbooks.payroll.timetracking",Benefits:"com.intuit.quickbooks.payroll.benefits",Profile:"profile",Email:"email",Phone:"phone",Address:"address",OpenId:"openid",Intuit_name:"intuit_name"},v.user_agent=`Intuit-OAuthClient-JS_${f.version}_${n.type()}_${n.release()}_${n.platform()}`,v.prototype.setAuthorizeURLs=function(d){if(!d)throw new Error("Provide the custom authorize URL's");return v.authorizeEndpoint=d.authorizeEndpoint,v.tokenEndpoint=d.tokenEndpoint,v.revokeEndpoint=d.revokeEndpoint,this.environment==="sandbox"?v.userinfo_endpoint_sandbox=d.userInfoEndpoint:v.userinfo_endpoint_production=d.userInfoEndpoint,this},v.prototype.authorizeUri=function(d){if(!(d=d||{}).scope)throw new Error("Provide the scopes");const y=`${v.authorizeEndpoint}?${h.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(d.scope)?d.scope.join(" "):d.scope,state:d.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",y),y},v.prototype.createToken=function(d){return new Promise((y=>{if(!d)throw new Error("Provide the Uri");const g=h.parse(d.split("?").reverse()[0]);this.getToken().realmId=g.realmId?g.realmId:"","state"in g&&(this.getToken().state=g.state);const _={};g.code&&(_.grant_type="authorization_code",_.code=g.code,_.redirect_uri=g.redirectUri||this.redirectUri);const E={url:v.tokenEndpoint,body:_,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":a._urlencodedContentType,Accept:a._jsonContentType,"User-Agent":v.user_agent}};y(this.getTokenRequest(E))})).then((y=>{const g=y.json?y:null,_=g&&g.getJson()||y;return this.token.setToken(_),this.log("info","Create Token response is : ",JSON.stringify(g,null,2)),g})).catch((y=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(y,null,2)),y}))},v.prototype.refresh=function(){return new Promise((d=>{this.validateToken();const y={grant_type:"refresh_token"};y.refresh_token=this.getToken().refresh_token;const g={url:v.tokenEndpoint,body:y,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":a._urlencodedContentType,Accept:a._jsonContentType,"User-Agent":v.user_agent}};d(this.getTokenRequest(g))})).then((d=>{const y=d.json?d:null,g=y&&y.getJson()||d;return this.token.setToken(g),this.log("info","Refresh Token () response is : ",JSON.stringify(y,null,2)),y})).catch((d=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(d,null,2)),d}))},v.prototype.refreshUsingToken=function(d){return new Promise((y=>{if(!d)throw new Error("The Refresh token is missing");const g={grant_type:"refresh_token"};g.refresh_token=d;const _={url:v.tokenEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":a._urlencodedContentType,Accept:a._jsonContentType,"User-Agent":v.user_agent}};y(this.getTokenRequest(_))})).then((y=>{const g=y.json?y:null,_=g&&g.getJson()||y;return this.token.setToken(_),this.log("info","Refresh usingToken () response is : ",JSON.stringify(g,null,2)),g})).catch((y=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(y,null,2)),y}))},v.prototype.revoke=function(d){return new Promise((y=>{d=d||{};const g={};g.token=d.access_token||d.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const _={url:v.revokeEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:a._jsonContentType,"Content-Type":a._jsonContentType,"User-Agent":v.user_agent}};y(this.getTokenRequest(_))})).then((y=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(y,null,2)),y))).catch((y=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(y,null,2)),y}))},v.prototype.getUserInfo=function(){return new Promise((d=>{const y={url:this.environment==="sandbox"?v.userinfo_endpoint_sandbox:v.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:a._jsonContentType,"User-Agent":v.user_agent}};d(this.getTokenRequest(y))})).then((d=>{const y=d.json?d:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(y,null,2)),y})).catch((d=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(d,null,2)),d}))},v.prototype.makeApiCall=function(d){return new Promise((y=>{const g=(d=d||{}).transport?d.transport:l.createTransport({type:"text"}),_=d.headers&&typeof d.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:a._jsonContentType,"User-Agent":v.user_agent},d.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:a._jsonContentType,"User-Agent":v.user_agent}),E={url:d.url,method:d.method||"GET",headers:_,transport:g};d.body&&(E.body=d.body),y(this.getTokenRequest(E))})).then((y=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(y,null,2)),y))).catch((y=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(y,null,2)),y}))},v.prototype.validateIdToken=function(d={}){return new Promise((y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||d.id_token,_=g.split("."),E=JSON.parse(r(_[0])),O=JSON.parse(r(_[1]));if(O.iss!=="https://oauth.platform.intuit.com/op/v1"||!O.aud.find((q=>q===this.clientId))||O.exp<Date.now()/1e3)return!1;const $={url:v.jwks_uri,method:"GET",headers:{Accept:a._jsonContentType,"User-Agent":v.user_agent}};return y(this.getKeyFromJWKsURI(g,E.kid,$))})).then((y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),!!y))).catch((y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y}))},v.prototype.getValidatedIdToken=function(d={}){return new Promise((y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||d.id_token,_=g.split("."),E=JSON.parse(r(_[0])),O=JSON.parse(r(_[1]));if(O.iss!=="https://oauth.platform.intuit.com/op/v1"||!O.aud.find((q=>q===this.clientId))||O.exp<Date.now()/1e3)return!1;const $={url:v.jwks_uri,method:"GET",headers:{Accept:a._jsonContentType,"User-Agent":v.user_agent}};return y(this.getKeyFromJWKsURI(g,E.kid,$))})).then((y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),y))).catch((y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y}))},v.prototype.getIdTokenComponents=async function(d={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const y=(this.getToken().id_token||d.id_token).split("."),g=JSON.parse(r(y[0])),_=JSON.parse(r(y[1]));if(_.iss!=="https://oauth.platform.intuit.com/op/v1")throw new Error('The issuer is not as mentioned in "issuer"');if(!_.aud.find((E=>E===this.clientId)))throw new Error("The aud field in idToken does not contain application's clientId");if(_.exp<Date.now()/1e3)throw new Error("The timestamp has elapsed");return{id_token_header:g,id_token_payload:_}},v.prototype.getKeyFromJWKsURI=function(d,y,g){return new Promise((_=>{_(this.loadResponse(g))})).then((_=>{if(Number(_.status)!==200)throw new Error("Could not reach JWK endpoint");const E=JSON.parse(_.body).keys.find(($=>$.kid===y)),O=this.getPublicKey(E.n,E.e);return c.verify(d,O)})).catch((_=>{throw _=this.createError(_),this.log("error","The getKeyFromJWKsURI () threw an exception : ",JSON.stringify(_,null,2)),_}))},v.prototype.getPublicKey=function(d,y){return(function(){if(Dc)return Cc;function _($){var q=$[0];return q<"0"||q>"7"?"00"+$:$}function E($){var q=$.toString(16);return q.length%2?"0"+q:q}function O($){if($<=127)return E($);var q=E($);return E(128+q.length/2)+q}return Dc=1,Cc=function($,q){var j=ge.from($,"base64"),w=ge.from(q,"base64"),S=j.toString("hex"),R=w.toString("hex");S=_(S),R=_(R);var T=S.length/2,U=R.length/2,N=O(T),A=O(U),H="30"+O(T+U+N.length/2+A.length/2+2)+"02"+N+S+"02"+A+R;return`-----BEGIN RSA PUBLIC KEY-----
|
|
98
|
+
`+ge.from(H,"hex").toString("base64").match(/.{1,64}/g).join(`
|
|
99
|
+
`)+`
|
|
100
|
+
-----END RSA PUBLIC KEY-----
|
|
101
|
+
`}})()(d,y)},v.prototype.getTokenRequest=function(d){const y=new a({token:this.token});return new Promise((g=>{g(this.loadResponse(d))})).then((g=>{if(y.processResponse(g),!y.valid())throw new Error("Response has an Error");return y})).catch((g=>{throw g.authResponse||(g=this.createError(g,y)),g}))},v.prototype.validateToken=function(){if(!this.token.refreshToken())throw new Error("The Refresh token is missing");if(!this.token.isRefreshTokenValid())throw new Error("The Refresh token is invalid, please Authorize again.")},v.prototype.loadResponse=function(d){return l.get(d).then((y=>y))},v.prototype.loadResponseFromJWKsURI=function(d){return l.get(d).then((y=>y))},v.prototype.createError=function(d,y){return y&&y.body!==""?(d.authResponse=y,d.originalMessage=d.message,d.error="","error"in y.getJson()?d.error=y.getJson().error:y.response.statusText?d.error=y.response.statusText:d.message&&(d.error=d.message),d.error_description="","error_description"in y.getJson()?d.error_description=y.getJson().error_description:y.response.statusText&&(d.error_description=y.response.statusText),d.intuit_tid=y.headers().intuit_tid,d):(d.error=y&&y.response.statusText||d.message||"",d.authResponse=y||"",d.intuit_tid=y&&y.headers()&&y.headers().intuit_tid||"",d.originalMessage=d.message||"",d.error_description=y&&y.response.statusText||"",d)},v.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},v.prototype.getToken=function(){return this.token},v.prototype.setToken=function(d){return this.token=new b(d),this.token},v.prototype.authHeader=function(){const d=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(d):ge.from(d).toString("base64")},v.prototype.log=function(d,y,g){this.logging&&this.logger.log(d,y+g)},Fc=v})();const et=Hl(Cp),ql=(()=>{let r,u,m=!1;return{isInitiated:m,init:(i,s)=>{u=new et({clientId:vf.quickbooksKey,clientSecret:"",environment:gf,redirectUri:window.location.origin+i}),r=u.authorizeUri({state:s,scope:[et.scopes.Accounting,et.scopes.OpenId,et.scopes.Email,et.scopes.Profile,"project-management.project"]}),m=!0},handleClick:()=>{window.open(r,"_self","noopener")}}})(),Dp=hf((function(r){const u=Hc(r),m=u?.companyName??"",i=zc(r).tenantsInOrder.length>1,s=Vl(u?.userRole??[]),p=u.externalConnections?.saveConnectionState;return{companyName:m,isGoBackAllowed:i,isAdmin:s,saveConnectionState:p}}),(function(r,u){const{tenantsInOrder:m,navigate:i,currentTenant:s}=u;return{handleOnConnectClick:()=>{ql.handleClick()},handleGoBack:()=>{const p=m[0].tenantEmailDomain!==s.tenantEmailDomain?m[0]:m[1];bf({dispatch:r,navigate:i,pathToNavigate:`/${p.tenantEmailDomain}`,selectedTenant:p,signedInUser:Vc.getSignedInUser()})}}}))(yf);function Fp(r){const u=Gc(r,!0).query,m=u.code,i=u.realmId,s=u.state;return{code:m!=null?Lt(m):"",realmId:i!=null?Lt(i):"",state:s!=null?Lt(s):""}}function eh(){const r=lf(),u=ff(),m=pf(),{code:i,realmId:s,state:p}=Fp(u.search),{setLoading:h,clearAllLoading:l}=df(),n=kn((b=>Hc(b))),t=kn((b=>zc(b).tenantsInOrder)),e=n.externalConnections?.accounting[0],o=e?.connectionType,c=e?.connectionName,a=e?.connectionId??"",f=Vc.getSignedInUser()?.userId??"";return zl.useEffect((()=>{Up(i,s,p,a,f)===!0&&n.externalConnections?.saveConnectionState!=="In-Progress"?(h(mf.CONNECTION_AUTH),m(Zl(n.tenantId,{connection_type:o??"accounting",connection_name:c??"quickbooks_online",authorization_code:i,realm_id:s,connection_id:a,user_id:f},Gc(window.location.origin+"/connection/auth"),n.companyId)),r(u.pathname)):(l(),ql.init("/connection/auth",n.tenantEmailDomain))}),[i,s,p,a,f,n.tenantId,n.companyId,n.externalConnections?.saveConnectionState,u.pathname]),Gl.jsx(Dp,{navigate:r,tenantsInOrder:t,currentTenant:n})}const Up=(r,u,m,i,s)=>r!=""&&u!=""&&m!=""&&i!=null&&i!=""&&s!=null&&s!="";export{eh as Q,Fp as g,Up as h,ql as q};
|