function t(){try{const t=new XMLHttpRequest;if(t.open("GET","./CONTRABAND-punk.svg",0),t.send(),t.status>=200&&t.status<300)return t.responseText}catch(t){}return""}const e="undefined"!=typeof SVG?SVG:t(),n="undefined"!=typeof LIMG?LIMG:"./IMAGES/Canvas-LeftSide-March.2026.jpg",a="undefined"!=typeof TIMG?TIMG:"./IMAGES/Canvas-TopSide-Portrait-March.17.2026.jpg",o="undefined"!=typeof MYMSG&&""!==MYMSG?MYMSG:null;function r(){if(window.__galleryModeOverride)return window.__galleryModeOverride;const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<768,n=window.innerHeight>window.innerWidth,a="ontouchstart"in window;return t||e||a&&n?"portrait":"landscape"}const i=r(),s="portrait"===i,l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=s&&l?.3:1,c=2.25;let h=performance.now(),d=c;function u(){const t=performance.now(),e=t-h;h=t;const n=Math.min(e/16.67,6);d=c*n}let p=performance.now(),g=0,b=0;function m(){g++;const t=performance.now(),e=t-p;e>=1e3&&(b=Math.round(1e3*g/e),g=0,p=t)}function w(t,e,n){t.save(),t.font="bold 14px monospace",t[k]="#00ff00",t.textAlign="left",t.textBaseline="top",t.fillText("FPS: "+b+" | Mode: "+i+" | _pAS: "+c+" | Mult: "+f,e,n),t.restore()}var x="shadowBlur",T="shadowColor",k="fillStyle",_="fillRect",v="globalAlpha",y="beginPath",S=Math.random,C=Math.floor;const M={sky:{name:"Sky",colors:["#87CEEB","#E8F4F8"],accent:["#B0E0E6"]},lime:{name:"Phosphor",colors:["#C8E6C9","#E0E0E0"],accent:["#AED581"]},rose:{name:"Plasma",colors:["#FFCDD2","#FFF0F0"],accent:["#F48FB1"]},mint:{name:"Cryo",colors:["#B2DFDB","#E0F2F1"],accent:["#80CBC4"]},lavender:{name:"Nebula",colors:["#D1C4E9","#EDE7F6"],accent:["#B39DDB"]},peach:{name:"Copper",colors:["#FFCCBC","#FFF3E0"],accent:["#FFAB91"]},cloud:{name:"Cloud",colors:["#ECEFF1","#FAFAFA"],accent:["#CFD8DC"]},lemon:{name:"Sulfur",colors:["#FFF9C4","#FFFDE7"],accent:["#FFF176"]},pastel:{name:"Vaporwave",colors:["#ff71ce","#01cdfe","#05ffa1","#b967ff","#fffb96","#ff9f43"],accent:["#ffffff"]},vaporwave:{name:"Molten",colors:["#3a0000","#5c0000","#7a0000","#8b0000","#6e0000","#4d0000"],accent:["#ff0000","#cc0000","#ff3300"],dark:1},neon:{name:"Neon",colors:["#0a0a0a","#1a0a2e","#0a1a2e","#2e0a1a","#0a2e1a"],accent:["#00ff00","#ff0080","#00ffff","#ffff00"],dark:1},sunset:{name:"Sunset",colors:["#1a0a0f","#2d1b1b","#4a2c2a","#6b3d35","#8b4d3d","#a85d45"],accent:["#ff6b35","#ff8c42","#ffd93d"],dark:1},ocean:{name:"Ocean",colors:["#0a1628","#0d2137","#0f2d4a","#123a5c","#15476e","#185480"],accent:["#00d4ff","#00ffcc","#40e0d0"],dark:1},forest:{name:"Jungle",colors:["#0a1a0a","#0d2810","#103318","#154020","#1a4d28","#1f5a30"],accent:["#90ee90","#98fb98","#7cfc00"],dark:1},monochrome:{name:"Monochrome",colors:["#0a0a0a","#1a1a1a","#2a2a2a","#3a3a3a","#4a4a4a","#5a5a5a"],accent:["#ffffff","#cccccc"],dark:1},cyberpunk:{name:"Cyberpunk",colors:["#0d0221","#0f0a3c","#1a1a4e","#2d1b69","#3d2980","#241734","#1c1135"],accent:["#ff00ff","#00ffff","#fcdb3b"],dark:1},dusk:{name:"Dusk",colors:["#2b1a3d","#3c2a4e","#4a3560","#3d2947","#4e3a5c","#352545"],accent:["#f0a050","#e87890","#c8a0e0"],dark:1}};if("undefined"!=typeof PALETTE_OVERRIDES)for(const t in PALETTE_OVERRIDES)M[t]&&Object.assign(M[t],PALETTE_OVERRIDES[t]);function E(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const O="undefined"!=typeof SEED&&"0"!==SEED?SEED:String(C(4294967296*S())),I=0|parseInt(O.slice(-10)),A=E(I),R=Object.keys(M);let D,F;if("undefined"!=typeof SOLID&&""!==SOLID){const t="#"+SOLID;M._solid={name:"Solid",colors:[t,t,t],accent:[t],dark:t,mid:t,light:t},R.push("_solid"),D=R.length-1,F="_solid"}else D="undefined"!=typeof PIDX?PIDX:Math.abs(I)%R.length,F=R[D];let W=F;const B=[8,16,32,64];let H="undefined"!=typeof PXSZ?PXSZ:B[Math.abs(I)%B.length],Y=1,L=null,P=null,N=0,$=0,X=0;const G=[0,120,60,30,12,4];let z=null,V=0,U=0;const j=15,K="undefined"!=typeof MSGS?MSGS:["~>I'M THE 10,001th PUNK!","~*>I WAS BORN WHEN LIGHTNING WAS CAPTURED IN_A BOTTLE!","~I'M NOT_LEGIT! :-)","~*>I REPRESENT THE REWARDS ONE CAN HAVE FOR BELIEVING IN THEMSELVES AND TAKING A LEAP OF FAITH!","~*ERROR!!!","~*>JUST KIDDING, THERE'S NO 'ERROR' ;-)","~*>REMEMBER: NOTHING IS MORE PUNK THAN THE CONTRABAND PUNK!"];var q=K.filter(function(t){return"~"===t.charAt(0)}).map(function(t){return t.substring(1)}),J=K.map(function(t){return"~"===t.charAt(0)?t.substring(1):t});o&&q.push(o),0===q.length&&(q=J);const Z={messagesArray:q,neonColors:[{color:"#39ff14",glow:"#39ff14"},{color:"#00ffff",glow:"#00ffff"},{color:"#ff00ff",glow:"#ff00ff"},{color:"#ff6600",glow:"#ff6600"},{color:"#ffff00",glow:"#ffff00"},{color:"#ff1493",glow:"#ff1493"},{color:"#00ff88",glow:"#00ff88"}],glassesX:9,glassesY:11,glassesWidth:7,glassesHeight:2,scrollText:"",fontFamily:"monospace",fontBold:0,blankDuration:Math.round(90*f),glowBlur1:8,glowBlur2:15,glowIntensity:.5,scanLinesEnabled:1,scanLineSpacing:2,scanLineOpacity:.55,maxTypewriterLength:11,typewriterSpeed:Math.max(1,Math.round(4*f)),typewriterPauseDuration:Math.round(240*f),introTypewriterPauseDuration:s&&l?22:65,typewriterBlinkCount:3,typewriterBlinkOnDuration:Math.round(30*f),typewriterBlinkOffDuration:Math.round(30*f),wordTypeSpeed:Math.max(1,Math.round(3*f)),wordPauseDuration:Math.round(49*f),lastWordPauseDuration:Math.round(135*f),manicGlitchChance:.08,manicDuration:Math.round(180*f),manicSpeed:2,manicChars:"!@#$¿%()_+-=[¿¿]5{;¿:,.<¿>?/~`░▒}|▓¬¦█8▀▄▌^&*▐■□Σ▪▫●7○◘4◙◄►▲▼",manicCharCount:13,scrollSpeed:s?9.05:1.5},Q={...Z,mode:"landscape",canvasWidth:1296,canvasHeight:542,leftWidth:784,leftHeight:542,rightWidth:512,punkScale:18,punkOffsetX:828,punkOffsetY:22,fontSize:1.1,headerFontSize:27,headerY:25,attributesTitleFontSize:25,attributesTitleOffsetY:23,attributesTextFontSize:20,attributesTextOffsetY:53,imageURL:n},tt={...Z,mode:"portrait",canvasWidth:1080,canvasHeight:1920,topImageHeight:860,bottomSectionY:860,bottomSectionHeight:1060,punkScale:36,punkOffsetX:0,punkOffsetY:921,fontSize:1.075,headerFontSize:54,headerY:55,attributesTitleFontSize:56,attributesTitleOffsetY:57,attributesTextFontSize:48,attributesTextOffsetY:121,imageURL:a};tt.punkOffsetX=(tt.canvasWidth-24*tt.punkScale)/2;const et="portrait"===i?tt:Q;let nt=null,at=null,ot=null,rt=null,it=1,st=null,lt="undefined"!=typeof TID?TID:"#0",ft="blank",ct=0,ht=0,dt=1,ut=0,pt=0,gt=[],bt=0,mt=0,wt=0,xt=[],Tt=0,kt=0,_t=0,vt=0,yt=0;const St=["up","down","split_v","split_h","explode"];let Ct=.3,Mt=0;const Et=s?{up:1.7,down:1.7,split_v:1.7,split_h:2.8,explode:3.5}:{up:.3,down:.3,split_v:.3,split_h:.5,explode:.63},Ot={U:"up",D:"down",V:"split_v",H:"split_h",X:"explode"};let It=[],At=0,Rt="",Dt="";function Ft(t,e,n,a,o,r,i,s){const l=et.punkScale*et.fontSize,f=vt?"italic":"normal",c=et.fontBold?"bold":"normal";e.font=`${f} ${c} ${l}px ${et.fontFamily}`,Rt=t.replace(/_/g," "),Dt||(Dt=St[C(S()*St.length)]),Ct=Et[Dt]||.3,At=0,It=[];let h=n-e.measureText(Rt).width/2;const d=s,u=s+r,p=i,g=i+o;for(let t=0;t<Rt.length;t++){const n=Rt[t],o=e.measureText(n).width;let r=0,i=0;switch(Dt){case"up":i=-Ct;break;case"down":i=Ct;break;case"split_v":i=t%2==0?-Ct:Ct;break;case"split_h":r=t<Rt.length/2?-Ct:Ct;break;case"explode":const e=S()*Math.PI*2;r=Math.cos(e)*Ct,i=Math.sin(e)*Ct}It.push({char:n,x:h,y:a,dx:r,dy:i,topEdge:d,bottomEdge:u,leftEdge:p,rightEdge:g}),h+=o}}let Wt=0,Bt=0;const Ht=6,Yt=["#ff0000","#ff8800","#ffff00","#00ff00","#00aaff","#cc00ff"];let Lt=[.1,.1,.1,.1,.1,.1],Pt=[],Nt=[];for(let t=0;t<6;t++)Pt.push(S()),Nt.push(.02+.04*S());const $t=Math.round(60/1.7);let Xt=0;const Gt=16*$t,zt=function(){for(var t=[],e=[],n=[],a=[],o=0;o<16;o++)o%2==0&&t.push(o),o%2==1&&e.push(o),n.push(o),n.push(o+.5),a.push(o+.25),a.push(o+.75);return[t,[1,3.5,5,7.5,9,11.5,13,15.5],e,n,a,[0,3,4,7,8,11,12,14,15]]}(),Vt=[1,.75,.9,.5,.35,.8],Ut=[.06,.05,.055,.07,.08,.045];let jt=0;const Kt=.06,qt=.8;let Jt=0,Zt=[],Qt=0;const te="#ff2222",ee="#ff0000",ne=.00765;let ae=1,oe=.7,re=0,ie=.05,se=.5;function le(){ie=.03+.06*S(),se=.48+.08*S()}function fe(){for(var t=[],e=[{s:ie,b:.7+.3*S()},{s:se,b:.45+.35*S()}],n=0,a=0;a<2;a++){var o=e[a].s,r=e[a].b,i=-(.2+.2*S())*r,s=-(.25+.25*S())*r;n<o&&t.push({start:n,end:o,a:0});for(var l=[[.04,.15*r],[.04,0],[.03,i],[.06,.85*r],[.05,s],[.06,0],[.07,.2*r]],f=o,c=0;c<l.length;c++)t.push({start:f,end:f+l[c][0],a:l[c][1]}),f+=l[c][0];n=f}return n<1&&t.push({start:n,end:1,a:0}),t.map(function(t){return{start:t.start,end:t.end,fn:0===t.a?function(){return 0}:(e=t.a,function(t){return Math.sin(t*Math.PI)*e})};var e})}let ce=fe(),he=0,de=0,ue=0,pe=0,ge=0,be=0,me=0,we="idle",xe=0,Te=0,ke=Math.round(26*f),_e=Math.round(15*f),ve=Math.round(31*f),ye=Math.round(53*f),Se=Math.round(23*f),Ce=3,Me=0,Ee=s?15:90,Oe=0,Ie=[],Ae=0;var Re=o?[o]:["GREETINGS","I AM CONTRABAND PUNK_{tokenId}"];let De="green",Fe="#33ff33";function We(t,e){const n=parseInt(e);switch(t){case"dot":ke=n;break;case"pause":_e=n;break;case"expandH":ve=n;break;case"expandV":ye=n;break;case"flash":Se=n;break;case"flashRepeat":Ce=n;break;case"postBlank":Ee=n}document.getElementById("CRTLabel_"+t).textContent="postBlank"===t?(n/60).toFixed(1)+"s":n}function Be(){const t=document.getElementById("CRTColorToggleButton");"white"===De?(De="green",Fe="#33ff33",t.textContent="Color: Green"):(De="white",Fe="#ffffff",t.textContent="Color: White")}function He(){const t=`Dot: ${ke}, Pause: ${_e}, Expand H: ${ve}, Expand V: ${ye}, Flash: ${Se}, Flash x: ${Ce}, Post Blank: ${(Ee/60).toFixed(1)}s, Color: ${De}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Ye(t,e){const n=parseFloat(e);switch(t){case"speed":Ct=n;break;case"accel":Mt=n}const a=document.getElementById("ExitLabel_"+t);a&&(a.textContent=n.toFixed(2))}function Le(t){"random"===t&&(t=St[C(S()*St.length)]);const e=Et[t]||.3;Ct=e;const n=document.getElementById("ExitSlider_speed"),a=document.getElementById("ExitLabel_speed");n&&(n.value=e),a&&(a.textContent=e.toFixed(2)),et.scrollText="TEST_EXIT",st=et.neonColors[C(S()*et.neonColors.length)],gt=[],vt=0,It=[],Dt=t,ft="exit_anim",ct=0}function Pe(){const t=`EXIT_ANIM_SPEED: ${Ct}, EXIT_ANIM_ACCEL: ${Mt}`;navigator.clipboard.writeText(t).then(function(){alert("Copied!\n\n"+t)})}function Ne(t){const e=t.match(/^P(\d+\.?\d*)$/i);if(e){const t=parseFloat(e[1]);return Math.round(60*t)}return 0}function $e(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=et.punkScale,l=et.punkOffsetX,f=et.punkOffsetY,c=l+11*s,h=f+5*s;return r>=c&&r<c+s&&i>=h&&i<h+s?(Ke(),1):Ge(r,i)?1:r>=l+19*s&&r<l+22*s&&i>=f+12*s&&i<f+14*s?(je(),1):0}const Xe=[{x:7,y:7},{x:9,y:7},{x:11,y:7},{x:13,y:7},{x:15,y:7}];function Ge(t,e){const n=et.punkScale,a=et.punkOffsetX,o=et.punkOffsetY;for(let r=0;r<Xe.length;r++){const i=Xe[r],s=a+i.x*n,l=s+n,f=o+i.y*n;if(t>=s&&t<l&&e>=f&&e<f+n)return 2===r?ze():4===r?Ue():"function"==typeof kn&&kn(r),1}return 0}function ze(){Wt++,Wt>3&&(Wt=0),Bt=Wt>0,Bt&&(Jt=0);for(let t=0;t<6;t++)Lt[t]=.05,Pt[t]=.3+.7*S(),Nt[t]=.02+.04*S();Xt=0}function Ve(){Jt=!Jt,Jt&&(Bt=0,Wt=0,Zt=[],Qt=0,re=0,le(),ce=fe())}function Ue(){(ln=!ln)&&(fn=.5,cn=.5,hn=.006,dn=.004,un=.4,pn=.4,gn=0,bn=0,xn=0,Tn=0,tn=0,on=0,Bt=0,Wt=0,Jt=0)}function je(){X++,X>5?(X=0,N=0,$=0,U=0,z=null,V=0,P&&(L=P)):(N||(P=L),N=1,$=0)}function Ke(){"CRT_power_on"!==ft&&"CRT_power_off"!==ft&&"CRT_post_flash_blank"!==ft&&"CRT_post_blank"!==ft&&(me?(we="off_flash",xe=0,Te=0,Me=0,ft="CRT_power_off",ct=0,ue&&(ue=0,st=et.neonColors[0]),tn=0,ln=0,on=0,Bt=0,Wt=0,Jt=0):(we="dot",xe=0,Te=0,Me=0,Ie=[...Re],ft="CRT_power_on",ct=0))}function qe(){we="dot",xe=0,Te=0,Me=0,Ie=[...Re],ft="CRT_power_on",ct=0}let Je=-1;const Ze=["#0040ff","#ff0022","#ffffff","#ffffff","#ffffff"];function Qe(t,e){var n,a,o;Je<0||(99===Je?(n=11,a=5,o="#ffff00"):Je<Xe.length&&(n=Xe[Je].x,a=Xe[Je].y,o=Ze[Je]),void 0!==n&&(t.save(),t[T]=o,t[x]=1.1*e,t[k]=o,t[v]=.6,t[_](et.punkOffsetX+n*e,et.punkOffsetY+a*e,e,e),t[v]=1,t.restore()))}var tn=0,en=0,nn=1,an=0,on=0,rn=0,sn=0,ln=0,fn=.5,cn=.5,hn=.006,dn=.004,un=.4,pn=.4,gn=0,bn=0,mn=.28,wn=.02,xn=0,Tn=0;function kn(t){0===t?(en=0,nn=1,(tn=!tn)&&(on=0,ln=0,Bt=0,Wt=0,Jt=0)):1===t?(tn=0,ln=0,on=0,Ve()):3===t&&(an=0,on=1,tn=0,ln=0,Bt=0,Wt=0,Jt=0)}Ze[0]="#00ff44",Ze[2]="#00aaff",Ze[3]="#ff8800",Ze[4]="#cc44ff";var _n=[0,.008,.007,.07,1,.07,.0042],vn=[0,1,.5,1,1,1,1];function yn(){if(u(),tn&&((en+=.009*nn*d)>=1||en<=0)&&(nn*=-1),on>0&&(an+=_n[on]*d)>=vn[on]&&(6===on?(on=0,me=0,qe()):(on++,an=0)),ln){if(xn>0)return void xn--;Tn>0&&Tn--,fn+=hn*d,(cn+=dn*d)<=0&&(cn=0,dn=Math.abs(dn)),cn>=1&&(cn=1,dn=-Math.abs(dn)),fn<=.06&&(fn=.06,hn=Math.abs(hn),dn+=.02*(cn-(un+mn/2)),gn++,Tn=8),fn>=.94&&(fn=.94,hn=-Math.abs(hn),dn+=.02*(cn-(pn+mn/2)),bn++,Tn=8),un+=.08*(cn-mn/2-un)*d,pn+=.07*(cn-mn/2-pn)*d,un=Math.max(0,Math.min(1-mn,un)),pn=Math.max(0,Math.min(1-mn,pn))}}function Sn(t,e,n,a,o,r){if(!me)return 0;if(6===on||4===on)return 1;if(on&&on<=5){if(rn=e+a/2,sn=n+o/2,1===on){var i=an<.5?60-120*an:0,s=35+65*an;t[k]="hsl("+i+",100%,"+s+"%)"}else t[k]="#fff";return t[_](e,n,a,o),1}if(ln){var l="#00ff44";t.save(),t[k]=l,t[T]=l,t[x]=0,t[_](e+5,n+un*o,wn*a,mn*o),t[_](e+a-wn*a-5,n+pn*o,wn*a,mn*o);var f=Math.max(.3*r,3);0===xn&&t[_](e+fn*a-f/2,n+cn*o-f/2,f,f),t[v]=.3;for(var c=o/20,h=0;h<20;h+=2)t[_](e+a/2-1,n+h*c,2,c);return t[v]=1,t.font=Math.round(.18*o)+"px monospace",t.textAlign="center",t.fillText(gn,e+.3*a,n+.22*o),t.fillText(bn,e+.7*a,n+.22*o),Tn>0&&(t[v]=Tn/30,t[k]="#fff",t[_](e,n,a,o),t[v]=1),t.restore(),1}if(!tn)return 0;t.save();var d=n+en*o,u=.45*o,p=t.createLinearGradient(0,d-u*nn,0,d);return p.addColorStop(0,"rgba(0,255,68,0)"),p.addColorStop(1,"rgba(0,255,68,0.55)"),t[k]=p,t[_](e,Math.min(d,d-u*nn),a,u),t[T]="#00ff44",t[x]=35,t.strokeStyle="#00ff44",t.lineWidth=4,t[y](),t.moveTo(e,d),t.lineTo(e+a,d),t.stroke(),t[x]=0,t.restore(),1}function Cn(t){if(!(on<2||4===on||on>5)){var e=1-an,n=t.canvas.width,a=t.canvas.height,o=an*Math.max(n,a);3!==on&&5!==on||(t[k]="rgba(255,255,255,"+e+")",t[_](0,0,n,a));var r=t.createRadialGradient(rn,sn,0,rn,sn,o);r.addColorStop(0,"rgba(255,255,0,"+e+")"),r.addColorStop(1,"rgba(200,200,0,0)"),t[k]=r,t[_](0,0,n,a)}}function Mn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=et.punkScale,f=et.punkOffsetX,c=et.punkOffsetY,h=f+11*l,d=h+l,u=c+5*l,p=u+l,g=1.725*et.punkScale;let b,m;"portrait"===i?(b=et.canvasWidth-g-50,m=et.bottomSectionY+40):(b=et.leftWidth+et.rightWidth-g-30,m=25);const w=r>=b-10&&r<=b+g+10&&s>=m-10&&s<=m+g+10;var x=r>=f+19*l&&r<f+22*l&&s>=c+12*l&&s<c+14*l;let T=0;Je=-1;for(let t=0;t<Xe.length;t++){const e=Xe[t],n=f+e.x*l,a=n+l,o=c+e.y*l;if(r>=n&&r<a&&s>=o&&s<o+l){T=1,Je=t;break}}const k=r>=h&&r<d&&s>=u&&s<p;k&&(Je=99),e.style.cursor=w||x||T||k?"pointer":"default"}const En=[{x:12,y:15},{x:13,y:15}];function On(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),i=o*(e.height/n.height),s=et.punkScale,l=et.punkOffsetX,f=et.punkOffsetY,c=En[0];c.x,c.y,En[En.length-1].x;for(const t of En){const e=l+t.x*s,n=e+s,a=f+t.y*s;if(r>=e&&r<n&&i>=a&&i<a+s)return qe(),1}return 0}function In(){if(de)de=0;else if(o){de=1;let t=o.replace("{tokenId}",lt);if(t.startsWith("*")?(vt=1,t=t.substring(1)):vt=0,Dt="",t.startsWith("^")&&t.length>=2){const e=t.charAt(1);Ot[e]&&(Dt=Ot[e],t=t.substring(2))}t.startsWith(">")?(et.scrollText=t.substring(1).trim(),st={color:"#fcdb3b",glow:"#fcdb3b"},kt=et.glassesWidth*et.punkScale,_t=0,ft="scrolling"):(et.scrollText=t,st={color:"#fcdb3b",glow:"#fcdb3b"},t.length<=et.maxTypewriterLength?(ft="typing",ut=0,pt=0):(gt=t.trim().split(/\s+/),bt=0,mt=0,wt=0,ft="word_typing"))}}function An(){ue=!ue,ue?(de=0,pe=0,ge=0,et.messagesArray=J):(st=et.neonColors[0],et.messagesArray=q)}function Rn(t,e){const n=e.getBoundingClientRect(),a=t.clientX-n.left,o=t.clientY-n.top,r=a*(e.width/n.width),s=o*(e.height/n.height),l=1.725*et.punkScale;let f,c;return"portrait"===i?(f=et.canvasWidth-l-50,c=et.bottomSectionY+40):(f=et.leftWidth+et.rightWidth-l-30,c=25),r>=f-10&&r<=f+l+10&&s>=c-10&&s<=c+l+10?(An(),1):0}function Dn(t){const e=1.725*et.punkScale;let n,a;"portrait"===i?(n=et.canvasWidth-e-50,a=et.bottomSectionY+40):(n=et.leftWidth+et.rightWidth-e-30,a=25);const o=n+e/2,r=a+e/2,s=e/2+1,l=.38*e+2;t.save(),t.filter="blur(3px)",t[y](),t.arc(o,r,s,0,2*Math.PI),t[k]=ue?"rgba(128, 128, 128, 0.9)":"rgba(128, 128, 128, 0.7)",t.fill(),t.filter="none";const f=ue?"#00ff44":"#00ccff";ue&&(t[T]="#00ff44",t[x]=10),t.strokeStyle=f,t.lineWidth="portrait"===i?2.5:1.5,t[y](),t.arc(o,r,l,0,2*Math.PI),t.stroke(),t[T]="transparent",t[x]=0,ue&&(be+=.015),t[y](),t.arc(o,r,l-1,0,2*Math.PI),t.clip();