"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[5152],{71237:(t,o,e)=>{e.r(o),e.d(o,{default:()=>h,getLayer:()=>c});var a=e(91059),r=e(95579),n=e(41857),l=e(25564),i=e(47823),u=e(32548),d=e(2445);function s(t){var o,e;return(0,d.FD)("div",{className:"deckgl-tooltip",children:[(0,d.Y)(u.A,{label:(0,r.t)("Centroid (Longitude and Latitude): "),value:`(${null==t?void 0:t.coordinate[0]}, ${null==t?void 0:t.coordinate[1]})`}),(0,d.Y)(u.A,{label:(0,r.t)("Threshold: "),value:`${null==t||null==(o=t.object)||null==(e=o.contour)?void 0:e.threshold}`})]})}const c=function(t,o,e,r){const i=t,{aggregation:u="SUM",js_data_mutator:d,contours:c,cellSize:h="200"}=i;let p=o.data.features;const g=null==c?void 0:c.map((t=>{const{lowerThreshold:o,upperThreshold:e,color:a,strokeWidth:r}=t;return e?{threshold:[o,e],color:[a.r,a.g,a.b]}:{threshold:o,color:[a.r,a.g,a.b],strokeWidth:r}}));return d&&(p=(0,l.A)(i.js_data_mutator)(p)),new a.A({id:`contourLayer-${i.slice_id}`,data:p,contours:g,cellSize:Number(h||"200"),aggregation:u.toUpperCase(),getPosition:t=>t.position,getWeight:t=>t.weight||0,...(0,n.T)(i,r,s)})},h=(0,i.y)(c,(function(t){return t.map((t=>t.position))}))},34460:(t,o,e)=>{function a({dataBounds:t,getBinId:o,padding:e=0}){const a=[t[0],t[1],[t[0][0],t[1][1]],[t[1][0],t[0][1]]].map((t=>o(t))),r=Math.min(...a.map((t=>t[0])))-e,n=Math.min(...a.map((t=>t[1])))-e;return[[r,Math.max(...a.map((t=>t[0])))+e+1],[n,Math.max(...a.map((t=>t[1])))+e+1]]}e.d(o,{O:()=>a})}}]);