-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminified.rdsh
More file actions
1 lines (1 loc) · 18.5 KB
/
minified.rdsh
File metadata and controls
1 lines (1 loc) · 18.5 KB
1
`t{t{Object.s p t(u,v p null,w p null){h DEFINEPROPERTY(this,u,v,w)}Object.x p t{h this}Object.y p t(u p""){h DELETE(this,u)}Object.z p t(u,A p this){h OBJGET(A,u)}Object.B p t{h KEYS(this)h[]}Object.C p t{h VALUES(this)h[]}d D p t(E){d F p type E if(F=null){h null}d G p null switch F{case Number G p 0+E cancel case String G p""+E cancel case Boolean G p not!E cancel case Function G p FUNCOPY(E)cancel case Array G p[]cancel case Object G p{}cancel}each(H of E.B()){G[H]p D(E[H])}h G}Object.I p t{h D(this)}}()t{String.l p 0d B p String.B()DEFINEPROPERTY(String,B[0],null,t STRLEN(this))String.J p t(g p""){d K p this.l for(d L p 0,L<K,L++){if(this[L]=g){h L}}h-1}String.M p t(g p""){d K p this.l for(d L p K-1,L>=0,L--){if(this[L]=g){h L}}h-1}String.N p t(O p 0,P p this.l){d K p this.l if(O<0||O>K||P<0||P>K){throw"String.substring inputs ('O', 'P') are out of range for length 'K'! (0 <-> length for start, 0 <-> length for finish)"}d Q p""for(d L p O,L<P,L++){Q+=this[L]}h Q}String.R p t(g p""){d F p g.l if(F>this.l){h no}h this.N(0,F)=g}String.S p t(g p""){d F p this.l-g.l if(F<0){h no}h this.N(F)=g}String.T p t(g p""){h this.J(g)!= -1}String.U p t(V p""){d Q p[]d W p""d K p this.l for(d L p 0,L<K,L++){W+=this[L]if(W.S(V)){Q[Q.l]p W.N(0,W.l-V.l)W p""}}h Q}String.X p t(V,Y){d Z p""d K p this.l for(d L p 0,L<K,L++){d F p this[L]Z+=F=V?Y,F}h Z}String.__ p t(_a,_b){h _a.repeat(_b-this.l)+this}String._c p t(_a,_b){h this+_a.repeat(_b-this.l)}d _d p{}_d["a"]p"A"_d["b"]p"B"_d["c"]p"C"_d["d"]p"D"_d["e"]p"E"_d["f"]p"F"_d["g"]p"G"_d["h"]p"H"_d["i"]p"I"_d["j"]p"J"_d["k"]p"K"_d["l"]p"L"_d["m"]p"M"_d["n"]p"N"_d["o"]p"O"_d["p"]p"P"_d["q"]p"Q"_d["r"]p"R"_d["s"]p"S"_d["t"]p"T"_d["u"]p"U"_d["v"]p"V"_d["w"]p"W"_d["x"]p"X"_d["y"]p"Y"_d["z"]p"Z"d _e p{}_e["A"]p"a"_e["B"]p"b"_e["C"]p"c"_e["D"]p"d"_e["E"]p"e"_e["F"]p"f"_e["G"]p"g"_e["H"]p"h"_e["I"]p"i"_e["J"]p"j"_e["K"]p"k"_e["L"]p"l"_e["M"]p"m"_e["N"]p"n"_e["O"]p"o"_e["P"]p"p"_e["Q"]p"q"_e["R"]p"r"_e["S"]p"s"_e["T"]p"t"_e["U"]p"u"_e["V"]p"v"_e["W"]p"w"_e["X"]p"x"_e["Y"]p"y"_e["Z"]p"z"String._f p t{d Q p""for d L p 0,L<this.l,L++{d F p Object.z(this[L],_d)Q+=F=null?this[L],F}h Q}String._g p t{d Q p""for d L p 0,L<this.l,L++{d F p Object.z(this[L],_e)Q+=F=null?this[L],F}h Q}}()t{Array.l p 0Array._h p null Array._i p null d B p Array.B()DEFINEPROPERTY(Array,B[0],null,t ARRLEN(this))DEFINEPROPERTY(Array,B[1],null,t this[0])DEFINEPROPERTY(Array,B[2],null,t this[this.l-1])Array._j p t(g){this[this.l]p g h this}Array._k p t{d K p this.l if(K<1){throw"Cannot pop from an empty array!"}h this.y(K-1)}Array.J p t(E){for(d L p 0,L<this.l,L++){if(this[L]=E){h L}}h-1}Array.M p t(E){for(d L p this.l-1,L>=0,L--){if(this[L]=E){h L}}h-1}Array.T p t(E){h this.J(E)!= -1}Array._l p t(O p 0,P p this.l){d _m p[]for(d L p O,L<P,L++){_m._j(this[L])}h _m}Array._n p t(_o,_p p 0){d K p this.l if(K<_p||_p<0){throw"Invalid insert index argument! It should be in range (0 <-> length of array)."}for(d L p K,L>_p,L--){this[L]p this[L-1]}this[_p]p _o h this}Array._q p t(_p p 0){d K p this.l if(_p>=K||_p<0){throw"Invalid remove index argument! It should be in range (0 <-> length of array - 1)."}d _r p this[_p]for(d L p _p,L<K-1,L++){this[L]p this[L+1]}this.y(K-1)h _r}Array._s p t{d K p this.l for(d L p 0,L<K/2,L++){d _t p this[L]d _u p this[K-L-1]if(_u=_t){continue}this[L]p _u this[K-L-1]p _t}h this}Array._v p t(L,_w){d _x p L each _y of this{_x p _w(_x,_y)}h _x}Array._z p t(_w){d Q p[]each _y of this{if _w(_y){Q._j(_y)}}h Q}Array._A p t(_w){d Q p[]each _y of this{Q._j(_w(_y))}h Q}}()t{Number._B p t(_C p 0){h this+_C}Number._D p t(_C p 0){h this-_C}Number._E p t(_C p 1){h this*_C}Number._F p t(_C p 1){h this/_C}Number._G p t(_C p 1){h this%_C}Number._H p t(_C p 1){h this**_C}}()t{Boolean._I p yes Boolean._J p 0d B p Boolean.B()DEFINEPROPERTY(Boolean,B[0],null,t!this)DEFINEPROPERTY(Boolean,B[1],null,t 0+this)}()t{Function._K p t(_L p[],A p null){h CALL(this,_L,A)}}()t{Poly._M p t{h not!this}Poly._N p t{h 0+this}Poly.q p t{h"'this'"}Poly._O p t{h[0+this,"'this'",not!this]}Poly._P p t{h{d _N p this+0d q p"'this'"d _M p not!this}}Poly._Q p t(_o){h POLYADDSTRING(this,_o)}Poly._R p t(_S){h POLYMULTIPLYSTRING(this,_S)}}()}()t{d _T p{}_T["a"]p t(o,_U,_V,_W,_X,_Y){o._Z(_U,_V-_W/2+0.5,_W,_W/2,_X,no,_Y)o._0(_U,_V-_W+1,_U+_W-1,_V-_W+1,_X,_Y)o._0(_U+_W-1,_V-_W+1,_U+_W-1,_V-_W/2+0.5,_X,_Y)}_T["b"]p t(o,_U,_V,_W,_X,_Y){o._Z(_U,_V-_W+1,_W,_W,_X,no,_Y)o._0(_U,_V-_W*2+1,_U,_V-_W,_X,_Y)}_T["c"]p t(o,_U,_V,_W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X,_Y)}_T["|"]p t(o,_U,_V,_W,_X,_Y){o._0(_U+_W/2-0.5,_V-_W*2+1,_U+_W/2-0.5,_V,_X,_Y)}_T["-"]p t(o,_U,_V,_W,_X,_Y){o._0(_U,_V-_W/2+0.5,_U+_W-1,_V-_W/2+0.5,_X,_Y)}_T["_"]p t(o,_U,_V,_W,_X,_Y){o._0(_U,_V,_U+_W-1,_V,_X,_Y)}_T["+"]p t(o,_U,_V,_W,_X,_Y){o._0(_U+_W/2-0.5,_V-_W+1,_U+_W/2-0.5,_V,_X,_Y)o._0(_U,_V-_W/2+0.5,_U+_W-1,_V-_W/2+0.5,_X,_Y)}_T["="]p t(o,_U,_V,_W,_X,_Y){o._0(_U,_V-_W+1,_U+_W-1,_V-_W+1,_X,_Y)o._0(_U,_V,_U+_W-1,_V,_X,_Y)}t{}=>_2 _T[" "]p _2 _T["\n"]p _2 _T["\t"]p _2 _T["\r"]p _2 d a p class{d static e p class{constructor p t(Q,_3,_4){h ROUND(Q)+ROUND(_3)*256+ROUND(_4)*65536}}d static b p class{d _5 d _6 constructor p t(_7){if(![1,4,8,16,24].T(_7)){throw"'_7' is not a valid bit amount for a bitmap color pallette! Available values are 1, 4, 8, 16, and 24."}this._5 p[]this._6 p _7}d c p t(_p,_8){if _p<0||_p>=2**this._6{throw"The index '_p' is out of range for a pallette with 'this._6' bits!"}this._5[_p]p _8 h this}d _9 p t{this._5 p[]h this}}d private _5 d _ constructor p t(m,n,_ p null,_7 p null){d a_ p 24if _7!=null{if _!=null and _._6!=_7{throw"The amount of bits in the pallette should match the amount of bits in the drawing!"}if![1,4,8,16,24].T(_7){throw"'_7' is not a valid bit amount for a bitmap color pallette! Available values are 1, 4, 8, 16, and 24."}a_ p _7}elseif _!=null{a_ p _._6}this._ p _ this._5 p GENERATEBMP(m,n,a_,_!=null)}d static aa p t(ab,ac p 20){h{d private _5 p GENERATEQR(ab,ac)new a.b(1).c(0,new a.e(0,0,0)).c(1,new a.e(255,255,255))=>_}after a.prototype}d protected ad p t{if this._!=null{for d L p 0,L<2**this._._6,L++{d F p this._._5.z(L)if F=null{this._5 p EDITPALLETTE(this._5,L,0,0,0)}else{d _4 p(F-F%65536)d _3 p(F-_4)-(F-_4)%256d Q p F-_3-_4 _4/=65536_3/=256this._5 p EDITPALLETTE(this._5,L,Q,_3,_4)}}}}d r p t(ae){this.ad()RENDERBMP(this._5,ae)h this}d af p t(ag){this._5 p ITERATEBMP(this._5,ag)h this}d _Z p t(_U,_V,m,n,_X,ah p yes,ai p 1){if not ah and ai<0.5{h this}if not ah and ai>=1.5{d aj p(ai-1)/2this._5 p DRAWRECTANGLE(this._5,_U-aj,_V-aj,m+aj*2,ai,_X,yes)this._5 p DRAWRECTANGLE(this._5,_U-aj,_V+n-1-aj,m+aj*2,ai,_X,yes)this._5 p DRAWRECTANGLE(this._5,_U-aj,_V+aj+1,ai,n-aj*2,_X,yes)this._5 p DRAWRECTANGLE(this._5,_U+m-1-aj,_V+aj+1,ai,n-aj*2,_X,yes)}else{this._5 p DRAWRECTANGLE(this._5,_U,_V,m,n,_X,ah)}h this}d ak p t(_U,_V,m,n,_X,al p yes,am p 0,an p 0){this._5 p DRAWELLIPSE(this._5,_U,_V,m,n,_X,al,am,an)h this}d _0 p t(ao,ap,aq,ar,_X,m p 1){if m<0.5{h this}if m<1.5{this._5 p DRAWLINE(this._5,ao,ap,aq,ar,_X)}elseif ap=ar or ao=aq{d _Y p(m-1)/2this._5 p DRAWRECTANGLE(this._5,(ao<aq?ao,aq)-_Y,(ap<ar?ap,ar)-_Y,(ao<aq?1,-1)*(aq-ao)+_Y*2+1,(ap<ar?1,-1)*(ar-ap)+_Y*2+1,_X,yes)}else{d as p(ar-ap)/(aq-ao)d _x p-1/as d at p m/(2*(as**2+1)**0.5)d au p m/(2*(_x**2+1)**0.5)d av p as*at d aw p _x*au d ax p(ao<aq)?-1,1this._5 p FILLTRIANGLE(this._5,[ao+au+ax*at,ao-au+ax*at,aq-au-ax*at,aq+au-ax*at],[ap+aw+ax*av,ap-aw+ax*av,ar-aw-ax*av,ar+aw-ax*av],_X)}h this}d _1 p t(_U,_V,_X,m p 1){if m<0.5{h this}if m<1.5{this._5 p DRAWPOINT(this._5,_U,_V,_X)}else{d aj p(m-1)/2this._5 p DRAWRECTANGLE(this._5,_U-aj,_V-aj,aj*2+1,aj*2+1,_X,yes)}h this}d ay p t(az,aA,_X,aB p yes){if aB{this._5 p FILLTRIANGLE(this._5,az,aA,_X)}else{az.l=>K if K!=aA.l{throw"The number of x coordinates do not match the number of y coordinates!"}for 0=>L,L<K,L++{L=K-1?0,L+1=>aC this._5 p DRAWLINE(this._5,az[L],aA[L],az[aC],aA[aC],_X)}}h this}d aD p t{PRINTBMP(this._5)h this}d aE p t(_a,_U,_V,j,_X,aF p 1){d F p Object.z(_a,_T)if F=null{F p _T["?"]}F(this,_U,_V,j,_X,aF)h this}d q p t(aG,_U,_V,j,_X,aF p 1,aH p-1,aI p 2*j,aJ p 3.5*j){d aK p _U d aL p _V for d aM p 0,aM<aG.l,aM++{if(aH!= -1and aM>0and aM%aH=0)or aG[aM]="\n"{aK p _U aL+=aJ}if aG[aM]="\t"{aK+=aI*3}elseif aG[aM]!="\n"{this.aE(aG[aM],aK,aL,j,_X,aF)aK+=aI}}h this}}h a}()=>a t{d f p t(g){h OUTPUT(g)}f.aN p t(g){h WRITE(g)}f._9 p t{CLEAR()}f.i p t{h READ()}f.aC p t{h NEXT()}h f}()=>f`if yes{d _ p new a.b(1)_.c(0,new a.e(255,255,255))_.c(1,new a.e(0,0,0))f("What would you like printed?")d g p f.i()d j p 16d k p 20k*(g.l-1)+j=>m j*3=>n d o p new a(m,n,_)o.q(g,0,2*j-1,j,1,1,-1,k)o.r("./y_printed.bmp")}