mt-react-components
Version:
A collection of reusable React UI components including debounce search input, toggle switch, popover menu, custom legends, checkbox/radio groups, multi-select with select-all, and form controls designed for dashboards and admin panels.
2 lines • 168 kB
JavaScript
/*! For license information please see main.js.LICENSE.txt */
(()=>{var e={15:e=>{"use strict";e.exports=require("react")},20:(e,t,n)=>{"use strict";var o=n(15),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,i={},c=null,l=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,o)&&!u.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:l,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},42:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(601),r=n.n(o),i=n(314),a=n.n(i)()(r());a.push([e.id,".custom-radio-panel {\n display: inline-block;\n margin-top: 5px;\n}\n\n.custom-radio-panel .custom-radio-container {\n display: inline-block;\n position: relative;\n padding-left: 28px;\n margin-bottom: 0px;\n cursor: pointer;\n font-size: 13px;\n line-height: 25px;\n margin-right: 12px;\n color: #5f646d;\n font-family: 'Poppins', sans-serif;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.custom-radio-panel .custom-radio-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n}\n\n.custom-radio-panel .custom-radio-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: 22px;\n width: 22px;\n background-color: transparent;\n border-radius: 50%;\n border: 1px solid #525252;\n}\n\n.custom-radio-panel .custom-radio-container:hover input ~ .custom-radio-checkmark {\n background-color: transparent;\n}\n\n.custom-radio-panel .custom-radio-container input:checked ~ .custom-radio-checkmark {\n background-color: transparent;\n}\n\n.custom-radio-panel .custom-radio-checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n}\n\n.custom-radio-panel .custom-radio-container input:checked ~ .custom-radio-checkmark:after {\n display: block;\n}\n\n.custom-radio-panel .custom-radio-container .custom-radio-checkmark:after {\n top: 6px;\n left: 6px;\n width: 9px;\n height: 9px;\n border-radius: 50%;\n background: #525252;\n}\n",""]);const s=a},56:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},a=[],s=0;s<e.length;s++){var u=e[s],c=o.base?u[0]+o.base:u[0],l=i[c]||0,p="".concat(c," ").concat(l);i[c]=l+1;var d=n(p),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var m=r(f,o);o.byIndex=s,t.splice(s,0,{identifier:p,updater:m,references:1})}a.push(p)}return a}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var i=o(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var u=o(e,r),c=0;c<i.length;c++){var l=n(i[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},146:(e,t,n)=>{"use strict";var o=n(363),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=f(n);r&&r!==m&&e(t,r,o)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=u(t),h=u(n),v=0;v<a.length;++v){var b=a[v];if(!(i[b]||o&&o[b]||h&&h[b]||s&&s[b])){var g=d(n,b);try{c(t,b,g)}catch(e){}}}}return t}},181:(e,t,n)=>{var o=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),p=Object.prototype.toString,d=Math.max,f=Math.min,m=function(){return l.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var o,r,i,a,s,u,c=0,l=!1,p=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function y(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-c>=i}function x(){var e=m();if(y(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-u);return p?f(n,i-(e-c)):n}(e))}function w(e){return s=void 0,b&&o?g(e):(o=r=void 0,a)}function O(){var e=m(),n=y(e);if(o=arguments,r=this,u=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),l?g(e):a}(u);if(p)return s=setTimeout(x,t),g(u)}return void 0===s&&(s=setTimeout(x,t)),a}return t=v(t)||0,h(n)&&(l=!!n.leading,i=(p="maxWait"in n)?d(v(n.maxWait)||0,t):i,b="trailing"in n?!!n.trailing:b),O.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=u=r=s=void 0},O.flush=function(){return void 0===s?a:w(m())},O}},214:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var r=s(n(15)),i=s(n(181)),a=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(v,e);var t,n,s,u,h=(s=v,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(s);if(u){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function v(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m(d(t=h.call(this,e)),"onChange",(function(e){e.persist();var n=t.state.value,o=t.props.minLength;t.setState({value:e.target.value},(function(){var r=t.state.value;r.length>=o?t.notify(e):n.length>r.length&&t.notify(c(c({},e),{},{target:c(c({},e.target),{},{value:""})}))}))})),m(d(t),"onKeyDown",(function(e){"Enter"===e.key&&t.forceNotify(e);var n=t.props.onKeyDown;n&&(e.persist(),n(e))})),m(d(t),"onBlur",(function(e){t.forceNotify(e);var n=t.props.onBlur;n&&(e.persist(),n(e))})),m(d(t),"createNotifier",(function(e){if(e<0)t.notify=function(){return null};else if(0===e)t.notify=t.doNotify;else{var n=(0,i.default)((function(e){t.isDebouncing=!1,t.doNotify(e)}),e);t.notify=function(e){t.isDebouncing=!0,n(e)},t.flush=function(){return n.flush()},t.cancel=function(){t.isDebouncing=!1,n.cancel()}}})),m(d(t),"doNotify",(function(){t.props.onChange.apply(void 0,arguments)})),m(d(t),"forceNotify",(function(e){var n=t.props.debounceTimeout;if(t.isDebouncing||!(n>0)){t.cancel&&t.cancel();var o=t.state.value,r=t.props.minLength;o.length>=r?t.doNotify(e):t.doNotify(c(c({},e),{},{target:c(c({},e.target),{},{value:o})}))}})),t.isDebouncing=!1,t.state={value:void 0===e.value||null===e.value?"":e.value};var n=t.props.debounceTimeout;return t.createNotifier(n),t}return t=v,(n=[{key:"componentDidUpdate",value:function(e){if(!this.isDebouncing){var t=this.props,n=t.value,o=t.debounceTimeout,r=e.debounceTimeout,i=e.value,a=this.state.value;void 0!==n&&i!==n&&a!==n&&this.setState({value:n}),o!==r&&this.createNotifier(o)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var e,t,n=this.props,o=n.element,i=(n.onChange,n.value,n.minLength,n.debounceTimeout,n.forceNotifyByEnter),s=n.forceNotifyOnBlur,u=n.onKeyDown,l=n.onBlur,p=n.inputRef,d=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(n,a),f=this.state.value;e=i?{onKeyDown:this.onKeyDown}:u?{onKeyDown:u}:{},t=s?{onBlur:this.onBlur}:l?{onBlur:l}:{};var m=p?{ref:p}:{};return r.default.createElement(o,c(c(c(c({},d),{},{onChange:this.onChange,value:f},e),t),m))}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.default.PureComponent);t.DebounceInput=h,m(h,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},311:e=>{"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);o&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},363:(e,t,n)=>{"use strict";e.exports=n(799)},476:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(601),r=n.n(o),i=n(314),a=n.n(i)()(r());a.push([e.id,".legend-container fieldset {\n padding: 10px 10px 10px;\n box-shadow: 0px 1px 3px 1px #EEF0F5;\n border-width: 0.1rem;\n border-style: solid;\n}\n\n.legend-container legend {\n width: auto;\n float: none;\n margin: 0;\n padding: 5px 10px 0px 10px;\n}\n\n.legend-container legend .legend-title {\n margin: 0;\n padding: 0;\n}",""]);const s=a},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},556:(e,t,n)=>{e.exports=n(694)()},601:e=>{"use strict";e.exports=function(e){return e[1]}},659:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},677:(e,t,n)=>{"use strict";var o=n(214).DebounceInput;o.DebounceInput=o,e.exports=o},693:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(601),r=n.n(o),i=n(314),a=n.n(i)()(r());a.push([e.id,".popup-wrapper.popover .popover-body {\n padding: 0px 0px;\n}\n\n.popup-wrapper.popover .popover-body .actionableRow {\n min-width: 130px;\n padding: 6px 6px;\n}\n\n.popup-wrapper.popover .popover-body .actionableRow:hover {\n background-color: #f8f8f8;\n border-radius: 6px;\n}\n\n.popup-wrapper.popover .popover-body .actionableRow .actionableIcon {\n width: 100%;\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #707683;\n font-size: 13px;\n padding: 0px;\n text-align: left;\n}\n\n.popup-wrapper.popover .popover-body .actionableRow .actionableIcon span {\n padding-right: 6px;\n}\n\n.popup-wrapper.popover .popover-body .actionableRow .actionableIcon span i {\n font-size: 15px;\n}\n",""]);const s=a},694:(e,t,n)=>{"use strict";var o=n(925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},707:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(601),r=n.n(o),i=n(314),a=n.n(i)()(r());a.push([e.id,".search-container-box {\n float: left;\n margin: 0px 0px 0px 0px;\n position: relative;\n}\n\n.search-container-box input {\n width: 100%;\n float: left;\n border: 1px solid #706b6b;\n height: 34px;\n background: #fff;\n border-radius: 4px;\n color: #5f646d;\n padding-left: 10px;\n padding-right: 55px;\n outline: none;\n -moz-transition: all 0.3s ease-in-out;\n -o-transition: all 0.3s ease-in-out;\n -webkit-transition: all 0.3s ease-in-out;\n -ms-transition: all 0.3s ease-in-out;\n transition: all 0.3s ease-in-out;\n font-size: 13px;\n font-family: Poppins-Light;\n}\n\n.search-container-box input::placeholder {\n color: #7c7f85;\n opacity: 1;\n}\n\n.search-container-box .search-btn-addon {\n width: 35px;\n text-align: center;\n float: left;\n background: #706b6b !important;\n height: 34px;\n padding: 0;\n border-radius: 0 4px 4px 0;\n position: absolute;\n right: 0;\n top: 0;\n line-height: 0;\n}\n\n.search-container-box .search-btn-addon:focus {\n outline: none;\n box-shadow: none;\n}\n\n.search-container-box .search-btn-addon i {\n color: #fff;\n}\n\n.search-container-box .search-btn-addon img {\n width: 18px;\n}\n\n.search-container-box .clear-btn {\n width: 34px;\n background: transparent;\n height: 34px;\n padding: 0px;\n border-radius: 0 0.4vw 0.4vw 0;\n position: absolute;\n right: 28px;\n top: 0;\n line-height: 0;\n}\n\n.search-container-box .clear-btn:focus {\n outline: none;\n box-shadow: none;\n}\n\n.search-container-box .clear-icon {\n height: 14px;\n width: 14px;\n color: #706b6b;\n font-size: 15px;\n}",""]);const s=a},760:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(601),r=n.n(o),i=n(314),a=n.n(i)()(r());a.push([e.id,".multiSelectWithCount {\n display: inline-block;\n}\n\n.multiSelectWithCount .multi-dropdown-box__value-container {\n padding-right: 0;\n padding-left: 2px;\n font-size: 13px;\n color: #7A8798;\n display: flex;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control {\n width: 100%;\n min-height: 35px;\n border-radius: 4px;\n border-width: 1px;\n border-color: #7c7f85 !important;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .multi-dropdown-box__multi-value {\n max-width: 55%;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .multi-dropdown-box__placeholder {\n font-size: 13px;\n color: #525252;\n font-family: 'Poppins', sans-serif;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .multi-dropdown-box__indicators .multi-dropdown-box__indicator-separator {\n display: none;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .multi-dropdown-box__dropdown-indicator,\n.multiSelectWithCount .multi-dropdown-box__control .multi-dropdown-box__indicator {\n padding: 6px 1px;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .multi-dropdown-box__dropdown-indicator svg,\n.multiSelectWithCount .multi-dropdown-box__control .multi-dropdown-box__indicator svg {\n stroke: aliceblue;\n stroke-width: inherit;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .selected-label-value-box {\n display: flex;\n align-items: center;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .selected-label-value-box .selected-label-value {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 13px;\n color: #525252;\n font-family: 'Poppins', sans-serif;\n max-width: 90px;\n display: inline-block;\n}\n\n.multiSelectWithCount .multi-dropdown-box__control .selected-label-value-box .selected-values-count {\n font-size: 12px;\n color: #7A8798;\n font-family: 'Poppins', sans-serif;\n padding-left: 3px;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu {\n margin-bottom: 0px;\n margin-top: 2px;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .dropdown-inner-section .dropdown-label-btn {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 10px;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .dropdown-inner-section .dropdown-label-btn .dropdown-header-label {\n font-size: 14px;\n color: #525252;\n font-family: 'Poppins', sans-serif;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .dropdown-inner-section .dropdown-label-btn .dropdown-close-btn {\n background-color: transparent;\n border: none;\n padding: 0;\n margin: 0;\n}\n.multiSelectWithCount .multi-dropdown-box__menu .dropdown-inner-section .dropdown-label-btn .dropdown-close-btn .fa-times{\n color: #5b5858;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .dropdown-inner-section .dropdown-label-btn .dropdown-close-btn img {\n height: 13px;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .multi-dropdown-box__menu-list {\n padding-bottom: 0;\n max-height: 200px;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .multi-dropdown-box__menu-list .multi-dropdown-box__option {\n padding: 0;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .multi-dropdown-box__menu-list .multi-dropdown-box__option .multi-common-option {\n background: #fff;\n color: #525252;\n cursor: pointer;\n font-size: 12px;\n font-family: 'Poppins', sans-serif;\n padding: 8px 7px 8px 20px;\n border-bottom: 1px solid #eaeaea;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .multi-dropdown-box__menu-list .multi-dropdown-box__option--is-focused .multi-common-option {\n background: #dee2e6;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .multi-dropdown-box__menu-list .multi-dropdown-box-option-is-selected {\n position: relative;\n}\n\n.multiSelectWithCount .multi-dropdown-box__menu .multi-dropdown-box__menu-list .multi-dropdown-box-option-is-selected::after {\n position: absolute;\n content: \"\";\n top: 9px;\n left: 7px;\n border: solid #525252;\n border-width: 0 2px 2px 0;\n width: 7px;\n height: 12px;\n transform: rotate(35deg);\n z-index: 9;\n}\n",""]);const s=a},771:e=>{"use strict";e.exports=function(){}},799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case l:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case h:case u:return e;default:return t}}case r:return t}}}function O(e){return w(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||w(e)===l},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},844:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(601),r=n.n(o),i=n(314),a=n.n(i)()(r());a.push([e.id,".custom-checkbox-panel-box {\n display: inline-block;\n width: 100%;\n}\n\n.custom-checkbox-panel {\n display: inline-block;\n margin-bottom: 5px;\n}\n\n.custom-checkbox-panel .custom-checkbox-container {\n display: inline-block;\n position: relative;\n padding-left: 28px;\n cursor: pointer;\n color: #5f646d;\n font-family: 'Poppins', sans-serif;\n font-size: 13px;\n line-height: 20px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n margin-right: 15px;\n}\n\n.custom-checkbox-panel .custom-checkbox-container img {\n width: 20px;\n margin-right: 2px;\n height: 20px;\n object-fit: contain;\n border-radius: 4px;\n}\n\n.custom-checkbox-panel .custom-checkbox-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n.custom-checkbox-panel .custom-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: 20px;\n width: 20px;\n background-color: transparent;\n border: 1px solid #cccccc;\n border-radius: 3px;\n}\n\n.custom-checkbox-panel .custom-checkbox-container:hover input ~ .custom-checkmark {\n background-color: transparent;\n}\n\n.custom-checkbox-panel .custom-checkbox-container input:checked ~ .custom-checkmark {\n background-color: transparent;\n}\n\n.custom-checkbox-panel .custom-checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n}\n\n.custom-checkbox-panel .custom-checkbox-container input:checked ~ .custom-checkmark:after {\n display: block;\n}\n\n.custom-checkbox-panel .custom-checkbox-container .custom-checkmark:after {\n left: 7px;\n top: 2px;\n width: 6px;\n height: 12px;\n border: solid #525252;\n border-width: 0 2px 2px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n.custom-checkbox-panel .checkIconPosition {\n font-size: 17px;\n margin: 0px 4px 0px 0px;\n position: relative;\n top: 2px;\n color: #828282;\n}\n",""]);const s=a},848:(e,t,n)=>{"use strict";e.exports=n(20)},887:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(601),r=n.n(o),i=n(314),a=n.n(i)()(r());a.push([e.id,".custom-switch {\n display: inline-block;\n cursor: pointer;\n user-select: none;\n }\n \n .custom-switch .switch-toggle {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: auto;\n min-width: 80px;\n height: 22px;\n padding: 5px 10px;\n border-radius: 20px;\n background-color: #ddd;\n position: relative;\n transition: background-color 0.3s ease;\n }\n \n .custom-switch .switch-toggle.active {\n background-color: #6c6767;\n }\n \n .custom-switch .switch-toggle.active .switch-label {\n color: #fff;\n font-family: Poppins-Light;\n padding-right: 15px;\n }\n \n .custom-switch .switch-toggle.active .switch-circle {\n right: 3px;\n left: unset;\n }\n \n .custom-switch .switch-label {\n flex: 1;\n text-align: center;\n font-size: 12px;\n font-family: Poppins-Light;\n color: #525252;\n z-index: 1;\n line-height: 20px;\n }\n \n .custom-switch .switch-circle {\n width: 16px;\n height: 16px;\n background-color: #f1f1f1;\n border-radius: 50%;\n position: absolute;\n top: 3px;\n right: 3px;\n transition: all 0.3s ease;\n }\n \n .custom-switch .switch-toggle:not(.active) .switch-circle {\n left: 3px;\n right: unset;\n }\n \n .custom-switch .switch-toggle.inactive .switch-label {\n padding-left: 15px;\n color: #525252;\n }\n \n .custom-switch.disabled {\n cursor: no-drop;\n opacity: 0.5;\n }\n ",""]);const s=a},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";n.r(o),n.d(o,{MTAutosuggestComponentWithCount:()=>is,MTCheckbox:()=>Fn,MTCustomLegend:()=>Vn,MTPopoverMenu:()=>Dn,MTRadioButton:()=>Wn,MTSearchComponent:()=>y,MTSwitchButton:()=>O});var e=n(15),t=n.n(e),r=n(677),i=n(72),a=n.n(i),s=n(825),u=n.n(s),c=n(659),l=n.n(c),p=n(56),d=n.n(p),f=n(540),m=n.n(f),h=n(113),v=n.n(h),b=n(707),g={};g.styleTagTransform=v(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=u(),g.insertStyleElement=m(),a()(b.A,g),b.A&&b.A.locals&&b.A.locals;const y=function(e){var n=e.className,o=void 0===n?"":n,i=e.value,a=e.placeholder,s=void 0===a?"Search":a,u=e.onChange,c=e.clearValue,l=e.minLength,p=void 0===l?2:l,d=e.debounceTimeout,f=void 0===d?500:d,m=e.autoComplete,h=void 0===m?"off":m,v=e.width,b=void 0===v?"200px":v;return t().createElement("div",{className:"search-container-box ".concat(o),style:{width:b}},t().createElement("button",{type:"button",className:"btn btn-link search-btn-addon"},t().createElement("i",{className:"fa fa-search"})),t().createElement(r.DebounceInput,{minLength:p,debounceTimeout:f,onChange:u,placeholder:s,value:i,autoComplete:h}),""!=i?t().createElement("button",{type:"button",className:"btn btn-link clear-btn",onClick:c},t().createElement("i",{className:"fa fa-times clear-icon","aria-hidden":"true"})):null)};var x=n(887),w={};w.styleTagTransform=v(),w.setAttributes=d(),w.insert=l().bind(null,"head"),w.domAPI=u(),w.insertStyleElement=m(),a()(x.A,w),x.A&&x.A.locals&&x.A.locals;const O=function(e){var n=e.onLabel,o=void 0===n?"On":n,r=e.offLabel,i=void 0===r?"Off":r,a=e.checked,s=e.onChange,u=e.disabled,c=void 0!==u&&u,l=e.className,p=void 0===l?"":l;return t().createElement("div",{className:"custom-switch ".concat(p," ").concat(c?"disabled":""),onClick:function(){c||s(!a)}},t().createElement("div",{className:"switch-toggle ".concat(a?"active":"inactive")},t().createElement("span",{className:"switch-label"},a?o:i),t().createElement("div",{className:"switch-circle"})))};function E(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var C=n(556),k=n.n(C);const S=2**31-1;function P(e,t,n){const o=n-Date.now();e.current=o<=S?setTimeout(t,o):setTimeout((()=>P(e,t,n)),S)}function I(){const t=function(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}(),n=(0,e.useRef)();return function(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(o,r=0){t()&&(e(),r<=S?n.current=setTimeout(o,r):P(n,o,Date.now()+r))},clear:e,handleRef:n}}),[])}var M=n(771),T=n.n(M);n(311);const R=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,A=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=R(e),o=R(t);return e=>{n&&n(e),o&&o(e)}}(t,n)),[t,n])};function D(t){if(!t||"function"==typeof t)return null;const{major:n}=function(){const t=e.version.split(".");return{major:+t[0],minor:+t[1],patch:+t[2]}}();return n>=19?t.props.ref:t.ref}var j=n(942),L=n.n(j);const V=require("react-dom");var _=n.n(V);function N(){return(0,e.useState)(null)}const F=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,H=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=F(e),o=F(t);return e=>{n&&n(e),o&&o(e)}}(t,n)),[t,n])};var B=Object.prototype.hasOwnProperty;function W(e,t,n){for(n of e.keys())if(z(n,t))return n}function z(e,t){var n,o,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((o=e.length)===t.length)for(;o--&&z(e[o],t[o]););return-1===o}if(n===Set){if(e.size!==t.size)return!1;for(o of e){if((r=o)&&"object"==typeof r&&!(r=W(t,r)))return!1;if(!t.has(r))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(o of e){if((r=o[0])&&"object"==typeof r&&!(r=W(t,r)))return!1;if(!z(o[1],t.get(r)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((o=e.byteLength)===t.byteLength)for(;o--&&e.getInt8(o)===t.getInt8(o););return-1===o}if(ArrayBuffer.isView(e)){if((o=e.byteLength)===t.byteLength)for(;o--&&e[o]===t[o];);return-1===o}if(!n||"object"==typeof e){for(n in o=0,e){if(B.call(e,n)&&++o&&!B.call(t,n))return!1;if(!(n in t)||!z(e[n],t[n]))return!1}return Object.keys(t).length===o}}return e!=e&&t!=t}function U(e){return e.split("-")[0]}function $(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function q(e){return e instanceof $(e).Element||e instanceof Element}function Y(e){return e instanceof $(e).HTMLElement||e instanceof HTMLElement}function G(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $(e).ShadowRoot||e instanceof ShadowRoot)}var X=Math.max,K=Math.min,J=Math.round;function Z(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Q(){return!/^((?!chrome|android).)*safari/i.test(Z())}function ee(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Y(e)&&(r=e.offsetWidth>0&&J(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&J(o.height)/e.offsetHeight||1);var a=(q(e)?$(e):window).visualViewport,s=!Q()&&n,u=(o.left+(s&&a?a.offsetLeft:0))/r,c=(o.top+(s&&a?a.offsetTop:0))/i,l=o.width/r,p=o.height/i;return{width:l,height:p,top:c,right:u+l,bottom:c+p,left:u,x:u,y:c}}function te(e){var t=ee(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&G(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function oe(e){return e?(e.nodeName||"").toLowerCase():null}function re(e){return $(e).getComputedStyle(e)}function ie(e){return["table","td","th"].indexOf(oe(e))>=0}function ae(e){return((q(e)?e.ownerDocument:e.document)||window.document).documentElement}function se(e){return"html"===oe(e)?e:e.assignedSlot||e.parentNode||(G(e)?e.host:null)||ae(e)}function ue(e){return Y(e)&&"fixed"!==re(e).position?e.offsetParent:null}function ce(e){for(var t=$(e),n=ue(e);n&&ie(n)&&"static"===re(n).position;)n=ue(n);return n&&("html"===oe(n)||"body"===oe(n)&&"static"===re(n).position)?t:n||function(e){var t=/firefox/i.test(Z());if(/Trident/i.test(Z())&&Y(e)&&"fixed"===re(e).position)return null;var n=se(e);for(G(n)&&(n=n.host);Y(n)&&["html","body"].indexOf(oe(n))<0;){var o=re(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pe(e,t,n){return X(e,K(t,n))}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var me="top",he="bottom",ve="right",be="left",ge="auto",ye=[me,he,ve,be],xe="start",we="end",Oe="viewport",Ee="popper",Ce=ye.reduce((function(e,t){return e.concat([t+"-"+xe,t+"-"+we])}),[]),ke=[].concat(ye,[ge]).reduce((function(e,t){return e.concat([t,t+"-"+xe,t+"-"+we])}),[]),Se=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Pe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=U(n.placement),u=le(s),c=[be,ve].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return de("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,ye))}(r.padding,n),p=te(i),d="y"===u?me:be,f="y"===u?he:ve,m=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],h=a[u]-n.rects.reference[u],v=ce(i),b=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,y=l[d],x=b-p[c]-l[f],w=b/2-p[c]/2+g,O=pe(y,w,x),E=u;n.modifiersData[o]=((t={})[E]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&ne(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ie(e){return e.split("-")[1]}var Me={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Te(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,m=a.y,h=void 0===m?0:m,v="function"==typeof l?l({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),y=be,x=me,w=window;if(c){var O=ce(n),E="clientHeight",C="clientWidth";O===$(n)&&"static"!==re(O=ae(n)).position&&"absolute"===s&&(E="scrollHeight",C="scrollWidth"),(r===me||(r===be||r===ve)&&i===we)&&(x=he,h-=(p&&O===w&&w.visualViewport?w.visualViewport.height:O[E])-o.height,h*=u?1:-1),r!==be&&(r!==me&&r!==he||i!==we)||(y=ve,f-=(p&&O===w&&w.visualViewport?w.visualViewport.width:O[C])-o.width,f*=u?1:-1)}var k,S=Object.assign({position:s},c&&Me),P=!0===l?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:J(n*r)/r||0,y:J(o*r)/r||0}}({x:f,y:h},$(n)):{x:f,y:h};return f=P.x,h=P.y,u?Object.assign({},S,((k={})[x]=g?"0":"",k[y]=b?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",k)):Object.assign({},S,((t={})[x]=g?h+"px":"",t[y]=b?f+"px":"",t.transform="",t))}const Re={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:U(t.placement),variation:Ie(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Ae={passive:!0};const De={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,u=$(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ae)})),s&&u.addEventListener("resize",n.update,Ae),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ae)})),s&&u.removeEventListener("resize",n.update,Ae)}},data:{}};var je={left:"right",right:"left",bottom:"top",top:"bottom"};function Le(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var Ve={start:"end",end:"start"};function _e(e){return e.replace(/start|end/g,(function(e){return Ve[e]}))}function Ne(e){var t=$(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fe(e){return ee(ae(e)).left+Ne(e).scrollLeft}function He(e){var t=re(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Be(e){return["html","body","#document"].indexOf(oe(e))>=0?e.ownerDocument.body:Y(e)&&He(e)?e:Be(se(e))}function We(e,t){var n;void 0===t&&(t=[]);var o=Be(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=$(o),a=r?[i].concat(i.visualViewport||[],He(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(We(se(a)))}function ze(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ue(e,t,n){return t===Oe?ze(function(e,t){var n=$(e),o=ae(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,u=0;if(r){i=r.width,a=r.height;var c=Q();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,u=r.offsetTop)}return{width:i,height:a,x:s+Fe(e),y:u}}(e,n)):q(t)?function(e,t){var n=ee(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ze(function(e){var t,n=ae(e),o=Ne(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=X(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=X(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Fe(e),u=-o.scrollTop;return"rtl"===re(r||n).direction&&(s+=X(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(ae(e)))}function $e(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?U(r):null,a=r?Ie(r):null,s=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2;switch(i){case me:t={x:s,y:n.y-o.height};break;case he:t={x:s,y:n.y+n.height};break;case ve:t={x:n.x+n.width,y:u};break;case be:t={x:n.x-o.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?le(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case xe:t[c]=t[c]-(n[l]/2-o[l]/2);break;case we:t[c]=t[c]+(n[l]/2-o[l]/2)}}return t}function qe(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,u=void 0===s?"clippingParents":s,c=n.rootBoundary,l=void 0===c?Oe:c,p=n.elementContext,d=void 0===p?Ee:p,f=n.altBoundary,m=void 0!==f&&f,h=n.padding,v=void 0===h?0:h,b=de("number"!=typeof v?v:fe(v,ye)),g=d===Ee?"reference":Ee,y=e.rects.popper,x=e.elements[m?g:d],w=function(e,t,n,o){var r="clippingParents"===t?function(e){var t=We(se(e)),n=["absolute","fixed"].indexOf(re(e).position)>=0&&Y(e)?ce(e):e;return q(n)?t.filter((function(e){return q(e)&&ne(e,n)&&"body"!==oe(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],s=i.reduce((function(t,n){var r=Ue(e,n,o);return t.top=X(r.top,t.top),t.right=K(r.right,t.right),t.bottom=K(r.bottom,t.bottom),t.left=X(r.left,t.left),t}),Ue(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(q(x)?x:x.contextElement||ae(e.elements.popper),u,l,a),O=ee(e.elements.reference),E=$e({reference:O,element:y,strategy:"absolute",placement:r}),C=ze(Object.assign({},y,E)),k=d===Ee?C:O,S={top:w.top-k.top+b.top,bottom:k.bottom-w.bottom+b.bottom,left:w.left-k.left+b.left,right:k.right-w.right+b.right},P=e.modifiersData.offset;if(d===Ee&&P){var I=P[r];Object.keys(S).forEach((function(e){var t=[ve,he].indexOf(e)>=0?1:-1,n=[me,he].indexOf(e)>=0?"y":"x";S[e]+=I[n]*t}))}return S}const Ye={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,b=U(v),g=u||(b!==v&&m?function(e){if(U(e)===ge)return[];var t=Le(e);return[_e(e),t,_e(t)]}(v):[Le(v)]),y=[v].concat(g).reduce((function(e,n){return e.concat(U(n)===ge?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?ke:u,l=Ie(o),p=l?s?Ce:Ce.filter((function(e){return Ie(e)===l})):ye,d=p.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,n){return t[n]=qe(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[U(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var S=y[k],P=U(S),I=Ie(S)===xe,M=[me,he].indexOf(P)>=0,T=M?"width":"height",R=qe(t,{placement:S,boundary:l,rootBoundary:p,altBoundary:d,padding:c}),A=M?I?ve:be:I?he:me;x[T]>w[T]&&(A=Le(A));var D=Le(A),j=[];if(i&&j.push(R[P]<=0),s&&j.push(R[A]<=0,R[D]<=0),j.every((function(e){return e}))){C=S,E=!1;break}O.set(S,j)}if(E)for(var L=function(e){var t=y.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},V=m?3:1;V>0&&"break"!==L(V);V--);t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ge(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Xe(e){return[me,ve,he,be].some((function(t){return e[t]>=0}))}const Ke={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=qe(t,{elementContext:"reference"}),s=qe(t,{altBoundary:!0}),u=Ge(a,o),c=Ge(s,r,i),l=Xe(u),p=Xe(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}},Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=ke.reduce((function(e,n){return e[n]=function(e,t,n){var o=U(e),r=[be,me].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[be,ve].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}},Ze={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=$e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Qe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,v=qe(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:l}),b=U(t.placement),g=Ie(t.placement),y=!g,x=le(b),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(O){if(i){var M,T="y"===x?me:be,R="y"===x?he:ve,A="y"===x?"height":"width",D=O[x],j=D+v[T],L=D-v[R],V=f?-C[A]/2:0,_=g===xe?E[A]:C[A],N=g===xe?-C[A]:-E[A],F=t.elements.arrow,H=f&&F?te(F):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[T],z=B[R],$=pe(0,E[A],H[A]),q=y?E[A]/2-V-$-W-S.mainAxis:_-$-W-S.mainAxis,Y=y?-E[A]/2+V+$+z+S.mainAxis:N+$+z+S.mainAxis,G=t.elements.arrow&&ce(t.elements.arrow),J=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(M=null==P?void 0:P[x])?M:0,Q=D+Y-Z,ee=pe(f?K(j,D+q-Z-J):j,D,f?X(L,Q):L);O[x]=ee,I[x]=ee-D}if(s){var ne,oe="x"===x?me:be,re="x"===x?he:ve,ie=O[w],ae="y"===w?"height":"width",se=ie+v[oe],ue=ie-v[re],de=-1!==[me,be].indexOf(b),fe=null!=(ne=null==P?void 0:P[w])?ne:0,ge=de?se:ie-E[ae]-C[ae]-fe+S.altAxis,ye=de?ie+E[ae]+C[ae]-fe-S.altAxis:ue,we=f&&de?function(e,t,n){var o=pe(e,t,n);return o>n?n:o}(ge