artCodestring="var e=e=>{throw console.log(e),new Error(e)};"undefined"==typeof p5&&e("You must include p5js v1.4.0; see this contract's 'artCodeDependencies()' method.");const n="undefined"!=typeof Sunflower,a="undefined"!=typeof tokenData;var r;n?r={...Sunflower}:a&&(r={seed:tokenData.hash}),r?.seed||e("To run, call 'seedForToken(...)' on this contract to get the seed. Then prefix this js code with 'tokenData = {hash: <seed>}', where <seed> is the seed as a string starting with '0x...'.");new p5((e=>{var n=(e,...n)=>{var a=[];return n[0].forEach(((r,o)=>{var t=e(...n.map((e=>e[o])));a.push(t)})),a},a=100,o={},t={},s=n=>{e.noiseSeed(n),e.randomSeed(n),t={};var a;for(var o in t.loopLength=20,e.random()<.07&&(t.loopLength=5),t.minDistRequirement=10,t.backgroundColor=e.noise(21340)<.5?"white":"black",t.whiteOrBlackFill=e.random()<.1,t.numVanes=(a=[3,6,6,8,8,8,10])[Math.floor(e.random()*a.length)],e.random()<.07&&(t.numVanes=2),e.noise(1203918)<.05&&(t.numVanes=1),t.varyType=e.noise(1129)<.5?2:1,t.numVanes<=3?t.varyType=e.noise(1129)<.3?3:1:t.numVanes>=6&&(t.varyType=e.random()<.7?2:1),9==t.numVanes&&(t.varyType=3),e.noise(1129)<.2&&(t.varyType=t.numVanes),t.numPoints=100,t.useStroke=!1,e.random()<.07&&(t.numPoints=e.random()<.5?4:5,e.random()<.5&&(t.useStroke=!0)),e.random()<.05&&"white"==t.backgroundColor&&(t.useStroke=!0),t.circlingCamera=!1,100==t.numPoints&&(1==t.varyType||t.numVanes<=3)&&(t.circlingCamera=e.random()<.2),t)r.setMetadata?.(o,t[o])};e.setup=()=>{const n=Number(BigInt(r.seed)%BigInt("9007199254740991"));s(n),e.createCanvas(e.windowWidth,e.windowHeight,e.WEBGL),e.smooth()},e.windowResized=()=>{e.resizeCanvas(e.windowWidth,e.windowHeight)};var i=(a,r)=>{e.push(),e.beginShape();const o=120*e.noise(433111230);e.translate(o,0,0);for(var s,i=[],h=0;h<t.numPoints+1;h++){var u=.03;e.noise(123121)<.1&&(u=.1);const o=50*1.8/u;var c=(e,n,o)=>[100*a*e+n*(Math.sin(2*Math.PI*o/t.numPoints)+1),100*r*e+n*(Math.cos(2*Math.PI*o/t.numPoints)+1),100*a*e+n*(Math.sin(2*Math.PI*o/t.numPoints)+1)],d=([n,a,r])=>[e.noise(n+0,a,r)-.5,e.noise(n+100,a,r)-.5,e.noise(n+200,a,r)-.5],[m,p,l]=c(1,u,h),[v,f,M]=d([m,p,l]);if(e.noise(300)<.2){const n=10*e.noise(23231),a=.3*e.noise(56521);var[g,w,k]=d(c(n,a,h));Math.sin(2*Math.PI*h/t.numPoints);e.fill(255*(g+.5),255*(w+.5),255*(k+.5))}else{const n=20*e.noise(999821);e.fill(255*(v+.5)*n%255,255*(f+.5)*n%255,255*(M+.5)*n%255),t.whiteOrBlackFill&&e.fill("white"==t.backgroundColor?"black":"white")}var y=[o*v,o*f,o*M];0==h&&(s=y);y=n(((e,n)=>e-n),y,s);i.push(y),e.vertex(...y)}const P=Math.floor(i.length/4);var b=[i[0],i[P],i[2*P],i[3*P]];return n((e=>{e[0]+=o}),b),e.endShape(),e.pop(),b},h=(e,n)=>{for(var a=[],r=0;r<3;r++)for(var o=0;o<3;o++){const t=[e[r],e[(r+1)%3]],s=[n[o],n[(o+1)%3]],i=d(...t,...s);a.push(i)}return Math.min(...a)},u=e=>{let n=Math.cos(e),a=Math.sin(e);return[[n,0,a,0],[0,1,0,0],[-a,0,n,0],[0,0,0,1]]},c=(e,n)=>{var a=[];return n.forEach(((r,o)=>{a.push(e[o][0]*n[0]+e[o][1]*n[1]+e[o][2]*n[2]+e[o][3])})),a},d=(e,a,r,o)=>{var t=(e,a)=>n(((e,n)=>e+n),e,a),s=e=>e.map((e=>-e)),i=(e,n)=>n.map((n=>e*n)),h=(e,n)=>e[0]*n[0]+e[1]*n[1]+e[2]*n[2],u=(e,n)=>t(e,s(n));const c=u(a,e),d=u(o,r),m=u(e,r),p=h(c,c),l=h(c,d),v=h(d,d),f=h(c,m),M=h(d,m),g=p*v-l*l;var w,k,y,P=g,b=g;g<1e-8?(w=0,y=M,b=v):(y=p*M-l*f,(w=l*M-v*f)<0?(w=0,y=M,b=v):w>P&&(w=P,y=M+l,b=v)),y<0?(y=0,-f<0?w=0:-f>p?w=P:(w=-f,P=p)):y>b&&(y=b,-f+l<0?w=0:-f+l>p?w=P:(w=-f+l,P=p)),k=y/b;return(e=>Math.sqrt(e[0]**2+e[1]**2+e[2]**2))(t(m,t(i(w/P,c),s(i(k,d)))))};e.draw=()=>{t.circlingCamera?e.camera(300*Math.cos(.005*(o[0]?.counter1||0)),0,300*Math.sin(.005*(o[0]?.counter1||0)),0,0,0,0,1,0):e.camera(0,-300,0,0,0,0,0,0,1),e.background(t.backgroundColor);var r=[];e.stroke("black"==t.backgroundColor?"black":"white"),e.strokeWeight(t.useStroke?2:0),[...Array(1).keys()].map((n=>{e.push();for(var s=0;s<1;s++)for(var h=0;h<t.numVanes;h++){var d=h;o[d]||(o[d]={counter1:0,counter2:0,dir1:1,dir2:1});const n=Math.floor(3*e.noise(12312));o[d].counter1+=o[d].dir1,o[d].counter2+=o[d].dir2;const w=(e.noise(1444100)+1)**2/4*6,k=60*t.loopLength;var m=k/60*.5328*1e-4;if(a<"