#!/usr/bin/env node "use strict";var Yn=Object.create;var ot=Object.defineProperty;var Bn=Object.getOwnPropertyDescriptor;var zn=Object.getOwnPropertyNames;var Kn=Object.getPrototypeOf,Hn=Object.prototype.hasOwnProperty;var Ae=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var Nt=(n,o,c,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of zn(o))!Hn.call(n,d)&&d!==c&&ot(n,d,{get:()=>o[d],enumerable:!(s=Bn(o,d))||s.enumerable});return n};var ie=(n,o,c)=>(c=n!=null?Yn(Kn(n)):{},Nt(o||!n||!n.__esModule?ot(c,"default",{value:n,enumerable:!0}):c,n)),Jn=n=>Nt(ot({},"__esModule",{value:!0}),n);var cn=Ae(C=>{"use strict";var qe=Symbol.for("react.element"),Gn=Symbol.for("react.portal"),Xn=Symbol.for("react.fragment"),Qn=Symbol.for("react.strict_mode"),Zn=Symbol.for("react.profiler"),eo=Symbol.for("react.provider"),ro=Symbol.for("react.context"),to=Symbol.for("react.forward_ref"),no=Symbol.for("react.suspense"),oo=Symbol.for("react.memo"),ao=Symbol.for("react.lazy"),Qt=Symbol.iterator;function io(n){return n===null||typeof n!="object"?null:(n=Qt&&n[Qt]||n["@@iterator"],typeof n=="function"?n:null)}var rn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tn=Object.assign,nn={};function $e(n,o,c){this.props=n,this.context=o,this.refs=nn,this.updater=c||rn}$e.prototype.isReactComponent={};$e.prototype.setState=function(n,o){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,o,"setState")};$e.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function on(){}on.prototype=$e.prototype;function lt(n,o,c){this.props=n,this.context=o,this.refs=nn,this.updater=c||rn}var ct=lt.prototype=new on;ct.constructor=lt;tn(ct,$e.prototype);ct.isPureReactComponent=!0;var Zt=Array.isArray,an=Object.prototype.hasOwnProperty,ft={current:null},sn={key:!0,ref:!0,__self:!0,__source:!0};function un(n,o,c){var s,d={},y=null,g=null;if(o!=null)for(s in o.ref!==void 0&&(g=o.ref),o.key!==void 0&&(y=""+o.key),o)an.call(o,s)&&!sn.hasOwnProperty(s)&&(d[s]=o[s]);var b=arguments.length-2;if(b===1)d.children=c;else if(1{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.3.1",o=Symbol.for("react.element"),c=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),Ar=Symbol.for("react.offscreen"),Fe=Symbol.iterator,$r="@@iterator";function Qe(e){if(e===null||typeof e!="object")return null;var t=Fe&&e[Fe]||e[$r];return typeof t=="function"?t:null}var ne={current:null},A={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Q={current:null},ve={},be=null;function Ze(e){be=e}ve.setExtraStackFrame=function(e){be=e},ve.getCurrentStack=null,ve.getStackAddendum=function(){var e="";be&&(e+=be);var t=ve.getCurrentStack;return t&&(e+=t()||""),e};var Ir=!1,er=!1,Fr=!1,Mr=!1,rr=!1,N={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:A,ReactCurrentOwner:Q};N.ReactDebugCurrentFrame=ve,N.ReactCurrentActQueue=V;function z(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i1?t-1:0),i=1;i1){for(var j=Array(x),D=0;D1){for(var I=Array(D),M=0;M is not supported and will be removed in a future major release. Did you mean to render instead?")),t.Provider},set:function(p){t.Provider=p}},_currentValue:{get:function(){return t._currentValue},set:function(p){t._currentValue=p}},_currentValue2:{get:function(){return t._currentValue2},set:function(p){t._currentValue2=p}},_threadCount:{get:function(){return t._threadCount},set:function(p){t._threadCount=p}},Consumer:{get:function(){return a||(a=!0,E("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(p){l||(z("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",p),l=!0)}}}),t.Consumer=h}return t._currentRenderer=null,t._currentRenderer2=null,t}var fe=-1,xe=0,pr=1,Hr=2;function vr(e){if(e._status===fe){var t=e._result,a=t();if(a.then(function(h){if(e._status===xe||e._status===fe){var p=e;p._status=pr,p._result=h}},function(h){if(e._status===xe||e._status===fe){var p=e;p._status=Hr,p._result=h}}),e._status===fe){var i=e;i._status=xe,i._result=a}}if(e._status===pr){var l=e._result;return l===void 0&&E(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent')) Did you accidentally put curly braces around the import?`,l),"default"in l||E(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`,l),l.default}else throw e._result}function yr(e){var t={_status:fe,_result:e},a={$$typeof:se,_payload:t,_init:vr};{var i,l;Object.defineProperties(a,{defaultProps:{configurable:!0,get:function(){return i},set:function(h){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),i=h,Object.defineProperty(a,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return l},set:function(h){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),l=h,Object.defineProperty(a,"propTypes",{enumerable:!0})}}})}return a}function Jr(e){e!=null&&e.$$typeof===q?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?E("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t={$$typeof:v,render:e};{var a;Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(i){a=i,!e.name&&!e.displayName&&(e.displayName=i)}})}return t}var hr;hr=Symbol.for("react.module.reference");function mr(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===y||rr||e===d||e===T||e===J||Mr||e===Ar||Ir||er||Fr||typeof e=="object"&&e!==null&&(e.$$typeof===se||e.$$typeof===q||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===hr||e.getModuleId!==void 0))}function qr(e,t){mr(e)||E("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var a={$$typeof:q,type:e,compare:t===void 0?null:t};{var i;Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(l){i=l,!e.name&&!e.displayName&&(e.displayName=l)}})}return a}function r(){var e=ne.current;return e===null&&E(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function u(e){var t=r();if(e._context!==void 0){var a=e._context;a.Consumer===e?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):a.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)}function f(e){var t=r();return t.useState(e)}function m(e,t,a){var i=r();return i.useReducer(e,t,a)}function S(e){var t=r();return t.useRef(e)}function O(e,t){var a=r();return a.useEffect(e,t)}function P(e,t){var a=r();return a.useInsertionEffect(e,t)}function R(e,t){var a=r();return a.useLayoutEffect(e,t)}function L(e,t){var a=r();return a.useCallback(e,t)}function $(e,t){var a=r();return a.useMemo(e,t)}function F(e,t,a){var i=r();return i.useImperativeHandle(e,t,a)}function K(e,t){{var a=r();return a.useDebugValue(e,t)}}function de(){var e=r();return e.useTransition()}function ae(e){var t=r();return t.useDeferredValue(e)}function U(){var e=r();return e.useId()}function He(e,t,a){var i=r();return i.useSyncExternalStore(e,t,a)}var ge=0,gr,ht,mt,gt,bt,_t,Et;function Rt(){}Rt.__reactDisabledLog=!0;function Rn(){{if(ge===0){gr=console.log,ht=console.info,mt=console.warn,gt=console.error,bt=console.group,_t=console.groupCollapsed,Et=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Rt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ge++}}function Cn(){{if(ge--,ge===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},e,{value:gr}),info:G({},e,{value:ht}),warn:G({},e,{value:mt}),error:G({},e,{value:gt}),group:G({},e,{value:bt}),groupCollapsed:G({},e,{value:_t}),groupEnd:G({},e,{value:Et})})}ge<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Gr=N.ReactCurrentDispatcher,Xr;function br(e,t,a){{if(Xr===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Xr=i&&i[1]||""}return` `+Xr+e}}var Qr=!1,_r;{var wn=typeof WeakMap=="function"?WeakMap:Map;_r=new wn}function Ct(e,t){if(!e||Qr)return"";{var a=_r.get(e);if(a!==void 0)return a}var i;Qr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=Gr.current,Gr.current=null,Rn();try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(W){i=W}Reflect.construct(e,[],p)}else{try{p.call()}catch(W){i=W}e.call(p.prototype)}}else{try{throw Error()}catch(W){i=W}e()}}catch(W){if(W&&i&&typeof W.stack=="string"){for(var _=W.stack.split(` `),k=i.stack.split(` `),x=_.length-1,j=k.length-1;x>=1&&j>=0&&_[x]!==k[j];)j--;for(;x>=1&&j>=0;x--,j--)if(_[x]!==k[j]){if(x!==1||j!==1)do if(x--,j--,j<0||_[x]!==k[j]){var D=` `+_[x].replace(" at new "," at ");return e.displayName&&D.includes("")&&(D=D.replace("",e.displayName)),typeof e=="function"&&_r.set(e,D),D}while(x>=1&&j>=0);break}}}finally{Qr=!1,Gr.current=h,Cn(),Error.prepareStackTrace=l}var I=e?e.displayName||e.name:"",M=I?br(I):"";return typeof e=="function"&&_r.set(e,M),M}function Pn(e,t,a){return Ct(e,!1)}function Tn(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Er(e,t,a){if(e==null)return"";if(typeof e=="function")return Ct(e,Tn(e));if(typeof e=="string")return br(e);switch(e){case T:return br("Suspense");case J:return br("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Pn(e.render);case q:return Er(e.type,t,a);case se:{var i=e,l=i._payload,h=i._init;try{return Er(h(l),t,a)}catch{}}}return""}var wt={},Pt=N.ReactDebugCurrentFrame;function Rr(e){if(e){var t=e._owner,a=Er(e.type,e._source,t?t.type:null);Pt.setExtraStackFrame(a)}else Pt.setExtraStackFrame(null)}function kn(e,t,a,i,l){{var h=Function.call.bind(te);for(var p in e)if(h(e,p)){var _=void 0;try{if(typeof e[p]!="function"){var k=Error((i||"React class")+": "+a+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw k.name="Invariant Violation",k}_=e[p](t,p,i,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){_=x}_&&!(_ instanceof Error)&&(Rr(l),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",a,p,typeof _),Rr(null)),_ instanceof Error&&!(_.message in wt)&&(wt[_.message]=!0,Rr(l),E("Failed %s type: %s",a,_.message),Rr(null))}}}function je(e){if(e){var t=e._owner,a=Er(e.type,e._source,t?t.type:null);Ze(a)}else Ze(null)}var Zr;Zr=!1;function Tt(){if(Q.current){var e=Z(Q.current.type);if(e)return` Check the render method of \``+e+"`."}return""}function Sn(e){if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return` Check your code at `+t+":"+a+"."}return""}function On(e){return e!=null?Sn(e.__source):""}var kt={};function xn(e){var t=Tt();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=` Check the top-level render call using <`+a+">.")}return t}function St(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var a=xn(t);if(!kt[a]){kt[a]=!0;var i="";e&&e._owner&&e._owner!==Q.current&&(i=" It was passed a child from "+Z(e._owner.type)+"."),je(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,i),je(null)}}}function Ot(e,t){if(typeof e=="object"){if(Pe(e))for(var a=0;a",l=" Did you accidentally export a JSX literal instead of a component?"):p=typeof e,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",p,l)}var _=ur.apply(this,arguments);if(_==null)return _;if(i)for(var k=2;k10&&z("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),i._updatedFibers.clear()}}}var At=!1,Cr=null;function In(e){if(Cr===null)try{var t=("require"+Math.random()).slice(0,7),a=Or&&Or[t];Cr=a.call(Or,"timers").setImmediate}catch{Cr=function(l){At===!1&&(At=!0,typeof MessageChannel>"u"&&E("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var h=new MessageChannel;h.port1.onmessage=l,h.port2.postMessage(void 0)}}return Cr(e)}var De=0,$t=!1;function It(e){{var t=De;De++,V.current===null&&(V.current=[]);var a=V.isBatchingLegacy,i;try{if(V.isBatchingLegacy=!0,i=e(),!a&&V.didScheduleLegacyUpdate){var l=V.current;l!==null&&(V.didScheduleLegacyUpdate=!1,tt(l))}}catch(I){throw wr(t),I}finally{V.isBatchingLegacy=a}if(i!==null&&typeof i=="object"&&typeof i.then=="function"){var h=i,p=!1,_={then:function(I,M){p=!0,h.then(function(W){wr(t),De===0?et(W,I,M):I(W)},function(W){wr(t),M(W)})}};return!$t&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){p||($t=!0,E("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),_}else{var k=i;if(wr(t),De===0){var x=V.current;x!==null&&(tt(x),V.current=null);var j={then:function(I,M){V.current===null?(V.current=[],et(k,I,M)):I(k)}};return j}else{var D={then:function(I,M){I(k)}};return D}}}}function wr(e){e!==De-1&&E("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),De=e}function et(e,t,a){{var i=V.current;if(i!==null)try{tt(i),In(function(){i.length===0?(V.current=null,t(e)):et(e,t,a)})}catch(l){a(l)}else t(e)}}var rt=!1;function tt(e){if(!rt){rt=!0;var t=0;try{for(;t{"use strict";process.env.NODE_ENV==="production"?pt.exports=cn():pt.exports=fn()});var pn=Ae(jr=>{"use strict";var fo=xr(),po=Symbol.for("react.element"),vo=Symbol.for("react.fragment"),yo=Object.prototype.hasOwnProperty,ho=fo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mo={key:!0,ref:!0,__self:!0,__source:!0};function dn(n,o,c){var s,d={},y=null,g=null;c!==void 0&&(y=""+c),o.key!==void 0&&(y=""+o.key),o.ref!==void 0&&(g=o.ref);for(s in o)yo.call(o,s)&&!mo.hasOwnProperty(s)&&(d[s]=o[s]);if(n&&n.defaultProps)for(s in o=n.defaultProps,o)d[s]===void 0&&(d[s]=o[s]);return{$$typeof:po,type:n,key:y,ref:g,props:d,_owner:ho.current}}jr.Fragment=vo;jr.jsx=dn;jr.jsxs=dn});var vn=Ae(Dr=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var n=xr(),o=Symbol.for("react.element"),c=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),Ar=Symbol.for("react.offscreen"),Fe=Symbol.iterator,$r="@@iterator";function Qe(r){if(r===null||typeof r!="object")return null;var u=Fe&&r[Fe]||r[$r];return typeof u=="function"?u:null}var ne=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(r){{for(var u=arguments.length,f=new Array(u>1?u-1:0),m=1;m=1&&F>=0&&R[$]!==L[F];)F--;for(;$>=1&&F>=0;$--,F--)if(R[$]!==L[F]){if($!==1||F!==1)do if($--,F--,F<0||R[$]!==L[F]){var K=` `+R[$].replace(" at new "," at ");return r.displayName&&K.includes("")&&(K=K.replace("",r.displayName)),typeof r=="function"&&we.set(r,K),K}while($>=1&&F>=0);break}}}finally{We=!1,Ce.current=O,Le(),Error.prepareStackTrace=S}var de=r?r.displayName||r.name:"",ae=de?ue(de):"";return typeof r=="function"&&we.set(r,ae),ae}function Nr(r,u,f){return tr(r,!1)}function nr(r){var u=r.prototype;return!!(u&&u.isReactComponent)}function oe(r,u,f){if(r==null)return"";if(typeof r=="function")return tr(r,nr(r));if(typeof r=="string")return ue(r);switch(r){case T:return ue("Suspense");case J:return ue("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case v:return Nr(r.render);case q:return oe(r.type,u,f);case se:{var m=r,S=m._payload,O=m._init;try{return oe(O(S),u,f)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Ue={},Z=ne.ReactDebugCurrentFrame;function te(r){if(r){var u=r._owner,f=oe(r.type,r._source,u?u.type:null);Z.setExtraStackFrame(f)}else Z.setExtraStackFrame(null)}function or(r,u,f,m,S){{var O=Function.call.bind(he);for(var P in r)if(O(r,P)){var R=void 0;try{if(typeof r[P]!="function"){var L=Error((m||"React class")+": "+f+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw L.name="Invariant Violation",L}R=r[P](u,P,m,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){R=$}R&&!(R instanceof Error)&&(te(S),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",f,P,typeof R),te(null)),R instanceof Error&&!(R.message in Ue)&&(Ue[R.message]=!0,te(S),A("Failed %s type: %s",f,R.message),te(null))}}}var ar=Array.isArray;function Te(r){return ar(r)}function Ye(r){{var u=typeof Symbol=="function"&&Symbol.toStringTag,f=u&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f}}function ir(r){try{return Be(r),!1}catch{return!0}}function Be(r){return""+r}function sr(r){if(ir(r))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ye(r)),Be(r)}var me=ne.ReactCurrentOwner,Lr={key:!0,ref:!0,__self:!0,__source:!0},ke,ur,ze;ze={};function Wr(r){if(he.call(r,"ref")){var u=Object.getOwnPropertyDescriptor(r,"ref").get;if(u&&u.isReactWarning)return!1}return r.ref!==void 0}function le(r){if(he.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function lr(r,u){if(typeof r.ref=="string"&&me.current&&u&&me.current.stateNode!==u){var f=N(me.current.type);ze[f]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(me.current.type),r.ref),ze[f]=!0)}}function Ur(r,u){{var f=function(){ke||(ke=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}}function Yr(r,u){{var f=function(){ur||(ur=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};f.isReactWarning=!0,Object.defineProperty(r,"ref",{get:f,configurable:!0})}}var cr=function(r,u,f,m,S,O,P){var R={$$typeof:o,type:r,key:u,ref:f,props:P,_owner:O};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function Br(r,u,f,m,S){{var O,P={},R=null,L=null;f!==void 0&&(sr(f),R=""+f),le(u)&&(sr(u.key),R=""+u.key),Wr(u)&&(L=u.ref,lr(u,S));for(O in u)he.call(u,O)&&!Lr.hasOwnProperty(O)&&(P[O]=u[O]);if(r&&r.defaultProps){var $=r.defaultProps;for(O in $)P[O]===void 0&&(P[O]=$[O])}if(R||L){var F=typeof r=="function"?r.displayName||r.name||"Unknown":r;R&&Ur(P,F),L&&Yr(P,F)}return cr(r,R,L,S,m,me.current,P)}}var Se=ne.ReactCurrentOwner,Oe=ne.ReactDebugCurrentFrame;function ee(r){if(r){var u=r._owner,f=oe(r.type,r._source,u?u.type:null);Oe.setExtraStackFrame(f)}else Oe.setExtraStackFrame(null)}var ce;ce=!1;function Ke(r){return typeof r=="object"&&r!==null&&r.$$typeof===o}function fr(){{if(Se.current){var r=N(Se.current.type);if(r)return` Check the render method of \``+r+"`."}return""}}function zr(r){{if(r!==void 0){var u=r.fileName.replace(/^.*[\\\/]/,""),f=r.lineNumber;return` Check your code at `+u+":"+f+"."}return""}}var dr={};function Kr(r){{var u=fr();if(!u){var f=typeof r=="string"?r:r.displayName||r.name;f&&(u=` Check the top-level render call using <`+f+">.")}return u}}function fe(r,u){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var f=Kr(u);if(dr[f])return;dr[f]=!0;var m="";r&&r._owner&&r._owner!==Se.current&&(m=" It was passed a child from "+N(r._owner.type)+"."),ee(r),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,m),ee(null)}}function xe(r,u){{if(typeof r!="object")return;if(Te(r))for(var f=0;f",R=" Did you accidentally export a JSX literal instead of a component?"):$=typeof r,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,R)}var F=Br(r,u,f,S,O);if(F==null)return F;if(P){var K=u.children;if(K!==void 0)if(m)if(Te(K)){for(var de=0;de0?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}";if(!vr[ae+He]){var ge=U.length>0?"{"+U.join(": ..., ")+": ...}":"{}";A(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,He,ae,ge,ae),vr[ae+He]=!0}}return r===s?Hr(F):pr(F),F}}function Jr(r,u,f){return yr(r,u,f,!0)}function hr(r,u,f){return yr(r,u,f,!1)}var mr=hr,qr=Jr;Dr.Fragment=s,Dr.jsx=mr,Dr.jsxs=qr}()});var Ge=Ae((Ao,vt)=>{"use strict";process.env.NODE_ENV==="production"?vt.exports=pn():vt.exports=vn()});var Ro={};module.exports=Jn(Ro);var _n=require("commander");var Wt="recently-published";var Ut="0.8.2";var Kt=ie(require("semver/functions/parse.js"),1),Ht=ie(require("validate-npm-package-name"),1);var Yt=ie(require("util"),1),Bt=require("child_process"),Je=Yt.default.promisify(Bt.exec);async function zt(n,o,c){let s=[];for(let d=0;dn.length?n.length:d+o,g=await Promise.all(n.slice(d,y).map(c));s=[...s,...g]}return s}var Jt=async n=>{try{let{stdout:o}=await Je(`npm view ${n} time --json`),c=JSON.parse(o);return delete c.created,delete c.modified,Object.entries(c).map(([s,d])=>({version:s,...(0,Kt.default)(s),publishDate:new Date(d)}))}catch(o){console.error(o.message),process.exit(1)}},qt=async()=>{try{let{stdout:n}=await Je("npm list --json"),o=JSON.parse(n);if(!o.dependencies)throw new Error("No installed packages found in this directory");return Object.entries(o.dependencies).map(([c,s])=>({name:c,...s}))}catch(n){console.error(n.message),process.exit(1)}},Gt=n=>{if(n===void 0)return!0;let o=(0,Ht.default)(n);return!(!o.validForNewPackages&&!o.validForOldPackages)};var at=(n,o)=>o.display==="all"?n:n.slice(0,parseInt(o.display)),Xt=(n,o)=>o.excludePrerelease?n.filter(c=>Array.isArray(c.prerelease)&&c.prerelease.length==0):n;function it(n){let c=Math.floor((new Date().getTime()-n.getTime())/1e3),s=Math.floor(c/31536e3);return s>1?`${s} years ago`:(s=Math.floor(c/2592e3),s>1?`${s} months ago`:(s=Math.floor(c/86400),s>1?`${s} days ago`:(s=Math.floor(c/3600),s>1?`${s} hours ago`:(s=Math.floor(c/60),s>1?`${s} minutes ago`:`${Math.floor(c)} seconds ago`))))}function st(n){let o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][n.getDay()],d=o[n.getMonth()],y=n.getDate(),g=n.getFullYear(),b=n.getHours(),v=n.getMinutes().toString().padStart(2,"0"),T=b>=12?"PM":"AM";return b=b%12||12,`${s} ${d} ${y} ${g} ${b}:${v} ${T}`}var yn=ie(xr(),1),pe=require("ink"),hn=require("object-hash"),Y=ie(Ge(),1),Ie=class extends yn.default.Component{getConfig(){return{data:this.props.data,columns:this.props.columns||this.getDataKeys(),padding:this.props.padding||1,header:this.props.header||go,cell:this.props.cell||bo,skeleton:this.props.skeleton||_o}}getDataKeys(){let o=new Set;for(let c of this.props.data)for(let s in c)o.add(s);return Array.from(o)}getColumns(){let{columns:o,padding:c}=this.getConfig();return o.map(s=>{let d=String(s).length,y=this.props.data.map(b=>{let v=b[s];return v==null?0:String(v).length}),g=Math.max(...y,d)+c*2;return{column:s,width:g,key:String(s)}})}getHeadings(){let{columns:o}=this.getConfig();return o.reduce((c,s)=>({...c,[s]:s}),{})}header=Xe({cell:this.getConfig().skeleton,padding:this.getConfig().padding,skeleton:{component:this.getConfig().skeleton,line:"\u2500",left:"\u250C",right:"\u2510",cross:"\u252C"}});heading=Xe({cell:this.getConfig().header,padding:this.getConfig().padding,skeleton:{component:this.getConfig().skeleton,line:" ",left:"\u2502",right:"\u2502",cross:"\u2502"}});separator=Xe({cell:this.getConfig().skeleton,padding:this.getConfig().padding,skeleton:{component:this.getConfig().skeleton,line:"\u2500",left:"\u251C",right:"\u2524",cross:"\u253C"}});data=Xe({cell:this.getConfig().cell,padding:this.getConfig().padding,skeleton:{component:this.getConfig().skeleton,line:" ",left:"\u2502",right:"\u2502",cross:"\u2502"}});footer=Xe({cell:this.getConfig().skeleton,padding:this.getConfig().padding,skeleton:{component:this.getConfig().skeleton,line:"\u2500",left:"\u2514",right:"\u2518",cross:"\u2534"}});render(){let o=this.getColumns(),c=this.getHeadings();return(0,Y.jsxs)(pe.Box,{flexDirection:"column",children:[this.header({key:"header",columns:o,data:{}}),this.heading({key:"heading",columns:o,data:c}),this.props.data.map((s,d)=>{let y=`row-${(0,hn.sha1)(s)}-${d}`;return(0,Y.jsxs)(pe.Box,{flexDirection:"column",children:[this.separator({key:`separator-${y}`,columns:o,data:{}}),this.data({key:`data-${y}`,columns:o,data:s})]},y)}),this.footer({key:"footer",columns:o,data:{}})]})}};function Xe(n){let o=n.skeleton;return c=>(0,Y.jsxs)(pe.Box,{flexDirection:"row",children:[(0,Y.jsx)(o.component,{children:o.left}),...Eo(s=>{let d=`${c.key}-hseparator-${s}`;return(0,Y.jsx)(o.component,{children:o.cross},d)},c.columns.map((s,d)=>{let y=c.data[s.column];if(y==null){let g=`${c.key}-empty-${s.key}`;return(0,Y.jsx)(n.cell,{column:d,children:o.line.repeat(s.width)},g)}else{let g=`${c.key}-cell-${s.key}`,b=n.padding,v=s.width-String(y).length-n.padding;return(0,Y.jsx)(n.cell,{column:d,children:`${o.line.repeat(b)}${String(y)}${o.line.repeat(v)}`},g)}})),(0,Y.jsx)(o.component,{children:o.right})]})}function go(n){return(0,Y.jsx)(pe.Text,{bold:!0,color:"blue",children:n.children})}function bo(n){return(0,Y.jsx)(pe.Text,{children:n.children})}function _o(n){return(0,Y.jsx)(pe.Text,{bold:!0,children:n.children})}var yt=()=>(0,Y.jsx)(Y.Fragment,{});function Eo(n,o){return o.reduce((c,s,d)=>c.length===0?[s]:[...c,n(d),s],[])}var X=require("ink");var mn=ie(require("ink-spinner"),1),H=ie(Ge(),1),gn=async(n,o)=>{let c=await Jt(n),d=Xt(c,o).sort((b,v)=>v.publishDate.getTime()-b.publishDate.getTime()),y=at(d,o).map(({version:b,publishDate:v})=>({version:b,publishDate:v,relativePublishDate:it(v),formattedPublishDate:st(v)}));if(o.json){(0,X.render)(null),console.log(JSON.stringify(y,null,2));return}let g=y==null?void 0:y.map(({version:b,relativePublishDate:v,formattedPublishDate:T})=>({Version:b,Published:v,Date:T}));(0,X.render)((0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(X.Box,{children:(0,H.jsxs)(X.Text,{color:"green",children:[" ",n]})}),(0,H.jsx)(Ie,{data:g,skeleton:yt})]}))},bn=async n=>{let o=await qt();(0,X.render)((0,H.jsxs)(X.Text,{children:[(0,H.jsx)(X.Text,{color:"green",children:(0,H.jsx)(mn.default,{type:"dots"})})," Fetching metadata for packages..."]}));let s=(await zt(o,100,({name:v,version:T})=>Je(`npm view ${v} time'[${T}]'`))).map(({stdout:v})=>v.replace(/[\n\r]/g,"")),y=(o==null?void 0:o.map((v,T)=>(v.publishDate=new Date(s[T]),v))).sort((v,T)=>T.publishDate.getTime()-v.publishDate.getTime()),g=at(y,n).map(({name:v,version:T,publishDate:J})=>({name:v,version:T,publishDate:J,relativePublishDate:it(J),formattedPublishDate:st(J)}));if(n.json){(0,X.render)(null),console.log(JSON.stringify(g,null,2));return}let b=g==null?void 0:g.map(({name:v,version:T,relativePublishDate:J,formattedPublishDate:q})=>({Name:v,Version:T,Published:J,Date:q}));(0,X.render)((0,H.jsx)(H.Fragment,{children:(0,H.jsx)(Ie,{data:b,skeleton:yt})}))};var En=new _n.Command;En.name(Wt).version(Ut).argument("[optionalPackageName]","Optional package name whose recently published versions you want to see. If not provided, will display recently published packages installed in the current directory.").option("-d, --display ",'Number of recently published versions you would like displayed or "all" if you want to display all of them',"5").option("-ep, --excludePrerelease","Exclude prerelease versions from the list of recently published versions").option("--json","Output the result in JSON format").action(async(n,o)=>{Gt(n)||(console.error("Invalid input. Please provide a valid npm package name (including scope). Versions ranges are not supported."),process.exit(1)),n?await gn(n,o):await bn(o)});En.parse(process.argv); /*! Bundled license information: react/cjs/react.production.min.js: (** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react/cjs/react.development.js: (** * @license React * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react/cjs/react-jsx-runtime.production.min.js: (** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react/cjs/react-jsx-runtime.development.js: (** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) */