(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65258],{65258:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var i=r(67841),s=r(79477),o=r(64833),n=r(62867),a=r(56441);let l={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],"fuchsia / magenta":[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],"aqua / cyan":[0,255,255],orange:[255,165,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50],rebeccapurple:[102,51,153]};/*! Copyright (C) 2010-2013 Raymond Hill: https://github.com/gorhill/Javascript-Voronoi MIT License: See https://github.com/gorhill/Javascript-Voronoi/LICENSE.md */function h(){this.vertices=null,this.edges=null,this.cells=null,this.toRecycle=null,this.beachsectionJunkyard=[],this.circleEventJunkyard=[],this.vertexJunkyard=[],this.edgeJunkyard=[],this.cellJunkyard=[]}h.prototype.reset=function(){if(this.beachline||(this.beachline=new this.RBTree),this.beachline.root)for(var e=this.beachline.getFirst(this.beachline.root);e;)this.beachsectionJunkyard.push(e),e=e.rbNext;this.beachline.root=null,this.circleEvents||(this.circleEvents=new this.RBTree),this.circleEvents.root=this.firstCircleEvent=null,this.vertices=[],this.edges=[],this.cells=[]},h.prototype.sqrt=Math.sqrt,h.prototype.abs=Math.abs,h.prototype.ε=h.ε=1e-9,h.prototype.invε=h.invε=1/h.ε,h.prototype.equalWithEpsilon=function(e,t){return 1e-9>this.abs(e-t)},h.prototype.greaterThanWithEpsilon=function(e,t){return e-t>1e-9},h.prototype.greaterThanOrEqualWithEpsilon=function(e,t){return t-e<1e-9},h.prototype.lessThanWithEpsilon=function(e,t){return t-e>1e-9},h.prototype.lessThanOrEqualWithEpsilon=function(e,t){return e-t<1e-9},h.prototype.RBTree=function(){this.root=null},h.prototype.RBTree.prototype.rbInsertSuccessor=function(e,t){var r,i,s;if(e){if(t.rbPrevious=e,t.rbNext=e.rbNext,e.rbNext&&(e.rbNext.rbPrevious=t),e.rbNext=t,e.rbRight){for(e=e.rbRight;e.rbLeft;)e=e.rbLeft;e.rbLeft=t}else e.rbRight=t;r=e}else this.root?(e=this.getFirst(this.root),t.rbPrevious=null,t.rbNext=e,e.rbPrevious=t,e.rbLeft=t,r=e):(t.rbPrevious=t.rbNext=null,this.root=t,r=null);for(t.rbLeft=t.rbRight=null,t.rbParent=r,t.rbRed=!0,e=t;r&&r.rbRed;)i=r.rbParent,r===i.rbLeft?(s=i.rbRight)&&s.rbRed?(r.rbRed=s.rbRed=!1,i.rbRed=!0,e=i):(e===r.rbRight&&(this.rbRotateLeft(r),r=(e=r).rbParent),r.rbRed=!1,i.rbRed=!0,this.rbRotateRight(i)):(s=i.rbLeft)&&s.rbRed?(r.rbRed=s.rbRed=!1,i.rbRed=!0,e=i):(e===r.rbLeft&&(this.rbRotateRight(r),r=(e=r).rbParent),r.rbRed=!1,i.rbRed=!0,this.rbRotateLeft(i)),r=e.rbParent;this.root.rbRed=!1},h.prototype.RBTree.prototype.rbRemoveNode=function(e){e.rbNext&&(e.rbNext.rbPrevious=e.rbPrevious),e.rbPrevious&&(e.rbPrevious.rbNext=e.rbNext),e.rbNext=e.rbPrevious=null;var t,r,i,s=e.rbParent,o=e.rbLeft,n=e.rbRight;if(i=o?n?this.getFirst(n):o:n,s?s.rbLeft===e?s.rbLeft=i:s.rbRight=i:this.root=i,o&&n?(t=i.rbRed,i.rbRed=e.rbRed,i.rbLeft=o,o.rbParent=i,i!==n?(s=i.rbParent,i.rbParent=e.rbParent,e=i.rbRight,s.rbLeft=e,i.rbRight=n,n.rbParent=i):(i.rbParent=s,s=i,e=i.rbRight)):(t=e.rbRed,e=i),e&&(e.rbParent=s),!t){if(e&&e.rbRed){e.rbRed=!1;return}do{if(e===this.root)break;if(e===s.rbLeft){if((r=s.rbRight).rbRed&&(r.rbRed=!1,s.rbRed=!0,this.rbRotateLeft(s),r=s.rbRight),r.rbLeft&&r.rbLeft.rbRed||r.rbRight&&r.rbRight.rbRed){r.rbRight&&r.rbRight.rbRed||(r.rbLeft.rbRed=!1,r.rbRed=!0,this.rbRotateRight(r),r=s.rbRight),r.rbRed=s.rbRed,s.rbRed=r.rbRight.rbRed=!1,this.rbRotateLeft(s),e=this.root;break}}else if((r=s.rbLeft).rbRed&&(r.rbRed=!1,s.rbRed=!0,this.rbRotateRight(s),r=s.rbLeft),r.rbLeft&&r.rbLeft.rbRed||r.rbRight&&r.rbRight.rbRed){r.rbLeft&&r.rbLeft.rbRed||(r.rbRight.rbRed=!1,r.rbRed=!0,this.rbRotateLeft(r),r=s.rbLeft),r.rbRed=s.rbRed,s.rbRed=r.rbLeft.rbRed=!1,this.rbRotateRight(s),e=this.root;break}r.rbRed=!0,e=s,s=s.rbParent}while(!e.rbRed);e&&(e.rbRed=!1)}},h.prototype.RBTree.prototype.rbRotateLeft=function(e){var t=e.rbRight,r=e.rbParent;r?r.rbLeft===e?r.rbLeft=t:r.rbRight=t:this.root=t,t.rbParent=r,e.rbParent=t,e.rbRight=t.rbLeft,e.rbRight&&(e.rbRight.rbParent=e),t.rbLeft=e},h.prototype.RBTree.prototype.rbRotateRight=function(e){var t=e.rbLeft,r=e.rbParent;r?r.rbLeft===e?r.rbLeft=t:r.rbRight=t:this.root=t,t.rbParent=r,e.rbParent=t,e.rbLeft=t.rbRight,e.rbLeft&&(e.rbLeft.rbParent=e),t.rbRight=e},h.prototype.RBTree.prototype.getFirst=function(e){for(;e.rbLeft;)e=e.rbLeft;return e},h.prototype.RBTree.prototype.getLast=function(e){for(;e.rbRight;)e=e.rbRight;return e},h.prototype.Diagram=function(e){this.site=e},h.prototype.Cell=function(e){this.site=e,this.halfedges=[],this.closeMe=!1},h.prototype.Cell.prototype.init=function(e){return this.site=e,this.halfedges=[],this.closeMe=!1,this},h.prototype.createCell=function(e){var t=this.cellJunkyard.pop();return t?t.init(e):new this.Cell(e)},h.prototype.Cell.prototype.prepareHalfedges=function(){for(var e,t=this.halfedges,r=t.length;r--;)(e=t[r].edge).vb&&e.va||t.splice(r,1);return t.sort(function(e,t){return t.angle-e.angle}),t.length},h.prototype.Cell.prototype.getNeighborIds=function(){for(var e,t=[],r=this.halfedges.length;r--;)null!==(e=this.halfedges[r].edge).lSite&&e.lSite.voronoiId!=this.site.voronoiId?t.push(e.lSite.voronoiId):null!==e.rSite&&e.rSite.voronoiId!=this.site.voronoiId&&t.push(e.rSite.voronoiId);return t},h.prototype.Cell.prototype.getBbox=function(){for(var e,t,r,i=this.halfedges,s=i.length,o=1/0,n=1/0,a=-1/0,l=-1/0;s--;)t=(e=i[s].getStartpoint()).x,r=e.y,ta&&(a=t),r>l&&(l=r);return{x:o,y:n,width:a-o,height:l-n}},h.prototype.Cell.prototype.pointIntersection=function(e,t){for(var r,i,s,o,n=this.halfedges,a=n.length;a--;){if(i=(r=n[a]).getStartpoint(),s=r.getEndpoint(),!(o=(t-i.y)*(s.x-i.x)-(e-i.x)*(s.y-i.y)))return 0;if(o>0)return -1}return 1},h.prototype.Vertex=function(e,t){this.x=e,this.y=t},h.prototype.Edge=function(e,t){this.lSite=e,this.rSite=t,this.va=this.vb=null},h.prototype.Halfedge=function(e,t,r){if(this.site=t,this.edge=e,r)this.angle=Math.atan2(r.y-t.y,r.x-t.x);else{var i=e.va,s=e.vb;this.angle=e.lSite===t?Math.atan2(s.x-i.x,i.y-s.y):Math.atan2(i.x-s.x,s.y-i.y)}},h.prototype.createHalfedge=function(e,t,r){return new this.Halfedge(e,t,r)},h.prototype.Halfedge.prototype.getStartpoint=function(){return this.edge.lSite===this.site?this.edge.va:this.edge.vb},h.prototype.Halfedge.prototype.getEndpoint=function(){return this.edge.lSite===this.site?this.edge.vb:this.edge.va},h.prototype.createVertex=function(e,t){var r=this.vertexJunkyard.pop();return r?(r.x=e,r.y=t):r=new this.Vertex(e,t),this.vertices.push(r),r},h.prototype.createEdge=function(e,t,r,i){var s=this.edgeJunkyard.pop();return s?(s.lSite=e,s.rSite=t,s.va=s.vb=null):s=new this.Edge(e,t),this.edges.push(s),r&&this.setEdgeStartpoint(s,e,t,r),i&&this.setEdgeEndpoint(s,e,t,i),this.cells[e.voronoiId].halfedges.push(this.createHalfedge(s,e,t)),this.cells[t.voronoiId].halfedges.push(this.createHalfedge(s,t,e)),s},h.prototype.createBorderEdge=function(e,t,r){var i=this.edgeJunkyard.pop();return i?(i.lSite=e,i.rSite=null):i=new this.Edge(e,null),i.va=t,i.vb=r,this.edges.push(i),i},h.prototype.setEdgeStartpoint=function(e,t,r,i){e.va||e.vb?e.lSite===r?e.vb=i:e.va=i:(e.va=i,e.lSite=t,e.rSite=r)},h.prototype.setEdgeEndpoint=function(e,t,r,i){this.setEdgeStartpoint(e,r,t,i)},h.prototype.Beachsection=function(){},h.prototype.createBeachsection=function(e){var t=this.beachsectionJunkyard.pop();return t||(t=new this.Beachsection),t.site=e,t},h.prototype.leftBreakPoint=function(e,t){var r=e.site,i=r.x,s=r.y,o=s-t;if(!o)return i;var n=e.rbPrevious;if(!n)return-1/0;var a=(r=n.site).x,l=r.y,h=l-t;if(!h)return a;var c=a-i,b=1/o-1/h,p=c/h;return b?(-p+this.sqrt(p*p-2*b*(c*c/(-2*h)-l+h/2+s-o/2)))/b+i:(i+a)/2},h.prototype.rightBreakPoint=function(e,t){var r=e.rbNext;if(r)return this.leftBreakPoint(r,t);var i=e.site;return i.y===t?i.x:1/0},h.prototype.detachBeachsection=function(e){this.detachCircleEvent(e),this.beachline.rbRemoveNode(e),this.beachsectionJunkyard.push(e)},h.prototype.removeBeachsection=function(e){var t=e.circleEvent,r=t.x,i=t.ycenter,s=this.createVertex(r,i),o=e.rbPrevious,n=e.rbNext,a=[e],l=Math.abs;this.detachBeachsection(e);for(var h=o;h.circleEvent&&1e-9>l(r-h.circleEvent.x)&&1e-9>l(i-h.circleEvent.ycenter);)o=h.rbPrevious,a.unshift(h),this.detachBeachsection(h),h=o;a.unshift(h),this.detachCircleEvent(h);for(var c=n;c.circleEvent&&1e-9>l(r-c.circleEvent.x)&&1e-9>l(i-c.circleEvent.ycenter);)n=c.rbNext,a.push(c),this.detachBeachsection(c),c=n;a.push(c),this.detachCircleEvent(c);var b,p=a.length;for(b=1;b1e-9)a=a.rbLeft;else if((s=o-this.rightBreakPoint(a,n))>1e-9){if(!a.rbRight){t=a;break}a=a.rbRight}else{i>-.000000001?(t=a.rbPrevious,r=a):s>-.000000001?(t=a,r=a.rbNext):t=r=a;break}var l=this.createBeachsection(e);if(this.beachline.rbInsertSuccessor(t,l),t||r){if(t===r){this.detachCircleEvent(t),r=this.createBeachsection(t.site),this.beachline.rbInsertSuccessor(l,r),l.edge=r.edge=this.createEdge(t.site,l.site),this.attachCircleEvent(t),this.attachCircleEvent(r);return}if(t&&!r){l.edge=this.createEdge(t.site,l.site);return}if(t!==r){this.detachCircleEvent(t),this.detachCircleEvent(r);var h=t.site,c=h.x,b=h.y,p=e.x-c,u=e.y-b,d=r.site,f=d.x-c,g=d.y-b,y=2*(p*g-u*f),v=p*p+u*u,x=f*f+g*g,R=this.createVertex((g*v-u*x)/y+c,(p*x-f*v)/y+b);this.setEdgeStartpoint(r.edge,h,d,R),l.edge=this.createEdge(h,e,void 0,R),r.edge=this.createEdge(e,d,void 0,R),this.attachCircleEvent(t),this.attachCircleEvent(r);return}}},h.prototype.CircleEvent=function(){this.arc=null,this.rbLeft=null,this.rbNext=null,this.rbParent=null,this.rbPrevious=null,this.rbRed=!1,this.rbRight=null,this.site=null,this.x=this.y=this.ycenter=0},h.prototype.attachCircleEvent=function(e){var t=e.rbPrevious,r=e.rbNext;if(t&&r){var i=t.site,s=e.site,o=r.site;if(i!==o){var n=s.x,a=s.y,l=i.x-n,h=i.y-a,c=o.x-n,b=o.y-a,p=2*(l*b-h*c);if(!(p>=-.000000000002)){var u=l*l+h*h,d=c*c+b*b,f=(b*u-h*d)/p,g=(l*d-c*u)/p,y=g+a,v=this.circleEventJunkyard.pop();v||(v=new this.CircleEvent),v.arc=e,v.site=s,v.x=f+n,v.y=y+this.sqrt(f*f+g*g),v.ycenter=y,e.circleEvent=v;for(var x=null,R=this.circleEvents.root;R;)if(v.y=a)return!1;if(p>d){if(!o||o.y=h)return!1;r=this.createVertex(g,h)}else{if(!o||o.y>h)o=this.createVertex(g,h);else if(o.y1){if(p>d){if(!o||o.y=h)return!1;r=this.createVertex((h-s)/i,h)}else{if(!o||o.y>h)o=this.createVertex((h-s)/i,h);else if(o.y=a)return!1;r=this.createVertex(a,i*a+s)}else{if(!o||o.x>a)o=this.createVertex(a,i*a+s);else if(o.x0){if(b>a)return!1;b>n&&(n=b)}if(c=t.xr-r,0===l&&c<0)return!1;if(b=c/l,l<0){if(b>a)return!1;b>n&&(n=b)}else if(l>0){if(b0){if(b>a)return!1;b>n&&(n=b)}if(c=t.yb-i,0===h&&c<0)return!1;if(b=c/h,h<0){if(b>a)return!1;b>n&&(n=b)}else if(h>0){if(b0&&(e.va=this.createVertex(r+n*l,i+n*h)),a<1&&(e.vb=this.createVertex(r+a*l,i+a*h)),(n>0||a<1)&&(this.cells[e.lSite.voronoiId].closeMe=!0,this.cells[e.rSite.voronoiId].closeMe=!0),!0},h.prototype.clipEdges=function(e){for(var t,r=this.edges,i=r.length,s=Math.abs;i--;)t=r[i],(!this.connectEdge(t,e)||!this.clipEdge(t,e)||1e-9>s(t.va.x-t.vb.x)&&1e-9>s(t.va.y-t.vb.y))&&(t.va=t.vb=null,r.splice(i,1))},h.prototype.closeCells=function(e){for(var t,r,i,s,o,n,a,l,h,c=e.xl,b=e.xr,p=e.yt,u=e.yb,d=this.cells,f=d.length,g=Math.abs;f--;)if((t=d[f]).prepareHalfedges()&&t.closeMe){for(s=(i=t.halfedges).length,r=0;r=1e-9||g(n.y-l.y)>=1e-9)switch(!0){case this.equalWithEpsilon(n.x,c)&&this.lessThanWithEpsilon(n.y,u):if(h=this.equalWithEpsilon(l.x,c),a=this.createVertex(c,h?l.y:u),o=this.createBorderEdge(t.site,n,a),r++,i.splice(r,0,this.createHalfedge(o,t.site,null)),s++,h)break;n=a;case this.equalWithEpsilon(n.y,u)&&this.lessThanWithEpsilon(n.x,b):if(h=this.equalWithEpsilon(l.y,u),a=this.createVertex(h?l.x:b,u),o=this.createBorderEdge(t.site,n,a),r++,i.splice(r,0,this.createHalfedge(o,t.site,null)),s++,h)break;n=a;case this.equalWithEpsilon(n.x,b)&&this.greaterThanWithEpsilon(n.y,p):if(h=this.equalWithEpsilon(l.x,b),a=this.createVertex(b,h?l.y:p),o=this.createBorderEdge(t.site,n,a),r++,i.splice(r,0,this.createHalfedge(o,t.site,null)),s++,h)break;n=a;case this.equalWithEpsilon(n.y,p)&&this.greaterThanWithEpsilon(n.x,c):if(h=this.equalWithEpsilon(l.y,p),a=this.createVertex(h?l.x:c,p),o=this.createBorderEdge(t.site,n,a),r++,i.splice(r,0,this.createHalfedge(o,t.site,null)),s++,h||(n=a,h=this.equalWithEpsilon(l.x,c),a=this.createVertex(c,h?l.y:u),o=this.createBorderEdge(t.site,n,a),r++,i.splice(r,0,this.createHalfedge(o,t.site,null)),s++,h)||(n=a,h=this.equalWithEpsilon(l.y,u),a=this.createVertex(h?l.x:b,u),o=this.createBorderEdge(t.site,n,a),r++,i.splice(r,0,this.createHalfedge(o,t.site,null)),s++,h)||(n=a,h=this.equalWithEpsilon(l.x,b),a=this.createVertex(b,h?l.y:p),o=this.createBorderEdge(t.site,n,a),r++,i.splice(r,0,this.createHalfedge(o,t.site,null)),s++,h))break;default:throw"Voronoi.closeCells() > this makes no sense!"}r++}t.closeMe=!1}},h.prototype.quantizeSites=function(e){for(var t,r=this.ε,i=e.length;i--;)(t=e[i]).x=Math.floor(t.x/r)*r,t.y=Math.floor(t.y/r)*r},h.prototype.recycle=function(e){if(e){if(e instanceof this.Diagram)this.toRecycle=e;else throw"Voronoi.recycleDiagram() > Need a Diagram object."}},h.prototype.compute=function(e,t){var r=new Date;this.reset(),this.toRecycle&&(this.vertexJunkyard=this.vertexJunkyard.concat(this.toRecycle.vertices),this.edgeJunkyard=this.edgeJunkyard.concat(this.toRecycle.edges),this.cellJunkyard=this.cellJunkyard.concat(this.toRecycle.cells),this.toRecycle=null);var i=e.slice(0);i.sort(function(e,t){return t.y-e.y||t.x-e.x});for(var s,o,n,a=i.pop(),l=0,h=this.cells;;)if(n=this.firstCircleEvent,a&&(!n||a.y{let e,t;return e={},t=[],Object.entries(l).forEach(r=>{var i,s,o;let n,a,l,[h,c]=r,[b,p,u]=c,[d,f,g]=[60*((l=(a=(n=Math.max(i=b/255,s=p/255,o=u/255))-Math.min(i,s,o))&&(n==i?(s-o)/a:n==s?2+(o-i)/a:4+(i-s)/a))<0?l+6:l),n&&a/n,n],y=(f+g/5)*384,v=d/360*2*Math.PI,x=Math.cos(v)*y+512,R=Math.sin(v)*y+512;t.push({x:x,y:R}),e[[x,R]]=h}),new h().compute(t,{xl:0,xr:1024,yt:0,yb:1024}).cells.map(t=>{if(t.closeMe){console.warn("cell",t,"needs closing");return}let r=e[[t.site.x,t.site.y]],[i,s,o]=l[r],n="";return t.halfedges.forEach(e=>{let t=e.getStartpoint();n+="".concat(t.x," ").concat(t.y,", ")}),n=n.replace(/, $/,""),{colorName:r,rgb:"rgb(".concat(i," ").concat(s," ").concat(o,")"),points:n}}).filter(e=>!!e)},[]);return(0,i.jsxs)(c,{children:[(0,i.jsxs)(b,{children:[(0,i.jsx)(p,{}),(0,i.jsxs)(u,{width:"100%",height:"100%",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:[n.map(e=>(0,i.jsx)(d,{points:e.points,fill:e.rgb,stroke:e.rgb,strokeWidth:"1px",onMouseEnter:()=>{t(e)}},e.colorName)),e&&(0,i.jsx)(d,{points:e.points,fill:"none",stroke:r?"black":e.rgb,strokeWidth:r?"5px":"1px",strokeLinecap:"round",strokeLinejoin:"round"},e.colorName)]})]}),(0,i.jsx)(f,{style:{opacity:r?1:0},children:e&&(0,i.jsxs)(g,{children:[(0,i.jsx)(y,{style:{backgroundColor:e.rgb}}),(0,i.jsx)(v,{children:e.colorName})]})}),(0,i.jsxs)(x,{children:["Created by Anthony Lieuallen. MIT Licensed."," ",(0,i.jsx)(a.Z,{href:"https://github.com/arantius/web-color-wheel",children:"View source on Github"}),"."]})]})};r(13053)},13053:e=>{e.exports={w1a3f9oj:"w1a3f9oj",wboebyu:"wboebyu",b5l50im:"b5l50im",s102wpjq:"s102wpjq",pqpi84s:"pqpi84s",c1lsw7vc:"c1lsw7vc",c1rmxwj3:"c1rmxwj3",c19dp59v:"c19dp59v",chkqnj9:"chkqnj9",aeqosa0:"aeqosa0"}}}]); //# sourceMappingURL=65258.6eddba6433725e63.js.map