text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("range-progress-slider",["React"],t):"object"==typeof exports?exports["range-progress-slider"]=t(require("react")):e["range-progress-slider"]=t(e.React)}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)r.d(n,u,function(t){return e[t]}.bind(null,u));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist",r(r.s=5)}([function(t,r){t.exports=e},function(e,t,r){"use strict";e.exports=r(8)},function(e,t,r){var n;
  /*!
    Copyright (c) 2018 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */!function(){"use strict";var r={}.hasOwnProperty;function u(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var o=u.apply(null,n);o&&e.push(o)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var i in n)r.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(u.default=u,e.exports=u):void 0===(n=function(){return u}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(r(4),t),u(r(10),t),u(r(11),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultRangeProps=void 0,t.defaultRangeProps={multiple:!1,value:50,defaultValue:50,min:0,max:100,step:1,disabled:!1,onChange:function(){}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(r(6),t),u(r(13),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(r(7),t)},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var u in t=arguments[r])Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u]);return e}).apply(this,arguments)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CircularRange=void 0;var a=r(1),o=u(r(0)),i=u(r(2)),l=r(3);r(12),t.CircularRange=o.default.memo((function(e){var t=o.default.useState(!1),r=t[0],u=t[1],c=o.default.useState(0),s=c[0],f=c[1],d=l.processProps(e,s),v=d.multiple,p=d.rangeProps,h=d.dataProps,m=d.otherProps;delete m.zeroAtDegrees,delete m.counterClockwise;var g=v?null:p,_=v?p:null,y=o.default.useRef(),b=o.default.useRef(null),O=o.default.useRef(null),j=o.default.useRef(null),x=o.default.useRef(null),P=o.default.useRef(null),w=o.default.useRef(null),M=o.default.useRef(null),k=o.default.useCallback((function(){return null!=e.value}),[e.value]),N=o.default.useMemo((function(){var t=(null!=e.zeroAtDegrees?e.zeroAtDegrees:0)%360;return t<0?t+360:t}),[e.zeroAtDegrees]);function C(t){var r=function(){if(y.current){var e=y.current.getBoundingClientRect();return[e.width/2+e.x,e.height/2+e.y]}return null}();if(r){var n=p.min,u=p.max,a=Math.atan2(t.clientY-r[1],t.clientX-r[0]);(a+=.5*Math.PI)<0&&(a+=2*Math.PI),e.counterClockwise&&(a=2*Math.PI-a);var o=a/(2*Math.PI);return o-=(e.counterClockwise?-1:1)*(N/360),(o%=1)<0&&(o+=1),n+o*(u-n)}return 0}function R(e){var t=C(e);A(t),v||S(t)}function D(){window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",D)}o.default.useEffect(D);var S=o.default.useCallback((function(t){if(p&&b.current&&O.current&&j.current){var r=(t-p.min)/(p.max-p.min),n=N/180*Math.PI-.5*Math.PI,u=r*(2*Math.PI);e.counterClockwise&&(u=2*Math.PI-u),u+=n;var a=64+54*Math.cos(u),o=64+54*Math.sin(u);j.current.style.transform="translate(\n        "+a+"px,\n        "+o+"px\n      )";var i=u-n,l="M "+(64+54*Math.cos(n))+" "+(64+54*Math.sin(n))+" A 54 54 0 "+(e.counterClockwise?i<Math.PI?1:0:i<Math.PI?0:1)+" "+(e.counterClockwise?0:1)+" "+a+" "+o;O.current.setAttribute("d",l)}}),[p,N,e.counterClockwise]),E=o.default.useCallback((function(e,t){void 0===t&&(t=s),p&&j.current&&x.current&&P.current&&w.current&&O.current}),[p,s]);function A(e){M.current&&(M.current.value=""+e)}function z(){if(M.current){var e=M.current.value;P.current&&w.current&&(P.current.value=0===s?e:""+Math.min(+P.current.value,+e),w.current.value=1===s?e:""+Math.max(+w.current.value,+e))}}!function(){if(M.current){var e=M.current.value;_?(A(k()?_.value[s]:+e),z(),E(k()?_.value[s]:+e)):g&&(A(k()?g.value:+e),S(k()?g.value:+e))}}();var I=i.default("circular-range__knob",{"circular-range__knob--focus":r,"circular-range__knob--disabled":p.disabled});return a.jsxs("div",n({},h,{className:i.default("circular-range",p.className),style:p.style,ref:function(e){y.current||(y.current=e,_?(A(p.value[s]),P.current&&(P.current.value=""+_.value[0]),w.current&&(w.current.value=""+_.value[1]),E(_.value[s])):g&&(A(g.value),S(g.value)))}},{children:[a.jsxs("svg",n({className:"circular-range__grfx"},{children:[a.jsx("circle",{cx:64,cy:64,r:54,className:i.default("circular-range__track",{"circular-range__track--focus":r,"circular-range__track--disabled":p.disabled}),ref:b},void 0),a.jsx("path",{className:i.default("circular-range__track-progress",{"circular-range__track-progress--focus":r,"circular-range__track-progress--disabled":p.disabled}),d:"",ref:O},void 0),a.jsx("circle",{cx:0,cy:0,r:8,className:I,ref:j},void 0),v&&a.jsx("circle",{cx:0,cy:0,r:8,className:I},void 0)]}),void 0),v&&a.jsxs(a.Fragment,{children:[a.jsx("input",{type:"hidden",name:p.name||void 0,ref:P},void 0),a.jsx("input",{type:"hidden",name:p.name2||void 0,ref:w},void 0)]},void 0),a.jsx("input",n({},m,{name:v?void 0:p.name,min:p.min,max:p.max,step:p.step,disabled:p.disabled,type:"range",ref:M,className:"circular-range__input",onChange:function(e){var t,r,n=e.target.value;if(g)g.onChange(e);else if(_){var u=e;u.knob=s,u.value=[0===s?+n:+((null===(t=P.current)||void 0===t?void 0:t.value)||0),1===s?+n:+((null===(r=w.current)||void 0===r?void 0:r.value)||0)],_.onChange(u)}v?k()||(z(),E(+n)):k()},onFocus:function(t){u(!0),e.onFocus&&e.onFocus(t)},onBlur:function(t){u(!1),e.onBlur&&e.onBlur(t)},onMouseDown:function(t){t.preventDefault();var r=C(t);if(A(r),window.addEventListener("mousemove",R),window.addEventListener("mouseup",D),v){A(+w.current.value),f(0)}else S(r);e.onMouseDown&&e.onMouseDown(t)},onKeyDown:function(t){!v||"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),A(0===s?+w.current.value:+P.current.value),f(0===s?1:0)),e.onKeyDown&&e.onKeyDown(t)},"data-testid":l.COMPONENT+"__input"}),void 0)]}),void 0)}))},function(e,t,r){"use strict";
  /** @license React v17.0.2
   * react-jsx-runtime.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */r(9);var n=r(0),u=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;u=a("react.element"),t.Fragment=a("react.fragment")}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,s=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:u,type:e,key:c,ref:s,props:a,_owner:o.current}}t.jsx=c,t.jsxs=c},function(e,t,r){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var n=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,i,l=o(e),c=1;c<arguments.length;c++){for(var s in r=Object(arguments[c]))u.call(r,s)&&(l[s]=r[s]);if(n){i=n(r);for(var f=0;f<i.length;f++)a.call(r,i[f])&&(l[i[f]]=r[i[f]])}}return l}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var u in t=arguments[r])Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u]);return e}).apply(this,arguments)},u=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,u=e.length;r<n;r++,u++)e[u]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.processProps=void 0;var a=r(4);function o(e,t,r){return l(e,t+(r-t)/2)}function i(e,t){return!0===e||!1===e?e:t}function l(e,t){return null==e||isNaN(e)?t:e}t.processProps=function(e,t){void 0===e&&(e={}),void 0===t&&(t=0);var r=i(e.multiple,a.defaultRangeProps.multiple),c=function(e,t,r){var u=t.min,a=t.max,i=n(n({},t),{onChange:e.onChange||function(){}});if(e.multiple){var l=n(n({},i),{multiple:!0}),c=Array.isArray(e.value)?e.value:[e.value],s=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue],f=[o(s[0],u,a),o(s[1],u,a)],d=void 0===e.value&&null!=e.defaultValue?f:[o(c[0],u,a),o(c[1],u,a)];return 0===r?(d[1]=Math.max(d[0],d[1]),f[1]=Math.max(f[0],f[1])):(d[0]=Math.min(d[0],d[1]),f[0]=Math.min(f[0],f[1])),l.value=d,l.defaultValue=f,l.name2=e.name2||"",l.multiple=!0,l}var v=o(e.defaultValue,u,a),p=void 0===e.value&&null!=e.defaultValue?v:o(e.value,u,a);return n(n({},i),{multiple:!1,value:p,defaultValue:v})}(e,function(e){var t=function(e,t){return e=l(e,a.defaultRangeProps.min),t=l(t,a.defaultRangeProps.max),[e=Math.min(t,e),t]}(e.min,e.max),r=t[0],n=t[1];return{name:e.name||"",min:r,max:n,step:l(e.step,a.defaultRangeProps.step),disabled:i(e.disabled,a.defaultRangeProps.disabled),style:e.style||{},className:e.className||""}}(e),t);return{multiple:r,rangeProps:c,dataProps:function(e){return Object.keys(e).filter((function(e){return e.startsWith("data-")})).reduce((function(t,r){return t[r]=e[r],t}),{})}(e),otherProps:function(e,t){var r=u(u([],Object.keys(t)),["style","className"]);return Object.keys(e).filter((function(e){return!e.startsWith("data-")&&-1===r.indexOf(e)})).reduce((function(t,r){return t[r]=e[r],t}),{})}(e,c)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMPONENT=void 0,t.COMPONENT="range-progress-slider"},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(r(14),t)},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var u in t=arguments[r])Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u]);return e}).apply(this,arguments)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HorizontalRange=void 0;var a=r(1),o=u(r(0)),i=u(r(2)),l=r(3);r(15),t.HorizontalRange=o.default.memo((function(e){var t=o.default.useState(!1),r=t[0],u=t[1],c=o.default.useState(0),s=c[0],f=c[1],d=l.processProps(e,s),v=d.multiple,p=d.rangeProps,h=d.dataProps,m=d.otherProps,g=v?null:p,_=v?p:null,y=o.default.useRef(null),b=o.default.useRef(null),O=o.default.useRef(null),j=o.default.useRef(null),x=o.default.useRef(null),P=o.default.useRef(null),w=o.default.useRef(),M=o.default.useCallback((function(){return null!=e.value}),[e.value]),k=o.default.useCallback((function(t){if(p&&y.current&&O.current&&b.current){var r=e.style&&"number"==typeof e.style.width?e.style.width:y.current.offsetWidth,n=O.current.offsetWidth,u=Math.max(0,r-n),a=(t-p.min)/(p.max-p.min);O.current.style.left=u*a+"px",b.current.style.width=u*a+1+"px"}}),[p,e.style]),N=o.default.useCallback((function(e,t){var r;if(void 0===t&&(t=s),p&&O.current&&j.current&&x.current&&P.current&&b.current){var n=(null===(r=y.current)||void 0===r?void 0:r.offsetWidth)||0,u=O.current.offsetWidth,a=j.current.offsetWidth,o=Math.max(0,n-u-a),i=o*((+x.current.value-p.min)/(p.max-p.min));O.current.style.left=i+"px";var l=o*((+P.current.value-p.min)/(p.max-p.min))+u;j.current.style.left=l+"px",b.current.style.left=i+u-1+"px",b.current.style.width=l-i-u+2+"px"}}),[p,s]);function C(e){w.current&&(w.current.value=""+e)}function R(){if(w.current){var e=w.current.value;x.current&&P.current&&(x.current.value=0===s?e:""+Math.min(+x.current.value,+e),P.current.value=1===s?e:""+Math.max(+P.current.value,+e))}}!function(){if(w.current){var e=w.current.value;_?(C(M()?_.value[s]:+e),R(),N(M()?_.value[s]:+e)):g&&(C(M()?g.value:+e),k(M()?g.value:+e))}}();var D=i.default("horizontal-range__knob",{"horizontal-range__knob--focus":r&&(!v||v&&0===s),"horizontal-range__knob--disabled":p.disabled});return a.jsxs("div",n({},h,{className:i.default("horizontal-range",p.className),style:p.style},{children:[a.jsx("div",n({ref:y,className:i.default("horizontal-range__track",{"horizontal-range__track--focus":r}),"data-testid":l.COMPONENT+"__track"},{children:a.jsx("div",{ref:b,className:i.default("horizontal-range__track-progress",{"horizontal-range__track-progress--focus":r,"horizontal-range__track-progress--disabled":p.disabled}),"data-testid":l.COMPONENT+"__track-progress"},void 0)}),void 0),a.jsx("div",{ref:O,className:D,"data-range-item":"knob","data-testid":l.COMPONENT+"__knob"},void 0),v&&a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:j,className:D,"data-testid":l.COMPONENT+"__knob2"},void 0),a.jsx("input",{type:"hidden",name:p.name||void 0,ref:x},void 0),a.jsx("input",{type:"hidden",name:p.name2||void 0,ref:P},void 0)]},void 0),a.jsx("input",n({},m,{name:v?void 0:p.name,min:p.min,max:p.max,step:p.step,disabled:p.disabled,type:"range",ref:function(e){w.current||(w.current=e,_?(C(p.value[s]),x.current&&(x.current.value=""+_.value[0]),P.current&&(P.current.value=""+_.value[1]),N(_.value[s])):g&&(C(g.value),k(g.value)))},className:"horizontal-range__input",onChange:function(e){var t,r,n=e.target.value;if(g)g.onChange(e);else if(_){var u=e;u.knob=s,u.value=[0===s?+n:+((null===(t=x.current)||void 0===t?void 0:t.value)||0),1===s?+n:+((null===(r=P.current)||void 0===r?void 0:r.value)||0)],_.onChange(u)}v?M()||(R(),N(+n)):M()||k(+n)},onFocus:function(t){u(!0),e.onFocus&&e.onFocus(t)},onBlur:function(t){u(!1),e.onBlur&&e.onBlur(t)},onMouseDown:v?function(t){if(v&&y.current&&O.current&&j.current){var r=y.current.getBoundingClientRect(),n=t.clientX-r.left,u=Math.abs(n-O.current.offsetLeft)<Math.abs(n-j.current.offsetLeft)?0:1;C(0===u?+P.current.value:+x.current.value),f(u)}e.onMouseDown&&e.onMouseDown(t)}:void 0,onKeyDown:function(t){!v||"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),C(0===s?+P.current.value:+x.current.value),f(0===s?1:0)),e.onKeyDown&&e.onKeyDown(t)},"data-testid":l.COMPONENT+"__input"}),void 0)]}),void 0)}))},function(e,t,r){"use strict";r.r(t)}])}));