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EAAM,CAAC,OAAO,CAAC,GAC7C,GAKA,EAAe,MAAM,IAAI,CAAC,IAAI,IAAI,EAAc,IAAI,CAAC,SAAU,CAAC,CAAE,CAAC,EAAI,OAAO,WAAW,GAAK,WAAW,EAAI,KACxG,GAAG,CAAC,GACJ,IAAI,CAAC,GAOV,IAAI,EAAQ,KAAK,GAAG,CAAC,KAAK,CAAC,KAAM,GAC7B,EAAO,KAAK,GAAG,CAAC,KAAK,CAAC,KAAM,GAC5B,EAAY,CAAM,CAAC,CAAQ,CAAC,EAAS,OAAO,CAAC,GAAM,CAAC,CAAC,qBAAqB,GAAG,KAAK,AACtF,CAAA,EAAS,IAAI,CAAG,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,EAAS,CAAA,EAAO,CAAA,GAAc,EAAG,MACpE,EAAS,SAAS,CAAG,oBACzB,MAGI,EAAS,UAAU,CAAG,QAE9B,CAEA,EAAc,GACd,EAAc,GAClB,CACJ,EAAG,CAAC,EAAU,EAAO,EACd,CAAC,EAAY,EAAW,AACnC,C,G,E,Q,S,C,C,C,MCxXW,EAHX,OAAO,cAAc,CAAC,EAAA,OAAA,CAAS,aAAc,CAAE,MAAO,CAAA,CAAK,GAC3D,EAAA,OAAA,CAAQ,SAAS,CAAG,KAAK,EAGrB,CADO,EAKI,EAAA,OAAA,CAAQ,SAAS,EAAK,CAAA,EAAA,OAAA,CAAQ,SAAS,CAAG,CAAC,CAAA,GAJ5C,KAAQ,CAAG,WACrB,EAAU,IAAO,CAAG,UACpB,EAAU,IAAO,CAAG,YACpB,EAAU,EAAK,CAAG,Q","sources":["","node_modules/react-range/lib/index.js","node_modules/react-range/lib/Range.js","node_modules/react-range/lib/utils.js","node_modules/react-range/lib/types.js"],"sourcesContent":["(function () {\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n var parcelRequire = $parcel$global[\"parcelRequire7bbe\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"a88f7\", function(module, exports) {\n\"use strict\";\nvar $76010b95547889cc$var$__importDefault = module.exports && module.exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.checkValuesAgainstBoundaries = module.exports.relativeValue = module.exports.useThumbOverlap = module.exports.Direction = module.exports.getTrackBackground = module.exports.Range = void 0;\n\nvar $76010b95547889cc$var$Range_1 = $76010b95547889cc$var$__importDefault((parcelRequire(\"9lL0c\")));\nmodule.exports.Range = $76010b95547889cc$var$Range_1.default;\n\nvar $5oGj6 = parcelRequire(\"5oGj6\");\nObject.defineProperty(module.exports, \"getTrackBackground\", {\n enumerable: true,\n get: function() {\n return $5oGj6.getTrackBackground;\n }\n});\nObject.defineProperty(module.exports, \"useThumbOverlap\", {\n enumerable: true,\n get: function() {\n return $5oGj6.useThumbOverlap;\n }\n});\nObject.defineProperty(module.exports, \"relativeValue\", {\n enumerable: true,\n get: function() {\n return $5oGj6.relativeValue;\n }\n});\nObject.defineProperty(module.exports, \"checkValuesAgainstBoundaries\", {\n enumerable: true,\n get: function() {\n return $5oGj6.checkValuesAgainstBoundaries;\n }\n});\n\nvar $6tF3R = parcelRequire(\"6tF3R\");\nObject.defineProperty(module.exports, \"Direction\", {\n enumerable: true,\n get: function() {\n return $6tF3R.Direction;\n }\n});\n\n});\nparcelRegister(\"9lL0c\", function(module, exports) {\n\"use strict\";\nvar $6cea88e72a52882e$var$__extends = module.exports && module.exports.__extends || function() {\n var extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar $6cea88e72a52882e$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {\n enumerable: true,\n get: function() {\n return m[k];\n }\n };\n Object.defineProperty(o, k2, desc);\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $6cea88e72a52882e$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $6cea88e72a52882e$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) $6cea88e72a52882e$var$__createBinding(result, mod, k);\n }\n $6cea88e72a52882e$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $6cea88e72a52882e$var$__spreadArray = module.exports && module.exports.__spreadArray || function(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\n\nvar $6cea88e72a52882e$var$React = $6cea88e72a52882e$var$__importStar((parcelRequire(\"dTCkE\")));\n\nvar $5oGj6 = parcelRequire(\"5oGj6\");\n\nvar $6tF3R = parcelRequire(\"6tF3R\");\nvar $6cea88e72a52882e$var$INCREASE_KEYS = [\n \"ArrowRight\",\n \"ArrowUp\",\n \"k\",\n \"PageUp\"\n];\nvar $6cea88e72a52882e$var$DECREASE_KEYS = [\n \"ArrowLeft\",\n \"ArrowDown\",\n \"j\",\n \"PageDown\"\n];\nvar $6cea88e72a52882e$var$Range = /** @class */ function(_super) {\n $6cea88e72a52882e$var$__extends(Range, _super);\n function Range(props) {\n var _this = _super.call(this, props) || this;\n _this.trackRef = $6cea88e72a52882e$var$React.createRef();\n _this.thumbRefs = [];\n _this.state = {\n draggedTrackPos: [\n -1,\n -1\n ],\n draggedThumbIndex: -1,\n thumbZIndexes: new Array(_this.props.values.length).fill(0).map(function(t, i) {\n return i;\n }),\n isChanged: false,\n markOffsets: []\n };\n _this.getOffsets = function() {\n var _a = _this.props, direction = _a.direction, values = _a.values, min = _a.min, max = _a.max;\n var trackElement = _this.trackRef.current;\n var trackRect = trackElement.getBoundingClientRect();\n var trackPadding = (0, $5oGj6.getPaddingAndBorder)(trackElement);\n return _this.getThumbs().map(function(thumb, index) {\n var thumbOffsets = {\n x: 0,\n y: 0\n };\n var thumbRect = thumb.getBoundingClientRect();\n var thumbMargins = (0, $5oGj6.getMargin)(thumb);\n switch(direction){\n case $6tF3R.Direction.Right:\n thumbOffsets.x = (thumbMargins.left + trackPadding.left) * -1;\n thumbOffsets.y = ((thumbRect.height - trackRect.height) / 2 + trackPadding.top) * -1;\n thumbOffsets.x += trackRect.width * (0, $5oGj6.relativeValue)(values[index], min, max) - thumbRect.width / 2;\n return thumbOffsets;\n case $6tF3R.Direction.Left:\n thumbOffsets.x = (thumbMargins.right + trackPadding.right) * -1;\n thumbOffsets.y = ((thumbRect.height - trackRect.height) / 2 + trackPadding.top) * -1;\n thumbOffsets.x += trackRect.width - trackRect.width * (0, $5oGj6.relativeValue)(values[index], min, max) - thumbRect.width / 2;\n return thumbOffsets;\n case $6tF3R.Direction.Up:\n thumbOffsets.x = ((thumbRect.width - trackRect.width) / 2 + thumbMargins.left + trackPadding.left) * -1;\n thumbOffsets.y = -trackPadding.left;\n thumbOffsets.y += trackRect.height - trackRect.height * (0, $5oGj6.relativeValue)(values[index], min, max) - thumbRect.height / 2;\n return thumbOffsets;\n case $6tF3R.Direction.Down:\n thumbOffsets.x = ((thumbRect.width - trackRect.width) / 2 + thumbMargins.left + trackPadding.left) * -1;\n thumbOffsets.y = -trackPadding.left;\n thumbOffsets.y += trackRect.height * (0, $5oGj6.relativeValue)(values[index], min, max) - thumbRect.height / 2;\n return thumbOffsets;\n default:\n return (0, $5oGj6.assertUnreachable)(direction);\n }\n });\n };\n _this.getThumbs = function() {\n if (_this.trackRef && _this.trackRef.current) return Array.from(_this.trackRef.current.children).filter(function(el) {\n return el.hasAttribute(\"aria-valuenow\");\n });\n console.warn(\"No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?\");\n return [];\n };\n _this.getTargetIndex = function(e) {\n return _this.getThumbs().findIndex(function(child) {\n return child === e.target || child.contains(e.target);\n });\n };\n _this.addTouchEvents = function(e) {\n document.addEventListener(\"touchmove\", _this.schdOnTouchMove, {\n passive: false\n });\n document.addEventListener(\"touchend\", _this.schdOnEnd, {\n passive: false\n });\n document.addEventListener(\"touchcancel\", _this.schdOnEnd, {\n passive: false\n });\n };\n _this.addMouseEvents = function(e) {\n document.addEventListener(\"mousemove\", _this.schdOnMouseMove);\n document.addEventListener(\"mouseup\", _this.schdOnEnd);\n };\n _this.onMouseDownTrack = function(e) {\n var _a;\n if (e.button !== 0) return;\n e.persist();\n e.preventDefault();\n _this.addMouseEvents(e.nativeEvent);\n if (_this.props.values.length > 1 && _this.props.draggableTrack) {\n if (_this.thumbRefs.some(function(thumbRef) {\n var _a;\n return (_a = thumbRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target);\n })) return;\n // handle dragging the whole track\n _this.setState({\n draggedTrackPos: [\n e.clientX,\n e.clientY\n ]\n }, function() {\n return _this.onMove(e.clientX, e.clientY);\n });\n } else {\n // get the index of the thumb that is closest to the place where the track is clicked\n var draggedThumbIndex = (0, $5oGj6.getClosestThumbIndex)(_this.thumbRefs.map(function(t) {\n return t.current;\n }), e.clientX, e.clientY, _this.props.direction);\n // move the thumb which is closest to the place where the track is clicked\n (_a = _this.thumbRefs[draggedThumbIndex].current) === null || _a === void 0 || _a.focus();\n _this.setState({\n draggedThumbIndex: draggedThumbIndex\n }, function() {\n return _this.onMove(e.clientX, e.clientY);\n });\n }\n };\n _this.onResize = function() {\n (0, $5oGj6.translateThumbs)(_this.getThumbs(), _this.getOffsets(), _this.props.rtl);\n _this.calculateMarkOffsets();\n };\n _this.onTouchStartTrack = function(e) {\n var _a;\n e.persist();\n _this.addTouchEvents(e.nativeEvent);\n if (_this.props.values.length > 1 && _this.props.draggableTrack) {\n if (_this.thumbRefs.some(function(thumbRef) {\n var _a;\n return (_a = thumbRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target);\n })) return;\n // handle dragging the whole track\n _this.setState({\n draggedTrackPos: [\n e.touches[0].clientX,\n e.touches[0].clientY\n ]\n }, function() {\n return _this.onMove(e.touches[0].clientX, e.touches[0].clientY);\n });\n } else {\n // get the index of the thumb that is closest to the place where the track is clicked\n var draggedThumbIndex = (0, $5oGj6.getClosestThumbIndex)(_this.thumbRefs.map(function(t) {\n return t.current;\n }), e.touches[0].clientX, e.touches[0].clientY, _this.props.direction);\n // move the thumb which is closest to the place where the track is clicked\n (_a = _this.thumbRefs[draggedThumbIndex].current) === null || _a === void 0 || _a.focus();\n _this.setState({\n draggedThumbIndex: draggedThumbIndex\n }, function() {\n return _this.onMove(e.touches[0].clientX, e.touches[0].clientY);\n });\n }\n };\n _this.onMouseOrTouchStart = function(e) {\n if (_this.props.disabled) return;\n var isTouch = (0, $5oGj6.isTouchEvent)(e);\n if (!isTouch && e.button !== 0) return;\n var index = _this.getTargetIndex(e);\n if (index === -1) return;\n if (isTouch) _this.addTouchEvents(e);\n else _this.addMouseEvents(e);\n _this.setState({\n draggedThumbIndex: index,\n thumbZIndexes: _this.state.thumbZIndexes.map(function(t, i) {\n if (i === index) return Math.max.apply(Math, _this.state.thumbZIndexes);\n return t <= _this.state.thumbZIndexes[index] ? t : t - 1;\n })\n });\n };\n _this.onMouseMove = function(e) {\n e.preventDefault();\n _this.onMove(e.clientX, e.clientY);\n };\n _this.onTouchMove = function(e) {\n e.preventDefault();\n _this.onMove(e.touches[0].clientX, e.touches[0].clientY);\n };\n _this.onKeyDown = function(e) {\n var _a = _this.props, values = _a.values, onChange = _a.onChange, step = _a.step, rtl = _a.rtl, direction = _a.direction;\n var isChanged = _this.state.isChanged;\n var index = _this.getTargetIndex(e.nativeEvent);\n var inverter = rtl || direction === $6tF3R.Direction.Left || direction === $6tF3R.Direction.Down ? -1 : 1;\n if (index === -1) return;\n if ($6cea88e72a52882e$var$INCREASE_KEYS.includes(e.key)) {\n e.preventDefault();\n _this.setState({\n draggedThumbIndex: index,\n isChanged: true\n });\n onChange((0, $5oGj6.replaceAt)(values, index, _this.normalizeValue(values[index] + inverter * (e.key === \"PageUp\" ? step * 10 : step), index)));\n } else if ($6cea88e72a52882e$var$DECREASE_KEYS.includes(e.key)) {\n e.preventDefault();\n _this.setState({\n draggedThumbIndex: index,\n isChanged: true\n });\n onChange((0, $5oGj6.replaceAt)(values, index, _this.normalizeValue(values[index] - inverter * (e.key === \"PageDown\" ? step * 10 : step), index)));\n } else if (e.key === \"Tab\") _this.setState({\n draggedThumbIndex: -1\n }, function() {\n // If key pressed when thumb was moving, fire onFinalChange\n if (isChanged) _this.fireOnFinalChange();\n });\n else if (isChanged) _this.fireOnFinalChange();\n };\n _this.onKeyUp = function(e) {\n var isChanged = _this.state.isChanged;\n _this.setState({\n draggedThumbIndex: -1\n }, function() {\n if (isChanged) _this.fireOnFinalChange();\n });\n };\n _this.onMove = function(clientX, clientY) {\n var _a = _this.state, draggedThumbIndex = _a.draggedThumbIndex, draggedTrackPos = _a.draggedTrackPos;\n var _b = _this.props, direction = _b.direction, min = _b.min, max = _b.max, onChange = _b.onChange, values = _b.values, step = _b.step, rtl = _b.rtl;\n if (draggedThumbIndex === -1 && draggedTrackPos[0] === -1 && draggedTrackPos[1] === -1) return null;\n var trackElement = _this.trackRef.current;\n // If component was closed down prematurely, A last onMove could be triggered based on requestAnimationFrame()\n if (!trackElement) return null;\n var trackRect = trackElement.getBoundingClientRect();\n var trackLength = (0, $5oGj6.isVertical)(direction) ? trackRect.height : trackRect.width;\n if (draggedTrackPos[0] !== -1 && draggedTrackPos[1] !== -1) {\n // calculate how much it moved since the last update\n var dX = clientX - draggedTrackPos[0];\n var dY = clientY - draggedTrackPos[1];\n // calculate the delta of the value\n var deltaValue = 0;\n switch(direction){\n case $6tF3R.Direction.Right:\n case $6tF3R.Direction.Left:\n deltaValue = dX / trackLength * (max - min);\n break;\n case $6tF3R.Direction.Down:\n case $6tF3R.Direction.Up:\n deltaValue = dY / trackLength * (max - min);\n break;\n default:\n (0, $5oGj6.assertUnreachable)(direction);\n }\n // invert for RTL\n if (rtl) deltaValue *= -1;\n if (Math.abs(deltaValue) >= step / 2) {\n // adjust delta so it fits into the range\n for(var i = 0; i < _this.thumbRefs.length; i++){\n if (values[i] === max && Math.sign(deltaValue) === 1 || values[i] === min && Math.sign(deltaValue) === -1) return;\n var thumbValue = values[i] + deltaValue;\n if (thumbValue > max) deltaValue = max - values[i];\n else if (thumbValue < min) deltaValue = min - values[i];\n }\n // add the delta to each thumb\n var newValues = values.slice(0);\n for(var i = 0; i < _this.thumbRefs.length; i++)newValues = (0, $5oGj6.replaceAt)(newValues, i, _this.normalizeValue(values[i] + deltaValue, i));\n _this.setState({\n draggedTrackPos: [\n clientX,\n clientY\n ]\n });\n onChange(newValues);\n }\n } else {\n var newValue = 0;\n switch(direction){\n case $6tF3R.Direction.Right:\n newValue = (clientX - trackRect.left) / trackLength * (max - min) + min;\n break;\n case $6tF3R.Direction.Left:\n newValue = (trackLength - (clientX - trackRect.left)) / trackLength * (max - min) + min;\n break;\n case $6tF3R.Direction.Down:\n newValue = (clientY - trackRect.top) / trackLength * (max - min) + min;\n break;\n case $6tF3R.Direction.Up:\n newValue = (trackLength - (clientY - trackRect.top)) / trackLength * (max - min) + min;\n break;\n default:\n (0, $5oGj6.assertUnreachable)(direction);\n }\n // invert for RTL\n if (rtl) newValue = max + min - newValue;\n if (Math.abs(values[draggedThumbIndex] - newValue) >= step / 2) onChange((0, $5oGj6.replaceAt)(values, draggedThumbIndex, _this.normalizeValue(newValue, draggedThumbIndex)));\n }\n };\n _this.normalizeValue = function(value, index) {\n var _a = _this.props, min = _a.min, max = _a.max, step = _a.step, allowOverlap = _a.allowOverlap, values = _a.values;\n return (0, $5oGj6.normalizeValue)(value, index, min, max, step, allowOverlap, values);\n };\n _this.onEnd = function(e) {\n e.preventDefault();\n document.removeEventListener(\"mousemove\", _this.schdOnMouseMove);\n document.removeEventListener(\"touchmove\", _this.schdOnTouchMove);\n document.removeEventListener(\"mouseup\", _this.schdOnEnd);\n document.removeEventListener(\"touchend\", _this.schdOnEnd);\n document.removeEventListener(\"touchcancel\", _this.schdOnEnd);\n if (_this.state.draggedThumbIndex === -1 && _this.state.draggedTrackPos[0] === -1 && _this.state.draggedTrackPos[1] === -1) return null;\n _this.setState({\n draggedThumbIndex: -1,\n draggedTrackPos: [\n -1,\n -1\n ]\n }, function() {\n _this.fireOnFinalChange();\n });\n };\n _this.fireOnFinalChange = function() {\n _this.setState({\n isChanged: false\n });\n var _a = _this.props, onFinalChange = _a.onFinalChange, values = _a.values;\n if (onFinalChange) onFinalChange(values);\n };\n _this.updateMarkRefs = function(props) {\n if (!props.renderMark) {\n _this.numOfMarks = undefined;\n _this.markRefs = undefined;\n return;\n }\n _this.numOfMarks = (props.max - props.min) / _this.props.step;\n _this.markRefs = [];\n for(var i = 0; i < _this.numOfMarks + 1; i++)_this.markRefs[i] = $6cea88e72a52882e$var$React.createRef();\n };\n _this.calculateMarkOffsets = function() {\n if (!_this.props.renderMark || !_this.trackRef || !_this.numOfMarks || !_this.markRefs || _this.trackRef.current === null) return;\n var elStyles = window.getComputedStyle(_this.trackRef.current);\n var trackWidth = parseInt(elStyles.width, 10);\n var trackHeight = parseInt(elStyles.height, 10);\n var paddingLeft = parseInt(elStyles.paddingLeft, 10);\n var paddingTop = parseInt(elStyles.paddingTop, 10);\n var res = [];\n for(var i = 0; i < _this.numOfMarks + 1; i++){\n var markHeight = 9999;\n var markWidth = 9999;\n if (_this.markRefs[i].current) {\n var markRect = _this.markRefs[i].current.getBoundingClientRect();\n markHeight = markRect.height;\n markWidth = markRect.width;\n }\n if (_this.props.direction === $6tF3R.Direction.Left || _this.props.direction === $6tF3R.Direction.Right) res.push([\n Math.round(trackWidth / _this.numOfMarks * i + paddingLeft - markWidth / 2),\n -Math.round((markHeight - trackHeight) / 2)\n ]);\n else res.push([\n Math.round(trackHeight / _this.numOfMarks * i + paddingTop - markHeight / 2),\n -Math.round((markWidth - trackWidth) / 2)\n ]);\n }\n _this.setState({\n markOffsets: res\n });\n };\n if (props.step === 0) throw new Error('\"step\" property should be a positive number');\n _this.schdOnMouseMove = (0, $5oGj6.schd)(_this.onMouseMove);\n _this.schdOnTouchMove = (0, $5oGj6.schd)(_this.onTouchMove);\n _this.schdOnEnd = (0, $5oGj6.schd)(_this.onEnd);\n _this.thumbRefs = props.values.map(function() {\n return $6cea88e72a52882e$var$React.createRef();\n });\n _this.updateMarkRefs(props);\n return _this;\n }\n Range.prototype.componentDidMount = function() {\n var _this = this;\n var _a = this.props, values = _a.values, min = _a.min, step = _a.step;\n this.resizeObserver = window.ResizeObserver ? new window.ResizeObserver(this.onResize) : {\n observe: function() {\n return window.addEventListener(\"resize\", _this.onResize);\n },\n unobserve: function() {\n return window.removeEventListener(\"resize\", _this.onResize);\n }\n };\n document.addEventListener(\"touchstart\", this.onMouseOrTouchStart, {\n passive: false\n });\n document.addEventListener(\"mousedown\", this.onMouseOrTouchStart, {\n passive: false\n });\n !this.props.allowOverlap && (0, $5oGj6.checkInitialOverlap)(this.props.values);\n this.props.values.forEach(function(value) {\n return (0, $5oGj6.checkBoundaries)(value, _this.props.min, _this.props.max);\n });\n this.resizeObserver.observe(this.trackRef.current);\n (0, $5oGj6.translateThumbs)(this.getThumbs(), this.getOffsets(), this.props.rtl);\n this.calculateMarkOffsets();\n values.forEach(function(value) {\n if (!(0, $5oGj6.isStepDivisible)(min, value, step)) console.warn(\"The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.\");\n });\n };\n Range.prototype.componentDidUpdate = function(prevProps, prevState) {\n var _a = this.props, max = _a.max, min = _a.min, step = _a.step, values = _a.values, rtl = _a.rtl;\n if (prevProps.max !== max || prevProps.min !== min || prevProps.step !== step) this.updateMarkRefs(this.props);\n (0, $5oGj6.translateThumbs)(this.getThumbs(), this.getOffsets(), rtl);\n // ensure offsets are calculated when the refs for the marks have been created\n // and those refs have been mounted to the dom\n // on the state update in calculateOffsets with new markOffsets are calculated\n if (prevProps.max !== max || prevProps.min !== min || prevProps.step !== step || prevState.markOffsets.length !== this.state.markOffsets.length) {\n this.calculateMarkOffsets();\n values.forEach(function(value) {\n if (!(0, $5oGj6.isStepDivisible)(min, value, step)) console.warn(\"The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.\");\n });\n }\n };\n Range.prototype.componentWillUnmount = function() {\n var options = {\n passive: false\n };\n document.removeEventListener(\"mousedown\", this.onMouseOrTouchStart, options);\n // These need to be removed!!\n document.removeEventListener(\"mousemove\", this.schdOnMouseMove);\n document.removeEventListener(\"touchmove\", this.schdOnTouchMove);\n document.removeEventListener(\"touchstart\", this.onMouseOrTouchStart);\n document.removeEventListener(\"mouseup\", this.schdOnEnd);\n document.removeEventListener(\"touchend\", this.schdOnEnd);\n this.resizeObserver.unobserve(this.trackRef.current);\n };\n Range.prototype.render = function() {\n var _this = this;\n var _a = this.props, renderTrack = _a.renderTrack, renderThumb = _a.renderThumb, _b = _a.renderMark, renderMark = _b === void 0 ? function() {\n return null;\n } : _b, values = _a.values, min = _a.min, max = _a.max, allowOverlap = _a.allowOverlap, disabled = _a.disabled;\n var _c = this.state, draggedThumbIndex = _c.draggedThumbIndex, thumbZIndexes = _c.thumbZIndexes, markOffsets = _c.markOffsets;\n return renderTrack({\n props: {\n style: {\n // creates stacking context that prevents z-index applied to thumbs\n // interfere with other elements\n transform: \"scale(1)\",\n cursor: draggedThumbIndex > -1 ? \"grabbing\" : this.props.draggableTrack ? (0, $5oGj6.isVertical)(this.props.direction) ? \"ns-resize\" : \"ew-resize\" : values.length === 1 && !disabled ? \"pointer\" : \"inherit\"\n },\n onMouseDown: disabled ? $5oGj6.voidFn : this.onMouseDownTrack,\n onTouchStart: disabled ? $5oGj6.voidFn : this.onTouchStartTrack,\n ref: this.trackRef\n },\n isDragged: this.state.draggedThumbIndex > -1,\n disabled: disabled,\n children: $6cea88e72a52882e$var$__spreadArray($6cea88e72a52882e$var$__spreadArray([], markOffsets.map(function(offset, index, arr) {\n return renderMark({\n props: {\n style: _this.props.direction === $6tF3R.Direction.Left || _this.props.direction === $6tF3R.Direction.Right ? {\n position: \"absolute\",\n left: \"\".concat(offset[0], \"px\"),\n marginTop: \"\".concat(offset[1], \"px\")\n } : {\n position: \"absolute\",\n top: \"\".concat(offset[0], \"px\"),\n marginLeft: \"\".concat(offset[1], \"px\")\n },\n key: \"mark\".concat(index),\n ref: _this.markRefs[index]\n },\n index: index\n });\n }), true), values.map(function(value, index) {\n var isDragged = _this.state.draggedThumbIndex === index;\n return renderThumb({\n index: index,\n value: value,\n isDragged: isDragged,\n props: {\n style: {\n position: \"absolute\",\n zIndex: thumbZIndexes[index],\n cursor: disabled ? \"inherit\" : isDragged ? \"grabbing\" : \"grab\",\n userSelect: \"none\",\n touchAction: \"none\",\n WebkitUserSelect: \"none\",\n MozUserSelect: \"none\",\n msUserSelect: \"none\"\n },\n key: index,\n tabIndex: disabled ? undefined : 0,\n \"aria-valuemax\": allowOverlap ? max : values[index + 1] || max,\n \"aria-valuemin\": allowOverlap ? min : values[index - 1] || min,\n \"aria-valuenow\": value,\n draggable: false,\n ref: _this.thumbRefs[index],\n role: \"slider\",\n onKeyDown: disabled ? $5oGj6.voidFn : _this.onKeyDown,\n onKeyUp: disabled ? $5oGj6.voidFn : _this.onKeyUp\n }\n });\n }), true)\n });\n };\n Range.defaultProps = {\n step: 1,\n direction: $6tF3R.Direction.Right,\n rtl: false,\n disabled: false,\n allowOverlap: false,\n draggableTrack: false,\n min: 0,\n max: 100\n };\n return Range;\n}($6cea88e72a52882e$var$React.Component);\nmodule.exports.default = $6cea88e72a52882e$var$Range;\n\n});\nparcelRegister(\"5oGj6\", function(module, exports) {\n\"use strict\";\nvar $3ee002f7fd5e5a77$var$__spreadArray = module.exports && module.exports.__spreadArray || function(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.useThumbOverlap = module.exports.assertUnreachable = module.exports.voidFn = module.exports.getTrackBackground = module.exports.replaceAt = module.exports.schd = module.exports.translate = module.exports.getClosestThumbIndex = module.exports.translateThumbs = module.exports.getPaddingAndBorder = module.exports.getMargin = module.exports.checkInitialOverlap = module.exports.checkValuesAgainstBoundaries = module.exports.checkBoundaries = module.exports.isVertical = module.exports.relativeValue = module.exports.normalizeValue = module.exports.isStepDivisible = module.exports.isTouchEvent = module.exports.getStepDecimals = void 0;\n\nvar $dTCkE = parcelRequire(\"dTCkE\");\n\nvar $6tF3R = parcelRequire(\"6tF3R\");\nvar $3ee002f7fd5e5a77$var$getStepDecimals = function(step) {\n var decimals = step.toString().split(\".\")[1];\n return decimals ? decimals.length : 0;\n};\nmodule.exports.getStepDecimals = $3ee002f7fd5e5a77$var$getStepDecimals;\nfunction $3ee002f7fd5e5a77$var$isTouchEvent(event) {\n return event.touches && event.touches.length || event.changedTouches && event.changedTouches.length;\n}\nmodule.exports.isTouchEvent = $3ee002f7fd5e5a77$var$isTouchEvent;\nfunction $3ee002f7fd5e5a77$var$isStepDivisible(min, max, step) {\n var res = (max - min) / step;\n var precision = 8;\n var roundedRes = Number(res.toFixed(precision));\n return parseInt(roundedRes.toString(), 10) === roundedRes;\n}\nmodule.exports.isStepDivisible = $3ee002f7fd5e5a77$var$isStepDivisible;\nfunction $3ee002f7fd5e5a77$var$normalizeValue(value, index, min, max, step, allowOverlap, values) {\n var BIG_NUM = 10e10;\n value = Math.round(value * BIG_NUM) / BIG_NUM;\n if (!allowOverlap) {\n var prev = values[index - 1];\n var next = values[index + 1];\n if (prev && prev > value) return prev;\n if (next && next < value) return next;\n }\n if (value > max) return max;\n if (value < min) return min;\n // `remainder` is a difference between the given value and a full step value\n // that is closest lower to the given value and is in the range between the min value\n // and the given value\n var remainder = Math.floor(value * BIG_NUM - min * BIG_NUM) % Math.floor(step * BIG_NUM);\n var closestLowerNum = Math.floor(value * BIG_NUM - Math.abs(remainder));\n var rounded = remainder === 0 ? value : closestLowerNum / BIG_NUM;\n // Values with a remainder `< step/2` are rounded to the closest lower value\n // while values with a remainder `= > step/2` are rounded to the closest bigger value\n var res = Math.abs(remainder / BIG_NUM) < step / 2 ? rounded : rounded + step;\n var decimalPlaces = (0, module.exports.getStepDecimals)(step);\n return parseFloat(res.toFixed(decimalPlaces));\n}\nmodule.exports.normalizeValue = $3ee002f7fd5e5a77$var$normalizeValue;\nfunction $3ee002f7fd5e5a77$var$relativeValue(value, min, max) {\n return (value - min) / (max - min);\n}\nmodule.exports.relativeValue = $3ee002f7fd5e5a77$var$relativeValue;\nfunction $3ee002f7fd5e5a77$var$isVertical(direction) {\n return direction === $6tF3R.Direction.Up || direction === $6tF3R.Direction.Down;\n}\nmodule.exports.isVertical = $3ee002f7fd5e5a77$var$isVertical;\nfunction $3ee002f7fd5e5a77$var$checkBoundaries(value, min, max) {\n if (min >= max) throw new RangeError(\"min (\".concat(min, \") is equal/bigger than max (\").concat(max, \")\"));\n if (value < min) throw new RangeError(\"value (\".concat(value, \") is smaller than min (\").concat(min, \")\"));\n if (value > max) throw new RangeError(\"value (\".concat(value, \") is bigger than max (\").concat(max, \")\"));\n}\nmodule.exports.checkBoundaries = $3ee002f7fd5e5a77$var$checkBoundaries;\nfunction $3ee002f7fd5e5a77$var$checkValuesAgainstBoundaries(value, min, max) {\n if (value < min) // set selectedValue to min\n return min;\n if (value > max) // set selectedValue to max\n return max;\n else return value;\n}\nmodule.exports.checkValuesAgainstBoundaries = $3ee002f7fd5e5a77$var$checkValuesAgainstBoundaries;\nfunction $3ee002f7fd5e5a77$var$checkInitialOverlap(values) {\n if (values.length < 2) return;\n if (!values.slice(1).every(function(item, i) {\n return values[i] <= item;\n })) throw new RangeError(\"values={[\".concat(values, \"]} needs to be sorted when allowOverlap={false}\"));\n}\nmodule.exports.checkInitialOverlap = $3ee002f7fd5e5a77$var$checkInitialOverlap;\nfunction $3ee002f7fd5e5a77$var$getMargin(element) {\n var style = window.getComputedStyle(element);\n return {\n top: parseInt(style[\"margin-top\"], 10),\n bottom: parseInt(style[\"margin-bottom\"], 10),\n left: parseInt(style[\"margin-left\"], 10),\n right: parseInt(style[\"margin-right\"], 10)\n };\n}\nmodule.exports.getMargin = $3ee002f7fd5e5a77$var$getMargin;\nfunction $3ee002f7fd5e5a77$var$getPaddingAndBorder(element) {\n var style = window.getComputedStyle(element);\n return {\n top: parseInt(style[\"padding-top\"], 10) + parseInt(style[\"border-top-width\"], 10),\n bottom: parseInt(style[\"padding-bottom\"], 10) + parseInt(style[\"border-bottom-width\"], 10),\n left: parseInt(style[\"padding-left\"], 10) + parseInt(style[\"border-left-width\"], 10),\n right: parseInt(style[\"padding-right\"], 10) + parseInt(style[\"border-right-width\"], 10)\n };\n}\nmodule.exports.getPaddingAndBorder = $3ee002f7fd5e5a77$var$getPaddingAndBorder;\nfunction $3ee002f7fd5e5a77$var$translateThumbs(elements, offsets, rtl) {\n var inverter = rtl ? -1 : 1;\n elements.forEach(function(element, index) {\n return $3ee002f7fd5e5a77$var$translate(element, inverter * offsets[index].x, offsets[index].y);\n });\n}\nmodule.exports.translateThumbs = $3ee002f7fd5e5a77$var$translateThumbs;\n/**\n * Util function for calculating the index of the thumb that is closes to a given position\n * @param thumbs - array of Thumb element to calculate the distance from\n * @param clientX - target x position (mouse/touch)\n * @param clientY - target y position (mouse/touch)\n * @param direction - the direction of the track\n */ function $3ee002f7fd5e5a77$var$getClosestThumbIndex(thumbs, clientX, clientY, direction) {\n var thumbIndex = 0;\n var minThumbDistance = $3ee002f7fd5e5a77$var$getThumbDistance(thumbs[0], clientX, clientY, direction);\n for(var i = 1; i < thumbs.length; i++){\n var thumbDistance = $3ee002f7fd5e5a77$var$getThumbDistance(thumbs[i], clientX, clientY, direction);\n if (thumbDistance < minThumbDistance) {\n minThumbDistance = thumbDistance;\n thumbIndex = i;\n }\n }\n return thumbIndex;\n}\nmodule.exports.getClosestThumbIndex = $3ee002f7fd5e5a77$var$getClosestThumbIndex;\nfunction $3ee002f7fd5e5a77$var$translate(element, x, y) {\n element.style.transform = \"translate(\".concat(x, \"px, \").concat(y, \"px)\");\n}\nmodule.exports.translate = $3ee002f7fd5e5a77$var$translate;\n// adapted from https://github.com/alexreardon/raf-schd\nvar $3ee002f7fd5e5a77$var$schd = function(fn) {\n var lastArgs = [];\n var frameId = null;\n var wrapperFn = function() {\n var args = [];\n for(var _i = 0; _i < arguments.length; _i++)args[_i] = arguments[_i];\n lastArgs = args;\n if (frameId) return;\n frameId = requestAnimationFrame(function() {\n frameId = null;\n fn.apply(void 0, lastArgs);\n });\n };\n return wrapperFn;\n};\nmodule.exports.schd = $3ee002f7fd5e5a77$var$schd;\nfunction $3ee002f7fd5e5a77$var$replaceAt(values, index, value) {\n var ret = values.slice(0);\n ret[index] = value;\n return ret;\n}\nmodule.exports.replaceAt = $3ee002f7fd5e5a77$var$replaceAt;\nfunction $3ee002f7fd5e5a77$var$getTrackBackground(_a) {\n var values = _a.values, colors = _a.colors, min = _a.min, max = _a.max, _b = _a.direction, direction = _b === void 0 ? $6tF3R.Direction.Right : _b, _c = _a.rtl, rtl = _c === void 0 ? false : _c;\n if (rtl && direction === $6tF3R.Direction.Right) direction = $6tF3R.Direction.Left;\n else if (rtl && $6tF3R.Direction.Left) direction = $6tF3R.Direction.Right;\n // sort values ascending\n var progress = values.slice(0).sort(function(a, b) {\n return a - b;\n }).map(function(value) {\n return (value - min) / (max - min) * 100;\n });\n var middle = progress.reduce(function(acc, point, index) {\n return \"\".concat(acc, \", \").concat(colors[index], \" \").concat(point, \"%, \").concat(colors[index + 1], \" \").concat(point, \"%\");\n }, \"\");\n return \"linear-gradient(\".concat(direction, \", \").concat(colors[0], \" 0%\").concat(middle, \", \").concat(colors[colors.length - 1], \" 100%)\");\n}\nmodule.exports.getTrackBackground = $3ee002f7fd5e5a77$var$getTrackBackground;\nfunction $3ee002f7fd5e5a77$var$voidFn() {}\nmodule.exports.voidFn = $3ee002f7fd5e5a77$var$voidFn;\nfunction $3ee002f7fd5e5a77$var$assertUnreachable(x) {\n throw new Error(\"Didn't expect to get here\");\n}\nmodule.exports.assertUnreachable = $3ee002f7fd5e5a77$var$assertUnreachable;\n/**\n * Util function for grabbing the true largest width of a thumb\n * including the label\n * @param thumbEl - Thumb element to grab the largest width from\n * @param value - Thumb value, not label value\n * @param separator - Label separator value\n */ var $3ee002f7fd5e5a77$var$getThumbWidth = function(thumbEl, value, separator, decimalPlaces, valueToLabel) {\n if (valueToLabel === void 0) valueToLabel = function(value) {\n return value;\n };\n var width = Math.ceil($3ee002f7fd5e5a77$var$__spreadArray([\n thumbEl\n ], Array.from(thumbEl.children), true).reduce(function(width, el) {\n var elWidth = Math.ceil(el.getBoundingClientRect().width);\n /**\n * If a label contains a merged label value, it won't return the true\n * label width for that Thumb. Clone the label and change the value\n * to that individual Thumb value in order to grab the true width.\n */ if (el.innerText && el.innerText.includes(separator) && el.childElementCount === 0) {\n var elClone = el.cloneNode(true);\n elClone.innerHTML = valueToLabel(value.toFixed(decimalPlaces));\n elClone.style.visibility = \"hidden\";\n document.body.appendChild(elClone);\n elWidth = Math.ceil(elClone.getBoundingClientRect().width);\n document.body.removeChild(elClone);\n }\n return elWidth > width ? elWidth : width;\n }, thumbEl.getBoundingClientRect().width));\n return width;\n};\n/**\n * Bulk of logic for thumb overlaps\n * Consider a scenario with 5 thumbs;\n * Thumb 1 overlaps with thumb 0 and thumb 2\n * Thumb 2 overlaps with thumb 3\n * We need an array that contains [0, 1, 2, 3]\n * The function needs to return the directly overlapping thumbs\n * and all thumbs overlapping linked to those and so on\n * @param index - Thumb index calculating overlaps for\n * @param offsets - Current Array of Thumb offsets for Range\n * @param thumbs - Array of Thumb elements\n * @param values - Array of Thumb values\n * @param separator - String separator for merged label values\n * @returns overlaps - Array of all overlapping thumbs from the index\n */ var $3ee002f7fd5e5a77$var$getOverlaps = function(index, offsets, thumbs, values, separator, decimalPlaces, valueToLabel) {\n if (valueToLabel === void 0) valueToLabel = function(value) {\n return value;\n };\n var overlaps = [];\n /**\n * Recursive function for building the overlaps Array\n * If an overlap is found, find the overlaps for that overlap\n * @param thumbIndex current Thumb index to find overlaps from\n */ var buildOverlaps = function(thumbIndex) {\n var thumbXWidth = $3ee002f7fd5e5a77$var$getThumbWidth(thumbs[thumbIndex], values[thumbIndex], separator, decimalPlaces, valueToLabel);\n var thumbX = offsets[thumbIndex].x;\n /**\n * Iterate through the Thumb offsets, if there is a match\n * add the thumbIndex and siblingIndex to the overlaps Array\n *\n * Then build overlaps from the overlapping siblingIndex\n */ offsets.forEach(function(_a, siblingIndex) {\n var siblingX = _a.x;\n var siblingWidth = $3ee002f7fd5e5a77$var$getThumbWidth(thumbs[siblingIndex], values[siblingIndex], separator, decimalPlaces, valueToLabel);\n if (thumbIndex !== siblingIndex && (thumbX >= siblingX && thumbX <= siblingX + siblingWidth || thumbX + thumbXWidth >= siblingX && thumbX + thumbXWidth <= siblingX + siblingWidth)) {\n if (!overlaps.includes(siblingIndex)) {\n overlaps.push(thumbIndex);\n overlaps.push(siblingIndex);\n overlaps = $3ee002f7fd5e5a77$var$__spreadArray($3ee002f7fd5e5a77$var$__spreadArray([], overlaps, true), [\n thumbIndex,\n siblingIndex\n ], false);\n buildOverlaps(siblingIndex);\n }\n }\n });\n };\n buildOverlaps(index);\n // Sort and remove duplicates from the built overlaps\n return Array.from(new Set(overlaps.sort()));\n};\n/**\n * A custom React Hook for calculating whether a thumb overlaps\n * another and whether labels could/should merge.\n * @param rangeRef - React ref value of Range component\n * @param values - current Range values Array\n * @param index - thumb index\n * @param step - step value, used to calculate the number of decimal places\n * @param separator - string to separate thumb values\n * @returns label value + styling for thumb label\n */ var $3ee002f7fd5e5a77$var$useThumbOverlap = function(rangeRef, values, index, step, separator, valueToLabel) {\n if (step === void 0) step = 0.1;\n if (separator === void 0) separator = \" - \";\n if (valueToLabel === void 0) valueToLabel = function(value) {\n return value;\n };\n var decimalPlaces = (0, module.exports.getStepDecimals)(step);\n // Create initial label style and value. Label value defaults to thumb value\n var _a = (0, $dTCkE.useState)({}), labelStyle = _a[0], setLabelStyle = _a[1];\n var _b = (0, $dTCkE.useState)(valueToLabel(values[index].toFixed(decimalPlaces))), labelValue = _b[0], setLabelValue = _b[1];\n // When the rangeRef or values change, update the Thumb label values and styling\n (0, $dTCkE.useEffect)(function() {\n if (rangeRef) {\n var thumbs = rangeRef.getThumbs();\n if (thumbs.length < 1) return;\n var newStyle = {};\n var offsets_1 = rangeRef.getOffsets();\n /**\n * Get any overlaps for the given Thumb index. This must return all linked\n * Thumbs. So if there are 4 Thumbs and Thumbs 2, 3 and 4 overlap. If we are\n * getting the overlaps for Thumb 1 and it overlaps only Thumb 2, we must get\n * 2, 3 and 4 also.\n */ var overlaps = $3ee002f7fd5e5a77$var$getOverlaps(index, offsets_1, thumbs, values, separator, decimalPlaces, valueToLabel);\n // Set a default label value of the Thumb value\n var labelValue_1 = valueToLabel(values[index].toFixed(decimalPlaces));\n /**\n * If there are overlaps for the Thumb, we need to calculate the correct\n * Label value along with the relevant styling. We only want to show a Label\n * for the left most Thumb in an overlapping set.\n * All other Thumbs will be set to display: none.\n */ if (overlaps.length) {\n /**\n * Get an Array of the offsets for the overlapping Thumbs\n * This is so we can determine if the Thumb we are looking at\n * is the left most thumb in an overlapping set\n */ var offsetsX = overlaps.reduce(function(a, c, i, s) {\n return a.length ? $3ee002f7fd5e5a77$var$__spreadArray($3ee002f7fd5e5a77$var$__spreadArray([], a, true), [\n offsets_1[s[i]].x\n ], false) : [\n offsets_1[s[i]].x\n ];\n }, []);\n /**\n * If our Thumb is the left most Thumb, we can build a Label value\n * and set the style for that Label\n */ if (Math.min.apply(Math, offsetsX) === offsets_1[index].x) {\n /**\n * First calculate the Label value. To do this,\n * grab all the values for the Thumbs in our overlaps.\n * Then convert that to a Set and sort it whilst removing duplicates.\n */ var labelValues_1 = [];\n overlaps.forEach(function(thumb) {\n labelValues_1.push(values[thumb].toFixed(decimalPlaces));\n });\n /**\n * Update the labelValue with the resulting Array\n * joined by our defined separator\n */ labelValue_1 = Array.from(new Set(labelValues_1.sort(function(a, b) {\n return parseFloat(a) - parseFloat(b);\n }))).map(valueToLabel).join(separator);\n /**\n * Lastly, build the label styling. The label styling will\n * position the label and apply a transform so that it's centered.\n * We want the center point between the left edge of the left most Thumb\n * and the right edge of the right most Thumb.\n */ var first = Math.min.apply(Math, offsetsX);\n var last = Math.max.apply(Math, offsetsX);\n var lastWidth = thumbs[overlaps[offsetsX.indexOf(last)]].getBoundingClientRect().width;\n newStyle.left = \"\".concat(Math.abs(first - (last + lastWidth)) / 2, \"px\");\n newStyle.transform = \"translate(-50%, 0)\";\n } else // If the Thumb isn't the left most Thumb, hide the Label!\n newStyle.visibility = \"hidden\";\n }\n // Update the label value and style\n setLabelValue(labelValue_1);\n setLabelStyle(newStyle);\n }\n }, [\n rangeRef,\n values\n ]);\n return [\n labelValue,\n labelStyle\n ];\n};\nmodule.exports.useThumbOverlap = $3ee002f7fd5e5a77$var$useThumbOverlap;\n/**\n * Util function for calculating the distance of the center of a thumb\n * form a given mouse/touch target's position\n * @param thumbEl - Thumb element to calculate the distance from\n * @param clientX - target x position (mouse/touch)\n * @param clientY - target y position (mouse/touch)\n * @param direction - the direction of the track\n */ function $3ee002f7fd5e5a77$var$getThumbDistance(thumbEl, clientX, clientY, direction) {\n var _a = thumbEl.getBoundingClientRect(), left = _a.left, top = _a.top, width = _a.width, height = _a.height;\n return $3ee002f7fd5e5a77$var$isVertical(direction) ? Math.abs(clientY - (top + height / 2)) : Math.abs(clientX - (left + width / 2));\n}\n\n});\nparcelRegister(\"6tF3R\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.Direction = void 0;\nvar $4b754d66d6b9072f$var$Direction;\n(function(Direction) {\n Direction[\"Right\"] = \"to right\";\n Direction[\"Left\"] = \"to left\";\n Direction[\"Down\"] = \"to bottom\";\n Direction[\"Up\"] = \"to top\";\n})($4b754d66d6b9072f$var$Direction = module.exports.Direction || (module.exports.Direction = {}));\n\n});\n\n\n\n\n})();\n//# sourceMappingURL=FilterEstatesComponent.f14fb436.js.map\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkValuesAgainstBoundaries = exports.relativeValue = exports.useThumbOverlap = exports.Direction = exports.getTrackBackground = exports.Range = void 0;\nvar Range_1 = __importDefault(require(\"./Range\"));\nexports.Range = Range_1.default;\nvar utils_1 = require(\"./utils\");\nObject.defineProperty(exports, \"getTrackBackground\", { enumerable: true, get: function () { return utils_1.getTrackBackground; } });\nObject.defineProperty(exports, \"useThumbOverlap\", { enumerable: true, get: function () { return utils_1.useThumbOverlap; } });\nObject.defineProperty(exports, \"relativeValue\", { enumerable: true, get: function () { return utils_1.relativeValue; } });\nObject.defineProperty(exports, \"checkValuesAgainstBoundaries\", { enumerable: true, get: function () { return utils_1.checkValuesAgainstBoundaries; } });\nvar types_1 = require(\"./types\");\nObject.defineProperty(exports, \"Direction\", { enumerable: true, get: function () { return types_1.Direction; } });\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar utils_1 = require(\"./utils\");\nvar types_1 = require(\"./types\");\nvar INCREASE_KEYS = ['ArrowRight', 'ArrowUp', 'k', 'PageUp'];\nvar DECREASE_KEYS = ['ArrowLeft', 'ArrowDown', 'j', 'PageDown'];\nvar Range = /** @class */ (function (_super) {\n __extends(Range, _super);\n function Range(props) {\n var _this = _super.call(this, props) || this;\n _this.trackRef = React.createRef();\n _this.thumbRefs = [];\n _this.state = {\n draggedTrackPos: [-1, -1],\n draggedThumbIndex: -1,\n thumbZIndexes: new Array(_this.props.values.length).fill(0).map(function (t, i) { return i; }),\n isChanged: false,\n markOffsets: []\n };\n _this.getOffsets = function () {\n var _a = _this.props, direction = _a.direction, values = _a.values, min = _a.min, max = _a.max;\n var trackElement = _this.trackRef.current;\n var trackRect = trackElement.getBoundingClientRect();\n var trackPadding = (0, utils_1.getPaddingAndBorder)(trackElement);\n return _this.getThumbs().map(function (thumb, index) {\n var thumbOffsets = { x: 0, y: 0 };\n var thumbRect = thumb.getBoundingClientRect();\n var thumbMargins = (0, utils_1.getMargin)(thumb);\n switch (direction) {\n case types_1.Direction.Right:\n thumbOffsets.x = (thumbMargins.left + trackPadding.left) * -1;\n thumbOffsets.y =\n ((thumbRect.height - trackRect.height) / 2 + trackPadding.top) * -1;\n thumbOffsets.x +=\n trackRect.width * (0, utils_1.relativeValue)(values[index], min, max) -\n thumbRect.width / 2;\n return thumbOffsets;\n case types_1.Direction.Left:\n thumbOffsets.x = (thumbMargins.right + trackPadding.right) * -1;\n thumbOffsets.y =\n ((thumbRect.height - trackRect.height) / 2 + trackPadding.top) * -1;\n thumbOffsets.x +=\n trackRect.width -\n trackRect.width * (0, utils_1.relativeValue)(values[index], min, max) -\n thumbRect.width / 2;\n return thumbOffsets;\n case types_1.Direction.Up:\n thumbOffsets.x =\n ((thumbRect.width - trackRect.width) / 2 +\n thumbMargins.left +\n trackPadding.left) *\n -1;\n thumbOffsets.y = -trackPadding.left;\n thumbOffsets.y +=\n trackRect.height -\n trackRect.height * (0, utils_1.relativeValue)(values[index], min, max) -\n thumbRect.height / 2;\n return thumbOffsets;\n case types_1.Direction.Down:\n thumbOffsets.x =\n ((thumbRect.width - trackRect.width) / 2 +\n thumbMargins.left +\n trackPadding.left) *\n -1;\n thumbOffsets.y = -trackPadding.left;\n thumbOffsets.y +=\n trackRect.height * (0, utils_1.relativeValue)(values[index], min, max) -\n thumbRect.height / 2;\n return thumbOffsets;\n default:\n return (0, utils_1.assertUnreachable)(direction);\n }\n });\n };\n _this.getThumbs = function () {\n if (_this.trackRef && _this.trackRef.current) {\n return Array.from(_this.trackRef.current.children).filter(function (el) {\n return el.hasAttribute('aria-valuenow');\n });\n }\n console.warn('No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?');\n return [];\n };\n _this.getTargetIndex = function (e) {\n return _this.getThumbs().findIndex(function (child) { return child === e.target || child.contains(e.target); });\n };\n _this.addTouchEvents = function (e) {\n document.addEventListener('touchmove', _this.schdOnTouchMove, {\n passive: false\n });\n document.addEventListener('touchend', _this.schdOnEnd, {\n passive: false\n });\n document.addEventListener('touchcancel', _this.schdOnEnd, {\n passive: false\n });\n };\n _this.addMouseEvents = function (e) {\n document.addEventListener('mousemove', _this.schdOnMouseMove);\n document.addEventListener('mouseup', _this.schdOnEnd);\n };\n _this.onMouseDownTrack = function (e) {\n var _a;\n if (e.button !== 0)\n return;\n e.persist();\n e.preventDefault();\n _this.addMouseEvents(e.nativeEvent);\n if (_this.props.values.length > 1 && _this.props.draggableTrack) {\n if (_this.thumbRefs.some(function (thumbRef) { var _a; return (_a = thumbRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target); }))\n return;\n // handle dragging the whole track\n _this.setState({\n draggedTrackPos: [e.clientX, e.clientY]\n }, function () { return _this.onMove(e.clientX, e.clientY); });\n }\n else {\n // get the index of the thumb that is closest to the place where the track is clicked\n var draggedThumbIndex = (0, utils_1.getClosestThumbIndex)(_this.thumbRefs.map(function (t) { return t.current; }), e.clientX, e.clientY, _this.props.direction);\n // move the thumb which is closest to the place where the track is clicked\n (_a = _this.thumbRefs[draggedThumbIndex].current) === null || _a === void 0 ? void 0 : _a.focus();\n _this.setState({\n draggedThumbIndex: draggedThumbIndex\n }, function () { return _this.onMove(e.clientX, e.clientY); });\n }\n };\n _this.onResize = function () {\n (0, utils_1.translateThumbs)(_this.getThumbs(), _this.getOffsets(), _this.props.rtl);\n _this.calculateMarkOffsets();\n };\n _this.onTouchStartTrack = function (e) {\n var _a;\n e.persist();\n _this.addTouchEvents(e.nativeEvent);\n if (_this.props.values.length > 1 && _this.props.draggableTrack) {\n if (_this.thumbRefs.some(function (thumbRef) { var _a; return (_a = thumbRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target); }))\n return;\n // handle dragging the whole track\n _this.setState({\n draggedTrackPos: [e.touches[0].clientX, e.touches[0].clientY]\n }, function () { return _this.onMove(e.touches[0].clientX, e.touches[0].clientY); });\n }\n else {\n // get the index of the thumb that is closest to the place where the track is clicked\n var draggedThumbIndex = (0, utils_1.getClosestThumbIndex)(_this.thumbRefs.map(function (t) { return t.current; }), e.touches[0].clientX, e.touches[0].clientY, _this.props.direction);\n // move the thumb which is closest to the place where the track is clicked\n (_a = _this.thumbRefs[draggedThumbIndex].current) === null || _a === void 0 ? void 0 : _a.focus();\n _this.setState({\n draggedThumbIndex: draggedThumbIndex\n }, function () { return _this.onMove(e.touches[0].clientX, e.touches[0].clientY); });\n }\n };\n _this.onMouseOrTouchStart = function (e) {\n if (_this.props.disabled)\n return;\n var isTouch = (0, utils_1.isTouchEvent)(e);\n if (!isTouch && e.button !== 0)\n return;\n var index = _this.getTargetIndex(e);\n if (index === -1)\n return;\n if (isTouch) {\n _this.addTouchEvents(e);\n }\n else {\n _this.addMouseEvents(e);\n }\n _this.setState({\n draggedThumbIndex: index,\n thumbZIndexes: _this.state.thumbZIndexes.map(function (t, i) {\n if (i === index) {\n return Math.max.apply(Math, _this.state.thumbZIndexes);\n }\n return t <= _this.state.thumbZIndexes[index] ? t : t - 1;\n })\n });\n };\n _this.onMouseMove = function (e) {\n e.preventDefault();\n _this.onMove(e.clientX, e.clientY);\n };\n _this.onTouchMove = function (e) {\n e.preventDefault();\n _this.onMove(e.touches[0].clientX, e.touches[0].clientY);\n };\n _this.onKeyDown = function (e) {\n var _a = _this.props, values = _a.values, onChange = _a.onChange, step = _a.step, rtl = _a.rtl, direction = _a.direction;\n var isChanged = _this.state.isChanged;\n var index = _this.getTargetIndex(e.nativeEvent);\n var inverter = rtl || direction === types_1.Direction.Left || direction === types_1.Direction.Down\n ? -1\n : 1;\n if (index === -1)\n return;\n if (INCREASE_KEYS.includes(e.key)) {\n e.preventDefault();\n _this.setState({\n draggedThumbIndex: index,\n isChanged: true\n });\n onChange((0, utils_1.replaceAt)(values, index, _this.normalizeValue(values[index] + inverter * (e.key === 'PageUp' ? step * 10 : step), index)));\n }\n else if (DECREASE_KEYS.includes(e.key)) {\n e.preventDefault();\n _this.setState({\n draggedThumbIndex: index,\n isChanged: true\n });\n onChange((0, utils_1.replaceAt)(values, index, _this.normalizeValue(values[index] -\n inverter * (e.key === 'PageDown' ? step * 10 : step), index)));\n }\n else if (e.key === 'Tab') {\n _this.setState({ draggedThumbIndex: -1 }, function () {\n // If key pressed when thumb was moving, fire onFinalChange\n if (isChanged) {\n _this.fireOnFinalChange();\n }\n });\n }\n else {\n if (isChanged) {\n _this.fireOnFinalChange();\n }\n }\n };\n _this.onKeyUp = function (e) {\n var isChanged = _this.state.isChanged;\n _this.setState({\n draggedThumbIndex: -1\n }, function () {\n if (isChanged) {\n _this.fireOnFinalChange();\n }\n });\n };\n _this.onMove = function (clientX, clientY) {\n var _a = _this.state, draggedThumbIndex = _a.draggedThumbIndex, draggedTrackPos = _a.draggedTrackPos;\n var _b = _this.props, direction = _b.direction, min = _b.min, max = _b.max, onChange = _b.onChange, values = _b.values, step = _b.step, rtl = _b.rtl;\n if (draggedThumbIndex === -1 &&\n draggedTrackPos[0] === -1 &&\n draggedTrackPos[1] === -1)\n return null;\n var trackElement = _this.trackRef.current;\n // If component was closed down prematurely, A last onMove could be triggered based on requestAnimationFrame()\n if (!trackElement)\n return null;\n var trackRect = trackElement.getBoundingClientRect();\n var trackLength = (0, utils_1.isVertical)(direction)\n ? trackRect.height\n : trackRect.width;\n if (draggedTrackPos[0] !== -1 && draggedTrackPos[1] !== -1) {\n // calculate how much it moved since the last update\n var dX = clientX - draggedTrackPos[0];\n var dY = clientY - draggedTrackPos[1];\n // calculate the delta of the value\n var deltaValue = 0;\n switch (direction) {\n case types_1.Direction.Right:\n case types_1.Direction.Left:\n deltaValue = (dX / trackLength) * (max - min);\n break;\n case types_1.Direction.Down:\n case types_1.Direction.Up:\n deltaValue = (dY / trackLength) * (max - min);\n break;\n default:\n (0, utils_1.assertUnreachable)(direction);\n }\n // invert for RTL\n if (rtl) {\n deltaValue *= -1;\n }\n if (Math.abs(deltaValue) >= step / 2) {\n // adjust delta so it fits into the range\n for (var i = 0; i < _this.thumbRefs.length; i++) {\n if ((values[i] === max && Math.sign(deltaValue) === 1) ||\n (values[i] === min && Math.sign(deltaValue) === -1))\n return;\n var thumbValue = values[i] + deltaValue;\n if (thumbValue > max)\n deltaValue = max - values[i];\n else if (thumbValue < min)\n deltaValue = min - values[i];\n }\n // add the delta to each thumb\n var newValues = values.slice(0);\n for (var i = 0; i < _this.thumbRefs.length; i++) {\n newValues = (0, utils_1.replaceAt)(newValues, i, _this.normalizeValue(values[i] + deltaValue, i));\n }\n _this.setState({\n draggedTrackPos: [clientX, clientY]\n });\n onChange(newValues);\n }\n }\n else {\n var newValue = 0;\n switch (direction) {\n case types_1.Direction.Right:\n newValue =\n ((clientX - trackRect.left) / trackLength) * (max - min) + min;\n break;\n case types_1.Direction.Left:\n newValue =\n ((trackLength - (clientX - trackRect.left)) / trackLength) *\n (max - min) +\n min;\n break;\n case types_1.Direction.Down:\n newValue =\n ((clientY - trackRect.top) / trackLength) * (max - min) + min;\n break;\n case types_1.Direction.Up:\n newValue =\n ((trackLength - (clientY - trackRect.top)) / trackLength) *\n (max - min) +\n min;\n break;\n default:\n (0, utils_1.assertUnreachable)(direction);\n }\n // invert for RTL\n if (rtl) {\n newValue = max + min - newValue;\n }\n if (Math.abs(values[draggedThumbIndex] - newValue) >= step / 2) {\n onChange((0, utils_1.replaceAt)(values, draggedThumbIndex, _this.normalizeValue(newValue, draggedThumbIndex)));\n }\n }\n };\n _this.normalizeValue = function (value, index) {\n var _a = _this.props, min = _a.min, max = _a.max, step = _a.step, allowOverlap = _a.allowOverlap, values = _a.values;\n return (0, utils_1.normalizeValue)(value, index, min, max, step, allowOverlap, values);\n };\n _this.onEnd = function (e) {\n e.preventDefault();\n document.removeEventListener('mousemove', _this.schdOnMouseMove);\n document.removeEventListener('touchmove', _this.schdOnTouchMove);\n document.removeEventListener('mouseup', _this.schdOnEnd);\n document.removeEventListener('touchend', _this.schdOnEnd);\n document.removeEventListener('touchcancel', _this.schdOnEnd);\n if (_this.state.draggedThumbIndex === -1 &&\n _this.state.draggedTrackPos[0] === -1 &&\n _this.state.draggedTrackPos[1] === -1)\n return null;\n _this.setState({ draggedThumbIndex: -1, draggedTrackPos: [-1, -1] }, function () {\n _this.fireOnFinalChange();\n });\n };\n _this.fireOnFinalChange = function () {\n _this.setState({ isChanged: false });\n var _a = _this.props, onFinalChange = _a.onFinalChange, values = _a.values;\n if (onFinalChange) {\n onFinalChange(values);\n }\n };\n _this.updateMarkRefs = function (props) {\n if (!props.renderMark) { // don't create mark refs unless we are rendering marks\n _this.numOfMarks = undefined;\n _this.markRefs = undefined;\n return;\n }\n _this.numOfMarks = (props.max - props.min) / _this.props.step;\n _this.markRefs = [];\n for (var i = 0; i < _this.numOfMarks + 1; i++) {\n _this.markRefs[i] = React.createRef();\n }\n };\n _this.calculateMarkOffsets = function () {\n if (!_this.props.renderMark ||\n !_this.trackRef ||\n !_this.numOfMarks ||\n !_this.markRefs ||\n _this.trackRef.current === null)\n return;\n var elStyles = window.getComputedStyle(_this.trackRef.current);\n var trackWidth = parseInt(elStyles.width, 10);\n var trackHeight = parseInt(elStyles.height, 10);\n var paddingLeft = parseInt(elStyles.paddingLeft, 10);\n var paddingTop = parseInt(elStyles.paddingTop, 10);\n var res = [];\n for (var i = 0; i < _this.numOfMarks + 1; i++) {\n var markHeight = 9999;\n var markWidth = 9999;\n if (_this.markRefs[i].current) {\n var markRect = _this.markRefs[i].current.getBoundingClientRect();\n markHeight = markRect.height;\n markWidth = markRect.width;\n }\n if (_this.props.direction === types_1.Direction.Left ||\n _this.props.direction === types_1.Direction.Right) {\n res.push([\n Math.round((trackWidth / _this.numOfMarks) * i + paddingLeft - markWidth / 2),\n -Math.round((markHeight - trackHeight) / 2)\n ]);\n }\n else {\n res.push([\n Math.round((trackHeight / _this.numOfMarks) * i + paddingTop - markHeight / 2),\n -Math.round((markWidth - trackWidth) / 2)\n ]);\n }\n }\n _this.setState({ markOffsets: res });\n };\n if (props.step === 0) {\n throw new Error('\"step\" property should be a positive number');\n }\n _this.schdOnMouseMove = (0, utils_1.schd)(_this.onMouseMove);\n _this.schdOnTouchMove = (0, utils_1.schd)(_this.onTouchMove);\n _this.schdOnEnd = (0, utils_1.schd)(_this.onEnd);\n _this.thumbRefs = props.values.map(function () { return React.createRef(); });\n _this.updateMarkRefs(props);\n return _this;\n }\n Range.prototype.componentDidMount = function () {\n var _this = this;\n var _a = this.props, values = _a.values, min = _a.min, step = _a.step;\n this.resizeObserver = window.ResizeObserver\n ? new window.ResizeObserver(this.onResize)\n : {\n observe: function () { return window.addEventListener('resize', _this.onResize); },\n unobserve: function () { return window.removeEventListener('resize', _this.onResize); }\n };\n document.addEventListener('touchstart', this.onMouseOrTouchStart, {\n passive: false\n });\n document.addEventListener('mousedown', this.onMouseOrTouchStart, {\n passive: false\n });\n !this.props.allowOverlap && (0, utils_1.checkInitialOverlap)(this.props.values);\n this.props.values.forEach(function (value) {\n return (0, utils_1.checkBoundaries)(value, _this.props.min, _this.props.max);\n });\n this.resizeObserver.observe(this.trackRef.current);\n (0, utils_1.translateThumbs)(this.getThumbs(), this.getOffsets(), this.props.rtl);\n this.calculateMarkOffsets();\n values.forEach(function (value) {\n if (!(0, utils_1.isStepDivisible)(min, value, step)) {\n console.warn('The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.');\n }\n });\n };\n Range.prototype.componentDidUpdate = function (prevProps, prevState) {\n var _a = this.props, max = _a.max, min = _a.min, step = _a.step, values = _a.values, rtl = _a.rtl;\n if (prevProps.max !== max ||\n prevProps.min !== min ||\n prevProps.step !== step) {\n this.updateMarkRefs(this.props);\n }\n (0, utils_1.translateThumbs)(this.getThumbs(), this.getOffsets(), rtl);\n // ensure offsets are calculated when the refs for the marks have been created\n // and those refs have been mounted to the dom\n // on the state update in calculateOffsets with new markOffsets are calculated\n if (prevProps.max !== max ||\n prevProps.min !== min ||\n prevProps.step !== step ||\n prevState.markOffsets.length !== this.state.markOffsets.length) {\n this.calculateMarkOffsets();\n values.forEach(function (value) {\n if (!(0, utils_1.isStepDivisible)(min, value, step)) {\n console.warn('The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.');\n }\n });\n }\n };\n Range.prototype.componentWillUnmount = function () {\n var options = {\n passive: false\n };\n document.removeEventListener('mousedown', this.onMouseOrTouchStart, options);\n // These need to be removed!!\n document.removeEventListener('mousemove', this.schdOnMouseMove);\n document.removeEventListener('touchmove', this.schdOnTouchMove);\n document.removeEventListener('touchstart', this.onMouseOrTouchStart);\n document.removeEventListener('mouseup', this.schdOnEnd);\n document.removeEventListener('touchend', this.schdOnEnd);\n this.resizeObserver.unobserve(this.trackRef.current);\n };\n Range.prototype.render = function () {\n var _this = this;\n var _a = this.props, renderTrack = _a.renderTrack, renderThumb = _a.renderThumb, _b = _a.renderMark, renderMark = _b === void 0 ? function () { return null; } : _b, values = _a.values, min = _a.min, max = _a.max, allowOverlap = _a.allowOverlap, disabled = _a.disabled;\n var _c = this.state, draggedThumbIndex = _c.draggedThumbIndex, thumbZIndexes = _c.thumbZIndexes, markOffsets = _c.markOffsets;\n return renderTrack({\n props: {\n style: {\n // creates stacking context that prevents z-index applied to thumbs\n // interfere with other elements\n transform: 'scale(1)',\n cursor: draggedThumbIndex > -1\n ? 'grabbing'\n : this.props.draggableTrack\n ? (0, utils_1.isVertical)(this.props.direction)\n ? 'ns-resize'\n : 'ew-resize'\n : values.length === 1 && !disabled\n ? 'pointer'\n : 'inherit'\n },\n onMouseDown: disabled ? utils_1.voidFn : this.onMouseDownTrack,\n onTouchStart: disabled ? utils_1.voidFn : this.onTouchStartTrack,\n ref: this.trackRef\n },\n isDragged: this.state.draggedThumbIndex > -1,\n disabled: disabled,\n children: __spreadArray(__spreadArray([], markOffsets.map(function (offset, index, arr) {\n return renderMark({\n props: {\n style: _this.props.direction === types_1.Direction.Left ||\n _this.props.direction === types_1.Direction.Right\n ? {\n position: 'absolute',\n left: \"\".concat(offset[0], \"px\"),\n marginTop: \"\".concat(offset[1], \"px\")\n }\n : {\n position: 'absolute',\n top: \"\".concat(offset[0], \"px\"),\n marginLeft: \"\".concat(offset[1], \"px\")\n },\n key: \"mark\".concat(index),\n ref: _this.markRefs[index]\n },\n index: index\n });\n }), true), values.map(function (value, index) {\n var isDragged = _this.state.draggedThumbIndex === index;\n return renderThumb({\n index: index,\n value: value,\n isDragged: isDragged,\n props: {\n style: {\n position: 'absolute',\n zIndex: thumbZIndexes[index],\n cursor: disabled ? 'inherit' : isDragged ? 'grabbing' : 'grab',\n userSelect: 'none',\n touchAction: 'none',\n WebkitUserSelect: 'none',\n MozUserSelect: 'none',\n msUserSelect: 'none'\n },\n key: index,\n tabIndex: disabled ? undefined : 0,\n 'aria-valuemax': allowOverlap ? max : values[index + 1] || max,\n 'aria-valuemin': allowOverlap ? min : values[index - 1] || min,\n 'aria-valuenow': value,\n draggable: false,\n ref: _this.thumbRefs[index],\n role: 'slider',\n onKeyDown: disabled ? utils_1.voidFn : _this.onKeyDown,\n onKeyUp: disabled ? utils_1.voidFn : _this.onKeyUp\n }\n });\n }), true)\n });\n };\n Range.defaultProps = {\n step: 1,\n direction: types_1.Direction.Right,\n rtl: false,\n disabled: false,\n allowOverlap: false,\n draggableTrack: false,\n min: 0,\n max: 100\n };\n return Range;\n}(React.Component));\nexports.default = Range;\n","\"use strict\";\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useThumbOverlap = exports.assertUnreachable = exports.voidFn = exports.getTrackBackground = exports.replaceAt = exports.schd = exports.translate = exports.getClosestThumbIndex = exports.translateThumbs = exports.getPaddingAndBorder = exports.getMargin = exports.checkInitialOverlap = exports.checkValuesAgainstBoundaries = exports.checkBoundaries = exports.isVertical = exports.relativeValue = exports.normalizeValue = exports.isStepDivisible = exports.isTouchEvent = exports.getStepDecimals = void 0;\nvar react_1 = require(\"react\");\nvar types_1 = require(\"./types\");\nvar getStepDecimals = function (step) {\n var decimals = step.toString().split('.')[1];\n return decimals ? decimals.length : 0;\n};\nexports.getStepDecimals = getStepDecimals;\nfunction isTouchEvent(event) {\n return ((event.touches && event.touches.length) ||\n (event.changedTouches && event.changedTouches.length));\n}\nexports.isTouchEvent = isTouchEvent;\nfunction isStepDivisible(min, max, step) {\n var res = (max - min) / step;\n var precision = 8;\n var roundedRes = Number(res.toFixed(precision));\n return parseInt(roundedRes.toString(), 10) === roundedRes;\n}\nexports.isStepDivisible = isStepDivisible;\nfunction normalizeValue(value, index, min, max, step, allowOverlap, values) {\n var BIG_NUM = 10e10;\n value = Math.round(value * BIG_NUM) / BIG_NUM;\n if (!allowOverlap) {\n var prev = values[index - 1];\n var next = values[index + 1];\n if (prev && prev > value)\n return prev;\n if (next && next < value)\n return next;\n }\n if (value > max)\n return max;\n if (value < min)\n return min;\n // `remainder` is a difference between the given value and a full step value\n // that is closest lower to the given value and is in the range between the min value\n // and the given value\n var remainder = Math.floor(value * BIG_NUM - min * BIG_NUM) %\n Math.floor(step * BIG_NUM);\n var closestLowerNum = Math.floor(value * BIG_NUM - Math.abs(remainder));\n var rounded = remainder === 0 ? value : closestLowerNum / BIG_NUM;\n // Values with a remainder `< step/2` are rounded to the closest lower value\n // while values with a remainder `= > step/2` are rounded to the closest bigger value\n var res = Math.abs(remainder / BIG_NUM) < step / 2\n ? rounded\n : rounded + step;\n var decimalPlaces = (0, exports.getStepDecimals)(step);\n return parseFloat(res.toFixed(decimalPlaces));\n}\nexports.normalizeValue = normalizeValue;\nfunction relativeValue(value, min, max) {\n return (value - min) / (max - min);\n}\nexports.relativeValue = relativeValue;\nfunction isVertical(direction) {\n return direction === types_1.Direction.Up || direction === types_1.Direction.Down;\n}\nexports.isVertical = isVertical;\nfunction checkBoundaries(value, min, max) {\n if (min >= max) {\n throw new RangeError(\"min (\".concat(min, \") is equal/bigger than max (\").concat(max, \")\"));\n }\n if (value < min) {\n throw new RangeError(\"value (\".concat(value, \") is smaller than min (\").concat(min, \")\"));\n }\n if (value > max) {\n throw new RangeError(\"value (\".concat(value, \") is bigger than max (\").concat(max, \")\"));\n }\n}\nexports.checkBoundaries = checkBoundaries;\nfunction checkValuesAgainstBoundaries(value, min, max) {\n if (value < min) {\n // set selectedValue to min\n return min;\n }\n if (value > max) {\n // set selectedValue to max\n return max;\n }\n else {\n return value;\n }\n}\nexports.checkValuesAgainstBoundaries = checkValuesAgainstBoundaries;\nfunction checkInitialOverlap(values) {\n if (values.length < 2)\n return;\n if (!values.slice(1).every(function (item, i) { return values[i] <= item; })) {\n throw new RangeError(\"values={[\".concat(values, \"]} needs to be sorted when allowOverlap={false}\"));\n }\n}\nexports.checkInitialOverlap = checkInitialOverlap;\nfunction getMargin(element) {\n var style = window.getComputedStyle(element);\n return {\n top: parseInt(style['margin-top'], 10),\n bottom: parseInt(style['margin-bottom'], 10),\n left: parseInt(style['margin-left'], 10),\n right: parseInt(style['margin-right'], 10)\n };\n}\nexports.getMargin = getMargin;\nfunction getPaddingAndBorder(element) {\n var style = window.getComputedStyle(element);\n return {\n top: parseInt(style['padding-top'], 10) + parseInt(style['border-top-width'], 10),\n bottom: parseInt(style['padding-bottom'], 10) + parseInt(style['border-bottom-width'], 10),\n left: parseInt(style['padding-left'], 10) + parseInt(style['border-left-width'], 10),\n right: parseInt(style['padding-right'], 10) + parseInt(style['border-right-width'], 10),\n };\n}\nexports.getPaddingAndBorder = getPaddingAndBorder;\nfunction translateThumbs(elements, offsets, rtl) {\n var inverter = rtl ? -1 : 1;\n elements.forEach(function (element, index) {\n return translate(element, inverter * offsets[index].x, offsets[index].y);\n });\n}\nexports.translateThumbs = translateThumbs;\n/**\n * Util function for calculating the index of the thumb that is closes to a given position\n * @param thumbs - array of Thumb element to calculate the distance from\n * @param clientX - target x position (mouse/touch)\n * @param clientY - target y position (mouse/touch)\n * @param direction - the direction of the track\n */\nfunction getClosestThumbIndex(thumbs, clientX, clientY, direction) {\n var thumbIndex = 0;\n var minThumbDistance = getThumbDistance(thumbs[0], clientX, clientY, direction);\n for (var i = 1; i < thumbs.length; i++) {\n var thumbDistance = getThumbDistance(thumbs[i], clientX, clientY, direction);\n if (thumbDistance < minThumbDistance) {\n minThumbDistance = thumbDistance;\n thumbIndex = i;\n }\n }\n return thumbIndex;\n}\nexports.getClosestThumbIndex = getClosestThumbIndex;\nfunction translate(element, x, y) {\n element.style.transform = \"translate(\".concat(x, \"px, \").concat(y, \"px)\");\n}\nexports.translate = translate;\n// adapted from https://github.com/alexreardon/raf-schd\nvar schd = function (fn) {\n var lastArgs = [];\n var frameId = null;\n var wrapperFn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n lastArgs = args;\n if (frameId) {\n return;\n }\n frameId = requestAnimationFrame(function () {\n frameId = null;\n fn.apply(void 0, lastArgs);\n });\n };\n return wrapperFn;\n};\nexports.schd = schd;\nfunction replaceAt(values, index, value) {\n var ret = values.slice(0);\n ret[index] = value;\n return ret;\n}\nexports.replaceAt = replaceAt;\nfunction getTrackBackground(_a) {\n var values = _a.values, colors = _a.colors, min = _a.min, max = _a.max, _b = _a.direction, direction = _b === void 0 ? types_1.Direction.Right : _b, _c = _a.rtl, rtl = _c === void 0 ? false : _c;\n if (rtl && direction === types_1.Direction.Right) {\n direction = types_1.Direction.Left;\n }\n else if (rtl && types_1.Direction.Left) {\n direction = types_1.Direction.Right;\n }\n // sort values ascending\n var progress = values.slice(0).sort(function (a, b) { return a - b; }).map(function (value) { return ((value - min) / (max - min)) * 100; });\n var middle = progress.reduce(function (acc, point, index) {\n return \"\".concat(acc, \", \").concat(colors[index], \" \").concat(point, \"%, \").concat(colors[index + 1], \" \").concat(point, \"%\");\n }, '');\n return \"linear-gradient(\".concat(direction, \", \").concat(colors[0], \" 0%\").concat(middle, \", \").concat(colors[colors.length - 1], \" 100%)\");\n}\nexports.getTrackBackground = getTrackBackground;\nfunction voidFn() { }\nexports.voidFn = voidFn;\nfunction assertUnreachable(x) {\n throw new Error(\"Didn't expect to get here\");\n}\nexports.assertUnreachable = assertUnreachable;\n/**\n * Util function for grabbing the true largest width of a thumb\n * including the label\n * @param thumbEl - Thumb element to grab the largest width from\n * @param value - Thumb value, not label value\n * @param separator - Label separator value\n */\nvar getThumbWidth = function (thumbEl, value, separator, decimalPlaces, valueToLabel) {\n if (valueToLabel === void 0) { valueToLabel = function (value) { return value; }; }\n var width = Math.ceil(__spreadArray([thumbEl], Array.from(thumbEl.children), true).reduce(function (width, el) {\n var elWidth = Math.ceil(el.getBoundingClientRect().width);\n /**\n * If a label contains a merged label value, it won't return the true\n * label width for that Thumb. Clone the label and change the value\n * to that individual Thumb value in order to grab the true width.\n */\n if (el.innerText &&\n el.innerText.includes(separator) &&\n el.childElementCount === 0) {\n var elClone = el.cloneNode(true);\n elClone.innerHTML = valueToLabel(value.toFixed(decimalPlaces));\n elClone.style.visibility = 'hidden';\n document.body.appendChild(elClone);\n elWidth = Math.ceil(elClone.getBoundingClientRect().width);\n document.body.removeChild(elClone);\n }\n return elWidth > width ? elWidth : width;\n }, thumbEl.getBoundingClientRect().width));\n return width;\n};\n/**\n * Bulk of logic for thumb overlaps\n * Consider a scenario with 5 thumbs;\n * Thumb 1 overlaps with thumb 0 and thumb 2\n * Thumb 2 overlaps with thumb 3\n * We need an array that contains [0, 1, 2, 3]\n * The function needs to return the directly overlapping thumbs\n * and all thumbs overlapping linked to those and so on\n * @param index - Thumb index calculating overlaps for\n * @param offsets - Current Array of Thumb offsets for Range\n * @param thumbs - Array of Thumb elements\n * @param values - Array of Thumb values\n * @param separator - String separator for merged label values\n * @returns overlaps - Array of all overlapping thumbs from the index\n */\nvar getOverlaps = function (index, offsets, thumbs, values, separator, decimalPlaces, valueToLabel) {\n if (valueToLabel === void 0) { valueToLabel = function (value) { return value; }; }\n var overlaps = [];\n /**\n * Recursive function for building the overlaps Array\n * If an overlap is found, find the overlaps for that overlap\n * @param thumbIndex current Thumb index to find overlaps from\n */\n var buildOverlaps = function (thumbIndex) {\n var thumbXWidth = getThumbWidth(thumbs[thumbIndex], values[thumbIndex], separator, decimalPlaces, valueToLabel);\n var thumbX = offsets[thumbIndex].x;\n /**\n * Iterate through the Thumb offsets, if there is a match\n * add the thumbIndex and siblingIndex to the overlaps Array\n *\n * Then build overlaps from the overlapping siblingIndex\n */\n offsets.forEach(function (_a, siblingIndex) {\n var siblingX = _a.x;\n var siblingWidth = getThumbWidth(thumbs[siblingIndex], values[siblingIndex], separator, decimalPlaces, valueToLabel);\n if (thumbIndex !== siblingIndex &&\n ((thumbX >= siblingX && thumbX <= siblingX + siblingWidth) ||\n (thumbX + thumbXWidth >= siblingX &&\n thumbX + thumbXWidth <= siblingX + siblingWidth))) {\n if (!overlaps.includes(siblingIndex)) {\n overlaps.push(thumbIndex);\n overlaps.push(siblingIndex);\n overlaps = __spreadArray(__spreadArray([], overlaps, true), [thumbIndex, siblingIndex], false);\n buildOverlaps(siblingIndex);\n }\n }\n });\n };\n buildOverlaps(index);\n // Sort and remove duplicates from the built overlaps\n return Array.from(new Set(overlaps.sort()));\n};\n/**\n * A custom React Hook for calculating whether a thumb overlaps\n * another and whether labels could/should merge.\n * @param rangeRef - React ref value of Range component\n * @param values - current Range values Array\n * @param index - thumb index\n * @param step - step value, used to calculate the number of decimal places\n * @param separator - string to separate thumb values\n * @returns label value + styling for thumb label\n */\nvar useThumbOverlap = function (rangeRef, values, index, step, separator, valueToLabel) {\n if (step === void 0) { step = 0.1; }\n if (separator === void 0) { separator = ' - '; }\n if (valueToLabel === void 0) { valueToLabel = function (value) { return value; }; }\n var decimalPlaces = (0, exports.getStepDecimals)(step);\n // Create initial label style and value. Label value defaults to thumb value\n var _a = (0, react_1.useState)({}), labelStyle = _a[0], setLabelStyle = _a[1];\n var _b = (0, react_1.useState)(valueToLabel(values[index].toFixed(decimalPlaces))), labelValue = _b[0], setLabelValue = _b[1];\n // When the rangeRef or values change, update the Thumb label values and styling\n (0, react_1.useEffect)(function () {\n if (rangeRef) {\n var thumbs = rangeRef.getThumbs();\n if (thumbs.length < 1)\n return;\n var newStyle = {};\n var offsets_1 = rangeRef.getOffsets();\n /**\n * Get any overlaps for the given Thumb index. This must return all linked\n * Thumbs. So if there are 4 Thumbs and Thumbs 2, 3 and 4 overlap. If we are\n * getting the overlaps for Thumb 1 and it overlaps only Thumb 2, we must get\n * 2, 3 and 4 also.\n */\n var overlaps = getOverlaps(index, offsets_1, thumbs, values, separator, decimalPlaces, valueToLabel);\n // Set a default label value of the Thumb value\n var labelValue_1 = valueToLabel(values[index].toFixed(decimalPlaces));\n /**\n * If there are overlaps for the Thumb, we need to calculate the correct\n * Label value along with the relevant styling. We only want to show a Label\n * for the left most Thumb in an overlapping set.\n * All other Thumbs will be set to display: none.\n */\n if (overlaps.length) {\n /**\n * Get an Array of the offsets for the overlapping Thumbs\n * This is so we can determine if the Thumb we are looking at\n * is the left most thumb in an overlapping set\n */\n var offsetsX = overlaps.reduce(function (a, c, i, s) {\n return a.length ? __spreadArray(__spreadArray([], a, true), [offsets_1[s[i]].x], false) : [offsets_1[s[i]].x];\n }, []);\n /**\n * If our Thumb is the left most Thumb, we can build a Label value\n * and set the style for that Label\n */\n if (Math.min.apply(Math, offsetsX) === offsets_1[index].x) {\n /**\n * First calculate the Label value. To do this,\n * grab all the values for the Thumbs in our overlaps.\n * Then convert that to a Set and sort it whilst removing duplicates.\n */\n var labelValues_1 = [];\n overlaps.forEach(function (thumb) {\n labelValues_1.push(values[thumb].toFixed(decimalPlaces));\n });\n /**\n * Update the labelValue with the resulting Array\n * joined by our defined separator\n */\n labelValue_1 = Array.from(new Set(labelValues_1.sort(function (a, b) { return parseFloat(a) - parseFloat(b); })))\n .map(valueToLabel)\n .join(separator);\n /**\n * Lastly, build the label styling. The label styling will\n * position the label and apply a transform so that it's centered.\n * We want the center point between the left edge of the left most Thumb\n * and the right edge of the right most Thumb.\n */\n var first = Math.min.apply(Math, offsetsX);\n var last = Math.max.apply(Math, offsetsX);\n var lastWidth = thumbs[overlaps[offsetsX.indexOf(last)]].getBoundingClientRect().width;\n newStyle.left = \"\".concat(Math.abs(first - (last + lastWidth)) / 2, \"px\");\n newStyle.transform = 'translate(-50%, 0)';\n }\n else {\n // If the Thumb isn't the left most Thumb, hide the Label!\n newStyle.visibility = 'hidden';\n }\n }\n // Update the label value and style\n setLabelValue(labelValue_1);\n setLabelStyle(newStyle);\n }\n }, [rangeRef, values]);\n return [labelValue, labelStyle];\n};\nexports.useThumbOverlap = useThumbOverlap;\n/**\n * Util function for calculating the distance of the center of a thumb\n * form a given mouse/touch target's position\n * @param thumbEl - Thumb element to calculate the distance from\n * @param clientX - target x position (mouse/touch)\n * @param clientY - target y position (mouse/touch)\n * @param direction - the direction of the track\n */\nfunction getThumbDistance(thumbEl, clientX, clientY, direction) {\n var _a = thumbEl.getBoundingClientRect(), left = _a.left, top = _a.top, width = _a.width, height = _a.height;\n return isVertical(direction) ? Math.abs(clientY - (top + height / 2)) : Math.abs(clientX - (left + width / 2));\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Direction = void 0;\nvar Direction;\n(function (Direction) {\n Direction[\"Right\"] = \"to right\";\n Direction[\"Left\"] = \"to left\";\n Direction[\"Down\"] = \"to bottom\";\n Direction[\"Up\"] = \"to top\";\n})(Direction = exports.Direction || (exports.Direction = {}));\n"],"names":["parcelRequire","parcelRegister","$parcel$global","globalThis","self","window","global","register","module","exports","$76010b95547889cc$var$__importDefault","__importDefault","mod","__esModule","Object","defineProperty","value","checkValuesAgainstBoundaries","relativeValue","useThumbOverlap","Direction","getTrackBackground","Range","$76010b95547889cc$var$Range_1","default","$5oGj6","enumerable","get","$6tF3R","extendStatics","$6cea88e72a52882e$var$__extends","__extends","d","b","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","$6cea88e72a52882e$var$__createBinding","__createBinding","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","writable","configurable","$6cea88e72a52882e$var$__setModuleDefault","__setModuleDefault","v","$6cea88e72a52882e$var$__importStar","__importStar","result","$6cea88e72a52882e$var$__spreadArray","__spreadArray","to","from","pack","arguments","length","ar","i","l","slice","concat","$6cea88e72a52882e$var$React","$6cea88e72a52882e$var$INCREASE_KEYS","$6cea88e72a52882e$var$DECREASE_KEYS","$6cea88e72a52882e$var$Range","_super","props","_this","trackRef","createRef","thumbRefs","state","draggedTrackPos","draggedThumbIndex","thumbZIndexes","values","fill","map","t","isChanged","markOffsets","getOffsets","_a","direction","min","max","trackElement","current","trackRect","getBoundingClientRect","trackPadding","getPaddingAndBorder","getThumbs","thumb","index","thumbOffsets","x","y","thumbRect","thumbMargins","getMargin","Right","left","height","top","width","Left","right","Up","Down","assertUnreachable","children","filter","el","hasAttribute","console","warn","getTargetIndex","e","findIndex","child","target","contains","addTouchEvents","document","addEventListener","schdOnTouchMove","passive","schdOnEnd","addMouseEvents","schdOnMouseMove","onMouseDownTrack","button","persist","preventDefault","nativeEvent","draggableTrack","some","thumbRef","setState","clientX","clientY","onMove","getClosestThumbIndex","focus","onResize","translateThumbs","rtl","calculateMarkOffsets","onTouchStartTrack","touches","onMouseOrTouchStart","disabled","isTouch","isTouchEvent","Math","apply","onMouseMove","onTouchMove","onKeyDown","onChange","step","inverter","includes","key","replaceAt","normalizeValue","fireOnFinalChange","onKeyUp","_b","trackLength","isVertical","dX","dY","deltaValue","abs","sign","thumbValue","newValues","newValue","allowOverlap","onEnd","removeEventListener","onFinalChange","updateMarkRefs","renderMark","numOfMarks","markRefs","elStyles","getComputedStyle","trackWidth","parseInt","trackHeight","paddingLeft","paddingTop","res","markHeight","markWidth","markRect","push","round","Error","schd","componentDidMount","resizeObserver","ResizeObserver","observe","unobserve","checkInitialOverlap","forEach","checkBoundaries","isStepDivisible","componentDidUpdate","prevProps","prevState","componentWillUnmount","render","renderTrack","renderThumb","_c","style","transform","cursor","onMouseDown","voidFn","onTouchStart","ref","isDragged","offset","arr","position","marginTop","marginLeft","zIndex","userSelect","touchAction","WebkitUserSelect","MozUserSelect","msUserSelect","tabIndex","draggable","role","defaultProps","Component","$3ee002f7fd5e5a77$var$__spreadArray","translate","getStepDecimals","$dTCkE","$3ee002f7fd5e5a77$var$isVertical","$3ee002f7fd5e5a77$var$translate","element","decimals","toString","split","event","changedTouches","roundedRes","Number","toFixed","prev","next","remainder","floor","closestLowerNum","rounded","decimalPlaces","parseFloat","RangeError","every","item","bottom","elements","offsets","thumbs","thumbIndex","minThumbDistance","$3ee002f7fd5e5a77$var$getThumbDistance","thumbDistance","fn","lastArgs","frameId","args","_i","requestAnimationFrame","ret","colors","middle","progress","sort","a","reduce","acc","point","$3ee002f7fd5e5a77$var$getThumbWidth","thumbEl","separator","valueToLabel","ceil","elWidth","innerText","childElementCount","elClone","cloneNode","innerHTML","visibility","body","appendChild","removeChild","$3ee002f7fd5e5a77$var$getOverlaps","overlaps","buildOverlaps","thumbXWidth","thumbX","siblingIndex","siblingX","siblingWidth","Set","rangeRef","useState","labelStyle","setLabelStyle","labelValue","setLabelValue","useEffect","newStyle","offsets_1","labelValue_1","offsetsX","c","s","labelValues_1","join","first","last","lastWidth","indexOf"],"version":3,"file":"FilterEstatesComponent.f14fb436.js.map"}