var g=Object.create;var d=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var A=(e,n)=>{for(var s in n)d(e,s,{get:n[s],enumerable:!0})},h=(e,n,s,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of W(n))!b.call(e,i)&&i!==s&&d(e,i,{get:()=>n[i],enumerable:!(t=y(n,i))||t.enumerable});return e};var V=(e,n,s)=>(s=e!=null?g(R(e)):{},h(n||!e||!e.__esModule?d(s,"default",{value:e,enumerable:!0}):s,e)),x=e=>h(d({},"__esModule",{value:!0}),e);var P={};A(P,{lint:()=>O,minItems:()=>F,ruleType:()=>m});module.exports=x(P);var U=require("semver");var f=(e,n,s)=>{let t=!1,i=[],p=[];if(!e.hasOwnProperty(n))return{hasDependencyWithRestrictedPrereleaseVersion:t,dependenciesWithRestrictedPrereleaseVersion:i,dependenciesWithoutRestrictedPrereleaseVersion:p};for(let o in e[n])if(s.includes(o)){let u=e[n][o];u.includes("-beta")||u.includes("-rc")?(t=!0,i.push(o)):p.push(o)}return{hasDependencyWithRestrictedPrereleaseVersion:t,dependenciesWithRestrictedPrereleaseVersion:i,dependenciesWithoutRestrictedPrereleaseVersion:p}};var r=V(require("chalk")),l=V(require("log-symbols"));var c=class{constructor(n,s,t,i){this.lintId=n,this.severity=s,this.node=t,this.lintMessage=i}toString(){let n=this.severity==="error"?l.default.error:l.default.warning,s=r.default.cyan.bold(this.lintId),t=r.default.magenta.bold(this.node),i=this.severity==="error"?r.default.red.bold(this.lintMessage):r.default.yellow(this.lintMessage);return`${n} ${s} - node: ${t} - ${i}`}};var D="no-restricted-pre-release-dependencies",a="dependencies",m="array",F=1,O=(e,n,s)=>{let t=f(e,a,s);return t.hasDependencyWithRestrictedPrereleaseVersion?new c(D,n,a,`You are using a restricted pre-release dependency. Please remove it. Invalid ${a} include: ${t.dependenciesWithRestrictedPrereleaseVersion.join(", ")}`):null};0&&(module.exports={lint,minItems,ruleType});
