0xd743b27d…c43fsent to0x0a1bbd57…3676·#19,270,722·view on Etherscan
!function(){"use strict";function t(t,e,i,s,r,n,h){let o=6*t*2,a=6*t*2;const A=s,l=r,c=s+n,d=r,g=s+n,f=r+h,u=s,p=r+h;e[o++]=A,e[o++]=l,e[o++]=c,e[o++]=d,e[o++]=u,e[o++]=p,e[o++]=u,e[o++]=p,e[o++]=c,e[o++]=d,e[o++]=g,e[o++]=f,null!==i&&(i[a++]=0,i[a++]=0,i[a++]=1,i[a++]=0,i[a++]=0,i[a++]=1,i[a++]=0,i[a++]=1,i[a++]=1,i[a++]=0,i[a++]=1,i[a++]=1)}class e{constructor(t,e,i,s){this.gl=t,this.attributeName=e,this.buffer=t.createBuffer(),this.X52=i,this.X53=s,this.data=new Float32Array(s*i)}enable(t){const e=this.gl,i=e.getAttribLocation(t,this.attributeName);e.bindBuffer(e.ARRAY_BUFFER,this.buffer),e.enableVertexAttribArray(i),e.vertexAttribPointer(i,this.X52,this.gl.FLOAT,!1,0,0)}bufferData(t=this.gl.DYNAMIC_DRAW){const e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,this.buffer),e.bufferData(e.ARRAY_BUFFER,this.data,t)}}const i=function(){const t=document.createElement("a");return document.body.appendChild(t),t.style.display="none",function(e,i){t.href=URL.createObjectURL(e),t.download=i,t.click()}}();function s(t,e,i){const s=t.createShader(i);if(t.shaderSource(s,e),t.compileShader(s),!0!==t.getShaderParameter(s,t.COMPILE_STATUS))throw t.getShaderInfoLog(s);return s}function r(t){return[(t>>8&15)/15,(t>>4&15)/15,(15&t)/15]}const n={None:[0],Molten:[1792],Electro:[7],"Console 1":[112],"Console 2":[112,240],F00:[3276,3840],"0F0":[3276,240],A00:[3276,2560],A0A:[3276,2570],C77:[3276,3191],AAF:[3276,2735],Gray:[1638,3276],"EGA 1":[2570,3935,2640,4085,2730,160,170,1535,2560,3925],"EGA 2":[2735,1455,1370,2565,3840,4010,4095],"EGA 3":[1280,2730,2730,2730,2730,1365,2560,2730,1365,170],"EGA 4":[1365,10,1375,160,1525,170,1535,2560,3925,2570,3935,2640,4085,2730,4095],"EGA 5":[10,1375,1450,1525,4085,4095,2730,3925,2570],"EGA 6":[4090,3930,3920,3845,2565,90,170,1365],"EGA 7":[1285,2570,3855,2730,4e3,4080,4095],"CGA 1":[1535,3935,4095],"CGA 2":[170,2570,2730],"4 Bit":[1365,1375,1525,1535,3925,3935,4085,2730,10,160,170,2560,2570,2720,4095]};function h(t,e,i,s,r){return s+(t-e)/(i-e)*(r-s)}const o={corner:[16,152,0],hexa:[16,186,16],l:[0,152,0],penta:[16,178,16],t:[0,184,0],terminal:[0,144,0]},a=[0,0,0],A=[0,0,0,0,0],l={bar_x:[0,1048544,1016800,1048544,0],cross:[0,15728622,15728622,15728622,0],hexa:[473536,15728622,15728622,15728622,473536],penta:[473536,15728622,15728622,15728622,0],t:[0,15728608,15728608,15728608,0],tetra:[473536,15694798,15694798,15694798,0]},c={l_chamfer:[0,36078,36078,36078,0],l_sharp:[0,507374,507374,507374,0],corner_chamfer:[469440,15694720,15692544,15622656,0],corner_sharp:[473536,15694784,15694784,15694784,0],bar_x:[0,1048544,1048544,1048544,0],bar_y:[0,15153614,15153614,15153614,0],bar_z:[473536,473536,473536,473536,473536],terminal_chamfer:[0,15142912,15153280,15142912,0],terminal_sharp:[0,15153600,15153600,15153600,0],thin_joint:[0,14798,4340174,14798,0]},d={thin_bar_y:[0,0,4329604,0,0],thin_corner:[4096,4096,7300,0,0],thin_hexa:[4096,4096,4357252,4096,4096],thin_l:[0,0,7300,0,0],thin_t:[0,0,4357120,0,0],thin_terminal:[0,0,4329472,0,0]},g={X4f:5,data:[{X20:A},{X20:c.corner_sharp},{X20:c.l_sharp},{X20:c.terminal_sharp},...Object.entries(l).map((t=>({X20:t[1]}))),...Object.entries(d).map((t=>({X20:t[1]})))]},f={X4f:5,data:[{X20:A},{X20:c.corner_sharp},{X20:c.l_sharp},{X20:c.terminal_sharp},{X20:c.bar_y,X18:5,X51:!0},...Object.entries(l).map((t=>({X20:t[1]}))),...Object.entries(d).map((t=>({X20:t[1]})))]},u={X4f:5,data:[{X20:A,X18:5},{X20:c.corner_chamfer},{X20:c.l_chamfer},{X20:c.terminal_chamfer},...Object.entries(l).map((t=>({X20:t[1]})))]},p={X4f:5,data:[{X20:A,X18:5},{X20:c.corner_chamfer,X18:10},{X20:c.l_chamfer},{X20:c.terminal_chamfer},...Object.entries(l).map((t=>({X20:t[1]})))]},w={X4f:5,data:[{X20:A,X18:5},{X20:c.bar_y,X18:10,X51:!0},{X20:c.corner_chamfer,X18:10},{X20:c.l_chamfer},{X20:c.terminal_chamfer},...Object.entries(l).map((t=>({X20:t[1]})))]},m={X4f:5,data:[{X20:A,X18:5},...Object.entries({bar_x:[405504,4096,397312,262144,405504],j1:[0,540672,684032,131072,405504],j2:[6336,64,276544,262144,405504],j3:[0,1056,271840,262144,405504],j4:[0,310272,295936,262144,405504],j5:[0,234636,164876,131072,405504],terminal:[405504,0,0,0,0]}).map((t=>({X20:t[1]})))]},x={X4f:3,data:[{X20:a,X18:30},...Object.entries(o).map((t=>({X20:t[1]})))]},M=[[8,{name:"T5AS",data:g}],[2,{name:"T5ASY",data:f}],[2,{name:"T5AC",data:u}],[2,{name:"T5ACC",data:p}],[1,{name:"T5ACY",data:w}],[.5,{name:"T5B",data:m}],[1,{name:"T3Y",data:{X4f:3,data:[{X20:a,X18:30},{X20:[0,146,0],X18:10,X51:!0},...Object.entries(o).map((t=>({X20:t[1]})))]}}],[1,{name:"T3",data:x}]];class y{constructor(t,e,i=Array){this.type=i,this.resize(t,e)}resize(t,e,i=0){this.width=Math.max(0,t)||0,this.height=Math.max(0,e)||0,this.data=new this.type(t*e),"function"==typeof i?this.fill(i):this.data.fill(i)}X1(t,e,i,s,r){for(let n=0;n<s;n++)for(let s=0;s<i;s++)this.set(t+s,e+n,r);return this}fill(t){let e=0;for(let i=0;i<this.height;i++)for(let s=0;s<this.width;s++)this.set(s,i,t(s,i,e++,this.width,this.height));return this}loop(t){let e=0;for(let i=0;i<this.height;i++)for(let s=0;s<this.width;s++)t(this.data[e],s,i,e++,this.width,this.height);return this}getMaxValue(){let t=0;return this.data.forEach((e=>t=Math.max(e,t))),t}X5b(t){if(t.width!=this.width||t.height!=this.height)return!1;for(let e=0;e<this.data.length;e++)if(this.data[e]!==t.data[e])return!1;return!0}X2(t,e){return t=(t+this.width)%this.width,e=(e+this.height)%this.height,this.data[t+e*this.width]}get(t,e){return t<0||e<0||t>=this.width||e>=this.height?null:this.data[t+e*this.width]}X3(t,e){const i=1-Math.abs(Math.abs(t)%2-1),s=1-Math.abs(Math.abs(e)%2-1),r=Math.round(i*(this.width-1)),n=Math.round(s*(this.height-1));return this.get(r,n)}sample(t,e){const i=t*this.width-.5,s=e*this.height-.5;let r=Math.floor(i),n=Math.floor(s),h=r+1,o=n+1;const a=i-r,A=s-n,l=E(this.get(r,n),this.get(h,n),a),c=E(this.get(r,o),this.get(h,o),a);return E(l,c,A)}X16(t=0,e=0,i=0){let s,r;1==i||2==i?(s=this.height,r=this.width):(s=this.width,r=this.height);const n=new y(s,r,this.type);for(let s=0;s<n.height;s++)for(let r=0;r<n.width;r++){let h,o;0==i?(h=r,o=s):1==i?(h=n.height-s-1,o=r):2==i?(h=n.width-r-1,o=n.height-s-1):3==i&&(h=s,o=n.width-r-1),h=t?n.width-1-h:h,o=e?n.height-1-o:o,n.set(h,o,this.get(r,s))}return n}getRect(t,e,i,s){const r=new Grid(i,s,this.type);for(let i=0;i<r.height;i++)for(let s=0;s<r.width;s++)r.set(s,i,this.get(s+t,i+e));return r}set(t,e,i){t<0||e<0||t>=this.width||e>=this.height||(this.data[t+e*this.width]=i)}X6(t){t.length==this.data.length&&t.forEach(((t,e)=>this.data[e]=t))}X5(t,e,i,s,r){for(let n=0;n<s;n++)for(let s=0;s<i;s++)this.set(t+s,e+n,r[s+i*n])}X4(t,e,i){this.X5(t,e,i.width,i.height,i.data)}toString(){let t="";for(let e=0;e<this.height;e++){for(let i=0;i<this.width;i++)t+=this.get(i,e);t+="\n"}return t}print(){console.log("%c"+this.toString(),"font-family: monospace;")}}function E(t,e,i){return t*(1-i)+e*i}const D=["◆☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼"," !\"#$%&'()*+,-./0123456789:;<=>?","@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_","`abcdefghijklmnopqrstuvwxyz{|}~╳","↖↗↘↙ñѪº¿╱╲½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐","└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀","αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■□"].join("").split(""),_={};D.forEach(((t,e)=>_[t]=e));const b=(t,e)=>(t>>e)%2;class T{INV_MAX=1/2**32;int(){}float(t=1){return this.int()*this.INV_MAX*t}probability(t){return this.float()<t}norm(t=1){return 2*(this.int()*this.$INV_MAX-.5)*t}X54(t,e){const i=this.X57(t,e);return this.float()<.5?i:-i}X57(t,e){return this.float()*(e-t)+t}X55(t,e){const i=(0|e)-(t|=0);return i?t+this.int()%i:t}X57Uint(t,e){const i=(e>>>0)-(t>>>=0);return i?t+this.int()%i:t}X58(){let t;return t=1==arguments.length&&Array.isArray(arguments[0])?arguments[0]:[...arguments],t[this.X55(0,t.length)]}X6a(t){for(let e=t.length-1;e>0;e--){const i=Math.floor(this.float()*(e+1));[t[e],t[i]]=[t[i],t[e]]}return t}X3eObj(t){const e=Object.keys(t).map((e=>[t[e].X18,e]));return this.X3e(e)}X3e(t){const e=t.map((t=>t[0])),i=t.map((t=>t[1])),s=[];for(let t=0;t<e.length;t++)s[t]=e[t]+(s[t-1]||0);const r=s[s.length-1]*this.float();for(let t=0;t<i.length;t++)if(s[t]>=r)return i[t]}}class z extends T{constructor(t){super(),this.buffer=new Uint32Array(4),this.seed(t)}copy(){return new z(this.buffer)}bytes(){return new Uint8Array(this.buffer.buffer)}int(){const t=this.buffer,e=(t[0]+t[1]>>>0)+t[3]>>>0;return t[3]=t[3]+1>>>0,t[0]=t[1]^t[1]>>>9,t[1]=t[2]+(t[2]<<3)>>>0,t[2]=(t[2]<<21|t[2]>>>11)+e>>>0,e}seed(t){return this.buffer.set(t),this}}function N(t){let e=2166136261;for(let i=0;i<t.length;i++)e=Math.imul(e^t.charCodeAt(i),16777619);return function(){return e+=e<<13,e^=e>>>7,e+=e<<3,e^=e>>>17,(e+=e<<5)>>>0}}class S{constructor(){this.x=0,this.y=0,this.z=0,this.index=0,this.accent=0,this.fg=[0,0,0]}}function v(t){return t-Math.floor(t)}function B(t,e,i){return(1-i)*t+i*e}class C{constructor(t,e,i,s=Array){this.type=s,this.resize(t,e,i)}resize(t,e,i,s=0){this.width=Math.max(0,t)||0,this.height=Math.max(0,e)||0,this.depth=Math.max(0,i)||0,this.data=new this.type(t*e*i),"function"==typeof s?this.fill(s):this.data.fill(s)}fillBox(t,e,i,s,r,n,h){for(let o=0;o<n;o++)for(let n=0;n<r;n++)for(let r=0;r<s;r++)this.set(t+r,e+n,i+o,h);return this}fill(t){let e=0;for(let i=0;i<this.depth;i++)for(let s=0;s<this.height;s++)for(let r=0;r<this.width;r++)this.set(r,s,i,t(r,s,i,e++,this.width,this.height,this.depth));return this}loop(t){let e=0;for(let i=0;i<this.depth;i++)for(let s=0;s<this.height;s++)for(let r=0;r<this.width;r++)t(this.data[e],r,s,i,e++,this.width,this.height,this.depth);return this}getMaxValue(){let t=0;return this.data.forEach((e=>t=Math.max(e,t))),t}X5b(t){if(t.width!=this.width||t.height!=this.height||t.depth!=this.depth)return!1;for(let e=0;e<this.data.length;e++)if(this.data[e]!==t.data[e])return!1;return!0}X2(t,e,i){return t=(t+this.width)%this.width,e=(e+this.height)%this.height,i=(i+this.depth)%this.depth,this.data[t+e*this.width+i*this.width*this.height]}get(t,e,i){return t<0||t>=this.width||e<0||e>=this.height||i<0||i>=this.depth?null:this.data[t+e*this.width+i*this.width*this.height]}X3f(t,e,i,s){const r=new C(this.width,this.height,this.depth);for(let n=0;n<r.depth;n++)for(let h=0;h<r.height;h++)for(let o=0;o<r.width;o++){let a=this.get(o-t,h-e,n-i);null===a&&(a="function"==typeof s?s(o,h,n):s),r.set(o,h,n,a)}return r}X17(t=0,e=0,i=0){const s=new C(this.width,this.height,this.depth,this.type);for(let r=0;r<this.depth;r++)for(let n=0;n<this.height;n++)for(let h=0;h<this.width;h++){const o=t?s.width-1-h:h,a=e?s.height-1-n:n,A=i?s.depth-1-r:r;s.set(o,a,A,this.get(h,n,r))}return s}X46(){const t=new C(this.width,this.depth,this.height,this.type);for(let e=0;e<this.depth;e++)for(let i=0;i<this.height;i++)for(let s=0;s<this.width;s++){const r=s,n=this.depth-e-1,h=i;t.set(r,n,h,this.get(s,i,e))}return t}X47(){const t=new C(this.depth,this.height,this.width,this.type);for(let e=0;e<this.depth;e++)for(let i=0;i<this.height;i++)for(let s=0;s<this.width;s++){const r=e,n=i,h=this.width-s-1;t.set(r,n,h,this.get(s,i,e))}return t}X48(){const t=new C(this.height,this.width,this.depth,this.type);for(let e=0;e<this.depth;e++)for(let i=0;i<this.height;i++)for(let s=0;s<this.width;s++){const r=this.height-i-1,n=s,h=e;t.set(r,n,h,this.get(s,i,e))}return t}set(t,e,i,s){return t<0||t>=this.width||e<0||e>=this.height||i<0||i>=this.depth?null:void(this.data[t+e*this.width+i*this.width*this.height]=s)}X6(t){t.length==this.data.length&&t.forEach(((t,e)=>this.data[e]=t))}X4(t,e,i,s){for(let r=0;r<s.depth;r++)for(let n=0;n<s.height;n++)for(let h=0;h<s.width;h++)this.set(t+h,e+n,i+r,s.get(h,n,r))}toString(){let t="";for(let e=0;e<this.depth;e++){for(let i=0;i<this.height;i++){for(let s=0;s<this.width;s++)t+=this.get(s,i,e);t+="\n"}t+="\n"}return t}print(){console.log("%c"+this.toString(),"font-family: monospace;")}}function Y(t,e,i,s,r,n,h,o,a,A){for(let l=0;l<r;l++)for(let r=0;r<s;r++){const c=n[r+s*l];if(0!=c){const s=t.get(e+r,i+l);null!=s&&(s.index=_[c],s.x=h,s.y=o,s.z=a,s.accent=A)}}}class R{constructor(t){this.X14=t,this.X67=new C(0,0,0)}resize(t=this.X67.width,e=this.X67.height,i=this.X67.depth){this.X67.resize(t,e,i),this.X67.fill(((t,e,i,s)=>new j(t,e,i)))}init(){this.X67.data.forEach((t=>{t.X4cd=!1,t.X42=Array(this.X14.length).fill().map(((t,e)=>e))}))}X4b(t=[0,0,0,0,0,0],e=0){let i=!1;return this.X67.data.filter((t=>{if(t.X45())return!1;const e=t.X19(this.X67);for(const t of e)if(t&&t.X45())return!0;return!1})).forEach((s=>{s.X19(this.X67).forEach(((i,r)=>{i?s.X42=s.X42.filter((t=>{const e=this.X14[t];return i.X42.some((t=>e.fit[r].indexOf(t)>=0))})):t[r]&&(s.X42=s.X42.filter((t=>this.X14[t].fit[r].indexOf(e)>=0)))})),0==s.X42.length&&(i=!0)})),i}X4c(t,e=0){let i=1/0;const s=[];if(this.X67.data.forEach((t=>{if(!t.X45()){const e=t.getEntropy();e==i?s.push(t):e<i&&(s.length=0,s.push(t),i=e)}})),s.length>0){const i=t.X58(s),r=[];for(const t of i.X42)r.push([this.X14[t].X18,t]);const n=t.X3e(r);if(i.X4c(n),t.probability(e)){const t=this.X67.get(this.X67.width-i.x-1,i.y,i.z);if(t!=i){const e=this.X14[n].X1a.fx;-1!=t.X42.indexOf(e)&&t.X4c(e)}}return!1}return!0}X4cSlot(t,e,i,s){this.X67.get(t,e,i).X4c(s)}}class j{constructor(t,e,i){this.x=t,this.y=e,this.z=i,this.X4cd=!1,this.X42=[]}X19(t){return[t.get(this.x+1,this.y,this.z),t.get(this.x-1,this.y,this.z),t.get(this.x,this.y+1,this.z),t.get(this.x,this.y-1,this.z),t.get(this.x,this.y,this.z+1),t.get(this.x,this.y,this.z-1)]}X4c(t){this.X4cd=!0,this.X42.length=0,this.X42.push(t)}X45(){return this.X4cd}getValue(){return this.X4cd?this.X42[0]:null}getEntropy(){return this.X42.length}}class G{constructor(t,e,i,s){this.X3b=new C(e,i,s,Array),this.X3b.X6(t.X20),this.X18=void 0!==t.X18?t.X18:1,this.fit=[[],[],[],[],[],[]],this.X1a={fx:null}}print(){this.X3b.forEach((t=>t.print()))}}function P(t,e){for(let i=0;i<t.length;i++)if(t[i].X3b.X5b(e.X3b))return i;return-1}function O(t,e,i,s,r,n){if(0===e.X18)return;(!0!==e.X51?n:["i"]).forEach((n=>{const h=new G(e,i,s,r);n.split("").forEach((t=>{"x"==t?h.X3b=h.X3b.X46():"y"==t?h.X3b=h.X3b.X47():"z"==t&&(h.X3b=h.X3b.X48())}));const o=-1!==n.indexOf("m");if(h.X3b=h.X3b.X17(o,!1,!1),-1==P(t,h)){t.push(h);const r=t.length-1,n=new G(e,i,s);n.X3b=h.X3b.X16(1,0,0);let o=P(t,n);-1==o&&(t.push(n),o=t.length-1),n.X1a.fx=r,h.X1a.fx=o}}))}const I=function(){class t{constructor(t,e,i,s){this.min_x=t,this.min_y=e,this.X1d=i,this.X1c=s,this.shuffle()}shuffle(){this.X1b=o.X55(2,16),this.w=o.X55(2,7),this.h=o.X55(2,7),this.x=o.X55(this.min_x,this.X1c),this.y=o.X55(this.min_y,this.X1c),this.x=Math.max(this.min_x,Math.min(this.X1d-this.w+1,this.x)),this.y=Math.max(this.min_x,Math.min(this.X1c-this.h+1,this.y))}move(t){t%this.X1b==0&&this.shuffle()}}const e=new C(0,0,0,Uint8Array),i=new y(0,0,Uint8Array),s=new y(0,0,Uint8Array);let r,n,h,o,a,A;const l=[];let c;this.onmessage=function(y){if("init"==y.data.op){const t=N(y.data.hash);o=new z([t(),t(),t(),t()]),n=y.data.X14;const e=function(t){const e=[];return t.data.forEach((i=>{const s=i.X20.map((e=>BigInt(e).toString(2).padStart(t.X4f*t.X4f,"0"))).join(""),r={X20:s.split("").map((t=>"0"==t?0:1)),X18:void 0===i.X18?1:i.X18,X51:i.X51};!function(t,e,i,s,r,n){if(0===e.X18)return;const h=!0!==e.X51?n:["i"];h.forEach((n=>{const h=new G(e,i,s,r);if(n.split("").forEach((t=>{"x"==t?h.X3b=h.X3b.X46():"y"==t?h.X3b=h.X3b.X47():"z"==t&&(h.X3b=h.X3b.X48())})),-1==D(t,h)){t.push(h);const n=t.length-1,o=new G(e,i,s,r);o.X3b=h.X3b.X17(!0,!1,!1);let a=D(t,o);-1==a&&(t.push(o),a=t.length-1),o.X1a.fx=n,h.X1a.fx=a}}))}(e,r,t.X4f,t.X4f,t.X4f,d)})),function(t){for(let e=0;e<t.length;e++)for(let i=0;i<t.length;i++){const s=t[i],r=t[e];x(s,r)&&(s.fit[g].push(e),r.fit[f].push(i)),M(s,r)&&(s.fit[u].push(e),r.fit[p].push(i)),E(s,r)&&(s.fit[w].push(e),r.fit[m].push(i))}}(e),e}(n);h=new R(e),c=o.X55(2,7),r=y.data.X1f.Simmetry}else if("resize"==y.data.op){const{w:r,h:o,d}=y.data.size;h.resize(r,o,d),h.X67.data.forEach((t=>t.X4c(0))),e.resize(r*n.X4f,o*n.X4f,d*n.X4f),i.resize(r,d,0),s.resize(r,d,0);const g=r/2,f=d/2;l.length=0;for(let e=0;e<c;e++)l.push(new t(-g,-f,r+g-1,d+f-1));A=!0,a=0}else if("shiftY"==y.data.op){const t=y.data.dir*y.data.X56,c=[];h.X67=h.X67.X3f(0,t,0,((t,e,i)=>{const s=new j(t,e,i);return c.push(s),s})),h.X67.loop(((t,e,i,s)=>{t.x=e,t.y=i,t.z=s})),i.X6(s.data),s.data.fill(0);for(const t of l)t.move(a),s.X1(t.x,t.y,t.w,t.h,1);A&&(A=!1,i.X6(s.data)),a++;let d=!0,g=!1,f=0;const u=t>0?t-1:h.X67.height+t;for(;d;){for(c.forEach((t=>{const e=1==i.get(t.x,t.z),r=1==s.get(t.x,t.z);t.y==u&&e||t.y!=u&&r?t.X4c(0):(t.X42=Array(h.X14.length).fill().map(((t,e)=>e)),t.X4cd=!1)}));!g&&(d=h.X4b([1,1,0,0,1,1],0),!d);)g=h.X4c(o,r);if(f++>100){console.warn("Max tries reached!"),c.forEach((t=>{t.X45()||t.X4c(0)}));break}}h.X67.loop(((t,i)=>{const s=t.getValue()||0,r=h.X14[s];e.X4(t.x*n.X4f,t.y*n.X4f,t.z*n.X4f,r.X3b)})),postMessage({op:"X1e",data:e.data})}};const d=["i","x","y","xx","xy","yx","yy","xxx","xxy","xyx","xyy","yxx","yyx","yyy","xxxy","xxyx","xxyy","xyxx","xyyy","yxxx","yyyx","xxxyx","xyxxx","xyyyx"];const g=0,f=1,u=2,p=3,w=4,m=5;function x(t,e){for(let i=0;i<t.X3b.depth;i++)for(let s=0;s<t.X3b.height;s++)if(t.X3b.get(t.X3b.width-1,s,i)!==e.X3b.get(0,s,i))return!1;return!0}function M(t,e){for(let i=0;i<t.X3b.depth;i++)for(let s=0;s<t.X3b.width;s++)if(t.X3b.get(s,t.X3b.height-1,i)!==e.X3b.get(s,0,i))return!1;return!0}function E(t,e){for(let i=0;i<t.X3b.height;i++)for(let s=0;s<t.X3b.width;s++)if(t.X3b.get(s,i,t.X3b.depth-1)!==e.X3b.get(s,i,0))return!1;return!0}function D(t,e){for(let i=0;i<t.length;i++)if(t[i].X3b.X5b(e.X3b))return i;return-1}};const H={X28:"Sat8",X21:8,X22:8,X24:["CDw8NggcCAD/AP/wHgj8CBRCfn8cHBwA/zzDwDMYhGsipdt/Pms+GOdmmaAzOPwcQYH/f39/f","zzDQr2eHiiEdyKl2z4+az48w0K9GwwIxBwUmeccHAgIGOdmmRs/DOZrCEJ+CAgcHAD/PMMODA","5nCAA8PAAAAAAA/wD/AAAGAwABQAgz/j4ADAwMAAAAAAAAB3AcM9tjAB4eDBAEACQAAB98PjP","bDgA/PwwwBgNmCH9/fwgz3jIADAwMf38D/xw+H3w+M9gmPz8MPzAGA2Y+HAdwHADYOD8eDB4Q","BH8kfwgBQAgz2GM/DAwMAAAAAAAAAAAAAAA+AD8AAAAAA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t,i)=>Math.floor(t.x/e)%i},XYZ:t=>{const e=t.X55(1,5);return(t,i)=>Math.floor((t.x+t.y+t.z)/e)%i},Y:t=>{const e=t.X55(1,5);return(t,i)=>Math.floor(t.y/e)%i},Z:t=>{const e=t.X55(1,5);return(t,i)=>Math.floor(t.z/e)%i},Glitch:t=>(e,i)=>t.X55(0,i)};