1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4961],{4980:function(r,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/themes/[id]/edit",function(){return t(2715)}])},4327:function(r,e,t){"use strict";t.d(e,{T:function(){return n}});var n=(0,t(2173).n)({iterm2:{name:"iTerm2",type:"terminal",ext:"itermcolors",appUrl:"https://iterm2.com/",iconUrl:"/static/img/template-icons/iterm2.png"},terminalapp:{name:"Terminal.app",type:"terminal",ext:"terminal",iconUrl:"/static/img/template-icons/terminalapp.png"},winterm:{name:"Windows Terminal",type:"terminal",ext:"json",appUrl:"https://apps.microsoft.com/store/detail/9N0DX20HK701",iconUrl:"/static/img/template-icons/winterm.svg"},kitty:{name:"Kitty",type:"terminal",ext:"conf",appUrl:"https://sw.kovidgoyal.net/kitty/",iconUrl:"/static/img/template-icons/kitty.svg"},ghostty:{name:"Ghostty",type:"terminal",ext:"conf",iconUrl:"/static/img/template-icons/kitty.svg"},alacritty:{name:"Alacritty",type:"terminal",ext:"yml",appUrl:"https://github.com/alacritty/alacritty",iconUrl:"/static/img/template-icons/alacritty.svg"},konsole:{name:"Konsole",type:"terminal",ext:"colorscheme",appUrl:"https://konsole.kde.org/",iconUrl:"/static/img/template-icons/konsole.png"},mintty:{name:"Mintty",type:"terminal",ext:"minttyrc",appUrl:"https://mintty.github.io/",iconUrl:"/static/img/template-icons/mintty.svg"},conemu:{name:"ConEmu",type:"terminal",ext:"xml",appUrl:"https://conemu.github.io/",iconUrl:"/static/img/template-icons/conemu.png"},tilix:{name:"Tilix",type:"terminal",ext:"json",appUrl:"https://gnunn1.github.io/tilix-web/",iconUrl:"/static/img/template-icons/tilix.png"},xfce:{name:"XFCE Terminal",type:"terminal",ext:"theme",appUrl:"https://docs.xfce.org/apps/terminal/start",iconUrl:"/static/img/template-icons/xfce.svg"},warp:{name:"Warp",type:"terminal",ext:"yaml",appUrl:"https://warp.dev/",iconUrl:"/static/img/template-icons/warp.png"},termux:{name:"Termux",type:"terminal",ext:"properties",appUrl:"https://termux.dev/en/",iconUrl:"/static/img/template-icons/termux.png"}})},3006:function(r,e,t){"use strict";t.d(e,{K:function(){return l},o:function(){return o}});var n=t(1501),g=t(1079),b=t(9874),a=t(9088),s=t(8855),i=t(9841),o=s.forwardRef((function(r,e){var t,s=r.label,o=r.error,l=r.className,c=r.inputClassName,u=(0,b.Z)(r,["label","error","className","inputClassName"]);return(0,a.jsxs)("div",{className:l,children:[s&&(0,a.jsx)("label",{className:"block text-sm font-medium mb-1",children:s}),(0,a.jsx)("div",{className:"relative rounded-md shadow-sm",children:(0,a.jsx)("input",(0,g.Z)((0,n.Z)({ref:e},u),{type:null!==(t=r.type)&&void 0!==t?t:"text",className:(0,i.Z)("block w-full rounded-md bg-surface transition disabled:cursor-not-allowed disabled:opacity-70 disabled:bg-surfaceVariant/20 disabled:text-onSurfaceVariant sm:text-sm",o?"text-error placeholder-error/70 border-errorContainer focus:border-error focus:ring-error":"text-onSurface placeholder-secondary border-surfaceVariant focus:border-hf-focusBorder focus:ring-hf-focusBorder",c)}))}),o&&(0,a.jsx)("p",{className:"mt-1 text-sm text-error",children:o})]})})),l=s.forwardRef((function(r,e){var t=r.label,s=r.error,o=r.className,l=(0,b.Z)(r,["label","error","className"]);return(0,a.jsxs)("div",{className:o,children:[t&&(0,a.jsx)("label",{className:"block text-sm font-medium mb-1",children:t}),(0,a.jsx)("div",{className:"relative rounded-md shadow-sm",children:(0,a.jsx)("textarea",(0,g.Z)((0,n.Z)({ref:e},l),{className:(0,i.Z)("block resize-none w-full rounded-md bg-surface transition disabled:cursor-not-allowed disabled:opacity-70 disabled:bg-surfaceVariant/20 disabled:text-onSurfaceVariant sm:text-sm",s?"text-error placeholder-error/70 border-errorContainer focus:border-error focus:ring-error":"text-onSurface placeholder-secondary border-surfaceVariant focus:border-hf-focusBorder focus:ring-hf-focusBorder"),rows:3}))}),s&&(0,a.jsx)("p",{className:"mt-1 text-sm text-error",children:s})]})}))},4759:function(r,e,t){"use strict";t.d(e,{b:function(){return a}});var n=t(9088),g=t(9841),b=t(1734);function a(r){var e=r.children,t=r.className;return(0,n.jsx)(b.sg,{className:"px-4 items-center",children:(0,n.jsx)(b.sg,{className:(0,g.Z)("w-full pt-4 pb-8",t),children:e})})}},2715:function(r,e,t){"use strict";t.r(e),t.d(e,{default:function(){return me}});var n=t(1706),g=t(1501),b=t(1079),a=t(2928),s=t(4705),i=t(5813),o=t(9088),l=t(3861),c=t(4806),u=t(5106),d=t(6817),m=t(1820),h=t(3372),f=t(5025),p=t(3391),x=t(7497),v=function(){function r(){(0,f.Z)(this,r)}
1return r.sanitizeRadians=function(r){return(r+8*Math.PI)%(2*Math.PI)},r.trueDelinearized=function(r){var e=r/100;return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)},r.chromaticAdaptation=function(r){var e=Math.pow(Math.abs(r),.42);return 400*p.EQ(r)*e/(e+27.13)},r.hueOf=function(e){var t=p.h9(e,r.SCALED_DISCOUNT_FROM_LINRGB),n=r.chromaticAdaptation(t[0]),g=r.chromaticAdaptation(t[1]),b=r.chromaticAdaptation(t[2]),a=(11*n+-12*g+b)/11,s=(n+g-2*b)/9;return Math.atan2(s,a)},r.areInCyclicOrder=function(e,t,n){return r.sanitizeRadians(t-e)<r.sanitizeRadians(n-e)},r.intercept=function(r,e,t){return(e-r)/(t-r)},r.lerpPoint=function(r,e,t){return[r[0]+(t[0]-r[0])*e,r[1]+(t[1]-r[1])*e,r[2]+(t[2]-r[2])*e]},r.setCoordinate=function(e,t,n,g){var b=r.intercept(e[g],t,n[g]);return r.lerpPoint(e,b,n)},r.isBounded=function(r){return 0<=r&&r<=100},r.edgePoints=function(e){var t=r.Y_FROM_LINRGB[0],n=r.Y_FROM_LINRGB[1],g=r.Y_FROM_LINRGB[2],b=[[e/t,0,0],[(e-100*g)/t,0,100],[(e-100*n)/t,100,0],[(e-100*g-100*n)/t,100,100],[0,e/n,0],[100,(e-100*t)/n,0],[0,(e-100*g)/n,100],[100,(e-100*t-100*g)/n,100],[0,0,e/g],[100,0,(e-100*t)/g],[0,100,(e-100*n)/g],[100,100,(e-100*t-100*n)/g]],a=[],s=!0,i=!1,o=void 0;try{for(var l,c=b[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var u=l.value;r.isBounded(u[0])&&r.isBounded(u[1])&&r.isBounded(u[2])&&a.push(u)}}catch(d){i=!0,o=d}finally{try{s||null==c.return||c.return()}finally{if(i)throw o}}return a},r.bisectToSegment=function(e,t){for(var n=r.edgePoints(e),g=n[0],b=g,a=r.hueOf(g),s=a,i=!0,o=1;o<n.length;o++){var l=n[o],c=r.hueOf(l);(i||r.areInCyclicOrder(a,c,s))&&(i=!1,r.areInCyclicOrder(a,t,c)?(b=l,s=c):(g=l,a=c))}return[g,b]},r.midpoint=function(r,e){return[(r[0]+e[0])/2,(r[1]+e[1])/2,(r[2]+e[2])/2]},r.criticalPlaneBelow=function(r){return Math.floor(r-.5)},r.criticalPlaneAbove=function(r){return Math.ceil(r-.5)},r.bisectToLimit=function(e,t){for(var n=r.bisectToSegment(e,t),g=n[0],b=r.hueOf(g),a=n[1],s=0;s<3;s++)if(g[s]!==a[s]){var i=-1,o=255;g[s]<a[s]?(i=r.criticalPlaneBelow(r.trueDelinearized(g[s])),o=r.criticalPlaneAbove(r.trueDelinearized(a[s]))):(i=r.criticalPlaneAbove(r.trueDelinearized(g[s])),o=r.criticalPlaneBelow(r.trueDelinearized(a[s])));for(var l=0;l<8&&!(Math.abs(o-i)<=1);l++){var c=Math.floor((i+o)/2),u=r.CRITICAL_PLANES[c],d=r.setCoordinate(g,u,a,s),m=r.hueOf(d);r.areInCyclicOrder(b,t,m)?(a=d,o=c):(g=d,b=m,i=c)}}return r.midpoint(g,a)},r.inverseChromaticAdaptation=function(r){var e=Math.abs(r),t=Math.max(0,27.13*e/(400-e));return p.EQ(r)*Math.pow(t,1/.42)},r.findResultByJ=function(e,t,n){for(var g=11*Math.sqrt(n),b=x.G.DEFAULT,a=1/Math.pow(1.64-Math.pow(.29,b.n),.73),s=.25*(Math.cos(e+2)+3.8)*(5e4/13)*b.nc*b.ncb,i=Math.sin(e),o=Math.cos(e),l=0;l<5;l++){var c=g/100,u=0===t||0===g?0:t/Math.sqrt(c),d=Math.pow(u*a,1/.9),m=b.aw*Math.pow(c,1/b.c/b.z)/b.nbb,f=23*(m+.305)*d/(23*s+11*d*o+108*d*i),v=f*o,j=f*i,y=(460*m+451*v+288*j)/1403,w=(460*m-891*v-261*j)/1403,N=(460*m-220*v-6300*j)/1403,C=r.inverseChromaticAdaptation(y),M=r.inverseChromaticAdaptation(w),S=r.inverseChromaticAdaptation(N),T=p.h9([C,M,S],r.LINRGB_FROM_SCALED_DISCOUNT);if(T[0]<0||T[1]<0||T[2]<0)return 0;var O=r.Y_FROM_LINRGB[0],I=r.Y_FROM_LINRGB[1],k=r.Y_FROM_LINRGB[2],L=O*T[0]+I*T[1]+k*T[2];if(L<=0)return 0;if(4===l||Math.abs(L-n)<.002)return T[0]>100.01||T[1]>100.01||T[2]>100.01?0:h.Xr(T);g-=(L-n)*g/(2*L)}return 0},r.solveToInt=function(e,t,n){if(t<1e-4||n<1e-4||n>99.9999)return h.ly(n);var g=(e=p.Vy(e))/180*Math.PI,b=h.cj(n),a=r.findResultByJ(g,t,b);if(0!==a)return a;var s=r.bisectToLimit(b,g);return h.Xr(s)},r.solveToCam=function(e,t,n){return m.s.fromInt(r.solveToInt(e,t,n))},r}();v.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],v.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],v.Y_FROM_LINRGB=[.2126,.7152,.0722],v.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.42984823
10738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var j=function(){function r(){(0,f.Z)(this,r)}return r.score=function(e){var t=0,n=!0,g=!1,b=void 0;try{for(var s,i=e.values()[Symbol.iterator]();!(n=(s=i.next()).done);n=!0){t+=s.value}}catch(ur){g=!0,b=ur}finally{try{n||null==i.return||i.return()}finally{if(g)throw b}}var o=new Map,l=new Map,c=new Array(360).fill(0),u=!0,d=!1,h=void 0;try{for(var f,x=e.entries()[Symbol.iterator]();!(u=(f=x.next()).done);u=!0){var v=(0,a.Z)(f.value,2),j=v[0],y=v[1]/t;o.set(j,y);var w=m.s.fromInt(j);l.set(j,w),c[Math.round(w.hue)]+=y}}catch(ur){d=!0,h=ur}finally{try{u||null==x.return||x.return()}finally{if(d)throw h}}var N=new Map,C=!0,M=!1,S=void 0;try{for(var T,O=l.entries()[Symbol.iterator]();!(C=(T=O.next()).done);C=!0){for(var I=(0,a.Z)(T.value,2),k=I[0],L=I[1],E=Math.round(L.hue),_=0,P=E-15;P<E+15;P++){_+=c[p.i5(P)]}N.set(k,_)}}catch(ur){M=!0,S=ur}finally{try{C||null==O.return||O.return()}finally{if(M)throw S}}var R=new Map,U=!0,V=!1,Z=void 0;try{for(var A,F=l.entries()[Symbol.iterator]();!(U=(A=F.next()).done);U=!0){var H=(0,a.Z)(A.value,2),B=H[0],D=H[1],G=100*N.get(B)*r.WEIGHT_PROPORTION,X=D.chroma<r.TARGET_CHROMA?r.WEIGHT_CHROMA_BELOW:r.WEIGHT_CHROMA_ABOVE,z=G+(D.chroma-r.TARGET_CHROMA)*X;R.set(B,z)}}catch(ur){V=!0,Z=ur}finally{try{U||null==F.return||F.return()}finally{if(V)throw Z}}var W=r.filter(N,l),J=new Map,Y=!0,q=!1,K=void 0;try{for(var Q,$=W[Symbol.iterator]();!(Y=(Q=$.next()).done);Y=!0){var rr=Q.value,er=!1,tr=l.get(rr).hue,nr=!0,gr=!1,br=void 0;try{for(var ar,sr=J[Symbol.iterator]();!(nr=(ar=sr.next()).done);nr=!0){var ir=(0,a.Z)(ar.value,1)[0],or=l.get(ir).hue;if(p.ae(tr,or)<15){er=!0;break}}}catch(ur){gr=!0,br=ur}finally{try{nr||null==sr.return||sr.return()}finally{if(gr)throw br}}er||J.set(rr,R.get(rr))}}catch(ur){q=!0,K=ur}finally{try{Y||null==$.return||$.return()}finally{if(q)throw K}}var lr=Array.from(J.entries());lr.sort((function(r,e){return e[1]-r[1]}));var cr=lr.map((function(r){return r[0]}));return 0===cr.length&&cr.push(4282549748),cr},r.filter=function(e,t){var n=new Array,g=!0,b=!1,s=void 0;try{for(var i,o=t.entries()[Symbol.iterator]();!(g=(i=o.next()).done);g=!0){var l=(0,a.Z)(i.value,2),c=l[0],u=l[1],d=e.get(c);u.chroma>=r.CUTOFF_CHROMA&&h.gb(c)>=r.CUTOFF_TONE&&d>=r.CUTOFF_EXCITED_PROPORTION&&n.push(c)}}catch(m){b=!0,s=m}finally{try{g||null==o.return||o.return()}finally{if(b)throw s}}return n},r}();j.TARGET_CHROMA=48,j.WEIGHT_PROPORTION=.7,j.WEIGHT_CHROMA_ABOVE=.3,j.WEIGHT_CHROMA_BELOW=.1,j.CUTOFF_CHROMA=15,j.CUTOFF_TONE=10,j.CUTOFF_EXCITED_PROPORTION=.01;var y=t(5226),w=t(3015),N=t(2930),C=t(9841),M=t(4037),S=t.n(M),T=t(8855
1),O=t(8843),I=t(1734),k=t(4981),L=t(6872),E={light:{bg:["rgb(255, 214, 226)","rgb(255, 214, 225)","rgb(255, 214, 224)","rgb(255, 214, 224)","rgb(255, 214, 223)","rgb(255, 214, 222)","rgb(255, 214, 222)","rgb(255, 214, 221)","rgb(255, 214, 221)","rgb(255, 214, 220)","rgb(255, 214, 219)","rgb(255, 214, 219)","rgb(255, 215, 218)","rgb(255, 215, 218)","rgb(255, 215, 217)","rgb(255, 215, 216)","rgb(255, 215, 216)","rgb(255, 215, 215)","rgb(255, 215, 215)","rgb(255, 215, 214)","rgb(255, 215, 214)","rgb(255, 215, 213)","rgb(255, 215, 213)","rgb(255, 215, 212)","rgb(255, 215, 211)","rgb(255, 216, 211)","rgb(255, 216, 210)","rgb(255, 216, 210)","rgb(255, 216, 209)","rgb(255, 216, 209)","rgb(255, 216, 208)","rgb(255, 216, 207)","rgb(255, 216, 207)","rgb(255, 216, 206)","rgb(255, 216, 206)","rgb(255, 216, 205)","rgb(255, 216, 205)","rgb(255, 216, 204)","rgb(255, 217, 203)","rgb(255, 217, 203)","rgb(255, 217, 202)","rgb(255, 217, 202)","rgb(255, 217, 201)","rgb(255, 217, 200)","rgb(255, 217, 200)","rgb(255, 217, 199)","rgb(255, 217, 198)","rgb(255, 217, 198)","rgb(255, 217, 197)","rgb(255, 217, 196)","rgb(255, 217, 196)","rgb(255, 218, 195)","rgb(255, 218, 194)","rgb(255, 218, 193)","rgb(255, 218, 193)","rgb(255, 218, 192)","rgb(255, 218, 191)","rgb(255, 218, 190)","rgb(255, 218, 189)","rgb(255, 218, 189)","rgb(255, 218, 188)","rgb(255, 219, 187)","rgb(255, 219, 186)","rgb(255, 219, 185)","rgb(255, 219, 184)","rgb(255, 219, 183)","rgb(255, 219, 182)","rgb(255, 219, 181)","rgb(255, 219, 180)","rgb(255, 219, 179)","rgb(255, 220, 178)","rgb(255, 220, 176)","rgb(255, 220, 175)","rgb(255, 220, 174)","rgb(255, 220, 172)","rgb(255, 220, 171)","rgb(255, 220, 169)","rgb(255, 221, 168)","rgb(255, 221, 166)","rgb(255, 221, 164)","rgb(255, 221, 162)","rgb(255, 221, 160)","rgb(255, 221, 158)","rgb(255, 222, 156)","rgb(255, 222, 154)","rgb(255, 222, 151)","rgb(255, 222, 148)","rgb(255, 223, 145)","rgb(255, 223, 142)","rgb(255, 223, 140)","rgb(254, 224, 141)","rgb(252, 224, 141)","rgb(251, 225, 141)","rgb(250, 225, 141)","rgb(249, 225, 142)","rgb(248, 226, 142)","rgb(247, 226, 142)","rgb(246, 227, 143)","rgb(245, 227, 143)","rgb(244, 228, 144)","rgb(243, 228, 144)","rgb(241, 229, 145)","rgb(240, 229, 145)","rgb(239, 229, 146)","rgb(238, 230, 146)","rgb(237, 230, 147)","rgb(236, 231, 147)","rgb(235, 231, 148)","rgb(233, 231, 149)","rgb(232, 232, 150)","rgb(231, 232, 150)","rgb(230, 233, 151)","rgb(229, 233, 152)","rgb(227, 233, 153)","rgb(226, 234, 154)","rgb(225, 234, 154)","rgb(224, 234, 155)","rgb(223, 235, 156)","rgb(221, 235, 157)","rgb(220, 236, 158)","rgb(219, 236, 159)","rgb(218, 236, 160)","rgb(217, 237, 161)","rgb(216, 237, 162)","rgb(214, 237, 163)","rgb(213, 237, 164)","rgb(212, 238, 165)","rgb(211, 238, 166)","rgb(210, 238, 167)","rgb(208, 239, 168)","rgb(207, 239, 169)","rgb(206, 239, 170)","rgb(205, 239, 171)","rgb(204, 240, 172)","rgb(203, 240, 173)","rgb(202, 240, 175)","rgb(200, 240, 176)","rgb(199, 241, 177)","rgb(198, 241, 178)","rgb(197, 241, 179)","rgb(196, 241, 180)","rgb(195, 242, 181)","rgb(194, 242, 183)","rgb(193, 242, 184)","rgb(192, 242, 185)","rgb(191, 242, 186)","rgb(190, 242, 187)","rgb(189, 243, 188)","rgb(188, 243, 190)","rgb(187, 243, 191)","rgb(186, 243, 192)","rgb(185, 243, 193)","rgb(184, 243, 194)","rgb(183, 244, 196)","rgb(182, 244, 197)","rgb(181, 244, 198)","rgb(180, 244, 199)","rgb(179, 244, 200)","rgb(179, 244, 201)","rgb(178, 244, 203)","rgb(177, 244, 204)","rgb(176, 244, 205)","rgb(175, 244, 206)","rgb(175, 244, 207)","rgb(174, 244, 208)","rgb(173, 245, 210)","rgb(172, 245, 211)","rgb(172, 245, 212)","rgb(171, 245, 213)","rgb(170, 245, 214)","rgb(170, 245, 215)","rgb(169, 245, 217)","rgb(169, 245, 218)","rgb(168, 245, 219)","rgb(167, 245, 220)","rgb(167, 245, 221)","rgb(166, 245, 222)","rgb(166, 245, 223)","rgb(165, 245, 224)","rgb(165, 245, 225)","rgb(165, 245, 227)","rgb(164, 245, 228)","rgb(164, 245, 229)","rgb(163, 244, 230)","rgb(163, 244, 231)","rgb(163, 244, 232)","rgb(162, 244, 233)","rgb(162, 244, 234)","rgb(162, 244, 235)","rgb(162, 244, 236)","rgb(162, 244, 237)","rgb(161, 244, 238)","rgb(161, 244, 239)","rgb(161, 244, 240)","rgb(161, 244, 241)","rgb(161, 244, 242)","rgb(161, 243, 243)","rgb(161, 243, 244)","rgb(161, 243, 245)","rgb(161, 243, 246)","rgb(161, 243, 247)","rgb(161, 243, 247)","rgb(161, 243, 248)","rgb(161, 242, 249)","rgb(161, 242, 250)","rgb(161, 242, 251)","rgb(161, 242, 252)","rgb(162, 242, 253)","rgb(162, 242, 254)","rgb(162, 242, 254)","rgb(163, 241, 255)","rgb(165, 241, 255)","rgb(168, 240, 255)","rgb(170, 240, 255)","rgb(172, 239, 255)","rgb(173, 239, 255)","rgb(175, 238, 255)","rgb(177, 238, 255)","rgb(178, 237, 255)","rgb(180, 237, 255)","rgb(181, 237, 255)","rgb(182, 236, 255)","rgb(184, 236, 255)","rgb(185, 236, 255)","rgb(186, 235, 255)","rgb(187, 235, 255)","rgb(188, 235, 255)","rgb(189, 234, 255)","rgb(190, 234, 255)","rgb(191, 234, 255)","rgb(192, 234, 255)","rgb(193, 233, 255)","rgb(193, 233, 255)","rgb(194, 233, 255)","rgb(195, 233, 255)","rgb(196, 232, 255)","rgb(197, 232, 255)","rgb(197, 232, 255)","rgb(198, 232, 255)","rgb(199, 231, 255)","rgb(199, 231, 255)","rgb(200, 231, 255)","rgb(201, 231, 255)","rgb(201, 231, 255)","rgb(202, 230, 255)","rgb(202, 230, 255)","rgb(203, 230, 255)","rgb(203, 230, 255)","rgb(204, 230, 255)","rgb(205, 230, 255)","rgb(205, 229, 255)","rgb(206, 229, 255)","rgb(206, 229, 255)","rgb(207, 229, 255)","rgb(207, 229, 255)","rgb(208, 228, 255)","rgb(208, 228, 255)","rgb(209, 228, 255)","rgb(209, 228, 255)","rgb(210, 228, 255)","rgb(210, 228, 255)","rgb(211, 227, 255)","rgb(211, 227, 255)","rgb(212, 227, 255)","rgb(212, 227, 255)","rgb(212, 227, 255)","rgb(213, 227, 255)","rgb(213, 227, 255)","rgb(214, 226, 255)","rgb(214, 226, 255)","rgb(215, 226, 255)","rgb(215, 226, 255)","rgb(216, 226, 255)","rgb(216, 226, 255)","rgb(216, 225, 255)","rgb(217, 225, 255)","rgb(217, 225, 255)","rgb(218, 225, 255)","rgb(218, 225, 255)","rgb(219, 225, 255)","rgb(219, 224, 255)","rgb(220, 224, 255)","rgb(220, 224, 255)","rgb(220, 224, 255)","rgb(221, 224, 255)","rgb(221, 224, 255)","rgb(222, 223, 255)","rgb(222, 223, 255)","rgb(223, 223, 255)","rgb(223, 223, 255)","rgb(224, 223, 255)","rgb(224, 222, 255)","rgb(225, 222, 255)","rgb(225, 222, 255)","rgb(226, 222, 255)","rgb(226, 222, 255)","rgb(227, 221, 255)","rgb(227, 221, 255)","rgb(228, 221, 255)","rgb(228, 221, 255)","rgb(229, 221, 255)","rgb(229, 220, 255)","rgb(230, 220, 255)","rgb(231, 220, 255)","rgb(231, 220, 255)","rgb(232, 219, 255)","rgb(232, 219, 255)","rgb(233, 219, 255)","rgb(234, 219, 255)","rgb(234, 218, 255)","rgb(235, 218, 255)","rgb(236, 218, 255)","rgb(236, 217, 255)","rgb(237, 217, 255)","rgb(238, 217, 255)","rgb(239, 216, 255)","rgb(239, 216, 255)","rgb(240, 216, 255)","rgb(241, 215, 255)","rgb(242, 215, 255)","rgb(243, 215, 255)","rgb(244, 214, 255)","rgb(245, 214, 255)","rgb(246, 213, 255)","rgb(247, 213, 255)","rgb(248, 212, 255)","rgb(249, 212, 255)","rgb(251, 211, 255)","rgb(252, 210, 255)","rgb(253, 210, 255)","rgb(255, 209, 255)","rgb(255, 209, 254)","rgb(255, 209, 252)","rgb(255, 210, 251)","rgb(255, 210, 250)","rgb(255, 210, 248)","rgb(255, 210, 247)","rgb(255, 210, 246)","rgb(255, 211, 245)","rgb(255, 211, 243)","rgb(255, 211, 242)","rgb(255, 211, 241)","rgb(255, 211, 240)","rgb(255, 211, 239)","rgb(255, 212, 238)","rgb(255, 212, 237)","rgb(255, 212, 236)","rgb(255, 212, 236)","rgb(255, 212, 235)","rgb(255, 212, 234)","rgb(255, 212, 233)","rgb(255, 213, 232)","rgb(255, 213, 231)","rgb(255, 213, 231)","rgb(255, 213, 230)","rgb(255, 213, 229)","rgb(255, 213, 228)","rgb(255, 213, 228)","rgb(255, 213, 227)","rgb(255, 213, 226)"],fg:["rgb(154, 51, 93)","rgb(154, 51, 91)","rgb(155, 51, 89)","rgb(155, 51, 87)","rgb(155, 51, 86)","rgb(156, 51, 84)","rgb(156, 51, 82)","rgb(156, 51, 80)","rgb(156, 51, 78)","rgb(157, 51, 76)","rgb(157, 51, 74)","rgb(157, 51, 73)","rgb(157, 52, 71)","rgb(157, 52, 69)","rgb(158, 52, 67)","rgb(158, 52, 65)","rgb(158, 52, 63)","rgb(158, 52, 61)","rgb(158, 53, 60)","rgb(158, 53, 58)","rgb(158, 53, 56)","rgb(158, 53, 54)","rgb(158, 54, 52)","rgb(158, 54, 50)","rgb(158, 54, 48)","rgb(158, 54, 46)","rgb(158, 55, 44)","rgb(158, 55, 42)","rgb(158, 55, 40)","rgb(158, 56, 38)","rgb(158, 56, 36)","rgb(157, 56, 34)","rgb(157, 57, 32)","rgb(157, 57, 30)","rgb(157, 58, 28)","rgb(157, 58, 26)","rgb(157, 58, 23)","rgb(156, 59, 21)","rgb(156, 59, 18)","rgb(156, 60, 15)","rgb(156, 60, 12)","rgb(155, 61, 9)","rgb(155, 61, 5)","rgb(155, 62, 2)","rgb(154, 62, 0)","rgb(153, 64, 0)","rgb(152, 65, 0)","rgb(151, 66, 0)","rgb(150, 67, 0)","rgb(149, 68, 0)","rgb(148, 69, 0)","rgb(147, 70, 0)","rgb(146, 71, 0)","rgb(145, 72, 0)","rgb(144, 72, 0)","rgb(143, 73, 0)","rgb(142, 74, 0)","rgb(141, 75, 0)","rgb(140, 75, 0)","rgb(139, 76, 0)","rgb(139, 77, 0
1)","rgb(138, 77, 0)","rgb(137, 78, 0)","rgb(136, 78, 0)","rgb(135, 79, 0)","rgb(135, 80, 0)","rgb(134, 80, 0)","rgb(133, 81, 0)","rgb(132, 81, 0)","rgb(131, 82, 0)","rgb(131, 82, 0)","rgb(130, 83, 0)","rgb(129, 83, 0)","rgb(128, 84, 0)","rgb(128, 84, 0)","rgb(127, 85, 0)","rgb(126, 85, 0)","rgb(126, 86, 0)","rgb(125, 86, 0)","rgb(124, 86, 0)","rgb(123, 87, 0)","rgb(123, 87, 0)","rgb(122, 88, 0)","rgb(121, 88, 0)","rgb(120, 88, 0)","rgb(120, 89, 0)","rgb(119, 89, 0)","rgb(118, 90, 0)","rgb(117, 90, 0)","rgb(117, 90, 0)","rgb(116, 91, 0)","rgb(115, 91, 0)","rgb(114, 92, 0)","rgb(114, 92, 0)","rgb(113, 92, 0)","rgb(112, 93, 0)","rgb(111, 93, 0)","rgb(110, 94, 0)","rgb(110, 94, 0)","rgb(109, 94, 0)","rgb(108, 95, 0)","rgb(107, 95, 0)","rgb(106, 96, 0)","rgb(105, 96, 0)","rgb(104, 96, 0)","rgb(103, 97, 0)","rgb(102, 97, 0)","rgb(101, 97, 0)","rgb(100, 98, 0)","rgb(99, 98, 0)","rgb(98, 99, 0)","rgb(97, 99, 0)","rgb(96, 99, 0)","rgb(95, 100, 0)","rgb(94, 100, 0)","rgb(93, 101, 0)","rgb(92, 101, 0)","rgb(90, 102, 0)","rgb(89, 102, 0)","rgb(88, 102, 0)","rgb(86, 103, 0)","rgb(85, 103, 0)","rgb(83, 104, 0)","rgb(82, 104, 0)","rgb(80, 105, 0)","rgb(78, 105, 0)","rgb(76, 106, 0)","rgb(74, 106, 0)","rgb(72, 107, 0)","rgb(70, 107, 0)","rgb(68, 108, 0)","rgb(65, 108, 0)","rgb(63, 109, 0)","rgb(60, 109, 0)","rgb(56, 110, 0)","rgb(54, 110, 3)","rgb(51, 111, 7)","rgb(48, 111, 10)","rgb(45, 112, 14)","rgb(42, 112, 17)","rgb(39, 112, 20)","rgb(35, 113, 23)","rgb(31, 113, 25)","rgb(26, 113, 28)","rgb(21, 114, 30)","rgb(13, 114, 32)","rgb(4, 114, 34)","rgb(0, 114, 38)","rgb(0, 114, 41)","rgb(0, 114, 45)","rgb(0, 114, 48)","rgb(0, 113, 51)","rgb(0, 113, 53)","rgb(0, 113, 56)","rgb(0, 113, 58)","rgb(0, 113, 60)","rgb(0, 113, 62)","rgb(0, 113, 64)","rgb(0, 112, 66)","rgb(0, 112, 68)","rgb(0, 112, 70)","rgb(0, 112, 71)","rgb(0, 112, 73)","rgb(0, 112, 75)","rgb(0, 112, 76)","rgb(0, 112, 77)","rgb(0, 111, 79)","rgb(0, 111, 80)","rgb(0, 111, 81)","rgb(0, 111, 83)","rgb(0, 111, 84)","rgb(0, 111, 85)","rgb(0, 111, 86)","rgb(0, 111, 87)","rgb(0, 110, 88)","rgb(0, 110, 89)","rgb(0, 110, 90)","rgb(0, 110, 91)","rgb(0, 110, 92)","rgb(0, 110, 93)","rgb(0, 110, 94)","rgb(0, 110, 95)","rgb(0, 110, 96)","rgb(0, 110, 97)","rgb(0, 109, 98)","rgb(0, 109, 99)","rgb(0, 109, 100)","rgb(0, 109, 101)","rgb(0, 109, 102)","rgb(0, 109, 102)","rgb(0, 109, 103)","rgb(0, 109, 104)","rgb(0, 109, 105)","rgb(0, 108, 106)","rgb(0, 108, 107)","rgb(0, 108, 107)","rgb(0, 108, 108)","rgb(0, 108, 109)","rgb(0, 108, 110)","rgb(0, 108, 110)","rgb(0, 108, 111)","rgb(0, 108, 112)","rgb(0, 108, 113)","rgb(0, 107, 114)","rgb(0, 107, 114)","rgb(0, 107, 115)","rgb(0, 107, 116)","rgb(0, 107, 117)","rgb(0, 107, 117)","rgb(0, 107, 118)","rgb(0, 107, 119)","rgb(0, 107, 120)","rgb(0, 106, 120)","rgb(0, 106, 121)","rgb(0, 106, 122)","rgb(0, 106, 123)","rgb(0, 106, 123)","rgb(0, 106, 124)","rgb(0, 106, 125)","rgb(0, 106, 126)","rgb(0, 105, 127)","rgb(0, 105, 127)","rgb(0, 105, 128)","rgb(0, 105, 129)","rgb(0, 105, 130)","rgb(0, 105, 131)","rgb(0, 105, 132)","rgb(0, 104, 133)","rgb(0, 104, 133)","rgb(0, 104, 134)","rgb(0, 104, 135)","rgb(0, 104, 136)","rgb(0, 104, 137)","rgb(0, 103, 138)","rgb(0, 103, 139)","rgb(0, 103, 140)","rgb(0, 103, 141)","rgb(0, 103, 142)","rgb(0, 103, 143)","rgb(0, 102, 144)","rgb(0, 102, 145)","rgb(0, 102, 146)","rgb(0, 102, 147)","rgb(0, 101, 149)","rgb(0, 101, 150)","rgb(0, 101, 151)","rgb(0, 101, 152)","rgb(0, 100, 154)","rgb(0, 100, 155)","rgb(0, 100, 156)","rgb(0, 99, 158)","rgb(0, 99, 159)","rgb(0, 99, 161)","rgb(0, 98, 162)","rgb(0, 98, 164)","rgb(0, 98, 166)","rgb(0, 97, 168)","rgb(0, 97, 170)","rgb(0, 96, 171)","rgb(0, 96, 174)","rgb(0, 95, 176)","rgb(0, 94, 178)","rgb(0, 94, 180)","rgb(0, 93, 183)","rgb(0, 92, 185)","rgb(0, 92, 188)","rgb(10, 91, 189)","rgb(19, 90, 189)","rgb(25, 90, 189)","rgb(30, 89, 189)","rgb(35, 88, 189)","rgb(39, 88, 189)","rgb(42, 87, 189)","rgb(46, 87, 189)","rgb(49, 86, 189)","rgb(52, 85, 189)","rgb(55, 85, 189)","rgb(57, 84, 189)","rgb(60, 83, 189)","rgb(62, 83, 189)","rgb(65, 82, 189)","rgb(67, 82, 188)","rgb(69, 81, 188)","rgb(71, 80, 188)","rgb(74, 80, 188)","rgb(76, 79, 187)","rgb(78, 78, 187)","rgb(80, 78, 187)","rgb(81, 77, 186)","rgb(83, 77, 186)","rgb(85, 76, 185)","rgb(87, 75, 185)","rgb(89, 75, 184)","rgb(90, 74, 184)","rgb(92, 74, 183)","rgb(94, 73, 183)","rgb(95, 72, 182)","rgb(97, 72, 181)","rgb(98, 71, 180)","rgb(100, 71, 180)","rgb(101, 70, 179)","rgb(103, 69, 178)","rgb(104, 69, 177)","rgb(106, 68, 177)","rgb(107, 68, 176)","rgb(108, 67, 175)","rgb(110, 67, 174)","rgb(111, 66, 173)","rgb(112, 66, 172)","rgb(114, 65, 171)","rgb(115, 65, 170)","rgb(116, 64, 169)","rgb(117, 64, 168)","rgb(119, 63, 167)","rgb(120, 63, 165)","rgb(121, 62, 164)","rgb(122, 62, 163)","rgb(123, 61, 162)","rgb(124, 61, 161)","rgb(125, 60, 159)","rgb(126, 60, 158)","rgb(127, 59, 157)","rgb(128, 59, 155)","rgb(129, 59, 154)","rgb(130, 58, 153)","rgb(131, 58, 151)","rgb(132, 57, 150)","rgb(133, 57, 148)","rgb(134, 57, 147)","rgb(135, 56, 145)","rgb(136, 56, 144)","rgb(137, 56, 142)","rgb(138, 55, 141)","rgb(138, 55, 139)","rgb(139, 55, 138)","rgb(140, 54, 136)","rgb(141, 54, 135)","rgb(141, 54, 133)","rgb(142, 54, 131)","rgb(143, 53, 130)","rgb(144, 53, 128)","rgb(144, 53, 126)","rgb(145, 53, 125)","rgb(146, 52, 123)","rgb(146, 52, 121)","rgb(147, 52, 120)","rgb(147, 52, 118)","rgb(148, 52, 116)","rgb(149, 52, 114)","rgb(149, 51, 113)","rgb(150, 51, 111)","rgb(150, 51, 109)","rgb(151, 51, 107)","rgb(151, 51, 106)","rgb(152, 51, 104)","rgb(152, 51, 102)","rgb(153, 51, 100)","rgb(153, 51, 98)","rgb(153, 51, 97)","rgb(154, 51, 95)"]},dark:{bg:["rgb(118, 37, 70)","rgb(119, 37, 69)","rgb(119, 37, 67)","rgb(119, 37, 66)","rgb(120, 37, 64)","rgb(120, 37, 63)","rgb(120, 37, 61)","rgb(120, 37, 60)","rgb(120, 37, 58)","rgb(121, 37, 57)","rgb(121, 37, 56)","rgb(121, 37, 54)","rgb(121, 37, 53)","rgb(121, 37, 51)","rgb(121, 38, 50)","rgb(121, 38, 48)","rgb(121, 38, 47)","rgb(121, 38, 45)","rgb(121, 38, 44)","rgb(122, 38, 42)","rgb(122, 39, 41)","rgb(122, 39, 39)","rgb(122, 39, 38)","rgb(122, 39, 36)","rgb(122, 39, 35)","rgb(122, 40, 33)","rgb(122, 40, 32)","rgb(121, 40, 30)","rgb(121, 40, 29)","rgb(121, 41, 27)","rgb(121, 41, 25)","rgb(121, 41, 24)","rgb(121, 42, 22)","rgb(121, 42, 20)","rgb(121, 42, 18)","rgb(121, 42, 17)","rgb(120, 43, 15)","rgb(120, 43, 13)","rgb(120, 43, 11)","rgb(120, 44, 8)","rgb(120, 44, 6)","rgb(119, 45, 4)","rgb(119, 45, 2)","rgb(119, 45, 0)","rgb(118, 46, 0)","rgb(117, 47, 0)","rgb(116, 48, 0)","rgb(116, 49, 0)","rgb(115, 50, 0)","rgb(114, 51, 0)","rgb(113, 51, 0)","rgb(112, 52, 0)","rgb(112, 53, 0)","rgb(111, 53, 0)","rgb(110, 54, 0)","rgb(109, 55, 0)","rgb(109, 55, 0)","rgb(108, 56, 0)","rgb(107, 56, 0)","rgb(107, 57, 0
1)","rgb(106, 57, 0)","rgb(105, 58, 0)","rgb(105, 58, 0)","rgb(104, 59, 0)","rgb(104, 59, 0)","rgb(103, 60, 0)","rgb(102, 60, 0)","rgb(102, 61, 0)","rgb(101, 61, 0)","rgb(100, 61, 0)","rgb(100, 62, 0)","rgb(99, 62, 0)","rgb(99, 63, 0)","rgb(98, 63, 0)","rgb(98, 63, 0)","rgb(97, 64, 0)","rgb(96, 64, 0)","rgb(96, 64, 0)","rgb(95, 65, 0)","rgb(95, 65, 0)","rgb(94, 65, 0)","rgb(93, 66, 0)","rgb(93, 66, 0)","rgb(92, 66, 0)","rgb(92, 67, 0)","rgb(91, 67, 0)","rgb(91, 67, 0)","rgb(90, 68, 0)","rgb(89, 68, 0)","rgb(89, 68, 0)","rgb(88, 69, 0)","rgb(88, 69, 0)","rgb(87, 69, 0)","rgb(86, 69, 0)","rgb(86, 70, 0)","rgb(85, 70, 0)","rgb(84, 70, 0)","rgb(84, 71, 0)","rgb(83, 71, 0)","rgb(83, 71, 0)","rgb(82, 72, 0)","rgb(81, 72, 0)","rgb(80, 72, 0)","rgb(80, 72, 0)","rgb(79, 73, 0)","rgb(78, 73, 0)","rgb(78, 73, 0)","rgb(77, 74, 0)","rgb(76, 74, 0)","rgb(75, 74, 0)","rgb(74, 75, 0)","rgb(74, 75, 0)","rgb(73, 75, 0)","rgb(72, 76, 0)","rgb(71, 76, 0)","rgb(70, 76, 0)","rgb(69, 77, 0)","rgb(68, 77, 0)","rgb(67, 77, 0)","rgb(66, 78, 0)","rgb(65, 78, 0)","rgb(64, 78, 0)","rgb(63, 79, 0)","rgb(61, 79, 0)","rgb(60, 79, 0)","rgb(59, 80, 0)","rgb(57, 80, 0)","rgb(56, 81, 0)","rgb(54, 81, 0)","rgb(52, 81, 0)","rgb(50, 82, 0)","rgb(48, 82,
10)","rgb(46, 83, 0)","rgb(44, 83, 0)","rgb(41, 84, 0)","rgb(39, 84, 1)","rgb(37, 84, 3)","rgb(35, 85, 5)","rgb(32, 85, 7)","rgb(30, 85, 10)","rgb(27, 85, 12)","rgb(24, 86, 14)","rgb(21, 86, 16)","rgb(17, 86, 18)","rgb(12, 86, 20)","rgb(7, 87, 22)","rgb(1, 87, 24)","rgb(0, 87, 27)","rgb(0, 87, 30)","rgb(0, 87, 32)","rgb(0, 86, 35)","rgb(0, 86, 37)","rgb(0, 86, 39)","rgb(0, 86, 41)","rgb(0, 86, 43)","rgb(0, 86, 45)","rgb(0, 86, 46)","rgb(0, 86, 48)","rgb(0, 86, 49)","rgb(0, 85, 51)","rgb(0, 85, 52)","rgb(0, 85, 53)","rgb(0, 85, 54)","rgb(0, 85, 56)","rgb(0, 85, 57)","rgb(0, 85, 58)","rgb(0, 85, 59)","rgb(0, 85, 60)","rgb(0, 85, 61)","rgb(0, 84, 62)","rgb(0, 84, 63)","rgb(0, 84, 64)","rgb(0, 84, 65)","rgb(0, 84, 66)","rgb(0, 84, 67)","rgb(0, 84, 67)","rgb(0, 84, 68)","rgb(0, 84, 69)","rgb(0, 84, 70)","rgb(0, 84, 71)","rgb(0, 83, 71)","rgb(0, 83, 72)","rgb(0, 83, 73)","rgb(0, 83, 74)","rgb(0, 83, 74)","rgb(0, 83, 75)","rgb(0, 83, 76)","rgb(0, 83, 76)","rgb(0, 83, 77)","rgb(0, 83, 78)","rgb(0, 83, 78)","rgb(0, 83, 79)","rgb(0, 82, 80)","rgb(0, 82, 80)","rgb(0, 82, 81)","rgb(0, 82, 81)","rgb(0, 82, 82)","rgb(0, 82, 83)","rgb(0, 82, 83)","rgb(0, 82, 84)","rgb(0, 82, 85)","rgb(0, 82, 85)","rgb(0, 82, 86)","rgb(0, 82, 86)","rgb(0, 81, 87)","rgb(0, 81, 88)","rgb(0, 81, 88)","rgb(0, 81, 89)","rgb(0, 81, 89)","rgb(0, 81, 90)","rgb(0, 81, 91)","rgb(0, 81, 91)","rgb(0, 81, 92)","rgb(0, 81, 92)","rgb(0, 81, 93)","rgb(0, 81, 94)","rgb(0, 80, 94)","rgb(0, 80, 95)","rgb(0, 80, 95)","rgb(0, 80, 96)","rgb(0, 80, 97)","rgb(0, 80, 97)","rgb(0, 80, 98)","rgb(0, 80, 99)","rgb(0, 80, 99)","rgb(0, 79, 100)","rgb(0, 79, 101)","rgb(0, 79, 101)","rgb(0, 79, 102)","rgb(0, 79, 103)","rgb(0, 79, 103)","rgb(0, 79, 104)","rgb(0, 79, 105)","rgb(0, 78, 106)","rgb(0, 78, 106)","rgb(0, 78, 107)","rgb(0, 78, 108)","rgb(0, 78, 109)","rgb(0, 78, 110)","rgb(0, 78, 110)","rgb(0, 77, 111)","rgb(0, 77, 112)","rgb(0, 77, 113)","rgb(0, 77, 114)","rgb(0, 77, 115)","rgb(0, 76, 116)","rgb(0, 76, 117)","rgb(0, 76, 118)","rgb(0, 76, 119)","rgb(0, 76, 120)","rgb(0, 75, 121)","rgb(0, 75, 122)","rgb(0, 75, 124)","rgb(0, 74, 125)","rgb(0, 74, 126)","rgb(0, 74, 128)","rgb(0, 73, 129)","rgb(0, 73, 130)","rgb(0, 73, 132)","rgb(0, 72, 134)","rgb(0, 72, 135)","rgb(0, 71, 137)","rgb(0, 71, 139)","rgb(0, 70, 141)","rgb(0, 70, 143)","rgb(0, 69, 145)","rgb(4, 69, 146)","rgb(11, 68, 146)","rgb(16, 68, 146)","rgb(20, 67, 146)","rgb(24, 67, 146)","rgb(27, 66, 146)","rgb(30, 66, 146)","rgb(33, 65, 146)","rgb(35, 65, 146)","rgb(37, 64, 146)","rgb(40, 64, 146)","rgb(42, 63, 146)","rgb(44, 63, 146)","rgb(46, 62, 146)","rgb(48, 62, 146)","rgb(50, 61, 146)","rgb(51, 61, 145)","rgb(53, 60, 145)","rgb(55, 60, 145)","rgb(56, 59, 145)","rgb(58, 59, 145)","rgb(60, 58, 144)","rgb(61, 58, 144)","rgb(63, 57, 144)","rgb(64, 57, 143)","rgb(65, 56, 143)","rgb(67, 56, 142)","rgb(68, 55, 142)","rgb(69, 55, 141)","rgb(71, 54, 141)","rgb(72, 54, 140)","rgb(73, 53, 140)","rgb(74, 53, 139)","rgb(76, 52, 139)","rgb(77, 52, 138)","rgb(78, 52, 138)","rgb(79, 51, 137)","rgb(80, 51, 136)","rgb(81, 50, 136)","rgb(82, 50, 135)","rgb(83, 49, 134)","rgb(85, 49, 133)","rgb(86, 49, 133)","rgb(87, 48, 132)","rgb(88, 48, 131)","rgb(89, 47, 130)","rgb(89, 47, 129)","rgb(90, 46, 128)","rgb(91, 46, 127)","rgb(92, 46, 127)","rgb(93, 45, 126)","rgb(94, 45, 125)","rgb(95, 45, 124)","rgb(96, 44, 123)","rgb(97, 44, 122)","rgb(97, 44, 121)","rgb(98, 43, 120)","rgb(99, 43, 118)","rgb(100, 43, 117)","rgb(101, 42, 116)","rgb(101, 42, 115)","rgb(102, 42, 114)","rgb(103, 41, 113)","rgb(103, 41, 112)","rgb(104, 41, 111)","rgb(105, 41, 109)","rgb(105, 40, 108)","rgb(106, 40, 107)","rgb(107, 40, 106)","rgb(107, 40, 104)","rgb(108, 39, 103)","rgb(109, 39, 102)","rgb(109, 39, 101)","rgb(110, 39, 99)","rgb(110, 39, 98)","rgb(111, 38, 97)","rgb(111, 38, 95)","rgb(112, 38, 94)","rgb(112, 38, 93)","rgb(113, 38, 91)","rgb(113, 38, 90)","rgb(114, 37, 89)","rgb(114, 37, 87)","rgb(115, 37, 86)","rgb(115, 37, 84)","rgb(115, 37, 83)","rgb(116, 37, 82)","rgb(116, 37, 80)","rgb(117, 37, 79)","rgb(117, 37, 77)","rgb(117, 37, 76)","rgb(118, 37, 74)","rgb(118, 37, 73)","rgb(118, 37, 72)"],fg:["rgb(255, 169, 197)","rgb(255, 170, 196)","rgb(255, 170, 194)","rgb(255, 170, 193)","rgb(255, 170, 192)","rgb(255, 171, 190)","rgb(255, 171, 189)","rgb(255, 171, 188)","rgb(255, 171, 186)","rgb(255, 171, 185)","rgb(255, 172, 184)","rgb(255, 172, 182)","rgb(255, 172, 181)","rgb(255, 172, 180)","rgb(255, 172, 178)","rgb(255, 173, 177)","rgb(255, 173, 176)","rgb(255, 173, 175)","rgb(255, 173, 173)","rgb(255, 173, 172)","rgb(255, 173, 171)","rgb(255, 174, 170)","rgb(255, 174, 168)","rgb(255, 174, 16
17)","rgb(255, 174, 166)","rgb(255, 174, 165)","rgb(255, 174, 163)","rgb(255, 175, 162)","rgb(255, 175, 161)","rgb(255, 175, 160)","rgb(255, 175, 158)","rgb(255, 175, 157)","rgb(255, 175, 156)","rgb(255, 175, 155)","rgb(255, 176, 153)","rgb(255, 176, 152)","rgb(255, 176, 151)","rgb(255, 176, 149)","rgb(255, 176, 148)","rgb(255, 176, 147)","rgb(255, 177, 145)","rgb(255, 177, 144)","rgb(255, 177, 142)","rgb(255, 177, 141)","rgb(255, 177, 139)","rgb(255, 177, 138)","rgb(255, 178, 136)","rgb(255, 178, 135)","rgb(255, 178, 133)","rgb(255, 178, 132)","rgb(255, 178, 130)","rgb(255, 178, 128)","rgb(255, 178, 127)","rgb(255, 179, 125)","rgb(255, 179, 123)","rgb(255, 179, 121)","rgb(255, 179, 119)","rgb(255, 179, 117)","rgb(255, 179, 115)","rgb(255, 180, 113)","rgb(255, 180, 111)","rgb(255, 180, 109)","rgb(255, 180, 106)","rgb(255, 180, 104)","rgb(255, 181, 101)","rgb(255, 181, 99)","rgb(255, 181, 96)","rgb(255, 181, 93)","rgb(255, 181, 90)","rgb(255, 182, 87)","rgb(255, 182, 83)","rgb(255, 182, 80)","rgb(255, 182, 76)","rgb(255, 182, 71)","rgb(254, 183, 69)","rgb(253, 184, 68)","rgb(252, 184, 67)","rgb(251, 185, 67)","rgb(250, 185, 66)","rgb(249, 186, 65)","rgb(248, 187, 65)","rgb(247, 187, 65)","rgb(245, 188, 64)","rgb(244, 189, 64)","rgb(243, 189, 64)","rgb(242, 190, 64)","rgb(240, 191, 64)","rgb(239, 191, 64)","rgb(238, 192, 64)","rgb(237, 193, 64)","rgb(235, 193, 65)","rgb(234, 194, 65)","rgb(232, 195, 65)","rgb(231, 195, 66)","rgb(230, 196, 66)","rgb(228, 197, 67)","rgb(227, 197, 67)","rgb(225, 198, 68)","rgb(224, 199, 69)","rgb(222, 199, 70)","rgb(221, 200, 70)","rgb(219, 200, 71)","rgb(218, 201, 72)","rgb(216, 202, 73)","rgb(215, 202, 74)","rgb(213, 203, 75)","rgb(211, 203, 77)","rgb(210, 204, 78)","rgb(208, 205, 79)","rgb(207, 205, 80)","rgb(205, 206, 81)","rgb(203, 206, 83)","rgb(202, 207, 84)","rgb(200, 207, 85)","rgb(198, 208, 87)","rgb(196, 209, 88)","rgb(195, 209, 90)","rgb(193, 210, 91)","rgb(191, 210, 93)","rgb(189, 211, 94)","rgb(188, 211, 96)","rgb(186, 212, 97)","rgb(184, 212, 99)","rgb(182, 213, 100)","rgb(181, 213, 102)","rgb(179, 214, 103)","rgb(177, 214, 105)","rgb(175, 214, 107)","rgb(173, 215, 108)","rgb(171, 215, 110)","rgb(170, 216, 112)","rgb(168, 216, 113)","rgb(166, 217, 115)","rgb(164, 217, 117)","rgb(162, 217, 118)","rgb(160, 218, 120)","rgb(158, 218, 122)","rgb(156, 219, 124)","rgb(154, 219, 125)","rgb(152, 219, 127)","rgb(151, 220, 129)","rgb(149, 220, 131)","rgb(147, 220, 132)","rgb(145, 221, 134)","rgb(143, 221, 136)","rgb(141, 221, 138)","rgb(139, 221, 140)","rgb(137, 222, 141)","rgb(135, 222, 143)","rgb(133, 222, 145)","rgb(131, 222, 147)","rgb(129, 223, 148)","rgb(127, 223, 150)","rgb(125, 223, 152)","rgb(123, 223, 154)","rgb(121, 224, 156)","rgb(119, 224, 157)","rgb(117, 224, 159)","rgb(115, 224, 161)","rgb(113, 224, 163)","rgb(111, 224, 164)","rgb(109, 225, 166)","rgb(107, 225, 168)","rgb(106, 225, 170)","rgb(104, 225, 171)","rgb(102, 225, 173)","rgb(100, 225, 175)","rgb(98, 225, 177)","rgb(96, 225, 178)","rgb(94, 225, 180)","rgb(92, 225, 182)","rgb(90, 225, 184)","rgb(88, 225, 185)","rgb(87, 226, 187)","rgb(85, 226, 189)","rgb(83, 226, 190)","rgb(81, 226, 192)","rgb(79, 226, 194)","rgb(78, 226, 195)","rgb(76, 226, 197)","rgb(74, 226, 199)","rgb(73, 225, 200)","rgb(71, 225, 202)","rgb(70, 225, 204)","rgb(68, 225, 205)","rgb(67, 225, 207)","rgb(65, 225, 208)","rgb(64, 225, 210)","rgb(63, 225, 212)","rgb(62, 225, 213)","rgb(61, 225, 215)","rgb(60, 225, 216)","rgb(59, 225, 218)","rgb(58, 224, 219)","rgb(57, 224, 221)","rgb(56, 224, 222)","rgb(56, 224, 224)","rgb(55, 224, 225)","rgb(55, 224, 227)","rgb(55, 224, 228)","rgb(54, 223, 230)","rgb(54, 223, 231)","rgb(54, 223, 232)","rgb(55, 223, 234)","rgb(55, 223, 235)","rgb(55, 222, 237)","rgb(56, 222, 238)","rgb(56, 222, 239)","rgb(57, 222, 241)","rgb(58, 221, 242)","rgb(59, 221, 243)","rgb(60, 221, 244)","rgb(61, 221, 246)","rgb(62, 220, 247)","rgb(63, 220, 248)","rgb(64, 220, 249)","rgb(65, 219, 251)","rgb(67, 219, 252)","rgb(68, 219, 253)","rgb(69, 219, 254)","rgb(72, 218, 255)","rgb(79, 217, 255)","rgb(84, 217, 255)","rgb(90, 216, 255)","rgb(94, 216, 255)","rgb(98, 215, 255)","rgb(102, 214, 255)","rgb(106, 214, 255)","rgb(109, 213, 255)","rgb(112, 213, 255)","rgb(115, 212, 255)","rgb(118, 212, 255)","rgb(120, 211, 255)","rgb(123, 211, 255)","rgb(125, 210, 255)","rgb(127, 210, 255)","rgb(129, 209, 255)","rgb(131, 209, 255)","rgb(133, 209, 255)","rgb(135, 208, 255)","rgb(137, 208, 255)","rgb(139, 207, 255)","rgb(140, 207, 255)","rgb(142, 207, 255)","rgb(144, 206, 255)","rgb(145, 206, 255)","rgb(147, 205, 255)","rgb(148, 205, 255)","rgb(149, 205, 255)","rgb(151, 204, 255)","rgb(152, 204, 255)","rgb(153, 204, 255)","rgb(155, 203, 255)","rgb(156, 203, 255)","rgb(157, 203, 255)","rgb(158, 202, 255)","rgb(160, 202, 255)","rgb(161, 202, 255)","rgb(162, 201, 255)","rgb(163, 201, 255)","rgb(164, 201, 255)","rgb(165, 200, 255)","rgb(166, 200, 255)","rgb(167, 200, 255)","rgb(168, 199, 255)","rgb(169, 199, 255)","rgb(170, 199, 255)","rgb(171, 198, 255)","rgb(172, 198, 255)","rgb(173, 198, 255)","rgb(174, 197, 255)","rgb(175, 197, 255)","rgb(176, 197, 255)","rgb(177, 197, 255)","rgb(178, 196, 255)","rgb(179, 196, 255)","rgb(180, 196, 255)","rgb(181, 195, 255)","rgb(182, 195, 255)","rgb(183, 195, 255)","rgb(184, 194, 255)","rgb(185, 194, 255)","rgb(186, 194, 255)","rgb(187, 193, 255)","rgb(188, 193, 255)","rgb(189, 192, 255)","rgb(190, 192, 255)","rgb(190, 192, 255)","rgb(191, 191, 255)","rgb(192,
1191, 255)","rgb(193, 191, 255)","rgb(194, 190, 255)","rgb(195, 190, 255)","rgb(196, 189, 255)","rgb(197, 189, 255)","rgb(198, 189, 255)","rgb(199, 188, 255)","rgb(200, 188, 255)","rgb(201, 187, 255)","rgb(202, 187, 255)","rgb(204, 186, 255)","rgb(205, 186, 255)","rgb(206, 185, 255)","rgb(207, 185, 255)","rgb(208, 184, 255)","rgb(209, 184, 255)","rgb(210, 183, 255)","rgb(211, 183, 255)","rgb(213, 182, 255)","rgb(214, 182, 255)","rgb(215, 181, 255)","rgb(216, 181, 255)","rgb(218, 180, 255)","rgb(219, 179, 255)","rgb(221, 178, 255)","rgb(222, 178, 255)","rgb(223, 177, 255)","rgb(225, 176, 255)","rgb(226, 175, 255)","rgb(228, 175, 255)","rgb(230, 174, 255)","rgb(231, 173, 255)","rgb(233, 172, 255)","rgb(235, 171, 255)","rgb(237, 170, 255)","rgb(239, 168, 255)","rgb(240, 168, 254)","rgb(241, 168, 252)","rgb(242, 167, 251)","rgb(243, 167, 250)","rgb(245, 166, 248)","rgb(246, 166, 247)","rgb(247, 166, 245)","rgb(248, 165, 244)","rgb(249, 165, 242)","rgb(250, 164, 241)","rgb(251, 164, 239)","rgb(252, 164, 238)","rgb(253, 163, 236)","rgb(254, 163, 235)","rgb(255, 163, 233)","rgb(255, 163, 231)","rgb(255, 164, 229)","rgb(255, 164, 226)","rgb(255, 165, 224)","rgb(255, 165, 222)","rgb(255, 165, 220)","rgb(255, 166, 218)","rgb(255, 166, 217)","rgb(255, 166, 215)","rgb(255, 167, 213)","rgb(255, 167, 211)","rgb(255, 167, 210)","rgb(255, 168, 208)","rgb(255, 168, 206)","rgb(255, 168, 205)","rgb(255, 168, 203)","rgb(255, 169, 202)","rgb(255, 169, 200)","rgb(255, 169, 199)"]}},_=t(6746);function P(r){var e=r.label,t=r.value,n=r.setValue,g=r.className;return(0,o.jsxs)(_.r.Group,{as:"div",className:(0,C.Z)("flex items-center",g),children:[(0,o.jsx)(_.r,{checked:t,onChange:n,className:(0,C.Z)(t?"bg-primary":"bg-surfaceVariant","relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out"),children:(0,o.jsx)("span",{"aria-hidden":"true",className:(0,C.Z)(t?"translate-x-4 bg-surface":"translate-x-0 bg-surface/80","pointer-events-none inline-block h-4 w-4 transform rounded-full bg-surface shadow ring-0 transition duration-200 ease-in-out")})}),(0,o.jsx)(_.r.Label,{as:"span",className:"ml-2",children:(0,o.jsx)("span",{className:"text-sm",children:e})})]})}function R(){var r=(0,c.Z)([""]);return R=function(){return r},r}function U(){var r=(0,c.Z)(["\n ",":hover &,\n ",":active & {\n opacity: 1;\n z-index: 20;\n display: block;\n }\n"]);return U=function(){return r},r}function V(r){var e=r.children;return(0,o.jsx)("div",{className:"absolute left-[50%] top-0 -translate-x-1/2 -translate-y-full select-none pointer-events-none touch-none",children:(0,o.jsx)(I.sg,{className:"bg-hf-bgHint/80 ring-1 ring-hf-bgVariant shadow-sm backdrop-blur text-xs font-medium rounded-md p-1 mb-1 transition-opacity duration-100 hidden opacity-0 group-hover:block group-active:block group-hover:z-20 group-active:z-20 group-hover:opacity-100 group-active:opacity-100 tabular-nums gap-2",children:e})})}var Z=O.ZP.div.withConfig({componentId:"sc-dc80f85d-0"})(R()),A=(0,O.ZP)(I.sg).withConfig({componentId:"sc-dc80f85d-1"})(U(),Z,Z);function F(r){var e=r.children;return(0,o.jsx)("div",{className:"absolute left-0 w-full min-w-max bottom-0 translate-y-full select-none pointer-events-none touch-none",children:(0,o.jsx)(A,{className:"bg-accentError1-70/30 backdrop-blur text-onSurfaceVariant text-xs text-center font-medium rounded p-[1px] mt-1 transition-opacity duration-100 hidden opacity-0 gap-2",children:e})})}function H(r){var e=r.children;return(0,o.jsx)(I.sg,{className:"absolute max-w-xs top-0 left-0 -translate-y-full bg-hf-bgHint/80 ring-1 ring-hf-bgVariant shadow-sm backdrop-blur text-sm rounded-md p-2 mb-1 transition-opacity duration-100 invisible opacity-0 peer-hover:visible peer-active:visible peer-hover:z-20 peer-active:z-20 peer-hover:opacity-100 peer-active:opacity-100 select-none pointer-events-none touch-none gap-2",children:e})}function B(r){var e=r.min,t=r.max,n=r.value,g=r.onChange,b=r.tooltip,s=r.trackStyle,i=r.thumbStyle,l=r.redMin,c=r.defaultMark,u=(0,T.useMemo)((function(){return(0,o.jsxs)(k.fQ,{className:"relative grow bg-surfaceVariant rounded-full overflow-hidden h-full",style:s,children:[void 0!==l&&(0,o.jsx)(Z,{className:"absolute top-0 bottom-0 right-0 bg-hf-bg",style:{left:"".concat((l-e)/(t-e)*100,"%")},children:(0,o.jsx)("div",{className:"w-full h-full bg-hf-errorContainer/40",children:(0,o.jsx)(F,{children:"Less contrast"})})}),void 0!==c&&(0,o.jsx)("div",{className:"absolute top-[50%] bottom-[50%] -translate-x-1/2 -translate-y-1/2 w-1 h-1 bg-onSurfaceVariant/30 rounded-full",style:{left:"".concat((c-e)/(t-e)*100,"%")}})]})}),[l,e,t,c]);return(0,o.jsxs)(k.fC,{min:e,max:t,value:[n],onValueChange:function(r){var e=(0,a.Z)(r,1)[0];return g(e)},className:"relative flex items-center select-none touch-none cursor-pointer w-[250px] sm:w-[300px] h-6",children:[u,(0,o.jsx)(k.bU,{className:"block w-5 h-5 shadow-sm rounded-full bg-primary hover:bg-primary/80 active:bg-primary/70 relative",style:i,children:(0,o.jsx)(V,{children:b})})]})}function D(r){var e=r.label,t=r.tooltip;return t?(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)(L.xv,{className:"pb-2 text-sm select-none peer",children:e}),(0,o.jsx)(H,{children:t})]}):(0,o.jsx)(L.xv,{className:"pb-2 text-sm select-none",children:e})}var G=1e3,X=T.memo((function(r){var e=r.label,t=r.tooltip,n=r.min,g=r.minLabel,b=r.minLabelTooltip,a=r.max,s=r.maxLabel,i=r.uiMin,l=r.uiMax,c=r.uiDefault,u=r.redMin,d=r.defaultValue,m=r.value,h=r.setValue;null!==i&&void 0!==i||(i=-100),null!==l&&void 0!==l||(l=100),null!==c&&void 0!==c||(c=0);var f=d-n,p=a-d,x=m-d,v=x<0?x/f:x/p,j=v<0?c+v*-i:c+v*l,y=500,w=(0,T.useState)(Math.round(v*y)),N=w[0],C=w[1];(0,T.useEffect)((function(){var r=N/y,e=d+(r<0?r*f:r*p);h(Math.min(Math.max(e,n),a))}),[N]);var M,S=Math.round(j),O=S===c?"Default":"".concat(j>0?"+":"").concat(S);S===i&&(O=null!==(M=null!==b&&void 0!==b?b:g)&&void 0!==M?M:"Min"),S===l&&(O=null!==s&&void 0!==s?s:"Max");var k=void 0;if(void 0!==u){var L=u-d,E=L<0?L/f:L/p;k=Math.round(E*y)}return(0,o.jsxs)(I.sg,{children:[e&&(0,o.jsx)(D,{label:e,tooltip:t}),(0,o.jsxs)(I.X2,{className:"gap-2 group cursor-default items-center",children:[(0,o.jsx)("span",{className:"text-xs text-secondary text-right w-8 sm:w-12 select-none",children:g}),(0,o.jsx)(B,{value:N,onChange:C,min:-500,max:y,redMin:k,defaultMark:0,tooltip:O}),(0,o.jsx)("span",{className:"text-xs text-secondary text-left w-8 sm:w-12 select-none",children:s})]})]})}));function z(r){var e=r.label,t=r.tooltip,n=r.minLabel,g=r.max,b=r.maxLabel,a=r.uiMax,s=r.value,i=r.setValue;null!==a&&void 0!==a||(a=100);var l=s/g,c=l*a,u=G,d=(0,T.useState)(Math.round(l*u)),m=d[0],h=d[1];return(0,T.useEffect)((function(){var r=m/u*g;i(Math.min(Math.max(r,0),g))}),[m]),(0,o.jsxs)(I.sg,{children:[e&&(0,o.jsx)(D,{label:e,tooltip:t}),(0,o.jsxs)(I.X2,{className:"gap-2 group cursor-default items-center",children:[(0,o.jsx)("span",{className:"text-xs text-secondary text-right w-8 sm:w-12 select-none",children:n}),(0,o.jsx)(B,{value:m,onChange:h,min:0,max:u,tooltip:"".concat(Math.round(c))}),(0,o.jsx)("span",{className:"text-xs text-secondary text-left w-8 sm:w-12 select-none",children:b})]})]})}function W(r){var e=r.label,t=r.tooltip,n=r.minLabel,g=r.max,b=r.maxLabel,a=r.uiMax,s=r.value,i=r.setValue;null!==a&&void 0!==a||(a=100);var l=s/g,c=l*a,u=G,d=(0,T.useState)(Math.round(l*u)),m=d[0],h=d[1],f=(0,T.useState)(s),p=f[0],x=f[1];(0,T.useEffect)((function(){var r=m/u*g,e=Math.min(Math.max(r,0),g);i(e),x(e)}),[m]),(0,T.useEffect)((function(){if(s!==p){var r=s/g,e=Math.round(r*u);h(e),x(s)}}),[s,p]);var v=(0,O.Fg)().isDark,j=E[v?"dark":"light"],y=j.bg,w=j.fg,N=(0,T.useMemo)((function(){return"linear-gradient(to right, ".concat(y.join(", "),")")}),[v]);return(0,o.jsxs)(I.sg,{children:[(0,o.jsx)(D,{label:e,tooltip:t}),(0,o.jsxs)(I.X2,{className:"gap-2 group cursor-default items-center",children:[(0,o.jsx)("span",{className:"text-xs text-secondary text-right w-8 sm:w-12 select-none",children:n}),(0,o.jsx)(B,{value:m,onChange:h,min:0,max:u,tooltip:"".concat(Math.round(c)),trackStyle:{background:N},thumbStyle:{backgroundColor:w[Math.round(s)%360]}}),(0,o.jsx)("span",{className:"text-xs text-secondary text-left w-8 sm:w-12 select-none",children:b})]})]})}var J=T.memo((function(r){var e=r.label,t=r.tooltip,n=r.value,g=r.setValue,b=r.className;return(0,o.jsxs)(I.X2,{className:(0,C.Z)("relative gap-2 items-center",b),children:[(0,o.jsx)(P,{className:"peer",value:n,setValue:g,label:e}),t&&(0,o.jsx)(H,{children:t})]})}));
1function Y(){var r=(0,c.Z)(["\n -webkit-user-drag: none;\n"]);return Y=function(){return r},r}function q(r){return Array(360).fill(r)}var K=q(106.0098266601563),Q=q(102.10418701171886),$=128,rr=u.g,er={symmetric:3,symmetricInverse:3,"2cluster":0,"2clusterInverse":0,"3cluster":7,"3clusterInverse":7,"4cluster":7,"4clusterInverse":7},tr={symmetric:[15,45,75],"2cluster":[45,225],"3cluster":[-30,90,210],"4cluster":[-45,45,135,225]};function nr(r,e,t){return e*t+(1-t)*r}function gr(r,e,t){var n=(0,a.Z)((0,d.iT)(r),3),g=n[0],b=n[1],s=n[2],i=(0,a.Z)((0,d.iT)(e),3),o=i[0],l=i[1],c=i[2];b/=255,s/=255,l/=255,c/=255;var u=nr(o/=255,g/=255,t),m=nr(l,b,t),h=nr(c,s,t);return(u=Math.round(255*u))<<16|(m=Math.round(255*m))<<8|(h=Math.round(255*h))}var br=(0,O.ZP)(S()).withConfig({componentId:"sc-bf8881c3-0"})(Y());function ar(r){var e,t=r.data,n=t.x,s=t.y,i=t.css,c=r.isDark,u=r.isMain,d=r.isMainDirty,m=r.setSeedHue,h=(r.setAccentChroma,"hsl(".concat(i,")")),f=u?20:12,x=(0,T.useState)(0),v=x[0],j=x[1],y=(0,T.useState)(0),w=y[0],M=y[1],S=(0,N.useDrag)((function(r){var e=r.last,t=(0,a.Z)(r.movement,2),g=t[0],b=t[1],i=n+g,o=s+b,l=i-$,c=o-$,u=Math.sqrt(l*l+c*c);u=Math.min(u,$),u=$;var d=Math.atan2(-c,l);if(i=$+u*Math.cos(d),o=$-u*Math.sin(d),e){j(0),M(0);var h=(0,p.Vy)(180*d/Math.PI);m(h)}else j(i-n),M(o-s)}));return(0,o.jsx)("div",(0,b.Z)((0,g.Z)({},u?S():{}),{className:(0,C.Z)("absolute rounded-full origin-center ring-1 transition-[filter,opacity]",u?"w-5 h-5 cursor-pointer drop-shadow hover:drop-shadow-lg touch-none z-10":"w-3 h-3 drop-shadow-sm"),style:(e={left:n-f/2,top:s-f/2,backgroundColor:h,transform:"translate(".concat(v,"px, ").concat(w,"px)")},(0,l.Z)(e,"--tw-ring-color",c?"#6f6f6f":"#bcbcbc"),(0,l.Z)(e,"opacity",u||!d?1:0),e)}))}function sr(r){var e=r.previewTheme,t=r.type,n=r.seedHue,a=r.setSeedHue,s=r.accentChroma,i=r.setAccentChroma,l=(r.hueSpreadMode,"dark"===t),
1c=l?Q:K,u=(0,N.useDrag)((function(r){r.event.preventDefault()})),d=e?er[e.hm]:-1,m=(0,O.Fg)().isDark,h=(0,T.useMemo)((function(){if(!e)return[[],!1];var r=e.p,t=[r.c,r.f,r.t,r.o,r.m,r.k,r.s2,r.e],g=!1,b=t.map((function(r,e){var t=(0,y.FP)(r),b=e===d,a=rr.fromInt(t),i=a.l,o=(a.c,a.h),l=b?n:o;b&&(0,p.ae)((0,p.Vy)(n),(0,p.Vy)(o))>1&&(g=!0,t=rr.toLinearSrgb({l:i,c:s,h:n}).toSrgb().toInt());c[Math.round((0,p.Vy)(l))%360];var u=l*Math.PI/180,h=b?t:gr(t,m?7303023:12369084,.75);return{x:128+128*Math.cos(u),y:128-128*Math.sin(u),css:(0,y.V3)(h)}}));return[b,g]}),[JSON.stringify(e),n,m]),f=h[0],x=h[1];return(0,o.jsxs)("div",{className:"mt-8 mb-8 self-center relative w-[256px] h-[256px] select-none touch-none",children:[(0,o.jsx)(br,(0,b.Z)((0,g.Z)({},u),{className:"pointer-events-none select-none touch-none rounded-full drop-shadow inline-block",src:"/static/img/hue-circle".concat("","-").concat(l?"dark":"light",".png"),width:256,height:256,alt:"",unoptimized:!0,draggable:!1})),f.map((function(r,e){return(0,o.jsx)(ar,{data:r,isDark:l,isMain:e===d,isMainDirty:x,setSeedHue:a,setAccentChroma:i},e===d?"main":e)}))]})}function ir(r){var e=r.label,t=r.value,n=r.hues,g=r.hueSpreadMode,b=r.setHueSpreadMode,a=g===t||g===t+"Inverse",s=g.endsWith("Inverse"),i=(0,o.jsx)("div",{className:"relative w-[48px] h-[48px] rounded-full ring-1 ring-outline shadow-sm",children:n.map((function(r,e){return(0,o.jsx)("div",{className:"absolute rounded-full w-1 h-1 bg-onSurfaceVariant/80",style:{left:24+20*Math.cos(r*Math.PI/180)-2,top:24-20*Math.sin(r*Math.PI/180)-2}},e)}))});return(0,o.jsxs)(I.sg,{as:"button",className:(0,C.Z)("p-2 gap-2 items-center rounded-md transition-colors group",a?"bg-hf-bgHint ":"bg-surface hover:bg-hf-bgHint/30"),onClick:function(){return b(t+(s?"Inverse":""))},children:[i,(0,o.jsx)("span",{className:(0,C.Z)("text-sm font-medium transition-colors",a?"text-onSurface":"text-onSurfaceVariant group-hover:text-onSurface"),children:e})]})}function or(r){var e=r.hueSpreadMode,t=r.setHueSpreadMode,n=e.endsWith("Inverse");return(0,o.jsxs)(I.sg,{className:"gap-4",children:[(0,o.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[(0,o.jsx)(ir,{label:"Default",value:"symmetric",hues:tr.symmetric,hueSpreadMode:e,setHueSpreadMode:t}),(0,o.jsx)(ir,{label:"Line",value:"2cluster",hues:tr["2cluster"],hueSpreadMode:e,setHueSpreadMode:t}),(0,o.jsx)(ir,{label:"Triangle",value:"3cluster",hues:tr["3cluster"],hueSpreadMode:e,setHueSpreadMode:t}),(0,o.jsx)(ir,{label:"Square",value:"4cluster",hues:tr["4cluster"],hueSpreadMode:e,setHueSpreadMode:t})]}),(0,o.jsx)(J,{label:"Use colors differently",value:n,setValue:function(){t(n?e.slice(0,-"Inverse".length):e+"Inverse")},tooltip:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("p",{children:"This doesn\u2019t change the pattern, but the colors for specific parts of code will change."})})})]})}var lr=t(8589),cr=t(7030),ur=t(9187),dr=t(8592),mr=t(3006),hr=t(1029),fr=t(7101),pr=t(1515),xr=t(4759),vr=t(6742),jr=t(5419),yr=t(6739),wr=t(4545),Nr=t(1505),Cr=t(4327),Mr=t(5313),Sr=t(4186);function Tr(r){return Object.fromEntries(Object.entries(r).sort((function(r,e){var t=(0,a.Z)(r,1)[0],n=(0,a.Z)(e,1)[0];return t.localeCompare(n)})).map((function(r){var e=(0,a.Z)(r,2),t=e[0],n=e[1];return"object"===typeof n&&n?[t,Tr(n)]:[t,n]})))}function Or(r){return JSON.stringify(Tr(r))}function Ir(r,e){return Or(r)===Or(e)}
1var kr=t(1607),Lr=t(2050),Er=t(124),_r=t(1464),Pr=t(1955),Rr=t(613),Ur=t(9604),Vr=t(4396),Zr=t(3512),Ar=t(2818),Fr=t.n(Ar),Hr=t(9026),Br=t(6416),Dr=t(3436),Gr=t.n(Dr),Xr=t(4315),zr=t(7363),Wr=[{label:"Light",value:"light"},{label:"Dark",value:"dark"}],Jr=[{label:"Protanomaly",value:"protan"},{label:"Deuteranomaly",value:"deuter"},{label:"Tritanomaly",value:"tritan"}],Yr=[{label:"Public",value:"public"},{label:"Private",value:"private"}];function qr(r){var e=r.href,t=r.icon,n=r.label,g=t;return(0,o.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",title:n,children:(0,o.jsx)(g,{})})}function Kr(){var r=(0,Pr.n)(),e=r.width,t=r.height,n=(0,T.useState)(200),g=n[0],b=n[1],a=(0,T.useState)(!0),s=a[0],i=a[1];return(0,T.useEffect)((function(){var r=setTimeout((function(){return b(0)}),1500);return function(){return clearTimeout(r)}}),[]),(0,T.useEffect)((function(){var r=setTimeout((function(){return i(!1)}),5e3);return function(){return clearTimeout(r)}}),[]),(0,o.jsx)(Gr(),{width:e,height:t,numberOfPieces:g,run:s}
1)}function Qr(r){var e=r.open,t=r.setOpen,n=(0,Lr.o)((function(r){return r.theme.id})),g=(0,Xr.ZP)("/themes/".concat(n,"/export_eligibility")).data,b="https://hueflake.dev/themes/".concat(n),a="https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(b),"&hashtags=vscode&text=").concat(encodeURIComponent("My new #Hueflake theme")),s="https://reddit.com/submit?url=".concat(encodeURIComponent(b),"&title=").concat(encodeURIComponent("My new Hueflake theme")),i="https://www.linkedin.com/shareArticle?url=".concat(encodeURIComponent(b)),l="https://hueflake.dev",c="Hueflake: an easy personal theme builder for editors and terminals",u="https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(l),"&hashtags=vscode&text=").concat(encodeURIComponent(c)),d="https://reddit.com/submit?url=".concat(encodeURIComponent(l),"&title=").concat(encodeURIComponent(c)),m="https://www.linkedin.com/shareArticle?url=".concat(encodeURIComponent(l));return(0,o.jsxs)(pr.p,{open:e,setOpen:t,scrimChildren:(0,o.jsx)(Kr,{}),children:[(0,o.jsx)(pr.p.Icon,{component:Vr.zcp}),(0,o.jsx)(pr.p.Title,{children:"Congrats!"}),(0,o.jsx)(pr.p.Message,{children:"If you like your new theme, be sure to share the love!"}),(0,o.jsx)(I.X2,{className:"w-full justify-center gap-4 mt-4",children:(0,o.jsx)("span",{className:"text-sm text-secondary",children:"Share theme"})}),(0,o.jsxs)(I.X2,{className:"w-full justify-center gap-4 mt-2",children:[(0,o.jsx)(qr,{href:a,icon:Vr.nyZ,label:"Twitter"}),(0,o.jsx)(qr,{href:s,icon:Vr.PHF,label:"Reddit"}),(0,o.jsx)(qr,{href:i,icon:Vr.u9B,label:"LinkedIn"})]}),(0,o.jsx)(I.X2,{className:"w-full justify-center gap-4 mt-4",children:(0,o.jsx)("span",{className:"text-sm text-secondary",children:"Share Hueflake"})}),(0,o.jsxs)(I.X2,{className:"w-full justify-center gap-4 mt-2",children:[(0,o.jsx)(qr,{href:u,icon:Vr.nyZ,label:"Twitter"}),(0,o.jsx)(qr,{href:d,icon:Vr.PHF,label:"Reddit"}),(0,o.jsx)(qr,{href:m,icon:Vr.u9B,label:"LinkedIn"})]}),g&&g.templateLimit<100&&(0,o.jsx)(I.X2,{className:"w-full justify-center gap-4 mt-2",children:(0,o.jsx)(Fr(),{href:"/pricing",passHref:!0,children:(0,o.jsx)(cr.a,{className:"!font-medium text-sm mt-4",children:"Go Pro for unlimited themes and downloads"})})}),(0,o.jsx)(pr.p.Actions,{children:(0,o.jsx)(pr.p.FilledButtonAction,{onClick:function(){return t(!1)},children:"Got it"})})]})}function $r(r){var e=r.save,t=r.eligibility,g=r.setTemplatesUpsellOpen,b=(0,Lr.o)((function(r){return r.theme.id})),a=(0,Lr.o)((function(r){return r.theme.editorState.exportTemplates})),s=(0,T.useState)(!1),l=s[0],c=s[1],u=(0,Zr.wW)(),d=((0,Ur.useUser)().user,(0,T.useState)(!1)),m=d[0],h=d[1],f=(0,T.useState)(!1),p=f[0],x=f[1],v=(0,T.useState)(!1),j=v[0],y=v[1],w=(0,T.useState)(!1),N=w[0],C=w[1],M=(0,T.useCallback)((function(){y(!0),window.removeEventListener("focus",M),(0,Xr.JG)("/themes/".concat(b,"/export_eligibility"))}),[]);function S(){return(S=(0,n.Z)((function(){var r;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return t?a.length>t.templateLimit?(u("Export: Upsell"),g(!0),[2]):(r=t.canExport,c(!0),r&&u("Export: Download"),[4,e()]):((0,Xr.JG)("/themes/".concat(b,"/export_eligibility")),(0,lr.cB)("Failed to start download","Try again"),[2]);case 1:if(n.sent(),r){if(a.length>t.templateLimit)return u("Export: Upsell"),g(!0),c(!1),[2];if(t.templateLimit<100&&N)return u("Export: Upsell"),h(!0),c(!1),[2];t.templateLimit<100&&window.addEventListener("focus",M),C(!0),window.location.assign("/api/themes/".concat(b,"/export"))}else"verify-email"===t.reason?x(!0):"template-count"===t.reason?(u("Export: Upsell"),g(!0)):"already-exported"===t.reason&&(u("Export: Upsell"),h(!0));return c(!1),[2]}}))}))).apply(this,arguments)}return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(dr.gb,{className:"self-center my-4",disabled:0===a.length,loading:l,onClick:function(){return S.apply(this,arguments)},children:"Download"}),(0,o.jsx)(yr.fh,{open:m,setOpen:h}),(0,o.jsx)(yr.oo,{open:p,setOpen:x}),(0,o.jsx)(Qr,{open:j,setOpen:y})]})}var re=kr.td;function ee(r){var e=r.type,t=r.currentType,n=r.setType,g=e===t,b="light"===e,a=b?Vr.O31:Vr.C9B;return(0,o.jsx)("button",{title:b?"Light":"Dark",onClick:function(){return n(e)},className:(0,C.Z)("p-3 gap-2 transition-colors rounded-full",g?"bg-primary text-onPrimary":"bg-surfaceVariant text-onSurfaceVariant"),children:(0,o.jsx)(a,{className:"inline",size:48,strokeWidth:1.5})})}var te=/^#[0-9a-f]{6}$/i,ne=/[^0-9a-fA-F#]/;function ge(){var r=(0,T.useState)(null),e=r[0],t=r[1],n=(0,Lr.o)((function(r){return r.theme})),g=(0,Lr.o)((function(r){return r.actions})),b=n.editorState.seedColor;return(0,T.useEffect)((function(){t(null)}),[b]),(0,T.useEffect)((function(){e&&te.test(e)&&((0,Lr.S)().setEditorState("seedColor",e.toLowerCase()),t(null))}),[e]),(0,o.jsxs)(I.sg,{className:"grow pb-4 gap-6",children:[(0,o.jsx)("h1",{className:"text-3xl font-bold",children:"Get started"}),(0,o.jsx)("p",{children:"Let\u2019s get your theme going. You can customize everything later."}),(0,o.jsx)("h2",{className:"font-medium",children:"Light or dark?"}),(0,o.jsxs)(I.X2,{className:"justify-around",children:[(0,o.jsx)(ee,{type:"light",currentType:n.params.type,setType:g.forParam("type")}),(0,o.jsx)(ee,{type:"dark",currentType:n.params.type,setType:g.forParam("type")})]}),(0,o.jsxs)(I.sg,{className:"gap-4",children:[(0,o.jsx)("h2",{className:"font-medium",children:"Pick a base color"}),(0,o.jsx)(Br.gW,{className:"self-center",color:b,onChange:g.forEditorState("seedColor")}),(0,o.jsx)(mr.o,{className:"font-mono self-center",inputClassName:"p-1 w-[calc(7ch+10px)]",value:null!==e&&void 0!==e?e:b,onChange:function(r){return t(r.currentTarget.value.replace(ne,""))},autoComplete:"off",maxLength:7})]}),(0,o.jsxs)(I.sg,{className:"gap-2",children:[(0,o.jsx)("h2",{className:"font-medium",children:"Give it a name"}),(0,o.jsx)(mr.o,{name:"not-n",autoComplete:"off",value:n.name,onChange:function(r){return g.setThemeProp("name",r.currentTarget.value)},placeholder:"Name",minLength:1,error:!n.name&&"Please enter a name"})]}),(0,o.jsx)(dr.gb,{className:"self-end",onClick:function(){(0,Lr.S)().setEditorState("onboardingFinished",!0)},disabled:!n.name,children:"Next"})]})}function be(r){var e=r.children;return(0,o.jsx)(_r.O.Panel,{children:(0,o.jsx)(I.sg,{className:"pt-1 gap-2 grow cursor-default",children:e})})}function ae(r){var e=r.defs,t=(0,Lr.o)((function(r){return r.theme.editorState.templateSettings})),n=(0,Lr.o)((function(r){return r.actions.setTemplateSetting}));return(0,o.jsx)(o.Fragment,{children:Object.entries(e).map((function(r){var e,g=(0,a.Z)(r,2),b=g[0],s=g[1];if("boolean"===s.type)return(0,o.jsx)(J,{label:s.name,tooltip:(0,o.jsxs)(o.Fragment,{children:[s.tooltip&&(0,o.jsx)("p",{children:s.tooltip}),s.tooltipSmall&&(0,o.jsx)("p",{className:"text-xs",children:s.tooltipSmall})]}),value:null!==(e=t[b])&&void 0!==e?e:s.default,setValue:function(r){return n(b,r)}},b)}))})}function se(r){var e=r.templates,t=r.limit,n=r.setTemplatesUpsellOpen,g=(0,Lr.o)((function(r){return r.theme.editorState.exportTemplates}));return(0,o.jsx)(I.sg,{className:"gap-1 flex-wrap",children:Array.from(Object.entries(e)).map((function(r){var e=(0,a.Z)(r,2),b=e[0],i=e[1];if(!i.hidden){var l=g.includes(b);return(0,o.jsxs)(T.Fragment,{children:[(0,o.jsx)("button",{onClick:function(){return function(r){var e;(e=g.includes(r)?g.filter((function(e){return e!==r})):(0,s.Z)(g).concat([r])).length>t?n(!0):(0,Lr.S)().setEditorState("exportTemplates",e)}(b)},children:(0,o.jsxs)(I.X2,{className:(0,C.Z)("h-full relative p-1 gap-2 text-center justify-between items-center rounded transition-colors",l?"bg-surfaceVariant":"bg-surface text-onSurfaceVariant hover:bg-surfaceVariant/30"),children:[i.iconUrl&&(0,o.jsx)(S(),{src:i.iconUrl,width:24,height:24,alt:""}),(0,o.jsx)(I.X2,{className:"text-sm items-center grow",children:(0,o.jsx)("span",{children:i.name})}),(0,o.jsx)("div",{className:(0,C.Z)("p-1 rounded-full",l?"bg-primary":"ring-1 ring-inset ring-secondary/30"),children:(0,o.jsx)(Vr.NOm,{size:16,className:(0,C.Z)("text-onPrimary transition-opacity",l?"opacity-100":"opacity-0")})})]})}),l&&i.settings&&(0,o.jsx)(I.sg,{className:"mt-1 mb-3",children:(0,o.jsx)(ae,{defs:i.settings})})]},b)}}))})}function ie(r){var e,t,n=r.save,g=r.eligibility,b=(0,T.useState)(!1),a=b[0],s=b[1];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:"font-medium",children:"Editors"}),(0,o.jsx)(ae,{defs:Nr.iy}),(0,o.jsx)("div",{className:"h-3"}),(0,o.jsx)(se,{templates:Nr.IR,limit:null!==(e=null===g||void 0===g?void 0:g.templateLimit)&&void 0!==e?e:Number.MAX_SAFE_INTEGER,setTemplatesUpsellOpen:s}
1),(0,o.jsx)("h2",{className:"font-medium mt-4",children:"Terminals"}),(0,o.jsx)(se,{templates:Cr.T,limit:null!==(t=null===g||void 0===g?void 0:g.templateLimit)&&void 0!==t?t:Number.MAX_SAFE_INTEGER,setTemplatesUpsellOpen:s}),(0,o.jsxs)("p",{className:"mt-4 text-sm",children:["App not supported? ",(0,o.jsx)(Fr(),{href:"/apps/request-new",passHref:!0,children:(0,o.jsx)(cr.a,{children:"Request it"})})]}),(0,o.jsx)($r,{save:n,eligibility:g,setTemplatesUpsellOpen:s}),(0,o.jsx)(yr.L_,{open:a,setOpen:s})]})}function oe(r){var e=r.children;return(0,o.jsx)(_r.O,{className:"text-sm px-3 py-2 -mb-px transition-colors text-secondary ui-selected:text-primary font-medium border-b-2 border-transparent ui-selected:border-primary hover:text-onSurface hover:border-secondary/20",children:e})}function le(r){var e=r.children;return(0,o.jsx)(I.sg,{className:"gap-1 mb-2",children:e})}function ce(r){var e,t,n,g=r.save,b=(0,T.useState)(null),a=b[0],s=b[1],i=(0,Lr.o)((function(r){return r.theme})),l=(0,Lr.o)((function(r){return r.preview})),c=(0,Lr.o)((function(r){return r.actions})),u=i.editorState,d=i.params,m=u.seedColor,h=(0,Xr.ZP)("/themes/".concat(i.id,"/export_eligibility")).data,f=(0,T.useState)(!1),p=f[0],x=f[1];return(0,T.useEffect)((function(){s(null)}),[m]),(0,T.useEffect)((function(){a&&te.test(a)&&((0,Lr.S)().setEditorState("seedColor",a.toLowerCase()),s(null))}),[a]),(0,o.jsxs)(I.sg,{className:"gap-2 pb-4 max-w-[calc(min(512px,100vw-32px))] grow",children:[(0,o.jsxs)(_r.O.Group,{defaultIndex:1,children:[(0,o.jsxs)(_r.O.List,{className:"flex flex-row gap-2 border-b border-surfaceVariant overflow-x-auto overflow-y-hidden","aria-label":"Tabs",children:[(0,o.jsx)(oe,{children:"Basics"}),(0,o.jsx)(oe,{children:"Colors"}),(0,o.jsx)(oe,{children:"Customize"}),(0,o.jsx)(oe,{children:"Advanced"}),(0,o.jsx)(oe,{children:"Export"})]}),(0,o.jsxs)(_r.O.Panels,{children:[(0,o.jsxs)(be,{children:[(0,o.jsxs)(le,{children:[(0,o.jsx)("h2",{className:"font-medium",children:"Name"}),(0,o.jsx)(mr.o,{name:"not-n",autoComplete:"off",value:i.name,onChange:function(r){return c.setThemeProp("name",r.currentTarget.value)},placeholder:"Name",minLength:1,error:!i.name&&"Please enter a name"})]}),(0,o.jsxs)(le,{children:[(0,o.jsx)("h2",{className:"font-medium",children:"Description"}),(0,o.jsx)(mr.K,{value:null!==(e=i.description)&&void 0!==e?e:"",onChange:function(r){return c.setThemeProp("description",r.currentTarget.value)}})]}),(0,o.jsxs)(le,{children:[(0,o.jsx)("h2",{className:"font-medium",children:"Visibility"}),(0,o.jsx)(hr.C,{value:i.public?"public":"private",setValue:function(r){h&&h.canExport&&h.templateLimit>100?c.setThemeProp("public","public"===r):x(!0)},options:Yr})]}),(0,o.jsxs)(le,{children:[(0,o.jsx)("h2",{className:"font-medium",children:"Mode"}),(0,o.jsx)(hr.C,{value:d.type,setValue:c.forParam("type"),options:Wr})]}),(0,o.jsxs)(le,{children:[(0,o.jsx)("h2",{className:"font-medium",children:"Base color"}),(0,o.jsxs)("div",{className:"inline-flex flex-col self-start mt-1",children:[(0,o.jsx)(Br.gW,{color:m,onChange:c.forEditorState("seedColor")}),(0,o.jsx)(mr.o,{className:"font-mono mt-2 self-center",inputClassName:"p-1 w-[calc(7ch+10px)]",value:null!==a&&void 0!==a?a:m,onChange:function(r){return s(r.currentTarget.value.substring(0,7).replace(ne,""))},autoComplete:"off",maxLength:7})]}),(0,o.jsx)(L.MQ,{className:"text-sm mt-1",children:"Changing this will reset hue and colorfulness in \u201cCustomize\u201d."})]}),(0,o.jsxs)(le,{children:[(0,o.jsx)("h2",{className:"font-medium",children:"Colorblind mode"}),(0,o.jsx)(J,{value:d.doCvdCorrection,setValue:c.forParam("doCvdCorrection"),label:"Use colorblind correction",tooltip:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("p",{children:"This makes it easier to tell colors apart if you\u2019re colorblind."})})}),d.doCvdCorrection&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(hr.C,{className:"mt-1",value:d.cvdType,setValue:c.forParam("cvdType"),options:Jr}),(0,o.jsx)(z,{max:1,minLabel:"Weak",maxLabel:"Strong",value:d.cvdStrength,setValue:c.forParam("cvdStrength")})]})]})]}),(0,o.jsxs)(be,{children:[(0,o.jsx)(W,{label:"Hue",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"The main hue or \u201ccolor\u201d, such as red, green, or blue."}
1),(0,o.jsx)("p",{className:"text-xs",children:"Other colors are chosen to work well together with this. Use \u201cColor variety\u201d to change them."})]}),max:360,uiMax:360,minLabel:"Warm",maxLabel:"Cool",value:d.seedHue,setValue:c.forParam("seedHue")}),(0,o.jsx)(X,{label:"Color variety",tooltip:"How many different colors to use for separating parts of code.",min:0,max:2,minLabel:"Calm",maxLabel:"Vibrant",defaultValue:re.hueSpread,value:d.hueSpread,setValue:c.forParam("hueSpread")}),(0,o.jsx)(sr,{previewTheme:l,type:d.type,seedHue:d.seedHue,setSeedHue:c.forParam("seedHue"),accentChroma:d.accentChroma,setAccentChroma:c.forParam("accentChroma"),hueSpreadMode:d.hueSpreadMode}),(0,o.jsx)(or,{hueSpreadMode:d.hueSpreadMode,setHueSpreadMode:c.forParam("hueSpreadMode")})]}),(0,o.jsxs)(be,{children:[(0,o.jsx)("span",{className:"font-medium text-primary",children:"Color"}),(0,o.jsx)(X,{label:"UI & background colorfulness",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"How colorful (vivid) backgrounds and non-highlighted text are."}),(0,o.jsx)("p",{children:"Increasing this into the red section will reduce contrast."}),(0,o.jsx)("p",{className:"text-xs",children:"This includes editor and terminal UI, and non-highlighted code."})]}),min:0,max:w.d,minLabel:"Muted",maxLabel:"Colorful",minLabelTooltip:"Gray",redMin:null!==(t=null===l||void 0===l?void 0:l.ln)&&void 0!==t?t:50,defaultValue:re.neutralChroma,value:d.neutralChroma,setValue:c.forParam("neutralChroma")}),(0,o.jsx)(X,{label:"Code colorfulness",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"How colorful (vivid) highlighted code is."}),(0,o.jsx)("p",{children:"Increasing this into the red section will reduce contrast."}),(0,o.jsx)("p",{className:"text-xs",children:"Use \u201cUI & background colorfulness\u201d for non-highlighted code."})]}),min:0,max:w.i,minLabel:"Muted",maxLabel:"Colorful",minLabelTooltip:"Gray",redMin:null!==(n=null===l||void 0===l?void 0:l.la)&&void 0!==n?n:80,defaultValue:re.accentChroma,value:d.accentChroma,setValue:c.forParam("accentChroma")}),(0,o.jsx)("span",{className:"font-medium text-primary mt-4",children:"Readability"}),(0,o.jsx)(X,{label:"Contrast",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"Contrast between the background and text/code. Affects readability."}),(0,o.jsx)("p",{className:"text-xs",children:"Often used together with brightness."})]}),min:.4,max:1.4,minLabel:"Low",maxLabel:"High",defaultValue:re.contrast,value:d.contrast,setValue:c.forParam("contrast")}),(0,o.jsx)(X,{label:"Brightness",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"How bright colors are, including both background and text."}),(0,o.jsx)("p",{className:"text-xs",children:"Often used together with contrast. Contrast affects the brightness of text compared to the background, while this changes the overall brightness."})]}),min:.5,max:1.4,minLabel:"Dim",maxLabel:"Bright",defaultValue:re.brightness,value:d.brightness,setValue:c.forParam("brightness")}),(0,o.jsx)(L.MQ,{className:"text-sm mb-4",children:"Contrast and brightness are often used together."}),(0,o.jsx)(z,{label:"Separate code by",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"How much to use contrast/brightness and colorfulness to separate different parts of code."}),(0,o.jsx)("p",{className:"text-xs",children:"By default, only hue (\u201ccolor\u201d) is used for this; all code is equally bright and colorful."})]}),max:4,minLabel:"Color",maxLabel:"Contrast",value:d.lightnessVariance,setValue:c.forParam("lightnessVariance")}),(0,o.jsx)(z,{max:3.5,minLabel:"Hue",maxLabel:"Colorfulness",value:d.chromaVariance,setValue:c.forParam("chromaVariance")})]}),(0,o.jsxs)(be,{children:[(0,o.jsx)("p",{className:"text-sm",children:"You don\u2019t need to change these settings in most cases. We recommend keeping them on."}),(0,o.jsx)(J,{value:d.balanceChroma,setValue:c.forParam("balanceChroma"),label:"Balance colors",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"Balance colors of different parts of code and UI, so they\u2019re more coherent."}),(0,o.jsx)("p",{children:"Disable to make it as colorful as possible."})]})}),(0,o.jsx)(J,{value:d.strictSemantic,setValue:c.forParam("strictSemantic"),label:"Keep semantic colors",tooltip:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"Keep colors with semantic meaning, such as red/green for error/success and terminal colors, and adapt them to the theme."}),(0,o.jsx)("p",{children:"Disable for an immersive theme with only your chosen colors."})]})})]}),(0,o.jsx)(be,{children:(0,o.jsx)(ie,{save:g,eligibility:h})})]})]}),(0,o.jsx)("div",{className:"grow"}),(0,o.jsx)(yr.Ou,{open:p,setOpen:x})]})}function ue(r){var e=r.save,t=(0,Lr.o)(),g=t.theme,b=t.preview,a=g.params,l=g.editorState,c=l.seedColor,u=l.templateSettings,d=l.onboardingFinished,m=(0,Ur.useUser)();function h(){return f.apply(this,arguments)}function f(){return f=(0,n.Z)((function(){var r,e;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,Mr.XD)((function(){return(0,Mr.nv)(a,u,m)}))];case 1:return r=t.sent(),(0,Lr.S)().setPreview(r),[3,3];case 2:return e=t.sent(),console.error(e),(0,lr.cB)("Can\u2019t update theme preview","".concat(e)),[3,3];case 3:return[2]}}
1))})),f.apply(this,arguments)}var p=[JSON.stringify(a),c];return(0,T.useEffect)((function(){var r=setTimeout(h,100);return function(){return clearTimeout(r)}}),(0,s.Z)(p).concat([JSON.stringify(u)])),(0,o.jsx)(I.X2,{className:"justify-center",children:(0,o.jsxs)(I.X2,{className:"w-full max-w-screen-2xl gap-4 justify-around flex-wrap",children:[(0,o.jsx)(I.sg,{className:"gap-10 grow max-w-md",children:d?(0,o.jsx)(ce,{save:e}):(0,o.jsx)(ge,{})}),(0,o.jsx)(jr.G_,{theme:b,className:"self-start"})]})})}function de(r){var e=r.id,t=(0,Hr.useRouter)(),a=(0,Ur.useUser)().user,s=(0,T.useRef)(null),l=(0,T.useRef)(null),c=(0,Xr.ZP)(e?"/themes/".concat(e):null),u=c.data,d=c.error,m=(0,Lr.o)((function(r){return r.actions})),h=(0,Lr.o)((function(r){return r.theme})),f=JSON.stringify(u),p=u&&a&&u.theme.userId!==(null===a||void 0===a?void 0:a.id);function x(){return v.apply(this,arguments)}function v(){return v=(0,n.Z)((function(){var r,t,a,o,c;return(0,i.__generator)(this,(function(u){switch(u.label){case 0:return r=s.current,t=Lr.o.getState().theme,r&&t?(a={},(0,wr.h)((a.old=r,a.new=t,a)),Ir(t,r)?((0,wr.h)("no changes"),[2]):t.name?(o=Lr.o.getState().preview,c={},[4,(0,Xr.JG)("/themes/".concat(e),(0,n.Z)((function(){var r,n,a,c,u,d,m;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return c={},u={},d={},[4,Rr.supabaseClient.from("themes").update((0,b.Z)((0,g.Z)(c,t),(u.updatedAt=(new Date).toISOString(),u))).match((d.id=e,d)).single()];case 1:if(r=i.sent(),n=r.data,a=r.error,(0,wr.h)("mutate",n,a),a)throw a;if(!n)throw new Error("Failed to save");return s.current=t,l.current&&(window.removeEventListener("beforeunload",l.current),l.current=null),[2,((m={}).theme=n,m.preview=o,m)]}}))})),(c.optimisticData={theme:t,preview:o},c.rollbackOnError=!0,c))]):((0,wr.h)("no name"),[2])):[2];case 1:return u.sent(),[2]}}))})),v.apply(this,arguments)}return(0,Er.Ps)((function(){p&&t.replace("/themes/".concat(e))}),[f,a]),(0,Er.Ps)((function(){u&&(h.id!==e?(m.replace(u),s.current=u.theme):s.current||(s.current=h,m.replace(u)),Lr.o.getState().preview||m.setPreview(u.preview))}),[f]),(0,T.useEffect)((function(){var r=setTimeout(x,5e3);return function(){return clearTimeout(r)}}),[h]),(0,T.useEffect)((function(){return function(){x()}}),[]),(0,T.useEffect)((function(){var r=function(r){r.preventDefault(),r.returnValue="",x()},e=s.current,t=Lr.o.getState().theme;if(t&&e&&!Ir(t,e))return window.addEventListener("beforeunload",r),l.current=r,function(){l.current&&(window.removeEventListener("beforeunload",r),l.current=null)}}),[h]),!u&&d?(0,o.jsx)(lr.Bc,{title:"Can\u2019t load theme",children:d}):!u||p||h.id!==e?(0,o.jsx)(ur.i,{}):(0,o.jsx)(ue,{save:x})}var me=(0,Sr.U)((function(){var r=(0,Hr.useRouter)().query.id,e=(0,a.Z)((0,Lr.o)((function(r){return[r.theme.id,r.theme.name]}),zr.Z),2),t=e[0],n=e[1],g=r===t?n:"theme";return(0,o.jsxs)(vr.N2,{hideFooter:!0,children:[(0,o.jsx)(fr.W,{title:"Edit ".concat(g)}),(0,o.jsx)(xr.b,{children:(0,o.jsx)(de,{id:r})})]})}))},4186:function(r,e,t){"use strict";t.d(e,{U:function(){return o}});var n=t(1501),g=t(9088),b=t(8589),a=(t(613),t(9604)),s=t(9026),i=t(8855);function o(r){return function(e){var t=(0,a.useUser)(),o=t.user,l=t.error,c=t.isLoading,u=(0,s.useRouter)();return(0,i.useEffect)((function(){if(!(o&&!l||c)){var r=window.location.toString();if(!r.includes("#access_token=")){var e=r.replace(new URL(r).origin,"")||"/";u.replace("/signin?redirectTo=".concat(encodeURIComponent(e)))}}}),[o,l,c]),l?(0,g.jsx)(b.Bc,{title:"Can\u2019t sign in",children:l}):(0,g.jsx)(r,(0,n.Z)({},e))}}}},function(r){r.O(0,[7183,3222,6494,4037,7160,5056,1164,6739,5419,9774,2888,179],(function(){return e=4980,r(r.s=e);var e}));var e=r.O();_N_E=e}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.