class t{constructor(e){this._value=NaN;if(typeof e==="string"){this._seed=this.hashCode(e)}else if(typeof e==="number"){this._seed=this.getSafeSeed(e)}else{this._seed=this.getSafeSeed(t.MIN+Math.floor((t.MAX-t.MIN)*Math.random()))}this.reset()}next(e=0,r=1){this.recalculate();return this.map(this._value,t.MIN,t.MAX,e,r)}nextInt(e=10,r=100){this.recalculate();return Math.floor(this.map(this._value,t.MIN,t.MAX,e,r+1))}nextString(t=16,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){let r="";while(r.length<t){r+=this.nextChar(e)}return r}nextChar(t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){return t.substr(this.nextInt(0,t.length-1),1)}nextArrayItem(t){return t[this.nextInt(0,t.length-1)]}nextBoolean(){this.recalculate();return this._value>.5}skip(t=1){while(t-- >0){this.recalculate()}}reset(){this._value=this._seed}recalculate(){this._value=this.xorshift(this._value)}xorshift(t){t^=t<<13;t^=t>>17;t^=t<<5;return t}map(t,e,r,s,i){return(t-e)/(r-e)*(i-s)+s}hashCode(t){let e=0;if(t){const r=t.length;for(let s=0;s<r;s++){e=(e<<5)-e+t.charCodeAt(s);e|=0;e=this.xorshift(e)}}return this.getSafeSeed(e)}getSafeSeed(t){if(t===0)return 1;return t}}t.MIN=-2147483648;t.MAX=2147483647;const e=["red","orange","yellow","green","blue","purple"];const r={red:["#FF4270","#FF7C7C"],orange:["#F45532","#FF9B63"],yellow:["#FFA756","#FBFF47"],green:["#0CAE60","#7BFFD0"],blue:["#476FFF","#47C8FF"],purple:["#9747FF","#DA47FF"]};function s(s){const i=new t(s);const[n,h]=r[e[i.nextInt(0,e.length-1)]];return`linear-gradient(136deg, ${n} 6.86%, ${h} 93.78%)`}export{e as C,t as P,s as g};
//# sourceMappingURL=p-497acb43.js.map