@producteca/producteca-ui-kit 1.35.10 → 1.35.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject0,_templateObject1,_templateObject10,_templateObject11,_templateObject12,_templateObject13;function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf2(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct3())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf2(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function _toArray(r){return _arrayWithHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableRest2();}function _callSuper(t,o,e){return o=_getPrototypeOf2(o),_possibleConstructorReturn2(t,_isNativeReflectConstruct3()?Reflect.construct(o,e||[],_getPrototypeOf2(t).constructor):o.apply(t,e));}function _possibleConstructorReturn2(t,e){if(e&&("object"==_typeof2(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t);}function _assertThisInitialized2(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct3=function _isNativeReflectConstruct3(){return!!t;})();}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf2(t);}function _inherits2(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e);}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf2(t,e);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _taggedTemplateLiteral2(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck2(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function __defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey2(o.key),o);}}function _createClass2(e,r,t){return r&&__defineProperties(e.prototype,r),t&&__defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toConsumableArray2(r){return _arrayWithoutHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableSpread2();}function _nonIterableSpread2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray2(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles2(r){if(Array.isArray(r))return _arrayLikeToArray2(r);}function _slicedToArray2(r,e){return _arrayWithHoles2(r)||_iterableToArrayLimit2(r,e)||_unsupportedIterableToArray2(r,e)||_nonIterableRest2();}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit2(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles2(r){if(Array.isArray(r))return r;}function _defineProperty2(e,r,t){return(r=_toPropertyKey2(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey2(t){var i=_toPrimitive2(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _toPrimitive2(t,r){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof2(o){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof2(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray2(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray2(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray2(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(r,a):void 0;}}function _arrayLikeToArray2(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __pow=Math.pow;var __defNormalProp=function __defNormalProp(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value;};var __spreadValues=function __spreadValues(a,b){for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols){var _iterator=_createForOfIteratorHelper(__getOwnPropSymbols(b)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var prop=_step.value;if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}return a;};var __spreadProps=function __spreadProps(a,b){return __defProps(a,__getOwnPropDescs(b));};var __restKey=function __restKey(key){return _typeof2(key)==="symbol"?key:key+"";};var __objRest=function __objRest(source,exclude){var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols){var _iterator2=_createForOfIteratorHelper(__getOwnPropSymbols(source)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var prop=_step2.value;if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop];}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}return target;};var __publicField=function __publicField(obj,key,value){return __defNormalProp(obj,_typeof2(key)!=="symbol"?key+"":key,value);};var __async=function __async(__this,__arguments,generator){return new Promise(function(resolve,reject){var fulfilled=function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}};var rejected=function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}};var step=function step(x){return x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);};step((generator=generator.apply(__this,__arguments)).next());});};import{jsxs,jsx as jsx$1,Fragment as Fragment$1}from"react/jsx-runtime";import*as React from"react";import React__default,{forwardRef,useContext,isValidElement,cloneElement,Children,useState,useCallback,useLayoutEffect,useRef,useMemo,createContext,Component,Fragment,useEffect,createElement}from"react";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";function _arrayLikeToArray$1(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _arrayWithHoles$1(r2){if(Array.isArray(r2))return r2;}function _defineProperty$1(e,r2,t){return(r2=_toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function _iterableToArrayLimit$1(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l);else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function ownKeys$1(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2$1(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys$1(Object(t),true).forEach(function(r3){_defineProperty$1(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _objectWithoutProperties$1(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose$1(r2,e){if(null==r2)return{};var t={};for(var n in r2)if({}.hasOwnProperty.call(r2,n)){if(-1!==e.indexOf(n))continue;t[n]=r2[n];}return t;}function _slicedToArray$1(r2,e){return _arrayWithHoles$1(r2)||_iterableToArrayLimit$1(r2,e)||_unsupportedIterableToArray$1(r2,e)||_nonIterableRest$1();}function _toPrimitive(t,r2){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _typeof$1(o){"@babel/helpers - typeof";return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof$1(o);}function _unsupportedIterableToArray$1(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray$1(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray$1(r2,a):void 0;}}var btn="button-module_btn_XFZLT";var disabled$7="button-module_disabled_tB8LZ";var fullwidth$2="button-module_fullwidth_03y8a";var lg$a="button-module_lg_Hkfw0";var md$7="button-module_md_REpcP";var sm$9="button-module_sm_QYj0l";var primary$1="button-module_primary_ppbyq";var success$2="button-module_success_PUJLB";var secondary$1="button-module_secondary_esy5L";var error$4="button-module_error_eUPLx";var outline$1="button-module_outline_qVYGR";var link$1="button-module_link_imZgM";var styles$s={btn:btn,disabled:disabled$7,fullwidth:fullwidth$2,lg:lg$a,md:md$7,sm:sm$9,"with-adornment":"button-module_with-adornment_biWLE","left-adornment":"button-module_left-adornment_ifsGV","right-adornment":"button-module_right-adornment_8B4BV",primary:primary$1,success:success$2,secondary:secondary$1,error:error$4,outline:outline$1,link:link$1,"tooltip-link":"button-module_tooltip-link_BqvZl"};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==_typeof2(e))if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n;}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n;}var _excluded$14=["type","variant","size","label","outline","leftAdornment","rightAdornment","className"];var Button$2=function Button(_ref3){var _ref$type=_ref3.type,type=_ref$type===void 0?"button":_ref$type,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,label2=_ref3.label,outline2=_ref3.outline,leftAdornment=_ref3.leftAdornment,rightAdornment=_ref3.rightAdornment,_ref$className=_ref3.className,className=_ref$className===void 0?"":_ref$className,props=_objectWithoutProperties$1(_ref3,_excluded$14);var adornmentStyle=!!leftAdornment||!!rightAdornment?"with-adornment":"";return/* @__PURE__ */jsxs("button",_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,className:clsx(styles$s["btn"],styles$s[size2],styles$s[adornmentStyle],styles$s[variant],_defineProperty$1(_defineProperty$1({},styles$s["outline"],outline2),className,className)),children:[!!leftAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["left-adornment"]),children:leftAdornment}),label2,!!rightAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["right-adornment"]),children:rightAdornment})]}));};var common={black:"#000",white:"#fff"};var red={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"};var purple={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"};var blue={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"};var lightBlue={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"};var green={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var orange={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"};var grey$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function formatMuiErrorMessage(code){var url=new URL("https://mui.com/production-error/?code=".concat(code));for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++){args[_key5-1]=arguments[_key5];}args.forEach(function(arg2){return url.searchParams.append("args[]",arg2);});return"Minified MUI error #".concat(code,"; visit ").concat(url," for the full message.");}var THEME_ID="$$material";function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r2 in t)({}).hasOwnProperty.call(t,r2)&&(n[r2]=t[r2]);}return n;},_extends$1.apply(null,arguments);}function sheetForTag$1(tag){if(tag.sheet){return tag.sheet;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].ownerNode===tag){return document.styleSheets[i];}}return void 0;}function createStyleElement$1(options){var tag=document.createElement("style");tag.setAttribute("data-emotion",options.key);if(options.nonce!==void 0){tag.setAttribute("nonce",options.nonce);}tag.appendChild(document.createTextNode(""));tag.setAttribute("data-s","");return tag;}var StyleSheet$1=/* @__PURE__ */function(){function StyleSheet2(options){var _this=this;this._insertTag=function(tag){var before;if(_this.tags.length===0){if(_this.insertionPoint){before=_this.insertionPoint.nextSibling;}else if(_this.prepend){before=_this.container.firstChild;}else{before=_this.before;}}else{before=_this.tags[_this.tags.length-1].nextSibling;}_this.container.insertBefore(tag,before);_this.tags.push(tag);};this.isSpeedy=options.speedy===void 0?true:options.speedy;this.tags=[];this.ctr=0;this.nonce=options.nonce;this.key=options.key;this.container=options.container;this.prepend=options.prepend;this.insertionPoint=options.insertionPoint;this.before=null;}var _proto=StyleSheet2.prototype;_proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag);};_proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(createStyleElement$1(this));}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag$1(tag);try{sheet.insertRule(rule,sheet.cssRules.length);}catch(e){}}else{tag.appendChild(document.createTextNode(rule));}this.ctr++;};_proto.flush=function flush(){this.tags.forEach(function(tag){var _tag$parentNode;return(_tag$parentNode=tag.parentNode)==null?void 0:_tag$parentNode.removeChild(tag);});this.tags=[];this.ctr=0;};return StyleSheet2;}();var MS$1="-ms-";var MOZ$1="-moz-";var WEBKIT$1="-webkit-";var COMMENT$1="comm";var RULESET$1="rule";var DECLARATION$1="decl";var IMPORT$1="@import";var KEYFRAMES$1="@keyframes";var LAYER="@layer";var abs$1=Math.abs;var from$1=String.fromCharCode;var assign$1=Object.assign;function hash$5(value,length2){return charat$1(value,0)^45?(((length2<<2^charat$1(value,0))<<2^charat$1(value,1))<<2^charat$1(value,2))<<2^charat$1(value,3):0;}function trim$1(value){return value.trim();}function match$3(value,pattern){return(value=pattern.exec(value))?value[0]:value;}function replace$1(value,pattern,replacement){return value.replace(pattern,replacement);}function indexof$1(value,search){return value.indexOf(search);}function charat$1(value,index2){return value.charCodeAt(index2)|0;}function substr$1(value,begin,end2){return value.slice(begin,end2);}function strlen$1(value){return value.length;}function sizeof$1(value){return value.length;}function append$1(value,array){return array.push(value),value;}function combine$1(array,callback){return array.map(callback).join("");}var line$1=1;var column$1=1;var length$1=0;var position$1=0;var character$1=0;var characters$1="";function node$1(value,root,parent,type,props,children,length2){return{value:value,root:root,parent:parent,type:type,props:props,children:children,line:line$1,column:column$1,length:length2,return:""};}function copy$2(root,props){return assign$1(node$1("",null,null,"",null,null,0),root,{length:-root.length},props);}function char$1(){return character$1;}function prev$1(){character$1=position$1>0?charat$1(characters$1,--position$1):0;if(column$1--,character$1===10)column$1=1,line$1--;return character$1;}function next$1(){character$1=position$1<length$1?charat$1(characters$1,position$1++):0;if(column$1++,character$1===10)column$1=1,line$1++;return character$1;}function peek$1(){return charat$1(characters$1,position$1);}function caret$1(){return position$1;}function slice$1(begin,end2){return substr$1(characters$1,begin,end2);}function token$1(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1;}return 0;}function alloc$1(value){return line$1=column$1=1,length$1=strlen$1(characters$1=value),position$1=0,[];}function dealloc$1(value){return characters$1="",value;}function delimit$1(type){return trim$1(slice$1(position$1-1,delimiter$1(type===91?type+2:type===40?type+1:type)));}function whitespace$1(type){while(character$1=peek$1())if(character$1<33)next$1();else break;return token$1(type)>2||token$1(character$1)>3?"":" ";}function escaping$1(index2,count2){while(--count2&&next$1())if(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97)break;return slice$1(index2,caret$1()+(count2<6&&peek$1()==32&&next$1()==32));}function delimiter$1(type){while(next$1())switch(character$1){case type:return position$1;case 34:case 39:if(type!==34&&type!==39)delimiter$1(character$1);break;case 40:if(type===41)delimiter$1(type);break;case 92:next$1();break;}return position$1;}function commenter$1(type,index2){while(next$1())if(type+character$1===47+10)break;else if(type+character$1===42+42&&peek$1()===47)break;return"/*"+slice$1(index2,position$1-1)+"*"+from$1(type===47?type:next$1());}function identifier$2(index2){while(!token$1(peek$1()))next$1();return slice$1(index2,position$1);}function compile$1(value){return dealloc$1(parse$2("",null,null,null,[""],value=alloc$1(value),0,[0],value));}function parse$2(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference2=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next$1()){case 40:if(previous!=108&&charat$1(characters2,length2-1)==58){if(indexof$1(characters2+=replace$1(delimit$1(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break;}case 34:case 39:case 91:characters2+=delimit$1(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace$1(previous);break;case 92:characters2+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),root,parent),declarations);break;default:characters2+="/";}break;case 123*variable:points[index2++]=strlen$1(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(ampersand==-1)characters2=replace$1(characters2,/\f/g,"");if(property>0&&strlen$1(characters2)-length2)append$1(property>32?declaration$1(characters2+";",rule,parent,length2-1):declaration$1(replace$1(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append$1(reference2=ruleset$1(characters2,root,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse$2(characters2,root,reference2,reference2,props,rulesets,length2,points,children);else switch(atrule===99&&charat$1(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse$2(value,reference2,reference2,rule&&append$1(ruleset$1(value,reference2,reference2,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse$2(characters2,reference2,reference2,reference2,[""],children,0,points,children);}}index2=offset2=property=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen$1(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev$1()==125)continue;}switch(characters2+=from$1(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen$1(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek$1()===45)characters2+=delimit$1(next$1());atrule=peek$1(),offset2=length2=strlen$1(type=characters2+=identifier$2(caret$1())),character2++;break;case 45:if(previous===45&&strlen$1(characters2)==2)variable=0;}}return rulesets;}function ruleset$1(value,root,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size2=sizeof$1(rule);for(var i=0,j=0,k=0;i<index2;++i)for(var x=0,y=substr$1(value,post+1,post=abs$1(j=points[i])),z=value;x<size2;++x)if(z=trim$1(j>0?rule[x]+" "+y:replace$1(y,/&\f/g,rule[x])))props[k++]=z;return node$1(value,root,parent,offset2===0?RULESET$1:type,props,children,length2);}function comment$1(value,root,parent){return node$1(value,root,parent,COMMENT$1,from$1(char$1()),substr$1(value,2,-2),0);}function declaration$1(value,root,parent,length2){return node$1(value,root,parent,DECLARATION$1,substr$1(value,0,length2),substr$1(value,length2+1,-1),length2);}function serialize$1(children,callback){var output="";var length2=sizeof$1(children);for(var i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output;}function stringify$1(element,index2,children,callback){switch(element.type){case LAYER:if(element.children.length)break;case IMPORT$1:case DECLARATION$1:return element.return=element.return||element.value;case COMMENT$1:return"";case KEYFRAMES$1:return element.return=element.value+"{"+serialize$1(element.children,callback)+"}";case RULESET$1:element.value=element.props.join(",");}return strlen$1(children=serialize$1(element.children,callback))?element.return=element.value+"{"+children+"}":"";}function middleware$1(collection){var length2=sizeof$1(collection);return function(element,index2,children,callback){var output="";for(var i=0;i<length2;i++)output+=collection[i](element,index2,children,callback)||"";return output;};}function rulesheet$1(callback){return function(element){if(!element.root){if(element=element.return)callback(element);}};}function memoize$2(fn3){var cache=/* @__PURE__ */Object.create(null);return function(arg2){if(cache[arg2]===void 0)cache[arg2]=fn3(arg2);return cache[arg2];};}var identifierWithPointTracking$1=function identifierWithPointTracking(begin,points,index2){var previous=0;var character2=0;while(true){previous=character2;character2=peek$1();if(previous===38&&character2===12){points[index2]=1;}if(token$1(character2)){break;}next$1();}return slice$1(begin,position$1);};var toRules$1=function toRules(parsed,points){var index2=-1;var character2=44;do{switch(token$1(character2)){case 0:if(character2===38&&peek$1()===12){points[index2]=1;}parsed[index2]+=identifierWithPointTracking$1(position$1-1,points,index2);break;case 2:parsed[index2]+=delimit$1(character2);break;case 4:if(character2===44){parsed[++index2]=peek$1()===58?"&\f":"";points[index2]=parsed[index2].length;break;}default:parsed[index2]+=from$1(character2);}}while(character2=next$1());return parsed;};var getRules$1=function getRules(value,points){return dealloc$1(toRules$1(alloc$1(value),points));};var fixedElements$1=/* @__PURE__ */new WeakMap();var compat$1=function compat(element){if(element.type!=="rule"||!element.parent||// positive .length indicates that this rule contains pseudo
|
|
1
|
+
var _templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject0,_templateObject1,_templateObject10,_templateObject11,_templateObject12,_templateObject13;function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf2(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct3())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf2(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function _toArray(r){return _arrayWithHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableRest2();}function _callSuper(t,o,e){return o=_getPrototypeOf2(o),_possibleConstructorReturn2(t,_isNativeReflectConstruct3()?Reflect.construct(o,e||[],_getPrototypeOf2(t).constructor):o.apply(t,e));}function _possibleConstructorReturn2(t,e){if(e&&("object"==_typeof2(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t);}function _assertThisInitialized2(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct3=function _isNativeReflectConstruct3(){return!!t;})();}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf2(t);}function _inherits2(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e);}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf2(t,e);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _taggedTemplateLiteral2(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck2(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function __defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey2(o.key),o);}}function _createClass2(e,r,t){return r&&__defineProperties(e.prototype,r),t&&__defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toConsumableArray2(r){return _arrayWithoutHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableSpread2();}function _nonIterableSpread2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray2(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles2(r){if(Array.isArray(r))return _arrayLikeToArray2(r);}function _slicedToArray2(r,e){return _arrayWithHoles2(r)||_iterableToArrayLimit2(r,e)||_unsupportedIterableToArray2(r,e)||_nonIterableRest2();}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit2(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles2(r){if(Array.isArray(r))return r;}function _defineProperty2(e,r,t){return(r=_toPropertyKey2(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey2(t){var i=_toPrimitive2(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _toPrimitive2(t,r){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof2(o){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof2(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray2(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray2(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray2(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(r,a):void 0;}}function _arrayLikeToArray2(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __pow=Math.pow;var __defNormalProp=function __defNormalProp(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value;};var __spreadValues=function __spreadValues(a,b){for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols){var _iterator=_createForOfIteratorHelper(__getOwnPropSymbols(b)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var prop=_step.value;if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}return a;};var __spreadProps=function __spreadProps(a,b){return __defProps(a,__getOwnPropDescs(b));};var __restKey=function __restKey(key){return _typeof2(key)==="symbol"?key:key+"";};var __objRest=function __objRest(source,exclude){var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols){var _iterator2=_createForOfIteratorHelper(__getOwnPropSymbols(source)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var prop=_step2.value;if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop];}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}return target;};var __publicField=function __publicField(obj,key,value){return __defNormalProp(obj,_typeof2(key)!=="symbol"?key+"":key,value);};var __async=function __async(__this,__arguments,generator){return new Promise(function(resolve,reject){var fulfilled=function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}};var rejected=function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}};var step=function step(x){return x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);};step((generator=generator.apply(__this,__arguments)).next());});};import{jsxs,jsx as jsx$1,Fragment as Fragment$1}from"react/jsx-runtime";import*as React from"react";import React__default,{forwardRef,useContext,isValidElement,cloneElement,Children,useState,useCallback,useLayoutEffect,useRef,useMemo,createContext,Component,Fragment,useEffect,createElement}from"react";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";function _arrayLikeToArray$1(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _arrayWithHoles$1(r2){if(Array.isArray(r2))return r2;}function _defineProperty$1(e,r2,t){return(r2=_toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function _iterableToArrayLimit$1(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l);else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function ownKeys$1(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2$1(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys$1(Object(t),true).forEach(function(r3){_defineProperty$1(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _objectWithoutProperties$1(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose$1(r2,e){if(null==r2)return{};var t={};for(var n in r2)if({}.hasOwnProperty.call(r2,n)){if(-1!==e.indexOf(n))continue;t[n]=r2[n];}return t;}function _slicedToArray$1(r2,e){return _arrayWithHoles$1(r2)||_iterableToArrayLimit$1(r2,e)||_unsupportedIterableToArray$1(r2,e)||_nonIterableRest$1();}function _toPrimitive(t,r2){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _typeof$1(o){"@babel/helpers - typeof";return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof$1(o);}function _unsupportedIterableToArray$1(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray$1(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray$1(r2,a):void 0;}}var btn="button-module_btn_XFZLT";var disabled$7="button-module_disabled_tB8LZ";var fullwidth$2="button-module_fullwidth_03y8a";var lg$a="button-module_lg_Hkfw0";var md$7="button-module_md_REpcP";var sm$9="button-module_sm_QYj0l";var primary$1="button-module_primary_ppbyq";var success$2="button-module_success_PUJLB";var secondary$1="button-module_secondary_esy5L";var error$4="button-module_error_eUPLx";var outline$1="button-module_outline_qVYGR";var link$1="button-module_link_imZgM";var styles$s={btn:btn,disabled:disabled$7,fullwidth:fullwidth$2,lg:lg$a,md:md$7,sm:sm$9,"with-adornment":"button-module_with-adornment_biWLE","left-adornment":"button-module_left-adornment_ifsGV","right-adornment":"button-module_right-adornment_8B4BV",primary:primary$1,success:success$2,secondary:secondary$1,error:error$4,outline:outline$1,link:link$1,"tooltip-link":"button-module_tooltip-link_BqvZl"};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==_typeof2(e))if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n;}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n;}var _excluded$14=["type","variant","size","label","outline","leftAdornment","rightAdornment","className"];var Button$2=function Button(_ref3){var _ref$type=_ref3.type,type=_ref$type===void 0?"button":_ref$type,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,label2=_ref3.label,outline2=_ref3.outline,leftAdornment=_ref3.leftAdornment,rightAdornment=_ref3.rightAdornment,_ref$className=_ref3.className,className=_ref$className===void 0?"":_ref$className,props=_objectWithoutProperties$1(_ref3,_excluded$14);var adornmentStyle=!!leftAdornment||!!rightAdornment?"with-adornment":"";return/* @__PURE__ */jsxs("button",_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,className:clsx(styles$s["btn"],styles$s[size2],styles$s[adornmentStyle],styles$s[variant],_defineProperty$1(_defineProperty$1({},styles$s["outline"],outline2),className,className)),children:[!!leftAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["left-adornment"]),children:leftAdornment}),label2,!!rightAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["right-adornment"]),children:rightAdornment})]}));};var common={black:"#000",white:"#fff"};var red={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"};var purple={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"};var blue={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"};var lightBlue={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"};var green={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var orange={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"};var grey$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function formatMuiErrorMessage(code){var url=new URL("https://mui.com/production-error/?code=".concat(code));for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++){args[_key5-1]=arguments[_key5];}args.forEach(function(arg2){return url.searchParams.append("args[]",arg2);});return"Minified MUI error #".concat(code,"; visit ").concat(url," for the full message.");}var THEME_ID="$$material";function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r2 in t)({}).hasOwnProperty.call(t,r2)&&(n[r2]=t[r2]);}return n;},_extends$1.apply(null,arguments);}function sheetForTag$1(tag){if(tag.sheet){return tag.sheet;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].ownerNode===tag){return document.styleSheets[i];}}return void 0;}function createStyleElement$1(options){var tag=document.createElement("style");tag.setAttribute("data-emotion",options.key);if(options.nonce!==void 0){tag.setAttribute("nonce",options.nonce);}tag.appendChild(document.createTextNode(""));tag.setAttribute("data-s","");return tag;}var StyleSheet$1=/* @__PURE__ */function(){function StyleSheet2(options){var _this=this;this._insertTag=function(tag){var before;if(_this.tags.length===0){if(_this.insertionPoint){before=_this.insertionPoint.nextSibling;}else if(_this.prepend){before=_this.container.firstChild;}else{before=_this.before;}}else{before=_this.tags[_this.tags.length-1].nextSibling;}_this.container.insertBefore(tag,before);_this.tags.push(tag);};this.isSpeedy=options.speedy===void 0?true:options.speedy;this.tags=[];this.ctr=0;this.nonce=options.nonce;this.key=options.key;this.container=options.container;this.prepend=options.prepend;this.insertionPoint=options.insertionPoint;this.before=null;}var _proto=StyleSheet2.prototype;_proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag);};_proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(createStyleElement$1(this));}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag$1(tag);try{sheet.insertRule(rule,sheet.cssRules.length);}catch(e){}}else{tag.appendChild(document.createTextNode(rule));}this.ctr++;};_proto.flush=function flush(){this.tags.forEach(function(tag){var _tag$parentNode;return(_tag$parentNode=tag.parentNode)==null?void 0:_tag$parentNode.removeChild(tag);});this.tags=[];this.ctr=0;};return StyleSheet2;}();var MS$1="-ms-";var MOZ$1="-moz-";var WEBKIT$1="-webkit-";var COMMENT$1="comm";var RULESET$1="rule";var DECLARATION$1="decl";var IMPORT$1="@import";var KEYFRAMES$1="@keyframes";var LAYER="@layer";var abs$1=Math.abs;var from$1=String.fromCharCode;var assign$1=Object.assign;function hash$5(value,length2){return charat$1(value,0)^45?(((length2<<2^charat$1(value,0))<<2^charat$1(value,1))<<2^charat$1(value,2))<<2^charat$1(value,3):0;}function trim$1(value){return value.trim();}function match$3(value,pattern){return(value=pattern.exec(value))?value[0]:value;}function replace$1(value,pattern,replacement){return value.replace(pattern,replacement);}function indexof$1(value,search){return value.indexOf(search);}function charat$1(value,index2){return value.charCodeAt(index2)|0;}function substr$1(value,begin,end2){return value.slice(begin,end2);}function strlen$1(value){return value.length;}function sizeof$1(value){return value.length;}function append$1(value,array){return array.push(value),value;}function combine$1(array,callback){return array.map(callback).join("");}var line$1=1;var column$1=1;var length$1=0;var position$1=0;var character$1=0;var characters$1="";function node$1(value,root2,parent,type,props,children,length2){return{value:value,root:root2,parent:parent,type:type,props:props,children:children,line:line$1,column:column$1,length:length2,return:""};}function copy$2(root2,props){return assign$1(node$1("",null,null,"",null,null,0),root2,{length:-root2.length},props);}function char$1(){return character$1;}function prev$1(){character$1=position$1>0?charat$1(characters$1,--position$1):0;if(column$1--,character$1===10)column$1=1,line$1--;return character$1;}function next$1(){character$1=position$1<length$1?charat$1(characters$1,position$1++):0;if(column$1++,character$1===10)column$1=1,line$1++;return character$1;}function peek$1(){return charat$1(characters$1,position$1);}function caret$1(){return position$1;}function slice$1(begin,end2){return substr$1(characters$1,begin,end2);}function token$1(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1;}return 0;}function alloc$1(value){return line$1=column$1=1,length$1=strlen$1(characters$1=value),position$1=0,[];}function dealloc$1(value){return characters$1="",value;}function delimit$1(type){return trim$1(slice$1(position$1-1,delimiter$1(type===91?type+2:type===40?type+1:type)));}function whitespace$1(type){while(character$1=peek$1())if(character$1<33)next$1();else break;return token$1(type)>2||token$1(character$1)>3?"":" ";}function escaping$1(index2,count2){while(--count2&&next$1())if(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97)break;return slice$1(index2,caret$1()+(count2<6&&peek$1()==32&&next$1()==32));}function delimiter$1(type){while(next$1())switch(character$1){case type:return position$1;case 34:case 39:if(type!==34&&type!==39)delimiter$1(character$1);break;case 40:if(type===41)delimiter$1(type);break;case 92:next$1();break;}return position$1;}function commenter$1(type,index2){while(next$1())if(type+character$1===47+10)break;else if(type+character$1===42+42&&peek$1()===47)break;return"/*"+slice$1(index2,position$1-1)+"*"+from$1(type===47?type:next$1());}function identifier$2(index2){while(!token$1(peek$1()))next$1();return slice$1(index2,position$1);}function compile$1(value){return dealloc$1(parse$2("",null,null,null,[""],value=alloc$1(value),0,[0],value));}function parse$2(value,root2,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property2=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference2=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next$1()){case 40:if(previous!=108&&charat$1(characters2,length2-1)==58){if(indexof$1(characters2+=replace$1(delimit$1(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break;}case 34:case 39:case 91:characters2+=delimit$1(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace$1(previous);break;case 92:characters2+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),root2,parent),declarations);break;default:characters2+="/";}break;case 123*variable:points[index2++]=strlen$1(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(ampersand==-1)characters2=replace$1(characters2,/\f/g,"");if(property2>0&&strlen$1(characters2)-length2)append$1(property2>32?declaration$1(characters2+";",rule,parent,length2-1):declaration$1(replace$1(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append$1(reference2=ruleset$1(characters2,root2,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse$2(characters2,root2,reference2,reference2,props,rulesets,length2,points,children);else switch(atrule===99&&charat$1(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse$2(value,reference2,reference2,rule&&append$1(ruleset$1(value,reference2,reference2,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse$2(characters2,reference2,reference2,reference2,[""],children,0,points,children);}}index2=offset2=property2=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen$1(characters2),property2=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev$1()==125)continue;}switch(characters2+=from$1(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen$1(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek$1()===45)characters2+=delimit$1(next$1());atrule=peek$1(),offset2=length2=strlen$1(type=characters2+=identifier$2(caret$1())),character2++;break;case 45:if(previous===45&&strlen$1(characters2)==2)variable=0;}}return rulesets;}function ruleset$1(value,root2,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size2=sizeof$1(rule);for(var i=0,j=0,k=0;i<index2;++i)for(var x=0,y=substr$1(value,post+1,post=abs$1(j=points[i])),z=value;x<size2;++x)if(z=trim$1(j>0?rule[x]+" "+y:replace$1(y,/&\f/g,rule[x])))props[k++]=z;return node$1(value,root2,parent,offset2===0?RULESET$1:type,props,children,length2);}function comment$1(value,root2,parent){return node$1(value,root2,parent,COMMENT$1,from$1(char$1()),substr$1(value,2,-2),0);}function declaration$1(value,root2,parent,length2){return node$1(value,root2,parent,DECLARATION$1,substr$1(value,0,length2),substr$1(value,length2+1,-1),length2);}function serialize$1(children,callback){var output="";var length2=sizeof$1(children);for(var i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output;}function stringify$1(element,index2,children,callback){switch(element.type){case LAYER:if(element.children.length)break;case IMPORT$1:case DECLARATION$1:return element.return=element.return||element.value;case COMMENT$1:return"";case KEYFRAMES$1:return element.return=element.value+"{"+serialize$1(element.children,callback)+"}";case RULESET$1:element.value=element.props.join(",");}return strlen$1(children=serialize$1(element.children,callback))?element.return=element.value+"{"+children+"}":"";}function middleware$1(collection){var length2=sizeof$1(collection);return function(element,index2,children,callback){var output="";for(var i=0;i<length2;i++)output+=collection[i](element,index2,children,callback)||"";return output;};}function rulesheet$1(callback){return function(element){if(!element.root){if(element=element.return)callback(element);}};}function memoize$4(fn3){var cache=/* @__PURE__ */Object.create(null);return function(arg2){if(cache[arg2]===void 0)cache[arg2]=fn3(arg2);return cache[arg2];};}var identifierWithPointTracking$1=function identifierWithPointTracking(begin,points,index2){var previous=0;var character2=0;while(true){previous=character2;character2=peek$1();if(previous===38&&character2===12){points[index2]=1;}if(token$1(character2)){break;}next$1();}return slice$1(begin,position$1);};var toRules$1=function toRules(parsed,points){var index2=-1;var character2=44;do{switch(token$1(character2)){case 0:if(character2===38&&peek$1()===12){points[index2]=1;}parsed[index2]+=identifierWithPointTracking$1(position$1-1,points,index2);break;case 2:parsed[index2]+=delimit$1(character2);break;case 4:if(character2===44){parsed[++index2]=peek$1()===58?"&\f":"";points[index2]=parsed[index2].length;break;}default:parsed[index2]+=from$1(character2);}}while(character2=next$1());return parsed;};var getRules$1=function getRules(value,points){return dealloc$1(toRules$1(alloc$1(value),points));};var fixedElements$1=/* @__PURE__ */new WeakMap();var compat$1=function compat(element){if(element.type!=="rule"||!element.parent||// positive .length indicates that this rule contains pseudo
|
|
2
2
|
// negative .length indicates that this rule has been already prefixed
|
|
3
3
|
element.length<1){return;}var value=element.value;var parent=element.parent;var isImplicitRule=element.column===parent.column&&element.line===parent.line;while(parent.type!=="rule"){parent=parent.parent;if(!parent)return;}if(element.props.length===1&&value.charCodeAt(0)!==58&&!fixedElements$1.get(parent)){return;}if(isImplicitRule){return;}fixedElements$1.set(element,true);var points=[];var rules=getRules$1(value,points);var parentRules=parent.props;for(var i=0,k=0;i<rules.length;i++){for(var j=0;j<parentRules.length;j++,k++){element.props[k]=points[i]?rules[i].replace(/&\f/g,parentRules[j]):parentRules[j]+" "+rules[i];}}};var removeLabel$1=function removeLabel(element){if(element.type==="decl"){var value=element.value;if(// charcode for l
|
|
4
4
|
value.charCodeAt(0)===108&&// charcode for b
|
|
@@ -29,13 +29,13 @@ type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROF
|
|
|
29
29
|
// the registered cache to know whether a style is global or not
|
|
30
30
|
// also, note that this check will be dead code eliminated in the browser
|
|
31
31
|
isBrowser$6===false)&&cache.registered[className]===void 0){cache.registered[className]=serialized.styles;}};var insertStyles$2=function insertStyles(cache,serialized,isStringTag2){registerStyles$2(cache,serialized,isStringTag2);var className=cache.key+"-"+serialized.name;if(cache.inserted[serialized.name]===void 0){var current=serialized;do{cache.insert(serialized===current?"."+className:"",current,cache.sheet,true);current=current.next;}while(current!==void 0);}};function murmur2$2(str){var h=0;var k,i=0,len=str.length;for(;len>=4;++i,len-=4){k=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24;k=/* Math.imul(k, m): */(k&65535)*1540483477+((k>>>16)*59797<<16);k^=/* k >>> r: */k>>>24;h=/* Math.imul(k, m): */(k&65535)*1540483477+((k>>>16)*59797<<16)^/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);}switch(len){case 3:h^=(str.charCodeAt(i+2)&255)<<16;case 2:h^=(str.charCodeAt(i+1)&255)<<8;case 1:h^=str.charCodeAt(i)&255;h=/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);}h^=h>>>13;h=/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);return((h^h>>>15)>>>0).toString(36);}var unitlessKeys$2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,// SVG-related properties
|
|
32
|
-
fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var hyphenateRegex$2=/[A-Z]|^ms/g;var animationRegex$2=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty$2=function isCustomProperty(
|
|
32
|
+
fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var hyphenateRegex$2=/[A-Z]|^ms/g;var animationRegex$2=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty$2=function isCustomProperty(property2){return property2.charCodeAt(1)===45;};var isProcessableValue$2=function isProcessableValue(value){return value!=null&&typeof value!=="boolean";};var processStyleName$2=/* @__PURE__ */memoize$4(function(styleName){return isCustomProperty$2(styleName)?styleName:styleName.replace(hyphenateRegex$2,"-$&").toLowerCase();});var processStyleValue$2=function processStyleValue(key,value){switch(key){case"animation":case"animationName":{if(typeof value==="string"){return value.replace(animationRegex$2,function(match2,p1,p2){cursor$2={name:p1,styles:p2,next:cursor$2};return p1;});}}}if(unitlessKeys$2[key]!==1&&!isCustomProperty$2(key)&&typeof value==="number"&&value!==0){return value+"px";}return value;};function handleInterpolation$2(mergedProps,registered,interpolation){if(interpolation==null){return"";}var componentSelector=interpolation;if(componentSelector.__emotion_styles!==void 0){return componentSelector;}switch(_typeof2(interpolation)){case"boolean":{return"";}case"object":{var keyframes2=interpolation;if(keyframes2.anim===1){cursor$2={name:keyframes2.name,styles:keyframes2.styles,next:cursor$2};return keyframes2.name;}var serializedStyles=interpolation;if(serializedStyles.styles!==void 0){var next2=serializedStyles.next;if(next2!==void 0){while(next2!==void 0){cursor$2={name:next2.name,styles:next2.styles,next:cursor$2};next2=next2.next;}}var styles2=serializedStyles.styles+";";return styles2;}return createStringFromObject$2(mergedProps,registered,interpolation);}case"function":{if(mergedProps!==void 0){var previousCursor=cursor$2;var result=interpolation(mergedProps);cursor$2=previousCursor;return handleInterpolation$2(mergedProps,registered,result);}break;}}var asString=interpolation;if(registered==null){return asString;}var cached=registered[asString];return cached!==void 0?cached:asString;}function createStringFromObject$2(mergedProps,registered,obj){var string="";if(Array.isArray(obj)){for(var i=0;i<obj.length;i++){string+=handleInterpolation$2(mergedProps,registered,obj[i])+";";}}else{for(var key in obj){var value=obj[key];if(_typeof2(value)!=="object"){var asString=value;if(registered!=null&®istered[asString]!==void 0){string+=key+"{"+registered[asString]+"}";}else if(isProcessableValue$2(asString)){string+=processStyleName$2(key)+":"+processStyleValue$2(key,asString)+";";}}else{if(Array.isArray(value)&&typeof value[0]==="string"&&(registered==null||registered[value[0]]===void 0)){for(var _i=0;_i<value.length;_i++){if(isProcessableValue$2(value[_i])){string+=processStyleName$2(key)+":"+processStyleValue$2(key,value[_i])+";";}}}else{var interpolated=handleInterpolation$2(mergedProps,registered,value);switch(key){case"animation":case"animationName":{string+=processStyleName$2(key)+":"+interpolated+";";break;}default:{string+=key+"{"+interpolated+"}";}}}}}}return string;}var labelPattern$2=/label:\s*([^\s;{]+)\s*(;|$)/g;var cursor$2;function serializeStyles$2(args,registered,mergedProps){if(args.length===1&&_typeof2(args[0])==="object"&&args[0]!==null&&args[0].styles!==void 0){return args[0];}var stringMode=true;var styles2="";cursor$2=void 0;var strings=args[0];if(strings==null||strings.raw===void 0){stringMode=false;styles2+=handleInterpolation$2(mergedProps,registered,strings);}else{var asTemplateStringsArr=strings;styles2+=asTemplateStringsArr[0];}for(var i=1;i<args.length;i++){styles2+=handleInterpolation$2(mergedProps,registered,args[i]);if(stringMode){var templateStringsArr=strings;styles2+=templateStringsArr[i];}}labelPattern$2.lastIndex=0;var identifierName="";var match2;while((match2=labelPattern$2.exec(styles2))!==null){identifierName+="-"+match2[1];}var name=murmur2$2(styles2)+identifierName;return{name:name,styles:styles2,next:cursor$2};}var syncFallback$1=function syncFallback(create){return create();};var useInsertionEffect$2=React["useInsertionEffect"]?React["useInsertionEffect"]:false;var useInsertionEffectAlwaysWithSyncFallback$1=useInsertionEffect$2||syncFallback$1;var useInsertionEffectWithLayoutFallback=useInsertionEffect$2||React.useLayoutEffect;var EmotionCacheContext$1=/* @__PURE__ */React.createContext(// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
33
33
|
// because this module is primarily intended for the browser and node
|
|
34
34
|
// but it's also required in react native and similar environments sometimes
|
|
35
35
|
// and we could have a special build just for that
|
|
36
36
|
// but this is much easier and the native packages
|
|
37
37
|
// might use a different theme context in the future anyway
|
|
38
|
-
typeof HTMLElement!=="undefined"?/* @__PURE__ */createCache$1({key:"css"}):null);EmotionCacheContext$1.Provider;var withEmotionCache$1=function withEmotionCache(func){return/* @__PURE__ */forwardRef(function(props,ref){var cache=useContext(EmotionCacheContext$1);return func(props,cache,ref);});};var ThemeContext$1=/* @__PURE__ */React.createContext({});var hasOwn={}.hasOwnProperty;var typePropName$1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__";var createEmotionProps=function createEmotionProps2(type,props){var newProps={};for(var _key in props){if(hasOwn.call(props,_key)){newProps[_key]=props[_key];}}newProps[typePropName$1]=type;return newProps;};var Insertion$3=function Insertion(_ref3){var cache=_ref3.cache,serialized=_ref3.serialized,isStringTag2=_ref3.isStringTag;registerStyles$2(cache,serialized,isStringTag2);useInsertionEffectAlwaysWithSyncFallback$1(function(){return insertStyles$2(cache,serialized,isStringTag2);});return null;};var Emotion$1=/* @__PURE__ */withEmotionCache$1(function(props,cache,ref){var cssProp=props.css;if(typeof cssProp==="string"&&cache.registered[cssProp]!==void 0){cssProp=cache.registered[cssProp];}var WrappedComponent=props[typePropName$1];var registeredStyles=[cssProp];var className="";if(typeof props.className==="string"){className=getRegisteredStyles$2(cache.registered,registeredStyles,props.className);}else if(props.className!=null){className=props.className+" ";}var serialized=serializeStyles$2(registeredStyles,void 0,React.useContext(ThemeContext$1));className+=cache.key+"-"+serialized.name;var newProps={};for(var _key2 in props){if(hasOwn.call(props,_key2)&&_key2!=="css"&&_key2!==typePropName$1&&true){newProps[_key2]=props[_key2];}}newProps.className=className;if(ref){newProps.ref=ref;}return/* @__PURE__ */React.createElement(React.Fragment,null,/* @__PURE__ */React.createElement(Insertion$3,{cache:cache,serialized:serialized,isStringTag:typeof WrappedComponent==="string"}),/* @__PURE__ */React.createElement(WrappedComponent,newProps));});var Emotion$1$1=Emotion$1;var jsx=function jsx2(type,props){var args=arguments;if(props==null||!hasOwn.call(props,"css")){return React.createElement.apply(void 0,args);}var argsLength=args.length;var createElementArgArray=new Array(argsLength);createElementArgArray[0]=Emotion$1$1;createElementArgArray[1]=createEmotionProps(type,props);for(var i=2;i<argsLength;i++){createElementArgArray[i]=args[i];}return React.createElement.apply(null,createElementArgArray);};(function(_jsx){var JSX;/* @__PURE__ */(function(_JSX){})(JSX||(JSX=_jsx.JSX||(_jsx.JSX={})));})(jsx||(jsx={}));var Global=/* @__PURE__ */withEmotionCache$1(function(props,cache){var styles2=props.styles;var serialized=serializeStyles$2([styles2],void 0,React.useContext(ThemeContext$1));var sheetRef=React.useRef();useInsertionEffectWithLayoutFallback(function(){var key=cache.key+"-global";var sheet=new cache.sheet.constructor({key:key,nonce:cache.sheet.nonce,container:cache.sheet.container,speedy:cache.sheet.isSpeedy});var rehydrating=false;var node2=document.querySelector('style[data-emotion="'+key+" "+serialized.name+'"]');if(cache.sheet.tags.length){sheet.before=cache.sheet.tags[0];}if(node2!==null){rehydrating=true;node2.setAttribute("data-emotion",key);sheet.hydrate([node2]);}sheetRef.current=[sheet,rehydrating];return function(){sheet.flush();};},[cache]);useInsertionEffectWithLayoutFallback(function(){var sheetRefCurrent=sheetRef.current;var sheet=sheetRefCurrent[0],rehydrating=sheetRefCurrent[1];if(rehydrating){sheetRefCurrent[1]=false;return;}if(serialized.next!==void 0){insertStyles$2(cache,serialized.next,true);}if(sheet.tags.length){var element=sheet.tags[sheet.tags.length-1].nextElementSibling;sheet.before=element;sheet.flush();}cache.insert("",serialized,sheet,false);},[cache,serialized.name]);return null;});function css$2(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return serializeStyles$2(args);}function keyframes(){var insertable=css$2.apply(void 0,arguments);var name="animation-"+insertable.name;return{name:name,styles:"@keyframes "+name+"{"+insertable.styles+"}",anim:1,toString:function
|
|
38
|
+
typeof HTMLElement!=="undefined"?/* @__PURE__ */createCache$1({key:"css"}):null);EmotionCacheContext$1.Provider;var withEmotionCache$1=function withEmotionCache(func){return/* @__PURE__ */forwardRef(function(props,ref){var cache=useContext(EmotionCacheContext$1);return func(props,cache,ref);});};var ThemeContext$1=/* @__PURE__ */React.createContext({});var hasOwn={}.hasOwnProperty;var typePropName$1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__";var createEmotionProps=function createEmotionProps2(type,props){var newProps={};for(var _key in props){if(hasOwn.call(props,_key)){newProps[_key]=props[_key];}}newProps[typePropName$1]=type;return newProps;};var Insertion$3=function Insertion(_ref3){var cache=_ref3.cache,serialized=_ref3.serialized,isStringTag2=_ref3.isStringTag;registerStyles$2(cache,serialized,isStringTag2);useInsertionEffectAlwaysWithSyncFallback$1(function(){return insertStyles$2(cache,serialized,isStringTag2);});return null;};var Emotion$1=/* @__PURE__ */withEmotionCache$1(function(props,cache,ref){var cssProp=props.css;if(typeof cssProp==="string"&&cache.registered[cssProp]!==void 0){cssProp=cache.registered[cssProp];}var WrappedComponent=props[typePropName$1];var registeredStyles=[cssProp];var className="";if(typeof props.className==="string"){className=getRegisteredStyles$2(cache.registered,registeredStyles,props.className);}else if(props.className!=null){className=props.className+" ";}var serialized=serializeStyles$2(registeredStyles,void 0,React.useContext(ThemeContext$1));className+=cache.key+"-"+serialized.name;var newProps={};for(var _key2 in props){if(hasOwn.call(props,_key2)&&_key2!=="css"&&_key2!==typePropName$1&&true){newProps[_key2]=props[_key2];}}newProps.className=className;if(ref){newProps.ref=ref;}return/* @__PURE__ */React.createElement(React.Fragment,null,/* @__PURE__ */React.createElement(Insertion$3,{cache:cache,serialized:serialized,isStringTag:typeof WrappedComponent==="string"}),/* @__PURE__ */React.createElement(WrappedComponent,newProps));});var Emotion$1$1=Emotion$1;var jsx=function jsx2(type,props){var args=arguments;if(props==null||!hasOwn.call(props,"css")){return React.createElement.apply(void 0,args);}var argsLength=args.length;var createElementArgArray=new Array(argsLength);createElementArgArray[0]=Emotion$1$1;createElementArgArray[1]=createEmotionProps(type,props);for(var i=2;i<argsLength;i++){createElementArgArray[i]=args[i];}return React.createElement.apply(null,createElementArgArray);};(function(_jsx){var JSX;/* @__PURE__ */(function(_JSX){})(JSX||(JSX=_jsx.JSX||(_jsx.JSX={})));})(jsx||(jsx={}));var Global=/* @__PURE__ */withEmotionCache$1(function(props,cache){var styles2=props.styles;var serialized=serializeStyles$2([styles2],void 0,React.useContext(ThemeContext$1));var sheetRef=React.useRef();useInsertionEffectWithLayoutFallback(function(){var key=cache.key+"-global";var sheet=new cache.sheet.constructor({key:key,nonce:cache.sheet.nonce,container:cache.sheet.container,speedy:cache.sheet.isSpeedy});var rehydrating=false;var node2=document.querySelector('style[data-emotion="'+key+" "+serialized.name+'"]');if(cache.sheet.tags.length){sheet.before=cache.sheet.tags[0];}if(node2!==null){rehydrating=true;node2.setAttribute("data-emotion",key);sheet.hydrate([node2]);}sheetRef.current=[sheet,rehydrating];return function(){sheet.flush();};},[cache]);useInsertionEffectWithLayoutFallback(function(){var sheetRefCurrent=sheetRef.current;var sheet=sheetRefCurrent[0],rehydrating=sheetRefCurrent[1];if(rehydrating){sheetRefCurrent[1]=false;return;}if(serialized.next!==void 0){insertStyles$2(cache,serialized.next,true);}if(sheet.tags.length){var element=sheet.tags[sheet.tags.length-1].nextElementSibling;sheet.before=element;sheet.flush();}cache.insert("",serialized,sheet,false);},[cache,serialized.name]);return null;});function css$2(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return serializeStyles$2(args);}function keyframes(){var insertable=css$2.apply(void 0,arguments);var name="animation-"+insertable.name;return{name:name,styles:"@keyframes "+name+"{"+insertable.styles+"}",anim:1,toString:function toString2(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_";}};}var reactPropsRegex$1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;var isPropValid$1=/* @__PURE__ */memoize$4(function(prop){return reactPropsRegex$1.test(prop)||prop.charCodeAt(0)===111&&prop.charCodeAt(1)===110&&prop.charCodeAt(2)<91;}/* Z+1 */);var testOmitPropsOnStringTag$1=isPropValid$1;var testOmitPropsOnComponent$1=function testOmitPropsOnComponent(key){return key!=="theme";};var getDefaultShouldForwardProp$1=function getDefaultShouldForwardProp(tag){return typeof tag==="string"&&// 96 is one less than the char code
|
|
39
39
|
// for "a" so this is checking that
|
|
40
40
|
// it's a lowercase character
|
|
41
41
|
tag.charCodeAt(0)>96?testOmitPropsOnStringTag$1:testOmitPropsOnComponent$1;};var composeShouldForwardProps$1=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp3;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp3=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName);}:optionsShouldForwardProp;}if(typeof shouldForwardProp3!=="function"&&isReal){shouldForwardProp3=tag.__emotion_forwardProp;}return shouldForwardProp3;};var Insertion$2=function Insertion2(_ref3){var cache=_ref3.cache,serialized=_ref3.serialized,isStringTag2=_ref3.isStringTag;registerStyles$2(cache,serialized,isStringTag2);useInsertionEffectAlwaysWithSyncFallback$1(function(){return insertStyles$2(cache,serialized,isStringTag2);});return null;};var createStyled$2=function createStyled(tag,options){var isReal=tag.__emotion_real===tag;var baseTag=isReal&&tag.__emotion_base||tag;var identifierName;var targetClassName;if(options!==void 0){identifierName=options.label;targetClassName=options.target;}var shouldForwardProp3=composeShouldForwardProps$1(tag,options,isReal);var defaultShouldForwardProp=shouldForwardProp3||getDefaultShouldForwardProp$1(baseTag);var shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments;var styles2=isReal&&tag.__emotion_styles!==void 0?tag.__emotion_styles.slice(0):[];if(identifierName!==void 0){styles2.push("label:"+identifierName+";");}if(args[0]==null||args[0].raw===void 0){styles2.push.apply(styles2,args);}else{var templateStringsArr=args[0];styles2.push(templateStringsArr[0]);var len=args.length;var i=1;for(;i<len;i++){styles2.push(args[i],templateStringsArr[i]);}}var Styled=withEmotionCache$1(function(props,cache,ref){var FinalTag=shouldUseAs&&props.as||baseTag;var className="";var classInterpolations=[];var mergedProps=props;if(props.theme==null){mergedProps={};for(var key in props){mergedProps[key]=props[key];}mergedProps.theme=React.useContext(ThemeContext$1);}if(typeof props.className==="string"){className=getRegisteredStyles$2(cache.registered,classInterpolations,props.className);}else if(props.className!=null){className=props.className+" ";}var serialized=serializeStyles$2(styles2.concat(classInterpolations),cache.registered,mergedProps);className+=cache.key+"-"+serialized.name;if(targetClassName!==void 0){className+=" "+targetClassName;}var finalShouldForwardProp=shouldUseAs&&shouldForwardProp3===void 0?getDefaultShouldForwardProp$1(FinalTag):defaultShouldForwardProp;var newProps={};for(var _key in props){if(shouldUseAs&&_key==="as")continue;if(finalShouldForwardProp(_key)){newProps[_key]=props[_key];}}newProps.className=className;if(ref){newProps.ref=ref;}return/* @__PURE__ */React.createElement(React.Fragment,null,/* @__PURE__ */React.createElement(Insertion$2,{cache:cache,serialized:serialized,isStringTag:typeof FinalTag==="string"}),/* @__PURE__ */React.createElement(FinalTag,newProps));});Styled.displayName=identifierName!==void 0?identifierName:"Styled("+(typeof baseTag==="string"?baseTag:baseTag.displayName||baseTag.name||"Component")+")";Styled.defaultProps=tag.defaultProps;Styled.__emotion_real=Styled;Styled.__emotion_base=baseTag;Styled.__emotion_styles=styles2;Styled.__emotion_forwardProp=shouldForwardProp3;Object.defineProperty(Styled,"toString",{value:function value(){return"."+targetClassName;}});Styled.withComponent=function(nextTag,nextOptions){var newStyled2=createStyled(nextTag,_extends$1({},options,nextOptions,{shouldForwardProp:composeShouldForwardProps$1(Styled,nextOptions,true)}));return newStyled2.apply(void 0,styles2);};return Styled;};};var tags$1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr",// SVG
|
|
@@ -59,7 +59,7 @@ object-assign
|
|
|
59
59
|
(c) Sindre Sorhus
|
|
60
60
|
@license MIT
|
|
61
61
|
*/var objectAssign;var hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var getOwnPropertySymbols=Object.getOwnPropertySymbols;var hasOwnProperty2=Object.prototype.hasOwnProperty;var propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(val===null||val===void 0){throw new TypeError("Object.assign cannot be called with null or undefined");}return Object(val);}function shouldUseNative(){try{if(!Object.assign){return false;}var test1=new String("abc");test1[5]="de";if(Object.getOwnPropertyNames(test1)[0]==="5"){return false;}var test2={};for(var i=0;i<10;i++){test2["_"+String.fromCharCode(i)]=i;}var order2=Object.getOwnPropertyNames(test2).map(function(n){return test2[n];});if(order2.join("")!=="0123456789"){return false;}var test3={};"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter;});if(Object.keys(Object.assign({},test3)).join("")!=="abcdefghijklmnopqrst"){return false;}return true;}catch(err){return false;}}objectAssign=shouldUseNative()?Object.assign:function(target,source){var from2;var to=toObject(target);var symbols;for(var s=1;s<arguments.length;s++){from2=Object(arguments[s]);for(var key in from2){if(hasOwnProperty2.call(from2,key)){to[key]=from2[key];}}if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from2);for(var i=0;i<symbols.length;i++){if(propIsEnumerable.call(from2,symbols[i])){to[symbols[i]]=from2[symbols[i]];}}}}return to;};return objectAssign;}var ReactPropTypesSecret_1;var hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ReactPropTypesSecret_1=ReactPropTypesSecret;return ReactPropTypesSecret_1;}var has;var hasRequiredHas;function requireHas(){if(hasRequiredHas)return has;hasRequiredHas=1;has=Function.call.bind(Object.prototype.hasOwnProperty);return has;}var checkPropTypes_1;var hasRequiredCheckPropTypes;function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var printWarning=function printWarning(){};if(process.env.NODE_ENV!=="production"){var ReactPropTypesSecret=requireReactPropTypesSecret();var loggedTypeFailures={};var has2=requireHas();printWarning=function printWarning(text2){var message2="Warning: "+text2;if(typeof console!=="undefined"){console.error(message2);}try{throw new Error(message2);}catch(x){}};}function checkPropTypes(typeSpecs,values2,location,componentName,getStack){if(process.env.NODE_ENV!=="production"){for(var typeSpecName in typeSpecs){if(has2(typeSpecs,typeSpecName)){var error2;try{if(typeof typeSpecs[typeSpecName]!=="function"){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_typeof2(typeSpecs[typeSpecName])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");err.name="Invariant Violation";throw err;}error2=typeSpecs[typeSpecName](values2,typeSpecName,componentName,location,null,ReactPropTypesSecret);}catch(ex){error2=ex;}if(error2&&!(error2 instanceof Error)){printWarning((componentName||"React class")+": type specification of "+location+" `"+typeSpecName+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+_typeof2(error2)+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");}if(error2 instanceof Error&&!(error2.message in loggedTypeFailures)){loggedTypeFailures[error2.message]=true;var stack=getStack?getStack():"";printWarning("Failed "+location+" type: "+error2.message+(stack!=null?stack:""));}}}}}checkPropTypes.resetWarningCache=function(){if(process.env.NODE_ENV!=="production"){loggedTypeFailures={};}};checkPropTypes_1=checkPropTypes;return checkPropTypes_1;}var factoryWithTypeCheckers;var hasRequiredFactoryWithTypeCheckers;function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var ReactIs=requireReactIs();var assign2=requireObjectAssign();var ReactPropTypesSecret=requireReactPropTypesSecret();var has2=requireHas();var checkPropTypes=requireCheckPropTypes();var printWarning=function printWarning(){};if(process.env.NODE_ENV!=="production"){printWarning=function printWarning(text2){var message2="Warning: "+text2;if(typeof console!=="undefined"){console.error(message2);}try{throw new Error(message2);}catch(x){}};}function emptyFunctionThatReturnsNull(){return null;}factoryWithTypeCheckers=function factoryWithTypeCheckers(isValidElement2,throwOnDirectAccess){var ITERATOR_SYMBOL=typeof Symbol==="function"&&Symbol.iterator;var FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if(typeof iteratorFn==="function"){return iteratorFn;}}var ANONYMOUS="<<anonymous>>";var ReactPropTypes={array:createPrimitiveTypeChecker("array"),bigint:createPrimitiveTypeChecker("bigint"),bool:createPrimitiveTypeChecker("boolean"),func:createPrimitiveTypeChecker("function"),number:createPrimitiveTypeChecker("number"),object:createPrimitiveTypeChecker("object"),string:createPrimitiveTypeChecker("string"),symbol:createPrimitiveTypeChecker("symbol"),any:createAnyTypeChecker(),arrayOf:createArrayOfTypeChecker,element:createElementTypeChecker(),elementType:createElementTypeTypeChecker(),instanceOf:createInstanceTypeChecker,node:createNodeChecker(),objectOf:createObjectOfTypeChecker,oneOf:createEnumTypeChecker,oneOfType:createUnionTypeChecker,shape:createShapeTypeChecker,exact:createStrictShapeTypeChecker};function is(x,y){if(x===y){return x!==0||1/x===1/y;}else{return x!==x&&y!==y;}}function PropTypeError(message2,data){this.message=message2;this.data=data&&_typeof2(data)==="object"?data:{};this.stack="";}PropTypeError.prototype=Error.prototype;function createChainableTypeChecker(validate){if(process.env.NODE_ENV!=="production"){var manualPropTypeCallCache={};var manualPropTypeWarningCount=0;}function checkType(isRequired,props,propName,componentName,location,propFullName,secret){componentName=componentName||ANONYMOUS;propFullName=propFullName||propName;if(secret!==ReactPropTypesSecret){if(throwOnDirectAccess){var err=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");err.name="Invariant Violation";throw err;}else if(process.env.NODE_ENV!=="production"&&typeof console!=="undefined"){var cacheKey=componentName+":"+propName;if(!manualPropTypeCallCache[cacheKey]&&// Avoid spamming the console because they are often not actionable except for lib authors
|
|
62
|
-
manualPropTypeWarningCount<3){printWarning("You are manually calling a React.PropTypes validation function for the `"+propFullName+"` prop on `"+componentName+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");manualPropTypeCallCache[cacheKey]=true;manualPropTypeWarningCount++;}}}if(props[propName]==null){if(isRequired){if(props[propName]===null){return new PropTypeError("The "+location+" `"+propFullName+"` is marked as required "+("in `"+componentName+"`, but its value is `null`."));}return new PropTypeError("The "+location+" `"+propFullName+"` is marked as required in "+("`"+componentName+"`, but its value is `undefined`."));}return null;}else{return validate(props,propName,componentName,location,propFullName);}}var chainedCheckType=checkType.bind(null,false);chainedCheckType.isRequired=checkType.bind(null,true);return chainedCheckType;}function createPrimitiveTypeChecker(expectedType){function validate(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];var propType=getPropType(propValue);if(propType!==expectedType){var preciseType=getPreciseType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+preciseType+"` supplied to `"+componentName+"`, expected ")+("`"+expectedType+"`."),{expectedType:expectedType});}return null;}return createChainableTypeChecker(validate);}function createAnyTypeChecker(){return createChainableTypeChecker(emptyFunctionThatReturnsNull);}function createArrayOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if(typeof typeChecker!=="function"){return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.");}var propValue=props[propName];if(!Array.isArray(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected an array."));}for(var i=0;i<propValue.length;i++){var error2=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret);if(error2 instanceof Error){return error2;}}return null;}return createChainableTypeChecker(validate);}function createElementTypeChecker(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!isValidElement2(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected a single ReactElement."));}return null;}return createChainableTypeChecker(validate);}function createElementTypeTypeChecker(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!ReactIs.isValidElementType(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected a single ReactElement type."));}return null;}return createChainableTypeChecker(validate);}function createInstanceTypeChecker(expectedClass){function validate(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||ANONYMOUS;var actualClassName=getClassName(props[propName]);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+actualClassName+"` supplied to `"+componentName+"`, expected ")+("instance of `"+expectedClassName+"`."));}return null;}return createChainableTypeChecker(validate);}function createEnumTypeChecker(expectedValues){if(!Array.isArray(expectedValues)){if(process.env.NODE_ENV!=="production"){if(arguments.length>1){printWarning("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");}else{printWarning("Invalid argument supplied to oneOf, expected an array.");}}return emptyFunctionThatReturnsNull;}function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];for(var i=0;i<expectedValues.length;i++){if(is(propValue,expectedValues[i])){return null;}}var valuesString=JSON.stringify(expectedValues,function replacer(key,value){var type=getPreciseType(value);if(type==="symbol"){return String(value);}return value;});return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+String(propValue)+"` "+("supplied to `"+componentName+"`, expected one of "+valuesString+"."));}return createChainableTypeChecker(validate);}function createObjectOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if(typeof typeChecker!=="function"){return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.");}var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected an object."));}for(var key in propValue){if(has2(propValue,key)){var error2=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error2 instanceof Error){return error2;}}}return null;}return createChainableTypeChecker(validate);}function createUnionTypeChecker(arrayOfTypeCheckers){if(!Array.isArray(arrayOfTypeCheckers)){process.env.NODE_ENV!=="production"?printWarning("Invalid argument supplied to oneOfType, expected an instance of array."):void 0;return emptyFunctionThatReturnsNull;}for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if(typeof checker!=="function"){printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+getPostfixForTypeWarning(checker)+" at index "+i+".");return emptyFunctionThatReturnsNull;}}function validate(props,propName,componentName,location,propFullName){var expectedTypes=[];for(var i2=0;i2<arrayOfTypeCheckers.length;i2++){var checker2=arrayOfTypeCheckers[i2];var checkerResult=checker2(props,propName,componentName,location,propFullName,ReactPropTypesSecret);if(checkerResult==null){return null;}if(checkerResult.data&&has2(checkerResult.data,"expectedType")){expectedTypes.push(checkerResult.data.expectedType);}}var expectedTypesMessage=expectedTypes.length>0?", expected one of type ["+expectedTypes.join(", ")+"]":"";return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`"+expectedTypesMessage+"."));}return createChainableTypeChecker(validate);}function createNodeChecker(){function validate(props,propName,componentName,location,propFullName){if(!isNode2(props[propName])){return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`, expected a ReactNode."));}return null;}return createChainableTypeChecker(validate);}function invalidValidatorError(componentName,location,propFullName,key,type){return new PropTypeError((componentName||"React class")+": "+location+" type `"+propFullName+"."+key+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+type+"`.");}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."));}for(var key in shapeTypes){var checker=shapeTypes[key];if(typeof checker!=="function"){return invalidValidatorError(componentName,location,propFullName,key,getPreciseType(checker));}var error2=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error2){return error2;}}return null;}return createChainableTypeChecker(validate);}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."));}var allKeys=assign2({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(has2(shapeTypes,key)&&typeof checker!=="function"){return invalidValidatorError(componentName,location,propFullName,key,getPreciseType(checker));}if(!checker){return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null," "));}var error2=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error2){return error2;}}return null;}return createChainableTypeChecker(validate);}function isNode2(propValue){switch(_typeof2(propValue)){case"number":case"string":case"undefined":return true;case"boolean":return!propValue;case"object":if(Array.isArray(propValue)){return propValue.every(isNode2);}if(propValue===null||isValidElement2(propValue)){return true;}var iteratorFn=getIteratorFn(propValue);if(iteratorFn){var iterator=iteratorFn.call(propValue);var step;if(iteratorFn!==propValue.entries){while(!(step=iterator.next()).done){if(!isNode2(step.value)){return false;}}}else{while(!(step=iterator.next()).done){var entry=step.value;if(entry){if(!isNode2(entry[1])){return false;}}}}}else{return false;}return true;default:return false;}}function isSymbol(propType,propValue){if(propType==="symbol"){return true;}if(!propValue){return false;}if(propValue["@@toStringTag"]==="Symbol"){return true;}if(typeof Symbol==="function"&&propValue instanceof Symbol){return true;}return false;}function getPropType(propValue){var propType=_typeof2(propValue);if(Array.isArray(propValue)){return"array";}if(propValue instanceof RegExp){return"object";}if(isSymbol(propType,propValue)){return"symbol";}return propType;}function getPreciseType(propValue){if(typeof propValue==="undefined"||propValue===null){return""+propValue;}var propType=getPropType(propValue);if(propType==="object"){if(propValue instanceof Date){return"date";}else if(propValue instanceof RegExp){return"regexp";}}return propType;}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type;}}function getClassName(propValue){if(!propValue.constructor||!propValue.constructor.name){return ANONYMOUS;}return propValue.constructor.name;}ReactPropTypes.checkPropTypes=checkPropTypes;ReactPropTypes.resetWarningCache=checkPropTypes.resetWarningCache;ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes;};return factoryWithTypeCheckers;}var factoryWithThrowingShims;var hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var ReactPropTypesSecret=requireReactPropTypesSecret();function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;factoryWithThrowingShims=function factoryWithThrowingShims(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret){return;}var err=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");err.name="Invariant Violation";throw err;}shim.isRequired=shim;function getShim(){return shim;}var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes;};return factoryWithThrowingShims;}if(process.env.NODE_ENV!=="production"){var ReactIs=requireReactIs();var throwOnDirectAccess=true;propTypes.exports=requireFactoryWithTypeCheckers()(ReactIs.isElement,throwOnDirectAccess);}else{propTypes.exports=requireFactoryWithThrowingShims()();}var propTypesExports=propTypes.exports;var PropTypes=/* @__PURE__ */getDefaultExportFromCjs(propTypesExports);function isEmpty$2(obj){return obj===void 0||obj===null||Object.keys(obj).length===0;}function GlobalStyles$2(props){var styles2=props.styles,_props$defaultTheme=props.defaultTheme,defaultTheme2=_props$defaultTheme===void 0?{}:_props$defaultTheme;var globalStyles=typeof styles2==="function"?function(themeInput){return styles2(isEmpty$2(themeInput)?defaultTheme2:themeInput);}:styles2;return/* @__PURE__ */jsx$1(Global,{styles:globalStyles});}process.env.NODE_ENV!=="production"?GlobalStyles$2.propTypes={defaultTheme:PropTypes.object,styles:PropTypes.oneOfType([PropTypes.array,PropTypes.string,PropTypes.object,PropTypes.func])}:void 0;/**
|
|
62
|
+
manualPropTypeWarningCount<3){printWarning("You are manually calling a React.PropTypes validation function for the `"+propFullName+"` prop on `"+componentName+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");manualPropTypeCallCache[cacheKey]=true;manualPropTypeWarningCount++;}}}if(props[propName]==null){if(isRequired){if(props[propName]===null){return new PropTypeError("The "+location+" `"+propFullName+"` is marked as required "+("in `"+componentName+"`, but its value is `null`."));}return new PropTypeError("The "+location+" `"+propFullName+"` is marked as required in "+("`"+componentName+"`, but its value is `undefined`."));}return null;}else{return validate(props,propName,componentName,location,propFullName);}}var chainedCheckType=checkType.bind(null,false);chainedCheckType.isRequired=checkType.bind(null,true);return chainedCheckType;}function createPrimitiveTypeChecker(expectedType){function validate(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];var propType=getPropType(propValue);if(propType!==expectedType){var preciseType=getPreciseType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+preciseType+"` supplied to `"+componentName+"`, expected ")+("`"+expectedType+"`."),{expectedType:expectedType});}return null;}return createChainableTypeChecker(validate);}function createAnyTypeChecker(){return createChainableTypeChecker(emptyFunctionThatReturnsNull);}function createArrayOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if(typeof typeChecker!=="function"){return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.");}var propValue=props[propName];if(!Array.isArray(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected an array."));}for(var i=0;i<propValue.length;i++){var error2=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret);if(error2 instanceof Error){return error2;}}return null;}return createChainableTypeChecker(validate);}function createElementTypeChecker(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!isValidElement2(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected a single ReactElement."));}return null;}return createChainableTypeChecker(validate);}function createElementTypeTypeChecker(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!ReactIs.isValidElementType(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected a single ReactElement type."));}return null;}return createChainableTypeChecker(validate);}function createInstanceTypeChecker(expectedClass){function validate(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||ANONYMOUS;var actualClassName=getClassName(props[propName]);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+actualClassName+"` supplied to `"+componentName+"`, expected ")+("instance of `"+expectedClassName+"`."));}return null;}return createChainableTypeChecker(validate);}function createEnumTypeChecker(expectedValues){if(!Array.isArray(expectedValues)){if(process.env.NODE_ENV!=="production"){if(arguments.length>1){printWarning("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");}else{printWarning("Invalid argument supplied to oneOf, expected an array.");}}return emptyFunctionThatReturnsNull;}function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];for(var i=0;i<expectedValues.length;i++){if(is(propValue,expectedValues[i])){return null;}}var valuesString=JSON.stringify(expectedValues,function replacer(key,value){var type=getPreciseType(value);if(type==="symbol"){return String(value);}return value;});return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+String(propValue)+"` "+("supplied to `"+componentName+"`, expected one of "+valuesString+"."));}return createChainableTypeChecker(validate);}function createObjectOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if(typeof typeChecker!=="function"){return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.");}var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected an object."));}for(var key in propValue){if(has2(propValue,key)){var error2=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error2 instanceof Error){return error2;}}}return null;}return createChainableTypeChecker(validate);}function createUnionTypeChecker(arrayOfTypeCheckers){if(!Array.isArray(arrayOfTypeCheckers)){process.env.NODE_ENV!=="production"?printWarning("Invalid argument supplied to oneOfType, expected an instance of array."):void 0;return emptyFunctionThatReturnsNull;}for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if(typeof checker!=="function"){printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+getPostfixForTypeWarning(checker)+" at index "+i+".");return emptyFunctionThatReturnsNull;}}function validate(props,propName,componentName,location,propFullName){var expectedTypes=[];for(var i2=0;i2<arrayOfTypeCheckers.length;i2++){var checker2=arrayOfTypeCheckers[i2];var checkerResult=checker2(props,propName,componentName,location,propFullName,ReactPropTypesSecret);if(checkerResult==null){return null;}if(checkerResult.data&&has2(checkerResult.data,"expectedType")){expectedTypes.push(checkerResult.data.expectedType);}}var expectedTypesMessage=expectedTypes.length>0?", expected one of type ["+expectedTypes.join(", ")+"]":"";return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`"+expectedTypesMessage+"."));}return createChainableTypeChecker(validate);}function createNodeChecker(){function validate(props,propName,componentName,location,propFullName){if(!isNode2(props[propName])){return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`, expected a ReactNode."));}return null;}return createChainableTypeChecker(validate);}function invalidValidatorError(componentName,location,propFullName,key,type){return new PropTypeError((componentName||"React class")+": "+location+" type `"+propFullName+"."+key+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+type+"`.");}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."));}for(var key in shapeTypes){var checker=shapeTypes[key];if(typeof checker!=="function"){return invalidValidatorError(componentName,location,propFullName,key,getPreciseType(checker));}var error2=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error2){return error2;}}return null;}return createChainableTypeChecker(validate);}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."));}var allKeys=assign2({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(has2(shapeTypes,key)&&typeof checker!=="function"){return invalidValidatorError(componentName,location,propFullName,key,getPreciseType(checker));}if(!checker){return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null," "));}var error2=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error2){return error2;}}return null;}return createChainableTypeChecker(validate);}function isNode2(propValue){switch(_typeof2(propValue)){case"number":case"string":case"undefined":return true;case"boolean":return!propValue;case"object":if(Array.isArray(propValue)){return propValue.every(isNode2);}if(propValue===null||isValidElement2(propValue)){return true;}var iteratorFn=getIteratorFn(propValue);if(iteratorFn){var iterator=iteratorFn.call(propValue);var step;if(iteratorFn!==propValue.entries){while(!(step=iterator.next()).done){if(!isNode2(step.value)){return false;}}}else{while(!(step=iterator.next()).done){var entry=step.value;if(entry){if(!isNode2(entry[1])){return false;}}}}}else{return false;}return true;default:return false;}}function isSymbol2(propType,propValue){if(propType==="symbol"){return true;}if(!propValue){return false;}if(propValue["@@toStringTag"]==="Symbol"){return true;}if(typeof Symbol==="function"&&propValue instanceof Symbol){return true;}return false;}function getPropType(propValue){var propType=_typeof2(propValue);if(Array.isArray(propValue)){return"array";}if(propValue instanceof RegExp){return"object";}if(isSymbol2(propType,propValue)){return"symbol";}return propType;}function getPreciseType(propValue){if(typeof propValue==="undefined"||propValue===null){return""+propValue;}var propType=getPropType(propValue);if(propType==="object"){if(propValue instanceof Date){return"date";}else if(propValue instanceof RegExp){return"regexp";}}return propType;}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type;}}function getClassName(propValue){if(!propValue.constructor||!propValue.constructor.name){return ANONYMOUS;}return propValue.constructor.name;}ReactPropTypes.checkPropTypes=checkPropTypes;ReactPropTypes.resetWarningCache=checkPropTypes.resetWarningCache;ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes;};return factoryWithTypeCheckers;}var factoryWithThrowingShims;var hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var ReactPropTypesSecret=requireReactPropTypesSecret();function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;factoryWithThrowingShims=function factoryWithThrowingShims(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret){return;}var err=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");err.name="Invariant Violation";throw err;}shim.isRequired=shim;function getShim(){return shim;}var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes;};return factoryWithThrowingShims;}if(process.env.NODE_ENV!=="production"){var ReactIs=requireReactIs();var throwOnDirectAccess=true;propTypes.exports=requireFactoryWithTypeCheckers()(ReactIs.isElement,throwOnDirectAccess);}else{propTypes.exports=requireFactoryWithThrowingShims()();}var propTypesExports=propTypes.exports;var PropTypes=/* @__PURE__ */getDefaultExportFromCjs(propTypesExports);function isEmpty$2(obj){return obj===void 0||obj===null||Object.keys(obj).length===0;}function GlobalStyles$2(props){var styles2=props.styles,_props$defaultTheme=props.defaultTheme,defaultTheme2=_props$defaultTheme===void 0?{}:_props$defaultTheme;var globalStyles=typeof styles2==="function"?function(themeInput){return styles2(isEmpty$2(themeInput)?defaultTheme2:themeInput);}:styles2;return/* @__PURE__ */jsx$1(Global,{styles:globalStyles});}process.env.NODE_ENV!=="production"?GlobalStyles$2.propTypes={defaultTheme:PropTypes.object,styles:PropTypes.oneOfType([PropTypes.array,PropTypes.string,PropTypes.object,PropTypes.func])}:void 0;/**
|
|
63
63
|
* @mui/styled-engine v6.5.0
|
|
64
64
|
*
|
|
65
65
|
* @license MIT
|
|
@@ -89,7 +89,7 @@ lg:1200,// desktop
|
|
|
89
89
|
xl:1536// large screen
|
|
90
90
|
}:_a$values,_a$unit=_a.unit,unit=_a$unit===void 0?"px":_a$unit,_a$step=_a.step,step=_a$step===void 0?5:_a$step,other=__objRest(_a,[// The breakpoint **start** at this value.
|
|
91
91
|
// For instance with the first breakpoint xs: [xs, sm).
|
|
92
|
-
"values","unit","step"]);var sortedValues=sortBreakpointsValues(values2);var
|
|
92
|
+
"values","unit","step"]);var sortedValues=sortBreakpointsValues(values2);var keys2=Object.keys(sortedValues);function up(key){var value=typeof values2[key]==="number"?values2[key]:key;return"@media (min-width:".concat(value).concat(unit,")");}function down(key){var value=typeof values2[key]==="number"?values2[key]:key;return"@media (max-width:".concat(value-step/100).concat(unit,")");}function between(start2,end2){var endIndex=keys2.indexOf(end2);return"@media (min-width:".concat(typeof values2[start2]==="number"?values2[start2]:start2).concat(unit,") and (max-width:").concat((endIndex!==-1&&typeof values2[keys2[endIndex]]==="number"?values2[keys2[endIndex]]:end2)-step/100).concat(unit,")");}function only(key){if(keys2.indexOf(key)+1<keys2.length){return between(key,keys2[keys2.indexOf(key)+1]);}return up(key);}function not(key){var keyIndex=keys2.indexOf(key);if(keyIndex===0){return up(keys2[1]);}if(keyIndex===keys2.length-1){return down(keys2[keyIndex]);}return between(key,keys2[keys2.indexOf(key)+1]).replace("@media","@media not all and");}return __spreadValues({keys:keys2,values:sortedValues,up:up,down:down,between:between,only:only,not:not,unit:unit},other);}function sortContainerQueries(theme,css4){if(!theme.containerQueries){return css4;}var sorted=Object.keys(css4).filter(function(key){return key.startsWith("@container");}).sort(function(a,b){var _a,_b;var regex=/min-width:\s*([0-9.]+)/;return+(((_a=a.match(regex))==null?void 0:_a[1])||0)-+(((_b=b.match(regex))==null?void 0:_b[1])||0);});if(!sorted.length){return css4;}return sorted.reduce(function(acc,key){var value=css4[key];delete acc[key];acc[key]=value;return acc;},__spreadValues({},css4));}function isCqShorthand(breakpointKeys,value){return value==="@"||value.startsWith("@")&&(breakpointKeys.some(function(key){return value.startsWith("@".concat(key));})||!!value.match(/^@\d/));}function getContainerQuery(theme,shorthand){var matches=shorthand.match(/^@([^/]+)?\/?(.+)?$/);if(!matches){if(process.env.NODE_ENV!=="production"){throw new Error(process.env.NODE_ENV!=="production"?"MUI: The provided shorthand ".concat("(".concat(shorthand,")")," is invalid. The format should be `@<breakpoint | number>` or `@<breakpoint | number>/<container>`.\nFor example, `@sm` or `@600` or `@40rem/sidebar`."):formatMuiErrorMessage(18,"(".concat(shorthand,")")));}return null;}var _matches=_slicedToArray2(matches,3),containerQuery=_matches[1],containerName=_matches[2];var value=Number.isNaN(+containerQuery)?containerQuery||0:+containerQuery;return theme.containerQueries(containerName).up(value);}function cssContainerQueries(themeInput){var toContainerQuery=function toContainerQuery(mediaQuery,name){return mediaQuery.replace("@media",name?"@container ".concat(name):"@container");};function attachCq(node3,name){node3.up=function(){var _themeInput$breakpoin;return toContainerQuery((_themeInput$breakpoin=themeInput.breakpoints).up.apply(_themeInput$breakpoin,arguments),name);};node3.down=function(){var _themeInput$breakpoin2;return toContainerQuery((_themeInput$breakpoin2=themeInput.breakpoints).down.apply(_themeInput$breakpoin2,arguments),name);};node3.between=function(){var _themeInput$breakpoin3;return toContainerQuery((_themeInput$breakpoin3=themeInput.breakpoints).between.apply(_themeInput$breakpoin3,arguments),name);};node3.only=function(){var _themeInput$breakpoin4;return toContainerQuery((_themeInput$breakpoin4=themeInput.breakpoints).only.apply(_themeInput$breakpoin4,arguments),name);};node3.not=function(){var _themeInput$breakpoin5;var result=toContainerQuery((_themeInput$breakpoin5=themeInput.breakpoints).not.apply(_themeInput$breakpoin5,arguments),name);if(result.includes("not all and")){return result.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or");}return result;};}var node2={};var containerQueries=function containerQueries(name){attachCq(node2,name);return node2;};attachCq(containerQueries);return __spreadProps(__spreadValues({},themeInput),{containerQueries:containerQueries});}var shape={borderRadius:4};var responsivePropType=process.env.NODE_ENV!=="production"?PropTypes.oneOfType([PropTypes.number,PropTypes.string,PropTypes.object,PropTypes.array]):{};function merge(acc,item2){if(!item2){return acc;}return deepmerge(acc,item2,{clone:false// No need to clone deep, it's way faster.
|
|
93
93
|
});}var values$1={xs:0,// phone
|
|
94
94
|
sm:600,// tablet
|
|
95
95
|
md:900,// small laptop
|
|
@@ -97,7 +97,7 @@ lg:1200,// desktop
|
|
|
97
97
|
xl:1536// large screen
|
|
98
98
|
};var defaultBreakpoints={// Sorted ASC by size. That's important.
|
|
99
99
|
// It can't be configured as it's used statically for propTypes.
|
|
100
|
-
keys:["xs","sm","md","lg","xl"],up:function up(key){return"@media (min-width:".concat(values$1[key],"px)");}};var defaultContainerQueries={containerQueries:function containerQueries(containerName){return{up:function up(key){var result=typeof key==="number"?key:values$1[key]||key;if(typeof result==="number"){result="".concat(result,"px");}return containerName?"@container ".concat(containerName," (min-width:").concat(result,")"):"@container (min-width:".concat(result,")");}};}};function handleBreakpoints(props,propValue,styleFromPropValue){var theme=props.theme||{};if(Array.isArray(propValue)){var themeBreakpoints=theme.breakpoints||defaultBreakpoints;return propValue.reduce(function(acc,item2,index2){acc[themeBreakpoints.up(themeBreakpoints.keys[index2])]=styleFromPropValue(propValue[index2]);return acc;},{});}if(_typeof2(propValue)==="object"){var _themeBreakpoints=theme.breakpoints||defaultBreakpoints;return Object.keys(propValue).reduce(function(acc,breakpoint){if(isCqShorthand(_themeBreakpoints.keys,breakpoint)){var containerKey=getContainerQuery(theme.containerQueries?theme:defaultContainerQueries,breakpoint);if(containerKey){acc[containerKey]=styleFromPropValue(propValue[breakpoint],breakpoint);}}else if(Object.keys(_themeBreakpoints.values||values$1).includes(breakpoint)){var mediaKey=_themeBreakpoints.up(breakpoint);acc[mediaKey]=styleFromPropValue(propValue[breakpoint],breakpoint);}else{var cssKey=breakpoint;acc[cssKey]=propValue[cssKey];}return acc;},{});}var output=styleFromPropValue(propValue);return output;}function createEmptyBreakpointObject(){var breakpointsInput=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _a;var breakpointsInOrder=(_a=breakpointsInput.keys)==null?void 0:_a.reduce(function(acc,key){var breakpointStyleKey=breakpointsInput.up(key);acc[breakpointStyleKey]={};return acc;},{});return breakpointsInOrder||{};}function removeUnusedBreakpoints(breakpointKeys,style2){return breakpointKeys.reduce(function(acc,key){var breakpointOutput=acc[key];var isBreakpointUnused=!breakpointOutput||Object.keys(breakpointOutput).length===0;if(isBreakpointUnused){delete acc[key];}return acc;},style2);}function capitalize$1(string){if(typeof string!=="string"){throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":formatMuiErrorMessage(7));}return string.charAt(0).toUpperCase()+string.slice(1);}function getPath$1(obj,path){var checkVars=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(!path||typeof path!=="string"){return null;}if(obj&&obj.vars&&checkVars){var val="vars.".concat(path).split(".").reduce(function(acc,item2){return acc&&acc[item2]?acc[item2]:null;},obj);if(val!=null){return val;}}return path.split(".").reduce(function(acc,item2){if(acc&&acc[item2]!=null){return acc[item2];}return null;},obj);}function getStyleValue$1(themeMapping,transform,propValueFinal){var userValue=arguments.length>3&&arguments[3]!==undefined?arguments[3]:propValueFinal;var value;if(typeof themeMapping==="function"){value=themeMapping(propValueFinal);}else if(Array.isArray(themeMapping)){value=themeMapping[propValueFinal]||userValue;}else{value=getPath$1(themeMapping,propValueFinal)||userValue;}if(transform){value=transform(value,userValue,themeMapping);}return value;}function style$1(options){var prop=options.prop,_options$cssProperty=options.cssProperty,cssProperty=_options$cssProperty===void 0?options.prop:_options$cssProperty,themeKey=options.themeKey,transform=options.transform;var fn3=function fn3(props){if(props[prop]==null){return null;}var propValue=props[prop];var theme=props.theme;var themeMapping=getPath$1(theme,themeKey)||{};var styleFromPropValue=function styleFromPropValue(propValueFinal){var value=getStyleValue$1(themeMapping,transform,propValueFinal);if(propValueFinal===value&&typeof propValueFinal==="string"){value=getStyleValue$1(themeMapping,transform,"".concat(prop).concat(propValueFinal==="default"?"":capitalize$1(propValueFinal)),propValueFinal);}if(cssProperty===false){return value;}return _defineProperty2({},cssProperty,value);};return handleBreakpoints(props,propValue,styleFromPropValue);};fn3.propTypes=process.env.NODE_ENV!=="production"?_defineProperty2({},prop,responsivePropType):{};fn3.filterProps=[prop];return fn3;}function memoize$1(fn3){var cache={};return function(arg2){if(cache[arg2]===void 0){cache[arg2]=fn3(arg2);}return cache[arg2];};}var properties={m:"margin",p:"padding"};var directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]};var aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"};var getCssProperties=memoize$1(function(prop){if(prop.length>2){if(aliases[prop]){prop=aliases[prop];}else{return[prop];}}var _prop$split=prop.split(""),_prop$split2=_slicedToArray2(_prop$split,2),a=_prop$split2[0],b=_prop$split2[1];var property=properties[a];var direction=directions[b]||"";return Array.isArray(direction)?direction.map(function(dir){return property+dir;}):[property+direction];});var marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"];var paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var spacingKeys=[].concat(marginKeys,paddingKeys);function createUnaryUnit(theme,themeKey,defaultValue,propName){var _a;var themeSpacing=(_a=getPath$1(theme,themeKey,true))!=null?_a:defaultValue;if(typeof themeSpacing==="number"||typeof themeSpacing==="string"){return function(val){if(typeof val==="string"){return val;}if(process.env.NODE_ENV!=="production"){if(typeof val!=="number"){console.error("MUI: Expected ".concat(propName," argument to be a number or a string, got ").concat(val,"."));}}if(typeof themeSpacing==="string"){return"calc(".concat(val," * ").concat(themeSpacing,")");}return themeSpacing*val;};}if(Array.isArray(themeSpacing)){return function(val){if(typeof val==="string"){return val;}var abs2=Math.abs(val);if(process.env.NODE_ENV!=="production"){if(!Number.isInteger(abs2)){console.error(["MUI: The `theme.".concat(themeKey,"` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the `theme.").concat(themeKey,"` as a number.")].join("\n"));}else if(abs2>themeSpacing.length-1){console.error(["MUI: The value provided (".concat(abs2,") overflows."),"The supported values are: ".concat(JSON.stringify(themeSpacing),"."),"".concat(abs2," > ").concat(themeSpacing.length-1,", you need to add the missing values.")].join("\n"));}}var transformed=themeSpacing[abs2];if(val>=0){return transformed;}if(typeof transformed==="number"){return-transformed;}return"-".concat(transformed);};}if(typeof themeSpacing==="function"){return themeSpacing;}if(process.env.NODE_ENV!=="production"){console.error(["MUI: The `theme.".concat(themeKey,"` value (").concat(themeSpacing,") is invalid."),"It should be a number, an array or a function."].join("\n"));}return function(){return void 0;};}function createUnarySpacing(theme){return createUnaryUnit(theme,"spacing",8,"spacing");}function getValue(transformer,propValue){if(typeof propValue==="string"||propValue==null){return propValue;}return transformer(propValue);}function getStyleFromPropValue(cssProperties,transformer){return function(propValue){return cssProperties.reduce(function(acc,cssProperty){acc[cssProperty]=getValue(transformer,propValue);return acc;},{});};}function resolveCssProperty(props,keys,prop,transformer){if(!keys.includes(prop)){return null;}var cssProperties=getCssProperties(prop);var styleFromPropValue=getStyleFromPropValue(cssProperties,transformer);var propValue=props[prop];return handleBreakpoints(props,propValue,styleFromPropValue);}function style(props,keys){var transformer=createUnarySpacing(props.theme);return Object.keys(props).map(function(prop){return resolveCssProperty(props,keys,prop,transformer);}).reduce(merge,{});}function margin(props){return style(props,marginKeys);}margin.propTypes=process.env.NODE_ENV!=="production"?marginKeys.reduce(function(obj,key){obj[key]=responsivePropType;return obj;},{}):{};margin.filterProps=marginKeys;function padding(props){return style(props,paddingKeys);}padding.propTypes=process.env.NODE_ENV!=="production"?paddingKeys.reduce(function(obj,key){obj[key]=responsivePropType;return obj;},{}):{};padding.filterProps=paddingKeys;process.env.NODE_ENV!=="production"?spacingKeys.reduce(function(obj,key){obj[key]=responsivePropType;return obj;},{}):{};function createSpacing(){var spacingInput=arguments.length>0&&arguments[0]!==undefined?arguments[0]:8;var transform=arguments.length>1&&arguments[1]!==undefined?arguments[1]:createUnarySpacing({spacing:spacingInput});if(spacingInput.mui){return spacingInput;}var spacing2=function spacing2(){for(var _len7=arguments.length,argsInput=new Array(_len7),_key7=0;_key7<_len7;_key7++){argsInput[_key7]=arguments[_key7];}if(process.env.NODE_ENV!=="production"){if(!(argsInput.length<=4)){console.error("MUI: Too many arguments provided, expected between 0 and 4, got ".concat(argsInput.length));}}var args=argsInput.length===0?[1]:argsInput;return args.map(function(argument){var output=transform(argument);return typeof output==="number"?"".concat(output,"px"):output;}).join(" ");};spacing2.mui=true;return spacing2;}function compose(){for(var _len8=arguments.length,styles2=new Array(_len8),_key8=0;_key8<_len8;_key8++){styles2[_key8]=arguments[_key8];}var handlers=styles2.reduce(function(acc,style2){style2.filterProps.forEach(function(prop){acc[prop]=style2;});return acc;},{});var fn3=function fn3(props){return Object.keys(props).reduce(function(acc,prop){if(handlers[prop]){return merge(acc,handlers[prop](props));}return acc;},{});};fn3.propTypes=process.env.NODE_ENV!=="production"?styles2.reduce(function(acc,style2){return Object.assign(acc,style2.propTypes);},{}):{};fn3.filterProps=styles2.reduce(function(acc,style2){return acc.concat(style2.filterProps);},[]);return fn3;}function borderTransform(value){if(typeof value!=="number"){return value;}return"".concat(value,"px solid");}function createBorderStyle(prop,transform){return style$1({prop:prop,themeKey:"borders",transform:transform});}var border=createBorderStyle("border",borderTransform);var borderTop=createBorderStyle("borderTop",borderTransform);var borderRight=createBorderStyle("borderRight",borderTransform);var borderBottom=createBorderStyle("borderBottom",borderTransform);var borderLeft=createBorderStyle("borderLeft",borderTransform);var borderColor=createBorderStyle("borderColor");var borderTopColor=createBorderStyle("borderTopColor");var borderRightColor=createBorderStyle("borderRightColor");var borderBottomColor=createBorderStyle("borderBottomColor");var borderLeftColor=createBorderStyle("borderLeftColor");var outline=createBorderStyle("outline",borderTransform);var outlineColor=createBorderStyle("outlineColor");var borderRadius$1=function borderRadius$1(props){if(props.borderRadius!==void 0&&props.borderRadius!==null){var transformer=createUnaryUnit(props.theme,"shape.borderRadius",4,"borderRadius");var styleFromPropValue=function styleFromPropValue(propValue){return{borderRadius:getValue(transformer,propValue)};};return handleBreakpoints(props,props.borderRadius,styleFromPropValue);}return null;};borderRadius$1.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:responsivePropType}:{};borderRadius$1.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius$1,outline,outlineColor);var gap=function gap(props){if(props.gap!==void 0&&props.gap!==null){var transformer=createUnaryUnit(props.theme,"spacing",8,"gap");var styleFromPropValue=function styleFromPropValue(propValue){return{gap:getValue(transformer,propValue)};};return handleBreakpoints(props,props.gap,styleFromPropValue);}return null;};gap.propTypes=process.env.NODE_ENV!=="production"?{gap:responsivePropType}:{};gap.filterProps=["gap"];var columnGap=function columnGap(props){if(props.columnGap!==void 0&&props.columnGap!==null){var transformer=createUnaryUnit(props.theme,"spacing",8,"columnGap");var styleFromPropValue=function styleFromPropValue(propValue){return{columnGap:getValue(transformer,propValue)};};return handleBreakpoints(props,props.columnGap,styleFromPropValue);}return null;};columnGap.propTypes=process.env.NODE_ENV!=="production"?{columnGap:responsivePropType}:{};columnGap.filterProps=["columnGap"];var rowGap=function rowGap(props){if(props.rowGap!==void 0&&props.rowGap!==null){var transformer=createUnaryUnit(props.theme,"spacing",8,"rowGap");var styleFromPropValue=function styleFromPropValue(propValue){return{rowGap:getValue(transformer,propValue)};};return handleBreakpoints(props,props.rowGap,styleFromPropValue);}return null;};rowGap.propTypes=process.env.NODE_ENV!=="production"?{rowGap:responsivePropType}:{};rowGap.filterProps=["rowGap"];var gridColumn=style$1({prop:"gridColumn"});var gridRow=style$1({prop:"gridRow"});var gridAutoFlow=style$1({prop:"gridAutoFlow"});var gridAutoColumns=style$1({prop:"gridAutoColumns"});var gridAutoRows=style$1({prop:"gridAutoRows"});var gridTemplateColumns=style$1({prop:"gridTemplateColumns"});var gridTemplateRows=style$1({prop:"gridTemplateRows"});var gridTemplateAreas=style$1({prop:"gridTemplateAreas"});var gridArea=style$1({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(value,userValue){if(userValue==="grey"){return userValue;}return value;}var color=style$1({prop:"color",themeKey:"palette",transform:paletteTransform});var bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform});var backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(value){return value<=1&&value!==0?"".concat(value*100,"%"):value;}var width=style$1({prop:"width",transform:sizingTransform});var maxWidth=function maxWidth(props){if(props.maxWidth!==void 0&&props.maxWidth!==null){var styleFromPropValue=function styleFromPropValue(propValue){var _a,_b,_c,_d,_e;var breakpoint=((_c=(_b=(_a=props.theme)==null?void 0:_a.breakpoints)==null?void 0:_b.values)==null?void 0:_c[propValue])||values$1[propValue];if(!breakpoint){return{maxWidth:sizingTransform(propValue)};}if(((_e=(_d=props.theme)==null?void 0:_d.breakpoints)==null?void 0:_e.unit)!=="px"){return{maxWidth:"".concat(breakpoint).concat(props.theme.breakpoints.unit)};}return{maxWidth:breakpoint};};return handleBreakpoints(props,props.maxWidth,styleFromPropValue);}return null;};maxWidth.filterProps=["maxWidth"];var minWidth=style$1({prop:"minWidth",transform:sizingTransform});var height=style$1({prop:"height",transform:sizingTransform});var maxHeight$1=style$1({prop:"maxHeight",transform:sizingTransform});var minHeight=style$1({prop:"minHeight",transform:sizingTransform});style$1({prop:"size",cssProperty:"width",transform:sizingTransform});style$1({prop:"size",cssProperty:"height",transform:sizingTransform});var boxSizing=style$1({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight$1,minHeight,boxSizing);var defaultSxConfig={// borders
|
|
100
|
+
keys:["xs","sm","md","lg","xl"],up:function up(key){return"@media (min-width:".concat(values$1[key],"px)");}};var defaultContainerQueries={containerQueries:function containerQueries(containerName){return{up:function up(key){var result=typeof key==="number"?key:values$1[key]||key;if(typeof result==="number"){result="".concat(result,"px");}return containerName?"@container ".concat(containerName," (min-width:").concat(result,")"):"@container (min-width:".concat(result,")");}};}};function handleBreakpoints(props,propValue,styleFromPropValue){var theme=props.theme||{};if(Array.isArray(propValue)){var themeBreakpoints=theme.breakpoints||defaultBreakpoints;return propValue.reduce(function(acc,item2,index2){acc[themeBreakpoints.up(themeBreakpoints.keys[index2])]=styleFromPropValue(propValue[index2]);return acc;},{});}if(_typeof2(propValue)==="object"){var _themeBreakpoints=theme.breakpoints||defaultBreakpoints;return Object.keys(propValue).reduce(function(acc,breakpoint){if(isCqShorthand(_themeBreakpoints.keys,breakpoint)){var containerKey=getContainerQuery(theme.containerQueries?theme:defaultContainerQueries,breakpoint);if(containerKey){acc[containerKey]=styleFromPropValue(propValue[breakpoint],breakpoint);}}else if(Object.keys(_themeBreakpoints.values||values$1).includes(breakpoint)){var mediaKey=_themeBreakpoints.up(breakpoint);acc[mediaKey]=styleFromPropValue(propValue[breakpoint],breakpoint);}else{var cssKey=breakpoint;acc[cssKey]=propValue[cssKey];}return acc;},{});}var output=styleFromPropValue(propValue);return output;}function createEmptyBreakpointObject(){var breakpointsInput=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _a;var breakpointsInOrder=(_a=breakpointsInput.keys)==null?void 0:_a.reduce(function(acc,key){var breakpointStyleKey=breakpointsInput.up(key);acc[breakpointStyleKey]={};return acc;},{});return breakpointsInOrder||{};}function removeUnusedBreakpoints(breakpointKeys,style2){return breakpointKeys.reduce(function(acc,key){var breakpointOutput=acc[key];var isBreakpointUnused=!breakpointOutput||Object.keys(breakpointOutput).length===0;if(isBreakpointUnused){delete acc[key];}return acc;},style2);}function capitalize$1(string){if(typeof string!=="string"){throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":formatMuiErrorMessage(7));}return string.charAt(0).toUpperCase()+string.slice(1);}function getPath$1(obj,path){var checkVars=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(!path||typeof path!=="string"){return null;}if(obj&&obj.vars&&checkVars){var val="vars.".concat(path).split(".").reduce(function(acc,item2){return acc&&acc[item2]?acc[item2]:null;},obj);if(val!=null){return val;}}return path.split(".").reduce(function(acc,item2){if(acc&&acc[item2]!=null){return acc[item2];}return null;},obj);}function getStyleValue$1(themeMapping,transform,propValueFinal){var userValue=arguments.length>3&&arguments[3]!==undefined?arguments[3]:propValueFinal;var value;if(typeof themeMapping==="function"){value=themeMapping(propValueFinal);}else if(Array.isArray(themeMapping)){value=themeMapping[propValueFinal]||userValue;}else{value=getPath$1(themeMapping,propValueFinal)||userValue;}if(transform){value=transform(value,userValue,themeMapping);}return value;}function style$1(options){var prop=options.prop,_options$cssProperty=options.cssProperty,cssProperty=_options$cssProperty===void 0?options.prop:_options$cssProperty,themeKey=options.themeKey,transform=options.transform;var fn3=function fn3(props){if(props[prop]==null){return null;}var propValue=props[prop];var theme=props.theme;var themeMapping=getPath$1(theme,themeKey)||{};var styleFromPropValue=function styleFromPropValue(propValueFinal){var value=getStyleValue$1(themeMapping,transform,propValueFinal);if(propValueFinal===value&&typeof propValueFinal==="string"){value=getStyleValue$1(themeMapping,transform,"".concat(prop).concat(propValueFinal==="default"?"":capitalize$1(propValueFinal)),propValueFinal);}if(cssProperty===false){return value;}return _defineProperty2({},cssProperty,value);};return handleBreakpoints(props,propValue,styleFromPropValue);};fn3.propTypes=process.env.NODE_ENV!=="production"?_defineProperty2({},prop,responsivePropType):{};fn3.filterProps=[prop];return fn3;}function memoize$3(fn3){var cache={};return function(arg2){if(cache[arg2]===void 0){cache[arg2]=fn3(arg2);}return cache[arg2];};}var properties={m:"margin",p:"padding"};var directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]};var aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"};var getCssProperties=memoize$3(function(prop){if(prop.length>2){if(aliases[prop]){prop=aliases[prop];}else{return[prop];}}var _prop$split=prop.split(""),_prop$split2=_slicedToArray2(_prop$split,2),a=_prop$split2[0],b=_prop$split2[1];var property2=properties[a];var direction=directions[b]||"";return Array.isArray(direction)?direction.map(function(dir){return property2+dir;}):[property2+direction];});var marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"];var paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var spacingKeys=[].concat(marginKeys,paddingKeys);function createUnaryUnit(theme,themeKey,defaultValue,propName){var _a;var themeSpacing=(_a=getPath$1(theme,themeKey,true))!=null?_a:defaultValue;if(typeof themeSpacing==="number"||typeof themeSpacing==="string"){return function(val){if(typeof val==="string"){return val;}if(process.env.NODE_ENV!=="production"){if(typeof val!=="number"){console.error("MUI: Expected ".concat(propName," argument to be a number or a string, got ").concat(val,"."));}}if(typeof themeSpacing==="string"){return"calc(".concat(val," * ").concat(themeSpacing,")");}return themeSpacing*val;};}if(Array.isArray(themeSpacing)){return function(val){if(typeof val==="string"){return val;}var abs2=Math.abs(val);if(process.env.NODE_ENV!=="production"){if(!Number.isInteger(abs2)){console.error(["MUI: The `theme.".concat(themeKey,"` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the `theme.").concat(themeKey,"` as a number.")].join("\n"));}else if(abs2>themeSpacing.length-1){console.error(["MUI: The value provided (".concat(abs2,") overflows."),"The supported values are: ".concat(JSON.stringify(themeSpacing),"."),"".concat(abs2," > ").concat(themeSpacing.length-1,", you need to add the missing values.")].join("\n"));}}var transformed=themeSpacing[abs2];if(val>=0){return transformed;}if(typeof transformed==="number"){return-transformed;}return"-".concat(transformed);};}if(typeof themeSpacing==="function"){return themeSpacing;}if(process.env.NODE_ENV!=="production"){console.error(["MUI: The `theme.".concat(themeKey,"` value (").concat(themeSpacing,") is invalid."),"It should be a number, an array or a function."].join("\n"));}return function(){return void 0;};}function createUnarySpacing(theme){return createUnaryUnit(theme,"spacing",8,"spacing");}function getValue$2(transformer,propValue){if(typeof propValue==="string"||propValue==null){return propValue;}return transformer(propValue);}function getStyleFromPropValue(cssProperties,transformer){return function(propValue){return cssProperties.reduce(function(acc,cssProperty){acc[cssProperty]=getValue$2(transformer,propValue);return acc;},{});};}function resolveCssProperty(props,keys2,prop,transformer){if(!keys2.includes(prop)){return null;}var cssProperties=getCssProperties(prop);var styleFromPropValue=getStyleFromPropValue(cssProperties,transformer);var propValue=props[prop];return handleBreakpoints(props,propValue,styleFromPropValue);}function style(props,keys2){var transformer=createUnarySpacing(props.theme);return Object.keys(props).map(function(prop){return resolveCssProperty(props,keys2,prop,transformer);}).reduce(merge,{});}function margin(props){return style(props,marginKeys);}margin.propTypes=process.env.NODE_ENV!=="production"?marginKeys.reduce(function(obj,key){obj[key]=responsivePropType;return obj;},{}):{};margin.filterProps=marginKeys;function padding(props){return style(props,paddingKeys);}padding.propTypes=process.env.NODE_ENV!=="production"?paddingKeys.reduce(function(obj,key){obj[key]=responsivePropType;return obj;},{}):{};padding.filterProps=paddingKeys;process.env.NODE_ENV!=="production"?spacingKeys.reduce(function(obj,key){obj[key]=responsivePropType;return obj;},{}):{};function createSpacing(){var spacingInput=arguments.length>0&&arguments[0]!==undefined?arguments[0]:8;var transform=arguments.length>1&&arguments[1]!==undefined?arguments[1]:createUnarySpacing({spacing:spacingInput});if(spacingInput.mui){return spacingInput;}var spacing2=function spacing2(){for(var _len7=arguments.length,argsInput=new Array(_len7),_key7=0;_key7<_len7;_key7++){argsInput[_key7]=arguments[_key7];}if(process.env.NODE_ENV!=="production"){if(!(argsInput.length<=4)){console.error("MUI: Too many arguments provided, expected between 0 and 4, got ".concat(argsInput.length));}}var args=argsInput.length===0?[1]:argsInput;return args.map(function(argument){var output=transform(argument);return typeof output==="number"?"".concat(output,"px"):output;}).join(" ");};spacing2.mui=true;return spacing2;}function compose(){for(var _len8=arguments.length,styles2=new Array(_len8),_key8=0;_key8<_len8;_key8++){styles2[_key8]=arguments[_key8];}var handlers=styles2.reduce(function(acc,style2){style2.filterProps.forEach(function(prop){acc[prop]=style2;});return acc;},{});var fn3=function fn3(props){return Object.keys(props).reduce(function(acc,prop){if(handlers[prop]){return merge(acc,handlers[prop](props));}return acc;},{});};fn3.propTypes=process.env.NODE_ENV!=="production"?styles2.reduce(function(acc,style2){return Object.assign(acc,style2.propTypes);},{}):{};fn3.filterProps=styles2.reduce(function(acc,style2){return acc.concat(style2.filterProps);},[]);return fn3;}function borderTransform(value){if(typeof value!=="number"){return value;}return"".concat(value,"px solid");}function createBorderStyle(prop,transform){return style$1({prop:prop,themeKey:"borders",transform:transform});}var border=createBorderStyle("border",borderTransform);var borderTop=createBorderStyle("borderTop",borderTransform);var borderRight=createBorderStyle("borderRight",borderTransform);var borderBottom=createBorderStyle("borderBottom",borderTransform);var borderLeft=createBorderStyle("borderLeft",borderTransform);var borderColor=createBorderStyle("borderColor");var borderTopColor=createBorderStyle("borderTopColor");var borderRightColor=createBorderStyle("borderRightColor");var borderBottomColor=createBorderStyle("borderBottomColor");var borderLeftColor=createBorderStyle("borderLeftColor");var outline=createBorderStyle("outline",borderTransform);var outlineColor=createBorderStyle("outlineColor");var borderRadius$1=function borderRadius$1(props){if(props.borderRadius!==void 0&&props.borderRadius!==null){var transformer=createUnaryUnit(props.theme,"shape.borderRadius",4,"borderRadius");var styleFromPropValue=function styleFromPropValue(propValue){return{borderRadius:getValue$2(transformer,propValue)};};return handleBreakpoints(props,props.borderRadius,styleFromPropValue);}return null;};borderRadius$1.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:responsivePropType}:{};borderRadius$1.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius$1,outline,outlineColor);var gap=function gap(props){if(props.gap!==void 0&&props.gap!==null){var transformer=createUnaryUnit(props.theme,"spacing",8,"gap");var styleFromPropValue=function styleFromPropValue(propValue){return{gap:getValue$2(transformer,propValue)};};return handleBreakpoints(props,props.gap,styleFromPropValue);}return null;};gap.propTypes=process.env.NODE_ENV!=="production"?{gap:responsivePropType}:{};gap.filterProps=["gap"];var columnGap=function columnGap(props){if(props.columnGap!==void 0&&props.columnGap!==null){var transformer=createUnaryUnit(props.theme,"spacing",8,"columnGap");var styleFromPropValue=function styleFromPropValue(propValue){return{columnGap:getValue$2(transformer,propValue)};};return handleBreakpoints(props,props.columnGap,styleFromPropValue);}return null;};columnGap.propTypes=process.env.NODE_ENV!=="production"?{columnGap:responsivePropType}:{};columnGap.filterProps=["columnGap"];var rowGap=function rowGap(props){if(props.rowGap!==void 0&&props.rowGap!==null){var transformer=createUnaryUnit(props.theme,"spacing",8,"rowGap");var styleFromPropValue=function styleFromPropValue(propValue){return{rowGap:getValue$2(transformer,propValue)};};return handleBreakpoints(props,props.rowGap,styleFromPropValue);}return null;};rowGap.propTypes=process.env.NODE_ENV!=="production"?{rowGap:responsivePropType}:{};rowGap.filterProps=["rowGap"];var gridColumn=style$1({prop:"gridColumn"});var gridRow=style$1({prop:"gridRow"});var gridAutoFlow=style$1({prop:"gridAutoFlow"});var gridAutoColumns=style$1({prop:"gridAutoColumns"});var gridAutoRows=style$1({prop:"gridAutoRows"});var gridTemplateColumns=style$1({prop:"gridTemplateColumns"});var gridTemplateRows=style$1({prop:"gridTemplateRows"});var gridTemplateAreas=style$1({prop:"gridTemplateAreas"});var gridArea=style$1({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(value,userValue){if(userValue==="grey"){return userValue;}return value;}var color=style$1({prop:"color",themeKey:"palette",transform:paletteTransform});var bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform});var backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(value){return value<=1&&value!==0?"".concat(value*100,"%"):value;}var width=style$1({prop:"width",transform:sizingTransform});var maxWidth=function maxWidth(props){if(props.maxWidth!==void 0&&props.maxWidth!==null){var styleFromPropValue=function styleFromPropValue(propValue){var _a,_b,_c,_d,_e;var breakpoint=((_c=(_b=(_a=props.theme)==null?void 0:_a.breakpoints)==null?void 0:_b.values)==null?void 0:_c[propValue])||values$1[propValue];if(!breakpoint){return{maxWidth:sizingTransform(propValue)};}if(((_e=(_d=props.theme)==null?void 0:_d.breakpoints)==null?void 0:_e.unit)!=="px"){return{maxWidth:"".concat(breakpoint).concat(props.theme.breakpoints.unit)};}return{maxWidth:breakpoint};};return handleBreakpoints(props,props.maxWidth,styleFromPropValue);}return null;};maxWidth.filterProps=["maxWidth"];var minWidth=style$1({prop:"minWidth",transform:sizingTransform});var height=style$1({prop:"height",transform:sizingTransform});var maxHeight$1=style$1({prop:"maxHeight",transform:sizingTransform});var minHeight=style$1({prop:"minHeight",transform:sizingTransform});style$1({prop:"size",cssProperty:"width",transform:sizingTransform});style$1({prop:"size",cssProperty:"height",transform:sizingTransform});var boxSizing=style$1({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight$1,minHeight,boxSizing);var defaultSxConfig={// borders
|
|
101
101
|
border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius$1},// palette
|
|
102
102
|
color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},// spacing
|
|
103
103
|
p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},// display
|
|
@@ -107,7 +107,7 @@ gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},
|
|
|
107
107
|
position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},// shadows
|
|
108
108
|
boxShadow:{themeKey:"shadows"},// sizing
|
|
109
109
|
width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},// typography
|
|
110
|
-
font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:false,themeKey:"typography"}};function objectsHaveSameKeys(){for(var _len9=arguments.length,objects=new Array(_len9),_key9=0;_key9<_len9;_key9++){objects[_key9]=arguments[_key9];}var allKeys=objects.reduce(function(
|
|
110
|
+
font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:false,themeKey:"typography"}};function objectsHaveSameKeys(){for(var _len9=arguments.length,objects=new Array(_len9),_key9=0;_key9<_len9;_key9++){objects[_key9]=arguments[_key9];}var allKeys=objects.reduce(function(keys2,object){return keys2.concat(Object.keys(object));},[]);var union=new Set(allKeys);return objects.every(function(object){return union.size===Object.keys(object).length;});}function callIfFn(maybeFn,arg2){return typeof maybeFn==="function"?maybeFn(arg2):maybeFn;}function unstable_createStyleFunctionSx(){function getThemeValue(prop,val,theme,config2){var props=_defineProperty2(_defineProperty2({},prop,val),"theme",theme);var options=config2[prop];if(!options){return _defineProperty2({},prop,val);}var _options$cssProperty2=options.cssProperty,cssProperty=_options$cssProperty2===void 0?prop:_options$cssProperty2,themeKey=options.themeKey,transform=options.transform,style2=options.style;if(val==null){return null;}if(themeKey==="typography"&&val==="inherit"){return _defineProperty2({},prop,val);}var themeMapping=getPath$1(theme,themeKey)||{};if(style2){return style2(props);}var styleFromPropValue=function styleFromPropValue(propValueFinal){var value=getStyleValue$1(themeMapping,transform,propValueFinal);if(propValueFinal===value&&typeof propValueFinal==="string"){value=getStyleValue$1(themeMapping,transform,"".concat(prop).concat(propValueFinal==="default"?"":capitalize$1(propValueFinal)),propValueFinal);}if(cssProperty===false){return value;}return _defineProperty2({},cssProperty,value);};return handleBreakpoints(props,val,styleFromPropValue);}function styleFunctionSx2(props){var _a;var _ref12=props||{},sx=_ref12.sx,_ref12$theme=_ref12.theme,theme=_ref12$theme===void 0?{}:_ref12$theme,nested=_ref12.nested;if(!sx){return null;}var config2=(_a=theme.unstable_sxConfig)!=null?_a:defaultSxConfig;function traverse(sxInput){var sxObject=sxInput;if(typeof sxInput==="function"){sxObject=sxInput(theme);}else if(_typeof2(sxInput)!=="object"){return sxInput;}if(!sxObject){return null;}var emptyBreakpoints=createEmptyBreakpointObject(theme.breakpoints);var breakpointsKeys=Object.keys(emptyBreakpoints);var css4=emptyBreakpoints;Object.keys(sxObject).forEach(function(styleKey){var value=callIfFn(sxObject[styleKey],theme);if(value!==null&&value!==void 0){if(_typeof2(value)==="object"){if(config2[styleKey]){css4=merge(css4,getThemeValue(styleKey,value,theme,config2));}else{var breakpointsValues=handleBreakpoints({theme:theme},value,function(x){return _defineProperty2({},styleKey,x);});if(objectsHaveSameKeys(breakpointsValues,value)){css4[styleKey]=styleFunctionSx2({sx:value,theme:theme,nested:true});}else{css4=merge(css4,breakpointsValues);}}}else{css4=merge(css4,getThemeValue(styleKey,value,theme,config2));}}});if(!nested&&theme.modularCssLayers){return{"@layer sx":sortContainerQueries(theme,removeUnusedBreakpoints(breakpointsKeys,css4))};}return sortContainerQueries(theme,removeUnusedBreakpoints(breakpointsKeys,css4));}return Array.isArray(sx)?sx.map(traverse):traverse(sx);}return styleFunctionSx2;}var styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];function applyStyles$4(key,styles2){var _a;var theme=this;if(theme.vars){if(!((_a=theme.colorSchemes)==null?void 0:_a[key])||typeof theme.getColorSchemeSelector!=="function"){return{};}var selector=theme.getColorSchemeSelector(key);if(selector==="&"){return styles2;}if(selector.includes("data-")||selector.includes(".")){selector="*:where(".concat(selector.replace(/\s*&$/,""),") &");}return _defineProperty2({},selector,styles2);}if(theme.palette.mode===key){return styles2;}return{};}function createTheme$1(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _a=options,_a$breakpoints=_a.breakpoints,breakpointsInput=_a$breakpoints===void 0?{}:_a$breakpoints,_a$palette=_a.palette,paletteInput=_a$palette===void 0?{}:_a$palette,spacingInput=_a.spacing,_a$shape=_a.shape,shapeInput=_a$shape===void 0?{}:_a$shape,other=__objRest(_a,["breakpoints","palette","spacing","shape"]);var breakpoints=createBreakpoints(breakpointsInput);var spacing2=createSpacing(spacingInput);var muiTheme=deepmerge({breakpoints:breakpoints,direction:"ltr",components:{},// Inject component definitions.
|
|
111
111
|
palette:__spreadValues({mode:"light"},paletteInput),spacing:spacing2,shape:__spreadValues(__spreadValues({},shape),shapeInput)},other);muiTheme=cssContainerQueries(muiTheme);muiTheme.applyStyles=applyStyles$4;for(var _len0=arguments.length,args=new Array(_len0>1?_len0-1:0),_key0=1;_key0<_len0;_key0++){args[_key0-1]=arguments[_key0];}muiTheme=args.reduce(function(acc,argument){return deepmerge(acc,argument);},muiTheme);muiTheme.unstable_sxConfig=__spreadValues(__spreadValues({},defaultSxConfig),other==null?void 0:other.unstable_sxConfig);muiTheme.unstable_sx=function sx(props){return styleFunctionSx({sx:props,theme:this});};return muiTheme;}function isObjectEmpty$2(obj){return Object.keys(obj).length===0;}function useTheme$2(){var defaultTheme2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var contextTheme=React.useContext(ThemeContext$1);return!contextTheme||isObjectEmpty$2(contextTheme)?defaultTheme2:contextTheme;}var systemDefaultTheme$1=createTheme$1();function useTheme$1(){var defaultTheme2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:systemDefaultTheme$1;return useTheme$2(defaultTheme2);}function wrapGlobalLayer(styles2){var serialized=internal_serializeStyles(styles2);if(styles2!==serialized&&serialized.styles){if(!serialized.styles.match(/^@layer\s+[^{]*$/)){serialized.styles="@layer global{".concat(serialized.styles,"}");}return serialized;}return styles2;}function GlobalStyles$1(_ref15){var styles2=_ref15.styles,themeId=_ref15.themeId,_ref15$defaultTheme=_ref15.defaultTheme,defaultTheme2=_ref15$defaultTheme===void 0?{}:_ref15$defaultTheme;var upperTheme=useTheme$1(defaultTheme2);var resolvedTheme=themeId?upperTheme[themeId]||upperTheme:upperTheme;var globalStyles=typeof styles2==="function"?styles2(resolvedTheme):styles2;if(resolvedTheme.modularCssLayers){if(Array.isArray(globalStyles)){globalStyles=globalStyles.map(function(styleArg2){if(typeof styleArg2==="function"){return wrapGlobalLayer(styleArg2(resolvedTheme));}return wrapGlobalLayer(styleArg2);});}else{globalStyles=wrapGlobalLayer(globalStyles);}}return/* @__PURE__ */jsx$1(GlobalStyles$2,{styles:globalStyles});}process.env.NODE_ENV!=="production"?GlobalStyles$1.propTypes={// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
112
112
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
113
113
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -147,7 +147,7 @@ typeof window==="undefined"){return null;}var warningHint;if(typeof propValue===
|
|
|
147
147
|
* @ignore
|
|
148
148
|
*/children:PropTypes.node,/**
|
|
149
149
|
* @ignore
|
|
150
|
-
*/value:PropTypes.object}:void 0;function getThemeProps(params){var theme=params.theme,name=params.name,props=params.props;if(!theme||!theme.components||!theme.components[name]){return props;}var config2=theme.components[name];if(config2.defaultProps){return resolveProps(config2.defaultProps,props);}if(!config2.styleOverrides&&!config2.variants){return resolveProps(config2,props);}return props;}function useDefaultProps$1(_ref18){var props=_ref18.props,name=_ref18.name;var ctx=React.useContext(PropsContext);return getThemeProps({props:props,name:name,theme:{components:ctx}});}var arg={theme:void 0};function unstable_memoTheme(styleFn){var lastValue;var lastTheme;return function styleMemoized(props){var value=lastValue;if(value===void 0||props.theme!==lastTheme){arg.theme=props.theme;value=preprocessStyles(styleFn(arg));lastValue=value;lastTheme=props.theme;}return value;};}function createGetCssVar$1(){var prefix2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";function appendVar(){for(var _len15=arguments.length,vars=new Array(_len15),_key15=0;_key15<_len15;_key15++){vars[_key15]=arguments[_key15];}if(!vars.length){return"";}var value=vars[0];if(typeof value==="string"&&!value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)){return", var(--".concat(prefix2?"".concat(prefix2,"-"):"").concat(value).concat(appendVar.apply(void 0,_toConsumableArray2(vars.slice(1))),")");}return", ".concat(value);}var getCssVar=function getCssVar(field){for(var _len16=arguments.length,fallbacks=new Array(_len16>1?_len16-1:0),_key16=1;_key16<_len16;_key16++){fallbacks[_key16-1]=arguments[_key16];}return"var(--".concat(prefix2?"".concat(prefix2,"-"):"").concat(field).concat(appendVar.apply(void 0,fallbacks),")");};return getCssVar;}var assignNestedKeys=function assignNestedKeys(obj,
|
|
150
|
+
*/value:PropTypes.object}:void 0;function getThemeProps(params){var theme=params.theme,name=params.name,props=params.props;if(!theme||!theme.components||!theme.components[name]){return props;}var config2=theme.components[name];if(config2.defaultProps){return resolveProps(config2.defaultProps,props);}if(!config2.styleOverrides&&!config2.variants){return resolveProps(config2,props);}return props;}function useDefaultProps$1(_ref18){var props=_ref18.props,name=_ref18.name;var ctx=React.useContext(PropsContext);return getThemeProps({props:props,name:name,theme:{components:ctx}});}var arg={theme:void 0};function unstable_memoTheme(styleFn){var lastValue;var lastTheme;return function styleMemoized(props){var value=lastValue;if(value===void 0||props.theme!==lastTheme){arg.theme=props.theme;value=preprocessStyles(styleFn(arg));lastValue=value;lastTheme=props.theme;}return value;};}function createGetCssVar$1(){var prefix2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";function appendVar(){for(var _len15=arguments.length,vars=new Array(_len15),_key15=0;_key15<_len15;_key15++){vars[_key15]=arguments[_key15];}if(!vars.length){return"";}var value=vars[0];if(typeof value==="string"&&!value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)){return", var(--".concat(prefix2?"".concat(prefix2,"-"):"").concat(value).concat(appendVar.apply(void 0,_toConsumableArray2(vars.slice(1))),")");}return", ".concat(value);}var getCssVar=function getCssVar(field){for(var _len16=arguments.length,fallbacks=new Array(_len16>1?_len16-1:0),_key16=1;_key16<_len16;_key16++){fallbacks[_key16-1]=arguments[_key16];}return"var(--".concat(prefix2?"".concat(prefix2,"-"):"").concat(field).concat(appendVar.apply(void 0,fallbacks),")");};return getCssVar;}var assignNestedKeys=function assignNestedKeys(obj,keys2,value){var arrayKeys=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[];var temp=obj;keys2.forEach(function(k,index2){if(index2===keys2.length-1){if(Array.isArray(temp)){temp[Number(k)]=value;}else if(temp&&_typeof2(temp)==="object"){temp[k]=value;}}else if(temp&&_typeof2(temp)==="object"){if(!temp[k]){temp[k]=arrayKeys.includes(k)?[]:{};}temp=temp[k];}});};var walkObjectDeep=function walkObjectDeep(obj,callback,shouldSkipPaths){function recurse(object){var parentKeys=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var arrayKeys=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];Object.entries(object).forEach(function(_ref19){var _ref20=_slicedToArray2(_ref19,2),key=_ref20[0],value=_ref20[1];if(!shouldSkipPaths||shouldSkipPaths&&!shouldSkipPaths([].concat(_toConsumableArray2(parentKeys),[key]))){if(value!==void 0&&value!==null){if(_typeof2(value)==="object"&&Object.keys(value).length>0){recurse(value,[].concat(_toConsumableArray2(parentKeys),[key]),Array.isArray(value)?[].concat(_toConsumableArray2(arrayKeys),[key]):arrayKeys);}else{callback([].concat(_toConsumableArray2(parentKeys),[key]),value,arrayKeys);}}}});}recurse(obj);};var getCssValue=function getCssValue(keys2,value){if(typeof value==="number"){if(["lineHeight","fontWeight","opacity","zIndex"].some(function(prop){return keys2.includes(prop);})){return value;}var lastKey=keys2[keys2.length-1];if(lastKey.toLowerCase().includes("opacity")){return value;}return"".concat(value,"px");}return value;};function cssVarsParser(theme,options){var _ref21=options||{},prefix2=_ref21.prefix,shouldSkipGeneratingVar2=_ref21.shouldSkipGeneratingVar;var css4={};var vars={};var varsWithDefaults={};walkObjectDeep(theme,function(keys2,value,arrayKeys){if(typeof value==="string"||typeof value==="number"){if(!shouldSkipGeneratingVar2||!shouldSkipGeneratingVar2(keys2,value)){var cssVar="--".concat(prefix2?"".concat(prefix2,"-"):"").concat(keys2.join("-"));var resolvedValue=getCssValue(keys2,value);Object.assign(css4,_defineProperty2({},cssVar,resolvedValue));assignNestedKeys(vars,keys2,"var(".concat(cssVar,")"),arrayKeys);assignNestedKeys(varsWithDefaults,keys2,"var(".concat(cssVar,", ").concat(resolvedValue,")"),arrayKeys);}}},function(keys2){return keys2[0]==="vars";}// skip 'vars/*' paths
|
|
151
151
|
);return{css:css4,vars:vars,varsWithDefaults:varsWithDefaults};}function prepareCssVars(theme){var parserConfig=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _parserConfig$getSele=parserConfig.getSelector,getSelector=_parserConfig$getSele===void 0?defaultGetSelector2:_parserConfig$getSele,disableCssColorScheme=parserConfig.disableCssColorScheme,selector=parserConfig.colorSchemeSelector;var _a=theme,_a$colorSchemes=_a.colorSchemes,colorSchemes=_a$colorSchemes===void 0?{}:_a$colorSchemes,components2=_a.components,_a$defaultColorScheme=_a.defaultColorScheme,defaultColorScheme=_a$defaultColorScheme===void 0?"light":_a$defaultColorScheme,otherTheme=__objRest(_a,["colorSchemes","components","defaultColorScheme"]);var _cssVarsParser=cssVarsParser(otherTheme,parserConfig),rootVars=_cssVarsParser.vars,rootCss=_cssVarsParser.css,rootVarsWithDefaults=_cssVarsParser.varsWithDefaults;var themeVars=rootVarsWithDefaults;var colorSchemesMap={};var _b=colorSchemes,defaultScheme=_b[defaultColorScheme],otherColorSchemes=__objRest(_b,[__restKey(defaultColorScheme)]);Object.entries(otherColorSchemes||{}).forEach(function(_ref23){var _ref24=_slicedToArray2(_ref23,2),key=_ref24[0],scheme=_ref24[1];var _cssVarsParser2=cssVarsParser(scheme,parserConfig),vars=_cssVarsParser2.vars,css4=_cssVarsParser2.css,varsWithDefaults=_cssVarsParser2.varsWithDefaults;themeVars=deepmerge(themeVars,varsWithDefaults);colorSchemesMap[key]={css:css4,vars:vars};});if(defaultScheme){var _cssVarsParser3=cssVarsParser(defaultScheme,parserConfig),css4=_cssVarsParser3.css,vars=_cssVarsParser3.vars,varsWithDefaults=_cssVarsParser3.varsWithDefaults;themeVars=deepmerge(themeVars,varsWithDefaults);colorSchemesMap[defaultColorScheme]={css:css4,vars:vars};}function defaultGetSelector2(colorScheme,cssObject){var _a2,_b2;var rule=selector;if(selector==="class"){rule=".%s";}if(selector==="data"){rule="[data-%s]";}if((selector==null?void 0:selector.startsWith("data-"))&&!selector.includes("%s")){rule="[".concat(selector,"=\"%s\"]");}if(colorScheme){if(rule==="media"){if(theme.defaultColorScheme===colorScheme){return":root";}var mode=((_b2=(_a2=colorSchemes[colorScheme])==null?void 0:_a2.palette)==null?void 0:_b2.mode)||colorScheme;return _defineProperty2({},"@media (prefers-color-scheme: ".concat(mode,")"),{":root":cssObject});}if(rule){if(theme.defaultColorScheme===colorScheme){return":root, ".concat(rule.replace("%s",String(colorScheme)));}return rule.replace("%s",String(colorScheme));}}return":root";}var generateThemeVars=function generateThemeVars(){var vars=__spreadValues({},rootVars);Object.entries(colorSchemesMap).forEach(function(_ref26){var _ref27=_slicedToArray2(_ref26,2),schemeVars=_ref27[1].vars;vars=deepmerge(vars,schemeVars);});return vars;};var generateStyleSheets=function generateStyleSheets(){var _b2,_c;var stylesheets=[];var colorScheme=theme.defaultColorScheme||"light";function insertStyleSheet(key,css4){if(Object.keys(css4).length){stylesheets.push(typeof key==="string"?_defineProperty2({},key,__spreadValues({},css4)):key);}}insertStyleSheet(getSelector(void 0,__spreadValues({},rootCss)),rootCss);var _a2=colorSchemesMap,defaultSchemeVal=_a2[colorScheme],other=__objRest(_a2,[__restKey(colorScheme)]);if(defaultSchemeVal){var _css=defaultSchemeVal.css;var cssColorSheme=(_c=(_b2=colorSchemes[colorScheme])==null?void 0:_b2.palette)==null?void 0:_c.mode;var finalCss=!disableCssColorScheme&&cssColorSheme?__spreadValues({colorScheme:cssColorSheme},_css):__spreadValues({},_css);insertStyleSheet(getSelector(colorScheme,__spreadValues({},finalCss)),finalCss);}Object.entries(other).forEach(function(_ref29){var _ref30=_slicedToArray2(_ref29,2),key=_ref30[0],css4=_ref30[1].css;var _a3,_b3;var cssColorSheme=(_b3=(_a3=colorSchemes[key])==null?void 0:_a3.palette)==null?void 0:_b3.mode;var finalCss=!disableCssColorScheme&&cssColorSheme?__spreadValues({colorScheme:cssColorSheme},css4):__spreadValues({},css4);insertStyleSheet(getSelector(key,__spreadValues({},finalCss)),finalCss);});return stylesheets;};return{vars:themeVars,generateThemeVars:generateThemeVars,generateStyleSheets:generateStyleSheets};}function createGetColorSchemeSelector(selector){return function getColorSchemeSelector(colorScheme){if(selector==="media"){if(process.env.NODE_ENV!=="production"){if(colorScheme!=="light"&&colorScheme!=="dark"){console.error("MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '".concat(colorScheme,"'."));}}return"@media (prefers-color-scheme: ".concat(colorScheme,")");}if(selector){if(selector.startsWith("data-")&&!selector.includes("%s")){return"[".concat(selector,"=\"").concat(colorScheme,"\"] &");}if(selector==="class"){return".".concat(colorScheme," &");}if(selector==="data"){return"[data-".concat(colorScheme,"] &");}return"".concat(selector.replace("%s",colorScheme)," &");}return"&";};}function getLight(){return{// The colors used to style the text.
|
|
152
152
|
text:{// The most important text.
|
|
153
153
|
primary:"rgba(0, 0, 0, 0.87)",// Secondary text.
|
|
@@ -200,8 +200,8 @@ leavingScreen:195};function formatMs(milliseconds){return"".concat(Math.round(mi
|
|
|
200
200
|
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
201
201
|
options.generateThemeVars===void 0){throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":formatMuiErrorMessage(20));}var palette=createPalette(paletteInput);var systemTheme=createTheme$1(options);var muiTheme=deepmerge(systemTheme,{mixins:createMixins(systemTheme.breakpoints,mixinsInput),palette:palette,// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
202
202
|
shadows:shadows.slice(),typography:createTypography(palette,typographyInput),transitions:createTransitions(transitionsInput),zIndex:__spreadValues({},zIndex)});muiTheme=deepmerge(muiTheme,other);for(var _len17=arguments.length,args=new Array(_len17>1?_len17-1:0),_key17=1;_key17<_len17;_key17++){args[_key17-1]=arguments[_key17];}muiTheme=args.reduce(function(acc,argument){return deepmerge(acc,argument);},muiTheme);if(process.env.NODE_ENV!=="production"){var stateClasses=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"];var traverse=function traverse(node2,component){var key;for(key in node2){var child=node2[key];if(stateClasses.includes(key)&&Object.keys(child).length>0){if(process.env.NODE_ENV!=="production"){var stateClass=generateUtilityClass("",key);console.error(["MUI: The `".concat(component,"` component increases the CSS specificity of the `").concat(key,"` internal state."),"You can not override it like this: ",JSON.stringify(node2,null,2),"","Instead, you need to use the '&.".concat(stateClass,"' syntax:"),JSON.stringify({root:_defineProperty2({},"&.".concat(stateClass),child)},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"));}node2[key]={};}}};Object.keys(muiTheme.components).forEach(function(component){var styleOverrides=muiTheme.components[component].styleOverrides;if(styleOverrides&&component.startsWith("Mui")){traverse(styleOverrides,component);}});}muiTheme.unstable_sxConfig=__spreadValues(__spreadValues({},defaultSxConfig),other==null?void 0:other.unstable_sxConfig);muiTheme.unstable_sx=function sx(props){return styleFunctionSx({sx:props,theme:this});};muiTheme.toRuntimeSource=stringifyTheme;return muiTheme;}function getOverlayAlpha(elevation){var alphaValue;if(elevation<1){alphaValue=5.11916*__pow(elevation,2);}else{alphaValue=4.5*Math.log(elevation+1)+2;}return Math.round(alphaValue*10)/1e3;}var defaultDarkOverlays=_toConsumableArray2(Array(25)).map(function(_2,index2){if(index2===0){return"none";}var overlay2=getOverlayAlpha(index2);return"linear-gradient(rgba(255 255 255 / ".concat(overlay2,"), rgba(255 255 255 / ").concat(overlay2,"))");});function getOpacity(mode){return{inputPlaceholder:mode==="dark"?0.5:0.42,inputUnderline:mode==="dark"?0.7:0.42,switchTrackDisabled:mode==="dark"?0.2:0.12,switchTrack:mode==="dark"?0.3:0.38};}function getOverlays(mode){return mode==="dark"?defaultDarkOverlays:[];}function createColorScheme(options){var _a=options,_a$palette3=_a.palette,paletteInput=_a$palette3===void 0?{mode:"light"}:_a$palette3,opacity=_a.opacity,overlays=_a.overlays,rest=__objRest(_a,["palette",// need to cast to avoid module augmentation test
|
|
203
|
-
"opacity","overlays"]);var palette=createPalette(paletteInput);return __spreadValues({palette:palette,opacity:__spreadValues(__spreadValues({},getOpacity(palette.mode)),opacity),overlays:overlays||getOverlays(palette.mode)},rest);}function shouldSkipGeneratingVar(
|
|
204
|
-
keys[0]==="palette"&&!!((_a=keys[1])==null?void 0:_a.match(/(mode|contrastThreshold|tonalOffset)/));}var excludeVariablesFromRoot=function excludeVariablesFromRoot(cssVarPrefix){return[].concat(_toConsumableArray2(_toConsumableArray2(Array(25)).map(function(_2,index2){return"--".concat(cssVarPrefix?"".concat(cssVarPrefix,"-"):"","overlays-").concat(index2);})),["--".concat(cssVarPrefix?"".concat(cssVarPrefix,"-"):"","palette-AppBar-darkBg"),"--".concat(cssVarPrefix?"".concat(cssVarPrefix,"-"):"","palette-AppBar-darkColor")]);};var defaultGetSelector=function defaultGetSelector(theme){return function(colorScheme,css4){var root=theme.rootSelector||":root";var selector=theme.colorSchemeSelector;var rule=selector;if(selector==="class"){rule=".%s";}if(selector==="data"){rule="[data-%s]";}if((selector==null?void 0:selector.startsWith("data-"))&&!selector.includes("%s")){rule="[".concat(selector,"=\"%s\"]");}if(theme.defaultColorScheme===colorScheme){if(colorScheme==="dark"){var excludedVariables={};excludeVariablesFromRoot(theme.cssVarPrefix).forEach(function(cssVar){excludedVariables[cssVar]=css4[cssVar];delete css4[cssVar];});if(rule==="media"){return _defineProperty2(_defineProperty2({},root,css4),"@media (prefers-color-scheme: dark)",_defineProperty2({},root,excludedVariables));}if(rule){return _defineProperty2(_defineProperty2({},rule.replace("%s",colorScheme),excludedVariables),"".concat(root,", ").concat(rule.replace("%s",colorScheme)),css4);}return _defineProperty2({},root,__spreadValues(__spreadValues({},css4),excludedVariables));}if(rule&&rule!=="media"){return"".concat(root,", ").concat(rule.replace("%s",String(colorScheme)));}}else if(colorScheme){if(rule==="media"){return _defineProperty2({},"@media (prefers-color-scheme: ".concat(String(colorScheme),")"),_defineProperty2({},root,css4));}if(rule){return rule.replace("%s",String(colorScheme));}}return root;};};function assignNode(obj,keys){keys.forEach(function(k){if(!obj[k]){obj[k]={};}});}function setColor(obj,key,defaultValue){if(!obj[key]&&defaultValue){obj[key]=defaultValue;}}function toRgb(color2){if(typeof color2!=="string"||!color2.startsWith("hsl")){return color2;}return hslToRgb(color2);}function setColorChannel(obj,key){if(!("".concat(key,"Channel")in obj)){obj["".concat(key,"Channel")]=private_safeColorChannel(toRgb(obj[key]),"MUI: Can't create `palette.".concat(key,"Channel` because `palette.").concat(key,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the `palette.").concat(key,"Channel` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token."));}}function getSpacingVal(spacingInput){if(typeof spacingInput==="number"){return"".concat(spacingInput,"px");}if(typeof spacingInput==="string"||typeof spacingInput==="function"||Array.isArray(spacingInput)){return spacingInput;}return"8px";}var silent=function silent(fn3){try{return fn3();}catch(error2){}return void 0;};var createGetCssVar=function createGetCssVar(){var cssVarPrefix=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"mui";return createGetCssVar$1(cssVarPrefix);};function attachColorScheme$1(colorSchemes,scheme,restTheme,colorScheme){if(!scheme){return void 0;}scheme=scheme===true?{}:scheme;var mode=colorScheme==="dark"?"dark":"light";if(!restTheme){colorSchemes[colorScheme]=createColorScheme(__spreadProps(__spreadValues({},scheme),{palette:__spreadValues({mode:mode},scheme==null?void 0:scheme.palette)}));return void 0;}var _a=createThemeNoVars(__spreadProps(__spreadValues({},restTheme),{palette:__spreadValues({mode:mode},scheme==null?void 0:scheme.palette)})),palette=_a.palette,muiTheme=__objRest(_a,["palette"]);colorSchemes[colorScheme]=__spreadProps(__spreadValues({},scheme),{palette:palette,opacity:__spreadValues(__spreadValues({},getOpacity(mode)),scheme==null?void 0:scheme.opacity),overlays:(scheme==null?void 0:scheme.overlays)||getOverlays(mode)});return muiTheme;}function createThemeWithVars(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _a=options,_a$colorSchemes2=_a.colorSchemes,colorSchemesInput=_a$colorSchemes2===void 0?{light:true}:_a$colorSchemes2,defaultColorSchemeInput=_a.defaultColorScheme,_a$disableCssColorSch=_a.disableCssColorScheme,disableCssColorScheme=_a$disableCssColorSch===void 0?false:_a$disableCssColorSch,_a$cssVarPrefix=_a.cssVarPrefix,cssVarPrefix=_a$cssVarPrefix===void 0?"mui":_a$cssVarPrefix,_a$shouldSkipGenerati=_a.shouldSkipGeneratingVar,shouldSkipGeneratingVar$1=_a$shouldSkipGenerati===void 0?shouldSkipGeneratingVar:_a$shouldSkipGenerati,_a$colorSchemeSelecto=_a.colorSchemeSelector,selector=_a$colorSchemeSelecto===void 0?colorSchemesInput.light&&colorSchemesInput.dark?"media":void 0:_a$colorSchemeSelecto,_a$rootSelector=_a.rootSelector,rootSelector=_a$rootSelector===void 0?":root":_a$rootSelector,input=__objRest(_a,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]);var firstColorScheme=Object.keys(colorSchemesInput)[0];var defaultColorScheme=defaultColorSchemeInput||(colorSchemesInput.light&&firstColorScheme!=="light"?"light":firstColorScheme);var getCssVar=createGetCssVar(cssVarPrefix);var _b=colorSchemesInput,defaultSchemeInput=_b[defaultColorScheme],builtInLight=_b.light,builtInDark=_b.dark,customColorSchemes=__objRest(_b,[__restKey(defaultColorScheme),"light","dark"]);var colorSchemes=__spreadValues({},customColorSchemes);var defaultScheme=defaultSchemeInput;if(defaultColorScheme==="dark"&&!("dark"in colorSchemesInput)||defaultColorScheme==="light"&&!("light"in colorSchemesInput)){defaultScheme=true;}if(!defaultScheme){throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `colorSchemes.".concat(defaultColorScheme,"` option is either missing or invalid."):formatMuiErrorMessage(21,defaultColorScheme));}var muiTheme=attachColorScheme$1(colorSchemes,defaultScheme,input,defaultColorScheme);if(builtInLight&&!colorSchemes.light){attachColorScheme$1(colorSchemes,builtInLight,void 0,"light");}if(builtInDark&&!colorSchemes.dark){attachColorScheme$1(colorSchemes,builtInDark,void 0,"dark");}var theme=__spreadProps(__spreadValues({defaultColorScheme:defaultColorScheme},muiTheme),{cssVarPrefix:cssVarPrefix,colorSchemeSelector:selector,rootSelector:rootSelector,getCssVar:getCssVar,colorSchemes:colorSchemes,font:__spreadValues(__spreadValues({},prepareTypographyVars(muiTheme.typography)),muiTheme.font),spacing:getSpacingVal(input.spacing)});Object.keys(theme.colorSchemes).forEach(function(key){var palette=theme.colorSchemes[key].palette;var setCssVarColor=function setCssVarColor(cssVar){var tokens=cssVar.split("-");var color2=tokens[1];var colorToken=tokens[2];return getCssVar(cssVar,palette[color2][colorToken]);};if(palette.mode==="light"){setColor(palette.common,"background","#fff");setColor(palette.common,"onBackground","#000");}if(palette.mode==="dark"){setColor(palette.common,"background","#000");setColor(palette.common,"onBackground","#fff");}assignNode(palette,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]);if(palette.mode==="light"){setColor(palette.Alert,"errorColor",private_safeDarken(palette.error.light,0.6));setColor(palette.Alert,"infoColor",private_safeDarken(palette.info.light,0.6));setColor(palette.Alert,"successColor",private_safeDarken(palette.success.light,0.6));setColor(palette.Alert,"warningColor",private_safeDarken(palette.warning.light,0.6));setColor(palette.Alert,"errorFilledBg",setCssVarColor("palette-error-main"));setColor(palette.Alert,"infoFilledBg",setCssVarColor("palette-info-main"));setColor(palette.Alert,"successFilledBg",setCssVarColor("palette-success-main"));setColor(palette.Alert,"warningFilledBg",setCssVarColor("palette-warning-main"));setColor(palette.Alert,"errorFilledColor",silent(function(){return palette.getContrastText(palette.error.main);}));setColor(palette.Alert,"infoFilledColor",silent(function(){return palette.getContrastText(palette.info.main);}));setColor(palette.Alert,"successFilledColor",silent(function(){return palette.getContrastText(palette.success.main);}));setColor(palette.Alert,"warningFilledColor",silent(function(){return palette.getContrastText(palette.warning.main);}));setColor(palette.Alert,"errorStandardBg",private_safeLighten(palette.error.light,0.9));setColor(palette.Alert,"infoStandardBg",private_safeLighten(palette.info.light,0.9));setColor(palette.Alert,"successStandardBg",private_safeLighten(palette.success.light,0.9));setColor(palette.Alert,"warningStandardBg",private_safeLighten(palette.warning.light,0.9));setColor(palette.Alert,"errorIconColor",setCssVarColor("palette-error-main"));setColor(palette.Alert,"infoIconColor",setCssVarColor("palette-info-main"));setColor(palette.Alert,"successIconColor",setCssVarColor("palette-success-main"));setColor(palette.Alert,"warningIconColor",setCssVarColor("palette-warning-main"));setColor(palette.AppBar,"defaultBg",setCssVarColor("palette-grey-100"));setColor(palette.Avatar,"defaultBg",setCssVarColor("palette-grey-400"));setColor(palette.Button,"inheritContainedBg",setCssVarColor("palette-grey-300"));setColor(palette.Button,"inheritContainedHoverBg",setCssVarColor("palette-grey-A100"));setColor(palette.Chip,"defaultBorder",setCssVarColor("palette-grey-400"));setColor(palette.Chip,"defaultAvatarColor",setCssVarColor("palette-grey-700"));setColor(palette.Chip,"defaultIconColor",setCssVarColor("palette-grey-700"));setColor(palette.FilledInput,"bg","rgba(0, 0, 0, 0.06)");setColor(palette.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)");setColor(palette.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)");setColor(palette.LinearProgress,"primaryBg",private_safeLighten(palette.primary.main,0.62));setColor(palette.LinearProgress,"secondaryBg",private_safeLighten(palette.secondary.main,0.62));setColor(palette.LinearProgress,"errorBg",private_safeLighten(palette.error.main,0.62));setColor(palette.LinearProgress,"infoBg",private_safeLighten(palette.info.main,0.62));setColor(palette.LinearProgress,"successBg",private_safeLighten(palette.success.main,0.62));setColor(palette.LinearProgress,"warningBg",private_safeLighten(palette.warning.main,0.62));setColor(palette.Skeleton,"bg","rgba(".concat(setCssVarColor("palette-text-primaryChannel")," / 0.11)"));setColor(palette.Slider,"primaryTrack",private_safeLighten(palette.primary.main,0.62));setColor(palette.Slider,"secondaryTrack",private_safeLighten(palette.secondary.main,0.62));setColor(palette.Slider,"errorTrack",private_safeLighten(palette.error.main,0.62));setColor(palette.Slider,"infoTrack",private_safeLighten(palette.info.main,0.62));setColor(palette.Slider,"successTrack",private_safeLighten(palette.success.main,0.62));setColor(palette.Slider,"warningTrack",private_safeLighten(palette.warning.main,0.62));var snackbarContentBackground=private_safeEmphasize(palette.background.default,0.8);setColor(palette.SnackbarContent,"bg",snackbarContentBackground);setColor(palette.SnackbarContent,"color",silent(function(){return palette.getContrastText(snackbarContentBackground);}));setColor(palette.SpeedDialAction,"fabHoverBg",private_safeEmphasize(palette.background.paper,0.15));setColor(palette.StepConnector,"border",setCssVarColor("palette-grey-400"));setColor(palette.StepContent,"border",setCssVarColor("palette-grey-400"));setColor(palette.Switch,"defaultColor",setCssVarColor("palette-common-white"));setColor(palette.Switch,"defaultDisabledColor",setCssVarColor("palette-grey-100"));setColor(palette.Switch,"primaryDisabledColor",private_safeLighten(palette.primary.main,0.62));setColor(palette.Switch,"secondaryDisabledColor",private_safeLighten(palette.secondary.main,0.62));setColor(palette.Switch,"errorDisabledColor",private_safeLighten(palette.error.main,0.62));setColor(palette.Switch,"infoDisabledColor",private_safeLighten(palette.info.main,0.62));setColor(palette.Switch,"successDisabledColor",private_safeLighten(palette.success.main,0.62));setColor(palette.Switch,"warningDisabledColor",private_safeLighten(palette.warning.main,0.62));setColor(palette.TableCell,"border",private_safeLighten(private_safeAlpha(palette.divider,1),0.88));setColor(palette.Tooltip,"bg",private_safeAlpha(palette.grey[700],0.92));}if(palette.mode==="dark"){setColor(palette.Alert,"errorColor",private_safeLighten(palette.error.light,0.6));setColor(palette.Alert,"infoColor",private_safeLighten(palette.info.light,0.6));setColor(palette.Alert,"successColor",private_safeLighten(palette.success.light,0.6));setColor(palette.Alert,"warningColor",private_safeLighten(palette.warning.light,0.6));setColor(palette.Alert,"errorFilledBg",setCssVarColor("palette-error-dark"));setColor(palette.Alert,"infoFilledBg",setCssVarColor("palette-info-dark"));setColor(palette.Alert,"successFilledBg",setCssVarColor("palette-success-dark"));setColor(palette.Alert,"warningFilledBg",setCssVarColor("palette-warning-dark"));setColor(palette.Alert,"errorFilledColor",silent(function(){return palette.getContrastText(palette.error.dark);}));setColor(palette.Alert,"infoFilledColor",silent(function(){return palette.getContrastText(palette.info.dark);}));setColor(palette.Alert,"successFilledColor",silent(function(){return palette.getContrastText(palette.success.dark);}));setColor(palette.Alert,"warningFilledColor",silent(function(){return palette.getContrastText(palette.warning.dark);}));setColor(palette.Alert,"errorStandardBg",private_safeDarken(palette.error.light,0.9));setColor(palette.Alert,"infoStandardBg",private_safeDarken(palette.info.light,0.9));setColor(palette.Alert,"successStandardBg",private_safeDarken(palette.success.light,0.9));setColor(palette.Alert,"warningStandardBg",private_safeDarken(palette.warning.light,0.9));setColor(palette.Alert,"errorIconColor",setCssVarColor("palette-error-main"));setColor(palette.Alert,"infoIconColor",setCssVarColor("palette-info-main"));setColor(palette.Alert,"successIconColor",setCssVarColor("palette-success-main"));setColor(palette.Alert,"warningIconColor",setCssVarColor("palette-warning-main"));setColor(palette.AppBar,"defaultBg",setCssVarColor("palette-grey-900"));setColor(palette.AppBar,"darkBg",setCssVarColor("palette-background-paper"));setColor(palette.AppBar,"darkColor",setCssVarColor("palette-text-primary"));setColor(palette.Avatar,"defaultBg",setCssVarColor("palette-grey-600"));setColor(palette.Button,"inheritContainedBg",setCssVarColor("palette-grey-800"));setColor(palette.Button,"inheritContainedHoverBg",setCssVarColor("palette-grey-700"));setColor(palette.Chip,"defaultBorder",setCssVarColor("palette-grey-700"));setColor(palette.Chip,"defaultAvatarColor",setCssVarColor("palette-grey-300"));setColor(palette.Chip,"defaultIconColor",setCssVarColor("palette-grey-300"));setColor(palette.FilledInput,"bg","rgba(255, 255, 255, 0.09)");setColor(palette.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)");setColor(palette.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)");setColor(palette.LinearProgress,"primaryBg",private_safeDarken(palette.primary.main,0.5));setColor(palette.LinearProgress,"secondaryBg",private_safeDarken(palette.secondary.main,0.5));setColor(palette.LinearProgress,"errorBg",private_safeDarken(palette.error.main,0.5));setColor(palette.LinearProgress,"infoBg",private_safeDarken(palette.info.main,0.5));setColor(palette.LinearProgress,"successBg",private_safeDarken(palette.success.main,0.5));setColor(palette.LinearProgress,"warningBg",private_safeDarken(palette.warning.main,0.5));setColor(palette.Skeleton,"bg","rgba(".concat(setCssVarColor("palette-text-primaryChannel")," / 0.13)"));setColor(palette.Slider,"primaryTrack",private_safeDarken(palette.primary.main,0.5));setColor(palette.Slider,"secondaryTrack",private_safeDarken(palette.secondary.main,0.5));setColor(palette.Slider,"errorTrack",private_safeDarken(palette.error.main,0.5));setColor(palette.Slider,"infoTrack",private_safeDarken(palette.info.main,0.5));setColor(palette.Slider,"successTrack",private_safeDarken(palette.success.main,0.5));setColor(palette.Slider,"warningTrack",private_safeDarken(palette.warning.main,0.5));var _snackbarContentBackground=private_safeEmphasize(palette.background.default,0.98);setColor(palette.SnackbarContent,"bg",_snackbarContentBackground);setColor(palette.SnackbarContent,"color",silent(function(){return palette.getContrastText(_snackbarContentBackground);}));setColor(palette.SpeedDialAction,"fabHoverBg",private_safeEmphasize(palette.background.paper,0.15));setColor(palette.StepConnector,"border",setCssVarColor("palette-grey-600"));setColor(palette.StepContent,"border",setCssVarColor("palette-grey-600"));setColor(palette.Switch,"defaultColor",setCssVarColor("palette-grey-300"));setColor(palette.Switch,"defaultDisabledColor",setCssVarColor("palette-grey-600"));setColor(palette.Switch,"primaryDisabledColor",private_safeDarken(palette.primary.main,0.55));setColor(palette.Switch,"secondaryDisabledColor",private_safeDarken(palette.secondary.main,0.55));setColor(palette.Switch,"errorDisabledColor",private_safeDarken(palette.error.main,0.55));setColor(palette.Switch,"infoDisabledColor",private_safeDarken(palette.info.main,0.55));setColor(palette.Switch,"successDisabledColor",private_safeDarken(palette.success.main,0.55));setColor(palette.Switch,"warningDisabledColor",private_safeDarken(palette.warning.main,0.55));setColor(palette.TableCell,"border",private_safeDarken(private_safeAlpha(palette.divider,1),0.68));setColor(palette.Tooltip,"bg",private_safeAlpha(palette.grey[700],0.92));}setColorChannel(palette.background,"default");setColorChannel(palette.background,"paper");setColorChannel(palette.common,"background");setColorChannel(palette.common,"onBackground");setColorChannel(palette,"divider");Object.keys(palette).forEach(function(color2){var colors2=palette[color2];if(color2!=="tonalOffset"&&colors2&&_typeof2(colors2)==="object"){if(colors2.main){setColor(palette[color2],"mainChannel",private_safeColorChannel(toRgb(colors2.main)));}if(colors2.light){setColor(palette[color2],"lightChannel",private_safeColorChannel(toRgb(colors2.light)));}if(colors2.dark){setColor(palette[color2],"darkChannel",private_safeColorChannel(toRgb(colors2.dark)));}if(colors2.contrastText){setColor(palette[color2],"contrastTextChannel",private_safeColorChannel(toRgb(colors2.contrastText)));}if(color2==="text"){setColorChannel(palette[color2],"primary");setColorChannel(palette[color2],"secondary");}if(color2==="action"){if(colors2.active){setColorChannel(palette[color2],"active");}if(colors2.selected){setColorChannel(palette[color2],"selected");}}}});});for(var _len18=arguments.length,args=new Array(_len18>1?_len18-1:0),_key18=1;_key18<_len18;_key18++){args[_key18-1]=arguments[_key18];}theme=args.reduce(function(acc,argument){return deepmerge(acc,argument);},theme);var parserConfig={prefix:cssVarPrefix,disableCssColorScheme:disableCssColorScheme,shouldSkipGeneratingVar:shouldSkipGeneratingVar$1,getSelector:defaultGetSelector(theme)};var _prepareCssVars=prepareCssVars(theme,parserConfig),vars=_prepareCssVars.vars,generateThemeVars=_prepareCssVars.generateThemeVars,generateStyleSheets=_prepareCssVars.generateStyleSheets;theme.vars=vars;Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(function(_ref37){var _ref38=_slicedToArray2(_ref37,2),key=_ref38[0],value=_ref38[1];theme[key]=value;});theme.generateThemeVars=generateThemeVars;theme.generateStyleSheets=generateStyleSheets;theme.generateSpacing=function generateSpacing(){return createSpacing(input.spacing,createUnarySpacing(this));};theme.getColorSchemeSelector=createGetColorSchemeSelector(selector);theme.spacing=theme.generateSpacing();theme.shouldSkipGeneratingVar=shouldSkipGeneratingVar$1;theme.unstable_sxConfig=__spreadValues(__spreadValues({},defaultSxConfig),input==null?void 0:input.unstable_sxConfig);theme.unstable_sx=function sx(props){return styleFunctionSx({sx:props,theme:this});};theme.toRuntimeSource=stringifyTheme;return theme;}function attachColorScheme(theme,scheme,colorScheme){if(!theme.colorSchemes){return void 0;}if(colorScheme){theme.colorSchemes[scheme]=__spreadProps(__spreadValues({},colorScheme!==true&&colorScheme),{palette:createPalette(__spreadProps(__spreadValues({},colorScheme===true?{}:colorScheme.palette),{mode:scheme}))// cast type to skip module augmentation test
|
|
203
|
+
"opacity","overlays"]);var palette=createPalette(paletteInput);return __spreadValues({palette:palette,opacity:__spreadValues(__spreadValues({},getOpacity(palette.mode)),opacity),overlays:overlays||getOverlays(palette.mode)},rest);}function shouldSkipGeneratingVar(keys2){var _a;return!!keys2[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!keys2[0].match(/sxConfig$/)||// ends with sxConfig
|
|
204
|
+
keys2[0]==="palette"&&!!((_a=keys2[1])==null?void 0:_a.match(/(mode|contrastThreshold|tonalOffset)/));}var excludeVariablesFromRoot=function excludeVariablesFromRoot(cssVarPrefix){return[].concat(_toConsumableArray2(_toConsumableArray2(Array(25)).map(function(_2,index2){return"--".concat(cssVarPrefix?"".concat(cssVarPrefix,"-"):"","overlays-").concat(index2);})),["--".concat(cssVarPrefix?"".concat(cssVarPrefix,"-"):"","palette-AppBar-darkBg"),"--".concat(cssVarPrefix?"".concat(cssVarPrefix,"-"):"","palette-AppBar-darkColor")]);};var defaultGetSelector=function defaultGetSelector(theme){return function(colorScheme,css4){var root2=theme.rootSelector||":root";var selector=theme.colorSchemeSelector;var rule=selector;if(selector==="class"){rule=".%s";}if(selector==="data"){rule="[data-%s]";}if((selector==null?void 0:selector.startsWith("data-"))&&!selector.includes("%s")){rule="[".concat(selector,"=\"%s\"]");}if(theme.defaultColorScheme===colorScheme){if(colorScheme==="dark"){var excludedVariables={};excludeVariablesFromRoot(theme.cssVarPrefix).forEach(function(cssVar){excludedVariables[cssVar]=css4[cssVar];delete css4[cssVar];});if(rule==="media"){return _defineProperty2(_defineProperty2({},root2,css4),"@media (prefers-color-scheme: dark)",_defineProperty2({},root2,excludedVariables));}if(rule){return _defineProperty2(_defineProperty2({},rule.replace("%s",colorScheme),excludedVariables),"".concat(root2,", ").concat(rule.replace("%s",colorScheme)),css4);}return _defineProperty2({},root2,__spreadValues(__spreadValues({},css4),excludedVariables));}if(rule&&rule!=="media"){return"".concat(root2,", ").concat(rule.replace("%s",String(colorScheme)));}}else if(colorScheme){if(rule==="media"){return _defineProperty2({},"@media (prefers-color-scheme: ".concat(String(colorScheme),")"),_defineProperty2({},root2,css4));}if(rule){return rule.replace("%s",String(colorScheme));}}return root2;};};function assignNode(obj,keys2){keys2.forEach(function(k){if(!obj[k]){obj[k]={};}});}function setColor(obj,key,defaultValue){if(!obj[key]&&defaultValue){obj[key]=defaultValue;}}function toRgb(color2){if(typeof color2!=="string"||!color2.startsWith("hsl")){return color2;}return hslToRgb(color2);}function setColorChannel(obj,key){if(!("".concat(key,"Channel")in obj)){obj["".concat(key,"Channel")]=private_safeColorChannel(toRgb(obj[key]),"MUI: Can't create `palette.".concat(key,"Channel` because `palette.").concat(key,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the `palette.").concat(key,"Channel` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token."));}}function getSpacingVal(spacingInput){if(typeof spacingInput==="number"){return"".concat(spacingInput,"px");}if(typeof spacingInput==="string"||typeof spacingInput==="function"||Array.isArray(spacingInput)){return spacingInput;}return"8px";}var silent=function silent(fn3){try{return fn3();}catch(error2){}return void 0;};var createGetCssVar=function createGetCssVar(){var cssVarPrefix=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"mui";return createGetCssVar$1(cssVarPrefix);};function attachColorScheme$1(colorSchemes,scheme,restTheme,colorScheme){if(!scheme){return void 0;}scheme=scheme===true?{}:scheme;var mode=colorScheme==="dark"?"dark":"light";if(!restTheme){colorSchemes[colorScheme]=createColorScheme(__spreadProps(__spreadValues({},scheme),{palette:__spreadValues({mode:mode},scheme==null?void 0:scheme.palette)}));return void 0;}var _a=createThemeNoVars(__spreadProps(__spreadValues({},restTheme),{palette:__spreadValues({mode:mode},scheme==null?void 0:scheme.palette)})),palette=_a.palette,muiTheme=__objRest(_a,["palette"]);colorSchemes[colorScheme]=__spreadProps(__spreadValues({},scheme),{palette:palette,opacity:__spreadValues(__spreadValues({},getOpacity(mode)),scheme==null?void 0:scheme.opacity),overlays:(scheme==null?void 0:scheme.overlays)||getOverlays(mode)});return muiTheme;}function createThemeWithVars(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _a=options,_a$colorSchemes2=_a.colorSchemes,colorSchemesInput=_a$colorSchemes2===void 0?{light:true}:_a$colorSchemes2,defaultColorSchemeInput=_a.defaultColorScheme,_a$disableCssColorSch=_a.disableCssColorScheme,disableCssColorScheme=_a$disableCssColorSch===void 0?false:_a$disableCssColorSch,_a$cssVarPrefix=_a.cssVarPrefix,cssVarPrefix=_a$cssVarPrefix===void 0?"mui":_a$cssVarPrefix,_a$shouldSkipGenerati=_a.shouldSkipGeneratingVar,shouldSkipGeneratingVar$1=_a$shouldSkipGenerati===void 0?shouldSkipGeneratingVar:_a$shouldSkipGenerati,_a$colorSchemeSelecto=_a.colorSchemeSelector,selector=_a$colorSchemeSelecto===void 0?colorSchemesInput.light&&colorSchemesInput.dark?"media":void 0:_a$colorSchemeSelecto,_a$rootSelector=_a.rootSelector,rootSelector=_a$rootSelector===void 0?":root":_a$rootSelector,input=__objRest(_a,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]);var firstColorScheme=Object.keys(colorSchemesInput)[0];var defaultColorScheme=defaultColorSchemeInput||(colorSchemesInput.light&&firstColorScheme!=="light"?"light":firstColorScheme);var getCssVar=createGetCssVar(cssVarPrefix);var _b=colorSchemesInput,defaultSchemeInput=_b[defaultColorScheme],builtInLight=_b.light,builtInDark=_b.dark,customColorSchemes=__objRest(_b,[__restKey(defaultColorScheme),"light","dark"]);var colorSchemes=__spreadValues({},customColorSchemes);var defaultScheme=defaultSchemeInput;if(defaultColorScheme==="dark"&&!("dark"in colorSchemesInput)||defaultColorScheme==="light"&&!("light"in colorSchemesInput)){defaultScheme=true;}if(!defaultScheme){throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `colorSchemes.".concat(defaultColorScheme,"` option is either missing or invalid."):formatMuiErrorMessage(21,defaultColorScheme));}var muiTheme=attachColorScheme$1(colorSchemes,defaultScheme,input,defaultColorScheme);if(builtInLight&&!colorSchemes.light){attachColorScheme$1(colorSchemes,builtInLight,void 0,"light");}if(builtInDark&&!colorSchemes.dark){attachColorScheme$1(colorSchemes,builtInDark,void 0,"dark");}var theme=__spreadProps(__spreadValues({defaultColorScheme:defaultColorScheme},muiTheme),{cssVarPrefix:cssVarPrefix,colorSchemeSelector:selector,rootSelector:rootSelector,getCssVar:getCssVar,colorSchemes:colorSchemes,font:__spreadValues(__spreadValues({},prepareTypographyVars(muiTheme.typography)),muiTheme.font),spacing:getSpacingVal(input.spacing)});Object.keys(theme.colorSchemes).forEach(function(key){var palette=theme.colorSchemes[key].palette;var setCssVarColor=function setCssVarColor(cssVar){var tokens=cssVar.split("-");var color2=tokens[1];var colorToken=tokens[2];return getCssVar(cssVar,palette[color2][colorToken]);};if(palette.mode==="light"){setColor(palette.common,"background","#fff");setColor(palette.common,"onBackground","#000");}if(palette.mode==="dark"){setColor(palette.common,"background","#000");setColor(palette.common,"onBackground","#fff");}assignNode(palette,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]);if(palette.mode==="light"){setColor(palette.Alert,"errorColor",private_safeDarken(palette.error.light,0.6));setColor(palette.Alert,"infoColor",private_safeDarken(palette.info.light,0.6));setColor(palette.Alert,"successColor",private_safeDarken(palette.success.light,0.6));setColor(palette.Alert,"warningColor",private_safeDarken(palette.warning.light,0.6));setColor(palette.Alert,"errorFilledBg",setCssVarColor("palette-error-main"));setColor(palette.Alert,"infoFilledBg",setCssVarColor("palette-info-main"));setColor(palette.Alert,"successFilledBg",setCssVarColor("palette-success-main"));setColor(palette.Alert,"warningFilledBg",setCssVarColor("palette-warning-main"));setColor(palette.Alert,"errorFilledColor",silent(function(){return palette.getContrastText(palette.error.main);}));setColor(palette.Alert,"infoFilledColor",silent(function(){return palette.getContrastText(palette.info.main);}));setColor(palette.Alert,"successFilledColor",silent(function(){return palette.getContrastText(palette.success.main);}));setColor(palette.Alert,"warningFilledColor",silent(function(){return palette.getContrastText(palette.warning.main);}));setColor(palette.Alert,"errorStandardBg",private_safeLighten(palette.error.light,0.9));setColor(palette.Alert,"infoStandardBg",private_safeLighten(palette.info.light,0.9));setColor(palette.Alert,"successStandardBg",private_safeLighten(palette.success.light,0.9));setColor(palette.Alert,"warningStandardBg",private_safeLighten(palette.warning.light,0.9));setColor(palette.Alert,"errorIconColor",setCssVarColor("palette-error-main"));setColor(palette.Alert,"infoIconColor",setCssVarColor("palette-info-main"));setColor(palette.Alert,"successIconColor",setCssVarColor("palette-success-main"));setColor(palette.Alert,"warningIconColor",setCssVarColor("palette-warning-main"));setColor(palette.AppBar,"defaultBg",setCssVarColor("palette-grey-100"));setColor(palette.Avatar,"defaultBg",setCssVarColor("palette-grey-400"));setColor(palette.Button,"inheritContainedBg",setCssVarColor("palette-grey-300"));setColor(palette.Button,"inheritContainedHoverBg",setCssVarColor("palette-grey-A100"));setColor(palette.Chip,"defaultBorder",setCssVarColor("palette-grey-400"));setColor(palette.Chip,"defaultAvatarColor",setCssVarColor("palette-grey-700"));setColor(palette.Chip,"defaultIconColor",setCssVarColor("palette-grey-700"));setColor(palette.FilledInput,"bg","rgba(0, 0, 0, 0.06)");setColor(palette.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)");setColor(palette.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)");setColor(palette.LinearProgress,"primaryBg",private_safeLighten(palette.primary.main,0.62));setColor(palette.LinearProgress,"secondaryBg",private_safeLighten(palette.secondary.main,0.62));setColor(palette.LinearProgress,"errorBg",private_safeLighten(palette.error.main,0.62));setColor(palette.LinearProgress,"infoBg",private_safeLighten(palette.info.main,0.62));setColor(palette.LinearProgress,"successBg",private_safeLighten(palette.success.main,0.62));setColor(palette.LinearProgress,"warningBg",private_safeLighten(palette.warning.main,0.62));setColor(palette.Skeleton,"bg","rgba(".concat(setCssVarColor("palette-text-primaryChannel")," / 0.11)"));setColor(palette.Slider,"primaryTrack",private_safeLighten(palette.primary.main,0.62));setColor(palette.Slider,"secondaryTrack",private_safeLighten(palette.secondary.main,0.62));setColor(palette.Slider,"errorTrack",private_safeLighten(palette.error.main,0.62));setColor(palette.Slider,"infoTrack",private_safeLighten(palette.info.main,0.62));setColor(palette.Slider,"successTrack",private_safeLighten(palette.success.main,0.62));setColor(palette.Slider,"warningTrack",private_safeLighten(palette.warning.main,0.62));var snackbarContentBackground=private_safeEmphasize(palette.background.default,0.8);setColor(palette.SnackbarContent,"bg",snackbarContentBackground);setColor(palette.SnackbarContent,"color",silent(function(){return palette.getContrastText(snackbarContentBackground);}));setColor(palette.SpeedDialAction,"fabHoverBg",private_safeEmphasize(palette.background.paper,0.15));setColor(palette.StepConnector,"border",setCssVarColor("palette-grey-400"));setColor(palette.StepContent,"border",setCssVarColor("palette-grey-400"));setColor(palette.Switch,"defaultColor",setCssVarColor("palette-common-white"));setColor(palette.Switch,"defaultDisabledColor",setCssVarColor("palette-grey-100"));setColor(palette.Switch,"primaryDisabledColor",private_safeLighten(palette.primary.main,0.62));setColor(palette.Switch,"secondaryDisabledColor",private_safeLighten(palette.secondary.main,0.62));setColor(palette.Switch,"errorDisabledColor",private_safeLighten(palette.error.main,0.62));setColor(palette.Switch,"infoDisabledColor",private_safeLighten(palette.info.main,0.62));setColor(palette.Switch,"successDisabledColor",private_safeLighten(palette.success.main,0.62));setColor(palette.Switch,"warningDisabledColor",private_safeLighten(palette.warning.main,0.62));setColor(palette.TableCell,"border",private_safeLighten(private_safeAlpha(palette.divider,1),0.88));setColor(palette.Tooltip,"bg",private_safeAlpha(palette.grey[700],0.92));}if(palette.mode==="dark"){setColor(palette.Alert,"errorColor",private_safeLighten(palette.error.light,0.6));setColor(palette.Alert,"infoColor",private_safeLighten(palette.info.light,0.6));setColor(palette.Alert,"successColor",private_safeLighten(palette.success.light,0.6));setColor(palette.Alert,"warningColor",private_safeLighten(palette.warning.light,0.6));setColor(palette.Alert,"errorFilledBg",setCssVarColor("palette-error-dark"));setColor(palette.Alert,"infoFilledBg",setCssVarColor("palette-info-dark"));setColor(palette.Alert,"successFilledBg",setCssVarColor("palette-success-dark"));setColor(palette.Alert,"warningFilledBg",setCssVarColor("palette-warning-dark"));setColor(palette.Alert,"errorFilledColor",silent(function(){return palette.getContrastText(palette.error.dark);}));setColor(palette.Alert,"infoFilledColor",silent(function(){return palette.getContrastText(palette.info.dark);}));setColor(palette.Alert,"successFilledColor",silent(function(){return palette.getContrastText(palette.success.dark);}));setColor(palette.Alert,"warningFilledColor",silent(function(){return palette.getContrastText(palette.warning.dark);}));setColor(palette.Alert,"errorStandardBg",private_safeDarken(palette.error.light,0.9));setColor(palette.Alert,"infoStandardBg",private_safeDarken(palette.info.light,0.9));setColor(palette.Alert,"successStandardBg",private_safeDarken(palette.success.light,0.9));setColor(palette.Alert,"warningStandardBg",private_safeDarken(palette.warning.light,0.9));setColor(palette.Alert,"errorIconColor",setCssVarColor("palette-error-main"));setColor(palette.Alert,"infoIconColor",setCssVarColor("palette-info-main"));setColor(palette.Alert,"successIconColor",setCssVarColor("palette-success-main"));setColor(palette.Alert,"warningIconColor",setCssVarColor("palette-warning-main"));setColor(palette.AppBar,"defaultBg",setCssVarColor("palette-grey-900"));setColor(palette.AppBar,"darkBg",setCssVarColor("palette-background-paper"));setColor(palette.AppBar,"darkColor",setCssVarColor("palette-text-primary"));setColor(palette.Avatar,"defaultBg",setCssVarColor("palette-grey-600"));setColor(palette.Button,"inheritContainedBg",setCssVarColor("palette-grey-800"));setColor(palette.Button,"inheritContainedHoverBg",setCssVarColor("palette-grey-700"));setColor(palette.Chip,"defaultBorder",setCssVarColor("palette-grey-700"));setColor(palette.Chip,"defaultAvatarColor",setCssVarColor("palette-grey-300"));setColor(palette.Chip,"defaultIconColor",setCssVarColor("palette-grey-300"));setColor(palette.FilledInput,"bg","rgba(255, 255, 255, 0.09)");setColor(palette.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)");setColor(palette.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)");setColor(palette.LinearProgress,"primaryBg",private_safeDarken(palette.primary.main,0.5));setColor(palette.LinearProgress,"secondaryBg",private_safeDarken(palette.secondary.main,0.5));setColor(palette.LinearProgress,"errorBg",private_safeDarken(palette.error.main,0.5));setColor(palette.LinearProgress,"infoBg",private_safeDarken(palette.info.main,0.5));setColor(palette.LinearProgress,"successBg",private_safeDarken(palette.success.main,0.5));setColor(palette.LinearProgress,"warningBg",private_safeDarken(palette.warning.main,0.5));setColor(palette.Skeleton,"bg","rgba(".concat(setCssVarColor("palette-text-primaryChannel")," / 0.13)"));setColor(palette.Slider,"primaryTrack",private_safeDarken(palette.primary.main,0.5));setColor(palette.Slider,"secondaryTrack",private_safeDarken(palette.secondary.main,0.5));setColor(palette.Slider,"errorTrack",private_safeDarken(palette.error.main,0.5));setColor(palette.Slider,"infoTrack",private_safeDarken(palette.info.main,0.5));setColor(palette.Slider,"successTrack",private_safeDarken(palette.success.main,0.5));setColor(palette.Slider,"warningTrack",private_safeDarken(palette.warning.main,0.5));var _snackbarContentBackground=private_safeEmphasize(palette.background.default,0.98);setColor(palette.SnackbarContent,"bg",_snackbarContentBackground);setColor(palette.SnackbarContent,"color",silent(function(){return palette.getContrastText(_snackbarContentBackground);}));setColor(palette.SpeedDialAction,"fabHoverBg",private_safeEmphasize(palette.background.paper,0.15));setColor(palette.StepConnector,"border",setCssVarColor("palette-grey-600"));setColor(palette.StepContent,"border",setCssVarColor("palette-grey-600"));setColor(palette.Switch,"defaultColor",setCssVarColor("palette-grey-300"));setColor(palette.Switch,"defaultDisabledColor",setCssVarColor("palette-grey-600"));setColor(palette.Switch,"primaryDisabledColor",private_safeDarken(palette.primary.main,0.55));setColor(palette.Switch,"secondaryDisabledColor",private_safeDarken(palette.secondary.main,0.55));setColor(palette.Switch,"errorDisabledColor",private_safeDarken(palette.error.main,0.55));setColor(palette.Switch,"infoDisabledColor",private_safeDarken(palette.info.main,0.55));setColor(palette.Switch,"successDisabledColor",private_safeDarken(palette.success.main,0.55));setColor(palette.Switch,"warningDisabledColor",private_safeDarken(palette.warning.main,0.55));setColor(palette.TableCell,"border",private_safeDarken(private_safeAlpha(palette.divider,1),0.68));setColor(palette.Tooltip,"bg",private_safeAlpha(palette.grey[700],0.92));}setColorChannel(palette.background,"default");setColorChannel(palette.background,"paper");setColorChannel(palette.common,"background");setColorChannel(palette.common,"onBackground");setColorChannel(palette,"divider");Object.keys(palette).forEach(function(color2){var colors2=palette[color2];if(color2!=="tonalOffset"&&colors2&&_typeof2(colors2)==="object"){if(colors2.main){setColor(palette[color2],"mainChannel",private_safeColorChannel(toRgb(colors2.main)));}if(colors2.light){setColor(palette[color2],"lightChannel",private_safeColorChannel(toRgb(colors2.light)));}if(colors2.dark){setColor(palette[color2],"darkChannel",private_safeColorChannel(toRgb(colors2.dark)));}if(colors2.contrastText){setColor(palette[color2],"contrastTextChannel",private_safeColorChannel(toRgb(colors2.contrastText)));}if(color2==="text"){setColorChannel(palette[color2],"primary");setColorChannel(palette[color2],"secondary");}if(color2==="action"){if(colors2.active){setColorChannel(palette[color2],"active");}if(colors2.selected){setColorChannel(palette[color2],"selected");}}}});});for(var _len18=arguments.length,args=new Array(_len18>1?_len18-1:0),_key18=1;_key18<_len18;_key18++){args[_key18-1]=arguments[_key18];}theme=args.reduce(function(acc,argument){return deepmerge(acc,argument);},theme);var parserConfig={prefix:cssVarPrefix,disableCssColorScheme:disableCssColorScheme,shouldSkipGeneratingVar:shouldSkipGeneratingVar$1,getSelector:defaultGetSelector(theme)};var _prepareCssVars=prepareCssVars(theme,parserConfig),vars=_prepareCssVars.vars,generateThemeVars=_prepareCssVars.generateThemeVars,generateStyleSheets=_prepareCssVars.generateStyleSheets;theme.vars=vars;Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(function(_ref37){var _ref38=_slicedToArray2(_ref37,2),key=_ref38[0],value=_ref38[1];theme[key]=value;});theme.generateThemeVars=generateThemeVars;theme.generateStyleSheets=generateStyleSheets;theme.generateSpacing=function generateSpacing(){return createSpacing(input.spacing,createUnarySpacing(this));};theme.getColorSchemeSelector=createGetColorSchemeSelector(selector);theme.spacing=theme.generateSpacing();theme.shouldSkipGeneratingVar=shouldSkipGeneratingVar$1;theme.unstable_sxConfig=__spreadValues(__spreadValues({},defaultSxConfig),input==null?void 0:input.unstable_sxConfig);theme.unstable_sx=function sx(props){return styleFunctionSx({sx:props,theme:this});};theme.toRuntimeSource=stringifyTheme;return theme;}function attachColorScheme(theme,scheme,colorScheme){if(!theme.colorSchemes){return void 0;}if(colorScheme){theme.colorSchemes[scheme]=__spreadProps(__spreadValues({},colorScheme!==true&&colorScheme),{palette:createPalette(__spreadProps(__spreadValues({},colorScheme===true?{}:colorScheme.palette),{mode:scheme}))// cast type to skip module augmentation test
|
|
205
205
|
});}}function createTheme(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _a=options,palette=_a.palette,_a$cssVariables=_a.cssVariables,cssVariables=_a$cssVariables===void 0?false:_a$cssVariables,_a$colorSchemes3=_a.colorSchemes,initialColorSchemes=_a$colorSchemes3===void 0?!palette?{light:true}:void 0:_a$colorSchemes3,_a$defaultColorScheme2=_a.defaultColorScheme,initialDefaultColorScheme=_a$defaultColorScheme2===void 0?palette==null?void 0:palette.mode:_a$defaultColorScheme2,rest=__objRest(_a,["palette","cssVariables","colorSchemes","defaultColorScheme"]);var defaultColorSchemeInput=initialDefaultColorScheme||"light";var defaultScheme=initialColorSchemes==null?void 0:initialColorSchemes[defaultColorSchemeInput];var colorSchemesInput=__spreadValues(__spreadValues({},initialColorSchemes),palette?_defineProperty2({},defaultColorSchemeInput,__spreadProps(__spreadValues({},typeof defaultScheme!=="boolean"&&defaultScheme),{palette:palette})):void 0);for(var _len19=arguments.length,args=new Array(_len19>1?_len19-1:0),_key19=1;_key19<_len19;_key19++){args[_key19-1]=arguments[_key19];}if(cssVariables===false){if(!("colorSchemes"in options)){return createThemeNoVars.apply(void 0,[options].concat(args));}var paletteOptions=palette;if(!("palette"in options)){if(colorSchemesInput[defaultColorSchemeInput]){if(colorSchemesInput[defaultColorSchemeInput]!==true){paletteOptions=colorSchemesInput[defaultColorSchemeInput].palette;}else if(defaultColorSchemeInput==="dark"){paletteOptions={mode:"dark"};}}}var theme=createThemeNoVars.apply(void 0,[__spreadProps(__spreadValues({},options),{palette:paletteOptions})].concat(args));theme.defaultColorScheme=defaultColorSchemeInput;theme.colorSchemes=colorSchemesInput;if(theme.palette.mode==="light"){theme.colorSchemes.light=__spreadProps(__spreadValues({},colorSchemesInput.light!==true&&colorSchemesInput.light),{palette:theme.palette});attachColorScheme(theme,"dark",colorSchemesInput.dark);}if(theme.palette.mode==="dark"){theme.colorSchemes.dark=__spreadProps(__spreadValues({},colorSchemesInput.dark!==true&&colorSchemesInput.dark),{palette:theme.palette});attachColorScheme(theme,"light",colorSchemesInput.light);}return theme;}if(!palette&&!("light"in colorSchemesInput)&&defaultColorSchemeInput==="light"){colorSchemesInput.light=true;}return createThemeWithVars.apply(void 0,[__spreadValues(__spreadProps(__spreadValues({},rest),{colorSchemes:colorSchemesInput,defaultColorScheme:defaultColorSchemeInput}),typeof cssVariables!=="boolean"&&cssVariables)].concat(args));}var defaultTheme$1=createTheme();function useTheme(){var theme=useTheme$1(defaultTheme$1);if(process.env.NODE_ENV!=="production"){React.useDebugValue(theme);}return theme[THEME_ID]||theme;}function useThemeProps(_ref40){var props=_ref40.props,name=_ref40.name;return useThemeProps$1({props:props,name:name,defaultTheme:defaultTheme$1,themeId:THEME_ID});}function slotShouldForwardProp(prop){return prop!=="ownerState"&&prop!=="theme"&&prop!=="sx"&&prop!=="as";}var rootShouldForwardProp=function rootShouldForwardProp(prop){return slotShouldForwardProp(prop)&&prop!=="classes";};var styled=createStyled$1({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp:rootShouldForwardProp});function GlobalStyles(props){return/* @__PURE__ */jsx$1(GlobalStyles$1,__spreadProps(__spreadValues({},props),{defaultTheme:defaultTheme$1,themeId:THEME_ID}));}process.env.NODE_ENV!=="production"?GlobalStyles.propTypes={// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
206
206
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
207
207
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -834,7 +834,7 @@ font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}}].concat(_toConsuma
|
|
|
834
834
|
* body2: 'p',
|
|
835
835
|
* inherit: 'p',
|
|
836
836
|
* }
|
|
837
|
-
*/variantMapping:PropTypes.object}:void 0;var top$1="top";var bottom$1="bottom";var right$1="right";var left$1="left";var auto$1="auto";var basePlacements$1=[top$1,bottom$1,right$1,left$1];var start$1="start";var end$1="end";var clippingParents$1="clippingParents";var viewport$1="viewport";var popper$1="popper";var reference$1="reference";var variationPlacements$1=/* @__PURE__ */basePlacements$1.reduce(function(acc,placement){return acc.concat([placement+"-"+start$1,placement+"-"+end$1]);},[]);var placements$1=/* @__PURE__ */[].concat(basePlacements$1,[auto$1]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start$1,placement+"-"+end$1]);},[]);var beforeRead$1="beforeRead";var read$1="read";var afterRead$1="afterRead";var beforeMain$1="beforeMain";var main$1="main";var afterMain$1="afterMain";var beforeWrite$1="beforeWrite";var write$1="write";var afterWrite$1="afterWrite";var modifierPhases$1=[beforeRead$1,read$1,afterRead$1,beforeMain$1,main$1,afterMain$1,beforeWrite$1,write$1,afterWrite$1];function getNodeName$2(element){return element?(element.nodeName||"").toLowerCase():null;}function getWindow$2(node2){if(node2==null){return window;}if(node2.toString()!=="[object Window]"){var ownerDocument2=node2.ownerDocument;return ownerDocument2?ownerDocument2.defaultView||window:window;}return node2;}function isElement$2(node2){var OwnElement=getWindow$2(node2).Element;return node2 instanceof OwnElement||node2 instanceof Element;}function isHTMLElement$3(node2){var OwnElement=getWindow$2(node2).HTMLElement;return node2 instanceof OwnElement||node2 instanceof HTMLElement;}function isShadowRoot$2(node2){if(typeof ShadowRoot==="undefined"){return false;}var OwnElement=getWindow$2(node2).ShadowRoot;return node2 instanceof OwnElement||node2 instanceof ShadowRoot;}function applyStyles$2(_ref3){var state=_ref3.state;Object.keys(state.elements).forEach(function(name){var style2=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement$3(element)||!getNodeName$2(element)){return;}Object.assign(element.style,style2);Object.keys(attributes).forEach(function(name2){var value=attributes[name2];if(value===false){element.removeAttribute(name2);}else{element.setAttribute(name2,value===true?"":value);}});});}function effect$5(_ref22){var state=_ref22.state;var initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow);}return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style2=styleProperties.reduce(function(style3,
|
|
837
|
+
*/variantMapping:PropTypes.object}:void 0;var top$1="top";var bottom$1="bottom";var right$1="right";var left$1="left";var auto$1="auto";var basePlacements$1=[top$1,bottom$1,right$1,left$1];var start$1="start";var end$1="end";var clippingParents$1="clippingParents";var viewport$1="viewport";var popper$1="popper";var reference$1="reference";var variationPlacements$1=/* @__PURE__ */basePlacements$1.reduce(function(acc,placement){return acc.concat([placement+"-"+start$1,placement+"-"+end$1]);},[]);var placements$1=/* @__PURE__ */[].concat(basePlacements$1,[auto$1]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start$1,placement+"-"+end$1]);},[]);var beforeRead$1="beforeRead";var read$1="read";var afterRead$1="afterRead";var beforeMain$1="beforeMain";var main$1="main";var afterMain$1="afterMain";var beforeWrite$1="beforeWrite";var write$1="write";var afterWrite$1="afterWrite";var modifierPhases$1=[beforeRead$1,read$1,afterRead$1,beforeMain$1,main$1,afterMain$1,beforeWrite$1,write$1,afterWrite$1];function getNodeName$2(element){return element?(element.nodeName||"").toLowerCase():null;}function getWindow$2(node2){if(node2==null){return window;}if(node2.toString()!=="[object Window]"){var ownerDocument2=node2.ownerDocument;return ownerDocument2?ownerDocument2.defaultView||window:window;}return node2;}function isElement$2(node2){var OwnElement=getWindow$2(node2).Element;return node2 instanceof OwnElement||node2 instanceof Element;}function isHTMLElement$3(node2){var OwnElement=getWindow$2(node2).HTMLElement;return node2 instanceof OwnElement||node2 instanceof HTMLElement;}function isShadowRoot$2(node2){if(typeof ShadowRoot==="undefined"){return false;}var OwnElement=getWindow$2(node2).ShadowRoot;return node2 instanceof OwnElement||node2 instanceof ShadowRoot;}function applyStyles$2(_ref3){var state=_ref3.state;Object.keys(state.elements).forEach(function(name){var style2=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement$3(element)||!getNodeName$2(element)){return;}Object.assign(element.style,style2);Object.keys(attributes).forEach(function(name2){var value=attributes[name2];if(value===false){element.removeAttribute(name2);}else{element.setAttribute(name2,value===true?"":value);}});});}function effect$5(_ref22){var state=_ref22.state;var initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow);}return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style2=styleProperties.reduce(function(style3,property2){style3[property2]="";return style3;},{});if(!isHTMLElement$3(element)||!getNodeName$2(element)){return;}Object.assign(element.style,style2);Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);});});};}var applyStyles$3={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles$2,effect:effect$5,requires:["computeStyles"]};function getBasePlacement$1(placement){return placement.split("-")[0];}var max$3=Math.max;var min$3=Math.min;var round$4=Math.round;function getUAString$1(){var uaData=navigator.userAgentData;if(uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)){return uaData.brands.map(function(item2){return item2.brand+"/"+item2.version;}).join(" ");}return navigator.userAgent;}function isLayoutViewport$1(){return!/^((?!chrome|android).)*safari/i.test(getUAString$1());}function getBoundingClientRect$2(element,includeScale,isFixedStrategy){if(includeScale===void 0){includeScale=false;}if(isFixedStrategy===void 0){isFixedStrategy=false;}var clientRect=element.getBoundingClientRect();var scaleX=1;var scaleY=1;if(includeScale&&isHTMLElement$3(element)){scaleX=element.offsetWidth>0?round$4(clientRect.width)/element.offsetWidth||1:1;scaleY=element.offsetHeight>0?round$4(clientRect.height)/element.offsetHeight||1:1;}var _ref3=isElement$2(element)?getWindow$2(element):window,visualViewport=_ref3.visualViewport;var addVisualOffsets=!isLayoutViewport$1()&&isFixedStrategy;var x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX;var y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY;var width2=clientRect.width/scaleX;var height2=clientRect.height/scaleY;return{width:width2,height:height2,top:y,right:x+width2,bottom:y+height2,left:x,x:x,y:y};}function getLayoutRect$1(element){var clientRect=getBoundingClientRect$2(element);var width2=element.offsetWidth;var height2=element.offsetHeight;if(Math.abs(clientRect.width-width2)<=1){width2=clientRect.width;}if(Math.abs(clientRect.height-height2)<=1){height2=clientRect.height;}return{x:element.offsetLeft,y:element.offsetTop,width:width2,height:height2};}function contains$1(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true;}else if(rootNode&&isShadowRoot$2(rootNode)){var next2=child;do{if(next2&&parent.isSameNode(next2)){return true;}next2=next2.parentNode||next2.host;}while(next2);}return false;}function getComputedStyle$3(element){return getWindow$2(element).getComputedStyle(element);}function isTableElement$2(element){return["table","td","th"].indexOf(getNodeName$2(element))>=0;}function getDocumentElement$2(element){return((isElement$2(element)?element.ownerDocument:// $FlowFixMe[prop-missing]
|
|
838
838
|
element.document)||window.document).documentElement;}function getParentNode$2(element){if(getNodeName$2(element)==="html"){return element;}return(// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
839
839
|
// $FlowFixMe[incompatible-return]
|
|
840
840
|
// $FlowFixMe[prop-missing]
|
|
@@ -843,11 +843,11 @@ element.parentNode||(// DOM Element detected
|
|
|
843
843
|
isShadowRoot$2(element)?element.host:null)||// ShadowRoot detected
|
|
844
844
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
845
845
|
getDocumentElement$2(element));}function getTrueOffsetParent$2(element){if(!isHTMLElement$3(element)||// https://github.com/popperjs/popper-core/issues/837
|
|
846
|
-
getComputedStyle$3(element).position==="fixed"){return null;}return element.offsetParent;}function getContainingBlock$2(element){var isFirefox=/firefox/i.test(getUAString$1());var isIE=/Trident/i.test(getUAString$1());if(isIE&&isHTMLElement$3(element)){var elementCss=getComputedStyle$3(element);if(elementCss.position==="fixed"){return null;}}var currentNode=getParentNode$2(element);if(isShadowRoot$2(currentNode)){currentNode=currentNode.host;}while(isHTMLElement$3(currentNode)&&["html","body"].indexOf(getNodeName$2(currentNode))<0){var css4=getComputedStyle$3(currentNode);if(css4.transform!=="none"||css4.perspective!=="none"||css4.contain==="paint"||["transform","perspective"].indexOf(css4.willChange)!==-1||isFirefox&&css4.willChange==="filter"||isFirefox&&css4.filter&&css4.filter!=="none"){return currentNode;}else{currentNode=currentNode.parentNode;}}return null;}function getOffsetParent$2(element){var window2=getWindow$2(element);var offsetParent=getTrueOffsetParent$2(element);while(offsetParent&&isTableElement$2(offsetParent)&&getComputedStyle$3(offsetParent).position==="static"){offsetParent=getTrueOffsetParent$2(offsetParent);}if(offsetParent&&(getNodeName$2(offsetParent)==="html"||getNodeName$2(offsetParent)==="body"&&getComputedStyle$3(offsetParent).position==="static")){return window2;}return offsetParent||getContainingBlock$2(element)||window2;}function getMainAxisFromPlacement$1(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y";}function within$1(min2,value,max2){return max$3(min2,min$3(value,max2));}function withinMaxClamp$1(min2,value,max2){var v=within$1(min2,value,max2);return v>max2?max2:v;}function getFreshSideObject$1(){return{top:0,right:0,bottom:0,left:0};}function mergePaddingObject$1(paddingObject){return Object.assign({},getFreshSideObject$1(),paddingObject);}function expandToHashMap$1(value,
|
|
846
|
+
getComputedStyle$3(element).position==="fixed"){return null;}return element.offsetParent;}function getContainingBlock$2(element){var isFirefox=/firefox/i.test(getUAString$1());var isIE=/Trident/i.test(getUAString$1());if(isIE&&isHTMLElement$3(element)){var elementCss=getComputedStyle$3(element);if(elementCss.position==="fixed"){return null;}}var currentNode=getParentNode$2(element);if(isShadowRoot$2(currentNode)){currentNode=currentNode.host;}while(isHTMLElement$3(currentNode)&&["html","body"].indexOf(getNodeName$2(currentNode))<0){var css4=getComputedStyle$3(currentNode);if(css4.transform!=="none"||css4.perspective!=="none"||css4.contain==="paint"||["transform","perspective"].indexOf(css4.willChange)!==-1||isFirefox&&css4.willChange==="filter"||isFirefox&&css4.filter&&css4.filter!=="none"){return currentNode;}else{currentNode=currentNode.parentNode;}}return null;}function getOffsetParent$2(element){var window2=getWindow$2(element);var offsetParent=getTrueOffsetParent$2(element);while(offsetParent&&isTableElement$2(offsetParent)&&getComputedStyle$3(offsetParent).position==="static"){offsetParent=getTrueOffsetParent$2(offsetParent);}if(offsetParent&&(getNodeName$2(offsetParent)==="html"||getNodeName$2(offsetParent)==="body"&&getComputedStyle$3(offsetParent).position==="static")){return window2;}return offsetParent||getContainingBlock$2(element)||window2;}function getMainAxisFromPlacement$1(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y";}function within$1(min2,value,max2){return max$3(min2,min$3(value,max2));}function withinMaxClamp$1(min2,value,max2){var v=within$1(min2,value,max2);return v>max2?max2:v;}function getFreshSideObject$1(){return{top:0,right:0,bottom:0,left:0};}function mergePaddingObject$1(paddingObject){return Object.assign({},getFreshSideObject$1(),paddingObject);}function expandToHashMap$1(value,keys2){return keys2.reduce(function(hashMap,key){hashMap[key]=value;return hashMap;},{});}var toPaddingObject$1=function toPaddingObject(padding2,state){padding2=typeof padding2==="function"?padding2(Object.assign({},state.rects,{placement:state.placement})):padding2;return mergePaddingObject$1(typeof padding2!=="number"?padding2:expandToHashMap$1(padding2,basePlacements$1));};function arrow$5(_ref3){var _state$modifiersData$;var state=_ref3.state,name=_ref3.name,options=_ref3.options;var arrowElement=state.elements.arrow;var popperOffsets2=state.modifiersData.popperOffsets;var basePlacement=getBasePlacement$1(state.placement);var axis=getMainAxisFromPlacement$1(basePlacement);var isVertical=[left$1,right$1].indexOf(basePlacement)>=0;var len=isVertical?"height":"width";if(!arrowElement||!popperOffsets2){return;}var paddingObject=toPaddingObject$1(options.padding,state);var arrowRect=getLayoutRect$1(arrowElement);var minProp=axis==="y"?top$1:left$1;var maxProp=axis==="y"?bottom$1:right$1;var endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len];var startDiff=popperOffsets2[axis]-state.rects.reference[axis];var arrowOffsetParent=getOffsetParent$2(arrowElement);var clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0;var centerToReference=endDiff/2-startDiff/2;var min2=paddingObject[minProp];var max2=clientSize-arrowRect[len]-paddingObject[maxProp];var center=clientSize/2-arrowRect[len]/2+centerToReference;var offset2=within$1(min2,center,max2);var axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$);}function effect$4(_ref22){var state=_ref22.state,options=_ref22.options;var _options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;if(arrowElement==null){return;}if(typeof arrowElement==="string"){arrowElement=state.elements.popper.querySelector(arrowElement);if(!arrowElement){return;}}if(!contains$1(state.elements.popper,arrowElement)){return;}state.elements.arrow=arrowElement;}var arrow$6={name:"arrow",enabled:true,phase:"main",fn:arrow$5,effect:effect$4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation$1(placement){return placement.split("-")[1];}var unsetSides$1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR$1(_ref3,win){var x=_ref3.x,y=_ref3.y;var dpr=win.devicePixelRatio||1;return{x:round$4(x*dpr)/dpr||0,y:round$4(y*dpr)/dpr||0};}function mapToStyles$1(_ref22){var _Object$assign2;var popper2=_ref22.popper,popperRect=_ref22.popperRect,placement=_ref22.placement,variation=_ref22.variation,offsets=_ref22.offsets,position2=_ref22.position,gpuAcceleration=_ref22.gpuAcceleration,adaptive=_ref22.adaptive,roundOffsets=_ref22.roundOffsets,isFixed=_ref22.isFixed;var _offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y;var _ref3=typeof roundOffsets==="function"?roundOffsets({x:x,y:y}):{x:x,y:y};x=_ref3.x;y=_ref3.y;var hasX=offsets.hasOwnProperty("x");var hasY=offsets.hasOwnProperty("y");var sideX=left$1;var sideY=top$1;var win=window;if(adaptive){var offsetParent=getOffsetParent$2(popper2);var heightProp="clientHeight";var widthProp="clientWidth";if(offsetParent===getWindow$2(popper2)){offsetParent=getDocumentElement$2(popper2);if(getComputedStyle$3(offsetParent).position!=="static"&&position2==="absolute"){heightProp="scrollHeight";widthProp="scrollWidth";}}offsetParent=offsetParent;if(placement===top$1||(placement===left$1||placement===right$1)&&variation===end$1){sideY=bottom$1;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:// $FlowFixMe[prop-missing]
|
|
847
847
|
offsetParent[heightProp];y-=offsetY-popperRect.height;y*=gpuAcceleration?1:-1;}if(placement===left$1||(placement===top$1||placement===bottom$1)&&variation===end$1){sideX=right$1;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:// $FlowFixMe[prop-missing]
|
|
848
848
|
offsetParent[widthProp];x-=offsetX-popperRect.width;x*=gpuAcceleration?1:-1;}}var commonStyles=Object.assign({position:position2},adaptive&&unsetSides$1);var _ref4=roundOffsets===true?roundOffsetsByDPR$1({x:x,y:y},getWindow$2(popper2)):{x:x,y:y};x=_ref4.x;y=_ref4.y;if(gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign));}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2));}function computeStyles$2(_ref5){var state=_ref5.state,options=_ref5.options;var _options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?true:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?true:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?true:_options$roundOffsets;var commonStyles={placement:getBasePlacement$1(state.placement),variation:getVariation$1(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration:gpuAcceleration,isFixed:state.options.strategy==="fixed"};if(state.modifiersData.popperOffsets!=null){state.styles.popper=Object.assign({},state.styles.popper,mapToStyles$1(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive:adaptive,roundOffsets:roundOffsets})));}if(state.modifiersData.arrow!=null){state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles$1(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:roundOffsets})));}state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement});}var computeStyles$3={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles$2,data:{}};var passive$1={passive:true};function effect$3(_ref3){var state=_ref3.state,instance2=_ref3.instance,options=_ref3.options;var _options$scroll=options.scroll,scroll=_options$scroll===void 0?true:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?true:_options$resize;var window2=getWindow$2(state.elements.popper);var scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance2.update,passive$1);});}if(resize){window2.addEventListener("resize",instance2.update,passive$1);}return function(){if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance2.update,passive$1);});}if(resize){window2.removeEventListener("resize",instance2.update,passive$1);}};}var eventListeners$1={name:"eventListeners",enabled:true,phase:"write",fn:function fn(){},effect:effect$3,data:{}};var hash$4={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement$2(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash$4[matched];});}var hash$3={start:"end",end:"start"};function getOppositeVariationPlacement$1(placement){return placement.replace(/start|end/g,function(matched){return hash$3[matched];});}function getWindowScroll$1(node2){var win=getWindow$2(node2);var scrollLeft=win.pageXOffset;var scrollTop=win.pageYOffset;return{scrollLeft:scrollLeft,scrollTop:scrollTop};}function getWindowScrollBarX$2(element){return getBoundingClientRect$2(getDocumentElement$2(element)).left+getWindowScroll$1(element).scrollLeft;}function getViewportRect$2(element,strategy){var win=getWindow$2(element);var html=getDocumentElement$2(element);var visualViewport=win.visualViewport;var width2=html.clientWidth;var height2=html.clientHeight;var x=0;var y=0;if(visualViewport){width2=visualViewport.width;height2=visualViewport.height;var layoutViewport=isLayoutViewport$1();if(layoutViewport||!layoutViewport&&strategy==="fixed"){x=visualViewport.offsetLeft;y=visualViewport.offsetTop;}}return{width:width2,height:height2,x:x+getWindowScrollBarX$2(element),y:y};}function getDocumentRect$2(element){var _element$ownerDocumen;var html=getDocumentElement$2(element);var winScroll=getWindowScroll$1(element);var body2=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body;var width2=max$3(html.scrollWidth,html.clientWidth,body2?body2.scrollWidth:0,body2?body2.clientWidth:0);var height2=max$3(html.scrollHeight,html.clientHeight,body2?body2.scrollHeight:0,body2?body2.clientHeight:0);var x=-winScroll.scrollLeft+getWindowScrollBarX$2(element);var y=-winScroll.scrollTop;if(getComputedStyle$3(body2||html).direction==="rtl"){x+=max$3(html.clientWidth,body2?body2.clientWidth:0)-width2;}return{width:width2,height:height2,x:x,y:y};}function isScrollParent$1(element){var _getComputedStyle=getComputedStyle$3(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return /auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX);}function getScrollParent$2(node2){if(["html","body","#document"].indexOf(getNodeName$2(node2))>=0){return node2.ownerDocument.body;}if(isHTMLElement$3(node2)&&isScrollParent$1(node2)){return node2;}return getScrollParent$2(getParentNode$2(node2));}function listScrollParents$1(element,list2){var _element$ownerDocumen;if(list2===void 0){list2=[];}var scrollParent=getScrollParent$2(element);var isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body);var win=getWindow$2(scrollParent);var target=isBody?[win].concat(win.visualViewport||[],isScrollParent$1(scrollParent)?scrollParent:[]):scrollParent;var updatedList=list2.concat(target);return isBody?updatedList:// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
849
849
|
updatedList.concat(listScrollParents$1(getParentNode$2(target)));}function rectToClientRect$2(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height});}function getInnerBoundingClientRect$2(element,strategy){var rect=getBoundingClientRect$2(element,false,strategy==="fixed");rect.top=rect.top+element.clientTop;rect.left=rect.left+element.clientLeft;rect.bottom=rect.top+element.clientHeight;rect.right=rect.left+element.clientWidth;rect.width=element.clientWidth;rect.height=element.clientHeight;rect.x=rect.left;rect.y=rect.top;return rect;}function getClientRectFromMixedType$1(element,clippingParent,strategy){return clippingParent===viewport$1?rectToClientRect$2(getViewportRect$2(element,strategy)):isElement$2(clippingParent)?getInnerBoundingClientRect$2(clippingParent,strategy):rectToClientRect$2(getDocumentRect$2(getDocumentElement$2(element)));}function getClippingParents$1(element){var clippingParents2=listScrollParents$1(getParentNode$2(element));var canEscapeClipping=["absolute","fixed"].indexOf(getComputedStyle$3(element).position)>=0;var clipperElement=canEscapeClipping&&isHTMLElement$3(element)?getOffsetParent$2(element):element;if(!isElement$2(clipperElement)){return[];}return clippingParents2.filter(function(clippingParent){return isElement$2(clippingParent)&&contains$1(clippingParent,clipperElement)&&getNodeName$2(clippingParent)!=="body";});}function getClippingRect$2(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==="clippingParents"?getClippingParents$1(element):[].concat(boundary);var clippingParents2=[].concat(mainClippingParents,[rootBoundary]);var firstClippingParent=clippingParents2[0];var clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType$1(element,clippingParent,strategy);accRect.top=max$3(rect.top,accRect.top);accRect.right=min$3(rect.right,accRect.right);accRect.bottom=min$3(rect.bottom,accRect.bottom);accRect.left=max$3(rect.left,accRect.left);return accRect;},getClientRectFromMixedType$1(element,firstClippingParent,strategy));clippingRect.width=clippingRect.right-clippingRect.left;clippingRect.height=clippingRect.bottom-clippingRect.top;clippingRect.x=clippingRect.left;clippingRect.y=clippingRect.top;return clippingRect;}function computeOffsets$1(_ref3){var reference2=_ref3.reference,element=_ref3.element,placement=_ref3.placement;var basePlacement=placement?getBasePlacement$1(placement):null;var variation=placement?getVariation$1(placement):null;var commonX=reference2.x+reference2.width/2-element.width/2;var commonY=reference2.y+reference2.height/2-element.height/2;var offsets;switch(basePlacement){case top$1:offsets={x:commonX,y:reference2.y-element.height};break;case bottom$1:offsets={x:commonX,y:reference2.y+reference2.height};break;case right$1:offsets={x:reference2.x+reference2.width,y:commonY};break;case left$1:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y};}var mainAxis=basePlacement?getMainAxisFromPlacement$1(basePlacement):null;if(mainAxis!=null){var len=mainAxis==="y"?"height":"width";switch(variation){case start$1:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end$1:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;}}return offsets;}function detectOverflow$2(state,options){if(options===void 0){options={};}var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents$1:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport$1:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper$1:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?false:_options$altBoundary,_options$padding=_options.padding,padding2=_options$padding===void 0?0:_options$padding;var paddingObject=mergePaddingObject$1(typeof padding2!=="number"?padding2:expandToHashMap$1(padding2,basePlacements$1));var altContext=elementContext===popper$1?reference$1:popper$1;var popperRect=state.rects.popper;var element=state.elements[altBoundary?altContext:elementContext];var clippingClientRect=getClippingRect$2(isElement$2(element)?element:element.contextElement||getDocumentElement$2(state.elements.popper),boundary,rootBoundary,strategy);var referenceClientRect=getBoundingClientRect$2(state.elements.reference);var popperOffsets2=computeOffsets$1({reference:referenceClientRect,element:popperRect,placement:placement});var popperClientRect=rectToClientRect$2(Object.assign({},popperRect,popperOffsets2));var elementClientRect=elementContext===popper$1?popperClientRect:referenceClientRect;var overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right};var offsetData=state.modifiersData.offset;if(elementContext===popper$1&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right$1,bottom$1].indexOf(key)>=0?1:-1;var axis=[top$1,bottom$1].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply;});}return overflowOffsets;}function computeAutoPlacement$1(state,options){if(options===void 0){options={};}var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding2=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements$1:_options$allowedAutoP;var variation=getVariation$1(placement);var placements2=variation?flipVariations?variationPlacements$1:variationPlacements$1.filter(function(placement2){return getVariation$1(placement2)===variation;}):basePlacements$1;var allowedPlacements=placements2.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0;});if(allowedPlacements.length===0){allowedPlacements=placements2;}var overflows=allowedPlacements.reduce(function(acc,placement2){acc[placement2]=detectOverflow$2(state,{placement:placement2,boundary:boundary,rootBoundary:rootBoundary,padding:padding2})[getBasePlacement$1(placement2)];return acc;},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b];});}function getExpandedFallbackPlacements$1(placement){if(getBasePlacement$1(placement)===auto$1){return[];}var oppositePlacement=getOppositePlacement$2(placement);return[getOppositeVariationPlacement$1(placement),oppositePlacement,getOppositeVariationPlacement$1(oppositePlacement)];}function flip$5(_ref3){var state=_ref3.state,options=_ref3.options,name=_ref3.name;if(state.modifiersData[name]._skip){return;}var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?true:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding2=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?true:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements;var preferredPlacement=state.options.placement;var basePlacement=getBasePlacement$1(preferredPlacement);var isBasePlacement=basePlacement===preferredPlacement;var fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement$2(preferredPlacement)]:getExpandedFallbackPlacements$1(preferredPlacement));var placements2=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement$1(placement2)===auto$1?computeAutoPlacement$1(state,{placement:placement2,boundary:boundary,rootBoundary:rootBoundary,padding:padding2,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement2);},[]);var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var checksMap=/* @__PURE__ */new Map();var makeFallbackChecks=true;var firstFittingPlacement=placements2[0];for(var i=0;i<placements2.length;i++){var placement=placements2[i];var _basePlacement=getBasePlacement$1(placement);var isStartVariation=getVariation$1(placement)===start$1;var isVertical=[top$1,bottom$1].indexOf(_basePlacement)>=0;var len=isVertical?"width":"height";var overflow=detectOverflow$2(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding2});var mainVariationSide=isVertical?isStartVariation?right$1:left$1:isStartVariation?bottom$1:top$1;if(referenceRect[len]>popperRect[len]){mainVariationSide=getOppositePlacement$2(mainVariationSide);}var altVariationSide=getOppositePlacement$2(mainVariationSide);var checks=[];if(checkMainAxis){checks.push(overflow[_basePlacement]<=0);}if(checkAltAxis){checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0);}if(checks.every(function(check){return check;})){firstFittingPlacement=placement;makeFallbackChecks=false;break;}checksMap.set(placement,checks);}if(makeFallbackChecks){var numberOfChecks=flipVariations?3:1;var _loop=function _loop2(_i2){var fittingPlacement=placements2.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2){return checks2.slice(0,_i2).every(function(check){return check;});}});if(fittingPlacement){firstFittingPlacement=fittingPlacement;return"break";}};for(var _i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break;}}if(state.placement!==firstFittingPlacement){state.modifiersData[name]._skip=true;state.placement=firstFittingPlacement;state.reset=true;}}var flip$6={name:"flip",enabled:true,phase:"main",fn:flip$5,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets$2(overflow,rect,preventedOffsets){if(preventedOffsets===void 0){preventedOffsets={x:0,y:0};}return{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x};}function isAnySideFullyClipped$2(overflow){return[top$1,right$1,bottom$1,left$1].some(function(side){return overflow[side]>=0;});}function hide$5(_ref3){var state=_ref3.state,name=_ref3.name;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var preventedOffsets=state.modifiersData.preventOverflow;var referenceOverflow=detectOverflow$2(state,{elementContext:"reference"});var popperAltOverflow=detectOverflow$2(state,{altBoundary:true});var referenceClippingOffsets=getSideOffsets$2(referenceOverflow,referenceRect);var popperEscapeOffsets=getSideOffsets$2(popperAltOverflow,popperRect,preventedOffsets);var isReferenceHidden=isAnySideFullyClipped$2(referenceClippingOffsets);var hasPopperEscaped=isAnySideFullyClipped$2(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped};state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped});}var hide$6={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide$5};function distanceAndSkiddingToXY$1(placement,rects,offset2){var basePlacement=getBasePlacement$1(placement);var invertDistance=[left$1,top$1].indexOf(basePlacement)>=0?-1:1;var _ref3=typeof offset2==="function"?offset2(Object.assign({},rects,{placement:placement})):offset2,skidding=_ref3[0],distance=_ref3[1];skidding=skidding||0;distance=(distance||0)*invertDistance;return[left$1,right$1].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance};}function offset$5(_ref22){var state=_ref22.state,options=_ref22.options,name=_ref22.name;var _options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset;var data=placements$1.reduce(function(acc,placement){acc[placement]=distanceAndSkiddingToXY$1(placement,state.rects,offset2);return acc;},{});var _data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;if(state.modifiersData.popperOffsets!=null){state.modifiersData.popperOffsets.x+=x;state.modifiersData.popperOffsets.y+=y;}state.modifiersData[name]=data;}var offset$6={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset$5};function popperOffsets$2(_ref3){var state=_ref3.state,name=_ref3.name;state.modifiersData[name]=computeOffsets$1({reference:state.rects.reference,element:state.rects.popper,placement:state.placement});}var popperOffsets$3={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets$2,data:{}};function getAltAxis$1(axis){return axis==="x"?"y":"x";}function preventOverflow$2(_ref3){var state=_ref3.state,options=_ref3.options,name=_ref3.name;var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?false:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding2=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?true:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset;var overflow=detectOverflow$2(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding2,altBoundary:altBoundary});var basePlacement=getBasePlacement$1(state.placement);var variation=getVariation$1(state.placement);var isBasePlacement=!variation;var mainAxis=getMainAxisFromPlacement$1(basePlacement);var altAxis=getAltAxis$1(mainAxis);var popperOffsets2=state.modifiersData.popperOffsets;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var tetherOffsetValue=typeof tetherOffset==="function"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset;var normalizedTetherOffsetValue=typeof tetherOffsetValue==="number"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue);var offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null;var data={x:0,y:0};if(!popperOffsets2){return;}if(checkMainAxis){var _offsetModifierState$;var mainSide=mainAxis==="y"?top$1:left$1;var altSide=mainAxis==="y"?bottom$1:right$1;var len=mainAxis==="y"?"height":"width";var offset2=popperOffsets2[mainAxis];var min2=offset2+overflow[mainSide];var max2=offset2-overflow[altSide];var additive=tether?-popperRect[len]/2:0;var minLen=variation===start$1?referenceRect[len]:popperRect[len];var maxLen=variation===start$1?-popperRect[len]:-referenceRect[len];var arrowElement=state.elements.arrow;var arrowRect=tether&&arrowElement?getLayoutRect$1(arrowElement):{width:0,height:0};var arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:getFreshSideObject$1();var arrowPaddingMin=arrowPaddingObject[mainSide];var arrowPaddingMax=arrowPaddingObject[altSide];var arrowLen=within$1(0,referenceRect[len],arrowRect[len]);var minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis;var maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis;var arrowOffsetParent=state.elements.arrow&&getOffsetParent$2(state.elements.arrow);var clientOffset=arrowOffsetParent?mainAxis==="y"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0;var offsetModifierValue=(_offsetModifierState$=offsetModifierState==null?void 0:offsetModifierState[mainAxis])!=null?_offsetModifierState$:0;var tetherMin=offset2+minOffset-offsetModifierValue-clientOffset;var tetherMax=offset2+maxOffset-offsetModifierValue;var preventedOffset=within$1(tether?min$3(min2,tetherMin):min2,offset2,tether?max$3(max2,tetherMax):max2);popperOffsets2[mainAxis]=preventedOffset;data[mainAxis]=preventedOffset-offset2;}if(checkAltAxis){var _offsetModifierState$2;var _mainSide=mainAxis==="x"?top$1:left$1;var _altSide=mainAxis==="x"?bottom$1:right$1;var _offset=popperOffsets2[altAxis];var _len=altAxis==="y"?"height":"width";var _min=_offset+overflow[_mainSide];var _max=_offset-overflow[_altSide];var isOriginSide=[top$1,left$1].indexOf(basePlacement)!==-1;var _offsetModifierValue=(_offsetModifierState$2=offsetModifierState==null?void 0:offsetModifierState[altAxis])!=null?_offsetModifierState$2:0;var _tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis;var _tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max;var _preventedOffset=tether&&isOriginSide?withinMaxClamp$1(_tetherMin,_offset,_tetherMax):within$1(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset;data[altAxis]=_preventedOffset-_offset;}state.modifiersData[name]=data;}var preventOverflow$3={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow$2,requiresIfExists:["offset"]};function getHTMLElementScroll$1(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop};}function getNodeScroll$2(node2){if(node2===getWindow$2(node2)||!isHTMLElement$3(node2)){return getWindowScroll$1(node2);}else{return getHTMLElementScroll$1(node2);}}function isElementScaled$1(element){var rect=element.getBoundingClientRect();var scaleX=round$4(rect.width)/element.offsetWidth||1;var scaleY=round$4(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1;}function getCompositeRect$1(elementOrVirtualElement,offsetParent,isFixed){if(isFixed===void 0){isFixed=false;}var isOffsetParentAnElement=isHTMLElement$3(offsetParent);var offsetParentIsScaled=isHTMLElement$3(offsetParent)&&isElementScaled$1(offsetParent);var documentElement=getDocumentElement$2(offsetParent);var rect=getBoundingClientRect$2(elementOrVirtualElement,offsetParentIsScaled,isFixed);var scroll={scrollLeft:0,scrollTop:0};var offsets={x:0,y:0};if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName$2(offsetParent)!=="body"||// https://github.com/popperjs/popper-core/issues/1078
|
|
850
|
-
isScrollParent$1(documentElement)){scroll=getNodeScroll$2(offsetParent);}if(isHTMLElement$3(offsetParent)){offsets=getBoundingClientRect$2(offsetParent,true);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop;}else if(documentElement){offsets.x=getWindowScrollBarX$2(documentElement);}}return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height};}function order$1(modifiers){var
|
|
850
|
+
isScrollParent$1(documentElement)){scroll=getNodeScroll$2(offsetParent);}if(isHTMLElement$3(offsetParent)){offsets=getBoundingClientRect$2(offsetParent,true);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop;}else if(documentElement){offsets.x=getWindowScrollBarX$2(documentElement);}}return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height};}function order$1(modifiers){var map2=/* @__PURE__ */new Map();var visited=/* @__PURE__ */new Set();var result=[];modifiers.forEach(function(modifier){map2.set(modifier.name,modifier);});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map2.get(dep);if(depModifier){sort(depModifier);}}});result.push(modifier);}modifiers.forEach(function(modifier){if(!visited.has(modifier.name)){sort(modifier);}});return result;}function orderModifiers$1(modifiers){var orderedModifiers=order$1(modifiers);return modifierPhases$1.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase;}));},[]);}function debounce$1(fn3){var pending;return function(){if(!pending){pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0;resolve(fn3());});});}return pending;};}function mergeByName$1(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current;return merged2;},{});return Object.keys(merged).map(function(key){return merged[key];});}var DEFAULT_OPTIONS$1={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements$1(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect==="function");});}function popperGenerator$1(generatorOptions){if(generatorOptions===void 0){generatorOptions={};}var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions2=_generatorOptions$def2===void 0?DEFAULT_OPTIONS$1:_generatorOptions$def2;return function createPopper2(reference2,popper2,options){if(options===void 0){options=defaultOptions2;}var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS$1,defaultOptions2),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}};var effectCleanupFns=[];var isDestroyed=false;var instance2={state:state,setOptions:function setOptions(setOptionsAction){var options2=typeof setOptionsAction==="function"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects();state.options=Object.assign({},defaultOptions2,state.options,options2);state.scrollParents={reference:isElement$2(reference2)?listScrollParents$1(reference2):reference2.contextElement?listScrollParents$1(reference2.contextElement):[],popper:listScrollParents$1(popper2)};var orderedModifiers=orderModifiers$1(mergeByName$1([].concat(defaultModifiers2,state.options.modifiers)));state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled;});runModifierEffects();return instance2.update();},// Sync update – it will always be executed, even if not necessary. This
|
|
851
851
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
852
852
|
// logic.
|
|
853
853
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
@@ -1402,7 +1402,7 @@ _InputGlobalStyles||(_InputGlobalStyles=/* @__PURE__ */jsx$1(InputGlobalStyles,{
|
|
|
1402
1402
|
*/type:PropTypes.oneOfType([PropTypes.oneOf(["button","reset","submit"]),PropTypes.string]),/**
|
|
1403
1403
|
* The variant to use.
|
|
1404
1404
|
* @default 'text'
|
|
1405
|
-
*/variant:PropTypes.oneOfType([PropTypes.oneOf(["contained","outlined","text"]),PropTypes.string])}:void 0;function isOverflowing(container){var doc=ownerDocument(container);if(doc.body===container){return ownerWindow(container).innerWidth>doc.documentElement.clientWidth;}return container.scrollHeight>container.clientHeight;}function ariaHidden(element,hide2){if(hide2){element.setAttribute("aria-hidden","true");}else{element.removeAttribute("aria-hidden");}}function getPaddingRight(element){return parseInt(ownerWindow(element).getComputedStyle(element).paddingRight,10)||0;}function isAriaHiddenForbiddenOnElement(element){var forbiddenTagNames=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"];var isForbiddenTagName=forbiddenTagNames.includes(element.tagName);var isInputHidden=element.tagName==="INPUT"&&element.getAttribute("type")==="hidden";return isForbiddenTagName||isInputHidden;}function ariaHiddenSiblings(container,mountElement,currentElement,elementsToExclude,hide2){var blacklist=[mountElement,currentElement].concat(_toConsumableArray2(elementsToExclude));[].forEach.call(container.children,function(element){var isNotExcludedElement=!blacklist.includes(element);var isNotForbiddenElement=!isAriaHiddenForbiddenOnElement(element);if(isNotExcludedElement&&isNotForbiddenElement){ariaHidden(element,hide2);}});}function findIndexOf(items,callback){var idx=-1;items.some(function(item2,index2){if(callback(item2)){idx=index2;return true;}return false;});return idx;}function handleContainer(containerInfo,props){var restoreStyle=[];var container=containerInfo.container;if(!props.disableScrollLock){if(isOverflowing(container)){var scrollbarSize=getScrollbarSize(ownerWindow(container));restoreStyle.push({value:container.style.paddingRight,property:"padding-right",el:container});container.style.paddingRight="".concat(getPaddingRight(container)+scrollbarSize,"px");var fixedElements2=ownerDocument(container).querySelectorAll(".mui-fixed");[].forEach.call(fixedElements2,function(element){restoreStyle.push({value:element.style.paddingRight,property:"padding-right",el:element});element.style.paddingRight="".concat(getPaddingRight(element)+scrollbarSize,"px");});}var scrollContainer;if(container.parentNode instanceof DocumentFragment){scrollContainer=ownerDocument(container).body;}else{var parent=container.parentElement;var containerWindow=ownerWindow(container);scrollContainer=(parent==null?void 0:parent.nodeName)==="HTML"&&containerWindow.getComputedStyle(parent).overflowY==="scroll"?parent:container;}restoreStyle.push({value:scrollContainer.style.overflow,property:"overflow",el:scrollContainer},{value:scrollContainer.style.overflowX,property:"overflow-x",el:scrollContainer},{value:scrollContainer.style.overflowY,property:"overflow-y",el:scrollContainer});scrollContainer.style.overflow="hidden";}var restore=function restore(){restoreStyle.forEach(function(_ref121){var value=_ref121.value,el=_ref121.el,property=_ref121.property;if(value){el.style.setProperty(property,value);}else{el.style.removeProperty(property);}});};return restore;}function getHiddenSiblings(container){var hiddenSiblings=[];[].forEach.call(container.children,function(element){if(element.getAttribute("aria-hidden")==="true"){hiddenSiblings.push(element);}});return hiddenSiblings;}var ModalManager=/*#__PURE__*/function(){function ModalManager(){_classCallCheck2(this,ModalManager);this.modals=[];this.containers=[];}return _createClass2(ModalManager,[{key:"add",value:function add(modal2,container){var modalIndex=this.modals.indexOf(modal2);if(modalIndex!==-1){return modalIndex;}modalIndex=this.modals.length;this.modals.push(modal2);if(modal2.modalRef){ariaHidden(modal2.modalRef,false);}var hiddenSiblings=getHiddenSiblings(container);ariaHiddenSiblings(container,modal2.mount,modal2.modalRef,hiddenSiblings,true);var containerIndex=findIndexOf(this.containers,function(item2){return item2.container===container;});if(containerIndex!==-1){this.containers[containerIndex].modals.push(modal2);return modalIndex;}this.containers.push({modals:[modal2],container:container,restore:null,hiddenSiblings:hiddenSiblings});return modalIndex;}},{key:"mount",value:function mount(modal2,props){var containerIndex=findIndexOf(this.containers,function(item2){return item2.modals.includes(modal2);});var containerInfo=this.containers[containerIndex];if(!containerInfo.restore){containerInfo.restore=handleContainer(containerInfo,props);}}},{key:"remove",value:function remove(modal2){var ariaHiddenState=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var modalIndex=this.modals.indexOf(modal2);if(modalIndex===-1){return modalIndex;}var containerIndex=findIndexOf(this.containers,function(item2){return item2.modals.includes(modal2);});var containerInfo=this.containers[containerIndex];containerInfo.modals.splice(containerInfo.modals.indexOf(modal2),1);this.modals.splice(modalIndex,1);if(containerInfo.modals.length===0){if(containerInfo.restore){containerInfo.restore();}if(modal2.modalRef){ariaHidden(modal2.modalRef,ariaHiddenState);}ariaHiddenSiblings(containerInfo.container,modal2.mount,modal2.modalRef,containerInfo.hiddenSiblings,false);this.containers.splice(containerIndex,1);}else{var nextTop=containerInfo.modals[containerInfo.modals.length-1];if(nextTop.modalRef){ariaHidden(nextTop.modalRef,false);}}return modalIndex;}},{key:"isTopModal",value:function isTopModal(modal2){return this.modals.length>0&&this.modals[this.modals.length-1]===modal2;}}]);}();var candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(node2){var tabindexAttr=parseInt(node2.getAttribute("tabindex")||"",10);if(!Number.isNaN(tabindexAttr)){return tabindexAttr;}if(node2.contentEditable==="true"||(node2.nodeName==="AUDIO"||node2.nodeName==="VIDEO"||node2.nodeName==="DETAILS")&&node2.getAttribute("tabindex")===null){return 0;}return node2.tabIndex;}function isNonTabbableRadio(node2){if(node2.tagName!=="INPUT"||node2.type!=="radio"){return false;}if(!node2.name){return false;}var getRadio=function getRadio(selector){return node2.ownerDocument.querySelector("input[type=\"radio\"]".concat(selector));};var roving=getRadio("[name=\"".concat(node2.name,"\"]:checked"));if(!roving){roving=getRadio("[name=\"".concat(node2.name,"\"]"));}return roving!==node2;}function isNodeMatchingSelectorFocusable(node2){if(node2.disabled||node2.tagName==="INPUT"&&node2.type==="hidden"||isNonTabbableRadio(node2)){return false;}return true;}function defaultGetTabbable(root){var regularTabNodes=[];var orderedTabNodes=[];Array.from(root.querySelectorAll(candidatesSelector)).forEach(function(node2,i){var nodeTabIndex=getTabIndex(node2);if(nodeTabIndex===-1||!isNodeMatchingSelectorFocusable(node2)){return;}if(nodeTabIndex===0){regularTabNodes.push(node2);}else{orderedTabNodes.push({documentOrder:i,tabIndex:nodeTabIndex,node:node2});}});return orderedTabNodes.sort(function(a,b){return a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex;}).map(function(a){return a.node;}).concat(regularTabNodes);}function defaultIsEnabled(){return true;}function FocusTrap(props){var children=props.children,_props$disableAutoFoc=props.disableAutoFocus,disableAutoFocus=_props$disableAutoFoc===void 0?false:_props$disableAutoFoc,_props$disableEnforce=props.disableEnforceFocus,disableEnforceFocus=_props$disableEnforce===void 0?false:_props$disableEnforce,_props$disableRestore=props.disableRestoreFocus,disableRestoreFocus=_props$disableRestore===void 0?false:_props$disableRestore,_props$getTabbable=props.getTabbable,getTabbable=_props$getTabbable===void 0?defaultGetTabbable:_props$getTabbable,_props$isEnabled=props.isEnabled,isEnabled=_props$isEnabled===void 0?defaultIsEnabled:_props$isEnabled,open=props.open;var ignoreNextEnforceFocus=React.useRef(false);var sentinelStart=React.useRef(null);var sentinelEnd=React.useRef(null);var nodeToRestore=React.useRef(null);var reactFocusEventTarget=React.useRef(null);var activated=React.useRef(false);var rootRef=React.useRef(null);var handleRef=useForkRef(getReactElementRef(children),rootRef);var lastKeydown=React.useRef(null);React.useEffect(function(){if(!open||!rootRef.current){return;}activated.current=!disableAutoFocus;},[disableAutoFocus,open]);React.useEffect(function(){if(!open||!rootRef.current){return;}var doc=ownerDocument(rootRef.current);if(!rootRef.current.contains(doc.activeElement)){if(!rootRef.current.hasAttribute("tabIndex")){if(process.env.NODE_ENV!=="production"){console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n"));}rootRef.current.setAttribute("tabIndex","-1");}if(activated.current){rootRef.current.focus();}}return function(){if(!disableRestoreFocus){if(nodeToRestore.current&&nodeToRestore.current.focus){ignoreNextEnforceFocus.current=true;nodeToRestore.current.focus();}nodeToRestore.current=null;}};},[open]);React.useEffect(function(){if(!open||!rootRef.current){return;}var doc=ownerDocument(rootRef.current);var loopFocus=function loopFocus(nativeEvent){lastKeydown.current=nativeEvent;if(disableEnforceFocus||!isEnabled()||nativeEvent.key!=="Tab"){return;}if(doc.activeElement===rootRef.current&&nativeEvent.shiftKey){ignoreNextEnforceFocus.current=true;if(sentinelEnd.current){sentinelEnd.current.focus();}}};var contain=function contain(){var _a,_b;var rootElement=rootRef.current;if(rootElement===null){return;}if(!doc.hasFocus()||!isEnabled()||ignoreNextEnforceFocus.current){ignoreNextEnforceFocus.current=false;return;}if(rootElement.contains(doc.activeElement)){return;}if(disableEnforceFocus&&doc.activeElement!==sentinelStart.current&&doc.activeElement!==sentinelEnd.current){return;}if(doc.activeElement!==reactFocusEventTarget.current){reactFocusEventTarget.current=null;}else if(reactFocusEventTarget.current!==null){return;}if(!activated.current){return;}var tabbable=[];if(doc.activeElement===sentinelStart.current||doc.activeElement===sentinelEnd.current){tabbable=getTabbable(rootRef.current);}if(tabbable.length>0){var isShiftTab=Boolean(((_a=lastKeydown.current)==null?void 0:_a.shiftKey)&&((_b=lastKeydown.current)==null?void 0:_b.key)==="Tab");var focusNext=tabbable[0];var focusPrevious=tabbable[tabbable.length-1];if(typeof focusNext!=="string"&&typeof focusPrevious!=="string"){if(isShiftTab){focusPrevious.focus();}else{focusNext.focus();}}}else{rootElement.focus();}};doc.addEventListener("focusin",contain);doc.addEventListener("keydown",loopFocus,true);var interval=setInterval(function(){if(doc.activeElement&&doc.activeElement.tagName==="BODY"){contain();}},50);return function(){clearInterval(interval);doc.removeEventListener("focusin",contain);doc.removeEventListener("keydown",loopFocus,true);};},[disableAutoFocus,disableEnforceFocus,disableRestoreFocus,isEnabled,open,getTabbable]);var onFocus2=function onFocus2(event){if(nodeToRestore.current===null){nodeToRestore.current=event.relatedTarget;}activated.current=true;reactFocusEventTarget.current=event.target;var childrenPropsHandler=children.props.onFocus;if(childrenPropsHandler){childrenPropsHandler(event);}};var handleFocusSentinel=function handleFocusSentinel(event){if(nodeToRestore.current===null){nodeToRestore.current=event.relatedTarget;}activated.current=true;};return/* @__PURE__ */jsxs(React.Fragment,{children:[/* @__PURE__ */jsx$1("div",{tabIndex:open?0:-1,onFocus:handleFocusSentinel,ref:sentinelStart,"data-testid":"sentinelStart"}),/* @__PURE__ */React.cloneElement(children,{ref:handleRef,onFocus:onFocus2}),/* @__PURE__ */jsx$1("div",{tabIndex:open?0:-1,onFocus:handleFocusSentinel,ref:sentinelEnd,"data-testid":"sentinelEnd"})]});}process.env.NODE_ENV!=="production"?FocusTrap.propTypes={// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1405
|
+
*/variant:PropTypes.oneOfType([PropTypes.oneOf(["contained","outlined","text"]),PropTypes.string])}:void 0;function isOverflowing(container){var doc=ownerDocument(container);if(doc.body===container){return ownerWindow(container).innerWidth>doc.documentElement.clientWidth;}return container.scrollHeight>container.clientHeight;}function ariaHidden(element,hide2){if(hide2){element.setAttribute("aria-hidden","true");}else{element.removeAttribute("aria-hidden");}}function getPaddingRight(element){return parseInt(ownerWindow(element).getComputedStyle(element).paddingRight,10)||0;}function isAriaHiddenForbiddenOnElement(element){var forbiddenTagNames=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"];var isForbiddenTagName=forbiddenTagNames.includes(element.tagName);var isInputHidden=element.tagName==="INPUT"&&element.getAttribute("type")==="hidden";return isForbiddenTagName||isInputHidden;}function ariaHiddenSiblings(container,mountElement,currentElement,elementsToExclude,hide2){var blacklist=[mountElement,currentElement].concat(_toConsumableArray2(elementsToExclude));[].forEach.call(container.children,function(element){var isNotExcludedElement=!blacklist.includes(element);var isNotForbiddenElement=!isAriaHiddenForbiddenOnElement(element);if(isNotExcludedElement&&isNotForbiddenElement){ariaHidden(element,hide2);}});}function findIndexOf(items,callback){var idx=-1;items.some(function(item2,index2){if(callback(item2)){idx=index2;return true;}return false;});return idx;}function handleContainer(containerInfo,props){var restoreStyle=[];var container=containerInfo.container;if(!props.disableScrollLock){if(isOverflowing(container)){var scrollbarSize=getScrollbarSize(ownerWindow(container));restoreStyle.push({value:container.style.paddingRight,property:"padding-right",el:container});container.style.paddingRight="".concat(getPaddingRight(container)+scrollbarSize,"px");var fixedElements2=ownerDocument(container).querySelectorAll(".mui-fixed");[].forEach.call(fixedElements2,function(element){restoreStyle.push({value:element.style.paddingRight,property:"padding-right",el:element});element.style.paddingRight="".concat(getPaddingRight(element)+scrollbarSize,"px");});}var scrollContainer;if(container.parentNode instanceof DocumentFragment){scrollContainer=ownerDocument(container).body;}else{var parent=container.parentElement;var containerWindow=ownerWindow(container);scrollContainer=(parent==null?void 0:parent.nodeName)==="HTML"&&containerWindow.getComputedStyle(parent).overflowY==="scroll"?parent:container;}restoreStyle.push({value:scrollContainer.style.overflow,property:"overflow",el:scrollContainer},{value:scrollContainer.style.overflowX,property:"overflow-x",el:scrollContainer},{value:scrollContainer.style.overflowY,property:"overflow-y",el:scrollContainer});scrollContainer.style.overflow="hidden";}var restore=function restore(){restoreStyle.forEach(function(_ref121){var value=_ref121.value,el=_ref121.el,property2=_ref121.property;if(value){el.style.setProperty(property2,value);}else{el.style.removeProperty(property2);}});};return restore;}function getHiddenSiblings(container){var hiddenSiblings=[];[].forEach.call(container.children,function(element){if(element.getAttribute("aria-hidden")==="true"){hiddenSiblings.push(element);}});return hiddenSiblings;}var ModalManager=/*#__PURE__*/function(){function ModalManager(){_classCallCheck2(this,ModalManager);this.modals=[];this.containers=[];}return _createClass2(ModalManager,[{key:"add",value:function add(modal2,container){var modalIndex=this.modals.indexOf(modal2);if(modalIndex!==-1){return modalIndex;}modalIndex=this.modals.length;this.modals.push(modal2);if(modal2.modalRef){ariaHidden(modal2.modalRef,false);}var hiddenSiblings=getHiddenSiblings(container);ariaHiddenSiblings(container,modal2.mount,modal2.modalRef,hiddenSiblings,true);var containerIndex=findIndexOf(this.containers,function(item2){return item2.container===container;});if(containerIndex!==-1){this.containers[containerIndex].modals.push(modal2);return modalIndex;}this.containers.push({modals:[modal2],container:container,restore:null,hiddenSiblings:hiddenSiblings});return modalIndex;}},{key:"mount",value:function mount(modal2,props){var containerIndex=findIndexOf(this.containers,function(item2){return item2.modals.includes(modal2);});var containerInfo=this.containers[containerIndex];if(!containerInfo.restore){containerInfo.restore=handleContainer(containerInfo,props);}}},{key:"remove",value:function remove(modal2){var ariaHiddenState=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var modalIndex=this.modals.indexOf(modal2);if(modalIndex===-1){return modalIndex;}var containerIndex=findIndexOf(this.containers,function(item2){return item2.modals.includes(modal2);});var containerInfo=this.containers[containerIndex];containerInfo.modals.splice(containerInfo.modals.indexOf(modal2),1);this.modals.splice(modalIndex,1);if(containerInfo.modals.length===0){if(containerInfo.restore){containerInfo.restore();}if(modal2.modalRef){ariaHidden(modal2.modalRef,ariaHiddenState);}ariaHiddenSiblings(containerInfo.container,modal2.mount,modal2.modalRef,containerInfo.hiddenSiblings,false);this.containers.splice(containerIndex,1);}else{var nextTop=containerInfo.modals[containerInfo.modals.length-1];if(nextTop.modalRef){ariaHidden(nextTop.modalRef,false);}}return modalIndex;}},{key:"isTopModal",value:function isTopModal(modal2){return this.modals.length>0&&this.modals[this.modals.length-1]===modal2;}}]);}();var candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(node2){var tabindexAttr=parseInt(node2.getAttribute("tabindex")||"",10);if(!Number.isNaN(tabindexAttr)){return tabindexAttr;}if(node2.contentEditable==="true"||(node2.nodeName==="AUDIO"||node2.nodeName==="VIDEO"||node2.nodeName==="DETAILS")&&node2.getAttribute("tabindex")===null){return 0;}return node2.tabIndex;}function isNonTabbableRadio(node2){if(node2.tagName!=="INPUT"||node2.type!=="radio"){return false;}if(!node2.name){return false;}var getRadio=function getRadio(selector){return node2.ownerDocument.querySelector("input[type=\"radio\"]".concat(selector));};var roving=getRadio("[name=\"".concat(node2.name,"\"]:checked"));if(!roving){roving=getRadio("[name=\"".concat(node2.name,"\"]"));}return roving!==node2;}function isNodeMatchingSelectorFocusable(node2){if(node2.disabled||node2.tagName==="INPUT"&&node2.type==="hidden"||isNonTabbableRadio(node2)){return false;}return true;}function defaultGetTabbable(root2){var regularTabNodes=[];var orderedTabNodes=[];Array.from(root2.querySelectorAll(candidatesSelector)).forEach(function(node2,i){var nodeTabIndex=getTabIndex(node2);if(nodeTabIndex===-1||!isNodeMatchingSelectorFocusable(node2)){return;}if(nodeTabIndex===0){regularTabNodes.push(node2);}else{orderedTabNodes.push({documentOrder:i,tabIndex:nodeTabIndex,node:node2});}});return orderedTabNodes.sort(function(a,b){return a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex;}).map(function(a){return a.node;}).concat(regularTabNodes);}function defaultIsEnabled(){return true;}function FocusTrap(props){var children=props.children,_props$disableAutoFoc=props.disableAutoFocus,disableAutoFocus=_props$disableAutoFoc===void 0?false:_props$disableAutoFoc,_props$disableEnforce=props.disableEnforceFocus,disableEnforceFocus=_props$disableEnforce===void 0?false:_props$disableEnforce,_props$disableRestore=props.disableRestoreFocus,disableRestoreFocus=_props$disableRestore===void 0?false:_props$disableRestore,_props$getTabbable=props.getTabbable,getTabbable=_props$getTabbable===void 0?defaultGetTabbable:_props$getTabbable,_props$isEnabled=props.isEnabled,isEnabled=_props$isEnabled===void 0?defaultIsEnabled:_props$isEnabled,open=props.open;var ignoreNextEnforceFocus=React.useRef(false);var sentinelStart=React.useRef(null);var sentinelEnd=React.useRef(null);var nodeToRestore=React.useRef(null);var reactFocusEventTarget=React.useRef(null);var activated=React.useRef(false);var rootRef=React.useRef(null);var handleRef=useForkRef(getReactElementRef(children),rootRef);var lastKeydown=React.useRef(null);React.useEffect(function(){if(!open||!rootRef.current){return;}activated.current=!disableAutoFocus;},[disableAutoFocus,open]);React.useEffect(function(){if(!open||!rootRef.current){return;}var doc=ownerDocument(rootRef.current);if(!rootRef.current.contains(doc.activeElement)){if(!rootRef.current.hasAttribute("tabIndex")){if(process.env.NODE_ENV!=="production"){console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n"));}rootRef.current.setAttribute("tabIndex","-1");}if(activated.current){rootRef.current.focus();}}return function(){if(!disableRestoreFocus){if(nodeToRestore.current&&nodeToRestore.current.focus){ignoreNextEnforceFocus.current=true;nodeToRestore.current.focus();}nodeToRestore.current=null;}};},[open]);React.useEffect(function(){if(!open||!rootRef.current){return;}var doc=ownerDocument(rootRef.current);var loopFocus=function loopFocus(nativeEvent){lastKeydown.current=nativeEvent;if(disableEnforceFocus||!isEnabled()||nativeEvent.key!=="Tab"){return;}if(doc.activeElement===rootRef.current&&nativeEvent.shiftKey){ignoreNextEnforceFocus.current=true;if(sentinelEnd.current){sentinelEnd.current.focus();}}};var contain=function contain(){var _a,_b;var rootElement=rootRef.current;if(rootElement===null){return;}if(!doc.hasFocus()||!isEnabled()||ignoreNextEnforceFocus.current){ignoreNextEnforceFocus.current=false;return;}if(rootElement.contains(doc.activeElement)){return;}if(disableEnforceFocus&&doc.activeElement!==sentinelStart.current&&doc.activeElement!==sentinelEnd.current){return;}if(doc.activeElement!==reactFocusEventTarget.current){reactFocusEventTarget.current=null;}else if(reactFocusEventTarget.current!==null){return;}if(!activated.current){return;}var tabbable=[];if(doc.activeElement===sentinelStart.current||doc.activeElement===sentinelEnd.current){tabbable=getTabbable(rootRef.current);}if(tabbable.length>0){var isShiftTab=Boolean(((_a=lastKeydown.current)==null?void 0:_a.shiftKey)&&((_b=lastKeydown.current)==null?void 0:_b.key)==="Tab");var focusNext=tabbable[0];var focusPrevious=tabbable[tabbable.length-1];if(typeof focusNext!=="string"&&typeof focusPrevious!=="string"){if(isShiftTab){focusPrevious.focus();}else{focusNext.focus();}}}else{rootElement.focus();}};doc.addEventListener("focusin",contain);doc.addEventListener("keydown",loopFocus,true);var interval=setInterval(function(){if(doc.activeElement&&doc.activeElement.tagName==="BODY"){contain();}},50);return function(){clearInterval(interval);doc.removeEventListener("focusin",contain);doc.removeEventListener("keydown",loopFocus,true);};},[disableAutoFocus,disableEnforceFocus,disableRestoreFocus,isEnabled,open,getTabbable]);var onFocus2=function onFocus2(event){if(nodeToRestore.current===null){nodeToRestore.current=event.relatedTarget;}activated.current=true;reactFocusEventTarget.current=event.target;var childrenPropsHandler=children.props.onFocus;if(childrenPropsHandler){childrenPropsHandler(event);}};var handleFocusSentinel=function handleFocusSentinel(event){if(nodeToRestore.current===null){nodeToRestore.current=event.relatedTarget;}activated.current=true;};return/* @__PURE__ */jsxs(React.Fragment,{children:[/* @__PURE__ */jsx$1("div",{tabIndex:open?0:-1,onFocus:handleFocusSentinel,ref:sentinelStart,"data-testid":"sentinelStart"}),/* @__PURE__ */React.cloneElement(children,{ref:handleRef,onFocus:onFocus2}),/* @__PURE__ */jsx$1("div",{tabIndex:open?0:-1,onFocus:handleFocusSentinel,ref:sentinelEnd,"data-testid":"sentinelEnd"})]});}process.env.NODE_ENV!=="production"?FocusTrap.propTypes={// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1406
1406
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1407
1407
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1408
1408
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
@@ -2821,7 +2821,7 @@ _span||(_span=/* @__PURE__ */jsx$1("span",{className:"notranslate","aria-hidden"
|
|
|
2821
2821
|
* The input value.
|
|
2822
2822
|
*/value:PropTypes.any,/**
|
|
2823
2823
|
* The variant to use.
|
|
2824
|
-
*/variant:PropTypes.oneOf(["standard","outlined","filled"])}:void 0;var useUtilityClasses$D=function useUtilityClasses$D(ownerState){var classes=ownerState.classes;var slots={root:["root"]};var composedClasses=composeClasses(slots,getSelectUtilityClasses,classes);return __spreadValues(__spreadValues({},classes),composedClasses);};var styledRootConfig={name:"MuiSelect",overridesResolver:function overridesResolver(props,styles2){return styles2.root;},shouldForwardProp:function shouldForwardProp(prop){return rootShouldForwardProp(prop)&&prop!=="variant";},slot:"Root"};var StyledInput=styled(Input$2,styledRootConfig)("");var StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)("");var StyledFilledInput=styled(FilledInput,styledRootConfig)("");var Select$2=/* @__PURE__ */React.forwardRef(function Select(inProps,ref){var props=useDefaultProps({name:"MuiSelect",props:inProps});var _a=props,_a$autoWidth=_a.autoWidth,autoWidth=_a$autoWidth===void 0?false:_a$autoWidth,children=_a.children,_a$classes2=_a.classes,classesProp=_a$classes2===void 0?{}:_a$classes2,className=_a.className,_a$defaultOpen=_a.defaultOpen,defaultOpen=_a$defaultOpen===void 0?false:_a$defaultOpen,_a$displayEmpty=_a.displayEmpty,displayEmpty=_a$displayEmpty===void 0?false:_a$displayEmpty,_a$IconComponent=_a.IconComponent,IconComponent=_a$IconComponent===void 0?ArrowDropDownIcon$1:_a$IconComponent,id=_a.id,input=_a.input,inputProps=_a.inputProps,label2=_a.label,labelId=_a.labelId,MenuProps=_a.MenuProps,_a$multiple=_a.multiple,multiple=_a$multiple===void 0?false:_a$multiple,_a$native=_a.native,native=_a$native===void 0?false:_a$native,onClose=_a.onClose,onOpen=_a.onOpen,open=_a.open,renderValue=_a.renderValue,SelectDisplayProps=_a.SelectDisplayProps,_a$variant1=_a.variant,variantProp=_a$variant1===void 0?"outlined":_a$variant1,other=__objRest(_a,["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]);var inputComponent=native?NativeSelectInput:SelectInput;var muiFormControl=useFormControl();var fcs=formControlState({props:props,muiFormControl:muiFormControl,states:["variant","error"]});var variant=fcs.variant||variantProp;var ownerState=__spreadProps(__spreadValues({},props),{variant:variant,classes:classesProp});var classes=useUtilityClasses$D(ownerState);var _b=classes,
|
|
2824
|
+
*/variant:PropTypes.oneOf(["standard","outlined","filled"])}:void 0;var useUtilityClasses$D=function useUtilityClasses$D(ownerState){var classes=ownerState.classes;var slots={root:["root"]};var composedClasses=composeClasses(slots,getSelectUtilityClasses,classes);return __spreadValues(__spreadValues({},classes),composedClasses);};var styledRootConfig={name:"MuiSelect",overridesResolver:function overridesResolver(props,styles2){return styles2.root;},shouldForwardProp:function shouldForwardProp(prop){return rootShouldForwardProp(prop)&&prop!=="variant";},slot:"Root"};var StyledInput=styled(Input$2,styledRootConfig)("");var StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)("");var StyledFilledInput=styled(FilledInput,styledRootConfig)("");var Select$2=/* @__PURE__ */React.forwardRef(function Select(inProps,ref){var props=useDefaultProps({name:"MuiSelect",props:inProps});var _a=props,_a$autoWidth=_a.autoWidth,autoWidth=_a$autoWidth===void 0?false:_a$autoWidth,children=_a.children,_a$classes2=_a.classes,classesProp=_a$classes2===void 0?{}:_a$classes2,className=_a.className,_a$defaultOpen=_a.defaultOpen,defaultOpen=_a$defaultOpen===void 0?false:_a$defaultOpen,_a$displayEmpty=_a.displayEmpty,displayEmpty=_a$displayEmpty===void 0?false:_a$displayEmpty,_a$IconComponent=_a.IconComponent,IconComponent=_a$IconComponent===void 0?ArrowDropDownIcon$1:_a$IconComponent,id=_a.id,input=_a.input,inputProps=_a.inputProps,label2=_a.label,labelId=_a.labelId,MenuProps=_a.MenuProps,_a$multiple=_a.multiple,multiple=_a$multiple===void 0?false:_a$multiple,_a$native=_a.native,native=_a$native===void 0?false:_a$native,onClose=_a.onClose,onOpen=_a.onOpen,open=_a.open,renderValue=_a.renderValue,SelectDisplayProps=_a.SelectDisplayProps,_a$variant1=_a.variant,variantProp=_a$variant1===void 0?"outlined":_a$variant1,other=__objRest(_a,["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]);var inputComponent=native?NativeSelectInput:SelectInput;var muiFormControl=useFormControl();var fcs=formControlState({props:props,muiFormControl:muiFormControl,states:["variant","error"]});var variant=fcs.variant||variantProp;var ownerState=__spreadProps(__spreadValues({},props),{variant:variant,classes:classesProp});var classes=useUtilityClasses$D(ownerState);var _b=classes,root2=_b.root,restOfClasses=__objRest(_b,["root"]);var InputComponent=input||{standard:/* @__PURE__ */jsx$1(StyledInput,{ownerState:ownerState}),outlined:/* @__PURE__ */jsx$1(StyledOutlinedInput,{label:label2,ownerState:ownerState}),filled:/* @__PURE__ */jsx$1(StyledFilledInput,{ownerState:ownerState})}[variant];var inputComponentRef=useForkRef(ref,getReactElementRef(InputComponent));return/* @__PURE__ */jsx$1(React.Fragment,{children:/* @__PURE__ */React.cloneElement(InputComponent,__spreadValues(__spreadValues(__spreadProps(__spreadValues({// Most of the logic is implemented in `SelectInput`.
|
|
2825
2825
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
2826
2826
|
inputComponent:inputComponent,inputProps:__spreadValues(__spreadProps(__spreadValues(__spreadValues({children:children,error:fcs.error,IconComponent:IconComponent,variant:variant,type:void 0,// We render a select. We can ignore the type provided by the `Input`.
|
|
2827
2827
|
multiple:multiple},native?{id:id}:{autoWidth:autoWidth,defaultOpen:defaultOpen,displayEmpty:displayEmpty,labelId:labelId,MenuProps:MenuProps,onClose:onClose,onOpen:onOpen,open:open,renderValue:renderValue,SelectDisplayProps:__spreadValues({id:id},SelectDisplayProps)}),inputProps),{classes:inputProps?deepmerge(restOfClasses,inputProps.classes):restOfClasses}),input?input.props.inputProps:{})},(multiple&&native||displayEmpty)&&variant==="outlined"?{notched:true}:{}),{ref:inputComponentRef,className:clsx(InputComponent.props.className,className,classes.root)}),!input&&{variant:variant}),other))});});process.env.NODE_ENV!=="production"?Select$2.propTypes={// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -3117,7 +3117,7 @@ tooltip:(_d=slotProps.tooltip)!=null?_d:componentsProps.tooltip,transition:__spr
|
|
|
3117
3117
|
* Tab labels appear in a single row.
|
|
3118
3118
|
* They can use a second line if needed.
|
|
3119
3119
|
* @default false
|
|
3120
|
-
*/wrapped:PropTypes.bool}:void 0;var KeyboardArrowLeft=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var KeyboardArrowRight=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function easeInOutSin(time){return(1+Math.sin(Math.PI*time-Math.PI/2))/2;}function animate(
|
|
3120
|
+
*/wrapped:PropTypes.bool}:void 0;var KeyboardArrowLeft=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var KeyboardArrowRight=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function easeInOutSin(time){return(1+Math.sin(Math.PI*time-Math.PI/2))/2;}function animate(property2,element,to){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var cb=arguments.length>4&&arguments[4]!==undefined?arguments[4]:function(){};var _options$ease=options.ease,ease=_options$ease===void 0?easeInOutSin:_options$ease,_options$duration=options.duration,duration2=_options$duration===void 0?300:_options$duration;var start2=null;var from2=element[property2];var cancelled=false;var cancel=function cancel(){cancelled=true;};var _step4=function step(timestamp){if(cancelled){cb(new Error("Animation cancelled"));return;}if(start2===null){start2=timestamp;}var time=Math.min(1,(timestamp-start2)/duration2);element[property2]=ease(time)*(to-from2)+from2;if(time>=1){requestAnimationFrame(function(){cb(null);});return;}requestAnimationFrame(_step4);};if(from2===to){cb(new Error("Element already at target position"));return cancel;}requestAnimationFrame(_step4);return cancel;}var styles$n={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ScrollbarSize(props){var _a=props,onChange2=_a.onChange,other=__objRest(_a,["onChange"]);var scrollbarHeight=React.useRef();var nodeRef=React.useRef(null);var setMeasurements=function setMeasurements(){scrollbarHeight.current=nodeRef.current.offsetHeight-nodeRef.current.clientHeight;};useEnhancedEffect(function(){var handleResize=debounce$2(function(){var prevHeight=scrollbarHeight.current;setMeasurements();if(prevHeight!==scrollbarHeight.current){onChange2(scrollbarHeight.current);}});var containerWindow=ownerWindow(nodeRef.current);containerWindow.addEventListener("resize",handleResize);return function(){handleResize.clear();containerWindow.removeEventListener("resize",handleResize);};},[onChange2]);React.useEffect(function(){setMeasurements();onChange2(scrollbarHeight.current);},[onChange2]);return/* @__PURE__ */jsx$1("div",__spreadProps(__spreadValues({style:styles$n},other),{ref:nodeRef}));}process.env.NODE_ENV!=="production"?ScrollbarSize.propTypes={onChange:PropTypes.func.isRequired}:void 0;function getTabScrollButtonUtilityClass(slot){return generateUtilityClass("MuiTabScrollButton",slot);}var tabScrollButtonClasses=generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);var useUtilityClasses$A=function useUtilityClasses$A(ownerState){var classes=ownerState.classes,orientation=ownerState.orientation,disabled2=ownerState.disabled;var slots={root:["root",orientation,disabled2&&"disabled"]};return composeClasses(slots,getTabScrollButtonUtilityClass,classes);};var TabScrollButtonRoot=styled(ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function overridesResolver(props,styles2){var ownerState=props.ownerState;return[styles2.root,ownerState.orientation&&styles2[ownerState.orientation]];}})(_defineProperty2(_defineProperty2({width:40,flexShrink:0,opacity:0.8},"&.".concat(tabScrollButtonClasses.disabled),{opacity:0}),"variants",[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]));var TabScrollButton=/* @__PURE__ */React.forwardRef(function TabScrollButton2(inProps,ref){var _b,_c;var props=useDefaultProps({props:inProps,name:"MuiTabScrollButton"});var _a=props,className=_a.className,_a$slots10=_a.slots,slots=_a$slots10===void 0?{}:_a$slots10,_a$slotProps0=_a.slotProps,slotProps=_a$slotProps0===void 0?{}:_a$slotProps0,direction=_a.direction,orientation=_a.orientation,disabled2=_a.disabled,other=__objRest(_a,["className","slots","slotProps","direction","orientation","disabled"]);var isRtl=useRtl();var ownerState=__spreadValues({isRtl:isRtl},props);var classes=useUtilityClasses$A(ownerState);var StartButtonIcon=(_b=slots.StartScrollButtonIcon)!=null?_b:KeyboardArrowLeft;var EndButtonIcon=(_c=slots.EndScrollButtonIcon)!=null?_c:KeyboardArrowRight;var startButtonIconProps=useSlotProps({elementType:StartButtonIcon,externalSlotProps:slotProps.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:ownerState});var endButtonIconProps=useSlotProps({elementType:EndButtonIcon,externalSlotProps:slotProps.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:ownerState});return/* @__PURE__ */jsx$1(TabScrollButtonRoot,__spreadProps(__spreadValues({component:"div",className:clsx(classes.root,className),ref:ref,role:null,ownerState:ownerState,tabIndex:null},other),{style:__spreadValues(__spreadValues({},other.style),orientation==="vertical"&&{"--TabScrollButton-svgRotate":"rotate(".concat(isRtl?-90:90,"deg)")}),children:direction==="left"?/* @__PURE__ */jsx$1(StartButtonIcon,__spreadValues({},startButtonIconProps)):/* @__PURE__ */jsx$1(EndButtonIcon,__spreadValues({},endButtonIconProps))}));});process.env.NODE_ENV!=="production"?TabScrollButton.propTypes={// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3121
3121
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3122
3122
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
3123
3123
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
@@ -3369,9 +3369,9 @@ tabsMeta.clientWidth!==0){tabsMeta=null;console.error(["MUI: The `value` provide
|
|
|
3369
3369
|
* Released under MIT license <https://lodash.com/license>
|
|
3370
3370
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
3371
3371
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
3372
|
-
*/lodash.exports;(function(module,exports){(function(){var undefined$1;var VERSION="4.17.21";var
|
|
3372
|
+
*/lodash.exports;(function(module,exports){(function(){var undefined$1;var VERSION="4.17.21";var LARGE_ARRAY_SIZE2=200;var CORE_ERROR_TEXT="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",FUNC_ERROR_TEXT2="Expected a function",INVALID_TEMPL_VAR_ERROR_TEXT="Invalid `variable` option passed into `_.template`";var HASH_UNDEFINED2="__lodash_hash_undefined__";var MAX_MEMOIZE_SIZE2=500;var PLACEHOLDER="__lodash_placeholder__";var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;var COMPARE_PARTIAL_FLAG2=1,COMPARE_UNORDERED_FLAG2=2;var WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,WRAP_ARY_FLAG=128,WRAP_REARG_FLAG=256,WRAP_FLIP_FLAG=512;var DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...";var HOT_COUNT=800,HOT_SPAN=16;var LAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2,LAZY_WHILE_FLAG=3;var INFINITY2=1/0,MAX_SAFE_INTEGER2=9007199254740991,MAX_INTEGER2=17976931348623157e292,NAN2=0/0;var MAX_ARRAY_LENGTH=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1;var wrapFlags=[["ary",WRAP_ARY_FLAG],["bind",WRAP_BIND_FLAG],["bindKey",WRAP_BIND_KEY_FLAG],["curry",WRAP_CURRY_FLAG],["curryRight",WRAP_CURRY_RIGHT_FLAG],["flip",WRAP_FLIP_FLAG],["partial",WRAP_PARTIAL_FLAG],["partialRight",WRAP_PARTIAL_RIGHT_FLAG],["rearg",WRAP_REARG_FLAG]];var argsTag2="[object Arguments]",arrayTag2="[object Array]",asyncTag2="[object AsyncFunction]",boolTag2="[object Boolean]",dateTag2="[object Date]",domExcTag="[object DOMException]",errorTag2="[object Error]",funcTag2="[object Function]",genTag2="[object GeneratorFunction]",mapTag2="[object Map]",numberTag2="[object Number]",nullTag2="[object Null]",objectTag2="[object Object]",promiseTag2="[object Promise]",proxyTag2="[object Proxy]",regexpTag2="[object RegExp]",setTag2="[object Set]",stringTag2="[object String]",symbolTag2="[object Symbol]",undefinedTag2="[object Undefined]",weakMapTag2="[object WeakMap]",weakSetTag="[object WeakSet]";var arrayBufferTag2="[object ArrayBuffer]",dataViewTag2="[object DataView]",float32Tag2="[object Float32Array]",float64Tag2="[object Float64Array]",int8Tag2="[object Int8Array]",int16Tag2="[object Int16Array]",int32Tag2="[object Int32Array]",uint8Tag2="[object Uint8Array]",uint8ClampedTag2="[object Uint8ClampedArray]",uint16Tag2="[object Uint16Array]",uint32Tag2="[object Uint32Array]";var reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source);var reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g;var reIsDeepProp2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp2=/^\w*$/,rePropName2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reRegExpChar2=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar2.source);var reTrimStart2=/^\s+/;var reWhitespace2=/\s/;var reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /;var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/;var reEscapeChar2=/\\(\\)?/g;var reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var reFlags=/\w*$/;var reIsBadHex2=/^[-+]0x[0-9a-f]+$/i;var reIsBinary2=/^0b[01]+$/i;var reIsHostCtor2=/^\[object .+?Constructor\]$/;var reIsOctal2=/^0o[0-7]+$/i;var reIsUint2=/^(?:0|[1-9]\d*)$/;var reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var reNoMatch=/($^)/;var reUnescapedString=/['\n\r\u2028\u2029\\]/g;var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange;var rsApos="['’]",rsAstral="["+rsAstralRange+"]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d";var rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")";var reApos=RegExp(rsApos,"g");var reComboMark=RegExp(rsCombo,"g");var reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");var reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");var reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+"]");var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var contextProps=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var templateCounter=-1;var typedArrayTags2={};typedArrayTags2[float32Tag2]=typedArrayTags2[float64Tag2]=typedArrayTags2[int8Tag2]=typedArrayTags2[int16Tag2]=typedArrayTags2[int32Tag2]=typedArrayTags2[uint8Tag2]=typedArrayTags2[uint8ClampedTag2]=typedArrayTags2[uint16Tag2]=typedArrayTags2[uint32Tag2]=true;typedArrayTags2[argsTag2]=typedArrayTags2[arrayTag2]=typedArrayTags2[arrayBufferTag2]=typedArrayTags2[boolTag2]=typedArrayTags2[dataViewTag2]=typedArrayTags2[dateTag2]=typedArrayTags2[errorTag2]=typedArrayTags2[funcTag2]=typedArrayTags2[mapTag2]=typedArrayTags2[numberTag2]=typedArrayTags2[objectTag2]=typedArrayTags2[regexpTag2]=typedArrayTags2[setTag2]=typedArrayTags2[stringTag2]=typedArrayTags2[weakMapTag2]=false;var cloneableTags={};cloneableTags[argsTag2]=cloneableTags[arrayTag2]=cloneableTags[arrayBufferTag2]=cloneableTags[dataViewTag2]=cloneableTags[boolTag2]=cloneableTags[dateTag2]=cloneableTags[float32Tag2]=cloneableTags[float64Tag2]=cloneableTags[int8Tag2]=cloneableTags[int16Tag2]=cloneableTags[int32Tag2]=cloneableTags[mapTag2]=cloneableTags[numberTag2]=cloneableTags[objectTag2]=cloneableTags[regexpTag2]=cloneableTags[setTag2]=cloneableTags[stringTag2]=cloneableTags[symbolTag2]=cloneableTags[uint8Tag2]=cloneableTags[uint8ClampedTag2]=cloneableTags[uint16Tag2]=cloneableTags[uint32Tag2]=true;cloneableTags[errorTag2]=cloneableTags[funcTag2]=cloneableTags[weakMapTag2]=false;var deburredLetters={// Latin-1 Supplement block.
|
|
3373
3373
|
"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss",// Latin Extended-A block.
|
|
3374
|
-
"Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};var htmlEscapes={"&":"&","<":"<",">":">",'"':""","'":"'"};var htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'"};var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var freeParseFloat=parseFloat,freeParseInt=parseInt;var freeGlobal=_typeof2(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal.process;var nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types;}return freeProcess&&freeProcess.binding&&freeProcess.binding("util");}catch(e){}}();var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2]);}return func.apply(thisArg,args);}function arrayAggregator(array,setter,iteratee,accumulator){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){var value=array[index2];setter(accumulator,value,iteratee(value),array);}return accumulator;}function arrayEach(array,iteratee){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(iteratee(array[index2],index2,array)===false){break;}}return array;}function arrayEachRight(array,iteratee){var length2=array==null?0:array.length;while(length2--){if(iteratee(array[length2],length2,array)===false){break;}}return array;}function arrayEvery(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(!predicate(array[index2],index2,array)){return false;}}return true;}function arrayFilter(array,predicate){var index2=-1,length2=array==null?0:array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result[resIndex++]=value;}}return result;}function arrayIncludes2(array,value){var length2=array==null?0:array.length;return!!length2&&baseIndexOf(array,value,0)>-1;}function arrayIncludesWith(array,value,comparator){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(comparator(value,array[index2])){return true;}}return false;}function arrayMap(array,iteratee){var index2=-1,length2=array==null?0:array.length,result=Array(length2);while(++index2<length2){result[index2]=iteratee(array[index2],index2,array);}return result;}function arrayPush(array,values2){var index2=-1,length2=values2.length,offset2=array.length;while(++index2<length2){array[offset2+index2]=values2[index2];}return array;}function arrayReduce(array,iteratee,accumulator,initAccum){var index2=-1,length2=array==null?0:array.length;if(initAccum&&length2){accumulator=array[++index2];}while(++index2<length2){accumulator=iteratee(accumulator,array[index2],index2,array);}return accumulator;}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length2=array==null?0:array.length;if(initAccum&&length2){accumulator=array[--length2];}while(length2--){accumulator=iteratee(accumulator,array[length2],length2,array);}return accumulator;}function arraySome(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(predicate(array[index2],index2,array)){return true;}}return false;}var asciiSize=baseProperty("length");function asciiToArray(string){return string.split("");}function asciiWords(string){return string.match(reAsciiWord)||[];}function baseFindKey(collection,predicate,eachFunc){var result;eachFunc(collection,function(value,key,collection2){if(predicate(value,key,collection2)){result=key;return false;}});return result;}function baseFindIndex(array,predicate,fromIndex,fromRight){var length2=array.length,index2=fromIndex+(fromRight?1:-1);while(fromRight?index2--:++index2<length2){if(predicate(array[index2],index2,array)){return index2;}}return-1;}function baseIndexOf(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex(array,baseIsNaN,fromIndex);}function baseIndexOfWith(array,value,fromIndex,comparator){var index2=fromIndex-1,length2=array.length;while(++index2<length2){if(comparator(array[index2],value)){return index2;}}return-1;}function baseIsNaN(value){return value!==value;}function baseMean(array,iteratee){var length2=array==null?0:array.length;return length2?baseSum(array,iteratee)/length2:NAN;}function baseProperty(key){return function(object){return object==null?undefined$1:object[key];};}function basePropertyOf(object){return function(key){return object==null?undefined$1:object[key];};}function baseReduce(collection,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection,function(value,index2,collection2){accumulator=initAccum?(initAccum=false,value):iteratee(accumulator,value,index2,collection2);});return accumulator;}function baseSortBy(array,comparer){var length2=array.length;array.sort(comparer);while(length2--){array[length2]=array[length2].value;}return array;}function baseSum(array,iteratee){var result,index2=-1,length2=array.length;while(++index2<length2){var current=iteratee(array[index2]);if(current!==undefined$1){result=result===undefined$1?current:result+current;}}return result;}function baseTimes(n,iteratee){var index2=-1,result=Array(n);while(++index2<n){result[index2]=iteratee(index2);}return result;}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]];});}function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string;}function baseUnary(func){return function(value){return func(value);};}function baseValues(object,props){return arrayMap(props,function(key){return object[key];});}function cacheHas(cache,key){return cache.has(key);}function charsStartIndex(strSymbols,chrSymbols){var index2=-1,length2=strSymbols.length;while(++index2<length2&&baseIndexOf(chrSymbols,strSymbols[index2],0)>-1){}return index2;}function charsEndIndex(strSymbols,chrSymbols){var index2=strSymbols.length;while(index2--&&baseIndexOf(chrSymbols,strSymbols[index2],0)>-1){}return index2;}function countHolders(array,placeholder){var length2=array.length,result=0;while(length2--){if(array[length2]===placeholder){++result;}}return result;}var deburrLetter=basePropertyOf(deburredLetters);var escapeHtmlChar=basePropertyOf(htmlEscapes);function escapeStringChar(chr){return"\\"+stringEscapes[chr];}function getValue2(object,key){return object==null?undefined$1:object[key];}function hasUnicode(string){return reHasUnicode.test(string);}function hasUnicodeWord(string){return reHasUnicodeWord.test(string);}function iteratorToArray(iterator){var data,result=[];while(!(data=iterator.next()).done){result.push(data.value);}return result;}function mapToArray(map){var index2=-1,result=Array(map.size);map.forEach(function(value,key){result[++index2]=[key,value];});return result;}function overArg(func,transform){return function(arg2){return func(transform(arg2));};}function replaceHolders(array,placeholder){var index2=-1,length2=array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(value===placeholder||value===PLACEHOLDER){array[index2]=PLACEHOLDER;result[resIndex++]=index2;}}return result;}function setToArray(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=value;});return result;}function setToPairs(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=[value,value];});return result;}function strictIndexOf(array,value,fromIndex){var index2=fromIndex-1,length2=array.length;while(++index2<length2){if(array[index2]===value){return index2;}}return-1;}function strictLastIndexOf(array,value,fromIndex){var index2=fromIndex+1;while(index2--){if(array[index2]===value){return index2;}}return index2;}function stringSize(string){return hasUnicode(string)?unicodeSize(string):asciiSize(string);}function stringToArray(string){return hasUnicode(string)?unicodeToArray(string):asciiToArray(string);}function trimmedEndIndex(string){var index2=string.length;while(index2--&&reWhitespace.test(string.charAt(index2))){}return index2;}var unescapeHtmlChar=basePropertyOf(htmlUnescapes);function unicodeSize(string){var result=reUnicode.lastIndex=0;while(reUnicode.test(string)){++result;}return result;}function unicodeToArray(string){return string.match(reUnicode)||[];}function unicodeWords(string){return string.match(reUnicodeWord)||[];}var runInContext=function runInContext2(context){context=context==null?root:_2.defaults(root.Object(),context,_2.pick(root,contextProps));var Array2=context.Array,Date2=context.Date,Error2=context.Error,Function2=context.Function,Math2=context.Math,Object2=context.Object,RegExp2=context.RegExp,String2=context.String,TypeError2=context.TypeError;var arrayProto=Array2.prototype,funcProto=Function2.prototype,objectProto=Object2.prototype;var coreJsData=context["__core-js_shared__"];var funcToString=funcProto.toString;var hasOwnProperty2=objectProto.hasOwnProperty;var idCounter2=0;var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:"";}();var nativeObjectToString=objectProto.toString;var objectCtorString=funcToString.call(Object2);var oldDash=root._;var reIsNative=RegExp2("^"+funcToString.call(hasOwnProperty2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Buffer2=moduleExports?context.Buffer:undefined$1,Symbol2=context.Symbol,Uint8Array2=context.Uint8Array,allocUnsafe=Buffer2?Buffer2.allocUnsafe:undefined$1,getPrototype=overArg(Object2.getPrototypeOf,Object2),objectCreate=Object2.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol2?Symbol2.isConcatSpreadable:undefined$1,symIterator=Symbol2?Symbol2.iterator:undefined$1,symToStringTag=Symbol2?Symbol2.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative(Object2,"defineProperty");func({},"",{});return func;}catch(e){}}();var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date2&&Date2.now!==root.Date.now&&Date2.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;var nativeCeil=Math2.ceil,nativeFloor=Math2.floor,nativeGetSymbols=Object2.getOwnPropertySymbols,nativeIsBuffer=Buffer2?Buffer2.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object2.keys,Object2),nativeMax=Math2.max,nativeMin=Math2.min,nativeNow=Date2.now,nativeParseInt=context.parseInt,nativeRandom=Math2.random,nativeReverse=arrayProto.reverse;var DataView=getNative(context,"DataView"),Map2=getNative(context,"Map"),Promise2=getNative(context,"Promise"),Set2=getNative(context,"Set"),WeakMap2=getNative(context,"WeakMap"),nativeCreate=getNative(Object2,"create");var metaMap=WeakMap2&&new WeakMap2();var realNames={};var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map2),promiseCtorString=toSource(Promise2),setCtorString=toSource(Set2),weakMapCtorString=toSource(WeakMap2);var symbolProto=Symbol2?Symbol2.prototype:undefined$1,symbolValueOf=symbolProto?symbolProto.valueOf:undefined$1,symbolToString=symbolProto?symbolProto.toString:undefined$1;function lodash2(value){if(isObjectLike(value)&&!isArray2(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper){return value;}if(hasOwnProperty2.call(value,"__wrapped__")){return wrapperClone(value);}}return new LodashWrapper(value);}var baseCreate=/* @__PURE__ */function(){function object(){}return function(proto){if(!isObject(proto)){return{};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result2=new object();object.prototype=undefined$1;return result2;};}();function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined$1;}lodash2.templateSettings={/**
|
|
3374
|
+
"Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};var htmlEscapes={"&":"&","<":"<",">":">",'"':""","'":"'"};var htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'"};var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var freeParseFloat=parseFloat,freeParseInt2=parseInt;var freeGlobal2=_typeof2(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var freeSelf2=(typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self&&self.Object===Object&&self;var root2=freeGlobal2||freeSelf2||Function("return this")();var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal2.process;var nodeUtil2=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types;}return freeProcess&&freeProcess.binding&&freeProcess.binding("util");}catch(e){}}();var nodeIsArrayBuffer=nodeUtil2&&nodeUtil2.isArrayBuffer,nodeIsDate=nodeUtil2&&nodeUtil2.isDate,nodeIsMap=nodeUtil2&&nodeUtil2.isMap,nodeIsRegExp=nodeUtil2&&nodeUtil2.isRegExp,nodeIsSet=nodeUtil2&&nodeUtil2.isSet,nodeIsTypedArray2=nodeUtil2&&nodeUtil2.isTypedArray;function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2]);}return func.apply(thisArg,args);}function arrayAggregator(array,setter,iteratee,accumulator){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){var value=array[index2];setter(accumulator,value,iteratee(value),array);}return accumulator;}function arrayEach(array,iteratee){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(iteratee(array[index2],index2,array)===false){break;}}return array;}function arrayEachRight(array,iteratee){var length2=array==null?0:array.length;while(length2--){if(iteratee(array[length2],length2,array)===false){break;}}return array;}function arrayEvery(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(!predicate(array[index2],index2,array)){return false;}}return true;}function arrayFilter2(array,predicate){var index2=-1,length2=array==null?0:array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result[resIndex++]=value;}}return result;}function arrayIncludes2(array,value){var length2=array==null?0:array.length;return!!length2&&baseIndexOf(array,value,0)>-1;}function arrayIncludesWith(array,value,comparator){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(comparator(value,array[index2])){return true;}}return false;}function arrayMap2(array,iteratee){var index2=-1,length2=array==null?0:array.length,result=Array(length2);while(++index2<length2){result[index2]=iteratee(array[index2],index2,array);}return result;}function arrayPush2(array,values2){var index2=-1,length2=values2.length,offset2=array.length;while(++index2<length2){array[offset2+index2]=values2[index2];}return array;}function arrayReduce(array,iteratee,accumulator,initAccum){var index2=-1,length2=array==null?0:array.length;if(initAccum&&length2){accumulator=array[++index2];}while(++index2<length2){accumulator=iteratee(accumulator,array[index2],index2,array);}return accumulator;}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length2=array==null?0:array.length;if(initAccum&&length2){accumulator=array[--length2];}while(length2--){accumulator=iteratee(accumulator,array[length2],length2,array);}return accumulator;}function arraySome2(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(predicate(array[index2],index2,array)){return true;}}return false;}var asciiSize=baseProperty2("length");function asciiToArray(string){return string.split("");}function asciiWords(string){return string.match(reAsciiWord)||[];}function baseFindKey(collection,predicate,eachFunc){var result;eachFunc(collection,function(value,key,collection2){if(predicate(value,key,collection2)){result=key;return false;}});return result;}function baseFindIndex2(array,predicate,fromIndex,fromRight){var length2=array.length,index2=fromIndex+(fromRight?1:-1);while(fromRight?index2--:++index2<length2){if(predicate(array[index2],index2,array)){return index2;}}return-1;}function baseIndexOf(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex2(array,baseIsNaN,fromIndex);}function baseIndexOfWith(array,value,fromIndex,comparator){var index2=fromIndex-1,length2=array.length;while(++index2<length2){if(comparator(array[index2],value)){return index2;}}return-1;}function baseIsNaN(value){return value!==value;}function baseMean(array,iteratee){var length2=array==null?0:array.length;return length2?baseSum(array,iteratee)/length2:NAN2;}function baseProperty2(key){return function(object){return object==null?undefined$1:object[key];};}function basePropertyOf(object){return function(key){return object==null?undefined$1:object[key];};}function baseReduce(collection,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection,function(value,index2,collection2){accumulator=initAccum?(initAccum=false,value):iteratee(accumulator,value,index2,collection2);});return accumulator;}function baseSortBy(array,comparer){var length2=array.length;array.sort(comparer);while(length2--){array[length2]=array[length2].value;}return array;}function baseSum(array,iteratee){var result,index2=-1,length2=array.length;while(++index2<length2){var current=iteratee(array[index2]);if(current!==undefined$1){result=result===undefined$1?current:result+current;}}return result;}function baseTimes2(n,iteratee){var index2=-1,result=Array(n);while(++index2<n){result[index2]=iteratee(index2);}return result;}function baseToPairs(object,props){return arrayMap2(props,function(key){return[key,object[key]];});}function baseTrim2(string){return string?string.slice(0,trimmedEndIndex2(string)+1).replace(reTrimStart2,""):string;}function baseUnary2(func){return function(value){return func(value);};}function baseValues(object,props){return arrayMap2(props,function(key){return object[key];});}function cacheHas2(cache,key){return cache.has(key);}function charsStartIndex(strSymbols,chrSymbols){var index2=-1,length2=strSymbols.length;while(++index2<length2&&baseIndexOf(chrSymbols,strSymbols[index2],0)>-1){}return index2;}function charsEndIndex(strSymbols,chrSymbols){var index2=strSymbols.length;while(index2--&&baseIndexOf(chrSymbols,strSymbols[index2],0)>-1){}return index2;}function countHolders(array,placeholder){var length2=array.length,result=0;while(length2--){if(array[length2]===placeholder){++result;}}return result;}var deburrLetter=basePropertyOf(deburredLetters);var escapeHtmlChar=basePropertyOf(htmlEscapes);function escapeStringChar(chr){return"\\"+stringEscapes[chr];}function getValue2(object,key){return object==null?undefined$1:object[key];}function hasUnicode(string){return reHasUnicode.test(string);}function hasUnicodeWord(string){return reHasUnicodeWord.test(string);}function iteratorToArray(iterator){var data,result=[];while(!(data=iterator.next()).done){result.push(data.value);}return result;}function mapToArray2(map2){var index2=-1,result=Array(map2.size);map2.forEach(function(value,key){result[++index2]=[key,value];});return result;}function overArg2(func,transform){return function(arg2){return func(transform(arg2));};}function replaceHolders(array,placeholder){var index2=-1,length2=array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(value===placeholder||value===PLACEHOLDER){array[index2]=PLACEHOLDER;result[resIndex++]=index2;}}return result;}function setToArray2(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=value;});return result;}function setToPairs(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=[value,value];});return result;}function strictIndexOf(array,value,fromIndex){var index2=fromIndex-1,length2=array.length;while(++index2<length2){if(array[index2]===value){return index2;}}return-1;}function strictLastIndexOf(array,value,fromIndex){var index2=fromIndex+1;while(index2--){if(array[index2]===value){return index2;}}return index2;}function stringSize(string){return hasUnicode(string)?unicodeSize(string):asciiSize(string);}function stringToArray(string){return hasUnicode(string)?unicodeToArray(string):asciiToArray(string);}function trimmedEndIndex2(string){var index2=string.length;while(index2--&&reWhitespace2.test(string.charAt(index2))){}return index2;}var unescapeHtmlChar=basePropertyOf(htmlUnescapes);function unicodeSize(string){var result=reUnicode.lastIndex=0;while(reUnicode.test(string)){++result;}return result;}function unicodeToArray(string){return string.match(reUnicode)||[];}function unicodeWords(string){return string.match(reUnicodeWord)||[];}var runInContext=function runInContext2(context){context=context==null?root2:_2.defaults(root2.Object(),context,_2.pick(root2,contextProps));var Array2=context.Array,Date2=context.Date,Error2=context.Error,Function2=context.Function,Math2=context.Math,Object2=context.Object,RegExp2=context.RegExp,String2=context.String,TypeError2=context.TypeError;var arrayProto2=Array2.prototype,funcProto2=Function2.prototype,objectProto2=Object2.prototype;var coreJsData2=context["__core-js_shared__"];var funcToString2=funcProto2.toString;var hasOwnProperty2=objectProto2.hasOwnProperty;var idCounter2=0;var maskSrcKey2=function(){var uid=/[^.]+$/.exec(coreJsData2&&coreJsData2.keys&&coreJsData2.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:"";}();var nativeObjectToString2=objectProto2.toString;var objectCtorString=funcToString2.call(Object2);var oldDash=root2._;var reIsNative2=RegExp2("^"+funcToString2.call(hasOwnProperty2).replace(reRegExpChar2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Buffer2=moduleExports?context.Buffer:undefined$1,Symbol2=context.Symbol,Uint8Array3=context.Uint8Array,allocUnsafe=Buffer2?Buffer2.allocUnsafe:undefined$1,getPrototype=overArg2(Object2.getPrototypeOf,Object2),objectCreate=Object2.create,propertyIsEnumerable2=objectProto2.propertyIsEnumerable,splice2=arrayProto2.splice,spreadableSymbol=Symbol2?Symbol2.isConcatSpreadable:undefined$1,symIterator=Symbol2?Symbol2.iterator:undefined$1,symToStringTag2=Symbol2?Symbol2.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative2(Object2,"defineProperty");func({},"",{});return func;}catch(e){}}();var ctxClearTimeout=context.clearTimeout!==root2.clearTimeout&&context.clearTimeout,ctxNow=Date2&&Date2.now!==root2.Date.now&&Date2.now,ctxSetTimeout=context.setTimeout!==root2.setTimeout&&context.setTimeout;var nativeCeil=Math2.ceil,nativeFloor=Math2.floor,nativeGetSymbols2=Object2.getOwnPropertySymbols,nativeIsBuffer=Buffer2?Buffer2.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto2.join,nativeKeys2=overArg2(Object2.keys,Object2),nativeMax2=Math2.max,nativeMin=Math2.min,nativeNow=Date2.now,nativeParseInt=context.parseInt,nativeRandom=Math2.random,nativeReverse=arrayProto2.reverse;var DataView2=getNative2(context,"DataView"),Map2=getNative2(context,"Map"),Promise2=getNative2(context,"Promise"),Set2=getNative2(context,"Set"),WeakMap2=getNative2(context,"WeakMap"),nativeCreate2=getNative2(Object2,"create");var metaMap=WeakMap2&&new WeakMap2();var realNames={};var dataViewCtorString2=toSource2(DataView2),mapCtorString2=toSource2(Map2),promiseCtorString2=toSource2(Promise2),setCtorString2=toSource2(Set2),weakMapCtorString2=toSource2(WeakMap2);var symbolProto2=Symbol2?Symbol2.prototype:undefined$1,symbolValueOf2=symbolProto2?symbolProto2.valueOf:undefined$1,symbolToString2=symbolProto2?symbolProto2.toString:undefined$1;function lodash2(value){if(isObjectLike2(value)&&!isArray2(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper){return value;}if(hasOwnProperty2.call(value,"__wrapped__")){return wrapperClone(value);}}return new LodashWrapper(value);}var baseCreate=/* @__PURE__ */function(){function object(){}return function(proto){if(!isObject2(proto)){return{};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result2=new object();object.prototype=undefined$1;return result2;};}();function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined$1;}lodash2.templateSettings={/**
|
|
3375
3375
|
* Used to detect `data` property values to be HTML-escaped.
|
|
3376
3376
|
*
|
|
3377
3377
|
* @memberOf _.templateSettings
|
|
@@ -3401,11 +3401,11 @@ tabsMeta.clientWidth!==0){tabsMeta=null;console.error(["MUI: The `value` provide
|
|
|
3401
3401
|
*
|
|
3402
3402
|
* @memberOf _.templateSettings.imports
|
|
3403
3403
|
* @type {Function}
|
|
3404
|
-
*/"_":lodash2}};lodash2.prototype=baseLodash.prototype;lodash2.prototype.constructor=lodash2;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;function LazyWrapper(value){this.__wrapped__=value;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=MAX_ARRAY_LENGTH;this.__views__=[];}function lazyClone(){var result2=new LazyWrapper(this.__wrapped__);result2.__actions__=copyArray(this.__actions__);result2.__dir__=this.__dir__;result2.__filtered__=this.__filtered__;result2.__iteratees__=copyArray(this.__iteratees__);result2.__takeCount__=this.__takeCount__;result2.__views__=copyArray(this.__views__);return result2;}function lazyReverse(){if(this.__filtered__){var result2=new LazyWrapper(this);result2.__dir__=-1;result2.__filtered__=true;}else{result2=this.clone();result2.__dir__*=-1;}return result2;}function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray2(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start2=view.start,end2=view.end,length2=end2-start2,index2=isRight?end2:start2-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length2,this.__takeCount__);if(!isArr||!isRight&&arrLength==length2&&takeCount==length2){return baseWrapperValue(array,this.__actions__);}var result2=[];outer:while(length2--&&resIndex<takeCount){index2+=dir;var iterIndex=-1,value=array[index2];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee2=data.iteratee,type=data.type,computed=iteratee2(value);if(type==LAZY_MAP_FLAG){value=computed;}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer;}else{break outer;}}}result2[resIndex++]=value;}return result2;}LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;function
|
|
3404
|
+
*/"_":lodash2}};lodash2.prototype=baseLodash.prototype;lodash2.prototype.constructor=lodash2;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;function LazyWrapper(value){this.__wrapped__=value;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=MAX_ARRAY_LENGTH;this.__views__=[];}function lazyClone(){var result2=new LazyWrapper(this.__wrapped__);result2.__actions__=copyArray(this.__actions__);result2.__dir__=this.__dir__;result2.__filtered__=this.__filtered__;result2.__iteratees__=copyArray(this.__iteratees__);result2.__takeCount__=this.__takeCount__;result2.__views__=copyArray(this.__views__);return result2;}function lazyReverse(){if(this.__filtered__){var result2=new LazyWrapper(this);result2.__dir__=-1;result2.__filtered__=true;}else{result2=this.clone();result2.__dir__*=-1;}return result2;}function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray2(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start2=view.start,end2=view.end,length2=end2-start2,index2=isRight?end2:start2-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length2,this.__takeCount__);if(!isArr||!isRight&&arrLength==length2&&takeCount==length2){return baseWrapperValue(array,this.__actions__);}var result2=[];outer:while(length2--&&resIndex<takeCount){index2+=dir;var iterIndex=-1,value=array[index2];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee2=data.iteratee,type=data.type,computed=iteratee2(value);if(type==LAZY_MAP_FLAG){value=computed;}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer;}else{break outer;}}}result2[resIndex++]=value;}return result2;}LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;function Hash2(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}function hashClear2(){this.__data__=nativeCreate2?nativeCreate2(null):{};this.size=0;}function hashDelete2(key){var result2=this.has(key)&&delete this.__data__[key];this.size-=result2?1:0;return result2;}function hashGet2(key){var data=this.__data__;if(nativeCreate2){var result2=data[key];return result2===HASH_UNDEFINED2?undefined$1:result2;}return hasOwnProperty2.call(data,key)?data[key]:undefined$1;}function hashHas2(key){var data=this.__data__;return nativeCreate2?data[key]!==undefined$1:hasOwnProperty2.call(data,key);}function hashSet2(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate2&&value===undefined$1?HASH_UNDEFINED2:value;return this;}Hash2.prototype.clear=hashClear2;Hash2.prototype["delete"]=hashDelete2;Hash2.prototype.get=hashGet2;Hash2.prototype.has=hashHas2;Hash2.prototype.set=hashSet2;function ListCache2(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}function listCacheClear2(){this.__data__=[];this.size=0;}function listCacheDelete2(key){var data=this.__data__,index2=assocIndexOf2(data,key);if(index2<0){return false;}var lastIndex=data.length-1;if(index2==lastIndex){data.pop();}else{splice2.call(data,index2,1);}--this.size;return true;}function listCacheGet2(key){var data=this.__data__,index2=assocIndexOf2(data,key);return index2<0?undefined$1:data[index2][1];}function listCacheHas2(key){return assocIndexOf2(this.__data__,key)>-1;}function listCacheSet2(key,value){var data=this.__data__,index2=assocIndexOf2(data,key);if(index2<0){++this.size;data.push([key,value]);}else{data[index2][1]=value;}return this;}ListCache2.prototype.clear=listCacheClear2;ListCache2.prototype["delete"]=listCacheDelete2;ListCache2.prototype.get=listCacheGet2;ListCache2.prototype.has=listCacheHas2;ListCache2.prototype.set=listCacheSet2;function MapCache2(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}function mapCacheClear2(){this.size=0;this.__data__={"hash":new Hash2(),"map":new(Map2||ListCache2)(),"string":new Hash2()};}function mapCacheDelete2(key){var result2=getMapData2(this,key)["delete"](key);this.size-=result2?1:0;return result2;}function mapCacheGet2(key){return getMapData2(this,key).get(key);}function mapCacheHas2(key){return getMapData2(this,key).has(key);}function mapCacheSet2(key,value){var data=getMapData2(this,key),size3=data.size;data.set(key,value);this.size+=data.size==size3?0:1;return this;}MapCache2.prototype.clear=mapCacheClear2;MapCache2.prototype["delete"]=mapCacheDelete2;MapCache2.prototype.get=mapCacheGet2;MapCache2.prototype.has=mapCacheHas2;MapCache2.prototype.set=mapCacheSet2;function SetCache2(values3){var index2=-1,length2=values3==null?0:values3.length;this.__data__=new MapCache2();while(++index2<length2){this.add(values3[index2]);}}function setCacheAdd2(value){this.__data__.set(value,HASH_UNDEFINED2);return this;}function setCacheHas2(value){return this.__data__.has(value);}SetCache2.prototype.add=SetCache2.prototype.push=setCacheAdd2;SetCache2.prototype.has=setCacheHas2;function Stack2(entries){var data=this.__data__=new ListCache2(entries);this.size=data.size;}function stackClear2(){this.__data__=new ListCache2();this.size=0;}function stackDelete2(key){var data=this.__data__,result2=data["delete"](key);this.size=data.size;return result2;}function stackGet2(key){return this.__data__.get(key);}function stackHas2(key){return this.__data__.has(key);}function stackSet2(key,value){var data=this.__data__;if(data instanceof ListCache2){var pairs=data.__data__;if(!Map2||pairs.length<LARGE_ARRAY_SIZE2-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache2(pairs);}data.set(key,value);this.size=data.size;return this;}Stack2.prototype.clear=stackClear2;Stack2.prototype["delete"]=stackDelete2;Stack2.prototype.get=stackGet2;Stack2.prototype.has=stackHas2;Stack2.prototype.set=stackSet2;function arrayLikeKeys2(value,inherited){var isArr=isArray2(value),isArg=!isArr&&isArguments2(value),isBuff=!isArr&&!isArg&&isBuffer2(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray2(value),skipIndexes=isArr||isArg||isBuff||isType,result2=skipIndexes?baseTimes2(value.length,String2):[],length2=result2.length;for(var key in value){if((inherited||hasOwnProperty2.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3405
3405
|
key=="length"||// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
3406
3406
|
isBuff&&(key=="offset"||key=="parent")||// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
3407
3407
|
isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||// Skip index properties.
|
|
3408
|
-
isIndex(key,length2)))){result2.push(key);}}return result2;}function arraySample(array){var length2=array.length;return length2?array[baseRandom(0,length2-1)]:undefined$1;}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length));}function arrayShuffle(array){return shuffleSelf(copyArray(array));}function assignMergeValue(object,key,value){if(value!==undefined$1&&!eq(object[key],value)||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty2.call(object,key)&&eq(objValue,value))||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assocIndexOf(array,key){var length2=array.length;while(length2--){if(eq(array[length2][0],key)){return length2;}}return-1;}function baseAggregator(collection,setter,iteratee2,accumulator){baseEach(collection,function(value,key,collection2){setter(accumulator,value,iteratee2(value),collection2);});return accumulator;}function baseAssign(object,source){return object&©Object(source,keys(source),object);}function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object);}function baseAssignValue(object,key,value){if(key=="__proto__"&&defineProperty){defineProperty(object,key,{"configurable":true,"enumerable":true,"value":value,"writable":true});}else{object[key]=value;}}function baseAt(object,paths){var index2=-1,length2=paths.length,result2=Array2(length2),skip=object==null;while(++index2<length2){result2[index2]=skip?undefined$1:get2(object,paths[index2]);}return result2;}function baseClamp(number,lower,upper){if(number===number){if(upper!==undefined$1){number=number<=upper?number:upper;}if(lower!==undefined$1){number=number>=lower?number:lower;}}return number;}function baseClone(value,bitmask,customizer,key,object,stack){var result2,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result2=object?customizer(value,key,object,stack):customizer(value);}if(result2!==undefined$1){return result2;}if(!isObject(value)){return value;}var isArr=isArray2(value);if(isArr){result2=initCloneArray(value);if(!isDeep){return copyArray(value,result2);}}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result2=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result2,value)):copySymbols(value,baseAssign(result2,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result2=initCloneByTag(value,tag,isDeep);}}stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result2);if(isSet(value)){value.forEach(function(subValue){result2.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key2){result2.set(key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined$1:keysFunc(value);arrayEach(props||value,function(subValue,key2){if(props){key2=subValue;subValue=value[key2];}assignValue(result2,key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});return result2;}function baseConforms(source){var props=keys(source);return function(object){return baseConformsTo(object,source,props);};}function baseConformsTo(object,source,props){var length2=props.length;if(object==null){return!length2;}object=Object2(object);while(length2--){var key=props[length2],predicate=source[key],value=object[key];if(value===undefined$1&&!(key in object)||!predicate(value)){return false;}}return true;}function baseDelay(func,wait,args){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}return setTimeout2(function(){func.apply(undefined$1,args);},wait);}function baseDifference(array,values3,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,isCommon=true,length2=array.length,result2=[],valuesLength=values3.length;if(!length2){return result2;}if(iteratee2){values3=arrayMap(values3,baseUnary(iteratee2));}if(comparator){includes2=arrayIncludesWith;isCommon=false;}else if(values3.length>=LARGE_ARRAY_SIZE){includes2=cacheHas;isCommon=false;values3=new SetCache(values3);}outer:while(++index2<length2){var value=array[index2],computed=iteratee2==null?value:iteratee2(value);value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var valuesIndex=valuesLength;while(valuesIndex--){if(values3[valuesIndex]===computed){continue outer;}}result2.push(value);}else if(!includes2(values3,computed,comparator)){result2.push(value);}}return result2;}var baseEach=createBaseEach(baseForOwn);var baseEachRight=createBaseEach(baseForOwnRight,true);function baseEvery(collection,predicate){var result2=true;baseEach(collection,function(value,index2,collection2){result2=!!predicate(value,index2,collection2);return result2;});return result2;}function baseExtremum(array,iteratee2,comparator){var index2=-1,length2=array.length;while(++index2<length2){var value=array[index2],current=iteratee2(value);if(current!=null&&(computed===undefined$1?current===current&&!isSymbol(current):comparator(current,computed))){var computed=current,result2=value;}}return result2;}function baseFill(array,value,start2,end2){var length2=array.length;start2=toInteger(start2);if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2===undefined$1||end2>length2?length2:toInteger(end2);if(end2<0){end2+=length2;}end2=start2>end2?0:toLength(end2);while(start2<end2){array[start2++]=value;}return array;}function baseFilter(collection,predicate){var result2=[];baseEach(collection,function(value,index2,collection2){if(predicate(value,index2,collection2)){result2.push(value);}});return result2;}function baseFlatten(array,depth,predicate,isStrict,result2){var index2=-1,length2=array.length;predicate||(predicate=isFlattenable);result2||(result2=[]);while(++index2<length2){var value=array[index2];if(depth>0&&predicate(value)){if(depth>1){baseFlatten(value,depth-1,predicate,isStrict,result2);}else{arrayPush(result2,value);}}else if(!isStrict){result2[result2.length]=value;}}return result2;}var baseFor=createBaseFor();var baseForRight=createBaseFor(true);function baseForOwn(object,iteratee2){return object&&baseFor(object,iteratee2,keys);}function baseForOwnRight(object,iteratee2){return object&&baseForRight(object,iteratee2,keys);}function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction2(object[key]);});}function baseGet(object,path){path=castPath(path,object);var index2=0,length2=path.length;while(object!=null&&index2<length2){object=object[toKey(path[index2++])];}return index2&&index2==length2?object:undefined$1;}function baseGetAllKeys(object,keysFunc,symbolsFunc){var result2=keysFunc(object);return isArray2(object)?result2:arrayPush(result2,symbolsFunc(object));}function baseGetTag(value){if(value==null){return value===undefined$1?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object2(value)?getRawTag(value):objectToString(value);}function baseGt(value,other){return value>other;}function baseHas(object,key){return object!=null&&hasOwnProperty2.call(object,key);}function baseHasIn(object,key){return object!=null&&key in Object2(object);}function baseInRange(number,start2,end2){return number>=nativeMin(start2,end2)&&number<nativeMax(start2,end2);}function baseIntersection(arrays,iteratee2,comparator){var includes2=comparator?arrayIncludesWith:arrayIncludes2,length2=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array2(othLength),maxLength=Infinity,result2=[];while(othIndex--){var array=arrays[othIndex];if(othIndex&&iteratee2){array=arrayMap(array,baseUnary(iteratee2));}maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee2||length2>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined$1;}array=arrays[0];var index2=-1,seen=caches[0];outer:while(++index2<length2&&result2.length<maxLength){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(!(seen?cacheHas(seen,computed):includes2(result2,computed,comparator))){othIndex=othLength;while(--othIndex){var cache=caches[othIndex];if(!(cache?cacheHas(cache,computed):includes2(arrays[othIndex],computed,comparator))){continue outer;}}if(seen){seen.push(computed);}result2.push(value);}}return result2;}function baseInverter(object,setter,iteratee2,accumulator){baseForOwn(object,function(value,key,object2){setter(accumulator,iteratee2(value),key,object2);});return accumulator;}function baseInvoke(object,path,args){path=castPath(path,object);object=parent(object,path);var func=object==null?object:object[toKey(last(path))];return func==null?undefined$1:apply(func,object,args);}function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag;}function baseIsArrayBuffer(value){return isObjectLike(value)&&baseGetTag(value)==arrayBufferTag;}function baseIsDate(value){return isObjectLike(value)&&baseGetTag(value)==dateTag;}function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike(value)&&!isObjectLike(other)){return value!==value&&other!==other;}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack);}function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray2(object),othIsArr=isArray2(other),objTag=objIsArr?arrayTag:getTag(object),othTag=othIsArr?arrayTag:getTag(other);objTag=objTag==argsTag?objectTag:objTag;othTag=othTag==argsTag?objectTag:othTag;var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack());return objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty2.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty2.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack());return equalObjects(object,other,bitmask,customizer,equalFunc,stack);}function baseIsMap(value){return isObjectLike(value)&&getTag(value)==mapTag;}function baseIsMatch(object,source,matchData,customizer){var index2=matchData.length,length2=index2,noCustomizer=!customizer;if(object==null){return!length2;}object=Object2(object);while(index2--){var data=matchData[index2];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index2<length2){data=matchData[index2];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined$1&&!(key in object)){return false;}}else{var stack=new Stack();if(customizer){var result2=customizer(objValue,srcValue,key,object,source,stack);}if(!(result2===undefined$1?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result2)){return false;}}}return true;}function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction2(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}function baseIsRegExp(value){return isObjectLike(value)&&baseGetTag(value)==regexpTag;}function baseIsSet(value){return isObjectLike(value)&&getTag(value)==setTag;}function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)];}function baseIteratee(value){if(typeof value=="function"){return value;}if(value==null){return identity;}if(_typeof2(value)=="object"){return isArray2(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value);}return property(value);}function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object);}var result2=[];for(var key in Object2(object)){if(hasOwnProperty2.call(object,key)&&key!="constructor"){result2.push(key);}}return result2;}function baseKeysIn(object){if(!isObject(object)){return nativeKeysIn(object);}var isProto=isPrototype(object),result2=[];for(var key in object){if(!(key=="constructor"&&(isProto||!hasOwnProperty2.call(object,key)))){result2.push(key);}}return result2;}function baseLt(value,other){return value<other;}function baseMap(collection,iteratee2){var index2=-1,result2=isArrayLike(collection)?Array2(collection.length):[];baseEach(collection,function(value,key,collection2){result2[++index2]=iteratee2(value,key,collection2);});return result2;}function baseMatches(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch(object,source,matchData);};}function baseMatchesProperty(path,srcValue){if(isKey(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey(path),srcValue);}return function(object){var objValue=get2(object,path);return objValue===undefined$1&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG);};}function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+"",object,source,stack):undefined$1;if(newValue===undefined$1){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+"",object,source,stack):undefined$1;var isCommon=newValue===undefined$1;if(isCommon){var isArr=isArray2(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray2(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else{newValue=[];}}else if(isPlainObject2(srcValue)||isArguments(srcValue)){newValue=objValue;if(isArguments(objValue)){newValue=toPlainObject(objValue);}else if(!isObject(objValue)||isFunction2(objValue)){newValue=initCloneObject(srcValue);}}else{isCommon=false;}}if(isCommon){stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack["delete"](srcValue);}assignMergeValue(object,key,newValue);}function baseNth(array,n){var length2=array.length;if(!length2){return;}n+=n<0?length2:0;return isIndex(n,length2)?array[n]:undefined$1;}function baseOrderBy(collection,iteratees,orders){if(iteratees.length){iteratees=arrayMap(iteratees,function(iteratee2){if(isArray2(iteratee2)){return function(value){return baseGet(value,iteratee2.length===1?iteratee2[0]:iteratee2);};}return iteratee2;});}else{iteratees=[identity];}var index2=-1;iteratees=arrayMap(iteratees,baseUnary(getIteratee()));var result2=baseMap(collection,function(value,key,collection2){var criteria=arrayMap(iteratees,function(iteratee2){return iteratee2(value);});return{"criteria":criteria,"index":++index2,"value":value};});return baseSortBy(result2,function(object,other){return compareMultiple(object,other,orders);});}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn(object,path);});}function basePickBy(object,paths,predicate){var index2=-1,length2=paths.length,result2={};while(++index2<length2){var path=paths[index2],value=baseGet(object,path);if(predicate(value,path)){baseSet(result2,castPath(path,object),value);}}return result2;}function basePropertyDeep(path){return function(object){return baseGet(object,path);};}function basePullAll(array,values3,iteratee2,comparator){var indexOf2=comparator?baseIndexOfWith:baseIndexOf,index2=-1,length2=values3.length,seen=array;if(array===values3){values3=copyArray(values3);}if(iteratee2){seen=arrayMap(array,baseUnary(iteratee2));}while(++index2<length2){var fromIndex=0,value=values3[index2],computed=iteratee2?iteratee2(value):value;while((fromIndex=indexOf2(seen,computed,fromIndex,comparator))>-1){if(seen!==array){splice.call(seen,fromIndex,1);}splice.call(array,fromIndex,1);}}return array;}function basePullAt(array,indexes){var length2=array?indexes.length:0,lastIndex=length2-1;while(length2--){var index2=indexes[length2];if(length2==lastIndex||index2!==previous){var previous=index2;if(isIndex(index2)){splice.call(array,index2,1);}else{baseUnset(array,index2);}}}return array;}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1));}function baseRange(start2,end2,step,fromRight){var index2=-1,length2=nativeMax(nativeCeil((end2-start2)/(step||1)),0),result2=Array2(length2);while(length2--){result2[fromRight?length2:++index2]=start2;start2+=step;}return result2;}function baseRepeat(string,n){var result2="";if(!string||n<1||n>MAX_SAFE_INTEGER){return result2;}do{if(n%2){result2+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);return result2;}function baseRest(func,start2){return setToString(overRest(func,start2,identity),func+"");}function baseSample(collection){return arraySample(values2(collection));}function baseSampleSize(collection,n){var array=values2(collection);return shuffleSelf(array,baseClamp(n,0,array.length));}function baseSet(object,path,value,customizer){if(!isObject(object)){return object;}path=castPath(path,object);var index2=-1,length2=path.length,lastIndex=length2-1,nested=object;while(nested!=null&&++index2<length2){var key=toKey(path[index2]),newValue=value;if(key==="__proto__"||key==="constructor"||key==="prototype"){return object;}if(index2!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined$1;if(newValue===undefined$1){newValue=isObject(objValue)?objValue:isIndex(path[index2+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}var baseSetData=!metaMap?identity:function(func,data){metaMap.set(func,data);return func;};var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,"toString",{"configurable":true,"enumerable":false,"value":constant(string),"writable":true});};function baseShuffle(collection){return shuffleSelf(values2(collection));}function baseSlice(array,start2,end2){var index2=-1,length2=array.length;if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2>length2?length2:end2;if(end2<0){end2+=length2;}length2=start2>end2?0:end2-start2>>>0;start2>>>=0;var result2=Array2(length2);while(++index2<length2){result2[index2]=array[index2+start2];}return result2;}function baseSome(collection,predicate){var result2;baseEach(collection,function(value,index2,collection2){result2=predicate(value,index2,collection2);return!result2;});return!!result2;}function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=="number"&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(computed!==null&&!isSymbol(computed)&&(retHighest?computed<=value:computed<value)){low=mid+1;}else{high=mid;}}return high;}return baseSortedIndexBy(array,value,identity,retHighest);}function baseSortedIndexBy(array,value,iteratee2,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee2(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined$1;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee2(array[mid]),othIsDefined=computed!==undefined$1,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else{setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else{high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}function baseSortedUniq(array,iteratee2){var index2=-1,length2=array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;if(!index2||!eq(computed,seen)){var seen=computed;result2[resIndex++]=value===0?0:value;}}return result2;}function baseToNumber(value){if(typeof value=="number"){return value;}if(isSymbol(value)){return NAN;}return+value;}function baseToString(value){if(typeof value=="string"){return value;}if(isArray2(value)){return arrayMap(value,baseToString)+"";}if(isSymbol(value)){return symbolToString?symbolToString.call(value):"";}var result2=value+"";return result2=="0"&&1/value==-INFINITY?"-0":result2;}function baseUniq(array,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,length2=array.length,isCommon=true,result2=[],seen=result2;if(comparator){isCommon=false;includes2=arrayIncludesWith;}else if(length2>=LARGE_ARRAY_SIZE){var set2=iteratee2?null:createSet(array);if(set2){return setToArray(set2);}isCommon=false;includes2=cacheHas;seen=new SetCache();}else{seen=iteratee2?[]:result2;}outer:while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer;}}if(iteratee2){seen.push(computed);}result2.push(value);}else if(!includes2(seen,computed,comparator)){if(seen!==result2){seen.push(computed);}result2.push(value);}}return result2;}function baseUnset(object,path){path=castPath(path,object);object=parent(object,path);return object==null||delete object[toKey(last(path))];}function baseUpdate(object,path,updater,customizer){return baseSet(object,path,updater(baseGet(object,path)),customizer);}function baseWhile(array,predicate,isDrop,fromRight){var length2=array.length,index2=fromRight?length2:-1;while((fromRight?index2--:++index2<length2)&&predicate(array[index2],index2,array)){}return isDrop?baseSlice(array,fromRight?0:index2,fromRight?index2+1:length2):baseSlice(array,fromRight?index2+1:0,fromRight?length2:index2);}function baseWrapperValue(value,actions){var result2=value;if(result2 instanceof LazyWrapper){result2=result2.value();}return arrayReduce(actions,function(result3,action2){return action2.func.apply(action2.thisArg,arrayPush([result3],action2.args));},result2);}function baseXor(arrays,iteratee2,comparator){var length2=arrays.length;if(length2<2){return length2?baseUniq(arrays[0]):[];}var index2=-1,result2=Array2(length2);while(++index2<length2){var array=arrays[index2],othIndex=-1;while(++othIndex<length2){if(othIndex!=index2){result2[index2]=baseDifference(result2[index2]||array,arrays[othIndex],iteratee2,comparator);}}}return baseUniq(baseFlatten(result2,1),iteratee2,comparator);}function baseZipObject(props,values3,assignFunc){var index2=-1,length2=props.length,valsLength=values3.length,result2={};while(++index2<length2){var value=index2<valsLength?values3[index2]:undefined$1;assignFunc(result2,props[index2],value);}return result2;}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[];}function castFunction(value){return typeof value=="function"?value:identity;}function castPath(value,object){if(isArray2(value)){return value;}return isKey(value,object)?[value]:stringToPath(toString(value));}var castRest=baseRest;function castSlice(array,start2,end2){var length2=array.length;end2=end2===undefined$1?length2:end2;return!start2&&end2>=length2?array:baseSlice(array,start2,end2);}var clearTimeout2=ctxClearTimeout||function(id){return root.clearTimeout(id);};function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length2=buffer.length,result2=allocUnsafe?allocUnsafe(length2):new buffer.constructor(length2);buffer.copy(result2);return result2;}function cloneArrayBuffer(arrayBuffer){var result2=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));return result2;}function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}function cloneRegExp(regexp){var result2=new regexp.constructor(regexp.source,reFlags.exec(regexp));result2.lastIndex=regexp.lastIndex;return result2;}function cloneSymbol(symbol){return symbolValueOf?Object2(symbolValueOf.call(symbol)):{};}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined$1,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol(value);var othIsDefined=other!==undefined$1,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive){return-1;}}return 0;}function compareMultiple(object,other,orders){var index2=-1,objCriteria=object.criteria,othCriteria=other.criteria,length2=objCriteria.length,ordersLength=orders.length;while(++index2<length2){var result2=compareAscending(objCriteria[index2],othCriteria[index2]);if(result2){if(index2>=ordersLength){return result2;}var order2=orders[index2];return result2*(order2=="desc"?-1:1);}}return object.index-other.index;}function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result2=Array2(leftLength+rangeLength),isUncurried=!isCurried;while(++leftIndex<leftLength){result2[leftIndex]=partials[leftIndex];}while(++argsIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[holders[argsIndex]]=args[argsIndex];}}while(rangeLength--){result2[leftIndex++]=args[argsIndex++];}return result2;}function composeArgsRight(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result2=Array2(rangeLength+rightLength),isUncurried=!isCurried;while(++argsIndex<rangeLength){result2[argsIndex]=args[argsIndex];}var offset2=argsIndex;while(++rightIndex<rightLength){result2[offset2+rightIndex]=partials[rightIndex];}while(++holdersIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[offset2+holders[holdersIndex]]=args[argsIndex++];}}return result2;}function copyArray(source,array){var index2=-1,length2=source.length;array||(array=Array2(length2));while(++index2<length2){array[index2]=source[index2];}return array;}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index2=-1,length2=props.length;while(++index2<length2){var key=props[index2];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined$1;if(newValue===undefined$1){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}function copySymbols(source,object){return copyObject(source,getSymbols(source),object);}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object);}function createAggregator(setter,initializer){return function(collection,iteratee2){var func=isArray2(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee2,2),accumulator);};}function createAssigner(assigner){return baseRest(function(object,sources){var index2=-1,length2=sources.length,customizer=length2>1?sources[length2-1]:undefined$1,guard=length2>2?sources[2]:undefined$1;customizer=assigner.length>3&&typeof customizer=="function"?(length2--,customizer):undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length2<3?undefined$1:customizer;length2=1;}object=Object2(object);while(++index2<length2){var source=sources[index2];if(source){assigner(object,source,index2,customizer);}}return object;});}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee2){if(collection==null){return collection;}if(!isArrayLike(collection)){return eachFunc(collection,iteratee2);}var length2=collection.length,index2=fromRight?length2:-1,iterable=Object2(collection);while(fromRight?index2--:++index2<length2){if(iteratee2(iterable[index2],index2,iterable)===false){break;}}return collection;};}function createBaseFor(fromRight){return function(object,iteratee2,keysFunc){var index2=-1,iterable=Object2(object),props=keysFunc(object),length2=props.length;while(length2--){var key=props[fromRight?length2:++index2];if(iteratee2(iterable[key],key,iterable)===false){break;}}return object;};}function createBind(func,bitmask,thisArg){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var fn3=this&&this!==root&&this instanceof wrapper2?Ctor:func;return fn3.apply(isBind?thisArg:this,arguments);}return wrapper2;}function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined$1;var chr=strSymbols?strSymbols[0]:string.charAt(0);var trailing=strSymbols?castSlice(strSymbols,1).join(""):string.slice(1);return chr[methodName]()+trailing;};}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"");};}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor();case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6]);}var thisBinding=baseCreate(Ctor.prototype),result2=Ctor.apply(thisBinding,args);return isObject(result2)?result2:thisBinding;};}function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2,placeholder=getHolder(wrapper2);while(index2--){args[index2]=arguments[index2];}var holders=length2<3&&args[0]!==placeholder&&args[length2-1]!==placeholder?[]:replaceHolders(args,placeholder);length2-=holders.length;if(length2<arity){return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,undefined$1,args,holders,undefined$1,undefined$1,arity-length2);}var fn3=this&&this!==root&&this instanceof wrapper2?Ctor:func;return apply(fn3,this,args);}return wrapper2;}function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object2(collection);if(!isArrayLike(collection)){var iteratee2=getIteratee(predicate,3);collection=keys(collection);predicate=function predicate(key){return iteratee2(iterable[key],key,iterable);};}var index2=findIndexFunc(collection,predicate,fromIndex);return index2>-1?iterable[iteratee2?collection[index2]:index2]:undefined$1;};}function createFlow(fromRight){return flatRest(function(funcs){var length2=funcs.length,index2=length2,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index2--){var func=funcs[index2];if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}if(prereq&&!wrapper2&&getFuncName(func)=="wrapper"){var wrapper2=new LodashWrapper([],true);}}index2=wrapper2?index2:length2;while(++index2<length2){func=funcs[index2];var funcName=getFuncName(func),data=funcName=="wrapper"?getData(func):undefined$1;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper2=wrapper2[getFuncName(data[0])].apply(wrapper2,data[3]);}else{wrapper2=func.length==1&&isLaziable(func)?wrapper2[funcName]():wrapper2.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper2&&args.length==1&&isArray2(value)){return wrapper2.plant(value).value();}var index3=0,result2=length2?funcs[index3].apply(this,args):value;while(++index3<length2){result2=funcs[index3].call(this,result2);}return result2;};});}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined$1:createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2;while(index2--){args[index2]=arguments[index2];}if(isCurried){var placeholder=getHolder(wrapper2),holdersCount=countHolders(args,placeholder);}if(partials){args=composeArgs(args,partials,holders,isCurried);}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight,isCurried);}length2-=holdersCount;if(isCurried&&length2<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,thisArg,args,newHolders,argPos,ary2,arity-length2);}var thisBinding=isBind?thisArg:this,fn3=isBindKey?thisBinding[func]:func;length2=args.length;if(argPos){args=reorder(args,argPos);}else if(isFlip&&length2>1){args.reverse();}if(isAry&&ary2<length2){args.length=ary2;}if(this&&this!==root&&this instanceof wrapper2){fn3=Ctor||createCtor(fn3);}return fn3.apply(thisBinding,args);}return wrapper2;}function createInverter(setter,toIteratee){return function(object,iteratee2){return baseInverter(object,setter,toIteratee(iteratee2),{});};}function createMathOperation(operator,defaultValue){return function(value,other){var result2;if(value===undefined$1&&other===undefined$1){return defaultValue;}if(value!==undefined$1){result2=value;}if(other!==undefined$1){if(result2===undefined$1){return other;}if(typeof value=="string"||typeof other=="string"){value=baseToString(value);other=baseToString(other);}else{value=baseToNumber(value);other=baseToNumber(other);}result2=operator(value,other);}return result2;};}function createOver(arrayFunc){return flatRest(function(iteratees){iteratees=arrayMap(iteratees,baseUnary(getIteratee()));return baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee2){return apply(iteratee2,thisArg,args);});});});}function createPadding(length2,chars2){chars2=chars2===undefined$1?" ":baseToString(chars2);var charsLength=chars2.length;if(charsLength<2){return charsLength?baseRepeat(chars2,length2):chars2;}var result2=baseRepeat(chars2,nativeCeil(length2/stringSize(chars2)));return hasUnicode(chars2)?castSlice(stringToArray(result2),0,length2).join(""):result2.slice(0,length2);}function createPartial(func,bitmask,thisArg,partials){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array2(leftLength+argsLength),fn3=this&&this!==root&&this instanceof wrapper2?Ctor:func;while(++leftIndex<leftLength){args[leftIndex]=partials[leftIndex];}while(argsLength--){args[leftIndex++]=arguments[++argsIndex];}return apply(fn3,isBind?thisArg:this,args);}return wrapper2;}function createRange(fromRight){return function(start2,end2,step){if(step&&typeof step!="number"&&isIterateeCall(start2,end2,step)){end2=step=undefined$1;}start2=toFinite(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite(end2);}step=step===undefined$1?start2<end2?1:-1:toFinite(step);return baseRange(start2,end2,step,fromRight);};}function createRelationalOperation(operator){return function(value,other){if(!(typeof value=="string"&&typeof other=="string")){value=toNumber(value);other=toNumber(other);}return operator(value,other);};}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary2,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined$1,newHoldersRight=isCurry?undefined$1:holders,newPartials=isCurry?partials:undefined$1,newPartialsRight=isCurry?undefined$1:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG);if(!(bitmask&WRAP_CURRY_BOUND_FLAG)){bitmask&=-4;}var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary2,arity];var result2=wrapFunc.apply(undefined$1,newData);if(isLaziable(func)){setData(result2,newData);}result2.placeholder=placeholder;return setWrapToString(result2,func,bitmask);}function createRound(methodName){var func=Math2[methodName];return function(number,precision){number=toNumber(number);precision=precision==null?0:nativeMin(toInteger(precision),292);if(precision&&nativeIsFinite(number)){var pair=(toString(number)+"e").split("e"),value=func(pair[0]+"e"+(+pair[1]+precision));pair=(toString(value)+"e").split("e");return+(pair[0]+"e"+(+pair[1]-precision));}return func(number);};}var createSet=!(Set2&&1/setToArray(new Set2([,-0]))[1]==INFINITY)?noop4:function(values3){return new Set2(values3);};function createToPairs(keysFunc){return function(object){var tag=getTag(object);if(tag==mapTag){return mapToArray(object);}if(tag==setTag){return setToPairs(object);}return baseToPairs(object,keysFunc(object));};}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary2,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}var length2=partials?partials.length:0;if(!length2){bitmask&=-97;partials=holders=undefined$1;}ary2=ary2===undefined$1?ary2:nativeMax(toInteger(ary2),0);arity=arity===undefined$1?arity:toInteger(arity);length2-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined$1;}var data=isBindKey?undefined$1:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined$1?isBindKey?0:func.length:nativeMax(newData[9]-length2,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=-25;}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result2=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result2=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result2=createPartial(func,bitmask,thisArg,partials);}else{result2=createHybrid.apply(undefined$1,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result2,newData),func,bitmask);}function customDefaultsAssignIn(objValue,srcValue,key,object){if(objValue===undefined$1||eq(objValue,objectProto[key])&&!hasOwnProperty2.call(object,key)){return srcValue;}return objValue;}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){if(isObject(objValue)&&isObject(srcValue)){stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined$1,customDefaultsMerge,stack);stack["delete"](srcValue);}return objValue;}function customOmitClone(value){return isPlainObject2(value)?undefined$1:value;}function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result2=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache():undefined$1;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==undefined$1){if(compared){continue;}result2=false;break;}if(seen){if(!arraySome(other,function(othValue2,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result2=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result2=false;break;}}stack["delete"](array);stack["delete"](other);return result2;}function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array2(object),new Uint8Array2(other))){return false;}return true;case boolTag:case dateTag:case numberTag:return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:return object==other+"";case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&COMPARE_PARTIAL_FLAG;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG;stack.set(object,other);var result2=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result2;case symbolTag:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other);}}return false;}function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index2=objLength;while(index2--){var key=objProps[index2];if(!(isPartial?key in other:hasOwnProperty2.call(other,key))){return false;}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result2=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index2<objLength){key=objProps[index2];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}if(!(compared===undefined$1?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result2=false;break;}skipCtor||(skipCtor=key=="constructor");}if(result2&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result2=false;}}stack["delete"](object);stack["delete"](other);return result2;}function flatRest(func){return setToString(overRest(func,undefined$1,flatten),func+"");}function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols);}function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn);}var getData=!metaMap?noop4:function(func){return metaMap.get(func);};function getFuncName(func){var result2=func.name+"",array=realNames[result2],length2=hasOwnProperty2.call(realNames,result2)?array.length:0;while(length2--){var data=array[length2],otherFunc=data.func;if(otherFunc==null||otherFunc==func){return data.name;}}return result2;}function getHolder(func){var object=hasOwnProperty2.call(lodash2,"placeholder")?lodash2:func;return object.placeholder;}function getIteratee(){var result2=lodash2.iteratee||iteratee;result2=result2===iteratee?baseIteratee:result2;return arguments.length?result2(arguments[0],arguments[1]):result2;}function getMapData(map2,key){var data=map2.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map;}function getMatchData(object){var result2=keys(object),length2=result2.length;while(length2--){var key=result2[length2],value=object[key];result2[length2]=[key,value,isStrictComparable(value)];}return result2;}function getNative(object,key){var value=getValue2(object,key);return baseIsNative(value)?value:undefined$1;}function getRawTag(value){var isOwn=hasOwnProperty2.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined$1;var unmasked=true;}catch(e){}var result2=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else{delete value[symToStringTag];}}return result2;}var getSymbols=!nativeGetSymbols?stubArray:function(object){if(object==null){return[];}object=Object2(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol);});};var getSymbolsIn=!nativeGetSymbols?stubArray:function(object){var result2=[];while(object){arrayPush(result2,getSymbols(object));object=getPrototype(object);}return result2;};var getTag=baseGetTag;if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map2&&getTag(new Map2())!=mapTag||Promise2&&getTag(Promise2.resolve())!=promiseTag||Set2&&getTag(new Set2())!=setTag||WeakMap2&&getTag(new WeakMap2())!=weakMapTag){getTag=function getTag(value){var result2=baseGetTag(value),Ctor=result2==objectTag?value.constructor:undefined$1,ctorString=Ctor?toSource(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result2;};}function getView(start2,end2,transforms){var index2=-1,length2=transforms.length;while(++index2<length2){var data=transforms[index2],size3=data.size;switch(data.type){case"drop":start2+=size3;break;case"dropRight":end2-=size3;break;case"take":end2=nativeMin(end2,start2+size3);break;case"takeRight":start2=nativeMax(start2,end2-size3);break;}}return{"start":start2,"end":end2};}function getWrapDetails(source){var match2=source.match(reWrapDetails);return match2?match2[1].split(reSplitDetails):[];}function hasPath(object,path,hasFunc){path=castPath(path,object);var index2=-1,length2=path.length,result2=false;while(++index2<length2){var key=toKey(path[index2]);if(!(result2=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result2||++index2!=length2){return result2;}length2=object==null?0:object.length;return!!length2&&isLength(length2)&&isIndex(key,length2)&&(isArray2(object)||isArguments(object));}function initCloneArray(array){var length2=array.length,result2=new array.constructor(length2);if(length2&&typeof array[0]=="string"&&hasOwnProperty2.call(array,"index")){result2.index=array.index;result2.input=array.input;}return result2;}function initCloneObject(object){return typeof object.constructor=="function"&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return cloneDataView(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return new Ctor();case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return new Ctor();case symbolTag:return cloneSymbol(object);}}function insertWrapDetails(source,details){var length2=details.length;if(!length2){return source;}var lastIndex=length2-1;details[lastIndex]=(length2>1?"& ":"")+details[lastIndex];details=details.join(length2>2?", ":" ");return source.replace(reWrapComment,"{\n/* [wrapped with "+details+"] */\n");}function isFlattenable(value){return isArray2(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol]);}function isIndex(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length2;}function isIterateeCall(value,index2,object){if(!isObject(object)){return false;}var type=_typeof2(index2);if(type=="number"?isArrayLike(object)&&isIndex(index2,object.length):type=="string"&&index2 in object){return eq(object[index2],value);}return false;}function isKey(value,object){if(isArray2(value)){return false;}var type=_typeof2(value);if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol(value)){return true;}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object2(object);}function isKeyable(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}function isLaziable(func){var funcName=getFuncName(func),other=lodash2[funcName];if(typeof other!="function"||!(funcName in LazyWrapper.prototype)){return false;}if(func===other){return true;}var data=getData(other);return!!data&&func===data[0];}function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}var isMaskable=coreJsData?isFunction2:stubFalse;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto;return value===proto;}function isStrictComparable(value){return value===value&&!isObject(value);}function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined$1||key in Object2(object));};}function memoizeCapped(func){var result2=memoize2(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear();}return key;});var cache=result2.cache;return result2;}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask<(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG|WRAP_ARY_FLAG);var isCombo=srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_CURRY_FLAG||srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_REARG_FLAG&&data[7].length<=source[8]||srcBitmask==(WRAP_ARY_FLAG|WRAP_REARG_FLAG)&&source[7].length<=source[8]&&bitmask==WRAP_CURRY_FLAG;if(!(isCommon||isCombo)){return data;}if(srcBitmask&WRAP_BIND_FLAG){data[2]=source[2];newBitmask|=bitmask&WRAP_BIND_FLAG?0:WRAP_CURRY_BOUND_FLAG;}var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):value;data[4]=partials?replaceHolders(data[3],PLACEHOLDER):source[4];}value=source[5];if(value){partials=data[5];data[5]=partials?composeArgsRight(partials,value,source[6]):value;data[6]=partials?replaceHolders(data[5],PLACEHOLDER):source[6];}value=source[7];if(value){data[7]=value;}if(srcBitmask&WRAP_ARY_FLAG){data[8]=data[8]==null?source[8]:nativeMin(data[8],source[8]);}if(data[9]==null){data[9]=source[9];}data[0]=source[0];data[1]=newBitmask;return data;}function nativeKeysIn(object){var result2=[];if(object!=null){for(var key in Object2(object)){result2.push(key);}}return result2;}function objectToString(value){return nativeObjectToString.call(value);}function overRest(func,start2,transform2){start2=nativeMax(start2===undefined$1?func.length-1:start2,0);return function(){var args=arguments,index2=-1,length2=nativeMax(args.length-start2,0),array=Array2(length2);while(++index2<length2){array[index2]=args[start2+index2];}index2=-1;var otherArgs=Array2(start2+1);while(++index2<start2){otherArgs[index2]=args[index2];}otherArgs[start2]=transform2(array);return apply(func,this,otherArgs);};}function parent(object,path){return path.length<2?object:baseGet(object,baseSlice(path,0,-1));}function reorder(array,indexes){var arrLength=array.length,length2=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);while(length2--){var index2=indexes[length2];array[length2]=isIndex(index2,arrLength)?oldArray[index2]:undefined$1;}return array;}function safeGet(object,key){if(key==="constructor"&&typeof object[key]==="function"){return;}if(key=="__proto__"){return;}return object[key];}var setData=shortOut(baseSetData);var setTimeout2=ctxSetTimeout||function(func,wait){return root.setTimeout(func,wait);};var setToString=shortOut(baseSetToString);function setWrapToString(wrapper2,reference2,bitmask){var source=reference2+"";return setToString(wrapper2,insertWrapDetails(source,updateWrapDetails(getWrapDetails(source),bitmask)));}function shortOut(func){var count2=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count2>=HOT_COUNT){return arguments[0];}}else{count2=0;}return func.apply(undefined$1,arguments);};}function shuffleSelf(array,size3){var index2=-1,length2=array.length,lastIndex=length2-1;size3=size3===undefined$1?length2:size3;while(++index2<size3){var rand=baseRandom(index2,lastIndex),value=array[rand];array[rand]=array[index2];array[index2]=value;}array.length=size3;return array;}var stringToPath=memoizeCapped(function(string){var result2=[];if(string.charCodeAt(0)===46){result2.push("");}string.replace(rePropName,function(match2,number,quote,subString){result2.push(quote?subString.replace(reEscapeChar,"$1"):number||match2);});return result2;});function toKey(value){if(typeof value=="string"||isSymbol(value)){return value;}var result2=value+"";return result2=="0"&&1/value==-INFINITY?"-0":result2;}function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}function updateWrapDetails(details,bitmask){arrayEach(wrapFlags,function(pair){var value="_."+pair[0];if(bitmask&pair[1]&&!arrayIncludes2(details,value)){details.push(value);}});return details.sort();}function wrapperClone(wrapper2){if(wrapper2 instanceof LazyWrapper){return wrapper2.clone();}var result2=new LodashWrapper(wrapper2.__wrapped__,wrapper2.__chain__);result2.__actions__=copyArray(wrapper2.__actions__);result2.__index__=wrapper2.__index__;result2.__values__=wrapper2.__values__;return result2;}function chunk(array,size3,guard){if(guard?isIterateeCall(array,size3,guard):size3===undefined$1){size3=1;}else{size3=nativeMax(toInteger(size3),0);}var length2=array==null?0:array.length;if(!length2||size3<1){return[];}var index2=0,resIndex=0,result2=Array2(nativeCeil(length2/size3));while(index2<length2){result2[resIndex++]=baseSlice(array,index2,index2+=size3);}return result2;}function compact(array){var index2=-1,length2=array==null?0:array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2];if(value){result2[resIndex++]=value;}}return result2;}function concat(){var length2=arguments.length;if(!length2){return[];}var args=Array2(length2-1),array=arguments[0],index2=length2;while(index2--){args[index2-1]=arguments[index2];}return arrayPush(isArray2(array)?copyArray(array):[array],baseFlatten(args,1));}var difference=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true)):[];});var differenceBy=baseRest(function(array,values3){var iteratee2=last(values3);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),getIteratee(iteratee2,2)):[];});var differenceWith=baseRest(function(array,values3){var comparator=last(values3);if(isArrayLikeObject(comparator)){comparator=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),undefined$1,comparator):[];});function drop(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger(n);return baseSlice(array,n<0?0:n,length2);}function dropRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger(n);n=length2-n;return baseSlice(array,0,n<0?0:n);}function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true,true):[];}function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true):[];}function fill(array,value,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(start2&&typeof start2!="number"&&isIterateeCall(array,value,start2)){start2=0;end2=length2;}return baseFill(array,value,start2,end2);}function findIndex2(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger(fromIndex);if(index2<0){index2=nativeMax(length2+index2,0);}return baseFindIndex(array,getIteratee(predicate,3),index2);}function findLastIndex(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2-1;if(fromIndex!==undefined$1){index2=toInteger(fromIndex);index2=fromIndex<0?nativeMax(length2+index2,0):nativeMin(index2,length2-1);}return baseFindIndex(array,getIteratee(predicate,3),index2,true);}function flatten(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,1):[];}function flattenDeep(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,INFINITY):[];}function flattenDepth(array,depth){var length2=array==null?0:array.length;if(!length2){return[];}depth=depth===undefined$1?1:toInteger(depth);return baseFlatten(array,depth);}function fromPairs(pairs){var index2=-1,length2=pairs==null?0:pairs.length,result2={};while(++index2<length2){var pair=pairs[index2];result2[pair[0]]=pair[1];}return result2;}function head2(array){return array&&array.length?array[0]:undefined$1;}function indexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger(fromIndex);if(index2<0){index2=nativeMax(length2+index2,0);}return baseIndexOf(array,value,index2);}function initial(array){var length2=array==null?0:array.length;return length2?baseSlice(array,0,-1):[];}var intersection=baseRest(function(arrays){var mapped=arrayMap(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[];});var intersectionBy=baseRest(function(arrays){var iteratee2=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);if(iteratee2===last(mapped)){iteratee2=undefined$1;}else{mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee2,2)):[];});var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);comparator=typeof comparator=="function"?comparator:undefined$1;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined$1,comparator):[];});function join(array,separator){return array==null?"":nativeJoin.call(array,separator);}function last(array){var length2=array==null?0:array.length;return length2?array[length2-1]:undefined$1;}function lastIndexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2;if(fromIndex!==undefined$1){index2=toInteger(fromIndex);index2=index2<0?nativeMax(length2+index2,0):nativeMin(index2,length2-1);}return value===value?strictLastIndexOf(array,value,index2):baseFindIndex(array,baseIsNaN,index2,true);}function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined$1;}var pull=baseRest(pullAll);function pullAll(array,values3){return array&&array.length&&values3&&values3.length?basePullAll(array,values3):array;}function pullAllBy(array,values3,iteratee2){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,getIteratee(iteratee2,2)):array;}function pullAllWith(array,values3,comparator){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,undefined$1,comparator):array;}var pullAt=flatRest(function(array,indexes){var length2=array==null?0:array.length,result2=baseAt(array,indexes);basePullAt(array,arrayMap(indexes,function(index2){return isIndex(index2,length2)?+index2:index2;}).sort(compareAscending));return result2;});function remove(array,predicate){var result2=[];if(!(array&&array.length)){return result2;}var index2=-1,indexes=[],length2=array.length;predicate=getIteratee(predicate,3);while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result2.push(value);indexes.push(index2);}}basePullAt(array,indexes);return result2;}function reverse(array){return array==null?array:nativeReverse.call(array);}function slice2(array,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(end2&&typeof end2!="number"&&isIterateeCall(array,start2,end2)){start2=0;end2=length2;}else{start2=start2==null?0:toInteger(start2);end2=end2===undefined$1?length2:toInteger(end2);}return baseSlice(array,start2,end2);}function sortedIndex(array,value){return baseSortedIndex(array,value);}function sortedIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2));}function sortedIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value);if(index2<length2&&eq(array[index2],value)){return index2;}}return-1;}function sortedLastIndex(array,value){return baseSortedIndex(array,value,true);}function sortedLastIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2),true);}function sortedLastIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value,true)-1;if(eq(array[index2],value)){return index2;}}return-1;}function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[];}function sortedUniqBy(array,iteratee2){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee2,2)):[];}function tail(array){var length2=array==null?0:array.length;return length2?baseSlice(array,1,length2):[];}function take(array,n,guard){if(!(array&&array.length)){return[];}n=guard||n===undefined$1?1:toInteger(n);return baseSlice(array,0,n<0?0:n);}function takeRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger(n);n=length2-n;return baseSlice(array,n<0?0:n,length2);}function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),false,true):[];}function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[];}var union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true));});var unionBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee2,2));});var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined$1,comparator);});function uniq(array){return array&&array.length?baseUniq(array):[];}function uniqBy(array,iteratee2){return array&&array.length?baseUniq(array,getIteratee(iteratee2,2)):[];}function uniqWith(array,comparator){comparator=typeof comparator=="function"?comparator:undefined$1;return array&&array.length?baseUniq(array,undefined$1,comparator):[];}function unzip(array){if(!(array&&array.length)){return[];}var length2=0;array=arrayFilter(array,function(group){if(isArrayLikeObject(group)){length2=nativeMax(group.length,length2);return true;}});return baseTimes(length2,function(index2){return arrayMap(array,baseProperty(index2));});}function unzipWith(array,iteratee2){if(!(array&&array.length)){return[];}var result2=unzip(array);if(iteratee2==null){return result2;}return arrayMap(result2,function(group){return apply(iteratee2,undefined$1,group);});}var without=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,values3):[];});var xor=baseRest(function(arrays){return baseXor(arrayFilter(arrays,isArrayLikeObject));});var xorBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee2,2));});var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseXor(arrayFilter(arrays,isArrayLikeObject),undefined$1,comparator);});var zip=baseRest(unzip);function zipObject(props,values3){return baseZipObject(props||[],values3||[],assignValue);}function zipObjectDeep(props,values3){return baseZipObject(props||[],values3||[],baseSet);}var zipWith=baseRest(function(arrays){var length2=arrays.length,iteratee2=length2>1?arrays[length2-1]:undefined$1;iteratee2=typeof iteratee2=="function"?(arrays.pop(),iteratee2):undefined$1;return unzipWith(arrays,iteratee2);});function chain(value){var result2=lodash2(value);result2.__chain__=true;return result2;}function tap(value,interceptor){interceptor(value);return value;}function thru(value,interceptor){return interceptor(value);}var wrapperAt=flatRest(function(paths){var length2=paths.length,start2=length2?paths[0]:0,value=this.__wrapped__,interceptor=function interceptor(object){return baseAt(object,paths);};if(length2>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start2)){return this.thru(interceptor);}value=value.slice(start2,+start2+(length2?1:0));value.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length2&&!array.length){array.push(undefined$1);}return array;});});function wrapperChain(){return chain(this);}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__);}function wrapperNext(){if(this.__values__===undefined$1){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined$1:this.__values__[this.__index__++];return{"done":done,"value":value};}function wrapperToIterator(){return this;}function wrapperPlant(value){var result2,parent2=this;while(parent2 instanceof baseLodash){var clone2=wrapperClone(parent2);clone2.__index__=0;clone2.__values__=undefined$1;if(result2){previous.__wrapped__=clone2;}else{result2=clone2;}var previous=clone2;parent2=parent2.__wrapped__;}previous.__wrapped__=value;return result2;}function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({"func":thru,"args":[reverse],"thisArg":undefined$1});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}var countBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){++result2[key];}else{baseAssignValue(result2,key,1);}});function every(collection,predicate,guard){var func=isArray2(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}function filter(collection,predicate){var func=isArray2(collection)?arrayFilter:baseFilter;return func(collection,getIteratee(predicate,3));}var find=createFind(findIndex2);var findLast=createFind(findLastIndex);function flatMap(collection,iteratee2){return baseFlatten(map(collection,iteratee2),1);}function flatMapDeep(collection,iteratee2){return baseFlatten(map(collection,iteratee2),INFINITY);}function flatMapDepth(collection,iteratee2,depth){depth=depth===undefined$1?1:toInteger(depth);return baseFlatten(map(collection,iteratee2),depth);}function forEach(collection,iteratee2){var func=isArray2(collection)?arrayEach:baseEach;return func(collection,getIteratee(iteratee2,3));}function forEachRight(collection,iteratee2){var func=isArray2(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee2,3));}var groupBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){result2[key].push(value);}else{baseAssignValue(result2,key,[value]);}});function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values2(collection);fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length2=collection.length;if(fromIndex<0){fromIndex=nativeMax(length2+fromIndex,0);}return isString2(collection)?fromIndex<=length2&&collection.indexOf(value,fromIndex)>-1:!!length2&&baseIndexOf(collection,value,fromIndex)>-1;}var invokeMap=baseRest(function(collection,path,args){var index2=-1,isFunc=typeof path=="function",result2=isArrayLike(collection)?Array2(collection.length):[];baseEach(collection,function(value){result2[++index2]=isFunc?apply(path,value,args):baseInvoke(value,path,args);});return result2;});var keyBy=createAggregator(function(result2,value,key){baseAssignValue(result2,key,value);});function map(collection,iteratee2){var func=isArray2(collection)?arrayMap:baseMap;return func(collection,getIteratee(iteratee2,3));}function orderBy(collection,iteratees,orders,guard){if(collection==null){return[];}if(!isArray2(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined$1:orders;if(!isArray2(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}var partition=createAggregator(function(result2,value,key){result2[key?0:1].push(value);},function(){return[[],[]];});function reduce(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEach);}function reduceRight(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEachRight);}function reject(collection,predicate){var func=isArray2(collection)?arrayFilter:baseFilter;return func(collection,negate(getIteratee(predicate,3)));}function sample(collection){var func=isArray2(collection)?arraySample:baseSample;return func(collection);}function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else{n=toInteger(n);}var func=isArray2(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}function shuffle(collection){var func=isArray2(collection)?arrayShuffle:baseShuffle;return func(collection);}function size2(collection){if(collection==null){return 0;}if(isArrayLike(collection)){return isString2(collection)?stringSize(collection):collection.length;}var tag=getTag(collection);if(tag==mapTag||tag==setTag){return collection.size;}return baseKeys(collection).length;}function some(collection,predicate,guard){var func=isArray2(collection)?arraySome:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}var sortBy=baseRest(function(collection,iteratees){if(collection==null){return[];}var length2=iteratees.length;if(length2>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length2>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});var now=ctxNow||function(){return root.Date.now();};function after(n,func){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n<1){return func.apply(this,arguments);}};}function ary(func,n,guard){n=guard?undefined$1:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,n);}function before(n,func){var result2;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n>0){result2=func.apply(this,arguments);}if(n<=1){func=undefined$1;}return result2;};}var bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(func,bitmask,thisArg,partials,holders);});var bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(key,bitmask,object,partials,holders);});function curry(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curry.placeholder;return result2;}function curryRight(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curryRight.placeholder;return result2;}function debounce2(func,wait,options){var lastArgs,lastThis,maxWait,result2,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}wait=toNumber(wait)||0;if(isObject(options)){leading=!!options.leading;maxing="maxWait"in options;maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing="trailing"in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined$1;lastInvokeTime=time;result2=func.apply(thisArg,args);return result2;}function leadingEdge(time){lastInvokeTime=time;timerId=setTimeout2(timerExpired,wait);return leading?invokeFunc(time):result2;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;return lastCallTime===undefined$1||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}timerId=setTimeout2(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined$1;if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined$1;return result2;}function cancel(){if(timerId!==undefined$1){clearTimeout2(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined$1;}function flush(){return timerId===undefined$1?result2:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined$1){return leadingEdge(lastCallTime);}if(maxing){clearTimeout2(timerId);timerId=setTimeout2(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined$1){timerId=setTimeout2(timerExpired,wait);}return result2;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}var defer2=baseRest(function(func,args){return baseDelay(func,1,args);});var delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args);});function flip2(func){return createWrap(func,WRAP_FLIP_FLAG);}function memoize2(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}var _memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized.cache;if(cache.has(key)){return cache.get(key);}var result2=func.apply(this,args);_memoized.cache=cache.set(key,result2)||cache;return result2;};_memoized.cache=new(memoize2.Cache||MapCache)();return _memoized;}memoize2.Cache=MapCache;function negate(predicate){if(typeof predicate!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2]);}return!predicate.apply(this,args);};}function once(func){return before(2,func);}var overArgs=castRest(function(func,transforms){transforms=transforms.length==1&&isArray2(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){var index2=-1,length2=nativeMin(args.length,funcsLength);while(++index2<length2){args[index2]=transforms[index2].call(this,args[index2]);}return apply(func,this,args);});});var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined$1,partials,holders);});var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined$1,partials,holders);});var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined$1,undefined$1,undefined$1,indexes);});function rest(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}start2=start2===undefined$1?start2:toInteger(start2);return baseRest(func,start2);}function spread(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}start2=start2==null?0:nativeMax(toInteger(start2),0);return baseRest(function(args){var array=args[start2],otherArgs=castSlice(args,0,start2);if(array){arrayPush(otherArgs,array);}return apply(func,this,otherArgs);});}function throttle(func,wait,options){var leading=true,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}if(isObject(options)){leading="leading"in options?!!options.leading:leading;trailing="trailing"in options?!!options.trailing:trailing;}return debounce2(func,wait,{"leading":leading,"maxWait":wait,"trailing":trailing});}function unary(func){return ary(func,1);}function wrap(value,wrapper2){return partial(castFunction(wrapper2),value);}function castArray(){if(!arguments.length){return[];}var value=arguments[0];return isArray2(value)?value:[value];}function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG);}function cloneWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}function cloneDeepWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}function conformsTo(object,source){return source==null||baseConformsTo(object,source,keys(source));}function eq(value,other){return value===other||value!==value&&other!==other;}var gt=createRelationalOperation(baseGt);var gte=createRelationalOperation(function(value,other){return value>=other;});var isArguments=baseIsArguments(/* @__PURE__ */function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty2.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee");};var isArray2=Array2.isArray;var isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer;function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction2(value);}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}function isBoolean(value){return value===true||value===false||isObjectLike(value)&&baseGetTag(value)==boolTag;}var isBuffer=nativeIsBuffer||stubFalse;var isDate2=nodeIsDate?baseUnary(nodeIsDate):baseIsDate;function isElement2(value){return isObjectLike(value)&&value.nodeType===1&&!isPlainObject2(value);}function isEmpty2(value){if(value==null){return true;}if(isArrayLike(value)&&(isArray2(value)||typeof value=="string"||typeof value.splice=="function"||isBuffer(value)||isTypedArray(value)||isArguments(value))){return!value.length;}var tag=getTag(value);if(tag==mapTag||tag==setTag){return!value.size;}if(isPrototype(value)){return!baseKeys(value).length;}for(var key in value){if(hasOwnProperty2.call(value,key)){return false;}}return true;}function isEqual2(value,other){return baseIsEqual(value,other);}function isEqualWith(value,other,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;var result2=customizer?customizer(value,other):undefined$1;return result2===undefined$1?baseIsEqual(value,other,undefined$1,customizer):!!result2;}function isError(value){if(!isObjectLike(value)){return false;}var tag=baseGetTag(value);return tag==errorTag||tag==domExcTag||typeof value.message=="string"&&typeof value.name=="string"&&!isPlainObject2(value);}function isFinite2(value){return typeof value=="number"&&nativeIsFinite(value);}function isFunction2(value){if(!isObject(value)){return false;}var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag;}function isInteger(value){return typeof value=="number"&&value==toInteger(value);}function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}function isObject(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}function isObjectLike(value){return value!=null&&_typeof2(value)=="object";}var isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;function isMatch(object,source){return object===source||baseIsMatch(object,source,getMatchData(source));}function isMatchWith(object,source,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseIsMatch(object,source,getMatchData(source),customizer);}function isNaN2(value){return isNumber(value)&&value!=+value;}function isNative(value){if(isMaskable(value)){throw new Error2(CORE_ERROR_TEXT);}return baseIsNative(value);}function isNull(value){return value===null;}function isNil(value){return value==null;}function isNumber(value){return typeof value=="number"||isObjectLike(value)&&baseGetTag(value)==numberTag;}function isPlainObject2(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty2.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}var isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp;function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER&&value<=MAX_SAFE_INTEGER;}var isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;function isString2(value){return typeof value=="string"||!isArray2(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag;}function isSymbol(value){return _typeof2(value)=="symbol"||isObjectLike(value)&&baseGetTag(value)==symbolTag;}var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;function isUndefined(value){return value===undefined$1;}function isWeakMap(value){return isObjectLike(value)&&getTag(value)==weakMapTag;}function isWeakSet(value){return isObjectLike(value)&&baseGetTag(value)==weakSetTag;}var lt=createRelationalOperation(baseLt);var lte=createRelationalOperation(function(value,other){return value<=other;});function toArray(value){if(!value){return[];}if(isArrayLike(value)){return isString2(value)?stringToArray(value):copyArray(value);}if(symIterator&&value[symIterator]){return iteratorToArray(value[symIterator]());}var tag=getTag(value),func=tag==mapTag?mapToArray:tag==setTag?setToArray:values2;return func(value);}function toFinite(value){if(!value){return value===0?value:0;}value=toNumber(value);if(value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER;}return value===value?value:0;}function toInteger(value){var result2=toFinite(value),remainder=result2%1;return result2===result2?remainder?result2-remainder:result2:0;}function toLength(value){return value?baseClamp(toInteger(value),0,MAX_ARRAY_LENGTH):0;}function toNumber(value){if(typeof value=="number"){return value;}if(isSymbol(value)){return NAN;}if(isObject(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject(other)?other+"":other;}if(typeof value!="string"){return value===0?value:+value;}value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}function toPlainObject(value){return copyObject(value,keysIn(value));}function toSafeInteger(value){return value?baseClamp(toInteger(value),-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER):value===0?value:0;}function toString(value){return value==null?"":baseToString(value);}var assign2=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source)){copyObject(source,keys(source),object);return;}for(var key in source){if(hasOwnProperty2.call(source,key)){assignValue(object,key,source[key]);}}});var assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object);});var assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer);});var assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer);});var at=flatRest(baseAt);function create(prototype,properties2){var result2=baseCreate(prototype);return properties2==null?result2:baseAssign(result2,properties2);}var defaults=baseRest(function(object,sources){object=Object2(object);var index2=-1;var length2=sources.length;var guard=length2>2?sources[2]:undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length2=1;}while(++index2<length2){var source=sources[index2];var props=keysIn(source);var propsIndex=-1;var propsLength=props.length;while(++propsIndex<propsLength){var key=props[propsIndex];var value=object[key];if(value===undefined$1||eq(value,objectProto[key])&&!hasOwnProperty2.call(object,key)){object[key]=source[key];}}}return object;});var defaultsDeep=baseRest(function(args){args.push(undefined$1,customDefaultsMerge);return apply(mergeWith,undefined$1,args);});function findKey2(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn);}function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight);}function forIn(object,iteratee2){return object==null?object:baseFor(object,getIteratee(iteratee2,3),keysIn);}function forInRight(object,iteratee2){return object==null?object:baseForRight(object,getIteratee(iteratee2,3),keysIn);}function forOwn(object,iteratee2){return object&&baseForOwn(object,getIteratee(iteratee2,3));}function forOwnRight(object,iteratee2){return object&&baseForOwnRight(object,getIteratee(iteratee2,3));}function functions(object){return object==null?[]:baseFunctions(object,keys(object));}function functionsIn(object){return object==null?[]:baseFunctions(object,keysIn(object));}function get2(object,path,defaultValue){var result2=object==null?undefined$1:baseGet(object,path);return result2===undefined$1?defaultValue:result2;}function has2(object,path){return object!=null&&hasPath(object,path,baseHas);}function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn);}var invert=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString.call(value);}result2[value]=key;},constant(identity));var invertBy=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString.call(value);}if(hasOwnProperty2.call(result2,value)){result2[value].push(key);}else{result2[value]=[key];}},getIteratee);var invoke=baseRest(baseInvoke);function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}function mapKeys(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn(object,function(value,key,object2){baseAssignValue(result2,iteratee2(value,key,object2),value);});return result2;}function mapValues(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn(object,function(value,key,object2){baseAssignValue(result2,key,iteratee2(value,key,object2));});return result2;}var merge2=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex);});var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);});var omit=flatRest(function(object,paths){var result2={};if(object==null){return result2;}var isDeep=false;paths=arrayMap(paths,function(path){path=castPath(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result2);if(isDeep){result2=baseClone(result2,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone);}var length2=paths.length;while(length2--){baseUnset(result2,paths[length2]);}return result2;});function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)));}var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});function pickBy(object,predicate){if(object==null){return{};}var props=arrayMap(getAllKeysIn(object),function(prop){return[prop];});predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0]);});}function result(object,path,defaultValue){path=castPath(path,object);var index2=-1,length2=path.length;if(!length2){length2=1;object=undefined$1;}while(++index2<length2){var value=object==null?undefined$1:object[toKey(path[index2])];if(value===undefined$1){index2=length2;value=defaultValue;}object=isFunction2(value)?value.call(object):value;}return object;}function set(object,path,value){return object==null?object:baseSet(object,path,value);}function setWith(object,path,value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseSet(object,path,value,customizer);}var toPairs=createToPairs(keys);var toPairsIn=createToPairs(keysIn);function transform(object,iteratee2,accumulator){var isArr=isArray2(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);iteratee2=getIteratee(iteratee2,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject(object)){accumulator=isFunction2(Ctor)?baseCreate(getPrototype(object)):{};}else{accumulator={};}}(isArrLike?arrayEach:baseForOwn)(object,function(value,index2,object2){return iteratee2(accumulator,value,index2,object2);});return accumulator;}function unset(object,path){return object==null?true:baseUnset(object,path);}function update(object,path,updater){return object==null?object:baseUpdate(object,path,castFunction(updater));}function updateWith(object,path,updater,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}function values2(object){return object==null?[]:baseValues(object,keys(object));}function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}function clamp2(number,lower,upper){if(upper===undefined$1){upper=lower;lower=undefined$1;}if(upper!==undefined$1){upper=toNumber(upper);upper=upper===upper?upper:0;}if(lower!==undefined$1){lower=toNumber(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber(number),lower,upper);}function inRange(number,start2,end2){start2=toFinite(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite(end2);}number=toNumber(number);return baseInRange(number,start2,end2);}function random(lower,upper,floating){if(floating&&typeof floating!="boolean"&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=="boolean"){floating=upper;upper=undefined$1;}else if(typeof lower=="boolean"){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else{lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else{upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper);}return baseRandom(lower,upper);}var camelCase=createCompounder(function(result2,word,index2){word=word.toLowerCase();return result2+(index2?capitalize2(word):word);});function capitalize2(string){return upperFirst(toString(string).toLowerCase());}function deburr(string){string=toString(string);return string&&string.replace(reLatin,deburrLetter).replace(reComboMark,"");}function endsWith(string,target,position2){string=toString(string);target=baseToString(target);var length2=string.length;position2=position2===undefined$1?length2:baseClamp(toInteger(position2),0,length2);var end2=position2;position2-=target.length;return position2>=0&&string.slice(position2,end2)==target;}function escape2(string){string=toString(string);return string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string;}function escapeRegExp(string){string=toString(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,"\\$&"):string;}var kebabCase=createCompounder(function(result2,word,index2){return result2+(index2?"-":"")+word.toLowerCase();});var lowerCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toLowerCase();});var lowerFirst=createCaseFirst("toLowerCase");function pad(string,length2,chars2){string=toString(string);length2=toInteger(length2);var strLength=length2?stringSize(string):0;if(!length2||strLength>=length2){return string;}var mid=(length2-strLength)/2;return createPadding(nativeFloor(mid),chars2)+string+createPadding(nativeCeil(mid),chars2);}function padEnd(string,length2,chars2){string=toString(string);length2=toInteger(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?string+createPadding(length2-strLength,chars2):string;}function padStart(string,length2,chars2){string=toString(string);length2=toInteger(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?createPadding(length2-strLength,chars2)+string:string;}function parseInt2(string,radix,guard){if(guard||radix==null){radix=0;}else if(radix){radix=+radix;}return nativeParseInt(toString(string).replace(reTrimStart,""),radix||0);}function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else{n=toInteger(n);}return baseRepeat(toString(string),n);}function replace2(){var args=arguments,string=toString(args[0]);return args.length<3?string:string.replace(args[1],args[2]);}var snakeCase=createCompounder(function(result2,word,index2){return result2+(index2?"_":"")+word.toLowerCase();});function split(string,separator,limit){if(limit&&typeof limit!="number"&&isIterateeCall(string,separator,limit)){separator=limit=undefined$1;}limit=limit===undefined$1?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return[];}string=toString(string);if(string&&(typeof separator=="string"||separator!=null&&!isRegExp(separator))){separator=baseToString(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}var startCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+upperFirst(word);});function startsWith(string,target,position2){string=toString(string);position2=position2==null?0:baseClamp(toInteger(position2),0,string.length);target=baseToString(target);return string.slice(position2,position2+target.length)==target;}function template(string,options,guard){var settings=lodash2.templateSettings;if(guard&&isIterateeCall(string,options,guard)){options=undefined$1;}string=toString(string);options=assignInWith({},options,settings,customDefaultsAssignIn);var imports=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys);var isEscaping,isEvaluating,index2=0,interpolate=options.interpolate||reNoMatch,source="__p += '";var reDelimiters=RegExp2((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");var sourceURL="//# sourceURL="+(hasOwnProperty2.call(options,"sourceURL")?(options.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match2,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset2){interpolateValue||(interpolateValue=esTemplateValue);source+=string.slice(index2,offset2).replace(reUnescapedString,escapeStringChar);if(escapeValue){isEscaping=true;source+="' +\n__e("+escapeValue+") +\n'";}if(evaluateValue){isEvaluating=true;source+="';\n"+evaluateValue+";\n__p += '";}if(interpolateValue){source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'";}index2=offset2+match2.length;return match2;});source+="';\n";var variable=hasOwnProperty2.call(options,"variable")&&options.variable;if(!variable){source="with (obj) {\n"+source+"\n}\n";}else if(reForbiddenIdentifierChars.test(variable)){throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);}source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined$1,importsValues);});result2.source=source;if(isError(result2)){throw result2;}return result2;}function toLower(value){return toString(value).toLowerCase();}function toUpper(value){return toString(value).toUpperCase();}function trim2(string,chars2,guard){string=toString(string);if(string&&(guard||chars2===undefined$1)){return baseTrim(string);}if(!string||!(chars2=baseToString(chars2))){return string;}var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars2),start2=charsStartIndex(strSymbols,chrSymbols),end2=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start2,end2).join("");}function trimEnd(string,chars2,guard){string=toString(string);if(string&&(guard||chars2===undefined$1)){return string.slice(0,trimmedEndIndex(string)+1);}if(!string||!(chars2=baseToString(chars2))){return string;}var strSymbols=stringToArray(string),end2=charsEndIndex(strSymbols,stringToArray(chars2))+1;return castSlice(strSymbols,0,end2).join("");}function trimStart(string,chars2,guard){string=toString(string);if(string&&(guard||chars2===undefined$1)){return string.replace(reTrimStart,"");}if(!string||!(chars2=baseToString(chars2))){return string;}var strSymbols=stringToArray(string),start2=charsStartIndex(strSymbols,stringToArray(chars2));return castSlice(strSymbols,start2).join("");}function truncate(string,options){var length2=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator="separator"in options?options.separator:separator;length2="length"in options?toInteger(options.length):length2;omission="omission"in options?baseToString(options.omission):omission;}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length;}if(length2>=strLength){return string;}var end2=length2-stringSize(omission);if(end2<1){return omission;}var result2=strSymbols?castSlice(strSymbols,0,end2).join(""):string.slice(0,end2);if(separator===undefined$1){return result2+omission;}if(strSymbols){end2+=result2.length-end2;}if(isRegExp(separator)){if(string.slice(end2).search(separator)){var match2,substring=result2;if(!separator.global){separator=RegExp2(separator.source,toString(reFlags.exec(separator))+"g");}separator.lastIndex=0;while(match2=separator.exec(substring)){var newEnd=match2.index;}result2=result2.slice(0,newEnd===undefined$1?end2:newEnd);}}else if(string.indexOf(baseToString(separator),end2)!=end2){var index2=result2.lastIndexOf(separator);if(index2>-1){result2=result2.slice(0,index2);}}return result2+omission;}function unescape2(string){string=toString(string);return string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string;}var upperCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toUpperCase();});var upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){string=toString(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}var attempt=baseRest(function(func,args){try{return apply(func,undefined$1,args);}catch(e){return isError(e)?e:new Error2(e);}});var bindAll=flatRest(function(object,methodNames){arrayEach(methodNames,function(key){key=toKey(key);baseAssignValue(object,key,bind(object[key],object));});return object;});function cond(pairs){var length2=pairs==null?0:pairs.length,toIteratee=getIteratee();pairs=!length2?[]:arrayMap(pairs,function(pair){if(typeof pair[1]!="function"){throw new TypeError2(FUNC_ERROR_TEXT);}return[toIteratee(pair[0]),pair[1]];});return baseRest(function(args){var index2=-1;while(++index2<length2){var pair=pairs[index2];if(apply(pair[0],this,args)){return apply(pair[1],this,args);}}});}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG));}function constant(value){return function(){return value;};}function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value;}var flow=createFlow();var flowRight=createFlow(true);function identity(value){return value;}function iteratee(func){return baseIteratee(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG));}function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG));}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG));}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args);};});var methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args);};});function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);if(options==null&&!(isObject(source)&&(methodNames.length||!props.length))){options=source;source=object;object=this;methodNames=baseFunctions(source,keys(source));}var chain2=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction2(object);arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func;if(isFunc){object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);actions.push({"func":func,"args":arguments,"thisArg":object});result2.__chain__=chainAll;return result2;}return func.apply(object,arrayPush([this.value()],arguments));};}});return object;}function noConflict(){if(root._===this){root._=oldDash;}return this;}function noop4(){}function nthArg(n){n=toInteger(n);return baseRest(function(args){return baseNth(args,n);});}var over=createOver(arrayMap);var overEvery=createOver(arrayEvery);var overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path);}function propertyOf(object){return function(path){return object==null?undefined$1:baseGet(object,path);};}var range=createRange();var rangeRight=createRange(true);function stubArray(){return[];}function stubFalse(){return false;}function stubObject(){return{};}function stubString(){return"";}function stubTrue(){return true;}function times(n,iteratee2){n=toInteger(n);if(n<1||n>MAX_SAFE_INTEGER){return[];}var index2=MAX_ARRAY_LENGTH,length2=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2);n-=MAX_ARRAY_LENGTH;var result2=baseTimes(length2,iteratee2);while(++index2<n){iteratee2(index2);}return result2;}function toPath(value){if(isArray2(value)){return arrayMap(value,toKey);}return isSymbol(value)?[value]:copyArray(stringToPath(toString(value)));}function uniqueId(prefix2){var id=++idCounter2;return toString(prefix2)+id;}var add=createMathOperation(function(augend,addend){return augend+addend;},0);var ceil=createRound("ceil");var divide=createMathOperation(function(dividend,divisor){return dividend/divisor;},1);var floor2=createRound("floor");function max2(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined$1;}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined$1;}function mean(array){return baseMean(array,identity);}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2));}function min2(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined$1;}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined$1;}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand;},1);var round2=createRound("round");var subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend;},0);function sum(array){return array&&array.length?baseSum(array,identity):0;}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0;}lodash2.after=after;lodash2.ary=ary;lodash2.assign=assign2;lodash2.assignIn=assignIn;lodash2.assignInWith=assignInWith;lodash2.assignWith=assignWith;lodash2.at=at;lodash2.before=before;lodash2.bind=bind;lodash2.bindAll=bindAll;lodash2.bindKey=bindKey;lodash2.castArray=castArray;lodash2.chain=chain;lodash2.chunk=chunk;lodash2.compact=compact;lodash2.concat=concat;lodash2.cond=cond;lodash2.conforms=conforms;lodash2.constant=constant;lodash2.countBy=countBy;lodash2.create=create;lodash2.curry=curry;lodash2.curryRight=curryRight;lodash2.debounce=debounce2;lodash2.defaults=defaults;lodash2.defaultsDeep=defaultsDeep;lodash2.defer=defer2;lodash2.delay=delay;lodash2.difference=difference;lodash2.differenceBy=differenceBy;lodash2.differenceWith=differenceWith;lodash2.drop=drop;lodash2.dropRight=dropRight;lodash2.dropRightWhile=dropRightWhile;lodash2.dropWhile=dropWhile;lodash2.fill=fill;lodash2.filter=filter;lodash2.flatMap=flatMap;lodash2.flatMapDeep=flatMapDeep;lodash2.flatMapDepth=flatMapDepth;lodash2.flatten=flatten;lodash2.flattenDeep=flattenDeep;lodash2.flattenDepth=flattenDepth;lodash2.flip=flip2;lodash2.flow=flow;lodash2.flowRight=flowRight;lodash2.fromPairs=fromPairs;lodash2.functions=functions;lodash2.functionsIn=functionsIn;lodash2.groupBy=groupBy;lodash2.initial=initial;lodash2.intersection=intersection;lodash2.intersectionBy=intersectionBy;lodash2.intersectionWith=intersectionWith;lodash2.invert=invert;lodash2.invertBy=invertBy;lodash2.invokeMap=invokeMap;lodash2.iteratee=iteratee;lodash2.keyBy=keyBy;lodash2.keys=keys;lodash2.keysIn=keysIn;lodash2.map=map;lodash2.mapKeys=mapKeys;lodash2.mapValues=mapValues;lodash2.matches=matches;lodash2.matchesProperty=matchesProperty;lodash2.memoize=memoize2;lodash2.merge=merge2;lodash2.mergeWith=mergeWith;lodash2.method=method;lodash2.methodOf=methodOf;lodash2.mixin=mixin;lodash2.negate=negate;lodash2.nthArg=nthArg;lodash2.omit=omit;lodash2.omitBy=omitBy;lodash2.once=once;lodash2.orderBy=orderBy;lodash2.over=over;lodash2.overArgs=overArgs;lodash2.overEvery=overEvery;lodash2.overSome=overSome;lodash2.partial=partial;lodash2.partialRight=partialRight;lodash2.partition=partition;lodash2.pick=pick;lodash2.pickBy=pickBy;lodash2.property=property;lodash2.propertyOf=propertyOf;lodash2.pull=pull;lodash2.pullAll=pullAll;lodash2.pullAllBy=pullAllBy;lodash2.pullAllWith=pullAllWith;lodash2.pullAt=pullAt;lodash2.range=range;lodash2.rangeRight=rangeRight;lodash2.rearg=rearg;lodash2.reject=reject;lodash2.remove=remove;lodash2.rest=rest;lodash2.reverse=reverse;lodash2.sampleSize=sampleSize;lodash2.set=set;lodash2.setWith=setWith;lodash2.shuffle=shuffle;lodash2.slice=slice2;lodash2.sortBy=sortBy;lodash2.sortedUniq=sortedUniq;lodash2.sortedUniqBy=sortedUniqBy;lodash2.split=split;lodash2.spread=spread;lodash2.tail=tail;lodash2.take=take;lodash2.takeRight=takeRight;lodash2.takeRightWhile=takeRightWhile;lodash2.takeWhile=takeWhile;lodash2.tap=tap;lodash2.throttle=throttle;lodash2.thru=thru;lodash2.toArray=toArray;lodash2.toPairs=toPairs;lodash2.toPairsIn=toPairsIn;lodash2.toPath=toPath;lodash2.toPlainObject=toPlainObject;lodash2.transform=transform;lodash2.unary=unary;lodash2.union=union;lodash2.unionBy=unionBy;lodash2.unionWith=unionWith;lodash2.uniq=uniq;lodash2.uniqBy=uniqBy;lodash2.uniqWith=uniqWith;lodash2.unset=unset;lodash2.unzip=unzip;lodash2.unzipWith=unzipWith;lodash2.update=update;lodash2.updateWith=updateWith;lodash2.values=values2;lodash2.valuesIn=valuesIn;lodash2.without=without;lodash2.words=words;lodash2.wrap=wrap;lodash2.xor=xor;lodash2.xorBy=xorBy;lodash2.xorWith=xorWith;lodash2.zip=zip;lodash2.zipObject=zipObject;lodash2.zipObjectDeep=zipObjectDeep;lodash2.zipWith=zipWith;lodash2.entries=toPairs;lodash2.entriesIn=toPairsIn;lodash2.extend=assignIn;lodash2.extendWith=assignInWith;mixin(lodash2,lodash2);lodash2.add=add;lodash2.attempt=attempt;lodash2.camelCase=camelCase;lodash2.capitalize=capitalize2;lodash2.ceil=ceil;lodash2.clamp=clamp2;lodash2.clone=clone;lodash2.cloneDeep=cloneDeep;lodash2.cloneDeepWith=cloneDeepWith;lodash2.cloneWith=cloneWith;lodash2.conformsTo=conformsTo;lodash2.deburr=deburr;lodash2.defaultTo=defaultTo;lodash2.divide=divide;lodash2.endsWith=endsWith;lodash2.eq=eq;lodash2.escape=escape2;lodash2.escapeRegExp=escapeRegExp;lodash2.every=every;lodash2.find=find;lodash2.findIndex=findIndex2;lodash2.findKey=findKey2;lodash2.findLast=findLast;lodash2.findLastIndex=findLastIndex;lodash2.findLastKey=findLastKey;lodash2.floor=floor2;lodash2.forEach=forEach;lodash2.forEachRight=forEachRight;lodash2.forIn=forIn;lodash2.forInRight=forInRight;lodash2.forOwn=forOwn;lodash2.forOwnRight=forOwnRight;lodash2.get=get2;lodash2.gt=gt;lodash2.gte=gte;lodash2.has=has2;lodash2.hasIn=hasIn;lodash2.head=head2;lodash2.identity=identity;lodash2.includes=includes;lodash2.indexOf=indexOf;lodash2.inRange=inRange;lodash2.invoke=invoke;lodash2.isArguments=isArguments;lodash2.isArray=isArray2;lodash2.isArrayBuffer=isArrayBuffer;lodash2.isArrayLike=isArrayLike;lodash2.isArrayLikeObject=isArrayLikeObject;lodash2.isBoolean=isBoolean;lodash2.isBuffer=isBuffer;lodash2.isDate=isDate2;lodash2.isElement=isElement2;lodash2.isEmpty=isEmpty2;lodash2.isEqual=isEqual2;lodash2.isEqualWith=isEqualWith;lodash2.isError=isError;lodash2.isFinite=isFinite2;lodash2.isFunction=isFunction2;lodash2.isInteger=isInteger;lodash2.isLength=isLength;lodash2.isMap=isMap;lodash2.isMatch=isMatch;lodash2.isMatchWith=isMatchWith;lodash2.isNaN=isNaN2;lodash2.isNative=isNative;lodash2.isNil=isNil;lodash2.isNull=isNull;lodash2.isNumber=isNumber;lodash2.isObject=isObject;lodash2.isObjectLike=isObjectLike;lodash2.isPlainObject=isPlainObject2;lodash2.isRegExp=isRegExp;lodash2.isSafeInteger=isSafeInteger;lodash2.isSet=isSet;lodash2.isString=isString2;lodash2.isSymbol=isSymbol;lodash2.isTypedArray=isTypedArray;lodash2.isUndefined=isUndefined;lodash2.isWeakMap=isWeakMap;lodash2.isWeakSet=isWeakSet;lodash2.join=join;lodash2.kebabCase=kebabCase;lodash2.last=last;lodash2.lastIndexOf=lastIndexOf;lodash2.lowerCase=lowerCase;lodash2.lowerFirst=lowerFirst;lodash2.lt=lt;lodash2.lte=lte;lodash2.max=max2;lodash2.maxBy=maxBy;lodash2.mean=mean;lodash2.meanBy=meanBy;lodash2.min=min2;lodash2.minBy=minBy;lodash2.stubArray=stubArray;lodash2.stubFalse=stubFalse;lodash2.stubObject=stubObject;lodash2.stubString=stubString;lodash2.stubTrue=stubTrue;lodash2.multiply=multiply;lodash2.nth=nth;lodash2.noConflict=noConflict;lodash2.noop=noop4;lodash2.now=now;lodash2.pad=pad;lodash2.padEnd=padEnd;lodash2.padStart=padStart;lodash2.parseInt=parseInt2;lodash2.random=random;lodash2.reduce=reduce;lodash2.reduceRight=reduceRight;lodash2.repeat=repeat;lodash2.replace=replace2;lodash2.result=result;lodash2.round=round2;lodash2.runInContext=runInContext2;lodash2.sample=sample;lodash2.size=size2;lodash2.snakeCase=snakeCase;lodash2.some=some;lodash2.sortedIndex=sortedIndex;lodash2.sortedIndexBy=sortedIndexBy;lodash2.sortedIndexOf=sortedIndexOf;lodash2.sortedLastIndex=sortedLastIndex;lodash2.sortedLastIndexBy=sortedLastIndexBy;lodash2.sortedLastIndexOf=sortedLastIndexOf;lodash2.startCase=startCase;lodash2.startsWith=startsWith;lodash2.subtract=subtract;lodash2.sum=sum;lodash2.sumBy=sumBy;lodash2.template=template;lodash2.times=times;lodash2.toFinite=toFinite;lodash2.toInteger=toInteger;lodash2.toLength=toLength;lodash2.toLower=toLower;lodash2.toNumber=toNumber;lodash2.toSafeInteger=toSafeInteger;lodash2.toString=toString;lodash2.toUpper=toUpper;lodash2.trim=trim2;lodash2.trimEnd=trimEnd;lodash2.trimStart=trimStart;lodash2.truncate=truncate;lodash2.unescape=unescape2;lodash2.uniqueId=uniqueId;lodash2.upperCase=upperCase;lodash2.upperFirst=upperFirst;lodash2.each=forEach;lodash2.eachRight=forEachRight;lodash2.first=head2;mixin(lodash2,function(){var source={};baseForOwn(lodash2,function(func,methodName){if(!hasOwnProperty2.call(lodash2.prototype,methodName)){source[methodName]=func;}});return source;}(),{"chain":false});lodash2.VERSION=VERSION;arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash2[methodName].placeholder=lodash2;});arrayEach(["drop","take"],function(methodName,index2){LazyWrapper.prototype[methodName]=function(n){n=n===undefined$1?1:nativeMax(toInteger(n),0);var result2=this.__filtered__&&!index2?new LazyWrapper(this):this.clone();if(result2.__filtered__){result2.__takeCount__=nativeMin(n,result2.__takeCount__);}else{result2.__views__.push({"size":nativeMin(n,MAX_ARRAY_LENGTH),"type":methodName+(result2.__dir__<0?"Right":"")});}return result2;};LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse();};});arrayEach(["filter","map","takeWhile"],function(methodName,index2){var type=index2+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();result2.__iteratees__.push({"iteratee":getIteratee(iteratee2,3),"type":type});result2.__filtered__=result2.__filtered__||isFilter;return result2;};});arrayEach(["head","last"],function(methodName,index2){var takeName="take"+(index2?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0];};});arrayEach(["initial","tail"],function(methodName,index2){var dropName="drop"+(index2?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=="function"){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start2,end2){start2=toInteger(start2);var result2=this;if(result2.__filtered__&&(start2>0||end2<0)){return new LazyWrapper(result2);}if(start2<0){result2=result2.takeRight(-start2);}else if(start2){result2=result2.drop(start2);}if(end2!==undefined$1){end2=toInteger(end2);result2=end2<0?result2.dropRight(-end2):result2.take(end2-start2);}return result2;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash2[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);if(!lodashFunc){return;}lodash2.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray2(value);var interceptor=function interceptor(value2){var result3=lodashFunc.apply(lodash2,arrayPush([value2],args));return isTaker&&chainAll?result3[0]:result3;};if(useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1){isLazy=useLazy=false;}var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result2=func.apply(value,args);result2.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(result2,chainAll);}if(isUnwrapped&&onlyLazy){return func.apply(this,args);}result2=this.thru(interceptor);return isUnwrapped?isTaker?result2.value()[0]:result2.value():result2;};});arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash2.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray2(value)?value:[],args);}return this[chainName](function(value2){return func.apply(isArray2(value2)?value2:[],args);});};});baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash2[methodName];if(lodashFunc){var key=lodashFunc.name+"";if(!hasOwnProperty2.call(realNames,key)){realNames[key]=[];}realNames[key].push({"name":methodName,"func":lodashFunc});}});realNames[createHybrid(undefined$1,WRAP_BIND_KEY_FLAG).name]=[{"name":"wrapper","func":undefined$1}];LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;lodash2.prototype.at=wrapperAt;lodash2.prototype.chain=wrapperChain;lodash2.prototype.commit=wrapperCommit;lodash2.prototype.next=wrapperNext;lodash2.prototype.plant=wrapperPlant;lodash2.prototype.reverse=wrapperReverse;lodash2.prototype.toJSON=lodash2.prototype.valueOf=lodash2.prototype.value=wrapperValue;lodash2.prototype.first=lodash2.prototype.head;if(symIterator){lodash2.prototype[symIterator]=wrapperToIterator;}return lodash2;};var _2=runInContext();if(freeModule){(freeModule.exports=_2)._=_2;freeExports._=_2;}else{root._=_2;}}).call(commonjsGlobal);})(lodash,lodash.exports);var lodashExports=lodash.exports;var _=/* @__PURE__ */getDefaultExportFromCjs(lodashExports);var Colors={grey:{"900":"#252525","800":"#404040","733":"#666666","700":"#797979","500":"#ACACAC","400":"#D7D7D7","200":"#EDEDED","100":"#F5F5F5","50":"#FAFAFA"},error:{"900":"#9A1414","700":"#D90C0C","500":"#FF5A5A","300":"#FF8383","100":"#FFC8C8","50":"#FCECEB"},success:{"900":"#136A19","700":"#21962A","500":"#1FB62A","300":"#43DC4E","100":"#85EA8D","50":"#CEF3D1"},secondary:{"900":"#A86501","700":"#DC8400","500":"#FF9900","300":"#FFC56F","100":"#FFE1B4","50":"#FFF3D1"},primary:{"900":"#0045AD","700":"#0058DB","500":"#0066FF","300":"#76ADFF","100":"#A7CAFF","50":"#E6F1FF"}};var getColor=function getColor2(category,shade){var _Colors$category;return((_Colors$category=Colors[category])===null||_Colors$category===void 0?void 0:_Colors$category[shade])||"";};var allColors=_.flatMap(Colors,function(shades,category){return _.compact(_.map(shades,function(color2,shade){return color2?{title:"".concat(category," ").concat(shade),color:color2}:null;}));});var ColorOptions=_.map(allColors,"title");var ColorValues=_.map(allColors,"color");var Shades=_.map(Colors["grey"],function(color2,shade){return shade;});var Categories=_.map(Colors,function(shades,category){return category;});var isValidColor=function isValidColor2(color2){return _.includes(ColorValues,color2);};var _excluded$13=["color","size","sx","children","disabled","className"];var CustomIcon=function CustomIcon2(_ref3){var _ref$color=_ref3.color,color2=_ref$color===void 0?getColor("grey","500"):_ref$color,_ref$size=_ref3.size,size2=_ref$size===void 0?"16":_ref$size,sx=_ref3.sx,children=_ref3.children,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$13);var fontSize=_translateSizeToFontSize(size2);return/* @__PURE__ */jsx$1(SvgIcon,_objectSpread2$1(_objectSpread2$1({className:className},props),{},{sx:_objectSpread2$1(_objectSpread2$1({color:color2,fontSize:"".concat(fontSize,"px"),cursor:disabled2?"default":"pointer",opacity:disabled2?0.5:1,pointerEvents:disabled2?"none":"auto"},sx),{},{"& path":{fill:color2}}),children:children}));};var _translateSizeToFontSize=function _translateSizeToFontSize2(size2){var transform={"32":"38","24":"31","20":"27","16":"23","12":"19","8":"15"};return transform[size2]||transform["16"];};var CloseRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded");var chip="chip-module_chip_U3kfP";var title$7="chip-module_title_DARz9";var text="chip-module_text_4xvju";var sm$8="chip-module_sm_lA7fZ";var lg$9="chip-module_lg_i8n4n";var tab$1="chip-module_tab_TQ-ke";var grey="chip-module_grey_M9U8T";var active$3="chip-module_active_uJfiq";var disabled$6="chip-module_disabled_21ZO5";var success$1="chip-module_success_BJKfz";var error$3="chip-module_error_an-gm";var secondary="chip-module_secondary_3aQ1S";var primary="chip-module_primary_maGV7";var action$1="chip-module_action_ByEO0";var styles$m={chip:chip,title:title$7,text:text,sm:sm$8,lg:lg$9,tab:tab$1,grey:grey,active:active$3,disabled:disabled$6,success:success$1,error:error$3,secondary:secondary,primary:primary,action:action$1};var Chip2=function Chip3(_ref3){var isActive=_ref3.isActive,title2=_ref3.title,text2=_ref3.text,_ref$onRemove=_ref3.onRemove,onRemove=_ref$onRemove===void 0?void 0:_ref$onRemove,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;var canRemove=onRemove&&!disabled2;return/* @__PURE__ */jsx$1(Grow,{in:!!text2||!!title2,unmountOnExit:true,children:/* @__PURE__ */jsxs("span",{className:clsx(styles$m.chip,styles$m[variant],styles$m[size2],_defineProperty$1(_defineProperty$1({},styles$m.disabled,disabled2),styles$m.active,isActive)),children:[/* @__PURE__ */jsxs("span",{children:[!!title2&&/* @__PURE__ */jsxs("span",{className:styles$m.title,children:[title2," ",text2&&": "]}),!!text2&&/* @__PURE__ */jsx$1("span",{className:styles$m.text,children:text2})]}),canRemove&&/* @__PURE__ */jsx$1(CustomIcon,{className:styles$m.action,size:"8",onClick:canRemove?onRemove:void 0,color:getColor("grey","700"),children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})]})});};var defaultColor$4=getColor("grey","500");var SearchPublication=function SearchPublication2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?100:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$4:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$4;return/* @__PURE__ */jsx$1("svg",{id:"Capa_1","data-name":"Capa 1",xmlns:"http://www.w3.org/2000/svg",width:size2,height:"100%",viewBox:"0 0 95 95",children:/* @__PURE__ */jsxs("g",{id:"Grupo_1315","data-name":"Grupo 1315",children:[/* @__PURE__ */jsx$1("path",{id:"Trazado_2280","data-name":"Trazado 2280",style:{fill:resolvedColor},d:"M0,13.62c.09-.37.16-.76.26-1.14a7.22,7.22,0,0,1,7-5.28H24.3c.23,0,.3,0,.29-.29a7,7,0,0,1,.58-3.25A6.37,6.37,0,0,1,33.63.6a6.47,6.47,0,0,1,1.75,1.22,6.2,6.2,0,0,1,1.89,4.53c0,.22,0,.43,0,.65s0,.2.21.2H54.63a7.21,7.21,0,0,1,7.24,7.18V34.23a1.45,1.45,0,0,1-1.33,1.55h-.16A1.44,1.44,0,0,1,59,34.5c0-.12,0-.25,0-.37V14.55a4.33,4.33,0,0,0-4.2-4.46H7.4A4.34,4.34,0,0,0,3,13.44a4.07,4.07,0,0,0-.12,1V79.22a4.33,4.33,0,0,0,4.32,4.32H54.44a1.5,1.5,0,0,1,1.49.83,1.45,1.45,0,0,1-.68,1.93,1.39,1.39,0,0,1-.53.14,2.62,2.62,0,0,1-.28,0H7.29A7.25,7.25,0,0,1,.06,80.26c0-.1,0-.21-.06-.3ZM30.91,7.2h3.23c.17,0,.23,0,.22-.22s0-.47,0-.7A3.43,3.43,0,0,0,28,4.62a4.27,4.27,0,0,0-.45,2.3c0,.22,0,.29.27.29,1,0,2.09,0,3.14,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2281","data-name":"Trazado 2281",style:{fill:resolvedColor},d:"M54.79,38.4c8.35-.94,15.22,1.7,20.36,8.46A19.94,19.94,0,0,1,79.1,57a20.86,20.86,0,0,1-2,11.63.24.24,0,0,0,.05.34h0L92.23,82.66a5.82,5.82,0,1,1-7.83,8.62l-.07-.06Q76.76,84.37,69.2,77.47c-.15-.13-.23-.09-.37,0a21.24,21.24,0,0,1-7,2.6,21.08,21.08,0,0,1-21-8.55,20.4,20.4,0,0,1-3.79-10A21.15,21.15,0,0,1,51.26,39.31,23.75,23.75,0,0,1,54.79,38.4Zm21.72,18A18.62,18.62,0,1,0,61,77.68h0A18.64,18.64,0,0,0,76.51,56.39Zm15.08,30a3.31,3.31,0,0,0-1.12-2L75.89,71.17c-.16-.14-.23-.14-.36,0a20.4,20.4,0,0,1-4.16,4.49c-.2.15-.19.23,0,.39,1.78,1.6,3.56,3.22,5.34,4.84l9.39,8.52a3.32,3.32,0,0,0,5.5-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2282","data-name":"Trazado 2282",style:{fill:resolvedColor},d:"M31,19.9H20.38A5.76,5.76,0,0,1,14.57,15a3.12,3.12,0,0,1,0-1.1,1.45,1.45,0,0,1,2.88.22,2.85,2.85,0,0,0,1.74,2.68A2.54,2.54,0,0,0,20.3,17H42a2.9,2.9,0,0,0,2.89-2.85,1.46,1.46,0,0,1,2.91-.07v.1a5.8,5.8,0,0,1-5.72,5.72Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2283","data-name":"Trazado 2283",style:{fill:resolvedColor},d:"M13.22,68V66.07A1.86,1.86,0,0,1,15,64.15c1.36,0,2.73,0,4.09,0A1.86,1.86,0,0,1,20.88,66q0,2,0,3.93A1.91,1.91,0,0,1,19,71.83c-1.28,0-2.57,0-3.85,0a1.91,1.91,0,0,1-1.91-1.9V68Zm2.24,0v.76a.77.77,0,0,0,.71.85.28.28,0,0,0,.13,0c.5,0,1,0,1.49,0a.78.78,0,0,0,.85-.73v-.09c0-.51,0-1,0-1.54a.76.76,0,0,0-.72-.8h0a12.2,12.2,0,0,0-1.71,0,.76.76,0,0,0-.72.79h0V68Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2284","data-name":"Trazado 2284",style:{fill:resolvedColor},d:"M13.22,52.67V50.75a1.87,1.87,0,0,1,1.83-1.9q2,0,4,0a1.88,1.88,0,0,1,1.84,1.81c0,1.35,0,2.71,0,4.06a1.84,1.84,0,0,1-1.77,1.79,39.85,39.85,0,0,1-4.09,0,1.85,1.85,0,0,1-1.81-1.89.19.19,0,0,1,0-.08ZM17,54.27h.76a.79.79,0,0,0,.84-.73v-.07c0-.52,0-1,0-1.57a.76.76,0,0,0-.71-.79c-.6,0-1.2,0-1.79,0a.74.74,0,0,0-.68.75q0,.83,0,1.65a.77.77,0,0,0,.77.75Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2285","data-name":"Trazado 2285",style:{fill:resolvedColor},d:"M13.22,37.38v-2a1.88,1.88,0,0,1,1.86-1.87q2,0,3.93,0a1.85,1.85,0,0,1,1.86,1.78c0,1.37,0,2.74,0,4.12A1.85,1.85,0,0,1,19,41.23q-2,0-4,0a1.88,1.88,0,0,1-1.85-1.9ZM17.05,39h.75a.8.8,0,0,0,.84-.74v-.06c0-.53,0-1,0-1.57a.77.77,0,0,0-.75-.8H16.2a.77.77,0,0,0-.74.76c0,.55,0,1.1,0,1.66a.77.77,0,0,0,.77.75c.27,0,.54,0,.81,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2286","data-name":"Trazado 2286",style:{fill:resolvedColor},d:"M30.54,38.84h-5a1.45,1.45,0,0,1-1.47-1.43A1.48,1.48,0,0,1,25.26,36a2,2,0,0,1,.35,0h9.87a1.45,1.45,0,0,1,.11,2.9H30.54Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2287","data-name":"Trazado 2287",style:{fill:resolvedColor},d:"M28.44,54.14H25.59a1.44,1.44,0,0,1-1.49-1.39s0,0,0-.06a1.48,1.48,0,0,1,1.47-1.46h5.73a1.45,1.45,0,0,1,1.52,1.38,1.44,1.44,0,0,1-1.37,1.52h-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2288","data-name":"Trazado 2288",style:{fill:resolvedColor},d:"M27.36,66.54c.63,0,1.26,0,1.9,0a1.44,1.44,0,0,1,1.36,1.27,1.47,1.47,0,0,1-1,1.56,1.6,1.6,0,0,1-.54.07H25.64a1.46,1.46,0,0,1-.17-2.91.43.43,0,0,1,.16,0h1.73Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2289","data-name":"Trazado 2289",style:{fill:resolvedColor},d:"M54.49,47.45a13.8,13.8,0,0,1,8.82,1.95,12.64,12.64,0,0,1,4.62,5.36,18.36,18.36,0,0,1,1.44,4.33,1.24,1.24,0,0,1-1,1.45h0A1.22,1.22,0,0,1,67,59.63a16.4,16.4,0,0,0-1.56-4.37A9.91,9.91,0,0,0,57,49.91a11.82,11.82,0,0,0-2.59.08,1.23,1.23,0,0,1-1.47-.94v0a1.23,1.23,0,0,1,1-1.47H54Z"})]})});};var defaultColor$3=getColor("primary","500");var MailIcon=function MailIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$3:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$3;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M22 6L12 13L2 6",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$2=getColor("primary","500");var FileIcon=function FileIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$2:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$2;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M13 2V9H20",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$1=getColor("primary","500");var PriceDownIcon=function PriceDownIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$1:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$1;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),/* @__PURE__ */jsx$1("path",{d:"M19.3793 14.424V23.1464",stroke:resolvedColor,strokeWidth:"2"}),/* @__PURE__ */jsx$1("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:resolvedColor})]});};var defaultColor=getColor("grey","500");var PriceCloseIcon=function PriceCloseIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_970",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),/* @__PURE__ */jsx$1("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:resolvedColor})]});};function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof(o);}function toPrimitive(t,r2){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _defineProperty(e,r2,t){return(r2=toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys(Object(t),true).forEach(function(r3){_defineProperty(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _arrayWithHoles(r2){if(Array.isArray(r2))return r2;}function _iterableToArrayLimit(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l){if(Object(t)!==t)return;f=false;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayLikeToArray(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _unsupportedIterableToArray(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r2,a):void 0;}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _slicedToArray(r2,e){return _arrayWithHoles(r2)||_iterableToArrayLimit(r2,e)||_unsupportedIterableToArray(r2,e)||_nonIterableRest();}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}var _excluded$12=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$12);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback(function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta);}setStateValue(value2);},[propsOnChange]);var onInputChange2=useCallback(function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta);}setStateInputValue(newValue!==void 0?newValue:value2);},[propsOnInputChange]);var onMenuOpen=useCallback(function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen();}setStateMenuIsOpen(true);},[propsOnMenuOpen]);var onMenuClose=useCallback(function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose();}setStateMenuIsOpen(false);},[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange2,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value});}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r2){for(var t=0;t<r2.length;t++){var o=r2[t];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,toPropertyKey(o.key),o);}}function _createClass(e,r2,t){return r2&&_defineProperties(e.prototype,r2),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:false}),e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),Object.defineProperty(t,"prototype",{writable:false}),e&&_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t2){return t2.__proto__||Object.getPrototypeOf(t2);},_getPrototypeOf(t);}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t2){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct2(){return!!t;})();}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _createSuper(t){var r2=_isNativeReflectConstruct();return function(){var e,o=_getPrototypeOf(t);if(r2){var s=_getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s);}else e=o.apply(this,arguments);return _possibleConstructorReturn(this,e);};}function _arrayWithoutHoles(r2){if(Array.isArray(r2))return _arrayLikeToArray(r2);}function _iterableToArray(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _toConsumableArray(r2){return _arrayWithoutHoles(r2)||_iterableToArray(r2)||_unsupportedIterableToArray(r2)||_nonIterableSpread();}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}var sides=["top","right","bottom","left"];var min$2=Math.min;var max$2=Math.max;var round$2=Math.round;var floor=Math.floor;var createCoords=function createCoords(v){return{x:v,y:v};};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(start2,value,end2){return max$2(start2,min$2(value,end2));}function evaluate(value,param){return typeof value==="function"?value(param):value;}function getSide(placement){return placement.split("-")[0];}function getAlignment(placement){return placement.split("-")[1];}function getOppositeAxis(axis){return axis==="x"?"y":"x";}function getAxisLength(axis){return axis==="y"?"height":"width";}var yAxisSides=/* @__PURE__ */new Set(["top","bottom"]);function getSideAxis(placement){return yAxisSides.has(getSide(placement))?"y":"x";}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement));}function getAlignmentSides(placement,rects,rtl){if(rtl===void 0){rtl=false;}var alignment=getAlignment(placement);var alignmentAxis=getAlignmentAxis(placement);var length2=getAxisLength(alignmentAxis);var mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";if(rects.reference[length2]>rects.floating[length2]){mainAlignmentSide=getOppositePlacement$1(mainAlignmentSide);}return[mainAlignmentSide,getOppositePlacement$1(mainAlignmentSide)];}function getExpandedPlacements(placement){var oppositePlacement=getOppositePlacement$1(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)];}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,function(alignment){return oppositeAlignmentMap[alignment];});}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":if(rtl)return isStart?rlPlacement:lrPlacement;return isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[];}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){var alignment=getAlignment(placement);var list2=getSideList(getSide(placement),direction==="start",rtl);if(alignment){list2=list2.map(function(side){return side+"-"+alignment;});if(flipAlignment){list2=list2.concat(list2.map(getOppositeAlignmentPlacement));}}return list2;}function getOppositePlacement$1(placement){return placement.replace(/left|right|bottom|top/g,function(side){return oppositeSideMap[side];});}function expandPaddingObject(padding2){return __spreadValues({top:0,right:0,bottom:0,left:0},padding2);}function getPaddingObject(padding2){return typeof padding2!=="number"?expandPaddingObject(padding2):{top:padding2,right:padding2,bottom:padding2,left:padding2};}function rectToClientRect$1(rect){var x=rect.x,y=rect.y,width2=rect.width,height2=rect.height;return{width:width2,height:height2,top:y,left:x,right:x+width2,bottom:y+height2,x:x,y:y};}function computeCoordsFromPlacement(_ref3,placement,rtl){var reference2=_ref3.reference,floating=_ref3.floating;var sideAxis=getSideAxis(placement);var alignmentAxis=getAlignmentAxis(placement);var alignLength=getAxisLength(alignmentAxis);var side=getSide(placement);var isVertical=sideAxis==="y";var commonX=reference2.x+reference2.width/2-floating.width/2;var commonY=reference2.y+reference2.height/2-floating.height/2;var commonAlign=reference2[alignLength]/2-floating[alignLength]/2;var coords;switch(side){case"top":coords={x:commonX,y:reference2.y-floating.height};break;case"bottom":coords={x:commonX,y:reference2.y+reference2.height};break;case"right":coords={x:reference2.x+reference2.width,y:commonY};break;case"left":coords={x:reference2.x-floating.width,y:commonY};break;default:coords={x:reference2.x,y:reference2.y};}switch(getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break;}return coords;}var computePosition$1=function computePosition$1(reference2,floating,config2){return __async(void 0,null,/*#__PURE__*/_regenerator().m(function _callee(){var _config2$placement,placement,_config2$strategy,strategy,_config2$middleware,middleware2,platform2,validMiddleware,rtl,rects,_computeCoordsFromPla,x,y,statefulPlacement,middlewareData,resetCount,_i0,_validMiddleware$_i,name,fn3,_yield$fn,nextX,nextY,data,reset,_computeCoordsFromPla2,_t;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:_config2$placement=config2.placement,placement=_config2$placement===void 0?"bottom":_config2$placement,_config2$strategy=config2.strategy,strategy=_config2$strategy===void 0?"absolute":_config2$strategy,_config2$middleware=config2.middleware,middleware2=_config2$middleware===void 0?[]:_config2$middleware,platform2=config2.platform;validMiddleware=middleware2.filter(Boolean);_context.n=1;return platform2.isRTL==null?void 0:platform2.isRTL(floating);case 1:rtl=_context.v;_context.n=2;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 2:rects=_context.v;_computeCoordsFromPla=computeCoordsFromPlacement(rects,placement,rtl),x=_computeCoordsFromPla.x,y=_computeCoordsFromPla.y;statefulPlacement=placement;middlewareData={};resetCount=0;_i0=0;case 3:if(!(_i0<validMiddleware.length)){_context.n=11;break;}_validMiddleware$_i=validMiddleware[_i0],name=_validMiddleware$_i.name,fn3=_validMiddleware$_i.fn;_context.n=4;return fn3({x:x,y:y,initialPlacement:placement,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData,rects:rects,platform:platform2,elements:{reference:reference2,floating:floating}});case 4:_yield$fn=_context.v;nextX=_yield$fn.x;nextY=_yield$fn.y;data=_yield$fn.data;reset=_yield$fn.reset;x=nextX!=null?nextX:x;y=nextY!=null?nextY:y;middlewareData=__spreadProps(__spreadValues({},middlewareData),_defineProperty2({},name,__spreadValues(__spreadValues({},middlewareData[name]),data)));if(!(reset&&resetCount<=50)){_context.n=10;break;}resetCount++;if(!(_typeof2(reset)==="object")){_context.n=9;break;}if(reset.placement){statefulPlacement=reset.placement;}if(!reset.rects){_context.n=8;break;}if(!(reset.rects===true)){_context.n=6;break;}_context.n=5;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 5:_t=_context.v;_context.n=7;break;case 6:_t=reset.rects;case 7:rects=_t;case 8:_computeCoordsFromPla2=computeCoordsFromPlacement(rects,statefulPlacement,rtl);x=_computeCoordsFromPla2.x;y=_computeCoordsFromPla2.y;case 9:_i0=-1;case 10:_i0++;_context.n=3;break;case 11:return _context.a(2,{x:x,y:y,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData});}},_callee);}));};function detectOverflow$1(state,options){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee2(){var _await$platform$isEle,x,y,platform2,rects,elements,strategy,_evaluate,_evaluate$boundary,boundary,_evaluate$rootBoundar,rootBoundary,_evaluate$elementCont,elementContext,_evaluate$altBoundary,altBoundary,_evaluate$padding,padding2,paddingObject,altContext,element,clippingClientRect,rect,offsetParent,offsetScale,elementClientRect,_t2,_t3,_t4,_t5,_t6,_t7,_t8,_t9,_t0,_t1,_t10,_t11,_t12,_t13;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:if(options===void 0){options={};}x=state.x,y=state.y,platform2=state.platform,rects=state.rects,elements=state.elements,strategy=state.strategy;_evaluate=evaluate(options,state),_evaluate$boundary=_evaluate.boundary,boundary=_evaluate$boundary===void 0?"clippingAncestors":_evaluate$boundary,_evaluate$rootBoundar=_evaluate.rootBoundary,rootBoundary=_evaluate$rootBoundar===void 0?"viewport":_evaluate$rootBoundar,_evaluate$elementCont=_evaluate.elementContext,elementContext=_evaluate$elementCont===void 0?"floating":_evaluate$elementCont,_evaluate$altBoundary=_evaluate.altBoundary,altBoundary=_evaluate$altBoundary===void 0?false:_evaluate$altBoundary,_evaluate$padding=_evaluate.padding,padding2=_evaluate$padding===void 0?0:_evaluate$padding;paddingObject=getPaddingObject(padding2);altContext=elementContext==="floating"?"reference":"floating";element=elements[altBoundary?altContext:elementContext];_t2=rectToClientRect$1;_t3=platform2;_context2.n=1;return platform2.isElement==null?void 0:platform2.isElement(element);case 1:_t4=_await$platform$isEle=_context2.v;if(!(_t4!=null)){_context2.n=2;break;}_t5=_await$platform$isEle;_context2.n=3;break;case 2:_t5=true;case 3:if(!_t5){_context2.n=4;break;}_t6=element;_context2.n=7;break;case 4:_t7=element.contextElement;if(_t7){_context2.n=6;break;}_context2.n=5;return platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating);case 5:_t7=_context2.v;case 6:_t6=_t7;case 7:_t8=_t6;_t9=boundary;_t0=rootBoundary;_t1=strategy;_context2.n=8;return _t3.getClippingRect.call(_t3,{element:_t8,boundary:_t9,rootBoundary:_t0,strategy:_t1});case 8:clippingClientRect=_t2(_context2.v);rect=elementContext==="floating"?{x:x,y:y,width:rects.floating.width,height:rects.floating.height}:rects.reference;_context2.n=9;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating);case 9:offsetParent=_context2.v;_context2.n=10;return platform2.isElement==null?void 0:platform2.isElement(offsetParent);case 10:if(!_context2.v){_context2.n=13;break;}_context2.n=11;return platform2.getScale==null?void 0:platform2.getScale(offsetParent);case 11:_t11=_context2.v;if(_t11){_context2.n=12;break;}_t11={x:1,y:1};case 12:_t10=_t11;_context2.n=14;break;case 13:_t10={x:1,y:1};case 14:offsetScale=_t10;_t12=rectToClientRect$1;if(!platform2.convertOffsetParentRelativeRectToViewportRelativeRect){_context2.n=16;break;}_context2.n=15;return platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy});case 15:_t13=_context2.v;_context2.n=17;break;case 16:_t13=rect;case 17:elementClientRect=_t12(_t13);return _context2.a(2,{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x});}},_callee2);}));}var arrow$4=function arrow$4(options){return{name:"arrow",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee3(){var x,y,placement,rects,platform2,elements,middlewareData,_ref292,element,_ref292$padding,padding2,paddingObject,coords,axis,length2,arrowDimensions,isYAxis,minProp,maxProp,clientProp,endDiff,startDiff,arrowOffsetParent,clientSize,centerToReference,largestPossiblePadding,minPadding,maxPadding,min$12,max2,center,offset2,shouldAddOffset,alignmentOffset,_t14;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:x=state.x,y=state.y,placement=state.placement,rects=state.rects,platform2=state.platform,elements=state.elements,middlewareData=state.middlewareData;_ref292=evaluate(options,state)||{},element=_ref292.element,_ref292$padding=_ref292.padding,padding2=_ref292$padding===void 0?0:_ref292$padding;if(!(element==null)){_context3.n=1;break;}return _context3.a(2,{});case 1:paddingObject=getPaddingObject(padding2);coords={x:x,y:y};axis=getAlignmentAxis(placement);length2=getAxisLength(axis);_context3.n=2;return platform2.getDimensions(element);case 2:arrowDimensions=_context3.v;isYAxis=axis==="y";minProp=isYAxis?"top":"left";maxProp=isYAxis?"bottom":"right";clientProp=isYAxis?"clientHeight":"clientWidth";endDiff=rects.reference[length2]+rects.reference[axis]-coords[axis]-rects.floating[length2];startDiff=coords[axis]-rects.reference[axis];_context3.n=3;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element);case 3:arrowOffsetParent=_context3.v;clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;_t14=!clientSize;if(_t14){_context3.n=5;break;}_context3.n=4;return platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent);case 4:_t14=!_context3.v;case 5:if(!_t14){_context3.n=6;break;}clientSize=elements.floating[clientProp]||rects.floating[length2];case 6:centerToReference=endDiff/2-startDiff/2;largestPossiblePadding=clientSize/2-arrowDimensions[length2]/2-1;minPadding=min$2(paddingObject[minProp],largestPossiblePadding);maxPadding=min$2(paddingObject[maxProp],largestPossiblePadding);min$12=minPadding;max2=clientSize-arrowDimensions[length2]-maxPadding;center=clientSize/2-arrowDimensions[length2]/2+centerToReference;offset2=clamp(min$12,center,max2);shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset2&&rects.reference[length2]/2-(center<min$12?minPadding:maxPadding)-arrowDimensions[length2]/2<0;alignmentOffset=shouldAddOffset?center<min$12?center-min$12:center-max2:0;return _context3.a(2,_defineProperty2(_defineProperty2(_defineProperty2({},axis,coords[axis]+alignmentOffset),"data",__spreadValues(_defineProperty2(_defineProperty2({},axis,offset2),"centerOffset",center-offset2-alignmentOffset),shouldAddOffset&&{alignmentOffset:alignmentOffset})),"reset",shouldAddOffset));}},_callee3);}));}};};var flip$4=function flip$4(options){if(options===void 0){options={};}return{name:"flip",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee4(){var _middlewareData$arrow,_middlewareData$flip,placement,middlewareData,rects,initialPlacement,platform2,elements,_a2,_a2$mainAxis,checkMainAxis,_a2$crossAxis,checkCrossAxis,specifiedFallbackPlacements,_a2$fallbackStrategy,fallbackStrategy,_a2$fallbackAxisSideD,fallbackAxisSideDirection,_a2$flipAlignment,flipAlignment,detectOverflowOptions,side,initialSideAxis,isBasePlacement,rtl,fallbackPlacements,hasFallbackAxisSideDirection,placements2,overflow,overflows,overflowsData,sides2,_middlewareData$flip2,_overflowsData$filter,nextIndex,nextPlacement,ignoreCrossAxisOverflow,resetPlacement,_overflowsData$filter2,placement2,_t15;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:placement=state.placement,middlewareData=state.middlewareData,rects=state.rects,initialPlacement=state.initialPlacement,platform2=state.platform,elements=state.elements;_a2=evaluate(options,state),_a2$mainAxis=_a2.mainAxis,checkMainAxis=_a2$mainAxis===void 0?true:_a2$mainAxis,_a2$crossAxis=_a2.crossAxis,checkCrossAxis=_a2$crossAxis===void 0?true:_a2$crossAxis,specifiedFallbackPlacements=_a2.fallbackPlacements,_a2$fallbackStrategy=_a2.fallbackStrategy,fallbackStrategy=_a2$fallbackStrategy===void 0?"bestFit":_a2$fallbackStrategy,_a2$fallbackAxisSideD=_a2.fallbackAxisSideDirection,fallbackAxisSideDirection=_a2$fallbackAxisSideD===void 0?"none":_a2$fallbackAxisSideD,_a2$flipAlignment=_a2.flipAlignment,flipAlignment=_a2$flipAlignment===void 0?true:_a2$flipAlignment,detectOverflowOptions=__objRest(_a2,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(!((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)){_context4.n=1;break;}return _context4.a(2,{});case 1:side=getSide(placement);initialSideAxis=getSideAxis(initialPlacement);isBasePlacement=getSide(initialPlacement)===initialPlacement;_context4.n=2;return platform2.isRTL==null?void 0:platform2.isRTL(elements.floating);case 2:rtl=_context4.v;fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement$1(initialPlacement)]:getExpandedPlacements(initialPlacement));hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";if(!specifiedFallbackPlacements&&hasFallbackAxisSideDirection){fallbackPlacements.push.apply(fallbackPlacements,_toConsumableArray2(getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl)));}placements2=[initialPlacement].concat(_toConsumableArray2(fallbackPlacements));_context4.n=3;return detectOverflow$1(state,detectOverflowOptions);case 3:overflow=_context4.v;overflows=[];overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis){overflows.push(overflow[side]);}if(checkCrossAxis){sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]]);}overflowsData=[].concat(_toConsumableArray2(overflowsData),[{placement:placement,overflows:overflows}]);if(overflows.every(function(side2){return side2<=0;})){_context4.n=8;break;}nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1;nextPlacement=placements2[nextIndex];if(!nextPlacement){_context4.n=4;break;}ignoreCrossAxisOverflow=checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):false;if(!(!ignoreCrossAxisOverflow||// We leave the current main axis only if every placement on that axis
|
|
3408
|
+
isIndex2(key,length2)))){result2.push(key);}}return result2;}function arraySample(array){var length2=array.length;return length2?array[baseRandom(0,length2-1)]:undefined$1;}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length));}function arrayShuffle(array){return shuffleSelf(copyArray(array));}function assignMergeValue(object,key,value){if(value!==undefined$1&&!eq2(object[key],value)||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty2.call(object,key)&&eq2(objValue,value))||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assocIndexOf2(array,key){var length2=array.length;while(length2--){if(eq2(array[length2][0],key)){return length2;}}return-1;}function baseAggregator(collection,setter,iteratee2,accumulator){baseEach2(collection,function(value,key,collection2){setter(accumulator,value,iteratee2(value),collection2);});return accumulator;}function baseAssign(object,source){return object&©Object(source,keys2(source),object);}function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object);}function baseAssignValue(object,key,value){if(key=="__proto__"&&defineProperty){defineProperty(object,key,{"configurable":true,"enumerable":true,"value":value,"writable":true});}else{object[key]=value;}}function baseAt(object,paths){var index2=-1,length2=paths.length,result2=Array2(length2),skip=object==null;while(++index2<length2){result2[index2]=skip?undefined$1:get2(object,paths[index2]);}return result2;}function baseClamp(number,lower,upper){if(number===number){if(upper!==undefined$1){number=number<=upper?number:upper;}if(lower!==undefined$1){number=number>=lower?number:lower;}}return number;}function baseClone(value,bitmask,customizer,key,object,stack){var result2,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result2=object?customizer(value,key,object,stack):customizer(value);}if(result2!==undefined$1){return result2;}if(!isObject2(value)){return value;}var isArr=isArray2(value);if(isArr){result2=initCloneArray(value);if(!isDeep){return copyArray(value,result2);}}else{var tag=getTag2(value),isFunc=tag==funcTag2||tag==genTag2;if(isBuffer2(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag2||tag==argsTag2||isFunc&&!object){result2=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result2,value)):copySymbols(value,baseAssign(result2,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result2=initCloneByTag(value,tag,isDeep);}}stack||(stack=new Stack2());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result2);if(isSet(value)){value.forEach(function(subValue){result2.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key2){result2.set(key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys2:isFlat?keysIn:keys2;var props=isArr?undefined$1:keysFunc(value);arrayEach(props||value,function(subValue,key2){if(props){key2=subValue;subValue=value[key2];}assignValue(result2,key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});return result2;}function baseConforms(source){var props=keys2(source);return function(object){return baseConformsTo(object,source,props);};}function baseConformsTo(object,source,props){var length2=props.length;if(object==null){return!length2;}object=Object2(object);while(length2--){var key=props[length2],predicate=source[key],value=object[key];if(value===undefined$1&&!(key in object)||!predicate(value)){return false;}}return true;}function baseDelay(func,wait,args){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return setTimeout2(function(){func.apply(undefined$1,args);},wait);}function baseDifference(array,values3,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,isCommon=true,length2=array.length,result2=[],valuesLength=values3.length;if(!length2){return result2;}if(iteratee2){values3=arrayMap2(values3,baseUnary2(iteratee2));}if(comparator){includes2=arrayIncludesWith;isCommon=false;}else if(values3.length>=LARGE_ARRAY_SIZE2){includes2=cacheHas2;isCommon=false;values3=new SetCache2(values3);}outer:while(++index2<length2){var value=array[index2],computed=iteratee2==null?value:iteratee2(value);value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var valuesIndex=valuesLength;while(valuesIndex--){if(values3[valuesIndex]===computed){continue outer;}}result2.push(value);}else if(!includes2(values3,computed,comparator)){result2.push(value);}}return result2;}var baseEach2=createBaseEach2(baseForOwn2);var baseEachRight=createBaseEach2(baseForOwnRight,true);function baseEvery(collection,predicate){var result2=true;baseEach2(collection,function(value,index2,collection2){result2=!!predicate(value,index2,collection2);return result2;});return result2;}function baseExtremum(array,iteratee2,comparator){var index2=-1,length2=array.length;while(++index2<length2){var value=array[index2],current=iteratee2(value);if(current!=null&&(computed===undefined$1?current===current&&!isSymbol2(current):comparator(current,computed))){var computed=current,result2=value;}}return result2;}function baseFill(array,value,start2,end2){var length2=array.length;start2=toInteger2(start2);if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2===undefined$1||end2>length2?length2:toInteger2(end2);if(end2<0){end2+=length2;}end2=start2>end2?0:toLength(end2);while(start2<end2){array[start2++]=value;}return array;}function baseFilter(collection,predicate){var result2=[];baseEach2(collection,function(value,index2,collection2){if(predicate(value,index2,collection2)){result2.push(value);}});return result2;}function baseFlatten(array,depth,predicate,isStrict,result2){var index2=-1,length2=array.length;predicate||(predicate=isFlattenable);result2||(result2=[]);while(++index2<length2){var value=array[index2];if(depth>0&&predicate(value)){if(depth>1){baseFlatten(value,depth-1,predicate,isStrict,result2);}else{arrayPush2(result2,value);}}else if(!isStrict){result2[result2.length]=value;}}return result2;}var baseFor2=createBaseFor2();var baseForRight=createBaseFor2(true);function baseForOwn2(object,iteratee2){return object&&baseFor2(object,iteratee2,keys2);}function baseForOwnRight(object,iteratee2){return object&&baseForRight(object,iteratee2,keys2);}function baseFunctions(object,props){return arrayFilter2(props,function(key){return isFunction2(object[key]);});}function baseGet2(object,path){path=castPath2(path,object);var index2=0,length2=path.length;while(object!=null&&index2<length2){object=object[toKey2(path[index2++])];}return index2&&index2==length2?object:undefined$1;}function baseGetAllKeys2(object,keysFunc,symbolsFunc){var result2=keysFunc(object);return isArray2(object)?result2:arrayPush2(result2,symbolsFunc(object));}function baseGetTag2(value){if(value==null){return value===undefined$1?undefinedTag2:nullTag2;}return symToStringTag2&&symToStringTag2 in Object2(value)?getRawTag2(value):objectToString2(value);}function baseGt(value,other){return value>other;}function baseHas(object,key){return object!=null&&hasOwnProperty2.call(object,key);}function baseHasIn2(object,key){return object!=null&&key in Object2(object);}function baseInRange(number,start2,end2){return number>=nativeMin(start2,end2)&&number<nativeMax2(start2,end2);}function baseIntersection(arrays,iteratee2,comparator){var includes2=comparator?arrayIncludesWith:arrayIncludes2,length2=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array2(othLength),maxLength=Infinity,result2=[];while(othIndex--){var array=arrays[othIndex];if(othIndex&&iteratee2){array=arrayMap2(array,baseUnary2(iteratee2));}maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee2||length2>=120&&array.length>=120)?new SetCache2(othIndex&&array):undefined$1;}array=arrays[0];var index2=-1,seen=caches[0];outer:while(++index2<length2&&result2.length<maxLength){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(!(seen?cacheHas2(seen,computed):includes2(result2,computed,comparator))){othIndex=othLength;while(--othIndex){var cache=caches[othIndex];if(!(cache?cacheHas2(cache,computed):includes2(arrays[othIndex],computed,comparator))){continue outer;}}if(seen){seen.push(computed);}result2.push(value);}}return result2;}function baseInverter(object,setter,iteratee2,accumulator){baseForOwn2(object,function(value,key,object2){setter(accumulator,iteratee2(value),key,object2);});return accumulator;}function baseInvoke(object,path,args){path=castPath2(path,object);object=parent(object,path);var func=object==null?object:object[toKey2(last(path))];return func==null?undefined$1:apply(func,object,args);}function baseIsArguments2(value){return isObjectLike2(value)&&baseGetTag2(value)==argsTag2;}function baseIsArrayBuffer(value){return isObjectLike2(value)&&baseGetTag2(value)==arrayBufferTag2;}function baseIsDate(value){return isObjectLike2(value)&&baseGetTag2(value)==dateTag2;}function baseIsEqual2(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike2(value)&&!isObjectLike2(other)){return value!==value&&other!==other;}return baseIsEqualDeep2(value,other,bitmask,customizer,baseIsEqual2,stack);}function baseIsEqualDeep2(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray2(object),othIsArr=isArray2(other),objTag=objIsArr?arrayTag2:getTag2(object),othTag=othIsArr?arrayTag2:getTag2(other);objTag=objTag==argsTag2?objectTag2:objTag;othTag=othTag==argsTag2?objectTag2:othTag;var objIsObj=objTag==objectTag2,othIsObj=othTag==objectTag2,isSameTag=objTag==othTag;if(isSameTag&&isBuffer2(object)){if(!isBuffer2(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack2());return objIsArr||isTypedArray2(object)?equalArrays2(object,other,bitmask,customizer,equalFunc,stack):equalByTag2(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG2)){var objIsWrapped=objIsObj&&hasOwnProperty2.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty2.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack2());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack2());return equalObjects2(object,other,bitmask,customizer,equalFunc,stack);}function baseIsMap(value){return isObjectLike2(value)&&getTag2(value)==mapTag2;}function baseIsMatch2(object,source,matchData,customizer){var index2=matchData.length,length2=index2,noCustomizer=!customizer;if(object==null){return!length2;}object=Object2(object);while(index2--){var data=matchData[index2];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index2<length2){data=matchData[index2];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined$1&&!(key in object)){return false;}}else{var stack=new Stack2();if(customizer){var result2=customizer(objValue,srcValue,key,object,source,stack);}if(!(result2===undefined$1?baseIsEqual2(srcValue,objValue,COMPARE_PARTIAL_FLAG2|COMPARE_UNORDERED_FLAG2,customizer,stack):result2)){return false;}}}return true;}function baseIsNative2(value){if(!isObject2(value)||isMasked2(value)){return false;}var pattern=isFunction2(value)?reIsNative2:reIsHostCtor2;return pattern.test(toSource2(value));}function baseIsRegExp(value){return isObjectLike2(value)&&baseGetTag2(value)==regexpTag2;}function baseIsSet(value){return isObjectLike2(value)&&getTag2(value)==setTag2;}function baseIsTypedArray2(value){return isObjectLike2(value)&&isLength2(value.length)&&!!typedArrayTags2[baseGetTag2(value)];}function baseIteratee2(value){if(typeof value=="function"){return value;}if(value==null){return identity2;}if(_typeof2(value)=="object"){return isArray2(value)?baseMatchesProperty2(value[0],value[1]):baseMatches2(value);}return property2(value);}function baseKeys2(object){if(!isPrototype2(object)){return nativeKeys2(object);}var result2=[];for(var key in Object2(object)){if(hasOwnProperty2.call(object,key)&&key!="constructor"){result2.push(key);}}return result2;}function baseKeysIn(object){if(!isObject2(object)){return nativeKeysIn(object);}var isProto=isPrototype2(object),result2=[];for(var key in object){if(!(key=="constructor"&&(isProto||!hasOwnProperty2.call(object,key)))){result2.push(key);}}return result2;}function baseLt(value,other){return value<other;}function baseMap2(collection,iteratee2){var index2=-1,result2=isArrayLike2(collection)?Array2(collection.length):[];baseEach2(collection,function(value,key,collection2){result2[++index2]=iteratee2(value,key,collection2);});return result2;}function baseMatches2(source){var matchData=getMatchData2(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable2(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch2(object,source,matchData);};}function baseMatchesProperty2(path,srcValue){if(isKey2(path)&&isStrictComparable2(srcValue)){return matchesStrictComparable2(toKey2(path),srcValue);}return function(object){var objValue=get2(object,path);return objValue===undefined$1&&objValue===srcValue?hasIn2(object,path):baseIsEqual2(srcValue,objValue,COMPARE_PARTIAL_FLAG2|COMPARE_UNORDERED_FLAG2);};}function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor2(source,function(srcValue,key){stack||(stack=new Stack2());if(isObject2(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+"",object,source,stack):undefined$1;if(newValue===undefined$1){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+"",object,source,stack):undefined$1;var isCommon=newValue===undefined$1;if(isCommon){var isArr=isArray2(srcValue),isBuff=!isArr&&isBuffer2(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray2(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray2(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else{newValue=[];}}else if(isPlainObject2(srcValue)||isArguments2(srcValue)){newValue=objValue;if(isArguments2(objValue)){newValue=toPlainObject(objValue);}else if(!isObject2(objValue)||isFunction2(objValue)){newValue=initCloneObject(srcValue);}}else{isCommon=false;}}if(isCommon){stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack["delete"](srcValue);}assignMergeValue(object,key,newValue);}function baseNth(array,n){var length2=array.length;if(!length2){return;}n+=n<0?length2:0;return isIndex2(n,length2)?array[n]:undefined$1;}function baseOrderBy(collection,iteratees,orders){if(iteratees.length){iteratees=arrayMap2(iteratees,function(iteratee2){if(isArray2(iteratee2)){return function(value){return baseGet2(value,iteratee2.length===1?iteratee2[0]:iteratee2);};}return iteratee2;});}else{iteratees=[identity2];}var index2=-1;iteratees=arrayMap2(iteratees,baseUnary2(getIteratee()));var result2=baseMap2(collection,function(value,key,collection2){var criteria=arrayMap2(iteratees,function(iteratee2){return iteratee2(value);});return{"criteria":criteria,"index":++index2,"value":value};});return baseSortBy(result2,function(object,other){return compareMultiple(object,other,orders);});}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn2(object,path);});}function basePickBy(object,paths,predicate){var index2=-1,length2=paths.length,result2={};while(++index2<length2){var path=paths[index2],value=baseGet2(object,path);if(predicate(value,path)){baseSet(result2,castPath2(path,object),value);}}return result2;}function basePropertyDeep2(path){return function(object){return baseGet2(object,path);};}function basePullAll(array,values3,iteratee2,comparator){var indexOf2=comparator?baseIndexOfWith:baseIndexOf,index2=-1,length2=values3.length,seen=array;if(array===values3){values3=copyArray(values3);}if(iteratee2){seen=arrayMap2(array,baseUnary2(iteratee2));}while(++index2<length2){var fromIndex=0,value=values3[index2],computed=iteratee2?iteratee2(value):value;while((fromIndex=indexOf2(seen,computed,fromIndex,comparator))>-1){if(seen!==array){splice2.call(seen,fromIndex,1);}splice2.call(array,fromIndex,1);}}return array;}function basePullAt(array,indexes){var length2=array?indexes.length:0,lastIndex=length2-1;while(length2--){var index2=indexes[length2];if(length2==lastIndex||index2!==previous){var previous=index2;if(isIndex2(index2)){splice2.call(array,index2,1);}else{baseUnset(array,index2);}}}return array;}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1));}function baseRange(start2,end2,step,fromRight){var index2=-1,length2=nativeMax2(nativeCeil((end2-start2)/(step||1)),0),result2=Array2(length2);while(length2--){result2[fromRight?length2:++index2]=start2;start2+=step;}return result2;}function baseRepeat(string,n){var result2="";if(!string||n<1||n>MAX_SAFE_INTEGER2){return result2;}do{if(n%2){result2+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);return result2;}function baseRest(func,start2){return setToString(overRest(func,start2,identity2),func+"");}function baseSample(collection){return arraySample(values2(collection));}function baseSampleSize(collection,n){var array=values2(collection);return shuffleSelf(array,baseClamp(n,0,array.length));}function baseSet(object,path,value,customizer){if(!isObject2(object)){return object;}path=castPath2(path,object);var index2=-1,length2=path.length,lastIndex=length2-1,nested=object;while(nested!=null&&++index2<length2){var key=toKey2(path[index2]),newValue=value;if(key==="__proto__"||key==="constructor"||key==="prototype"){return object;}if(index2!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined$1;if(newValue===undefined$1){newValue=isObject2(objValue)?objValue:isIndex2(path[index2+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}var baseSetData=!metaMap?identity2:function(func,data){metaMap.set(func,data);return func;};var baseSetToString=!defineProperty?identity2:function(func,string){return defineProperty(func,"toString",{"configurable":true,"enumerable":false,"value":constant(string),"writable":true});};function baseShuffle(collection){return shuffleSelf(values2(collection));}function baseSlice(array,start2,end2){var index2=-1,length2=array.length;if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2>length2?length2:end2;if(end2<0){end2+=length2;}length2=start2>end2?0:end2-start2>>>0;start2>>>=0;var result2=Array2(length2);while(++index2<length2){result2[index2]=array[index2+start2];}return result2;}function baseSome(collection,predicate){var result2;baseEach2(collection,function(value,index2,collection2){result2=predicate(value,index2,collection2);return!result2;});return!!result2;}function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=="number"&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(computed!==null&&!isSymbol2(computed)&&(retHighest?computed<=value:computed<value)){low=mid+1;}else{high=mid;}}return high;}return baseSortedIndexBy(array,value,identity2,retHighest);}function baseSortedIndexBy(array,value,iteratee2,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee2(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol2(value),valIsUndefined=value===undefined$1;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee2(array[mid]),othIsDefined=computed!==undefined$1,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol2(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else{setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else{high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}function baseSortedUniq(array,iteratee2){var index2=-1,length2=array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;if(!index2||!eq2(computed,seen)){var seen=computed;result2[resIndex++]=value===0?0:value;}}return result2;}function baseToNumber(value){if(typeof value=="number"){return value;}if(isSymbol2(value)){return NAN2;}return+value;}function baseToString2(value){if(typeof value=="string"){return value;}if(isArray2(value)){return arrayMap2(value,baseToString2)+"";}if(isSymbol2(value)){return symbolToString2?symbolToString2.call(value):"";}var result2=value+"";return result2=="0"&&1/value==-INFINITY2?"-0":result2;}function baseUniq(array,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,length2=array.length,isCommon=true,result2=[],seen=result2;if(comparator){isCommon=false;includes2=arrayIncludesWith;}else if(length2>=LARGE_ARRAY_SIZE2){var set2=iteratee2?null:createSet(array);if(set2){return setToArray2(set2);}isCommon=false;includes2=cacheHas2;seen=new SetCache2();}else{seen=iteratee2?[]:result2;}outer:while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer;}}if(iteratee2){seen.push(computed);}result2.push(value);}else if(!includes2(seen,computed,comparator)){if(seen!==result2){seen.push(computed);}result2.push(value);}}return result2;}function baseUnset(object,path){path=castPath2(path,object);object=parent(object,path);return object==null||delete object[toKey2(last(path))];}function baseUpdate(object,path,updater,customizer){return baseSet(object,path,updater(baseGet2(object,path)),customizer);}function baseWhile(array,predicate,isDrop,fromRight){var length2=array.length,index2=fromRight?length2:-1;while((fromRight?index2--:++index2<length2)&&predicate(array[index2],index2,array)){}return isDrop?baseSlice(array,fromRight?0:index2,fromRight?index2+1:length2):baseSlice(array,fromRight?index2+1:0,fromRight?length2:index2);}function baseWrapperValue(value,actions){var result2=value;if(result2 instanceof LazyWrapper){result2=result2.value();}return arrayReduce(actions,function(result3,action2){return action2.func.apply(action2.thisArg,arrayPush2([result3],action2.args));},result2);}function baseXor(arrays,iteratee2,comparator){var length2=arrays.length;if(length2<2){return length2?baseUniq(arrays[0]):[];}var index2=-1,result2=Array2(length2);while(++index2<length2){var array=arrays[index2],othIndex=-1;while(++othIndex<length2){if(othIndex!=index2){result2[index2]=baseDifference(result2[index2]||array,arrays[othIndex],iteratee2,comparator);}}}return baseUniq(baseFlatten(result2,1),iteratee2,comparator);}function baseZipObject(props,values3,assignFunc){var index2=-1,length2=props.length,valsLength=values3.length,result2={};while(++index2<length2){var value=index2<valsLength?values3[index2]:undefined$1;assignFunc(result2,props[index2],value);}return result2;}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[];}function castFunction(value){return typeof value=="function"?value:identity2;}function castPath2(value,object){if(isArray2(value)){return value;}return isKey2(value,object)?[value]:stringToPath2(toString2(value));}var castRest=baseRest;function castSlice(array,start2,end2){var length2=array.length;end2=end2===undefined$1?length2:end2;return!start2&&end2>=length2?array:baseSlice(array,start2,end2);}var clearTimeout2=ctxClearTimeout||function(id){return root2.clearTimeout(id);};function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length2=buffer.length,result2=allocUnsafe?allocUnsafe(length2):new buffer.constructor(length2);buffer.copy(result2);return result2;}function cloneArrayBuffer(arrayBuffer){var result2=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array3(result2).set(new Uint8Array3(arrayBuffer));return result2;}function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}function cloneRegExp(regexp){var result2=new regexp.constructor(regexp.source,reFlags.exec(regexp));result2.lastIndex=regexp.lastIndex;return result2;}function cloneSymbol(symbol){return symbolValueOf2?Object2(symbolValueOf2.call(symbol)):{};}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined$1,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol2(value);var othIsDefined=other!==undefined$1,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol2(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive){return-1;}}return 0;}function compareMultiple(object,other,orders){var index2=-1,objCriteria=object.criteria,othCriteria=other.criteria,length2=objCriteria.length,ordersLength=orders.length;while(++index2<length2){var result2=compareAscending(objCriteria[index2],othCriteria[index2]);if(result2){if(index2>=ordersLength){return result2;}var order2=orders[index2];return result2*(order2=="desc"?-1:1);}}return object.index-other.index;}function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax2(argsLength-holdersLength,0),result2=Array2(leftLength+rangeLength),isUncurried=!isCurried;while(++leftIndex<leftLength){result2[leftIndex]=partials[leftIndex];}while(++argsIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[holders[argsIndex]]=args[argsIndex];}}while(rangeLength--){result2[leftIndex++]=args[argsIndex++];}return result2;}function composeArgsRight(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,rangeLength=nativeMax2(argsLength-holdersLength,0),result2=Array2(rangeLength+rightLength),isUncurried=!isCurried;while(++argsIndex<rangeLength){result2[argsIndex]=args[argsIndex];}var offset2=argsIndex;while(++rightIndex<rightLength){result2[offset2+rightIndex]=partials[rightIndex];}while(++holdersIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[offset2+holders[holdersIndex]]=args[argsIndex++];}}return result2;}function copyArray(source,array){var index2=-1,length2=source.length;array||(array=Array2(length2));while(++index2<length2){array[index2]=source[index2];}return array;}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index2=-1,length2=props.length;while(++index2<length2){var key=props[index2];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined$1;if(newValue===undefined$1){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}function copySymbols(source,object){return copyObject(source,getSymbols2(source),object);}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object);}function createAggregator(setter,initializer){return function(collection,iteratee2){var func=isArray2(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee2,2),accumulator);};}function createAssigner(assigner){return baseRest(function(object,sources){var index2=-1,length2=sources.length,customizer=length2>1?sources[length2-1]:undefined$1,guard=length2>2?sources[2]:undefined$1;customizer=assigner.length>3&&typeof customizer=="function"?(length2--,customizer):undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length2<3?undefined$1:customizer;length2=1;}object=Object2(object);while(++index2<length2){var source=sources[index2];if(source){assigner(object,source,index2,customizer);}}return object;});}function createBaseEach2(eachFunc,fromRight){return function(collection,iteratee2){if(collection==null){return collection;}if(!isArrayLike2(collection)){return eachFunc(collection,iteratee2);}var length2=collection.length,index2=fromRight?length2:-1,iterable=Object2(collection);while(fromRight?index2--:++index2<length2){if(iteratee2(iterable[index2],index2,iterable)===false){break;}}return collection;};}function createBaseFor2(fromRight){return function(object,iteratee2,keysFunc){var index2=-1,iterable=Object2(object),props=keysFunc(object),length2=props.length;while(length2--){var key=props[fromRight?length2:++index2];if(iteratee2(iterable[key],key,iterable)===false){break;}}return object;};}function createBind(func,bitmask,thisArg){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;return fn3.apply(isBind?thisArg:this,arguments);}return wrapper2;}function createCaseFirst(methodName){return function(string){string=toString2(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined$1;var chr=strSymbols?strSymbols[0]:string.charAt(0);var trailing=strSymbols?castSlice(strSymbols,1).join(""):string.slice(1);return chr[methodName]()+trailing;};}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"");};}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor();case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6]);}var thisBinding=baseCreate(Ctor.prototype),result2=Ctor.apply(thisBinding,args);return isObject2(result2)?result2:thisBinding;};}function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2,placeholder=getHolder(wrapper2);while(index2--){args[index2]=arguments[index2];}var holders=length2<3&&args[0]!==placeholder&&args[length2-1]!==placeholder?[]:replaceHolders(args,placeholder);length2-=holders.length;if(length2<arity){return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,undefined$1,args,holders,undefined$1,undefined$1,arity-length2);}var fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;return apply(fn3,this,args);}return wrapper2;}function createFind2(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object2(collection);if(!isArrayLike2(collection)){var iteratee2=getIteratee(predicate,3);collection=keys2(collection);predicate=function predicate(key){return iteratee2(iterable[key],key,iterable);};}var index2=findIndexFunc(collection,predicate,fromIndex);return index2>-1?iterable[iteratee2?collection[index2]:index2]:undefined$1;};}function createFlow(fromRight){return flatRest(function(funcs){var length2=funcs.length,index2=length2,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index2--){var func=funcs[index2];if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}if(prereq&&!wrapper2&&getFuncName(func)=="wrapper"){var wrapper2=new LodashWrapper([],true);}}index2=wrapper2?index2:length2;while(++index2<length2){func=funcs[index2];var funcName=getFuncName(func),data=funcName=="wrapper"?getData(func):undefined$1;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper2=wrapper2[getFuncName(data[0])].apply(wrapper2,data[3]);}else{wrapper2=func.length==1&&isLaziable(func)?wrapper2[funcName]():wrapper2.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper2&&args.length==1&&isArray2(value)){return wrapper2.plant(value).value();}var index3=0,result2=length2?funcs[index3].apply(this,args):value;while(++index3<length2){result2=funcs[index3].call(this,result2);}return result2;};});}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined$1:createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2;while(index2--){args[index2]=arguments[index2];}if(isCurried){var placeholder=getHolder(wrapper2),holdersCount=countHolders(args,placeholder);}if(partials){args=composeArgs(args,partials,holders,isCurried);}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight,isCurried);}length2-=holdersCount;if(isCurried&&length2<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,thisArg,args,newHolders,argPos,ary2,arity-length2);}var thisBinding=isBind?thisArg:this,fn3=isBindKey?thisBinding[func]:func;length2=args.length;if(argPos){args=reorder(args,argPos);}else if(isFlip&&length2>1){args.reverse();}if(isAry&&ary2<length2){args.length=ary2;}if(this&&this!==root2&&this instanceof wrapper2){fn3=Ctor||createCtor(fn3);}return fn3.apply(thisBinding,args);}return wrapper2;}function createInverter(setter,toIteratee){return function(object,iteratee2){return baseInverter(object,setter,toIteratee(iteratee2),{});};}function createMathOperation(operator,defaultValue){return function(value,other){var result2;if(value===undefined$1&&other===undefined$1){return defaultValue;}if(value!==undefined$1){result2=value;}if(other!==undefined$1){if(result2===undefined$1){return other;}if(typeof value=="string"||typeof other=="string"){value=baseToString2(value);other=baseToString2(other);}else{value=baseToNumber(value);other=baseToNumber(other);}result2=operator(value,other);}return result2;};}function createOver(arrayFunc){return flatRest(function(iteratees){iteratees=arrayMap2(iteratees,baseUnary2(getIteratee()));return baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee2){return apply(iteratee2,thisArg,args);});});});}function createPadding(length2,chars2){chars2=chars2===undefined$1?" ":baseToString2(chars2);var charsLength=chars2.length;if(charsLength<2){return charsLength?baseRepeat(chars2,length2):chars2;}var result2=baseRepeat(chars2,nativeCeil(length2/stringSize(chars2)));return hasUnicode(chars2)?castSlice(stringToArray(result2),0,length2).join(""):result2.slice(0,length2);}function createPartial(func,bitmask,thisArg,partials){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array2(leftLength+argsLength),fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;while(++leftIndex<leftLength){args[leftIndex]=partials[leftIndex];}while(argsLength--){args[leftIndex++]=arguments[++argsIndex];}return apply(fn3,isBind?thisArg:this,args);}return wrapper2;}function createRange(fromRight){return function(start2,end2,step){if(step&&typeof step!="number"&&isIterateeCall(start2,end2,step)){end2=step=undefined$1;}start2=toFinite2(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite2(end2);}step=step===undefined$1?start2<end2?1:-1:toFinite2(step);return baseRange(start2,end2,step,fromRight);};}function createRelationalOperation(operator){return function(value,other){if(!(typeof value=="string"&&typeof other=="string")){value=toNumber2(value);other=toNumber2(other);}return operator(value,other);};}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary2,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined$1,newHoldersRight=isCurry?undefined$1:holders,newPartials=isCurry?partials:undefined$1,newPartialsRight=isCurry?undefined$1:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG);if(!(bitmask&WRAP_CURRY_BOUND_FLAG)){bitmask&=-4;}var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary2,arity];var result2=wrapFunc.apply(undefined$1,newData);if(isLaziable(func)){setData(result2,newData);}result2.placeholder=placeholder;return setWrapToString(result2,func,bitmask);}function createRound(methodName){var func=Math2[methodName];return function(number,precision){number=toNumber2(number);precision=precision==null?0:nativeMin(toInteger2(precision),292);if(precision&&nativeIsFinite(number)){var pair=(toString2(number)+"e").split("e"),value=func(pair[0]+"e"+(+pair[1]+precision));pair=(toString2(value)+"e").split("e");return+(pair[0]+"e"+(+pair[1]-precision));}return func(number);};}var createSet=!(Set2&&1/setToArray2(new Set2([,-0]))[1]==INFINITY2)?noop4:function(values3){return new Set2(values3);};function createToPairs(keysFunc){return function(object){var tag=getTag2(object);if(tag==mapTag2){return mapToArray2(object);}if(tag==setTag2){return setToPairs(object);}return baseToPairs(object,keysFunc(object));};}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary2,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}var length2=partials?partials.length:0;if(!length2){bitmask&=-97;partials=holders=undefined$1;}ary2=ary2===undefined$1?ary2:nativeMax2(toInteger2(ary2),0);arity=arity===undefined$1?arity:toInteger2(arity);length2-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined$1;}var data=isBindKey?undefined$1:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined$1?isBindKey?0:func.length:nativeMax2(newData[9]-length2,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=-25;}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result2=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result2=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result2=createPartial(func,bitmask,thisArg,partials);}else{result2=createHybrid.apply(undefined$1,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result2,newData),func,bitmask);}function customDefaultsAssignIn(objValue,srcValue,key,object){if(objValue===undefined$1||eq2(objValue,objectProto2[key])&&!hasOwnProperty2.call(object,key)){return srcValue;}return objValue;}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){if(isObject2(objValue)&&isObject2(srcValue)){stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined$1,customDefaultsMerge,stack);stack["delete"](srcValue);}return objValue;}function customOmitClone(value){return isPlainObject2(value)?undefined$1:value;}function equalArrays2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG2,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result2=true,seen=bitmask&COMPARE_UNORDERED_FLAG2?new SetCache2():undefined$1;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==undefined$1){if(compared){continue;}result2=false;break;}if(seen){if(!arraySome2(other,function(othValue2,othIndex){if(!cacheHas2(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result2=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result2=false;break;}}stack["delete"](array);stack["delete"](other);return result2;}function equalByTag2(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag2:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag2:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array3(object),new Uint8Array3(other))){return false;}return true;case boolTag2:case dateTag2:case numberTag2:return eq2(+object,+other);case errorTag2:return object.name==other.name&&object.message==other.message;case regexpTag2:case stringTag2:return object==other+"";case mapTag2:var convert=mapToArray2;case setTag2:var isPartial=bitmask&COMPARE_PARTIAL_FLAG2;convert||(convert=setToArray2);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG2;stack.set(object,other);var result2=equalArrays2(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result2;case symbolTag2:if(symbolValueOf2){return symbolValueOf2.call(object)==symbolValueOf2.call(other);}}return false;}function equalObjects2(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG2,objProps=getAllKeys2(object),objLength=objProps.length,othProps=getAllKeys2(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index2=objLength;while(index2--){var key=objProps[index2];if(!(isPartial?key in other:hasOwnProperty2.call(other,key))){return false;}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result2=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index2<objLength){key=objProps[index2];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}if(!(compared===undefined$1?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result2=false;break;}skipCtor||(skipCtor=key=="constructor");}if(result2&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result2=false;}}stack["delete"](object);stack["delete"](other);return result2;}function flatRest(func){return setToString(overRest(func,undefined$1,flatten),func+"");}function getAllKeys2(object){return baseGetAllKeys2(object,keys2,getSymbols2);}function getAllKeysIn(object){return baseGetAllKeys2(object,keysIn,getSymbolsIn);}var getData=!metaMap?noop4:function(func){return metaMap.get(func);};function getFuncName(func){var result2=func.name+"",array=realNames[result2],length2=hasOwnProperty2.call(realNames,result2)?array.length:0;while(length2--){var data=array[length2],otherFunc=data.func;if(otherFunc==null||otherFunc==func){return data.name;}}return result2;}function getHolder(func){var object=hasOwnProperty2.call(lodash2,"placeholder")?lodash2:func;return object.placeholder;}function getIteratee(){var result2=lodash2.iteratee||iteratee;result2=result2===iteratee?baseIteratee2:result2;return arguments.length?result2(arguments[0],arguments[1]):result2;}function getMapData2(map3,key){var data=map3.__data__;return isKeyable2(key)?data[typeof key=="string"?"string":"hash"]:data.map;}function getMatchData2(object){var result2=keys2(object),length2=result2.length;while(length2--){var key=result2[length2],value=object[key];result2[length2]=[key,value,isStrictComparable2(value)];}return result2;}function getNative2(object,key){var value=getValue2(object,key);return baseIsNative2(value)?value:undefined$1;}function getRawTag2(value){var isOwn=hasOwnProperty2.call(value,symToStringTag2),tag=value[symToStringTag2];try{value[symToStringTag2]=undefined$1;var unmasked=true;}catch(e){}var result2=nativeObjectToString2.call(value);if(unmasked){if(isOwn){value[symToStringTag2]=tag;}else{delete value[symToStringTag2];}}return result2;}var getSymbols2=!nativeGetSymbols2?stubArray2:function(object){if(object==null){return[];}object=Object2(object);return arrayFilter2(nativeGetSymbols2(object),function(symbol){return propertyIsEnumerable2.call(object,symbol);});};var getSymbolsIn=!nativeGetSymbols2?stubArray2:function(object){var result2=[];while(object){arrayPush2(result2,getSymbols2(object));object=getPrototype(object);}return result2;};var getTag2=baseGetTag2;if(DataView2&&getTag2(new DataView2(new ArrayBuffer(1)))!=dataViewTag2||Map2&&getTag2(new Map2())!=mapTag2||Promise2&&getTag2(Promise2.resolve())!=promiseTag2||Set2&&getTag2(new Set2())!=setTag2||WeakMap2&&getTag2(new WeakMap2())!=weakMapTag2){getTag2=function getTag2(value){var result2=baseGetTag2(value),Ctor=result2==objectTag2?value.constructor:undefined$1,ctorString=Ctor?toSource2(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString2:return dataViewTag2;case mapCtorString2:return mapTag2;case promiseCtorString2:return promiseTag2;case setCtorString2:return setTag2;case weakMapCtorString2:return weakMapTag2;}}return result2;};}function getView(start2,end2,transforms){var index2=-1,length2=transforms.length;while(++index2<length2){var data=transforms[index2],size3=data.size;switch(data.type){case"drop":start2+=size3;break;case"dropRight":end2-=size3;break;case"take":end2=nativeMin(end2,start2+size3);break;case"takeRight":start2=nativeMax2(start2,end2-size3);break;}}return{"start":start2,"end":end2};}function getWrapDetails(source){var match2=source.match(reWrapDetails);return match2?match2[1].split(reSplitDetails):[];}function hasPath2(object,path,hasFunc){path=castPath2(path,object);var index2=-1,length2=path.length,result2=false;while(++index2<length2){var key=toKey2(path[index2]);if(!(result2=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result2||++index2!=length2){return result2;}length2=object==null?0:object.length;return!!length2&&isLength2(length2)&&isIndex2(key,length2)&&(isArray2(object)||isArguments2(object));}function initCloneArray(array){var length2=array.length,result2=new array.constructor(length2);if(length2&&typeof array[0]=="string"&&hasOwnProperty2.call(array,"index")){result2.index=array.index;result2.input=array.input;}return result2;}function initCloneObject(object){return typeof object.constructor=="function"&&!isPrototype2(object)?baseCreate(getPrototype(object)):{};}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag2:return cloneArrayBuffer(object);case boolTag2:case dateTag2:return new Ctor(+object);case dataViewTag2:return cloneDataView(object,isDeep);case float32Tag2:case float64Tag2:case int8Tag2:case int16Tag2:case int32Tag2:case uint8Tag2:case uint8ClampedTag2:case uint16Tag2:case uint32Tag2:return cloneTypedArray(object,isDeep);case mapTag2:return new Ctor();case numberTag2:case stringTag2:return new Ctor(object);case regexpTag2:return cloneRegExp(object);case setTag2:return new Ctor();case symbolTag2:return cloneSymbol(object);}}function insertWrapDetails(source,details){var length2=details.length;if(!length2){return source;}var lastIndex=length2-1;details[lastIndex]=(length2>1?"& ":"")+details[lastIndex];details=details.join(length2>2?", ":" ");return source.replace(reWrapComment,"{\n/* [wrapped with "+details+"] */\n");}function isFlattenable(value){return isArray2(value)||isArguments2(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol]);}function isIndex2(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER2:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint2.test(value))&&value>-1&&value%1==0&&value<length2;}function isIterateeCall(value,index2,object){if(!isObject2(object)){return false;}var type=_typeof2(index2);if(type=="number"?isArrayLike2(object)&&isIndex2(index2,object.length):type=="string"&&index2 in object){return eq2(object[index2],value);}return false;}function isKey2(value,object){if(isArray2(value)){return false;}var type=_typeof2(value);if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol2(value)){return true;}return reIsPlainProp2.test(value)||!reIsDeepProp2.test(value)||object!=null&&value in Object2(object);}function isKeyable2(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}function isLaziable(func){var funcName=getFuncName(func),other=lodash2[funcName];if(typeof other!="function"||!(funcName in LazyWrapper.prototype)){return false;}if(func===other){return true;}var data=getData(other);return!!data&&func===data[0];}function isMasked2(func){return!!maskSrcKey2&&maskSrcKey2 in func;}var isMaskable=coreJsData2?isFunction2:stubFalse2;function isPrototype2(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto2;return value===proto;}function isStrictComparable2(value){return value===value&&!isObject2(value);}function matchesStrictComparable2(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined$1||key in Object2(object));};}function memoizeCapped2(func){var result2=memoize2(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE2){cache.clear();}return key;});var cache=result2.cache;return result2;}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask<(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG|WRAP_ARY_FLAG);var isCombo=srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_CURRY_FLAG||srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_REARG_FLAG&&data[7].length<=source[8]||srcBitmask==(WRAP_ARY_FLAG|WRAP_REARG_FLAG)&&source[7].length<=source[8]&&bitmask==WRAP_CURRY_FLAG;if(!(isCommon||isCombo)){return data;}if(srcBitmask&WRAP_BIND_FLAG){data[2]=source[2];newBitmask|=bitmask&WRAP_BIND_FLAG?0:WRAP_CURRY_BOUND_FLAG;}var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):value;data[4]=partials?replaceHolders(data[3],PLACEHOLDER):source[4];}value=source[5];if(value){partials=data[5];data[5]=partials?composeArgsRight(partials,value,source[6]):value;data[6]=partials?replaceHolders(data[5],PLACEHOLDER):source[6];}value=source[7];if(value){data[7]=value;}if(srcBitmask&WRAP_ARY_FLAG){data[8]=data[8]==null?source[8]:nativeMin(data[8],source[8]);}if(data[9]==null){data[9]=source[9];}data[0]=source[0];data[1]=newBitmask;return data;}function nativeKeysIn(object){var result2=[];if(object!=null){for(var key in Object2(object)){result2.push(key);}}return result2;}function objectToString2(value){return nativeObjectToString2.call(value);}function overRest(func,start2,transform2){start2=nativeMax2(start2===undefined$1?func.length-1:start2,0);return function(){var args=arguments,index2=-1,length2=nativeMax2(args.length-start2,0),array=Array2(length2);while(++index2<length2){array[index2]=args[start2+index2];}index2=-1;var otherArgs=Array2(start2+1);while(++index2<start2){otherArgs[index2]=args[index2];}otherArgs[start2]=transform2(array);return apply(func,this,otherArgs);};}function parent(object,path){return path.length<2?object:baseGet2(object,baseSlice(path,0,-1));}function reorder(array,indexes){var arrLength=array.length,length2=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);while(length2--){var index2=indexes[length2];array[length2]=isIndex2(index2,arrLength)?oldArray[index2]:undefined$1;}return array;}function safeGet(object,key){if(key==="constructor"&&typeof object[key]==="function"){return;}if(key=="__proto__"){return;}return object[key];}var setData=shortOut(baseSetData);var setTimeout2=ctxSetTimeout||function(func,wait){return root2.setTimeout(func,wait);};var setToString=shortOut(baseSetToString);function setWrapToString(wrapper2,reference2,bitmask){var source=reference2+"";return setToString(wrapper2,insertWrapDetails(source,updateWrapDetails(getWrapDetails(source),bitmask)));}function shortOut(func){var count2=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count2>=HOT_COUNT){return arguments[0];}}else{count2=0;}return func.apply(undefined$1,arguments);};}function shuffleSelf(array,size3){var index2=-1,length2=array.length,lastIndex=length2-1;size3=size3===undefined$1?length2:size3;while(++index2<size3){var rand=baseRandom(index2,lastIndex),value=array[rand];array[rand]=array[index2];array[index2]=value;}array.length=size3;return array;}var stringToPath2=memoizeCapped2(function(string){var result2=[];if(string.charCodeAt(0)===46){result2.push("");}string.replace(rePropName2,function(match2,number,quote,subString){result2.push(quote?subString.replace(reEscapeChar2,"$1"):number||match2);});return result2;});function toKey2(value){if(typeof value=="string"||isSymbol2(value)){return value;}var result2=value+"";return result2=="0"&&1/value==-INFINITY2?"-0":result2;}function toSource2(func){if(func!=null){try{return funcToString2.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}function updateWrapDetails(details,bitmask){arrayEach(wrapFlags,function(pair){var value="_."+pair[0];if(bitmask&pair[1]&&!arrayIncludes2(details,value)){details.push(value);}});return details.sort();}function wrapperClone(wrapper2){if(wrapper2 instanceof LazyWrapper){return wrapper2.clone();}var result2=new LodashWrapper(wrapper2.__wrapped__,wrapper2.__chain__);result2.__actions__=copyArray(wrapper2.__actions__);result2.__index__=wrapper2.__index__;result2.__values__=wrapper2.__values__;return result2;}function chunk(array,size3,guard){if(guard?isIterateeCall(array,size3,guard):size3===undefined$1){size3=1;}else{size3=nativeMax2(toInteger2(size3),0);}var length2=array==null?0:array.length;if(!length2||size3<1){return[];}var index2=0,resIndex=0,result2=Array2(nativeCeil(length2/size3));while(index2<length2){result2[resIndex++]=baseSlice(array,index2,index2+=size3);}return result2;}function compact(array){var index2=-1,length2=array==null?0:array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2];if(value){result2[resIndex++]=value;}}return result2;}function concat(){var length2=arguments.length;if(!length2){return[];}var args=Array2(length2-1),array=arguments[0],index2=length2;while(index2--){args[index2-1]=arguments[index2];}return arrayPush2(isArray2(array)?copyArray(array):[array],baseFlatten(args,1));}var difference=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true)):[];});var differenceBy=baseRest(function(array,values3){var iteratee2=last(values3);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),getIteratee(iteratee2,2)):[];});var differenceWith=baseRest(function(array,values3){var comparator=last(values3);if(isArrayLikeObject(comparator)){comparator=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),undefined$1,comparator):[];});function drop(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);return baseSlice(array,n<0?0:n,length2);}function dropRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);n=length2-n;return baseSlice(array,0,n<0?0:n);}function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true,true):[];}function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true):[];}function fill(array,value,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(start2&&typeof start2!="number"&&isIterateeCall(array,value,start2)){start2=0;end2=length2;}return baseFill(array,value,start2,end2);}function findIndex2(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger2(fromIndex);if(index2<0){index2=nativeMax2(length2+index2,0);}return baseFindIndex2(array,getIteratee(predicate,3),index2);}function findLastIndex(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2-1;if(fromIndex!==undefined$1){index2=toInteger2(fromIndex);index2=fromIndex<0?nativeMax2(length2+index2,0):nativeMin(index2,length2-1);}return baseFindIndex2(array,getIteratee(predicate,3),index2,true);}function flatten(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,1):[];}function flattenDeep(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,INFINITY2):[];}function flattenDepth(array,depth){var length2=array==null?0:array.length;if(!length2){return[];}depth=depth===undefined$1?1:toInteger2(depth);return baseFlatten(array,depth);}function fromPairs(pairs){var index2=-1,length2=pairs==null?0:pairs.length,result2={};while(++index2<length2){var pair=pairs[index2];result2[pair[0]]=pair[1];}return result2;}function head2(array){return array&&array.length?array[0]:undefined$1;}function indexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger2(fromIndex);if(index2<0){index2=nativeMax2(length2+index2,0);}return baseIndexOf(array,value,index2);}function initial(array){var length2=array==null?0:array.length;return length2?baseSlice(array,0,-1):[];}var intersection=baseRest(function(arrays){var mapped=arrayMap2(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[];});var intersectionBy=baseRest(function(arrays){var iteratee2=last(arrays),mapped=arrayMap2(arrays,castArrayLikeObject);if(iteratee2===last(mapped)){iteratee2=undefined$1;}else{mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee2,2)):[];});var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap2(arrays,castArrayLikeObject);comparator=typeof comparator=="function"?comparator:undefined$1;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined$1,comparator):[];});function join(array,separator){return array==null?"":nativeJoin.call(array,separator);}function last(array){var length2=array==null?0:array.length;return length2?array[length2-1]:undefined$1;}function lastIndexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2;if(fromIndex!==undefined$1){index2=toInteger2(fromIndex);index2=index2<0?nativeMax2(length2+index2,0):nativeMin(index2,length2-1);}return value===value?strictLastIndexOf(array,value,index2):baseFindIndex2(array,baseIsNaN,index2,true);}function nth(array,n){return array&&array.length?baseNth(array,toInteger2(n)):undefined$1;}var pull=baseRest(pullAll);function pullAll(array,values3){return array&&array.length&&values3&&values3.length?basePullAll(array,values3):array;}function pullAllBy(array,values3,iteratee2){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,getIteratee(iteratee2,2)):array;}function pullAllWith(array,values3,comparator){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,undefined$1,comparator):array;}var pullAt=flatRest(function(array,indexes){var length2=array==null?0:array.length,result2=baseAt(array,indexes);basePullAt(array,arrayMap2(indexes,function(index2){return isIndex2(index2,length2)?+index2:index2;}).sort(compareAscending));return result2;});function remove(array,predicate){var result2=[];if(!(array&&array.length)){return result2;}var index2=-1,indexes=[],length2=array.length;predicate=getIteratee(predicate,3);while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result2.push(value);indexes.push(index2);}}basePullAt(array,indexes);return result2;}function reverse(array){return array==null?array:nativeReverse.call(array);}function slice2(array,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(end2&&typeof end2!="number"&&isIterateeCall(array,start2,end2)){start2=0;end2=length2;}else{start2=start2==null?0:toInteger2(start2);end2=end2===undefined$1?length2:toInteger2(end2);}return baseSlice(array,start2,end2);}function sortedIndex(array,value){return baseSortedIndex(array,value);}function sortedIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2));}function sortedIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value);if(index2<length2&&eq2(array[index2],value)){return index2;}}return-1;}function sortedLastIndex(array,value){return baseSortedIndex(array,value,true);}function sortedLastIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2),true);}function sortedLastIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value,true)-1;if(eq2(array[index2],value)){return index2;}}return-1;}function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[];}function sortedUniqBy(array,iteratee2){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee2,2)):[];}function tail(array){var length2=array==null?0:array.length;return length2?baseSlice(array,1,length2):[];}function take(array,n,guard){if(!(array&&array.length)){return[];}n=guard||n===undefined$1?1:toInteger2(n);return baseSlice(array,0,n<0?0:n);}function takeRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);n=length2-n;return baseSlice(array,n<0?0:n,length2);}function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),false,true):[];}function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[];}var union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true));});var unionBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee2,2));});var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined$1,comparator);});function uniq(array){return array&&array.length?baseUniq(array):[];}function uniqBy(array,iteratee2){return array&&array.length?baseUniq(array,getIteratee(iteratee2,2)):[];}function uniqWith(array,comparator){comparator=typeof comparator=="function"?comparator:undefined$1;return array&&array.length?baseUniq(array,undefined$1,comparator):[];}function unzip(array){if(!(array&&array.length)){return[];}var length2=0;array=arrayFilter2(array,function(group){if(isArrayLikeObject(group)){length2=nativeMax2(group.length,length2);return true;}});return baseTimes2(length2,function(index2){return arrayMap2(array,baseProperty2(index2));});}function unzipWith(array,iteratee2){if(!(array&&array.length)){return[];}var result2=unzip(array);if(iteratee2==null){return result2;}return arrayMap2(result2,function(group){return apply(iteratee2,undefined$1,group);});}var without=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,values3):[];});var xor=baseRest(function(arrays){return baseXor(arrayFilter2(arrays,isArrayLikeObject));});var xorBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseXor(arrayFilter2(arrays,isArrayLikeObject),getIteratee(iteratee2,2));});var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseXor(arrayFilter2(arrays,isArrayLikeObject),undefined$1,comparator);});var zip=baseRest(unzip);function zipObject(props,values3){return baseZipObject(props||[],values3||[],assignValue);}function zipObjectDeep(props,values3){return baseZipObject(props||[],values3||[],baseSet);}var zipWith=baseRest(function(arrays){var length2=arrays.length,iteratee2=length2>1?arrays[length2-1]:undefined$1;iteratee2=typeof iteratee2=="function"?(arrays.pop(),iteratee2):undefined$1;return unzipWith(arrays,iteratee2);});function chain(value){var result2=lodash2(value);result2.__chain__=true;return result2;}function tap(value,interceptor){interceptor(value);return value;}function thru(value,interceptor){return interceptor(value);}var wrapperAt=flatRest(function(paths){var length2=paths.length,start2=length2?paths[0]:0,value=this.__wrapped__,interceptor=function interceptor(object){return baseAt(object,paths);};if(length2>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex2(start2)){return this.thru(interceptor);}value=value.slice(start2,+start2+(length2?1:0));value.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length2&&!array.length){array.push(undefined$1);}return array;});});function wrapperChain(){return chain(this);}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__);}function wrapperNext(){if(this.__values__===undefined$1){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined$1:this.__values__[this.__index__++];return{"done":done,"value":value};}function wrapperToIterator(){return this;}function wrapperPlant(value){var result2,parent2=this;while(parent2 instanceof baseLodash){var clone2=wrapperClone(parent2);clone2.__index__=0;clone2.__values__=undefined$1;if(result2){previous.__wrapped__=clone2;}else{result2=clone2;}var previous=clone2;parent2=parent2.__wrapped__;}previous.__wrapped__=value;return result2;}function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({"func":thru,"args":[reverse],"thisArg":undefined$1});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}var countBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){++result2[key];}else{baseAssignValue(result2,key,1);}});function every(collection,predicate,guard){var func=isArray2(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}function filter(collection,predicate){var func=isArray2(collection)?arrayFilter2:baseFilter;return func(collection,getIteratee(predicate,3));}var find2=createFind2(findIndex2);var findLast=createFind2(findLastIndex);function flatMap(collection,iteratee2){return baseFlatten(map2(collection,iteratee2),1);}function flatMapDeep(collection,iteratee2){return baseFlatten(map2(collection,iteratee2),INFINITY2);}function flatMapDepth(collection,iteratee2,depth){depth=depth===undefined$1?1:toInteger2(depth);return baseFlatten(map2(collection,iteratee2),depth);}function forEach(collection,iteratee2){var func=isArray2(collection)?arrayEach:baseEach2;return func(collection,getIteratee(iteratee2,3));}function forEachRight(collection,iteratee2){var func=isArray2(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee2,3));}var groupBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){result2[key].push(value);}else{baseAssignValue(result2,key,[value]);}});function includes(collection,value,fromIndex,guard){collection=isArrayLike2(collection)?collection:values2(collection);fromIndex=fromIndex&&!guard?toInteger2(fromIndex):0;var length2=collection.length;if(fromIndex<0){fromIndex=nativeMax2(length2+fromIndex,0);}return isString2(collection)?fromIndex<=length2&&collection.indexOf(value,fromIndex)>-1:!!length2&&baseIndexOf(collection,value,fromIndex)>-1;}var invokeMap=baseRest(function(collection,path,args){var index2=-1,isFunc=typeof path=="function",result2=isArrayLike2(collection)?Array2(collection.length):[];baseEach2(collection,function(value){result2[++index2]=isFunc?apply(path,value,args):baseInvoke(value,path,args);});return result2;});var keyBy=createAggregator(function(result2,value,key){baseAssignValue(result2,key,value);});function map2(collection,iteratee2){var func=isArray2(collection)?arrayMap2:baseMap2;return func(collection,getIteratee(iteratee2,3));}function orderBy(collection,iteratees,orders,guard){if(collection==null){return[];}if(!isArray2(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined$1:orders;if(!isArray2(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}var partition=createAggregator(function(result2,value,key){result2[key?0:1].push(value);},function(){return[[],[]];});function reduce(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEach2);}function reduceRight(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEachRight);}function reject(collection,predicate){var func=isArray2(collection)?arrayFilter2:baseFilter;return func(collection,negate(getIteratee(predicate,3)));}function sample(collection){var func=isArray2(collection)?arraySample:baseSample;return func(collection);}function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else{n=toInteger2(n);}var func=isArray2(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}function shuffle(collection){var func=isArray2(collection)?arrayShuffle:baseShuffle;return func(collection);}function size2(collection){if(collection==null){return 0;}if(isArrayLike2(collection)){return isString2(collection)?stringSize(collection):collection.length;}var tag=getTag2(collection);if(tag==mapTag2||tag==setTag2){return collection.size;}return baseKeys2(collection).length;}function some(collection,predicate,guard){var func=isArray2(collection)?arraySome2:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}var sortBy=baseRest(function(collection,iteratees){if(collection==null){return[];}var length2=iteratees.length;if(length2>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length2>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});var now=ctxNow||function(){return root2.Date.now();};function after(n,func){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}n=toInteger2(n);return function(){if(--n<1){return func.apply(this,arguments);}};}function ary(func,n,guard){n=guard?undefined$1:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,n);}function before(n,func){var result2;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}n=toInteger2(n);return function(){if(--n>0){result2=func.apply(this,arguments);}if(n<=1){func=undefined$1;}return result2;};}var bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(func,bitmask,thisArg,partials,holders);});var bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(key,bitmask,object,partials,holders);});function curry(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curry.placeholder;return result2;}function curryRight(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curryRight.placeholder;return result2;}function debounce2(func,wait,options){var lastArgs,lastThis,maxWait,result2,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}wait=toNumber2(wait)||0;if(isObject2(options)){leading=!!options.leading;maxing="maxWait"in options;maxWait=maxing?nativeMax2(toNumber2(options.maxWait)||0,wait):maxWait;trailing="trailing"in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined$1;lastInvokeTime=time;result2=func.apply(thisArg,args);return result2;}function leadingEdge(time){lastInvokeTime=time;timerId=setTimeout2(timerExpired,wait);return leading?invokeFunc(time):result2;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;return lastCallTime===undefined$1||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}timerId=setTimeout2(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined$1;if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined$1;return result2;}function cancel(){if(timerId!==undefined$1){clearTimeout2(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined$1;}function flush(){return timerId===undefined$1?result2:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined$1){return leadingEdge(lastCallTime);}if(maxing){clearTimeout2(timerId);timerId=setTimeout2(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined$1){timerId=setTimeout2(timerExpired,wait);}return result2;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}var defer2=baseRest(function(func,args){return baseDelay(func,1,args);});var delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber2(wait)||0,args);});function flip2(func){return createWrap(func,WRAP_FLIP_FLAG);}function memoize2(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}var _memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized.cache;if(cache.has(key)){return cache.get(key);}var result2=func.apply(this,args);_memoized.cache=cache.set(key,result2)||cache;return result2;};_memoized.cache=new(memoize2.Cache||MapCache2)();return _memoized;}memoize2.Cache=MapCache2;function negate(predicate){if(typeof predicate!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2]);}return!predicate.apply(this,args);};}function once(func){return before(2,func);}var overArgs=castRest(function(func,transforms){transforms=transforms.length==1&&isArray2(transforms[0])?arrayMap2(transforms[0],baseUnary2(getIteratee())):arrayMap2(baseFlatten(transforms,1),baseUnary2(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){var index2=-1,length2=nativeMin(args.length,funcsLength);while(++index2<length2){args[index2]=transforms[index2].call(this,args[index2]);}return apply(func,this,args);});});var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined$1,partials,holders);});var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined$1,partials,holders);});var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined$1,undefined$1,undefined$1,indexes);});function rest(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}start2=start2===undefined$1?start2:toInteger2(start2);return baseRest(func,start2);}function spread(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}start2=start2==null?0:nativeMax2(toInteger2(start2),0);return baseRest(function(args){var array=args[start2],otherArgs=castSlice(args,0,start2);if(array){arrayPush2(otherArgs,array);}return apply(func,this,otherArgs);});}function throttle(func,wait,options){var leading=true,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}if(isObject2(options)){leading="leading"in options?!!options.leading:leading;trailing="trailing"in options?!!options.trailing:trailing;}return debounce2(func,wait,{"leading":leading,"maxWait":wait,"trailing":trailing});}function unary(func){return ary(func,1);}function wrap(value,wrapper2){return partial(castFunction(wrapper2),value);}function castArray(){if(!arguments.length){return[];}var value=arguments[0];return isArray2(value)?value:[value];}function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG);}function cloneWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}function cloneDeepWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}function conformsTo(object,source){return source==null||baseConformsTo(object,source,keys2(source));}function eq2(value,other){return value===other||value!==value&&other!==other;}var gt=createRelationalOperation(baseGt);var gte=createRelationalOperation(function(value,other){return value>=other;});var isArguments2=baseIsArguments2(/* @__PURE__ */function(){return arguments;}())?baseIsArguments2:function(value){return isObjectLike2(value)&&hasOwnProperty2.call(value,"callee")&&!propertyIsEnumerable2.call(value,"callee");};var isArray2=Array2.isArray;var isArrayBuffer=nodeIsArrayBuffer?baseUnary2(nodeIsArrayBuffer):baseIsArrayBuffer;function isArrayLike2(value){return value!=null&&isLength2(value.length)&&!isFunction2(value);}function isArrayLikeObject(value){return isObjectLike2(value)&&isArrayLike2(value);}function isBoolean(value){return value===true||value===false||isObjectLike2(value)&&baseGetTag2(value)==boolTag2;}var isBuffer2=nativeIsBuffer||stubFalse2;var isDate2=nodeIsDate?baseUnary2(nodeIsDate):baseIsDate;function isElement2(value){return isObjectLike2(value)&&value.nodeType===1&&!isPlainObject2(value);}function isEmpty2(value){if(value==null){return true;}if(isArrayLike2(value)&&(isArray2(value)||typeof value=="string"||typeof value.splice=="function"||isBuffer2(value)||isTypedArray2(value)||isArguments2(value))){return!value.length;}var tag=getTag2(value);if(tag==mapTag2||tag==setTag2){return!value.size;}if(isPrototype2(value)){return!baseKeys2(value).length;}for(var key in value){if(hasOwnProperty2.call(value,key)){return false;}}return true;}function isEqual2(value,other){return baseIsEqual2(value,other);}function isEqualWith(value,other,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;var result2=customizer?customizer(value,other):undefined$1;return result2===undefined$1?baseIsEqual2(value,other,undefined$1,customizer):!!result2;}function isError(value){if(!isObjectLike2(value)){return false;}var tag=baseGetTag2(value);return tag==errorTag2||tag==domExcTag||typeof value.message=="string"&&typeof value.name=="string"&&!isPlainObject2(value);}function isFinite2(value){return typeof value=="number"&&nativeIsFinite(value);}function isFunction2(value){if(!isObject2(value)){return false;}var tag=baseGetTag2(value);return tag==funcTag2||tag==genTag2||tag==asyncTag2||tag==proxyTag2;}function isInteger(value){return typeof value=="number"&&value==toInteger2(value);}function isLength2(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER2;}function isObject2(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}function isObjectLike2(value){return value!=null&&_typeof2(value)=="object";}var isMap=nodeIsMap?baseUnary2(nodeIsMap):baseIsMap;function isMatch(object,source){return object===source||baseIsMatch2(object,source,getMatchData2(source));}function isMatchWith(object,source,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseIsMatch2(object,source,getMatchData2(source),customizer);}function isNaN2(value){return isNumber(value)&&value!=+value;}function isNative(value){if(isMaskable(value)){throw new Error2(CORE_ERROR_TEXT);}return baseIsNative2(value);}function isNull(value){return value===null;}function isNil(value){return value==null;}function isNumber(value){return typeof value=="number"||isObjectLike2(value)&&baseGetTag2(value)==numberTag2;}function isPlainObject2(value){if(!isObjectLike2(value)||baseGetTag2(value)!=objectTag2){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty2.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString2.call(Ctor)==objectCtorString;}var isRegExp=nodeIsRegExp?baseUnary2(nodeIsRegExp):baseIsRegExp;function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER2&&value<=MAX_SAFE_INTEGER2;}var isSet=nodeIsSet?baseUnary2(nodeIsSet):baseIsSet;function isString2(value){return typeof value=="string"||!isArray2(value)&&isObjectLike2(value)&&baseGetTag2(value)==stringTag2;}function isSymbol2(value){return _typeof2(value)=="symbol"||isObjectLike2(value)&&baseGetTag2(value)==symbolTag2;}var isTypedArray2=nodeIsTypedArray2?baseUnary2(nodeIsTypedArray2):baseIsTypedArray2;function isUndefined2(value){return value===undefined$1;}function isWeakMap(value){return isObjectLike2(value)&&getTag2(value)==weakMapTag2;}function isWeakSet(value){return isObjectLike2(value)&&baseGetTag2(value)==weakSetTag;}var lt=createRelationalOperation(baseLt);var lte=createRelationalOperation(function(value,other){return value<=other;});function toArray(value){if(!value){return[];}if(isArrayLike2(value)){return isString2(value)?stringToArray(value):copyArray(value);}if(symIterator&&value[symIterator]){return iteratorToArray(value[symIterator]());}var tag=getTag2(value),func=tag==mapTag2?mapToArray2:tag==setTag2?setToArray2:values2;return func(value);}function toFinite2(value){if(!value){return value===0?value:0;}value=toNumber2(value);if(value===INFINITY2||value===-INFINITY2){var sign=value<0?-1:1;return sign*MAX_INTEGER2;}return value===value?value:0;}function toInteger2(value){var result2=toFinite2(value),remainder=result2%1;return result2===result2?remainder?result2-remainder:result2:0;}function toLength(value){return value?baseClamp(toInteger2(value),0,MAX_ARRAY_LENGTH):0;}function toNumber2(value){if(typeof value=="number"){return value;}if(isSymbol2(value)){return NAN2;}if(isObject2(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject2(other)?other+"":other;}if(typeof value!="string"){return value===0?value:+value;}value=baseTrim2(value);var isBinary=reIsBinary2.test(value);return isBinary||reIsOctal2.test(value)?freeParseInt2(value.slice(2),isBinary?2:8):reIsBadHex2.test(value)?NAN2:+value;}function toPlainObject(value){return copyObject(value,keysIn(value));}function toSafeInteger(value){return value?baseClamp(toInteger2(value),-MAX_SAFE_INTEGER2,MAX_SAFE_INTEGER2):value===0?value:0;}function toString2(value){return value==null?"":baseToString2(value);}var assign2=createAssigner(function(object,source){if(isPrototype2(source)||isArrayLike2(source)){copyObject(source,keys2(source),object);return;}for(var key in source){if(hasOwnProperty2.call(source,key)){assignValue(object,key,source[key]);}}});var assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object);});var assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer);});var assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys2(source),object,customizer);});var at=flatRest(baseAt);function create(prototype,properties2){var result2=baseCreate(prototype);return properties2==null?result2:baseAssign(result2,properties2);}var defaults=baseRest(function(object,sources){object=Object2(object);var index2=-1;var length2=sources.length;var guard=length2>2?sources[2]:undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length2=1;}while(++index2<length2){var source=sources[index2];var props=keysIn(source);var propsIndex=-1;var propsLength=props.length;while(++propsIndex<propsLength){var key=props[propsIndex];var value=object[key];if(value===undefined$1||eq2(value,objectProto2[key])&&!hasOwnProperty2.call(object,key)){object[key]=source[key];}}}return object;});var defaultsDeep=baseRest(function(args){args.push(undefined$1,customDefaultsMerge);return apply(mergeWith,undefined$1,args);});function findKey2(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn2);}function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight);}function forIn(object,iteratee2){return object==null?object:baseFor2(object,getIteratee(iteratee2,3),keysIn);}function forInRight(object,iteratee2){return object==null?object:baseForRight(object,getIteratee(iteratee2,3),keysIn);}function forOwn(object,iteratee2){return object&&baseForOwn2(object,getIteratee(iteratee2,3));}function forOwnRight(object,iteratee2){return object&&baseForOwnRight(object,getIteratee(iteratee2,3));}function functions(object){return object==null?[]:baseFunctions(object,keys2(object));}function functionsIn(object){return object==null?[]:baseFunctions(object,keysIn(object));}function get2(object,path,defaultValue){var result2=object==null?undefined$1:baseGet2(object,path);return result2===undefined$1?defaultValue:result2;}function has2(object,path){return object!=null&&hasPath2(object,path,baseHas);}function hasIn2(object,path){return object!=null&&hasPath2(object,path,baseHasIn2);}var invert=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString2.call(value);}result2[value]=key;},constant(identity2));var invertBy=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString2.call(value);}if(hasOwnProperty2.call(result2,value)){result2[value].push(key);}else{result2[value]=[key];}},getIteratee);var invoke=baseRest(baseInvoke);function keys2(object){return isArrayLike2(object)?arrayLikeKeys2(object):baseKeys2(object);}function keysIn(object){return isArrayLike2(object)?arrayLikeKeys2(object,true):baseKeysIn(object);}function mapKeys(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn2(object,function(value,key,object2){baseAssignValue(result2,iteratee2(value,key,object2),value);});return result2;}function mapValues(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn2(object,function(value,key,object2){baseAssignValue(result2,key,iteratee2(value,key,object2));});return result2;}var merge2=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex);});var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);});var omit=flatRest(function(object,paths){var result2={};if(object==null){return result2;}var isDeep=false;paths=arrayMap2(paths,function(path){path=castPath2(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result2);if(isDeep){result2=baseClone(result2,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone);}var length2=paths.length;while(length2--){baseUnset(result2,paths[length2]);}return result2;});function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)));}var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});function pickBy(object,predicate){if(object==null){return{};}var props=arrayMap2(getAllKeysIn(object),function(prop){return[prop];});predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0]);});}function result(object,path,defaultValue){path=castPath2(path,object);var index2=-1,length2=path.length;if(!length2){length2=1;object=undefined$1;}while(++index2<length2){var value=object==null?undefined$1:object[toKey2(path[index2])];if(value===undefined$1){index2=length2;value=defaultValue;}object=isFunction2(value)?value.call(object):value;}return object;}function set(object,path,value){return object==null?object:baseSet(object,path,value);}function setWith(object,path,value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseSet(object,path,value,customizer);}var toPairs=createToPairs(keys2);var toPairsIn=createToPairs(keysIn);function transform(object,iteratee2,accumulator){var isArr=isArray2(object),isArrLike=isArr||isBuffer2(object)||isTypedArray2(object);iteratee2=getIteratee(iteratee2,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject2(object)){accumulator=isFunction2(Ctor)?baseCreate(getPrototype(object)):{};}else{accumulator={};}}(isArrLike?arrayEach:baseForOwn2)(object,function(value,index2,object2){return iteratee2(accumulator,value,index2,object2);});return accumulator;}function unset(object,path){return object==null?true:baseUnset(object,path);}function update(object,path,updater){return object==null?object:baseUpdate(object,path,castFunction(updater));}function updateWith(object,path,updater,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}function values2(object){return object==null?[]:baseValues(object,keys2(object));}function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}function clamp2(number,lower,upper){if(upper===undefined$1){upper=lower;lower=undefined$1;}if(upper!==undefined$1){upper=toNumber2(upper);upper=upper===upper?upper:0;}if(lower!==undefined$1){lower=toNumber2(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber2(number),lower,upper);}function inRange(number,start2,end2){start2=toFinite2(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite2(end2);}number=toNumber2(number);return baseInRange(number,start2,end2);}function random(lower,upper,floating){if(floating&&typeof floating!="boolean"&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=="boolean"){floating=upper;upper=undefined$1;}else if(typeof lower=="boolean"){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else{lower=toFinite2(lower);if(upper===undefined$1){upper=lower;lower=0;}else{upper=toFinite2(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper);}return baseRandom(lower,upper);}var camelCase=createCompounder(function(result2,word,index2){word=word.toLowerCase();return result2+(index2?capitalize2(word):word);});function capitalize2(string){return upperFirst(toString2(string).toLowerCase());}function deburr(string){string=toString2(string);return string&&string.replace(reLatin,deburrLetter).replace(reComboMark,"");}function endsWith(string,target,position2){string=toString2(string);target=baseToString2(target);var length2=string.length;position2=position2===undefined$1?length2:baseClamp(toInteger2(position2),0,length2);var end2=position2;position2-=target.length;return position2>=0&&string.slice(position2,end2)==target;}function escape2(string){string=toString2(string);return string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string;}function escapeRegExp(string){string=toString2(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar2,"\\$&"):string;}var kebabCase=createCompounder(function(result2,word,index2){return result2+(index2?"-":"")+word.toLowerCase();});var lowerCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toLowerCase();});var lowerFirst=createCaseFirst("toLowerCase");function pad(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;if(!length2||strLength>=length2){return string;}var mid=(length2-strLength)/2;return createPadding(nativeFloor(mid),chars2)+string+createPadding(nativeCeil(mid),chars2);}function padEnd(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?string+createPadding(length2-strLength,chars2):string;}function padStart(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?createPadding(length2-strLength,chars2)+string:string;}function parseInt2(string,radix,guard){if(guard||radix==null){radix=0;}else if(radix){radix=+radix;}return nativeParseInt(toString2(string).replace(reTrimStart2,""),radix||0);}function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else{n=toInteger2(n);}return baseRepeat(toString2(string),n);}function replace2(){var args=arguments,string=toString2(args[0]);return args.length<3?string:string.replace(args[1],args[2]);}var snakeCase=createCompounder(function(result2,word,index2){return result2+(index2?"_":"")+word.toLowerCase();});function split(string,separator,limit){if(limit&&typeof limit!="number"&&isIterateeCall(string,separator,limit)){separator=limit=undefined$1;}limit=limit===undefined$1?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return[];}string=toString2(string);if(string&&(typeof separator=="string"||separator!=null&&!isRegExp(separator))){separator=baseToString2(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}var startCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+upperFirst(word);});function startsWith(string,target,position2){string=toString2(string);position2=position2==null?0:baseClamp(toInteger2(position2),0,string.length);target=baseToString2(target);return string.slice(position2,position2+target.length)==target;}function template(string,options,guard){var settings=lodash2.templateSettings;if(guard&&isIterateeCall(string,options,guard)){options=undefined$1;}string=toString2(string);options=assignInWith({},options,settings,customDefaultsAssignIn);var imports=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys2(imports),importsValues=baseValues(imports,importsKeys);var isEscaping,isEvaluating,index2=0,interpolate=options.interpolate||reNoMatch,source="__p += '";var reDelimiters=RegExp2((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");var sourceURL="//# sourceURL="+(hasOwnProperty2.call(options,"sourceURL")?(options.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match2,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset2){interpolateValue||(interpolateValue=esTemplateValue);source+=string.slice(index2,offset2).replace(reUnescapedString,escapeStringChar);if(escapeValue){isEscaping=true;source+="' +\n__e("+escapeValue+") +\n'";}if(evaluateValue){isEvaluating=true;source+="';\n"+evaluateValue+";\n__p += '";}if(interpolateValue){source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'";}index2=offset2+match2.length;return match2;});source+="';\n";var variable=hasOwnProperty2.call(options,"variable")&&options.variable;if(!variable){source="with (obj) {\n"+source+"\n}\n";}else if(reForbiddenIdentifierChars.test(variable)){throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);}source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined$1,importsValues);});result2.source=source;if(isError(result2)){throw result2;}return result2;}function toLower(value){return toString2(value).toLowerCase();}function toUpper(value){return toString2(value).toUpperCase();}function trim2(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return baseTrim2(string);}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars2),start2=charsStartIndex(strSymbols,chrSymbols),end2=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start2,end2).join("");}function trimEnd(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return string.slice(0,trimmedEndIndex2(string)+1);}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),end2=charsEndIndex(strSymbols,stringToArray(chars2))+1;return castSlice(strSymbols,0,end2).join("");}function trimStart(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return string.replace(reTrimStart2,"");}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),start2=charsStartIndex(strSymbols,stringToArray(chars2));return castSlice(strSymbols,start2).join("");}function truncate(string,options){var length2=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject2(options)){var separator="separator"in options?options.separator:separator;length2="length"in options?toInteger2(options.length):length2;omission="omission"in options?baseToString2(options.omission):omission;}string=toString2(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length;}if(length2>=strLength){return string;}var end2=length2-stringSize(omission);if(end2<1){return omission;}var result2=strSymbols?castSlice(strSymbols,0,end2).join(""):string.slice(0,end2);if(separator===undefined$1){return result2+omission;}if(strSymbols){end2+=result2.length-end2;}if(isRegExp(separator)){if(string.slice(end2).search(separator)){var match2,substring=result2;if(!separator.global){separator=RegExp2(separator.source,toString2(reFlags.exec(separator))+"g");}separator.lastIndex=0;while(match2=separator.exec(substring)){var newEnd=match2.index;}result2=result2.slice(0,newEnd===undefined$1?end2:newEnd);}}else if(string.indexOf(baseToString2(separator),end2)!=end2){var index2=result2.lastIndexOf(separator);if(index2>-1){result2=result2.slice(0,index2);}}return result2+omission;}function unescape2(string){string=toString2(string);return string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string;}var upperCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toUpperCase();});var upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){string=toString2(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}var attempt=baseRest(function(func,args){try{return apply(func,undefined$1,args);}catch(e){return isError(e)?e:new Error2(e);}});var bindAll=flatRest(function(object,methodNames){arrayEach(methodNames,function(key){key=toKey2(key);baseAssignValue(object,key,bind(object[key],object));});return object;});function cond(pairs){var length2=pairs==null?0:pairs.length,toIteratee=getIteratee();pairs=!length2?[]:arrayMap2(pairs,function(pair){if(typeof pair[1]!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return[toIteratee(pair[0]),pair[1]];});return baseRest(function(args){var index2=-1;while(++index2<length2){var pair=pairs[index2];if(apply(pair[0],this,args)){return apply(pair[1],this,args);}}});}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG));}function constant(value){return function(){return value;};}function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value;}var flow=createFlow();var flowRight=createFlow(true);function identity2(value){return value;}function iteratee(func){return baseIteratee2(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG));}function matches(source){return baseMatches2(baseClone(source,CLONE_DEEP_FLAG));}function matchesProperty(path,srcValue){return baseMatchesProperty2(path,baseClone(srcValue,CLONE_DEEP_FLAG));}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args);};});var methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args);};});function mixin(object,source,options){var props=keys2(source),methodNames=baseFunctions(source,props);if(options==null&&!(isObject2(source)&&(methodNames.length||!props.length))){options=source;source=object;object=this;methodNames=baseFunctions(source,keys2(source));}var chain2=!(isObject2(options)&&"chain"in options)||!!options.chain,isFunc=isFunction2(object);arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func;if(isFunc){object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);actions.push({"func":func,"args":arguments,"thisArg":object});result2.__chain__=chainAll;return result2;}return func.apply(object,arrayPush2([this.value()],arguments));};}});return object;}function noConflict(){if(root2._===this){root2._=oldDash;}return this;}function noop4(){}function nthArg(n){n=toInteger2(n);return baseRest(function(args){return baseNth(args,n);});}var over=createOver(arrayMap2);var overEvery=createOver(arrayEvery);var overSome=createOver(arraySome2);function property2(path){return isKey2(path)?baseProperty2(toKey2(path)):basePropertyDeep2(path);}function propertyOf(object){return function(path){return object==null?undefined$1:baseGet2(object,path);};}var range=createRange();var rangeRight=createRange(true);function stubArray2(){return[];}function stubFalse2(){return false;}function stubObject(){return{};}function stubString(){return"";}function stubTrue(){return true;}function times(n,iteratee2){n=toInteger2(n);if(n<1||n>MAX_SAFE_INTEGER2){return[];}var index2=MAX_ARRAY_LENGTH,length2=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2);n-=MAX_ARRAY_LENGTH;var result2=baseTimes2(length2,iteratee2);while(++index2<n){iteratee2(index2);}return result2;}function toPath(value){if(isArray2(value)){return arrayMap2(value,toKey2);}return isSymbol2(value)?[value]:copyArray(stringToPath2(toString2(value)));}function uniqueId(prefix2){var id=++idCounter2;return toString2(prefix2)+id;}var add=createMathOperation(function(augend,addend){return augend+addend;},0);var ceil=createRound("ceil");var divide=createMathOperation(function(dividend,divisor){return dividend/divisor;},1);var floor2=createRound("floor");function max2(array){return array&&array.length?baseExtremum(array,identity2,baseGt):undefined$1;}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined$1;}function mean(array){return baseMean(array,identity2);}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2));}function min2(array){return array&&array.length?baseExtremum(array,identity2,baseLt):undefined$1;}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined$1;}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand;},1);var round2=createRound("round");var subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend;},0);function sum(array){return array&&array.length?baseSum(array,identity2):0;}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0;}lodash2.after=after;lodash2.ary=ary;lodash2.assign=assign2;lodash2.assignIn=assignIn;lodash2.assignInWith=assignInWith;lodash2.assignWith=assignWith;lodash2.at=at;lodash2.before=before;lodash2.bind=bind;lodash2.bindAll=bindAll;lodash2.bindKey=bindKey;lodash2.castArray=castArray;lodash2.chain=chain;lodash2.chunk=chunk;lodash2.compact=compact;lodash2.concat=concat;lodash2.cond=cond;lodash2.conforms=conforms;lodash2.constant=constant;lodash2.countBy=countBy;lodash2.create=create;lodash2.curry=curry;lodash2.curryRight=curryRight;lodash2.debounce=debounce2;lodash2.defaults=defaults;lodash2.defaultsDeep=defaultsDeep;lodash2.defer=defer2;lodash2.delay=delay;lodash2.difference=difference;lodash2.differenceBy=differenceBy;lodash2.differenceWith=differenceWith;lodash2.drop=drop;lodash2.dropRight=dropRight;lodash2.dropRightWhile=dropRightWhile;lodash2.dropWhile=dropWhile;lodash2.fill=fill;lodash2.filter=filter;lodash2.flatMap=flatMap;lodash2.flatMapDeep=flatMapDeep;lodash2.flatMapDepth=flatMapDepth;lodash2.flatten=flatten;lodash2.flattenDeep=flattenDeep;lodash2.flattenDepth=flattenDepth;lodash2.flip=flip2;lodash2.flow=flow;lodash2.flowRight=flowRight;lodash2.fromPairs=fromPairs;lodash2.functions=functions;lodash2.functionsIn=functionsIn;lodash2.groupBy=groupBy;lodash2.initial=initial;lodash2.intersection=intersection;lodash2.intersectionBy=intersectionBy;lodash2.intersectionWith=intersectionWith;lodash2.invert=invert;lodash2.invertBy=invertBy;lodash2.invokeMap=invokeMap;lodash2.iteratee=iteratee;lodash2.keyBy=keyBy;lodash2.keys=keys2;lodash2.keysIn=keysIn;lodash2.map=map2;lodash2.mapKeys=mapKeys;lodash2.mapValues=mapValues;lodash2.matches=matches;lodash2.matchesProperty=matchesProperty;lodash2.memoize=memoize2;lodash2.merge=merge2;lodash2.mergeWith=mergeWith;lodash2.method=method;lodash2.methodOf=methodOf;lodash2.mixin=mixin;lodash2.negate=negate;lodash2.nthArg=nthArg;lodash2.omit=omit;lodash2.omitBy=omitBy;lodash2.once=once;lodash2.orderBy=orderBy;lodash2.over=over;lodash2.overArgs=overArgs;lodash2.overEvery=overEvery;lodash2.overSome=overSome;lodash2.partial=partial;lodash2.partialRight=partialRight;lodash2.partition=partition;lodash2.pick=pick;lodash2.pickBy=pickBy;lodash2.property=property2;lodash2.propertyOf=propertyOf;lodash2.pull=pull;lodash2.pullAll=pullAll;lodash2.pullAllBy=pullAllBy;lodash2.pullAllWith=pullAllWith;lodash2.pullAt=pullAt;lodash2.range=range;lodash2.rangeRight=rangeRight;lodash2.rearg=rearg;lodash2.reject=reject;lodash2.remove=remove;lodash2.rest=rest;lodash2.reverse=reverse;lodash2.sampleSize=sampleSize;lodash2.set=set;lodash2.setWith=setWith;lodash2.shuffle=shuffle;lodash2.slice=slice2;lodash2.sortBy=sortBy;lodash2.sortedUniq=sortedUniq;lodash2.sortedUniqBy=sortedUniqBy;lodash2.split=split;lodash2.spread=spread;lodash2.tail=tail;lodash2.take=take;lodash2.takeRight=takeRight;lodash2.takeRightWhile=takeRightWhile;lodash2.takeWhile=takeWhile;lodash2.tap=tap;lodash2.throttle=throttle;lodash2.thru=thru;lodash2.toArray=toArray;lodash2.toPairs=toPairs;lodash2.toPairsIn=toPairsIn;lodash2.toPath=toPath;lodash2.toPlainObject=toPlainObject;lodash2.transform=transform;lodash2.unary=unary;lodash2.union=union;lodash2.unionBy=unionBy;lodash2.unionWith=unionWith;lodash2.uniq=uniq;lodash2.uniqBy=uniqBy;lodash2.uniqWith=uniqWith;lodash2.unset=unset;lodash2.unzip=unzip;lodash2.unzipWith=unzipWith;lodash2.update=update;lodash2.updateWith=updateWith;lodash2.values=values2;lodash2.valuesIn=valuesIn;lodash2.without=without;lodash2.words=words;lodash2.wrap=wrap;lodash2.xor=xor;lodash2.xorBy=xorBy;lodash2.xorWith=xorWith;lodash2.zip=zip;lodash2.zipObject=zipObject;lodash2.zipObjectDeep=zipObjectDeep;lodash2.zipWith=zipWith;lodash2.entries=toPairs;lodash2.entriesIn=toPairsIn;lodash2.extend=assignIn;lodash2.extendWith=assignInWith;mixin(lodash2,lodash2);lodash2.add=add;lodash2.attempt=attempt;lodash2.camelCase=camelCase;lodash2.capitalize=capitalize2;lodash2.ceil=ceil;lodash2.clamp=clamp2;lodash2.clone=clone;lodash2.cloneDeep=cloneDeep;lodash2.cloneDeepWith=cloneDeepWith;lodash2.cloneWith=cloneWith;lodash2.conformsTo=conformsTo;lodash2.deburr=deburr;lodash2.defaultTo=defaultTo;lodash2.divide=divide;lodash2.endsWith=endsWith;lodash2.eq=eq2;lodash2.escape=escape2;lodash2.escapeRegExp=escapeRegExp;lodash2.every=every;lodash2.find=find2;lodash2.findIndex=findIndex2;lodash2.findKey=findKey2;lodash2.findLast=findLast;lodash2.findLastIndex=findLastIndex;lodash2.findLastKey=findLastKey;lodash2.floor=floor2;lodash2.forEach=forEach;lodash2.forEachRight=forEachRight;lodash2.forIn=forIn;lodash2.forInRight=forInRight;lodash2.forOwn=forOwn;lodash2.forOwnRight=forOwnRight;lodash2.get=get2;lodash2.gt=gt;lodash2.gte=gte;lodash2.has=has2;lodash2.hasIn=hasIn2;lodash2.head=head2;lodash2.identity=identity2;lodash2.includes=includes;lodash2.indexOf=indexOf;lodash2.inRange=inRange;lodash2.invoke=invoke;lodash2.isArguments=isArguments2;lodash2.isArray=isArray2;lodash2.isArrayBuffer=isArrayBuffer;lodash2.isArrayLike=isArrayLike2;lodash2.isArrayLikeObject=isArrayLikeObject;lodash2.isBoolean=isBoolean;lodash2.isBuffer=isBuffer2;lodash2.isDate=isDate2;lodash2.isElement=isElement2;lodash2.isEmpty=isEmpty2;lodash2.isEqual=isEqual2;lodash2.isEqualWith=isEqualWith;lodash2.isError=isError;lodash2.isFinite=isFinite2;lodash2.isFunction=isFunction2;lodash2.isInteger=isInteger;lodash2.isLength=isLength2;lodash2.isMap=isMap;lodash2.isMatch=isMatch;lodash2.isMatchWith=isMatchWith;lodash2.isNaN=isNaN2;lodash2.isNative=isNative;lodash2.isNil=isNil;lodash2.isNull=isNull;lodash2.isNumber=isNumber;lodash2.isObject=isObject2;lodash2.isObjectLike=isObjectLike2;lodash2.isPlainObject=isPlainObject2;lodash2.isRegExp=isRegExp;lodash2.isSafeInteger=isSafeInteger;lodash2.isSet=isSet;lodash2.isString=isString2;lodash2.isSymbol=isSymbol2;lodash2.isTypedArray=isTypedArray2;lodash2.isUndefined=isUndefined2;lodash2.isWeakMap=isWeakMap;lodash2.isWeakSet=isWeakSet;lodash2.join=join;lodash2.kebabCase=kebabCase;lodash2.last=last;lodash2.lastIndexOf=lastIndexOf;lodash2.lowerCase=lowerCase;lodash2.lowerFirst=lowerFirst;lodash2.lt=lt;lodash2.lte=lte;lodash2.max=max2;lodash2.maxBy=maxBy;lodash2.mean=mean;lodash2.meanBy=meanBy;lodash2.min=min2;lodash2.minBy=minBy;lodash2.stubArray=stubArray2;lodash2.stubFalse=stubFalse2;lodash2.stubObject=stubObject;lodash2.stubString=stubString;lodash2.stubTrue=stubTrue;lodash2.multiply=multiply;lodash2.nth=nth;lodash2.noConflict=noConflict;lodash2.noop=noop4;lodash2.now=now;lodash2.pad=pad;lodash2.padEnd=padEnd;lodash2.padStart=padStart;lodash2.parseInt=parseInt2;lodash2.random=random;lodash2.reduce=reduce;lodash2.reduceRight=reduceRight;lodash2.repeat=repeat;lodash2.replace=replace2;lodash2.result=result;lodash2.round=round2;lodash2.runInContext=runInContext2;lodash2.sample=sample;lodash2.size=size2;lodash2.snakeCase=snakeCase;lodash2.some=some;lodash2.sortedIndex=sortedIndex;lodash2.sortedIndexBy=sortedIndexBy;lodash2.sortedIndexOf=sortedIndexOf;lodash2.sortedLastIndex=sortedLastIndex;lodash2.sortedLastIndexBy=sortedLastIndexBy;lodash2.sortedLastIndexOf=sortedLastIndexOf;lodash2.startCase=startCase;lodash2.startsWith=startsWith;lodash2.subtract=subtract;lodash2.sum=sum;lodash2.sumBy=sumBy;lodash2.template=template;lodash2.times=times;lodash2.toFinite=toFinite2;lodash2.toInteger=toInteger2;lodash2.toLength=toLength;lodash2.toLower=toLower;lodash2.toNumber=toNumber2;lodash2.toSafeInteger=toSafeInteger;lodash2.toString=toString2;lodash2.toUpper=toUpper;lodash2.trim=trim2;lodash2.trimEnd=trimEnd;lodash2.trimStart=trimStart;lodash2.truncate=truncate;lodash2.unescape=unescape2;lodash2.uniqueId=uniqueId;lodash2.upperCase=upperCase;lodash2.upperFirst=upperFirst;lodash2.each=forEach;lodash2.eachRight=forEachRight;lodash2.first=head2;mixin(lodash2,function(){var source={};baseForOwn2(lodash2,function(func,methodName){if(!hasOwnProperty2.call(lodash2.prototype,methodName)){source[methodName]=func;}});return source;}(),{"chain":false});lodash2.VERSION=VERSION;arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash2[methodName].placeholder=lodash2;});arrayEach(["drop","take"],function(methodName,index2){LazyWrapper.prototype[methodName]=function(n){n=n===undefined$1?1:nativeMax2(toInteger2(n),0);var result2=this.__filtered__&&!index2?new LazyWrapper(this):this.clone();if(result2.__filtered__){result2.__takeCount__=nativeMin(n,result2.__takeCount__);}else{result2.__views__.push({"size":nativeMin(n,MAX_ARRAY_LENGTH),"type":methodName+(result2.__dir__<0?"Right":"")});}return result2;};LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse();};});arrayEach(["filter","map","takeWhile"],function(methodName,index2){var type=index2+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();result2.__iteratees__.push({"iteratee":getIteratee(iteratee2,3),"type":type});result2.__filtered__=result2.__filtered__||isFilter;return result2;};});arrayEach(["head","last"],function(methodName,index2){var takeName="take"+(index2?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0];};});arrayEach(["initial","tail"],function(methodName,index2){var dropName="drop"+(index2?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity2);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=="function"){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start2,end2){start2=toInteger2(start2);var result2=this;if(result2.__filtered__&&(start2>0||end2<0)){return new LazyWrapper(result2);}if(start2<0){result2=result2.takeRight(-start2);}else if(start2){result2=result2.drop(start2);}if(end2!==undefined$1){end2=toInteger2(end2);result2=end2<0?result2.dropRight(-end2):result2.take(end2-start2);}return result2;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};baseForOwn2(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash2[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);if(!lodashFunc){return;}lodash2.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray2(value);var interceptor=function interceptor(value2){var result3=lodashFunc.apply(lodash2,arrayPush2([value2],args));return isTaker&&chainAll?result3[0]:result3;};if(useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1){isLazy=useLazy=false;}var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result2=func.apply(value,args);result2.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(result2,chainAll);}if(isUnwrapped&&onlyLazy){return func.apply(this,args);}result2=this.thru(interceptor);return isUnwrapped?isTaker?result2.value()[0]:result2.value():result2;};});arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto2[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash2.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray2(value)?value:[],args);}return this[chainName](function(value2){return func.apply(isArray2(value2)?value2:[],args);});};});baseForOwn2(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash2[methodName];if(lodashFunc){var key=lodashFunc.name+"";if(!hasOwnProperty2.call(realNames,key)){realNames[key]=[];}realNames[key].push({"name":methodName,"func":lodashFunc});}});realNames[createHybrid(undefined$1,WRAP_BIND_KEY_FLAG).name]=[{"name":"wrapper","func":undefined$1}];LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;lodash2.prototype.at=wrapperAt;lodash2.prototype.chain=wrapperChain;lodash2.prototype.commit=wrapperCommit;lodash2.prototype.next=wrapperNext;lodash2.prototype.plant=wrapperPlant;lodash2.prototype.reverse=wrapperReverse;lodash2.prototype.toJSON=lodash2.prototype.valueOf=lodash2.prototype.value=wrapperValue;lodash2.prototype.first=lodash2.prototype.head;if(symIterator){lodash2.prototype[symIterator]=wrapperToIterator;}return lodash2;};var _2=runInContext();if(freeModule){(freeModule.exports=_2)._=_2;freeExports._=_2;}else{root2._=_2;}}).call(commonjsGlobal);})(lodash,lodash.exports);var lodashExports=lodash.exports;var _=/* @__PURE__ */getDefaultExportFromCjs(lodashExports);var Colors={grey:{"900":"#252525","800":"#404040","733":"#666666","700":"#797979","500":"#ACACAC","400":"#D7D7D7","200":"#EDEDED","100":"#F5F5F5","50":"#FAFAFA"},error:{"900":"#9A1414","700":"#D90C0C","500":"#FF5A5A","300":"#FF8383","100":"#FFC8C8","50":"#FCECEB"},success:{"900":"#136A19","700":"#21962A","500":"#1FB62A","300":"#43DC4E","100":"#85EA8D","50":"#CEF3D1"},secondary:{"900":"#A86501","700":"#DC8400","500":"#FF9900","300":"#FFC56F","100":"#FFE1B4","50":"#FFF3D1"},primary:{"900":"#0045AD","700":"#0058DB","500":"#0066FF","300":"#76ADFF","100":"#A7CAFF","50":"#E6F1FF"}};var getColor=function getColor2(category,shade){var _Colors$category;return((_Colors$category=Colors[category])===null||_Colors$category===void 0?void 0:_Colors$category[shade])||"";};var allColors=_.flatMap(Colors,function(shades,category){return _.compact(_.map(shades,function(color2,shade){return color2?{title:"".concat(category," ").concat(shade),color:color2}:null;}));});var ColorOptions=_.map(allColors,"title");var ColorValues=_.map(allColors,"color");var Shades=_.map(Colors["grey"],function(color2,shade){return shade;});var Categories=_.map(Colors,function(shades,category){return category;});var isValidColor=function isValidColor2(color2){return _.includes(ColorValues,color2);};var _excluded$13=["color","size","sx","children","disabled","className"];var CustomIcon=function CustomIcon2(_ref3){var _ref$color=_ref3.color,color2=_ref$color===void 0?getColor("grey","500"):_ref$color,_ref$size=_ref3.size,size2=_ref$size===void 0?"16":_ref$size,sx=_ref3.sx,children=_ref3.children,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$13);var fontSize=_translateSizeToFontSize(size2);return/* @__PURE__ */jsx$1(SvgIcon,_objectSpread2$1(_objectSpread2$1({className:className},props),{},{sx:_objectSpread2$1(_objectSpread2$1({color:color2,fontSize:"".concat(fontSize,"px"),cursor:disabled2?"default":"pointer",opacity:disabled2?0.5:1,pointerEvents:disabled2?"none":"auto"},sx),{},{"& path":{fill:color2}}),children:children}));};var _translateSizeToFontSize=function _translateSizeToFontSize2(size2){var transform={"32":"38","24":"31","20":"27","16":"23","12":"19","8":"15"};return transform[size2]||transform["16"];};var CloseRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded");var chip="chip-module_chip_U3kfP";var title$7="chip-module_title_DARz9";var text="chip-module_text_4xvju";var sm$8="chip-module_sm_lA7fZ";var lg$9="chip-module_lg_i8n4n";var tab$1="chip-module_tab_TQ-ke";var grey="chip-module_grey_M9U8T";var active$3="chip-module_active_uJfiq";var disabled$6="chip-module_disabled_21ZO5";var success$1="chip-module_success_BJKfz";var error$3="chip-module_error_an-gm";var secondary="chip-module_secondary_3aQ1S";var primary="chip-module_primary_maGV7";var action$1="chip-module_action_ByEO0";var styles$m={chip:chip,title:title$7,text:text,sm:sm$8,lg:lg$9,tab:tab$1,grey:grey,active:active$3,disabled:disabled$6,success:success$1,error:error$3,secondary:secondary,primary:primary,action:action$1};var Chip2=function Chip3(_ref3){var isActive=_ref3.isActive,title2=_ref3.title,text2=_ref3.text,_ref$onRemove=_ref3.onRemove,onRemove=_ref$onRemove===void 0?void 0:_ref$onRemove,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;var canRemove=onRemove&&!disabled2;return/* @__PURE__ */jsx$1(Grow,{in:!!text2||!!title2,unmountOnExit:true,children:/* @__PURE__ */jsxs("span",{className:clsx(styles$m.chip,styles$m[variant],styles$m[size2],_defineProperty$1(_defineProperty$1({},styles$m.disabled,disabled2),styles$m.active,isActive)),children:[/* @__PURE__ */jsxs("span",{children:[!!title2&&/* @__PURE__ */jsxs("span",{className:styles$m.title,children:[title2," ",text2&&": "]}),!!text2&&/* @__PURE__ */jsx$1("span",{className:styles$m.text,children:text2})]}),canRemove&&/* @__PURE__ */jsx$1(CustomIcon,{className:styles$m.action,size:"8",onClick:canRemove?onRemove:void 0,color:getColor("grey","700"),children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})]})});};var defaultColor$4=getColor("grey","500");var SearchPublication=function SearchPublication2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?100:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$4:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$4;return/* @__PURE__ */jsx$1("svg",{id:"Capa_1","data-name":"Capa 1",xmlns:"http://www.w3.org/2000/svg",width:size2,height:"100%",viewBox:"0 0 95 95",children:/* @__PURE__ */jsxs("g",{id:"Grupo_1315","data-name":"Grupo 1315",children:[/* @__PURE__ */jsx$1("path",{id:"Trazado_2280","data-name":"Trazado 2280",style:{fill:resolvedColor},d:"M0,13.62c.09-.37.16-.76.26-1.14a7.22,7.22,0,0,1,7-5.28H24.3c.23,0,.3,0,.29-.29a7,7,0,0,1,.58-3.25A6.37,6.37,0,0,1,33.63.6a6.47,6.47,0,0,1,1.75,1.22,6.2,6.2,0,0,1,1.89,4.53c0,.22,0,.43,0,.65s0,.2.21.2H54.63a7.21,7.21,0,0,1,7.24,7.18V34.23a1.45,1.45,0,0,1-1.33,1.55h-.16A1.44,1.44,0,0,1,59,34.5c0-.12,0-.25,0-.37V14.55a4.33,4.33,0,0,0-4.2-4.46H7.4A4.34,4.34,0,0,0,3,13.44a4.07,4.07,0,0,0-.12,1V79.22a4.33,4.33,0,0,0,4.32,4.32H54.44a1.5,1.5,0,0,1,1.49.83,1.45,1.45,0,0,1-.68,1.93,1.39,1.39,0,0,1-.53.14,2.62,2.62,0,0,1-.28,0H7.29A7.25,7.25,0,0,1,.06,80.26c0-.1,0-.21-.06-.3ZM30.91,7.2h3.23c.17,0,.23,0,.22-.22s0-.47,0-.7A3.43,3.43,0,0,0,28,4.62a4.27,4.27,0,0,0-.45,2.3c0,.22,0,.29.27.29,1,0,2.09,0,3.14,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2281","data-name":"Trazado 2281",style:{fill:resolvedColor},d:"M54.79,38.4c8.35-.94,15.22,1.7,20.36,8.46A19.94,19.94,0,0,1,79.1,57a20.86,20.86,0,0,1-2,11.63.24.24,0,0,0,.05.34h0L92.23,82.66a5.82,5.82,0,1,1-7.83,8.62l-.07-.06Q76.76,84.37,69.2,77.47c-.15-.13-.23-.09-.37,0a21.24,21.24,0,0,1-7,2.6,21.08,21.08,0,0,1-21-8.55,20.4,20.4,0,0,1-3.79-10A21.15,21.15,0,0,1,51.26,39.31,23.75,23.75,0,0,1,54.79,38.4Zm21.72,18A18.62,18.62,0,1,0,61,77.68h0A18.64,18.64,0,0,0,76.51,56.39Zm15.08,30a3.31,3.31,0,0,0-1.12-2L75.89,71.17c-.16-.14-.23-.14-.36,0a20.4,20.4,0,0,1-4.16,4.49c-.2.15-.19.23,0,.39,1.78,1.6,3.56,3.22,5.34,4.84l9.39,8.52a3.32,3.32,0,0,0,5.5-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2282","data-name":"Trazado 2282",style:{fill:resolvedColor},d:"M31,19.9H20.38A5.76,5.76,0,0,1,14.57,15a3.12,3.12,0,0,1,0-1.1,1.45,1.45,0,0,1,2.88.22,2.85,2.85,0,0,0,1.74,2.68A2.54,2.54,0,0,0,20.3,17H42a2.9,2.9,0,0,0,2.89-2.85,1.46,1.46,0,0,1,2.91-.07v.1a5.8,5.8,0,0,1-5.72,5.72Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2283","data-name":"Trazado 2283",style:{fill:resolvedColor},d:"M13.22,68V66.07A1.86,1.86,0,0,1,15,64.15c1.36,0,2.73,0,4.09,0A1.86,1.86,0,0,1,20.88,66q0,2,0,3.93A1.91,1.91,0,0,1,19,71.83c-1.28,0-2.57,0-3.85,0a1.91,1.91,0,0,1-1.91-1.9V68Zm2.24,0v.76a.77.77,0,0,0,.71.85.28.28,0,0,0,.13,0c.5,0,1,0,1.49,0a.78.78,0,0,0,.85-.73v-.09c0-.51,0-1,0-1.54a.76.76,0,0,0-.72-.8h0a12.2,12.2,0,0,0-1.71,0,.76.76,0,0,0-.72.79h0V68Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2284","data-name":"Trazado 2284",style:{fill:resolvedColor},d:"M13.22,52.67V50.75a1.87,1.87,0,0,1,1.83-1.9q2,0,4,0a1.88,1.88,0,0,1,1.84,1.81c0,1.35,0,2.71,0,4.06a1.84,1.84,0,0,1-1.77,1.79,39.85,39.85,0,0,1-4.09,0,1.85,1.85,0,0,1-1.81-1.89.19.19,0,0,1,0-.08ZM17,54.27h.76a.79.79,0,0,0,.84-.73v-.07c0-.52,0-1,0-1.57a.76.76,0,0,0-.71-.79c-.6,0-1.2,0-1.79,0a.74.74,0,0,0-.68.75q0,.83,0,1.65a.77.77,0,0,0,.77.75Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2285","data-name":"Trazado 2285",style:{fill:resolvedColor},d:"M13.22,37.38v-2a1.88,1.88,0,0,1,1.86-1.87q2,0,3.93,0a1.85,1.85,0,0,1,1.86,1.78c0,1.37,0,2.74,0,4.12A1.85,1.85,0,0,1,19,41.23q-2,0-4,0a1.88,1.88,0,0,1-1.85-1.9ZM17.05,39h.75a.8.8,0,0,0,.84-.74v-.06c0-.53,0-1,0-1.57a.77.77,0,0,0-.75-.8H16.2a.77.77,0,0,0-.74.76c0,.55,0,1.1,0,1.66a.77.77,0,0,0,.77.75c.27,0,.54,0,.81,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2286","data-name":"Trazado 2286",style:{fill:resolvedColor},d:"M30.54,38.84h-5a1.45,1.45,0,0,1-1.47-1.43A1.48,1.48,0,0,1,25.26,36a2,2,0,0,1,.35,0h9.87a1.45,1.45,0,0,1,.11,2.9H30.54Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2287","data-name":"Trazado 2287",style:{fill:resolvedColor},d:"M28.44,54.14H25.59a1.44,1.44,0,0,1-1.49-1.39s0,0,0-.06a1.48,1.48,0,0,1,1.47-1.46h5.73a1.45,1.45,0,0,1,1.52,1.38,1.44,1.44,0,0,1-1.37,1.52h-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2288","data-name":"Trazado 2288",style:{fill:resolvedColor},d:"M27.36,66.54c.63,0,1.26,0,1.9,0a1.44,1.44,0,0,1,1.36,1.27,1.47,1.47,0,0,1-1,1.56,1.6,1.6,0,0,1-.54.07H25.64a1.46,1.46,0,0,1-.17-2.91.43.43,0,0,1,.16,0h1.73Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2289","data-name":"Trazado 2289",style:{fill:resolvedColor},d:"M54.49,47.45a13.8,13.8,0,0,1,8.82,1.95,12.64,12.64,0,0,1,4.62,5.36,18.36,18.36,0,0,1,1.44,4.33,1.24,1.24,0,0,1-1,1.45h0A1.22,1.22,0,0,1,67,59.63a16.4,16.4,0,0,0-1.56-4.37A9.91,9.91,0,0,0,57,49.91a11.82,11.82,0,0,0-2.59.08,1.23,1.23,0,0,1-1.47-.94v0a1.23,1.23,0,0,1,1-1.47H54Z"})]})});};var defaultColor$3=getColor("primary","500");var MailIcon=function MailIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$3:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$3;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M22 6L12 13L2 6",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$2=getColor("primary","500");var FileIcon=function FileIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$2:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$2;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M13 2V9H20",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$1=getColor("primary","500");var PriceDownIcon=function PriceDownIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$1:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$1;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),/* @__PURE__ */jsx$1("path",{d:"M19.3793 14.424V23.1464",stroke:resolvedColor,strokeWidth:"2"}),/* @__PURE__ */jsx$1("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:resolvedColor})]});};var defaultColor=getColor("grey","500");var PriceCloseIcon=function PriceCloseIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_970",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),/* @__PURE__ */jsx$1("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:resolvedColor})]});};function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof(o);}function toPrimitive(t,r2){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _defineProperty(e,r2,t){return(r2=toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys(Object(t),true).forEach(function(r3){_defineProperty(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _arrayWithHoles(r2){if(Array.isArray(r2))return r2;}function _iterableToArrayLimit(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l){if(Object(t)!==t)return;f=false;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayLikeToArray(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _unsupportedIterableToArray(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r2,a):void 0;}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _slicedToArray(r2,e){return _arrayWithHoles(r2)||_iterableToArrayLimit(r2,e)||_unsupportedIterableToArray(r2,e)||_nonIterableRest();}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}var _excluded$12=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$12);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback(function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta);}setStateValue(value2);},[propsOnChange]);var onInputChange2=useCallback(function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta);}setStateInputValue(newValue!==void 0?newValue:value2);},[propsOnInputChange]);var onMenuOpen=useCallback(function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen();}setStateMenuIsOpen(true);},[propsOnMenuOpen]);var onMenuClose=useCallback(function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose();}setStateMenuIsOpen(false);},[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange2,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value});}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r2){for(var t=0;t<r2.length;t++){var o=r2[t];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,toPropertyKey(o.key),o);}}function _createClass(e,r2,t){return r2&&_defineProperties(e.prototype,r2),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:false}),e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),Object.defineProperty(t,"prototype",{writable:false}),e&&_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t2){return t2.__proto__||Object.getPrototypeOf(t2);},_getPrototypeOf(t);}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t2){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct2(){return!!t;})();}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _createSuper(t){var r2=_isNativeReflectConstruct();return function(){var e,o=_getPrototypeOf(t);if(r2){var s=_getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s);}else e=o.apply(this,arguments);return _possibleConstructorReturn(this,e);};}function _arrayWithoutHoles(r2){if(Array.isArray(r2))return _arrayLikeToArray(r2);}function _iterableToArray(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _toConsumableArray(r2){return _arrayWithoutHoles(r2)||_iterableToArray(r2)||_unsupportedIterableToArray(r2)||_nonIterableSpread();}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}var sides=["top","right","bottom","left"];var min$2=Math.min;var max$2=Math.max;var round$2=Math.round;var floor=Math.floor;var createCoords=function createCoords(v){return{x:v,y:v};};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(start2,value,end2){return max$2(start2,min$2(value,end2));}function evaluate(value,param){return typeof value==="function"?value(param):value;}function getSide(placement){return placement.split("-")[0];}function getAlignment(placement){return placement.split("-")[1];}function getOppositeAxis(axis){return axis==="x"?"y":"x";}function getAxisLength(axis){return axis==="y"?"height":"width";}var yAxisSides=/* @__PURE__ */new Set(["top","bottom"]);function getSideAxis(placement){return yAxisSides.has(getSide(placement))?"y":"x";}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement));}function getAlignmentSides(placement,rects,rtl){if(rtl===void 0){rtl=false;}var alignment=getAlignment(placement);var alignmentAxis=getAlignmentAxis(placement);var length2=getAxisLength(alignmentAxis);var mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";if(rects.reference[length2]>rects.floating[length2]){mainAlignmentSide=getOppositePlacement$1(mainAlignmentSide);}return[mainAlignmentSide,getOppositePlacement$1(mainAlignmentSide)];}function getExpandedPlacements(placement){var oppositePlacement=getOppositePlacement$1(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)];}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,function(alignment){return oppositeAlignmentMap[alignment];});}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":if(rtl)return isStart?rlPlacement:lrPlacement;return isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[];}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){var alignment=getAlignment(placement);var list2=getSideList(getSide(placement),direction==="start",rtl);if(alignment){list2=list2.map(function(side){return side+"-"+alignment;});if(flipAlignment){list2=list2.concat(list2.map(getOppositeAlignmentPlacement));}}return list2;}function getOppositePlacement$1(placement){return placement.replace(/left|right|bottom|top/g,function(side){return oppositeSideMap[side];});}function expandPaddingObject(padding2){return __spreadValues({top:0,right:0,bottom:0,left:0},padding2);}function getPaddingObject(padding2){return typeof padding2!=="number"?expandPaddingObject(padding2):{top:padding2,right:padding2,bottom:padding2,left:padding2};}function rectToClientRect$1(rect){var x=rect.x,y=rect.y,width2=rect.width,height2=rect.height;return{width:width2,height:height2,top:y,left:x,right:x+width2,bottom:y+height2,x:x,y:y};}function computeCoordsFromPlacement(_ref3,placement,rtl){var reference2=_ref3.reference,floating=_ref3.floating;var sideAxis=getSideAxis(placement);var alignmentAxis=getAlignmentAxis(placement);var alignLength=getAxisLength(alignmentAxis);var side=getSide(placement);var isVertical=sideAxis==="y";var commonX=reference2.x+reference2.width/2-floating.width/2;var commonY=reference2.y+reference2.height/2-floating.height/2;var commonAlign=reference2[alignLength]/2-floating[alignLength]/2;var coords;switch(side){case"top":coords={x:commonX,y:reference2.y-floating.height};break;case"bottom":coords={x:commonX,y:reference2.y+reference2.height};break;case"right":coords={x:reference2.x+reference2.width,y:commonY};break;case"left":coords={x:reference2.x-floating.width,y:commonY};break;default:coords={x:reference2.x,y:reference2.y};}switch(getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break;}return coords;}var computePosition$1=function computePosition$1(reference2,floating,config2){return __async(void 0,null,/*#__PURE__*/_regenerator().m(function _callee(){var _config2$placement,placement,_config2$strategy,strategy,_config2$middleware,middleware2,platform2,validMiddleware,rtl,rects,_computeCoordsFromPla,x,y,statefulPlacement,middlewareData,resetCount,_i0,_validMiddleware$_i,name,fn3,_yield$fn,nextX,nextY,data,reset,_computeCoordsFromPla2,_t;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:_config2$placement=config2.placement,placement=_config2$placement===void 0?"bottom":_config2$placement,_config2$strategy=config2.strategy,strategy=_config2$strategy===void 0?"absolute":_config2$strategy,_config2$middleware=config2.middleware,middleware2=_config2$middleware===void 0?[]:_config2$middleware,platform2=config2.platform;validMiddleware=middleware2.filter(Boolean);_context.n=1;return platform2.isRTL==null?void 0:platform2.isRTL(floating);case 1:rtl=_context.v;_context.n=2;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 2:rects=_context.v;_computeCoordsFromPla=computeCoordsFromPlacement(rects,placement,rtl),x=_computeCoordsFromPla.x,y=_computeCoordsFromPla.y;statefulPlacement=placement;middlewareData={};resetCount=0;_i0=0;case 3:if(!(_i0<validMiddleware.length)){_context.n=11;break;}_validMiddleware$_i=validMiddleware[_i0],name=_validMiddleware$_i.name,fn3=_validMiddleware$_i.fn;_context.n=4;return fn3({x:x,y:y,initialPlacement:placement,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData,rects:rects,platform:platform2,elements:{reference:reference2,floating:floating}});case 4:_yield$fn=_context.v;nextX=_yield$fn.x;nextY=_yield$fn.y;data=_yield$fn.data;reset=_yield$fn.reset;x=nextX!=null?nextX:x;y=nextY!=null?nextY:y;middlewareData=__spreadProps(__spreadValues({},middlewareData),_defineProperty2({},name,__spreadValues(__spreadValues({},middlewareData[name]),data)));if(!(reset&&resetCount<=50)){_context.n=10;break;}resetCount++;if(!(_typeof2(reset)==="object")){_context.n=9;break;}if(reset.placement){statefulPlacement=reset.placement;}if(!reset.rects){_context.n=8;break;}if(!(reset.rects===true)){_context.n=6;break;}_context.n=5;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 5:_t=_context.v;_context.n=7;break;case 6:_t=reset.rects;case 7:rects=_t;case 8:_computeCoordsFromPla2=computeCoordsFromPlacement(rects,statefulPlacement,rtl);x=_computeCoordsFromPla2.x;y=_computeCoordsFromPla2.y;case 9:_i0=-1;case 10:_i0++;_context.n=3;break;case 11:return _context.a(2,{x:x,y:y,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData});}},_callee);}));};function detectOverflow$1(state,options){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee2(){var _await$platform$isEle,x,y,platform2,rects,elements,strategy,_evaluate,_evaluate$boundary,boundary,_evaluate$rootBoundar,rootBoundary,_evaluate$elementCont,elementContext,_evaluate$altBoundary,altBoundary,_evaluate$padding,padding2,paddingObject,altContext,element,clippingClientRect,rect,offsetParent,offsetScale,elementClientRect,_t2,_t3,_t4,_t5,_t6,_t7,_t8,_t9,_t0,_t1,_t10,_t11,_t12,_t13;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:if(options===void 0){options={};}x=state.x,y=state.y,platform2=state.platform,rects=state.rects,elements=state.elements,strategy=state.strategy;_evaluate=evaluate(options,state),_evaluate$boundary=_evaluate.boundary,boundary=_evaluate$boundary===void 0?"clippingAncestors":_evaluate$boundary,_evaluate$rootBoundar=_evaluate.rootBoundary,rootBoundary=_evaluate$rootBoundar===void 0?"viewport":_evaluate$rootBoundar,_evaluate$elementCont=_evaluate.elementContext,elementContext=_evaluate$elementCont===void 0?"floating":_evaluate$elementCont,_evaluate$altBoundary=_evaluate.altBoundary,altBoundary=_evaluate$altBoundary===void 0?false:_evaluate$altBoundary,_evaluate$padding=_evaluate.padding,padding2=_evaluate$padding===void 0?0:_evaluate$padding;paddingObject=getPaddingObject(padding2);altContext=elementContext==="floating"?"reference":"floating";element=elements[altBoundary?altContext:elementContext];_t2=rectToClientRect$1;_t3=platform2;_context2.n=1;return platform2.isElement==null?void 0:platform2.isElement(element);case 1:_t4=_await$platform$isEle=_context2.v;if(!(_t4!=null)){_context2.n=2;break;}_t5=_await$platform$isEle;_context2.n=3;break;case 2:_t5=true;case 3:if(!_t5){_context2.n=4;break;}_t6=element;_context2.n=7;break;case 4:_t7=element.contextElement;if(_t7){_context2.n=6;break;}_context2.n=5;return platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating);case 5:_t7=_context2.v;case 6:_t6=_t7;case 7:_t8=_t6;_t9=boundary;_t0=rootBoundary;_t1=strategy;_context2.n=8;return _t3.getClippingRect.call(_t3,{element:_t8,boundary:_t9,rootBoundary:_t0,strategy:_t1});case 8:clippingClientRect=_t2(_context2.v);rect=elementContext==="floating"?{x:x,y:y,width:rects.floating.width,height:rects.floating.height}:rects.reference;_context2.n=9;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating);case 9:offsetParent=_context2.v;_context2.n=10;return platform2.isElement==null?void 0:platform2.isElement(offsetParent);case 10:if(!_context2.v){_context2.n=13;break;}_context2.n=11;return platform2.getScale==null?void 0:platform2.getScale(offsetParent);case 11:_t11=_context2.v;if(_t11){_context2.n=12;break;}_t11={x:1,y:1};case 12:_t10=_t11;_context2.n=14;break;case 13:_t10={x:1,y:1};case 14:offsetScale=_t10;_t12=rectToClientRect$1;if(!platform2.convertOffsetParentRelativeRectToViewportRelativeRect){_context2.n=16;break;}_context2.n=15;return platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy});case 15:_t13=_context2.v;_context2.n=17;break;case 16:_t13=rect;case 17:elementClientRect=_t12(_t13);return _context2.a(2,{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x});}},_callee2);}));}var arrow$4=function arrow$4(options){return{name:"arrow",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee3(){var x,y,placement,rects,platform2,elements,middlewareData,_ref292,element,_ref292$padding,padding2,paddingObject,coords,axis,length2,arrowDimensions,isYAxis,minProp,maxProp,clientProp,endDiff,startDiff,arrowOffsetParent,clientSize,centerToReference,largestPossiblePadding,minPadding,maxPadding,min$12,max2,center,offset2,shouldAddOffset,alignmentOffset,_t14;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:x=state.x,y=state.y,placement=state.placement,rects=state.rects,platform2=state.platform,elements=state.elements,middlewareData=state.middlewareData;_ref292=evaluate(options,state)||{},element=_ref292.element,_ref292$padding=_ref292.padding,padding2=_ref292$padding===void 0?0:_ref292$padding;if(!(element==null)){_context3.n=1;break;}return _context3.a(2,{});case 1:paddingObject=getPaddingObject(padding2);coords={x:x,y:y};axis=getAlignmentAxis(placement);length2=getAxisLength(axis);_context3.n=2;return platform2.getDimensions(element);case 2:arrowDimensions=_context3.v;isYAxis=axis==="y";minProp=isYAxis?"top":"left";maxProp=isYAxis?"bottom":"right";clientProp=isYAxis?"clientHeight":"clientWidth";endDiff=rects.reference[length2]+rects.reference[axis]-coords[axis]-rects.floating[length2];startDiff=coords[axis]-rects.reference[axis];_context3.n=3;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element);case 3:arrowOffsetParent=_context3.v;clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;_t14=!clientSize;if(_t14){_context3.n=5;break;}_context3.n=4;return platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent);case 4:_t14=!_context3.v;case 5:if(!_t14){_context3.n=6;break;}clientSize=elements.floating[clientProp]||rects.floating[length2];case 6:centerToReference=endDiff/2-startDiff/2;largestPossiblePadding=clientSize/2-arrowDimensions[length2]/2-1;minPadding=min$2(paddingObject[minProp],largestPossiblePadding);maxPadding=min$2(paddingObject[maxProp],largestPossiblePadding);min$12=minPadding;max2=clientSize-arrowDimensions[length2]-maxPadding;center=clientSize/2-arrowDimensions[length2]/2+centerToReference;offset2=clamp(min$12,center,max2);shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset2&&rects.reference[length2]/2-(center<min$12?minPadding:maxPadding)-arrowDimensions[length2]/2<0;alignmentOffset=shouldAddOffset?center<min$12?center-min$12:center-max2:0;return _context3.a(2,_defineProperty2(_defineProperty2(_defineProperty2({},axis,coords[axis]+alignmentOffset),"data",__spreadValues(_defineProperty2(_defineProperty2({},axis,offset2),"centerOffset",center-offset2-alignmentOffset),shouldAddOffset&&{alignmentOffset:alignmentOffset})),"reset",shouldAddOffset));}},_callee3);}));}};};var flip$4=function flip$4(options){if(options===void 0){options={};}return{name:"flip",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee4(){var _middlewareData$arrow,_middlewareData$flip,placement,middlewareData,rects,initialPlacement,platform2,elements,_a2,_a2$mainAxis,checkMainAxis,_a2$crossAxis,checkCrossAxis,specifiedFallbackPlacements,_a2$fallbackStrategy,fallbackStrategy,_a2$fallbackAxisSideD,fallbackAxisSideDirection,_a2$flipAlignment,flipAlignment,detectOverflowOptions,side,initialSideAxis,isBasePlacement,rtl,fallbackPlacements,hasFallbackAxisSideDirection,placements2,overflow,overflows,overflowsData,sides2,_middlewareData$flip2,_overflowsData$filter,nextIndex,nextPlacement,ignoreCrossAxisOverflow,resetPlacement,_overflowsData$filter2,placement2,_t15;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:placement=state.placement,middlewareData=state.middlewareData,rects=state.rects,initialPlacement=state.initialPlacement,platform2=state.platform,elements=state.elements;_a2=evaluate(options,state),_a2$mainAxis=_a2.mainAxis,checkMainAxis=_a2$mainAxis===void 0?true:_a2$mainAxis,_a2$crossAxis=_a2.crossAxis,checkCrossAxis=_a2$crossAxis===void 0?true:_a2$crossAxis,specifiedFallbackPlacements=_a2.fallbackPlacements,_a2$fallbackStrategy=_a2.fallbackStrategy,fallbackStrategy=_a2$fallbackStrategy===void 0?"bestFit":_a2$fallbackStrategy,_a2$fallbackAxisSideD=_a2.fallbackAxisSideDirection,fallbackAxisSideDirection=_a2$fallbackAxisSideD===void 0?"none":_a2$fallbackAxisSideD,_a2$flipAlignment=_a2.flipAlignment,flipAlignment=_a2$flipAlignment===void 0?true:_a2$flipAlignment,detectOverflowOptions=__objRest(_a2,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(!((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)){_context4.n=1;break;}return _context4.a(2,{});case 1:side=getSide(placement);initialSideAxis=getSideAxis(initialPlacement);isBasePlacement=getSide(initialPlacement)===initialPlacement;_context4.n=2;return platform2.isRTL==null?void 0:platform2.isRTL(elements.floating);case 2:rtl=_context4.v;fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement$1(initialPlacement)]:getExpandedPlacements(initialPlacement));hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";if(!specifiedFallbackPlacements&&hasFallbackAxisSideDirection){fallbackPlacements.push.apply(fallbackPlacements,_toConsumableArray2(getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl)));}placements2=[initialPlacement].concat(_toConsumableArray2(fallbackPlacements));_context4.n=3;return detectOverflow$1(state,detectOverflowOptions);case 3:overflow=_context4.v;overflows=[];overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis){overflows.push(overflow[side]);}if(checkCrossAxis){sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]]);}overflowsData=[].concat(_toConsumableArray2(overflowsData),[{placement:placement,overflows:overflows}]);if(overflows.every(function(side2){return side2<=0;})){_context4.n=8;break;}nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1;nextPlacement=placements2[nextIndex];if(!nextPlacement){_context4.n=4;break;}ignoreCrossAxisOverflow=checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):false;if(!(!ignoreCrossAxisOverflow||// We leave the current main axis only if every placement on that axis
|
|
3409
3409
|
// overflows the main axis.
|
|
3410
3410
|
overflowsData.every(function(d){return getSideAxis(d.placement)===initialSideAxis?d.overflows[0]>0:true;}))){_context4.n=4;break;}return _context4.a(2,{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}});case 4:resetPlacement=(_overflowsData$filter=overflowsData.filter(function(d){return d.overflows[0]<=0;}).sort(function(a,b){return a.overflows[1]-b.overflows[1];})[0])==null?void 0:_overflowsData$filter.placement;if(resetPlacement){_context4.n=7;break;}_t15=fallbackStrategy;_context4.n=_t15==="bestFit"?5:_t15==="initialPlacement"?6:7;break;case 5:placement2=(_overflowsData$filter2=overflowsData.filter(function(d){if(hasFallbackAxisSideDirection){var currentSideAxis=getSideAxis(d.placement);return currentSideAxis===initialSideAxis||// Create a bias to the `y` side axis due to horizontal
|
|
3411
3411
|
// reading directions favoring greater width.
|
|
@@ -3413,8 +3413,8 @@ currentSideAxis==="y";}return true;}).map(function(d){return[d.placement,d.overf
|
|
|
3413
3413
|
node2.assignedSlot||// DOM Element detected.
|
|
3414
3414
|
node2.parentNode||// ShadowRoot detected.
|
|
3415
3415
|
isShadowRoot$1(node2)&&node2.host||// Fallback.
|
|
3416
|
-
getDocumentElement$1(node2);return isShadowRoot$1(result)?result.host:result;}function getNearestOverflowAncestor(node2){var parentNode=getParentNode$1(node2);if(isLastTraversableNode(parentNode)){return node2.ownerDocument?node2.ownerDocument.body:node2.body;}if(isHTMLElement$1(parentNode)&&isOverflowElement(parentNode)){return parentNode;}return getNearestOverflowAncestor(parentNode);}function getOverflowAncestors(node2,list2,traverseIframes){var _node$ownerDocument2;if(list2===void 0){list2=[];}if(traverseIframes===void 0){traverseIframes=true;}var scrollableAncestor=getNearestOverflowAncestor(node2);var isBody=scrollableAncestor===((_node$ownerDocument2=node2.ownerDocument)==null?void 0:_node$ownerDocument2.body);var win=getWindow$1(scrollableAncestor);if(isBody){var frameElement=getFrameElement(win);return list2.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],frameElement&&traverseIframes?getOverflowAncestors(frameElement):[]);}return list2.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes));}function getFrameElement(win){return win.parent&&Object.getPrototypeOf(win.parent)?win.frameElement:null;}function getCssDimensions(element){var css4=getComputedStyle$2(element);var width2=parseFloat(css4.width)||0;var height2=parseFloat(css4.height)||0;var hasOffset=isHTMLElement$1(element);var offsetWidth=hasOffset?element.offsetWidth:width2;var offsetHeight=hasOffset?element.offsetHeight:height2;var shouldFallback=round$2(width2)!==offsetWidth||round$2(height2)!==offsetHeight;if(shouldFallback){width2=offsetWidth;height2=offsetHeight;}return{width:width2,height:height2,$:shouldFallback};}function unwrapElement(element){return!isElement$1(element)?element.contextElement:element;}function getScale(element){var domElement=unwrapElement(element);if(!isHTMLElement$1(domElement)){return createCoords(1);}var rect=domElement.getBoundingClientRect();var _getCssDimensions=getCssDimensions(domElement),width2=_getCssDimensions.width,height2=_getCssDimensions.height,$=_getCssDimensions.$;var x=($?round$2(rect.width):rect.width)/width2;var y=($?round$2(rect.height):rect.height)/height2;if(!x||!Number.isFinite(x)){x=1;}if(!y||!Number.isFinite(y)){y=1;}return{x:x,y:y};}var noOffsets=/* @__PURE__ */createCoords(0);function getVisualOffsets(element){var win=getWindow$1(element);if(!isWebKit()||!win.visualViewport){return noOffsets;}return{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop};}function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){if(isFixed===void 0){isFixed=false;}if(!floatingOffsetParent||isFixed&&floatingOffsetParent!==getWindow$1(element)){return false;}return isFixed;}function getBoundingClientRect$1(element,includeScale,isFixedStrategy,offsetParent){if(includeScale===void 0){includeScale=false;}if(isFixedStrategy===void 0){isFixedStrategy=false;}var clientRect=element.getBoundingClientRect();var domElement=unwrapElement(element);var scale=createCoords(1);if(includeScale){if(offsetParent){if(isElement$1(offsetParent)){scale=getScale(offsetParent);}}else{scale=getScale(element);}}var visualOffsets=shouldAddVisualOffsets(domElement,isFixedStrategy,offsetParent)?getVisualOffsets(domElement):createCoords(0);var x=(clientRect.left+visualOffsets.x)/scale.x;var y=(clientRect.top+visualOffsets.y)/scale.y;var width2=clientRect.width/scale.x;var height2=clientRect.height/scale.y;if(domElement){var win=getWindow$1(domElement);var offsetWin=offsetParent&&isElement$1(offsetParent)?getWindow$1(offsetParent):offsetParent;var currentWin=win;var currentIFrame=getFrameElement(currentWin);while(currentIFrame&&offsetParent&&offsetWin!==currentWin){var iframeScale=getScale(currentIFrame);var iframeRect=currentIFrame.getBoundingClientRect();var css4=getComputedStyle$2(currentIFrame);var left2=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css4.paddingLeft))*iframeScale.x;var top2=iframeRect.top+(currentIFrame.clientTop+parseFloat(css4.paddingTop))*iframeScale.y;x*=iframeScale.x;y*=iframeScale.y;width2*=iframeScale.x;height2*=iframeScale.y;x+=left2;y+=top2;currentWin=getWindow$1(currentIFrame);currentIFrame=getFrameElement(currentWin);}}return rectToClientRect$1({width:width2,height:height2,x:x,y:y});}function getWindowScrollBarX$1(element,rect){var leftScroll=getNodeScroll$1(element).scrollLeft;if(!rect){return getBoundingClientRect$1(getDocumentElement$1(element)).left+leftScroll;}return rect.left+leftScroll;}function getHTMLOffset(documentElement,scroll){var htmlRect=documentElement.getBoundingClientRect();var x=htmlRect.left+scroll.scrollLeft-getWindowScrollBarX$1(documentElement,htmlRect);var y=htmlRect.top+scroll.scrollTop;return{x:x,y:y};}function convertOffsetParentRelativeRectToViewportRelativeRect(_ref3){var elements=_ref3.elements,rect=_ref3.rect,offsetParent=_ref3.offsetParent,strategy=_ref3.strategy;var isFixed=strategy==="fixed";var documentElement=getDocumentElement$1(offsetParent);var topLayer=elements?isTopLayer(elements.floating):false;if(offsetParent===documentElement||topLayer&&isFixed){return rect;}var scroll={scrollLeft:0,scrollTop:0};var scale=createCoords(1);var offsets=createCoords(0);var isOffsetParentAnElement=isHTMLElement$1(offsetParent);if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName$1(offsetParent)!=="body"||isOverflowElement(documentElement)){scroll=getNodeScroll$1(offsetParent);}if(isHTMLElement$1(offsetParent)){var offsetRect=getBoundingClientRect$1(offsetParent);scale=getScale(offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft;offsets.y=offsetRect.y+offsetParent.clientTop;}}var htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0);return{width:rect.width*scale.x,height:rect.height*scale.y,x:rect.x*scale.x-scroll.scrollLeft*scale.x+offsets.x+htmlOffset.x,y:rect.y*scale.y-scroll.scrollTop*scale.y+offsets.y+htmlOffset.y};}function getClientRects(element){return Array.from(element.getClientRects());}function getDocumentRect$1(element){var html=getDocumentElement$1(element);var scroll=getNodeScroll$1(element);var body2=element.ownerDocument.body;var width2=max$2(html.scrollWidth,html.clientWidth,body2.scrollWidth,body2.clientWidth);var height2=max$2(html.scrollHeight,html.clientHeight,body2.scrollHeight,body2.clientHeight);var x=-scroll.scrollLeft+getWindowScrollBarX$1(element);var y=-scroll.scrollTop;if(getComputedStyle$2(body2).direction==="rtl"){x+=max$2(html.clientWidth,body2.clientWidth)-width2;}return{width:width2,height:height2,x:x,y:y};}var SCROLLBAR_MAX=25;function getViewportRect$1(element,strategy){var win=getWindow$1(element);var html=getDocumentElement$1(element);var visualViewport=win.visualViewport;var width2=html.clientWidth;var height2=html.clientHeight;var x=0;var y=0;if(visualViewport){width2=visualViewport.width;height2=visualViewport.height;var visualViewportBased=isWebKit();if(!visualViewportBased||visualViewportBased&&strategy==="fixed"){x=visualViewport.offsetLeft;y=visualViewport.offsetTop;}}var windowScrollbarX=getWindowScrollBarX$1(html);if(windowScrollbarX<=0){var doc=html.ownerDocument;var body2=doc.body;var bodyStyles=getComputedStyle(body2);var bodyMarginInline=doc.compatMode==="CSS1Compat"?parseFloat(bodyStyles.marginLeft)+parseFloat(bodyStyles.marginRight)||0:0;var clippingStableScrollbarWidth=Math.abs(html.clientWidth-body2.clientWidth-bodyMarginInline);if(clippingStableScrollbarWidth<=SCROLLBAR_MAX){width2-=clippingStableScrollbarWidth;}}else if(windowScrollbarX<=SCROLLBAR_MAX){width2+=windowScrollbarX;}return{width:width2,height:height2,x:x,y:y};}var absoluteOrFixed=/* @__PURE__ */new Set(["absolute","fixed"]);function getInnerBoundingClientRect$1(element,strategy){var clientRect=getBoundingClientRect$1(element,true,strategy==="fixed");var top2=clientRect.top+element.clientTop;var left2=clientRect.left+element.clientLeft;var scale=isHTMLElement$1(element)?getScale(element):createCoords(1);var width2=element.clientWidth*scale.x;var height2=element.clientHeight*scale.y;var x=left2*scale.x;var y=top2*scale.y;return{width:width2,height:height2,x:x,y:y};}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){var rect;if(clippingAncestor==="viewport"){rect=getViewportRect$1(element,strategy);}else if(clippingAncestor==="document"){rect=getDocumentRect$1(getDocumentElement$1(element));}else if(isElement$1(clippingAncestor)){rect=getInnerBoundingClientRect$1(clippingAncestor,strategy);}else{var visualOffsets=getVisualOffsets(element);rect={x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y,width:clippingAncestor.width,height:clippingAncestor.height};}return rectToClientRect$1(rect);}function hasFixedPositionAncestor(element,stopNode){var parentNode=getParentNode$1(element);if(parentNode===stopNode||!isElement$1(parentNode)||isLastTraversableNode(parentNode)){return false;}return getComputedStyle$2(parentNode).position==="fixed"||hasFixedPositionAncestor(parentNode,stopNode);}function getClippingElementAncestors(element,cache){var cachedResult=cache.get(element);if(cachedResult){return cachedResult;}var result=getOverflowAncestors(element,[],false).filter(function(el){return isElement$1(el)&&getNodeName$1(el)!=="body";});var currentContainingBlockComputedStyle=null;var elementIsFixed=getComputedStyle$2(element).position==="fixed";var currentNode=elementIsFixed?getParentNode$1(element):element;while(isElement$1(currentNode)&&!isLastTraversableNode(currentNode)){var computedStyle=getComputedStyle$2(currentNode);var currentNodeIsContaining=isContainingBlock(currentNode);if(!currentNodeIsContaining&&computedStyle.position==="fixed"){currentContainingBlockComputedStyle=null;}var shouldDropCurrentNode=elementIsFixed?!currentNodeIsContaining&&!currentContainingBlockComputedStyle:!currentNodeIsContaining&&computedStyle.position==="static"&&!!currentContainingBlockComputedStyle&&absoluteOrFixed.has(currentContainingBlockComputedStyle.position)||isOverflowElement(currentNode)&&!currentNodeIsContaining&&hasFixedPositionAncestor(element,currentNode);if(shouldDropCurrentNode){result=result.filter(function(ancestor){return ancestor!==currentNode;});}else{currentContainingBlockComputedStyle=computedStyle;}currentNode=getParentNode$1(currentNode);}cache.set(element,result);return result;}function getClippingRect$1(_ref3){var element=_ref3.element,boundary=_ref3.boundary,rootBoundary=_ref3.rootBoundary,strategy=_ref3.strategy;var elementClippingAncestors=boundary==="clippingAncestors"?isTopLayer(element)?[]:getClippingElementAncestors(element,this._c):[].concat(boundary);var clippingAncestors=[].concat(_toConsumableArray2(elementClippingAncestors),[rootBoundary]);var firstClippingAncestor=clippingAncestors[0];var clippingRect=clippingAncestors.reduce(function(accRect,clippingAncestor){var rect=getClientRectFromClippingAncestor(element,clippingAncestor,strategy);accRect.top=max$2(rect.top,accRect.top);accRect.right=min$2(rect.right,accRect.right);accRect.bottom=min$2(rect.bottom,accRect.bottom);accRect.left=max$2(rect.left,accRect.left);return accRect;},getClientRectFromClippingAncestor(element,firstClippingAncestor,strategy));return{width:clippingRect.right-clippingRect.left,height:clippingRect.bottom-clippingRect.top,x:clippingRect.left,y:clippingRect.top};}function getDimensions(element){var _getCssDimensions2=getCssDimensions(element),width2=_getCssDimensions2.width,height2=_getCssDimensions2.height;return{width:width2,height:height2};}function getRectRelativeToOffsetParent(element,offsetParent,strategy){var isOffsetParentAnElement=isHTMLElement$1(offsetParent);var documentElement=getDocumentElement$1(offsetParent);var isFixed=strategy==="fixed";var rect=getBoundingClientRect$1(element,true,isFixed,offsetParent);var scroll={scrollLeft:0,scrollTop:0};var offsets=createCoords(0);function setLeftRTLScrollbarOffset(){offsets.x=getWindowScrollBarX$1(documentElement);}if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName$1(offsetParent)!=="body"||isOverflowElement(documentElement)){scroll=getNodeScroll$1(offsetParent);}if(isOffsetParentAnElement){var offsetRect=getBoundingClientRect$1(offsetParent,true,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft;offsets.y=offsetRect.y+offsetParent.clientTop;}else if(documentElement){setLeftRTLScrollbarOffset();}}if(isFixed&&!isOffsetParentAnElement&&documentElement){setLeftRTLScrollbarOffset();}var htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0);var x=rect.left+scroll.scrollLeft-offsets.x-htmlOffset.x;var y=rect.top+scroll.scrollTop-offsets.y-htmlOffset.y;return{x:x,y:y,width:rect.width,height:rect.height};}function isStaticPositioned(element){return getComputedStyle$2(element).position==="static";}function getTrueOffsetParent$1(element,polyfill){if(!isHTMLElement$1(element)||getComputedStyle$2(element).position==="fixed"){return null;}if(polyfill){return polyfill(element);}var rawOffsetParent=element.offsetParent;if(getDocumentElement$1(element)===rawOffsetParent){rawOffsetParent=rawOffsetParent.ownerDocument.body;}return rawOffsetParent;}function getOffsetParent$1(element,polyfill){var win=getWindow$1(element);if(isTopLayer(element)){return win;}if(!isHTMLElement$1(element)){var svgOffsetParent=getParentNode$1(element);while(svgOffsetParent&&!isLastTraversableNode(svgOffsetParent)){if(isElement$1(svgOffsetParent)&&!isStaticPositioned(svgOffsetParent)){return svgOffsetParent;}svgOffsetParent=getParentNode$1(svgOffsetParent);}return win;}var offsetParent=getTrueOffsetParent$1(element,polyfill);while(offsetParent&&isTableElement$1(offsetParent)&&isStaticPositioned(offsetParent)){offsetParent=getTrueOffsetParent$1(offsetParent,polyfill);}if(offsetParent&&isLastTraversableNode(offsetParent)&&isStaticPositioned(offsetParent)&&!isContainingBlock(offsetParent)){return win;}return offsetParent||getContainingBlock$1(element)||win;}var getElementRects=function getElementRects(data){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee0(){var getOffsetParentFn,getDimensionsFn,floatingDimensions,_t21,_t22,_t23,_t24;return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:getOffsetParentFn=this.getOffsetParent||getOffsetParent$1;getDimensionsFn=this.getDimensions;_context0.n=1;return getDimensionsFn(data.floating);case 1:floatingDimensions=_context0.v;_t21=getRectRelativeToOffsetParent;_t22=data.reference;_context0.n=2;return getOffsetParentFn(data.floating);case 2:_t23=_t21(_t22,_context0.v,data.strategy);_t24={x:0,y:0,width:floatingDimensions.width,height:floatingDimensions.height};return _context0.a(2,{reference:_t23,floating:_t24});}},_callee0,this);}));};function isRTL(element){return getComputedStyle$2(element).direction==="rtl";}var platform={convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement$1,getClippingRect:getClippingRect$1,getOffsetParent:getOffsetParent$1,getElementRects:getElementRects,getClientRects:getClientRects,getDimensions:getDimensions,getScale:getScale,isElement:isElement$1,isRTL:isRTL};function rectsAreEqual(a,b){return a.x===b.x&&a.y===b.y&&a.width===b.width&&a.height===b.height;}function observeMove(element,onMove){var io=null;var timeoutId;var root=getDocumentElement$1(element);function cleanup(){var _io;clearTimeout(timeoutId);(_io=io)==null||_io.disconnect();io=null;}function refresh(skip,threshold){if(skip===void 0){skip=false;}if(threshold===void 0){threshold=1;}cleanup();var elementRectForRootMargin=element.getBoundingClientRect();var left2=elementRectForRootMargin.left,top2=elementRectForRootMargin.top,width2=elementRectForRootMargin.width,height2=elementRectForRootMargin.height;if(!skip){onMove();}if(!width2||!height2){return;}var insetTop=floor(top2);var insetRight=floor(root.clientWidth-(left2+width2));var insetBottom=floor(root.clientHeight-(top2+height2));var insetLeft=floor(left2);var rootMargin=-insetTop+"px "+-insetRight+"px "+-insetBottom+"px "+-insetLeft+"px";var options={rootMargin:rootMargin,threshold:max$2(0,min$2(1,threshold))||1};var isFirstUpdate=true;function handleObserve(entries){var ratio=entries[0].intersectionRatio;if(ratio!==threshold){if(!isFirstUpdate){return refresh();}if(!ratio){timeoutId=setTimeout(function(){refresh(false,1e-7);},1e3);}else{refresh(false,ratio);}}if(ratio===1&&!rectsAreEqual(elementRectForRootMargin,element.getBoundingClientRect())){refresh();}isFirstUpdate=false;}try{io=new IntersectionObserver(handleObserve,__spreadProps(__spreadValues({},options),{// Handle <iframe>s
|
|
3417
|
-
root:root.ownerDocument}));}catch(_e){io=new IntersectionObserver(handleObserve,options);}io.observe(element);}refresh(true);return cleanup;}function autoUpdate(reference2,floating,update,options){if(options===void 0){options={};}var _options2=options,_options2$ancestorScr=_options2.ancestorScroll,ancestorScroll=_options2$ancestorScr===void 0?true:_options2$ancestorScr,_options2$ancestorRes=_options2.ancestorResize,ancestorResize=_options2$ancestorRes===void 0?true:_options2$ancestorRes,_options2$elementResi=_options2.elementResize,elementResize=_options2$elementResi===void 0?typeof ResizeObserver==="function":_options2$elementResi,_options2$layoutShift=_options2.layoutShift,layoutShift=_options2$layoutShift===void 0?typeof IntersectionObserver==="function":_options2$layoutShift,_options2$animationFr=_options2.animationFrame,animationFrame=_options2$animationFr===void 0?false:_options2$animationFr;var referenceEl=unwrapElement(reference2);var ancestors=ancestorScroll||ancestorResize?[].concat(_toConsumableArray2(referenceEl?getOverflowAncestors(referenceEl):[]),_toConsumableArray2(getOverflowAncestors(floating))):[];ancestors.forEach(function(ancestor){ancestorScroll&&ancestor.addEventListener("scroll",update,{passive:true});ancestorResize&&ancestor.addEventListener("resize",update);});var cleanupIo=referenceEl&&layoutShift?observeMove(referenceEl,update):null;var reobserveFrame=-1;var resizeObserver=null;if(elementResize){resizeObserver=new ResizeObserver(function(_ref3){var _ref296=_slicedToArray2(_ref3,1),firstEntry=_ref296[0];if(firstEntry&&firstEntry.target===referenceEl&&resizeObserver){resizeObserver.unobserve(floating);cancelAnimationFrame(reobserveFrame);reobserveFrame=requestAnimationFrame(function(){var _resizeObserver;(_resizeObserver=resizeObserver)==null||_resizeObserver.observe(floating);});}update();});if(referenceEl&&!animationFrame){resizeObserver.observe(referenceEl);}resizeObserver.observe(floating);}var frameId;var prevRefRect=animationFrame?getBoundingClientRect$1(reference2):null;if(animationFrame){frameLoop();}function frameLoop(){var nextRefRect=getBoundingClientRect$1(reference2);if(prevRefRect&&!rectsAreEqual(prevRefRect,nextRefRect)){update();}prevRefRect=nextRefRect;frameId=requestAnimationFrame(frameLoop);}update();return function(){var _resizeObserver2;ancestors.forEach(function(ancestor){ancestorScroll&&ancestor.removeEventListener("scroll",update);ancestorResize&&ancestor.removeEventListener("resize",update);});cleanupIo==null||cleanupIo();(_resizeObserver2=resizeObserver)==null||_resizeObserver2.disconnect();resizeObserver=null;if(animationFrame){cancelAnimationFrame(frameId);}};}var offset$3=offset$4;var shift$1=shift$2;var flip$3=flip$4;var size$1=size$2;var hide$3=hide$4;var arrow$3=arrow$4;var limitShift$1=limitShift$2;var computePosition=function computePosition(reference2,floating,options){var cache=/* @__PURE__ */new Map();var mergedOptions=__spreadValues({platform:platform},options);var platformWithCache=__spreadProps(__spreadValues({},mergedOptions.platform),{_c:cache});return computePosition$1(reference2,floating,__spreadProps(__spreadValues({},mergedOptions),{platform:platformWithCache}));};var index$1=useLayoutEffect;var _excluded$4$1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];var noop$3=function noop(){};function applyPrefixToName(prefix2,name){if(!name){return prefix2;}else if(name[0]==="-"){return prefix2+name;}else{return prefix2+"__"+name;}}function classNames(prefix2,state){for(var _len=arguments.length,classNameList=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){classNameList[_key-2]=arguments[_key];}var arr=[].concat(classNameList);if(state&&prefix2){for(var key in state){if(state.hasOwnProperty(key)&&state[key]){arr.push("".concat(applyPrefixToName(prefix2,key)));}}}return arr.filter(function(i){return i;}).map(function(i){return String(i).trim();}).join(" ");}var cleanValue=function cleanValue2(value){if(isArray(value))return value.filter(Boolean);if(_typeof(value)==="object"&&value!==null)return[value];return[];};var cleanCommonProps=function cleanCommonProps2(props){props.className;props.clearValue;props.cx;props.getStyles;props.getClassNames;props.getValue;props.hasValue;props.isMulti;props.isRtl;props.options;props.selectOption;props.selectProps;props.setValue;props.theme;var innerProps=_objectWithoutProperties(props,_excluded$4$1);return _objectSpread2({},innerProps);};var getStyleProps=function getStyleProps2(props,name,classNamesState){var cx2=props.cx,getStyles2=props.getStyles,getClassNames=props.getClassNames,className=props.className;return{css:getStyles2(name,props),className:cx2(classNamesState!==null&&classNamesState!==void 0?classNamesState:{},getClassNames(name,props),className)};};function handleInputChange(inputValue,actionMeta,onInputChange2){if(onInputChange2){var _newValue=onInputChange2(inputValue,actionMeta);if(typeof _newValue==="string")return _newValue;}return inputValue;}function isDocumentElement(el){return[document.documentElement,document.body,window].indexOf(el)>-1;}function normalizedHeight(el){if(isDocumentElement(el)){return window.innerHeight;}return el.clientHeight;}function getScrollTop(el){if(isDocumentElement(el)){return window.pageYOffset;}return el.scrollTop;}function scrollTo(el,top2){if(isDocumentElement(el)){window.scrollTo(0,top2);return;}el.scrollTop=top2;}function getScrollParent$1(element){var style2=getComputedStyle(element);var excludeStaticParent=style2.position==="absolute";var overflowRx=/(auto|scroll)/;if(style2.position==="fixed")return document.documentElement;for(var parent=element;parent=parent.parentElement;){style2=getComputedStyle(parent);if(excludeStaticParent&&style2.position==="static"){continue;}if(overflowRx.test(style2.overflow+style2.overflowY+style2.overflowX)){return parent;}}return document.documentElement;}function easeOutCubic(t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;}function animatedScrollTo(element,to){var duration2=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200;var callback=arguments.length>3&&arguments[3]!==void 0?arguments[3]:noop$3;var start2=getScrollTop(element);var change=to-start2;var increment=10;var currentTime=0;function animateScroll(){currentTime+=increment;var val=easeOutCubic(currentTime,start2,change,duration2);scrollTo(element,val);if(currentTime<duration2){window.requestAnimationFrame(animateScroll);}else{callback(element);}}animateScroll();}function scrollIntoView(menuEl,focusedEl){var menuRect=menuEl.getBoundingClientRect();var focusedRect=focusedEl.getBoundingClientRect();var overScroll=focusedEl.offsetHeight/3;if(focusedRect.bottom+overScroll>menuRect.bottom){scrollTo(menuEl,Math.min(focusedEl.offsetTop+focusedEl.clientHeight-menuEl.offsetHeight+overScroll,menuEl.scrollHeight));}else if(focusedRect.top-overScroll<menuRect.top){scrollTo(menuEl,Math.max(focusedEl.offsetTop-overScroll,0));}}function getBoundingClientObj(element){var rect=element.getBoundingClientRect();return{bottom:rect.bottom,height:rect.height,left:rect.left,right:rect.right,top:rect.top,width:rect.width};}function isTouchCapable(){try{document.createEvent("TouchEvent");return true;}catch(e){return false;}}function isMobileDevice(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);}catch(e){return false;}}var passiveOptionAccessed=false;var options$1={get passive(){return passiveOptionAccessed=true;}};var w=typeof window!=="undefined"?window:{};if(w.addEventListener&&w.removeEventListener){w.addEventListener("p",noop$3,options$1);w.removeEventListener("p",noop$3,false);}var supportsPassiveEvents=passiveOptionAccessed;function notNullish(item2){return item2!=null;}function isArray(arg2){return Array.isArray(arg2);}function valueTernary(isMulti,multiValue,singleValue){return isMulti?multiValue:singleValue;}function singleValueAsValue(singleValue){return singleValue;}function multiValueAsValue(multiValue){return multiValue;}var removeProps=function removeProps2(propsObj){for(var _len2=arguments.length,properties2=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){properties2[_key2-1]=arguments[_key2];}var propsMap=Object.entries(propsObj).filter(function(_ref3){var _ref22=_slicedToArray(_ref3,1),key=_ref22[0];return!properties2.includes(key);});return propsMap.reduce(function(newProps,_ref3){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],val=_ref4[1];newProps[key]=val;return newProps;},{});};var _excluded$3$1=["children","innerProps"],_excluded2$1$1=["children","innerProps"];function getMenuPlacement(_ref3){var preferredMaxHeight=_ref3.maxHeight,menuEl=_ref3.menuEl,minHeight2=_ref3.minHeight,preferredPlacement=_ref3.placement,shouldScroll=_ref3.shouldScroll,isFixedPosition=_ref3.isFixedPosition,controlHeight2=_ref3.controlHeight;var scrollParent=getScrollParent$1(menuEl);var defaultState={placement:"bottom",maxHeight:preferredMaxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height;var _menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top;var _menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top;var viewHeight=isFixedPosition?window.innerHeight:normalizedHeight(scrollParent);var scrollTop=getScrollTop(scrollParent);var marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10);var marginTop=parseInt(getComputedStyle(menuEl).marginTop,10);var viewSpaceAbove=containerTop-marginTop;var viewSpaceBelow=viewHeight-menuTop;var scrollSpaceAbove=viewSpaceAbove+scrollTop;var scrollSpaceBelow=scrollHeight-scrollTop-menuTop;var scrollDown=menuBottom-viewHeight+scrollTop+marginBottom;var scrollUp=scrollTop+menuTop-marginTop;var scrollDuration=160;switch(preferredPlacement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight){return{placement:"bottom",maxHeight:preferredMaxHeight};}if(scrollSpaceBelow>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration);}return{placement:"bottom",maxHeight:preferredMaxHeight};}if(!isFixedPosition&&scrollSpaceBelow>=minHeight2||isFixedPosition&&viewSpaceBelow>=minHeight2){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration);}var constrainedHeight=isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom;return{placement:"bottom",maxHeight:constrainedHeight};}if(preferredPlacement==="auto"||isFixedPosition){var _constrainedHeight=preferredMaxHeight;var spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;if(spaceAbove>=minHeight2){_constrainedHeight=Math.min(spaceAbove-marginBottom-controlHeight2,preferredMaxHeight);}return{placement:"top",maxHeight:_constrainedHeight};}if(preferredPlacement==="bottom"){if(shouldScroll){scrollTo(scrollParent,scrollDown);}return{placement:"bottom",maxHeight:preferredMaxHeight};}break;case"top":if(viewSpaceAbove>=menuHeight){return{placement:"top",maxHeight:preferredMaxHeight};}if(scrollSpaceAbove>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration);}return{placement:"top",maxHeight:preferredMaxHeight};}if(!isFixedPosition&&scrollSpaceAbove>=minHeight2||isFixedPosition&&viewSpaceAbove>=minHeight2){var _constrainedHeight2=preferredMaxHeight;if(!isFixedPosition&&scrollSpaceAbove>=minHeight2||isFixedPosition&&viewSpaceAbove>=minHeight2){_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop;}if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration);}return{placement:"top",maxHeight:_constrainedHeight2};}return{placement:"bottom",maxHeight:preferredMaxHeight};default:throw new Error('Invalid placement provided "'.concat(preferredPlacement,'".'));}return defaultState;}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom";}var coercePlacement=function coercePlacement2(p){return p==="auto"?"bottom":p;};var menuCSS=function menuCSS2(_ref22,unstyled){var _objectSpread2$12;var placement=_ref22.placement,_ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,spacing2=_ref2$theme.spacing,colors2=_ref2$theme.colors;return _objectSpread2((_objectSpread2$12={label:"menu"},_defineProperty(_objectSpread2$12,alignToControl(placement),"100%"),_defineProperty(_objectSpread2$12,"position","absolute"),_defineProperty(_objectSpread2$12,"width","100%"),_defineProperty(_objectSpread2$12,"zIndex",1),_objectSpread2$12),unstyled?{}:{backgroundColor:colors2.neutral0,borderRadius:borderRadius2,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:spacing2.menuGutter,marginTop:spacing2.menuGutter});};var PortalPlacementContext=/* @__PURE__ */createContext(null);var MenuPlacer=function MenuPlacer2(props){var children=props.children,minMenuHeight=props.minMenuHeight,maxMenuHeight=props.maxMenuHeight,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition,menuShouldScrollIntoView=props.menuShouldScrollIntoView,theme=props.theme;var _ref3=useContext(PortalPlacementContext)||{},setPortalPlacement=_ref3.setPortalPlacement;var ref=useRef(null);var _useState=useState(maxMenuHeight),_useState2=_slicedToArray(_useState,2),maxHeight3=_useState2[0],setMaxHeight=_useState2[1];var _useState3=useState(null),_useState4=_slicedToArray(_useState3,2),placement=_useState4[0],setPlacement=_useState4[1];var controlHeight2=theme.spacing.controlHeight;index$1(function(){var menuEl=ref.current;if(!menuEl)return;var isFixedPosition=menuPosition==="fixed";var shouldScroll=menuShouldScrollIntoView&&!isFixedPosition;var state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:menuEl,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,controlHeight:controlHeight2});setMaxHeight(state.maxHeight);setPlacement(state.placement);setPortalPlacement===null||setPortalPlacement===void 0?void 0:setPortalPlacement(state.placement);},[maxMenuHeight,menuPlacement,menuPosition,menuShouldScrollIntoView,minMenuHeight,setPortalPlacement,controlHeight2]);return children({ref:ref,placerProps:_objectSpread2(_objectSpread2({},props),{},{placement:placement||coercePlacement(menuPlacement),maxHeight:maxHeight3})});};var Menu$1=function Menu2(props){var children=props.children,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends$1({},getStyleProps(props,"menu",{menu:true}),{ref:innerRef},innerProps),children);};var Menu$1$1=Menu$1;var menuListCSS=function menuListCSS2(_ref4,unstyled){var maxHeight3=_ref4.maxHeight,baseUnit2=_ref4.theme.spacing.baseUnit;return _objectSpread2({maxHeight:maxHeight3,overflowY:"auto",position:"relative",// required for offset[Height, Top] > keyboard scroll
|
|
3416
|
+
getDocumentElement$1(node2);return isShadowRoot$1(result)?result.host:result;}function getNearestOverflowAncestor(node2){var parentNode=getParentNode$1(node2);if(isLastTraversableNode(parentNode)){return node2.ownerDocument?node2.ownerDocument.body:node2.body;}if(isHTMLElement$1(parentNode)&&isOverflowElement(parentNode)){return parentNode;}return getNearestOverflowAncestor(parentNode);}function getOverflowAncestors(node2,list2,traverseIframes){var _node$ownerDocument2;if(list2===void 0){list2=[];}if(traverseIframes===void 0){traverseIframes=true;}var scrollableAncestor=getNearestOverflowAncestor(node2);var isBody=scrollableAncestor===((_node$ownerDocument2=node2.ownerDocument)==null?void 0:_node$ownerDocument2.body);var win=getWindow$1(scrollableAncestor);if(isBody){var frameElement=getFrameElement(win);return list2.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],frameElement&&traverseIframes?getOverflowAncestors(frameElement):[]);}return list2.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes));}function getFrameElement(win){return win.parent&&Object.getPrototypeOf(win.parent)?win.frameElement:null;}function getCssDimensions(element){var css4=getComputedStyle$2(element);var width2=parseFloat(css4.width)||0;var height2=parseFloat(css4.height)||0;var hasOffset=isHTMLElement$1(element);var offsetWidth=hasOffset?element.offsetWidth:width2;var offsetHeight=hasOffset?element.offsetHeight:height2;var shouldFallback=round$2(width2)!==offsetWidth||round$2(height2)!==offsetHeight;if(shouldFallback){width2=offsetWidth;height2=offsetHeight;}return{width:width2,height:height2,$:shouldFallback};}function unwrapElement(element){return!isElement$1(element)?element.contextElement:element;}function getScale(element){var domElement=unwrapElement(element);if(!isHTMLElement$1(domElement)){return createCoords(1);}var rect=domElement.getBoundingClientRect();var _getCssDimensions=getCssDimensions(domElement),width2=_getCssDimensions.width,height2=_getCssDimensions.height,$=_getCssDimensions.$;var x=($?round$2(rect.width):rect.width)/width2;var y=($?round$2(rect.height):rect.height)/height2;if(!x||!Number.isFinite(x)){x=1;}if(!y||!Number.isFinite(y)){y=1;}return{x:x,y:y};}var noOffsets=/* @__PURE__ */createCoords(0);function getVisualOffsets(element){var win=getWindow$1(element);if(!isWebKit()||!win.visualViewport){return noOffsets;}return{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop};}function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){if(isFixed===void 0){isFixed=false;}if(!floatingOffsetParent||isFixed&&floatingOffsetParent!==getWindow$1(element)){return false;}return isFixed;}function getBoundingClientRect$1(element,includeScale,isFixedStrategy,offsetParent){if(includeScale===void 0){includeScale=false;}if(isFixedStrategy===void 0){isFixedStrategy=false;}var clientRect=element.getBoundingClientRect();var domElement=unwrapElement(element);var scale=createCoords(1);if(includeScale){if(offsetParent){if(isElement$1(offsetParent)){scale=getScale(offsetParent);}}else{scale=getScale(element);}}var visualOffsets=shouldAddVisualOffsets(domElement,isFixedStrategy,offsetParent)?getVisualOffsets(domElement):createCoords(0);var x=(clientRect.left+visualOffsets.x)/scale.x;var y=(clientRect.top+visualOffsets.y)/scale.y;var width2=clientRect.width/scale.x;var height2=clientRect.height/scale.y;if(domElement){var win=getWindow$1(domElement);var offsetWin=offsetParent&&isElement$1(offsetParent)?getWindow$1(offsetParent):offsetParent;var currentWin=win;var currentIFrame=getFrameElement(currentWin);while(currentIFrame&&offsetParent&&offsetWin!==currentWin){var iframeScale=getScale(currentIFrame);var iframeRect=currentIFrame.getBoundingClientRect();var css4=getComputedStyle$2(currentIFrame);var left2=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css4.paddingLeft))*iframeScale.x;var top2=iframeRect.top+(currentIFrame.clientTop+parseFloat(css4.paddingTop))*iframeScale.y;x*=iframeScale.x;y*=iframeScale.y;width2*=iframeScale.x;height2*=iframeScale.y;x+=left2;y+=top2;currentWin=getWindow$1(currentIFrame);currentIFrame=getFrameElement(currentWin);}}return rectToClientRect$1({width:width2,height:height2,x:x,y:y});}function getWindowScrollBarX$1(element,rect){var leftScroll=getNodeScroll$1(element).scrollLeft;if(!rect){return getBoundingClientRect$1(getDocumentElement$1(element)).left+leftScroll;}return rect.left+leftScroll;}function getHTMLOffset(documentElement,scroll){var htmlRect=documentElement.getBoundingClientRect();var x=htmlRect.left+scroll.scrollLeft-getWindowScrollBarX$1(documentElement,htmlRect);var y=htmlRect.top+scroll.scrollTop;return{x:x,y:y};}function convertOffsetParentRelativeRectToViewportRelativeRect(_ref3){var elements=_ref3.elements,rect=_ref3.rect,offsetParent=_ref3.offsetParent,strategy=_ref3.strategy;var isFixed=strategy==="fixed";var documentElement=getDocumentElement$1(offsetParent);var topLayer=elements?isTopLayer(elements.floating):false;if(offsetParent===documentElement||topLayer&&isFixed){return rect;}var scroll={scrollLeft:0,scrollTop:0};var scale=createCoords(1);var offsets=createCoords(0);var isOffsetParentAnElement=isHTMLElement$1(offsetParent);if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName$1(offsetParent)!=="body"||isOverflowElement(documentElement)){scroll=getNodeScroll$1(offsetParent);}if(isHTMLElement$1(offsetParent)){var offsetRect=getBoundingClientRect$1(offsetParent);scale=getScale(offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft;offsets.y=offsetRect.y+offsetParent.clientTop;}}var htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0);return{width:rect.width*scale.x,height:rect.height*scale.y,x:rect.x*scale.x-scroll.scrollLeft*scale.x+offsets.x+htmlOffset.x,y:rect.y*scale.y-scroll.scrollTop*scale.y+offsets.y+htmlOffset.y};}function getClientRects(element){return Array.from(element.getClientRects());}function getDocumentRect$1(element){var html=getDocumentElement$1(element);var scroll=getNodeScroll$1(element);var body2=element.ownerDocument.body;var width2=max$2(html.scrollWidth,html.clientWidth,body2.scrollWidth,body2.clientWidth);var height2=max$2(html.scrollHeight,html.clientHeight,body2.scrollHeight,body2.clientHeight);var x=-scroll.scrollLeft+getWindowScrollBarX$1(element);var y=-scroll.scrollTop;if(getComputedStyle$2(body2).direction==="rtl"){x+=max$2(html.clientWidth,body2.clientWidth)-width2;}return{width:width2,height:height2,x:x,y:y};}var SCROLLBAR_MAX=25;function getViewportRect$1(element,strategy){var win=getWindow$1(element);var html=getDocumentElement$1(element);var visualViewport=win.visualViewport;var width2=html.clientWidth;var height2=html.clientHeight;var x=0;var y=0;if(visualViewport){width2=visualViewport.width;height2=visualViewport.height;var visualViewportBased=isWebKit();if(!visualViewportBased||visualViewportBased&&strategy==="fixed"){x=visualViewport.offsetLeft;y=visualViewport.offsetTop;}}var windowScrollbarX=getWindowScrollBarX$1(html);if(windowScrollbarX<=0){var doc=html.ownerDocument;var body2=doc.body;var bodyStyles=getComputedStyle(body2);var bodyMarginInline=doc.compatMode==="CSS1Compat"?parseFloat(bodyStyles.marginLeft)+parseFloat(bodyStyles.marginRight)||0:0;var clippingStableScrollbarWidth=Math.abs(html.clientWidth-body2.clientWidth-bodyMarginInline);if(clippingStableScrollbarWidth<=SCROLLBAR_MAX){width2-=clippingStableScrollbarWidth;}}else if(windowScrollbarX<=SCROLLBAR_MAX){width2+=windowScrollbarX;}return{width:width2,height:height2,x:x,y:y};}var absoluteOrFixed=/* @__PURE__ */new Set(["absolute","fixed"]);function getInnerBoundingClientRect$1(element,strategy){var clientRect=getBoundingClientRect$1(element,true,strategy==="fixed");var top2=clientRect.top+element.clientTop;var left2=clientRect.left+element.clientLeft;var scale=isHTMLElement$1(element)?getScale(element):createCoords(1);var width2=element.clientWidth*scale.x;var height2=element.clientHeight*scale.y;var x=left2*scale.x;var y=top2*scale.y;return{width:width2,height:height2,x:x,y:y};}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){var rect;if(clippingAncestor==="viewport"){rect=getViewportRect$1(element,strategy);}else if(clippingAncestor==="document"){rect=getDocumentRect$1(getDocumentElement$1(element));}else if(isElement$1(clippingAncestor)){rect=getInnerBoundingClientRect$1(clippingAncestor,strategy);}else{var visualOffsets=getVisualOffsets(element);rect={x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y,width:clippingAncestor.width,height:clippingAncestor.height};}return rectToClientRect$1(rect);}function hasFixedPositionAncestor(element,stopNode){var parentNode=getParentNode$1(element);if(parentNode===stopNode||!isElement$1(parentNode)||isLastTraversableNode(parentNode)){return false;}return getComputedStyle$2(parentNode).position==="fixed"||hasFixedPositionAncestor(parentNode,stopNode);}function getClippingElementAncestors(element,cache){var cachedResult=cache.get(element);if(cachedResult){return cachedResult;}var result=getOverflowAncestors(element,[],false).filter(function(el){return isElement$1(el)&&getNodeName$1(el)!=="body";});var currentContainingBlockComputedStyle=null;var elementIsFixed=getComputedStyle$2(element).position==="fixed";var currentNode=elementIsFixed?getParentNode$1(element):element;while(isElement$1(currentNode)&&!isLastTraversableNode(currentNode)){var computedStyle=getComputedStyle$2(currentNode);var currentNodeIsContaining=isContainingBlock(currentNode);if(!currentNodeIsContaining&&computedStyle.position==="fixed"){currentContainingBlockComputedStyle=null;}var shouldDropCurrentNode=elementIsFixed?!currentNodeIsContaining&&!currentContainingBlockComputedStyle:!currentNodeIsContaining&&computedStyle.position==="static"&&!!currentContainingBlockComputedStyle&&absoluteOrFixed.has(currentContainingBlockComputedStyle.position)||isOverflowElement(currentNode)&&!currentNodeIsContaining&&hasFixedPositionAncestor(element,currentNode);if(shouldDropCurrentNode){result=result.filter(function(ancestor){return ancestor!==currentNode;});}else{currentContainingBlockComputedStyle=computedStyle;}currentNode=getParentNode$1(currentNode);}cache.set(element,result);return result;}function getClippingRect$1(_ref3){var element=_ref3.element,boundary=_ref3.boundary,rootBoundary=_ref3.rootBoundary,strategy=_ref3.strategy;var elementClippingAncestors=boundary==="clippingAncestors"?isTopLayer(element)?[]:getClippingElementAncestors(element,this._c):[].concat(boundary);var clippingAncestors=[].concat(_toConsumableArray2(elementClippingAncestors),[rootBoundary]);var firstClippingAncestor=clippingAncestors[0];var clippingRect=clippingAncestors.reduce(function(accRect,clippingAncestor){var rect=getClientRectFromClippingAncestor(element,clippingAncestor,strategy);accRect.top=max$2(rect.top,accRect.top);accRect.right=min$2(rect.right,accRect.right);accRect.bottom=min$2(rect.bottom,accRect.bottom);accRect.left=max$2(rect.left,accRect.left);return accRect;},getClientRectFromClippingAncestor(element,firstClippingAncestor,strategy));return{width:clippingRect.right-clippingRect.left,height:clippingRect.bottom-clippingRect.top,x:clippingRect.left,y:clippingRect.top};}function getDimensions(element){var _getCssDimensions2=getCssDimensions(element),width2=_getCssDimensions2.width,height2=_getCssDimensions2.height;return{width:width2,height:height2};}function getRectRelativeToOffsetParent(element,offsetParent,strategy){var isOffsetParentAnElement=isHTMLElement$1(offsetParent);var documentElement=getDocumentElement$1(offsetParent);var isFixed=strategy==="fixed";var rect=getBoundingClientRect$1(element,true,isFixed,offsetParent);var scroll={scrollLeft:0,scrollTop:0};var offsets=createCoords(0);function setLeftRTLScrollbarOffset(){offsets.x=getWindowScrollBarX$1(documentElement);}if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName$1(offsetParent)!=="body"||isOverflowElement(documentElement)){scroll=getNodeScroll$1(offsetParent);}if(isOffsetParentAnElement){var offsetRect=getBoundingClientRect$1(offsetParent,true,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft;offsets.y=offsetRect.y+offsetParent.clientTop;}else if(documentElement){setLeftRTLScrollbarOffset();}}if(isFixed&&!isOffsetParentAnElement&&documentElement){setLeftRTLScrollbarOffset();}var htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0);var x=rect.left+scroll.scrollLeft-offsets.x-htmlOffset.x;var y=rect.top+scroll.scrollTop-offsets.y-htmlOffset.y;return{x:x,y:y,width:rect.width,height:rect.height};}function isStaticPositioned(element){return getComputedStyle$2(element).position==="static";}function getTrueOffsetParent$1(element,polyfill){if(!isHTMLElement$1(element)||getComputedStyle$2(element).position==="fixed"){return null;}if(polyfill){return polyfill(element);}var rawOffsetParent=element.offsetParent;if(getDocumentElement$1(element)===rawOffsetParent){rawOffsetParent=rawOffsetParent.ownerDocument.body;}return rawOffsetParent;}function getOffsetParent$1(element,polyfill){var win=getWindow$1(element);if(isTopLayer(element)){return win;}if(!isHTMLElement$1(element)){var svgOffsetParent=getParentNode$1(element);while(svgOffsetParent&&!isLastTraversableNode(svgOffsetParent)){if(isElement$1(svgOffsetParent)&&!isStaticPositioned(svgOffsetParent)){return svgOffsetParent;}svgOffsetParent=getParentNode$1(svgOffsetParent);}return win;}var offsetParent=getTrueOffsetParent$1(element,polyfill);while(offsetParent&&isTableElement$1(offsetParent)&&isStaticPositioned(offsetParent)){offsetParent=getTrueOffsetParent$1(offsetParent,polyfill);}if(offsetParent&&isLastTraversableNode(offsetParent)&&isStaticPositioned(offsetParent)&&!isContainingBlock(offsetParent)){return win;}return offsetParent||getContainingBlock$1(element)||win;}var getElementRects=function getElementRects(data){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee0(){var getOffsetParentFn,getDimensionsFn,floatingDimensions,_t21,_t22,_t23,_t24;return _regenerator().w(function(_context0){while(1)switch(_context0.n){case 0:getOffsetParentFn=this.getOffsetParent||getOffsetParent$1;getDimensionsFn=this.getDimensions;_context0.n=1;return getDimensionsFn(data.floating);case 1:floatingDimensions=_context0.v;_t21=getRectRelativeToOffsetParent;_t22=data.reference;_context0.n=2;return getOffsetParentFn(data.floating);case 2:_t23=_t21(_t22,_context0.v,data.strategy);_t24={x:0,y:0,width:floatingDimensions.width,height:floatingDimensions.height};return _context0.a(2,{reference:_t23,floating:_t24});}},_callee0,this);}));};function isRTL(element){return getComputedStyle$2(element).direction==="rtl";}var platform={convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement$1,getClippingRect:getClippingRect$1,getOffsetParent:getOffsetParent$1,getElementRects:getElementRects,getClientRects:getClientRects,getDimensions:getDimensions,getScale:getScale,isElement:isElement$1,isRTL:isRTL};function rectsAreEqual(a,b){return a.x===b.x&&a.y===b.y&&a.width===b.width&&a.height===b.height;}function observeMove(element,onMove){var io=null;var timeoutId;var root2=getDocumentElement$1(element);function cleanup(){var _io;clearTimeout(timeoutId);(_io=io)==null||_io.disconnect();io=null;}function refresh(skip,threshold){if(skip===void 0){skip=false;}if(threshold===void 0){threshold=1;}cleanup();var elementRectForRootMargin=element.getBoundingClientRect();var left2=elementRectForRootMargin.left,top2=elementRectForRootMargin.top,width2=elementRectForRootMargin.width,height2=elementRectForRootMargin.height;if(!skip){onMove();}if(!width2||!height2){return;}var insetTop=floor(top2);var insetRight=floor(root2.clientWidth-(left2+width2));var insetBottom=floor(root2.clientHeight-(top2+height2));var insetLeft=floor(left2);var rootMargin=-insetTop+"px "+-insetRight+"px "+-insetBottom+"px "+-insetLeft+"px";var options={rootMargin:rootMargin,threshold:max$2(0,min$2(1,threshold))||1};var isFirstUpdate=true;function handleObserve(entries){var ratio=entries[0].intersectionRatio;if(ratio!==threshold){if(!isFirstUpdate){return refresh();}if(!ratio){timeoutId=setTimeout(function(){refresh(false,1e-7);},1e3);}else{refresh(false,ratio);}}if(ratio===1&&!rectsAreEqual(elementRectForRootMargin,element.getBoundingClientRect())){refresh();}isFirstUpdate=false;}try{io=new IntersectionObserver(handleObserve,__spreadProps(__spreadValues({},options),{// Handle <iframe>s
|
|
3417
|
+
root:root2.ownerDocument}));}catch(_e){io=new IntersectionObserver(handleObserve,options);}io.observe(element);}refresh(true);return cleanup;}function autoUpdate(reference2,floating,update,options){if(options===void 0){options={};}var _options2=options,_options2$ancestorScr=_options2.ancestorScroll,ancestorScroll=_options2$ancestorScr===void 0?true:_options2$ancestorScr,_options2$ancestorRes=_options2.ancestorResize,ancestorResize=_options2$ancestorRes===void 0?true:_options2$ancestorRes,_options2$elementResi=_options2.elementResize,elementResize=_options2$elementResi===void 0?typeof ResizeObserver==="function":_options2$elementResi,_options2$layoutShift=_options2.layoutShift,layoutShift=_options2$layoutShift===void 0?typeof IntersectionObserver==="function":_options2$layoutShift,_options2$animationFr=_options2.animationFrame,animationFrame=_options2$animationFr===void 0?false:_options2$animationFr;var referenceEl=unwrapElement(reference2);var ancestors=ancestorScroll||ancestorResize?[].concat(_toConsumableArray2(referenceEl?getOverflowAncestors(referenceEl):[]),_toConsumableArray2(getOverflowAncestors(floating))):[];ancestors.forEach(function(ancestor){ancestorScroll&&ancestor.addEventListener("scroll",update,{passive:true});ancestorResize&&ancestor.addEventListener("resize",update);});var cleanupIo=referenceEl&&layoutShift?observeMove(referenceEl,update):null;var reobserveFrame=-1;var resizeObserver=null;if(elementResize){resizeObserver=new ResizeObserver(function(_ref3){var _ref296=_slicedToArray2(_ref3,1),firstEntry=_ref296[0];if(firstEntry&&firstEntry.target===referenceEl&&resizeObserver){resizeObserver.unobserve(floating);cancelAnimationFrame(reobserveFrame);reobserveFrame=requestAnimationFrame(function(){var _resizeObserver;(_resizeObserver=resizeObserver)==null||_resizeObserver.observe(floating);});}update();});if(referenceEl&&!animationFrame){resizeObserver.observe(referenceEl);}resizeObserver.observe(floating);}var frameId;var prevRefRect=animationFrame?getBoundingClientRect$1(reference2):null;if(animationFrame){frameLoop();}function frameLoop(){var nextRefRect=getBoundingClientRect$1(reference2);if(prevRefRect&&!rectsAreEqual(prevRefRect,nextRefRect)){update();}prevRefRect=nextRefRect;frameId=requestAnimationFrame(frameLoop);}update();return function(){var _resizeObserver2;ancestors.forEach(function(ancestor){ancestorScroll&&ancestor.removeEventListener("scroll",update);ancestorResize&&ancestor.removeEventListener("resize",update);});cleanupIo==null||cleanupIo();(_resizeObserver2=resizeObserver)==null||_resizeObserver2.disconnect();resizeObserver=null;if(animationFrame){cancelAnimationFrame(frameId);}};}var offset$3=offset$4;var shift$1=shift$2;var flip$3=flip$4;var size$1=size$2;var hide$3=hide$4;var arrow$3=arrow$4;var limitShift$1=limitShift$2;var computePosition=function computePosition(reference2,floating,options){var cache=/* @__PURE__ */new Map();var mergedOptions=__spreadValues({platform:platform},options);var platformWithCache=__spreadProps(__spreadValues({},mergedOptions.platform),{_c:cache});return computePosition$1(reference2,floating,__spreadProps(__spreadValues({},mergedOptions),{platform:platformWithCache}));};var index$1=useLayoutEffect;var _excluded$4$1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];var noop$3=function noop(){};function applyPrefixToName(prefix2,name){if(!name){return prefix2;}else if(name[0]==="-"){return prefix2+name;}else{return prefix2+"__"+name;}}function classNames(prefix2,state){for(var _len=arguments.length,classNameList=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){classNameList[_key-2]=arguments[_key];}var arr=[].concat(classNameList);if(state&&prefix2){for(var key in state){if(state.hasOwnProperty(key)&&state[key]){arr.push("".concat(applyPrefixToName(prefix2,key)));}}}return arr.filter(function(i){return i;}).map(function(i){return String(i).trim();}).join(" ");}var cleanValue=function cleanValue2(value){if(isArray$a(value))return value.filter(Boolean);if(_typeof(value)==="object"&&value!==null)return[value];return[];};var cleanCommonProps=function cleanCommonProps2(props){props.className;props.clearValue;props.cx;props.getStyles;props.getClassNames;props.getValue;props.hasValue;props.isMulti;props.isRtl;props.options;props.selectOption;props.selectProps;props.setValue;props.theme;var innerProps=_objectWithoutProperties(props,_excluded$4$1);return _objectSpread2({},innerProps);};var getStyleProps=function getStyleProps2(props,name,classNamesState){var cx2=props.cx,getStyles2=props.getStyles,getClassNames=props.getClassNames,className=props.className;return{css:getStyles2(name,props),className:cx2(classNamesState!==null&&classNamesState!==void 0?classNamesState:{},getClassNames(name,props),className)};};function handleInputChange(inputValue,actionMeta,onInputChange2){if(onInputChange2){var _newValue=onInputChange2(inputValue,actionMeta);if(typeof _newValue==="string")return _newValue;}return inputValue;}function isDocumentElement(el){return[document.documentElement,document.body,window].indexOf(el)>-1;}function normalizedHeight(el){if(isDocumentElement(el)){return window.innerHeight;}return el.clientHeight;}function getScrollTop(el){if(isDocumentElement(el)){return window.pageYOffset;}return el.scrollTop;}function scrollTo(el,top2){if(isDocumentElement(el)){window.scrollTo(0,top2);return;}el.scrollTop=top2;}function getScrollParent$1(element){var style2=getComputedStyle(element);var excludeStaticParent=style2.position==="absolute";var overflowRx=/(auto|scroll)/;if(style2.position==="fixed")return document.documentElement;for(var parent=element;parent=parent.parentElement;){style2=getComputedStyle(parent);if(excludeStaticParent&&style2.position==="static"){continue;}if(overflowRx.test(style2.overflow+style2.overflowY+style2.overflowX)){return parent;}}return document.documentElement;}function easeOutCubic(t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;}function animatedScrollTo(element,to){var duration2=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200;var callback=arguments.length>3&&arguments[3]!==void 0?arguments[3]:noop$3;var start2=getScrollTop(element);var change=to-start2;var increment=10;var currentTime=0;function animateScroll(){currentTime+=increment;var val=easeOutCubic(currentTime,start2,change,duration2);scrollTo(element,val);if(currentTime<duration2){window.requestAnimationFrame(animateScroll);}else{callback(element);}}animateScroll();}function scrollIntoView(menuEl,focusedEl){var menuRect=menuEl.getBoundingClientRect();var focusedRect=focusedEl.getBoundingClientRect();var overScroll=focusedEl.offsetHeight/3;if(focusedRect.bottom+overScroll>menuRect.bottom){scrollTo(menuEl,Math.min(focusedEl.offsetTop+focusedEl.clientHeight-menuEl.offsetHeight+overScroll,menuEl.scrollHeight));}else if(focusedRect.top-overScroll<menuRect.top){scrollTo(menuEl,Math.max(focusedEl.offsetTop-overScroll,0));}}function getBoundingClientObj(element){var rect=element.getBoundingClientRect();return{bottom:rect.bottom,height:rect.height,left:rect.left,right:rect.right,top:rect.top,width:rect.width};}function isTouchCapable(){try{document.createEvent("TouchEvent");return true;}catch(e){return false;}}function isMobileDevice(){try{return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);}catch(e){return false;}}var passiveOptionAccessed=false;var options$1={get passive(){return passiveOptionAccessed=true;}};var w=typeof window!=="undefined"?window:{};if(w.addEventListener&&w.removeEventListener){w.addEventListener("p",noop$3,options$1);w.removeEventListener("p",noop$3,false);}var supportsPassiveEvents=passiveOptionAccessed;function notNullish(item2){return item2!=null;}function isArray$a(arg2){return Array.isArray(arg2);}function valueTernary(isMulti,multiValue,singleValue){return isMulti?multiValue:singleValue;}function singleValueAsValue(singleValue){return singleValue;}function multiValueAsValue(multiValue){return multiValue;}var removeProps=function removeProps2(propsObj){for(var _len2=arguments.length,properties2=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){properties2[_key2-1]=arguments[_key2];}var propsMap=Object.entries(propsObj).filter(function(_ref3){var _ref22=_slicedToArray(_ref3,1),key=_ref22[0];return!properties2.includes(key);});return propsMap.reduce(function(newProps,_ref3){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],val=_ref4[1];newProps[key]=val;return newProps;},{});};var _excluded$3$1=["children","innerProps"],_excluded2$1$1=["children","innerProps"];function getMenuPlacement(_ref3){var preferredMaxHeight=_ref3.maxHeight,menuEl=_ref3.menuEl,minHeight2=_ref3.minHeight,preferredPlacement=_ref3.placement,shouldScroll=_ref3.shouldScroll,isFixedPosition=_ref3.isFixedPosition,controlHeight2=_ref3.controlHeight;var scrollParent=getScrollParent$1(menuEl);var defaultState={placement:"bottom",maxHeight:preferredMaxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height;var _menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top;var _menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top;var viewHeight=isFixedPosition?window.innerHeight:normalizedHeight(scrollParent);var scrollTop=getScrollTop(scrollParent);var marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10);var marginTop=parseInt(getComputedStyle(menuEl).marginTop,10);var viewSpaceAbove=containerTop-marginTop;var viewSpaceBelow=viewHeight-menuTop;var scrollSpaceAbove=viewSpaceAbove+scrollTop;var scrollSpaceBelow=scrollHeight-scrollTop-menuTop;var scrollDown=menuBottom-viewHeight+scrollTop+marginBottom;var scrollUp=scrollTop+menuTop-marginTop;var scrollDuration=160;switch(preferredPlacement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight){return{placement:"bottom",maxHeight:preferredMaxHeight};}if(scrollSpaceBelow>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration);}return{placement:"bottom",maxHeight:preferredMaxHeight};}if(!isFixedPosition&&scrollSpaceBelow>=minHeight2||isFixedPosition&&viewSpaceBelow>=minHeight2){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration);}var constrainedHeight=isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom;return{placement:"bottom",maxHeight:constrainedHeight};}if(preferredPlacement==="auto"||isFixedPosition){var _constrainedHeight=preferredMaxHeight;var spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;if(spaceAbove>=minHeight2){_constrainedHeight=Math.min(spaceAbove-marginBottom-controlHeight2,preferredMaxHeight);}return{placement:"top",maxHeight:_constrainedHeight};}if(preferredPlacement==="bottom"){if(shouldScroll){scrollTo(scrollParent,scrollDown);}return{placement:"bottom",maxHeight:preferredMaxHeight};}break;case"top":if(viewSpaceAbove>=menuHeight){return{placement:"top",maxHeight:preferredMaxHeight};}if(scrollSpaceAbove>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration);}return{placement:"top",maxHeight:preferredMaxHeight};}if(!isFixedPosition&&scrollSpaceAbove>=minHeight2||isFixedPosition&&viewSpaceAbove>=minHeight2){var _constrainedHeight2=preferredMaxHeight;if(!isFixedPosition&&scrollSpaceAbove>=minHeight2||isFixedPosition&&viewSpaceAbove>=minHeight2){_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop;}if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration);}return{placement:"top",maxHeight:_constrainedHeight2};}return{placement:"bottom",maxHeight:preferredMaxHeight};default:throw new Error('Invalid placement provided "'.concat(preferredPlacement,'".'));}return defaultState;}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom";}var coercePlacement=function coercePlacement2(p){return p==="auto"?"bottom":p;};var menuCSS=function menuCSS2(_ref22,unstyled){var _objectSpread2$12;var placement=_ref22.placement,_ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,spacing2=_ref2$theme.spacing,colors2=_ref2$theme.colors;return _objectSpread2((_objectSpread2$12={label:"menu"},_defineProperty(_objectSpread2$12,alignToControl(placement),"100%"),_defineProperty(_objectSpread2$12,"position","absolute"),_defineProperty(_objectSpread2$12,"width","100%"),_defineProperty(_objectSpread2$12,"zIndex",1),_objectSpread2$12),unstyled?{}:{backgroundColor:colors2.neutral0,borderRadius:borderRadius2,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:spacing2.menuGutter,marginTop:spacing2.menuGutter});};var PortalPlacementContext=/* @__PURE__ */createContext(null);var MenuPlacer=function MenuPlacer2(props){var children=props.children,minMenuHeight=props.minMenuHeight,maxMenuHeight=props.maxMenuHeight,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition,menuShouldScrollIntoView=props.menuShouldScrollIntoView,theme=props.theme;var _ref3=useContext(PortalPlacementContext)||{},setPortalPlacement=_ref3.setPortalPlacement;var ref=useRef(null);var _useState=useState(maxMenuHeight),_useState2=_slicedToArray(_useState,2),maxHeight3=_useState2[0],setMaxHeight=_useState2[1];var _useState3=useState(null),_useState4=_slicedToArray(_useState3,2),placement=_useState4[0],setPlacement=_useState4[1];var controlHeight2=theme.spacing.controlHeight;index$1(function(){var menuEl=ref.current;if(!menuEl)return;var isFixedPosition=menuPosition==="fixed";var shouldScroll=menuShouldScrollIntoView&&!isFixedPosition;var state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:menuEl,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,controlHeight:controlHeight2});setMaxHeight(state.maxHeight);setPlacement(state.placement);setPortalPlacement===null||setPortalPlacement===void 0?void 0:setPortalPlacement(state.placement);},[maxMenuHeight,menuPlacement,menuPosition,menuShouldScrollIntoView,minMenuHeight,setPortalPlacement,controlHeight2]);return children({ref:ref,placerProps:_objectSpread2(_objectSpread2({},props),{},{placement:placement||coercePlacement(menuPlacement),maxHeight:maxHeight3})});};var Menu$1=function Menu2(props){var children=props.children,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends$1({},getStyleProps(props,"menu",{menu:true}),{ref:innerRef},innerProps),children);};var Menu$1$1=Menu$1;var menuListCSS=function menuListCSS2(_ref4,unstyled){var maxHeight3=_ref4.maxHeight,baseUnit2=_ref4.theme.spacing.baseUnit;return _objectSpread2({maxHeight:maxHeight3,overflowY:"auto",position:"relative",// required for offset[Height, Top] > keyboard scroll
|
|
3418
3418
|
WebkitOverflowScrolling:"touch"},unstyled?{}:{paddingBottom:baseUnit2,paddingTop:baseUnit2});};var MenuList2=function MenuList3(props){var children=props.children,innerProps=props.innerProps,innerRef=props.innerRef,isMulti=props.isMulti;return jsx("div",_extends$1({},getStyleProps(props,"menuList",{"menu-list":true,"menu-list--is-multi":isMulti}),{ref:innerRef},innerProps),children);};var noticeCSS=function noticeCSS2(_ref5,unstyled){var _ref5$theme=_ref5.theme,baseUnit2=_ref5$theme.spacing.baseUnit,colors2=_ref5$theme.colors;return _objectSpread2({textAlign:"center"},unstyled?{}:{color:colors2.neutral40,padding:"".concat(baseUnit2*2,"px ").concat(baseUnit2*3,"px")});};var noOptionsMessageCSS=noticeCSS;var loadingMessageCSS=noticeCSS;var NoOptionsMessage=function NoOptionsMessage2(_ref6){var _ref6$children=_ref6.children,children=_ref6$children===void 0?"No options":_ref6$children,innerProps=_ref6.innerProps,restProps=_objectWithoutProperties(_ref6,_excluded$3$1);return jsx("div",_extends$1({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{children:children,innerProps:innerProps}),"noOptionsMessage",{"menu-notice":true,"menu-notice--no-options":true}),innerProps),children);};var LoadingMessage=function LoadingMessage2(_ref7){var _ref7$children=_ref7.children,children=_ref7$children===void 0?"Loading...":_ref7$children,innerProps=_ref7.innerProps,restProps=_objectWithoutProperties(_ref7,_excluded2$1$1);return jsx("div",_extends$1({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{children:children,innerProps:innerProps}),"loadingMessage",{"menu-notice":true,"menu-notice--loading":true}),innerProps),children);};var menuPortalCSS=function menuPortalCSS2(_ref8){var rect=_ref8.rect,offset2=_ref8.offset,position2=_ref8.position;return{left:rect.left,position:position2,top:offset2,width:rect.width,zIndex:1};};var MenuPortal=function MenuPortal2(props){var appendTo=props.appendTo,children=props.children,controlElement=props.controlElement,innerProps=props.innerProps,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition;var menuPortalRef=useRef(null);var cleanupRef=useRef(null);var _useState5=useState(coercePlacement(menuPlacement)),_useState6=_slicedToArray(_useState5,2),placement=_useState6[0],setPortalPlacement=_useState6[1];var portalPlacementContext=useMemo(function(){return{setPortalPlacement:setPortalPlacement};},[]);var _useState7=useState(null),_useState8=_slicedToArray(_useState7,2),computedPosition=_useState8[0],setComputedPosition=_useState8[1];var updateComputedPosition=useCallback(function(){if(!controlElement)return;var rect=getBoundingClientObj(controlElement);var scrollDistance=menuPosition==="fixed"?0:window.pageYOffset;var offset2=rect[placement]+scrollDistance;if(offset2!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset)||rect.left!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left)||rect.width!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width)){setComputedPosition({offset:offset2,rect:rect});}},[controlElement,menuPosition,placement,computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width]);index$1(function(){updateComputedPosition();},[updateComputedPosition]);var runAutoUpdate=useCallback(function(){if(typeof cleanupRef.current==="function"){cleanupRef.current();cleanupRef.current=null;}if(controlElement&&menuPortalRef.current){cleanupRef.current=autoUpdate(controlElement,menuPortalRef.current,updateComputedPosition,{elementResize:"ResizeObserver"in window});}},[controlElement,updateComputedPosition]);index$1(function(){runAutoUpdate();},[runAutoUpdate]);var setMenuPortalElement=useCallback(function(menuPortalElement){menuPortalRef.current=menuPortalElement;runAutoUpdate();},[runAutoUpdate]);if(!appendTo&&menuPosition!=="fixed"||!computedPosition)return null;var menuWrapper=jsx("div",_extends$1({ref:setMenuPortalElement},getStyleProps(_objectSpread2(_objectSpread2({},props),{},{offset:computedPosition.offset,position:menuPosition,rect:computedPosition.rect}),"menuPortal",{"menu-portal":true}),innerProps),children);return jsx(PortalPlacementContext.Provider,{value:portalPlacementContext},appendTo?/* @__PURE__ */createPortal(menuWrapper,appendTo):menuWrapper);};var containerCSS=function containerCSS2(_ref3){var isDisabled=_ref3.isDisabled,isRtl=_ref3.isRtl;return{label:"container",direction:isRtl?"rtl":void 0,pointerEvents:isDisabled?"none":void 0,// cancel mouse events when disabled
|
|
3419
3419
|
position:"relative"};};var SelectContainer=function SelectContainer2(props){var children=props.children,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return jsx("div",_extends$1({},getStyleProps(props,"container",{"--is-disabled":isDisabled,"--is-rtl":isRtl}),innerProps),children);};var valueContainerCSS=function valueContainerCSS2(_ref22,unstyled){var spacing2=_ref22.theme.spacing,isMulti=_ref22.isMulti,hasValue2=_ref22.hasValue,controlShouldRenderValue=_ref22.selectProps.controlShouldRenderValue;return _objectSpread2({alignItems:"center",display:isMulti&&hasValue2&&controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},unstyled?{}:{padding:"".concat(spacing2.baseUnit/2,"px ").concat(spacing2.baseUnit*2,"px")});};var ValueContainer=function ValueContainer2(props){var children=props.children,innerProps=props.innerProps,isMulti=props.isMulti,hasValue2=props.hasValue;return jsx("div",_extends$1({},getStyleProps(props,"valueContainer",{"value-container":true,"value-container--is-multi":isMulti,"value-container--has-value":hasValue2}),innerProps),children);};var indicatorsContainerCSS=function indicatorsContainerCSS2(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0};};var IndicatorsContainer=function IndicatorsContainer2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends$1({},getStyleProps(props,"indicatorsContainer",{indicators:true}),innerProps),children);};var _templateObject;var _excluded$2$1=["size"],_excluded2$d=["innerProps","isRtl","size"];function _EMOTION_STRINGIFIED_CSS_ERROR__$3(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";}var _ref2$2=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$3};var Svg=function Svg2(_ref3){var size2=_ref3.size,props=_objectWithoutProperties(_ref3,_excluded$2$1);return jsx("svg",_extends$1({height:size2,width:size2,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},props));};var CrossIcon=function CrossIcon2(props){return jsx(Svg,_extends$1({size:20},props),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}));};var DownChevron=function DownChevron2(props){return jsx(Svg,_extends$1({size:20},props),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}));};var baseCSS=function baseCSS2(_ref3,unstyled){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit2=_ref3$theme.spacing.baseUnit,colors2=_ref3$theme.colors;return _objectSpread2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2,":hover":{color:isFocused?colors2.neutral80:colors2.neutral40}});};var dropdownIndicatorCSS=baseCSS;var DropdownIndicator=function DropdownIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends$1({},getStyleProps(props,"dropdownIndicator",{indicator:true,"dropdown-indicator":true}),innerProps),children||jsx(DownChevron,null));};var clearIndicatorCSS=baseCSS;var ClearIndicator=function ClearIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends$1({},getStyleProps(props,"clearIndicator",{indicator:true,"clear-indicator":true}),innerProps),children||jsx(CrossIcon,null));};var indicatorSeparatorCSS=function indicatorSeparatorCSS2(_ref4,unstyled){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit2=_ref4$theme.spacing.baseUnit,colors2=_ref4$theme.colors;return _objectSpread2({label:"indicatorSeparator",alignSelf:"stretch",width:1},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral10:colors2.neutral20,marginBottom:baseUnit2*2,marginTop:baseUnit2*2});};var IndicatorSeparator=function IndicatorSeparator2(props){var innerProps=props.innerProps;return jsx("span",_extends$1({},innerProps,getStyleProps(props,"indicatorSeparator",{"indicator-separator":true})));};var loadingDotAnimations=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));var loadingIndicatorCSS=function loadingIndicatorCSS2(_ref5,unstyled){var isFocused=_ref5.isFocused,size2=_ref5.size,_ref5$theme=_ref5.theme,colors2=_ref5$theme.colors,baseUnit2=_ref5$theme.spacing.baseUnit;return _objectSpread2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:size2,lineHeight:1,marginRight:size2,textAlign:"center",verticalAlign:"middle"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2});};var LoadingDot=function LoadingDot2(_ref6){var delay=_ref6.delay,offset2=_ref6.offset;return jsx("span",{css:/* @__PURE__ */css$2({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset2?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")});};var LoadingIndicator=function LoadingIndicator2(_ref7){var innerProps=_ref7.innerProps,isRtl=_ref7.isRtl,_ref7$size=_ref7.size,size2=_ref7$size===void 0?4:_ref7$size,restProps=_objectWithoutProperties(_ref7,_excluded2$d);return jsx("div",_extends$1({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{innerProps:innerProps,isRtl:isRtl,size:size2}),"loadingIndicator",{indicator:true,"loading-indicator":true}),innerProps),jsx(LoadingDot,{delay:0,offset:isRtl}),jsx(LoadingDot,{delay:160,offset:true}),jsx(LoadingDot,{delay:320,offset:!isRtl}));};var css$1=function css(_ref3,unstyled){var isDisabled=_ref3.isDisabled,isFocused=_ref3.isFocused,_ref$theme=_ref3.theme,colors2=_ref$theme.colors,borderRadius2=_ref$theme.borderRadius,spacing2=_ref$theme.spacing;return _objectSpread2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing2.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral5:colors2.neutral0,borderColor:isDisabled?colors2.neutral10:isFocused?colors2.primary:colors2.neutral20,borderRadius:borderRadius2,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors2.primary):void 0,"&:hover":{borderColor:isFocused?colors2.primary:colors2.neutral30}});};var Control=function Control2(props){var children=props.children,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return jsx("div",_extends$1({ref:innerRef},getStyleProps(props,"control",{control:true,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen}),innerProps,{"aria-disabled":isDisabled||void 0}),children);};var Control$1=Control;var _excluded$1$1=["data"];var groupCSS=function groupCSS2(_ref3,unstyled){var spacing2=_ref3.theme.spacing;return unstyled?{}:{paddingBottom:spacing2.baseUnit*2,paddingTop:spacing2.baseUnit*2};};var Group=function Group2(props){var children=props.children,cx2=props.cx,getStyles2=props.getStyles,getClassNames=props.getClassNames,Heading=props.Heading,headingProps=props.headingProps,innerProps=props.innerProps,label2=props.label,theme=props.theme,selectProps=props.selectProps;return jsx("div",_extends$1({},getStyleProps(props,"group",{group:true}),innerProps),jsx(Heading,_extends$1({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles2,getClassNames:getClassNames,cx:cx2}),label2),jsx("div",null,children));};var groupHeadingCSS=function groupHeadingCSS2(_ref22,unstyled){var _ref2$theme=_ref22.theme,colors2=_ref2$theme.colors,spacing2=_ref2$theme.spacing;return _objectSpread2({label:"group",cursor:"default",display:"block"},unstyled?{}:{color:colors2.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:spacing2.baseUnit*3,paddingRight:spacing2.baseUnit*3,textTransform:"uppercase"});};var GroupHeading=function GroupHeading2(props){var _cleanCommonProps=cleanCommonProps(props);_cleanCommonProps.data;var innerProps=_objectWithoutProperties(_cleanCommonProps,_excluded$1$1);return jsx("div",_extends$1({},getStyleProps(props,"groupHeading",{"group-heading":true}),innerProps));};var Group$1=Group;var _excluded$11=["innerRef","isDisabled","isHidden","inputClassName"];var inputCSS=function inputCSS2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,value=_ref3.value,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2(_objectSpread2({visibility:isDisabled?"hidden":"visible",// force css to recompute when value change due to @emotion bug.
|
|
3420
3420
|
// We can remove it whenever the bug is fixed.
|
|
@@ -3455,7 +3455,7 @@ function startListeningToTouch(){if(document&&document.addEventListener){documen
|
|
|
3455
3455
|
// Renderers
|
|
3456
3456
|
// ==============================
|
|
3457
3457
|
function renderInput(){var _this$props8=this.props,isDisabled=_this$props8.isDisabled,isSearchable=_this$props8.isSearchable,inputId=_this$props8.inputId,inputValue=_this$props8.inputValue,tabIndex=_this$props8.tabIndex,form=_this$props8.form,menuIsOpen=_this$props8.menuIsOpen,required=_this$props8.required;var _this$getComponents=this.getComponents(),Input4=_this$getComponents.Input;var _this$state4=this.state,inputIsHidden=_this$state4.inputIsHidden,ariaSelection=_this$state4.ariaSelection;var commonProps=this.commonProps;var id=inputId||this.getElementId("input");var ariaAttributes=_objectSpread2(_objectSpread2(_objectSpread2({"aria-autocomplete":"list","aria-expanded":menuIsOpen,"aria-haspopup":true,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":required,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},menuIsOpen&&{"aria-controls":this.getElementId("listbox")}),!isSearchable&&{"aria-readonly":true}),this.hasValue()?(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});if(!isSearchable){return/* @__PURE__ */React.createElement(DummyInput,_extends$1({id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop$3,onFocus:this.onInputFocus,disabled:isDisabled,tabIndex:tabIndex,inputMode:"none",form:form,value:""},ariaAttributes));}return/* @__PURE__ */React.createElement(Input4,_extends$1({},commonProps,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:tabIndex,form:form,type:"text",value:inputValue},ariaAttributes));}},{key:"renderPlaceholderOrValue",value:function renderPlaceholderOrValue(){var _this3=this;var _this$getComponents2=this.getComponents(),MultiValue4=_this$getComponents2.MultiValue,MultiValueContainer2=_this$getComponents2.MultiValueContainer,MultiValueLabel2=_this$getComponents2.MultiValueLabel,MultiValueRemove2=_this$getComponents2.MultiValueRemove,SingleValue4=_this$getComponents2.SingleValue,Placeholder3=_this$getComponents2.Placeholder;var commonProps=this.commonProps;var _this$props9=this.props,controlShouldRenderValue=_this$props9.controlShouldRenderValue,isDisabled=_this$props9.isDisabled,isMulti=_this$props9.isMulti,inputValue=_this$props9.inputValue,placeholder=_this$props9.placeholder;var _this$state5=this.state,selectValue=_this$state5.selectValue,focusedValue=_this$state5.focusedValue,isFocused=_this$state5.isFocused;if(!this.hasValue()||!controlShouldRenderValue){return inputValue?null:/* @__PURE__ */React.createElement(Placeholder3,_extends$1({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused,innerProps:{id:this.getElementId("placeholder")}}),placeholder);}if(isMulti){return selectValue.map(function(opt,index2){var isOptionFocused=opt===focusedValue;var key="".concat(_this3.getOptionLabel(opt),"-").concat(_this3.getOptionValue(opt));return/* @__PURE__ */React.createElement(MultiValue4,_extends$1({},commonProps,{components:{Container:MultiValueContainer2,Label:MultiValueLabel2,Remove:MultiValueRemove2},isFocused:isOptionFocused,isDisabled:isDisabled,key:key,index:index2,removeProps:{onClick:function onClick(){return _this3.removeValue(opt);},onTouchEnd:function onTouchEnd(){return _this3.removeValue(opt);},onMouseDown:function onMouseDown(e){e.preventDefault();}},data:opt}),_this3.formatOptionLabel(opt,"value"));});}if(inputValue){return null;}var singleValue=selectValue[0];return/* @__PURE__ */React.createElement(SingleValue4,_extends$1({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"));}},{key:"renderClearIndicator",value:function renderClearIndicator(){var _this$getComponents3=this.getComponents(),ClearIndicator3=_this$getComponents3.ClearIndicator;var commonProps=this.commonProps;var _this$props10=this.props,isDisabled=_this$props10.isDisabled,isLoading=_this$props10.isLoading;var isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator3||isDisabled||!this.hasValue()||isLoading){return null;}var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return/* @__PURE__ */React.createElement(ClearIndicator3,_extends$1({},commonProps,{innerProps:innerProps,isFocused:isFocused}));}},{key:"renderLoadingIndicator",value:function renderLoadingIndicator(){var _this$getComponents4=this.getComponents(),LoadingIndicator3=_this$getComponents4.LoadingIndicator;var commonProps=this.commonProps;var _this$props11=this.props,isDisabled=_this$props11.isDisabled,isLoading=_this$props11.isLoading;var isFocused=this.state.isFocused;if(!LoadingIndicator3||!isLoading)return null;var innerProps={"aria-hidden":"true"};return/* @__PURE__ */React.createElement(LoadingIndicator3,_extends$1({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}));}},{key:"renderIndicatorSeparator",value:function renderIndicatorSeparator(){var _this$getComponents5=this.getComponents(),DropdownIndicator3=_this$getComponents5.DropdownIndicator,IndicatorSeparator3=_this$getComponents5.IndicatorSeparator;if(!DropdownIndicator3||!IndicatorSeparator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;return/* @__PURE__ */React.createElement(IndicatorSeparator3,_extends$1({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}));}},{key:"renderDropdownIndicator",value:function renderDropdownIndicator(){var _this$getComponents6=this.getComponents(),DropdownIndicator3=_this$getComponents6.DropdownIndicator;if(!DropdownIndicator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;var innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return/* @__PURE__ */React.createElement(DropdownIndicator3,_extends$1({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}));}},{key:"renderMenu",value:function renderMenu(){var _this4=this;var _this$getComponents7=this.getComponents(),Group3=_this$getComponents7.Group,GroupHeading3=_this$getComponents7.GroupHeading,Menu4=_this$getComponents7.Menu,MenuList4=_this$getComponents7.MenuList,MenuPortal3=_this$getComponents7.MenuPortal,LoadingMessage3=_this$getComponents7.LoadingMessage,NoOptionsMessage3=_this$getComponents7.NoOptionsMessage,Option4=_this$getComponents7.Option;var commonProps=this.commonProps;var focusedOption=this.state.focusedOption;var _this$props12=this.props,captureMenuScroll=_this$props12.captureMenuScroll,inputValue=_this$props12.inputValue,isLoading=_this$props12.isLoading,loadingMessage2=_this$props12.loadingMessage,minMenuHeight=_this$props12.minMenuHeight,maxMenuHeight=_this$props12.maxMenuHeight,menuIsOpen=_this$props12.menuIsOpen,menuPlacement=_this$props12.menuPlacement,menuPosition=_this$props12.menuPosition,menuPortalTarget=_this$props12.menuPortalTarget,menuShouldBlockScroll=_this$props12.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props12.menuShouldScrollIntoView,noOptionsMessage2=_this$props12.noOptionsMessage,onMenuScrollToTop=_this$props12.onMenuScrollToTop,onMenuScrollToBottom=_this$props12.onMenuScrollToBottom;if(!menuIsOpen)return null;var render=function render2(props,id){var type=props.type,data=props.data,isDisabled=props.isDisabled,isSelected=props.isSelected,label2=props.label,value=props.value;var isFocused=focusedOption===data;var onHover=isDisabled?void 0:function(){return _this4.onOptionHover(data);};var onSelect=isDisabled?void 0:function(){return _this4.selectOption(data);};var optionId="".concat(_this4.getElementId("option"),"-").concat(id);var innerProps={id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1,role:"option","aria-selected":_this4.state.isAppleDevice?void 0:isSelected// is not supported on Apple devices
|
|
3458
|
-
};return/* @__PURE__ */React.createElement(Option4,_extends$1({},commonProps,{innerProps:innerProps,data:data,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label2,type:type,value:value,isFocused:isFocused,innerRef:isFocused?_this4.getFocusedOptionRef:void 0}),_this4.formatOptionLabel(props.data,"menu"));};var menuUI;if(this.hasOptions()){menuUI=this.getCategorizedOptions().map(function(item2){if(item2.type==="group"){var _data=item2.data,options=item2.options,groupIndex=item2.index;var groupId="".concat(_this4.getElementId("group"),"-").concat(groupIndex);var headingId="".concat(groupId,"-heading");return/* @__PURE__ */React.createElement(Group3,_extends$1({},commonProps,{key:groupId,data:_data,options:options,Heading:GroupHeading3,headingProps:{id:headingId,data:item2.data},label:_this4.formatGroupLabel(item2.data)}),item2.options.map(function(option){return render(option,"".concat(groupIndex,"-").concat(option.index));}));}else if(item2.type==="option"){return render(item2,"".concat(item2.index));}});}else if(isLoading){var message2=loadingMessage2({inputValue:inputValue});if(message2===null)return null;menuUI=/* @__PURE__ */React.createElement(LoadingMessage3,commonProps,message2);}else{var _message=noOptionsMessage2({inputValue:inputValue});if(_message===null)return null;menuUI=/* @__PURE__ */React.createElement(NoOptionsMessage3,commonProps,_message);}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView};var menuElement=/* @__PURE__ */React.createElement(MenuPlacer,_extends$1({},commonProps,menuPlacementProps),function(_ref4){var ref=_ref4.ref,_ref4$placerProps=_ref4.placerProps,placement=_ref4$placerProps.placement,maxHeight3=_ref4$placerProps.maxHeight;return/* @__PURE__ */React.createElement(Menu4,_extends$1({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this4.onMenuMouseDown,onMouseMove:_this4.onMenuMouseMove},isLoading:isLoading,placement:placement}),/* @__PURE__ */React.createElement(ScrollManager,{captureEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom,lockEnabled:menuShouldBlockScroll},function(scrollTargetRef){return/* @__PURE__ */React.createElement(MenuList4,_extends$1({},commonProps,{innerRef:function innerRef(instance2){_this4.getMenuListRef(instance2);scrollTargetRef(instance2);},innerProps:{role:"listbox","aria-multiselectable":commonProps.isMulti,id:_this4.getElementId("listbox")},isLoading:isLoading,maxHeight:maxHeight3,focusedOption:focusedOption}),menuUI);}));});return menuPortalTarget||menuPosition==="fixed"?/* @__PURE__ */React.createElement(MenuPortal3,_extends$1({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement;}},{key:"renderFormField",value:function renderFormField(){var _this5=this;var _this$props13=this.props,delimiter2=_this$props13.delimiter,isDisabled=_this$props13.isDisabled,isMulti=_this$props13.isMulti,name=_this$props13.name,required=_this$props13.required;var selectValue=this.state.selectValue;if(required&&!this.hasValue()&&!isDisabled){return/* @__PURE__ */React.createElement(RequiredInput$1,{name:name,onFocus:this.onValueInputFocus});}if(!name||isDisabled)return;if(isMulti){if(delimiter2){var value=selectValue.map(function(opt){return _this5.getOptionValue(opt);}).join(delimiter2);return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:value});}else{var input=selectValue.length>0?selectValue.map(function(opt,i){return/* @__PURE__ */React.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this5.getOptionValue(opt)});}):/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:""});return/* @__PURE__ */React.createElement("div",null,input);}}else{var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:_value});}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var commonProps=this.commonProps;var _this$state6=this.state,ariaSelection=_this$state6.ariaSelection,focusedOption=_this$state6.focusedOption,focusedValue=_this$state6.focusedValue,isFocused=_this$state6.isFocused,selectValue=_this$state6.selectValue;var focusableOptions=this.getFocusableOptions();return/* @__PURE__ */React.createElement(LiveRegion$1,_extends$1({},commonProps,{id:this.getElementId("live-region"),ariaSelection:ariaSelection,focusedOption:focusedOption,focusedValue:focusedValue,isFocused:isFocused,selectValue:selectValue,focusableOptions:focusableOptions,isAppleDevice:this.state.isAppleDevice}));}},{key:"render",value:function render(){var _this$getComponents8=this.getComponents(),Control3=_this$getComponents8.Control,IndicatorsContainer3=_this$getComponents8.IndicatorsContainer,SelectContainer3=_this$getComponents8.SelectContainer,ValueContainer3=_this$getComponents8.ValueContainer;var _this$props14=this.props,className=_this$props14.className,id=_this$props14.id,isDisabled=_this$props14.isDisabled,menuIsOpen=_this$props14.menuIsOpen;var isFocused=this.state.isFocused;var commonProps=this.commonProps=this.getCommonProps();return/* @__PURE__ */React.createElement(SelectContainer3,_extends$1({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),/* @__PURE__ */React.createElement(Control3,_extends$1({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),/* @__PURE__ */React.createElement(ValueContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),/* @__PURE__ */React.createElement(IndicatorsContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField());}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var prevProps=state.prevProps,clearFocusValueOnUpdate=state.clearFocusValueOnUpdate,inputIsHiddenAfterUpdate=state.inputIsHiddenAfterUpdate,ariaSelection=state.ariaSelection,isFocused=state.isFocused,prevWasFocused=state.prevWasFocused,instancePrefix=state.instancePrefix;var options=props.options,value=props.value,menuIsOpen=props.menuIsOpen,inputValue=props.inputValue,isMulti=props.isMulti;var selectValue=cleanValue(value);var newMenuOptionsState={};if(prevProps&&(value!==prevProps.value||options!==prevProps.options||menuIsOpen!==prevProps.menuIsOpen||inputValue!==prevProps.inputValue)){var focusableOptions=menuIsOpen?buildFocusableOptions(props,selectValue):[];var focusableOptionsWithIds=menuIsOpen?buildFocusableOptionsWithIds(buildCategorizedOptions(props,selectValue),"".concat(instancePrefix,"-option")):[];var focusedValue=clearFocusValueOnUpdate?getNextFocusedValue(state,selectValue):null;var focusedOption=getNextFocusedOption(state,focusableOptions);var focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusedOption);newMenuOptionsState={selectValue:selectValue,focusedOption:focusedOption,focusedOptionId:focusedOptionId,focusableOptionsWithIds:focusableOptionsWithIds,focusedValue:focusedValue,clearFocusValueOnUpdate:false};}var newInputIsHiddenState=inputIsHiddenAfterUpdate!=null&&props!==prevProps?{inputIsHidden:inputIsHiddenAfterUpdate,inputIsHiddenAfterUpdate:void 0}:{};var newAriaSelection=ariaSelection;var hasKeptFocus=isFocused&&prevWasFocused;if(isFocused&&!hasKeptFocus){newAriaSelection={value:valueTernary(isMulti,selectValue,selectValue[0]||null),options:selectValue,action:"initial-input-focus"};hasKeptFocus=!prevWasFocused;}if((ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"){newAriaSelection=null;}return _objectSpread2(_objectSpread2(_objectSpread2({},newMenuOptionsState),newInputIsHiddenState),{},{prevProps:props,ariaSelection:newAriaSelection,prevWasFocused:hasKeptFocus});}}]);return Select3;}(Component);Select$1.defaultProps=defaultProps;var StateManagedSelect=/* @__PURE__ */forwardRef(function(props,ref){var baseSelectProps=useStateManager(props);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},baseSelectProps));});var StateManagedSelect$1=StateManagedSelect;var isString=function isString(obj){return typeof obj==="string";};var defer=function defer(){var res;var rej;var promise=new Promise(function(resolve,reject){res=resolve;rej=reject;});promise.resolve=res;promise.reject=rej;return promise;};var makeString=function makeString(object){if(object==null)return"";return""+object;};var copy$1=function copy$1(a,s,t){a.forEach(function(m){if(s[m])t[m]=s[m];});};var lastOfPathSeparatorRegExp=/###/g;var cleanKey=function cleanKey(key){return key&&key.indexOf("###")>-1?key.replace(lastOfPathSeparatorRegExp,"."):key;};var canNotTraverseDeeper=function canNotTraverseDeeper(object){return!object||isString(object);};var getLastOfPath=function getLastOfPath(object,path,Empty){var stack=!isString(path)?path:path.split(".");var stackIndex=0;while(stackIndex<stack.length-1){if(canNotTraverseDeeper(object))return{};var key=cleanKey(stack[stackIndex]);if(!object[key]&&Empty)object[key]=new Empty();if(Object.prototype.hasOwnProperty.call(object,key)){object=object[key];}else{object={};}++stackIndex;}if(canNotTraverseDeeper(object))return{};return{obj:object,k:cleanKey(stack[stackIndex])};};var setPath=function setPath(object,path,newValue){var _getLastOfPath=getLastOfPath(object,path,Object),obj=_getLastOfPath.obj,k=_getLastOfPath.k;if(obj!==void 0||path.length===1){obj[k]=newValue;return;}var e=path[path.length-1];var p=path.slice(0,path.length-1);var last=getLastOfPath(object,p,Object);while(last.obj===void 0&&p.length){e="".concat(p[p.length-1],".").concat(e);p=p.slice(0,p.length-1);last=getLastOfPath(object,p,Object);if(last&&last.obj&&typeof last.obj["".concat(last.k,".").concat(e)]!=="undefined"){last.obj=void 0;}}last.obj["".concat(last.k,".").concat(e)]=newValue;};var pushPath=function pushPath(object,path,newValue,concat){var _getLastOfPath2=getLastOfPath(object,path,Object),obj=_getLastOfPath2.obj,k=_getLastOfPath2.k;obj[k]=obj[k]||[];obj[k].push(newValue);};var getPath=function getPath(object,path){var _getLastOfPath3=getLastOfPath(object,path),obj=_getLastOfPath3.obj,k=_getLastOfPath3.k;if(!obj)return void 0;return obj[k];};var getPathWithDefaults=function getPathWithDefaults(data,defaultData,key){var value=getPath(data,key);if(value!==void 0){return value;}return getPath(defaultData,key);};var _deepExtend=function deepExtend(target,source,overwrite){for(var prop in source){if(prop!=="__proto__"&&prop!=="constructor"){if(prop in target){if(isString(target[prop])||target[prop]instanceof String||isString(source[prop])||source[prop]instanceof String){if(overwrite)target[prop]=source[prop];}else{_deepExtend(target[prop],source[prop],overwrite);}}else{target[prop]=source[prop];}}}return target;};var regexEscape=function regexEscape(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");};var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};var escape=function escape(data){if(isString(data)){return data.replace(/[&<>"'\/]/g,function(s){return _entityMap[s];});}return data;};var RegExpCache=/*#__PURE__*/function(){function RegExpCache(capacity){_classCallCheck2(this,RegExpCache);this.capacity=capacity;this.regExpMap=/* @__PURE__ */new Map();this.regExpQueue=[];}return _createClass2(RegExpCache,[{key:"getRegExp",value:function getRegExp(pattern){var regExpFromCache=this.regExpMap.get(pattern);if(regExpFromCache!==void 0){return regExpFromCache;}var regExpNew=new RegExp(pattern);if(this.regExpQueue.length===this.capacity){this.regExpMap.delete(this.regExpQueue.shift());}this.regExpMap.set(pattern,regExpNew);this.regExpQueue.push(pattern);return regExpNew;}}]);}();var chars=[" ",",","?","!",";"];var looksLikeObjectPathRegExpCache=new RegExpCache(20);var looksLikeObjectPath=function looksLikeObjectPath(key,nsSeparator,keySeparator){nsSeparator=nsSeparator||"";keySeparator=keySeparator||"";var possibleChars=chars.filter(function(c){return nsSeparator.indexOf(c)<0&&keySeparator.indexOf(c)<0;});if(possibleChars.length===0)return true;var r2=looksLikeObjectPathRegExpCache.getRegExp("(".concat(possibleChars.map(function(c){return c==="?"?"\\?":c;}).join("|"),")"));var matched=!r2.test(key);if(!matched){var ki=key.indexOf(keySeparator);if(ki>0&&!r2.test(key.substring(0,ki))){matched=true;}}return matched;};var deepFind=function deepFind(obj,path){var keySeparator=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!obj)return void 0;if(obj[path])return obj[path];var tokens=path.split(keySeparator);var current=obj;for(var _i1=0;_i1<tokens.length;){if(!current||_typeof2(current)!=="object"){return void 0;}var next2=void 0;var nextPath="";for(var _j2=_i1;_j2<tokens.length;++_j2){if(_j2!==_i1){nextPath+=keySeparator;}nextPath+=tokens[_j2];next2=current[nextPath];if(next2!==void 0){if(["string","number","boolean"].indexOf(_typeof2(next2))>-1&&_j2<tokens.length-1){continue;}_i1+=_j2-_i1+1;break;}}current=next2;}return current;};var getCleanedCode=function getCleanedCode(code){return code&&code.replace("_","-");};var consoleLogger={type:"logger",log:function log(args){this.output("log",args);},warn:function warn(args){this.output("warn",args);},error:function error(args){this.output("error",args);},output:function output(type,args){if(console&&console[type])console[type].apply(console,args);}};var Logger=/*#__PURE__*/function(){function Logger(concreteLogger){_classCallCheck2(this,Logger);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(concreteLogger,options);}return _createClass2(Logger,[{key:"init",value:function init(concreteLogger){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=options.prefix||"i18next:";this.logger=concreteLogger||consoleLogger;this.options=options;this.debug=options.debug;}},{key:"log",value:function log(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return this.forward(args,"log","",true);}},{key:"warn",value:function warn(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2];}return this.forward(args,"warn","",true);}},{key:"error",value:function error(){for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3];}return this.forward(args,"error","");}},{key:"deprecate",value:function deprecate(){for(var _len4=arguments.length,args=new Array(_len4),_key4=0;_key4<_len4;_key4++){args[_key4]=arguments[_key4];}return this.forward(args,"warn","WARNING DEPRECATED: ",true);}},{key:"forward",value:function forward(args,lvl,prefix2,debugOnly){if(debugOnly&&!this.debug)return null;if(isString(args[0]))args[0]="".concat(prefix2).concat(this.prefix," ").concat(args[0]);return this.logger[lvl](args);}},{key:"create",value:function create(moduleName){return new Logger(this.logger,__spreadValues(__spreadValues({},{prefix:"".concat(this.prefix,":").concat(moduleName,":")}),this.options));}},{key:"clone",value:function clone(options){options=options||this.options;options.prefix=options.prefix||this.prefix;return new Logger(this.logger,options);}}]);}();var baseLogger=new Logger();var EventEmitter=/*#__PURE__*/function(){function EventEmitter(){_classCallCheck2(this,EventEmitter);this.observers={};}return _createClass2(EventEmitter,[{key:"on",value:function on(events,listener){var _this11=this;events.split(" ").forEach(function(event){if(!_this11.observers[event])_this11.observers[event]=/* @__PURE__ */new Map();var numListeners=_this11.observers[event].get(listener)||0;_this11.observers[event].set(listener,numListeners+1);});return this;}},{key:"off",value:function off(event,listener){if(!this.observers[event])return;if(!listener){delete this.observers[event];return;}this.observers[event].delete(listener);}},{key:"emit",value:function emit(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}if(this.observers[event]){var cloned=Array.from(this.observers[event].entries());cloned.forEach(function(_ref3){var _ref297=_slicedToArray2(_ref3,2),observer=_ref297[0],numTimesAdded=_ref297[1];for(var _i10=0;_i10<numTimesAdded;_i10++){observer.apply(void 0,args);}});}if(this.observers["*"]){var _cloned=Array.from(this.observers["*"].entries());_cloned.forEach(function(_ref22){var _ref298=_slicedToArray2(_ref22,2),observer=_ref298[0],numTimesAdded=_ref298[1];for(var _i11=0;_i11<numTimesAdded;_i11++){observer.apply(observer,[event].concat(args));}});}}}]);}();var ResourceStore=/*#__PURE__*/function(_EventEmitter){function ResourceStore(data){var _this12;_classCallCheck2(this,ResourceStore);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};_this12=_callSuper(this,ResourceStore);_this12.data=data||{};_this12.options=options;if(_this12.options.keySeparator===void 0){_this12.options.keySeparator=".";}if(_this12.options.ignoreJSONStructure===void 0){_this12.options.ignoreJSONStructure=true;}return _this12;}_inherits2(ResourceStore,_EventEmitter);return _createClass2(ResourceStore,[{key:"addNamespaces",value:function addNamespaces(ns){if(this.options.ns.indexOf(ns)<0){this.options.ns.push(ns);}}},{key:"removeNamespaces",value:function removeNamespaces(ns){var index2=this.options.ns.indexOf(ns);if(index2>-1){this.options.ns.splice(index2,1);}}},{key:"getResource",value:function getResource(lng,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var ignoreJSONStructure=options.ignoreJSONStructure!==void 0?options.ignoreJSONStructure:this.options.ignoreJSONStructure;var path;if(lng.indexOf(".")>-1){path=lng.split(".");}else{path=[lng,ns];if(key){if(Array.isArray(key)){var _path;(_path=path).push.apply(_path,_toConsumableArray2(key));}else if(isString(key)&&keySeparator){var _path2;(_path2=path).push.apply(_path2,_toConsumableArray2(key.split(keySeparator)));}else{path.push(key);}}}var result=getPath(this.data,path);if(!result&&!ns&&!key&&lng.indexOf(".")>-1){lng=path[0];ns=path[1];key=path.slice(2).join(".");}if(result||!ignoreJSONStructure||!isString(key))return result;return deepFind(this.data&&this.data[lng]&&this.data[lng][ns],key,keySeparator);}},{key:"addResource",value:function addResource(lng,ns,key,value){var options=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:false};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var path=[lng,ns];if(key)path=path.concat(keySeparator?key.split(keySeparator):key);if(lng.indexOf(".")>-1){path=lng.split(".");value=ns;ns=path[1];}this.addNamespaces(ns);setPath(this.data,path,value);if(!options.silent)this.emit("added",lng,ns,key,value);}},{key:"addResources",value:function addResources(lng,ns,resources2){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:false};for(var m in resources2){if(isString(resources2[m])||Array.isArray(resources2[m]))this.addResource(lng,ns,m,resources2[m],{silent:true});}if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"addResourceBundle",value:function addResourceBundle(lng,ns,resources2,deep,overwrite){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:false,skipCopy:false};var path=[lng,ns];if(lng.indexOf(".")>-1){path=lng.split(".");deep=resources2;resources2=ns;ns=path[1];}this.addNamespaces(ns);var pack=getPath(this.data,path)||{};if(!options.skipCopy)resources2=JSON.parse(JSON.stringify(resources2));if(deep){_deepExtend(pack,resources2,overwrite);}else{pack=__spreadValues(__spreadValues({},pack),resources2);}setPath(this.data,path,pack);if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"removeResourceBundle",value:function removeResourceBundle(lng,ns){if(this.hasResourceBundle(lng,ns)){delete this.data[lng][ns];}this.removeNamespaces(ns);this.emit("removed",lng,ns);}},{key:"hasResourceBundle",value:function hasResourceBundle(lng,ns){return this.getResource(lng,ns)!==void 0;}},{key:"getResourceBundle",value:function getResourceBundle(lng,ns){if(!ns)ns=this.options.defaultNS;if(this.options.compatibilityAPI==="v1")return __spreadValues(__spreadValues({},{}),this.getResource(lng,ns));return this.getResource(lng,ns);}},{key:"getDataByLanguage",value:function getDataByLanguage(lng){return this.data[lng];}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(lng){var data=this.getDataByLanguage(lng);var n=data&&Object.keys(data)||[];return!!n.find(function(v){return data[v]&&Object.keys(data[v]).length>0;});}},{key:"toJSON",value:function toJSON(){return this.data;}}]);}(EventEmitter);var postProcessor={processors:{},addPostProcessor:function addPostProcessor(module){this.processors[module.name]=module;},handle:function handle(processors,value,key,options,translator){var _this13=this;processors.forEach(function(processor){if(_this13.processors[processor])value=_this13.processors[processor].process(value,key,options,translator);});return value;}};var checkedLoadedFor={};var Translator=/*#__PURE__*/function(_EventEmitter2){function Translator(services){var _this14;_classCallCheck2(this,Translator);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_this14=_callSuper(this,Translator);copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],services,_this14);_this14.options=options;if(_this14.options.keySeparator===void 0){_this14.options.keySeparator=".";}_this14.logger=baseLogger.create("translator");return _this14;}_inherits2(Translator,_EventEmitter2);return _createClass2(Translator,[{key:"changeLanguage",value:function changeLanguage(lng){if(lng)this.language=lng;}},{key:"exists",value:function exists(key){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(key===void 0||key===null){return false;}var resolved=this.resolve(key,options);return resolved&&resolved.res!==void 0;}},{key:"extractFromKey",value:function extractFromKey(key,options){var nsSeparator=options.nsSeparator!==void 0?options.nsSeparator:this.options.nsSeparator;if(nsSeparator===void 0)nsSeparator=":";var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var namespaces=options.ns||this.options.defaultNS||[];var wouldCheckForNsInKey=nsSeparator&&key.indexOf(nsSeparator)>-1;var seemsNaturalLanguage=!this.options.userDefinedKeySeparator&&!options.keySeparator&&!this.options.userDefinedNsSeparator&&!options.nsSeparator&&!looksLikeObjectPath(key,nsSeparator,keySeparator);if(wouldCheckForNsInKey&&!seemsNaturalLanguage){var m=key.match(this.interpolator.nestingRegexp);if(m&&m.length>0){return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}var parts=key.split(nsSeparator);if(nsSeparator!==keySeparator||nsSeparator===keySeparator&&this.options.ns.indexOf(parts[0])>-1)namespaces=parts.shift();key=parts.join(keySeparator);}return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}},{key:"translate",value:function translate(keys,options,lastKey){var _this15=this;if(_typeof2(options)!=="object"&&this.options.overloadTranslationOptionHandler){options=this.options.overloadTranslationOptionHandler(arguments);}if(_typeof2(options)==="object")options=__spreadValues({},options);if(!options)options={};if(keys===void 0||keys===null)return"";if(!Array.isArray(keys))keys=[String(keys)];var returnDetails=options.returnDetails!==void 0?options.returnDetails:this.options.returnDetails;var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var _this$extractFromKey=this.extractFromKey(keys[keys.length-1],options),key=_this$extractFromKey.key,namespaces=_this$extractFromKey.namespaces;var namespace=namespaces[namespaces.length-1];var lng=options.lng||this.language;var appendNamespaceToCIMode=options.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lng&&lng.toLowerCase()==="cimode"){if(appendNamespaceToCIMode){var nsSeparator=options.nsSeparator||this.options.nsSeparator;if(returnDetails){return{res:"".concat(namespace).concat(nsSeparator).concat(key),usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return"".concat(namespace).concat(nsSeparator).concat(key);}if(returnDetails){return{res:key,usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return key;}var resolved=this.resolve(keys,options);var res=resolved&&resolved.res;var resUsedKey=resolved&&resolved.usedKey||key;var resExactUsedKey=resolved&&resolved.exactUsedKey||key;var resType=Object.prototype.toString.apply(res);var noObject=["[object Number]","[object Function]","[object RegExp]"];var joinArrays=options.joinArrays!==void 0?options.joinArrays:this.options.joinArrays;var handleAsObjectInI18nFormat=!this.i18nFormat||this.i18nFormat.handleAsObject;var handleAsObject=!isString(res)&&typeof res!=="boolean"&&typeof res!=="number";if(handleAsObjectInI18nFormat&&res&&handleAsObject&&noObject.indexOf(resType)<0&&!(isString(joinArrays)&&Array.isArray(res))){if(!options.returnObjects&&!this.options.returnObjects){if(!this.options.returnedObjectHandler){this.logger.warn("accessing an object - but returnObjects options is not enabled!");}var r2=this.options.returnedObjectHandler?this.options.returnedObjectHandler(resUsedKey,res,__spreadProps(__spreadValues({},options),{ns:namespaces})):"key '".concat(key," (").concat(this.language,")' returned an object instead of string.");if(returnDetails){resolved.res=r2;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return r2;}if(keySeparator){var resTypeIsArray=Array.isArray(res);var copy2=resTypeIsArray?[]:{};var newKeyToUse=resTypeIsArray?resExactUsedKey:resUsedKey;for(var m in res){if(Object.prototype.hasOwnProperty.call(res,m)){var deepKey="".concat(newKeyToUse).concat(keySeparator).concat(m);copy2[m]=this.translate(deepKey,__spreadValues(__spreadValues({},options),{joinArrays:false,ns:namespaces}));if(copy2[m]===deepKey)copy2[m]=res[m];}}res=copy2;}}else if(handleAsObjectInI18nFormat&&isString(joinArrays)&&Array.isArray(res)){res=res.join(joinArrays);if(res)res=this.extendTranslation(res,keys,options,lastKey);}else{var usedDefault=false;var usedKey=false;var needsPluralHandling=options.count!==void 0&&!isString(options.count);var hasDefaultValue=Translator.hasDefaultValue(options);var defaultValueSuffix=needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,options):"";var defaultValueSuffixOrdinalFallback=options.ordinal&&needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,{ordinal:false}):"";var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&this.pluralResolver.shouldUseIntlApi();var defaultValue=needsZeroSuffixLookup&&options["defaultValue".concat(this.options.pluralSeparator,"zero")]||options["defaultValue".concat(defaultValueSuffix)]||options["defaultValue".concat(defaultValueSuffixOrdinalFallback)]||options.defaultValue;if(!this.isValidLookup(res)&&hasDefaultValue){usedDefault=true;res=defaultValue;}if(!this.isValidLookup(res)){usedKey=true;res=key;}var missingKeyNoValueFallbackToKey=options.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey;var resForMissing=missingKeyNoValueFallbackToKey&&usedKey?void 0:res;var updateMissing=hasDefaultValue&&defaultValue!==res&&this.options.updateMissing;if(usedKey||usedDefault||updateMissing){this.logger.log(updateMissing?"updateKey":"missingKey",lng,namespace,key,updateMissing?defaultValue:res);if(keySeparator){var fk=this.resolve(key,__spreadProps(__spreadValues({},options),{keySeparator:false}));if(fk&&fk.res)this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");}var lngs=[];var fallbackLngs=this.languageUtils.getFallbackCodes(this.options.fallbackLng,options.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fallbackLngs&&fallbackLngs[0]){for(var _i12=0;_i12<fallbackLngs.length;_i12++){lngs.push(fallbackLngs[_i12]);}}else if(this.options.saveMissingTo==="all"){lngs=this.languageUtils.toResolveHierarchy(options.lng||this.language);}else{lngs.push(options.lng||this.language);}var send=function send(l,k,specificDefaultValue){var defaultForMissing=hasDefaultValue&&specificDefaultValue!==res?specificDefaultValue:resForMissing;if(_this15.options.missingKeyHandler){_this15.options.missingKeyHandler(l,namespace,k,defaultForMissing,updateMissing,options);}else if(_this15.backendConnector&&_this15.backendConnector.saveMissing){_this15.backendConnector.saveMissing(l,namespace,k,defaultForMissing,updateMissing,options);}_this15.emit("missingKey",l,namespace,k,res);};if(this.options.saveMissing){if(this.options.saveMissingPlurals&&needsPluralHandling){lngs.forEach(function(language){var suffixes=_this15.pluralResolver.getSuffixes(language,options);if(needsZeroSuffixLookup&&options["defaultValue".concat(_this15.options.pluralSeparator,"zero")]&&suffixes.indexOf("".concat(_this15.options.pluralSeparator,"zero"))<0){suffixes.push("".concat(_this15.options.pluralSeparator,"zero"));}suffixes.forEach(function(suffix){send([language],key+suffix,options["defaultValue".concat(suffix)]||defaultValue);});});}else{send(lngs,key,defaultValue);}}}res=this.extendTranslation(res,keys,options,resolved,lastKey);if(usedKey&&res===key&&this.options.appendNamespaceToMissingKey)res="".concat(namespace,":").concat(key);if((usedKey||usedDefault)&&this.options.parseMissingKeyHandler){if(this.options.compatibilityAPI!=="v1"){res=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(namespace,":").concat(key):key,usedDefault?res:void 0);}else{res=this.options.parseMissingKeyHandler(res);}}}if(returnDetails){resolved.res=res;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return res;}},{key:"extendTranslation",value:function extendTranslation(res,key,options,resolved,lastKey){var _this=this;if(this.i18nFormat&&this.i18nFormat.parse){res=this.i18nFormat.parse(res,__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),options),options.lng||this.language||resolved.usedLng,resolved.usedNS,resolved.usedKey,{resolved:resolved});}else if(!options.skipInterpolation){if(options.interpolation)this.interpolator.init(__spreadValues(__spreadValues({},options),{interpolation:__spreadValues(__spreadValues({},this.options.interpolation),options.interpolation)}));var skipOnVariables=isString(res)&&(options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);var nestBef;if(skipOnVariables){var nb=res.match(this.interpolator.nestingRegexp);nestBef=nb&&nb.length;}var data=options.replace&&!isString(options.replace)?options.replace:options;if(this.options.interpolation.defaultVariables)data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);res=this.interpolator.interpolate(res,data,options.lng||this.language||resolved.usedLng,options);if(skipOnVariables){var na=res.match(this.interpolator.nestingRegexp);var nestAft=na&&na.length;if(nestBef<nestAft)options.nest=false;}if(!options.lng&&this.options.compatibilityAPI!=="v1"&&resolved&&resolved.res)options.lng=this.language||resolved.usedLng;if(options.nest!==false)res=this.interpolator.nest(res,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}if(lastKey&&lastKey[0]===args[0]&&!options.context){_this.logger.warn("It seems you are nesting recursively key: ".concat(args[0]," in key: ").concat(key[0]));return null;}return _this.translate.apply(_this,args.concat([key]));},options);if(options.interpolation)this.interpolator.reset();}var postProcess=options.postProcess||this.options.postProcess;var postProcessorNames=isString(postProcess)?[postProcess]:postProcess;if(res!==void 0&&res!==null&&postProcessorNames&&postProcessorNames.length&&options.applyPostProcessor!==false){res=postProcessor.handle(postProcessorNames,res,key,this.options&&this.options.postProcessPassResolved?__spreadValues({i18nResolved:__spreadProps(__spreadValues({},resolved),{usedParams:this.getUsedParamsDetails(options)})},options):options,this);}return res;}},{key:"resolve",value:function resolve(keys){var _this16=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var found;var usedKey;var exactUsedKey;var usedLng;var usedNS;if(isString(keys))keys=[keys];keys.forEach(function(k){if(_this16.isValidLookup(found))return;var extracted=_this16.extractFromKey(k,options);var key=extracted.key;usedKey=key;var namespaces=extracted.namespaces;if(_this16.options.fallbackNS)namespaces=namespaces.concat(_this16.options.fallbackNS);var needsPluralHandling=options.count!==void 0&&!isString(options.count);var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&_this16.pluralResolver.shouldUseIntlApi();var needsContextHandling=options.context!==void 0&&(isString(options.context)||typeof options.context==="number")&&options.context!=="";var codes=options.lngs?options.lngs:_this16.languageUtils.toResolveHierarchy(options.lng||_this16.language,options.fallbackLng);namespaces.forEach(function(ns){if(_this16.isValidLookup(found))return;usedNS=ns;if(!checkedLoadedFor["".concat(codes[0],"-").concat(ns)]&&_this16.utils&&_this16.utils.hasLoadedNamespace&&!_this16.utils.hasLoadedNamespace(usedNS)){checkedLoadedFor["".concat(codes[0],"-").concat(ns)]=true;_this16.logger.warn("key \"".concat(usedKey,"\" for languages \"").concat(codes.join(", "),"\" won't get resolved as namespace \"").concat(usedNS,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");}codes.forEach(function(code){if(_this16.isValidLookup(found))return;usedLng=code;var finalKeys=[key];if(_this16.i18nFormat&&_this16.i18nFormat.addLookupKeys){_this16.i18nFormat.addLookupKeys(finalKeys,key,code,ns,options);}else{var pluralSuffix;if(needsPluralHandling)pluralSuffix=_this16.pluralResolver.getSuffix(code,options.count,options);var zeroSuffix="".concat(_this16.options.pluralSeparator,"zero");var ordinalPrefix="".concat(_this16.options.pluralSeparator,"ordinal").concat(_this16.options.pluralSeparator);if(needsPluralHandling){finalKeys.push(key+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(key+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(key+zeroSuffix);}}if(needsContextHandling){var contextKey="".concat(key).concat(_this16.options.contextSeparator).concat(options.context);finalKeys.push(contextKey);if(needsPluralHandling){finalKeys.push(contextKey+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(contextKey+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(contextKey+zeroSuffix);}}}}var possibleKey;while(possibleKey=finalKeys.pop()){if(!_this16.isValidLookup(found)){exactUsedKey=possibleKey;found=_this16.getResource(code,ns,possibleKey,options);}}});});});return{res:found,usedKey:usedKey,exactUsedKey:exactUsedKey,usedLng:usedLng,usedNS:usedNS};}},{key:"isValidLookup",value:function isValidLookup(res){return res!==void 0&&!(!this.options.returnNull&&res===null)&&!(!this.options.returnEmptyString&&res==="");}},{key:"getResource",value:function getResource(code,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(this.i18nFormat&&this.i18nFormat.getResource)return this.i18nFormat.getResource(code,ns,key,options);return this.resourceStore.getResource(code,ns,key,options);}},{key:"getUsedParamsDetails",value:function getUsedParamsDetails(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var optionsKeys=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"];var useOptionsReplaceForData=options.replace&&!isString(options.replace);var data=useOptionsReplaceForData?options.replace:options;if(useOptionsReplaceForData&&typeof options.count!=="undefined"){data.count=options.count;}if(this.options.interpolation.defaultVariables){data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);}if(!useOptionsReplaceForData){data=__spreadValues({},data);var _iterator4=_createForOfIteratorHelper(optionsKeys),_step5;try{for(_iterator4.s();!(_step5=_iterator4.n()).done;){var key=_step5.value;delete data[key];}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}return data;}}],[{key:"hasDefaultValue",value:function hasDefaultValue(options){var prefix2="defaultValue";for(var option in options){if(Object.prototype.hasOwnProperty.call(options,option)&&prefix2===option.substring(0,prefix2.length)&&void 0!==options[option]){return true;}}return false;}}]);}(EventEmitter);var capitalize=function capitalize(string){return string.charAt(0).toUpperCase()+string.slice(1);};var LanguageUtil=/*#__PURE__*/function(){function LanguageUtil(options){_classCallCheck2(this,LanguageUtil);this.options=options;this.supportedLngs=this.options.supportedLngs||false;this.logger=baseLogger.create("languageUtils");}return _createClass2(LanguageUtil,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return null;var p=code.split("-");if(p.length===2)return null;p.pop();if(p[p.length-1].toLowerCase()==="x")return null;return this.formatLanguageCode(p.join("-"));}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return code;var p=code.split("-");return this.formatLanguageCode(p[0]);}},{key:"formatLanguageCode",value:function formatLanguageCode(code){if(isString(code)&&code.indexOf("-")>-1){if(typeof Intl!=="undefined"&&typeof Intl.getCanonicalLocales!=="undefined"){try{var formattedCode=Intl.getCanonicalLocales(code)[0];if(formattedCode&&this.options.lowerCaseLng){formattedCode=formattedCode.toLowerCase();}if(formattedCode)return formattedCode;}catch(e){}}var specialCases=["hans","hant","latn","cyrl","cans","mong","arab"];var p=code.split("-");if(this.options.lowerCaseLng){p=p.map(function(part){return part.toLowerCase();});}else if(p.length===2){p[0]=p[0].toLowerCase();p[1]=p[1].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());}else if(p.length===3){p[0]=p[0].toLowerCase();if(p[1].length===2)p[1]=p[1].toUpperCase();if(p[0]!=="sgn"&&p[2].length===2)p[2]=p[2].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());if(specialCases.indexOf(p[2].toLowerCase())>-1)p[2]=capitalize(p[2].toLowerCase());}return p.join("-");}return this.options.cleanCode||this.options.lowerCaseLng?code.toLowerCase():code;}},{key:"isSupportedCode",value:function isSupportedCode(code){if(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs){code=this.getLanguagePartFromCode(code);}return!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(code)>-1;}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(codes){var _this17=this;if(!codes)return null;var found;codes.forEach(function(code){if(found)return;var cleanedLng=_this17.formatLanguageCode(code);if(!_this17.options.supportedLngs||_this17.isSupportedCode(cleanedLng))found=cleanedLng;});if(!found&&this.options.supportedLngs){codes.forEach(function(code){if(found)return;var lngOnly=_this17.getLanguagePartFromCode(code);if(_this17.isSupportedCode(lngOnly))return found=lngOnly;found=_this17.options.supportedLngs.find(function(supportedLng){if(supportedLng===lngOnly)return supportedLng;if(supportedLng.indexOf("-")<0&&lngOnly.indexOf("-")<0)return;if(supportedLng.indexOf("-")>0&&lngOnly.indexOf("-")<0&&supportedLng.substring(0,supportedLng.indexOf("-"))===lngOnly)return supportedLng;if(supportedLng.indexOf(lngOnly)===0&&lngOnly.length>1)return supportedLng;});});}if(!found)found=this.getFallbackCodes(this.options.fallbackLng)[0];return found;}},{key:"getFallbackCodes",value:function getFallbackCodes(fallbacks,code){if(!fallbacks)return[];if(typeof fallbacks==="function")fallbacks=fallbacks(code);if(isString(fallbacks))fallbacks=[fallbacks];if(Array.isArray(fallbacks))return fallbacks;if(!code)return fallbacks.default||[];var found=fallbacks[code];if(!found)found=fallbacks[this.getScriptPartFromCode(code)];if(!found)found=fallbacks[this.formatLanguageCode(code)];if(!found)found=fallbacks[this.getLanguagePartFromCode(code)];if(!found)found=fallbacks.default;return found||[];}},{key:"toResolveHierarchy",value:function toResolveHierarchy(code,fallbackCode){var _this18=this;var fallbackCodes=this.getFallbackCodes(fallbackCode||this.options.fallbackLng||[],code);var codes=[];var addCode=function addCode(c){if(!c)return;if(_this18.isSupportedCode(c)){codes.push(c);}else{_this18.logger.warn("rejecting language code not found in supportedLngs: ".concat(c));}};if(isString(code)&&(code.indexOf("-")>-1||code.indexOf("_")>-1)){if(this.options.load!=="languageOnly")addCode(this.formatLanguageCode(code));if(this.options.load!=="languageOnly"&&this.options.load!=="currentOnly")addCode(this.getScriptPartFromCode(code));if(this.options.load!=="currentOnly")addCode(this.getLanguagePartFromCode(code));}else if(isString(code)){addCode(this.formatLanguageCode(code));}fallbackCodes.forEach(function(fc){if(codes.indexOf(fc)<0)addCode(_this18.formatLanguageCode(fc));});return codes;}}]);}();var sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}];var _rulesPluralsTypes={1:function _(n){return Number(n>1);},2:function _(n){return Number(n!=1);},3:function _(n){return 0;},4:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},5:function _(n){return Number(n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5);},6:function _(n){return Number(n==1?0:n>=2&&n<=4?1:2);},7:function _(n){return Number(n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},8:function _(n){return Number(n==1?0:n==2?1:n!=8&&n!=11?2:3);},9:function _(n){return Number(n>=2);},10:function _(n){return Number(n==1?0:n==2?1:n<7?2:n<11?3:4);},11:function _(n){return Number(n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3);},12:function _(n){return Number(n%10!=1||n%100==11);},13:function _(n){return Number(n!==0);},14:function _(n){return Number(n==1?0:n==2?1:n==3?2:3);},15:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2);},16:function _(n){return Number(n%10==1&&n%100!=11?0:n!==0?1:2);},17:function _(n){return Number(n==1||n%10==1&&n%100!=11?0:1);},18:function _(n){return Number(n==0?0:n==1?1:2);},19:function _(n){return Number(n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3);},20:function _(n){return Number(n==1?0:n==0||n%100>0&&n%100<20?1:2);},21:function _(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0);},22:function _(n){return Number(n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3);}};var nonIntlVersions=["v1","v2","v3"];var intlVersions=["v4"];var suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};var createRules=function createRules(){var rules={};sets.forEach(function(set){set.lngs.forEach(function(l){rules[l]={numbers:set.nr,plurals:_rulesPluralsTypes[set.fc]};});});return rules;};var PluralResolver=/*#__PURE__*/function(){function PluralResolver(languageUtils){_classCallCheck2(this,PluralResolver);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=languageUtils;this.options=options;this.logger=baseLogger.create("pluralResolver");if((!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl==="undefined"||!Intl.PluralRules)){this.options.compatibilityJSON="v3";this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.");}this.rules=createRules();this.pluralRulesCache={};}return _createClass2(PluralResolver,[{key:"addRule",value:function addRule(lng,obj){this.rules[lng]=obj;}},{key:"clearCache",value:function clearCache(){this.pluralRulesCache={};}},{key:"getRule",value:function getRule(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){var cleanedCode=getCleanedCode(code==="dev"?"en":code);var type=options.ordinal?"ordinal":"cardinal";var cacheKey=JSON.stringify({cleanedCode:cleanedCode,type:type});if(cacheKey in this.pluralRulesCache){return this.pluralRulesCache[cacheKey];}var rule;try{rule=new Intl.PluralRules(cleanedCode,{type:type});}catch(err){if(!code.match(/-|_/))return;var lngPart=this.languageUtils.getLanguagePartFromCode(code);rule=this.getRule(lngPart,options);}this.pluralRulesCache[cacheKey]=rule;return rule;}return this.rules[code]||this.rules[this.languageUtils.getLanguagePartFromCode(code)];}},{key:"needsPlural",value:function needsPlural(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(this.shouldUseIntlApi()){return rule&&rule.resolvedOptions().pluralCategories.length>1;}return rule&&rule.numbers.length>1;}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(code,key){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(code,options).map(function(suffix){return"".concat(key).concat(suffix);});}},{key:"getSuffixes",value:function getSuffixes(code){var _this19=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(!rule){return[];}if(this.shouldUseIntlApi()){return rule.resolvedOptions().pluralCategories.sort(function(pluralCategory1,pluralCategory2){return suffixesOrder[pluralCategory1]-suffixesOrder[pluralCategory2];}).map(function(pluralCategory){return"".concat(_this19.options.prepend).concat(options.ordinal?"ordinal".concat(_this19.options.prepend):"").concat(pluralCategory);});}return rule.numbers.map(function(number){return _this19.getSuffix(code,number,options);});}},{key:"getSuffix",value:function getSuffix(code,count2){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var rule=this.getRule(code,options);if(rule){if(this.shouldUseIntlApi()){return"".concat(this.options.prepend).concat(options.ordinal?"ordinal".concat(this.options.prepend):"").concat(rule.select(count2));}return this.getSuffixRetroCompatible(rule,count2);}this.logger.warn("no plural rule found for: ".concat(code));return"";}},{key:"getSuffixRetroCompatible",value:function getSuffixRetroCompatible(rule,count2){var _this20=this;var idx=rule.noAbs?rule.plurals(count2):rule.plurals(Math.abs(count2));var suffix=rule.numbers[idx];if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){if(suffix===2){suffix="plural";}else if(suffix===1){suffix="";}}var returnSuffix=function returnSuffix(){return _this20.options.prepend&&suffix.toString()?_this20.options.prepend+suffix.toString():suffix.toString();};if(this.options.compatibilityJSON==="v1"){if(suffix===1)return"";if(typeof suffix==="number")return"_plural_".concat(suffix.toString());return returnSuffix();}else if(this.options.compatibilityJSON==="v2"){return returnSuffix();}else if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){return returnSuffix();}return this.options.prepend&&idx.toString()?this.options.prepend+idx.toString():idx.toString();}},{key:"shouldUseIntlApi",value:function shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON);}}]);}();var deepFindWithDefaults=function deepFindWithDefaults(data,defaultData,key){var keySeparator=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".";var ignoreJSONStructure=arguments.length>4&&arguments[4]!==void 0?arguments[4]:true;var path=getPathWithDefaults(data,defaultData,key);if(!path&&ignoreJSONStructure&&isString(key)){path=deepFind(data,key,keySeparator);if(path===void 0)path=deepFind(defaultData,key,keySeparator);}return path;};var regexSafe=function regexSafe(val){return val.replace(/\$/g,"$$$$");};var Interpolator=/*#__PURE__*/function(){function Interpolator(){_classCallCheck2(this,Interpolator);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator");this.options=options;this.format=options.interpolation&&options.interpolation.format||function(value){return value;};this.init(options);}return _createClass2(Interpolator,[{key:"init",value:function init(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!options.interpolation)options.interpolation={escapeValue:true};var _options$interpolatio=options.interpolation,escape$1=_options$interpolatio.escape,escapeValue=_options$interpolatio.escapeValue,useRawValueToEscape=_options$interpolatio.useRawValueToEscape,prefix2=_options$interpolatio.prefix,prefixEscaped=_options$interpolatio.prefixEscaped,suffix=_options$interpolatio.suffix,suffixEscaped=_options$interpolatio.suffixEscaped,formatSeparator=_options$interpolatio.formatSeparator,unescapeSuffix=_options$interpolatio.unescapeSuffix,unescapePrefix=_options$interpolatio.unescapePrefix,nestingPrefix=_options$interpolatio.nestingPrefix,nestingPrefixEscaped=_options$interpolatio.nestingPrefixEscaped,nestingSuffix=_options$interpolatio.nestingSuffix,nestingSuffixEscaped=_options$interpolatio.nestingSuffixEscaped,nestingOptionsSeparator=_options$interpolatio.nestingOptionsSeparator,maxReplaces=_options$interpolatio.maxReplaces,alwaysFormat=_options$interpolatio.alwaysFormat;this.escape=escape$1!==void 0?escape$1:escape;this.escapeValue=escapeValue!==void 0?escapeValue:true;this.useRawValueToEscape=useRawValueToEscape!==void 0?useRawValueToEscape:false;this.prefix=prefix2?regexEscape(prefix2):prefixEscaped||"{{";this.suffix=suffix?regexEscape(suffix):suffixEscaped||"}}";this.formatSeparator=formatSeparator||",";this.unescapePrefix=unescapeSuffix?"":unescapePrefix||"-";this.unescapeSuffix=this.unescapePrefix?"":unescapeSuffix||"";this.nestingPrefix=nestingPrefix?regexEscape(nestingPrefix):nestingPrefixEscaped||regexEscape("$t(");this.nestingSuffix=nestingSuffix?regexEscape(nestingSuffix):nestingSuffixEscaped||regexEscape(")");this.nestingOptionsSeparator=nestingOptionsSeparator||",";this.maxReplaces=maxReplaces||1e3;this.alwaysFormat=alwaysFormat!==void 0?alwaysFormat:false;this.resetRegExp();}},{key:"reset",value:function reset(){if(this.options)this.init(this.options);}},{key:"resetRegExp",value:function resetRegExp(){var getOrResetRegExp=function getOrResetRegExp(existingRegExp,pattern){if(existingRegExp&&existingRegExp.source===pattern){existingRegExp.lastIndex=0;return existingRegExp;}return new RegExp(pattern,"g");};this.regexp=getOrResetRegExp(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix));this.regexpUnescape=getOrResetRegExp(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix));this.nestingRegexp=getOrResetRegExp(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix));}},{key:"interpolate",value:function interpolate(str,data,lng,options){var _this21=this;var match2;var value;var replaces;var defaultData=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};var handleFormat=function handleFormat(key){if(key.indexOf(_this21.formatSeparator)<0){var path=deepFindWithDefaults(data,defaultData,key,_this21.options.keySeparator,_this21.options.ignoreJSONStructure);return _this21.alwaysFormat?_this21.format(path,void 0,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:key})):path;}var p=key.split(_this21.formatSeparator);var k=p.shift().trim();var f=p.join(_this21.formatSeparator).trim();return _this21.format(deepFindWithDefaults(data,defaultData,k,_this21.options.keySeparator,_this21.options.ignoreJSONStructure),f,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:k}));};this.resetRegExp();var missingInterpolationHandler=options&&options.missingInterpolationHandler||this.options.missingInterpolationHandler;var skipOnVariables=options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;var todos=[{regex:this.regexpUnescape,safeValue:function safeValue(val){return regexSafe(val);}},{regex:this.regexp,safeValue:function safeValue(val){return _this21.escapeValue?regexSafe(_this21.escape(val)):regexSafe(val);}}];todos.forEach(function(todo){replaces=0;while(match2=todo.regex.exec(str)){var matchedVar=match2[1].trim();value=handleFormat(matchedVar);if(value===void 0){if(typeof missingInterpolationHandler==="function"){var temp=missingInterpolationHandler(str,match2,options);value=isString(temp)?temp:"";}else if(options&&Object.prototype.hasOwnProperty.call(options,matchedVar)){value="";}else if(skipOnVariables){value=match2[0];continue;}else{_this21.logger.warn("missed to pass in variable ".concat(matchedVar," for interpolating ").concat(str));value="";}}else if(!isString(value)&&!_this21.useRawValueToEscape){value=makeString(value);}var safeValue=todo.safeValue(value);str=str.replace(match2[0],safeValue);if(skipOnVariables){todo.regex.lastIndex+=value.length;todo.regex.lastIndex-=match2[0].length;}else{todo.regex.lastIndex=0;}replaces++;if(replaces>=_this21.maxReplaces){break;}}});return str;}},{key:"nest",value:function nest(str,fc){var _this22=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var match2;var value;var clonedOptions;var handleHasOptions=function handleHasOptions(key,inheritedOptions){var sep=_this22.nestingOptionsSeparator;if(key.indexOf(sep)<0)return key;var c=key.split(new RegExp("".concat(sep,"[ ]*{")));var optionsString="{".concat(c[1]);key=c[0];optionsString=_this22.interpolate(optionsString,clonedOptions);var matchedSingleQuotes=optionsString.match(/'/g);var matchedDoubleQuotes=optionsString.match(/"/g);if(matchedSingleQuotes&&matchedSingleQuotes.length%2===0&&!matchedDoubleQuotes||matchedDoubleQuotes.length%2!==0){optionsString=optionsString.replace(/'/g,'"');}try{clonedOptions=JSON.parse(optionsString);if(inheritedOptions)clonedOptions=__spreadValues(__spreadValues({},inheritedOptions),clonedOptions);}catch(e){_this22.logger.warn("failed parsing options string in nesting for key ".concat(key),e);return"".concat(key).concat(sep).concat(optionsString);}if(clonedOptions.defaultValue&&clonedOptions.defaultValue.indexOf(_this22.prefix)>-1)delete clonedOptions.defaultValue;return key;};while(match2=this.nestingRegexp.exec(str)){var formatters2=[];clonedOptions=__spreadValues({},options);clonedOptions=clonedOptions.replace&&!isString(clonedOptions.replace)?clonedOptions.replace:clonedOptions;clonedOptions.applyPostProcessor=false;delete clonedOptions.defaultValue;var doReduce=false;if(match2[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(match2[1])){var r2=match2[1].split(this.formatSeparator).map(function(elem){return elem.trim();});match2[1]=r2.shift();formatters2=r2;doReduce=true;}value=fc(handleHasOptions.call(this,match2[1].trim(),clonedOptions),clonedOptions);if(value&&match2[0]===str&&!isString(value))return value;if(!isString(value))value=makeString(value);if(!value){this.logger.warn("missed to resolve ".concat(match2[1]," for nesting ").concat(str));value="";}if(doReduce){value=formatters2.reduce(function(v,f){return _this22.format(v,f,options.lng,__spreadProps(__spreadValues({},options),{interpolationkey:match2[1].trim()}));},value.trim());}str=str.replace(match2[0],value);this.regexp.lastIndex=0;}return str;}}]);}();var parseFormatStr=function parseFormatStr(formatStr){var formatName=formatStr.toLowerCase().trim();var formatOptions={};if(formatStr.indexOf("(")>-1){var p=formatStr.split("(");formatName=p[0].toLowerCase().trim();var optStr=p[1].substring(0,p[1].length-1);if(formatName==="currency"&&optStr.indexOf(":")<0){if(!formatOptions.currency)formatOptions.currency=optStr.trim();}else if(formatName==="relativetime"&&optStr.indexOf(":")<0){if(!formatOptions.range)formatOptions.range=optStr.trim();}else{var opts=optStr.split(";");opts.forEach(function(opt){if(opt){var _opt$split=opt.split(":"),_opt$split2=_toArray(_opt$split),key=_opt$split2[0],rest=_opt$split2.slice(1);var val=rest.join(":").trim().replace(/^'+|'+$/g,"");var trimmedKey=key.trim();if(!formatOptions[trimmedKey])formatOptions[trimmedKey]=val;if(val==="false")formatOptions[trimmedKey]=false;if(val==="true")formatOptions[trimmedKey]=true;if(!isNaN(val))formatOptions[trimmedKey]=parseInt(val,10);}});}}return{formatName:formatName,formatOptions:formatOptions};};var createCachedFormatter=function createCachedFormatter(fn3){var cache={};return function(val,lng,options){var optForCache=options;if(options&&options.interpolationkey&&options.formatParams&&options.formatParams[options.interpolationkey]&&options[options.interpolationkey]){optForCache=__spreadProps(__spreadValues({},optForCache),_defineProperty2({},options.interpolationkey,void 0));}var key=lng+JSON.stringify(optForCache);var formatter=cache[key];if(!formatter){formatter=fn3(getCleanedCode(lng),options);cache[key]=formatter;}return formatter(val);};};var Formatter=/*#__PURE__*/function(){function Formatter(){_classCallCheck2(this,Formatter);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter");this.options=options;this.formats={number:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),currency:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadProps(__spreadValues({},opt),{style:"currency"}));return function(val){return formatter.format(val);};}),datetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.DateTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),relativetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.RelativeTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val,opt.range||"day");};}),list:createCachedFormatter(function(lng,opt){var formatter=new Intl.ListFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};})};this.init(options);}return _createClass2(Formatter,[{key:"init",value:function init(services){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=options.interpolation.formatSeparator||",";}},{key:"add",value:function add(name,fc){this.formats[name.toLowerCase().trim()]=fc;}},{key:"addCached",value:function addCached(name,fc){this.formats[name.toLowerCase().trim()]=createCachedFormatter(fc);}},{key:"format",value:function format(value,format2,lng){var _this23=this;var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var formats=format2.split(this.formatSeparator);if(formats.length>1&&formats[0].indexOf("(")>1&&formats[0].indexOf(")")<0&&formats.find(function(f){return f.indexOf(")")>-1;})){var lastIndex=formats.findIndex(function(f){return f.indexOf(")")>-1;});formats[0]=[formats[0]].concat(_toConsumableArray2(formats.splice(1,lastIndex))).join(this.formatSeparator);}var result=formats.reduce(function(mem,f){var _parseFormatStr=parseFormatStr(f),formatName=_parseFormatStr.formatName,formatOptions=_parseFormatStr.formatOptions;if(_this23.formats[formatName]){var formatted=mem;try{var valOptions=options&&options.formatParams&&options.formatParams[options.interpolationkey]||{};var l=valOptions.locale||valOptions.lng||options.locale||options.lng||lng;formatted=_this23.formats[formatName](mem,l,__spreadValues(__spreadValues(__spreadValues({},formatOptions),options),valOptions));}catch(error2){_this23.logger.warn(error2);}return formatted;}else{_this23.logger.warn("there was no format function for ".concat(formatName));}return mem;},value);return result;}}]);}();var removePending=function removePending(q,name){if(q.pending[name]!==void 0){delete q.pending[name];q.pendingCount--;}};var Connector=/*#__PURE__*/function(_EventEmitter3){function Connector(backend,store,services){var _this24;_classCallCheck2(this,Connector);var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_this24=_callSuper(this,Connector);_this24.backend=backend;_this24.store=store;_this24.services=services;_this24.languageUtils=services.languageUtils;_this24.options=options;_this24.logger=baseLogger.create("backendConnector");_this24.waitingReads=[];_this24.maxParallelReads=options.maxParallelReads||10;_this24.readingCalls=0;_this24.maxRetries=options.maxRetries>=0?options.maxRetries:5;_this24.retryTimeout=options.retryTimeout>=1?options.retryTimeout:350;_this24.state={};_this24.queue=[];if(_this24.backend&&_this24.backend.init){_this24.backend.init(services,options.backend,options);}return _this24;}_inherits2(Connector,_EventEmitter3);return _createClass2(Connector,[{key:"queueLoad",value:function queueLoad(languages,namespaces,options,callback){var _this25=this;var toLoad={};var pending={};var toLoadLanguages={};var toLoadNamespaces={};languages.forEach(function(lng){var hasAllNamespaces=true;namespaces.forEach(function(ns){var name="".concat(lng,"|").concat(ns);if(!options.reload&&_this25.store.hasResourceBundle(lng,ns)){_this25.state[name]=2;}else if(_this25.state[name]<0);else if(_this25.state[name]===1){if(pending[name]===void 0)pending[name]=true;}else{_this25.state[name]=1;hasAllNamespaces=false;if(pending[name]===void 0)pending[name]=true;if(toLoad[name]===void 0)toLoad[name]=true;if(toLoadNamespaces[ns]===void 0)toLoadNamespaces[ns]=true;}});if(!hasAllNamespaces)toLoadLanguages[lng]=true;});if(Object.keys(toLoad).length||Object.keys(pending).length){this.queue.push({pending:pending,pendingCount:Object.keys(pending).length,loaded:{},errors:[],callback:callback});}return{toLoad:Object.keys(toLoad),pending:Object.keys(pending),toLoadLanguages:Object.keys(toLoadLanguages),toLoadNamespaces:Object.keys(toLoadNamespaces)};}},{key:"loaded",value:function loaded(name,err,data){var s=name.split("|");var lng=s[0];var ns=s[1];if(err)this.emit("failedLoading",lng,ns,err);if(!err&&data){this.store.addResourceBundle(lng,ns,data,void 0,void 0,{skipCopy:true});}this.state[name]=err?-1:2;if(err&&data)this.state[name]=0;var loaded={};this.queue.forEach(function(q){pushPath(q.loaded,[lng],ns);removePending(q,name);if(err)q.errors.push(err);if(q.pendingCount===0&&!q.done){Object.keys(q.loaded).forEach(function(l){if(!loaded[l])loaded[l]={};var loadedKeys=q.loaded[l];if(loadedKeys.length){loadedKeys.forEach(function(n){if(loaded[l][n]===void 0)loaded[l][n]=true;});}});q.done=true;if(q.errors.length){q.callback(q.errors);}else{q.callback();}}});this.emit("loaded",loaded);this.queue=this.queue.filter(function(q){return!q.done;});}},{key:"read",value:function read(lng,ns,fcName){var _this26=this;var tried=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;var wait=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout;var callback=arguments.length>5?arguments[5]:void 0;if(!lng.length)return callback(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:lng,ns:ns,fcName:fcName,tried:tried,wait:wait,callback:callback});return;}this.readingCalls++;var resolver=function resolver(err,data){_this26.readingCalls--;if(_this26.waitingReads.length>0){var next2=_this26.waitingReads.shift();_this26.read(next2.lng,next2.ns,next2.fcName,next2.tried,next2.wait,next2.callback);}if(err&&data&&tried<_this26.maxRetries){setTimeout(function(){_this26.read.call(_this26,lng,ns,fcName,tried+1,wait*2,callback);},wait);return;}callback(err,data);};var fc=this.backend[fcName].bind(this.backend);if(fc.length===2){try{var r2=fc(lng,ns);if(r2&&typeof r2.then==="function"){r2.then(function(data){return resolver(null,data);}).catch(resolver);}else{resolver(null,r2);}}catch(err){resolver(err);}return;}return fc(lng,ns,resolver);}},{key:"prepareLoading",value:function prepareLoading(languages,namespaces){var _this27=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var callback=arguments.length>3?arguments[3]:void 0;if(!this.backend){this.logger.warn("No backend was added via i18next.use. Will not load resources.");return callback&&callback();}if(isString(languages))languages=this.languageUtils.toResolveHierarchy(languages);if(isString(namespaces))namespaces=[namespaces];var toLoad=this.queueLoad(languages,namespaces,options,callback);if(!toLoad.toLoad.length){if(!toLoad.pending.length)callback();return null;}toLoad.toLoad.forEach(function(name){_this27.loadOne(name);});}},{key:"load",value:function load(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{},callback);}},{key:"reload",value:function reload(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{reload:true},callback);}},{key:"loadOne",value:function loadOne(name){var _this28=this;var prefix2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";var s=name.split("|");var lng=s[0];var ns=s[1];this.read(lng,ns,"read",void 0,void 0,function(err,data){if(err)_this28.logger.warn("".concat(prefix2,"loading namespace ").concat(ns," for language ").concat(lng," failed"),err);if(!err&&data)_this28.logger.log("".concat(prefix2,"loaded namespace ").concat(ns," for language ").concat(lng),data);_this28.loaded(name,err,data);});}},{key:"saveMissing",value:function saveMissing(languages,namespace,key,fallbackValue,isUpdate){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};var clb=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(namespace)){this.logger.warn("did not save key \"".concat(key,"\" as the namespace \"").concat(namespace,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return;}if(key===void 0||key===null||key==="")return;if(this.backend&&this.backend.create){var opts=__spreadProps(__spreadValues({},options),{isUpdate:isUpdate});var fc=this.backend.create.bind(this.backend);if(fc.length<6){try{var r2;if(fc.length===5){r2=fc(languages,namespace,key,fallbackValue,opts);}else{r2=fc(languages,namespace,key,fallbackValue);}if(r2&&typeof r2.then==="function"){r2.then(function(data){return clb(null,data);}).catch(clb);}else{clb(null,r2);}}catch(err){clb(err);}}else{fc(languages,namespace,key,fallbackValue,clb,opts);}}if(!languages||!languages[0])return;this.store.addResource(languages[0],namespace,key,fallbackValue);}}]);}(EventEmitter);var get=function get(){return{debug:false,initImmediate:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:false,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:function overloadTranslationOptionHandler(args){var ret={};if(_typeof2(args[1])==="object")ret=args[1];if(isString(args[1]))ret.defaultValue=args[1];if(isString(args[2]))ret.tDescription=args[2];if(_typeof2(args[2])==="object"||_typeof2(args[3])==="object"){var _options3=args[3]||args[2];Object.keys(_options3).forEach(function(key){ret[key]=_options3[key];});}return ret;},interpolation:{escapeValue:true,format:function format(value){return value;},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true}};};var transformOptions=function transformOptions(options){if(isString(options.ns))options.ns=[options.ns];if(isString(options.fallbackLng))options.fallbackLng=[options.fallbackLng];if(isString(options.fallbackNS))options.fallbackNS=[options.fallbackNS];if(options.supportedLngs&&options.supportedLngs.indexOf("cimode")<0){options.supportedLngs=options.supportedLngs.concat(["cimode"]);}return options;};var noop$2=function noop$2(){};var bindMemberFunctions=function bindMemberFunctions(inst){var mems=Object.getOwnPropertyNames(Object.getPrototypeOf(inst));mems.forEach(function(mem){if(typeof inst[mem]==="function"){inst[mem]=inst[mem].bind(inst);}});};var I18n=/*#__PURE__*/function(_EventEmitter4){function I18n(){var _this29;_classCallCheck2(this,I18n);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;_this29=_callSuper(this,I18n);_this29.options=transformOptions(options);_this29.services={};_this29.logger=baseLogger;_this29.modules={external:[]};bindMemberFunctions(_this29);if(callback&&!_this29.isInitialized&&!options.isClone){if(!_this29.options.initImmediate){_this29.init(options,callback);return _possibleConstructorReturn2(_this29,_this29);}setTimeout(function(){_this29.init(options,callback);},0);}return _this29;}_inherits2(I18n,_EventEmitter4);return _createClass2(I18n,[{key:"init",value:function init(){var _this30=this;var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;this.isInitializing=true;if(typeof options==="function"){callback=options;options={};}if(!options.defaultNS&&options.defaultNS!==false&&options.ns){if(isString(options.ns)){options.defaultNS=options.ns;}else if(options.ns.indexOf("translation")<0){options.defaultNS=options.ns[0];}}var defOpts=get();this.options=__spreadValues(__spreadValues(__spreadValues({},defOpts),this.options),transformOptions(options));if(this.options.compatibilityAPI!=="v1"){this.options.interpolation=__spreadValues(__spreadValues({},defOpts.interpolation),this.options.interpolation);}if(options.keySeparator!==void 0){this.options.userDefinedKeySeparator=options.keySeparator;}if(options.nsSeparator!==void 0){this.options.userDefinedNsSeparator=options.nsSeparator;}var createClassOnDemand=function createClassOnDemand(ClassOrObject){if(!ClassOrObject)return null;if(typeof ClassOrObject==="function")return new ClassOrObject();return ClassOrObject;};if(!this.options.isClone){if(this.modules.logger){baseLogger.init(createClassOnDemand(this.modules.logger),this.options);}else{baseLogger.init(null,this.options);}var formatter;if(this.modules.formatter){formatter=this.modules.formatter;}else if(typeof Intl!=="undefined"){formatter=Formatter;}var lu=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);var s=this.services;s.logger=baseLogger;s.resourceStore=this.store;s.languageUtils=lu;s.pluralResolver=new PluralResolver(lu,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix});if(formatter&&(!this.options.interpolation.format||this.options.interpolation.format===defOpts.interpolation.format)){s.formatter=createClassOnDemand(formatter);s.formatter.init(s,this.options);this.options.interpolation.format=s.formatter.format.bind(s.formatter);}s.interpolator=new Interpolator(this.options);s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)};s.backendConnector=new Connector(createClassOnDemand(this.modules.backend),s.resourceStore,s,this.options);s.backendConnector.on("*",function(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}_this.emit.apply(_this,[event].concat(args));});if(this.modules.languageDetector){s.languageDetector=createClassOnDemand(this.modules.languageDetector);if(s.languageDetector.init)s.languageDetector.init(s,this.options.detection,this.options);}if(this.modules.i18nFormat){s.i18nFormat=createClassOnDemand(this.modules.i18nFormat);if(s.i18nFormat.init)s.i18nFormat.init(this);}this.translator=new Translator(this.services,this.options);this.translator.on("*",function(event){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}_this.emit.apply(_this,[event].concat(args));});this.modules.external.forEach(function(m){if(m.init)m.init(_this30);});}this.format=this.options.interpolation.format;if(!callback)callback=noop$2;if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var codes=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);if(codes.length>0&&codes[0]!=="dev")this.options.lng=codes[0];}if(!this.services.languageDetector&&!this.options.lng){this.logger.warn("init: no languageDetector is used and no lng is defined");}var storeApi=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];storeApi.forEach(function(fcName){_this30[fcName]=function(){var _this$store;return(_this$store=_this.store)[fcName].apply(_this$store,arguments);};});var storeApiChained=["addResource","addResources","addResourceBundle","removeResourceBundle"];storeApiChained.forEach(function(fcName){_this30[fcName]=function(){var _this$store2;(_this$store2=_this.store)[fcName].apply(_this$store2,arguments);return _this;};});var deferred=defer();var load=function load(){var finish=function finish(err,t){_this30.isInitializing=false;if(_this30.isInitialized&&!_this30.initializedStoreOnce)_this30.logger.warn("init: i18next is already initialized. You should call init just once!");_this30.isInitialized=true;if(!_this30.options.isClone)_this30.logger.log("initialized",_this30.options);_this30.emit("initialized",_this30.options);deferred.resolve(t);callback(err,t);};if(_this30.languages&&_this30.options.compatibilityAPI!=="v1"&&!_this30.isInitialized)return finish(null,_this30.t.bind(_this30));_this30.changeLanguage(_this30.options.lng,finish);};if(this.options.resources||!this.options.initImmediate){load();}else{setTimeout(load,0);}return deferred;}},{key:"loadResources",value:function loadResources(language){var _this31=this;var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var usedCallback=callback;var usedLng=isString(language)?language:this.language;if(typeof language==="function")usedCallback=language;if(!this.options.resources||this.options.partialBundledLanguages){if(usedLng&&usedLng.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return usedCallback();var toLoad=[];var append2=function append2(lng){if(!lng)return;if(lng==="cimode")return;var lngs=_this31.services.languageUtils.toResolveHierarchy(lng);lngs.forEach(function(l){if(l==="cimode")return;if(toLoad.indexOf(l)<0)toLoad.push(l);});};if(!usedLng){var fallbacks=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);fallbacks.forEach(function(l){return append2(l);});}else{append2(usedLng);}if(this.options.preload){this.options.preload.forEach(function(l){return append2(l);});}this.services.backendConnector.load(toLoad,this.options.ns,function(e){if(!e&&!_this31.resolvedLanguage&&_this31.language)_this31.setResolvedLanguage(_this31.language);usedCallback(e);});}else{usedCallback(null);}}},{key:"reloadResources",value:function reloadResources(lngs,ns,callback){var deferred=defer();if(typeof lngs==="function"){callback=lngs;lngs=void 0;}if(typeof ns==="function"){callback=ns;ns=void 0;}if(!lngs)lngs=this.languages;if(!ns)ns=this.options.ns;if(!callback)callback=noop$2;this.services.backendConnector.reload(lngs,ns,function(err){deferred.resolve();callback(err);});return deferred;}},{key:"use",value:function use(module){if(!module)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!module.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");if(module.type==="backend"){this.modules.backend=module;}if(module.type==="logger"||module.log&&module.warn&&module.error){this.modules.logger=module;}if(module.type==="languageDetector"){this.modules.languageDetector=module;}if(module.type==="i18nFormat"){this.modules.i18nFormat=module;}if(module.type==="postProcessor"){postProcessor.addPostProcessor(module);}if(module.type==="formatter"){this.modules.formatter=module;}if(module.type==="3rdParty"){this.modules.external.push(module);}return this;}},{key:"setResolvedLanguage",value:function setResolvedLanguage(l){if(!l||!this.languages)return;if(["cimode","dev"].indexOf(l)>-1)return;for(var li=0;li<this.languages.length;li++){var lngInLngs=this.languages[li];if(["cimode","dev"].indexOf(lngInLngs)>-1)continue;if(this.store.hasLanguageSomeTranslations(lngInLngs)){this.resolvedLanguage=lngInLngs;break;}}}},{key:"changeLanguage",value:function changeLanguage(lng,callback){var _this32=this;var _this2=this;this.isLanguageChangingTo=lng;var deferred=defer();this.emit("languageChanging",lng);var setLngProps=function setLngProps(l){_this32.language=l;_this32.languages=_this32.services.languageUtils.toResolveHierarchy(l);_this32.resolvedLanguage=void 0;_this32.setResolvedLanguage(l);};var done=function done(err,l){if(l){setLngProps(l);_this32.translator.changeLanguage(l);_this32.isLanguageChangingTo=void 0;_this32.emit("languageChanged",l);_this32.logger.log("languageChanged",l);}else{_this32.isLanguageChangingTo=void 0;}deferred.resolve(function(){return _this2.t.apply(_this2,arguments);});if(callback)callback(err,function(){return _this2.t.apply(_this2,arguments);});};var setLng=function setLng(lngs){if(!lng&&!lngs&&_this32.services.languageDetector)lngs=[];var l=isString(lngs)?lngs:_this32.services.languageUtils.getBestMatchFromCodes(lngs);if(l){if(!_this32.language){setLngProps(l);}if(!_this32.translator.language)_this32.translator.changeLanguage(l);if(_this32.services.languageDetector&&_this32.services.languageDetector.cacheUserLanguage)_this32.services.languageDetector.cacheUserLanguage(l);}_this32.loadResources(l,function(err){done(err,l);});};if(!lng&&this.services.languageDetector&&!this.services.languageDetector.async){setLng(this.services.languageDetector.detect());}else if(!lng&&this.services.languageDetector&&this.services.languageDetector.async){if(this.services.languageDetector.detect.length===0){this.services.languageDetector.detect().then(setLng);}else{this.services.languageDetector.detect(setLng);}}else{setLng(lng);}return deferred;}},{key:"getFixedT",value:function getFixedT(lng,ns,keyPrefix){var _this3=this;var _fixedT=function fixedT(key,opts){var options;if(_typeof2(opts)!=="object"){for(var _len3=arguments.length,rest=new Array(_len3>2?_len3-2:0),_key3=2;_key3<_len3;_key3++){rest[_key3-2]=arguments[_key3];}options=_this3.options.overloadTranslationOptionHandler([key,opts].concat(rest));}else{options=__spreadValues({},opts);}options.lng=options.lng||_fixedT.lng;options.lngs=options.lngs||_fixedT.lngs;options.ns=options.ns||_fixedT.ns;if(options.keyPrefix!=="")options.keyPrefix=options.keyPrefix||keyPrefix||_fixedT.keyPrefix;var keySeparator=_this3.options.keySeparator||".";var resultKey;if(options.keyPrefix&&Array.isArray(key)){resultKey=key.map(function(k){return"".concat(options.keyPrefix).concat(keySeparator).concat(k);});}else{resultKey=options.keyPrefix?"".concat(options.keyPrefix).concat(keySeparator).concat(key):key;}return _this3.t(resultKey,options);};if(isString(lng)){_fixedT.lng=lng;}else{_fixedT.lngs=lng;}_fixedT.ns=ns;_fixedT.keyPrefix=keyPrefix;return _fixedT;}},{key:"t",value:function t(){var _this$translator;return this.translator&&(_this$translator=this.translator).translate.apply(_this$translator,arguments);}},{key:"exists",value:function exists(){var _this$translator2;return this.translator&&(_this$translator2=this.translator).exists.apply(_this$translator2,arguments);}},{key:"setDefaultNamespace",value:function setDefaultNamespace(ns){this.options.defaultNS=ns;}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(ns){var _this33=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized){this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages);return false;}if(!this.languages||!this.languages.length){this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages);return false;}var lng=options.lng||this.resolvedLanguage||this.languages[0];var fallbackLng=this.options?this.options.fallbackLng:false;var lastLng=this.languages[this.languages.length-1];if(lng.toLowerCase()==="cimode")return true;var loadNotPending=function loadNotPending(l,n){var loadState=_this33.services.backendConnector.state["".concat(l,"|").concat(n)];return loadState===-1||loadState===0||loadState===2;};if(options.precheck){var preResult=options.precheck(this,loadNotPending);if(preResult!==void 0)return preResult;}if(this.hasResourceBundle(lng,ns))return true;if(!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return true;if(loadNotPending(lng,ns)&&(!fallbackLng||loadNotPending(lastLng,ns)))return true;return false;}},{key:"loadNamespaces",value:function loadNamespaces(ns,callback){var _this34=this;var deferred=defer();if(!this.options.ns){if(callback)callback();return Promise.resolve();}if(isString(ns))ns=[ns];ns.forEach(function(n){if(_this34.options.ns.indexOf(n)<0)_this34.options.ns.push(n);});this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"loadLanguages",value:function loadLanguages(lngs,callback){var _this35=this;var deferred=defer();if(isString(lngs))lngs=[lngs];var preloaded=this.options.preload||[];var newLngs=lngs.filter(function(lng){return preloaded.indexOf(lng)<0&&_this35.services.languageUtils.isSupportedCode(lng);});if(!newLngs.length){if(callback)callback();return Promise.resolve();}this.options.preload=preloaded.concat(newLngs);this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"dir",value:function dir(lng){if(!lng)lng=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language);if(!lng)return"rtl";var rtlLngs=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];var languageUtils=this.services&&this.services.languageUtils||new LanguageUtil(get());return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng))>-1||lng.toLowerCase().indexOf("-arab")>1?"rtl":"ltr";}},{key:"cloneInstance",value:function cloneInstance(){var _this36=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var forkResourceStore=options.forkResourceStore;if(forkResourceStore)delete options.forkResourceStore;var mergedOptions=__spreadValues(__spreadValues(__spreadValues({},this.options),options),{isClone:true});var clone=new I18n(mergedOptions);if(options.debug!==void 0||options.prefix!==void 0){clone.logger=clone.logger.clone(options);}var membersToCopy=["store","services","language"];membersToCopy.forEach(function(m){clone[m]=_this36[m];});clone.services=__spreadValues({},this.services);clone.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};if(forkResourceStore){clone.store=new ResourceStore(this.store.data,mergedOptions);clone.services.resourceStore=clone.store;}clone.translator=new Translator(clone.services,mergedOptions);clone.translator.on("*",function(event){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){args[_key4-1]=arguments[_key4];}clone.emit.apply(clone,[event].concat(args));});clone.init(mergedOptions,callback);clone.translator.options=mergedOptions;clone.translator.backendConnector.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};return clone;}},{key:"toJSON",value:function toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage};}}],[{key:"createInstance",value:function createInstance(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;return new I18n(options,callback);}}]);}(EventEmitter);var instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;var matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;var htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"};var unescapeHtmlEntity=function unescapeHtmlEntity(m){return htmlEntities[m];};var unescape=function unescape(text2){return text2.replace(matchHtmlEntity,unescapeHtmlEntity);};var defaultOptions$1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:unescape};var setDefaults=function setDefaults(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions$1=__spreadValues(__spreadValues({},defaultOptions$1),options);};var initReactI18next={type:"3rdParty",init:function init(instance2){setDefaults(instance2.options.react);}};var onChangeSelectField="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onInputChange="\n Callback que se ejecuta cuando escribimos algo en el buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input\n";var onChangeSearcher="\n Callback que se ejecuta cuando seleccionamos una opcion del buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onChangeCheckboxInput='\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: Siempre es "on"\n';var onChangeInput="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n value: string | number; \n ```\n";var isOptionDisabled2=" \n Funcion que recibe un valor de tipo SelectOption y deberia devolver un valor booleano\n Si la opción tiene definida un tooltipMessage se va a mostrar al hacer hover.\n \n#### Ejemplo\n ``` typescript\n const isOptionDisabled = (option: SelectOption) => option.value === 2;\n ```\n \n #### Interfaz\n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n tooltipMessage?: string;\n [key: string]: any;\n }\n ```\n";var selectFieldDescription='\n #### Ejemplo de uso \n ```typescript\n <SelectField\n name="productId"\n options={[{ label: "1", value: 1 }, { label: "2", value: 2, tooltipMessage: "Este valor no es representativo" }]}\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n isMultiple\n isClearable={false}\n label={localize(\'product\')}\n isOptionDisabled={(option) => option.value == 2}\n rightModifier={shouldShowLoader && <Spinner />}\n />\n ```\n';var formFieldExample='\n #### Ejemplo de uso\n \n ``` typescript\n <FormField\n label="Título"\n name="textInput"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n placeholder="Placeholder"\n size="md"\n type="text"\n isValid={(inputValue) => _.isNumber(inputValue)}\n />\n ```\n';var isValidInput="\n Funcion que recibe un valor de tipo inputValue y deberia devolver un valor booleano.\n \n #### Por ejemplo: (inputValue) => _.isNumber(inputValue)\n \n ``` typescript\n type inputValue = string | number; \n ```\n";var checkboxInputGroupExample="\n #### Ejemplo de uso\n \n ``` typescript\n <CheckboxInput\n items={[\n {\n id: '1',\n label: 'Opci\xF3n 1'\n },\n {\n id: '2',\n label: 'Opci\xF3n 2'\n },\n {\n disabled: true,\n id: '3',\n label: 'Opci\xF3n 3'\n }\n ]}\n name=\"CheckboxList\"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n size=\"lg\"\n title=\"Selecciona una opci\xF3n\"\n type=\"checkbox\"\n />\n ```\n";var checkboxInputExample=' \n Versión con una sola opción tipo checkbox y un label personalizado:\n \n ```typescript\n const [checked, setChecked] = React.useState(false)\n <CheckboxInput\n name="Toggle"\n checked={checked}\n onChange={setChecked}\n label={"Amazon"}\n title={locale(\'syncStockFromChannel\')}\n />\n ```\n';var searcherExample=' \n Note la diferencia entre onChange y onInputChange (oficia de onSearch):\n \n ```typescript\n <Searcher\n label="Search label"\n name="Searcher"\n onChange={(event) => onSelectOption(event.target.value)}\n onInputChange={(event) => handleSearch(event.target.value)}\n options={[{ label: \'text\', value: 1 }]}\n />\n ```\n';var saveBarExample="\n #### Uso básico\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n />\n ```\n #### Con botón de navegación\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save',\n variant: 'primary'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Previous'\n }}\n />\n ```\n #### Ejemplo completo\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Guardar cambios',\n variant: 'success',\n disabled: false,\n onClick: () => {},\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Descartar',\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Anterior',\n variant: 'primary',\n outline: true,\n disabled: false,\n onClick: () => console.log('Previous clicked'),\n }}\n />\n ```\n";var checkboxInputReduxFormExample="\n #### Ejemplo de uso con Redux Form - CheckboxInput\n \n ```typescript\n <Field\n name=\"salesSync\"\n component={CheckboxInput}\n classComponent={'decrease-stock'}\n props={{\n name: 'cancelSales',\n value: this.salesSync().cancelSales,\n checked: this.salesSync().cancelSales,\n label: this.context.localize('settings.cancelSales')\n }}\n />\n ```\n";var breadcrumbItemFormat="\n ## Formato de BreadcrumbItem\n\n El componente Breadcrumb acepta un array de objetos `BreadcrumbItem` con las siguientes propiedades:\n\n ### Propiedades disponibles:\n\n - **`text`** (string, requerido): El texto que se muestra para el item del breadcrumb\n - **`onClick`** (function, opcional): Función que se ejecuta al hacer click en el item\n - **`isActive`** (boolean, opcional): Indica si el item está activo. Por defecto, el último item se considera activo\n - **`href`** (string, opcional): URL del enlace (actualmente no implementado en el renderizado)\n\n ### Comportamiento:\n\n - Los items con `onClick` se renderizan como botones clickeables\n - Los items sin `onClick` se renderizan como texto estático\n - El último item siempre se considera activo (a menos que se especifique `isActive: true` en otro item)\n - Cada item se separa automáticamente con el símbolo \">\"\n\n ### Ejemplo de uso:\n\n ```tsx\n const breadcrumbItems = [\n { text: 'Dashboard' },\n { text: 'Productos', onClick: () => navigate('/products') },\n { text: 'Detalles', isActive: true }\n ]\n\n <Breadcrumb items={breadcrumbItems} />\n ```\n";var menuItems="Lista de ítems que se mostrarán en el menú.\n \n**Tipo:** `MenuActionItem[]`\n\n```ts\ninterface MenuActionItem {\n label: React.ReactNode\n icon?: React.ReactElement\n onClick?: () => void\n selected?: boolean\n disabled?: boolean\n}\n```\n";var es$2={noResultsFound:"No se encontraron resultados",reloadPage:"Recargar página",selectPlaceholder:"Seleccionar...",selectOption:"Selecciona una opción",noOptionsMessage:"No hay opciones",noFoundOptions:"No se encontraron resultados",selectedPlural:"Seleccionados",selected:"Seleccionado",title:"Título",password:"Contraseña",selectRequiredText:"Campo obligatorio",exportedIcon:"Icono exportado de Material UI",syncStockFromChannel:'Selecciona qué sincronizar desde "canal"',loremIpsum:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",add:"Agregar",previous:"Anterior",continue:"Continuar",cancel:"Cancelar",save:"Guardar",guide:"Guía",size:"Tamaño",hideSelectedOptionsExplainText:"Oculta la opción seleccionada del menu. Solo puede modificarse si es selección simple",switchInput:{options:"Opciones",option:"Opción",large:"Large Switch",medium:"Medium Switch",small:"Small Switch (Default)"},tooltip:{hoverToSee:"Hover sobre mí para ver el tooltip",basicContent:"Este es el contenido del tooltip",showTooltipWhenHoverButton:"Muestra un tooltip al hacer hover sobre un botón.",showTooltipWhenDisabled:"Solo se muestra cuando el botón está deshabilitado",showTooltipWhenDisabledDescription:"Muestra el tooltip únicamente para un botón deshabilitado.",basicDescription:"Componente de tooltip básico que siempre muestra el tooltip al hacer hover.",overflowDescription:"Componente que detecta automáticamente cuando el contenido se desborda y muestra un tooltip solo cuando es necesario.",componentDescription:"Componentes de tooltip que detectan automáticamente cuando el contenido se desborda y muestran un tooltip. Incluye soporte para maxWidth personalizable.",maxWidthDescription:"Ancho máximo del tooltip (px, %, em, etc.). Por defecto: 600px",clickToSee:"Haz clic para ver el tooltip",clickableTitle:"Título del tooltip",clickableDescription:"Ejemplo de tooltip clickeable con contenido complejo incluyendo título y lista con enlaces.",bulletPoint:"Bullet: Lorem ipsum dolor sit.",linkText:"Link"},description:{checkboxInputReduxFormExample:checkboxInputReduxFormExample,onChangeSelectField:onChangeSelectField,onInputChange:onInputChange,onChangeSearcher:onChangeSearcher,onChangeCheckboxInput:onChangeCheckboxInput,onChangeInput:onChangeInput,isOptionDisabled:isOptionDisabled2,reduxForm:{input:"Prop de Redux Form. Cuando uses Redux Form, pasa el prop input desde el componente Field."},selectField:{example:selectFieldDescription,defaultValue:"Esta opción debe ser del tipo (string | number)[] Ej: 2 | [2] | [1,2] donde value = 2",disabled:"Campo deshabilitado",disabledOptions:"Opciones deshabilitadas",noOptions:"Sin opciones disponibles",withIcon:"Select con Icono",fullWidth:"SelectField con tamaño fullwidth que ocupa el 100% del ancho disponible.",labelFullWidth:"Select de ancho completo"},actionBar:{example:saveBarExample,saveButton:"Botón de guardar",cancelButton:"Botón de cancelar",previousButton:"Botón de anterior",saveButtonProps:"Props para el botón de guardar",cancelButtonProps:"Props para el botón de cancelar",previousButtonProps:"Props para el botón de anterior",withoutBorder:"Elimina el redondeado de la ActionBar",saveChanges:"Guardar cambios",discard:"Descartar",confirm:"Confirmar",verifySaveButtonOnly:"Verificar que solo se renderiza el botón de guardar",verifyInitialRendering:"Verificar renderizado inicial",clickSaveButton:"Hacer clic en botón guardar",clickCancelButton:"Hacer clic en botón cancelar",clickPreviousButton:"Hacer clic en botón anterior",clickSaveButtonOnly:"Hacer clic en el botón de guardar"},formField:{example:formFieldExample,isValid:isValidInput},checkboxInput:{example:checkboxInputExample,checkboxInputExample:checkboxInputExample,checkboxInputGroupExample:checkboxInputGroupExample},switchInput:{example:"Example of a single switch component."},icons:{size:"Tamaño del ícono en píxeles"},searcher:{example:searcherExample,exampleOption:"Ejemplo de búsqueda",searchPlaceholder:"Escribí para buscar...",searchLabel:"Buscar opción",noResults:"No se encontraron resultados",writeToSearch:"Escribí para buscar",clearOnSelectDescription:"Limpia el texto del input después de seleccionar una opción",clearOnSelectStoryDescription:"Ejemplo que muestra cómo se borra el texto de entrada después de seleccionar una opción cuando clearOnSelect está habilitado",isLoading:'Indica si el componente está en estado de carga. Se muestra un spinner en el mensaje de "no opciones".',loadOptions:"Función para cargar opciones de forma asíncrona",cacheOptions:"Determina si las opciones se cachean para mejor rendimiento",defaultOptions:"Opciones que se muestran por defecto al abrir el dropdown",apiSimulationDescription:"Ejemplo avanzado de Searcher con loadOptions usando una API real (JSONPlaceholder). Demuestra carga asíncrona, cache, opciones por defecto y manejo de errores.",apiSimulationLabel:"Buscar posts (API real)"},breadcrumb:{itemFormat:breadcrumbItemFormat},alert:{message:"Mensaje de éxito, este contenedor se ajusta al contenido, con un ancho máx de 1140 px",infoMessage:"Mensaje de información, este componente se ajusta al ancho del contenedor full width.",dontShowAgain:"No volver a mostrar este mensaje.",customAlert:"Alerta con ícono personalizado"}},headerSection:{edit:"Editar",duplicate:"Duplicate",delete:"Eliminar"},error:{required:"Este campo es obligatorio",notValid:"El valor ingresado es inválido",requiredDescription:"SelectField que muestra un error de campo obligatorio cuando está marcado como requerido y no tiene valor seleccionado."},copyButton:{copy:"Copiar",copied:"Copiado",textToCopy:"Este texto se copiará automáticamente",textCopied:"Este es el texto que se copiará",copyKey:"Copiar clave",copiedKey:"Clave copiada",custom:"Funcion Custom",running:"Corriendo...",alert:"Función personalizada ejecutada!"},linkWithIcon:{historyChange:"Historial de cambios",edit:"Editar",customAction:"Acción personalizada"},breadcrumb:{historyChanges:"Historial de cambios",products:"Productos",dashboard:"Dashboard",categories:"Categorías",electronics:"Electrónicos",details:"Detalles",page1:"Página 1",page2:"Página 2",page3:"Página 3",home:"Inicio"},datePicker:{name:"Nombre del campo",value:"Valor del campo",size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha que determina automáticamente el tipo de picker: YYYY (años), HH:mm (horas), DD/MM/YYYY (fecha), DD/MM/YYYY HH:mm (fecha y hora)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",rightAdornment:"Elemento que se muestra a la derecha del input",meta:"Metadatos para validación (error, touched, etc.)",isValid:"Función para validación personalizada",input:"Input object para integración con Redux Form",onChange:"Callback cuando cambia la fecha",selectDate:"Seleccionar fecha",dateLabel:"Fecha",selectADate:"Selecciona una fecha",requiredDate:"Fecha Requerida",requiredField:"Campo obligatorio",dateAndTime:"Fecha y Hora",dateWithLimits:"Fecha con Límites",onlyFutureDates:"Solo fechas futuras",customFormat:"Formato Personalizado",yearSelector:"Selector de Año",timeSelector:"Selector de Hora",timeSelectorWithSeconds:"Selector de Hora con Segundos",dateTimeSelector:"Selector de Fecha y Hora",selectYear:"Seleccionar año",selectTime:"Seleccionar hora",selectDateTime:"Seleccionar fecha y hora"},dateRangePicker:{size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha (por defecto DD/MM/YYYY)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",onChange:"Callback cuando cambia el rango de fechas",selectDateRange:"Seleccionar rango de fechas",dateRangeLabel:"Rango de fechas",disabledRange:"Rango deshabilitado",disabledComponent:"Componente deshabilitado",rangeWithMinMax:"Rango con min/max y deshabilitado",restrictedRange:"Rango restringido y deshabilitado",disabledWithRestrictions:"Story que demuestra la combinación de minDate, maxDate y disabled. El componente está deshabilitado pero también tiene restricciones de fechas.",completelyDisabled:"Story que demuestra el componente completamente deshabilitado usando la propiedad disabled como boolean."},chip:{text:"Texto",title:"Título",onRemove:"Función que se ejecuta al hacer clic en el ícono de cerrar",disabled:"Deshabilita el chip y oculta el ícono de cerrar",variant:"Variante visual del chip que cambia el color de fondo (default, success, error, warning, info)",size:"Tamaño del chip (sm: pequeño, lg: grande, undefined: tamaño por defecto)"},warningModal:{warning:"¡Atención!",dontShowAgain:"No volver a mostrar este mensaje"},tab:{tab1:"Pestaña 1",tab2:"Pestaña 2",tab3:"Pestaña 3"},menuAction:{edit:"Editar",delete:"Eliminar",duplicate:"Duplicar",itemsDescription:menuItems,id:"Identificador único opcional para el menú.\n\n**Tipo:** `string`",maxItems:"Número máximo de ítems visibles antes de mostrar un colapsado",icon:"Ícono opcional que acompaña al menú"},dropdown:{label:"Texto que se muestra en el botón del dropdown",variant:"Variante del botón",color:"Color del botón",disabled:"Si el dropdown está deshabilitado",onItemSelect:"Callback que se ejecuta cuando se selecciona un item",onToggle:"Callback que se ejecuta cuando se abre/cierra el dropdown",options:"Opciones",edit:"Editar",duplicate:"Duplicar",archive:"Archivar",more:"Más opciones",delete:"Eliminar",share:"Compartir",divider:"Divider",size:"Tamaño del botón"},sidebar:{monitoringCenter:"Centro de monitoreo",history:"Historial de cambios",integrations:"Integraciones",deposits:"Depositos y listas de precios",active:"Item Activo",alerts:"Alertas",moreOptions:"Mas opciones",itemsDescription:"Array de items { label, isActive, icon, onClick } para renderizar el sidebar",itemsSummary:"{ label: string; isActive?: Boolean; icon?: ReactNode; onClick?: () => void;}[]"}};var resources={en:{translation:{}},es:{translation:es$2}};instance.use(initReactI18next).init({resources:resources,lng:"es",interpolation:{escapeValue:false},debug:true});var locale=instance.t;var lg$8="selectField-module_lg_adYzi";var body$1="selectField-module_body_KiYeH";var md$6="selectField-module_md_sCCe1";var fullwidth$1="selectField-module_fullwidth_c4Kqo";var styles$l={"producteca-select-field-container":"selectField-module_producteca-select-field-container_wnPdM","producteca-select-field--is-required":"selectField-module_producteca-select-field--is-required_0f07A","producteca-select-field--with-modifier":"selectField-module_producteca-select-field--with-modifier_GN3AL","producteca-select-field-body":"selectField-module_producteca-select-field-body_-gy8S",lg:lg$8,body:body$1,"searcher-body":"selectField-module_searcher-body_8Hpy2",md:md$6,fullwidth:fullwidth$1,"producteca-select-field__is-clearable":"selectField-module_producteca-select-field__is-clearable_FzZz2","producteca-select-field__search-icon":"selectField-module_producteca-select-field__search-icon_rGbiw","producteca-select-field__is-multiple":"selectField-module_producteca-select-field__is-multiple_G71xD","producteca-select-field--is-clearable":"selectField-module_producteca-select-field--is-clearable_GZGnL","producteca-select-field--is-searchable":"selectField-module_producteca-select-field--is-searchable_YTkm-","producteca-select-field--on-error":"selectField-module_producteca-select-field--on-error_rNJN3","producteca-select-field__input-multiple":"selectField-module_producteca-select-field__input-multiple_K0bLb","option-with-tooltip":"selectField-module_option-with-tooltip_etqky"};var AutoStoriesIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"m19 1-5 5v11l5-4.5zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6m22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5z"}),"AutoStories");var CalendarTodayIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");var Cancel=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var Check=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var CheckCircle=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var ClearRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded");var ContentCopy=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var ErrorIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var Info=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var InsertPhotoRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"InsertPhotoRounded");var KeyboardArrowDownIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var MoreVertIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var NavigateBeforeRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M14.91 6.71a.996.996 0 0 0-1.41 0L8.91 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L11.03 12l3.88-3.88c.38-.39.38-1.03 0-1.41"}),"NavigateBeforeRounded");var NavigateNextRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded");var SearchRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");var Visibility=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var VisibilityOff=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function useReduxFormField(_ref3){var input=_ref3.input,onChange2=_ref3.onChange,onBlur=_ref3.onBlur,_ref$transformValue=_ref3.transformValue,transformValue=_ref$transformValue===void 0?function(value){return value;}:_ref$transformValue;var handleChange=function handleChange2(event){if(input){var transformedValue=transformValue(event,event);input.onChange(transformedValue);}else if(onChange2){onChange2(event);}};var handleBlur=function handleBlur2(){if(input){input.onBlur();}onBlur===null||onBlur===void 0||onBlur();};return{handleChange:handleChange,handleBlur:handleBlur};}var useOptionTooltip=function useOptionTooltip2(label2,isDisabled,tooltipMessage){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];var _useState3=useState({top:0,left:0}),_useState4=_slicedToArray$1(_useState3,2),tooltipPosition=_useState4[0],setTooltipPosition=_useState4[1];var optionRef=useRef(null);var showDisabledTooltip=isDisabled&&!!tooltipMessage;var _updateTooltipPosition=useCallback(function(){if(optionRef.current&&showTooltip){var rect=optionRef.current.getBoundingClientRect();var centerY=rect.top+rect.height/2;setTooltipPosition({top:centerY,left:rect.right+5});}},[showTooltip]);var _handleMouseEnter=useCallback(function(){if(optionRef.current){var hasOverflow=optionRef.current.scrollWidth>optionRef.current.offsetWidth;var shouldShowTooltip=showDisabledTooltip||hasOverflow;if(shouldShowTooltip){setShowTooltip(true);setTimeout(function(){_updateTooltipPosition();},0);}}},[showDisabledTooltip,_updateTooltipPosition]);var _handleMouseLeave=useCallback(function(){setShowTooltip(false);},[]);useEffect(function(){var element=optionRef.current;if(element){element.addEventListener("mouseenter",_handleMouseEnter);element.addEventListener("mouseleave",_handleMouseLeave);return function(){element.removeEventListener("mouseenter",_handleMouseEnter);element.removeEventListener("mouseleave",_handleMouseLeave);};}},[_handleMouseEnter,_handleMouseLeave]);useEffect(function(){if(showTooltip){_updateTooltipPosition();window.addEventListener("scroll",_updateTooltipPosition,true);return function(){return window.removeEventListener("scroll",_updateTooltipPosition,true);};}},[showTooltip,_updateTooltipPosition]);return{showTooltip:showTooltip,tooltipPosition:tooltipPosition,optionRef:optionRef,showDisabledTooltip:showDisabledTooltip};};var hasError=function hasError2(props){var value=props.value,isValid2=props.isValid,required=props.required,_props$meta=props.meta,_props$meta2=_props$meta===void 0?{}:_props$meta,touched=_props$meta2.touched,error2=_props$meta2.error;var hasError22=isValid2&&!isValid2(value)||touched&&error2;return!!(required&&!value)||!!hasError22;};var hasWarning=function hasWarning2(props){var _props$meta3=props.meta,_props$meta4=_props$meta3===void 0?{}:_props$meta3,touched=_props$meta4.touched,warning2=_props$meta4.warning;return!!touched&&!!warning2;};var formValidation=function formValidation2(props){if(hasWarning(props))return"warning";if(hasError(props))return"error";return null;};var warning$1="errorMessage-module_warning_bXIaf";var message$2="errorMessage-module_message_5zSab";var error$2="errorMessage-module_error_QgQKc";var errorStyles={warning:warning$1,"Mui-focused":"errorMessage-module_Mui-focused_JfmdQ",message:message$2,error:error$2};var ErrorMessage=function ErrorMessage2(_ref3){var validationProps=_ref3.validationProps;var meta=validationProps.meta;var _ref22=meta||{},error2=_ref22.error,warning2=_ref22.warning;var messageClass=clsx(errorStyles.message,_defineProperty$1(_defineProperty$1({},errorStyles.error,hasError(validationProps)),errorStyles.warning,hasWarning(validationProps)));return/* @__PURE__ */jsxs("div",{className:messageClass,children:[hasError(validationProps)&&(error2===null||error2===void 0?void 0:error2.locale),hasWarning(validationProps)&&(warning2===null||warning2===void 0?void 0:warning2.locale)]});};var Option$1=function Option2(props){var _useOptionTooltip=useOptionTooltip(props.label,props.isDisabled,props.data.tooltipMessage),showTooltip=_useOptionTooltip.showTooltip,tooltipPosition=_useOptionTooltip.tooltipPosition,optionRef=_useOptionTooltip.optionRef,showDisabledTooltip=_useOptionTooltip.showDisabledTooltip;var tooltipMessage=showDisabledTooltip?props.data.tooltipMessage:props.label;var hasFormatOption=_.isFunction(props.formatOption);return/* @__PURE__ */jsx$1("div",{className:styles$l[showTooltip?"option-with-tooltip":""],"data-tooltip":tooltipMessage,style:showTooltip?{"--tooltip-top":"".concat(tooltipPosition.top,"px"),"--tooltip-left":"".concat(tooltipPosition.left,"px")}:void 0,children:/* @__PURE__ */jsx$1(components$1.Option,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$l[props.isDisabled?"disabled":""],styles$l[props.isMulti?"producteca-select-field__input-multiple":""]),children:[props.isMulti&&/* @__PURE__ */jsx$1("input",{type:"checkbox",checked:props.isSelected,onChange:_.identity}),hasFormatOption?/* @__PURE__ */jsx$1("div",{ref:optionRef,children:props.formatOption(props.data)}):/* @__PURE__ */jsx$1("label",{ref:optionRef,children:props.label})]})}))});};var BaseSingleValue=function BaseSingleValue2(props){return/* @__PURE__ */jsx$1(components$1.SingleValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var MultiValue2=function MultiValue3(props){return/* @__PURE__ */jsx$1(components$1.MultiValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:props.formatOption?props.formatOption(props.data):/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SingleValue2=function SingleValue3(props){return/* @__PURE__ */jsx$1(components$1.SingleValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SearchComponent=function SearchComponent2(){return/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__search-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(SearchRounded,{})})});};var MultipleTextComponent=function MultipleTextComponent2(_ref3){var _ref$optionSelected=_ref3.optionSelected,optionSelected=_ref$optionSelected===void 0?null:_ref$optionSelected;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var text2=optionSelected&&_.isArray(optionSelected)&&optionSelected.length===1?locale("selected"):locale("selectedPlural");return isArrayWithSome?/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__is-multiple"],children:/* @__PURE__ */jsxs("span",{children:[optionSelected.length," ",text2]})}):null;};var ClearComponent=function ClearComponent2(_ref22){var optionSelected=_ref22.optionSelected,isClearable=_ref22.isClearable,handleChange=_ref22.handleChange;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var hasSelectedValue=!_.isArray(optionSelected)&&optionSelected&&"value"in optionSelected&&optionSelected.value;return isClearable&&(isArrayWithSome||hasSelectedValue)?/* @__PURE__ */jsx$1("a",{className:styles$l["producteca-select-field__is-clearable"],onClick:function onClick(){return handleChange(null);},children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(ClearRounded,{})})}):null;};var SelectField=function SelectField2(props){var _input$value;var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$hideSelectedOp=props.hideSelectedOptions,hideSelectedOptions=_props$hideSelectedOp===void 0?true:_props$hideSelectedOp,_props$isMultiple=props.isMultiple,isMultiple=_props$isMultiple===void 0?false:_props$isMultiple,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,required=props.required,disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,_onChange=props.onChange,defaultValue=props.defaultValue,input=props.input,propsOnBlur=props.onBlur,meta=props.meta,isValid2=props.isValid,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,formatOption=props.formatOption;var value=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:props.value;var defaultOption=_.filter(options,function(_ref3){var optionValue=_ref3.value;return _.includes(value,optionValue);});var _useState=useState(defaultOption||null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var validationProps={meta:meta,value:value,isValid:isValid2,required:required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:function onChange2(selected2){var selectedValue=isMultiple?_.map(selected2,function(opt){return opt.value;}):selected2===null||selected2===void 0?void 0:selected2.value;if(!input){var fakeEvent={target:{name:name,value:selectedValue}};_onChange===null||_onChange===void 0||_onChange(fakeEvent);}return selectedValue;},onBlur:propsOnBlur,transformValue:function transformValue(selected2){var selectedValue=isMultiple?_.map(selected2,function(opt){return opt.value;}):selected2===null||selected2===void 0?void 0:selected2.value;return selectedValue;}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(selected2){fieldHandleChange(selected2);setOptionSelected(selected2);};useEffect(function(){if(defaultValue&&options.length>0){var val=_.isArray(defaultValue)?defaultValue:[defaultValue];var matchingOptions=_.filter(options,function(_ref4){var value2=_ref4.value;return _.includes(val,value2);});setOptionSelected(isMultiple?matchingOptions:matchingOptions[0]||null);}},[defaultValue,options]);var OptionWithFormat=function OptionWithFormat2(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));};var SingleValueWithFormat=function SingleValueWithFormat2(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1({},singleValueProps));};var MultiValueWithFormat=function MultiValueWithFormat2(multiValueProps){return/* @__PURE__ */jsx$1(MultiValue2,_objectSpread2$1(_objectSpread2$1({},multiValueProps),{},{formatOption:formatOption}));};var optionComponent=isMultiple?{Option:OptionWithFormat,MultiValue:MultiValueWithFormat}:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat};return/* @__PURE__ */jsxs("div",{className:clsx(styles$l["producteca-select-field-container"],_defineProperty$1({},errorStyles[validated],validated)),"data-testid":"producteca-select-field-container",children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},styles$l["producteca-select-field--on-error"],validated),styles$l["producteca-select-field--with-modifier"],rightModifier),styles$l["producteca-select-field--is-searchable"],isSearchable&&!isMultiple),styles$l["producteca-select-field--is-clearable"],isClearable)),children:[/* @__PURE__ */jsxs("div",{className:styles$l["body"],children:[isMultiple&&/* @__PURE__ */jsx$1(MultipleTextComponent,{optionSelected:optionSelected}),isSearchable&&!isMultiple&&/* @__PURE__ */jsx$1(SearchComponent,{}),/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,classNamePrefix:"producteca-select-field",placeholder:placeholder,isDisabled:disabled2,isMulti:isMultiple,closeMenuOnSelect:!isMultiple,hideSelectedOptions:hideSelectedOptions&&!isMultiple,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable&&!isMultiple,noOptionsMessage:function noOptionsMessage2(){return _noOptionsMessage;},onChange:handleChange,onBlur:handleBlur,value:optionSelected,options:options,components:optionComponent,menuPortalTarget:document.body})),/* @__PURE__ */jsx$1(ClearComponent,{optionSelected:optionSelected,isClearable:isClearable,handleChange:handleChange})]}),!!rightModifier&&rightModifier]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]})]});};var disabled$5="textInput-module_disabled_zmiie";var fullwidth="textInput-module_fullwidth_uG3VU";var lg$7="textInput-module_lg_rvzUN";var md$5="textInput-module_md_WTZlG";var sm$7="textInput-module_sm_3H7Tl";var title$6="textInput-module_title_Y61Pu";var styles$k={"form-field":"textInput-module_form-field_6ylpa","input-container":"textInput-module_input-container_YAHtg","right-modifier":"textInput-module_right-modifier_WqQCI","with-right-icon":"textInput-module_with-right-icon_K2CQ7","with-left-icon":"textInput-module_with-left-icon_WkTxr",disabled:disabled$5,"text-input-container":"textInput-module_text-input-container_ubBna","text-input":"textInput-module_text-input_9gGzW","right-icon":"textInput-module_right-icon_9Bh6D","left-icon":"textInput-module_left-icon_40v5M",fullwidth:fullwidth,lg:lg$7,md:md$5,sm:sm$7,title:title$6};var _excluded$$=["isValid","onChange","meta","value","noErrors","size","type","isClearable","max","min","leftIcon","rightIcon","input","inputRef","name"];var TextInput=function TextInput2(props){var _input$value;var isValid2=props.isValid,onChange2=props.onChange,meta=props.meta,_props$value=props.value,value=_props$value===void 0?"":_props$value,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$type=props.type,type=_props$type===void 0?"text":_props$type,isClearable=props.isClearable,max2=props.max,min2=props.min,leftIcon=props.leftIcon,rightIcon=props.rightIcon,input=props.input,inputRef=props.inputRef,name=props.name,otherProps=_objectWithoutProperties$1(props,_excluded$$);var inputValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var _useState=useState(""),_useState2=_slicedToArray$1(_useState,2),currentValue=_useState2[0],setCurrentValue=_useState2[1];var validationProps={meta:meta,value:inputValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var numericLimits=type==="number"?{max:max2,min:min2}:{};useEffect(function(){setCurrentValue(inputValue);},[inputValue]);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var value2=event.target.value;setCurrentValue(value2);return value2;}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(event){fieldHandleChange(event);};var rightModifier=isClearable&&!rightIcon&¤tValue?/* @__PURE__ */jsx$1(CustomIcon,{"data-testid":"clear-icon",children:/* @__PURE__ */jsx$1(ClearRounded,{})}):rightIcon;var onClickRightModifier=isClearable&&!rightIcon?function(){return handleChange({target:{name:props.name,value:""}});}:_.identity;var isSmall=size2=="sm";return/* @__PURE__ */jsxs("div",{"data-testid":"text-input-container",className:clsx(styles$k[size2],styles$k["text-input-container"],validated?errorStyles[validated]:"",!!leftIcon&&!isSmall?styles$k["with-left-icon"]:"",!!rightModifier&&!isSmall?styles$k["with-right-icon"]:""),children:[!!leftIcon&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["left-icon"]),children:leftIcon}),/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1({name:name,className:"text-input","data-testid":"text-input",value:currentValue?String(currentValue):"",type:type,onChange:handleChange,onBlur:handleBlur,ref:inputRef},numericLimits),otherProps)),!!rightModifier&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-icon"]),onClick:onClickRightModifier,children:rightModifier}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var PasswordInput=function PasswordInput2(props){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showPassword=_useState2[0],setShowPassword=_useState2[1];var type=showPassword?"text":"password";return/* @__PURE__ */jsx$1(TextInput,_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,"data-testid":"password-input",rightIcon:/* @__PURE__ */jsx$1(VisibilityIcon,{showPassword:showPassword,setShowPassword:setShowPassword})}));};var VisibilityIcon=function VisibilityIcon2(_ref3){var showPassword=_ref3.showPassword,setShowPassword=_ref3.setShowPassword;return/* @__PURE__ */jsx$1("div",{"data-testid":"visibility-toggle",onClick:function onClick(){return setShowPassword(!showPassword);},children:showPassword?/* @__PURE__ */jsx$1(Visibility,{}):/* @__PURE__ */jsx$1(VisibilityOff,{})});};var areViewsEqual=function areViewsEqual(views,expectedViews){if(views.length!==expectedViews.length){return false;}return expectedViews.every(function(expectedView){return views.includes(expectedView);});};var applyDefaultViewProps=function applyDefaultViewProps(_ref299){var openTo=_ref299.openTo,defaultOpenTo=_ref299.defaultOpenTo,views=_ref299.views,defaultViews=_ref299.defaultViews;var viewsWithDefault=views!=null?views:defaultViews;var openToWithDefault;if(openTo!=null){openToWithDefault=openTo;}else if(viewsWithDefault.includes(defaultOpenTo)){openToWithDefault=defaultOpenTo;}else if(viewsWithDefault.length>0){openToWithDefault=viewsWithDefault[0];}else{throw new Error("MUI X: The `views` prop must contain at least one view.");}return{views:viewsWithDefault,openTo:openToWithDefault};};var mergeDateAndTime=function mergeDateAndTime(utils,dateParam,timeParam){var mergedDate=dateParam;mergedDate=utils.setHours(mergedDate,utils.getHours(timeParam));mergedDate=utils.setMinutes(mergedDate,utils.getMinutes(timeParam));mergedDate=utils.setSeconds(mergedDate,utils.getSeconds(timeParam));mergedDate=utils.setMilliseconds(mergedDate,utils.getMilliseconds(timeParam));return mergedDate;};var findClosestEnabledDate=function findClosestEnabledDate(_ref300){var date=_ref300.date,disableFuture=_ref300.disableFuture,disablePast=_ref300.disablePast,maxDate=_ref300.maxDate,minDate=_ref300.minDate,isDateDisabled=_ref300.isDateDisabled,utils=_ref300.utils,timezone=_ref300.timezone;var today=mergeDateAndTime(utils,utils.date(void 0,timezone),date);if(disablePast&&utils.isBefore(minDate,today)){minDate=today;}if(disableFuture&&utils.isAfter(maxDate,today)){maxDate=today;}var forward=date;var backward=date;if(utils.isBefore(date,minDate)){forward=minDate;backward=null;}if(utils.isAfter(date,maxDate)){if(backward){backward=maxDate;}forward=null;}while(forward||backward){if(forward&&utils.isAfter(forward,maxDate)){forward=null;}if(backward&&utils.isBefore(backward,minDate)){backward=null;}if(forward){if(!isDateDisabled(forward)){return forward;}forward=utils.addDays(forward,1);}if(backward){if(!isDateDisabled(backward)){return backward;}backward=utils.addDays(backward,-1);}}return null;};var replaceInvalidDateByNull=function replaceInvalidDateByNull(utils,value){return value==null||!utils.isValid(value)?null:value;};var applyDefaultDate=function applyDefaultDate(utils,value,defaultValue){if(value==null||!utils.isValid(value)){return defaultValue;}return value;};var areDatesEqual=function areDatesEqual(utils,a,b){if(!utils.isValid(a)&&a!=null&&!utils.isValid(b)&&b!=null){return true;}return utils.isEqual(a,b);};var getMonthsInYear=function getMonthsInYear(utils,year){var firstMonth=utils.startOfYear(year);var months2=[firstMonth];while(months2.length<12){var prevMonth=months2[months2.length-1];months2.push(utils.addMonths(prevMonth,1));}return months2;};var _getTodayDate=function getTodayDate(utils,timezone,valueType){return valueType==="date"?utils.startOfDay(utils.date(void 0,timezone)):utils.date(void 0,timezone);};var formatMeridiem=function formatMeridiem(utils,meridiem){var date=utils.setHours(utils.date(),meridiem==="am"?2:14);return utils.format(date,"meridiem");};var dateViews=["year","month","day"];var isDatePickerView=function isDatePickerView(view){return dateViews.includes(view);};var resolveDateFormat=function resolveDateFormat(utils,_ref301,isInToolbar){var format2=_ref301.format,views=_ref301.views;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["year"])){return formats.year;}if(areViewsEqual(views,["month"])){return formats.month;}if(areViewsEqual(views,["day"])){return formats.dayOfMonth;}if(areViewsEqual(views,["month","year"])){return"".concat(formats.month," ").concat(formats.year);}if(areViewsEqual(views,["day","month"])){return"".concat(formats.month," ").concat(formats.dayOfMonth);}if(isInToolbar){return /en/.test(utils.getCurrentLocaleCode())?formats.normalDateWithWeekday:formats.normalDate;}return formats.keyboardDate;};var getWeekdays$1=function getWeekdays$1(utils,date){var start2=utils.startOfWeek(date);return[0,1,2,3,4,5,6].map(function(diff){return utils.addDays(start2,diff);});};var timeViews=["hours","minutes","seconds"];var isTimeView=function isTimeView(view){return timeViews.includes(view);};var isInternalTimeView=function isInternalTimeView(view){return timeViews.includes(view)||view==="meridiem";};var getMeridiem=function getMeridiem(date,utils){if(!date){return null;}return utils.getHours(date)>=12?"pm":"am";};var convertValueToMeridiem=function convertValueToMeridiem(value,meridiem,ampm){if(ampm){var currentMeridiem=value>=12?"pm":"am";if(currentMeridiem!==meridiem){return meridiem==="am"?value-12:value+12;}}return value;};var convertToMeridiem=function convertToMeridiem(time,meridiem,ampm,utils){var newHoursAmount=convertValueToMeridiem(utils.getHours(time),meridiem,ampm);return utils.setHours(time,newHoursAmount);};var getSecondsInDay=function getSecondsInDay(date,utils){return utils.getHours(date)*3600+utils.getMinutes(date)*60+utils.getSeconds(date);};var createIsAfterIgnoreDatePart=function createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation,utils){return function(dateLeft,dateRight){if(disableIgnoringDatePartForTimeValidation){return utils.isAfter(dateLeft,dateRight);}return getSecondsInDay(dateLeft,utils)>getSecondsInDay(dateRight,utils);};};var resolveTimeFormat=function resolveTimeFormat(utils,_ref302){var format2=_ref302.format,views=_ref302.views,ampm=_ref302.ampm;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["hours"])){return ampm?"".concat(formats.hours12h," ").concat(formats.meridiem):formats.hours24h;}if(areViewsEqual(views,["minutes"])){return formats.minutes;}if(areViewsEqual(views,["seconds"])){return formats.seconds;}if(areViewsEqual(views,["minutes","seconds"])){return"".concat(formats.minutes,":").concat(formats.seconds);}if(areViewsEqual(views,["hours","minutes","seconds"])){return ampm?"".concat(formats.hours12h,":").concat(formats.minutes,":").concat(formats.seconds," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes,":").concat(formats.seconds);}return ampm?"".concat(formats.hours12h,":").concat(formats.minutes," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes);};var SECTION_TYPE_GRANULARITY={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7};var getSectionTypeGranularity=function getSectionTypeGranularity(sections){return Math.max.apply(Math,_toConsumableArray2(sections.map(function(section){var _a;return(_a=SECTION_TYPE_GRANULARITY[section.type])!=null?_a:1;})));};var roundDate=function roundDate(utils,granularity,date){if(granularity===SECTION_TYPE_GRANULARITY.year){return utils.startOfYear(date);}if(granularity===SECTION_TYPE_GRANULARITY.month){return utils.startOfMonth(date);}if(granularity===SECTION_TYPE_GRANULARITY.day){return utils.startOfDay(date);}var roundedDate=date;if(granularity<SECTION_TYPE_GRANULARITY.minutes){roundedDate=utils.setMinutes(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.seconds){roundedDate=utils.setSeconds(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.milliseconds){roundedDate=utils.setMilliseconds(roundedDate,0);}return roundedDate;};var getDefaultReferenceDate=function getDefaultReferenceDate(_ref303){var props=_ref303.props,utils=_ref303.utils,granularity=_ref303.granularity,timezone=_ref303.timezone,inGetTodayDate=_ref303.getTodayDate;var _a;var referenceDate=inGetTodayDate?inGetTodayDate():roundDate(utils,granularity,_getTodayDate(utils,timezone));if(props.minDate!=null&&utils.isAfterDay(props.minDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.minDate);}if(props.maxDate!=null&&utils.isBeforeDay(props.maxDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.maxDate);}var isAfter2=createIsAfterIgnoreDatePart((_a=props.disableIgnoringDatePartForTimeValidation)!=null?_a:false,utils);if(props.minTime!=null&&isAfter2(props.minTime,referenceDate)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.minTime:mergeDateAndTime(utils,referenceDate,props.minTime));}if(props.maxTime!=null&&isAfter2(referenceDate,props.maxTime)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.maxTime:mergeDateAndTime(utils,referenceDate,props.maxTime));}return referenceDate;};var getDateSectionConfigFromFormatToken=function getDateSectionConfigFromFormatToken(utils,formatToken){var config2=utils.formatTokenMap[formatToken];if(config2==null){throw new Error(["MUI X: The token \"".concat(formatToken,"\" is not supported by the Date and Time Pickers."),"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));}if(typeof config2==="string"){return{type:config2,contentType:config2==="meridiem"?"letter":"digit",maxLength:void 0};}return{type:config2.sectionType,contentType:config2.contentType,maxLength:config2.maxLength};};var getDeltaFromKeyCode=function getDeltaFromKeyCode(keyCode){switch(keyCode){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0;}};var getDaysInWeekStr=function getDaysInWeekStr(utils,format2){var elements=[];var now=utils.date(void 0,"default");var startDate=utils.startOfWeek(now);var endDate=utils.endOfWeek(now);var current=startDate;while(utils.isBefore(current,endDate)){elements.push(current);current=utils.addDays(current,1);}return elements.map(function(weekDay){return utils.formatByString(weekDay,format2);});};var getLetterEditingOptions=function getLetterEditingOptions(utils,timezone,sectionType,format2){switch(sectionType){case"month":{return getMonthsInYear(utils,utils.date(void 0,timezone)).map(function(month2){return utils.formatByString(month2,format2);});}case"weekDay":{return getDaysInWeekStr(utils,format2);}case"meridiem":{var now=utils.date(void 0,timezone);return[utils.startOfDay(now),utils.endOfDay(now)].map(function(date){return utils.formatByString(date,format2);});}default:{return[];}}};var FORMAT_SECONDS_NO_LEADING_ZEROS="s";var NON_LOCALIZED_DIGITS=["0","1","2","3","4","5","6","7","8","9"];var getLocalizedDigits=function getLocalizedDigits(utils){var today=utils.date(void 0);var formattedZero=utils.formatByString(utils.setSeconds(today,0),FORMAT_SECONDS_NO_LEADING_ZEROS);if(formattedZero==="0"){return NON_LOCALIZED_DIGITS;}return Array.from({length:10}).map(function(_2,index2){return utils.formatByString(utils.setSeconds(today,index2),FORMAT_SECONDS_NO_LEADING_ZEROS);});};var removeLocalizedDigits=function removeLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}var digits=[];var currentFormattedDigit="";for(var _i13=0;_i13<valueStr.length;_i13+=1){currentFormattedDigit+=valueStr[_i13];var matchingDigitIndex=localizedDigits.indexOf(currentFormattedDigit);if(matchingDigitIndex>-1){digits.push(matchingDigitIndex.toString());currentFormattedDigit="";}}return digits.join("");};var applyLocalizedDigits=function applyLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}return valueStr.split("").map(function(char2){return localizedDigits[Number(char2)];}).join("");};var isStringNumber=function isStringNumber(valueStr,localizedDigits){var nonLocalizedValueStr=removeLocalizedDigits(valueStr,localizedDigits);return nonLocalizedValueStr!==" "&&!Number.isNaN(Number(nonLocalizedValueStr));};var cleanLeadingZeros=function cleanLeadingZeros(valueStr,size2){var cleanValueStr=valueStr;cleanValueStr=Number(cleanValueStr).toString();while(cleanValueStr.length<size2){cleanValueStr="0".concat(cleanValueStr);}return cleanValueStr;};var cleanDigitSectionValue=function cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section){if(process.env.NODE_ENV!=="production"){if(section.type!=="day"&§ion.contentType==="digit-with-letter"){throw new Error(["MUI X: The token \"".concat(section.format,"\" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections")].join("\n"));}}if(section.type==="day"&§ion.contentType==="digit-with-letter"){var date=utils.setDate(sectionBoundaries.longestMonth,value);return utils.formatByString(date,section.format);}var valueStr=value.toString();if(section.hasLeadingZerosInInput){valueStr=cleanLeadingZeros(valueStr,section.maxLength);}return applyLocalizedDigits(valueStr,localizedDigits);};var adjustSectionValue=function adjustSectionValue(utils,timezone,section,keyCode,sectionsValueBoundaries,localizedDigits,activeDate,stepsAttributes){var delta=getDeltaFromKeyCode(keyCode);var isStart=keyCode==="Home";var isEnd=keyCode==="End";var shouldSetAbsolute=section.value===""||isStart||isEnd;var adjustDigitSection=function adjustDigitSection(){var sectionBoundaries=sectionsValueBoundaries[section.type]({currentDate:activeDate,format:section.format,contentType:section.contentType});var getCleanValue=function getCleanValue(value){return cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section);};var step=section.type==="minutes"&&(stepsAttributes==null?void 0:stepsAttributes.minutesStep)?stepsAttributes.minutesStep:1;var newSectionValueNumber;if(shouldSetAbsolute){if(section.type==="year"&&!isEnd&&!isStart){return utils.formatByString(utils.date(void 0,timezone),section.format);}if(delta>0||isStart){newSectionValueNumber=sectionBoundaries.minimum;}else{newSectionValueNumber=sectionBoundaries.maximum;}}else{var currentSectionValue=parseInt(removeLocalizedDigits(section.value,localizedDigits),10);newSectionValueNumber=currentSectionValue+delta*step;}if(newSectionValueNumber%step!==0){if(delta<0||isStart){newSectionValueNumber+=step-(step+newSectionValueNumber)%step;}if(delta>0||isEnd){newSectionValueNumber-=newSectionValueNumber%step;}}if(newSectionValueNumber>sectionBoundaries.maximum){return getCleanValue(sectionBoundaries.minimum+(newSectionValueNumber-sectionBoundaries.maximum-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}if(newSectionValueNumber<sectionBoundaries.minimum){return getCleanValue(sectionBoundaries.maximum-(sectionBoundaries.minimum-newSectionValueNumber-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}return getCleanValue(newSectionValueNumber);};var adjustLetterSection=function adjustLetterSection(){var options=getLetterEditingOptions(utils,timezone,section.type,section.format);if(options.length===0){return section.value;}if(shouldSetAbsolute){if(delta>0||isStart){return options[0];}return options[options.length-1];}var currentOptionIndex=options.indexOf(section.value);var newOptionIndex=(currentOptionIndex+delta)%options.length;var clampedIndex=(newOptionIndex+options.length)%options.length;return options[clampedIndex];};if(section.contentType==="digit"||section.contentType==="digit-with-letter"){return adjustDigitSection();}return adjustLetterSection();};var getSectionVisibleValue=function getSectionVisibleValue(section,target,localizedDigits){var value=section.value||section.placeholder;var hasLeadingZeros=target==="non-input"?section.hasLeadingZerosInFormat:section.hasLeadingZerosInInput;if(target==="non-input"&§ion.hasLeadingZerosInInput&&!section.hasLeadingZerosInFormat){value=Number(removeLocalizedDigits(value,localizedDigits)).toString();}var shouldAddInvisibleSpace=["input-rtl","input-ltr"].includes(target)&§ion.contentType==="digit"&&!hasLeadingZeros&&value.length===1;if(shouldAddInvisibleSpace){value="".concat(value,"\u200E");}if(target==="input-rtl"){value="\u2068".concat(value,"\u2069");}return value;};var changeSectionValueFormat=function changeSectionValueFormat(utils,valueStr,currentFormat,newFormat){if(process.env.NODE_ENV!=="production"){if(getDateSectionConfigFromFormatToken(utils,currentFormat).type==="weekDay"){throw new Error("changeSectionValueFormat doesn't support week day formats");}}return utils.formatByString(utils.parse(valueStr,currentFormat),newFormat);};var isFourDigitYearFormat=function isFourDigitYearFormat(utils,format2){return utils.formatByString(utils.date(void 0,"system"),format2).length===4;};var doesSectionFormatHaveLeadingZeros=function doesSectionFormatHaveLeadingZeros(utils,contentType,sectionType,format2){if(contentType!=="digit"){return false;}var now=utils.date(void 0,"default");switch(sectionType){case"year":{if(utils.lib==="dayjs"&&format2==="YY"){return true;}return utils.formatByString(utils.setYear(now,1),format2).startsWith("0");}case"month":{return utils.formatByString(utils.startOfYear(now),format2).length>1;}case"day":{return utils.formatByString(utils.startOfMonth(now),format2).length>1;}case"weekDay":{return utils.formatByString(utils.startOfWeek(now),format2).length>1;}case"hours":{return utils.formatByString(utils.setHours(now,1),format2).length>1;}case"minutes":{return utils.formatByString(utils.setMinutes(now,1),format2).length>1;}case"seconds":{return utils.formatByString(utils.setSeconds(now,1),format2).length>1;}default:{throw new Error("Invalid section type");}}};var getDateFromDateSections=function getDateFromDateSections(utils,sections,localizedDigits){var shouldSkipWeekDays=sections.some(function(section){return section.type==="day";});var sectionFormats=[];var sectionValues=[];for(var _i14=0;_i14<sections.length;_i14+=1){var section=sections[_i14];var shouldSkip=shouldSkipWeekDays&§ion.type==="weekDay";if(!shouldSkip){sectionFormats.push(section.format);sectionValues.push(getSectionVisibleValue(section,"non-input",localizedDigits));}}var formatWithoutSeparator=sectionFormats.join(" ");var dateWithoutSeparatorStr=sectionValues.join(" ");return utils.parse(dateWithoutSeparatorStr,formatWithoutSeparator);};var createDateStrForV7HiddenInputFromSections=function createDateStrForV7HiddenInputFromSections(sections){return sections.map(function(section){return"".concat(section.startSeparator).concat(section.value||section.placeholder).concat(section.endSeparator);}).join("");};var createDateStrForV6InputFromSections=function createDateStrForV6InputFromSections(sections,localizedDigits,isRtl){var formattedSections=sections.map(function(section){var dateValue=getSectionVisibleValue(section,isRtl?"input-rtl":"input-ltr",localizedDigits);return"".concat(section.startSeparator).concat(dateValue).concat(section.endSeparator);});var dateStr=formattedSections.join("");if(!isRtl){return dateStr;}return"\u2066".concat(dateStr,"\u2069");};var getSectionsBoundaries=function getSectionsBoundaries(utils,localizedDigits,timezone){var today=utils.date(void 0,timezone);var endOfYear2=utils.endOfYear(today);var endOfDay=utils.endOfDay(today);var _getMonthsInYear$redu=getMonthsInYear(utils,today).reduce(function(acc,month2){var daysInMonth=utils.getDaysInMonth(month2);if(daysInMonth>acc.maxDaysInMonth){return{maxDaysInMonth:daysInMonth,longestMonth:month2};}return acc;},{maxDaysInMonth:0,longestMonth:null}),maxDaysInMonth=_getMonthsInYear$redu.maxDaysInMonth,longestMonth=_getMonthsInYear$redu.longestMonth;return{year:function year(_ref304){var format2=_ref304.format;return{minimum:0,maximum:isFourDigitYearFormat(utils,format2)?9999:99};},month:function month(){return{minimum:1,// Assumption: All years have the same amount of months
|
|
3458
|
+
};return/* @__PURE__ */React.createElement(Option4,_extends$1({},commonProps,{innerProps:innerProps,data:data,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label2,type:type,value:value,isFocused:isFocused,innerRef:isFocused?_this4.getFocusedOptionRef:void 0}),_this4.formatOptionLabel(props.data,"menu"));};var menuUI;if(this.hasOptions()){menuUI=this.getCategorizedOptions().map(function(item2){if(item2.type==="group"){var _data=item2.data,options=item2.options,groupIndex=item2.index;var groupId="".concat(_this4.getElementId("group"),"-").concat(groupIndex);var headingId="".concat(groupId,"-heading");return/* @__PURE__ */React.createElement(Group3,_extends$1({},commonProps,{key:groupId,data:_data,options:options,Heading:GroupHeading3,headingProps:{id:headingId,data:item2.data},label:_this4.formatGroupLabel(item2.data)}),item2.options.map(function(option){return render(option,"".concat(groupIndex,"-").concat(option.index));}));}else if(item2.type==="option"){return render(item2,"".concat(item2.index));}});}else if(isLoading){var message2=loadingMessage2({inputValue:inputValue});if(message2===null)return null;menuUI=/* @__PURE__ */React.createElement(LoadingMessage3,commonProps,message2);}else{var _message=noOptionsMessage2({inputValue:inputValue});if(_message===null)return null;menuUI=/* @__PURE__ */React.createElement(NoOptionsMessage3,commonProps,_message);}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView};var menuElement=/* @__PURE__ */React.createElement(MenuPlacer,_extends$1({},commonProps,menuPlacementProps),function(_ref4){var ref=_ref4.ref,_ref4$placerProps=_ref4.placerProps,placement=_ref4$placerProps.placement,maxHeight3=_ref4$placerProps.maxHeight;return/* @__PURE__ */React.createElement(Menu4,_extends$1({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this4.onMenuMouseDown,onMouseMove:_this4.onMenuMouseMove},isLoading:isLoading,placement:placement}),/* @__PURE__ */React.createElement(ScrollManager,{captureEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom,lockEnabled:menuShouldBlockScroll},function(scrollTargetRef){return/* @__PURE__ */React.createElement(MenuList4,_extends$1({},commonProps,{innerRef:function innerRef(instance2){_this4.getMenuListRef(instance2);scrollTargetRef(instance2);},innerProps:{role:"listbox","aria-multiselectable":commonProps.isMulti,id:_this4.getElementId("listbox")},isLoading:isLoading,maxHeight:maxHeight3,focusedOption:focusedOption}),menuUI);}));});return menuPortalTarget||menuPosition==="fixed"?/* @__PURE__ */React.createElement(MenuPortal3,_extends$1({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement;}},{key:"renderFormField",value:function renderFormField(){var _this5=this;var _this$props13=this.props,delimiter2=_this$props13.delimiter,isDisabled=_this$props13.isDisabled,isMulti=_this$props13.isMulti,name=_this$props13.name,required=_this$props13.required;var selectValue=this.state.selectValue;if(required&&!this.hasValue()&&!isDisabled){return/* @__PURE__ */React.createElement(RequiredInput$1,{name:name,onFocus:this.onValueInputFocus});}if(!name||isDisabled)return;if(isMulti){if(delimiter2){var value=selectValue.map(function(opt){return _this5.getOptionValue(opt);}).join(delimiter2);return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:value});}else{var input=selectValue.length>0?selectValue.map(function(opt,i){return/* @__PURE__ */React.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this5.getOptionValue(opt)});}):/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:""});return/* @__PURE__ */React.createElement("div",null,input);}}else{var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:_value});}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var commonProps=this.commonProps;var _this$state6=this.state,ariaSelection=_this$state6.ariaSelection,focusedOption=_this$state6.focusedOption,focusedValue=_this$state6.focusedValue,isFocused=_this$state6.isFocused,selectValue=_this$state6.selectValue;var focusableOptions=this.getFocusableOptions();return/* @__PURE__ */React.createElement(LiveRegion$1,_extends$1({},commonProps,{id:this.getElementId("live-region"),ariaSelection:ariaSelection,focusedOption:focusedOption,focusedValue:focusedValue,isFocused:isFocused,selectValue:selectValue,focusableOptions:focusableOptions,isAppleDevice:this.state.isAppleDevice}));}},{key:"render",value:function render(){var _this$getComponents8=this.getComponents(),Control3=_this$getComponents8.Control,IndicatorsContainer3=_this$getComponents8.IndicatorsContainer,SelectContainer3=_this$getComponents8.SelectContainer,ValueContainer3=_this$getComponents8.ValueContainer;var _this$props14=this.props,className=_this$props14.className,id=_this$props14.id,isDisabled=_this$props14.isDisabled,menuIsOpen=_this$props14.menuIsOpen;var isFocused=this.state.isFocused;var commonProps=this.commonProps=this.getCommonProps();return/* @__PURE__ */React.createElement(SelectContainer3,_extends$1({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),/* @__PURE__ */React.createElement(Control3,_extends$1({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),/* @__PURE__ */React.createElement(ValueContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),/* @__PURE__ */React.createElement(IndicatorsContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField());}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var prevProps=state.prevProps,clearFocusValueOnUpdate=state.clearFocusValueOnUpdate,inputIsHiddenAfterUpdate=state.inputIsHiddenAfterUpdate,ariaSelection=state.ariaSelection,isFocused=state.isFocused,prevWasFocused=state.prevWasFocused,instancePrefix=state.instancePrefix;var options=props.options,value=props.value,menuIsOpen=props.menuIsOpen,inputValue=props.inputValue,isMulti=props.isMulti;var selectValue=cleanValue(value);var newMenuOptionsState={};if(prevProps&&(value!==prevProps.value||options!==prevProps.options||menuIsOpen!==prevProps.menuIsOpen||inputValue!==prevProps.inputValue)){var focusableOptions=menuIsOpen?buildFocusableOptions(props,selectValue):[];var focusableOptionsWithIds=menuIsOpen?buildFocusableOptionsWithIds(buildCategorizedOptions(props,selectValue),"".concat(instancePrefix,"-option")):[];var focusedValue=clearFocusValueOnUpdate?getNextFocusedValue(state,selectValue):null;var focusedOption=getNextFocusedOption(state,focusableOptions);var focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusedOption);newMenuOptionsState={selectValue:selectValue,focusedOption:focusedOption,focusedOptionId:focusedOptionId,focusableOptionsWithIds:focusableOptionsWithIds,focusedValue:focusedValue,clearFocusValueOnUpdate:false};}var newInputIsHiddenState=inputIsHiddenAfterUpdate!=null&&props!==prevProps?{inputIsHidden:inputIsHiddenAfterUpdate,inputIsHiddenAfterUpdate:void 0}:{};var newAriaSelection=ariaSelection;var hasKeptFocus=isFocused&&prevWasFocused;if(isFocused&&!hasKeptFocus){newAriaSelection={value:valueTernary(isMulti,selectValue,selectValue[0]||null),options:selectValue,action:"initial-input-focus"};hasKeptFocus=!prevWasFocused;}if((ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"){newAriaSelection=null;}return _objectSpread2(_objectSpread2(_objectSpread2({},newMenuOptionsState),newInputIsHiddenState),{},{prevProps:props,ariaSelection:newAriaSelection,prevWasFocused:hasKeptFocus});}}]);return Select3;}(Component);Select$1.defaultProps=defaultProps;var StateManagedSelect=/* @__PURE__ */forwardRef(function(props,ref){var baseSelectProps=useStateManager(props);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},baseSelectProps));});var StateManagedSelect$1=StateManagedSelect;var isString=function isString(obj){return typeof obj==="string";};var defer=function defer(){var res;var rej;var promise=new Promise(function(resolve,reject){res=resolve;rej=reject;});promise.resolve=res;promise.reject=rej;return promise;};var makeString=function makeString(object){if(object==null)return"";return""+object;};var copy$1=function copy$1(a,s,t){a.forEach(function(m){if(s[m])t[m]=s[m];});};var lastOfPathSeparatorRegExp=/###/g;var cleanKey=function cleanKey(key){return key&&key.indexOf("###")>-1?key.replace(lastOfPathSeparatorRegExp,"."):key;};var canNotTraverseDeeper=function canNotTraverseDeeper(object){return!object||isString(object);};var getLastOfPath=function getLastOfPath(object,path,Empty){var stack=!isString(path)?path:path.split(".");var stackIndex=0;while(stackIndex<stack.length-1){if(canNotTraverseDeeper(object))return{};var key=cleanKey(stack[stackIndex]);if(!object[key]&&Empty)object[key]=new Empty();if(Object.prototype.hasOwnProperty.call(object,key)){object=object[key];}else{object={};}++stackIndex;}if(canNotTraverseDeeper(object))return{};return{obj:object,k:cleanKey(stack[stackIndex])};};var setPath=function setPath(object,path,newValue){var _getLastOfPath=getLastOfPath(object,path,Object),obj=_getLastOfPath.obj,k=_getLastOfPath.k;if(obj!==void 0||path.length===1){obj[k]=newValue;return;}var e=path[path.length-1];var p=path.slice(0,path.length-1);var last=getLastOfPath(object,p,Object);while(last.obj===void 0&&p.length){e="".concat(p[p.length-1],".").concat(e);p=p.slice(0,p.length-1);last=getLastOfPath(object,p,Object);if(last&&last.obj&&typeof last.obj["".concat(last.k,".").concat(e)]!=="undefined"){last.obj=void 0;}}last.obj["".concat(last.k,".").concat(e)]=newValue;};var pushPath=function pushPath(object,path,newValue,concat){var _getLastOfPath2=getLastOfPath(object,path,Object),obj=_getLastOfPath2.obj,k=_getLastOfPath2.k;obj[k]=obj[k]||[];obj[k].push(newValue);};var getPath=function getPath(object,path){var _getLastOfPath3=getLastOfPath(object,path),obj=_getLastOfPath3.obj,k=_getLastOfPath3.k;if(!obj)return void 0;return obj[k];};var getPathWithDefaults=function getPathWithDefaults(data,defaultData,key){var value=getPath(data,key);if(value!==void 0){return value;}return getPath(defaultData,key);};var _deepExtend=function deepExtend(target,source,overwrite){for(var prop in source){if(prop!=="__proto__"&&prop!=="constructor"){if(prop in target){if(isString(target[prop])||target[prop]instanceof String||isString(source[prop])||source[prop]instanceof String){if(overwrite)target[prop]=source[prop];}else{_deepExtend(target[prop],source[prop],overwrite);}}else{target[prop]=source[prop];}}}return target;};var regexEscape=function regexEscape(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");};var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};var escape=function escape(data){if(isString(data)){return data.replace(/[&<>"'\/]/g,function(s){return _entityMap[s];});}return data;};var RegExpCache=/*#__PURE__*/function(){function RegExpCache(capacity){_classCallCheck2(this,RegExpCache);this.capacity=capacity;this.regExpMap=/* @__PURE__ */new Map();this.regExpQueue=[];}return _createClass2(RegExpCache,[{key:"getRegExp",value:function getRegExp(pattern){var regExpFromCache=this.regExpMap.get(pattern);if(regExpFromCache!==void 0){return regExpFromCache;}var regExpNew=new RegExp(pattern);if(this.regExpQueue.length===this.capacity){this.regExpMap.delete(this.regExpQueue.shift());}this.regExpMap.set(pattern,regExpNew);this.regExpQueue.push(pattern);return regExpNew;}}]);}();var chars=[" ",",","?","!",";"];var looksLikeObjectPathRegExpCache=new RegExpCache(20);var looksLikeObjectPath=function looksLikeObjectPath(key,nsSeparator,keySeparator){nsSeparator=nsSeparator||"";keySeparator=keySeparator||"";var possibleChars=chars.filter(function(c){return nsSeparator.indexOf(c)<0&&keySeparator.indexOf(c)<0;});if(possibleChars.length===0)return true;var r2=looksLikeObjectPathRegExpCache.getRegExp("(".concat(possibleChars.map(function(c){return c==="?"?"\\?":c;}).join("|"),")"));var matched=!r2.test(key);if(!matched){var ki=key.indexOf(keySeparator);if(ki>0&&!r2.test(key.substring(0,ki))){matched=true;}}return matched;};var deepFind=function deepFind(obj,path){var keySeparator=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!obj)return void 0;if(obj[path])return obj[path];var tokens=path.split(keySeparator);var current=obj;for(var _i1=0;_i1<tokens.length;){if(!current||_typeof2(current)!=="object"){return void 0;}var next2=void 0;var nextPath="";for(var _j2=_i1;_j2<tokens.length;++_j2){if(_j2!==_i1){nextPath+=keySeparator;}nextPath+=tokens[_j2];next2=current[nextPath];if(next2!==void 0){if(["string","number","boolean"].indexOf(_typeof2(next2))>-1&&_j2<tokens.length-1){continue;}_i1+=_j2-_i1+1;break;}}current=next2;}return current;};var getCleanedCode=function getCleanedCode(code){return code&&code.replace("_","-");};var consoleLogger={type:"logger",log:function log(args){this.output("log",args);},warn:function warn(args){this.output("warn",args);},error:function error(args){this.output("error",args);},output:function output(type,args){if(console&&console[type])console[type].apply(console,args);}};var Logger=/*#__PURE__*/function(){function Logger(concreteLogger){_classCallCheck2(this,Logger);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(concreteLogger,options);}return _createClass2(Logger,[{key:"init",value:function init(concreteLogger){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=options.prefix||"i18next:";this.logger=concreteLogger||consoleLogger;this.options=options;this.debug=options.debug;}},{key:"log",value:function log(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return this.forward(args,"log","",true);}},{key:"warn",value:function warn(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2];}return this.forward(args,"warn","",true);}},{key:"error",value:function error(){for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3];}return this.forward(args,"error","");}},{key:"deprecate",value:function deprecate(){for(var _len4=arguments.length,args=new Array(_len4),_key4=0;_key4<_len4;_key4++){args[_key4]=arguments[_key4];}return this.forward(args,"warn","WARNING DEPRECATED: ",true);}},{key:"forward",value:function forward(args,lvl,prefix2,debugOnly){if(debugOnly&&!this.debug)return null;if(isString(args[0]))args[0]="".concat(prefix2).concat(this.prefix," ").concat(args[0]);return this.logger[lvl](args);}},{key:"create",value:function create(moduleName){return new Logger(this.logger,__spreadValues(__spreadValues({},{prefix:"".concat(this.prefix,":").concat(moduleName,":")}),this.options));}},{key:"clone",value:function clone(options){options=options||this.options;options.prefix=options.prefix||this.prefix;return new Logger(this.logger,options);}}]);}();var baseLogger=new Logger();var EventEmitter=/*#__PURE__*/function(){function EventEmitter(){_classCallCheck2(this,EventEmitter);this.observers={};}return _createClass2(EventEmitter,[{key:"on",value:function on(events,listener){var _this11=this;events.split(" ").forEach(function(event){if(!_this11.observers[event])_this11.observers[event]=/* @__PURE__ */new Map();var numListeners=_this11.observers[event].get(listener)||0;_this11.observers[event].set(listener,numListeners+1);});return this;}},{key:"off",value:function off(event,listener){if(!this.observers[event])return;if(!listener){delete this.observers[event];return;}this.observers[event].delete(listener);}},{key:"emit",value:function emit(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}if(this.observers[event]){var cloned=Array.from(this.observers[event].entries());cloned.forEach(function(_ref3){var _ref297=_slicedToArray2(_ref3,2),observer=_ref297[0],numTimesAdded=_ref297[1];for(var _i10=0;_i10<numTimesAdded;_i10++){observer.apply(void 0,args);}});}if(this.observers["*"]){var _cloned=Array.from(this.observers["*"].entries());_cloned.forEach(function(_ref22){var _ref298=_slicedToArray2(_ref22,2),observer=_ref298[0],numTimesAdded=_ref298[1];for(var _i11=0;_i11<numTimesAdded;_i11++){observer.apply(observer,[event].concat(args));}});}}}]);}();var ResourceStore=/*#__PURE__*/function(_EventEmitter){function ResourceStore(data){var _this12;_classCallCheck2(this,ResourceStore);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};_this12=_callSuper(this,ResourceStore);_this12.data=data||{};_this12.options=options;if(_this12.options.keySeparator===void 0){_this12.options.keySeparator=".";}if(_this12.options.ignoreJSONStructure===void 0){_this12.options.ignoreJSONStructure=true;}return _this12;}_inherits2(ResourceStore,_EventEmitter);return _createClass2(ResourceStore,[{key:"addNamespaces",value:function addNamespaces(ns){if(this.options.ns.indexOf(ns)<0){this.options.ns.push(ns);}}},{key:"removeNamespaces",value:function removeNamespaces(ns){var index2=this.options.ns.indexOf(ns);if(index2>-1){this.options.ns.splice(index2,1);}}},{key:"getResource",value:function getResource(lng,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var ignoreJSONStructure=options.ignoreJSONStructure!==void 0?options.ignoreJSONStructure:this.options.ignoreJSONStructure;var path;if(lng.indexOf(".")>-1){path=lng.split(".");}else{path=[lng,ns];if(key){if(Array.isArray(key)){var _path;(_path=path).push.apply(_path,_toConsumableArray2(key));}else if(isString(key)&&keySeparator){var _path2;(_path2=path).push.apply(_path2,_toConsumableArray2(key.split(keySeparator)));}else{path.push(key);}}}var result=getPath(this.data,path);if(!result&&!ns&&!key&&lng.indexOf(".")>-1){lng=path[0];ns=path[1];key=path.slice(2).join(".");}if(result||!ignoreJSONStructure||!isString(key))return result;return deepFind(this.data&&this.data[lng]&&this.data[lng][ns],key,keySeparator);}},{key:"addResource",value:function addResource(lng,ns,key,value){var options=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:false};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var path=[lng,ns];if(key)path=path.concat(keySeparator?key.split(keySeparator):key);if(lng.indexOf(".")>-1){path=lng.split(".");value=ns;ns=path[1];}this.addNamespaces(ns);setPath(this.data,path,value);if(!options.silent)this.emit("added",lng,ns,key,value);}},{key:"addResources",value:function addResources(lng,ns,resources2){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:false};for(var m in resources2){if(isString(resources2[m])||Array.isArray(resources2[m]))this.addResource(lng,ns,m,resources2[m],{silent:true});}if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"addResourceBundle",value:function addResourceBundle(lng,ns,resources2,deep,overwrite){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:false,skipCopy:false};var path=[lng,ns];if(lng.indexOf(".")>-1){path=lng.split(".");deep=resources2;resources2=ns;ns=path[1];}this.addNamespaces(ns);var pack=getPath(this.data,path)||{};if(!options.skipCopy)resources2=JSON.parse(JSON.stringify(resources2));if(deep){_deepExtend(pack,resources2,overwrite);}else{pack=__spreadValues(__spreadValues({},pack),resources2);}setPath(this.data,path,pack);if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"removeResourceBundle",value:function removeResourceBundle(lng,ns){if(this.hasResourceBundle(lng,ns)){delete this.data[lng][ns];}this.removeNamespaces(ns);this.emit("removed",lng,ns);}},{key:"hasResourceBundle",value:function hasResourceBundle(lng,ns){return this.getResource(lng,ns)!==void 0;}},{key:"getResourceBundle",value:function getResourceBundle(lng,ns){if(!ns)ns=this.options.defaultNS;if(this.options.compatibilityAPI==="v1")return __spreadValues(__spreadValues({},{}),this.getResource(lng,ns));return this.getResource(lng,ns);}},{key:"getDataByLanguage",value:function getDataByLanguage(lng){return this.data[lng];}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(lng){var data=this.getDataByLanguage(lng);var n=data&&Object.keys(data)||[];return!!n.find(function(v){return data[v]&&Object.keys(data[v]).length>0;});}},{key:"toJSON",value:function toJSON(){return this.data;}}]);}(EventEmitter);var postProcessor={processors:{},addPostProcessor:function addPostProcessor(module){this.processors[module.name]=module;},handle:function handle(processors,value,key,options,translator){var _this13=this;processors.forEach(function(processor){if(_this13.processors[processor])value=_this13.processors[processor].process(value,key,options,translator);});return value;}};var checkedLoadedFor={};var Translator=/*#__PURE__*/function(_EventEmitter2){function Translator(services){var _this14;_classCallCheck2(this,Translator);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_this14=_callSuper(this,Translator);copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],services,_this14);_this14.options=options;if(_this14.options.keySeparator===void 0){_this14.options.keySeparator=".";}_this14.logger=baseLogger.create("translator");return _this14;}_inherits2(Translator,_EventEmitter2);return _createClass2(Translator,[{key:"changeLanguage",value:function changeLanguage(lng){if(lng)this.language=lng;}},{key:"exists",value:function exists(key){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(key===void 0||key===null){return false;}var resolved=this.resolve(key,options);return resolved&&resolved.res!==void 0;}},{key:"extractFromKey",value:function extractFromKey(key,options){var nsSeparator=options.nsSeparator!==void 0?options.nsSeparator:this.options.nsSeparator;if(nsSeparator===void 0)nsSeparator=":";var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var namespaces=options.ns||this.options.defaultNS||[];var wouldCheckForNsInKey=nsSeparator&&key.indexOf(nsSeparator)>-1;var seemsNaturalLanguage=!this.options.userDefinedKeySeparator&&!options.keySeparator&&!this.options.userDefinedNsSeparator&&!options.nsSeparator&&!looksLikeObjectPath(key,nsSeparator,keySeparator);if(wouldCheckForNsInKey&&!seemsNaturalLanguage){var m=key.match(this.interpolator.nestingRegexp);if(m&&m.length>0){return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}var parts=key.split(nsSeparator);if(nsSeparator!==keySeparator||nsSeparator===keySeparator&&this.options.ns.indexOf(parts[0])>-1)namespaces=parts.shift();key=parts.join(keySeparator);}return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}},{key:"translate",value:function translate(keys2,options,lastKey){var _this15=this;if(_typeof2(options)!=="object"&&this.options.overloadTranslationOptionHandler){options=this.options.overloadTranslationOptionHandler(arguments);}if(_typeof2(options)==="object")options=__spreadValues({},options);if(!options)options={};if(keys2===void 0||keys2===null)return"";if(!Array.isArray(keys2))keys2=[String(keys2)];var returnDetails=options.returnDetails!==void 0?options.returnDetails:this.options.returnDetails;var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var _this$extractFromKey=this.extractFromKey(keys2[keys2.length-1],options),key=_this$extractFromKey.key,namespaces=_this$extractFromKey.namespaces;var namespace=namespaces[namespaces.length-1];var lng=options.lng||this.language;var appendNamespaceToCIMode=options.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lng&&lng.toLowerCase()==="cimode"){if(appendNamespaceToCIMode){var nsSeparator=options.nsSeparator||this.options.nsSeparator;if(returnDetails){return{res:"".concat(namespace).concat(nsSeparator).concat(key),usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return"".concat(namespace).concat(nsSeparator).concat(key);}if(returnDetails){return{res:key,usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return key;}var resolved=this.resolve(keys2,options);var res=resolved&&resolved.res;var resUsedKey=resolved&&resolved.usedKey||key;var resExactUsedKey=resolved&&resolved.exactUsedKey||key;var resType=Object.prototype.toString.apply(res);var noObject=["[object Number]","[object Function]","[object RegExp]"];var joinArrays=options.joinArrays!==void 0?options.joinArrays:this.options.joinArrays;var handleAsObjectInI18nFormat=!this.i18nFormat||this.i18nFormat.handleAsObject;var handleAsObject=!isString(res)&&typeof res!=="boolean"&&typeof res!=="number";if(handleAsObjectInI18nFormat&&res&&handleAsObject&&noObject.indexOf(resType)<0&&!(isString(joinArrays)&&Array.isArray(res))){if(!options.returnObjects&&!this.options.returnObjects){if(!this.options.returnedObjectHandler){this.logger.warn("accessing an object - but returnObjects options is not enabled!");}var r2=this.options.returnedObjectHandler?this.options.returnedObjectHandler(resUsedKey,res,__spreadProps(__spreadValues({},options),{ns:namespaces})):"key '".concat(key," (").concat(this.language,")' returned an object instead of string.");if(returnDetails){resolved.res=r2;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return r2;}if(keySeparator){var resTypeIsArray=Array.isArray(res);var copy2=resTypeIsArray?[]:{};var newKeyToUse=resTypeIsArray?resExactUsedKey:resUsedKey;for(var m in res){if(Object.prototype.hasOwnProperty.call(res,m)){var deepKey="".concat(newKeyToUse).concat(keySeparator).concat(m);copy2[m]=this.translate(deepKey,__spreadValues(__spreadValues({},options),{joinArrays:false,ns:namespaces}));if(copy2[m]===deepKey)copy2[m]=res[m];}}res=copy2;}}else if(handleAsObjectInI18nFormat&&isString(joinArrays)&&Array.isArray(res)){res=res.join(joinArrays);if(res)res=this.extendTranslation(res,keys2,options,lastKey);}else{var usedDefault=false;var usedKey=false;var needsPluralHandling=options.count!==void 0&&!isString(options.count);var hasDefaultValue=Translator.hasDefaultValue(options);var defaultValueSuffix=needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,options):"";var defaultValueSuffixOrdinalFallback=options.ordinal&&needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,{ordinal:false}):"";var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&this.pluralResolver.shouldUseIntlApi();var defaultValue=needsZeroSuffixLookup&&options["defaultValue".concat(this.options.pluralSeparator,"zero")]||options["defaultValue".concat(defaultValueSuffix)]||options["defaultValue".concat(defaultValueSuffixOrdinalFallback)]||options.defaultValue;if(!this.isValidLookup(res)&&hasDefaultValue){usedDefault=true;res=defaultValue;}if(!this.isValidLookup(res)){usedKey=true;res=key;}var missingKeyNoValueFallbackToKey=options.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey;var resForMissing=missingKeyNoValueFallbackToKey&&usedKey?void 0:res;var updateMissing=hasDefaultValue&&defaultValue!==res&&this.options.updateMissing;if(usedKey||usedDefault||updateMissing){this.logger.log(updateMissing?"updateKey":"missingKey",lng,namespace,key,updateMissing?defaultValue:res);if(keySeparator){var fk=this.resolve(key,__spreadProps(__spreadValues({},options),{keySeparator:false}));if(fk&&fk.res)this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");}var lngs=[];var fallbackLngs=this.languageUtils.getFallbackCodes(this.options.fallbackLng,options.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fallbackLngs&&fallbackLngs[0]){for(var _i12=0;_i12<fallbackLngs.length;_i12++){lngs.push(fallbackLngs[_i12]);}}else if(this.options.saveMissingTo==="all"){lngs=this.languageUtils.toResolveHierarchy(options.lng||this.language);}else{lngs.push(options.lng||this.language);}var send=function send(l,k,specificDefaultValue){var defaultForMissing=hasDefaultValue&&specificDefaultValue!==res?specificDefaultValue:resForMissing;if(_this15.options.missingKeyHandler){_this15.options.missingKeyHandler(l,namespace,k,defaultForMissing,updateMissing,options);}else if(_this15.backendConnector&&_this15.backendConnector.saveMissing){_this15.backendConnector.saveMissing(l,namespace,k,defaultForMissing,updateMissing,options);}_this15.emit("missingKey",l,namespace,k,res);};if(this.options.saveMissing){if(this.options.saveMissingPlurals&&needsPluralHandling){lngs.forEach(function(language){var suffixes=_this15.pluralResolver.getSuffixes(language,options);if(needsZeroSuffixLookup&&options["defaultValue".concat(_this15.options.pluralSeparator,"zero")]&&suffixes.indexOf("".concat(_this15.options.pluralSeparator,"zero"))<0){suffixes.push("".concat(_this15.options.pluralSeparator,"zero"));}suffixes.forEach(function(suffix){send([language],key+suffix,options["defaultValue".concat(suffix)]||defaultValue);});});}else{send(lngs,key,defaultValue);}}}res=this.extendTranslation(res,keys2,options,resolved,lastKey);if(usedKey&&res===key&&this.options.appendNamespaceToMissingKey)res="".concat(namespace,":").concat(key);if((usedKey||usedDefault)&&this.options.parseMissingKeyHandler){if(this.options.compatibilityAPI!=="v1"){res=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(namespace,":").concat(key):key,usedDefault?res:void 0);}else{res=this.options.parseMissingKeyHandler(res);}}}if(returnDetails){resolved.res=res;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return res;}},{key:"extendTranslation",value:function extendTranslation(res,key,options,resolved,lastKey){var _this=this;if(this.i18nFormat&&this.i18nFormat.parse){res=this.i18nFormat.parse(res,__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),options),options.lng||this.language||resolved.usedLng,resolved.usedNS,resolved.usedKey,{resolved:resolved});}else if(!options.skipInterpolation){if(options.interpolation)this.interpolator.init(__spreadValues(__spreadValues({},options),{interpolation:__spreadValues(__spreadValues({},this.options.interpolation),options.interpolation)}));var skipOnVariables=isString(res)&&(options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);var nestBef;if(skipOnVariables){var nb=res.match(this.interpolator.nestingRegexp);nestBef=nb&&nb.length;}var data=options.replace&&!isString(options.replace)?options.replace:options;if(this.options.interpolation.defaultVariables)data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);res=this.interpolator.interpolate(res,data,options.lng||this.language||resolved.usedLng,options);if(skipOnVariables){var na=res.match(this.interpolator.nestingRegexp);var nestAft=na&&na.length;if(nestBef<nestAft)options.nest=false;}if(!options.lng&&this.options.compatibilityAPI!=="v1"&&resolved&&resolved.res)options.lng=this.language||resolved.usedLng;if(options.nest!==false)res=this.interpolator.nest(res,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}if(lastKey&&lastKey[0]===args[0]&&!options.context){_this.logger.warn("It seems you are nesting recursively key: ".concat(args[0]," in key: ").concat(key[0]));return null;}return _this.translate.apply(_this,args.concat([key]));},options);if(options.interpolation)this.interpolator.reset();}var postProcess=options.postProcess||this.options.postProcess;var postProcessorNames=isString(postProcess)?[postProcess]:postProcess;if(res!==void 0&&res!==null&&postProcessorNames&&postProcessorNames.length&&options.applyPostProcessor!==false){res=postProcessor.handle(postProcessorNames,res,key,this.options&&this.options.postProcessPassResolved?__spreadValues({i18nResolved:__spreadProps(__spreadValues({},resolved),{usedParams:this.getUsedParamsDetails(options)})},options):options,this);}return res;}},{key:"resolve",value:function resolve(keys2){var _this16=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var found;var usedKey;var exactUsedKey;var usedLng;var usedNS;if(isString(keys2))keys2=[keys2];keys2.forEach(function(k){if(_this16.isValidLookup(found))return;var extracted=_this16.extractFromKey(k,options);var key=extracted.key;usedKey=key;var namespaces=extracted.namespaces;if(_this16.options.fallbackNS)namespaces=namespaces.concat(_this16.options.fallbackNS);var needsPluralHandling=options.count!==void 0&&!isString(options.count);var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&_this16.pluralResolver.shouldUseIntlApi();var needsContextHandling=options.context!==void 0&&(isString(options.context)||typeof options.context==="number")&&options.context!=="";var codes=options.lngs?options.lngs:_this16.languageUtils.toResolveHierarchy(options.lng||_this16.language,options.fallbackLng);namespaces.forEach(function(ns){if(_this16.isValidLookup(found))return;usedNS=ns;if(!checkedLoadedFor["".concat(codes[0],"-").concat(ns)]&&_this16.utils&&_this16.utils.hasLoadedNamespace&&!_this16.utils.hasLoadedNamespace(usedNS)){checkedLoadedFor["".concat(codes[0],"-").concat(ns)]=true;_this16.logger.warn("key \"".concat(usedKey,"\" for languages \"").concat(codes.join(", "),"\" won't get resolved as namespace \"").concat(usedNS,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");}codes.forEach(function(code){if(_this16.isValidLookup(found))return;usedLng=code;var finalKeys=[key];if(_this16.i18nFormat&&_this16.i18nFormat.addLookupKeys){_this16.i18nFormat.addLookupKeys(finalKeys,key,code,ns,options);}else{var pluralSuffix;if(needsPluralHandling)pluralSuffix=_this16.pluralResolver.getSuffix(code,options.count,options);var zeroSuffix="".concat(_this16.options.pluralSeparator,"zero");var ordinalPrefix="".concat(_this16.options.pluralSeparator,"ordinal").concat(_this16.options.pluralSeparator);if(needsPluralHandling){finalKeys.push(key+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(key+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(key+zeroSuffix);}}if(needsContextHandling){var contextKey="".concat(key).concat(_this16.options.contextSeparator).concat(options.context);finalKeys.push(contextKey);if(needsPluralHandling){finalKeys.push(contextKey+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(contextKey+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(contextKey+zeroSuffix);}}}}var possibleKey;while(possibleKey=finalKeys.pop()){if(!_this16.isValidLookup(found)){exactUsedKey=possibleKey;found=_this16.getResource(code,ns,possibleKey,options);}}});});});return{res:found,usedKey:usedKey,exactUsedKey:exactUsedKey,usedLng:usedLng,usedNS:usedNS};}},{key:"isValidLookup",value:function isValidLookup(res){return res!==void 0&&!(!this.options.returnNull&&res===null)&&!(!this.options.returnEmptyString&&res==="");}},{key:"getResource",value:function getResource(code,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(this.i18nFormat&&this.i18nFormat.getResource)return this.i18nFormat.getResource(code,ns,key,options);return this.resourceStore.getResource(code,ns,key,options);}},{key:"getUsedParamsDetails",value:function getUsedParamsDetails(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var optionsKeys=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"];var useOptionsReplaceForData=options.replace&&!isString(options.replace);var data=useOptionsReplaceForData?options.replace:options;if(useOptionsReplaceForData&&typeof options.count!=="undefined"){data.count=options.count;}if(this.options.interpolation.defaultVariables){data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);}if(!useOptionsReplaceForData){data=__spreadValues({},data);var _iterator4=_createForOfIteratorHelper(optionsKeys),_step5;try{for(_iterator4.s();!(_step5=_iterator4.n()).done;){var key=_step5.value;delete data[key];}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}return data;}}],[{key:"hasDefaultValue",value:function hasDefaultValue(options){var prefix2="defaultValue";for(var option in options){if(Object.prototype.hasOwnProperty.call(options,option)&&prefix2===option.substring(0,prefix2.length)&&void 0!==options[option]){return true;}}return false;}}]);}(EventEmitter);var capitalize=function capitalize(string){return string.charAt(0).toUpperCase()+string.slice(1);};var LanguageUtil=/*#__PURE__*/function(){function LanguageUtil(options){_classCallCheck2(this,LanguageUtil);this.options=options;this.supportedLngs=this.options.supportedLngs||false;this.logger=baseLogger.create("languageUtils");}return _createClass2(LanguageUtil,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return null;var p=code.split("-");if(p.length===2)return null;p.pop();if(p[p.length-1].toLowerCase()==="x")return null;return this.formatLanguageCode(p.join("-"));}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return code;var p=code.split("-");return this.formatLanguageCode(p[0]);}},{key:"formatLanguageCode",value:function formatLanguageCode(code){if(isString(code)&&code.indexOf("-")>-1){if(typeof Intl!=="undefined"&&typeof Intl.getCanonicalLocales!=="undefined"){try{var formattedCode=Intl.getCanonicalLocales(code)[0];if(formattedCode&&this.options.lowerCaseLng){formattedCode=formattedCode.toLowerCase();}if(formattedCode)return formattedCode;}catch(e){}}var specialCases=["hans","hant","latn","cyrl","cans","mong","arab"];var p=code.split("-");if(this.options.lowerCaseLng){p=p.map(function(part){return part.toLowerCase();});}else if(p.length===2){p[0]=p[0].toLowerCase();p[1]=p[1].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());}else if(p.length===3){p[0]=p[0].toLowerCase();if(p[1].length===2)p[1]=p[1].toUpperCase();if(p[0]!=="sgn"&&p[2].length===2)p[2]=p[2].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());if(specialCases.indexOf(p[2].toLowerCase())>-1)p[2]=capitalize(p[2].toLowerCase());}return p.join("-");}return this.options.cleanCode||this.options.lowerCaseLng?code.toLowerCase():code;}},{key:"isSupportedCode",value:function isSupportedCode(code){if(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs){code=this.getLanguagePartFromCode(code);}return!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(code)>-1;}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(codes){var _this17=this;if(!codes)return null;var found;codes.forEach(function(code){if(found)return;var cleanedLng=_this17.formatLanguageCode(code);if(!_this17.options.supportedLngs||_this17.isSupportedCode(cleanedLng))found=cleanedLng;});if(!found&&this.options.supportedLngs){codes.forEach(function(code){if(found)return;var lngOnly=_this17.getLanguagePartFromCode(code);if(_this17.isSupportedCode(lngOnly))return found=lngOnly;found=_this17.options.supportedLngs.find(function(supportedLng){if(supportedLng===lngOnly)return supportedLng;if(supportedLng.indexOf("-")<0&&lngOnly.indexOf("-")<0)return;if(supportedLng.indexOf("-")>0&&lngOnly.indexOf("-")<0&&supportedLng.substring(0,supportedLng.indexOf("-"))===lngOnly)return supportedLng;if(supportedLng.indexOf(lngOnly)===0&&lngOnly.length>1)return supportedLng;});});}if(!found)found=this.getFallbackCodes(this.options.fallbackLng)[0];return found;}},{key:"getFallbackCodes",value:function getFallbackCodes(fallbacks,code){if(!fallbacks)return[];if(typeof fallbacks==="function")fallbacks=fallbacks(code);if(isString(fallbacks))fallbacks=[fallbacks];if(Array.isArray(fallbacks))return fallbacks;if(!code)return fallbacks.default||[];var found=fallbacks[code];if(!found)found=fallbacks[this.getScriptPartFromCode(code)];if(!found)found=fallbacks[this.formatLanguageCode(code)];if(!found)found=fallbacks[this.getLanguagePartFromCode(code)];if(!found)found=fallbacks.default;return found||[];}},{key:"toResolveHierarchy",value:function toResolveHierarchy(code,fallbackCode){var _this18=this;var fallbackCodes=this.getFallbackCodes(fallbackCode||this.options.fallbackLng||[],code);var codes=[];var addCode=function addCode(c){if(!c)return;if(_this18.isSupportedCode(c)){codes.push(c);}else{_this18.logger.warn("rejecting language code not found in supportedLngs: ".concat(c));}};if(isString(code)&&(code.indexOf("-")>-1||code.indexOf("_")>-1)){if(this.options.load!=="languageOnly")addCode(this.formatLanguageCode(code));if(this.options.load!=="languageOnly"&&this.options.load!=="currentOnly")addCode(this.getScriptPartFromCode(code));if(this.options.load!=="currentOnly")addCode(this.getLanguagePartFromCode(code));}else if(isString(code)){addCode(this.formatLanguageCode(code));}fallbackCodes.forEach(function(fc){if(codes.indexOf(fc)<0)addCode(_this18.formatLanguageCode(fc));});return codes;}}]);}();var sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}];var _rulesPluralsTypes={1:function _(n){return Number(n>1);},2:function _(n){return Number(n!=1);},3:function _(n){return 0;},4:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},5:function _(n){return Number(n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5);},6:function _(n){return Number(n==1?0:n>=2&&n<=4?1:2);},7:function _(n){return Number(n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},8:function _(n){return Number(n==1?0:n==2?1:n!=8&&n!=11?2:3);},9:function _(n){return Number(n>=2);},10:function _(n){return Number(n==1?0:n==2?1:n<7?2:n<11?3:4);},11:function _(n){return Number(n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3);},12:function _(n){return Number(n%10!=1||n%100==11);},13:function _(n){return Number(n!==0);},14:function _(n){return Number(n==1?0:n==2?1:n==3?2:3);},15:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2);},16:function _(n){return Number(n%10==1&&n%100!=11?0:n!==0?1:2);},17:function _(n){return Number(n==1||n%10==1&&n%100!=11?0:1);},18:function _(n){return Number(n==0?0:n==1?1:2);},19:function _(n){return Number(n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3);},20:function _(n){return Number(n==1?0:n==0||n%100>0&&n%100<20?1:2);},21:function _(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0);},22:function _(n){return Number(n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3);}};var nonIntlVersions=["v1","v2","v3"];var intlVersions=["v4"];var suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};var createRules=function createRules(){var rules={};sets.forEach(function(set){set.lngs.forEach(function(l){rules[l]={numbers:set.nr,plurals:_rulesPluralsTypes[set.fc]};});});return rules;};var PluralResolver=/*#__PURE__*/function(){function PluralResolver(languageUtils){_classCallCheck2(this,PluralResolver);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=languageUtils;this.options=options;this.logger=baseLogger.create("pluralResolver");if((!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl==="undefined"||!Intl.PluralRules)){this.options.compatibilityJSON="v3";this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.");}this.rules=createRules();this.pluralRulesCache={};}return _createClass2(PluralResolver,[{key:"addRule",value:function addRule(lng,obj){this.rules[lng]=obj;}},{key:"clearCache",value:function clearCache(){this.pluralRulesCache={};}},{key:"getRule",value:function getRule(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){var cleanedCode=getCleanedCode(code==="dev"?"en":code);var type=options.ordinal?"ordinal":"cardinal";var cacheKey=JSON.stringify({cleanedCode:cleanedCode,type:type});if(cacheKey in this.pluralRulesCache){return this.pluralRulesCache[cacheKey];}var rule;try{rule=new Intl.PluralRules(cleanedCode,{type:type});}catch(err){if(!code.match(/-|_/))return;var lngPart=this.languageUtils.getLanguagePartFromCode(code);rule=this.getRule(lngPart,options);}this.pluralRulesCache[cacheKey]=rule;return rule;}return this.rules[code]||this.rules[this.languageUtils.getLanguagePartFromCode(code)];}},{key:"needsPlural",value:function needsPlural(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(this.shouldUseIntlApi()){return rule&&rule.resolvedOptions().pluralCategories.length>1;}return rule&&rule.numbers.length>1;}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(code,key){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(code,options).map(function(suffix){return"".concat(key).concat(suffix);});}},{key:"getSuffixes",value:function getSuffixes(code){var _this19=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(!rule){return[];}if(this.shouldUseIntlApi()){return rule.resolvedOptions().pluralCategories.sort(function(pluralCategory1,pluralCategory2){return suffixesOrder[pluralCategory1]-suffixesOrder[pluralCategory2];}).map(function(pluralCategory){return"".concat(_this19.options.prepend).concat(options.ordinal?"ordinal".concat(_this19.options.prepend):"").concat(pluralCategory);});}return rule.numbers.map(function(number){return _this19.getSuffix(code,number,options);});}},{key:"getSuffix",value:function getSuffix(code,count2){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var rule=this.getRule(code,options);if(rule){if(this.shouldUseIntlApi()){return"".concat(this.options.prepend).concat(options.ordinal?"ordinal".concat(this.options.prepend):"").concat(rule.select(count2));}return this.getSuffixRetroCompatible(rule,count2);}this.logger.warn("no plural rule found for: ".concat(code));return"";}},{key:"getSuffixRetroCompatible",value:function getSuffixRetroCompatible(rule,count2){var _this20=this;var idx=rule.noAbs?rule.plurals(count2):rule.plurals(Math.abs(count2));var suffix=rule.numbers[idx];if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){if(suffix===2){suffix="plural";}else if(suffix===1){suffix="";}}var returnSuffix=function returnSuffix(){return _this20.options.prepend&&suffix.toString()?_this20.options.prepend+suffix.toString():suffix.toString();};if(this.options.compatibilityJSON==="v1"){if(suffix===1)return"";if(typeof suffix==="number")return"_plural_".concat(suffix.toString());return returnSuffix();}else if(this.options.compatibilityJSON==="v2"){return returnSuffix();}else if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){return returnSuffix();}return this.options.prepend&&idx.toString()?this.options.prepend+idx.toString():idx.toString();}},{key:"shouldUseIntlApi",value:function shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON);}}]);}();var deepFindWithDefaults=function deepFindWithDefaults(data,defaultData,key){var keySeparator=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".";var ignoreJSONStructure=arguments.length>4&&arguments[4]!==void 0?arguments[4]:true;var path=getPathWithDefaults(data,defaultData,key);if(!path&&ignoreJSONStructure&&isString(key)){path=deepFind(data,key,keySeparator);if(path===void 0)path=deepFind(defaultData,key,keySeparator);}return path;};var regexSafe=function regexSafe(val){return val.replace(/\$/g,"$$$$");};var Interpolator=/*#__PURE__*/function(){function Interpolator(){_classCallCheck2(this,Interpolator);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator");this.options=options;this.format=options.interpolation&&options.interpolation.format||function(value){return value;};this.init(options);}return _createClass2(Interpolator,[{key:"init",value:function init(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!options.interpolation)options.interpolation={escapeValue:true};var _options$interpolatio=options.interpolation,escape$1=_options$interpolatio.escape,escapeValue=_options$interpolatio.escapeValue,useRawValueToEscape=_options$interpolatio.useRawValueToEscape,prefix2=_options$interpolatio.prefix,prefixEscaped=_options$interpolatio.prefixEscaped,suffix=_options$interpolatio.suffix,suffixEscaped=_options$interpolatio.suffixEscaped,formatSeparator=_options$interpolatio.formatSeparator,unescapeSuffix=_options$interpolatio.unescapeSuffix,unescapePrefix=_options$interpolatio.unescapePrefix,nestingPrefix=_options$interpolatio.nestingPrefix,nestingPrefixEscaped=_options$interpolatio.nestingPrefixEscaped,nestingSuffix=_options$interpolatio.nestingSuffix,nestingSuffixEscaped=_options$interpolatio.nestingSuffixEscaped,nestingOptionsSeparator=_options$interpolatio.nestingOptionsSeparator,maxReplaces=_options$interpolatio.maxReplaces,alwaysFormat=_options$interpolatio.alwaysFormat;this.escape=escape$1!==void 0?escape$1:escape;this.escapeValue=escapeValue!==void 0?escapeValue:true;this.useRawValueToEscape=useRawValueToEscape!==void 0?useRawValueToEscape:false;this.prefix=prefix2?regexEscape(prefix2):prefixEscaped||"{{";this.suffix=suffix?regexEscape(suffix):suffixEscaped||"}}";this.formatSeparator=formatSeparator||",";this.unescapePrefix=unescapeSuffix?"":unescapePrefix||"-";this.unescapeSuffix=this.unescapePrefix?"":unescapeSuffix||"";this.nestingPrefix=nestingPrefix?regexEscape(nestingPrefix):nestingPrefixEscaped||regexEscape("$t(");this.nestingSuffix=nestingSuffix?regexEscape(nestingSuffix):nestingSuffixEscaped||regexEscape(")");this.nestingOptionsSeparator=nestingOptionsSeparator||",";this.maxReplaces=maxReplaces||1e3;this.alwaysFormat=alwaysFormat!==void 0?alwaysFormat:false;this.resetRegExp();}},{key:"reset",value:function reset(){if(this.options)this.init(this.options);}},{key:"resetRegExp",value:function resetRegExp(){var getOrResetRegExp=function getOrResetRegExp(existingRegExp,pattern){if(existingRegExp&&existingRegExp.source===pattern){existingRegExp.lastIndex=0;return existingRegExp;}return new RegExp(pattern,"g");};this.regexp=getOrResetRegExp(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix));this.regexpUnescape=getOrResetRegExp(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix));this.nestingRegexp=getOrResetRegExp(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix));}},{key:"interpolate",value:function interpolate(str,data,lng,options){var _this21=this;var match2;var value;var replaces;var defaultData=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};var handleFormat=function handleFormat(key){if(key.indexOf(_this21.formatSeparator)<0){var path=deepFindWithDefaults(data,defaultData,key,_this21.options.keySeparator,_this21.options.ignoreJSONStructure);return _this21.alwaysFormat?_this21.format(path,void 0,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:key})):path;}var p=key.split(_this21.formatSeparator);var k=p.shift().trim();var f=p.join(_this21.formatSeparator).trim();return _this21.format(deepFindWithDefaults(data,defaultData,k,_this21.options.keySeparator,_this21.options.ignoreJSONStructure),f,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:k}));};this.resetRegExp();var missingInterpolationHandler=options&&options.missingInterpolationHandler||this.options.missingInterpolationHandler;var skipOnVariables=options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;var todos=[{regex:this.regexpUnescape,safeValue:function safeValue(val){return regexSafe(val);}},{regex:this.regexp,safeValue:function safeValue(val){return _this21.escapeValue?regexSafe(_this21.escape(val)):regexSafe(val);}}];todos.forEach(function(todo){replaces=0;while(match2=todo.regex.exec(str)){var matchedVar=match2[1].trim();value=handleFormat(matchedVar);if(value===void 0){if(typeof missingInterpolationHandler==="function"){var temp=missingInterpolationHandler(str,match2,options);value=isString(temp)?temp:"";}else if(options&&Object.prototype.hasOwnProperty.call(options,matchedVar)){value="";}else if(skipOnVariables){value=match2[0];continue;}else{_this21.logger.warn("missed to pass in variable ".concat(matchedVar," for interpolating ").concat(str));value="";}}else if(!isString(value)&&!_this21.useRawValueToEscape){value=makeString(value);}var safeValue=todo.safeValue(value);str=str.replace(match2[0],safeValue);if(skipOnVariables){todo.regex.lastIndex+=value.length;todo.regex.lastIndex-=match2[0].length;}else{todo.regex.lastIndex=0;}replaces++;if(replaces>=_this21.maxReplaces){break;}}});return str;}},{key:"nest",value:function nest(str,fc){var _this22=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var match2;var value;var clonedOptions;var handleHasOptions=function handleHasOptions(key,inheritedOptions){var sep=_this22.nestingOptionsSeparator;if(key.indexOf(sep)<0)return key;var c=key.split(new RegExp("".concat(sep,"[ ]*{")));var optionsString="{".concat(c[1]);key=c[0];optionsString=_this22.interpolate(optionsString,clonedOptions);var matchedSingleQuotes=optionsString.match(/'/g);var matchedDoubleQuotes=optionsString.match(/"/g);if(matchedSingleQuotes&&matchedSingleQuotes.length%2===0&&!matchedDoubleQuotes||matchedDoubleQuotes.length%2!==0){optionsString=optionsString.replace(/'/g,'"');}try{clonedOptions=JSON.parse(optionsString);if(inheritedOptions)clonedOptions=__spreadValues(__spreadValues({},inheritedOptions),clonedOptions);}catch(e){_this22.logger.warn("failed parsing options string in nesting for key ".concat(key),e);return"".concat(key).concat(sep).concat(optionsString);}if(clonedOptions.defaultValue&&clonedOptions.defaultValue.indexOf(_this22.prefix)>-1)delete clonedOptions.defaultValue;return key;};while(match2=this.nestingRegexp.exec(str)){var formatters2=[];clonedOptions=__spreadValues({},options);clonedOptions=clonedOptions.replace&&!isString(clonedOptions.replace)?clonedOptions.replace:clonedOptions;clonedOptions.applyPostProcessor=false;delete clonedOptions.defaultValue;var doReduce=false;if(match2[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(match2[1])){var r2=match2[1].split(this.formatSeparator).map(function(elem){return elem.trim();});match2[1]=r2.shift();formatters2=r2;doReduce=true;}value=fc(handleHasOptions.call(this,match2[1].trim(),clonedOptions),clonedOptions);if(value&&match2[0]===str&&!isString(value))return value;if(!isString(value))value=makeString(value);if(!value){this.logger.warn("missed to resolve ".concat(match2[1]," for nesting ").concat(str));value="";}if(doReduce){value=formatters2.reduce(function(v,f){return _this22.format(v,f,options.lng,__spreadProps(__spreadValues({},options),{interpolationkey:match2[1].trim()}));},value.trim());}str=str.replace(match2[0],value);this.regexp.lastIndex=0;}return str;}}]);}();var parseFormatStr=function parseFormatStr(formatStr){var formatName=formatStr.toLowerCase().trim();var formatOptions={};if(formatStr.indexOf("(")>-1){var p=formatStr.split("(");formatName=p[0].toLowerCase().trim();var optStr=p[1].substring(0,p[1].length-1);if(formatName==="currency"&&optStr.indexOf(":")<0){if(!formatOptions.currency)formatOptions.currency=optStr.trim();}else if(formatName==="relativetime"&&optStr.indexOf(":")<0){if(!formatOptions.range)formatOptions.range=optStr.trim();}else{var opts=optStr.split(";");opts.forEach(function(opt){if(opt){var _opt$split=opt.split(":"),_opt$split2=_toArray(_opt$split),key=_opt$split2[0],rest=_opt$split2.slice(1);var val=rest.join(":").trim().replace(/^'+|'+$/g,"");var trimmedKey=key.trim();if(!formatOptions[trimmedKey])formatOptions[trimmedKey]=val;if(val==="false")formatOptions[trimmedKey]=false;if(val==="true")formatOptions[trimmedKey]=true;if(!isNaN(val))formatOptions[trimmedKey]=parseInt(val,10);}});}}return{formatName:formatName,formatOptions:formatOptions};};var createCachedFormatter=function createCachedFormatter(fn3){var cache={};return function(val,lng,options){var optForCache=options;if(options&&options.interpolationkey&&options.formatParams&&options.formatParams[options.interpolationkey]&&options[options.interpolationkey]){optForCache=__spreadProps(__spreadValues({},optForCache),_defineProperty2({},options.interpolationkey,void 0));}var key=lng+JSON.stringify(optForCache);var formatter=cache[key];if(!formatter){formatter=fn3(getCleanedCode(lng),options);cache[key]=formatter;}return formatter(val);};};var Formatter=/*#__PURE__*/function(){function Formatter(){_classCallCheck2(this,Formatter);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter");this.options=options;this.formats={number:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),currency:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadProps(__spreadValues({},opt),{style:"currency"}));return function(val){return formatter.format(val);};}),datetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.DateTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),relativetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.RelativeTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val,opt.range||"day");};}),list:createCachedFormatter(function(lng,opt){var formatter=new Intl.ListFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};})};this.init(options);}return _createClass2(Formatter,[{key:"init",value:function init(services){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=options.interpolation.formatSeparator||",";}},{key:"add",value:function add(name,fc){this.formats[name.toLowerCase().trim()]=fc;}},{key:"addCached",value:function addCached(name,fc){this.formats[name.toLowerCase().trim()]=createCachedFormatter(fc);}},{key:"format",value:function format(value,format2,lng){var _this23=this;var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var formats=format2.split(this.formatSeparator);if(formats.length>1&&formats[0].indexOf("(")>1&&formats[0].indexOf(")")<0&&formats.find(function(f){return f.indexOf(")")>-1;})){var lastIndex=formats.findIndex(function(f){return f.indexOf(")")>-1;});formats[0]=[formats[0]].concat(_toConsumableArray2(formats.splice(1,lastIndex))).join(this.formatSeparator);}var result=formats.reduce(function(mem,f){var _parseFormatStr=parseFormatStr(f),formatName=_parseFormatStr.formatName,formatOptions=_parseFormatStr.formatOptions;if(_this23.formats[formatName]){var formatted=mem;try{var valOptions=options&&options.formatParams&&options.formatParams[options.interpolationkey]||{};var l=valOptions.locale||valOptions.lng||options.locale||options.lng||lng;formatted=_this23.formats[formatName](mem,l,__spreadValues(__spreadValues(__spreadValues({},formatOptions),options),valOptions));}catch(error2){_this23.logger.warn(error2);}return formatted;}else{_this23.logger.warn("there was no format function for ".concat(formatName));}return mem;},value);return result;}}]);}();var removePending=function removePending(q,name){if(q.pending[name]!==void 0){delete q.pending[name];q.pendingCount--;}};var Connector=/*#__PURE__*/function(_EventEmitter3){function Connector(backend,store,services){var _this24;_classCallCheck2(this,Connector);var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_this24=_callSuper(this,Connector);_this24.backend=backend;_this24.store=store;_this24.services=services;_this24.languageUtils=services.languageUtils;_this24.options=options;_this24.logger=baseLogger.create("backendConnector");_this24.waitingReads=[];_this24.maxParallelReads=options.maxParallelReads||10;_this24.readingCalls=0;_this24.maxRetries=options.maxRetries>=0?options.maxRetries:5;_this24.retryTimeout=options.retryTimeout>=1?options.retryTimeout:350;_this24.state={};_this24.queue=[];if(_this24.backend&&_this24.backend.init){_this24.backend.init(services,options.backend,options);}return _this24;}_inherits2(Connector,_EventEmitter3);return _createClass2(Connector,[{key:"queueLoad",value:function queueLoad(languages,namespaces,options,callback){var _this25=this;var toLoad={};var pending={};var toLoadLanguages={};var toLoadNamespaces={};languages.forEach(function(lng){var hasAllNamespaces=true;namespaces.forEach(function(ns){var name="".concat(lng,"|").concat(ns);if(!options.reload&&_this25.store.hasResourceBundle(lng,ns)){_this25.state[name]=2;}else if(_this25.state[name]<0);else if(_this25.state[name]===1){if(pending[name]===void 0)pending[name]=true;}else{_this25.state[name]=1;hasAllNamespaces=false;if(pending[name]===void 0)pending[name]=true;if(toLoad[name]===void 0)toLoad[name]=true;if(toLoadNamespaces[ns]===void 0)toLoadNamespaces[ns]=true;}});if(!hasAllNamespaces)toLoadLanguages[lng]=true;});if(Object.keys(toLoad).length||Object.keys(pending).length){this.queue.push({pending:pending,pendingCount:Object.keys(pending).length,loaded:{},errors:[],callback:callback});}return{toLoad:Object.keys(toLoad),pending:Object.keys(pending),toLoadLanguages:Object.keys(toLoadLanguages),toLoadNamespaces:Object.keys(toLoadNamespaces)};}},{key:"loaded",value:function loaded(name,err,data){var s=name.split("|");var lng=s[0];var ns=s[1];if(err)this.emit("failedLoading",lng,ns,err);if(!err&&data){this.store.addResourceBundle(lng,ns,data,void 0,void 0,{skipCopy:true});}this.state[name]=err?-1:2;if(err&&data)this.state[name]=0;var loaded={};this.queue.forEach(function(q){pushPath(q.loaded,[lng],ns);removePending(q,name);if(err)q.errors.push(err);if(q.pendingCount===0&&!q.done){Object.keys(q.loaded).forEach(function(l){if(!loaded[l])loaded[l]={};var loadedKeys=q.loaded[l];if(loadedKeys.length){loadedKeys.forEach(function(n){if(loaded[l][n]===void 0)loaded[l][n]=true;});}});q.done=true;if(q.errors.length){q.callback(q.errors);}else{q.callback();}}});this.emit("loaded",loaded);this.queue=this.queue.filter(function(q){return!q.done;});}},{key:"read",value:function read(lng,ns,fcName){var _this26=this;var tried=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;var wait=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout;var callback=arguments.length>5?arguments[5]:void 0;if(!lng.length)return callback(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:lng,ns:ns,fcName:fcName,tried:tried,wait:wait,callback:callback});return;}this.readingCalls++;var resolver=function resolver(err,data){_this26.readingCalls--;if(_this26.waitingReads.length>0){var next2=_this26.waitingReads.shift();_this26.read(next2.lng,next2.ns,next2.fcName,next2.tried,next2.wait,next2.callback);}if(err&&data&&tried<_this26.maxRetries){setTimeout(function(){_this26.read.call(_this26,lng,ns,fcName,tried+1,wait*2,callback);},wait);return;}callback(err,data);};var fc=this.backend[fcName].bind(this.backend);if(fc.length===2){try{var r2=fc(lng,ns);if(r2&&typeof r2.then==="function"){r2.then(function(data){return resolver(null,data);}).catch(resolver);}else{resolver(null,r2);}}catch(err){resolver(err);}return;}return fc(lng,ns,resolver);}},{key:"prepareLoading",value:function prepareLoading(languages,namespaces){var _this27=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var callback=arguments.length>3?arguments[3]:void 0;if(!this.backend){this.logger.warn("No backend was added via i18next.use. Will not load resources.");return callback&&callback();}if(isString(languages))languages=this.languageUtils.toResolveHierarchy(languages);if(isString(namespaces))namespaces=[namespaces];var toLoad=this.queueLoad(languages,namespaces,options,callback);if(!toLoad.toLoad.length){if(!toLoad.pending.length)callback();return null;}toLoad.toLoad.forEach(function(name){_this27.loadOne(name);});}},{key:"load",value:function load(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{},callback);}},{key:"reload",value:function reload(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{reload:true},callback);}},{key:"loadOne",value:function loadOne(name){var _this28=this;var prefix2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";var s=name.split("|");var lng=s[0];var ns=s[1];this.read(lng,ns,"read",void 0,void 0,function(err,data){if(err)_this28.logger.warn("".concat(prefix2,"loading namespace ").concat(ns," for language ").concat(lng," failed"),err);if(!err&&data)_this28.logger.log("".concat(prefix2,"loaded namespace ").concat(ns," for language ").concat(lng),data);_this28.loaded(name,err,data);});}},{key:"saveMissing",value:function saveMissing(languages,namespace,key,fallbackValue,isUpdate){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};var clb=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(namespace)){this.logger.warn("did not save key \"".concat(key,"\" as the namespace \"").concat(namespace,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return;}if(key===void 0||key===null||key==="")return;if(this.backend&&this.backend.create){var opts=__spreadProps(__spreadValues({},options),{isUpdate:isUpdate});var fc=this.backend.create.bind(this.backend);if(fc.length<6){try{var r2;if(fc.length===5){r2=fc(languages,namespace,key,fallbackValue,opts);}else{r2=fc(languages,namespace,key,fallbackValue);}if(r2&&typeof r2.then==="function"){r2.then(function(data){return clb(null,data);}).catch(clb);}else{clb(null,r2);}}catch(err){clb(err);}}else{fc(languages,namespace,key,fallbackValue,clb,opts);}}if(!languages||!languages[0])return;this.store.addResource(languages[0],namespace,key,fallbackValue);}}]);}(EventEmitter);var get$2=function get$2(){return{debug:false,initImmediate:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:false,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:function overloadTranslationOptionHandler(args){var ret={};if(_typeof2(args[1])==="object")ret=args[1];if(isString(args[1]))ret.defaultValue=args[1];if(isString(args[2]))ret.tDescription=args[2];if(_typeof2(args[2])==="object"||_typeof2(args[3])==="object"){var _options3=args[3]||args[2];Object.keys(_options3).forEach(function(key){ret[key]=_options3[key];});}return ret;},interpolation:{escapeValue:true,format:function format(value){return value;},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true}};};var transformOptions=function transformOptions(options){if(isString(options.ns))options.ns=[options.ns];if(isString(options.fallbackLng))options.fallbackLng=[options.fallbackLng];if(isString(options.fallbackNS))options.fallbackNS=[options.fallbackNS];if(options.supportedLngs&&options.supportedLngs.indexOf("cimode")<0){options.supportedLngs=options.supportedLngs.concat(["cimode"]);}return options;};var noop$2=function noop$2(){};var bindMemberFunctions=function bindMemberFunctions(inst){var mems=Object.getOwnPropertyNames(Object.getPrototypeOf(inst));mems.forEach(function(mem){if(typeof inst[mem]==="function"){inst[mem]=inst[mem].bind(inst);}});};var I18n=/*#__PURE__*/function(_EventEmitter4){function I18n(){var _this29;_classCallCheck2(this,I18n);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;_this29=_callSuper(this,I18n);_this29.options=transformOptions(options);_this29.services={};_this29.logger=baseLogger;_this29.modules={external:[]};bindMemberFunctions(_this29);if(callback&&!_this29.isInitialized&&!options.isClone){if(!_this29.options.initImmediate){_this29.init(options,callback);return _possibleConstructorReturn2(_this29,_this29);}setTimeout(function(){_this29.init(options,callback);},0);}return _this29;}_inherits2(I18n,_EventEmitter4);return _createClass2(I18n,[{key:"init",value:function init(){var _this30=this;var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;this.isInitializing=true;if(typeof options==="function"){callback=options;options={};}if(!options.defaultNS&&options.defaultNS!==false&&options.ns){if(isString(options.ns)){options.defaultNS=options.ns;}else if(options.ns.indexOf("translation")<0){options.defaultNS=options.ns[0];}}var defOpts=get$2();this.options=__spreadValues(__spreadValues(__spreadValues({},defOpts),this.options),transformOptions(options));if(this.options.compatibilityAPI!=="v1"){this.options.interpolation=__spreadValues(__spreadValues({},defOpts.interpolation),this.options.interpolation);}if(options.keySeparator!==void 0){this.options.userDefinedKeySeparator=options.keySeparator;}if(options.nsSeparator!==void 0){this.options.userDefinedNsSeparator=options.nsSeparator;}var createClassOnDemand=function createClassOnDemand(ClassOrObject){if(!ClassOrObject)return null;if(typeof ClassOrObject==="function")return new ClassOrObject();return ClassOrObject;};if(!this.options.isClone){if(this.modules.logger){baseLogger.init(createClassOnDemand(this.modules.logger),this.options);}else{baseLogger.init(null,this.options);}var formatter;if(this.modules.formatter){formatter=this.modules.formatter;}else if(typeof Intl!=="undefined"){formatter=Formatter;}var lu=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);var s=this.services;s.logger=baseLogger;s.resourceStore=this.store;s.languageUtils=lu;s.pluralResolver=new PluralResolver(lu,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix});if(formatter&&(!this.options.interpolation.format||this.options.interpolation.format===defOpts.interpolation.format)){s.formatter=createClassOnDemand(formatter);s.formatter.init(s,this.options);this.options.interpolation.format=s.formatter.format.bind(s.formatter);}s.interpolator=new Interpolator(this.options);s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)};s.backendConnector=new Connector(createClassOnDemand(this.modules.backend),s.resourceStore,s,this.options);s.backendConnector.on("*",function(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}_this.emit.apply(_this,[event].concat(args));});if(this.modules.languageDetector){s.languageDetector=createClassOnDemand(this.modules.languageDetector);if(s.languageDetector.init)s.languageDetector.init(s,this.options.detection,this.options);}if(this.modules.i18nFormat){s.i18nFormat=createClassOnDemand(this.modules.i18nFormat);if(s.i18nFormat.init)s.i18nFormat.init(this);}this.translator=new Translator(this.services,this.options);this.translator.on("*",function(event){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}_this.emit.apply(_this,[event].concat(args));});this.modules.external.forEach(function(m){if(m.init)m.init(_this30);});}this.format=this.options.interpolation.format;if(!callback)callback=noop$2;if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var codes=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);if(codes.length>0&&codes[0]!=="dev")this.options.lng=codes[0];}if(!this.services.languageDetector&&!this.options.lng){this.logger.warn("init: no languageDetector is used and no lng is defined");}var storeApi=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];storeApi.forEach(function(fcName){_this30[fcName]=function(){var _this$store;return(_this$store=_this.store)[fcName].apply(_this$store,arguments);};});var storeApiChained=["addResource","addResources","addResourceBundle","removeResourceBundle"];storeApiChained.forEach(function(fcName){_this30[fcName]=function(){var _this$store2;(_this$store2=_this.store)[fcName].apply(_this$store2,arguments);return _this;};});var deferred=defer();var load=function load(){var finish=function finish(err,t){_this30.isInitializing=false;if(_this30.isInitialized&&!_this30.initializedStoreOnce)_this30.logger.warn("init: i18next is already initialized. You should call init just once!");_this30.isInitialized=true;if(!_this30.options.isClone)_this30.logger.log("initialized",_this30.options);_this30.emit("initialized",_this30.options);deferred.resolve(t);callback(err,t);};if(_this30.languages&&_this30.options.compatibilityAPI!=="v1"&&!_this30.isInitialized)return finish(null,_this30.t.bind(_this30));_this30.changeLanguage(_this30.options.lng,finish);};if(this.options.resources||!this.options.initImmediate){load();}else{setTimeout(load,0);}return deferred;}},{key:"loadResources",value:function loadResources(language){var _this31=this;var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var usedCallback=callback;var usedLng=isString(language)?language:this.language;if(typeof language==="function")usedCallback=language;if(!this.options.resources||this.options.partialBundledLanguages){if(usedLng&&usedLng.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return usedCallback();var toLoad=[];var append2=function append2(lng){if(!lng)return;if(lng==="cimode")return;var lngs=_this31.services.languageUtils.toResolveHierarchy(lng);lngs.forEach(function(l){if(l==="cimode")return;if(toLoad.indexOf(l)<0)toLoad.push(l);});};if(!usedLng){var fallbacks=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);fallbacks.forEach(function(l){return append2(l);});}else{append2(usedLng);}if(this.options.preload){this.options.preload.forEach(function(l){return append2(l);});}this.services.backendConnector.load(toLoad,this.options.ns,function(e){if(!e&&!_this31.resolvedLanguage&&_this31.language)_this31.setResolvedLanguage(_this31.language);usedCallback(e);});}else{usedCallback(null);}}},{key:"reloadResources",value:function reloadResources(lngs,ns,callback){var deferred=defer();if(typeof lngs==="function"){callback=lngs;lngs=void 0;}if(typeof ns==="function"){callback=ns;ns=void 0;}if(!lngs)lngs=this.languages;if(!ns)ns=this.options.ns;if(!callback)callback=noop$2;this.services.backendConnector.reload(lngs,ns,function(err){deferred.resolve();callback(err);});return deferred;}},{key:"use",value:function use(module){if(!module)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!module.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");if(module.type==="backend"){this.modules.backend=module;}if(module.type==="logger"||module.log&&module.warn&&module.error){this.modules.logger=module;}if(module.type==="languageDetector"){this.modules.languageDetector=module;}if(module.type==="i18nFormat"){this.modules.i18nFormat=module;}if(module.type==="postProcessor"){postProcessor.addPostProcessor(module);}if(module.type==="formatter"){this.modules.formatter=module;}if(module.type==="3rdParty"){this.modules.external.push(module);}return this;}},{key:"setResolvedLanguage",value:function setResolvedLanguage(l){if(!l||!this.languages)return;if(["cimode","dev"].indexOf(l)>-1)return;for(var li=0;li<this.languages.length;li++){var lngInLngs=this.languages[li];if(["cimode","dev"].indexOf(lngInLngs)>-1)continue;if(this.store.hasLanguageSomeTranslations(lngInLngs)){this.resolvedLanguage=lngInLngs;break;}}}},{key:"changeLanguage",value:function changeLanguage(lng,callback){var _this32=this;var _this2=this;this.isLanguageChangingTo=lng;var deferred=defer();this.emit("languageChanging",lng);var setLngProps=function setLngProps(l){_this32.language=l;_this32.languages=_this32.services.languageUtils.toResolveHierarchy(l);_this32.resolvedLanguage=void 0;_this32.setResolvedLanguage(l);};var done=function done(err,l){if(l){setLngProps(l);_this32.translator.changeLanguage(l);_this32.isLanguageChangingTo=void 0;_this32.emit("languageChanged",l);_this32.logger.log("languageChanged",l);}else{_this32.isLanguageChangingTo=void 0;}deferred.resolve(function(){return _this2.t.apply(_this2,arguments);});if(callback)callback(err,function(){return _this2.t.apply(_this2,arguments);});};var setLng=function setLng(lngs){if(!lng&&!lngs&&_this32.services.languageDetector)lngs=[];var l=isString(lngs)?lngs:_this32.services.languageUtils.getBestMatchFromCodes(lngs);if(l){if(!_this32.language){setLngProps(l);}if(!_this32.translator.language)_this32.translator.changeLanguage(l);if(_this32.services.languageDetector&&_this32.services.languageDetector.cacheUserLanguage)_this32.services.languageDetector.cacheUserLanguage(l);}_this32.loadResources(l,function(err){done(err,l);});};if(!lng&&this.services.languageDetector&&!this.services.languageDetector.async){setLng(this.services.languageDetector.detect());}else if(!lng&&this.services.languageDetector&&this.services.languageDetector.async){if(this.services.languageDetector.detect.length===0){this.services.languageDetector.detect().then(setLng);}else{this.services.languageDetector.detect(setLng);}}else{setLng(lng);}return deferred;}},{key:"getFixedT",value:function getFixedT(lng,ns,keyPrefix){var _this3=this;var _fixedT=function fixedT(key,opts){var options;if(_typeof2(opts)!=="object"){for(var _len3=arguments.length,rest=new Array(_len3>2?_len3-2:0),_key3=2;_key3<_len3;_key3++){rest[_key3-2]=arguments[_key3];}options=_this3.options.overloadTranslationOptionHandler([key,opts].concat(rest));}else{options=__spreadValues({},opts);}options.lng=options.lng||_fixedT.lng;options.lngs=options.lngs||_fixedT.lngs;options.ns=options.ns||_fixedT.ns;if(options.keyPrefix!=="")options.keyPrefix=options.keyPrefix||keyPrefix||_fixedT.keyPrefix;var keySeparator=_this3.options.keySeparator||".";var resultKey;if(options.keyPrefix&&Array.isArray(key)){resultKey=key.map(function(k){return"".concat(options.keyPrefix).concat(keySeparator).concat(k);});}else{resultKey=options.keyPrefix?"".concat(options.keyPrefix).concat(keySeparator).concat(key):key;}return _this3.t(resultKey,options);};if(isString(lng)){_fixedT.lng=lng;}else{_fixedT.lngs=lng;}_fixedT.ns=ns;_fixedT.keyPrefix=keyPrefix;return _fixedT;}},{key:"t",value:function t(){var _this$translator;return this.translator&&(_this$translator=this.translator).translate.apply(_this$translator,arguments);}},{key:"exists",value:function exists(){var _this$translator2;return this.translator&&(_this$translator2=this.translator).exists.apply(_this$translator2,arguments);}},{key:"setDefaultNamespace",value:function setDefaultNamespace(ns){this.options.defaultNS=ns;}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(ns){var _this33=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized){this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages);return false;}if(!this.languages||!this.languages.length){this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages);return false;}var lng=options.lng||this.resolvedLanguage||this.languages[0];var fallbackLng=this.options?this.options.fallbackLng:false;var lastLng=this.languages[this.languages.length-1];if(lng.toLowerCase()==="cimode")return true;var loadNotPending=function loadNotPending(l,n){var loadState=_this33.services.backendConnector.state["".concat(l,"|").concat(n)];return loadState===-1||loadState===0||loadState===2;};if(options.precheck){var preResult=options.precheck(this,loadNotPending);if(preResult!==void 0)return preResult;}if(this.hasResourceBundle(lng,ns))return true;if(!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return true;if(loadNotPending(lng,ns)&&(!fallbackLng||loadNotPending(lastLng,ns)))return true;return false;}},{key:"loadNamespaces",value:function loadNamespaces(ns,callback){var _this34=this;var deferred=defer();if(!this.options.ns){if(callback)callback();return Promise.resolve();}if(isString(ns))ns=[ns];ns.forEach(function(n){if(_this34.options.ns.indexOf(n)<0)_this34.options.ns.push(n);});this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"loadLanguages",value:function loadLanguages(lngs,callback){var _this35=this;var deferred=defer();if(isString(lngs))lngs=[lngs];var preloaded=this.options.preload||[];var newLngs=lngs.filter(function(lng){return preloaded.indexOf(lng)<0&&_this35.services.languageUtils.isSupportedCode(lng);});if(!newLngs.length){if(callback)callback();return Promise.resolve();}this.options.preload=preloaded.concat(newLngs);this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"dir",value:function dir(lng){if(!lng)lng=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language);if(!lng)return"rtl";var rtlLngs=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];var languageUtils=this.services&&this.services.languageUtils||new LanguageUtil(get$2());return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng))>-1||lng.toLowerCase().indexOf("-arab")>1?"rtl":"ltr";}},{key:"cloneInstance",value:function cloneInstance(){var _this36=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var forkResourceStore=options.forkResourceStore;if(forkResourceStore)delete options.forkResourceStore;var mergedOptions=__spreadValues(__spreadValues(__spreadValues({},this.options),options),{isClone:true});var clone=new I18n(mergedOptions);if(options.debug!==void 0||options.prefix!==void 0){clone.logger=clone.logger.clone(options);}var membersToCopy=["store","services","language"];membersToCopy.forEach(function(m){clone[m]=_this36[m];});clone.services=__spreadValues({},this.services);clone.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};if(forkResourceStore){clone.store=new ResourceStore(this.store.data,mergedOptions);clone.services.resourceStore=clone.store;}clone.translator=new Translator(clone.services,mergedOptions);clone.translator.on("*",function(event){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){args[_key4-1]=arguments[_key4];}clone.emit.apply(clone,[event].concat(args));});clone.init(mergedOptions,callback);clone.translator.options=mergedOptions;clone.translator.backendConnector.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};return clone;}},{key:"toJSON",value:function toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage};}}],[{key:"createInstance",value:function createInstance(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;return new I18n(options,callback);}}]);}(EventEmitter);var instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;var matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;var htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"};var unescapeHtmlEntity=function unescapeHtmlEntity(m){return htmlEntities[m];};var unescape=function unescape(text2){return text2.replace(matchHtmlEntity,unescapeHtmlEntity);};var defaultOptions$1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:unescape};var setDefaults=function setDefaults(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions$1=__spreadValues(__spreadValues({},defaultOptions$1),options);};var initReactI18next={type:"3rdParty",init:function init(instance2){setDefaults(instance2.options.react);}};var onChangeSelectField="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onInputChange="\n Callback que se ejecuta cuando escribimos algo en el buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input\n";var onChangeSearcher="\n Callback que se ejecuta cuando seleccionamos una opcion del buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onChangeCheckboxInput='\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: Siempre es "on"\n';var onChangeInput="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n value: string | number; \n ```\n";var isOptionDisabled2=" \n Funcion que recibe un valor de tipo SelectOption y deberia devolver un valor booleano\n Si la opción tiene definida un tooltipMessage se va a mostrar al hacer hover.\n \n#### Ejemplo\n ``` typescript\n const isOptionDisabled = (option: SelectOption) => option.value === 2;\n ```\n \n #### Interfaz\n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n tooltipMessage?: string;\n [key: string]: any;\n }\n ```\n";var selectFieldDescription='\n #### Ejemplo de uso \n ```typescript\n <SelectField\n name="productId"\n options={[{ label: "1", value: 1 }, { label: "2", value: 2, tooltipMessage: "Este valor no es representativo" }]}\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n isMultiple\n isClearable={false}\n label={localize(\'product\')}\n isOptionDisabled={(option) => option.value == 2}\n rightModifier={shouldShowLoader && <Spinner />}\n />\n ```\n';var formFieldExample='\n #### Ejemplo de uso\n \n ``` typescript\n <FormField\n label="Título"\n name="textInput"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n placeholder="Placeholder"\n size="md"\n type="text"\n isValid={(inputValue) => _.isNumber(inputValue)}\n />\n ```\n';var isValidInput="\n Funcion que recibe un valor de tipo inputValue y deberia devolver un valor booleano.\n \n #### Por ejemplo: (inputValue) => _.isNumber(inputValue)\n \n ``` typescript\n type inputValue = string | number; \n ```\n";var checkboxInputGroupExample="\n #### Ejemplo de uso\n \n ``` typescript\n <CheckboxInput\n items={[\n {\n id: '1',\n label: 'Opci\xF3n 1'\n },\n {\n id: '2',\n label: 'Opci\xF3n 2'\n },\n {\n disabled: true,\n id: '3',\n label: 'Opci\xF3n 3'\n }\n ]}\n name=\"CheckboxList\"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n size=\"lg\"\n title=\"Selecciona una opci\xF3n\"\n type=\"checkbox\"\n />\n ```\n";var checkboxInputExample=' \n Versión con una sola opción tipo checkbox y un label personalizado:\n \n ```typescript\n const [checked, setChecked] = React.useState(false)\n <CheckboxInput\n name="Toggle"\n checked={checked}\n onChange={setChecked}\n label={"Amazon"}\n title={locale(\'syncStockFromChannel\')}\n />\n ```\n';var searcherExample=' \n Note la diferencia entre onChange y onInputChange (oficia de onSearch):\n \n ```typescript\n <Searcher\n label="Search label"\n name="Searcher"\n onChange={(event) => onSelectOption(event.target.value)}\n onInputChange={(event) => handleSearch(event.target.value)}\n options={[{ label: \'text\', value: 1 }]}\n />\n ```\n';var saveBarExample="\n #### Uso básico\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n />\n ```\n #### Con botón de navegación\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save',\n variant: 'primary'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Previous'\n }}\n />\n ```\n #### Ejemplo completo\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Guardar cambios',\n variant: 'success',\n disabled: false,\n onClick: () => {},\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Descartar',\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Anterior',\n variant: 'primary',\n outline: true,\n disabled: false,\n onClick: () => console.log('Previous clicked'),\n }}\n />\n ```\n";var checkboxInputReduxFormExample="\n #### Ejemplo de uso con Redux Form - CheckboxInput\n \n ```typescript\n <Field\n name=\"salesSync\"\n component={CheckboxInput}\n classComponent={'decrease-stock'}\n props={{\n name: 'cancelSales',\n value: this.salesSync().cancelSales,\n checked: this.salesSync().cancelSales,\n label: this.context.localize('settings.cancelSales')\n }}\n />\n ```\n";var breadcrumbItemFormat="\n ## Formato de BreadcrumbItem\n\n El componente Breadcrumb acepta un array de objetos `BreadcrumbItem` con las siguientes propiedades:\n\n ### Propiedades disponibles:\n\n - **`text`** (string, requerido): El texto que se muestra para el item del breadcrumb\n - **`onClick`** (function, opcional): Función que se ejecuta al hacer click en el item\n - **`isActive`** (boolean, opcional): Indica si el item está activo. Por defecto, el último item se considera activo\n - **`href`** (string, opcional): URL del enlace (actualmente no implementado en el renderizado)\n\n ### Comportamiento:\n\n - Los items con `onClick` se renderizan como botones clickeables\n - Los items sin `onClick` se renderizan como texto estático\n - El último item siempre se considera activo (a menos que se especifique `isActive: true` en otro item)\n - Cada item se separa automáticamente con el símbolo \">\"\n\n ### Ejemplo de uso:\n\n ```tsx\n const breadcrumbItems = [\n { text: 'Dashboard' },\n { text: 'Productos', onClick: () => navigate('/products') },\n { text: 'Detalles', isActive: true }\n ]\n\n <Breadcrumb items={breadcrumbItems} />\n ```\n";var menuItems="Lista de ítems que se mostrarán en el menú.\n \n**Tipo:** `MenuActionItem[]`\n\n```ts\ninterface MenuActionItem {\n label: React.ReactNode\n icon?: React.ReactElement\n onClick?: () => void\n selected?: boolean\n disabled?: boolean\n}\n```\n";var es$2={noResultsFound:"No se encontraron resultados",reloadPage:"Recargar página",selectPlaceholder:"Seleccionar...",selectOption:"Selecciona una opción",noOptionsMessage:"No hay opciones",noFoundOptions:"No se encontraron resultados",selectedPlural:"Seleccionados",selected:"Seleccionado",title:"Título",password:"Contraseña",selectRequiredText:"Campo obligatorio",exportedIcon:"Icono exportado de Material UI",syncStockFromChannel:'Selecciona qué sincronizar desde "canal"',loremIpsum:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",add:"Agregar",previous:"Anterior",continue:"Continuar",cancel:"Cancelar",save:"Guardar",guide:"Guía",size:"Tamaño",hideSelectedOptionsExplainText:"Oculta la opción seleccionada del menu. Solo puede modificarse si es selección simple",switchInput:{options:"Opciones",option:"Opción",large:"Large Switch",medium:"Medium Switch",small:"Small Switch (Default)"},tooltip:{hoverToSee:"Hover sobre mí para ver el tooltip",basicContent:"Este es el contenido del tooltip",showTooltipWhenHoverButton:"Muestra un tooltip al hacer hover sobre un botón.",showTooltipWhenDisabled:"Solo se muestra cuando el botón está deshabilitado",showTooltipWhenDisabledDescription:"Muestra el tooltip únicamente para un botón deshabilitado.",basicDescription:"Componente de tooltip básico que siempre muestra el tooltip al hacer hover.",overflowDescription:"Componente que detecta automáticamente cuando el contenido se desborda y muestra un tooltip solo cuando es necesario.",componentDescription:"Componentes de tooltip que detectan automáticamente cuando el contenido se desborda y muestran un tooltip. Incluye soporte para maxWidth personalizable.",maxWidthDescription:"Ancho máximo del tooltip (px, %, em, etc.). Por defecto: 600px",clickToSee:"Haz clic para ver el tooltip",clickableTitle:"Título del tooltip",clickableDescription:"Ejemplo de tooltip clickeable con contenido complejo incluyendo título y lista con enlaces.",bulletPoint:"Bullet: Lorem ipsum dolor sit.",linkText:"Link"},description:{checkboxInputReduxFormExample:checkboxInputReduxFormExample,onChangeSelectField:onChangeSelectField,onInputChange:onInputChange,onChangeSearcher:onChangeSearcher,onChangeCheckboxInput:onChangeCheckboxInput,onChangeInput:onChangeInput,isOptionDisabled:isOptionDisabled2,reduxForm:{input:"Prop de Redux Form. Cuando uses Redux Form, pasa el prop input desde el componente Field."},selectField:{example:selectFieldDescription,defaultValue:"Esta opción debe ser del tipo (string | number)[] Ej: 2 | [2] | [1,2] donde value = 2",disabled:"Campo deshabilitado",disabledOptions:"Opciones deshabilitadas",noOptions:"Sin opciones disponibles",withIcon:"Select con Icono",fullWidth:"SelectField con tamaño fullwidth que ocupa el 100% del ancho disponible.",labelFullWidth:"Select de ancho completo"},actionBar:{example:saveBarExample,saveButton:"Botón de guardar",cancelButton:"Botón de cancelar",previousButton:"Botón de anterior",saveButtonProps:"Props para el botón de guardar",cancelButtonProps:"Props para el botón de cancelar",previousButtonProps:"Props para el botón de anterior",withoutBorder:"Elimina el redondeado de la ActionBar",saveChanges:"Guardar cambios",discard:"Descartar",confirm:"Confirmar",verifySaveButtonOnly:"Verificar que solo se renderiza el botón de guardar",verifyInitialRendering:"Verificar renderizado inicial",clickSaveButton:"Hacer clic en botón guardar",clickCancelButton:"Hacer clic en botón cancelar",clickPreviousButton:"Hacer clic en botón anterior",clickSaveButtonOnly:"Hacer clic en el botón de guardar"},formField:{example:formFieldExample,isValid:isValidInput},checkboxInput:{example:checkboxInputExample,checkboxInputExample:checkboxInputExample,checkboxInputGroupExample:checkboxInputGroupExample},switchInput:{example:"Example of a single switch component."},icons:{size:"Tamaño del ícono en píxeles"},searcher:{example:searcherExample,exampleOption:"Ejemplo de búsqueda",searchPlaceholder:"Escribí para buscar...",searchLabel:"Buscar opción",noResults:"No se encontraron resultados",writeToSearch:"Escribí para buscar",clearOnSelectDescription:"Limpia el texto del input después de seleccionar una opción",clearOnSelectStoryDescription:"Ejemplo que muestra cómo se borra el texto de entrada después de seleccionar una opción cuando clearOnSelect está habilitado",isLoading:'Indica si el componente está en estado de carga. Se muestra un spinner en el mensaje de "no opciones".',loadOptions:"Función para cargar opciones de forma asíncrona",cacheOptions:"Determina si las opciones se cachean para mejor rendimiento",defaultOptions:"Opciones que se muestran por defecto al abrir el dropdown",apiSimulationDescription:"Ejemplo avanzado de Searcher con loadOptions usando una API real (JSONPlaceholder). Demuestra carga asíncrona, cache, opciones por defecto y manejo de errores.",apiSimulationLabel:"Buscar posts (API real)"},breadcrumb:{itemFormat:breadcrumbItemFormat},alert:{message:"Mensaje de éxito, este contenedor se ajusta al contenido, con un ancho máx de 1140 px",infoMessage:"Mensaje de información, este componente se ajusta al ancho del contenedor full width.",dontShowAgain:"No volver a mostrar este mensaje.",customAlert:"Alerta con ícono personalizado"}},headerSection:{edit:"Editar",duplicate:"Duplicate",delete:"Eliminar"},error:{required:"Este campo es obligatorio",notValid:"El valor ingresado es inválido",requiredDescription:"SelectField que muestra un error de campo obligatorio cuando está marcado como requerido y no tiene valor seleccionado."},copyButton:{copy:"Copiar",copied:"Copiado",textToCopy:"Este texto se copiará automáticamente",textCopied:"Este es el texto que se copiará",copyKey:"Copiar clave",copiedKey:"Clave copiada",custom:"Funcion Custom",running:"Corriendo...",alert:"Función personalizada ejecutada!"},linkWithIcon:{historyChange:"Historial de cambios",edit:"Editar",customAction:"Acción personalizada"},breadcrumb:{historyChanges:"Historial de cambios",products:"Productos",dashboard:"Dashboard",categories:"Categorías",electronics:"Electrónicos",details:"Detalles",page1:"Página 1",page2:"Página 2",page3:"Página 3",home:"Inicio"},datePicker:{name:"Nombre del campo",value:"Valor del campo",size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha que determina automáticamente el tipo de picker: YYYY (años), HH:mm (horas), DD/MM/YYYY (fecha), DD/MM/YYYY HH:mm (fecha y hora)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",rightAdornment:"Elemento que se muestra a la derecha del input",meta:"Metadatos para validación (error, touched, etc.)",isValid:"Función para validación personalizada",input:"Input object para integración con Redux Form",onChange:"Callback cuando cambia la fecha",selectDate:"Seleccionar fecha",dateLabel:"Fecha",selectADate:"Selecciona una fecha",requiredDate:"Fecha Requerida",requiredField:"Campo obligatorio",dateAndTime:"Fecha y Hora",dateWithLimits:"Fecha con Límites",onlyFutureDates:"Solo fechas futuras",customFormat:"Formato Personalizado",yearSelector:"Selector de Año",timeSelector:"Selector de Hora",timeSelectorWithSeconds:"Selector de Hora con Segundos",dateTimeSelector:"Selector de Fecha y Hora",selectYear:"Seleccionar año",selectTime:"Seleccionar hora",selectDateTime:"Seleccionar fecha y hora"},dateRangePicker:{size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha (por defecto DD/MM/YYYY)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",onChange:"Callback cuando cambia el rango de fechas",selectDateRange:"Seleccionar rango de fechas",dateRangeLabel:"Rango de fechas",disabledRange:"Rango deshabilitado",disabledComponent:"Componente deshabilitado",rangeWithMinMax:"Rango con min/max y deshabilitado",restrictedRange:"Rango restringido y deshabilitado",disabledWithRestrictions:"Story que demuestra la combinación de minDate, maxDate y disabled. El componente está deshabilitado pero también tiene restricciones de fechas.",completelyDisabled:"Story que demuestra el componente completamente deshabilitado usando la propiedad disabled como boolean."},chip:{text:"Texto",title:"Título",onRemove:"Función que se ejecuta al hacer clic en el ícono de cerrar",disabled:"Deshabilita el chip y oculta el ícono de cerrar",variant:"Variante visual del chip que cambia el color de fondo (default, success, error, warning, info)",size:"Tamaño del chip (sm: pequeño, lg: grande, undefined: tamaño por defecto)"},warningModal:{warning:"¡Atención!",dontShowAgain:"No volver a mostrar este mensaje"},tab:{tab1:"Pestaña 1",tab2:"Pestaña 2",tab3:"Pestaña 3"},menuAction:{edit:"Editar",delete:"Eliminar",duplicate:"Duplicar",itemsDescription:menuItems,id:"Identificador único opcional para el menú.\n\n**Tipo:** `string`",maxItems:"Número máximo de ítems visibles antes de mostrar un colapsado",icon:"Ícono opcional que acompaña al menú"},dropdown:{label:"Texto que se muestra en el botón del dropdown",variant:"Variante del botón",color:"Color del botón",disabled:"Si el dropdown está deshabilitado",onItemSelect:"Callback que se ejecuta cuando se selecciona un item",onToggle:"Callback que se ejecuta cuando se abre/cierra el dropdown",options:"Opciones",edit:"Editar",duplicate:"Duplicar",archive:"Archivar",more:"Más opciones",delete:"Eliminar",share:"Compartir",divider:"Divider",size:"Tamaño del botón"},sidebar:{monitoringCenter:"Centro de monitoreo",history:"Historial de cambios",integrations:"Integraciones",deposits:"Depositos y listas de precios",active:"Item Activo",alerts:"Alertas",moreOptions:"Mas opciones",itemsDescription:"Array de items { label, isActive, icon, onClick } para renderizar el sidebar",itemsSummary:"{ label: string; isActive?: Boolean; icon?: ReactNode; onClick?: () => void;}[]"}};var resources={en:{translation:{}},es:{translation:es$2}};instance.use(initReactI18next).init({resources:resources,lng:"es",interpolation:{escapeValue:false},debug:true});var locale=instance.t;var lg$8="selectField-module_lg_adYzi";var body$1="selectField-module_body_KiYeH";var md$6="selectField-module_md_sCCe1";var fullwidth$1="selectField-module_fullwidth_c4Kqo";var styles$l={"producteca-select-field-container":"selectField-module_producteca-select-field-container_wnPdM","producteca-select-field--is-required":"selectField-module_producteca-select-field--is-required_0f07A","producteca-select-field--with-modifier":"selectField-module_producteca-select-field--with-modifier_GN3AL","producteca-select-field-body":"selectField-module_producteca-select-field-body_-gy8S",lg:lg$8,body:body$1,"searcher-body":"selectField-module_searcher-body_8Hpy2",md:md$6,fullwidth:fullwidth$1,"producteca-select-field__is-clearable":"selectField-module_producteca-select-field__is-clearable_FzZz2","producteca-select-field__search-icon":"selectField-module_producteca-select-field__search-icon_rGbiw","producteca-select-field__is-multiple":"selectField-module_producteca-select-field__is-multiple_G71xD","producteca-select-field--is-clearable":"selectField-module_producteca-select-field--is-clearable_GZGnL","producteca-select-field--is-searchable":"selectField-module_producteca-select-field--is-searchable_YTkm-","producteca-select-field--on-error":"selectField-module_producteca-select-field--on-error_rNJN3","producteca-select-field__input-multiple":"selectField-module_producteca-select-field__input-multiple_K0bLb","option-with-tooltip":"selectField-module_option-with-tooltip_etqky"};var AutoStoriesIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"m19 1-5 5v11l5-4.5zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6m22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5z"}),"AutoStories");var CalendarTodayIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");var Cancel=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var Check=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var CheckCircle=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var ClearRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded");var ContentCopy=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var ErrorIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var Info=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var InsertPhotoRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"InsertPhotoRounded");var KeyboardArrowDownIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var MoreVertIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var NavigateBeforeRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M14.91 6.71a.996.996 0 0 0-1.41 0L8.91 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L11.03 12l3.88-3.88c.38-.39.38-1.03 0-1.41"}),"NavigateBeforeRounded");var NavigateNextRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded");var SearchRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");var Visibility=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var VisibilityOff=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function useReduxFormField(_ref3){var input=_ref3.input,onChange2=_ref3.onChange,onBlur=_ref3.onBlur,_ref$transformValue=_ref3.transformValue,transformValue=_ref$transformValue===void 0?function(value){return value;}:_ref$transformValue;var handleChange=function handleChange2(event){if(input){var transformedValue=transformValue(event,event);input.onChange(transformedValue);}else if(onChange2){onChange2(event);}};var handleBlur=function handleBlur2(){if(input){input.onBlur();}onBlur===null||onBlur===void 0||onBlur();};return{handleChange:handleChange,handleBlur:handleBlur};}var useOptionTooltip=function useOptionTooltip2(label2,isDisabled,tooltipMessage){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];var _useState3=useState({top:0,left:0}),_useState4=_slicedToArray$1(_useState3,2),tooltipPosition=_useState4[0],setTooltipPosition=_useState4[1];var optionRef=useRef(null);var showDisabledTooltip=isDisabled&&!!tooltipMessage;var _updateTooltipPosition=useCallback(function(){if(optionRef.current&&showTooltip){var rect=optionRef.current.getBoundingClientRect();var centerY=rect.top+rect.height/2;setTooltipPosition({top:centerY,left:rect.right+5});}},[showTooltip]);var _handleMouseEnter=useCallback(function(){if(optionRef.current){var hasOverflow=optionRef.current.scrollWidth>optionRef.current.offsetWidth;var shouldShowTooltip=showDisabledTooltip||hasOverflow;if(shouldShowTooltip){setShowTooltip(true);setTimeout(function(){_updateTooltipPosition();},0);}}},[showDisabledTooltip,_updateTooltipPosition]);var _handleMouseLeave=useCallback(function(){setShowTooltip(false);},[]);useEffect(function(){var element=optionRef.current;if(element){element.addEventListener("mouseenter",_handleMouseEnter);element.addEventListener("mouseleave",_handleMouseLeave);return function(){element.removeEventListener("mouseenter",_handleMouseEnter);element.removeEventListener("mouseleave",_handleMouseLeave);};}},[_handleMouseEnter,_handleMouseLeave]);useEffect(function(){if(showTooltip){_updateTooltipPosition();window.addEventListener("scroll",_updateTooltipPosition,true);return function(){return window.removeEventListener("scroll",_updateTooltipPosition,true);};}},[showTooltip,_updateTooltipPosition]);return{showTooltip:showTooltip,tooltipPosition:tooltipPosition,optionRef:optionRef,showDisabledTooltip:showDisabledTooltip};};var hasError=function hasError2(props){var value=props.value,isValid2=props.isValid,required=props.required,_props$meta=props.meta,_props$meta2=_props$meta===void 0?{}:_props$meta,touched=_props$meta2.touched,error2=_props$meta2.error;var hasError22=isValid2&&!isValid2(value)||touched&&error2;return!!(required&&!value)||!!hasError22;};var hasWarning=function hasWarning2(props){var _props$meta3=props.meta,_props$meta4=_props$meta3===void 0?{}:_props$meta3,touched=_props$meta4.touched,warning2=_props$meta4.warning;return!!touched&&!!warning2;};var formValidation=function formValidation2(props){if(hasWarning(props))return"warning";if(hasError(props))return"error";return null;};var warning$1="errorMessage-module_warning_bXIaf";var message$2="errorMessage-module_message_5zSab";var error$2="errorMessage-module_error_QgQKc";var errorStyles={warning:warning$1,"Mui-focused":"errorMessage-module_Mui-focused_JfmdQ",message:message$2,error:error$2};var ErrorMessage=function ErrorMessage2(_ref3){var validationProps=_ref3.validationProps;var meta=validationProps.meta;var _ref22=meta||{},error2=_ref22.error,warning2=_ref22.warning;var messageClass=clsx(errorStyles.message,_defineProperty$1(_defineProperty$1({},errorStyles.error,hasError(validationProps)),errorStyles.warning,hasWarning(validationProps)));return/* @__PURE__ */jsxs("div",{className:messageClass,children:[hasError(validationProps)&&(error2===null||error2===void 0?void 0:error2.locale),hasWarning(validationProps)&&(warning2===null||warning2===void 0?void 0:warning2.locale)]});};var Option$1=function Option2(props){var _useOptionTooltip=useOptionTooltip(props.label,props.isDisabled,props.data.tooltipMessage),showTooltip=_useOptionTooltip.showTooltip,tooltipPosition=_useOptionTooltip.tooltipPosition,optionRef=_useOptionTooltip.optionRef,showDisabledTooltip=_useOptionTooltip.showDisabledTooltip;var tooltipMessage=showDisabledTooltip?props.data.tooltipMessage:props.label;var hasFormatOption=_.isFunction(props.formatOption);return/* @__PURE__ */jsx$1("div",{className:styles$l[showTooltip?"option-with-tooltip":""],"data-tooltip":tooltipMessage,style:showTooltip?{"--tooltip-top":"".concat(tooltipPosition.top,"px"),"--tooltip-left":"".concat(tooltipPosition.left,"px")}:void 0,children:/* @__PURE__ */jsx$1(components$1.Option,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$l[props.isDisabled?"disabled":""],styles$l[props.isMulti?"producteca-select-field__input-multiple":""]),children:[props.isMulti&&/* @__PURE__ */jsx$1("input",{type:"checkbox",checked:props.isSelected,onChange:_.identity}),hasFormatOption?/* @__PURE__ */jsx$1("div",{ref:optionRef,children:props.formatOption(props.data)}):/* @__PURE__ */jsx$1("label",{ref:optionRef,children:props.label})]})}))});};var BaseSingleValue=function BaseSingleValue2(props){return/* @__PURE__ */jsx$1(components$1.SingleValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var MultiValue2=function MultiValue3(props){return/* @__PURE__ */jsx$1(components$1.MultiValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:props.formatOption?props.formatOption(props.data):/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SingleValue2=function SingleValue3(props){return/* @__PURE__ */jsx$1(components$1.SingleValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SearchComponent=function SearchComponent2(){return/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__search-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(SearchRounded,{})})});};var MultipleTextComponent=function MultipleTextComponent2(_ref3){var _ref$optionSelected=_ref3.optionSelected,optionSelected=_ref$optionSelected===void 0?null:_ref$optionSelected;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var text2=optionSelected&&_.isArray(optionSelected)&&optionSelected.length===1?locale("selected"):locale("selectedPlural");return isArrayWithSome?/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__is-multiple"],children:/* @__PURE__ */jsxs("span",{children:[optionSelected.length," ",text2]})}):null;};var ClearComponent=function ClearComponent2(_ref22){var optionSelected=_ref22.optionSelected,isClearable=_ref22.isClearable,handleChange=_ref22.handleChange;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var hasSelectedValue=!_.isArray(optionSelected)&&optionSelected&&"value"in optionSelected&&optionSelected.value;return isClearable&&(isArrayWithSome||hasSelectedValue)?/* @__PURE__ */jsx$1("a",{className:styles$l["producteca-select-field__is-clearable"],onClick:function onClick(){return handleChange(null);},children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(ClearRounded,{})})}):null;};var SelectField=function SelectField2(props){var _input$value;var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$hideSelectedOp=props.hideSelectedOptions,hideSelectedOptions=_props$hideSelectedOp===void 0?true:_props$hideSelectedOp,_props$isMultiple=props.isMultiple,isMultiple=_props$isMultiple===void 0?false:_props$isMultiple,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,required=props.required,disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,_onChange=props.onChange,defaultValue=props.defaultValue,input=props.input,propsOnBlur=props.onBlur,meta=props.meta,isValid2=props.isValid,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,formatOption=props.formatOption;var value=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:props.value;var defaultOption=_.filter(options,function(_ref3){var optionValue=_ref3.value;return _.includes(value,optionValue);});var _useState=useState(defaultOption||null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var validationProps={meta:meta,value:value,isValid:isValid2,required:required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:function onChange2(selected2){var selectedValue=isMultiple?_.map(selected2,function(opt){return opt.value;}):selected2===null||selected2===void 0?void 0:selected2.value;if(!input){var fakeEvent={target:{name:name,value:selectedValue}};_onChange===null||_onChange===void 0||_onChange(fakeEvent);}return selectedValue;},onBlur:propsOnBlur,transformValue:function transformValue(selected2){var selectedValue=isMultiple?_.map(selected2,function(opt){return opt.value;}):selected2===null||selected2===void 0?void 0:selected2.value;return selectedValue;}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(selected2){fieldHandleChange(selected2);setOptionSelected(selected2);};useEffect(function(){if(defaultValue&&options.length>0){var val=_.isArray(defaultValue)?defaultValue:[defaultValue];var matchingOptions=_.filter(options,function(_ref4){var value2=_ref4.value;return _.includes(val,value2);});setOptionSelected(isMultiple?matchingOptions:matchingOptions[0]||null);}},[defaultValue,options]);var OptionWithFormat=function OptionWithFormat2(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));};var SingleValueWithFormat=function SingleValueWithFormat2(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1({},singleValueProps));};var MultiValueWithFormat=function MultiValueWithFormat2(multiValueProps){return/* @__PURE__ */jsx$1(MultiValue2,_objectSpread2$1(_objectSpread2$1({},multiValueProps),{},{formatOption:formatOption}));};var optionComponent=isMultiple?{Option:OptionWithFormat,MultiValue:MultiValueWithFormat}:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat};return/* @__PURE__ */jsxs("div",{className:clsx(styles$l["producteca-select-field-container"],_defineProperty$1({},errorStyles[validated],validated)),"data-testid":"producteca-select-field-container",children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},styles$l["producteca-select-field--on-error"],validated),styles$l["producteca-select-field--with-modifier"],rightModifier),styles$l["producteca-select-field--is-searchable"],isSearchable&&!isMultiple),styles$l["producteca-select-field--is-clearable"],isClearable)),children:[/* @__PURE__ */jsxs("div",{className:styles$l["body"],children:[isMultiple&&/* @__PURE__ */jsx$1(MultipleTextComponent,{optionSelected:optionSelected}),isSearchable&&!isMultiple&&/* @__PURE__ */jsx$1(SearchComponent,{}),/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,classNamePrefix:"producteca-select-field",placeholder:placeholder,isDisabled:disabled2,isMulti:isMultiple,closeMenuOnSelect:!isMultiple,hideSelectedOptions:hideSelectedOptions&&!isMultiple,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable&&!isMultiple,noOptionsMessage:function noOptionsMessage2(){return _noOptionsMessage;},onChange:handleChange,onBlur:handleBlur,value:optionSelected,options:options,components:optionComponent,menuPortalTarget:document.body})),/* @__PURE__ */jsx$1(ClearComponent,{optionSelected:optionSelected,isClearable:isClearable,handleChange:handleChange})]}),!!rightModifier&&rightModifier]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]})]});};var disabled$5="textInput-module_disabled_zmiie";var fullwidth="textInput-module_fullwidth_uG3VU";var lg$7="textInput-module_lg_rvzUN";var md$5="textInput-module_md_WTZlG";var sm$7="textInput-module_sm_3H7Tl";var title$6="textInput-module_title_Y61Pu";var styles$k={"form-field":"textInput-module_form-field_6ylpa","input-container":"textInput-module_input-container_YAHtg","right-modifier":"textInput-module_right-modifier_WqQCI","with-right-icon":"textInput-module_with-right-icon_K2CQ7","with-left-icon":"textInput-module_with-left-icon_WkTxr",disabled:disabled$5,"text-input-container":"textInput-module_text-input-container_ubBna","text-input":"textInput-module_text-input_9gGzW","right-icon":"textInput-module_right-icon_9Bh6D","left-icon":"textInput-module_left-icon_40v5M",fullwidth:fullwidth,lg:lg$7,md:md$5,sm:sm$7,title:title$6};var _excluded$$=["isValid","onChange","meta","value","noErrors","size","type","isClearable","max","min","leftIcon","rightIcon","input","inputRef","name"];var TextInput=function TextInput2(props){var _input$value;var isValid2=props.isValid,onChange2=props.onChange,meta=props.meta,_props$value=props.value,value=_props$value===void 0?"":_props$value,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$type=props.type,type=_props$type===void 0?"text":_props$type,isClearable=props.isClearable,max2=props.max,min2=props.min,leftIcon=props.leftIcon,rightIcon=props.rightIcon,input=props.input,inputRef=props.inputRef,name=props.name,otherProps=_objectWithoutProperties$1(props,_excluded$$);var inputValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var _useState=useState(""),_useState2=_slicedToArray$1(_useState,2),currentValue=_useState2[0],setCurrentValue=_useState2[1];var validationProps={meta:meta,value:inputValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var numericLimits=type==="number"?{max:max2,min:min2}:{};useEffect(function(){setCurrentValue(inputValue);},[inputValue]);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var value2=event.target.value;setCurrentValue(value2);return value2;}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(event){fieldHandleChange(event);};var rightModifier=isClearable&&!rightIcon&¤tValue?/* @__PURE__ */jsx$1(CustomIcon,{"data-testid":"clear-icon",children:/* @__PURE__ */jsx$1(ClearRounded,{})}):rightIcon;var onClickRightModifier=isClearable&&!rightIcon?function(){return handleChange({target:{name:props.name,value:""}});}:_.identity;var isSmall=size2=="sm";return/* @__PURE__ */jsxs("div",{"data-testid":"text-input-container",className:clsx(styles$k[size2],styles$k["text-input-container"],validated?errorStyles[validated]:"",!!leftIcon&&!isSmall?styles$k["with-left-icon"]:"",!!rightModifier&&!isSmall?styles$k["with-right-icon"]:""),children:[!!leftIcon&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["left-icon"]),children:leftIcon}),/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1({name:name,className:"text-input","data-testid":"text-input",value:currentValue?String(currentValue):"",type:type,onChange:handleChange,onBlur:handleBlur,ref:inputRef},numericLimits),otherProps)),!!rightModifier&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-icon"]),onClick:onClickRightModifier,children:rightModifier}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var PasswordInput=function PasswordInput2(props){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showPassword=_useState2[0],setShowPassword=_useState2[1];var type=showPassword?"text":"password";return/* @__PURE__ */jsx$1(TextInput,_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,"data-testid":"password-input",rightIcon:/* @__PURE__ */jsx$1(VisibilityIcon,{showPassword:showPassword,setShowPassword:setShowPassword})}));};var VisibilityIcon=function VisibilityIcon2(_ref3){var showPassword=_ref3.showPassword,setShowPassword=_ref3.setShowPassword;return/* @__PURE__ */jsx$1("div",{"data-testid":"visibility-toggle",onClick:function onClick(){return setShowPassword(!showPassword);},children:showPassword?/* @__PURE__ */jsx$1(Visibility,{}):/* @__PURE__ */jsx$1(VisibilityOff,{})});};var areViewsEqual=function areViewsEqual(views,expectedViews){if(views.length!==expectedViews.length){return false;}return expectedViews.every(function(expectedView){return views.includes(expectedView);});};var applyDefaultViewProps=function applyDefaultViewProps(_ref299){var openTo=_ref299.openTo,defaultOpenTo=_ref299.defaultOpenTo,views=_ref299.views,defaultViews=_ref299.defaultViews;var viewsWithDefault=views!=null?views:defaultViews;var openToWithDefault;if(openTo!=null){openToWithDefault=openTo;}else if(viewsWithDefault.includes(defaultOpenTo)){openToWithDefault=defaultOpenTo;}else if(viewsWithDefault.length>0){openToWithDefault=viewsWithDefault[0];}else{throw new Error("MUI X: The `views` prop must contain at least one view.");}return{views:viewsWithDefault,openTo:openToWithDefault};};var mergeDateAndTime=function mergeDateAndTime(utils,dateParam,timeParam){var mergedDate=dateParam;mergedDate=utils.setHours(mergedDate,utils.getHours(timeParam));mergedDate=utils.setMinutes(mergedDate,utils.getMinutes(timeParam));mergedDate=utils.setSeconds(mergedDate,utils.getSeconds(timeParam));mergedDate=utils.setMilliseconds(mergedDate,utils.getMilliseconds(timeParam));return mergedDate;};var findClosestEnabledDate=function findClosestEnabledDate(_ref300){var date=_ref300.date,disableFuture=_ref300.disableFuture,disablePast=_ref300.disablePast,maxDate=_ref300.maxDate,minDate=_ref300.minDate,isDateDisabled=_ref300.isDateDisabled,utils=_ref300.utils,timezone=_ref300.timezone;var today=mergeDateAndTime(utils,utils.date(void 0,timezone),date);if(disablePast&&utils.isBefore(minDate,today)){minDate=today;}if(disableFuture&&utils.isAfter(maxDate,today)){maxDate=today;}var forward=date;var backward=date;if(utils.isBefore(date,minDate)){forward=minDate;backward=null;}if(utils.isAfter(date,maxDate)){if(backward){backward=maxDate;}forward=null;}while(forward||backward){if(forward&&utils.isAfter(forward,maxDate)){forward=null;}if(backward&&utils.isBefore(backward,minDate)){backward=null;}if(forward){if(!isDateDisabled(forward)){return forward;}forward=utils.addDays(forward,1);}if(backward){if(!isDateDisabled(backward)){return backward;}backward=utils.addDays(backward,-1);}}return null;};var replaceInvalidDateByNull=function replaceInvalidDateByNull(utils,value){return value==null||!utils.isValid(value)?null:value;};var applyDefaultDate=function applyDefaultDate(utils,value,defaultValue){if(value==null||!utils.isValid(value)){return defaultValue;}return value;};var areDatesEqual=function areDatesEqual(utils,a,b){if(!utils.isValid(a)&&a!=null&&!utils.isValid(b)&&b!=null){return true;}return utils.isEqual(a,b);};var getMonthsInYear=function getMonthsInYear(utils,year){var firstMonth=utils.startOfYear(year);var months2=[firstMonth];while(months2.length<12){var prevMonth=months2[months2.length-1];months2.push(utils.addMonths(prevMonth,1));}return months2;};var _getTodayDate=function getTodayDate(utils,timezone,valueType){return valueType==="date"?utils.startOfDay(utils.date(void 0,timezone)):utils.date(void 0,timezone);};var formatMeridiem=function formatMeridiem(utils,meridiem){var date=utils.setHours(utils.date(),meridiem==="am"?2:14);return utils.format(date,"meridiem");};var dateViews=["year","month","day"];var isDatePickerView=function isDatePickerView(view){return dateViews.includes(view);};var resolveDateFormat=function resolveDateFormat(utils,_ref301,isInToolbar){var format2=_ref301.format,views=_ref301.views;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["year"])){return formats.year;}if(areViewsEqual(views,["month"])){return formats.month;}if(areViewsEqual(views,["day"])){return formats.dayOfMonth;}if(areViewsEqual(views,["month","year"])){return"".concat(formats.month," ").concat(formats.year);}if(areViewsEqual(views,["day","month"])){return"".concat(formats.month," ").concat(formats.dayOfMonth);}if(isInToolbar){return /en/.test(utils.getCurrentLocaleCode())?formats.normalDateWithWeekday:formats.normalDate;}return formats.keyboardDate;};var getWeekdays$1=function getWeekdays$1(utils,date){var start2=utils.startOfWeek(date);return[0,1,2,3,4,5,6].map(function(diff){return utils.addDays(start2,diff);});};var timeViews=["hours","minutes","seconds"];var isTimeView=function isTimeView(view){return timeViews.includes(view);};var isInternalTimeView=function isInternalTimeView(view){return timeViews.includes(view)||view==="meridiem";};var getMeridiem=function getMeridiem(date,utils){if(!date){return null;}return utils.getHours(date)>=12?"pm":"am";};var convertValueToMeridiem=function convertValueToMeridiem(value,meridiem,ampm){if(ampm){var currentMeridiem=value>=12?"pm":"am";if(currentMeridiem!==meridiem){return meridiem==="am"?value-12:value+12;}}return value;};var convertToMeridiem=function convertToMeridiem(time,meridiem,ampm,utils){var newHoursAmount=convertValueToMeridiem(utils.getHours(time),meridiem,ampm);return utils.setHours(time,newHoursAmount);};var getSecondsInDay=function getSecondsInDay(date,utils){return utils.getHours(date)*3600+utils.getMinutes(date)*60+utils.getSeconds(date);};var createIsAfterIgnoreDatePart=function createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation,utils){return function(dateLeft,dateRight){if(disableIgnoringDatePartForTimeValidation){return utils.isAfter(dateLeft,dateRight);}return getSecondsInDay(dateLeft,utils)>getSecondsInDay(dateRight,utils);};};var resolveTimeFormat=function resolveTimeFormat(utils,_ref302){var format2=_ref302.format,views=_ref302.views,ampm=_ref302.ampm;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["hours"])){return ampm?"".concat(formats.hours12h," ").concat(formats.meridiem):formats.hours24h;}if(areViewsEqual(views,["minutes"])){return formats.minutes;}if(areViewsEqual(views,["seconds"])){return formats.seconds;}if(areViewsEqual(views,["minutes","seconds"])){return"".concat(formats.minutes,":").concat(formats.seconds);}if(areViewsEqual(views,["hours","minutes","seconds"])){return ampm?"".concat(formats.hours12h,":").concat(formats.minutes,":").concat(formats.seconds," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes,":").concat(formats.seconds);}return ampm?"".concat(formats.hours12h,":").concat(formats.minutes," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes);};var SECTION_TYPE_GRANULARITY={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7};var getSectionTypeGranularity=function getSectionTypeGranularity(sections){return Math.max.apply(Math,_toConsumableArray2(sections.map(function(section){var _a;return(_a=SECTION_TYPE_GRANULARITY[section.type])!=null?_a:1;})));};var roundDate=function roundDate(utils,granularity,date){if(granularity===SECTION_TYPE_GRANULARITY.year){return utils.startOfYear(date);}if(granularity===SECTION_TYPE_GRANULARITY.month){return utils.startOfMonth(date);}if(granularity===SECTION_TYPE_GRANULARITY.day){return utils.startOfDay(date);}var roundedDate=date;if(granularity<SECTION_TYPE_GRANULARITY.minutes){roundedDate=utils.setMinutes(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.seconds){roundedDate=utils.setSeconds(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.milliseconds){roundedDate=utils.setMilliseconds(roundedDate,0);}return roundedDate;};var getDefaultReferenceDate=function getDefaultReferenceDate(_ref303){var props=_ref303.props,utils=_ref303.utils,granularity=_ref303.granularity,timezone=_ref303.timezone,inGetTodayDate=_ref303.getTodayDate;var _a;var referenceDate=inGetTodayDate?inGetTodayDate():roundDate(utils,granularity,_getTodayDate(utils,timezone));if(props.minDate!=null&&utils.isAfterDay(props.minDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.minDate);}if(props.maxDate!=null&&utils.isBeforeDay(props.maxDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.maxDate);}var isAfter2=createIsAfterIgnoreDatePart((_a=props.disableIgnoringDatePartForTimeValidation)!=null?_a:false,utils);if(props.minTime!=null&&isAfter2(props.minTime,referenceDate)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.minTime:mergeDateAndTime(utils,referenceDate,props.minTime));}if(props.maxTime!=null&&isAfter2(referenceDate,props.maxTime)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.maxTime:mergeDateAndTime(utils,referenceDate,props.maxTime));}return referenceDate;};var getDateSectionConfigFromFormatToken=function getDateSectionConfigFromFormatToken(utils,formatToken){var config2=utils.formatTokenMap[formatToken];if(config2==null){throw new Error(["MUI X: The token \"".concat(formatToken,"\" is not supported by the Date and Time Pickers."),"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));}if(typeof config2==="string"){return{type:config2,contentType:config2==="meridiem"?"letter":"digit",maxLength:void 0};}return{type:config2.sectionType,contentType:config2.contentType,maxLength:config2.maxLength};};var getDeltaFromKeyCode=function getDeltaFromKeyCode(keyCode){switch(keyCode){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0;}};var getDaysInWeekStr=function getDaysInWeekStr(utils,format2){var elements=[];var now=utils.date(void 0,"default");var startDate=utils.startOfWeek(now);var endDate=utils.endOfWeek(now);var current=startDate;while(utils.isBefore(current,endDate)){elements.push(current);current=utils.addDays(current,1);}return elements.map(function(weekDay){return utils.formatByString(weekDay,format2);});};var getLetterEditingOptions=function getLetterEditingOptions(utils,timezone,sectionType,format2){switch(sectionType){case"month":{return getMonthsInYear(utils,utils.date(void 0,timezone)).map(function(month2){return utils.formatByString(month2,format2);});}case"weekDay":{return getDaysInWeekStr(utils,format2);}case"meridiem":{var now=utils.date(void 0,timezone);return[utils.startOfDay(now),utils.endOfDay(now)].map(function(date){return utils.formatByString(date,format2);});}default:{return[];}}};var FORMAT_SECONDS_NO_LEADING_ZEROS="s";var NON_LOCALIZED_DIGITS=["0","1","2","3","4","5","6","7","8","9"];var getLocalizedDigits=function getLocalizedDigits(utils){var today=utils.date(void 0);var formattedZero=utils.formatByString(utils.setSeconds(today,0),FORMAT_SECONDS_NO_LEADING_ZEROS);if(formattedZero==="0"){return NON_LOCALIZED_DIGITS;}return Array.from({length:10}).map(function(_2,index2){return utils.formatByString(utils.setSeconds(today,index2),FORMAT_SECONDS_NO_LEADING_ZEROS);});};var removeLocalizedDigits=function removeLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}var digits=[];var currentFormattedDigit="";for(var _i13=0;_i13<valueStr.length;_i13+=1){currentFormattedDigit+=valueStr[_i13];var matchingDigitIndex=localizedDigits.indexOf(currentFormattedDigit);if(matchingDigitIndex>-1){digits.push(matchingDigitIndex.toString());currentFormattedDigit="";}}return digits.join("");};var applyLocalizedDigits=function applyLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}return valueStr.split("").map(function(char2){return localizedDigits[Number(char2)];}).join("");};var isStringNumber=function isStringNumber(valueStr,localizedDigits){var nonLocalizedValueStr=removeLocalizedDigits(valueStr,localizedDigits);return nonLocalizedValueStr!==" "&&!Number.isNaN(Number(nonLocalizedValueStr));};var cleanLeadingZeros=function cleanLeadingZeros(valueStr,size2){var cleanValueStr=valueStr;cleanValueStr=Number(cleanValueStr).toString();while(cleanValueStr.length<size2){cleanValueStr="0".concat(cleanValueStr);}return cleanValueStr;};var cleanDigitSectionValue=function cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section){if(process.env.NODE_ENV!=="production"){if(section.type!=="day"&§ion.contentType==="digit-with-letter"){throw new Error(["MUI X: The token \"".concat(section.format,"\" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections")].join("\n"));}}if(section.type==="day"&§ion.contentType==="digit-with-letter"){var date=utils.setDate(sectionBoundaries.longestMonth,value);return utils.formatByString(date,section.format);}var valueStr=value.toString();if(section.hasLeadingZerosInInput){valueStr=cleanLeadingZeros(valueStr,section.maxLength);}return applyLocalizedDigits(valueStr,localizedDigits);};var adjustSectionValue=function adjustSectionValue(utils,timezone,section,keyCode,sectionsValueBoundaries,localizedDigits,activeDate,stepsAttributes){var delta=getDeltaFromKeyCode(keyCode);var isStart=keyCode==="Home";var isEnd=keyCode==="End";var shouldSetAbsolute=section.value===""||isStart||isEnd;var adjustDigitSection=function adjustDigitSection(){var sectionBoundaries=sectionsValueBoundaries[section.type]({currentDate:activeDate,format:section.format,contentType:section.contentType});var getCleanValue=function getCleanValue(value){return cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section);};var step=section.type==="minutes"&&(stepsAttributes==null?void 0:stepsAttributes.minutesStep)?stepsAttributes.minutesStep:1;var newSectionValueNumber;if(shouldSetAbsolute){if(section.type==="year"&&!isEnd&&!isStart){return utils.formatByString(utils.date(void 0,timezone),section.format);}if(delta>0||isStart){newSectionValueNumber=sectionBoundaries.minimum;}else{newSectionValueNumber=sectionBoundaries.maximum;}}else{var currentSectionValue=parseInt(removeLocalizedDigits(section.value,localizedDigits),10);newSectionValueNumber=currentSectionValue+delta*step;}if(newSectionValueNumber%step!==0){if(delta<0||isStart){newSectionValueNumber+=step-(step+newSectionValueNumber)%step;}if(delta>0||isEnd){newSectionValueNumber-=newSectionValueNumber%step;}}if(newSectionValueNumber>sectionBoundaries.maximum){return getCleanValue(sectionBoundaries.minimum+(newSectionValueNumber-sectionBoundaries.maximum-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}if(newSectionValueNumber<sectionBoundaries.minimum){return getCleanValue(sectionBoundaries.maximum-(sectionBoundaries.minimum-newSectionValueNumber-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}return getCleanValue(newSectionValueNumber);};var adjustLetterSection=function adjustLetterSection(){var options=getLetterEditingOptions(utils,timezone,section.type,section.format);if(options.length===0){return section.value;}if(shouldSetAbsolute){if(delta>0||isStart){return options[0];}return options[options.length-1];}var currentOptionIndex=options.indexOf(section.value);var newOptionIndex=(currentOptionIndex+delta)%options.length;var clampedIndex=(newOptionIndex+options.length)%options.length;return options[clampedIndex];};if(section.contentType==="digit"||section.contentType==="digit-with-letter"){return adjustDigitSection();}return adjustLetterSection();};var getSectionVisibleValue=function getSectionVisibleValue(section,target,localizedDigits){var value=section.value||section.placeholder;var hasLeadingZeros=target==="non-input"?section.hasLeadingZerosInFormat:section.hasLeadingZerosInInput;if(target==="non-input"&§ion.hasLeadingZerosInInput&&!section.hasLeadingZerosInFormat){value=Number(removeLocalizedDigits(value,localizedDigits)).toString();}var shouldAddInvisibleSpace=["input-rtl","input-ltr"].includes(target)&§ion.contentType==="digit"&&!hasLeadingZeros&&value.length===1;if(shouldAddInvisibleSpace){value="".concat(value,"\u200E");}if(target==="input-rtl"){value="\u2068".concat(value,"\u2069");}return value;};var changeSectionValueFormat=function changeSectionValueFormat(utils,valueStr,currentFormat,newFormat){if(process.env.NODE_ENV!=="production"){if(getDateSectionConfigFromFormatToken(utils,currentFormat).type==="weekDay"){throw new Error("changeSectionValueFormat doesn't support week day formats");}}return utils.formatByString(utils.parse(valueStr,currentFormat),newFormat);};var isFourDigitYearFormat=function isFourDigitYearFormat(utils,format2){return utils.formatByString(utils.date(void 0,"system"),format2).length===4;};var doesSectionFormatHaveLeadingZeros=function doesSectionFormatHaveLeadingZeros(utils,contentType,sectionType,format2){if(contentType!=="digit"){return false;}var now=utils.date(void 0,"default");switch(sectionType){case"year":{if(utils.lib==="dayjs"&&format2==="YY"){return true;}return utils.formatByString(utils.setYear(now,1),format2).startsWith("0");}case"month":{return utils.formatByString(utils.startOfYear(now),format2).length>1;}case"day":{return utils.formatByString(utils.startOfMonth(now),format2).length>1;}case"weekDay":{return utils.formatByString(utils.startOfWeek(now),format2).length>1;}case"hours":{return utils.formatByString(utils.setHours(now,1),format2).length>1;}case"minutes":{return utils.formatByString(utils.setMinutes(now,1),format2).length>1;}case"seconds":{return utils.formatByString(utils.setSeconds(now,1),format2).length>1;}default:{throw new Error("Invalid section type");}}};var getDateFromDateSections=function getDateFromDateSections(utils,sections,localizedDigits){var shouldSkipWeekDays=sections.some(function(section){return section.type==="day";});var sectionFormats=[];var sectionValues=[];for(var _i14=0;_i14<sections.length;_i14+=1){var section=sections[_i14];var shouldSkip=shouldSkipWeekDays&§ion.type==="weekDay";if(!shouldSkip){sectionFormats.push(section.format);sectionValues.push(getSectionVisibleValue(section,"non-input",localizedDigits));}}var formatWithoutSeparator=sectionFormats.join(" ");var dateWithoutSeparatorStr=sectionValues.join(" ");return utils.parse(dateWithoutSeparatorStr,formatWithoutSeparator);};var createDateStrForV7HiddenInputFromSections=function createDateStrForV7HiddenInputFromSections(sections){return sections.map(function(section){return"".concat(section.startSeparator).concat(section.value||section.placeholder).concat(section.endSeparator);}).join("");};var createDateStrForV6InputFromSections=function createDateStrForV6InputFromSections(sections,localizedDigits,isRtl){var formattedSections=sections.map(function(section){var dateValue=getSectionVisibleValue(section,isRtl?"input-rtl":"input-ltr",localizedDigits);return"".concat(section.startSeparator).concat(dateValue).concat(section.endSeparator);});var dateStr=formattedSections.join("");if(!isRtl){return dateStr;}return"\u2066".concat(dateStr,"\u2069");};var getSectionsBoundaries=function getSectionsBoundaries(utils,localizedDigits,timezone){var today=utils.date(void 0,timezone);var endOfYear2=utils.endOfYear(today);var endOfDay=utils.endOfDay(today);var _getMonthsInYear$redu=getMonthsInYear(utils,today).reduce(function(acc,month2){var daysInMonth=utils.getDaysInMonth(month2);if(daysInMonth>acc.maxDaysInMonth){return{maxDaysInMonth:daysInMonth,longestMonth:month2};}return acc;},{maxDaysInMonth:0,longestMonth:null}),maxDaysInMonth=_getMonthsInYear$redu.maxDaysInMonth,longestMonth=_getMonthsInYear$redu.longestMonth;return{year:function year(_ref304){var format2=_ref304.format;return{minimum:0,maximum:isFourDigitYearFormat(utils,format2)?9999:99};},month:function month(){return{minimum:1,// Assumption: All years have the same amount of months
|
|
3459
3459
|
maximum:utils.getMonth(endOfYear2)+1};},day:function day(_ref305){var currentDate=_ref305.currentDate;return{minimum:1,maximum:currentDate!=null&&utils.isValid(currentDate)?utils.getDaysInMonth(currentDate):maxDaysInMonth,longestMonth:longestMonth};},weekDay:function weekDay(_ref306){var format2=_ref306.format,contentType=_ref306.contentType;if(contentType==="digit"){var daysInWeek=getDaysInWeekStr(utils,format2).map(Number);return{minimum:Math.min.apply(Math,_toConsumableArray2(daysInWeek)),maximum:Math.max.apply(Math,_toConsumableArray2(daysInWeek))};}return{minimum:1,maximum:7};},hours:function hours(_ref307){var format2=_ref307.format;var lastHourInDay=utils.getHours(endOfDay);var hasMeridiem=removeLocalizedDigits(utils.formatByString(utils.endOfDay(today),format2),localizedDigits)!==lastHourInDay.toString();if(hasMeridiem){return{minimum:1,maximum:Number(removeLocalizedDigits(utils.formatByString(utils.startOfDay(today),format2),localizedDigits))};}return{minimum:0,maximum:lastHourInDay};},minutes:function minutes(){return{minimum:0,// Assumption: All years have the same amount of minutes
|
|
3460
3460
|
maximum:utils.getMinutes(endOfDay)};},seconds:function seconds(){return{minimum:0,// Assumption: All years have the same amount of seconds
|
|
3461
3461
|
maximum:utils.getSeconds(endOfDay)};},meridiem:function meridiem(){return{minimum:0,maximum:1};},empty:function empty(){return{minimum:0,maximum:0};}};};var warnedOnceInvalidSection=false;var validateSections=function validateSections(sections,valueType){if(process.env.NODE_ENV!=="production"){if(!warnedOnceInvalidSection){var supportedSections=["empty"];if(["date","date-time"].includes(valueType)){supportedSections.push("weekDay","day","month","year");}if(["time","date-time"].includes(valueType)){supportedSections.push("hours","minutes","seconds","meridiem");}var invalidSection=sections.find(function(section){return!supportedSections.includes(section.type);});if(invalidSection){console.warn("MUI X: The field component you are using is not compatible with the \"".concat(invalidSection.type,"\" date section."),"The supported date sections are [\"".concat(supportedSections.join('", "'),"\"]`."));warnedOnceInvalidSection=true;}}}};var transferDateSectionValue=function transferDateSectionValue(utils,section,dateToTransferFrom,dateToTransferTo){switch(section.type){case"year":{return utils.setYear(dateToTransferTo,utils.getYear(dateToTransferFrom));}case"month":{return utils.setMonth(dateToTransferTo,utils.getMonth(dateToTransferFrom));}case"weekDay":{var formattedDaysInWeek=getDaysInWeekStr(utils,section.format);var dayInWeekStrOfActiveDate=utils.formatByString(dateToTransferFrom,section.format);var dayInWeekOfActiveDate=formattedDaysInWeek.indexOf(dayInWeekStrOfActiveDate);var dayInWeekOfNewSectionValue=formattedDaysInWeek.indexOf(section.value);var diff=dayInWeekOfNewSectionValue-dayInWeekOfActiveDate;return utils.addDays(dateToTransferFrom,diff);}case"day":{return utils.setDate(dateToTransferTo,utils.getDate(dateToTransferFrom));}case"meridiem":{var isAM=utils.getHours(dateToTransferFrom)<12;var mergedDateHours=utils.getHours(dateToTransferTo);if(isAM&&mergedDateHours>=12){return utils.addHours(dateToTransferTo,-12);}if(!isAM&&mergedDateHours<12){return utils.addHours(dateToTransferTo,12);}return dateToTransferTo;}case"hours":{return utils.setHours(dateToTransferTo,utils.getHours(dateToTransferFrom));}case"minutes":{return utils.setMinutes(dateToTransferTo,utils.getMinutes(dateToTransferFrom));}case"seconds":{return utils.setSeconds(dateToTransferTo,utils.getSeconds(dateToTransferFrom));}default:{return dateToTransferTo;}}};var reliableSectionModificationOrder={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9};var mergeDateIntoReferenceDate=function mergeDateIntoReferenceDate(utils,dateToTransferFrom,sections,referenceDate,shouldLimitToEditedSections){return(// cloning sections before sort to avoid mutating it
|
|
@@ -3518,7 +3518,7 @@ empty:"Empty"};var DEFAULT_LOCALE=enUSPickers;getPickersLocalization(enUSPickers
|
|
|
3518
3518
|
* Currently visible picker view.
|
|
3519
3519
|
*/view:PropTypes.oneOf(["day","month","year"]).isRequired,/**
|
|
3520
3520
|
* Available views.
|
|
3521
|
-
*/views:PropTypes.arrayOf(PropTypes.oneOf(["day","month","year"]).isRequired).isRequired}:void 0;function useDatePickerDefaultizedProps(props,name){var _a,_b;var utils=useUtils();var defaultDates=useDefaultDates();var themeProps=useThemeProps({props:props,name:name});var localeText=React.useMemo(function(){var _a2;if(((_a2=themeProps.localeText)==null?void 0:_a2.toolbarTitle)==null){return themeProps.localeText;}return _extends$1({},themeProps.localeText,{datePickerToolbarTitle:themeProps.localeText.toolbarTitle});},[themeProps.localeText]);return _extends$1({},themeProps,{localeText:localeText},applyDefaultViewProps({views:themeProps.views,openTo:themeProps.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(_a=themeProps.disableFuture)!=null?_a:false,disablePast:(_b=themeProps.disablePast)!=null?_b:false,minDate:applyDefaultDate(utils,themeProps.minDate,defaultDates.minDate),maxDate:applyDefaultDate(utils,themeProps.maxDate,defaultDates.maxDate),slots:_extends$1({toolbar:DatePickerToolbar},themeProps.slots)});}var validateDate=function validateDate(_ref310){var props=_ref310.props,value=_ref310.value,timezone=_ref310.timezone,adapter=_ref310.adapter;if(value===null){return null;}var shouldDisableDate=props.shouldDisableDate,shouldDisableMonth=props.shouldDisableMonth,shouldDisableYear=props.shouldDisableYear,disablePast=props.disablePast,disableFuture=props.disableFuture;var now=adapter.utils.date(void 0,timezone);var minDate=applyDefaultDate(adapter.utils,props.minDate,adapter.defaultDates.minDate);var maxDate=applyDefaultDate(adapter.utils,props.maxDate,adapter.defaultDates.maxDate);switch(true){case!adapter.utils.isValid(value):return"invalidDate";case Boolean(shouldDisableDate&&shouldDisableDate(value)):return"shouldDisableDate";case Boolean(shouldDisableMonth&&shouldDisableMonth(value)):return"shouldDisableMonth";case Boolean(shouldDisableYear&&shouldDisableYear(value)):return"shouldDisableYear";case Boolean(disableFuture&&adapter.utils.isAfterDay(value,now)):return"disableFuture";case Boolean(disablePast&&adapter.utils.isBeforeDay(value,now)):return"disablePast";case Boolean(minDate&&adapter.utils.isBeforeDay(value,minDate)):return"minDate";case Boolean(maxDate&&adapter.utils.isAfterDay(value,maxDate)):return"maxDate";default:return null;}};validateDate.valueManager=singleItemValueManager;var validateTime=function validateTime(_ref311){var adapter=_ref311.adapter,value=_ref311.value,timezone=_ref311.timezone,props=_ref311.props;if(value===null){return null;}var minTime=props.minTime,maxTime=props.maxTime,minutesStep=props.minutesStep,shouldDisableTime=props.shouldDisableTime,_props$disableIgnorin=props.disableIgnoringDatePartForTimeValidation,disableIgnoringDatePartForTimeValidation=_props$disableIgnorin===void 0?false:_props$disableIgnorin,disablePast=props.disablePast,disableFuture=props.disableFuture;var now=adapter.utils.date(void 0,timezone);var isAfter2=createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation,adapter.utils);switch(true){case!adapter.utils.isValid(value):return"invalidDate";case Boolean(minTime&&isAfter2(minTime,value)):return"minTime";case Boolean(maxTime&&isAfter2(value,maxTime)):return"maxTime";case Boolean(disableFuture&&adapter.utils.isAfter(value,now)):return"disableFuture";case Boolean(disablePast&&adapter.utils.isBefore(value,now)):return"disablePast";case Boolean(shouldDisableTime&&shouldDisableTime(value,"hours")):return"shouldDisableTime-hours";case Boolean(shouldDisableTime&&shouldDisableTime(value,"minutes")):return"shouldDisableTime-minutes";case Boolean(shouldDisableTime&&shouldDisableTime(value,"seconds")):return"shouldDisableTime-seconds";case Boolean(minutesStep&&adapter.utils.getMinutes(value)%minutesStep!==0):return"minutesStep";default:return null;}};validateTime.valueManager=singleItemValueManager;var validateDateTime=function validateDateTime(_ref312){var adapter=_ref312.adapter,value=_ref312.value,timezone=_ref312.timezone,props=_ref312.props;var dateValidationResult=validateDate({adapter:adapter,value:value,timezone:timezone,props:props});if(dateValidationResult!==null){return dateValidationResult;}return validateTime({adapter:adapter,value:value,timezone:timezone,props:props});};validateDateTime.valueManager=singleItemValueManager;var DATE_VALIDATION_PROP_NAMES=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"];var TIME_VALIDATION_PROP_NAMES=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"];var DATE_TIME_VALIDATION_PROP_NAMES=["minDateTime","maxDateTime"];var VALIDATION_PROP_NAMES=[].concat(DATE_VALIDATION_PROP_NAMES,TIME_VALIDATION_PROP_NAMES,DATE_TIME_VALIDATION_PROP_NAMES);var extractValidationProps=function extractValidationProps(props){return VALIDATION_PROP_NAMES.reduce(function(extractedProps,propName){if(props.hasOwnProperty(propName)){extractedProps[propName]=props[propName];}return extractedProps;},{});};function useValidation(options){var props=options.props,validator2=options.validator,value=options.value,timezone=options.timezone,onError=options.onError;var adapter=useLocalizationContext();var previousValidationErrorRef=React.useRef(validator2.valueManager.defaultErrorState);var validationError=validator2({adapter:adapter,value:value,timezone:timezone,props:props});var hasValidationError=validator2.valueManager.hasError(validationError);React.useEffect(function(){if(onError&&!validator2.valueManager.isSameError(validationError,previousValidationErrorRef.current)){onError(validationError,value);}previousValidationErrorRef.current=validationError;},[validator2,onError,validationError,value]);var getValidationErrorForNewValue=useEventCallback(function(newValue){return validator2({adapter:adapter,value:newValue,timezone:timezone,props:props});});return{validationError:validationError,hasValidationError:hasValidationError,getValidationErrorForNewValue:getValidationErrorForNewValue};}function getPickersPopperUtilityClass(slot){return generateUtilityClass("MuiPickersPopper",slot);}generateUtilityClasses("MuiPickersPopper",["root","paper"]);function arrayIncludes(array,itemOrItems){if(Array.isArray(itemOrItems)){return itemOrItems.every(function(item2){return array.indexOf(item2)!==-1;});}return array.indexOf(itemOrItems)!==-1;}var onSpaceOrEnter=function onSpaceOrEnter(innerFn,externalEvent){return function(event){if(event.key==="Enter"||event.key===" "){innerFn(event);event.preventDefault();event.stopPropagation();}};};var _getActiveElement=function getActiveElement(){var
|
|
3521
|
+
*/views:PropTypes.arrayOf(PropTypes.oneOf(["day","month","year"]).isRequired).isRequired}:void 0;function useDatePickerDefaultizedProps(props,name){var _a,_b;var utils=useUtils();var defaultDates=useDefaultDates();var themeProps=useThemeProps({props:props,name:name});var localeText=React.useMemo(function(){var _a2;if(((_a2=themeProps.localeText)==null?void 0:_a2.toolbarTitle)==null){return themeProps.localeText;}return _extends$1({},themeProps.localeText,{datePickerToolbarTitle:themeProps.localeText.toolbarTitle});},[themeProps.localeText]);return _extends$1({},themeProps,{localeText:localeText},applyDefaultViewProps({views:themeProps.views,openTo:themeProps.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(_a=themeProps.disableFuture)!=null?_a:false,disablePast:(_b=themeProps.disablePast)!=null?_b:false,minDate:applyDefaultDate(utils,themeProps.minDate,defaultDates.minDate),maxDate:applyDefaultDate(utils,themeProps.maxDate,defaultDates.maxDate),slots:_extends$1({toolbar:DatePickerToolbar},themeProps.slots)});}var validateDate=function validateDate(_ref310){var props=_ref310.props,value=_ref310.value,timezone=_ref310.timezone,adapter=_ref310.adapter;if(value===null){return null;}var shouldDisableDate=props.shouldDisableDate,shouldDisableMonth=props.shouldDisableMonth,shouldDisableYear=props.shouldDisableYear,disablePast=props.disablePast,disableFuture=props.disableFuture;var now=adapter.utils.date(void 0,timezone);var minDate=applyDefaultDate(adapter.utils,props.minDate,adapter.defaultDates.minDate);var maxDate=applyDefaultDate(adapter.utils,props.maxDate,adapter.defaultDates.maxDate);switch(true){case!adapter.utils.isValid(value):return"invalidDate";case Boolean(shouldDisableDate&&shouldDisableDate(value)):return"shouldDisableDate";case Boolean(shouldDisableMonth&&shouldDisableMonth(value)):return"shouldDisableMonth";case Boolean(shouldDisableYear&&shouldDisableYear(value)):return"shouldDisableYear";case Boolean(disableFuture&&adapter.utils.isAfterDay(value,now)):return"disableFuture";case Boolean(disablePast&&adapter.utils.isBeforeDay(value,now)):return"disablePast";case Boolean(minDate&&adapter.utils.isBeforeDay(value,minDate)):return"minDate";case Boolean(maxDate&&adapter.utils.isAfterDay(value,maxDate)):return"maxDate";default:return null;}};validateDate.valueManager=singleItemValueManager;var validateTime=function validateTime(_ref311){var adapter=_ref311.adapter,value=_ref311.value,timezone=_ref311.timezone,props=_ref311.props;if(value===null){return null;}var minTime=props.minTime,maxTime=props.maxTime,minutesStep=props.minutesStep,shouldDisableTime=props.shouldDisableTime,_props$disableIgnorin=props.disableIgnoringDatePartForTimeValidation,disableIgnoringDatePartForTimeValidation=_props$disableIgnorin===void 0?false:_props$disableIgnorin,disablePast=props.disablePast,disableFuture=props.disableFuture;var now=adapter.utils.date(void 0,timezone);var isAfter2=createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation,adapter.utils);switch(true){case!adapter.utils.isValid(value):return"invalidDate";case Boolean(minTime&&isAfter2(minTime,value)):return"minTime";case Boolean(maxTime&&isAfter2(value,maxTime)):return"maxTime";case Boolean(disableFuture&&adapter.utils.isAfter(value,now)):return"disableFuture";case Boolean(disablePast&&adapter.utils.isBefore(value,now)):return"disablePast";case Boolean(shouldDisableTime&&shouldDisableTime(value,"hours")):return"shouldDisableTime-hours";case Boolean(shouldDisableTime&&shouldDisableTime(value,"minutes")):return"shouldDisableTime-minutes";case Boolean(shouldDisableTime&&shouldDisableTime(value,"seconds")):return"shouldDisableTime-seconds";case Boolean(minutesStep&&adapter.utils.getMinutes(value)%minutesStep!==0):return"minutesStep";default:return null;}};validateTime.valueManager=singleItemValueManager;var validateDateTime=function validateDateTime(_ref312){var adapter=_ref312.adapter,value=_ref312.value,timezone=_ref312.timezone,props=_ref312.props;var dateValidationResult=validateDate({adapter:adapter,value:value,timezone:timezone,props:props});if(dateValidationResult!==null){return dateValidationResult;}return validateTime({adapter:adapter,value:value,timezone:timezone,props:props});};validateDateTime.valueManager=singleItemValueManager;var DATE_VALIDATION_PROP_NAMES=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"];var TIME_VALIDATION_PROP_NAMES=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"];var DATE_TIME_VALIDATION_PROP_NAMES=["minDateTime","maxDateTime"];var VALIDATION_PROP_NAMES=[].concat(DATE_VALIDATION_PROP_NAMES,TIME_VALIDATION_PROP_NAMES,DATE_TIME_VALIDATION_PROP_NAMES);var extractValidationProps=function extractValidationProps(props){return VALIDATION_PROP_NAMES.reduce(function(extractedProps,propName){if(props.hasOwnProperty(propName)){extractedProps[propName]=props[propName];}return extractedProps;},{});};function useValidation(options){var props=options.props,validator2=options.validator,value=options.value,timezone=options.timezone,onError=options.onError;var adapter=useLocalizationContext();var previousValidationErrorRef=React.useRef(validator2.valueManager.defaultErrorState);var validationError=validator2({adapter:adapter,value:value,timezone:timezone,props:props});var hasValidationError=validator2.valueManager.hasError(validationError);React.useEffect(function(){if(onError&&!validator2.valueManager.isSameError(validationError,previousValidationErrorRef.current)){onError(validationError,value);}previousValidationErrorRef.current=validationError;},[validator2,onError,validationError,value]);var getValidationErrorForNewValue=useEventCallback(function(newValue){return validator2({adapter:adapter,value:newValue,timezone:timezone,props:props});});return{validationError:validationError,hasValidationError:hasValidationError,getValidationErrorForNewValue:getValidationErrorForNewValue};}function getPickersPopperUtilityClass(slot){return generateUtilityClass("MuiPickersPopper",slot);}generateUtilityClasses("MuiPickersPopper",["root","paper"]);function arrayIncludes(array,itemOrItems){if(Array.isArray(itemOrItems)){return itemOrItems.every(function(item2){return array.indexOf(item2)!==-1;});}return array.indexOf(itemOrItems)!==-1;}var onSpaceOrEnter=function onSpaceOrEnter(innerFn,externalEvent){return function(event){if(event.key==="Enter"||event.key===" "){innerFn(event);event.preventDefault();event.stopPropagation();}};};var _getActiveElement=function getActiveElement(){var root2=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document;var activeEl=root2.activeElement;if(!activeEl){return null;}if(activeEl.shadowRoot){return _getActiveElement(activeEl.shadowRoot);}return activeEl;};var getFocusedListItemIndex=function getFocusedListItemIndex(listElement){var children=Array.from(listElement.children);return children.indexOf(_getActiveElement(document));};var DEFAULT_DESKTOP_MODE_MEDIA_QUERY="@media (pointer: fine)";var PREFERS_REDUCED_MOTION="@media (prefers-reduced-motion: reduce)";var mobileVersionMatches=typeof navigator!=="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i);var androidVersion=mobileVersionMatches&&mobileVersionMatches[1]?parseInt(mobileVersionMatches[1],10):null;var iOSVersion=mobileVersionMatches&&mobileVersionMatches[2]?parseInt(mobileVersionMatches[2],10):null;var slowAnimationDevices=androidVersion&&androidVersion<10||iOSVersion&&iOSVersion<13||false;var useDefaultReduceAnimations=function useDefaultReduceAnimations(){var prefersReduced=useMediaQuery$1(PREFERS_REDUCED_MOTION,{defaultMatches:false});return prefersReduced||slowAnimationDevices;};var _excluded$W=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"];var useUtilityClasses$v=function useUtilityClasses$v(ownerState){var classes=ownerState.classes;var slots={root:["root"],paper:["paper"]};return composeClasses(slots,getPickersPopperUtilityClass,classes);};var PickersPopperRoot=styled(Popper$1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:function overridesResolver(_2,styles2){return styles2.root;}})(function(_ref313){var theme=_ref313.theme;return{zIndex:theme.zIndex.modal};});var PickersPopperPaper=styled(Paper,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:function overridesResolver(_2,styles2){return styles2.paper;}})({outline:0,transformOrigin:"top center",variants:[{props:function props(_ref314){var placement=_ref314.placement;return["top","top-start","top-end"].includes(placement);},style:{transformOrigin:"bottom center"}}]});function clickedRootScrollbar(event,doc){return doc.documentElement.clientWidth<event.clientX||doc.documentElement.clientHeight<event.clientY;}function useClickAwayListener(active2,onClickAway){var movedRef=React.useRef(false);var syntheticEventRef=React.useRef(false);var nodeRef=React.useRef(null);var activatedRef=React.useRef(false);React.useEffect(function(){if(!active2){return void 0;}function armClickAwayListener(){activatedRef.current=true;}document.addEventListener("mousedown",armClickAwayListener,true);document.addEventListener("touchstart",armClickAwayListener,true);return function(){document.removeEventListener("mousedown",armClickAwayListener,true);document.removeEventListener("touchstart",armClickAwayListener,true);activatedRef.current=false;};},[active2]);var handleClickAway=useEventCallback(function(event){if(!activatedRef.current){return;}var insideReactTree=syntheticEventRef.current;syntheticEventRef.current=false;var doc=ownerDocument(nodeRef.current);if(!nodeRef.current||// is a TouchEvent?
|
|
3522
3522
|
"clientX"in event&&clickedRootScrollbar(event,doc)){return;}if(movedRef.current){movedRef.current=false;return;}var insideDOM;if(event.composedPath){insideDOM=event.composedPath().indexOf(nodeRef.current)>-1;}else{insideDOM=!doc.documentElement.contains(event.target)||nodeRef.current.contains(event.target);}if(!insideDOM&&!insideReactTree){onClickAway(event);}});var handleSynthetic=function handleSynthetic(){syntheticEventRef.current=true;};React.useEffect(function(){if(active2){var doc=ownerDocument(nodeRef.current);var handleTouchMove=function handleTouchMove(){movedRef.current=true;};doc.addEventListener("touchstart",handleClickAway);doc.addEventListener("touchmove",handleTouchMove);return function(){doc.removeEventListener("touchstart",handleClickAway);doc.removeEventListener("touchmove",handleTouchMove);};}return void 0;},[active2,handleClickAway]);React.useEffect(function(){if(active2){var doc=ownerDocument(nodeRef.current);doc.addEventListener("click",handleClickAway);return function(){doc.removeEventListener("click",handleClickAway);syntheticEventRef.current=false;};}return void 0;},[active2,handleClickAway]);return[nodeRef,handleSynthetic,handleSynthetic];}var PickersPopperPaperWrapper=/* @__PURE__ */React.forwardRef(function(props,ref){var PaperComponent=props.PaperComponent,popperPlacement=props.popperPlacement,inOwnerState=props.ownerState,children=props.children,paperSlotProps=props.paperSlotProps,paperClasses=props.paperClasses,onPaperClick=props.onPaperClick,onPaperTouchStart=props.onPaperTouchStart,other=_objectWithoutPropertiesLoose(props,_excluded$W);var ownerState=_extends$1({},inOwnerState,{placement:popperPlacement});var paperProps=useSlotProps({elementType:PaperComponent,externalSlotProps:paperSlotProps,additionalProps:{tabIndex:-1,elevation:8,ref:ref},className:paperClasses,ownerState:ownerState});return/* @__PURE__ */jsx$1(PaperComponent,_extends$1({},other,paperProps,{onClick:function onClick(event){var _a;onPaperClick(event);(_a=paperProps.onClick)==null?void 0:_a.call(paperProps,event);},onTouchStart:function onTouchStart(event){var _a;onPaperTouchStart(event);(_a=paperProps.onTouchStart)==null?void 0:_a.call(paperProps,event);},ownerState:ownerState,children:children}));});function PickersPopper(inProps){var _a,_b,_c,_d;var props=useThemeProps({props:inProps,name:"MuiPickersPopper"});var anchorEl=props.anchorEl,_children5=props.children,_props$containerRef=props.containerRef,containerRef=_props$containerRef===void 0?null:_props$containerRef,shouldRestoreFocus=props.shouldRestoreFocus,onBlur=props.onBlur,onDismiss=props.onDismiss,open=props.open,role=props.role,placement=props.placement,slots=props.slots,slotProps=props.slotProps,inReduceAnimations=props.reduceAnimations;React.useEffect(function(){function handleKeyDown2(nativeEvent){if(open&&nativeEvent.key==="Escape"){onDismiss();}}document.addEventListener("keydown",handleKeyDown2);return function(){document.removeEventListener("keydown",handleKeyDown2);};},[onDismiss,open]);var lastFocusedElementRef=React.useRef(null);React.useEffect(function(){if(role==="tooltip"||shouldRestoreFocus&&!shouldRestoreFocus()){return;}if(open){lastFocusedElementRef.current=_getActiveElement(document);}else if(lastFocusedElementRef.current&&lastFocusedElementRef.current instanceof HTMLElement){setTimeout(function(){if(lastFocusedElementRef.current instanceof HTMLElement){lastFocusedElementRef.current.focus();}});}},[open,role,shouldRestoreFocus]);var _useClickAwayListener=useClickAwayListener(open,onBlur!=null?onBlur:onDismiss),_useClickAwayListener2=_slicedToArray2(_useClickAwayListener,3),clickAwayRef=_useClickAwayListener2[0],onPaperClick=_useClickAwayListener2[1],onPaperTouchStart=_useClickAwayListener2[2];var paperRef=React.useRef(null);var handleRef=useForkRef(paperRef,containerRef);var handlePaperRef=useForkRef(handleRef,clickAwayRef);var ownerState=props;var classes=useUtilityClasses$v(ownerState);var defaultReduceAnimations=useDefaultReduceAnimations();var reduceAnimations=inReduceAnimations!=null?inReduceAnimations:defaultReduceAnimations;var handleKeyDown=function handleKeyDown(event){if(event.key==="Escape"){event.stopPropagation();onDismiss();}};var Transition2=((_a=slots==null?void 0:slots.desktopTransition)!=null?_a:reduceAnimations)?Fade:Grow;var FocusTrap$1=(_b=slots==null?void 0:slots.desktopTrapFocus)!=null?_b:FocusTrap;var Paper3=(_c=slots==null?void 0:slots.desktopPaper)!=null?_c:PickersPopperPaper;var Popper4=(_d=slots==null?void 0:slots.popper)!=null?_d:PickersPopperRoot;var popperProps=useSlotProps({elementType:Popper4,externalSlotProps:slotProps==null?void 0:slotProps.popper,additionalProps:{transition:true,role:role,open:open,anchorEl:anchorEl,placement:placement,onKeyDown:handleKeyDown},className:classes.root,ownerState:props});return/* @__PURE__ */jsx$1(Popper4,_extends$1({},popperProps,{children:function children(_ref315){var TransitionProps=_ref315.TransitionProps,popperPlacement=_ref315.placement;return/* @__PURE__ */jsx$1(FocusTrap$1,_extends$1({open:open,disableAutoFocus:true,disableRestoreFocus:true,disableEnforceFocus:role==="tooltip",isEnabled:function isEnabled(){return true;}},slotProps==null?void 0:slotProps.desktopTrapFocus,{children:/* @__PURE__ */jsx$1(Transition2,_extends$1({},TransitionProps,slotProps==null?void 0:slotProps.desktopTransition,{children:/* @__PURE__ */jsx$1(PickersPopperPaperWrapper,{PaperComponent:Paper3,ownerState:ownerState,popperPlacement:popperPlacement,ref:handlePaperRef,onPaperClick:onPaperClick,onPaperTouchStart:onPaperTouchStart,paperClasses:classes.paper,paperSlotProps:slotProps==null?void 0:slotProps.desktopPaper,children:_children5})}))}));}}));}var warnedOnceCache=/* @__PURE__ */new Set();function warnOnce(message2){var gravity=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"warning";if(process.env.NODE_ENV==="production"){return;}var cleanMessage=Array.isArray(message2)?message2.join("\n"):message2;if(!warnedOnceCache.has(cleanMessage)){warnedOnceCache.add(cleanMessage);if(gravity==="error"){console.error(cleanMessage);}else{console.warn(cleanMessage);}}}var useOpenState=function useOpenState(_ref316){var open=_ref316.open,onOpen=_ref316.onOpen,onClose=_ref316.onClose;var isControllingOpenProp=React.useRef(typeof open==="boolean").current;var _React$useState59=React.useState(false),_React$useState60=_slicedToArray2(_React$useState59,2),openState=_React$useState60[0],setIsOpenState=_React$useState60[1];React.useEffect(function(){if(isControllingOpenProp){if(typeof open!=="boolean"){throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");}setIsOpenState(open);}},[isControllingOpenProp,open]);var setIsOpen=React.useCallback(function(newIsOpen){if(!isControllingOpenProp){setIsOpenState(newIsOpen);}if(newIsOpen&&onOpen){onOpen();}if(!newIsOpen&&onClose){onClose();}},[isControllingOpenProp,onOpen,onClose]);return{isOpen:openState,setIsOpen:setIsOpen};};var useValueWithTimezone=function useValueWithTimezone(_ref317){var timezoneProp=_ref317.timezone,valueProp=_ref317.value,defaultValue=_ref317.defaultValue,referenceDate=_ref317.referenceDate,onChange2=_ref317.onChange,valueManager=_ref317.valueManager;var _a;var utils=useUtils();var firstDefaultValue=React.useRef(defaultValue);var inputValue=(_a=valueProp!=null?valueProp:firstDefaultValue.current)!=null?_a:valueManager.emptyValue;var inputTimezone=React.useMemo(function(){return valueManager.getTimezone(utils,inputValue);},[utils,valueManager,inputValue]);var setInputTimezone=useEventCallback(function(newValue){if(inputTimezone==null){return newValue;}return valueManager.setTimezone(utils,inputTimezone,newValue);});var timezoneToRender;if(timezoneProp){timezoneToRender=timezoneProp;}else if(inputTimezone){timezoneToRender=inputTimezone;}else if(referenceDate){timezoneToRender=utils.getTimezone(referenceDate);}else{timezoneToRender="default";}var valueWithTimezoneToRender=React.useMemo(function(){return valueManager.setTimezone(utils,timezoneToRender,inputValue);},[valueManager,utils,timezoneToRender,inputValue]);var handleValueChange=useEventCallback(function(newValue){var newValueWithInputTimezone=setInputTimezone(newValue);for(var _len27=arguments.length,otherParams=new Array(_len27>1?_len27-1:0),_key26=1;_key26<_len27;_key26++){otherParams[_key26-1]=arguments[_key26];}onChange2==null?void 0:onChange2.apply(void 0,[newValueWithInputTimezone].concat(otherParams));});return{value:valueWithTimezoneToRender,handleValueChange:handleValueChange,timezone:timezoneToRender};};var useControlledValueWithTimezone=function useControlledValueWithTimezone(_ref318){var name=_ref318.name,timezoneProp=_ref318.timezone,valueProp=_ref318.value,defaultValue=_ref318.defaultValue,referenceDate=_ref318.referenceDate,onChangeProp=_ref318.onChange,valueManager=_ref318.valueManager;var _useControlled7=useControlled({name:name,state:"value",controlled:valueProp,default:defaultValue!=null?defaultValue:valueManager.emptyValue}),_useControlled8=_slicedToArray2(_useControlled7,2),valueWithInputTimezone=_useControlled8[0],setValue=_useControlled8[1];var onChange2=useEventCallback(function(newValue){setValue(newValue);for(var _len28=arguments.length,otherParams=new Array(_len28>1?_len28-1:0),_key27=1;_key27<_len28;_key27++){otherParams[_key27-1]=arguments[_key27];}onChangeProp==null?void 0:onChangeProp.apply(void 0,[newValue].concat(otherParams));});return useValueWithTimezone({timezone:timezoneProp,value:valueWithInputTimezone,defaultValue:void 0,referenceDate:referenceDate,onChange:onChange2,valueManager:valueManager});};var shouldPublishValue=function shouldPublishValue(params){var action2=params.action,hasChanged=params.hasChanged,dateState=params.dateState,isControlled=params.isControlled;var isCurrentValueTheDefaultValue=!isControlled&&!dateState.hasBeenModifiedSinceMount;if(action2.name==="setValueFromField"){return true;}if(action2.name==="setValueFromAction"){if(isCurrentValueTheDefaultValue&&["accept","today","clear"].includes(action2.pickerAction)){return true;}return hasChanged(dateState.lastPublishedValue);}if(action2.name==="setValueFromView"&&action2.selectionState!=="shallow"){if(isCurrentValueTheDefaultValue){return true;}return hasChanged(dateState.lastPublishedValue);}if(action2.name==="setValueFromShortcut"){if(isCurrentValueTheDefaultValue){return true;}return hasChanged(dateState.lastPublishedValue);}return false;};var shouldCommitValue=function shouldCommitValue(params){var action2=params.action,hasChanged=params.hasChanged,dateState=params.dateState,isControlled=params.isControlled,closeOnSelect=params.closeOnSelect;var isCurrentValueTheDefaultValue=!isControlled&&!dateState.hasBeenModifiedSinceMount;if(action2.name==="setValueFromAction"){if(isCurrentValueTheDefaultValue&&["accept","today","clear"].includes(action2.pickerAction)){return true;}return hasChanged(dateState.lastCommittedValue);}if(action2.name==="setValueFromView"&&action2.selectionState==="finish"&&closeOnSelect){if(isCurrentValueTheDefaultValue){return true;}return hasChanged(dateState.lastCommittedValue);}if(action2.name==="setValueFromShortcut"){return action2.changeImportance==="accept"&&hasChanged(dateState.lastCommittedValue);}return false;};var shouldClosePicker=function shouldClosePicker(params){var action2=params.action,closeOnSelect=params.closeOnSelect;if(action2.name==="setValueFromAction"){return true;}if(action2.name==="setValueFromView"){return action2.selectionState==="finish"&&closeOnSelect;}if(action2.name==="setValueFromShortcut"){return action2.changeImportance==="accept";}return false;};var usePickerValue=function usePickerValue(_ref319){var props=_ref319.props,valueManager=_ref319.valueManager,valueType=_ref319.valueType,wrapperVariant=_ref319.wrapperVariant,validator2=_ref319.validator;var onAccept=props.onAccept,onChange2=props.onChange,inValueWithoutRenderTimezone=props.value,inDefaultValue=props.defaultValue,_props$closeOnSelect=props.closeOnSelect,closeOnSelect=_props$closeOnSelect===void 0?wrapperVariant==="desktop":_props$closeOnSelect,timezoneProp=props.timezone,referenceDate=props.referenceDate;var _React$useRef7=React.useRef(inDefaultValue),defaultValue=_React$useRef7.current;var _React$useRef8=React.useRef(inValueWithoutRenderTimezone!==void 0),isControlled=_React$useRef8.current;var _React$useState61=React.useState(timezoneProp),_React$useState62=_slicedToArray2(_React$useState61,2),previousTimezoneProp=_React$useState62[0],setPreviousTimezoneProp=_React$useState62[1];if(process.env.NODE_ENV!=="production"){React.useEffect(function(){if(isControlled!==(inValueWithoutRenderTimezone!==void 0)){console.error(["MUI X: A component is changing the ".concat(isControlled?"":"un","controlled value of a picker to be ").concat(isControlled?"un":"","controlled."),"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"));}},[inValueWithoutRenderTimezone]);React.useEffect(function(){if(!isControlled&&defaultValue!==inDefaultValue){console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join("\n"));}},[JSON.stringify(defaultValue)]);}var utils=useUtils();var adapter=useLocalizationContext();var _useOpenState=useOpenState(props),isOpen=_useOpenState.isOpen,setIsOpen=_useOpenState.setIsOpen;var _useValueWithTimezone=useValueWithTimezone({timezone:timezoneProp,value:inValueWithoutRenderTimezone,defaultValue:defaultValue,referenceDate:referenceDate,onChange:onChange2,valueManager:valueManager}),timezone=_useValueWithTimezone.timezone,inValueWithTimezoneToRender=_useValueWithTimezone.value,handleValueChange=_useValueWithTimezone.handleValueChange;var _React$useState63=React.useState(function(){var initialValue;if(inValueWithTimezoneToRender!==void 0){initialValue=inValueWithTimezoneToRender;}else if(defaultValue!==void 0){initialValue=defaultValue;}else{initialValue=valueManager.emptyValue;}return{draft:initialValue,lastPublishedValue:initialValue,lastCommittedValue:initialValue,lastControlledValue:inValueWithoutRenderTimezone,hasBeenModifiedSinceMount:false};}),_React$useState64=_slicedToArray2(_React$useState63,2),dateState=_React$useState64[0],setDateState=_React$useState64[1];var timezoneFromDraftValue=valueManager.getTimezone(utils,dateState.draft);if(previousTimezoneProp!==timezoneProp){setPreviousTimezoneProp(timezoneProp);if(timezoneProp&&timezoneFromDraftValue&&timezoneProp!==timezoneFromDraftValue){setDateState(function(prev2){return _extends$1({},prev2,{draft:valueManager.setTimezone(utils,timezoneProp,prev2.draft)});});}}var _useValidation=useValidation({props:props,validator:validator2,timezone:timezone,value:dateState.draft,onError:props.onError}),getValidationErrorForNewValue=_useValidation.getValidationErrorForNewValue;var updateDate=useEventCallback(function(action2){var updaterParams={action:action2,dateState:dateState,hasChanged:function hasChanged(comparison){return!valueManager.areValuesEqual(utils,action2.value,comparison);},isControlled:isControlled,closeOnSelect:closeOnSelect};var shouldPublish=shouldPublishValue(updaterParams);var shouldCommit=shouldCommitValue(updaterParams);var shouldClose=shouldClosePicker(updaterParams);setDateState(function(prev2){return _extends$1({},prev2,{draft:action2.value,lastPublishedValue:shouldPublish?action2.value:prev2.lastPublishedValue,lastCommittedValue:shouldCommit?action2.value:prev2.lastCommittedValue,hasBeenModifiedSinceMount:true});});var cachedContext=null;var getContext=function getContext(){if(!cachedContext){var validationError=action2.name==="setValueFromField"?action2.context.validationError:getValidationErrorForNewValue(action2.value);cachedContext={validationError:validationError};if(action2.name==="setValueFromShortcut"){cachedContext.shortcut=action2.shortcut;}}return cachedContext;};if(shouldPublish){handleValueChange(action2.value,getContext());}if(shouldCommit&&onAccept){onAccept(action2.value,getContext());}if(shouldClose){setIsOpen(false);}});if(dateState.lastControlledValue!==inValueWithoutRenderTimezone){var isUpdateComingFromPicker=valueManager.areValuesEqual(utils,dateState.draft,inValueWithTimezoneToRender);setDateState(function(prev2){return _extends$1({},prev2,{lastControlledValue:inValueWithoutRenderTimezone},isUpdateComingFromPicker?{}:{lastCommittedValue:inValueWithTimezoneToRender,lastPublishedValue:inValueWithTimezoneToRender,draft:inValueWithTimezoneToRender,hasBeenModifiedSinceMount:true});});}var handleClear=useEventCallback(function(){updateDate({value:valueManager.emptyValue,name:"setValueFromAction",pickerAction:"clear"});});var handleAccept=useEventCallback(function(){updateDate({value:dateState.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"});});var handleDismiss=useEventCallback(function(){updateDate({value:dateState.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"});});var handleCancel=useEventCallback(function(){updateDate({value:dateState.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"});});var handleSetToday=useEventCallback(function(){updateDate({value:valueManager.getTodayValue(utils,timezone,valueType),name:"setValueFromAction",pickerAction:"today"});});var handleOpen=useEventCallback(function(event){event.preventDefault();setIsOpen(true);});var handleClose=useEventCallback(function(event){event==null?void 0:event.preventDefault();setIsOpen(false);});var handleChange=useEventCallback(function(newValue){var selectionState=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"partial";return updateDate({name:"setValueFromView",value:newValue,selectionState:selectionState});});var handleSelectShortcut=useEventCallback(function(newValue,changeImportance,shortcut){return updateDate({name:"setValueFromShortcut",value:newValue,changeImportance:changeImportance,shortcut:shortcut});});var handleChangeFromField=useEventCallback(function(newValue,context){return updateDate({name:"setValueFromField",value:newValue,context:context});});var actions={onClear:handleClear,onAccept:handleAccept,onDismiss:handleDismiss,onCancel:handleCancel,onSetToday:handleSetToday,onOpen:handleOpen,onClose:handleClose};var fieldResponse={value:dateState.draft,onChange:handleChangeFromField};var viewValue=React.useMemo(function(){return valueManager.cleanValue(utils,dateState.draft);},[utils,valueManager,dateState.draft]);var viewResponse={value:viewValue,onChange:handleChange,onClose:handleClose,open:isOpen};var isValid2=function isValid2(testedValue){var error2=validator2({adapter:adapter,value:testedValue,timezone:timezone,props:props});return!valueManager.hasError(error2);};var layoutResponse=_extends$1({},actions,{value:viewValue,onChange:handleChange,onSelectShortcut:handleSelectShortcut,isValid:isValid2});var contextValue=React.useMemo(function(){return{onOpen:handleOpen,onClose:handleClose,open:isOpen};},[isOpen,handleClose,handleOpen]);return{open:isOpen,fieldProps:fieldResponse,viewProps:viewResponse,layoutProps:layoutResponse,actions:actions,contextValue:contextValue};};var warnedOnceNotValidView=false;function useViews(_ref320){var onChange2=_ref320.onChange,onViewChange=_ref320.onViewChange,openTo=_ref320.openTo,inView=_ref320.view,views=_ref320.views,autoFocus=_ref320.autoFocus,inFocusedView=_ref320.focusedView,onFocusedViewChange=_ref320.onFocusedViewChange;var _a,_b;if(process.env.NODE_ENV!=="production"){if(!warnedOnceNotValidView){if(inView!=null&&!views.includes(inView)){console.warn("MUI X: `view=\"".concat(inView,"\"` is not a valid prop."),"It must be an element of `views=[\"".concat(views.join('", "'),"\"]`."));warnedOnceNotValidView=true;}if(inView==null&&openTo!=null&&!views.includes(openTo)){console.warn("MUI X: `openTo=\"".concat(openTo,"\"` is not a valid prop."),"It must be an element of `views=[\"".concat(views.join('", "'),"\"]`."));warnedOnceNotValidView=true;}}}var previousOpenTo=React.useRef(openTo);var previousViews=React.useRef(views);var defaultView=React.useRef(views.includes(openTo)?openTo:views[0]);var _useControlled9=useControlled({name:"useViews",state:"view",controlled:inView,default:defaultView.current}),_useControlled0=_slicedToArray2(_useControlled9,2),view=_useControlled0[0],setView=_useControlled0[1];var defaultFocusedView=React.useRef(autoFocus?view:null);var _useControlled1=useControlled({name:"useViews",state:"focusedView",controlled:inFocusedView,default:defaultFocusedView.current}),_useControlled10=_slicedToArray2(_useControlled1,2),focusedView=_useControlled10[0],setFocusedView=_useControlled10[1];React.useEffect(function(){if(previousOpenTo.current&&previousOpenTo.current!==openTo||previousViews.current&&previousViews.current.some(function(previousView2){return!views.includes(previousView2);})){setView(views.includes(openTo)?openTo:views[0]);previousViews.current=views;previousOpenTo.current=openTo;}},[openTo,setView,view,views]);var viewIndex=views.indexOf(view);var previousView=(_a=views[viewIndex-1])!=null?_a:null;var nextView=(_b=views[viewIndex+1])!=null?_b:null;var handleFocusedViewChange=useEventCallback(function(viewToFocus,hasFocus){if(hasFocus){setFocusedView(viewToFocus);}else{setFocusedView(function(prevFocusedView){return viewToFocus===prevFocusedView?null:prevFocusedView;}// If false the blur is due to view switching
|
|
3523
3523
|
);}onFocusedViewChange==null?void 0:onFocusedViewChange(viewToFocus,hasFocus);});var handleChangeView=useEventCallback(function(newView){handleFocusedViewChange(newView,true);if(newView===view){return;}setView(newView);if(onViewChange){onViewChange(newView);}});var goToNextView=useEventCallback(function(){if(nextView){handleChangeView(nextView);}});var setValueAndGoToNextView=useEventCallback(function(value,currentViewSelectionState,selectedView){var isSelectionFinishedOnCurrentView=currentViewSelectionState==="finish";var hasMoreViews=selectedView?// handles case like `DateTimePicker`, where a view might return a `finish` selection state
|
|
3524
3524
|
// but when it's not the final view given all `views` -> overall selection state should be `partial`.
|
|
@@ -3601,7 +3601,7 @@ classes:PropTypes.object.isRequired,element:PropTypes.shape({after:PropTypes.obj
|
|
|
3601
3601
|
* The props used for each component slot.
|
|
3602
3602
|
*/slotProps:PropTypes.object,/**
|
|
3603
3603
|
* Overridable component slots.
|
|
3604
|
-
*/slots:PropTypes.object}:void 0;var PickersSectionList=/* @__PURE__ */React.forwardRef(function PickersSectionList2(inProps,ref){var _a;var props=useThemeProps({props:inProps,name:"MuiPickersSectionList"});var slots=props.slots,slotProps=props.slotProps,elements=props.elements,sectionListRef=props.sectionListRef,other=_objectWithoutPropertiesLoose(props,_excluded$Q);var classes=useUtilityClasses$s(props);var rootRef=React.useRef(null);var handleRootRef=useForkRef(ref,rootRef);var _getRoot=function getRoot(methodName){if(!rootRef.current){throw new Error("MUI X: Cannot call sectionListRef.".concat(methodName," before the mount of the component."));}return rootRef.current;};React.useImperativeHandle(sectionListRef,function(){return{getRoot:function getRoot(){return _getRoot("getRoot");},getSectionContainer:function getSectionContainer(index2){var
|
|
3604
|
+
*/slots:PropTypes.object}:void 0;var PickersSectionList=/* @__PURE__ */React.forwardRef(function PickersSectionList2(inProps,ref){var _a;var props=useThemeProps({props:inProps,name:"MuiPickersSectionList"});var slots=props.slots,slotProps=props.slotProps,elements=props.elements,sectionListRef=props.sectionListRef,other=_objectWithoutPropertiesLoose(props,_excluded$Q);var classes=useUtilityClasses$s(props);var rootRef=React.useRef(null);var handleRootRef=useForkRef(ref,rootRef);var _getRoot=function getRoot(methodName){if(!rootRef.current){throw new Error("MUI X: Cannot call sectionListRef.".concat(methodName," before the mount of the component."));}return rootRef.current;};React.useImperativeHandle(sectionListRef,function(){return{getRoot:function getRoot(){return _getRoot("getRoot");},getSectionContainer:function getSectionContainer(index2){var root2=_getRoot("getSectionContainer");return root2.querySelector(".".concat(pickersSectionListClasses.section,"[data-sectionindex=\"").concat(index2,"\"]"));},getSectionContent:function getSectionContent(index2){var root2=_getRoot("getSectionContent");return root2.querySelector(".".concat(pickersSectionListClasses.section,"[data-sectionindex=\"").concat(index2,"\"] .").concat(pickersSectionListClasses.sectionContent));},getSectionIndexFromDOMElement:function getSectionIndexFromDOMElement(element){var root2=_getRoot("getSectionIndexFromDOMElement");if(element==null||!root2.contains(element)){return null;}var sectionContainer=null;if(element.classList.contains(pickersSectionListClasses.section)){sectionContainer=element;}else if(element.classList.contains(pickersSectionListClasses.sectionContent)){sectionContainer=element.parentElement;}if(sectionContainer==null){return null;}return Number(sectionContainer.dataset.sectionindex);}};});var Root3=(_a=slots==null?void 0:slots.root)!=null?_a:PickersSectionListRoot;var rootProps=useSlotProps({elementType:Root3,externalSlotProps:slotProps==null?void 0:slotProps.root,externalForwardedProps:other,additionalProps:{ref:handleRootRef,suppressContentEditableWarning:true},className:classes.root,ownerState:{}});return/* @__PURE__ */jsx$1(Root3,_extends$1({},rootProps,{children:rootProps.contentEditable?elements.map(function(_ref333){var content2=_ref333.content,before=_ref333.before,after=_ref333.after;return"".concat(before.children).concat(content2.children).concat(after.children);}).join(""):/* @__PURE__ */jsx$1(React.Fragment,{children:elements.map(function(element,elementIndex){return/* @__PURE__ */jsx$1(PickersSection,{slots:slots,slotProps:slotProps,element:element,classes:classes},elementIndex);})})}));});process.env.NODE_ENV!=="production"?PickersSectionList.propTypes={// ----------------------------- Warning --------------------------------
|
|
3605
3605
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
3606
3606
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
3607
3607
|
// ----------------------------------------------------------------------
|
|
@@ -6935,9 +6935,9 @@ function toISOString(){var _this$tzComponents=this.tzComponents(),_this$tzCompon
|
|
|
6935
6935
|
},{key:"withTimeZone",value:function withTimeZone(timeZone){return new TZDate(+this,timeZone);}//#region date-fns integration
|
|
6936
6936
|
},{key:Symbol.for("constructDateFrom"),value:function value(date){return new TZDate(+new Date(date),this.timeZone);}//#endregion
|
|
6937
6937
|
}],[{key:"tz",value://#region static
|
|
6938
|
-
function tz(_tz2){for(var _len34=arguments.length,args=new Array(_len34>1?_len34-1:0),_key33=1;_key33<_len34;_key33++){args[_key33-1]=arguments[_key33];}return args.length?_construct(TZDate,args.concat([_tz2])):new TZDate(Date.now(),_tz2);}}]);}(TZDateMini);var millisecondsInWeek=6048e5;var millisecondsInDay=864e5;var constructFromSymbol=Symbol.for("constructDateFrom");function constructFrom(date,value){if(typeof date==="function")return date(value);if(date&&_typeof2(date)==="object"&&constructFromSymbol in date)return date[constructFromSymbol](value);if(date instanceof Date)return new date.constructor(value);return new Date(value);}function toDate(argument,context){return constructFrom(context||argument,argument);}function addDays(date,amount,options){var _date=toDate(date,options==null?void 0:options.in);if(isNaN(amount))return constructFrom(date,NaN);if(!amount)return _date;_date.setDate(_date.getDate()+amount);return _date;}function addMonths(date,amount,options){var _date=toDate(date,options==null?void 0:options.in);if(isNaN(amount))return constructFrom(date,NaN);if(!amount){return _date;}var dayOfMonth=_date.getDate();var endOfDesiredMonth=constructFrom(date,_date.getTime());endOfDesiredMonth.setMonth(_date.getMonth()+amount+1,0);var daysInMonth=endOfDesiredMonth.getDate();if(dayOfMonth>=daysInMonth){return endOfDesiredMonth;}else{_date.setFullYear(endOfDesiredMonth.getFullYear(),endOfDesiredMonth.getMonth(),dayOfMonth);return _date;}}var defaultOptions={};function getDefaultOptions(){return defaultOptions;}function startOfWeek(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var defaultOptions2=getDefaultOptions();var weekStartsOn=(_h=(_g=(_d=(_c=options==null?void 0:options.weekStartsOn)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.weekStartsOn)!=null?_d:defaultOptions2.weekStartsOn)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.weekStartsOn)!=null?_h:0;var _date=toDate(date,options==null?void 0:options.in);var day2=_date.getDay();var diff=(day2<weekStartsOn?7:0)+day2-weekStartsOn;_date.setDate(_date.getDate()-diff);_date.setHours(0,0,0,0);return _date;}function startOfISOWeek(date,options){return startOfWeek(date,__spreadProps(__spreadValues({},options),{weekStartsOn:1}));}function getISOWeekYear(date,options){var _date=toDate(date,options==null?void 0:options.in);var year=_date.getFullYear();var fourthOfJanuaryOfNextYear=constructFrom(_date,0);fourthOfJanuaryOfNextYear.setFullYear(year+1,0,4);fourthOfJanuaryOfNextYear.setHours(0,0,0,0);var startOfNextYear=startOfISOWeek(fourthOfJanuaryOfNextYear);var fourthOfJanuaryOfThisYear=constructFrom(_date,0);fourthOfJanuaryOfThisYear.setFullYear(year,0,4);fourthOfJanuaryOfThisYear.setHours(0,0,0,0);var startOfThisYear=startOfISOWeek(fourthOfJanuaryOfThisYear);if(_date.getTime()>=startOfNextYear.getTime()){return year+1;}else if(_date.getTime()>=startOfThisYear.getTime()){return year;}else{return year-1;}}function getTimezoneOffsetInMilliseconds(date){var _date=toDate(date);var utcDate=new Date(Date.UTC(_date.getFullYear(),_date.getMonth(),_date.getDate(),_date.getHours(),_date.getMinutes(),_date.getSeconds(),_date.getMilliseconds()));utcDate.setUTCFullYear(_date.getFullYear());return+date-+utcDate;}function normalizeDates(context){for(var _len35=arguments.length,dates=new Array(_len35>1?_len35-1:0),_key34=1;_key34<_len35;_key34++){dates[_key34-1]=arguments[_key34];}var normalize=constructFrom.bind(null,dates.find(function(date){return _typeof2(date)==="object";}));return dates.map(normalize);}function startOfDay(date,options){var _date=toDate(date,options==null?void 0:options.in);_date.setHours(0,0,0,0);return _date;}function differenceInCalendarDays(laterDate,earlierDate,options){var _normalizeDates=normalizeDates(options==null?void 0:options.in,laterDate,earlierDate),_normalizeDates2=_slicedToArray2(_normalizeDates,2),laterDate_=_normalizeDates2[0],earlierDate_=_normalizeDates2[1];var laterStartOfDay=startOfDay(laterDate_);var earlierStartOfDay=startOfDay(earlierDate_);var laterTimestamp=+laterStartOfDay-getTimezoneOffsetInMilliseconds(laterStartOfDay);var earlierTimestamp=+earlierStartOfDay-getTimezoneOffsetInMilliseconds(earlierStartOfDay);return Math.round((laterTimestamp-earlierTimestamp)/millisecondsInDay);}function startOfISOWeekYear(date,options){var year=getISOWeekYear(date,options);var fourthOfJanuary=constructFrom(date,0);fourthOfJanuary.setFullYear(year,0,4);fourthOfJanuary.setHours(0,0,0,0);return startOfISOWeek(fourthOfJanuary);}function addWeeks(date,amount,options){return addDays(date,amount*7,options);}function addYears(date,amount,options){return addMonths(date,amount*12,options);}function max$1(dates,options){var result;var context=options==null?void 0:options.in;dates.forEach(function(date){if(!context&&_typeof2(date)==="object")context=constructFrom.bind(null,date);var date_=toDate(date,context);if(!result||result<date_||isNaN(+date_))result=date_;});return constructFrom(context,result||NaN);}function min$1(dates,options){var result;var context=options==null?void 0:options.in;dates.forEach(function(date){if(!context&&_typeof2(date)==="object")context=constructFrom.bind(null,date);var date_=toDate(date,context);if(!result||result>date_||isNaN(+date_))result=date_;});return constructFrom(context,result||NaN);}function isSameDay(laterDate,earlierDate,options){var _normalizeDates3=normalizeDates(options==null?void 0:options.in,laterDate,earlierDate),_normalizeDates4=_slicedToArray2(_normalizeDates3,2),dateLeft_=_normalizeDates4[0],dateRight_=_normalizeDates4[1];return+startOfDay(dateLeft_)===+startOfDay(dateRight_);}function isDate(value){return value instanceof Date||_typeof2(value)==="object"&&Object.prototype.toString.call(value)==="[object Date]";}function isValid(date){return!(!isDate(date)&&typeof date!=="number"||isNaN(+toDate(date)));}function differenceInCalendarMonths(laterDate,earlierDate,options){var _normalizeDates5=normalizeDates(options==null?void 0:options.in,laterDate,earlierDate),_normalizeDates6=_slicedToArray2(_normalizeDates5,2),laterDate_=_normalizeDates6[0],earlierDate_=_normalizeDates6[1];var yearsDiff=laterDate_.getFullYear()-earlierDate_.getFullYear();var monthsDiff=laterDate_.getMonth()-earlierDate_.getMonth();return yearsDiff*12+monthsDiff;}function endOfMonth(date,options){var _date=toDate(date,options==null?void 0:options.in);var month2=_date.getMonth();_date.setFullYear(_date.getFullYear(),month2+1,0);_date.setHours(23,59,59,999);return _date;}function normalizeInterval(context,interval){var _normalizeDates7=normalizeDates(context,interval.start,interval.end),_normalizeDates8=_slicedToArray2(_normalizeDates7,2),start2=_normalizeDates8[0],end2=_normalizeDates8[1];return{start:start2,end:end2};}function eachMonthOfInterval(interval,options){var _normalizeInterval=normalizeInterval(options==null?void 0:options.in,interval),start2=_normalizeInterval.start,end2=_normalizeInterval.end;var reversed=+start2>+end2;var endTime=reversed?+start2:+end2;var date=reversed?end2:start2;date.setHours(0,0,0,0);date.setDate(1);var step=1;var dates=[];while(+date<=endTime){dates.push(constructFrom(start2,date));date.setMonth(date.getMonth()+step);}return reversed?dates.reverse():dates;}function startOfMonth(date,options){var _date=toDate(date,options==null?void 0:options.in);_date.setDate(1);_date.setHours(0,0,0,0);return _date;}function endOfYear(date,options){var _date=toDate(date,options==null?void 0:options.in);var year=_date.getFullYear();_date.setFullYear(year+1,0,0);_date.setHours(23,59,59,999);return _date;}function startOfYear(date,options){var date_=toDate(date,options==null?void 0:options.in);date_.setFullYear(date_.getFullYear(),0,1);date_.setHours(0,0,0,0);return date_;}function endOfWeek(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var defaultOptions2=getDefaultOptions();var weekStartsOn=(_h=(_g=(_d=(_c=options==null?void 0:options.weekStartsOn)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.weekStartsOn)!=null?_d:defaultOptions2.weekStartsOn)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.weekStartsOn)!=null?_h:0;var _date=toDate(date,options==null?void 0:options.in);var day2=_date.getDay();var diff=(day2<weekStartsOn?-7:0)+6-(day2-weekStartsOn);_date.setDate(_date.getDate()+diff);_date.setHours(23,59,59,999);return _date;}function endOfISOWeek(date,options){return endOfWeek(date,__spreadProps(__spreadValues({},options),{weekStartsOn:1}));}var formatDistanceLocale$1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var formatDistance$1=function formatDistance$1(token2,count2,options){var result;var tokenValue=formatDistanceLocale$1[token2];if(typeof tokenValue==="string"){result=tokenValue;}else if(count2===1){result=tokenValue.one;}else{result=tokenValue.other.replace("{{count}}",count2.toString());}if(options==null?void 0:options.addSuffix){if(options.comparison&&options.comparison>0){return"in "+result;}else{return result+" ago";}}return result;};function buildFormatLongFn(args){return function(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var width2=options.width?String(options.width):args.defaultWidth;var format2=args.formats[width2]||args.formats[args.defaultWidth];return format2;};}var dateFormats$1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var timeFormats$1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var dateTimeFormats$1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong$1={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})};var formatRelativeLocale$1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var formatRelative$1=function formatRelative$1(token2,_date,_baseDate,_options){return formatRelativeLocale$1[token2];};function buildLocalizeFn(args){return function(value,options){var context=(options==null?void 0:options.context)?String(options.context):"standalone";var valuesArray;if(context==="formatting"&&args.formattingValues){var defaultWidth=args.defaultFormattingWidth||args.defaultWidth;var width2=(options==null?void 0:options.width)?String(options.width):defaultWidth;valuesArray=args.formattingValues[width2]||args.formattingValues[defaultWidth];}else{var _defaultWidth=args.defaultWidth;var _width=(options==null?void 0:options.width)?String(options.width):args.defaultWidth;valuesArray=args.values[_width]||args.values[_defaultWidth];}var index2=args.argumentCallback?args.argumentCallback(value):value;return valuesArray[index2];};}var eraValues$1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var quarterValues$1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var monthValues$1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var dayValues$1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var dayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var formattingDayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var ordinalNumber$1=function ordinalNumber$1(dirtyNumber,_options){var number=Number(dirtyNumber);var rem100=number%100;if(rem100>20||rem100<10){switch(rem100%10){case 1:return number+"st";case 2:return number+"nd";case 3:return number+"rd";}}return number+"th";};var localize$1={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return quarter-1;}}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$1,defaultFormattingWidth:"wide"})};function buildMatchFn(args){return function(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var width2=options.width;var matchPattern=width2&&args.matchPatterns[width2]||args.matchPatterns[args.defaultMatchWidth];var matchResult=string.match(matchPattern);if(!matchResult){return null;}var matchedString=matchResult[0];var parsePatterns=width2&&args.parsePatterns[width2]||args.parsePatterns[args.defaultParseWidth];var key=Array.isArray(parsePatterns)?findIndex(parsePatterns,function(pattern){return pattern.test(matchedString);}):// [TODO] -- I challenge you to fix the type
|
|
6938
|
+
function tz(_tz2){for(var _len34=arguments.length,args=new Array(_len34>1?_len34-1:0),_key33=1;_key33<_len34;_key33++){args[_key33-1]=arguments[_key33];}return args.length?_construct(TZDate,args.concat([_tz2])):new TZDate(Date.now(),_tz2);}}]);}(TZDateMini);var millisecondsInWeek=6048e5;var millisecondsInDay=864e5;var constructFromSymbol=Symbol.for("constructDateFrom");function constructFrom(date,value){if(typeof date==="function")return date(value);if(date&&_typeof2(date)==="object"&&constructFromSymbol in date)return date[constructFromSymbol](value);if(date instanceof Date)return new date.constructor(value);return new Date(value);}function toDate(argument,context){return constructFrom(context||argument,argument);}function addDays(date,amount,options){var _date=toDate(date,options==null?void 0:options.in);if(isNaN(amount))return constructFrom(date,NaN);if(!amount)return _date;_date.setDate(_date.getDate()+amount);return _date;}function addMonths(date,amount,options){var _date=toDate(date,options==null?void 0:options.in);if(isNaN(amount))return constructFrom(date,NaN);if(!amount){return _date;}var dayOfMonth=_date.getDate();var endOfDesiredMonth=constructFrom(date,_date.getTime());endOfDesiredMonth.setMonth(_date.getMonth()+amount+1,0);var daysInMonth=endOfDesiredMonth.getDate();if(dayOfMonth>=daysInMonth){return endOfDesiredMonth;}else{_date.setFullYear(endOfDesiredMonth.getFullYear(),endOfDesiredMonth.getMonth(),dayOfMonth);return _date;}}var defaultOptions={};function getDefaultOptions(){return defaultOptions;}function startOfWeek(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var defaultOptions2=getDefaultOptions();var weekStartsOn=(_h=(_g=(_d=(_c=options==null?void 0:options.weekStartsOn)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.weekStartsOn)!=null?_d:defaultOptions2.weekStartsOn)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.weekStartsOn)!=null?_h:0;var _date=toDate(date,options==null?void 0:options.in);var day2=_date.getDay();var diff=(day2<weekStartsOn?7:0)+day2-weekStartsOn;_date.setDate(_date.getDate()-diff);_date.setHours(0,0,0,0);return _date;}function startOfISOWeek(date,options){return startOfWeek(date,__spreadProps(__spreadValues({},options),{weekStartsOn:1}));}function getISOWeekYear(date,options){var _date=toDate(date,options==null?void 0:options.in);var year=_date.getFullYear();var fourthOfJanuaryOfNextYear=constructFrom(_date,0);fourthOfJanuaryOfNextYear.setFullYear(year+1,0,4);fourthOfJanuaryOfNextYear.setHours(0,0,0,0);var startOfNextYear=startOfISOWeek(fourthOfJanuaryOfNextYear);var fourthOfJanuaryOfThisYear=constructFrom(_date,0);fourthOfJanuaryOfThisYear.setFullYear(year,0,4);fourthOfJanuaryOfThisYear.setHours(0,0,0,0);var startOfThisYear=startOfISOWeek(fourthOfJanuaryOfThisYear);if(_date.getTime()>=startOfNextYear.getTime()){return year+1;}else if(_date.getTime()>=startOfThisYear.getTime()){return year;}else{return year-1;}}function getTimezoneOffsetInMilliseconds(date){var _date=toDate(date);var utcDate=new Date(Date.UTC(_date.getFullYear(),_date.getMonth(),_date.getDate(),_date.getHours(),_date.getMinutes(),_date.getSeconds(),_date.getMilliseconds()));utcDate.setUTCFullYear(_date.getFullYear());return+date-+utcDate;}function normalizeDates(context){for(var _len35=arguments.length,dates=new Array(_len35>1?_len35-1:0),_key34=1;_key34<_len35;_key34++){dates[_key34-1]=arguments[_key34];}var normalize=constructFrom.bind(null,dates.find(function(date){return _typeof2(date)==="object";}));return dates.map(normalize);}function startOfDay(date,options){var _date=toDate(date,options==null?void 0:options.in);_date.setHours(0,0,0,0);return _date;}function differenceInCalendarDays(laterDate,earlierDate,options){var _normalizeDates=normalizeDates(options==null?void 0:options.in,laterDate,earlierDate),_normalizeDates2=_slicedToArray2(_normalizeDates,2),laterDate_=_normalizeDates2[0],earlierDate_=_normalizeDates2[1];var laterStartOfDay=startOfDay(laterDate_);var earlierStartOfDay=startOfDay(earlierDate_);var laterTimestamp=+laterStartOfDay-getTimezoneOffsetInMilliseconds(laterStartOfDay);var earlierTimestamp=+earlierStartOfDay-getTimezoneOffsetInMilliseconds(earlierStartOfDay);return Math.round((laterTimestamp-earlierTimestamp)/millisecondsInDay);}function startOfISOWeekYear(date,options){var year=getISOWeekYear(date,options);var fourthOfJanuary=constructFrom(date,0);fourthOfJanuary.setFullYear(year,0,4);fourthOfJanuary.setHours(0,0,0,0);return startOfISOWeek(fourthOfJanuary);}function addWeeks(date,amount,options){return addDays(date,amount*7,options);}function addYears(date,amount,options){return addMonths(date,amount*12,options);}function max$1(dates,options){var result;var context=options==null?void 0:options.in;dates.forEach(function(date){if(!context&&_typeof2(date)==="object")context=constructFrom.bind(null,date);var date_=toDate(date,context);if(!result||result<date_||isNaN(+date_))result=date_;});return constructFrom(context,result||NaN);}function min$1(dates,options){var result;var context=options==null?void 0:options.in;dates.forEach(function(date){if(!context&&_typeof2(date)==="object")context=constructFrom.bind(null,date);var date_=toDate(date,context);if(!result||result>date_||isNaN(+date_))result=date_;});return constructFrom(context,result||NaN);}function isSameDay(laterDate,earlierDate,options){var _normalizeDates3=normalizeDates(options==null?void 0:options.in,laterDate,earlierDate),_normalizeDates4=_slicedToArray2(_normalizeDates3,2),dateLeft_=_normalizeDates4[0],dateRight_=_normalizeDates4[1];return+startOfDay(dateLeft_)===+startOfDay(dateRight_);}function isDate(value){return value instanceof Date||_typeof2(value)==="object"&&Object.prototype.toString.call(value)==="[object Date]";}function isValid(date){return!(!isDate(date)&&typeof date!=="number"||isNaN(+toDate(date)));}function differenceInCalendarMonths(laterDate,earlierDate,options){var _normalizeDates5=normalizeDates(options==null?void 0:options.in,laterDate,earlierDate),_normalizeDates6=_slicedToArray2(_normalizeDates5,2),laterDate_=_normalizeDates6[0],earlierDate_=_normalizeDates6[1];var yearsDiff=laterDate_.getFullYear()-earlierDate_.getFullYear();var monthsDiff=laterDate_.getMonth()-earlierDate_.getMonth();return yearsDiff*12+monthsDiff;}function endOfMonth(date,options){var _date=toDate(date,options==null?void 0:options.in);var month2=_date.getMonth();_date.setFullYear(_date.getFullYear(),month2+1,0);_date.setHours(23,59,59,999);return _date;}function normalizeInterval(context,interval){var _normalizeDates7=normalizeDates(context,interval.start,interval.end),_normalizeDates8=_slicedToArray2(_normalizeDates7,2),start2=_normalizeDates8[0],end2=_normalizeDates8[1];return{start:start2,end:end2};}function eachMonthOfInterval(interval,options){var _normalizeInterval=normalizeInterval(options==null?void 0:options.in,interval),start2=_normalizeInterval.start,end2=_normalizeInterval.end;var reversed=+start2>+end2;var endTime=reversed?+start2:+end2;var date=reversed?end2:start2;date.setHours(0,0,0,0);date.setDate(1);var step=1;var dates=[];while(+date<=endTime){dates.push(constructFrom(start2,date));date.setMonth(date.getMonth()+step);}return reversed?dates.reverse():dates;}function startOfMonth(date,options){var _date=toDate(date,options==null?void 0:options.in);_date.setDate(1);_date.setHours(0,0,0,0);return _date;}function endOfYear(date,options){var _date=toDate(date,options==null?void 0:options.in);var year=_date.getFullYear();_date.setFullYear(year+1,0,0);_date.setHours(23,59,59,999);return _date;}function startOfYear(date,options){var date_=toDate(date,options==null?void 0:options.in);date_.setFullYear(date_.getFullYear(),0,1);date_.setHours(0,0,0,0);return date_;}function endOfWeek(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var defaultOptions2=getDefaultOptions();var weekStartsOn=(_h=(_g=(_d=(_c=options==null?void 0:options.weekStartsOn)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.weekStartsOn)!=null?_d:defaultOptions2.weekStartsOn)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.weekStartsOn)!=null?_h:0;var _date=toDate(date,options==null?void 0:options.in);var day2=_date.getDay();var diff=(day2<weekStartsOn?-7:0)+6-(day2-weekStartsOn);_date.setDate(_date.getDate()+diff);_date.setHours(23,59,59,999);return _date;}function endOfISOWeek(date,options){return endOfWeek(date,__spreadProps(__spreadValues({},options),{weekStartsOn:1}));}var formatDistanceLocale$1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var formatDistance$1=function formatDistance$1(token2,count2,options){var result;var tokenValue=formatDistanceLocale$1[token2];if(typeof tokenValue==="string"){result=tokenValue;}else if(count2===1){result=tokenValue.one;}else{result=tokenValue.other.replace("{{count}}",count2.toString());}if(options==null?void 0:options.addSuffix){if(options.comparison&&options.comparison>0){return"in "+result;}else{return result+" ago";}}return result;};function buildFormatLongFn(args){return function(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var width2=options.width?String(options.width):args.defaultWidth;var format2=args.formats[width2]||args.formats[args.defaultWidth];return format2;};}var dateFormats$1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var timeFormats$1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var dateTimeFormats$1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong$1={date:buildFormatLongFn({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats$1,defaultWidth:"full"})};var formatRelativeLocale$1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var formatRelative$1=function formatRelative$1(token2,_date,_baseDate,_options){return formatRelativeLocale$1[token2];};function buildLocalizeFn(args){return function(value,options){var context=(options==null?void 0:options.context)?String(options.context):"standalone";var valuesArray;if(context==="formatting"&&args.formattingValues){var defaultWidth=args.defaultFormattingWidth||args.defaultWidth;var width2=(options==null?void 0:options.width)?String(options.width):defaultWidth;valuesArray=args.formattingValues[width2]||args.formattingValues[defaultWidth];}else{var _defaultWidth=args.defaultWidth;var _width=(options==null?void 0:options.width)?String(options.width):args.defaultWidth;valuesArray=args.values[_width]||args.values[_defaultWidth];}var index2=args.argumentCallback?args.argumentCallback(value):value;return valuesArray[index2];};}var eraValues$1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var quarterValues$1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var monthValues$1={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var dayValues$1={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var dayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var formattingDayPeriodValues$1={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var ordinalNumber$1=function ordinalNumber$1(dirtyNumber,_options){var number=Number(dirtyNumber);var rem100=number%100;if(rem100>20||rem100<10){switch(rem100%10){case 1:return number+"st";case 2:return number+"nd";case 3:return number+"rd";}}return number+"th";};var localize$1={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues$1,defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return quarter-1;}}),month:buildLocalizeFn({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$1,defaultFormattingWidth:"wide"})};function buildMatchFn(args){return function(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var width2=options.width;var matchPattern=width2&&args.matchPatterns[width2]||args.matchPatterns[args.defaultMatchWidth];var matchResult=string.match(matchPattern);if(!matchResult){return null;}var matchedString=matchResult[0];var parsePatterns=width2&&args.parsePatterns[width2]||args.parsePatterns[args.defaultParseWidth];var key=Array.isArray(parsePatterns)?findIndex$2(parsePatterns,function(pattern){return pattern.test(matchedString);}):// [TODO] -- I challenge you to fix the type
|
|
6939
6939
|
findKey(parsePatterns,function(pattern){return pattern.test(matchedString);});var value;value=args.valueCallback?args.valueCallback(key):key;value=options.valueCallback?// [TODO] -- I challenge you to fix the type
|
|
6940
|
-
options.valueCallback(value):value;var rest=string.slice(matchedString.length);return{value:value,rest:rest};};}function findKey(object,predicate){for(var key in object){if(Object.prototype.hasOwnProperty.call(object,key)&&predicate(object[key])){return key;}}return void 0;}function findIndex(array,predicate){for(var key=0;key<array.length;key++){if(predicate(array[key])){return key;}}return void 0;}function buildMatchPatternFn(args){return function(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var matchResult=string.match(args.matchPattern);if(!matchResult)return null;var matchedString=matchResult[0];var parseResult=string.match(args.parsePattern);if(!parseResult)return null;var value=args.valueCallback?args.valueCallback(parseResult[0]):parseResult[0];value=options.valueCallback?options.valueCallback(value):value;var rest=string.slice(matchedString.length);return{value:value,rest:rest};};}var matchOrdinalNumberPattern$1=/^(\d+)(th|st|nd|rd)?/i;var parseOrdinalNumberPattern$1=/\d+/i;var matchEraPatterns$1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var parseEraPatterns$1={any:[/^b/i,/^(a|c)/i]};var matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var parseQuarterPatterns$1={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns$1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var parseMonthPatterns$1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var matchDayPatterns$1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var parseDayPatterns$1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var matchDayPeriodPatterns$1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var parseDayPeriodPatterns$1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var match$2={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:function valueCallback(value){return parseInt(value,10);}}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:function valueCallback(index2){return index2+1;}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})};var enUS={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(date,options){var _date=toDate(date,options==null?void 0:options.in);var diff=differenceInCalendarDays(_date,startOfYear(_date));var dayOfYear=diff+1;return dayOfYear;}function getISOWeek(date,options){var _date=toDate(date,options==null?void 0:options.in);var diff=+startOfISOWeek(_date)-+startOfISOWeekYear(_date);return Math.round(diff/millisecondsInWeek)+1;}function getWeekYear(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var _date=toDate(date,options==null?void 0:options.in);var year=_date.getFullYear();var defaultOptions2=getDefaultOptions();var firstWeekContainsDate=(_h=(_g=(_d=(_c=options==null?void 0:options.firstWeekContainsDate)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.firstWeekContainsDate)!=null?_d:defaultOptions2.firstWeekContainsDate)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.firstWeekContainsDate)!=null?_h:1;var firstWeekOfNextYear=constructFrom((options==null?void 0:options.in)||date,0);firstWeekOfNextYear.setFullYear(year+1,0,firstWeekContainsDate);firstWeekOfNextYear.setHours(0,0,0,0);var startOfNextYear=startOfWeek(firstWeekOfNextYear,options);var firstWeekOfThisYear=constructFrom((options==null?void 0:options.in)||date,0);firstWeekOfThisYear.setFullYear(year,0,firstWeekContainsDate);firstWeekOfThisYear.setHours(0,0,0,0);var startOfThisYear=startOfWeek(firstWeekOfThisYear,options);if(+_date>=+startOfNextYear){return year+1;}else if(+_date>=+startOfThisYear){return year;}else{return year-1;}}function startOfWeekYear(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var defaultOptions2=getDefaultOptions();var firstWeekContainsDate=(_h=(_g=(_d=(_c=options==null?void 0:options.firstWeekContainsDate)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.firstWeekContainsDate)!=null?_d:defaultOptions2.firstWeekContainsDate)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.firstWeekContainsDate)!=null?_h:1;var year=getWeekYear(date,options);var firstWeek=constructFrom((options==null?void 0:options.in)||date,0);firstWeek.setFullYear(year,0,firstWeekContainsDate);firstWeek.setHours(0,0,0,0);var _date=startOfWeek(firstWeek,options);return _date;}function getWeek(date,options){var _date=toDate(date,options==null?void 0:options.in);var diff=+startOfWeek(_date,options)-+startOfWeekYear(_date,options);return Math.round(diff/millisecondsInWeek)+1;}function addLeadingZeros(number,targetLength){var sign=number<0?"-":"";var output=Math.abs(number).toString().padStart(targetLength,"0");return sign+output;}var lightFormatters={// Year
|
|
6940
|
+
options.valueCallback(value):value;var rest=string.slice(matchedString.length);return{value:value,rest:rest};};}function findKey(object,predicate){for(var key in object){if(Object.prototype.hasOwnProperty.call(object,key)&&predicate(object[key])){return key;}}return void 0;}function findIndex$2(array,predicate){for(var key=0;key<array.length;key++){if(predicate(array[key])){return key;}}return void 0;}function buildMatchPatternFn(args){return function(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var matchResult=string.match(args.matchPattern);if(!matchResult)return null;var matchedString=matchResult[0];var parseResult=string.match(args.parsePattern);if(!parseResult)return null;var value=args.valueCallback?args.valueCallback(parseResult[0]):parseResult[0];value=options.valueCallback?options.valueCallback(value):value;var rest=string.slice(matchedString.length);return{value:value,rest:rest};};}var matchOrdinalNumberPattern$1=/^(\d+)(th|st|nd|rd)?/i;var parseOrdinalNumberPattern$1=/\d+/i;var matchEraPatterns$1={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var parseEraPatterns$1={any:[/^b/i,/^(a|c)/i]};var matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var parseQuarterPatterns$1={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns$1={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var parseMonthPatterns$1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var matchDayPatterns$1={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var parseDayPatterns$1={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var matchDayPeriodPatterns$1={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var parseDayPeriodPatterns$1={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var match$2={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:function valueCallback(value){return parseInt(value,10);}}),era:buildMatchFn({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:function valueCallback(index2){return index2+1;}}),month:buildMatchFn({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})};var enUS={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(date,options){var _date=toDate(date,options==null?void 0:options.in);var diff=differenceInCalendarDays(_date,startOfYear(_date));var dayOfYear=diff+1;return dayOfYear;}function getISOWeek(date,options){var _date=toDate(date,options==null?void 0:options.in);var diff=+startOfISOWeek(_date)-+startOfISOWeekYear(_date);return Math.round(diff/millisecondsInWeek)+1;}function getWeekYear(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var _date=toDate(date,options==null?void 0:options.in);var year=_date.getFullYear();var defaultOptions2=getDefaultOptions();var firstWeekContainsDate=(_h=(_g=(_d=(_c=options==null?void 0:options.firstWeekContainsDate)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.firstWeekContainsDate)!=null?_d:defaultOptions2.firstWeekContainsDate)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.firstWeekContainsDate)!=null?_h:1;var firstWeekOfNextYear=constructFrom((options==null?void 0:options.in)||date,0);firstWeekOfNextYear.setFullYear(year+1,0,firstWeekContainsDate);firstWeekOfNextYear.setHours(0,0,0,0);var startOfNextYear=startOfWeek(firstWeekOfNextYear,options);var firstWeekOfThisYear=constructFrom((options==null?void 0:options.in)||date,0);firstWeekOfThisYear.setFullYear(year,0,firstWeekContainsDate);firstWeekOfThisYear.setHours(0,0,0,0);var startOfThisYear=startOfWeek(firstWeekOfThisYear,options);if(+_date>=+startOfNextYear){return year+1;}else if(+_date>=+startOfThisYear){return year;}else{return year-1;}}function startOfWeekYear(date,options){var _a,_b,_c,_d,_e,_f,_g,_h;var defaultOptions2=getDefaultOptions();var firstWeekContainsDate=(_h=(_g=(_d=(_c=options==null?void 0:options.firstWeekContainsDate)!=null?_c:(_b=(_a=options==null?void 0:options.locale)==null?void 0:_a.options)==null?void 0:_b.firstWeekContainsDate)!=null?_d:defaultOptions2.firstWeekContainsDate)!=null?_g:(_f=(_e=defaultOptions2.locale)==null?void 0:_e.options)==null?void 0:_f.firstWeekContainsDate)!=null?_h:1;var year=getWeekYear(date,options);var firstWeek=constructFrom((options==null?void 0:options.in)||date,0);firstWeek.setFullYear(year,0,firstWeekContainsDate);firstWeek.setHours(0,0,0,0);var _date=startOfWeek(firstWeek,options);return _date;}function getWeek(date,options){var _date=toDate(date,options==null?void 0:options.in);var diff=+startOfWeek(_date,options)-+startOfWeekYear(_date,options);return Math.round(diff/millisecondsInWeek)+1;}function addLeadingZeros(number,targetLength){var sign=number<0?"-":"";var output=Math.abs(number).toString().padStart(targetLength,"0");return sign+output;}var lightFormatters={// Year
|
|
6941
6941
|
y:function y(date,token2){var signedYear=date.getFullYear();var year=signedYear>0?signedYear:1-signedYear;return addLeadingZeros(token2==="yy"?year%100:year,token2.length);},// Month
|
|
6942
6942
|
M:function M(date,token2){var month2=date.getMonth();return token2==="M"?String(month2+1):addLeadingZeros(month2+1,2);},// Day of the month
|
|
6943
6943
|
d:function d(date,token2){return addLeadingZeros(date.getDate(),token2.length);},// AM or PM
|
|
@@ -7037,7 +7037,7 @@ React__default.createElement(components2.Day,{key:"".concat(dateLib.format(date,
|
|
|
7037
7037
|
React__default.createElement(components2.Footer,{className:classNames2[UI.Footer],style:styles2==null?void 0:styles2[UI.Footer],role:"status","aria-live":"polite"},props.footer)));}function composeEventHandlers(originalEventHandler,ourEventHandler){var _ref441=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref441$checkForDefau=_ref441.checkForDefaultPrevented,checkForDefaultPrevented=_ref441$checkForDefau===void 0?true:_ref441$checkForDefau;return function handleEvent(event){originalEventHandler==null?void 0:originalEventHandler(event);if(checkForDefaultPrevented===false||!event.defaultPrevented){return ourEventHandler==null?void 0:ourEventHandler(event);}};}function setRef(ref,value){if(typeof ref==="function"){return ref(value);}else if(ref!==null&&ref!==void 0){ref.current=value;}}function composeRefs(){for(var _len36=arguments.length,refs=new Array(_len36),_key38=0;_key38<_len36;_key38++){refs[_key38]=arguments[_key38];}return function(node2){var hasCleanup=false;var cleanups=refs.map(function(ref){var cleanup=setRef(ref,node2);if(!hasCleanup&&typeof cleanup=="function"){hasCleanup=true;}return cleanup;});if(hasCleanup){return function(){for(var _i25=0;_i25<cleanups.length;_i25++){var cleanup=cleanups[_i25];if(typeof cleanup=="function"){cleanup();}else{setRef(refs[_i25],null);}}};}};}function useComposedRefs(){for(var _len37=arguments.length,refs=new Array(_len37),_key39=0;_key39<_len37;_key39++){refs[_key39]=arguments[_key39];}return React.useCallback(composeRefs.apply(void 0,refs),refs);}function createContextScope(scopeName){var createContextScopeDeps=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var defaultContexts=[];function createContext3(rootComponentName,defaultContext){var BaseContext=/*#__PURE__*/React.createContext(defaultContext);var index2=defaultContexts.length;defaultContexts=[].concat(_toConsumableArray2(defaultContexts),[defaultContext]);var Provider=function Provider(props){var _b;var _a=props,scope=_a.scope,children=_a.children,context=__objRest(_a,["scope","children"]);var Context=((_b=scope==null?void 0:scope[scopeName])==null?void 0:_b[index2])||BaseContext;var value=React.useMemo(function(){return context;},Object.values(context));return/* @__PURE__ */jsx$1(Context.Provider,{value:value,children:children});};Provider.displayName=rootComponentName+"Provider";function useContext2(consumerName,scope){var _a;var Context=((_a=scope==null?void 0:scope[scopeName])==null?void 0:_a[index2])||BaseContext;var context=React.useContext(Context);if(context)return context;if(defaultContext!==void 0)return defaultContext;throw new Error("`".concat(consumerName,"` must be used within `").concat(rootComponentName,"`"));}return[Provider,useContext2];}var createScope=function createScope(){var scopeContexts=defaultContexts.map(function(defaultContext){return/*#__PURE__*/React.createContext(defaultContext);});return function useScope(scope){var contexts=(scope==null?void 0:scope[scopeName])||scopeContexts;return React.useMemo(function(){return _defineProperty2({},"__scope".concat(scopeName),__spreadProps(__spreadValues({},scope),_defineProperty2({},scopeName,contexts)));},[scope,contexts]);};};createScope.scopeName=scopeName;return[createContext3,composeContextScopes.apply(void 0,[createScope].concat(_toConsumableArray2(createContextScopeDeps)))];}function composeContextScopes(){for(var _len38=arguments.length,scopes=new Array(_len38),_key40=0;_key40<_len38;_key40++){scopes[_key40]=arguments[_key40];}var baseScope=scopes[0];if(scopes.length===1)return baseScope;var createScope=function createScope(){var scopeHooks=scopes.map(function(createScope2){return{useScope:createScope2(),scopeName:createScope2.scopeName};});return function useComposedScopes(overrideScopes){var nextScopes=scopeHooks.reduce(function(nextScopes2,_ref443){var useScope=_ref443.useScope,scopeName=_ref443.scopeName;var scopeProps=useScope(overrideScopes);var currentScope=scopeProps["__scope".concat(scopeName)];return __spreadValues(__spreadValues({},nextScopes2),currentScope);},{});return React.useMemo(function(){return _defineProperty2({},"__scope".concat(baseScope.scopeName),nextScopes);},[nextScopes]);};};createScope.scopeName=baseScope.scopeName;return createScope;}// @__NO_SIDE_EFFECTS__
|
|
7038
7038
|
function createSlot(ownerName){var SlotClone=/* @__PURE__ */createSlotClone(ownerName);var Slot2=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,children=_a.children,slotProps=__objRest(_a,["children"]);var childrenArray=React.Children.toArray(children);var slottable=childrenArray.find(isSlottable);if(slottable){var newElement=slottable.props.children;var newChildren=childrenArray.map(function(child){if(child===slottable){if(React.Children.count(newElement)>1)return React.Children.only(null);return/*#__PURE__*/React.isValidElement(newElement)?newElement.props.children:null;}else{return child;}});return/* @__PURE__ */jsx$1(SlotClone,__spreadProps(__spreadValues({},slotProps),{ref:forwardedRef,children:/*#__PURE__*/React.isValidElement(newElement)?/*#__PURE__*/React.cloneElement(newElement,void 0,newChildren):null}));}return/* @__PURE__ */jsx$1(SlotClone,__spreadProps(__spreadValues({},slotProps),{ref:forwardedRef,children:children}));});Slot2.displayName="".concat(ownerName,".Slot");return Slot2;}// @__NO_SIDE_EFFECTS__
|
|
7039
7039
|
function createSlotClone(ownerName){var SlotClone=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,children=_a.children,slotProps=__objRest(_a,["children"]);if(/*#__PURE__*/React.isValidElement(children)){var childrenRef=getElementRef$1(children);var props2=mergeProps(slotProps,children.props);if(children.type!==React.Fragment){props2.ref=forwardedRef?composeRefs(forwardedRef,childrenRef):childrenRef;}return/*#__PURE__*/React.cloneElement(children,props2);}return React.Children.count(children)>1?React.Children.only(null):null;});SlotClone.displayName="".concat(ownerName,".SlotClone");return SlotClone;}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function isSlottable(child){return/*#__PURE__*/React.isValidElement(child)&&typeof child.type==="function"&&"__radixId"in child.type&&child.type.__radixId===SLOTTABLE_IDENTIFIER;}function mergeProps(slotProps,childProps){var overrideProps=__spreadValues({},childProps);var _loop4=function _loop4(){var slotPropValue=slotProps[propName];var childPropValue=childProps[propName];var isHandler=/^on[A-Z]/.test(propName);if(isHandler){if(slotPropValue&&childPropValue){overrideProps[propName]=function(){var result=childPropValue.apply(void 0,arguments);slotPropValue.apply(void 0,arguments);return result;};}else if(slotPropValue){overrideProps[propName]=slotPropValue;}}else if(propName==="style"){overrideProps[propName]=__spreadValues(__spreadValues({},slotPropValue),childPropValue);}else if(propName==="className"){overrideProps[propName]=[slotPropValue,childPropValue].filter(Boolean).join(" ");}};for(var propName in childProps){_loop4();}return __spreadValues(__spreadValues({},slotProps),overrideProps);}function getElementRef$1(element){var _a,_b;var getter=(_a=Object.getOwnPropertyDescriptor(element.props,"ref"))==null?void 0:_a.get;var mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn){return element.ref;}getter=(_b=Object.getOwnPropertyDescriptor(element,"ref"))==null?void 0:_b.get;mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn){return element.props.ref;}return element.props.ref||element.ref;}var NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"];var Primitive=NODES.reduce(function(primitive,node2){var Slot2=/* @__PURE__ */createSlot("Primitive.".concat(node2));var Node2=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,asChild=_a.asChild,primitiveProps=__objRest(_a,["asChild"]);var Comp=asChild?Slot2:node2;if(typeof window!=="undefined"){window[Symbol.for("radix-ui")]=true;}return/* @__PURE__ */jsx$1(Comp,__spreadProps(__spreadValues({},primitiveProps),{ref:forwardedRef}));});Node2.displayName="Primitive.".concat(node2);return __spreadProps(__spreadValues({},primitive),_defineProperty2({},node2,Node2));},{});function dispatchDiscreteCustomEvent(target,event){if(target)ReactDOM.flushSync(function(){return target.dispatchEvent(event);});}function useCallbackRef$1(callback){var callbackRef=React.useRef(callback);React.useEffect(function(){callbackRef.current=callback;});return React.useMemo(function(){return function(){var _a8;var _a;for(var _len39=arguments.length,args=new Array(_len39),_key41=0;_key41<_len39;_key41++){args[_key41]=arguments[_key41];}return(_a=callbackRef.current)==null?void 0:(_a8=_a).call.apply(_a8,[callbackRef].concat(args));};},[]);}function useEscapeKeydown(onEscapeKeyDownProp){var ownerDocument2=arguments.length>1&&arguments[1]!==undefined?arguments[1]:globalThis==null?void 0:globalThis.document;var onEscapeKeyDown=useCallbackRef$1(onEscapeKeyDownProp);React.useEffect(function(){var handleKeyDown=function handleKeyDown(event){if(event.key==="Escape"){onEscapeKeyDown(event);}};ownerDocument2.addEventListener("keydown",handleKeyDown,{capture:true});return function(){return ownerDocument2.removeEventListener("keydown",handleKeyDown,{capture:true});};},[onEscapeKeyDown,ownerDocument2]);}var DISMISSABLE_LAYER_NAME="DismissableLayer";var CONTEXT_UPDATE="dismissableLayer.update";var POINTER_DOWN_OUTSIDE="dismissableLayer.pointerDownOutside";var FOCUS_OUTSIDE="dismissableLayer.focusOutside";var originalBodyPointerEvents;var DismissableLayerContext=/*#__PURE__*/React.createContext({layers:/* @__PURE__ */new Set(),layersWithOutsidePointerEventsDisabled:/* @__PURE__ */new Set(),branches:/* @__PURE__ */new Set()});var DismissableLayer=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _b;var _a=props,_a$disableOutsidePoin=_a.disableOutsidePointerEvents,disableOutsidePointerEvents=_a$disableOutsidePoin===void 0?false:_a$disableOutsidePoin,onEscapeKeyDown=_a.onEscapeKeyDown,onPointerDownOutside=_a.onPointerDownOutside,onFocusOutside=_a.onFocusOutside,onInteractOutside=_a.onInteractOutside,onDismiss=_a.onDismiss,layerProps=__objRest(_a,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]);var context=React.useContext(DismissableLayerContext);var _React$useState81=React.useState(null),_React$useState82=_slicedToArray2(_React$useState81,2),node2=_React$useState82[0],setNode=_React$useState82[1];var ownerDocument2=(_b=node2==null?void 0:node2.ownerDocument)!=null?_b:globalThis==null?void 0:globalThis.document;var _React$useState83=React.useState({}),_React$useState84=_slicedToArray2(_React$useState83,2),force=_React$useState84[1];var composedRefs=useComposedRefs(forwardedRef,function(node22){return setNode(node22);});var layers=Array.from(context.layers);var _slice=_toConsumableArray2(context.layersWithOutsidePointerEventsDisabled).slice(-1),_slice2=_slicedToArray2(_slice,1),highestLayerWithOutsidePointerEventsDisabled=_slice2[0];var highestLayerWithOutsidePointerEventsDisabledIndex=layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);var index2=node2?layers.indexOf(node2):-1;var isBodyPointerEventsDisabled=context.layersWithOutsidePointerEventsDisabled.size>0;var isPointerEventsEnabled=index2>=highestLayerWithOutsidePointerEventsDisabledIndex;var pointerDownOutside=usePointerDownOutside(function(event){var target=event.target;var isPointerDownOnBranch=_toConsumableArray2(context.branches).some(function(branch){return branch.contains(target);});if(!isPointerEventsEnabled||isPointerDownOnBranch)return;onPointerDownOutside==null?void 0:onPointerDownOutside(event);onInteractOutside==null?void 0:onInteractOutside(event);if(!event.defaultPrevented)onDismiss==null?void 0:onDismiss();},ownerDocument2);var focusOutside=useFocusOutside(function(event){var target=event.target;var isFocusInBranch=_toConsumableArray2(context.branches).some(function(branch){return branch.contains(target);});if(isFocusInBranch)return;onFocusOutside==null?void 0:onFocusOutside(event);onInteractOutside==null?void 0:onInteractOutside(event);if(!event.defaultPrevented)onDismiss==null?void 0:onDismiss();},ownerDocument2);useEscapeKeydown(function(event){var isHighestLayer=index2===context.layers.size-1;if(!isHighestLayer)return;onEscapeKeyDown==null?void 0:onEscapeKeyDown(event);if(!event.defaultPrevented&&onDismiss){event.preventDefault();onDismiss();}},ownerDocument2);React.useEffect(function(){if(!node2)return;if(disableOutsidePointerEvents){if(context.layersWithOutsidePointerEventsDisabled.size===0){originalBodyPointerEvents=ownerDocument2.body.style.pointerEvents;ownerDocument2.body.style.pointerEvents="none";}context.layersWithOutsidePointerEventsDisabled.add(node2);}context.layers.add(node2);dispatchUpdate();return function(){if(disableOutsidePointerEvents&&context.layersWithOutsidePointerEventsDisabled.size===1){ownerDocument2.body.style.pointerEvents=originalBodyPointerEvents;}};},[node2,ownerDocument2,disableOutsidePointerEvents,context]);React.useEffect(function(){return function(){if(!node2)return;context.layers.delete(node2);context.layersWithOutsidePointerEventsDisabled.delete(node2);dispatchUpdate();};},[node2,context]);React.useEffect(function(){var handleUpdate=function handleUpdate(){return force({});};document.addEventListener(CONTEXT_UPDATE,handleUpdate);return function(){return document.removeEventListener(CONTEXT_UPDATE,handleUpdate);};},[]);return/* @__PURE__ */jsx$1(Primitive.div,__spreadProps(__spreadValues({},layerProps),{ref:composedRefs,style:__spreadValues({pointerEvents:isBodyPointerEventsDisabled?isPointerEventsEnabled?"auto":"none":void 0},props.style),onFocusCapture:composeEventHandlers(props.onFocusCapture,focusOutside.onFocusCapture),onBlurCapture:composeEventHandlers(props.onBlurCapture,focusOutside.onBlurCapture),onPointerDownCapture:composeEventHandlers(props.onPointerDownCapture,pointerDownOutside.onPointerDownCapture)}));});DismissableLayer.displayName=DISMISSABLE_LAYER_NAME;var BRANCH_NAME="DismissableLayerBranch";var DismissableLayerBranch=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=React.useContext(DismissableLayerContext);var ref=React.useRef(null);var composedRefs=useComposedRefs(forwardedRef,ref);React.useEffect(function(){var node2=ref.current;if(node2){context.branches.add(node2);return function(){context.branches.delete(node2);};}},[context.branches]);return/* @__PURE__ */jsx$1(Primitive.div,__spreadProps(__spreadValues({},props),{ref:composedRefs}));});DismissableLayerBranch.displayName=BRANCH_NAME;function usePointerDownOutside(onPointerDownOutside){var ownerDocument2=arguments.length>1&&arguments[1]!==undefined?arguments[1]:globalThis==null?void 0:globalThis.document;var handlePointerDownOutside=useCallbackRef$1(onPointerDownOutside);var isPointerInsideReactTreeRef=React.useRef(false);var handleClickRef=React.useRef(function(){});React.useEffect(function(){var handlePointerDown=function handlePointerDown(event){if(event.target&&!isPointerInsideReactTreeRef.current){var handleAndDispatchPointerDownOutsideEvent2=function handleAndDispatchPointerDownOutsideEvent2(){handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE,handlePointerDownOutside,eventDetail,{discrete:true});};var eventDetail={originalEvent:event};if(event.pointerType==="touch"){ownerDocument2.removeEventListener("click",handleClickRef.current);handleClickRef.current=handleAndDispatchPointerDownOutsideEvent2;ownerDocument2.addEventListener("click",handleClickRef.current,{once:true});}else{handleAndDispatchPointerDownOutsideEvent2();}}else{ownerDocument2.removeEventListener("click",handleClickRef.current);}isPointerInsideReactTreeRef.current=false;};var timerId=window.setTimeout(function(){ownerDocument2.addEventListener("pointerdown",handlePointerDown);},0);return function(){window.clearTimeout(timerId);ownerDocument2.removeEventListener("pointerdown",handlePointerDown);ownerDocument2.removeEventListener("click",handleClickRef.current);};},[ownerDocument2,handlePointerDownOutside]);return{// ensures we check React component tree (not just DOM tree)
|
|
7040
|
-
onPointerDownCapture:function onPointerDownCapture(){return isPointerInsideReactTreeRef.current=true;}};}function useFocusOutside(onFocusOutside){var ownerDocument2=arguments.length>1&&arguments[1]!==undefined?arguments[1]:globalThis==null?void 0:globalThis.document;var handleFocusOutside=useCallbackRef$1(onFocusOutside);var isFocusInsideReactTreeRef=React.useRef(false);React.useEffect(function(){var handleFocus=function handleFocus(event){if(event.target&&!isFocusInsideReactTreeRef.current){var eventDetail={originalEvent:event};handleAndDispatchCustomEvent(FOCUS_OUTSIDE,handleFocusOutside,eventDetail,{discrete:false});}};ownerDocument2.addEventListener("focusin",handleFocus);return function(){return ownerDocument2.removeEventListener("focusin",handleFocus);};},[ownerDocument2,handleFocusOutside]);return{onFocusCapture:function onFocusCapture(){return isFocusInsideReactTreeRef.current=true;},onBlurCapture:function onBlurCapture(){return isFocusInsideReactTreeRef.current=false;}};}function dispatchUpdate(){var event=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(event);}function handleAndDispatchCustomEvent(name,handler,detail,_ref445){var discrete=_ref445.discrete;var target=detail.originalEvent.target;var event=new CustomEvent(name,{bubbles:false,cancelable:true,detail:detail});if(handler)target.addEventListener(name,handler,{once:true});if(discrete){dispatchDiscreteCustomEvent(target,event);}else{target.dispatchEvent(event);}}var count$1=0;function useFocusGuards(){React.useEffect(function(){var _a,_b;var edgeGuards=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",(_a=edgeGuards[0])!=null?_a:createFocusGuard());document.body.insertAdjacentElement("beforeend",(_b=edgeGuards[1])!=null?_b:createFocusGuard());count$1++;return function(){if(count$1===1){document.querySelectorAll("[data-radix-focus-guard]").forEach(function(node2){return node2.remove();});}count$1--;};},[]);}function createFocusGuard(){var element=document.createElement("span");element.setAttribute("data-radix-focus-guard","");element.tabIndex=0;element.style.outline="none";element.style.opacity="0";element.style.position="fixed";element.style.pointerEvents="none";return element;}var AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount";var AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount";var EVENT_OPTIONS={bubbles:false,cancelable:true};var FOCUS_SCOPE_NAME="FocusScope";var FocusScope=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,_a$loop=_a.loop,loop=_a$loop===void 0?false:_a$loop,_a$trapped=_a.trapped,trapped=_a$trapped===void 0?false:_a$trapped,onMountAutoFocusProp=_a.onMountAutoFocus,onUnmountAutoFocusProp=_a.onUnmountAutoFocus,scopeProps=__objRest(_a,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]);var _React$useState85=React.useState(null),_React$useState86=_slicedToArray2(_React$useState85,2),container=_React$useState86[0],setContainer=_React$useState86[1];var onMountAutoFocus=useCallbackRef$1(onMountAutoFocusProp);var onUnmountAutoFocus=useCallbackRef$1(onUnmountAutoFocusProp);var lastFocusedElementRef=React.useRef(null);var composedRefs=useComposedRefs(forwardedRef,function(node2){return setContainer(node2);});var focusScope=React.useRef({paused:false,pause:function pause(){this.paused=true;},resume:function resume(){this.paused=false;}}).current;React.useEffect(function(){if(trapped){var handleFocusIn2=function handleFocusIn2(event){if(focusScope.paused||!container)return;var target=event.target;if(container.contains(target)){lastFocusedElementRef.current=target;}else{focus(lastFocusedElementRef.current,{select:true});}},handleFocusOut2=function handleFocusOut2(event){if(focusScope.paused||!container)return;var relatedTarget=event.relatedTarget;if(relatedTarget===null)return;if(!container.contains(relatedTarget)){focus(lastFocusedElementRef.current,{select:true});}},handleMutations2=function handleMutations2(mutations){var focusedElement=document.activeElement;if(focusedElement!==document.body)return;var _iterator7=_createForOfIteratorHelper(mutations),_step8;try{for(_iterator7.s();!(_step8=_iterator7.n()).done;){var mutation=_step8.value;if(mutation.removedNodes.length>0)focus(container);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}};document.addEventListener("focusin",handleFocusIn2);document.addEventListener("focusout",handleFocusOut2);var mutationObserver=new MutationObserver(handleMutations2);if(container)mutationObserver.observe(container,{childList:true,subtree:true});return function(){document.removeEventListener("focusin",handleFocusIn2);document.removeEventListener("focusout",handleFocusOut2);mutationObserver.disconnect();};}},[trapped,container,focusScope.paused]);React.useEffect(function(){if(container){focusScopesStack.add(focusScope);var previouslyFocusedElement=document.activeElement;var hasFocusedCandidate=container.contains(previouslyFocusedElement);if(!hasFocusedCandidate){var mountEvent=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_MOUNT,onMountAutoFocus);container.dispatchEvent(mountEvent);if(!mountEvent.defaultPrevented){focusFirst(removeLinks(getTabbableCandidates(container)),{select:true});if(document.activeElement===previouslyFocusedElement){focus(container);}}}return function(){container.removeEventListener(AUTOFOCUS_ON_MOUNT,onMountAutoFocus);setTimeout(function(){var unmountEvent=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_UNMOUNT,onUnmountAutoFocus);container.dispatchEvent(unmountEvent);if(!unmountEvent.defaultPrevented){focus(previouslyFocusedElement!=null?previouslyFocusedElement:document.body,{select:true});}container.removeEventListener(AUTOFOCUS_ON_UNMOUNT,onUnmountAutoFocus);focusScopesStack.remove(focusScope);},0);};}},[container,onMountAutoFocus,onUnmountAutoFocus,focusScope]);var handleKeyDown=React.useCallback(function(event){if(!loop&&!trapped)return;if(focusScope.paused)return;var isTabKey=event.key==="Tab"&&!event.altKey&&!event.ctrlKey&&!event.metaKey;var focusedElement=document.activeElement;if(isTabKey&&focusedElement){var container2=event.currentTarget;var _getTabbableEdges=getTabbableEdges(container2),_getTabbableEdges2=_slicedToArray2(_getTabbableEdges,2),first=_getTabbableEdges2[0],last=_getTabbableEdges2[1];var hasTabbableElementsInside=first&&last;if(!hasTabbableElementsInside){if(focusedElement===container2)event.preventDefault();}else{if(!event.shiftKey&&focusedElement===last){event.preventDefault();if(loop)focus(first,{select:true});}else if(event.shiftKey&&focusedElement===first){event.preventDefault();if(loop)focus(last,{select:true});}}}},[loop,trapped,focusScope.paused]);return/* @__PURE__ */jsx$1(Primitive.div,__spreadProps(__spreadValues({tabIndex:-1},scopeProps),{ref:composedRefs,onKeyDown:handleKeyDown}));});FocusScope.displayName=FOCUS_SCOPE_NAME;function focusFirst(candidates){var _ref446=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref446$select=_ref446.select,select=_ref446$select===void 0?false:_ref446$select;var previouslyFocusedElement=document.activeElement;var _iterator8=_createForOfIteratorHelper(candidates),_step9;try{for(_iterator8.s();!(_step9=_iterator8.n()).done;){var candidate=_step9.value;focus(candidate,{select:select});if(document.activeElement!==previouslyFocusedElement)return;}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}function getTabbableEdges(container){var candidates=getTabbableCandidates(container);var first=findVisible(candidates,container);var last=findVisible(candidates.reverse(),container);return[first,last];}function getTabbableCandidates(container){var nodes=[];var walker=document.createTreeWalker(container,NodeFilter.SHOW_ELEMENT,{acceptNode:function acceptNode(node2){var isHiddenInput=node2.tagName==="INPUT"&&node2.type==="hidden";if(node2.disabled||node2.hidden||isHiddenInput)return NodeFilter.FILTER_SKIP;return node2.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;}});while(walker.nextNode())nodes.push(walker.currentNode);return nodes;}function findVisible(elements,container){var _iterator9=_createForOfIteratorHelper(elements),_step0;try{for(_iterator9.s();!(_step0=_iterator9.n()).done;){var element=_step0.value;if(!isHidden(element,{upTo:container}))return element;}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function isHidden(node2,_ref447){var upTo=_ref447.upTo;if(getComputedStyle(node2).visibility==="hidden")return true;while(node2){if(upTo!==void 0&&node2===upTo)return false;if(getComputedStyle(node2).display==="none")return true;node2=node2.parentElement;}return false;}function isSelectableInput(element){return element instanceof HTMLInputElement&&"select"in element;}function focus(element){var _ref448=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref448$select=_ref448.select,select=_ref448$select===void 0?false:_ref448$select;if(element&&element.focus){var previouslyFocusedElement=document.activeElement;element.focus({preventScroll:true});if(element!==previouslyFocusedElement&&isSelectableInput(element)&&select)element.select();}}var focusScopesStack=createFocusScopesStack();function createFocusScopesStack(){var stack=[];return{add:function add(focusScope){var activeFocusScope=stack[0];if(focusScope!==activeFocusScope){activeFocusScope==null?void 0:activeFocusScope.pause();}stack=arrayRemove(stack,focusScope);stack.unshift(focusScope);},remove:function remove(focusScope){var _a;stack=arrayRemove(stack,focusScope);(_a=stack[0])==null?void 0:_a.resume();}};}function arrayRemove(array,item2){var updatedArray=_toConsumableArray2(array);var index2=updatedArray.indexOf(item2);if(index2!==-1){updatedArray.splice(index2,1);}return updatedArray;}function removeLinks(items){return items.filter(function(item2){return item2.tagName!=="A";});}var useLayoutEffect2=(globalThis==null?void 0:globalThis.document)?React.useLayoutEffect:function(){};var useReactId=React[" useId ".trim().toString()]||function(){return void 0;};var count=0;function useId(deterministicId){var _React$useState87=React.useState(useReactId()),_React$useState88=_slicedToArray2(_React$useState87,2),id=_React$useState88[0],setId=_React$useState88[1];useLayoutEffect2(function(){setId(function(reactId){return reactId!=null?reactId:String(count++);});},[deterministicId]);return deterministicId||(id?"radix-".concat(id):"");}var isClient=typeof document!=="undefined";var noop2=function noop3(){};var index=isClient?useLayoutEffect:noop2;function deepEqual(a,b){if(a===b){return true;}if(_typeof2(a)!==_typeof2(b)){return false;}if(typeof a==="function"&&a.toString()===b.toString()){return true;}var length2;var i;var keys;if(a&&b&&_typeof2(a)==="object"){if(Array.isArray(a)){length2=a.length;if(length2!==b.length)return false;for(i=length2;i--!==0;){if(!deepEqual(a[i],b[i])){return false;}}return true;}keys=Object.keys(a);length2=keys.length;if(length2!==Object.keys(b).length){return false;}for(i=length2;i--!==0;){if(!{}.hasOwnProperty.call(b,keys[i])){return false;}}for(i=length2;i--!==0;){var key=keys[i];if(key==="_owner"&&a.$$typeof){continue;}if(!deepEqual(a[key],b[key])){return false;}}return true;}return a!==a&&b!==b;}function getDPR(element){if(typeof window==="undefined"){return 1;}var win=element.ownerDocument.defaultView||window;return win.devicePixelRatio||1;}function roundByDPR(element,value){var dpr=getDPR(element);return Math.round(value*dpr)/dpr;}function useLatestRef(value){var ref=React.useRef(value);index(function(){ref.current=value;});return ref;}function useFloating(options){if(options===void 0){options={};}var _options4=options,_options4$placement=_options4.placement,placement=_options4$placement===void 0?"bottom":_options4$placement,_options4$strategy=_options4.strategy,strategy=_options4$strategy===void 0?"absolute":_options4$strategy,_options4$middleware=_options4.middleware,middleware2=_options4$middleware===void 0?[]:_options4$middleware,platform2=_options4.platform,_options4$elements=_options4.elements,_options4$elements2=_options4$elements===void 0?{}:_options4$elements,externalReference=_options4$elements2.reference,externalFloating=_options4$elements2.floating,_options4$transform=_options4.transform,transform=_options4$transform===void 0?true:_options4$transform,whileElementsMounted=_options4.whileElementsMounted,open=_options4.open;var _React$useState89=React.useState({x:0,y:0,strategy:strategy,placement:placement,middlewareData:{},isPositioned:false}),_React$useState90=_slicedToArray2(_React$useState89,2),data=_React$useState90[0],setData=_React$useState90[1];var _React$useState91=React.useState(middleware2),_React$useState92=_slicedToArray2(_React$useState91,2),latestMiddleware=_React$useState92[0],setLatestMiddleware=_React$useState92[1];if(!deepEqual(latestMiddleware,middleware2)){setLatestMiddleware(middleware2);}var _React$useState93=React.useState(null),_React$useState94=_slicedToArray2(_React$useState93,2),_reference=_React$useState94[0],_setReference=_React$useState94[1];var _React$useState95=React.useState(null),_React$useState96=_slicedToArray2(_React$useState95,2),_floating=_React$useState96[0],_setFloating=_React$useState96[1];var setReference=React.useCallback(function(node2){if(node2!==referenceRef.current){referenceRef.current=node2;_setReference(node2);}},[]);var setFloating=React.useCallback(function(node2){if(node2!==floatingRef.current){floatingRef.current=node2;_setFloating(node2);}},[]);var referenceEl=externalReference||_reference;var floatingEl=externalFloating||_floating;var referenceRef=React.useRef(null);var floatingRef=React.useRef(null);var dataRef=React.useRef(data);var hasWhileElementsMounted=whileElementsMounted!=null;var whileElementsMountedRef=useLatestRef(whileElementsMounted);var platformRef=useLatestRef(platform2);var openRef=useLatestRef(open);var update=React.useCallback(function(){if(!referenceRef.current||!floatingRef.current){return;}var config2={placement:placement,strategy:strategy,middleware:latestMiddleware};if(platformRef.current){config2.platform=platformRef.current;}computePosition(referenceRef.current,floatingRef.current,config2).then(function(data2){var fullData=__spreadProps(__spreadValues({},data2),{// The floating element's position may be recomputed while it's closed
|
|
7040
|
+
onPointerDownCapture:function onPointerDownCapture(){return isPointerInsideReactTreeRef.current=true;}};}function useFocusOutside(onFocusOutside){var ownerDocument2=arguments.length>1&&arguments[1]!==undefined?arguments[1]:globalThis==null?void 0:globalThis.document;var handleFocusOutside=useCallbackRef$1(onFocusOutside);var isFocusInsideReactTreeRef=React.useRef(false);React.useEffect(function(){var handleFocus=function handleFocus(event){if(event.target&&!isFocusInsideReactTreeRef.current){var eventDetail={originalEvent:event};handleAndDispatchCustomEvent(FOCUS_OUTSIDE,handleFocusOutside,eventDetail,{discrete:false});}};ownerDocument2.addEventListener("focusin",handleFocus);return function(){return ownerDocument2.removeEventListener("focusin",handleFocus);};},[ownerDocument2,handleFocusOutside]);return{onFocusCapture:function onFocusCapture(){return isFocusInsideReactTreeRef.current=true;},onBlurCapture:function onBlurCapture(){return isFocusInsideReactTreeRef.current=false;}};}function dispatchUpdate(){var event=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(event);}function handleAndDispatchCustomEvent(name,handler,detail,_ref445){var discrete=_ref445.discrete;var target=detail.originalEvent.target;var event=new CustomEvent(name,{bubbles:false,cancelable:true,detail:detail});if(handler)target.addEventListener(name,handler,{once:true});if(discrete){dispatchDiscreteCustomEvent(target,event);}else{target.dispatchEvent(event);}}var count$1=0;function useFocusGuards(){React.useEffect(function(){var _a,_b;var edgeGuards=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",(_a=edgeGuards[0])!=null?_a:createFocusGuard());document.body.insertAdjacentElement("beforeend",(_b=edgeGuards[1])!=null?_b:createFocusGuard());count$1++;return function(){if(count$1===1){document.querySelectorAll("[data-radix-focus-guard]").forEach(function(node2){return node2.remove();});}count$1--;};},[]);}function createFocusGuard(){var element=document.createElement("span");element.setAttribute("data-radix-focus-guard","");element.tabIndex=0;element.style.outline="none";element.style.opacity="0";element.style.position="fixed";element.style.pointerEvents="none";return element;}var AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount";var AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount";var EVENT_OPTIONS={bubbles:false,cancelable:true};var FOCUS_SCOPE_NAME="FocusScope";var FocusScope=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,_a$loop=_a.loop,loop=_a$loop===void 0?false:_a$loop,_a$trapped=_a.trapped,trapped=_a$trapped===void 0?false:_a$trapped,onMountAutoFocusProp=_a.onMountAutoFocus,onUnmountAutoFocusProp=_a.onUnmountAutoFocus,scopeProps=__objRest(_a,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]);var _React$useState85=React.useState(null),_React$useState86=_slicedToArray2(_React$useState85,2),container=_React$useState86[0],setContainer=_React$useState86[1];var onMountAutoFocus=useCallbackRef$1(onMountAutoFocusProp);var onUnmountAutoFocus=useCallbackRef$1(onUnmountAutoFocusProp);var lastFocusedElementRef=React.useRef(null);var composedRefs=useComposedRefs(forwardedRef,function(node2){return setContainer(node2);});var focusScope=React.useRef({paused:false,pause:function pause(){this.paused=true;},resume:function resume(){this.paused=false;}}).current;React.useEffect(function(){if(trapped){var handleFocusIn2=function handleFocusIn2(event){if(focusScope.paused||!container)return;var target=event.target;if(container.contains(target)){lastFocusedElementRef.current=target;}else{focus(lastFocusedElementRef.current,{select:true});}},handleFocusOut2=function handleFocusOut2(event){if(focusScope.paused||!container)return;var relatedTarget=event.relatedTarget;if(relatedTarget===null)return;if(!container.contains(relatedTarget)){focus(lastFocusedElementRef.current,{select:true});}},handleMutations2=function handleMutations2(mutations){var focusedElement=document.activeElement;if(focusedElement!==document.body)return;var _iterator7=_createForOfIteratorHelper(mutations),_step8;try{for(_iterator7.s();!(_step8=_iterator7.n()).done;){var mutation=_step8.value;if(mutation.removedNodes.length>0)focus(container);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}};document.addEventListener("focusin",handleFocusIn2);document.addEventListener("focusout",handleFocusOut2);var mutationObserver=new MutationObserver(handleMutations2);if(container)mutationObserver.observe(container,{childList:true,subtree:true});return function(){document.removeEventListener("focusin",handleFocusIn2);document.removeEventListener("focusout",handleFocusOut2);mutationObserver.disconnect();};}},[trapped,container,focusScope.paused]);React.useEffect(function(){if(container){focusScopesStack.add(focusScope);var previouslyFocusedElement=document.activeElement;var hasFocusedCandidate=container.contains(previouslyFocusedElement);if(!hasFocusedCandidate){var mountEvent=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_MOUNT,onMountAutoFocus);container.dispatchEvent(mountEvent);if(!mountEvent.defaultPrevented){focusFirst(removeLinks(getTabbableCandidates(container)),{select:true});if(document.activeElement===previouslyFocusedElement){focus(container);}}}return function(){container.removeEventListener(AUTOFOCUS_ON_MOUNT,onMountAutoFocus);setTimeout(function(){var unmountEvent=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_UNMOUNT,onUnmountAutoFocus);container.dispatchEvent(unmountEvent);if(!unmountEvent.defaultPrevented){focus(previouslyFocusedElement!=null?previouslyFocusedElement:document.body,{select:true});}container.removeEventListener(AUTOFOCUS_ON_UNMOUNT,onUnmountAutoFocus);focusScopesStack.remove(focusScope);},0);};}},[container,onMountAutoFocus,onUnmountAutoFocus,focusScope]);var handleKeyDown=React.useCallback(function(event){if(!loop&&!trapped)return;if(focusScope.paused)return;var isTabKey=event.key==="Tab"&&!event.altKey&&!event.ctrlKey&&!event.metaKey;var focusedElement=document.activeElement;if(isTabKey&&focusedElement){var container2=event.currentTarget;var _getTabbableEdges=getTabbableEdges(container2),_getTabbableEdges2=_slicedToArray2(_getTabbableEdges,2),first=_getTabbableEdges2[0],last=_getTabbableEdges2[1];var hasTabbableElementsInside=first&&last;if(!hasTabbableElementsInside){if(focusedElement===container2)event.preventDefault();}else{if(!event.shiftKey&&focusedElement===last){event.preventDefault();if(loop)focus(first,{select:true});}else if(event.shiftKey&&focusedElement===first){event.preventDefault();if(loop)focus(last,{select:true});}}}},[loop,trapped,focusScope.paused]);return/* @__PURE__ */jsx$1(Primitive.div,__spreadProps(__spreadValues({tabIndex:-1},scopeProps),{ref:composedRefs,onKeyDown:handleKeyDown}));});FocusScope.displayName=FOCUS_SCOPE_NAME;function focusFirst(candidates){var _ref446=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref446$select=_ref446.select,select=_ref446$select===void 0?false:_ref446$select;var previouslyFocusedElement=document.activeElement;var _iterator8=_createForOfIteratorHelper(candidates),_step9;try{for(_iterator8.s();!(_step9=_iterator8.n()).done;){var candidate=_step9.value;focus(candidate,{select:select});if(document.activeElement!==previouslyFocusedElement)return;}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}function getTabbableEdges(container){var candidates=getTabbableCandidates(container);var first=findVisible(candidates,container);var last=findVisible(candidates.reverse(),container);return[first,last];}function getTabbableCandidates(container){var nodes=[];var walker=document.createTreeWalker(container,NodeFilter.SHOW_ELEMENT,{acceptNode:function acceptNode(node2){var isHiddenInput=node2.tagName==="INPUT"&&node2.type==="hidden";if(node2.disabled||node2.hidden||isHiddenInput)return NodeFilter.FILTER_SKIP;return node2.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;}});while(walker.nextNode())nodes.push(walker.currentNode);return nodes;}function findVisible(elements,container){var _iterator9=_createForOfIteratorHelper(elements),_step0;try{for(_iterator9.s();!(_step0=_iterator9.n()).done;){var element=_step0.value;if(!isHidden(element,{upTo:container}))return element;}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function isHidden(node2,_ref447){var upTo=_ref447.upTo;if(getComputedStyle(node2).visibility==="hidden")return true;while(node2){if(upTo!==void 0&&node2===upTo)return false;if(getComputedStyle(node2).display==="none")return true;node2=node2.parentElement;}return false;}function isSelectableInput(element){return element instanceof HTMLInputElement&&"select"in element;}function focus(element){var _ref448=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref448$select=_ref448.select,select=_ref448$select===void 0?false:_ref448$select;if(element&&element.focus){var previouslyFocusedElement=document.activeElement;element.focus({preventScroll:true});if(element!==previouslyFocusedElement&&isSelectableInput(element)&&select)element.select();}}var focusScopesStack=createFocusScopesStack();function createFocusScopesStack(){var stack=[];return{add:function add(focusScope){var activeFocusScope=stack[0];if(focusScope!==activeFocusScope){activeFocusScope==null?void 0:activeFocusScope.pause();}stack=arrayRemove(stack,focusScope);stack.unshift(focusScope);},remove:function remove(focusScope){var _a;stack=arrayRemove(stack,focusScope);(_a=stack[0])==null?void 0:_a.resume();}};}function arrayRemove(array,item2){var updatedArray=_toConsumableArray2(array);var index2=updatedArray.indexOf(item2);if(index2!==-1){updatedArray.splice(index2,1);}return updatedArray;}function removeLinks(items){return items.filter(function(item2){return item2.tagName!=="A";});}var useLayoutEffect2=(globalThis==null?void 0:globalThis.document)?React.useLayoutEffect:function(){};var useReactId=React[" useId ".trim().toString()]||function(){return void 0;};var count=0;function useId(deterministicId){var _React$useState87=React.useState(useReactId()),_React$useState88=_slicedToArray2(_React$useState87,2),id=_React$useState88[0],setId=_React$useState88[1];useLayoutEffect2(function(){setId(function(reactId){return reactId!=null?reactId:String(count++);});},[deterministicId]);return deterministicId||(id?"radix-".concat(id):"");}var isClient=typeof document!=="undefined";var noop2=function noop3(){};var index=isClient?useLayoutEffect:noop2;function deepEqual(a,b){if(a===b){return true;}if(_typeof2(a)!==_typeof2(b)){return false;}if(typeof a==="function"&&a.toString()===b.toString()){return true;}var length2;var i;var keys2;if(a&&b&&_typeof2(a)==="object"){if(Array.isArray(a)){length2=a.length;if(length2!==b.length)return false;for(i=length2;i--!==0;){if(!deepEqual(a[i],b[i])){return false;}}return true;}keys2=Object.keys(a);length2=keys2.length;if(length2!==Object.keys(b).length){return false;}for(i=length2;i--!==0;){if(!{}.hasOwnProperty.call(b,keys2[i])){return false;}}for(i=length2;i--!==0;){var key=keys2[i];if(key==="_owner"&&a.$$typeof){continue;}if(!deepEqual(a[key],b[key])){return false;}}return true;}return a!==a&&b!==b;}function getDPR(element){if(typeof window==="undefined"){return 1;}var win=element.ownerDocument.defaultView||window;return win.devicePixelRatio||1;}function roundByDPR(element,value){var dpr=getDPR(element);return Math.round(value*dpr)/dpr;}function useLatestRef(value){var ref=React.useRef(value);index(function(){ref.current=value;});return ref;}function useFloating(options){if(options===void 0){options={};}var _options4=options,_options4$placement=_options4.placement,placement=_options4$placement===void 0?"bottom":_options4$placement,_options4$strategy=_options4.strategy,strategy=_options4$strategy===void 0?"absolute":_options4$strategy,_options4$middleware=_options4.middleware,middleware2=_options4$middleware===void 0?[]:_options4$middleware,platform2=_options4.platform,_options4$elements=_options4.elements,_options4$elements2=_options4$elements===void 0?{}:_options4$elements,externalReference=_options4$elements2.reference,externalFloating=_options4$elements2.floating,_options4$transform=_options4.transform,transform=_options4$transform===void 0?true:_options4$transform,whileElementsMounted=_options4.whileElementsMounted,open=_options4.open;var _React$useState89=React.useState({x:0,y:0,strategy:strategy,placement:placement,middlewareData:{},isPositioned:false}),_React$useState90=_slicedToArray2(_React$useState89,2),data=_React$useState90[0],setData=_React$useState90[1];var _React$useState91=React.useState(middleware2),_React$useState92=_slicedToArray2(_React$useState91,2),latestMiddleware=_React$useState92[0],setLatestMiddleware=_React$useState92[1];if(!deepEqual(latestMiddleware,middleware2)){setLatestMiddleware(middleware2);}var _React$useState93=React.useState(null),_React$useState94=_slicedToArray2(_React$useState93,2),_reference=_React$useState94[0],_setReference=_React$useState94[1];var _React$useState95=React.useState(null),_React$useState96=_slicedToArray2(_React$useState95,2),_floating=_React$useState96[0],_setFloating=_React$useState96[1];var setReference=React.useCallback(function(node2){if(node2!==referenceRef.current){referenceRef.current=node2;_setReference(node2);}},[]);var setFloating=React.useCallback(function(node2){if(node2!==floatingRef.current){floatingRef.current=node2;_setFloating(node2);}},[]);var referenceEl=externalReference||_reference;var floatingEl=externalFloating||_floating;var referenceRef=React.useRef(null);var floatingRef=React.useRef(null);var dataRef=React.useRef(data);var hasWhileElementsMounted=whileElementsMounted!=null;var whileElementsMountedRef=useLatestRef(whileElementsMounted);var platformRef=useLatestRef(platform2);var openRef=useLatestRef(open);var update=React.useCallback(function(){if(!referenceRef.current||!floatingRef.current){return;}var config2={placement:placement,strategy:strategy,middleware:latestMiddleware};if(platformRef.current){config2.platform=platformRef.current;}computePosition(referenceRef.current,floatingRef.current,config2).then(function(data2){var fullData=__spreadProps(__spreadValues({},data2),{// The floating element's position may be recomputed while it's closed
|
|
7041
7041
|
// but still mounted (such as when transitioning out). To ensure
|
|
7042
7042
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
7043
7043
|
// setting it to `true` when `open === false` (must be specified).
|
|
@@ -7050,14 +7050,18 @@ animation:!isPositioned?"none":void 0})}))})});});PopperContent.displayName=CONT
|
|
|
7050
7050
|
// doesn't report size as we'd expect on SVG elements.
|
|
7051
7051
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
7052
7052
|
/* @__PURE__ */jsx$1("span",{ref:contentContext.onArrowChange,style:_defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2({position:"absolute",left:contentContext.arrowX,top:contentContext.arrowY},baseSide,0),"transformOrigin",{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[contentContext.placedSide]),"transform",{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[contentContext.placedSide]),"visibility",contentContext.shouldHideArrow?"hidden":void 0),children:/* @__PURE__ */jsx$1(Root,__spreadProps(__spreadValues({},arrowProps),{ref:forwardedRef,style:__spreadProps(__spreadValues({},arrowProps.style),{// ensures the element can be measured correctly (mostly for if SVG)
|
|
7053
|
-
display:"block"})}))}));});PopperArrow.displayName=ARROW_NAME$1;function isNotNull(value){return value!==null;}var transformOrigin=function transformOrigin(options){return{name:"transformOrigin",options:options,fn:function fn(data){var _a,_b,_c,_d,_e;var placement=data.placement,rects=data.rects,middlewareData=data.middlewareData;var cannotCenterArrow=((_a=middlewareData.arrow)==null?void 0:_a.centerOffset)!==0;var isArrowHidden=cannotCenterArrow;var arrowWidth=isArrowHidden?0:options.arrowWidth;var arrowHeight=isArrowHidden?0:options.arrowHeight;var _getSideAndAlignFromP3=getSideAndAlignFromPlacement(placement),_getSideAndAlignFromP4=_slicedToArray2(_getSideAndAlignFromP3,2),placedSide=_getSideAndAlignFromP4[0],placedAlign=_getSideAndAlignFromP4[1];var noArrowAlign={start:"0%",center:"50%",end:"100%"}[placedAlign];var arrowXCenter=((_c=(_b=middlewareData.arrow)==null?void 0:_b.x)!=null?_c:0)+arrowWidth/2;var arrowYCenter=((_e=(_d=middlewareData.arrow)==null?void 0:_d.y)!=null?_e:0)+arrowHeight/2;var x="";var y="";if(placedSide==="bottom"){x=isArrowHidden?noArrowAlign:"".concat(arrowXCenter,"px");y="".concat(-arrowHeight,"px");}else if(placedSide==="top"){x=isArrowHidden?noArrowAlign:"".concat(arrowXCenter,"px");y="".concat(rects.floating.height+arrowHeight,"px");}else if(placedSide==="right"){x="".concat(-arrowHeight,"px");y=isArrowHidden?noArrowAlign:"".concat(arrowYCenter,"px");}else if(placedSide==="left"){x="".concat(rects.floating.width+arrowHeight,"px");y=isArrowHidden?noArrowAlign:"".concat(arrowYCenter,"px");}return{data:{x:x,y:y}};}};};function getSideAndAlignFromPlacement(placement){var _placement$split=placement.split("-"),_placement$split2=_slicedToArray2(_placement$split,2),side=_placement$split2[0],_placement$split2$=_placement$split2[1],align=_placement$split2$===void 0?"center":_placement$split2$;return[side,align];}var Root2$1=Popper3;var Anchor=PopperAnchor;var Content=PopperContent;var Arrow=PopperArrow;var PORTAL_NAME$1="Portal";var Portal$1=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _b;var _a=props,containerProp=_a.container,portalProps=__objRest(_a,["container"]);var _React$useState107=React.useState(false),_React$useState108=_slicedToArray2(_React$useState107,2),mounted=_React$useState108[0],setMounted=_React$useState108[1];useLayoutEffect2(function(){return setMounted(true);},[]);var container=containerProp||mounted&&((_b=globalThis==null?void 0:globalThis.document)==null?void 0:_b.body);return container?/*#__PURE__*/ReactDOM__default.createPortal(/* @__PURE__ */jsx$1(Primitive.div,__spreadProps(__spreadValues({},portalProps),{ref:forwardedRef})),container):null;});Portal$1.displayName=PORTAL_NAME$1;function useStateMachine(initialState,machine){return React.useReducer(function(state,event){var nextState=machine[state][event];return nextState!=null?nextState:state;},initialState);}var Presence=function Presence(props){var present=props.present,children=props.children;var presence=usePresence(present);var child=typeof children==="function"?children({present:presence.isPresent}):React.Children.only(children);var ref=useComposedRefs(presence.ref,getElementRef(child));var forceMount=typeof children==="function";return forceMount||presence.isPresent?/*#__PURE__*/React.cloneElement(child,{ref:ref}):null;};Presence.displayName="Presence";function usePresence(present){var _React$useState109=React.useState(),_React$useState110=_slicedToArray2(_React$useState109,2),node2=_React$useState110[0],setNode=_React$useState110[1];var stylesRef=React.useRef(null);var prevPresentRef=React.useRef(present);var prevAnimationNameRef=React.useRef("none");var initialState=present?"mounted":"unmounted";var _useStateMachine=useStateMachine(initialState,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),_useStateMachine2=_slicedToArray2(_useStateMachine,2),state=_useStateMachine2[0],send=_useStateMachine2[1];React.useEffect(function(){var currentAnimationName=getAnimationName(stylesRef.current);prevAnimationNameRef.current=state==="mounted"?currentAnimationName:"none";},[state]);useLayoutEffect2(function(){var styles2=stylesRef.current;var wasPresent=prevPresentRef.current;var hasPresentChanged=wasPresent!==present;if(hasPresentChanged){var prevAnimationName=prevAnimationNameRef.current;var currentAnimationName=getAnimationName(styles2);if(present){send("MOUNT");}else if(currentAnimationName==="none"||(styles2==null?void 0:styles2.display)==="none"){send("UNMOUNT");}else{var isAnimating=prevAnimationName!==currentAnimationName;if(wasPresent&&isAnimating){send("ANIMATION_OUT");}else{send("UNMOUNT");}}prevPresentRef.current=present;}},[present,send]);useLayoutEffect2(function(){var _a;if(node2){var timeoutId;var ownerWindow2=(_a=node2.ownerDocument.defaultView)!=null?_a:window;var handleAnimationEnd=function handleAnimationEnd(event){var currentAnimationName=getAnimationName(stylesRef.current);var isCurrentAnimation=currentAnimationName.includes(CSS.escape(event.animationName));if(event.target===node2&&isCurrentAnimation){send("ANIMATION_END");if(!prevPresentRef.current){var currentFillMode=node2.style.animationFillMode;node2.style.animationFillMode="forwards";timeoutId=ownerWindow2.setTimeout(function(){if(node2.style.animationFillMode==="forwards"){node2.style.animationFillMode=currentFillMode;}});}}};var handleAnimationStart=function handleAnimationStart(event){if(event.target===node2){prevAnimationNameRef.current=getAnimationName(stylesRef.current);}};node2.addEventListener("animationstart",handleAnimationStart);node2.addEventListener("animationcancel",handleAnimationEnd);node2.addEventListener("animationend",handleAnimationEnd);return function(){ownerWindow2.clearTimeout(timeoutId);node2.removeEventListener("animationstart",handleAnimationStart);node2.removeEventListener("animationcancel",handleAnimationEnd);node2.removeEventListener("animationend",handleAnimationEnd);};}else{send("ANIMATION_END");}},[node2,send]);return{isPresent:["mounted","unmountSuspended"].includes(state),ref:React.useCallback(function(node22){stylesRef.current=node22?getComputedStyle(node22):null;setNode(node22);},[])};}function getAnimationName(styles2){return(styles2==null?void 0:styles2.animationName)||"none";}function getElementRef(element){var _a,_b;var getter=(_a=Object.getOwnPropertyDescriptor(element.props,"ref"))==null?void 0:_a.get;var mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn){return element.ref;}getter=(_b=Object.getOwnPropertyDescriptor(element,"ref"))==null?void 0:_b.get;mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn){return element.props.ref;}return element.props.ref||element.ref;}var useInsertionEffect$1=React[" useInsertionEffect ".trim().toString()]||useLayoutEffect2;function useControllableState(_ref0){var prop=_ref0.prop,defaultProp=_ref0.defaultProp,_ref0$onChange=_ref0.onChange,onChange2=_ref0$onChange===void 0?function(){}:_ref0$onChange,caller=_ref0.caller;var _useUncontrolledState=useUncontrolledState({defaultProp:defaultProp,onChange:onChange2}),_useUncontrolledState2=_slicedToArray2(_useUncontrolledState,3),uncontrolledProp=_useUncontrolledState2[0],setUncontrolledProp=_useUncontrolledState2[1],onChangeRef=_useUncontrolledState2[2];var isControlled=prop!==void 0;var value=isControlled?prop:uncontrolledProp;{var isControlledRef=React.useRef(prop!==void 0);React.useEffect(function(){var wasControlled=isControlledRef.current;if(wasControlled!==isControlled){var from2=wasControlled?"controlled":"uncontrolled";var to=isControlled?"controlled":"uncontrolled";console.warn("".concat(caller," is changing from ").concat(from2," to ").concat(to,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."));}isControlledRef.current=isControlled;},[isControlled,caller]);}var setValue=React.useCallback(function(nextValue){var _a;if(isControlled){var value2=isFunction(nextValue)?nextValue(prop):nextValue;if(value2!==prop){(_a=onChangeRef.current)==null?void 0:_a.call(onChangeRef,value2);}}else{setUncontrolledProp(nextValue);}},[isControlled,prop,setUncontrolledProp,onChangeRef]);return[value,setValue];}function useUncontrolledState(_ref1){var defaultProp=_ref1.defaultProp,onChange2=_ref1.onChange;var _React$useState111=React.useState(defaultProp),_React$useState112=_slicedToArray2(_React$useState111,2),value=_React$useState112[0],setValue=_React$useState112[1];var prevValueRef=React.useRef(value);var onChangeRef=React.useRef(onChange2);useInsertionEffect$1(function(){onChangeRef.current=onChange2;},[onChange2]);React.useEffect(function(){var _a;if(prevValueRef.current!==value){(_a=onChangeRef.current)==null?void 0:_a.call(onChangeRef,value);prevValueRef.current=value;}},[value,prevValueRef]);return[value,setValue,onChangeRef];}function isFunction(value){return typeof value==="function";}var getDefaultParent=function getDefaultParent(originalTarget){if(typeof document==="undefined"){return null;}var sampleTarget=Array.isArray(originalTarget)?originalTarget[0]:originalTarget;return sampleTarget.ownerDocument.body;};var counterMap=/* @__PURE__ */new WeakMap();var uncontrolledNodes=/* @__PURE__ */new WeakMap();var markerMap={};var lockCount=0;var _unwrapHost=function unwrapHost(node2){return node2&&(node2.host||_unwrapHost(node2.parentNode));};var correctTargets=function correctTargets(parent,targets){return targets.map(function(target){if(parent.contains(target)){return target;}var correctedTarget=_unwrapHost(target);if(correctedTarget&&parent.contains(correctedTarget)){return correctedTarget;}console.error("aria-hidden",target,"in not contained inside",parent,". Doing nothing");return null;}).filter(function(x){return Boolean(x);});};var applyAttributeToOthers=function applyAttributeToOthers(originalTarget,parentNode,markerName,controlAttribute){var targets=correctTargets(parentNode,Array.isArray(originalTarget)?originalTarget:[originalTarget]);if(!markerMap[markerName]){markerMap[markerName]=/* @__PURE__ */new WeakMap();}var markerCounter=markerMap[markerName];var hiddenNodes=[];var elementsToKeep=/* @__PURE__ */new Set();var elementsToStop=new Set(targets);var _keep=function keep(el){if(!el||elementsToKeep.has(el)){return;}elementsToKeep.add(el);_keep(el.parentNode);};targets.forEach(_keep);var _deep=function deep(parent){if(!parent||elementsToStop.has(parent)){return;}Array.prototype.forEach.call(parent.children,function(node2){if(elementsToKeep.has(node2)){_deep(node2);}else{try{var attr=node2.getAttribute(controlAttribute);var alreadyHidden=attr!==null&&attr!=="false";var counterValue=(counterMap.get(node2)||0)+1;var markerValue=(markerCounter.get(node2)||0)+1;counterMap.set(node2,counterValue);markerCounter.set(node2,markerValue);hiddenNodes.push(node2);if(counterValue===1&&alreadyHidden){uncontrolledNodes.set(node2,true);}if(markerValue===1){node2.setAttribute(markerName,"true");}if(!alreadyHidden){node2.setAttribute(controlAttribute,"true");}}catch(e){console.error("aria-hidden: cannot operate on ",node2,e);}}});};_deep(parentNode);elementsToKeep.clear();lockCount++;return function(){hiddenNodes.forEach(function(node2){var counterValue=counterMap.get(node2)-1;var markerValue=markerCounter.get(node2)-1;counterMap.set(node2,counterValue);markerCounter.set(node2,markerValue);if(!counterValue){if(!uncontrolledNodes.has(node2)){node2.removeAttribute(controlAttribute);}uncontrolledNodes.delete(node2);}if(!markerValue){node2.removeAttribute(markerName);}});lockCount--;if(!lockCount){counterMap=/* @__PURE__ */new WeakMap();counterMap=/* @__PURE__ */new WeakMap();uncontrolledNodes=/* @__PURE__ */new WeakMap();markerMap={};}};};var hideOthers=function hideOthers(originalTarget,parentNode,markerName){if(markerName===void 0){markerName="data-aria-hidden";}var targets=Array.from(Array.isArray(originalTarget)?originalTarget:[originalTarget]);var activeParentNode=getDefaultParent(originalTarget);if(!activeParentNode){return function(){return null;};}targets.push.apply(targets,Array.from(activeParentNode.querySelectorAll("[aria-live], script")));return applyAttributeToOthers(targets,activeParentNode,markerName,"aria-hidden");};var _assign$=function __assign$1(){_assign$=Object.assign||function __assign2(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return _assign$.apply(this,arguments);};function __rest$1(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++){if(e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i]))t[p[i]]=s[p[i]];}return t;}function __spreadArray(to,from2,pack){if(pack||arguments.length===2)for(var i=0,l=from2.length,ar;i<l;i++){if(ar||!(i in from2)){if(!ar)ar=Array.prototype.slice.call(from2,0,i);ar[i]=from2[i];}}return to.concat(ar||Array.prototype.slice.call(from2));}typeof SuppressedError==="function"?SuppressedError:function(error2,suppressed,message2){var e=new Error(message2);return e.name="SuppressedError",e.error=error2,e.suppressed=suppressed,e;};var zeroRightClassName="right-scroll-bar-position";var fullWidthClassName="width-before-scroll-bar";var noScrollbarsClassName="with-scroll-bars-hidden";var removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(ref,value){if(typeof ref==="function"){ref(value);}else if(ref){ref.current=value;}return ref;}function useCallbackRef(initialValue,callback){var ref=useState(function(){return{// value
|
|
7053
|
+
display:"block"})}))}));});PopperArrow.displayName=ARROW_NAME$1;function isNotNull(value){return value!==null;}var transformOrigin=function transformOrigin(options){return{name:"transformOrigin",options:options,fn:function fn(data){var _a,_b,_c,_d,_e;var placement=data.placement,rects=data.rects,middlewareData=data.middlewareData;var cannotCenterArrow=((_a=middlewareData.arrow)==null?void 0:_a.centerOffset)!==0;var isArrowHidden=cannotCenterArrow;var arrowWidth=isArrowHidden?0:options.arrowWidth;var arrowHeight=isArrowHidden?0:options.arrowHeight;var _getSideAndAlignFromP3=getSideAndAlignFromPlacement(placement),_getSideAndAlignFromP4=_slicedToArray2(_getSideAndAlignFromP3,2),placedSide=_getSideAndAlignFromP4[0],placedAlign=_getSideAndAlignFromP4[1];var noArrowAlign={start:"0%",center:"50%",end:"100%"}[placedAlign];var arrowXCenter=((_c=(_b=middlewareData.arrow)==null?void 0:_b.x)!=null?_c:0)+arrowWidth/2;var arrowYCenter=((_e=(_d=middlewareData.arrow)==null?void 0:_d.y)!=null?_e:0)+arrowHeight/2;var x="";var y="";if(placedSide==="bottom"){x=isArrowHidden?noArrowAlign:"".concat(arrowXCenter,"px");y="".concat(-arrowHeight,"px");}else if(placedSide==="top"){x=isArrowHidden?noArrowAlign:"".concat(arrowXCenter,"px");y="".concat(rects.floating.height+arrowHeight,"px");}else if(placedSide==="right"){x="".concat(-arrowHeight,"px");y=isArrowHidden?noArrowAlign:"".concat(arrowYCenter,"px");}else if(placedSide==="left"){x="".concat(rects.floating.width+arrowHeight,"px");y=isArrowHidden?noArrowAlign:"".concat(arrowYCenter,"px");}return{data:{x:x,y:y}};}};};function getSideAndAlignFromPlacement(placement){var _placement$split=placement.split("-"),_placement$split2=_slicedToArray2(_placement$split,2),side=_placement$split2[0],_placement$split2$=_placement$split2[1],align=_placement$split2$===void 0?"center":_placement$split2$;return[side,align];}var Root2$1=Popper3;var Anchor=PopperAnchor;var Content=PopperContent;var Arrow=PopperArrow;var PORTAL_NAME$1="Portal";var Portal$1=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _b;var _a=props,containerProp=_a.container,portalProps=__objRest(_a,["container"]);var _React$useState107=React.useState(false),_React$useState108=_slicedToArray2(_React$useState107,2),mounted=_React$useState108[0],setMounted=_React$useState108[1];useLayoutEffect2(function(){return setMounted(true);},[]);var container=containerProp||mounted&&((_b=globalThis==null?void 0:globalThis.document)==null?void 0:_b.body);return container?/*#__PURE__*/ReactDOM__default.createPortal(/* @__PURE__ */jsx$1(Primitive.div,__spreadProps(__spreadValues({},portalProps),{ref:forwardedRef})),container):null;});Portal$1.displayName=PORTAL_NAME$1;function useStateMachine(initialState,machine){return React.useReducer(function(state,event){var nextState=machine[state][event];return nextState!=null?nextState:state;},initialState);}var Presence=function Presence(props){var present=props.present,children=props.children;var presence=usePresence(present);var child=typeof children==="function"?children({present:presence.isPresent}):React.Children.only(children);var ref=useComposedRefs(presence.ref,getElementRef(child));var forceMount=typeof children==="function";return forceMount||presence.isPresent?/*#__PURE__*/React.cloneElement(child,{ref:ref}):null;};Presence.displayName="Presence";function usePresence(present){var _React$useState109=React.useState(),_React$useState110=_slicedToArray2(_React$useState109,2),node2=_React$useState110[0],setNode=_React$useState110[1];var stylesRef=React.useRef(null);var prevPresentRef=React.useRef(present);var prevAnimationNameRef=React.useRef("none");var initialState=present?"mounted":"unmounted";var _useStateMachine=useStateMachine(initialState,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),_useStateMachine2=_slicedToArray2(_useStateMachine,2),state=_useStateMachine2[0],send=_useStateMachine2[1];React.useEffect(function(){var currentAnimationName=getAnimationName(stylesRef.current);prevAnimationNameRef.current=state==="mounted"?currentAnimationName:"none";},[state]);useLayoutEffect2(function(){var styles2=stylesRef.current;var wasPresent=prevPresentRef.current;var hasPresentChanged=wasPresent!==present;if(hasPresentChanged){var prevAnimationName=prevAnimationNameRef.current;var currentAnimationName=getAnimationName(styles2);if(present){send("MOUNT");}else if(currentAnimationName==="none"||(styles2==null?void 0:styles2.display)==="none"){send("UNMOUNT");}else{var isAnimating=prevAnimationName!==currentAnimationName;if(wasPresent&&isAnimating){send("ANIMATION_OUT");}else{send("UNMOUNT");}}prevPresentRef.current=present;}},[present,send]);useLayoutEffect2(function(){var _a;if(node2){var timeoutId;var ownerWindow2=(_a=node2.ownerDocument.defaultView)!=null?_a:window;var handleAnimationEnd=function handleAnimationEnd(event){var currentAnimationName=getAnimationName(stylesRef.current);var isCurrentAnimation=currentAnimationName.includes(CSS.escape(event.animationName));if(event.target===node2&&isCurrentAnimation){send("ANIMATION_END");if(!prevPresentRef.current){var currentFillMode=node2.style.animationFillMode;node2.style.animationFillMode="forwards";timeoutId=ownerWindow2.setTimeout(function(){if(node2.style.animationFillMode==="forwards"){node2.style.animationFillMode=currentFillMode;}});}}};var handleAnimationStart=function handleAnimationStart(event){if(event.target===node2){prevAnimationNameRef.current=getAnimationName(stylesRef.current);}};node2.addEventListener("animationstart",handleAnimationStart);node2.addEventListener("animationcancel",handleAnimationEnd);node2.addEventListener("animationend",handleAnimationEnd);return function(){ownerWindow2.clearTimeout(timeoutId);node2.removeEventListener("animationstart",handleAnimationStart);node2.removeEventListener("animationcancel",handleAnimationEnd);node2.removeEventListener("animationend",handleAnimationEnd);};}else{send("ANIMATION_END");}},[node2,send]);return{isPresent:["mounted","unmountSuspended"].includes(state),ref:React.useCallback(function(node22){stylesRef.current=node22?getComputedStyle(node22):null;setNode(node22);},[])};}function getAnimationName(styles2){return(styles2==null?void 0:styles2.animationName)||"none";}function getElementRef(element){var _a,_b;var getter=(_a=Object.getOwnPropertyDescriptor(element.props,"ref"))==null?void 0:_a.get;var mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn){return element.ref;}getter=(_b=Object.getOwnPropertyDescriptor(element,"ref"))==null?void 0:_b.get;mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;if(mayWarn){return element.props.ref;}return element.props.ref||element.ref;}var useInsertionEffect$1=React[" useInsertionEffect ".trim().toString()]||useLayoutEffect2;function useControllableState(_ref0){var prop=_ref0.prop,defaultProp=_ref0.defaultProp,_ref0$onChange=_ref0.onChange,onChange2=_ref0$onChange===void 0?function(){}:_ref0$onChange,caller=_ref0.caller;var _useUncontrolledState=useUncontrolledState({defaultProp:defaultProp,onChange:onChange2}),_useUncontrolledState2=_slicedToArray2(_useUncontrolledState,3),uncontrolledProp=_useUncontrolledState2[0],setUncontrolledProp=_useUncontrolledState2[1],onChangeRef=_useUncontrolledState2[2];var isControlled=prop!==void 0;var value=isControlled?prop:uncontrolledProp;{var isControlledRef=React.useRef(prop!==void 0);React.useEffect(function(){var wasControlled=isControlledRef.current;if(wasControlled!==isControlled){var from2=wasControlled?"controlled":"uncontrolled";var to=isControlled?"controlled":"uncontrolled";console.warn("".concat(caller," is changing from ").concat(from2," to ").concat(to,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."));}isControlledRef.current=isControlled;},[isControlled,caller]);}var setValue=React.useCallback(function(nextValue){var _a;if(isControlled){var value2=isFunction$3(nextValue)?nextValue(prop):nextValue;if(value2!==prop){(_a=onChangeRef.current)==null?void 0:_a.call(onChangeRef,value2);}}else{setUncontrolledProp(nextValue);}},[isControlled,prop,setUncontrolledProp,onChangeRef]);return[value,setValue];}function useUncontrolledState(_ref1){var defaultProp=_ref1.defaultProp,onChange2=_ref1.onChange;var _React$useState111=React.useState(defaultProp),_React$useState112=_slicedToArray2(_React$useState111,2),value=_React$useState112[0],setValue=_React$useState112[1];var prevValueRef=React.useRef(value);var onChangeRef=React.useRef(onChange2);useInsertionEffect$1(function(){onChangeRef.current=onChange2;},[onChange2]);React.useEffect(function(){var _a;if(prevValueRef.current!==value){(_a=onChangeRef.current)==null?void 0:_a.call(onChangeRef,value);prevValueRef.current=value;}},[value,prevValueRef]);return[value,setValue,onChangeRef];}function isFunction$3(value){return typeof value==="function";}var getDefaultParent=function getDefaultParent(originalTarget){if(typeof document==="undefined"){return null;}var sampleTarget=Array.isArray(originalTarget)?originalTarget[0]:originalTarget;return sampleTarget.ownerDocument.body;};var counterMap=/* @__PURE__ */new WeakMap();var uncontrolledNodes=/* @__PURE__ */new WeakMap();var markerMap={};var lockCount=0;var _unwrapHost=function unwrapHost(node2){return node2&&(node2.host||_unwrapHost(node2.parentNode));};var correctTargets=function correctTargets(parent,targets){return targets.map(function(target){if(parent.contains(target)){return target;}var correctedTarget=_unwrapHost(target);if(correctedTarget&&parent.contains(correctedTarget)){return correctedTarget;}console.error("aria-hidden",target,"in not contained inside",parent,". Doing nothing");return null;}).filter(function(x){return Boolean(x);});};var applyAttributeToOthers=function applyAttributeToOthers(originalTarget,parentNode,markerName,controlAttribute){var targets=correctTargets(parentNode,Array.isArray(originalTarget)?originalTarget:[originalTarget]);if(!markerMap[markerName]){markerMap[markerName]=/* @__PURE__ */new WeakMap();}var markerCounter=markerMap[markerName];var hiddenNodes=[];var elementsToKeep=/* @__PURE__ */new Set();var elementsToStop=new Set(targets);var _keep=function keep(el){if(!el||elementsToKeep.has(el)){return;}elementsToKeep.add(el);_keep(el.parentNode);};targets.forEach(_keep);var _deep=function deep(parent){if(!parent||elementsToStop.has(parent)){return;}Array.prototype.forEach.call(parent.children,function(node2){if(elementsToKeep.has(node2)){_deep(node2);}else{try{var attr=node2.getAttribute(controlAttribute);var alreadyHidden=attr!==null&&attr!=="false";var counterValue=(counterMap.get(node2)||0)+1;var markerValue=(markerCounter.get(node2)||0)+1;counterMap.set(node2,counterValue);markerCounter.set(node2,markerValue);hiddenNodes.push(node2);if(counterValue===1&&alreadyHidden){uncontrolledNodes.set(node2,true);}if(markerValue===1){node2.setAttribute(markerName,"true");}if(!alreadyHidden){node2.setAttribute(controlAttribute,"true");}}catch(e){console.error("aria-hidden: cannot operate on ",node2,e);}}});};_deep(parentNode);elementsToKeep.clear();lockCount++;return function(){hiddenNodes.forEach(function(node2){var counterValue=counterMap.get(node2)-1;var markerValue=markerCounter.get(node2)-1;counterMap.set(node2,counterValue);markerCounter.set(node2,markerValue);if(!counterValue){if(!uncontrolledNodes.has(node2)){node2.removeAttribute(controlAttribute);}uncontrolledNodes.delete(node2);}if(!markerValue){node2.removeAttribute(markerName);}});lockCount--;if(!lockCount){counterMap=/* @__PURE__ */new WeakMap();counterMap=/* @__PURE__ */new WeakMap();uncontrolledNodes=/* @__PURE__ */new WeakMap();markerMap={};}};};var hideOthers=function hideOthers(originalTarget,parentNode,markerName){if(markerName===void 0){markerName="data-aria-hidden";}var targets=Array.from(Array.isArray(originalTarget)?originalTarget:[originalTarget]);var activeParentNode=getDefaultParent(originalTarget);if(!activeParentNode){return function(){return null;};}targets.push.apply(targets,Array.from(activeParentNode.querySelectorAll("[aria-live], script")));return applyAttributeToOthers(targets,activeParentNode,markerName,"aria-hidden");};var _assign$=function __assign$1(){_assign$=Object.assign||function __assign2(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return _assign$.apply(this,arguments);};function __rest$1(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++){if(e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i]))t[p[i]]=s[p[i]];}return t;}function __spreadArray(to,from2,pack){if(pack||arguments.length===2)for(var i=0,l=from2.length,ar;i<l;i++){if(ar||!(i in from2)){if(!ar)ar=Array.prototype.slice.call(from2,0,i);ar[i]=from2[i];}}return to.concat(ar||Array.prototype.slice.call(from2));}typeof SuppressedError==="function"?SuppressedError:function(error2,suppressed,message2){var e=new Error(message2);return e.name="SuppressedError",e.error=error2,e.suppressed=suppressed,e;};var zeroRightClassName="right-scroll-bar-position";var fullWidthClassName="width-before-scroll-bar";var noScrollbarsClassName="with-scroll-bars-hidden";var removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(ref,value){if(typeof ref==="function"){ref(value);}else if(ref){ref.current=value;}return ref;}function useCallbackRef(initialValue,callback){var ref=useState(function(){return{// value
|
|
7054
7054
|
value:initialValue,// last callback
|
|
7055
7055
|
callback:callback,// "memoized" public interface
|
|
7056
7056
|
facade:{get current(){return ref.value;},set current(value){var last=ref.value;if(last!==value){ref.value=value;ref.callback(value,last);}}}};})[0];ref.callback=callback;return ref.facade;}var useIsomorphicLayoutEffect=typeof window!=="undefined"?React.useLayoutEffect:React.useEffect;var currentValues=/* @__PURE__ */new WeakMap();function useMergeRefs(refs,defaultValue){var callbackRef=useCallbackRef(null,function(newValue){return refs.forEach(function(ref){return assignRef(ref,newValue);});});useIsomorphicLayoutEffect(function(){var oldValue=currentValues.get(callbackRef);if(oldValue){var prevRefs_1=new Set(oldValue);var nextRefs_1=new Set(refs);var current_1=callbackRef.current;prevRefs_1.forEach(function(ref){if(!nextRefs_1.has(ref)){assignRef(ref,null);}});nextRefs_1.forEach(function(ref){if(!prevRefs_1.has(ref)){assignRef(ref,current_1);}});}currentValues.set(callbackRef,refs);},[refs]);return callbackRef;}function ItoI(a){return a;}function innerCreateMedium(defaults,middleware2){if(middleware2===void 0){middleware2=ItoI;}var buffer=[];var assigned=false;var medium={read:function read(){if(assigned){throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");}if(buffer.length){return buffer[buffer.length-1];}return defaults;},useMedium:function useMedium(data){var item2=middleware2(data,assigned);buffer.push(item2);return function(){buffer=buffer.filter(function(x){return x!==item2;});};},assignSyncMedium:function assignSyncMedium(cb){assigned=true;while(buffer.length){var cbs=buffer;buffer=[];cbs.forEach(cb);}buffer={push:function push(x){return cb(x);},filter:function filter(){return buffer;}};},assignMedium:function assignMedium(cb){assigned=true;var pendingQueue=[];if(buffer.length){var cbs=buffer;buffer=[];cbs.forEach(cb);pendingQueue=buffer;}var executeQueue=function executeQueue(){var cbs2=pendingQueue;pendingQueue=[];cbs2.forEach(cb);};var cycle=function cycle(){return Promise.resolve().then(executeQueue);};cycle();buffer={push:function push(x){pendingQueue.push(x);cycle();},filter:function filter(_filter){pendingQueue=pendingQueue.filter(_filter);return buffer;}};}};return medium;}function createSidecarMedium(options){if(options===void 0){options={};}var medium=innerCreateMedium(null);medium.options=_assign$({async:true,ssr:false},options);return medium;}var SideCar$1=function SideCar$1(_a){var sideCar=_a.sideCar,rest=__rest$1(_a,["sideCar"]);if(!sideCar){throw new Error("Sidecar: please provide `sideCar` property to import the right car");}var Target=sideCar.read();if(!Target){throw new Error("Sidecar medium not found");}return/*#__PURE__*/React.createElement(Target,_assign$({},rest));};SideCar$1.isSideCarExport=true;function exportSidecar(medium,exported){medium.useMedium(exported);return SideCar$1;}var effectCar=createSidecarMedium();var nothing=function nothing(){return;};var RemoveScroll=/*#__PURE__*/React.forwardRef(function(props,parentRef){var ref=React.useRef(null);var _a=React.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),callbacks=_a[0],setCallbacks=_a[1];var forwardProps=props.forwardProps,children=props.children,className=props.className,removeScrollBar=props.removeScrollBar,enabled=props.enabled,shards=props.shards,sideCar=props.sideCar,noRelative=props.noRelative,noIsolation=props.noIsolation,inert=props.inert,allowPinchZoom=props.allowPinchZoom,_b=props.as,Container=_b===void 0?"div":_b,gapMode=props.gapMode,rest=__rest$1(props,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]);var SideCar2=sideCar;var containerRef=useMergeRefs([ref,parentRef]);var containerProps=_assign$(_assign$({},rest),callbacks);return/*#__PURE__*/React.createElement(React.Fragment,null,enabled&&/*#__PURE__*/React.createElement(SideCar2,{sideCar:effectCar,removeScrollBar:removeScrollBar,shards:shards,noRelative:noRelative,noIsolation:noIsolation,inert:inert,setCallbacks:setCallbacks,allowPinchZoom:!!allowPinchZoom,lockRef:ref,gapMode:gapMode}),forwardProps?/*#__PURE__*/React.cloneElement(React.Children.only(children),_assign$(_assign$({},containerProps),{ref:containerRef})):/*#__PURE__*/React.createElement(Container,_assign$({},containerProps,{className:className,ref:containerRef}),children));});RemoveScroll.defaultProps={enabled:true,removeScrollBar:true,inert:false};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function getNonce(){if(typeof __webpack_nonce__!=="undefined"){return __webpack_nonce__;}return void 0;};function makeStyleTag(){if(!document)return null;var tag=document.createElement("style");tag.type="text/css";var nonce=getNonce();if(nonce){tag.setAttribute("nonce",nonce);}return tag;}function injectStyles(tag,css4){if(tag.styleSheet){tag.styleSheet.cssText=css4;}else{tag.appendChild(document.createTextNode(css4));}}function insertStyleTag(tag){var head2=document.head||document.getElementsByTagName("head")[0];head2.appendChild(tag);}var stylesheetSingleton=function stylesheetSingleton(){var counter=0;var stylesheet=null;return{add:function add(style2){if(counter==0){if(stylesheet=makeStyleTag()){injectStyles(stylesheet,style2);insertStyleTag(stylesheet);}}counter++;},remove:function remove(){counter--;if(!counter&&stylesheet){stylesheet.parentNode&&stylesheet.parentNode.removeChild(stylesheet);stylesheet=null;}}};};var styleHookSingleton=function styleHookSingleton(){var sheet=stylesheetSingleton();return function(styles2,isDynamic){React.useEffect(function(){sheet.add(styles2);return function(){sheet.remove();};},[styles2&&isDynamic]);};};var styleSingleton=function styleSingleton(){var useStyle=styleHookSingleton();var Sheet=function Sheet(_a){var styles2=_a.styles,dynamic=_a.dynamic;useStyle(styles2,dynamic);return null;};return Sheet;};var zeroGap={left:0,top:0,right:0,gap:0};var parse$1=function parse$1(x){return parseInt(x||"",10)||0;};var getOffset=function getOffset(gapMode){var cs=window.getComputedStyle(document.body);var left2=cs[gapMode==="padding"?"paddingLeft":"marginLeft"];var top2=cs[gapMode==="padding"?"paddingTop":"marginTop"];var right2=cs[gapMode==="padding"?"paddingRight":"marginRight"];return[parse$1(left2),parse$1(top2),parse$1(right2)];};var getGapWidth=function getGapWidth(gapMode){if(gapMode===void 0){gapMode="margin";}if(typeof window==="undefined"){return zeroGap;}var offsets=getOffset(gapMode);var documentWidth=document.documentElement.clientWidth;var windowWidth=window.innerWidth;return{left:offsets[0],top:offsets[1],right:offsets[2],gap:Math.max(0,windowWidth-documentWidth+offsets[2]-offsets[0])};};var Style=styleSingleton();var lockAttribute="data-scroll-locked";var getStyles=function getStyles(_a,allowRelative,gapMode,important){var left2=_a.left,top2=_a.top,right2=_a.right,gap2=_a.gap;if(gapMode===void 0){gapMode="margin";}return"\n .".concat(noScrollbarsClassName," {\n overflow: hidden ").concat(important,";\n padding-right: ").concat(gap2,"px ").concat(important,";\n }\n body[").concat(lockAttribute,"] {\n overflow: hidden ").concat(important,";\n overscroll-behavior: contain;\n ").concat([allowRelative&&"position: relative ".concat(important,";"),gapMode==="margin"&&"\n padding-left: ".concat(left2,"px;\n padding-top: ").concat(top2,"px;\n padding-right: ").concat(right2,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap2,"px ").concat(important,";\n "),gapMode==="padding"&&"padding-right: ".concat(gap2,"px ").concat(important,";")].filter(Boolean).join(""),"\n }\n \n .").concat(zeroRightClassName," {\n right: ").concat(gap2,"px ").concat(important,";\n }\n \n .").concat(fullWidthClassName," {\n margin-right: ").concat(gap2,"px ").concat(important,";\n }\n \n .").concat(zeroRightClassName," .").concat(zeroRightClassName," {\n right: 0 ").concat(important,";\n }\n \n .").concat(fullWidthClassName," .").concat(fullWidthClassName," {\n margin-right: 0 ").concat(important,";\n }\n \n body[").concat(lockAttribute,"] {\n ").concat(removedBarSizeVariable,": ").concat(gap2,"px;\n }\n");};var getCurrentUseCounter=function getCurrentUseCounter(){var counter=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(counter)?counter:0;};var useLockAttribute=function useLockAttribute(){React.useEffect(function(){document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString());return function(){var newCounter=getCurrentUseCounter()-1;if(newCounter<=0){document.body.removeAttribute(lockAttribute);}else{document.body.setAttribute(lockAttribute,newCounter.toString());}};},[]);};var RemoveScrollBar=function RemoveScrollBar(_a){var noRelative=_a.noRelative,noImportant=_a.noImportant,_b=_a.gapMode,gapMode=_b===void 0?"margin":_b;useLockAttribute();var gap2=React.useMemo(function(){return getGapWidth(gapMode);},[gapMode]);return/*#__PURE__*/React.createElement(Style,{styles:getStyles(gap2,!noRelative,gapMode,!noImportant?"!important":"")});};var passiveSupported=false;if(typeof window!=="undefined"){try{var options=Object.defineProperty({},"passive",{get:function get(){passiveSupported=true;return true;}});window.addEventListener("test",options,options);window.removeEventListener("test",options,options);}catch(err){passiveSupported=false;}}var nonPassive=passiveSupported?{passive:false}:false;var alwaysContainsScroll=function alwaysContainsScroll(node2){return node2.tagName==="TEXTAREA";};var elementCanBeScrolled=function elementCanBeScrolled(node2,overflow){if(!(node2 instanceof Element)){return false;}var styles2=window.getComputedStyle(node2);return(// not-not-scrollable
|
|
7057
7057
|
styles2[overflow]!=="hidden"&&// contains scroll inside self
|
|
7058
7058
|
!(styles2.overflowY===styles2.overflowX&&!alwaysContainsScroll(node2)&&styles2[overflow]==="visible"));};var elementCouldBeVScrolled=function elementCouldBeVScrolled(node2){return elementCanBeScrolled(node2,"overflowY");};var elementCouldBeHScrolled=function elementCouldBeHScrolled(node2){return elementCanBeScrolled(node2,"overflowX");};var locationCouldBeScrolled=function locationCouldBeScrolled(axis,node2){var ownerDocument2=node2.ownerDocument;var current=node2;do{if(typeof ShadowRoot!=="undefined"&¤t instanceof ShadowRoot){current=current.host;}var isScrollable=elementCouldBeScrolled(axis,current);if(isScrollable){var _a=getScrollVariables(axis,current),scrollHeight=_a[1],clientHeight=_a[2];if(scrollHeight>clientHeight){return true;}}current=current.parentNode;}while(current&¤t!==ownerDocument2.body);return false;};var getVScrollVariables=function getVScrollVariables(_a){var scrollTop=_a.scrollTop,scrollHeight=_a.scrollHeight,clientHeight=_a.clientHeight;return[scrollTop,scrollHeight,clientHeight];};var getHScrollVariables=function getHScrollVariables(_a){var scrollLeft=_a.scrollLeft,scrollWidth=_a.scrollWidth,clientWidth=_a.clientWidth;return[scrollLeft,scrollWidth,clientWidth];};var elementCouldBeScrolled=function elementCouldBeScrolled(axis,node2){return axis==="v"?elementCouldBeVScrolled(node2):elementCouldBeHScrolled(node2);};var getScrollVariables=function getScrollVariables(axis,node2){return axis==="v"?getVScrollVariables(node2):getHScrollVariables(node2);};var getDirectionFactor=function getDirectionFactor(axis,direction){return axis==="h"&&direction==="rtl"?-1:1;};var handleScroll=function handleScroll(axis,endTarget,event,sourceDelta,noOverscroll){var directionFactor=getDirectionFactor(axis,window.getComputedStyle(endTarget).direction);var delta=directionFactor*sourceDelta;var target=event.target;var targetInLock=endTarget.contains(target);var shouldCancelScroll=false;var isDeltaPositive=delta>0;var availableScroll=0;var availableScrollTop=0;do{if(!target){break;}var _a=getScrollVariables(axis,target),position2=_a[0],scroll_1=_a[1],capacity=_a[2];var elementScroll=scroll_1-capacity-directionFactor*position2;if(position2||elementScroll){if(elementCouldBeScrolled(axis,target)){availableScroll+=elementScroll;availableScrollTop+=position2;}}var parent_1=target.parentNode;target=parent_1&&parent_1.nodeType===Node.DOCUMENT_FRAGMENT_NODE?parent_1.host:parent_1;}while(// portaled content
|
|
7059
7059
|
!targetInLock&&target!==document.body||// self content
|
|
7060
|
-
targetInLock&&(endTarget.contains(target)||endTarget===target));if(isDeltaPositive&&(Math.abs(availableScroll)<1||false)){shouldCancelScroll=true;}else if(!isDeltaPositive&&(Math.abs(availableScrollTop)<1||false)){shouldCancelScroll=true;}return shouldCancelScroll;};var getTouchXY=function getTouchXY(event){return"changedTouches"in event?[event.changedTouches[0].clientX,event.changedTouches[0].clientY]:[0,0];};var getDeltaXY=function getDeltaXY(event){return[event.deltaX,event.deltaY];};var extractRef=function extractRef(ref){return ref&&"current"in ref?ref.current:ref;};var deltaCompare=function deltaCompare(x,y){return x[0]===y[0]&&x[1]===y[1];};var generateStyle=function generateStyle(id){return"\n .block-interactivity-".concat(id," {pointer-events: none;}\n .allow-interactivity-").concat(id," {pointer-events: all;}\n");};var idCounter=0;var lockStack=[];function RemoveScrollSideCar(props){var shouldPreventQueue=React.useRef([]);var touchStartRef=React.useRef([0,0]);var activeAxis=React.useRef();var id=React.useState(idCounter++)[0];var Style2=React.useState(styleSingleton)[0];var lastProps=React.useRef(props);React.useEffect(function(){lastProps.current=props;},[props]);React.useEffect(function(){if(props.inert){document.body.classList.add("block-interactivity-".concat(id));var allow_1=__spreadArray([props.lockRef.current],(props.shards||[]).map(extractRef),true).filter(Boolean);allow_1.forEach(function(el){return el.classList.add("allow-interactivity-".concat(id));});return function(){document.body.classList.remove("block-interactivity-".concat(id));allow_1.forEach(function(el){return el.classList.remove("allow-interactivity-".concat(id));});};}return;},[props.inert,props.lockRef.current,props.shards]);var shouldCancelEvent=React.useCallback(function(event,parent){if("touches"in event&&event.touches.length===2||event.type==="wheel"&&event.ctrlKey){return!lastProps.current.allowPinchZoom;}var touch=getTouchXY(event);var touchStart=touchStartRef.current;var deltaX="deltaX"in event?event.deltaX:touchStart[0]-touch[0];var deltaY="deltaY"in event?event.deltaY:touchStart[1]-touch[1];var currentAxis;var target=event.target;var moveDirection=Math.abs(deltaX)>Math.abs(deltaY)?"h":"v";if("touches"in event&&moveDirection==="h"&&target.type==="range"){return false;}var canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);if(!canBeScrolledInMainDirection){return true;}if(canBeScrolledInMainDirection){currentAxis=moveDirection;}else{currentAxis=moveDirection==="v"?"h":"v";canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);}if(!canBeScrolledInMainDirection){return false;}if(!activeAxis.current&&"changedTouches"in event&&(deltaX||deltaY)){activeAxis.current=currentAxis;}if(!currentAxis){return true;}var cancelingAxis=activeAxis.current||currentAxis;return handleScroll(cancelingAxis,parent,event,cancelingAxis==="h"?deltaX:deltaY);},[]);var shouldPrevent=React.useCallback(function(_event){var event=_event;if(!lockStack.length||lockStack[lockStack.length-1]!==Style2){return;}var delta="deltaY"in event?getDeltaXY(event):getTouchXY(event);var sourceEvent=shouldPreventQueue.current.filter(function(e){return e.name===event.type&&(e.target===event.target||event.target===e.shadowParent)&&deltaCompare(e.delta,delta);})[0];if(sourceEvent&&sourceEvent.should){if(event.cancelable){event.preventDefault();}return;}if(!sourceEvent){var shardNodes=(lastProps.current.shards||[]).map(extractRef).filter(Boolean).filter(function(node2){return node2.contains(event.target);});var shouldStop=shardNodes.length>0?shouldCancelEvent(event,shardNodes[0]):!lastProps.current.noIsolation;if(shouldStop){if(event.cancelable){event.preventDefault();}}}},[]);var shouldCancel=React.useCallback(function(name,delta,target,should){var event={name:name,delta:delta,target:target,should:should,shadowParent:getOutermostShadowParent(target)};shouldPreventQueue.current.push(event);setTimeout(function(){shouldPreventQueue.current=shouldPreventQueue.current.filter(function(e){return e!==event;});},1);},[]);var scrollTouchStart=React.useCallback(function(event){touchStartRef.current=getTouchXY(event);activeAxis.current=void 0;},[]);var scrollWheel=React.useCallback(function(event){shouldCancel(event.type,getDeltaXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);var scrollTouchMove=React.useCallback(function(event){shouldCancel(event.type,getTouchXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);React.useEffect(function(){lockStack.push(Style2);props.setCallbacks({onScrollCapture:scrollWheel,onWheelCapture:scrollWheel,onTouchMoveCapture:scrollTouchMove});document.addEventListener("wheel",shouldPrevent,nonPassive);document.addEventListener("touchmove",shouldPrevent,nonPassive);document.addEventListener("touchstart",scrollTouchStart,nonPassive);return function(){lockStack=lockStack.filter(function(inst){return inst!==Style2;});document.removeEventListener("wheel",shouldPrevent,nonPassive);document.removeEventListener("touchmove",shouldPrevent,nonPassive);document.removeEventListener("touchstart",scrollTouchStart,nonPassive);};},[]);var removeScrollBar=props.removeScrollBar,inert=props.inert;return/*#__PURE__*/React.createElement(React.Fragment,null,inert?/*#__PURE__*/React.createElement(Style2,{styles:generateStyle(id)}):null,removeScrollBar?/*#__PURE__*/React.createElement(RemoveScrollBar,{noRelative:props.noRelative,gapMode:props.gapMode}):null);}function getOutermostShadowParent(node2){var shadowParent=null;while(node2!==null){if(node2 instanceof ShadowRoot){shadowParent=node2.host;node2=node2.host;}node2=node2.parentNode;}return shadowParent;}var SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=/*#__PURE__*/React.forwardRef(function(props,ref){return/*#__PURE__*/React.createElement(RemoveScroll,_assign$({},props,{ref:ref,sideCar:SideCar}));});ReactRemoveScroll.classNames=RemoveScroll.classNames;var POPOVER_NAME="Popover";var _createContextScope3=createContextScope(POPOVER_NAME,[createPopperScope]),_createContextScope4=_slicedToArray2(_createContextScope3,1),createPopoverContext=_createContextScope4[0];var usePopperScope=createPopperScope();var _createPopoverContext=createPopoverContext(POPOVER_NAME),_createPopoverContext2=_slicedToArray2(_createPopoverContext,2),PopoverProvider=_createPopoverContext2[0],usePopoverContext=_createPopoverContext2[1];var Popover2=function Popover2(props){var __scopePopover=props.__scopePopover,children=props.children,openProp=props.open,defaultOpen=props.defaultOpen,onOpenChange=props.onOpenChange,_props$modal=props.modal,modal2=_props$modal===void 0?false:_props$modal;var popperScope=usePopperScope(__scopePopover);var triggerRef=React.useRef(null);var _React$useState113=React.useState(false),_React$useState114=_slicedToArray2(_React$useState113,2),hasCustomAnchor=_React$useState114[0],setHasCustomAnchor=_React$useState114[1];var _useControllableState=useControllableState({prop:openProp,defaultProp:defaultOpen!=null?defaultOpen:false,onChange:onOpenChange,caller:POPOVER_NAME}),_useControllableState2=_slicedToArray2(_useControllableState,2),open=_useControllableState2[0],setOpen=_useControllableState2[1];return/* @__PURE__ */jsx$1(Root2$1,__spreadProps(__spreadValues({},popperScope),{children:/* @__PURE__ */jsx$1(PopoverProvider,{scope:__scopePopover,contentId:useId(),triggerRef:triggerRef,open:open,onOpenChange:setOpen,onOpenToggle:React.useCallback(function(){return setOpen(function(prevOpen){return!prevOpen;});},[setOpen]),hasCustomAnchor:hasCustomAnchor,onCustomAnchorAdd:React.useCallback(function(){return setHasCustomAnchor(true);},[]),onCustomAnchorRemove:React.useCallback(function(){return setHasCustomAnchor(false);},[]),modal:modal2,children:children})}));};Popover2.displayName=POPOVER_NAME;var ANCHOR_NAME="PopoverAnchor";var PopoverAnchor=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,anchorProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(ANCHOR_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var onCustomAnchorAdd=context.onCustomAnchorAdd,onCustomAnchorRemove=context.onCustomAnchorRemove;React.useEffect(function(){onCustomAnchorAdd();return function(){return onCustomAnchorRemove();};},[onCustomAnchorAdd,onCustomAnchorRemove]);return/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues(__spreadValues({},popperScope),anchorProps),{ref:forwardedRef}));});PopoverAnchor.displayName=ANCHOR_NAME;var TRIGGER_NAME="PopoverTrigger";var PopoverTrigger=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,triggerProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(TRIGGER_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var composedTriggerRef=useComposedRefs(forwardedRef,context.triggerRef);var trigger=/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button","aria-haspopup":"dialog","aria-expanded":context.open,"aria-controls":context.contentId,"data-state":getState(context.open)},triggerProps),{ref:composedTriggerRef,onClick:composeEventHandlers(props.onClick,context.onOpenToggle)}));return context.hasCustomAnchor?trigger:/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues({asChild:true},popperScope),{children:trigger}));});PopoverTrigger.displayName=TRIGGER_NAME;var PORTAL_NAME="PopoverPortal";var _createPopoverContext3=createPopoverContext(PORTAL_NAME,{forceMount:void 0}),_createPopoverContext4=_slicedToArray2(_createPopoverContext3,2),PortalProvider=_createPopoverContext4[0],usePortalContext=_createPopoverContext4[1];var PopoverPortal=function PopoverPortal(props){var __scopePopover=props.__scopePopover,forceMount=props.forceMount,children=props.children,container=props.container;var context=usePopoverContext(PORTAL_NAME,__scopePopover);return/* @__PURE__ */jsx$1(PortalProvider,{scope:__scopePopover,forceMount:forceMount,children:/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:/* @__PURE__ */jsx$1(Portal$1,{asChild:true,container:container,children:children})})});};PopoverPortal.displayName=PORTAL_NAME;var CONTENT_NAME="PopoverContent";var PopoverContent=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var portalContext=usePortalContext(CONTENT_NAME,props.__scopePopover);var _a=props,_a$forceMount=_a.forceMount,forceMount=_a$forceMount===void 0?portalContext.forceMount:_a$forceMount,contentProps=__objRest(_a,["forceMount"]);var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);return/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:context.modal?/* @__PURE__ */jsx$1(PopoverContentModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef})):/* @__PURE__ */jsx$1(PopoverContentNonModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef}))});});PopoverContent.displayName=CONTENT_NAME;var Slot=/* @__PURE__ */createSlot("PopoverContent.RemoveScroll");var PopoverContentModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var contentRef=React.useRef(null);var composedRefs=useComposedRefs(forwardedRef,contentRef);var isRightClickOutsideRef=React.useRef(false);React.useEffect(function(){var content2=contentRef.current;if(content2)return hideOthers(content2);},[]);return/* @__PURE__ */jsx$1(ReactRemoveScroll,{as:Slot,allowPinchZoom:true,children:/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:composedRefs,trapFocus:context.open,disableOutsidePointerEvents:true,onCloseAutoFocus:composeEventHandlers(props.onCloseAutoFocus,function(event){var _a;event.preventDefault();if(!isRightClickOutsideRef.current)(_a=context.triggerRef.current)==null?void 0:_a.focus();}),onPointerDownOutside:composeEventHandlers(props.onPointerDownOutside,function(event){var originalEvent=event.detail.originalEvent;var ctrlLeftClick=originalEvent.button===0&&originalEvent.ctrlKey===true;var isRightClick=originalEvent.button===2||ctrlLeftClick;isRightClickOutsideRef.current=isRightClick;},{checkForDefaultPrevented:false}),onFocusOutside:composeEventHandlers(props.onFocusOutside,function(event){return event.preventDefault();},{checkForDefaultPrevented:false})}))});});var PopoverContentNonModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var hasInteractedOutsideRef=React.useRef(false);var hasPointerDownOutsideRef=React.useRef(false);return/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:forwardedRef,trapFocus:false,disableOutsidePointerEvents:false,onCloseAutoFocus:function onCloseAutoFocus(event){var _a,_b;(_a=props.onCloseAutoFocus)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){if(!hasInteractedOutsideRef.current)(_b=context.triggerRef.current)==null?void 0:_b.focus();event.preventDefault();}hasInteractedOutsideRef.current=false;hasPointerDownOutsideRef.current=false;},onInteractOutside:function onInteractOutside(event){var _a,_b;(_a=props.onInteractOutside)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){hasInteractedOutsideRef.current=true;if(event.detail.originalEvent.type==="pointerdown"){hasPointerDownOutsideRef.current=true;}}var target=event.target;var targetIsTrigger=(_b=context.triggerRef.current)==null?void 0:_b.contains(target);if(targetIsTrigger)event.preventDefault();if(event.detail.originalEvent.type==="focusin"&&hasPointerDownOutsideRef.current){event.preventDefault();}}}));});var PopoverContentImpl=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,trapFocus=_a.trapFocus,onOpenAutoFocus=_a.onOpenAutoFocus,onCloseAutoFocus=_a.onCloseAutoFocus,disableOutsidePointerEvents=_a.disableOutsidePointerEvents,onEscapeKeyDown=_a.onEscapeKeyDown,onPointerDownOutside=_a.onPointerDownOutside,onFocusOutside=_a.onFocusOutside,onInteractOutside=_a.onInteractOutside,contentProps=__objRest(_a,["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"]);var context=usePopoverContext(CONTENT_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);useFocusGuards();return/* @__PURE__ */jsx$1(FocusScope,{asChild:true,loop:true,trapped:trapFocus,onMountAutoFocus:onOpenAutoFocus,onUnmountAutoFocus:onCloseAutoFocus,children:/* @__PURE__ */jsx$1(DismissableLayer,{asChild:true,disableOutsidePointerEvents:disableOutsidePointerEvents,onInteractOutside:onInteractOutside,onEscapeKeyDown:onEscapeKeyDown,onPointerDownOutside:onPointerDownOutside,onFocusOutside:onFocusOutside,onDismiss:function onDismiss(){return context.onOpenChange(false);},children:/* @__PURE__ */jsx$1(Content,__spreadProps(__spreadValues(__spreadValues({"data-state":getState(context.open),role:"dialog",id:context.contentId},popperScope),contentProps),{ref:forwardedRef,style:__spreadValues(__spreadValues({},contentProps.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))})});});var CLOSE_NAME="PopoverClose";var PopoverClose=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,closeProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(CLOSE_NAME,__scopePopover);return/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button"},closeProps),{ref:forwardedRef,onClick:composeEventHandlers(props.onClick,function(){return context.onOpenChange(false);})}));});PopoverClose.displayName=CLOSE_NAME;var ARROW_NAME="PopoverArrow";var PopoverArrow=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,arrowProps=__objRest(_a,["__scopePopover"]);var popperScope=usePopperScope(__scopePopover);return/* @__PURE__ */jsx$1(Arrow,__spreadProps(__spreadValues(__spreadValues({},popperScope),arrowProps),{ref:forwardedRef}));});PopoverArrow.displayName=ARROW_NAME;function getState(open){return open?"open":"closed";}var Root2=Popover2;var Trigger=PopoverTrigger;var Portal2=PopoverPortal;var Content2=PopoverContent;var formatDistanceLocale={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}};var formatDistance=function formatDistance(token2,count2,options){var result;var tokenValue=formatDistanceLocale[token2];if(typeof tokenValue==="string"){result=tokenValue;}else if(count2===1){result=tokenValue.one;}else{result=tokenValue.other.replace("{{count}}",count2.toString());}if(options==null?void 0:options.addSuffix){if(options.comparison&&options.comparison>0){return"en "+result;}else{return"hace "+result;}}return result;};var dateFormats={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"};var timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var dateTimeFormats={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};var formatRelativeLocale={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"};var formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"};var formatRelative=function formatRelative(token2,date,_baseDate,_options){if(date.getHours()!==1){return formatRelativeLocalePlural[token2];}else{return formatRelativeLocale[token2];}};var eraValues={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]};var quarterValues={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var monthValues={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]};var dayValues={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]};var dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}};var formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}};var ordinalNumber=function ordinalNumber(dirtyNumber,_options){var number=Number(dirtyNumber);return number+"º";};var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};var matchOrdinalNumberPattern=/^(\d+)(º)?/i;var parseOrdinalNumberPattern=/\d+/i;var matchEraPatterns={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i};var parseEraPatterns={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]};var matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i};var parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i};var parseMonthPatterns={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]};var matchDayPatterns={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i};var parseDayPatterns={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]};var matchDayPeriodPatterns={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i};var parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}};var match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function valueCallback(value){return parseInt(value,10);}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function valueCallback(index2){return index2+1;}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};var es={code:"es",formatDistance:formatDistance,formatLong:formatLong,formatRelative:formatRelative,localize:localize,match:match$1,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lg$5="dateRangePicker-module_lg_Z5cAW";var md$3="dateRangePicker-module_md_U7O4u";var sm$5="dateRangePicker-module_sm_eQU4f";var disabled$4="dateRangePicker-module_disabled_O2wo6";var focused="dateRangePicker-module_focused_ZciL9";var popoverEnter="dateRangePicker-module_popoverEnter_LA-QD";var popoverExit="dateRangePicker-module_popoverExit_7P00p";var nav="dateRangePicker-module_nav_wpLSQ";var months="dateRangePicker-module_months_KJVIG";var month="dateRangePicker-module_month_5xEDo";var weekdays="dateRangePicker-module_weekdays_Ifsr6";var weekday="dateRangePicker-module_weekday_2PP3h";var week="dateRangePicker-module_week_t5X3S";var day="dateRangePicker-module_day_wqJov";var selected="dateRangePicker-module_selected_RUsR-";var styles$i={"date-range-picker":"dateRangePicker-module_date-range-picker_PFF9Q",lg:lg$5,"input-wrapper":"dateRangePicker-module_input-wrapper_hyxTt",md:md$3,sm:sm$5,disabled:disabled$4,focused:focused,"popover-content":"dateRangePicker-module_popover-content_RKQTm",popoverEnter:popoverEnter,popoverExit:popoverExit,nav:nav,months:months,month:month,"month-caption":"dateRangePicker-module_month-caption_SaiMe",weekdays:weekdays,weekday:weekday,week:week,day:day,selected:selected,"range-middle":"dateRangePicker-module_range-middle_xm-3W","range-start":"dateRangePicker-module_range-start_52uOV","range-end":"dateRangePicker-module_range-end_VR3Y-","rdp-slide_in_left":"dateRangePicker-module_rdp-slide_in_left_yJv6o","rdp-slide_in_right":"dateRangePicker-module_rdp-slide_in_right_DtL-m","rdp-slide_out_left":"dateRangePicker-module_rdp-slide_out_left_pmbO5","rdp-slide_out_right":"dateRangePicker-module_rdp-slide_out_right_MDJeD","rdp-fade_in":"dateRangePicker-module_rdp-fade_in_TxHKu","rdp-fade_out":"dateRangePicker-module_rdp-fade_out_-8FsW"};function head(array){return array&&array.length?array[0]:void 0;}var head_1=head;var head$1=/* @__PURE__ */getDefaultExportFromCjs(head_1);var formatDate=function formatDate2(date,format2){var _pad=function _pad2(n){return _.padStart(String(n),2,"0");};var map={YYYY:String(date.getFullYear()),MM:_pad(date.getMonth()+1),DD:_pad(date.getDate()),HH:_pad(date.getHours()),mm:_pad(date.getMinutes()),ss:_pad(date.getSeconds())};return _.reduce(map,function(acc,value,token2){return _.replace(acc,token2,value);},format2);};var formatRangeLimits=function formatRangeLimits2(range){if(!range)return void 0;var from2=new Date(range.from);from2.setHours(0,0,0);var to=new Date(range.to);to.setHours(23,59,59);return{from:from2,to:to};};dayjs.extend(customParseFormat);var fromInputValue=function fromInputValue2(inputValue){if(!inputValue)return void 0;if(_typeof$1(inputValue)==="object"&&"from"in inputValue&&"to"in inputValue){var rangeValue=inputValue;return{from:convertToDate2(rangeValue.from),to:convertToDate2(rangeValue.to)};}if(typeof inputValue==="string"&&inputValue.includes(" - ")){var _inputValue$split=inputValue.split(" - "),_inputValue$split2=_slicedToArray$1(_inputValue$split,2),fromStr=_inputValue$split2[0],toStr=_inputValue$split2[1];return{from:convertToDate2(fromStr.trim()),to:convertToDate2(toStr.trim())};}return void 0;};var getDisplayRange=function getDisplayRange2(range){var format2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"DD/MM/YYYY";if(!(range!==null&&range!==void 0&&range.from))return"";var fromFormatted=formatDate(range.from,format2);var toFormatted=range.to?formatDate(range.to,format2):"";if(range.from&&range.to){return"".concat(fromFormatted," - ").concat(toFormatted);}return fromFormatted;};var convertToDate2=function convertToDate3(val){if(!val)return void 0;if(val instanceof Date){return val;}if(typeof val==="string"){var parsed=dayjs(val);return parsed.isValid()?parsed.toDate():void 0;}if(typeof val==="number"){return dayjs(val).toDate();}return void 0;};var CustomWeekday=function CustomWeekday2(props){return/* @__PURE__ */jsx$1("th",_objectSpread2$1(_objectSpread2$1({},props),{},{children:head$1(props.children)}));};var getDisabledDays=function getDisabledDays2(disabled2,minDate,maxDate){if(disabled2)return true;var min2=convertToDate2(minDate);var max2=convertToDate2(maxDate);if(min2&&max2)return[{before:min2},{after:max2}];if(min2)return{before:min2};if(max2)return{after:max2};return void 0;};var _excluded$e=["meta","name","value","disabled","required","placeholder","size","noErrors","label","format","isValid","onChange","input","minDate","maxDate"],_excluded2$4=["label","rightAdornment","value"];var DateRangePickerInput=function DateRangePickerInput2(props){var _input$value;var meta=props.meta,name=props.name,_props$value=props.value,value=_props$value===void 0?null:_props$value,_props$disabled=props.disabled,disabled2=_props$disabled===void 0?false:_props$disabled;props.required;var placeholder=props.placeholder,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors;props.label;var _props$format=props.format,format2=_props$format===void 0?"DD/MM/YYYY":_props$format,isValid2=props.isValid,onChange2=props.onChange,input=props.input,minDate=props.minDate,maxDate=props.maxDate,otherProps=_objectWithoutProperties$1(props,_excluded$e);var currentValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var validationProps={meta:meta,value:currentValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2?function(range){var syntheticEvent={target:{value:formatRangeLimits(range),name:name}};onChange2(syntheticEvent);}:void 0}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleSelect=function handleSelect2(range){fieldHandleChange(range);if(range!==null&&range!==void 0&&range.from&&range!==null&&range!==void 0&&range.to&&(range===null||range===void 0?void 0:range.from)!==(range===null||range===void 0?void 0:range.to)){setIsOpen(false);}};var handleClear=function handleClear2(){fieldHandleChange(void 0);};var selectedRange=fromInputValue(currentValue);var displayValue=getDisplayRange(selectedRange,format2);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),isOpen=_useState2[0],setIsOpen=_useState2[1];var getInitialMonth2=function getInitialMonth3(){return(selectedRange===null||selectedRange===void 0?void 0:selectedRange.from)||(selectedRange===null||selectedRange===void 0?void 0:selectedRange.to)||/* @__PURE__ */new Date();};return/* @__PURE__ */jsxs("div",{className:clsx(styles$i["date-range-picker"],styles$i[size2],validated?errorStyles[validated]:"",disabled2?styles$i["disabled"]:"",isOpen?styles$i["focused"]:""),children:[/* @__PURE__ */jsxs(Root2,{open:isOpen&&!disabled2,onOpenChange:setIsOpen,children:[/* @__PURE__ */jsx$1(Trigger,{asChild:true,children:/* @__PURE__ */jsxs("div",{className:styles$i["input-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1({type:"text",name:name,value:displayValue,placeholder:placeholder||format2,readOnly:true,onBlur:handleBlur},otherProps)),/* @__PURE__ */jsx$1(ActionComponent,{onOpen:function onOpen(){return setIsOpen(!isOpen);},showClearIcon:!!displayValue,onClear:handleClear})]})}),/* @__PURE__ */jsx$1(Portal2,{children:/* @__PURE__ */jsx$1(Content2,{className:styles$i["popover-content"],sideOffset:4,align:"start",side:"bottom",avoidCollisions:true,collisionPadding:8,children:/* @__PURE__ */jsx$1(DayPicker,{mode:"range",locale:es,selected:selectedRange,onSelect:handleSelect,numberOfMonths:2,defaultMonth:getInitialMonth2(),disabled:getDisabledDays(disabled2,minDate,maxDate),className:styles$i["day-picker"],animate:true,classNames:{months:styles$i["months"],month:styles$i["month"],month_caption:styles$i["month-caption"],nav:styles$i["nav"],weekdays:styles$i["weekdays"],weekday:styles$i["weekday"],week:styles$i["week"],day:styles$i["day"],selected:styles$i["selected"],range_start:styles$i["range-start"],range_middle:styles$i["range-middle"],range_end:styles$i["range-end"],disabled:styles$i["disabled"]},components:{Weekday:CustomWeekday}})})})]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var DateRangePicker=function DateRangePicker2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,value=_ref3.value,props=_objectWithoutProperties$1(_ref3,_excluded2$4);return/* @__PURE__ */jsx$1(FormField,_objectSpread2$1({type:"dateRange",label:label2,rightAdornment:rightAdornment,value:value},props));};var _excluded$d=["label","rightAdornment","children"];var inputByType=function inputByType2(type){var inputs={password:PasswordInput,text:TextInput,number:TextInput,date:DatePickerInput,dateRange:DateRangePickerInput};return!!type?inputs[type]:TextInput;};var FormField=function FormField2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,children=_ref3.children,props=_objectWithoutProperties$1(_ref3,_excluded$d);var InputComponent=inputByType(props.type);return/* @__PURE__ */jsxs("div",{className:styles$k["form-field"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:props.name,children:label2}),/* @__PURE__ */jsxs("div",{className:"".concat(styles$k["input-container"]),children:[/* @__PURE__ */jsx$1(InputComponent,_objectSpread2$1(_objectSpread2$1({},props),{},{children:children})),!!rightAdornment&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-modifier"]),children:rightAdornment})]})]});};var title$5="checkboxInput-module_title_cvp-g";var disabled$3="checkboxInput-module_disabled_3EFy5";var lg$4="checkboxInput-module_lg_VoVop";var md$2="checkboxInput-module_md_Nh-Gg";var sm$4="checkboxInput-module_sm_965vX";var styles$h={"checkbox-input-container":"checkboxInput-module_checkbox-input-container_prYRe",title:title$5,"checkbox-input-items":"checkboxInput-module_checkbox-input-items_AMkaS",disabled:disabled$3,lg:lg$4,md:md$2,sm:sm$4};var _excluded$c=["title","name","type","items","onChange","size","input"],_excluded2$3=["id","name","label","disabled","checked","value"];var CheckboxInputGroup=function CheckboxInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$c);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$h["checkbox-input-container"],children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$h["title"],children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$h["checkbox-input-items"]," ").concat(styles$h[size2]),children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$3);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$h["disabled"]:""),children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:type,name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur})),/* @__PURE__ */jsxs("span",{children:[" ",label2," "]})]},inputId);})})]});};var _excluded$b=["name","checked","onChange","label","title","disabled","size","input","type"];var CheckboxInput=function CheckboxInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,props=_objectWithoutProperties$1(_ref3,_excluded$b);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(CheckboxInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,type:type,size:size2,input:input}));};var _excluded$a=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function useAsync(_ref3){var _ref$defaultOptions=_ref3.defaultOptions,propsDefaultOptions=_ref$defaultOptions===void 0?false:_ref$defaultOptions,_ref$cacheOptions=_ref3.cacheOptions,cacheOptions=_ref$cacheOptions===void 0?false:_ref$cacheOptions,propsLoadOptions=_ref3.loadOptions;_ref3.options;var _ref$isLoading=_ref3.isLoading,propsIsLoading=_ref$isLoading===void 0?false:_ref$isLoading,propsOnInputChange=_ref3.onInputChange,_ref$filterOption=_ref3.filterOption,filterOption=_ref$filterOption===void 0?null:_ref$filterOption,restSelectProps=_objectWithoutProperties(_ref3,_excluded$a);var propsInputValue=restSelectProps.inputValue;var lastRequest=useRef(void 0);var mounted=useRef(false);var _useState=useState(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0),_useState2=_slicedToArray(_useState,2),defaultOptions2=_useState2[0],setDefaultOptions=_useState2[1];var _useState3=useState(typeof propsInputValue!=="undefined"?propsInputValue:""),_useState4=_slicedToArray(_useState3,2),stateInputValue=_useState4[0],setStateInputValue=_useState4[1];var _useState5=useState(propsDefaultOptions===true),_useState6=_slicedToArray(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=useState(void 0),_useState8=_slicedToArray(_useState7,2),loadedInputValue=_useState8[0],setLoadedInputValue=_useState8[1];var _useState9=useState([]),_useState10=_slicedToArray(_useState9,2),loadedOptions=_useState10[0],setLoadedOptions=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),passEmptyOptions=_useState12[0],setPassEmptyOptions=_useState12[1];var _useState13=useState({}),_useState14=_slicedToArray(_useState13,2),optionsCache=_useState14[0],setOptionsCache=_useState14[1];var _useState15=useState(void 0),_useState16=_slicedToArray(_useState15,2),prevDefaultOptions=_useState16[0],setPrevDefaultOptions=_useState16[1];var _useState17=useState(void 0),_useState18=_slicedToArray(_useState17,2),prevCacheOptions=_useState18[0],setPrevCacheOptions=_useState18[1];if(cacheOptions!==prevCacheOptions){setOptionsCache({});setPrevCacheOptions(cacheOptions);}if(propsDefaultOptions!==prevDefaultOptions){setDefaultOptions(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0);setPrevDefaultOptions(propsDefaultOptions);}useEffect(function(){mounted.current=true;return function(){mounted.current=false;};},[]);var loadOptions=useCallback(function(inputValue,callback){if(!propsLoadOptions)return callback();var loader2=propsLoadOptions(inputValue,callback);if(loader2&&typeof loader2.then==="function"){loader2.then(callback,function(){return callback();});}},[propsLoadOptions]);useEffect(function(){if(propsDefaultOptions===true){loadOptions(stateInputValue,function(options2){if(!mounted.current)return;setDefaultOptions(options2||[]);setIsLoading(!!lastRequest.current);});}},[]);var onInputChange2=useCallback(function(newValue,actionMeta){var inputValue=handleInputChange(newValue,actionMeta,propsOnInputChange);if(!inputValue){lastRequest.current=void 0;setStateInputValue("");setLoadedInputValue("");setLoadedOptions([]);setIsLoading(false);setPassEmptyOptions(false);return;}if(cacheOptions&&optionsCache[inputValue]){setStateInputValue(inputValue);setLoadedInputValue(inputValue);setLoadedOptions(optionsCache[inputValue]);setIsLoading(false);setPassEmptyOptions(false);}else{var request=lastRequest.current={};setStateInputValue(inputValue);setIsLoading(true);setPassEmptyOptions(!loadedInputValue);loadOptions(inputValue,function(options2){if(!mounted)return;if(request!==lastRequest.current)return;lastRequest.current=void 0;setIsLoading(false);setLoadedInputValue(inputValue);setLoadedOptions(options2||[]);setPassEmptyOptions(false);setOptionsCache(options2?_objectSpread2(_objectSpread2({},optionsCache),{},_defineProperty({},inputValue,options2)):optionsCache);});}},[cacheOptions,loadOptions,loadedInputValue,optionsCache,propsOnInputChange]);var options=passEmptyOptions?[]:stateInputValue&&loadedInputValue?loadedOptions:defaultOptions2||[];return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options,isLoading:isLoading||propsIsLoading,onInputChange:onInputChange2,filterOption:filterOption});}var AsyncSelect=/* @__PURE__ */forwardRef(function(props,ref){var stateManagedProps=useAsync(props);var selectProps=useStateManager(stateManagedProps);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},selectProps));});var AsyncSelect$1=AsyncSelect;var loader="spinner-module_loader_UIupC";var styles$g={loader:loader};var Spinner=function Spinner2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;return/* @__PURE__ */jsx$1(CircularProgress,{size:_size(size2),className:styles$g.loader});};var _size=function _size2(size2){return{sm:18,lg:60}[size2];};var _excluded$9=["name","label","placeholder","noOptionsMessage","options","size","isSearchable","isClearable","clearOnSelect","required","disabled","rightModifier","isOptionDisabled","onChange","onInputChange","input","isLoading","formatOption","loadOptions","cacheOptions","defaultOptions"];var Searcher=function Searcher2(props){var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,_props$clearOnSelect=props.clearOnSelect,clearOnSelect=_props$clearOnSelect===void 0?false:_props$clearOnSelect;props.required;var disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,onChange2=props.onChange,onInputChange2=props.onInputChange,input=props.input,_props$isLoading=props.isLoading,isLoading=_props$isLoading===void 0?false:_props$isLoading,formatOption=props.formatOption,loadOptions=props.loadOptions,_props$cacheOptions=props.cacheOptions,cacheOptions=_props$cacheOptions===void 0?true:_props$cacheOptions,_props$defaultOptions=props.defaultOptions,defaultOptions2=_props$defaultOptions===void 0?true:_props$defaultOptions,otherProps=_objectWithoutProperties$1(props,_excluded$9);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isMenuOpen=_useState4[0],setIsMenuOpen=_useState4[1];var _useState5=useState(0),_useState6=_slicedToArray$1(_useState5,2),menuKey=_useState6[0],setMenuKey=_useState6[1];useEffect(function(){if(isMenuOpen&&options&&!_.isEmpty(options)){setMenuKey(function(prev2){return prev2+1;});}},[options,isMenuOpen]);var handleInputChange2=useCallback(function(value){var fakeEvent={target:{name:name,value:value}};onInputChange2===null||onInputChange2===void 0||onInputChange2(fakeEvent);setIsMenuOpen(true);},[name,onInputChange2]);var handleSelect=useCallback(function(selected2){var fakeEvent={target:{name:name,value:selected2===null||selected2===void 0?void 0:selected2.value}};setOptionSelected(selected2);if(input){input.onChange(selected2===null||selected2===void 0?void 0:selected2.value);}else{onChange2===null||onChange2===void 0||onChange2(fakeEvent);}if(clearOnSelect&&selected2){setOptionSelected(null);}setIsMenuOpen(false);},[name,input,onChange2,clearOnSelect]);var handleBlur=useCallback(function(){if(input){input.onBlur();}setIsMenuOpen(false);},[input]);var handleClear=useCallback(function(){setOptionSelected(null);if(input){input.onChange(null);}},[input]);var OptionWithFormat=useCallback(function(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));},[formatOption]);var SingleValueWithFormat=useCallback(function(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1({},singleValueProps));},[]);var _renderSelectComponent=useCallback(function(){var commonProps=_objectSpread2$1(_objectSpread2$1({},otherProps),{},{key:menuKey,name:name,placeholder:placeholder,classNamePrefix:"producteca-select-field",isDisabled:disabled2,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable,isLoading:isLoading,loadingMessage:function loadingMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},noOptionsMessage:function noOptionsMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},onInputChange:handleInputChange2,onChange:handleSelect,onBlur:handleBlur,value:optionSelected,components:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat},menuPortalTarget:document.body,menuIsOpen:isMenuOpen,onMenuOpen:function onMenuOpen(){return setIsMenuOpen(true);},onMenuClose:function onMenuClose(){return setIsMenuOpen(false);}});if(loadOptions){return/* @__PURE__ */jsx$1(AsyncSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{loadOptions:loadOptions,cacheOptions:cacheOptions,defaultOptions:defaultOptions2}));}return/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{options:options}));},[otherProps,menuKey,name,placeholder,disabled2,isClearable,isOptionDisabled3,isSearchable,isLoading,_noOptionsMessage,handleInputChange2,handleSelect,handleBlur,optionSelected,OptionWithFormat,SingleValueWithFormat,isMenuOpen,loadOptions,cacheOptions,defaultOptions2,options]);return/* @__PURE__ */jsxs("div",{className:styles$l["producteca-select-field-container"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],styles$l[isSearchable?"producteca-select-field--is-searchable":""],styles$l[isClearable?"producteca-select-field--is-clearable":""],styles$l[rightModifier?"producteca-select-field--with-modifier":""]),children:[/* @__PURE__ */jsxs("div",{className:styles$l["searcher-body"],children:[isSearchable&&/* @__PURE__ */jsx$1(SearchComponent,{}),_renderSelectComponent(),/* @__PURE__ */jsx$1(ClearComponent,{isClearable:isClearable,handleChange:handleClear})]}),!!rightModifier&&rightModifier]})]});};var title$4="switchInput-module_title_lBK2p";var disabled$2="switchInput-module_disabled_yz9dR";var lg$3="switchInput-module_lg_WMIDO";var md$1="switchInput-module_md_683sQ";var sm$3="switchInput-module_sm_sh92j";var styles$f={"switch-input-container":"switchInput-module_switch-input-container_t9Kpp",title:title$4,"switch-input-items":"switchInput-module_switch-input-items_P3RMy","switch-wrapper":"switchInput-module_switch-wrapper_cZvDV","switch-input":"switchInput-module_switch-input_e9PWi","switch-slider":"switchInput-module_switch-slider_ICfGn","switch-label":"switchInput-module_switch-label_Nj-Hh",disabled:disabled$2,lg:lg$3,md:md$1,sm:sm$3};var _excluded$8=["title","name","items","onChange","size","input"],_excluded2$2=["id","name","label","disabled","checked","value"],_excluded3=["name","checked","onChange","label","title","disabled","size","input"];var SwitchInputGroup=function SwitchInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$8);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$f["switch-input-container"],"data-testid":"switch-input-container",children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$f["title"],"data-testid":"switch-title",children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$f["switch-input-items"]," ").concat(styles$f[size2]),"data-testid":"switch-input-items",children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$2);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$f["disabled"]:""),"data-testid":"switch-label-".concat(inputId),children:[/* @__PURE__ */jsxs("div",{className:styles$f["switch-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:"checkbox",name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur,className:styles$f["switch-input"],"data-testid":"switch-input-".concat(inputId)})),/* @__PURE__ */jsx$1("span",{className:styles$f["switch-slider"]})]}),/* @__PURE__ */jsxs("span",{className:styles$f["switch-label"],children:[" ",label2," "]})]},inputId);})})]});};var SwitchInput=function SwitchInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref3$disabled=_ref3.disabled,disabled2=_ref3$disabled===void 0?false:_ref3$disabled,_ref3$size=_ref3.size,size2=_ref3$size===void 0?"sm":_ref3$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded3);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(SwitchInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,size:size2,input:input}));};var styles$e={"empty-state-container":"emptyState-module_empty-state-container_azCks","link-container":"emptyState-module_link-container_kXroF"};var DefaultIcon$1=/* @__PURE__ */jsx$1(SearchPublication,{});var EmptyState=function EmptyState2(_ref3){var onActionClick=_ref3.onActionClick,_ref$icon=_ref3.icon,icon2=_ref$icon===void 0?DefaultIcon$1:_ref$icon,_ref$actionText=_ref3.actionText,actionText=_ref$actionText===void 0?locale("reloadPage"):_ref$actionText,_ref$text=_ref3.text,text2=_ref$text===void 0?locale("noResultsFound"):_ref$text;return/* @__PURE__ */jsxs("div",{className:styles$e["empty-state-container"],children:[icon2,/* @__PURE__ */jsxs("div",{className:styles$e["link-container"],children:[/* @__PURE__ */jsx$1("span",{children:text2}),onActionClick&&/* @__PURE__ */jsx$1("a",{onClick:onActionClick,children:actionText})]})]});};var fullPage="actionBar-module_fullPage_A4wiw";var modal$1="actionBar-module_modal_jZfAJ";var page="actionBar-module_page_Oq8Jb";var styles$d={"action-bar":"actionBar-module_action-bar_Y-sjl",fullPage:fullPage,modal:modal$1,page:page};var _excluded$7=["onPrevious","label"],_excluded2$1=["onSave","label"];var ActionBar=function ActionBar2(_ref3){var _ref$variant=_ref3.variant,variant=_ref$variant===void 0?"page":_ref$variant,saveProps=_ref3.saveProps,cancelProps=_ref3.cancelProps,previousProps=_ref3.previousProps;var _ref22=cancelProps||{},onCancel=_ref22.onCancel,_ref2$label=_ref22.label,cancelText=_ref2$label===void 0?locale("cancel"):_ref2$label;var _ref32=previousProps||{},onPrevious=_ref32.onPrevious,_ref3$label=_ref32.label,previousText=_ref3$label===void 0?locale("previous"):_ref3$label,previousOtherProps=_objectWithoutProperties$1(_ref32,_excluded$7);var _ref4=saveProps||{},onSave=_ref4.onSave,_ref4$label=_ref4.label,saveText=_ref4$label===void 0?locale("save"):_ref4$label,saveOtherProps=_objectWithoutProperties$1(_ref4,_excluded2$1);return/* @__PURE__ */jsxs("div",{className:clsx(styles$d["action-bar"],styles$d[variant]),children:[!!onCancel&&/* @__PURE__ */jsx$1(Button$2,{size:"md",variant:"link",label:cancelText,onClick:onCancel}),!!onPrevious&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({outline:true,label:previousText,onClick:onPrevious},previousOtherProps)),!!onSave&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({label:saveText,onClick:onSave},saveOtherProps))]});};var _excluded$6=["onClick","copyText","copiedText","textToCopy","resetTime"];var CopyButton=function CopyButton2(_ref3){var _onClick=_ref3.onClick,_ref$copyText=_ref3.copyText,copyText=_ref$copyText===void 0?locale("copyButton.copy"):_ref$copyText,_ref$copiedText=_ref3.copiedText,copiedText=_ref$copiedText===void 0?locale("copyButton.copied"):_ref$copiedText,textToCopy=_ref3.textToCopy,_ref$resetTime=_ref3.resetTime,resetTime=_ref$resetTime===void 0?2e3:_ref$resetTime,props=_objectWithoutProperties$1(_ref3,_excluded$6);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),copied=_useState2[0],setCopied=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isAnimating=_useState4[0],setIsAnimating=_useState4[1];useEffect(function(){if(copied){setIsAnimating(true);var timer=setTimeout(function(){setIsAnimating(false);},resetTime/2);return function(){return clearTimeout(timer);};}},[copied]);var defaultCopyFunction=function defaultCopyFunction2(){if(textToCopy){setCopied(true);navigator.clipboard.writeText(textToCopy).then(function(){setTimeout(function(){return setCopied(false);},resetTime);}).catch(function(){setCopied(false);});}};return/* @__PURE__ */jsx$1("div",{onClick:function onClick(){return _onClick?_onClick():defaultCopyFunction();},children:/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({className:"copy-btn ".concat(copied?"copied":""," ").concat(isAnimating?"animating":""),outline:true,label:copied?copiedText:copyText,leftAdornment:/* @__PURE__ */jsx$1(Icons,{copied:copied})},props))});};var Icons=function Icons2(_ref22){var copied=_ref22.copied;return/* @__PURE__ */jsxs("div",{className:"copy-btn-icons",children:[/* @__PURE__ */jsx$1("div",{className:"copy-icon ".concat(copied?"hidden":""),children:/* @__PURE__ */jsx$1(ContentCopy,{})}),/* @__PURE__ */jsx$1("div",{className:"check-icon ".concat(!copied?"hidden":""),children:/* @__PURE__ */jsx$1(Check,{})})]});};var dense="headerSection-module_dense_f1FWn";var content$1="headerSection-module_content_5y2PB";var title$3="headerSection-module_title_cabYm";var styles$c={"header-section-container":"headerSection-module_header-section-container_M-ZSv",dense:dense,"header-section":"headerSection-module_header-section_UIh2F",content:content$1,title:title$3};var HeaderSection=function HeaderSection2(_ref3){var breadcrumb2=_ref3.breadcrumb,image2=_ref3.image,_ref$dense=_ref3.dense,dense2=_ref$dense===void 0?false:_ref$dense,title2=_ref3.title,subtitle=_ref3.subtitle,link2=_ref3.link,menuAction=_ref3.menuAction;return/* @__PURE__ */jsxs("div",{className:clsx(styles$c["header-section-container"],_defineProperty$1({},styles$c["dense"],dense2)),children:[!!breadcrumb2&&breadcrumb2,/* @__PURE__ */jsxs("div",{className:styles$c["header-section"],children:[!!image2&&image2,/* @__PURE__ */jsxs("div",{className:styles$c.content,children:[title2&&/* @__PURE__ */jsx$1("h3",{className:styles$c.title,children:title2}),!!subtitle&&subtitle,!!link2&&link2]}),!!menuAction&&menuAction]})]});};var action="linkWithIcon-module_action_3K4he";var styles$b={action:action};var SIZE_TO_ICON={sm:"8",md:"12",lg:"12"};var transformSize=function transformSize2(size2){return SIZE_TO_ICON[size2!==null&&size2!==void 0?size2:"md"];};var LinkWithIcon=function LinkWithIcon2(_ref3){var text2=_ref3.text,icon2=_ref3.icon,onClick=_ref3.onClick,className=_ref3.className,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$otherProps=_ref3.otherProps,otherProps=_ref$otherProps===void 0?{}:_ref$otherProps;return/* @__PURE__ */jsxs("div",{className:clsx(styles$b.action,className),onClick:onClick,children:[icon2&&/* @__PURE__ */jsx$1(CustomIcon,_objectSpread2$1(_objectSpread2$1({color:getColor("primary","500")},otherProps),{},{size:transformSize(size2),children:icon2})),/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({variant:"link",label:text2,size:size2},otherProps))]});};var divider="iconWithIdentifier-module_divider_fCBSV";var identifier$1="iconWithIdentifier-module_identifier_kWrOU";var styles$a={"icon-with-identifier":"iconWithIdentifier-module_icon-with-identifier_3-SZE",divider:divider,identifier:identifier$1};var IconWithIdentifier=function IconWithIdentifier2(_ref3){var text2=_ref3.text,_ref$showDivider=_ref3.showDivider,showDivider=_ref$showDivider===void 0?true:_ref$showDivider,color2=_ref3.color,icon2=_ref3.icon;return/* @__PURE__ */jsxs("div",{className:clsx(styles$a["icon-with-identifier"]),children:[!!icon2&&icon2,showDivider&&/* @__PURE__ */jsx$1("div",{className:styles$a.divider}),/* @__PURE__ */jsx$1("span",{className:styles$a.identifier,style:{color:color2},children:text2})]});};var progressbar="progressbar-module_progressbar_8ygYR";var lg$2="progressbar-module_lg_5JGr-";var sm$2="progressbar-module_sm_LPtUo";var styles$9={progressbar:progressbar,lg:lg$2,sm:sm$2};var Progressbar=function Progressbar2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,_ref$progress=_ref3.progress,initialProgress=_ref$progress===void 0?0:_ref$progress,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"determinate":_ref$variant;var _useState=useState(initialProgress),_useState2=_slicedToArray$1(_useState,2),progress=_useState2[0],setProgress=_useState2[1];useEffect(function(){if(variant==="buffer"){var timer=setInterval(function(){setProgress(function(oldProgress){var newProgress=Math.min(100,oldProgress+Math.sqrt(100-oldProgress)*0.5);return Math.round(newProgress);});},100);return function(){clearInterval(timer);};}else{setProgress(initialProgress);}},[variant,initialProgress]);return/* @__PURE__ */jsx$1(LinearProgress,{variant:variant=="buffer"?"determinate":variant,value:progress,className:clsx(styles$9["progressbar"],styles$9[size2]),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":progress});};var alert="alert-module_alert_j7ZRS";var icon="alert-module_icon_vbZHd";var message="alert-module_message_klR2U";var link="alert-module_link_IrBj3";var success="alert-module_success_AVBKS";var error$1="alert-module_error_cxg96";var warning="alert-module_warning_zkMaJ";var info="alert-module_info_PBo1l";var styles$8={alert:alert,"full-width":"alert-module_full-width_eKIHw",icon:icon,message:message,link:link,success:success,error:error$1,warning:warning,info:info};var _excluded$5=["message","variant","className","icon","fullWidth","link"];var Alert=function Alert2(_ref3){var message2=_ref3.message,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"success":_ref$variant,className=_ref3.className,icon2=_ref3.icon,_ref$fullWidth=_ref3.fullWidth,fullWidth=_ref$fullWidth===void 0?false:_ref$fullWidth,link2=_ref3.link,props=_objectWithoutProperties$1(_ref3,_excluded$5);var defaultIcons={success:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("success","500"),children:/* @__PURE__ */jsx$1(CheckCircle,{})}),error:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("error","700"),children:/* @__PURE__ */jsx$1(Cancel,{})}),warning:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})}),info:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(Info,{})})};return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$8["alert"],styles$8[variant],_defineProperty$1({},styles$8["full-width"],fullWidth),className)},props),{},{children:[/* @__PURE__ */jsx$1("div",{className:styles$8["icon"],children:icon2||defaultIcons[variant]}),/* @__PURE__ */jsxs("div",{className:styles$8["message"],children:[_.isString(message2)?/* @__PURE__ */jsx$1("span",{dangerouslySetInnerHTML:{__html:message2}}):/* @__PURE__ */jsxs("span",{children:[" ",message2]}),link2&&/* @__PURE__ */jsxs(Fragment$1,{children:[" ",/* @__PURE__ */jsx$1("a",{href:link2===null||link2===void 0?void 0:link2.href,className:styles$8["link"],onClick:link2===null||link2===void 0?void 0:link2.onClick,children:link2.text})]})]})]}));};var OverflowChecker=function OverflowChecker2(_ref3){var children=_ref3.children;var ref=useRef(null);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];useEffect(function(){var checkOverflow=function checkOverflow2(){if(ref.current){setShowTooltip(ref.current.scrollWidth>ref.current.offsetWidth);}};checkOverflow();window.addEventListener("resize",checkOverflow);return function(){return window.removeEventListener("resize",checkOverflow);};},[children]);return/* @__PURE__ */jsx$1(Fragment$1,{children:children(ref,showTooltip)});};var _excluded$4=["children","content","placement","arrow","maxWidth","trigger","shouldShowTooltip"],_excluded2=["content","children"];var WithTooltip=function WithTooltip2(_ref3){var children=_ref3.children,content2=_ref3.content,_ref$placement=_ref3.placement,placement=_ref$placement===void 0?"top":_ref$placement,_ref$arrow=_ref3.arrow,arrow2=_ref$arrow===void 0?false:_ref$arrow,_ref$maxWidth=_ref3.maxWidth,maxWidth2=_ref$maxWidth===void 0?"600px":_ref$maxWidth,_ref$trigger=_ref3.trigger,trigger=_ref$trigger===void 0?"hover":_ref$trigger,_ref$shouldShowToolti=_ref3.shouldShowTooltip,shouldShowTooltip=_ref$shouldShowToolti===void 0?true:_ref$shouldShowToolti,otherProps=_objectWithoutProperties$1(_ref3,_excluded$4);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),open=_useState2[0],setOpen=_useState2[1];var enhancedChildren=/* @__PURE__ */React__default.cloneElement(children,_objectSpread2$1({style:_objectSpread2$1(_objectSpread2$1({},children.props.style||{}),{},{cursor:"pointer"})},trigger==="click"&&shouldShowTooltip&&{onClick:function onClick(e){if(children.props.onClick){children.props.onClick(e);}setOpen(!open);}}));var tooltipProps=trigger==="click"?{open:shouldShowTooltip?open:false,onClose:function onClose(){return setOpen(false);},disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var disabledListeners=!shouldShowTooltip?{disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};return/* @__PURE__ */jsx$1(Tooltip,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({title:shouldShowTooltip?content2:"",placement:placement,arrow:arrow2,slots:{transition:Zoom},slotProps:{popper:{sx:_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.tooltip),{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",background:"rgba(102, 102, 102, 1)",padding:"9px 9px 8px 12px",fontSize:"12px",fontWeight:"400",color:"white !important",borderRadius:"4px",maxWidth:maxWidth2}),"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.arrow),{color:"rgba(102, 102, 102, 1)"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="top"] .').concat(tooltipClasses.tooltip),{marginBottom:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="bottom"] .').concat(tooltipClasses.tooltip),{marginTop:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="left"] .').concat(tooltipClasses.tooltip),{marginRight:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="right"] .').concat(tooltipClasses.tooltip),{marginLeft:"8px"})}}},tooltipProps),disabledListeners),otherProps),{},{children:enhancedChildren}));};var WithOverflowTooltip=function WithOverflowTooltip2(_ref22){var content2=_ref22.content,_children=_ref22.children,tooltipProps=_objectWithoutProperties$1(_ref22,_excluded2);return/* @__PURE__ */jsx$1(OverflowChecker,{children:function children(ref,showTooltip){var childrenWithRef=/* @__PURE__ */React__default.cloneElement(_children,{ref:ref});return showTooltip&&content2?/* @__PURE__ */jsx$1(WithTooltip,_objectSpread2$1(_objectSpread2$1({content:content2},tooltipProps),{},{children:childrenWithRef})):childrenWithRef;}});};var image="image-module_image_y02P7";var error="image-module_error_QtQOy";var styles$7={"image-container":"image-module_image-container_ZhlhW","without-border":"image-module_without-border_Uc1yx",image:image,error:error};var Image=function Image2(_ref3){var src=_ref3.src,withoutBorder=_ref3.withoutBorder,sx=_ref3.sx,alt=_ref3.alt;var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),hasError3=_useState2[0],setHasError=_useState2[1];var handleImageError=function handleImageError2(){setHasError(true);};if(hasError3){return/* @__PURE__ */jsx$1("div",{className:clsx(styles$7["image-container"]),style:sx,children:/* @__PURE__ */jsx$1(InsertPhotoRoundedIcon,{className:styles$7.error})});}return/* @__PURE__ */jsx$1("div",{className:clsx(styles$7["image-container"],_defineProperty$1({},styles$7["without-border"],withoutBorder)),style:_objectSpread2$1({},sx),children:/* @__PURE__ */jsx$1("img",{src:src,alt:alt||src,className:styles$7.image,onError:handleImageError})});};var breadcrumb="breadcrumb-module_breadcrumb_r-ILp";var styles$6={breadcrumb:breadcrumb,"breadcrumb-item":"breadcrumb-module_breadcrumb-item_suTUF"};var _excluded$3=["items","className"];var BreadcrumbItemComponent=function BreadcrumbItemComponent2(_ref3){var item2=_ref3.item,index2=_ref3.index,items=_ref3.items;var isLast=index2===lodashExports.size(items)-1;var text2="".concat(item2.text," >");return item2.isActive||isLast?/* @__PURE__ */jsx$1(Button$2,{variant:"link",size:"sm",label:text2,onClick:item2.onClick}):/* @__PURE__ */jsxs("div",{className:styles$6["breadcrumb-item"],children:[" ",text2," "]});};var Breadcrumb=function Breadcrumb2(_ref22){var items=_ref22.items,className=_ref22.className,otherProps=_objectWithoutProperties$1(_ref22,_excluded$3);return/* @__PURE__ */jsx$1("nav",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$6["breadcrumb"],className),"aria-label":"Breadcrumb"},otherProps),{},{children:lodashExports.map(items,function(item2,index2){return/* @__PURE__ */jsx$1(BreadcrumbItemComponent,{item:item2,index:index2,items:items},index2);})}));};var menuPaperSx=function menuPaperSx2(size2,maxItemsVisible){return{"& .MuiPopover-paper":{boxShadow:"0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)",border:"1px solid #D7D7D7",maxHeight:"".concat(maxHeight(size2,maxItemsVisible),"px")}};};var getMenuActionSize=function getMenuActionSize2(size2){switch(size2){case"sm":return 32;case"md":return 37;case"lg":return 42;default:return 37;}};var maxHeight=function maxHeight2(size2,maxItemsVisible){return getMenuActionSize(size2)*(maxItemsVisible!==null&&maxItemsVisible!==void 0?maxItemsVisible:6);};var item="menuItem-module_item_IbBuJ";var lg$1="menuItem-module_lg_ZMwXU";var md="menuItem-module_md_apOGd";var sm$1="menuItem-module_sm_gHxtB";var styles$5={item:item,lg:lg$1,md:md,sm:sm$1};var menuItemSx={fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",color:getColor("grey","900"),"&.Mui-selected":{backgroundColor:getColor("grey","100")},"&.Mui-selected:hover":{backgroundColor:getColor("grey","100")},"&.Mui-disabled":{opacity:0.5},padding:"0 16px"};var _excluded$2=["label","icon","onClick","selected","disabled","onClose","size"];var MenuItemComponent=function MenuItemComponent2(_ref3){var label2=_ref3.label,icon2=_ref3.icon,onClick=_ref3.onClick,selected2=_ref3.selected,disabled2=_ref3.disabled,onClose=_ref3.onClose,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,otherProps=_objectWithoutProperties$1(_ref3,_excluded$2);var handleClick=function handleClick2(){onClose===null||onClose===void 0||onClose();onClick===null||onClick===void 0||onClick();};return/* @__PURE__ */jsx$1(MenuItem$1,_objectSpread2$1(_objectSpread2$1({sx:menuItemSx,selected:selected2,disabled:disabled2,onClick:handleClick},otherProps),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$5.item,styles$5[size2]),children:[!!icon2&&icon2,/* @__PURE__ */jsx$1("span",{children:label2})]})}));};var _excluded$1=["items","id","maxItemsVisible","icon","size","disableRipple"];var MenuAction=function MenuAction2(_ref3){var items=_ref3.items,_ref$id=_ref3.id,id=_ref$id===void 0?"menu-action-button":_ref$id,_ref$maxItemsVisible=_ref3.maxItemsVisible,maxItemsVisible=_ref$maxItemsVisible===void 0?6:_ref$maxItemsVisible,icon2=_ref3.icon,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$disableRipple=_ref3.disableRipple,disableRipple=_ref$disableRipple===void 0?false:_ref$disableRipple,otherProps=_objectWithoutProperties$1(_ref3,_excluded$1);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),anchorEl=_useState2[0],setAnchorEl=_useState2[1];var open=Boolean(anchorEl);var handleClick=function handleClick2(event){setAnchorEl(event.currentTarget);};var handleClose=function handleClose2(){setAnchorEl(null);};return/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsx$1(IconButton,{id:id,"aria-controls":open?"".concat(id,"-menu"):void 0,"aria-expanded":open?"true":void 0,"aria-haspopup":"true",onClick:handleClick,disableRipple:disableRipple,children:icon2!==null&&icon2!==void 0?icon2:/* @__PURE__ */jsx$1(CustomIcon,{color:getColor("grey","900"),children:/* @__PURE__ */jsx$1(MoreVertIcon,{})})}),/* @__PURE__ */jsx$1(Menu$2,_objectSpread2$1(_objectSpread2$1({id:"".concat(id,"-menu"),anchorEl:anchorEl,open:open,onClose:handleClose,disableScrollLock:true,slotProps:{list:{"aria-labelledby":id},transition:Grow},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:menuPaperSx(size2,maxItemsVisible)},otherProps),{},{children:lodashExports.map(items,function(item2,index2){var _item$size;return/* @__PURE__ */jsx$1(MenuItemComponent,_objectSpread2$1(_objectSpread2$1({},item2),{},{size:(_item$size=item2.size)!==null&&_item$size!==void 0?_item$size:size2,onClose:handleClose}),index2);})}))]});};var overlay="warningModal-module_overlay_X5HPw";var modal="warningModal-module_modal_Co-2N";var body="warningModal-module_body_MgD8L";var title$2="warningModal-module_title_kZiTR";var content="warningModal-module_content_3IB6x";var styles$4={overlay:overlay,modal:modal,body:body,"help-container":"warningModal-module_help-container_hsnyD","header-icon":"warningModal-module_header-icon_qOIRS",title:title$2,content:content};var _excluded=["icon","onSave","onCancel","description","onClickGuide","onChangeDontShowAgain","cancelLabel","confirmLabel","title","dontShowAgainLabel"];var DefaultIcon=/* @__PURE__ */jsx$1(CustomIcon,{size:"32",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})});var HelpContainer=/* @__PURE__ */React__default.memo(function(_ref3){var onClickGuide=_ref3.onClickGuide;if(!onClickGuide)return null;return/* @__PURE__ */jsx$1("div",{className:styles$4["help-container"],children:/* @__PURE__ */jsx$1(CustomIcon,{"aria-label":locale("guide"),color:getColor("primary","500"),onClick:function onClick(){return onClickGuide===null||onClickGuide===void 0?void 0:onClickGuide(new MouseEvent("click"));},children:/* @__PURE__ */jsx$1(AutoStoriesIcon,{})})});});var WarningModal=function WarningModal2(_ref22){var icon2=_ref22.icon,onSave=_ref22.onSave,onCancel=_ref22.onCancel,description2=_ref22.description,onClickGuide=_ref22.onClickGuide,onChangeDontShowAgain=_ref22.onChangeDontShowAgain,_ref2$cancelLabel=_ref22.cancelLabel,cancelLabel=_ref2$cancelLabel===void 0?locale("cancel"):_ref2$cancelLabel,_ref2$confirmLabel=_ref22.confirmLabel,confirmLabel=_ref2$confirmLabel===void 0?locale("continue"):_ref2$confirmLabel,_ref2$title=_ref22.title,title2=_ref2$title===void 0?locale("warningModal.warning"):_ref2$title,_ref2$dontShowAgainLa=_ref22.dontShowAgainLabel,dontShowAgainLabel=_ref2$dontShowAgainLa===void 0?locale("warningModal.dontShowAgain"):_ref2$dontShowAgainLa,props=_objectWithoutProperties$1(_ref22,_excluded);return/* @__PURE__ */jsx$1(Modal,{open:true,onClose:onCancel,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:styles$4["overlay"],children:/* @__PURE__ */jsxs("div",{className:styles$4["modal"],role:"dialog","aria-modal":"true",children:[/* @__PURE__ */jsxs("div",{className:styles$4["body"],children:[/* @__PURE__ */jsx$1(HelpContainer,{onClickGuide:onClickGuide}),/* @__PURE__ */jsxs("div",{className:styles$4["header-icon"],children:[!!icon2?icon2:DefaultIcon,/* @__PURE__ */jsx$1("div",{id:"modal-modal-title",className:styles$4["title"],children:title2})]}),/* @__PURE__ */jsxs("div",{className:styles$4["content"],children:[/* @__PURE__ */jsxs("span",{id:"modal-modal-description",children:[" ",description2," "]}),onChangeDontShowAgain&&/* @__PURE__ */jsx$1(CheckboxInput,_objectSpread2$1({name:"dont-show-again",label:dontShowAgainLabel,onChange:onChangeDontShowAgain},props))]})]}),/* @__PURE__ */jsx$1(ActionBar,{variant:"modal",cancelProps:{onCancel:onCancel,label:cancelLabel},saveProps:{onSave:onSave,label:confirmLabel,variant:"primary",size:"md"}})]})});};var tabs="tabs-module_tabs_UMeM9";var list="tabs-module_list_rsWgV";var tab="tabs-module_tab_qi523";var label="tabs-module_label_gXlYw";var active$2="tabs-module_active_PvUYu";var disabled$1="tabs-module_disabled_Lue6Q";var styles$3={tabs:tabs,list:list,tab:tab,label:label,active:active$2,disabled:disabled$1};var Tabs2=function Tabs3(_ref3){var sx=_ref3.sx,items=_ref3.items,value=_ref3.value,onChange2=_ref3.onChange,defaultValue=_ref3.defaultValue;var _React$useState=React__default.useState(defaultValue),_React$useState2=_slicedToArray$1(_React$useState,2),internalValue=_React$useState2[0],setInternalValue=_React$useState2[1];var activeId=!lodashExports.isUndefined(value)?value:internalValue;var firstEnabledId=useMemo(function(){var _find;return(_find=lodashExports.find(items,function(i){return!i.disabled;}))===null||_find===void 0?void 0:_find.id;},[items]);var combinedSx=useMemo(function(){return sxTabs(sx);},[sx]);React__default.useEffect(function(){if(activeId===void 0){setInternalValue(firstEnabledId);}},[activeId,firstEnabledId]);var handleSelect=function handleSelect2(_event,newValue){var _itemSelected$onClick;var selectedId=String(newValue);var itemSelected=lodashExports.find(items,function(item2){return item2.id===selectedId;});if(itemSelected!==null&&itemSelected!==void 0&&itemSelected.disabled)return;if(value===void 0)setInternalValue(selectedId);onChange2===null||onChange2===void 0||onChange2(selectedId);itemSelected===null||itemSelected===void 0||(_itemSelected$onClick=itemSelected.onClick)===null||_itemSelected$onClick===void 0||_itemSelected$onClick.call(itemSelected);};return/* @__PURE__ */jsx$1("div",{className:clsx(styles$3["tabs"]),children:/* @__PURE__ */jsx$1(Tabs$1,{value:activeId,onChange:handleSelect,className:styles$3["list"],"aria-label":"tabs",sx:combinedSx,children:lodashExports.map(items,function(_ref22){var id=_ref22.id,label2=_ref22.label,disabled2=_ref22.disabled;return/* @__PURE__ */jsx$1(Tab,{value:id,label:/* @__PURE__ */jsx$1("span",{className:styles$3["label"],children:label2}),disabled:disabled2,disableRipple:true,sx:sxTab,className:clsx(styles$3["tab"],_defineProperty$1(_defineProperty$1({},styles$3["active"],id===activeId),styles$3["disabled"],disabled2))},id);})})});};var sxTabs=function sxTabs2(sxListStyles){return{padding:0,minHeight:0,"& .MuiTabs-list":_objectSpread2$1({gap:"24px",padding:"0 32px"},sxListStyles||{}),"& .MuiTabs-indicator":{borderRadius:"48px",backgroundColor:getColor("primary","500")}};};var sxTab={padding:0,minHeight:0};var card="card-module_card_HG0v6";var header$1="card-module_header_Jtd2-";var title$1="card-module_title_9LIjW";var description="card-module_description_nxqlH";var disabled="card-module_disabled_Zdzj7";var active$1="card-module_active_dTNAe";var styles$2={card:card,header:header$1,title:title$1,description:description,disabled:disabled,active:active$1};var Card=function Card2(_ref3){var icon2=_ref3.icon,title2=_ref3.title,description2=_ref3.description,_ref$isActive=_ref3.isActive,isActive=_ref$isActive===void 0?false:_ref$isActive,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,onClick=_ref3.onClick,sx=_ref3.sx;return/* @__PURE__ */jsxs("div",{className:clsx(styles$2.card,_defineProperty$1(_defineProperty$1({},styles$2.disabled,disabled2),styles$2.active,isActive)),onClick:onClick,style:sx,children:[/* @__PURE__ */jsxs("div",{className:styles$2.header,children:[!!icon2&&icon2,!!title2&&/* @__PURE__ */jsx$1("div",{className:styles$2.title,children:title2})]}),!!description2&&/* @__PURE__ */jsx$1("span",{className:styles$2.description,dangerouslySetInnerHTML:{__html:description2}})]},title2);};/*! *****************************************************************************
|
|
7060
|
+
targetInLock&&(endTarget.contains(target)||endTarget===target));if(isDeltaPositive&&(Math.abs(availableScroll)<1||false)){shouldCancelScroll=true;}else if(!isDeltaPositive&&(Math.abs(availableScrollTop)<1||false)){shouldCancelScroll=true;}return shouldCancelScroll;};var getTouchXY=function getTouchXY(event){return"changedTouches"in event?[event.changedTouches[0].clientX,event.changedTouches[0].clientY]:[0,0];};var getDeltaXY=function getDeltaXY(event){return[event.deltaX,event.deltaY];};var extractRef=function extractRef(ref){return ref&&"current"in ref?ref.current:ref;};var deltaCompare=function deltaCompare(x,y){return x[0]===y[0]&&x[1]===y[1];};var generateStyle=function generateStyle(id){return"\n .block-interactivity-".concat(id," {pointer-events: none;}\n .allow-interactivity-").concat(id," {pointer-events: all;}\n");};var idCounter=0;var lockStack=[];function RemoveScrollSideCar(props){var shouldPreventQueue=React.useRef([]);var touchStartRef=React.useRef([0,0]);var activeAxis=React.useRef();var id=React.useState(idCounter++)[0];var Style2=React.useState(styleSingleton)[0];var lastProps=React.useRef(props);React.useEffect(function(){lastProps.current=props;},[props]);React.useEffect(function(){if(props.inert){document.body.classList.add("block-interactivity-".concat(id));var allow_1=__spreadArray([props.lockRef.current],(props.shards||[]).map(extractRef),true).filter(Boolean);allow_1.forEach(function(el){return el.classList.add("allow-interactivity-".concat(id));});return function(){document.body.classList.remove("block-interactivity-".concat(id));allow_1.forEach(function(el){return el.classList.remove("allow-interactivity-".concat(id));});};}return;},[props.inert,props.lockRef.current,props.shards]);var shouldCancelEvent=React.useCallback(function(event,parent){if("touches"in event&&event.touches.length===2||event.type==="wheel"&&event.ctrlKey){return!lastProps.current.allowPinchZoom;}var touch=getTouchXY(event);var touchStart=touchStartRef.current;var deltaX="deltaX"in event?event.deltaX:touchStart[0]-touch[0];var deltaY="deltaY"in event?event.deltaY:touchStart[1]-touch[1];var currentAxis;var target=event.target;var moveDirection=Math.abs(deltaX)>Math.abs(deltaY)?"h":"v";if("touches"in event&&moveDirection==="h"&&target.type==="range"){return false;}var canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);if(!canBeScrolledInMainDirection){return true;}if(canBeScrolledInMainDirection){currentAxis=moveDirection;}else{currentAxis=moveDirection==="v"?"h":"v";canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);}if(!canBeScrolledInMainDirection){return false;}if(!activeAxis.current&&"changedTouches"in event&&(deltaX||deltaY)){activeAxis.current=currentAxis;}if(!currentAxis){return true;}var cancelingAxis=activeAxis.current||currentAxis;return handleScroll(cancelingAxis,parent,event,cancelingAxis==="h"?deltaX:deltaY);},[]);var shouldPrevent=React.useCallback(function(_event){var event=_event;if(!lockStack.length||lockStack[lockStack.length-1]!==Style2){return;}var delta="deltaY"in event?getDeltaXY(event):getTouchXY(event);var sourceEvent=shouldPreventQueue.current.filter(function(e){return e.name===event.type&&(e.target===event.target||event.target===e.shadowParent)&&deltaCompare(e.delta,delta);})[0];if(sourceEvent&&sourceEvent.should){if(event.cancelable){event.preventDefault();}return;}if(!sourceEvent){var shardNodes=(lastProps.current.shards||[]).map(extractRef).filter(Boolean).filter(function(node2){return node2.contains(event.target);});var shouldStop=shardNodes.length>0?shouldCancelEvent(event,shardNodes[0]):!lastProps.current.noIsolation;if(shouldStop){if(event.cancelable){event.preventDefault();}}}},[]);var shouldCancel=React.useCallback(function(name,delta,target,should){var event={name:name,delta:delta,target:target,should:should,shadowParent:getOutermostShadowParent(target)};shouldPreventQueue.current.push(event);setTimeout(function(){shouldPreventQueue.current=shouldPreventQueue.current.filter(function(e){return e!==event;});},1);},[]);var scrollTouchStart=React.useCallback(function(event){touchStartRef.current=getTouchXY(event);activeAxis.current=void 0;},[]);var scrollWheel=React.useCallback(function(event){shouldCancel(event.type,getDeltaXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);var scrollTouchMove=React.useCallback(function(event){shouldCancel(event.type,getTouchXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);React.useEffect(function(){lockStack.push(Style2);props.setCallbacks({onScrollCapture:scrollWheel,onWheelCapture:scrollWheel,onTouchMoveCapture:scrollTouchMove});document.addEventListener("wheel",shouldPrevent,nonPassive);document.addEventListener("touchmove",shouldPrevent,nonPassive);document.addEventListener("touchstart",scrollTouchStart,nonPassive);return function(){lockStack=lockStack.filter(function(inst){return inst!==Style2;});document.removeEventListener("wheel",shouldPrevent,nonPassive);document.removeEventListener("touchmove",shouldPrevent,nonPassive);document.removeEventListener("touchstart",scrollTouchStart,nonPassive);};},[]);var removeScrollBar=props.removeScrollBar,inert=props.inert;return/*#__PURE__*/React.createElement(React.Fragment,null,inert?/*#__PURE__*/React.createElement(Style2,{styles:generateStyle(id)}):null,removeScrollBar?/*#__PURE__*/React.createElement(RemoveScrollBar,{noRelative:props.noRelative,gapMode:props.gapMode}):null);}function getOutermostShadowParent(node2){var shadowParent=null;while(node2!==null){if(node2 instanceof ShadowRoot){shadowParent=node2.host;node2=node2.host;}node2=node2.parentNode;}return shadowParent;}var SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=/*#__PURE__*/React.forwardRef(function(props,ref){return/*#__PURE__*/React.createElement(RemoveScroll,_assign$({},props,{ref:ref,sideCar:SideCar}));});ReactRemoveScroll.classNames=RemoveScroll.classNames;var POPOVER_NAME="Popover";var _createContextScope3=createContextScope(POPOVER_NAME,[createPopperScope]),_createContextScope4=_slicedToArray2(_createContextScope3,1),createPopoverContext=_createContextScope4[0];var usePopperScope=createPopperScope();var _createPopoverContext=createPopoverContext(POPOVER_NAME),_createPopoverContext2=_slicedToArray2(_createPopoverContext,2),PopoverProvider=_createPopoverContext2[0],usePopoverContext=_createPopoverContext2[1];var Popover2=function Popover2(props){var __scopePopover=props.__scopePopover,children=props.children,openProp=props.open,defaultOpen=props.defaultOpen,onOpenChange=props.onOpenChange,_props$modal=props.modal,modal2=_props$modal===void 0?false:_props$modal;var popperScope=usePopperScope(__scopePopover);var triggerRef=React.useRef(null);var _React$useState113=React.useState(false),_React$useState114=_slicedToArray2(_React$useState113,2),hasCustomAnchor=_React$useState114[0],setHasCustomAnchor=_React$useState114[1];var _useControllableState=useControllableState({prop:openProp,defaultProp:defaultOpen!=null?defaultOpen:false,onChange:onOpenChange,caller:POPOVER_NAME}),_useControllableState2=_slicedToArray2(_useControllableState,2),open=_useControllableState2[0],setOpen=_useControllableState2[1];return/* @__PURE__ */jsx$1(Root2$1,__spreadProps(__spreadValues({},popperScope),{children:/* @__PURE__ */jsx$1(PopoverProvider,{scope:__scopePopover,contentId:useId(),triggerRef:triggerRef,open:open,onOpenChange:setOpen,onOpenToggle:React.useCallback(function(){return setOpen(function(prevOpen){return!prevOpen;});},[setOpen]),hasCustomAnchor:hasCustomAnchor,onCustomAnchorAdd:React.useCallback(function(){return setHasCustomAnchor(true);},[]),onCustomAnchorRemove:React.useCallback(function(){return setHasCustomAnchor(false);},[]),modal:modal2,children:children})}));};Popover2.displayName=POPOVER_NAME;var ANCHOR_NAME="PopoverAnchor";var PopoverAnchor=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,anchorProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(ANCHOR_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var onCustomAnchorAdd=context.onCustomAnchorAdd,onCustomAnchorRemove=context.onCustomAnchorRemove;React.useEffect(function(){onCustomAnchorAdd();return function(){return onCustomAnchorRemove();};},[onCustomAnchorAdd,onCustomAnchorRemove]);return/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues(__spreadValues({},popperScope),anchorProps),{ref:forwardedRef}));});PopoverAnchor.displayName=ANCHOR_NAME;var TRIGGER_NAME="PopoverTrigger";var PopoverTrigger=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,triggerProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(TRIGGER_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var composedTriggerRef=useComposedRefs(forwardedRef,context.triggerRef);var trigger=/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button","aria-haspopup":"dialog","aria-expanded":context.open,"aria-controls":context.contentId,"data-state":getState(context.open)},triggerProps),{ref:composedTriggerRef,onClick:composeEventHandlers(props.onClick,context.onOpenToggle)}));return context.hasCustomAnchor?trigger:/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues({asChild:true},popperScope),{children:trigger}));});PopoverTrigger.displayName=TRIGGER_NAME;var PORTAL_NAME="PopoverPortal";var _createPopoverContext3=createPopoverContext(PORTAL_NAME,{forceMount:void 0}),_createPopoverContext4=_slicedToArray2(_createPopoverContext3,2),PortalProvider=_createPopoverContext4[0],usePortalContext=_createPopoverContext4[1];var PopoverPortal=function PopoverPortal(props){var __scopePopover=props.__scopePopover,forceMount=props.forceMount,children=props.children,container=props.container;var context=usePopoverContext(PORTAL_NAME,__scopePopover);return/* @__PURE__ */jsx$1(PortalProvider,{scope:__scopePopover,forceMount:forceMount,children:/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:/* @__PURE__ */jsx$1(Portal$1,{asChild:true,container:container,children:children})})});};PopoverPortal.displayName=PORTAL_NAME;var CONTENT_NAME="PopoverContent";var PopoverContent=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var portalContext=usePortalContext(CONTENT_NAME,props.__scopePopover);var _a=props,_a$forceMount=_a.forceMount,forceMount=_a$forceMount===void 0?portalContext.forceMount:_a$forceMount,contentProps=__objRest(_a,["forceMount"]);var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);return/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:context.modal?/* @__PURE__ */jsx$1(PopoverContentModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef})):/* @__PURE__ */jsx$1(PopoverContentNonModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef}))});});PopoverContent.displayName=CONTENT_NAME;var Slot=/* @__PURE__ */createSlot("PopoverContent.RemoveScroll");var PopoverContentModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var contentRef=React.useRef(null);var composedRefs=useComposedRefs(forwardedRef,contentRef);var isRightClickOutsideRef=React.useRef(false);React.useEffect(function(){var content2=contentRef.current;if(content2)return hideOthers(content2);},[]);return/* @__PURE__ */jsx$1(ReactRemoveScroll,{as:Slot,allowPinchZoom:true,children:/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:composedRefs,trapFocus:context.open,disableOutsidePointerEvents:true,onCloseAutoFocus:composeEventHandlers(props.onCloseAutoFocus,function(event){var _a;event.preventDefault();if(!isRightClickOutsideRef.current)(_a=context.triggerRef.current)==null?void 0:_a.focus();}),onPointerDownOutside:composeEventHandlers(props.onPointerDownOutside,function(event){var originalEvent=event.detail.originalEvent;var ctrlLeftClick=originalEvent.button===0&&originalEvent.ctrlKey===true;var isRightClick=originalEvent.button===2||ctrlLeftClick;isRightClickOutsideRef.current=isRightClick;},{checkForDefaultPrevented:false}),onFocusOutside:composeEventHandlers(props.onFocusOutside,function(event){return event.preventDefault();},{checkForDefaultPrevented:false})}))});});var PopoverContentNonModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var hasInteractedOutsideRef=React.useRef(false);var hasPointerDownOutsideRef=React.useRef(false);return/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:forwardedRef,trapFocus:false,disableOutsidePointerEvents:false,onCloseAutoFocus:function onCloseAutoFocus(event){var _a,_b;(_a=props.onCloseAutoFocus)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){if(!hasInteractedOutsideRef.current)(_b=context.triggerRef.current)==null?void 0:_b.focus();event.preventDefault();}hasInteractedOutsideRef.current=false;hasPointerDownOutsideRef.current=false;},onInteractOutside:function onInteractOutside(event){var _a,_b;(_a=props.onInteractOutside)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){hasInteractedOutsideRef.current=true;if(event.detail.originalEvent.type==="pointerdown"){hasPointerDownOutsideRef.current=true;}}var target=event.target;var targetIsTrigger=(_b=context.triggerRef.current)==null?void 0:_b.contains(target);if(targetIsTrigger)event.preventDefault();if(event.detail.originalEvent.type==="focusin"&&hasPointerDownOutsideRef.current){event.preventDefault();}}}));});var PopoverContentImpl=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,trapFocus=_a.trapFocus,onOpenAutoFocus=_a.onOpenAutoFocus,onCloseAutoFocus=_a.onCloseAutoFocus,disableOutsidePointerEvents=_a.disableOutsidePointerEvents,onEscapeKeyDown=_a.onEscapeKeyDown,onPointerDownOutside=_a.onPointerDownOutside,onFocusOutside=_a.onFocusOutside,onInteractOutside=_a.onInteractOutside,contentProps=__objRest(_a,["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"]);var context=usePopoverContext(CONTENT_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);useFocusGuards();return/* @__PURE__ */jsx$1(FocusScope,{asChild:true,loop:true,trapped:trapFocus,onMountAutoFocus:onOpenAutoFocus,onUnmountAutoFocus:onCloseAutoFocus,children:/* @__PURE__ */jsx$1(DismissableLayer,{asChild:true,disableOutsidePointerEvents:disableOutsidePointerEvents,onInteractOutside:onInteractOutside,onEscapeKeyDown:onEscapeKeyDown,onPointerDownOutside:onPointerDownOutside,onFocusOutside:onFocusOutside,onDismiss:function onDismiss(){return context.onOpenChange(false);},children:/* @__PURE__ */jsx$1(Content,__spreadProps(__spreadValues(__spreadValues({"data-state":getState(context.open),role:"dialog",id:context.contentId},popperScope),contentProps),{ref:forwardedRef,style:__spreadValues(__spreadValues({},contentProps.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))})});});var CLOSE_NAME="PopoverClose";var PopoverClose=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,closeProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(CLOSE_NAME,__scopePopover);return/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button"},closeProps),{ref:forwardedRef,onClick:composeEventHandlers(props.onClick,function(){return context.onOpenChange(false);})}));});PopoverClose.displayName=CLOSE_NAME;var ARROW_NAME="PopoverArrow";var PopoverArrow=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,arrowProps=__objRest(_a,["__scopePopover"]);var popperScope=usePopperScope(__scopePopover);return/* @__PURE__ */jsx$1(Arrow,__spreadProps(__spreadValues(__spreadValues({},popperScope),arrowProps),{ref:forwardedRef}));});PopoverArrow.displayName=ARROW_NAME;function getState(open){return open?"open":"closed";}var Root2=Popover2;var Trigger=PopoverTrigger;var Portal2=PopoverPortal;var Content2=PopoverContent;var formatDistanceLocale={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}};var formatDistance=function formatDistance(token2,count2,options){var result;var tokenValue=formatDistanceLocale[token2];if(typeof tokenValue==="string"){result=tokenValue;}else if(count2===1){result=tokenValue.one;}else{result=tokenValue.other.replace("{{count}}",count2.toString());}if(options==null?void 0:options.addSuffix){if(options.comparison&&options.comparison>0){return"en "+result;}else{return"hace "+result;}}return result;};var dateFormats={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"};var timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var dateTimeFormats={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};var formatRelativeLocale={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"};var formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"};var formatRelative=function formatRelative(token2,date,_baseDate,_options){if(date.getHours()!==1){return formatRelativeLocalePlural[token2];}else{return formatRelativeLocale[token2];}};var eraValues={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]};var quarterValues={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var monthValues={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]};var dayValues={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]};var dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}};var formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}};var ordinalNumber=function ordinalNumber(dirtyNumber,_options){var number=Number(dirtyNumber);return number+"º";};var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};var matchOrdinalNumberPattern=/^(\d+)(º)?/i;var parseOrdinalNumberPattern=/\d+/i;var matchEraPatterns={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i};var parseEraPatterns={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]};var matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i};var parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i};var parseMonthPatterns={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]};var matchDayPatterns={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i};var parseDayPatterns={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]};var matchDayPeriodPatterns={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i};var parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}};var match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function valueCallback(value){return parseInt(value,10);}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function valueCallback(index2){return index2+1;}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};var es={code:"es",formatDistance:formatDistance,formatLong:formatLong,formatRelative:formatRelative,localize:localize,match:match$1,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lg$5="dateRangePicker-module_lg_Z5cAW";var md$3="dateRangePicker-module_md_U7O4u";var sm$5="dateRangePicker-module_sm_eQU4f";var disabled$4="dateRangePicker-module_disabled_O2wo6";var focused="dateRangePicker-module_focused_ZciL9";var popoverEnter="dateRangePicker-module_popoverEnter_LA-QD";var popoverExit="dateRangePicker-module_popoverExit_7P00p";var nav="dateRangePicker-module_nav_wpLSQ";var months="dateRangePicker-module_months_KJVIG";var month="dateRangePicker-module_month_5xEDo";var weekdays="dateRangePicker-module_weekdays_Ifsr6";var weekday="dateRangePicker-module_weekday_2PP3h";var week="dateRangePicker-module_week_t5X3S";var day="dateRangePicker-module_day_wqJov";var selected="dateRangePicker-module_selected_RUsR-";var styles$i={"date-range-picker":"dateRangePicker-module_date-range-picker_PFF9Q",lg:lg$5,"input-wrapper":"dateRangePicker-module_input-wrapper_hyxTt",md:md$3,sm:sm$5,disabled:disabled$4,focused:focused,"popover-content":"dateRangePicker-module_popover-content_RKQTm",popoverEnter:popoverEnter,popoverExit:popoverExit,nav:nav,months:months,month:month,"month-caption":"dateRangePicker-module_month-caption_SaiMe",weekdays:weekdays,weekday:weekday,week:week,day:day,selected:selected,"range-middle":"dateRangePicker-module_range-middle_xm-3W","range-start":"dateRangePicker-module_range-start_52uOV","range-end":"dateRangePicker-module_range-end_VR3Y-","rdp-slide_in_left":"dateRangePicker-module_rdp-slide_in_left_yJv6o","rdp-slide_in_right":"dateRangePicker-module_rdp-slide_in_right_DtL-m","rdp-slide_out_left":"dateRangePicker-module_rdp-slide_out_left_pmbO5","rdp-slide_out_right":"dateRangePicker-module_rdp-slide_out_right_MDJeD","rdp-fade_in":"dateRangePicker-module_rdp-fade_in_TxHKu","rdp-fade_out":"dateRangePicker-module_rdp-fade_out_-8FsW"};function head(array){return array&&array.length?array[0]:void 0;}var head_1=head;var head$1=/* @__PURE__ */getDefaultExportFromCjs(head_1);var formatDate=function formatDate2(date,format2){var _pad=function _pad2(n){return _.padStart(String(n),2,"0");};var map2={YYYY:String(date.getFullYear()),MM:_pad(date.getMonth()+1),DD:_pad(date.getDate()),HH:_pad(date.getHours()),mm:_pad(date.getMinutes()),ss:_pad(date.getSeconds())};return _.reduce(map2,function(acc,value,token2){return _.replace(acc,token2,value);},format2);};var formatRangeLimits=function formatRangeLimits2(range){if(!range)return void 0;var from2=new Date(range.from);from2.setHours(0,0,0);var to=new Date(range.to);to.setHours(23,59,59);return{from:from2,to:to};};dayjs.extend(customParseFormat);var fromInputValue=function fromInputValue2(inputValue){if(!inputValue)return void 0;if(_typeof$1(inputValue)==="object"&&"from"in inputValue&&"to"in inputValue){var rangeValue=inputValue;return{from:convertToDate2(rangeValue.from),to:convertToDate2(rangeValue.to)};}if(typeof inputValue==="string"&&inputValue.includes(" - ")){var _inputValue$split=inputValue.split(" - "),_inputValue$split2=_slicedToArray$1(_inputValue$split,2),fromStr=_inputValue$split2[0],toStr=_inputValue$split2[1];return{from:convertToDate2(fromStr.trim()),to:convertToDate2(toStr.trim())};}return void 0;};var getDisplayRange=function getDisplayRange2(range){var format2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"DD/MM/YYYY";if(!(range!==null&&range!==void 0&&range.from))return"";var fromFormatted=formatDate(range.from,format2);var toFormatted=range.to?formatDate(range.to,format2):"";if(range.from&&range.to){return"".concat(fromFormatted," - ").concat(toFormatted);}return fromFormatted;};var convertToDate2=function convertToDate3(val){if(!val)return void 0;if(val instanceof Date){return val;}if(typeof val==="string"){var parsed=dayjs(val);return parsed.isValid()?parsed.toDate():void 0;}if(typeof val==="number"){return dayjs(val).toDate();}return void 0;};var CustomWeekday=function CustomWeekday2(props){return/* @__PURE__ */jsx$1("th",_objectSpread2$1(_objectSpread2$1({},props),{},{children:head$1(props.children)}));};var getDisabledDays=function getDisabledDays2(disabled2,minDate,maxDate){if(disabled2)return true;var min2=convertToDate2(minDate);var max2=convertToDate2(maxDate);if(min2&&max2)return[{before:min2},{after:max2}];if(min2)return{before:min2};if(max2)return{after:max2};return void 0;};var _excluded$e=["meta","name","value","disabled","required","placeholder","size","noErrors","label","format","isValid","onChange","input","minDate","maxDate"],_excluded2$4=["label","rightAdornment","value"];var DateRangePickerInput=function DateRangePickerInput2(props){var _input$value;var meta=props.meta,name=props.name,_props$value=props.value,value=_props$value===void 0?null:_props$value,_props$disabled=props.disabled,disabled2=_props$disabled===void 0?false:_props$disabled;props.required;var placeholder=props.placeholder,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors;props.label;var _props$format=props.format,format2=_props$format===void 0?"DD/MM/YYYY":_props$format,isValid2=props.isValid,onChange2=props.onChange,input=props.input,minDate=props.minDate,maxDate=props.maxDate,otherProps=_objectWithoutProperties$1(props,_excluded$e);var currentValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var validationProps={meta:meta,value:currentValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2?function(range){var syntheticEvent={target:{value:formatRangeLimits(range),name:name}};onChange2(syntheticEvent);}:void 0}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleSelect=function handleSelect2(range){fieldHandleChange(range);if(range!==null&&range!==void 0&&range.from&&range!==null&&range!==void 0&&range.to&&(range===null||range===void 0?void 0:range.from)!==(range===null||range===void 0?void 0:range.to)){setIsOpen(false);}};var handleClear=function handleClear2(){fieldHandleChange(void 0);};var selectedRange=fromInputValue(currentValue);var displayValue=getDisplayRange(selectedRange,format2);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),isOpen=_useState2[0],setIsOpen=_useState2[1];var getInitialMonth2=function getInitialMonth3(){return(selectedRange===null||selectedRange===void 0?void 0:selectedRange.from)||(selectedRange===null||selectedRange===void 0?void 0:selectedRange.to)||/* @__PURE__ */new Date();};return/* @__PURE__ */jsxs("div",{className:clsx(styles$i["date-range-picker"],styles$i[size2],validated?errorStyles[validated]:"",disabled2?styles$i["disabled"]:"",isOpen?styles$i["focused"]:""),children:[/* @__PURE__ */jsxs(Root2,{open:isOpen&&!disabled2,onOpenChange:setIsOpen,children:[/* @__PURE__ */jsx$1(Trigger,{asChild:true,children:/* @__PURE__ */jsxs("div",{className:styles$i["input-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1({type:"text",name:name,value:displayValue,placeholder:placeholder||format2,readOnly:true,onBlur:handleBlur},otherProps)),/* @__PURE__ */jsx$1(ActionComponent,{onOpen:function onOpen(){return setIsOpen(!isOpen);},showClearIcon:!!displayValue,onClear:handleClear})]})}),/* @__PURE__ */jsx$1(Portal2,{children:/* @__PURE__ */jsx$1(Content2,{className:styles$i["popover-content"],sideOffset:4,align:"start",side:"bottom",avoidCollisions:true,collisionPadding:8,children:/* @__PURE__ */jsx$1(DayPicker,{mode:"range",locale:es,selected:selectedRange,onSelect:handleSelect,numberOfMonths:2,defaultMonth:getInitialMonth2(),disabled:getDisabledDays(disabled2,minDate,maxDate),className:styles$i["day-picker"],animate:true,classNames:{months:styles$i["months"],month:styles$i["month"],month_caption:styles$i["month-caption"],nav:styles$i["nav"],weekdays:styles$i["weekdays"],weekday:styles$i["weekday"],week:styles$i["week"],day:styles$i["day"],selected:styles$i["selected"],range_start:styles$i["range-start"],range_middle:styles$i["range-middle"],range_end:styles$i["range-end"],disabled:styles$i["disabled"]},components:{Weekday:CustomWeekday}})})})]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var DateRangePicker=function DateRangePicker2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,value=_ref3.value,props=_objectWithoutProperties$1(_ref3,_excluded2$4);return/* @__PURE__ */jsx$1(FormField,_objectSpread2$1({type:"dateRange",label:label2,rightAdornment:rightAdornment,value:value},props));};var _excluded$d=["label","rightAdornment","children"];var inputByType=function inputByType2(type){var inputs={password:PasswordInput,text:TextInput,number:TextInput,date:DatePickerInput,dateRange:DateRangePickerInput};return!!type?inputs[type]:TextInput;};var FormField=function FormField2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,children=_ref3.children,props=_objectWithoutProperties$1(_ref3,_excluded$d);var InputComponent=inputByType(props.type);return/* @__PURE__ */jsxs("div",{className:styles$k["form-field"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:props.name,children:label2}),/* @__PURE__ */jsxs("div",{className:"".concat(styles$k["input-container"]),children:[/* @__PURE__ */jsx$1(InputComponent,_objectSpread2$1(_objectSpread2$1({},props),{},{children:children})),!!rightAdornment&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-modifier"]),children:rightAdornment})]})]});};var title$5="checkboxInput-module_title_cvp-g";var disabled$3="checkboxInput-module_disabled_3EFy5";var lg$4="checkboxInput-module_lg_VoVop";var md$2="checkboxInput-module_md_Nh-Gg";var sm$4="checkboxInput-module_sm_965vX";var styles$h={"checkbox-input-container":"checkboxInput-module_checkbox-input-container_prYRe",title:title$5,"checkbox-input-items":"checkboxInput-module_checkbox-input-items_AMkaS",disabled:disabled$3,lg:lg$4,md:md$2,sm:sm$4};var _excluded$c=["title","name","type","items","onChange","size","input"],_excluded2$3=["id","name","label","disabled","checked","value"];var CheckboxInputGroup=function CheckboxInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$c);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$h["checkbox-input-container"],children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$h["title"],children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$h["checkbox-input-items"]," ").concat(styles$h[size2]),children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$3);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$h["disabled"]:""),children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:type,name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur})),/* @__PURE__ */jsxs("span",{children:[" ",label2," "]})]},inputId);})})]});};var _excluded$b=["name","checked","onChange","label","title","disabled","size","input","type"];var CheckboxInput=function CheckboxInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,props=_objectWithoutProperties$1(_ref3,_excluded$b);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(CheckboxInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,type:type,size:size2,input:input}));};var _excluded$a=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function useAsync(_ref3){var _ref$defaultOptions=_ref3.defaultOptions,propsDefaultOptions=_ref$defaultOptions===void 0?false:_ref$defaultOptions,_ref$cacheOptions=_ref3.cacheOptions,cacheOptions=_ref$cacheOptions===void 0?false:_ref$cacheOptions,propsLoadOptions=_ref3.loadOptions;_ref3.options;var _ref$isLoading=_ref3.isLoading,propsIsLoading=_ref$isLoading===void 0?false:_ref$isLoading,propsOnInputChange=_ref3.onInputChange,_ref$filterOption=_ref3.filterOption,filterOption=_ref$filterOption===void 0?null:_ref$filterOption,restSelectProps=_objectWithoutProperties(_ref3,_excluded$a);var propsInputValue=restSelectProps.inputValue;var lastRequest=useRef(void 0);var mounted=useRef(false);var _useState=useState(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0),_useState2=_slicedToArray(_useState,2),defaultOptions2=_useState2[0],setDefaultOptions=_useState2[1];var _useState3=useState(typeof propsInputValue!=="undefined"?propsInputValue:""),_useState4=_slicedToArray(_useState3,2),stateInputValue=_useState4[0],setStateInputValue=_useState4[1];var _useState5=useState(propsDefaultOptions===true),_useState6=_slicedToArray(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=useState(void 0),_useState8=_slicedToArray(_useState7,2),loadedInputValue=_useState8[0],setLoadedInputValue=_useState8[1];var _useState9=useState([]),_useState10=_slicedToArray(_useState9,2),loadedOptions=_useState10[0],setLoadedOptions=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),passEmptyOptions=_useState12[0],setPassEmptyOptions=_useState12[1];var _useState13=useState({}),_useState14=_slicedToArray(_useState13,2),optionsCache=_useState14[0],setOptionsCache=_useState14[1];var _useState15=useState(void 0),_useState16=_slicedToArray(_useState15,2),prevDefaultOptions=_useState16[0],setPrevDefaultOptions=_useState16[1];var _useState17=useState(void 0),_useState18=_slicedToArray(_useState17,2),prevCacheOptions=_useState18[0],setPrevCacheOptions=_useState18[1];if(cacheOptions!==prevCacheOptions){setOptionsCache({});setPrevCacheOptions(cacheOptions);}if(propsDefaultOptions!==prevDefaultOptions){setDefaultOptions(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0);setPrevDefaultOptions(propsDefaultOptions);}useEffect(function(){mounted.current=true;return function(){mounted.current=false;};},[]);var loadOptions=useCallback(function(inputValue,callback){if(!propsLoadOptions)return callback();var loader2=propsLoadOptions(inputValue,callback);if(loader2&&typeof loader2.then==="function"){loader2.then(callback,function(){return callback();});}},[propsLoadOptions]);useEffect(function(){if(propsDefaultOptions===true){loadOptions(stateInputValue,function(options2){if(!mounted.current)return;setDefaultOptions(options2||[]);setIsLoading(!!lastRequest.current);});}},[]);var onInputChange2=useCallback(function(newValue,actionMeta){var inputValue=handleInputChange(newValue,actionMeta,propsOnInputChange);if(!inputValue){lastRequest.current=void 0;setStateInputValue("");setLoadedInputValue("");setLoadedOptions([]);setIsLoading(false);setPassEmptyOptions(false);return;}if(cacheOptions&&optionsCache[inputValue]){setStateInputValue(inputValue);setLoadedInputValue(inputValue);setLoadedOptions(optionsCache[inputValue]);setIsLoading(false);setPassEmptyOptions(false);}else{var request=lastRequest.current={};setStateInputValue(inputValue);setIsLoading(true);setPassEmptyOptions(!loadedInputValue);loadOptions(inputValue,function(options2){if(!mounted)return;if(request!==lastRequest.current)return;lastRequest.current=void 0;setIsLoading(false);setLoadedInputValue(inputValue);setLoadedOptions(options2||[]);setPassEmptyOptions(false);setOptionsCache(options2?_objectSpread2(_objectSpread2({},optionsCache),{},_defineProperty({},inputValue,options2)):optionsCache);});}},[cacheOptions,loadOptions,loadedInputValue,optionsCache,propsOnInputChange]);var options=passEmptyOptions?[]:stateInputValue&&loadedInputValue?loadedOptions:defaultOptions2||[];return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options,isLoading:isLoading||propsIsLoading,onInputChange:onInputChange2,filterOption:filterOption});}var AsyncSelect=/* @__PURE__ */forwardRef(function(props,ref){var stateManagedProps=useAsync(props);var selectProps=useStateManager(stateManagedProps);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},selectProps));});var AsyncSelect$1=AsyncSelect;var loader="spinner-module_loader_UIupC";var styles$g={loader:loader};var Spinner=function Spinner2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;return/* @__PURE__ */jsx$1(CircularProgress,{size:_size(size2),className:styles$g.loader});};var _size=function _size2(size2){return{sm:18,lg:60}[size2];};var _excluded$9=["name","label","placeholder","noOptionsMessage","options","size","isSearchable","isClearable","clearOnSelect","required","disabled","rightModifier","isOptionDisabled","onChange","onInputChange","input","isLoading","formatOption","loadOptions","cacheOptions","defaultOptions"];var Searcher=function Searcher2(props){var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,_props$clearOnSelect=props.clearOnSelect,clearOnSelect=_props$clearOnSelect===void 0?false:_props$clearOnSelect;props.required;var disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,onChange2=props.onChange,onInputChange2=props.onInputChange,input=props.input,_props$isLoading=props.isLoading,isLoading=_props$isLoading===void 0?false:_props$isLoading,formatOption=props.formatOption,loadOptions=props.loadOptions,_props$cacheOptions=props.cacheOptions,cacheOptions=_props$cacheOptions===void 0?true:_props$cacheOptions,_props$defaultOptions=props.defaultOptions,defaultOptions2=_props$defaultOptions===void 0?true:_props$defaultOptions,otherProps=_objectWithoutProperties$1(props,_excluded$9);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isMenuOpen=_useState4[0],setIsMenuOpen=_useState4[1];var _useState5=useState(0),_useState6=_slicedToArray$1(_useState5,2),menuKey=_useState6[0],setMenuKey=_useState6[1];useEffect(function(){if(isMenuOpen&&options&&!_.isEmpty(options)){setMenuKey(function(prev2){return prev2+1;});}},[options,isMenuOpen]);var handleInputChange2=useCallback(function(value){var fakeEvent={target:{name:name,value:value}};onInputChange2===null||onInputChange2===void 0||onInputChange2(fakeEvent);setIsMenuOpen(true);},[name,onInputChange2]);var handleSelect=useCallback(function(selected2){var fakeEvent={target:{name:name,value:selected2===null||selected2===void 0?void 0:selected2.value}};setOptionSelected(selected2);if(input){input.onChange(selected2===null||selected2===void 0?void 0:selected2.value);}else{onChange2===null||onChange2===void 0||onChange2(fakeEvent);}if(clearOnSelect&&selected2){setOptionSelected(null);}setIsMenuOpen(false);},[name,input,onChange2,clearOnSelect]);var handleBlur=useCallback(function(){if(input){input.onBlur();}setIsMenuOpen(false);},[input]);var handleClear=useCallback(function(){setOptionSelected(null);if(input){input.onChange(null);}},[input]);var OptionWithFormat=useCallback(function(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));},[formatOption]);var SingleValueWithFormat=useCallback(function(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1({},singleValueProps));},[]);var _renderSelectComponent=useCallback(function(){var commonProps=_objectSpread2$1(_objectSpread2$1({},otherProps),{},{key:menuKey,name:name,placeholder:placeholder,classNamePrefix:"producteca-select-field",isDisabled:disabled2,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable,isLoading:isLoading,loadingMessage:function loadingMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},noOptionsMessage:function noOptionsMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},onInputChange:handleInputChange2,onChange:handleSelect,onBlur:handleBlur,value:optionSelected,components:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat},menuPortalTarget:document.body,menuIsOpen:isMenuOpen,onMenuOpen:function onMenuOpen(){return setIsMenuOpen(true);},onMenuClose:function onMenuClose(){return setIsMenuOpen(false);}});if(loadOptions){return/* @__PURE__ */jsx$1(AsyncSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{loadOptions:loadOptions,cacheOptions:cacheOptions,defaultOptions:defaultOptions2}));}return/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{options:options}));},[otherProps,menuKey,name,placeholder,disabled2,isClearable,isOptionDisabled3,isSearchable,isLoading,_noOptionsMessage,handleInputChange2,handleSelect,handleBlur,optionSelected,OptionWithFormat,SingleValueWithFormat,isMenuOpen,loadOptions,cacheOptions,defaultOptions2,options]);return/* @__PURE__ */jsxs("div",{className:styles$l["producteca-select-field-container"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],styles$l[isSearchable?"producteca-select-field--is-searchable":""],styles$l[isClearable?"producteca-select-field--is-clearable":""],styles$l[rightModifier?"producteca-select-field--with-modifier":""]),children:[/* @__PURE__ */jsxs("div",{className:styles$l["searcher-body"],children:[isSearchable&&/* @__PURE__ */jsx$1(SearchComponent,{}),_renderSelectComponent(),/* @__PURE__ */jsx$1(ClearComponent,{isClearable:isClearable,handleChange:handleClear})]}),!!rightModifier&&rightModifier]})]});};var title$4="switchInput-module_title_lBK2p";var disabled$2="switchInput-module_disabled_yz9dR";var lg$3="switchInput-module_lg_WMIDO";var md$1="switchInput-module_md_683sQ";var sm$3="switchInput-module_sm_sh92j";var styles$f={"switch-input-container":"switchInput-module_switch-input-container_t9Kpp",title:title$4,"switch-input-items":"switchInput-module_switch-input-items_P3RMy","switch-wrapper":"switchInput-module_switch-wrapper_cZvDV","switch-input":"switchInput-module_switch-input_e9PWi","switch-slider":"switchInput-module_switch-slider_ICfGn","switch-label":"switchInput-module_switch-label_Nj-Hh",disabled:disabled$2,lg:lg$3,md:md$1,sm:sm$3};var _excluded$8=["title","name","items","onChange","size","input"],_excluded2$2=["id","name","label","disabled","checked","value"],_excluded3=["name","checked","onChange","label","title","disabled","size","input"];var SwitchInputGroup=function SwitchInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$8);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$f["switch-input-container"],"data-testid":"switch-input-container",children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$f["title"],"data-testid":"switch-title",children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$f["switch-input-items"]," ").concat(styles$f[size2]),"data-testid":"switch-input-items",children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$2);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$f["disabled"]:""),"data-testid":"switch-label-".concat(inputId),children:[/* @__PURE__ */jsxs("div",{className:styles$f["switch-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:"checkbox",name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur,className:styles$f["switch-input"],"data-testid":"switch-input-".concat(inputId)})),/* @__PURE__ */jsx$1("span",{className:styles$f["switch-slider"]})]}),/* @__PURE__ */jsxs("span",{className:styles$f["switch-label"],children:[" ",label2," "]})]},inputId);})})]});};var SwitchInput=function SwitchInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref3$disabled=_ref3.disabled,disabled2=_ref3$disabled===void 0?false:_ref3$disabled,_ref3$size=_ref3.size,size2=_ref3$size===void 0?"sm":_ref3$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded3);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(SwitchInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,size:size2,input:input}));};var styles$e={"empty-state-container":"emptyState-module_empty-state-container_azCks","link-container":"emptyState-module_link-container_kXroF"};var DefaultIcon$1=/* @__PURE__ */jsx$1(SearchPublication,{});var EmptyState=function EmptyState2(_ref3){var onActionClick=_ref3.onActionClick,_ref$icon=_ref3.icon,icon2=_ref$icon===void 0?DefaultIcon$1:_ref$icon,_ref$actionText=_ref3.actionText,actionText=_ref$actionText===void 0?locale("reloadPage"):_ref$actionText,_ref$text=_ref3.text,text2=_ref$text===void 0?locale("noResultsFound"):_ref$text;return/* @__PURE__ */jsxs("div",{className:styles$e["empty-state-container"],children:[icon2,/* @__PURE__ */jsxs("div",{className:styles$e["link-container"],children:[/* @__PURE__ */jsx$1("span",{children:text2}),onActionClick&&/* @__PURE__ */jsx$1("a",{onClick:onActionClick,children:actionText})]})]});};var fullPage="actionBar-module_fullPage_A4wiw";var modal$1="actionBar-module_modal_jZfAJ";var page="actionBar-module_page_Oq8Jb";var styles$d={"action-bar":"actionBar-module_action-bar_Y-sjl",fullPage:fullPage,modal:modal$1,page:page};var _excluded$7=["onPrevious","label"],_excluded2$1=["onSave","label"];var ActionBar=function ActionBar2(_ref3){var _ref$variant=_ref3.variant,variant=_ref$variant===void 0?"page":_ref$variant,saveProps=_ref3.saveProps,cancelProps=_ref3.cancelProps,previousProps=_ref3.previousProps;var _ref22=cancelProps||{},onCancel=_ref22.onCancel,_ref2$label=_ref22.label,cancelText=_ref2$label===void 0?locale("cancel"):_ref2$label;var _ref32=previousProps||{},onPrevious=_ref32.onPrevious,_ref3$label=_ref32.label,previousText=_ref3$label===void 0?locale("previous"):_ref3$label,previousOtherProps=_objectWithoutProperties$1(_ref32,_excluded$7);var _ref4=saveProps||{},onSave=_ref4.onSave,_ref4$label=_ref4.label,saveText=_ref4$label===void 0?locale("save"):_ref4$label,saveOtherProps=_objectWithoutProperties$1(_ref4,_excluded2$1);return/* @__PURE__ */jsxs("div",{className:clsx(styles$d["action-bar"],styles$d[variant]),children:[!!onCancel&&/* @__PURE__ */jsx$1(Button$2,{size:"md",variant:"link",label:cancelText,onClick:onCancel}),!!onPrevious&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({outline:true,label:previousText,onClick:onPrevious},previousOtherProps)),!!onSave&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({label:saveText,onClick:onSave},saveOtherProps))]});};var _excluded$6=["onClick","copyText","copiedText","textToCopy","resetTime"];var CopyButton=function CopyButton2(_ref3){var _onClick=_ref3.onClick,_ref$copyText=_ref3.copyText,copyText=_ref$copyText===void 0?locale("copyButton.copy"):_ref$copyText,_ref$copiedText=_ref3.copiedText,copiedText=_ref$copiedText===void 0?locale("copyButton.copied"):_ref$copiedText,textToCopy=_ref3.textToCopy,_ref$resetTime=_ref3.resetTime,resetTime=_ref$resetTime===void 0?2e3:_ref$resetTime,props=_objectWithoutProperties$1(_ref3,_excluded$6);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),copied=_useState2[0],setCopied=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isAnimating=_useState4[0],setIsAnimating=_useState4[1];useEffect(function(){if(copied){setIsAnimating(true);var timer=setTimeout(function(){setIsAnimating(false);},resetTime/2);return function(){return clearTimeout(timer);};}},[copied]);var defaultCopyFunction=function defaultCopyFunction2(){if(textToCopy){setCopied(true);navigator.clipboard.writeText(textToCopy).then(function(){setTimeout(function(){return setCopied(false);},resetTime);}).catch(function(){setCopied(false);});}};return/* @__PURE__ */jsx$1("div",{onClick:function onClick(){return _onClick?_onClick():defaultCopyFunction();},children:/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({className:"copy-btn ".concat(copied?"copied":""," ").concat(isAnimating?"animating":""),outline:true,label:copied?copiedText:copyText,leftAdornment:/* @__PURE__ */jsx$1(Icons,{copied:copied})},props))});};var Icons=function Icons2(_ref22){var copied=_ref22.copied;return/* @__PURE__ */jsxs("div",{className:"copy-btn-icons",children:[/* @__PURE__ */jsx$1("div",{className:"copy-icon ".concat(copied?"hidden":""),children:/* @__PURE__ */jsx$1(ContentCopy,{})}),/* @__PURE__ */jsx$1("div",{className:"check-icon ".concat(!copied?"hidden":""),children:/* @__PURE__ */jsx$1(Check,{})})]});};var dense="headerSection-module_dense_f1FWn";var content$1="headerSection-module_content_5y2PB";var title$3="headerSection-module_title_cabYm";var styles$c={"header-section-container":"headerSection-module_header-section-container_M-ZSv",dense:dense,"header-section":"headerSection-module_header-section_UIh2F",content:content$1,title:title$3};var HeaderSection=function HeaderSection2(_ref3){var breadcrumb2=_ref3.breadcrumb,image2=_ref3.image,_ref$dense=_ref3.dense,dense2=_ref$dense===void 0?false:_ref$dense,title2=_ref3.title,subtitle=_ref3.subtitle,link2=_ref3.link,menuAction=_ref3.menuAction;return/* @__PURE__ */jsxs("div",{className:clsx(styles$c["header-section-container"],_defineProperty$1({},styles$c["dense"],dense2)),children:[!!breadcrumb2&&breadcrumb2,/* @__PURE__ */jsxs("div",{className:styles$c["header-section"],children:[!!image2&&image2,/* @__PURE__ */jsxs("div",{className:styles$c.content,children:[title2&&/* @__PURE__ */jsx$1("h3",{className:styles$c.title,children:title2}),!!subtitle&&subtitle,!!link2&&link2]}),!!menuAction&&menuAction]})]});};var action="linkWithIcon-module_action_3K4he";var styles$b={action:action};var SIZE_TO_ICON={sm:"8",md:"12",lg:"12"};var transformSize=function transformSize2(size2){return SIZE_TO_ICON[size2!==null&&size2!==void 0?size2:"md"];};var LinkWithIcon=function LinkWithIcon2(_ref3){var text2=_ref3.text,icon2=_ref3.icon,onClick=_ref3.onClick,className=_ref3.className,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$otherProps=_ref3.otherProps,otherProps=_ref$otherProps===void 0?{}:_ref$otherProps;return/* @__PURE__ */jsxs("div",{className:clsx(styles$b.action,className),onClick:onClick,children:[icon2&&/* @__PURE__ */jsx$1(CustomIcon,_objectSpread2$1(_objectSpread2$1({color:getColor("primary","500")},otherProps),{},{size:transformSize(size2),children:icon2})),/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({variant:"link",label:text2,size:size2},otherProps))]});};var divider="iconWithIdentifier-module_divider_fCBSV";var identifier$1="iconWithIdentifier-module_identifier_kWrOU";var styles$a={"icon-with-identifier":"iconWithIdentifier-module_icon-with-identifier_3-SZE",divider:divider,identifier:identifier$1};var IconWithIdentifier=function IconWithIdentifier2(_ref3){var text2=_ref3.text,_ref$showDivider=_ref3.showDivider,showDivider=_ref$showDivider===void 0?true:_ref$showDivider,color2=_ref3.color,icon2=_ref3.icon;return/* @__PURE__ */jsxs("div",{className:clsx(styles$a["icon-with-identifier"]),children:[!!icon2&&icon2,showDivider&&/* @__PURE__ */jsx$1("div",{className:styles$a.divider}),/* @__PURE__ */jsx$1("span",{className:styles$a.identifier,style:{color:color2},children:text2})]});};var progressbar="progressbar-module_progressbar_8ygYR";var lg$2="progressbar-module_lg_5JGr-";var sm$2="progressbar-module_sm_LPtUo";var styles$9={progressbar:progressbar,lg:lg$2,sm:sm$2};var Progressbar=function Progressbar2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,_ref$progress=_ref3.progress,initialProgress=_ref$progress===void 0?0:_ref$progress,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"determinate":_ref$variant;var _useState=useState(initialProgress),_useState2=_slicedToArray$1(_useState,2),progress=_useState2[0],setProgress=_useState2[1];useEffect(function(){if(variant==="buffer"){var timer=setInterval(function(){setProgress(function(oldProgress){var newProgress=Math.min(100,oldProgress+Math.sqrt(100-oldProgress)*0.5);return Math.round(newProgress);});},100);return function(){clearInterval(timer);};}else{setProgress(initialProgress);}},[variant,initialProgress]);return/* @__PURE__ */jsx$1(LinearProgress,{variant:variant=="buffer"?"determinate":variant,value:progress,className:clsx(styles$9["progressbar"],styles$9[size2]),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":progress});};var alert="alert-module_alert_j7ZRS";var icon="alert-module_icon_vbZHd";var message="alert-module_message_klR2U";var link="alert-module_link_IrBj3";var success="alert-module_success_AVBKS";var error$1="alert-module_error_cxg96";var warning="alert-module_warning_zkMaJ";var info="alert-module_info_PBo1l";var styles$8={alert:alert,"full-width":"alert-module_full-width_eKIHw",icon:icon,message:message,link:link,success:success,error:error$1,warning:warning,info:info};var _excluded$5=["message","variant","className","icon","fullWidth","link"];var Alert=function Alert2(_ref3){var message2=_ref3.message,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"success":_ref$variant,className=_ref3.className,icon2=_ref3.icon,_ref$fullWidth=_ref3.fullWidth,fullWidth=_ref$fullWidth===void 0?false:_ref$fullWidth,link2=_ref3.link,props=_objectWithoutProperties$1(_ref3,_excluded$5);var defaultIcons={success:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("success","500"),children:/* @__PURE__ */jsx$1(CheckCircle,{})}),error:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("error","700"),children:/* @__PURE__ */jsx$1(Cancel,{})}),warning:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})}),info:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(Info,{})})};return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$8["alert"],styles$8[variant],_defineProperty$1({},styles$8["full-width"],fullWidth),className)},props),{},{children:[/* @__PURE__ */jsx$1("div",{className:styles$8["icon"],children:icon2||defaultIcons[variant]}),/* @__PURE__ */jsxs("div",{className:styles$8["message"],children:[_.isString(message2)?/* @__PURE__ */jsx$1("span",{dangerouslySetInnerHTML:{__html:message2}}):/* @__PURE__ */jsxs("span",{children:[" ",message2]}),link2&&/* @__PURE__ */jsxs(Fragment$1,{children:[" ",/* @__PURE__ */jsx$1("a",{href:link2===null||link2===void 0?void 0:link2.href,className:styles$8["link"],onClick:link2===null||link2===void 0?void 0:link2.onClick,children:link2.text})]})]})]}));};var OverflowChecker=function OverflowChecker2(_ref3){var children=_ref3.children;var ref=useRef(null);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];useEffect(function(){var checkOverflow=function checkOverflow2(){if(ref.current){setShowTooltip(ref.current.scrollWidth>ref.current.offsetWidth);}};checkOverflow();window.addEventListener("resize",checkOverflow);return function(){return window.removeEventListener("resize",checkOverflow);};},[children]);return/* @__PURE__ */jsx$1(Fragment$1,{children:children(ref,showTooltip)});};var _excluded$4=["children","content","placement","arrow","maxWidth","trigger","shouldShowTooltip"],_excluded2=["content","children"];var WithTooltip=function WithTooltip2(_ref3){var children=_ref3.children,content2=_ref3.content,_ref$placement=_ref3.placement,placement=_ref$placement===void 0?"top":_ref$placement,_ref$arrow=_ref3.arrow,arrow2=_ref$arrow===void 0?false:_ref$arrow,_ref$maxWidth=_ref3.maxWidth,maxWidth2=_ref$maxWidth===void 0?"600px":_ref$maxWidth,_ref$trigger=_ref3.trigger,trigger=_ref$trigger===void 0?"hover":_ref$trigger,_ref$shouldShowToolti=_ref3.shouldShowTooltip,shouldShowTooltip=_ref$shouldShowToolti===void 0?true:_ref$shouldShowToolti,otherProps=_objectWithoutProperties$1(_ref3,_excluded$4);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),open=_useState2[0],setOpen=_useState2[1];var enhancedChildren=/* @__PURE__ */React__default.cloneElement(children,_objectSpread2$1({style:_objectSpread2$1(_objectSpread2$1({},children.props.style||{}),{},{cursor:"pointer"})},trigger==="click"&&shouldShowTooltip&&{onClick:function onClick(e){if(children.props.onClick){children.props.onClick(e);}setOpen(!open);}}));var tooltipProps=trigger==="click"?{open:shouldShowTooltip?open:false,onClose:function onClose(){return setOpen(false);},disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var disabledListeners=!shouldShowTooltip?{disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};return/* @__PURE__ */jsx$1(Tooltip,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({title:shouldShowTooltip?content2:"",placement:placement,arrow:arrow2,slots:{transition:Zoom},slotProps:{popper:{sx:_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.tooltip),{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",background:"rgba(102, 102, 102, 1)",padding:"9px 9px 8px 12px",fontSize:"12px",fontWeight:"400",color:"white !important",borderRadius:"4px",maxWidth:maxWidth2}),"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.arrow),{color:"rgba(102, 102, 102, 1)"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="top"] .').concat(tooltipClasses.tooltip),{marginBottom:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="bottom"] .').concat(tooltipClasses.tooltip),{marginTop:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="left"] .').concat(tooltipClasses.tooltip),{marginRight:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="right"] .').concat(tooltipClasses.tooltip),{marginLeft:"8px"})}}},tooltipProps),disabledListeners),otherProps),{},{children:enhancedChildren}));};var WithOverflowTooltip=function WithOverflowTooltip2(_ref22){var content2=_ref22.content,_children=_ref22.children,tooltipProps=_objectWithoutProperties$1(_ref22,_excluded2);return/* @__PURE__ */jsx$1(OverflowChecker,{children:function children(ref,showTooltip){var childrenWithRef=/* @__PURE__ */React__default.cloneElement(_children,{ref:ref});return showTooltip&&content2?/* @__PURE__ */jsx$1(WithTooltip,_objectSpread2$1(_objectSpread2$1({content:content2},tooltipProps),{},{children:childrenWithRef})):childrenWithRef;}});};var image="image-module_image_y02P7";var error="image-module_error_QtQOy";var styles$7={"image-container":"image-module_image-container_ZhlhW","without-border":"image-module_without-border_Uc1yx",image:image,error:error};var Image=function Image2(_ref3){var src=_ref3.src,withoutBorder=_ref3.withoutBorder,sx=_ref3.sx,alt=_ref3.alt;var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),hasError3=_useState2[0],setHasError=_useState2[1];var handleImageError=function handleImageError2(){setHasError(true);};if(hasError3){return/* @__PURE__ */jsx$1("div",{className:clsx(styles$7["image-container"]),style:sx,children:/* @__PURE__ */jsx$1(InsertPhotoRoundedIcon,{className:styles$7.error})});}return/* @__PURE__ */jsx$1("div",{className:clsx(styles$7["image-container"],_defineProperty$1({},styles$7["without-border"],withoutBorder)),style:_objectSpread2$1({},sx),children:/* @__PURE__ */jsx$1("img",{src:src,alt:alt||src,className:styles$7.image,onError:handleImageError})});};var breadcrumb="breadcrumb-module_breadcrumb_r-ILp";var styles$6={breadcrumb:breadcrumb,"breadcrumb-item":"breadcrumb-module_breadcrumb-item_suTUF"};var _excluded$3=["items","className"];var BreadcrumbItemComponent=function BreadcrumbItemComponent2(_ref3){var item2=_ref3.item,index2=_ref3.index,items=_ref3.items;var isLast=index2===lodashExports.size(items)-1;var text2="".concat(item2.text," >");return item2.isActive||isLast?/* @__PURE__ */jsx$1(Button$2,{variant:"link",size:"sm",label:text2,onClick:item2.onClick}):/* @__PURE__ */jsxs("div",{className:styles$6["breadcrumb-item"],children:[" ",text2," "]});};var Breadcrumb=function Breadcrumb2(_ref22){var items=_ref22.items,className=_ref22.className,otherProps=_objectWithoutProperties$1(_ref22,_excluded$3);return/* @__PURE__ */jsx$1("nav",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$6["breadcrumb"],className),"aria-label":"Breadcrumb"},otherProps),{},{children:lodashExports.map(items,function(item2,index2){return/* @__PURE__ */jsx$1(BreadcrumbItemComponent,{item:item2,index:index2,items:items},index2);})}));};var menuPaperSx=function menuPaperSx2(size2,maxItemsVisible){return{"& .MuiPopover-paper":{boxShadow:"0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)",border:"1px solid #D7D7D7",maxHeight:"".concat(maxHeight(size2,maxItemsVisible),"px")}};};var getMenuActionSize=function getMenuActionSize2(size2){switch(size2){case"sm":return 32;case"md":return 37;case"lg":return 42;default:return 37;}};var maxHeight=function maxHeight2(size2,maxItemsVisible){return getMenuActionSize(size2)*(maxItemsVisible!==null&&maxItemsVisible!==void 0?maxItemsVisible:6);};var item="menuItem-module_item_IbBuJ";var lg$1="menuItem-module_lg_ZMwXU";var md="menuItem-module_md_apOGd";var sm$1="menuItem-module_sm_gHxtB";var styles$5={item:item,lg:lg$1,md:md,sm:sm$1};var menuItemSx={fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",color:getColor("grey","900"),"&.Mui-selected":{backgroundColor:getColor("grey","100")},"&.Mui-selected:hover":{backgroundColor:getColor("grey","100")},"&.Mui-disabled":{opacity:0.5},padding:"0 16px"};var _excluded$2=["label","icon","onClick","selected","disabled","onClose","size"];var MenuItemComponent=function MenuItemComponent2(_ref3){var label2=_ref3.label,icon2=_ref3.icon,onClick=_ref3.onClick,selected2=_ref3.selected,disabled2=_ref3.disabled,onClose=_ref3.onClose,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,otherProps=_objectWithoutProperties$1(_ref3,_excluded$2);var handleClick=function handleClick2(){onClose===null||onClose===void 0||onClose();onClick===null||onClick===void 0||onClick();};return/* @__PURE__ */jsx$1(MenuItem$1,_objectSpread2$1(_objectSpread2$1({sx:menuItemSx,selected:selected2,disabled:disabled2,onClick:handleClick},otherProps),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$5.item,styles$5[size2]),children:[!!icon2&&icon2,/* @__PURE__ */jsx$1("span",{children:label2})]})}));};var _excluded$1=["items","id","maxItemsVisible","icon","size","disableRipple"];var MenuAction=function MenuAction2(_ref3){var items=_ref3.items,_ref$id=_ref3.id,id=_ref$id===void 0?"menu-action-button":_ref$id,_ref$maxItemsVisible=_ref3.maxItemsVisible,maxItemsVisible=_ref$maxItemsVisible===void 0?6:_ref$maxItemsVisible,icon2=_ref3.icon,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$disableRipple=_ref3.disableRipple,disableRipple=_ref$disableRipple===void 0?false:_ref$disableRipple,otherProps=_objectWithoutProperties$1(_ref3,_excluded$1);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),anchorEl=_useState2[0],setAnchorEl=_useState2[1];var open=Boolean(anchorEl);var handleClick=function handleClick2(event){setAnchorEl(event.currentTarget);};var handleClose=function handleClose2(){setAnchorEl(null);};return/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsx$1(IconButton,{id:id,"aria-controls":open?"".concat(id,"-menu"):void 0,"aria-expanded":open?"true":void 0,"aria-haspopup":"true",onClick:handleClick,disableRipple:disableRipple,children:icon2!==null&&icon2!==void 0?icon2:/* @__PURE__ */jsx$1(CustomIcon,{color:getColor("grey","900"),children:/* @__PURE__ */jsx$1(MoreVertIcon,{})})}),/* @__PURE__ */jsx$1(Menu$2,_objectSpread2$1(_objectSpread2$1({id:"".concat(id,"-menu"),anchorEl:anchorEl,open:open,onClose:handleClose,disableScrollLock:true,slotProps:{list:{"aria-labelledby":id},transition:Grow},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:menuPaperSx(size2,maxItemsVisible)},otherProps),{},{children:lodashExports.map(items,function(item2,index2){var _item$size;return/* @__PURE__ */jsx$1(MenuItemComponent,_objectSpread2$1(_objectSpread2$1({},item2),{},{size:(_item$size=item2.size)!==null&&_item$size!==void 0?_item$size:size2,onClose:handleClose}),index2);})}))]});};var overlay="warningModal-module_overlay_X5HPw";var modal="warningModal-module_modal_Co-2N";var body="warningModal-module_body_MgD8L";var title$2="warningModal-module_title_kZiTR";var content="warningModal-module_content_3IB6x";var styles$4={overlay:overlay,modal:modal,body:body,"help-container":"warningModal-module_help-container_hsnyD","header-icon":"warningModal-module_header-icon_qOIRS",title:title$2,content:content};var _excluded=["icon","onSave","onCancel","description","onClickGuide","onChangeDontShowAgain","cancelLabel","confirmLabel","title","dontShowAgainLabel"];var DefaultIcon=/* @__PURE__ */jsx$1(CustomIcon,{size:"32",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})});var HelpContainer=/* @__PURE__ */React__default.memo(function(_ref3){var onClickGuide=_ref3.onClickGuide;if(!onClickGuide)return null;return/* @__PURE__ */jsx$1("div",{className:styles$4["help-container"],children:/* @__PURE__ */jsx$1(CustomIcon,{"aria-label":locale("guide"),color:getColor("primary","500"),onClick:function onClick(){return onClickGuide===null||onClickGuide===void 0?void 0:onClickGuide(new MouseEvent("click"));},children:/* @__PURE__ */jsx$1(AutoStoriesIcon,{})})});});var WarningModal=function WarningModal2(_ref22){var icon2=_ref22.icon,onSave=_ref22.onSave,onCancel=_ref22.onCancel,description2=_ref22.description,onClickGuide=_ref22.onClickGuide,onChangeDontShowAgain=_ref22.onChangeDontShowAgain,_ref2$cancelLabel=_ref22.cancelLabel,cancelLabel=_ref2$cancelLabel===void 0?locale("cancel"):_ref2$cancelLabel,_ref2$confirmLabel=_ref22.confirmLabel,confirmLabel=_ref2$confirmLabel===void 0?locale("continue"):_ref2$confirmLabel,_ref2$title=_ref22.title,title2=_ref2$title===void 0?locale("warningModal.warning"):_ref2$title,_ref2$dontShowAgainLa=_ref22.dontShowAgainLabel,dontShowAgainLabel=_ref2$dontShowAgainLa===void 0?locale("warningModal.dontShowAgain"):_ref2$dontShowAgainLa,props=_objectWithoutProperties$1(_ref22,_excluded);return/* @__PURE__ */jsx$1(Modal,{open:true,onClose:onCancel,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:styles$4["overlay"],children:/* @__PURE__ */jsxs("div",{className:styles$4["modal"],role:"dialog","aria-modal":"true",children:[/* @__PURE__ */jsxs("div",{className:styles$4["body"],children:[/* @__PURE__ */jsx$1(HelpContainer,{onClickGuide:onClickGuide}),/* @__PURE__ */jsxs("div",{className:styles$4["header-icon"],children:[!!icon2?icon2:DefaultIcon,/* @__PURE__ */jsx$1("div",{id:"modal-modal-title",className:styles$4["title"],children:title2})]}),/* @__PURE__ */jsxs("div",{className:styles$4["content"],children:[/* @__PURE__ */jsxs("span",{id:"modal-modal-description",children:[" ",description2," "]}),onChangeDontShowAgain&&/* @__PURE__ */jsx$1(CheckboxInput,_objectSpread2$1({name:"dont-show-again",label:dontShowAgainLabel,onChange:onChangeDontShowAgain},props))]})]}),/* @__PURE__ */jsx$1(ActionBar,{variant:"modal",cancelProps:{onCancel:onCancel,label:cancelLabel},saveProps:{onSave:onSave,label:confirmLabel,variant:"primary",size:"md"}})]})});};function arrayMap$2(array,iteratee){var index2=-1,length2=array==null?0:array.length,result=Array(length2);while(++index2<length2){result[index2]=iteratee(array[index2],index2,array);}return result;}var _arrayMap=arrayMap$2;function listCacheClear$1(){this.__data__=[];this.size=0;}var _listCacheClear=listCacheClear$1;function eq$2(value,other){return value===other||value!==value&&other!==other;}var eq_1=eq$2;var eq$1=eq_1;function assocIndexOf$4(array,key){var length2=array.length;while(length2--){if(eq$1(array[length2][0],key)){return length2;}}return-1;}var _assocIndexOf=assocIndexOf$4;var assocIndexOf$3=_assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete$1(key){var data=this.__data__,index2=assocIndexOf$3(data,key);if(index2<0){return false;}var lastIndex=data.length-1;if(index2==lastIndex){data.pop();}else{splice.call(data,index2,1);}--this.size;return true;}var _listCacheDelete=listCacheDelete$1;var assocIndexOf$2=_assocIndexOf;function listCacheGet$1(key){var data=this.__data__,index2=assocIndexOf$2(data,key);return index2<0?void 0:data[index2][1];}var _listCacheGet=listCacheGet$1;var assocIndexOf$1=_assocIndexOf;function listCacheHas$1(key){return assocIndexOf$1(this.__data__,key)>-1;}var _listCacheHas=listCacheHas$1;var assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index2=assocIndexOf(data,key);if(index2<0){++this.size;data.push([key,value]);}else{data[index2][1]=value;}return this;}var _listCacheSet=listCacheSet$1;var listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype["delete"]=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4;var ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3();this.size=0;}var _stackClear=stackClear$1;function stackDelete$1(key){var data=this.__data__,result=data["delete"](key);this.size=data.size;return result;}var _stackDelete=stackDelete$1;function stackGet$1(key){return this.__data__.get(key);}var _stackGet=stackGet$1;function stackHas$1(key){return this.__data__.has(key);}var _stackHas=stackHas$1;var freeGlobal$1=_typeof2(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;var freeGlobal=_freeGlobal;var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self&&self.Object===Object&&self;var root$8=freeGlobal||freeSelf||Function("return this")();var _root=root$8;var root$7=_root;var Symbol$5=root$7.Symbol;var _Symbol=Symbol$5;var Symbol$4=_Symbol;var objectProto$b=Object.prototype;var hasOwnProperty$9=objectProto$b.hasOwnProperty;var nativeObjectToString$1=objectProto$b.toString;var symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(value){var isOwn=hasOwnProperty$9.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=true;}catch(e){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag;}else{delete value[symToStringTag$1];}}return result;}var _getRawTag=getRawTag$1;var objectProto$a=Object.prototype;var nativeObjectToString=objectProto$a.toString;function objectToString$1(value){return nativeObjectToString.call(value);}var _objectToString=objectToString$1;var Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(value){if(value==null){return value===void 0?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}var _baseGetTag=baseGetTag$5;function isObject$4(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}var isObject_1=isObject$4;var baseGetTag$4=_baseGetTag,isObject$3=isObject_1;var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(value){if(!isObject$3(value)){return false;}var tag=baseGetTag$4(value);return tag==funcTag$1||tag==genTag||tag==asyncTag||tag==proxyTag;}var isFunction_1=isFunction$2;var root$6=_root;var coreJsData$1=root$6["__core-js_shared__"];var _coreJsData=coreJsData$1;var coreJsData=_coreJsData;var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:"";}();function isMasked$1(func){return!!maskSrcKey&&maskSrcKey in func;}var _isMasked=isMasked$1;var funcProto$1=Function.prototype;var funcToString$1=funcProto$1.toString;function toSource$2(func){if(func!=null){try{return funcToString$1.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}var _toSource=toSource$2;var isFunction$1=isFunction_1,isMasked=_isMasked,isObject$2=isObject_1,toSource$1=_toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto=Function.prototype,objectProto$9=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$8=objectProto$9.hasOwnProperty;var reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(value){if(!isObject$2(value)||isMasked(value)){return false;}var pattern=isFunction$1(value)?reIsNative:reIsHostCtor;return pattern.test(toSource$1(value));}var _baseIsNative=baseIsNative$1;function getValue$1(object,key){return object==null?void 0:object[key];}var _getValue=getValue$1;var baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0;}var _getNative=getNative$6;var getNative$5=_getNative,root$5=_root;var Map$4=getNative$5(root$5,"Map");var _Map=Map$4;var getNative$4=_getNative;var nativeCreate$4=getNative$4(Object,"create");var _nativeCreate=nativeCreate$4;var nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{};this.size=0;}var _hashClear=hashClear$1;function hashDelete$1(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}var _hashDelete=hashDelete$1;var nativeCreate$2=_nativeCreate;var HASH_UNDEFINED$2="__lodash_hash_undefined__";var objectProto$8=Object.prototype;var hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return result===HASH_UNDEFINED$2?void 0:result;}return hasOwnProperty$7.call(data,key)?data[key]:void 0;}var _hashGet=hashGet$1;var nativeCreate$1=_nativeCreate;var objectProto$7=Object.prototype;var hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(key){var data=this.__data__;return nativeCreate$1?data[key]!==void 0:hasOwnProperty$6.call(data,key);}var _hashHas=hashHas$1;var nativeCreate=_nativeCreate;var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===void 0?HASH_UNDEFINED$1:value;return this;}var _hashSet=hashSet$1;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}Hash$1.prototype.clear=hashClear;Hash$1.prototype["delete"]=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;var Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0;this.__data__={"hash":new Hash(),"map":new(Map$3||ListCache$2)(),"string":new Hash()};}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}var _isKeyable=isKeyable$1;var isKeyable=_isKeyable;function getMapData$4(map2,key){var data=map2.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map;}var _getMapData=getMapData$4;var getMapData$3=_getMapData;function mapCacheDelete$1(key){var result=getMapData$3(this,key)["delete"](key);this.size-=result?1:0;return result;}var _mapCacheDelete=mapCacheDelete$1;var getMapData$2=_getMapData;function mapCacheGet$1(key){return getMapData$2(this,key).get(key);}var _mapCacheGet=mapCacheGet$1;var getMapData$1=_getMapData;function mapCacheHas$1(key){return getMapData$1(this,key).has(key);}var _mapCacheHas=mapCacheHas$1;var getMapData=_getMapData;function mapCacheSet$1(key,value){var data=getMapData(this,key),size2=data.size;data.set(key,value);this.size+=data.size==size2?0:1;return this;}var _mapCacheSet=mapCacheSet$1;var mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype["delete"]=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3;var ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache;var LARGE_ARRAY_SIZE=200;function stackSet$1(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map$2||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache$2(pairs);}data.set(key,value);this.size=data.size;return this;}var _stackSet=stackSet$1;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}Stack$2.prototype.clear=stackClear;Stack$2.prototype["delete"]=stackDelete;Stack$2.prototype.get=stackGet;Stack$2.prototype.has=stackHas;Stack$2.prototype.set=stackSet;var _Stack=Stack$2;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(value){this.__data__.set(value,HASH_UNDEFINED);return this;}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(value){return this.__data__.has(value);}var _setCacheHas=setCacheHas$1;var MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(values2){var index2=-1,length2=values2==null?0:values2.length;this.__data__=new MapCache$1();while(++index2<length2){this.add(values2[index2]);}}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(predicate(array[index2],index2,array)){return true;}}return false;}var _arraySome=arraySome$1;function cacheHas$1(cache,key){return cache.has(key);}var _cacheHas=cacheHas$1;var SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas;var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$5,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache():void 0;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==void 0){if(compared){continue;}result=false;break;}if(seen){if(!arraySome(other,function(othValue2,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack["delete"](array);stack["delete"](other);return result;}var _equalArrays=equalArrays$2;var root$4=_root;var Uint8Array$1=root$4.Uint8Array;var _Uint8Array=Uint8Array$1;function mapToArray$1(map2){var index2=-1,result=Array(map2.size);map2.forEach(function(value,key){result[++index2]=[key,value];});return result;}var _mapToArray=mapToArray$1;function setToArray$1(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=value;});return result;}var _setToArray=setToArray$1;var Symbol$2=_Symbol,Uint8Array2=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray;var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;var boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]";var arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]";var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag$1(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag$2:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag$1:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array2(object),new Uint8Array2(other))){return false;}return true;case boolTag$1:case dateTag$1:case numberTag$1:return eq(+object,+other);case errorTag$1:return object.name==other.name&&object.message==other.message;case regexpTag$1:case stringTag$1:return object==other+"";case mapTag$2:var convert=mapToArray;case setTag$2:var isPartial=bitmask&COMPARE_PARTIAL_FLAG$4;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG$2;stack.set(object,other);var result=equalArrays$1(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result;case symbolTag$1:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other);}}return false;}var _equalByTag=equalByTag$1;function arrayPush$1(array,values2){var index2=-1,length2=values2.length,offset2=array.length;while(++index2<length2){array[offset2+index2]=values2[index2];}return array;}var _arrayPush=arrayPush$1;var isArray$9=Array.isArray;var isArray_1=isArray$9;var arrayPush=_arrayPush,isArray$8=isArray_1;function baseGetAllKeys$1(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$8(object)?result:arrayPush(result,symbolsFunc(object));}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(array,predicate){var index2=-1,length2=array==null?0:array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result[resIndex++]=value;}}return result;}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[];}var stubArray_1=stubArray$1;var arrayFilter=_arrayFilter,stubArray=stubArray_1;var objectProto$6=Object.prototype;var propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols$1=!nativeGetSymbols?stubArray:function(object){if(object==null){return[];}object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable$1.call(object,symbol);});};var _getSymbols=getSymbols$1;function baseTimes$1(n,iteratee){var index2=-1,result=Array(n);while(++index2<n){result[index2]=iteratee(index2);}return result;}var _baseTimes=baseTimes$1;function isObjectLike$5(value){return value!=null&&_typeof2(value)=="object";}var isObjectLike_1=isObjectLike$5;var baseGetTag$3=_baseGetTag,isObjectLike$4=isObjectLike_1;var argsTag$2="[object Arguments]";function baseIsArguments$1(value){return isObjectLike$4(value)&&baseGetTag$3(value)==argsTag$2;}var _baseIsArguments=baseIsArguments$1;var baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1;var objectProto$5=Object.prototype;var hasOwnProperty$5=objectProto$5.hasOwnProperty;var propertyIsEnumerable=objectProto$5.propertyIsEnumerable;var isArguments$2=baseIsArguments(/* @__PURE__ */function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike$3(value)&&hasOwnProperty$5.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee");};var isArguments_1=isArguments$2;var isBuffer$2={exports:{}};function stubFalse(){return false;}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(module,exports){var root2=_root,stubFalse2=stubFalse_1;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer2=moduleExports?root2.Buffer:void 0;var nativeIsBuffer=Buffer2?Buffer2.isBuffer:void 0;var isBuffer2=nativeIsBuffer||stubFalse2;module.exports=isBuffer2;})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports;var MAX_SAFE_INTEGER$1=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER$1:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length2;}var _isIndex=isIndex$2;var MAX_SAFE_INTEGER=9007199254740991;function isLength$3(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}var isLength_1=isLength$3;var baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$2=isObjectLike_1;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=false;function baseIsTypedArray$1(value){return isObjectLike$2(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$2(value)];}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(func){return function(value){return func(value);};}var _baseUnary=baseUnary$1;var _nodeUtil={exports:{}};_nodeUtil.exports;(function(module,exports){var freeGlobal2=_freeGlobal;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal2.process;var nodeUtil2=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types;}return freeProcess&&freeProcess.binding&&freeProcess.binding("util");}catch(e){}}();module.exports=nodeUtil2;})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports;var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports;var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var isTypedArray_1=isTypedArray$2;var baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$1=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1;var objectProto$4=Object.prototype;var hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(value,inherited){var isArr=isArray$7(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$1(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length2=result.length;for(var key in value){if((inherited||hasOwnProperty$4.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
7061
|
+
key=="length"||// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
7062
|
+
isBuff&&(key=="offset"||key=="parent")||// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
7063
|
+
isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||// Skip index properties.
|
|
7064
|
+
isIndex$1(key,length2)))){result.push(key);}}return result;}var _arrayLikeKeys=arrayLikeKeys$1;var objectProto$3=Object.prototype;function isPrototype$1(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto$3;return value===proto;}var _isPrototype=isPrototype$1;function overArg$1(func,transform){return function(arg2){return func(transform(arg2));};}var _overArg=overArg$1;var overArg=_overArg;var nativeKeys$1=overArg(Object.keys,Object);var _nativeKeys=nativeKeys$1;var isPrototype=_isPrototype,nativeKeys=_nativeKeys;var objectProto$2=Object.prototype;var hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(object){if(!isPrototype(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty$3.call(object,key)&&key!="constructor"){result.push(key);}}return result;}var _baseKeys=baseKeys$1;var isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$4(value){return value!=null&&isLength$1(value.length)&&!isFunction(value);}var isArrayLike_1=isArrayLike$4;var arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$3=isArrayLike_1;function keys$4(object){return isArrayLike$3(object)?arrayLikeKeys(object):baseKeys(object);}var keys_1=keys$4;var baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$3=keys_1;function getAllKeys$1(object){return baseGetAllKeys(object,keys$3,getSymbols);}var _getAllKeys=getAllKeys$1;var getAllKeys=_getAllKeys;var COMPARE_PARTIAL_FLAG$3=1;var objectProto$1=Object.prototype;var hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$3,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index2=objLength;while(index2--){var key=objProps[index2];if(!(isPartial?key in other:hasOwnProperty$2.call(other,key))){return false;}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index2<objLength){key=objProps[index2];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}if(!(compared===void 0?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=="constructor");}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result=false;}}stack["delete"](object);stack["delete"](other);return result;}var _equalObjects=equalObjects$1;var getNative$3=_getNative,root$3=_root;var DataView$1=getNative$3(root$3,"DataView");var _DataView=DataView$1;var getNative$2=_getNative,root$2=_root;var Promise$2=getNative$2(root$2,"Promise");var _Promise=Promise$2;var getNative$1=_getNative,root$1=_root;var Set$2=getNative$1(root$1,"Set");var _Set=Set$2;var getNative=_getNative,root=_root;var WeakMap$2=getNative(root,"WeakMap");var _WeakMap=WeakMap$2;var DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$1=_baseGetTag,toSource=_toSource;var mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]";var dataViewTag="[object DataView]";var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1);var getTag$1=baseGetTag$1;if(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1())!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1())!=setTag||WeakMap$1&&getTag$1(new WeakMap$1())!=weakMapTag){getTag$1=function getTag$1(value){var result=baseGetTag$1(value),Ctor=result==objectTag$1?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}var _getTag=getTag$1;var Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$6=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1;var COMPARE_PARTIAL_FLAG$2=1;var argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]";var objectProto=Object.prototype;var hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray$6(object),othIsArr=isArray$6(other),objTag=objIsArr?arrayTag:getTag(object),othTag=othIsArr?arrayTag:getTag(other);objTag=objTag==argsTag?objectTag:objTag;othTag=othTag==argsTag?objectTag:othTag;var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack$1());return objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG$2)){var objIsWrapped=objIsObj&&hasOwnProperty$1.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty$1.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack$1());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack$1());return equalObjects(object,other,bitmask,customizer,equalFunc,stack);}var _baseIsEqualDeep=baseIsEqualDeep$1;var baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$2(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike$1(value)&&!isObjectLike$1(other)){return value!==value&&other!==other;}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual$2,stack);}var _baseIsEqual=baseIsEqual$2;var Stack=_Stack,baseIsEqual$1=_baseIsEqual;var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(object,source,matchData,customizer){var index2=matchData.length,length2=index2,noCustomizer=!customizer;if(object==null){return!length2;}object=Object(object);while(index2--){var data=matchData[index2];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index2<length2){data=matchData[index2];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===void 0&&!(key in object)){return false;}}else{var stack=new Stack();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===void 0?baseIsEqual$1(srcValue,objValue,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,customizer,stack):result)){return false;}}}return true;}var _baseIsMatch=baseIsMatch$1;var isObject$1=isObject_1;function isStrictComparable$2(value){return value===value&&!isObject$1(value);}var _isStrictComparable=isStrictComparable$2;var isStrictComparable$1=_isStrictComparable,keys$2=keys_1;function getMatchData$1(object){var result=keys$2(object),length2=result.length;while(length2--){var key=result[length2],value=object[key];result[length2]=[key,value,isStrictComparable$1(value)];}return result;}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==void 0||key in Object(object));};}var _matchesStrictComparable=matchesStrictComparable$2;var baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable$1(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch(object,source,matchData);};}var _baseMatches=baseMatches$1;var baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1;var symbolTag="[object Symbol]";function isSymbol$4(value){return _typeof2(value)=="symbol"||isObjectLike(value)&&baseGetTag(value)==symbolTag;}var isSymbol_1=isSymbol$4;var isArray$5=isArray_1,isSymbol$3=isSymbol_1;var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(value,object){if(isArray$5(value)){return false;}var type=_typeof2(value);if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol$3(value)){return true;}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object);}var _isKey=isKey$3;var MapCache=_MapCache;var FUNC_ERROR_TEXT="Expected a function";function memoize$2(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError(FUNC_ERROR_TEXT);}var _memoized2=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized2.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);_memoized2.cache=cache.set(key,result)||cache;return result;};_memoized2.cache=new(memoize$2.Cache||MapCache)();return _memoized2;}memoize$2.Cache=MapCache;var memoize_1=memoize$2;var memoize$1=memoize_1;var MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(func){var result=memoize$1(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear();}return key;});var cache=result.cache;return result;}var _memoizeCapped=memoizeCapped$1;var memoizeCapped=_memoizeCapped;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath$1=memoizeCapped(function(string){var result=[];if(string.charCodeAt(0)===46){result.push("");}string.replace(rePropName,function(match2,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match2);});return result;});var _stringToPath=stringToPath$1;var Symbol$1=_Symbol,arrayMap$1=_arrayMap,isArray$4=isArray_1,isSymbol$2=isSymbol_1;var symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(value){if(typeof value=="string"){return value;}if(isArray$4(value)){return arrayMap$1(value,baseToString$1)+"";}if(isSymbol$2(value)){return symbolToString?symbolToString.call(value):"";}var result=value+"";return result=="0"&&1/value==-Infinity?"-0":result;}var _baseToString=baseToString$1;var baseToString=_baseToString;function toString$1(value){return value==null?"":baseToString(value);}var toString_1=toString$1;var isArray$3=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=toString_1;function castPath$2(value,object){if(isArray$3(value)){return value;}return isKey$2(value,object)?[value]:stringToPath(toString(value));}var _castPath=castPath$2;var isSymbol$1=isSymbol_1;function toKey$4(value){if(typeof value=="string"||isSymbol$1(value)){return value;}var result=value+"";return result=="0"&&1/value==-Infinity?"-0":result;}var _toKey=toKey$4;var castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(object,path){path=castPath$1(path,object);var index2=0,length2=path.length;while(object!=null&&index2<length2){object=object[toKey$3(path[index2++])];}return index2&&index2==length2?object:void 0;}var _baseGet=baseGet$2;var baseGet$1=_baseGet;function get$1(object,path,defaultValue){var result=object==null?void 0:baseGet$1(object,path);return result===void 0?defaultValue:result;}var get_1=get$1;function baseHasIn$1(object,key){return object!=null&&key in Object(object);}var _baseHasIn=baseHasIn$1;var castPath=_castPath,isArguments=isArguments_1,isArray$2=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(object,path,hasFunc){path=castPath(path,object);var index2=-1,length2=path.length,result=false;while(++index2<length2){var key=toKey$2(path[index2]);if(!(result=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result||++index2!=length2){return result;}length2=object==null?0:object.length;return!!length2&&isLength(length2)&&isIndex(key,length2)&&(isArray$2(object)||isArguments(object));}var _hasPath=hasPath$1;var baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(object,path){return object!=null&&hasPath(object,path,baseHasIn);}var hasIn_1=hasIn$1;var baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey;var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(path,srcValue){if(isKey$1(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey$1(path),srcValue);}return function(object){var objValue=get(object,path);return objValue===void 0&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG);};}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(value){return value;}var identity_1=identity$1;function baseProperty$1(key){return function(object){return object==null?void 0:object[key];};}var _baseProperty=baseProperty$1;var baseGet=_baseGet;function basePropertyDeep$1(path){return function(object){return baseGet(object,path);};}var _basePropertyDeep=basePropertyDeep$1;var baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path);}var property_1=property$1;var baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$3(value){if(typeof value=="function"){return value;}if(value==null){return identity;}if(_typeof2(value)=="object"){return isArray$1(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value);}return property(value);}var _baseIteratee=baseIteratee$3;function createBaseFor$1(fromRight){return function(object,iteratee,keysFunc){var index2=-1,iterable=Object(object),props=keysFunc(object),length2=props.length;while(length2--){var key=props[fromRight?length2:++index2];if(iteratee(iterable[key],key,iterable)===false){break;}}return object;};}var _createBaseFor=createBaseFor$1;var createBaseFor=_createBaseFor;var baseFor$1=createBaseFor();var _baseFor=baseFor$1;var baseFor=_baseFor,keys$1=keys_1;function baseForOwn$1(object,iteratee){return object&&baseFor(object,iteratee,keys$1);}var _baseForOwn=baseForOwn$1;var isArrayLike$2=isArrayLike_1;function createBaseEach$1(eachFunc,fromRight){return function(collection,iteratee){if(collection==null){return collection;}if(!isArrayLike$2(collection)){return eachFunc(collection,iteratee);}var length2=collection.length,index2=fromRight?length2:-1,iterable=Object(collection);while(fromRight?index2--:++index2<length2){if(iteratee(iterable[index2],index2,iterable)===false){break;}}return collection;};}var _createBaseEach=createBaseEach$1;var baseForOwn=_baseForOwn,createBaseEach=_createBaseEach;var baseEach$1=createBaseEach(baseForOwn);var _baseEach=baseEach$1;var baseEach=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$1(collection,iteratee){var index2=-1,result=isArrayLike$1(collection)?Array(collection.length):[];baseEach(collection,function(value,key,collection2){result[++index2]=iteratee(value,key,collection2);});return result;}var _baseMap=baseMap$1;var arrayMap=_arrayMap,baseIteratee$2=_baseIteratee,baseMap=_baseMap,isArray=isArray_1;function map(collection,iteratee){var func=isArray(collection)?arrayMap:baseMap;return func(collection,baseIteratee$2(iteratee));}var map_1=map;var map$1=/* @__PURE__ */getDefaultExportFromCjs(map_1);var baseIteratee$1=_baseIteratee,isArrayLike=isArrayLike_1,keys=keys_1;function createFind$1(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=baseIteratee$1(predicate);collection=keys(collection);predicate=function predicate(key){return iteratee(iterable[key],key,iterable);};}var index2=findIndexFunc(collection,predicate,fromIndex);return index2>-1?iterable[iteratee?collection[index2]:index2]:void 0;};}var _createFind=createFind$1;function baseFindIndex$1(array,predicate,fromIndex,fromRight){var length2=array.length,index2=fromIndex+(fromRight?1:-1);while(fromRight?index2--:++index2<length2){if(predicate(array[index2],index2,array)){return index2;}}return-1;}var _baseFindIndex=baseFindIndex$1;var reWhitespace=/\s/;function trimmedEndIndex$1(string){var index2=string.length;while(index2--&&reWhitespace.test(string.charAt(index2))){}return index2;}var _trimmedEndIndex=trimmedEndIndex$1;var trimmedEndIndex=_trimmedEndIndex;var reTrimStart=/^\s+/;function baseTrim$1(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string;}var _baseTrim=baseTrim$1;var baseTrim=_baseTrim,isObject=isObject_1,isSymbol=isSymbol_1;var NAN=0/0;var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;var reIsBinary=/^0b[01]+$/i;var reIsOctal=/^0o[0-7]+$/i;var freeParseInt=parseInt;function toNumber$1(value){if(typeof value=="number"){return value;}if(isSymbol(value)){return NAN;}if(isObject(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject(other)?other+"":other;}if(typeof value!="string"){return value===0?value:+value;}value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}var toNumber_1=toNumber$1;var toNumber=toNumber_1;var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(value){if(!value){return value===0?value:0;}value=toNumber(value);if(value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER;}return value===value?value:0;}var toFinite_1=toFinite$1;var toFinite=toFinite_1;function toInteger$1(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0;}var toInteger_1=toInteger$1;var baseFindIndex=_baseFindIndex,baseIteratee=_baseIteratee,toInteger=toInteger_1;var nativeMax=Math.max;function findIndex$1(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger(fromIndex);if(index2<0){index2=nativeMax(length2+index2,0);}return baseFindIndex(array,baseIteratee(predicate),index2);}var findIndex_1=findIndex$1;var createFind=_createFind,findIndex=findIndex_1;var find=createFind(findIndex);var find_1=find;var find$1=/* @__PURE__ */getDefaultExportFromCjs(find_1);function isUndefined(value){return value===void 0;}var isUndefined_1=isUndefined;var isUndefined$1=/* @__PURE__ */getDefaultExportFromCjs(isUndefined_1);var tabs="tabs-module_tabs_UMeM9";var list="tabs-module_list_rsWgV";var tab="tabs-module_tab_qi523";var label="tabs-module_label_gXlYw";var active$2="tabs-module_active_PvUYu";var disabled$1="tabs-module_disabled_Lue6Q";var styles$3={tabs:tabs,list:list,tab:tab,label:label,active:active$2,disabled:disabled$1};var Tabs2=function Tabs3(_ref3){var sx=_ref3.sx,items=_ref3.items,value=_ref3.value,onChange2=_ref3.onChange,defaultValue=_ref3.defaultValue;var _React$useState=React__default.useState(defaultValue),_React$useState2=_slicedToArray$1(_React$useState,2),internalValue=_React$useState2[0],setInternalValue=_React$useState2[1];var activeId=!isUndefined$1(value)?value:internalValue;var firstEnabledId=useMemo(function(){var _find;return(_find=find$1(items,function(i){return!i.disabled;}))===null||_find===void 0?void 0:_find.id;},[items]);var combinedSx=useMemo(function(){return sxTabs(sx);},[sx]);useEffect(function(){if(activeId===void 0){setInternalValue(firstEnabledId);}},[activeId,firstEnabledId]);var _handleSelect=function _handleSelect2(_event,newValue){var _itemSelected$onClick;var selectedId=String(newValue);var itemSelected=find$1(items,function(item2){return item2.id===selectedId;});if(itemSelected!==null&&itemSelected!==void 0&&itemSelected.disabled)return;if(value===void 0)setInternalValue(selectedId);onChange2===null||onChange2===void 0||onChange2(itemSelected);itemSelected===null||itemSelected===void 0||(_itemSelected$onClick=itemSelected.onClick)===null||_itemSelected$onClick===void 0||_itemSelected$onClick.call(itemSelected);};var _handleTabClick=function _handleTabClick2(item2,event){if(item2.disabled)return;if(item2.href){var isCtrlClick=event.ctrlKey||event.metaKey;var isMiddleClick=event.button===1;var isTargetBlank=item2.target==="_blank";if(isCtrlClick||isMiddleClick||isTargetBlank){event.preventDefault();window.open(item2.href,"_blank");return;}}};return/* @__PURE__ */jsx$1("div",{className:clsx(styles$3["tabs"]),children:/* @__PURE__ */jsx$1(Tabs$1,{sx:combinedSx,value:activeId,"aria-label":"tabs",onChange:_handleSelect,className:styles$3["list"],children:map$1(items,function(item2){var id=item2.id;item2.href;var label2=item2.label,disabled2=item2.disabled;return/* @__PURE__ */jsx$1(Tab,{value:id,sx:sxTab,disableRipple:true,component:"button",disabled:disabled2,label:/* @__PURE__ */jsx$1("span",{className:styles$3["label"],children:label2}),onClick:function onClick(e){return _handleTabClick(item2,e);},className:clsx(styles$3["tab"],_defineProperty$1(_defineProperty$1({},styles$3["active"],id===activeId),styles$3["disabled"],disabled2))},id);})})});};var sxTabs=function sxTabs2(sxListStyles){return{padding:0,minHeight:0,"& .MuiTabs-list":_objectSpread2$1({gap:"24px",padding:"0 32px"},sxListStyles||{}),"& .MuiTabs-indicator":{borderRadius:"48px",backgroundColor:getColor("primary","500")}};};var sxTab={padding:0,minHeight:0};var card="card-module_card_HG0v6";var header$1="card-module_header_Jtd2-";var title$1="card-module_title_9LIjW";var description="card-module_description_nxqlH";var disabled="card-module_disabled_Zdzj7";var active$1="card-module_active_dTNAe";var styles$2={card:card,header:header$1,title:title$1,description:description,disabled:disabled,active:active$1};var Card=function Card2(_ref3){var icon2=_ref3.icon,title2=_ref3.title,description2=_ref3.description,_ref$isActive=_ref3.isActive,isActive=_ref$isActive===void 0?false:_ref$isActive,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,onClick=_ref3.onClick,sx=_ref3.sx;return/* @__PURE__ */jsxs("div",{className:clsx(styles$2.card,_defineProperty$1(_defineProperty$1({},styles$2.disabled,disabled2),styles$2.active,isActive)),onClick:onClick,style:sx,children:[/* @__PURE__ */jsxs("div",{className:styles$2.header,children:[!!icon2&&icon2,!!title2&&/* @__PURE__ */jsx$1("div",{className:styles$2.title,children:title2})]}),!!description2&&/* @__PURE__ */jsx$1("span",{className:styles$2.description,dangerouslySetInnerHTML:{__html:description2}})]},title2);};/*! *****************************************************************************
|
|
7061
7065
|
Copyright (c) Microsoft Corporation.
|
|
7062
7066
|
|
|
7063
7067
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -7070,7 +7074,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
7070
7074
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7071
7075
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7072
7076
|
PERFORMANCE OF THIS SOFTWARE.
|
|
7073
|
-
***************************************************************************** */var _assign=function __assign(){_assign=Object.assign||function __assign2(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return _assign.apply(this,arguments);};function __rest(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++){if(e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i]))t[p[i]]=s[p[i]];}return t;}function __makeTemplateObject(cooked,raw){if(Object.defineProperty){Object.defineProperty(cooked,"raw",{value:raw});}else{cooked.raw=raw;}return cooked;}function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function memoize(fn3){var cache=/* @__PURE__ */Object.create(null);return function(arg2){if(cache[arg2]===void 0)cache[arg2]=fn3(arg2);return cache[arg2];};}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;var isPropValid=/* @__PURE__ */memoize(function(prop){return reactPropsRegex.test(prop)||prop.charCodeAt(0)===111&&prop.charCodeAt(1)===110&&prop.charCodeAt(2)<91;}/* Z+1 */);function sheetForTag(tag){if(tag.sheet){return tag.sheet;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].ownerNode===tag){return document.styleSheets[i];}}}function createStyleElement(options){var tag=document.createElement("style");tag.setAttribute("data-emotion",options.key);if(options.nonce!==void 0){tag.setAttribute("nonce",options.nonce);}tag.appendChild(document.createTextNode(""));tag.setAttribute("data-s","");return tag;}var StyleSheet=/* @__PURE__ */function(){function StyleSheet2(options){var _this=this;this._insertTag=function(tag){var before;if(_this.tags.length===0){if(_this.insertionPoint){before=_this.insertionPoint.nextSibling;}else if(_this.prepend){before=_this.container.firstChild;}else{before=_this.before;}}else{before=_this.tags[_this.tags.length-1].nextSibling;}_this.container.insertBefore(tag,before);_this.tags.push(tag);};this.isSpeedy=options.speedy===void 0?process.env.NODE_ENV==="production":options.speedy;this.tags=[];this.ctr=0;this.nonce=options.nonce;this.key=options.key;this.container=options.container;this.prepend=options.prepend;this.insertionPoint=options.insertionPoint;this.before=null;}var _proto=StyleSheet2.prototype;_proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag);};_proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(createStyleElement(this));}var tag=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var isImportRule3=rule.charCodeAt(0)===64&&rule.charCodeAt(1)===105;if(isImportRule3&&this._alreadyInsertedOrderInsensitiveRule){console.error("You're attempting to insert the following rule:\n"+rule+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.");}this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!isImportRule3;}if(this.isSpeedy){var sheet=sheetForTag(tag);try{sheet.insertRule(rule,sheet.cssRules.length);}catch(e){if(process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)){console.error('There was a problem inserting the following rule: "'+rule+'"',e);}}}else{tag.appendChild(document.createTextNode(rule));}this.ctr++;};_proto.flush=function flush(){this.tags.forEach(function(tag){return tag.parentNode&&tag.parentNode.removeChild(tag);});this.tags=[];this.ctr=0;if(process.env.NODE_ENV!=="production"){this._alreadyInsertedOrderInsensitiveRule=false;}};return StyleSheet2;}();var MS="-ms-";var MOZ="-moz-";var WEBKIT="-webkit-";var COMMENT="comm";var RULESET="rule";var DECLARATION="decl";var IMPORT="@import";var KEYFRAMES="@keyframes";var abs=Math.abs;var from=String.fromCharCode;var assign=Object.assign;function hash$2(value,length2){return charat(value,0)^45?(((length2<<2^charat(value,0))<<2^charat(value,1))<<2^charat(value,2))<<2^charat(value,3):0;}function trim(value){return value.trim();}function match(value,pattern){return(value=pattern.exec(value))?value[0]:value;}function replace(value,pattern,replacement){return value.replace(pattern,replacement);}function indexof(value,search){return value.indexOf(search);}function charat(value,index2){return value.charCodeAt(index2)|0;}function substr(value,begin,end2){return value.slice(begin,end2);}function strlen(value){return value.length;}function sizeof(value){return value.length;}function append(value,array){return array.push(value),value;}function combine(array,callback){return array.map(callback).join("");}var line=1;var column=1;var length=0;var position=0;var character=0;var characters="";function node(value,root,parent,type,props,children,length2){return{value:value,root:root,parent:parent,type:type,props:props,children:children,line:line,column:column,length:length2,return:""};}function copy(root,props){return assign(node("",null,null,"",null,null,0),root,{length:-root.length},props);}function char(){return character;}function prev(){character=position>0?charat(characters,--position):0;if(column--,character===10)column=1,line--;return character;}function next(){character=position<length?charat(characters,position++):0;if(column++,character===10)column=1,line++;return character;}function peek(){return charat(characters,position);}function caret(){return position;}function slice(begin,end2){return substr(characters,begin,end2);}function token(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1;}return 0;}function alloc(value){return line=column=1,length=strlen(characters=value),position=0,[];}function dealloc(value){return characters="",value;}function delimit(type){return trim(slice(position-1,delimiter(type===91?type+2:type===40?type+1:type)));}function whitespace(type){while(character=peek())if(character<33)next();else break;return token(type)>2||token(character)>3?"":" ";}function escaping(index2,count2){while(--count2&&next())if(character<48||character>102||character>57&&character<65||character>70&&character<97)break;return slice(index2,caret()+(count2<6&&peek()==32&&next()==32));}function delimiter(type){while(next())switch(character){case type:return position;case 34:case 39:if(type!==34&&type!==39)delimiter(character);break;case 40:if(type===41)delimiter(type);break;case 92:next();break;}return position;}function commenter(type,index2){while(next())if(type+character===47+10)break;else if(type+character===42+42&&peek()===47)break;return"/*"+slice(index2,position-1)+"*"+from(type===47?type:next());}function identifier(index2){while(!token(peek()))next();return slice(index2,position);}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value));}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference2=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){if(indexof(characters2+=replace(delimit(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break;}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters2+="/";}break;case 123*variable:points[index2++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(property>0&&strlen(characters2)-length2)append(property>32?declaration(characters2+";",rule,parent,length2-1):declaration(replace(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append(reference2=ruleset(characters2,root,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse(characters2,root,reference2,reference2,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 109:case 115:parse(value,reference2,reference2,rule&&append(ruleset(value,reference2,reference2,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference2,reference2,reference2,[""],children,0,points,children);}}index2=offset2=property=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue;}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek()===45)characters2+=delimit(next());atrule=peek(),offset2=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:if(previous===45&&strlen(characters2)==2)variable=0;}}return rulesets;}function ruleset(value,root,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size2=sizeof(rule);for(var i=0,j=0,k=0;i<index2;++i)for(var x=0,y=substr(value,post+1,post=abs(j=points[i])),z=value;x<size2;++x)if(z=trim(j>0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))props[k++]=z;return node(value,root,parent,offset2===0?RULESET:type,props,children,length2);}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(char()),substr(value,2,-2),0);}function declaration(value,root,parent,length2){return node(value,root,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2);}function serialize(children,callback){var output="";var length2=sizeof(children);for(var i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output;}function stringify(element,index2,children,callback){switch(element.type){case IMPORT:case DECLARATION:return element.return=element.return||element.value;case COMMENT:return"";case KEYFRAMES:return element.return=element.value+"{"+serialize(element.children,callback)+"}";case RULESET:element.value=element.props.join(",");}return strlen(children=serialize(element.children,callback))?element.return=element.value+"{"+children+"}":"";}function middleware(collection){var length2=sizeof(collection);return function(element,index2,children,callback){var output="";for(var i=0;i<length2;i++)output+=collection[i](element,index2,children,callback)||"";return output;};}function rulesheet(callback){return function(element){if(!element.root){if(element=element.return)callback(element);}};}var weakMemoize=function weakMemoize2(func){var cache=/* @__PURE__ */new WeakMap();return function(arg2){if(cache.has(arg2)){return cache.get(arg2);}var ret=func(arg2);cache.set(arg2,ret);return ret;};};var identifierWithPointTracking2=function identifierWithPointTracking3(begin,points,index2){var previous=0;var character2=0;while(true){previous=character2;character2=peek();if(previous===38&&character2===12){points[index2]=1;}if(token(character2)){break;}next();}return slice(begin,position);};var toRules2=function toRules3(parsed,points){var index2=-1;var character2=44;do{switch(token(character2)){case 0:if(character2===38&&peek()===12){points[index2]=1;}parsed[index2]+=identifierWithPointTracking2(position-1,points,index2);break;case 2:parsed[index2]+=delimit(character2);break;case 4:if(character2===44){parsed[++index2]=peek()===58?"&\f":"";points[index2]=parsed[index2].length;break;}default:parsed[index2]+=from(character2);}}while(character2=next());return parsed;};var getRules2=function getRules3(value,points){return dealloc(toRules2(alloc(value),points));};var fixedElements=/* @__PURE__ */new WeakMap();var compat2=function compat3(element){if(element.type!=="rule"||!element.parent||// positive .length indicates that this rule contains pseudo
|
|
7077
|
+
***************************************************************************** */var _assign=function __assign(){_assign=Object.assign||function __assign2(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}return t;};return _assign.apply(this,arguments);};function __rest(s,e){var t={};for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0)t[p]=s[p];if(s!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++){if(e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i]))t[p[i]]=s[p[i]];}return t;}function __makeTemplateObject(cooked,raw){if(Object.defineProperty){Object.defineProperty(cooked,"raw",{value:raw});}else{cooked.raw=raw;}return cooked;}function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function memoize(fn3){var cache=/* @__PURE__ */Object.create(null);return function(arg2){if(cache[arg2]===void 0)cache[arg2]=fn3(arg2);return cache[arg2];};}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;var isPropValid=/* @__PURE__ */memoize(function(prop){return reactPropsRegex.test(prop)||prop.charCodeAt(0)===111&&prop.charCodeAt(1)===110&&prop.charCodeAt(2)<91;}/* Z+1 */);function sheetForTag(tag){if(tag.sheet){return tag.sheet;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].ownerNode===tag){return document.styleSheets[i];}}}function createStyleElement(options){var tag=document.createElement("style");tag.setAttribute("data-emotion",options.key);if(options.nonce!==void 0){tag.setAttribute("nonce",options.nonce);}tag.appendChild(document.createTextNode(""));tag.setAttribute("data-s","");return tag;}var StyleSheet=/* @__PURE__ */function(){function StyleSheet2(options){var _this=this;this._insertTag=function(tag){var before;if(_this.tags.length===0){if(_this.insertionPoint){before=_this.insertionPoint.nextSibling;}else if(_this.prepend){before=_this.container.firstChild;}else{before=_this.before;}}else{before=_this.tags[_this.tags.length-1].nextSibling;}_this.container.insertBefore(tag,before);_this.tags.push(tag);};this.isSpeedy=options.speedy===void 0?process.env.NODE_ENV==="production":options.speedy;this.tags=[];this.ctr=0;this.nonce=options.nonce;this.key=options.key;this.container=options.container;this.prepend=options.prepend;this.insertionPoint=options.insertionPoint;this.before=null;}var _proto=StyleSheet2.prototype;_proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag);};_proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(createStyleElement(this));}var tag=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var isImportRule3=rule.charCodeAt(0)===64&&rule.charCodeAt(1)===105;if(isImportRule3&&this._alreadyInsertedOrderInsensitiveRule){console.error("You're attempting to insert the following rule:\n"+rule+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.");}this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!isImportRule3;}if(this.isSpeedy){var sheet=sheetForTag(tag);try{sheet.insertRule(rule,sheet.cssRules.length);}catch(e){if(process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)){console.error('There was a problem inserting the following rule: "'+rule+'"',e);}}}else{tag.appendChild(document.createTextNode(rule));}this.ctr++;};_proto.flush=function flush(){this.tags.forEach(function(tag){return tag.parentNode&&tag.parentNode.removeChild(tag);});this.tags=[];this.ctr=0;if(process.env.NODE_ENV!=="production"){this._alreadyInsertedOrderInsensitiveRule=false;}};return StyleSheet2;}();var MS="-ms-";var MOZ="-moz-";var WEBKIT="-webkit-";var COMMENT="comm";var RULESET="rule";var DECLARATION="decl";var IMPORT="@import";var KEYFRAMES="@keyframes";var abs=Math.abs;var from=String.fromCharCode;var assign=Object.assign;function hash$2(value,length2){return charat(value,0)^45?(((length2<<2^charat(value,0))<<2^charat(value,1))<<2^charat(value,2))<<2^charat(value,3):0;}function trim(value){return value.trim();}function match(value,pattern){return(value=pattern.exec(value))?value[0]:value;}function replace(value,pattern,replacement){return value.replace(pattern,replacement);}function indexof(value,search){return value.indexOf(search);}function charat(value,index2){return value.charCodeAt(index2)|0;}function substr(value,begin,end2){return value.slice(begin,end2);}function strlen(value){return value.length;}function sizeof(value){return value.length;}function append(value,array){return array.push(value),value;}function combine(array,callback){return array.map(callback).join("");}var line=1;var column=1;var length=0;var position=0;var character=0;var characters="";function node(value,root2,parent,type,props,children,length2){return{value:value,root:root2,parent:parent,type:type,props:props,children:children,line:line,column:column,length:length2,return:""};}function copy(root2,props){return assign(node("",null,null,"",null,null,0),root2,{length:-root2.length},props);}function char(){return character;}function prev(){character=position>0?charat(characters,--position):0;if(column--,character===10)column=1,line--;return character;}function next(){character=position<length?charat(characters,position++):0;if(column++,character===10)column=1,line++;return character;}function peek(){return charat(characters,position);}function caret(){return position;}function slice(begin,end2){return substr(characters,begin,end2);}function token(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1;}return 0;}function alloc(value){return line=column=1,length=strlen(characters=value),position=0,[];}function dealloc(value){return characters="",value;}function delimit(type){return trim(slice(position-1,delimiter(type===91?type+2:type===40?type+1:type)));}function whitespace(type){while(character=peek())if(character<33)next();else break;return token(type)>2||token(character)>3?"":" ";}function escaping(index2,count2){while(--count2&&next())if(character<48||character>102||character>57&&character<65||character>70&&character<97)break;return slice(index2,caret()+(count2<6&&peek()==32&&next()==32));}function delimiter(type){while(next())switch(character){case type:return position;case 34:case 39:if(type!==34&&type!==39)delimiter(character);break;case 40:if(type===41)delimiter(type);break;case 92:next();break;}return position;}function commenter(type,index2){while(next())if(type+character===47+10)break;else if(type+character===42+42&&peek()===47)break;return"/*"+slice(index2,position-1)+"*"+from(type===47?type:next());}function identifier(index2){while(!token(peek()))next();return slice(index2,position);}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value));}function parse(value,root2,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property2=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference2=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){if(indexof(characters2+=replace(delimit(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break;}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root2,parent),declarations);break;default:characters2+="/";}break;case 123*variable:points[index2++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(property2>0&&strlen(characters2)-length2)append(property2>32?declaration(characters2+";",rule,parent,length2-1):declaration(replace(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append(reference2=ruleset(characters2,root2,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse(characters2,root2,reference2,reference2,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 109:case 115:parse(value,reference2,reference2,rule&&append(ruleset(value,reference2,reference2,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference2,reference2,reference2,[""],children,0,points,children);}}index2=offset2=property2=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen(characters2),property2=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue;}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek()===45)characters2+=delimit(next());atrule=peek(),offset2=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:if(previous===45&&strlen(characters2)==2)variable=0;}}return rulesets;}function ruleset(value,root2,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size2=sizeof(rule);for(var i=0,j=0,k=0;i<index2;++i)for(var x=0,y=substr(value,post+1,post=abs(j=points[i])),z=value;x<size2;++x)if(z=trim(j>0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))props[k++]=z;return node(value,root2,parent,offset2===0?RULESET:type,props,children,length2);}function comment(value,root2,parent){return node(value,root2,parent,COMMENT,from(char()),substr(value,2,-2),0);}function declaration(value,root2,parent,length2){return node(value,root2,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2);}function serialize(children,callback){var output="";var length2=sizeof(children);for(var i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output;}function stringify(element,index2,children,callback){switch(element.type){case IMPORT:case DECLARATION:return element.return=element.return||element.value;case COMMENT:return"";case KEYFRAMES:return element.return=element.value+"{"+serialize(element.children,callback)+"}";case RULESET:element.value=element.props.join(",");}return strlen(children=serialize(element.children,callback))?element.return=element.value+"{"+children+"}":"";}function middleware(collection){var length2=sizeof(collection);return function(element,index2,children,callback){var output="";for(var i=0;i<length2;i++)output+=collection[i](element,index2,children,callback)||"";return output;};}function rulesheet(callback){return function(element){if(!element.root){if(element=element.return)callback(element);}};}var weakMemoize=function weakMemoize2(func){var cache=/* @__PURE__ */new WeakMap();return function(arg2){if(cache.has(arg2)){return cache.get(arg2);}var ret=func(arg2);cache.set(arg2,ret);return ret;};};var identifierWithPointTracking2=function identifierWithPointTracking3(begin,points,index2){var previous=0;var character2=0;while(true){previous=character2;character2=peek();if(previous===38&&character2===12){points[index2]=1;}if(token(character2)){break;}next();}return slice(begin,position);};var toRules2=function toRules3(parsed,points){var index2=-1;var character2=44;do{switch(token(character2)){case 0:if(character2===38&&peek()===12){points[index2]=1;}parsed[index2]+=identifierWithPointTracking2(position-1,points,index2);break;case 2:parsed[index2]+=delimit(character2);break;case 4:if(character2===44){parsed[++index2]=peek()===58?"&\f":"";points[index2]=parsed[index2].length;break;}default:parsed[index2]+=from(character2);}}while(character2=next());return parsed;};var getRules2=function getRules3(value,points){return dealloc(toRules2(alloc(value),points));};var fixedElements=/* @__PURE__ */new WeakMap();var compat2=function compat3(element){if(element.type!=="rule"||!element.parent||// positive .length indicates that this rule contains pseudo
|
|
7074
7078
|
// negative .length indicates that this rule has been already prefixed
|
|
7075
7079
|
element.length<1){return;}var value=element.value,parent=element.parent;var isImplicitRule=element.column===parent.column&&element.line===parent.line;while(parent.type!=="rule"){parent=parent.parent;if(!parent)return;}if(element.props.length===1&&value.charCodeAt(0)!==58&&!fixedElements.get(parent)){return;}if(isImplicitRule){return;}fixedElements.set(element,true);var points=[];var rules=getRules2(value,points);var parentRules=parent.props;for(var i=0,k=0;i<rules.length;i++){for(var j=0;j<parentRules.length;j++,k++){element.props[k]=points[i]?rules[i].replace(/&\f/g,parentRules[j]):parentRules[j]+" "+rules[i];}}};var removeLabel2=function removeLabel3(element){if(element.type==="decl"){var value=element.value;if(// charcode for l
|
|
7076
7080
|
value.charCodeAt(0)===108&&// charcode for b
|
|
@@ -7089,8 +7093,8 @@ process.env.NODE_ENV==="development"&&serialized.map!==void 0){return rules+seri
|
|
|
7089
7093
|
// the registered cache to know whether a style is global or not
|
|
7090
7094
|
// also, note that this check will be dead code eliminated in the browser
|
|
7091
7095
|
isBrowser$4===false&&cache.compat!==void 0)&&cache.registered[className]===void 0){cache.registered[className]=serialized.styles;}};var insertStyles$1=function insertStyles2(cache,serialized,isStringTag2){registerStyles$1(cache,serialized,isStringTag2);var className=cache.key+"-"+serialized.name;if(cache.inserted[serialized.name]===void 0){var stylesForSSR="";var current=serialized;do{var maybeStyles=cache.insert(serialized===current?"."+className:"",current,cache.sheet,true);if(!isBrowser$4&&maybeStyles!==void 0){stylesForSSR+=maybeStyles;}current=current.next;}while(current!==void 0);if(!isBrowser$4&&stylesForSSR.length!==0){return stylesForSSR;}}};function murmur2$1(str){var h=0;var k,i=0,len=str.length;for(;len>=4;++i,len-=4){k=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24;k=/* Math.imul(k, m): */(k&65535)*1540483477+((k>>>16)*59797<<16);k^=/* k >>> r: */k>>>24;h=/* Math.imul(k, m): */(k&65535)*1540483477+((k>>>16)*59797<<16)^/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);}switch(len){case 3:h^=(str.charCodeAt(i+2)&255)<<16;case 2:h^=(str.charCodeAt(i+1)&255)<<8;case 1:h^=str.charCodeAt(i)&255;h=/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);}h^=h>>>13;h=/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);return((h^h>>>15)>>>0).toString(36);}var unitlessKeys$1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,// SVG-related properties
|
|
7092
|
-
fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ILLEGAL_ESCAPE_SEQUENCE_ERROR$2="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";var UNDEFINED_AS_OBJECT_KEY_ERROR$1="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";var hyphenateRegex$1=/[A-Z]|^ms/g;var animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty$1=function isCustomProperty2(
|
|
7093
|
-
match2[1];}var name=murmur2$1(styles2)+identifierName;if(process.env.NODE_ENV!=="production"){return{name:name,styles:styles2,map:sourceMap,next:cursor$1,toString:function
|
|
7096
|
+
fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ILLEGAL_ESCAPE_SEQUENCE_ERROR$2="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";var UNDEFINED_AS_OBJECT_KEY_ERROR$1="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";var hyphenateRegex$1=/[A-Z]|^ms/g;var animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty$1=function isCustomProperty2(property2){return property2.charCodeAt(1)===45;};var isProcessableValue$1=function isProcessableValue2(value){return value!=null&&typeof value!=="boolean";};var processStyleName$1=/* @__PURE__ */memoize(function(styleName){return isCustomProperty$1(styleName)?styleName:styleName.replace(hyphenateRegex$1,"-$&").toLowerCase();});var processStyleValue$1=function processStyleValue2(key,value){switch(key){case"animation":case"animationName":{if(typeof value==="string"){return value.replace(animationRegex$1,function(match2,p1,p2){cursor$1={name:p1,styles:p2,next:cursor$1};return p1;});}}}if(unitlessKeys$1[key]!==1&&!isCustomProperty$1(key)&&typeof value==="number"&&value!==0){return value+"px";}return value;};if(process.env.NODE_ENV!=="production"){var contentValuePattern$1=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;var contentValues$1=["normal","none","initial","inherit","unset"];var oldProcessStyleValue$1=processStyleValue$1;var msPattern$1=/^-ms-/;var hyphenPattern$1=/-(.)/g;var hyphenatedCache$1={};processStyleValue$1=function processStyleValue5(key,value){if(key==="content"){if(typeof value!=="string"||contentValues$1.indexOf(value)===-1&&!contentValuePattern$1.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||value.charAt(0)!=='"'&&value.charAt(0)!=="'")){throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");}}var processed=oldProcessStyleValue$1(key,value);if(processed!==""&&!isCustomProperty$1(key)&&key.indexOf("-")!==-1&&hyphenatedCache$1[key]===void 0){hyphenatedCache$1[key]=true;console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern$1,"ms-").replace(hyphenPattern$1,function(str,_char){return _char.toUpperCase();})+"?");}return processed;};}var noComponentSelectorMessage$1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation$1(mergedProps,registered,interpolation){if(interpolation==null){return"";}if(interpolation.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&interpolation.toString()==="NO_COMPONENT_SELECTOR"){throw new Error(noComponentSelectorMessage$1);}return interpolation;}switch(_typeof2(interpolation)){case"boolean":{return"";}case"object":{if(interpolation.anim===1){cursor$1={name:interpolation.name,styles:interpolation.styles,next:cursor$1};return interpolation.name;}if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0){while(next2!==void 0){cursor$1={name:next2.name,styles:next2.styles,next:cursor$1};next2=next2.next;}}var styles2=interpolation.styles+";";if(process.env.NODE_ENV!=="production"&&interpolation.map!==void 0){styles2+=interpolation.map;}return styles2;}return createStringFromObject$1(mergedProps,registered,interpolation);}case"function":{if(mergedProps!==void 0){var previousCursor=cursor$1;var result=interpolation(mergedProps);cursor$1=previousCursor;return handleInterpolation$1(mergedProps,registered,result);}else if(process.env.NODE_ENV!=="production"){console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");}break;}case"string":if(process.env.NODE_ENV!=="production"){var matched=[];var replaced=interpolation.replace(animationRegex$1,function(match2,p1,p2){var fakeVarName="animation"+matched.length;matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`");return"${"+fakeVarName+"}";});if(matched.length){console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\n"+("css`"+replaced+"`"));}}break;}{return interpolation;}}function createStringFromObject$1(mergedProps,registered,obj){var string="";if(Array.isArray(obj)){for(var i=0;i<obj.length;i++){string+=handleInterpolation$1(mergedProps,registered,obj[i])+";";}}else{for(var _key in obj){var value=obj[_key];if(_typeof2(value)!=="object"){if(isProcessableValue$1(value)){string+=processStyleName$1(_key)+":"+processStyleValue$1(_key,value)+";";}}else{if(_key==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production"){throw new Error(noComponentSelectorMessage$1);}if(Array.isArray(value)&&typeof value[0]==="string"&®istered==null){for(var _i=0;_i<value.length;_i++){if(isProcessableValue$1(value[_i])){string+=processStyleName$1(_key)+":"+processStyleValue$1(_key,value[_i])+";";}}}else{var interpolated=handleInterpolation$1(mergedProps,registered,value);switch(_key){case"animation":case"animationName":{string+=processStyleName$1(_key)+":"+interpolated+";";break;}default:{if(process.env.NODE_ENV!=="production"&&_key==="undefined"){console.error(UNDEFINED_AS_OBJECT_KEY_ERROR$1);}string+=_key+"{"+interpolated+"}";}}}}}}return string;}var labelPattern$1=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var sourceMapPattern$1;if(process.env.NODE_ENV!=="production"){sourceMapPattern$1=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;}var cursor$1;var serializeStyles$1=function serializeStyles(args,registered,mergedProps){if(args.length===1&&_typeof2(args[0])==="object"&&args[0]!==null&&args[0].styles!==void 0){return args[0];}var stringMode=true;var styles2="";cursor$1=void 0;var strings=args[0];if(strings==null||strings.raw===void 0){stringMode=false;styles2+=handleInterpolation$1(mergedProps,registered,strings);}else{if(process.env.NODE_ENV!=="production"&&strings[0]===void 0){console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$2);}styles2+=strings[0];}for(var i=1;i<args.length;i++){styles2+=handleInterpolation$1(mergedProps,registered,args[i]);if(stringMode){if(process.env.NODE_ENV!=="production"&&strings[i]===void 0){console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$2);}styles2+=strings[i];}}var sourceMap;if(process.env.NODE_ENV!=="production"){styles2=styles2.replace(sourceMapPattern$1,function(match3){sourceMap=match3;return"";});}labelPattern$1.lastIndex=0;var identifierName="";var match2;while((match2=labelPattern$1.exec(styles2))!==null){identifierName+="-"+// $FlowFixMe we know it's not null
|
|
7097
|
+
match2[1];}var name=murmur2$1(styles2)+identifierName;if(process.env.NODE_ENV!=="production"){return{name:name,styles:styles2,map:sourceMap,next:cursor$1,toString:function toString2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";}};}return{name:name,styles:styles2,next:cursor$1};};var isBrowser$3=typeof document!=="undefined";var syncFallback2=function syncFallback3(create){return create();};var useInsertionEffect=React["useInsertionEffect"]?React["useInsertionEffect"]:false;var useInsertionEffectAlwaysWithSyncFallback=!isBrowser$3?syncFallback2:useInsertionEffect||syncFallback2;var isBrowser$2=typeof document!=="undefined";var hasOwnProperty={}.hasOwnProperty;var EmotionCacheContext=/* @__PURE__ */createContext(// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
7094
7098
|
// because this module is primarily intended for the browser and node
|
|
7095
7099
|
// but it's also required in react native and similar environments sometimes
|
|
7096
7100
|
// and we could have a special build just for that
|
|
@@ -7106,8 +7110,8 @@ typeof HTMLElement!=="undefined"?/* @__PURE__ */createCache2({key:"css"}):null);
|
|
|
7106
7110
|
// the registered cache to know whether a style is global or not
|
|
7107
7111
|
// also, note that this check will be dead code eliminated in the browser
|
|
7108
7112
|
isBrowser$1===false&&cache.compat!==void 0)&&cache.registered[className]===void 0){cache.registered[className]=serialized.styles;}};var insertStyles3=function insertStyles4(cache,serialized,isStringTag2){registerStyles3(cache,serialized,isStringTag2);var className=cache.key+"-"+serialized.name;if(cache.inserted[serialized.name]===void 0){var stylesForSSR="";var current=serialized;do{var maybeStyles=cache.insert(serialized===current?"."+className:"",current,cache.sheet,true);if(!isBrowser$1&&maybeStyles!==void 0){stylesForSSR+=maybeStyles;}current=current.next;}while(current!==void 0);if(!isBrowser$1&&stylesForSSR.length!==0){return stylesForSSR;}}};function murmur2(str){var h=0;var k,i=0,len=str.length;for(;len>=4;++i,len-=4){k=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24;k=/* Math.imul(k, m): */(k&65535)*1540483477+((k>>>16)*59797<<16);k^=/* k >>> r: */k>>>24;h=/* Math.imul(k, m): */(k&65535)*1540483477+((k>>>16)*59797<<16)^/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);}switch(len){case 3:h^=(str.charCodeAt(i+2)&255)<<16;case 2:h^=(str.charCodeAt(i+1)&255)<<8;case 1:h^=str.charCodeAt(i)&255;h=/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);}h^=h>>>13;h=/* Math.imul(h, m): */(h&65535)*1540483477+((h>>>16)*59797<<16);return((h^h>>>15)>>>0).toString(36);}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,// SVG-related properties
|
|
7109
|
-
fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ILLEGAL_ESCAPE_SEQUENCE_ERROR$1="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";var UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";var hyphenateRegex=/[A-Z]|^ms/g;var animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty3=function isCustomProperty4(
|
|
7110
|
-
match2[1];}var name=murmur2(styles2)+identifierName;if(process.env.NODE_ENV!=="production"){return{name:name,styles:styles2,map:sourceMap,next:cursor,toString:function
|
|
7113
|
+
fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ILLEGAL_ESCAPE_SEQUENCE_ERROR$1="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";var UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";var hyphenateRegex=/[A-Z]|^ms/g;var animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty3=function isCustomProperty4(property2){return property2.charCodeAt(1)===45;};var isProcessableValue3=function isProcessableValue4(value){return value!=null&&typeof value!=="boolean";};var processStyleName=/* @__PURE__ */memoize(function(styleName){return isCustomProperty3(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase();});var processStyleValue3=function processStyleValue4(key,value){switch(key){case"animation":case"animationName":{if(typeof value==="string"){return value.replace(animationRegex,function(match2,p1,p2){cursor={name:p1,styles:p2,next:cursor};return p1;});}}}if(unitlessKeys[key]!==1&&!isCustomProperty3(key)&&typeof value==="number"&&value!==0){return value+"px";}return value;};if(process.env.NODE_ENV!=="production"){var contentValuePattern=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;var contentValues=["normal","none","initial","inherit","unset"];var oldProcessStyleValue=processStyleValue3;var msPattern=/^-ms-/;var hyphenPattern=/-(.)/g;var hyphenatedCache={};processStyleValue3=function processStyleValue5(key,value){if(key==="content"){if(typeof value!=="string"||contentValues.indexOf(value)===-1&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||value.charAt(0)!=='"'&&value.charAt(0)!=="'")){throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");}}var processed=oldProcessStyleValue(key,value);if(processed!==""&&!isCustomProperty3(key)&&key.indexOf("-")!==-1&&hyphenatedCache[key]===void 0){hyphenatedCache[key]=true;console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern,"ms-").replace(hyphenPattern,function(str,_char){return _char.toUpperCase();})+"?");}return processed;};}var noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(mergedProps,registered,interpolation){if(interpolation==null){return"";}if(interpolation.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&interpolation.toString()==="NO_COMPONENT_SELECTOR"){throw new Error(noComponentSelectorMessage);}return interpolation;}switch(_typeof2(interpolation)){case"boolean":{return"";}case"object":{if(interpolation.anim===1){cursor={name:interpolation.name,styles:interpolation.styles,next:cursor};return interpolation.name;}if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0){while(next2!==void 0){cursor={name:next2.name,styles:next2.styles,next:cursor};next2=next2.next;}}var styles2=interpolation.styles+";";if(process.env.NODE_ENV!=="production"&&interpolation.map!==void 0){styles2+=interpolation.map;}return styles2;}return createStringFromObject(mergedProps,registered,interpolation);}case"function":{if(mergedProps!==void 0){var previousCursor=cursor;var result=interpolation(mergedProps);cursor=previousCursor;return handleInterpolation(mergedProps,registered,result);}else if(process.env.NODE_ENV!=="production"){console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");}break;}case"string":if(process.env.NODE_ENV!=="production"){var matched=[];var replaced=interpolation.replace(animationRegex,function(match2,p1,p2){var fakeVarName="animation"+matched.length;matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`");return"${"+fakeVarName+"}";});if(matched.length){console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\n"+("css`"+replaced+"`"));}}break;}if(registered==null){return interpolation;}var cached=registered[interpolation];return cached!==void 0?cached:interpolation;}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj)){for(var i=0;i<obj.length;i++){string+=handleInterpolation(mergedProps,registered,obj[i])+";";}}else{for(var _key in obj){var value=obj[_key];if(_typeof2(value)!=="object"){if(registered!=null&®istered[value]!==void 0){string+=_key+"{"+registered[value]+"}";}else if(isProcessableValue3(value)){string+=processStyleName(_key)+":"+processStyleValue3(_key,value)+";";}}else{if(_key==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production"){throw new Error(noComponentSelectorMessage);}if(Array.isArray(value)&&typeof value[0]==="string"&&(registered==null||registered[value[0]]===void 0)){for(var _i=0;_i<value.length;_i++){if(isProcessableValue3(value[_i])){string+=processStyleName(_key)+":"+processStyleValue3(_key,value[_i])+";";}}}else{var interpolated=handleInterpolation(mergedProps,registered,value);switch(_key){case"animation":case"animationName":{string+=processStyleName(_key)+":"+interpolated+";";break;}default:{if(process.env.NODE_ENV!=="production"&&_key==="undefined"){console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);}string+=_key+"{"+interpolated+"}";}}}}}}return string;}var labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var sourceMapPattern;if(process.env.NODE_ENV!=="production"){sourceMapPattern=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;}var cursor;var serializeStyles2=function serializeStyles3(args,registered,mergedProps){if(args.length===1&&_typeof2(args[0])==="object"&&args[0]!==null&&args[0].styles!==void 0){return args[0];}var stringMode=true;var styles2="";cursor=void 0;var strings=args[0];if(strings==null||strings.raw===void 0){stringMode=false;styles2+=handleInterpolation(mergedProps,registered,strings);}else{if(process.env.NODE_ENV!=="production"&&strings[0]===void 0){console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);}styles2+=strings[0];}for(var i=1;i<args.length;i++){styles2+=handleInterpolation(mergedProps,registered,args[i]);if(stringMode){if(process.env.NODE_ENV!=="production"&&strings[i]===void 0){console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1);}styles2+=strings[i];}}var sourceMap;if(process.env.NODE_ENV!=="production"){styles2=styles2.replace(sourceMapPattern,function(match3){sourceMap=match3;return"";});}labelPattern.lastIndex=0;var identifierName="";var match2;while((match2=labelPattern.exec(styles2))!==null){identifierName+="-"+// $FlowFixMe we know it's not null
|
|
7114
|
+
match2[1];}var name=murmur2(styles2)+identifierName;if(process.env.NODE_ENV!=="production"){return{name:name,styles:styles2,map:sourceMap,next:cursor,toString:function toString2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";}};}return{name:name,styles:styles2,next:cursor};};var testOmitPropsOnStringTag=isPropValid;var testOmitPropsOnComponent2=function testOmitPropsOnComponent3(key){return key!=="theme";};var getDefaultShouldForwardProp2=function getDefaultShouldForwardProp3(tag){return typeof tag==="string"&&// 96 is one less than the char code
|
|
7111
7115
|
// for "a" so this is checking that
|
|
7112
7116
|
// it's a lowercase character
|
|
7113
7117
|
tag.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent2;};var composeShouldForwardProps2=function composeShouldForwardProps3(tag,options,isReal){var shouldForwardProp3;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp3=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName);}:optionsShouldForwardProp;}if(typeof shouldForwardProp3!=="function"&&isReal){shouldForwardProp3=tag.__emotion_forwardProp;}return shouldForwardProp3;};var ILLEGAL_ESCAPE_SEQUENCE_ERROR="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";var isBrowser=typeof document!=="undefined";var Insertion4=function Insertion5(_ref3){var cache=_ref3.cache,serialized=_ref3.serialized,isStringTag2=_ref3.isStringTag;registerStyles3(cache,serialized,isStringTag2);var rules=useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles3(cache,serialized,isStringTag2);});if(!isBrowser&&rules!==void 0){var _ref22;var serializedNames=serialized.name;var next2=serialized.next;while(next2!==void 0){serializedNames+=" "+next2.name;next2=next2.next;}return/* @__PURE__ */createElement("style",(_ref22={},_ref22["data-emotion"]=cache.key+" "+serializedNames,_ref22.dangerouslySetInnerHTML={__html:rules},_ref22.nonce=cache.sheet.nonce,_ref22));}return null;};var createStyled2=function createStyled3(tag,options){if(process.env.NODE_ENV!=="production"){if(tag===void 0){throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");}}var isReal=tag.__emotion_real===tag;var baseTag=isReal&&tag.__emotion_base||tag;var identifierName;var targetClassName;if(options!==void 0){identifierName=options.label;targetClassName=options.target;}var shouldForwardProp3=composeShouldForwardProps2(tag,options,isReal);var defaultShouldForwardProp=shouldForwardProp3||getDefaultShouldForwardProp2(baseTag);var shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments;var styles2=isReal&&tag.__emotion_styles!==void 0?tag.__emotion_styles.slice(0):[];if(identifierName!==void 0){styles2.push("label:"+identifierName+";");}if(args[0]==null||args[0].raw===void 0){styles2.push.apply(styles2,args);}else{if(process.env.NODE_ENV!=="production"&&args[0][0]===void 0){console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);}styles2.push(args[0][0]);var len=args.length;var i=1;for(;i<len;i++){if(process.env.NODE_ENV!=="production"&&args[0][i]===void 0){console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);}styles2.push(args[i],args[0][i]);}}var Styled=withEmotionCache2(function(props,cache,ref){var FinalTag=shouldUseAs&&props.as||baseTag;var className="";var classInterpolations=[];var mergedProps=props;if(props.theme==null){mergedProps={};for(var key in props){mergedProps[key]=props[key];}mergedProps.theme=useContext(ThemeContext);}if(typeof props.className==="string"){className=getRegisteredStyles(cache.registered,classInterpolations,props.className);}else if(props.className!=null){className=props.className+" ";}var serialized=serializeStyles2(styles2.concat(classInterpolations),cache.registered,mergedProps);className+=cache.key+"-"+serialized.name;if(targetClassName!==void 0){className+=" "+targetClassName;}var finalShouldForwardProp=shouldUseAs&&shouldForwardProp3===void 0?getDefaultShouldForwardProp2(FinalTag):defaultShouldForwardProp;var newProps={};for(var _key in props){if(shouldUseAs&&_key==="as")continue;if(// $FlowFixMe
|
|
@@ -7116,7 +7120,7 @@ finalShouldForwardProp(_key)){newProps[_key]=props[_key];}}newProps.className=cl
|
|
|
7116
7120
|
Copyright (c) 2018 Jed Watson.
|
|
7117
7121
|
Licensed under the MIT License (MIT), see
|
|
7118
7122
|
http://jedwatson.github.io/classnames
|
|
7119
|
-
*/(function(module){(function(){var hasOwn2={}.hasOwnProperty;function classNames2(){var classes=[];for(var i=0;i<arguments.length;i++){var arg2=arguments[i];if(!arg2)continue;var argType=_typeof2(arg2);if(argType==="string"||argType==="number"){classes.push(arg2);}else if(Array.isArray(arg2)){if(arg2.length){var inner=classNames2.apply(null,arg2);if(inner){classes.push(inner);}}}else if(argType==="object"){if(arg2.toString!==Object.prototype.toString&&!arg2.toString.toString().includes("[native code]")){classes.push(arg2.toString());continue;}for(var key in arg2){if(hasOwn2.call(arg2,key)&&arg2[key]){classes.push(key);}}}}return classes.join(" ");}if(module.exports){classNames2.default=classNames2;module.exports=classNames2;}else{window.classNames=classNames2;}})();})(classnames$1);var classnames=classnames$1.exports;var LegacySidebarContext=/*#__PURE__*/React__default.createContext(void 0);var useLegacySidebar=function useLegacySidebar(){var context=React__default.useContext(LegacySidebarContext);return context;};var useMediaQuery=function useMediaQuery(breakpoint){var _a=React__default.useState(!!breakpoint&&typeof window!=="undefined"&&window.matchMedia(breakpoint).matches),matches=_a[0],setMatches=_a[1];React__default.useEffect(function(){if(breakpoint){var media_1=window.matchMedia(breakpoint);var handleMatch_1=function handleMatch_1(){if(media_1.matches!==matches){setMatches(media_1.matches);}};handleMatch_1();media_1.addEventListener("change",handleMatch_1);return function(){return media_1.removeEventListener("change",handleMatch_1);};}},[matches,breakpoint]);return matches;};var sidebarClasses={root:"ps-sidebar-root",container:"ps-sidebar-container",image:"ps-sidebar-image",backdrop:"ps-sidebar-backdrop",collapsed:"ps-collapsed",toggled:"ps-toggled",rtl:"ps-rtl",broken:"ps-broken"};var menuClasses={root:"ps-menu-root",menuItemRoot:"ps-menuitem-root",subMenuRoot:"ps-submenu-root",button:"ps-menu-button",prefix:"ps-menu-prefix",suffix:"ps-menu-suffix",label:"ps-menu-label",icon:"ps-menu-icon",subMenuContent:"ps-submenu-content",SubMenuExpandIcon:"ps-submenu-expand-icon",disabled:"ps-disabled",active:"ps-active",open:"ps-open"};var StyledBackdrop=newStyled.div(templateObject_1$b||(templateObject_1$b=__makeTemplateObject(["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"],["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"])));var templateObject_1$b;var BREAK_POINTS={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"};var StyledSidebar=newStyled.aside(templateObject_1$a||(templateObject_1$a=__makeTemplateObject(["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"],["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"])),function(_a){var transitionDuration=_a.transitionDuration;return"width, left, right, ".concat(transitionDuration,"ms");},function(_a){var width2=_a.width;return width2;},function(_a){var width2=_a.width;return width2;},sidebarClasses.collapsed,function(_a){var collapsedWidth=_a.collapsedWidth;return collapsedWidth;},function(_a){var collapsedWidth=_a.collapsedWidth;return collapsedWidth;},sidebarClasses.rtl,sidebarClasses.broken,function(_a){var rtl=_a.rtl,width2=_a.width;return!rtl?"left: -".concat(width2,";"):"";},sidebarClasses.collapsed,function(_a){var rtl=_a.rtl,collapsedWidth=_a.collapsedWidth;return!rtl?"left: -".concat(collapsedWidth,"; "):"";},sidebarClasses.toggled,function(_a){var rtl=_a.rtl;return!rtl?"left: 0;":"";},sidebarClasses.rtl,function(_a){var width2=_a.width;return width2;},sidebarClasses.collapsed,function(_a){var collapsedWidth=_a.collapsedWidth;return collapsedWidth;},sidebarClasses.toggled,function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var StyledSidebarContainer=newStyled.div(templateObject_2$1||(templateObject_2$1=__makeTemplateObject(["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"],["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"])),function(_a){var backgroundColor2=_a.backgroundColor;return backgroundColor2?"background-color:".concat(backgroundColor2,";"):"";});var StyledSidebarImage=newStyled.img(templateObject_3$1||(templateObject_3$1=__makeTemplateObject(["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"],["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"])),sidebarClasses.image);var SidebarContext=/*#__PURE__*/React__default.createContext({collapsed:false,toggled:false,rtl:false,transitionDuration:300});var Sidebar=/*#__PURE__*/React__default.forwardRef(function(_a,ref){var _b;var collapsed2=_a.collapsed,toggled=_a.toggled,onBackdropClick=_a.onBackdropClick,onBreakPoint=_a.onBreakPoint,_c=_a.width,width2=_c===void 0?"250px":_c,_d=_a.collapsedWidth,collapsedWidth=_d===void 0?"80px":_d,defaultCollapsed=_a.defaultCollapsed,className=_a.className,children=_a.children,breakPoint=_a.breakPoint,customBreakPoint=_a.customBreakPoint,_e=_a.backgroundColor,backgroundColor2=_e===void 0?"rgb(249, 249, 249, 0.7)":_e,_f=_a.transitionDuration,transitionDuration=_f===void 0?300:_f,image2=_a.image,rtl=_a.rtl,rootStyles=_a.rootStyles,rest=__rest(_a,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]);var getBreakpointValue=function getBreakpointValue(){if(customBreakPoint){return"(max-width: ".concat(customBreakPoint,")");}if(breakPoint){if(["xs","sm","md","lg","xl","xxl"].includes(breakPoint)){return"(max-width: ".concat(BREAK_POINTS[breakPoint],")");}if(breakPoint==="always"||breakPoint==="all"){if(breakPoint==="always"){console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.');}return"screen";}return"(max-width: ".concat(breakPoint,")");}};var breakpointCallbackFnRef=React__default.useRef();breakpointCallbackFnRef.current=function(broken2){onBreakPoint===null||onBreakPoint===void 0?void 0:onBreakPoint(broken2);};var broken=useMediaQuery(getBreakpointValue());var _g=React__default.useState(false),mounted=_g[0],setMounted=_g[1];var legacySidebarContext=useLegacySidebar();var collapsedValue=collapsed2!==null&&collapsed2!==void 0?collapsed2:!mounted&&defaultCollapsed?true:legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.collapsed;var toggledValue=toggled!==null&&toggled!==void 0?toggled:legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.toggled;var handleBackdropClick=function handleBackdropClick(){onBackdropClick===null||onBackdropClick===void 0?void 0:onBackdropClick();legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState({toggled:false});};React__default.useEffect(function(){var _a2;(_a2=breakpointCallbackFnRef.current)===null||_a2===void 0?void 0:_a2.call(breakpointCallbackFnRef,broken);},[broken]);React__default.useEffect(function(){legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState({broken:broken,rtl:rtl,transitionDuration:transitionDuration});},[broken,legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState,rtl,transitionDuration]);React__default.useEffect(function(){if(!mounted){legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState({collapsed:defaultCollapsed});setMounted(true);}},[defaultCollapsed,mounted,legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState]);return/*#__PURE__*/React__default.createElement(SidebarContext.Provider,{value:{collapsed:collapsedValue,toggled:toggledValue,rtl:rtl,transitionDuration:transitionDuration}},/*#__PURE__*/React__default.createElement(StyledSidebar,_assign({ref:ref,"data-testid":"".concat(sidebarClasses.root,"-test-id"),rtl:rtl,rootStyles:rootStyles,width:width2,collapsedWidth:collapsedWidth,transitionDuration:transitionDuration,className:classnames(sidebarClasses.root,(_b={},_b[sidebarClasses.collapsed]=collapsedValue,_b[sidebarClasses.toggled]=toggledValue,_b[sidebarClasses.broken]=broken,_b[sidebarClasses.rtl]=rtl,_b),className)},rest),/*#__PURE__*/React__default.createElement(StyledSidebarContainer,{"data-testid":"".concat(sidebarClasses.container,"-test-id"),className:sidebarClasses.container,backgroundColor:backgroundColor2},children),image2&&/*#__PURE__*/React__default.createElement(StyledSidebarImage,{"data-testid":"".concat(sidebarClasses.image,"-test-id"),src:image2,alt:"sidebar background",className:sidebarClasses.image}),broken&&toggledValue&&/*#__PURE__*/React__default.createElement(StyledBackdrop,{"data-testid":"".concat(sidebarClasses.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:handleBackdropClick,onKeyPress:handleBackdropClick,className:sidebarClasses.backdrop})));});var templateObject_1$a,templateObject_2$1,templateObject_3$1;var StyledUl=newStyled.ul(templateObject_1$9||(templateObject_1$9=__makeTemplateObject(["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"],["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])));var templateObject_1$9;var StyledMenu$1=newStyled.nav(templateObject_1$8||(templateObject_1$8=__makeTemplateObject(["\n &."," {\n ","\n }\n"],["\n &."," {\n ","\n }\n"])),menuClasses.root,function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var MenuContext=/*#__PURE__*/React__default.createContext(void 0);var LevelContext=/*#__PURE__*/React__default.createContext(0);var MenuFR=function MenuFR(_a,ref){var children=_a.children,className=_a.className,_b=_a.transitionDuration,transitionDuration=_b===void 0?300:_b,_c=_a.closeOnClick,closeOnClick=_c===void 0?false:_c,rootStyles=_a.rootStyles,menuItemStyles=_a.menuItemStyles,renderExpandIcon=_a.renderExpandIcon,rest=__rest(_a,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]);var providerValue=React__default.useMemo(function(){return{transitionDuration:transitionDuration,closeOnClick:closeOnClick,menuItemStyles:menuItemStyles,renderExpandIcon:renderExpandIcon};},[transitionDuration,closeOnClick,menuItemStyles,renderExpandIcon]);return/*#__PURE__*/React__default.createElement(MenuContext.Provider,{value:providerValue},/*#__PURE__*/React__default.createElement(LevelContext.Provider,{value:0},/*#__PURE__*/React__default.createElement(StyledMenu$1,_assign({ref:ref,className:classnames(menuClasses.root,className),rootStyles:rootStyles},rest),/*#__PURE__*/React__default.createElement(StyledUl,null,children))));};var Menu3=/*#__PURE__*/React__default.forwardRef(MenuFR);var templateObject_1$8;var useMenu=function useMenu(){var context=React__default.useContext(MenuContext);if(context===void 0){throw new Error("Menu Component is required!");}return context;};var StyledSubMenuContent=newStyled.div(templateObject_1$7||(templateObject_1$7=__makeTemplateObject(["\n height: 0px;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"],["\n height: 0px;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"])),function(_a){var transitionDuration=_a.transitionDuration;return transitionDuration;},function(_a){var firstLevel=_a.firstLevel,collapsed2=_a.collapsed;return firstLevel&&collapsed2&&"\n background-color: white;\n box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;\n ";},function(_a){var defaultOpen=_a.defaultOpen;return defaultOpen&&"height: auto;display: block;";},function(_a){var collapsed2=_a.collapsed,firstLevel=_a.firstLevel,openWhenCollapsed=_a.openWhenCollapsed;return collapsed2&&firstLevel?"\n position: fixed;\n padding-left: 0px;\n width: 200px;\n border-radius: 4px;\n height: auto!important;\n display: block!important; \n transition: none!important; \n visibility: ".concat(openWhenCollapsed?"visible":"hidden",";\n "):"\n position: static!important;\n transform: none!important;\n ";},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var SubMenuContentFR=function SubMenuContentFR(_a,ref){var children=_a.children,open=_a.open,openWhenCollapsed=_a.openWhenCollapsed,firstLevel=_a.firstLevel,collapsed2=_a.collapsed,defaultOpen=_a.defaultOpen,rest=__rest(_a,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]);var transitionDuration=useMenu().transitionDuration;var defaultOpenState=React__default.useState(defaultOpen)[0];return/*#__PURE__*/React__default.createElement(StyledSubMenuContent,_assign({"data-testid":"".concat(menuClasses.subMenuContent,"-test-id"),ref:ref,firstLevel:firstLevel,collapsed:collapsed2,open:open,openWhenCollapsed:openWhenCollapsed,transitionDuration:transitionDuration,defaultOpen:defaultOpenState},rest),/*#__PURE__*/React__default.createElement(StyledUl,null,children));};var SubMenuContent=/*#__PURE__*/React__default.forwardRef(SubMenuContentFR);var templateObject_1$7;var StyledMenuLabel=newStyled.span(templateObject_1$6||(templateObject_1$6=__makeTemplateObject(["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"],["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"])),function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$6;var StyledMenuIcon=newStyled.span(templateObject_1$5||(templateObject_1$5=__makeTemplateObject(["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"],["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"])),function(_a){var rtl=_a.rtl;return rtl?"margin-left: 10px;":"margin-right: 10px;";},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$5;var StyledMenuPrefix=newStyled.span(templateObject_1$4||(templateObject_1$4=__makeTemplateObject(["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),function(_a){var rtl=_a.rtl;return rtl?"margin-left: 5px;":"margin-right: 5px;";},function(_a){var firstLevel=_a.firstLevel,collapsed2=_a.collapsed;return firstLevel&&collapsed2?"0":"1";},function(_a){var transitionDuration=_a.transitionDuration;return transitionDuration;},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$4;var StyledMenuSuffix=newStyled.span(templateObject_1$3||(templateObject_1$3=__makeTemplateObject(["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),function(_a){var firstLevel=_a.firstLevel,collapsed2=_a.collapsed;return firstLevel&&collapsed2?"0":"1";},function(_a){var transitionDuration=_a.transitionDuration;return transitionDuration;},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$3;var StyledExpandIconWrapper=newStyled.span(templateObject_1$2||(templateObject_1$2=__makeTemplateObject(["\n ","\n\n ",";\n"],["\n ","\n\n ",";\n"])),function(_a){var collapsed2=_a.collapsed,level=_a.level,rtl=_a.rtl;return collapsed2&&level===0&&"\n position: absolute;\n ".concat(rtl?"left: 10px;":"right: 10px;","\n top: 50%;\n transform: translateY(-50%);\n \n ");},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var StyledExpandIcon=newStyled.span(templateObject_2||(templateObject_2=__makeTemplateObject(["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"],["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"])),function(_a){var rtl=_a.rtl;return rtl?"\n border-left: 2px solid currentcolor;\n border-top: 2px solid currentcolor;\n ":" border-right: 2px solid currentcolor;\n border-bottom: 2px solid currentcolor;\n ";},function(_a){var open=_a.open,rtl=_a.rtl;return open?rtl?"-135deg":"45deg":"-45deg";});var StyledExpandIconCollapsed=newStyled.span(templateObject_3||(templateObject_3=__makeTemplateObject(["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"],["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"])));var templateObject_1$2,templateObject_2,templateObject_3;var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=/* @__PURE__ */basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end]);},[]);var placements=/* @__PURE__ */[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end]);},[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null;}function getWindow(node2){if(node2==null){return window;}if(node2.toString()!=="[object Window]"){var ownerDocument2=node2.ownerDocument;return ownerDocument2?ownerDocument2.defaultView||window:window;}return node2;}function isElement(node2){var OwnElement=getWindow(node2).Element;return node2 instanceof OwnElement||node2 instanceof Element;}function isHTMLElement(node2){var OwnElement=getWindow(node2).HTMLElement;return node2 instanceof OwnElement||node2 instanceof HTMLElement;}function isShadowRoot(node2){if(typeof ShadowRoot==="undefined"){return false;}var OwnElement=getWindow(node2).ShadowRoot;return node2 instanceof OwnElement||node2 instanceof ShadowRoot;}function applyStyles(_ref3){var state=_ref3.state;Object.keys(state.elements).forEach(function(name){var style2=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement(element)||!getNodeName(element)){return;}Object.assign(element.style,style2);Object.keys(attributes).forEach(function(name2){var value=attributes[name2];if(value===false){element.removeAttribute(name2);}else{element.setAttribute(name2,value===true?"":value);}});});}function effect$2(_ref22){var state=_ref22.state;var initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow);}return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style2=styleProperties.reduce(function(style3,property){style3[property]="";return style3;},{});if(!isHTMLElement(element)||!getNodeName(element)){return;}Object.assign(element.style,style2);Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);});});};}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(placement){return placement.split("-")[0];}var max=Math.max;var min=Math.min;var round=Math.round;function getUAString(){var uaData=navigator.userAgentData;if(uaData!=null&&uaData.brands){return uaData.brands.map(function(item2){return item2.brand+"/"+item2.version;}).join(" ");}return navigator.userAgent;}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString());}function getBoundingClientRect(element,includeScale,isFixedStrategy){if(includeScale===void 0){includeScale=false;}if(isFixedStrategy===void 0){isFixedStrategy=false;}var clientRect=element.getBoundingClientRect();var scaleX=1;var scaleY=1;if(includeScale&&isHTMLElement(element)){scaleX=element.offsetWidth>0?round(clientRect.width)/element.offsetWidth||1:1;scaleY=element.offsetHeight>0?round(clientRect.height)/element.offsetHeight||1:1;}var _ref3=isElement(element)?getWindow(element):window,visualViewport=_ref3.visualViewport;var addVisualOffsets=!isLayoutViewport()&&isFixedStrategy;var x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX;var y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY;var width2=clientRect.width/scaleX;var height2=clientRect.height/scaleY;return{width:width2,height:height2,top:y,right:x+width2,bottom:y+height2,left:x,x:x,y:y};}function getLayoutRect(element){var clientRect=getBoundingClientRect(element);var width2=element.offsetWidth;var height2=element.offsetHeight;if(Math.abs(clientRect.width-width2)<=1){width2=clientRect.width;}if(Math.abs(clientRect.height-height2)<=1){height2=clientRect.height;}return{x:element.offsetLeft,y:element.offsetTop,width:width2,height:height2};}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true;}else if(rootNode&&isShadowRoot(rootNode)){var next2=child;do{if(next2&&parent.isSameNode(next2)){return true;}next2=next2.parentNode||next2.host;}while(next2);}return false;}function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element);}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0;}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:// $FlowFixMe[prop-missing]
|
|
7123
|
+
*/(function(module){(function(){var hasOwn2={}.hasOwnProperty;function classNames2(){var classes=[];for(var i=0;i<arguments.length;i++){var arg2=arguments[i];if(!arg2)continue;var argType=_typeof2(arg2);if(argType==="string"||argType==="number"){classes.push(arg2);}else if(Array.isArray(arg2)){if(arg2.length){var inner=classNames2.apply(null,arg2);if(inner){classes.push(inner);}}}else if(argType==="object"){if(arg2.toString!==Object.prototype.toString&&!arg2.toString.toString().includes("[native code]")){classes.push(arg2.toString());continue;}for(var key in arg2){if(hasOwn2.call(arg2,key)&&arg2[key]){classes.push(key);}}}}return classes.join(" ");}if(module.exports){classNames2.default=classNames2;module.exports=classNames2;}else{window.classNames=classNames2;}})();})(classnames$1);var classnames=classnames$1.exports;var LegacySidebarContext=/*#__PURE__*/React__default.createContext(void 0);var useLegacySidebar=function useLegacySidebar(){var context=React__default.useContext(LegacySidebarContext);return context;};var useMediaQuery=function useMediaQuery(breakpoint){var _a=React__default.useState(!!breakpoint&&typeof window!=="undefined"&&window.matchMedia(breakpoint).matches),matches=_a[0],setMatches=_a[1];React__default.useEffect(function(){if(breakpoint){var media_1=window.matchMedia(breakpoint);var handleMatch_1=function handleMatch_1(){if(media_1.matches!==matches){setMatches(media_1.matches);}};handleMatch_1();media_1.addEventListener("change",handleMatch_1);return function(){return media_1.removeEventListener("change",handleMatch_1);};}},[matches,breakpoint]);return matches;};var sidebarClasses={root:"ps-sidebar-root",container:"ps-sidebar-container",image:"ps-sidebar-image",backdrop:"ps-sidebar-backdrop",collapsed:"ps-collapsed",toggled:"ps-toggled",rtl:"ps-rtl",broken:"ps-broken"};var menuClasses={root:"ps-menu-root",menuItemRoot:"ps-menuitem-root",subMenuRoot:"ps-submenu-root",button:"ps-menu-button",prefix:"ps-menu-prefix",suffix:"ps-menu-suffix",label:"ps-menu-label",icon:"ps-menu-icon",subMenuContent:"ps-submenu-content",SubMenuExpandIcon:"ps-submenu-expand-icon",disabled:"ps-disabled",active:"ps-active",open:"ps-open"};var StyledBackdrop=newStyled.div(templateObject_1$b||(templateObject_1$b=__makeTemplateObject(["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"],["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"])));var templateObject_1$b;var BREAK_POINTS={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"};var StyledSidebar=newStyled.aside(templateObject_1$a||(templateObject_1$a=__makeTemplateObject(["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"],["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"])),function(_a){var transitionDuration=_a.transitionDuration;return"width, left, right, ".concat(transitionDuration,"ms");},function(_a){var width2=_a.width;return width2;},function(_a){var width2=_a.width;return width2;},sidebarClasses.collapsed,function(_a){var collapsedWidth=_a.collapsedWidth;return collapsedWidth;},function(_a){var collapsedWidth=_a.collapsedWidth;return collapsedWidth;},sidebarClasses.rtl,sidebarClasses.broken,function(_a){var rtl=_a.rtl,width2=_a.width;return!rtl?"left: -".concat(width2,";"):"";},sidebarClasses.collapsed,function(_a){var rtl=_a.rtl,collapsedWidth=_a.collapsedWidth;return!rtl?"left: -".concat(collapsedWidth,"; "):"";},sidebarClasses.toggled,function(_a){var rtl=_a.rtl;return!rtl?"left: 0;":"";},sidebarClasses.rtl,function(_a){var width2=_a.width;return width2;},sidebarClasses.collapsed,function(_a){var collapsedWidth=_a.collapsedWidth;return collapsedWidth;},sidebarClasses.toggled,function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var StyledSidebarContainer=newStyled.div(templateObject_2$1||(templateObject_2$1=__makeTemplateObject(["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"],["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"])),function(_a){var backgroundColor2=_a.backgroundColor;return backgroundColor2?"background-color:".concat(backgroundColor2,";"):"";});var StyledSidebarImage=newStyled.img(templateObject_3$1||(templateObject_3$1=__makeTemplateObject(["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"],["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"])),sidebarClasses.image);var SidebarContext=/*#__PURE__*/React__default.createContext({collapsed:false,toggled:false,rtl:false,transitionDuration:300});var Sidebar=/*#__PURE__*/React__default.forwardRef(function(_a,ref){var _b;var collapsed2=_a.collapsed,toggled=_a.toggled,onBackdropClick=_a.onBackdropClick,onBreakPoint=_a.onBreakPoint,_c=_a.width,width2=_c===void 0?"250px":_c,_d=_a.collapsedWidth,collapsedWidth=_d===void 0?"80px":_d,defaultCollapsed=_a.defaultCollapsed,className=_a.className,children=_a.children,breakPoint=_a.breakPoint,customBreakPoint=_a.customBreakPoint,_e=_a.backgroundColor,backgroundColor2=_e===void 0?"rgb(249, 249, 249, 0.7)":_e,_f=_a.transitionDuration,transitionDuration=_f===void 0?300:_f,image2=_a.image,rtl=_a.rtl,rootStyles=_a.rootStyles,rest=__rest(_a,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]);var getBreakpointValue=function getBreakpointValue(){if(customBreakPoint){return"(max-width: ".concat(customBreakPoint,")");}if(breakPoint){if(["xs","sm","md","lg","xl","xxl"].includes(breakPoint)){return"(max-width: ".concat(BREAK_POINTS[breakPoint],")");}if(breakPoint==="always"||breakPoint==="all"){if(breakPoint==="always"){console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.');}return"screen";}return"(max-width: ".concat(breakPoint,")");}};var breakpointCallbackFnRef=React__default.useRef();breakpointCallbackFnRef.current=function(broken2){onBreakPoint===null||onBreakPoint===void 0?void 0:onBreakPoint(broken2);};var broken=useMediaQuery(getBreakpointValue());var _g=React__default.useState(false),mounted=_g[0],setMounted=_g[1];var legacySidebarContext=useLegacySidebar();var collapsedValue=collapsed2!==null&&collapsed2!==void 0?collapsed2:!mounted&&defaultCollapsed?true:legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.collapsed;var toggledValue=toggled!==null&&toggled!==void 0?toggled:legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.toggled;var handleBackdropClick=function handleBackdropClick(){onBackdropClick===null||onBackdropClick===void 0?void 0:onBackdropClick();legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState({toggled:false});};React__default.useEffect(function(){var _a2;(_a2=breakpointCallbackFnRef.current)===null||_a2===void 0?void 0:_a2.call(breakpointCallbackFnRef,broken);},[broken]);React__default.useEffect(function(){legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState({broken:broken,rtl:rtl,transitionDuration:transitionDuration});},[broken,legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState,rtl,transitionDuration]);React__default.useEffect(function(){if(!mounted){legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState({collapsed:defaultCollapsed});setMounted(true);}},[defaultCollapsed,mounted,legacySidebarContext===null||legacySidebarContext===void 0?void 0:legacySidebarContext.updateSidebarState]);return/*#__PURE__*/React__default.createElement(SidebarContext.Provider,{value:{collapsed:collapsedValue,toggled:toggledValue,rtl:rtl,transitionDuration:transitionDuration}},/*#__PURE__*/React__default.createElement(StyledSidebar,_assign({ref:ref,"data-testid":"".concat(sidebarClasses.root,"-test-id"),rtl:rtl,rootStyles:rootStyles,width:width2,collapsedWidth:collapsedWidth,transitionDuration:transitionDuration,className:classnames(sidebarClasses.root,(_b={},_b[sidebarClasses.collapsed]=collapsedValue,_b[sidebarClasses.toggled]=toggledValue,_b[sidebarClasses.broken]=broken,_b[sidebarClasses.rtl]=rtl,_b),className)},rest),/*#__PURE__*/React__default.createElement(StyledSidebarContainer,{"data-testid":"".concat(sidebarClasses.container,"-test-id"),className:sidebarClasses.container,backgroundColor:backgroundColor2},children),image2&&/*#__PURE__*/React__default.createElement(StyledSidebarImage,{"data-testid":"".concat(sidebarClasses.image,"-test-id"),src:image2,alt:"sidebar background",className:sidebarClasses.image}),broken&&toggledValue&&/*#__PURE__*/React__default.createElement(StyledBackdrop,{"data-testid":"".concat(sidebarClasses.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:handleBackdropClick,onKeyPress:handleBackdropClick,className:sidebarClasses.backdrop})));});var templateObject_1$a,templateObject_2$1,templateObject_3$1;var StyledUl=newStyled.ul(templateObject_1$9||(templateObject_1$9=__makeTemplateObject(["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"],["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])));var templateObject_1$9;var StyledMenu$1=newStyled.nav(templateObject_1$8||(templateObject_1$8=__makeTemplateObject(["\n &."," {\n ","\n }\n"],["\n &."," {\n ","\n }\n"])),menuClasses.root,function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var MenuContext=/*#__PURE__*/React__default.createContext(void 0);var LevelContext=/*#__PURE__*/React__default.createContext(0);var MenuFR=function MenuFR(_a,ref){var children=_a.children,className=_a.className,_b=_a.transitionDuration,transitionDuration=_b===void 0?300:_b,_c=_a.closeOnClick,closeOnClick=_c===void 0?false:_c,rootStyles=_a.rootStyles,menuItemStyles=_a.menuItemStyles,renderExpandIcon=_a.renderExpandIcon,rest=__rest(_a,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]);var providerValue=React__default.useMemo(function(){return{transitionDuration:transitionDuration,closeOnClick:closeOnClick,menuItemStyles:menuItemStyles,renderExpandIcon:renderExpandIcon};},[transitionDuration,closeOnClick,menuItemStyles,renderExpandIcon]);return/*#__PURE__*/React__default.createElement(MenuContext.Provider,{value:providerValue},/*#__PURE__*/React__default.createElement(LevelContext.Provider,{value:0},/*#__PURE__*/React__default.createElement(StyledMenu$1,_assign({ref:ref,className:classnames(menuClasses.root,className),rootStyles:rootStyles},rest),/*#__PURE__*/React__default.createElement(StyledUl,null,children))));};var Menu3=/*#__PURE__*/React__default.forwardRef(MenuFR);var templateObject_1$8;var useMenu=function useMenu(){var context=React__default.useContext(MenuContext);if(context===void 0){throw new Error("Menu Component is required!");}return context;};var StyledSubMenuContent=newStyled.div(templateObject_1$7||(templateObject_1$7=__makeTemplateObject(["\n height: 0px;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"],["\n height: 0px;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"])),function(_a){var transitionDuration=_a.transitionDuration;return transitionDuration;},function(_a){var firstLevel=_a.firstLevel,collapsed2=_a.collapsed;return firstLevel&&collapsed2&&"\n background-color: white;\n box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;\n ";},function(_a){var defaultOpen=_a.defaultOpen;return defaultOpen&&"height: auto;display: block;";},function(_a){var collapsed2=_a.collapsed,firstLevel=_a.firstLevel,openWhenCollapsed=_a.openWhenCollapsed;return collapsed2&&firstLevel?"\n position: fixed;\n padding-left: 0px;\n width: 200px;\n border-radius: 4px;\n height: auto!important;\n display: block!important; \n transition: none!important; \n visibility: ".concat(openWhenCollapsed?"visible":"hidden",";\n "):"\n position: static!important;\n transform: none!important;\n ";},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var SubMenuContentFR=function SubMenuContentFR(_a,ref){var children=_a.children,open=_a.open,openWhenCollapsed=_a.openWhenCollapsed,firstLevel=_a.firstLevel,collapsed2=_a.collapsed,defaultOpen=_a.defaultOpen,rest=__rest(_a,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]);var transitionDuration=useMenu().transitionDuration;var defaultOpenState=React__default.useState(defaultOpen)[0];return/*#__PURE__*/React__default.createElement(StyledSubMenuContent,_assign({"data-testid":"".concat(menuClasses.subMenuContent,"-test-id"),ref:ref,firstLevel:firstLevel,collapsed:collapsed2,open:open,openWhenCollapsed:openWhenCollapsed,transitionDuration:transitionDuration,defaultOpen:defaultOpenState},rest),/*#__PURE__*/React__default.createElement(StyledUl,null,children));};var SubMenuContent=/*#__PURE__*/React__default.forwardRef(SubMenuContentFR);var templateObject_1$7;var StyledMenuLabel=newStyled.span(templateObject_1$6||(templateObject_1$6=__makeTemplateObject(["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"],["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"])),function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$6;var StyledMenuIcon=newStyled.span(templateObject_1$5||(templateObject_1$5=__makeTemplateObject(["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"],["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"])),function(_a){var rtl=_a.rtl;return rtl?"margin-left: 10px;":"margin-right: 10px;";},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$5;var StyledMenuPrefix=newStyled.span(templateObject_1$4||(templateObject_1$4=__makeTemplateObject(["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),function(_a){var rtl=_a.rtl;return rtl?"margin-left: 5px;":"margin-right: 5px;";},function(_a){var firstLevel=_a.firstLevel,collapsed2=_a.collapsed;return firstLevel&&collapsed2?"0":"1";},function(_a){var transitionDuration=_a.transitionDuration;return transitionDuration;},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$4;var StyledMenuSuffix=newStyled.span(templateObject_1$3||(templateObject_1$3=__makeTemplateObject(["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),function(_a){var firstLevel=_a.firstLevel,collapsed2=_a.collapsed;return firstLevel&&collapsed2?"0":"1";},function(_a){var transitionDuration=_a.transitionDuration;return transitionDuration;},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var templateObject_1$3;var StyledExpandIconWrapper=newStyled.span(templateObject_1$2||(templateObject_1$2=__makeTemplateObject(["\n ","\n\n ",";\n"],["\n ","\n\n ",";\n"])),function(_a){var collapsed2=_a.collapsed,level=_a.level,rtl=_a.rtl;return collapsed2&&level===0&&"\n position: absolute;\n ".concat(rtl?"left: 10px;":"right: 10px;","\n top: 50%;\n transform: translateY(-50%);\n \n ");},function(_a){var rootStyles=_a.rootStyles;return rootStyles;});var StyledExpandIcon=newStyled.span(templateObject_2||(templateObject_2=__makeTemplateObject(["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"],["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"])),function(_a){var rtl=_a.rtl;return rtl?"\n border-left: 2px solid currentcolor;\n border-top: 2px solid currentcolor;\n ":" border-right: 2px solid currentcolor;\n border-bottom: 2px solid currentcolor;\n ";},function(_a){var open=_a.open,rtl=_a.rtl;return open?rtl?"-135deg":"45deg":"-45deg";});var StyledExpandIconCollapsed=newStyled.span(templateObject_3||(templateObject_3=__makeTemplateObject(["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"],["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"])));var templateObject_1$2,templateObject_2,templateObject_3;var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=/* @__PURE__ */basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end]);},[]);var placements=/* @__PURE__ */[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end]);},[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null;}function getWindow(node2){if(node2==null){return window;}if(node2.toString()!=="[object Window]"){var ownerDocument2=node2.ownerDocument;return ownerDocument2?ownerDocument2.defaultView||window:window;}return node2;}function isElement(node2){var OwnElement=getWindow(node2).Element;return node2 instanceof OwnElement||node2 instanceof Element;}function isHTMLElement(node2){var OwnElement=getWindow(node2).HTMLElement;return node2 instanceof OwnElement||node2 instanceof HTMLElement;}function isShadowRoot(node2){if(typeof ShadowRoot==="undefined"){return false;}var OwnElement=getWindow(node2).ShadowRoot;return node2 instanceof OwnElement||node2 instanceof ShadowRoot;}function applyStyles(_ref3){var state=_ref3.state;Object.keys(state.elements).forEach(function(name){var style2=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement(element)||!getNodeName(element)){return;}Object.assign(element.style,style2);Object.keys(attributes).forEach(function(name2){var value=attributes[name2];if(value===false){element.removeAttribute(name2);}else{element.setAttribute(name2,value===true?"":value);}});});}function effect$2(_ref22){var state=_ref22.state;var initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow);}return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style2=styleProperties.reduce(function(style3,property2){style3[property2]="";return style3;},{});if(!isHTMLElement(element)||!getNodeName(element)){return;}Object.assign(element.style,style2);Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);});});};}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(placement){return placement.split("-")[0];}var max=Math.max;var min=Math.min;var round=Math.round;function getUAString(){var uaData=navigator.userAgentData;if(uaData!=null&&uaData.brands){return uaData.brands.map(function(item2){return item2.brand+"/"+item2.version;}).join(" ");}return navigator.userAgent;}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString());}function getBoundingClientRect(element,includeScale,isFixedStrategy){if(includeScale===void 0){includeScale=false;}if(isFixedStrategy===void 0){isFixedStrategy=false;}var clientRect=element.getBoundingClientRect();var scaleX=1;var scaleY=1;if(includeScale&&isHTMLElement(element)){scaleX=element.offsetWidth>0?round(clientRect.width)/element.offsetWidth||1:1;scaleY=element.offsetHeight>0?round(clientRect.height)/element.offsetHeight||1:1;}var _ref3=isElement(element)?getWindow(element):window,visualViewport=_ref3.visualViewport;var addVisualOffsets=!isLayoutViewport()&&isFixedStrategy;var x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX;var y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY;var width2=clientRect.width/scaleX;var height2=clientRect.height/scaleY;return{width:width2,height:height2,top:y,right:x+width2,bottom:y+height2,left:x,x:x,y:y};}function getLayoutRect(element){var clientRect=getBoundingClientRect(element);var width2=element.offsetWidth;var height2=element.offsetHeight;if(Math.abs(clientRect.width-width2)<=1){width2=clientRect.width;}if(Math.abs(clientRect.height-height2)<=1){height2=clientRect.height;}return{x:element.offsetLeft,y:element.offsetTop,width:width2,height:height2};}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true;}else if(rootNode&&isShadowRoot(rootNode)){var next2=child;do{if(next2&&parent.isSameNode(next2)){return true;}next2=next2.parentNode||next2.host;}while(next2);}return false;}function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element);}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0;}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:// $FlowFixMe[prop-missing]
|
|
7120
7124
|
element.document)||window.document).documentElement;}function getParentNode(element){if(getNodeName(element)==="html"){return element;}return(// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
7121
7125
|
// $FlowFixMe[incompatible-return]
|
|
7122
7126
|
// $FlowFixMe[prop-missing]
|
|
@@ -7125,11 +7129,11 @@ element.parentNode||(// DOM Element detected
|
|
|
7125
7129
|
isShadowRoot(element)?element.host:null)||// ShadowRoot detected
|
|
7126
7130
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
7127
7131
|
getDocumentElement(element));}function getTrueOffsetParent(element){if(!isHTMLElement(element)||// https://github.com/popperjs/popper-core/issues/837
|
|
7128
|
-
getComputedStyle$1(element).position==="fixed"){return null;}return element.offsetParent;}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString());var isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle$1(element);if(elementCss.position==="fixed"){return null;}}var currentNode=getParentNode(element);if(isShadowRoot(currentNode)){currentNode=currentNode.host;}while(isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0){var css4=getComputedStyle$1(currentNode);if(css4.transform!=="none"||css4.perspective!=="none"||css4.contain==="paint"||["transform","perspective"].indexOf(css4.willChange)!==-1||isFirefox&&css4.willChange==="filter"||isFirefox&&css4.filter&&css4.filter!=="none"){return currentNode;}else{currentNode=currentNode.parentNode;}}return null;}function getOffsetParent(element){var window2=getWindow(element);var offsetParent=getTrueOffsetParent(element);while(offsetParent&&isTableElement(offsetParent)&&getComputedStyle$1(offsetParent).position==="static"){offsetParent=getTrueOffsetParent(offsetParent);}if(offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle$1(offsetParent).position==="static")){return window2;}return offsetParent||getContainingBlock(element)||window2;}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y";}function within(min$12,value,max$12){return max(min$12,min(value,max$12));}function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v;}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0};}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject);}function expandToHashMap(value,
|
|
7132
|
+
getComputedStyle$1(element).position==="fixed"){return null;}return element.offsetParent;}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString());var isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle$1(element);if(elementCss.position==="fixed"){return null;}}var currentNode=getParentNode(element);if(isShadowRoot(currentNode)){currentNode=currentNode.host;}while(isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0){var css4=getComputedStyle$1(currentNode);if(css4.transform!=="none"||css4.perspective!=="none"||css4.contain==="paint"||["transform","perspective"].indexOf(css4.willChange)!==-1||isFirefox&&css4.willChange==="filter"||isFirefox&&css4.filter&&css4.filter!=="none"){return currentNode;}else{currentNode=currentNode.parentNode;}}return null;}function getOffsetParent(element){var window2=getWindow(element);var offsetParent=getTrueOffsetParent(element);while(offsetParent&&isTableElement(offsetParent)&&getComputedStyle$1(offsetParent).position==="static"){offsetParent=getTrueOffsetParent(offsetParent);}if(offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle$1(offsetParent).position==="static")){return window2;}return offsetParent||getContainingBlock(element)||window2;}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y";}function within(min$12,value,max$12){return max(min$12,min(value,max$12));}function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v;}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0};}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject);}function expandToHashMap(value,keys2){return keys2.reduce(function(hashMap,key){hashMap[key]=value;return hashMap;},{});}var toPaddingObject2=function toPaddingObject3(padding2,state){padding2=typeof padding2==="function"?padding2(Object.assign({},state.rects,{placement:state.placement})):padding2;return mergePaddingObject(typeof padding2!=="number"?padding2:expandToHashMap(padding2,basePlacements));};function arrow(_ref3){var _state$modifiersData$;var state=_ref3.state,name=_ref3.name,options=_ref3.options;var arrowElement=state.elements.arrow;var popperOffsets2=state.modifiersData.popperOffsets;var basePlacement=getBasePlacement(state.placement);var axis=getMainAxisFromPlacement(basePlacement);var isVertical=[left,right].indexOf(basePlacement)>=0;var len=isVertical?"height":"width";if(!arrowElement||!popperOffsets2){return;}var paddingObject=toPaddingObject2(options.padding,state);var arrowRect=getLayoutRect(arrowElement);var minProp=axis==="y"?top:left;var maxProp=axis==="y"?bottom:right;var endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len];var startDiff=popperOffsets2[axis]-state.rects.reference[axis];var arrowOffsetParent=getOffsetParent(arrowElement);var clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0;var centerToReference=endDiff/2-startDiff/2;var min2=paddingObject[minProp];var max2=clientSize-arrowRect[len]-paddingObject[maxProp];var center=clientSize/2-arrowRect[len]/2+centerToReference;var offset2=within(min2,center,max2);var axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$);}function effect$1(_ref22){var state=_ref22.state,options=_ref22.options;var _options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;if(arrowElement==null){return;}if(typeof arrowElement==="string"){arrowElement=state.elements.popper.querySelector(arrowElement);if(!arrowElement){return;}}if(process.env.NODE_ENV!=="production"){if(!isHTMLElement(arrowElement)){console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "));}}if(!contains(state.elements.popper,arrowElement)){if(process.env.NODE_ENV!=="production"){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));}return;}state.elements.arrow=arrowElement;}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(placement){return placement.split("-")[1];}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref3){var x=_ref3.x,y=_ref3.y;var win=window;var dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0};}function mapToStyles(_ref22){var _Object$assign2;var popper2=_ref22.popper,popperRect=_ref22.popperRect,placement=_ref22.placement,variation=_ref22.variation,offsets=_ref22.offsets,position2=_ref22.position,gpuAcceleration=_ref22.gpuAcceleration,adaptive=_ref22.adaptive,roundOffsets=_ref22.roundOffsets,isFixed=_ref22.isFixed;var _offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y;var _ref3=typeof roundOffsets==="function"?roundOffsets({x:x,y:y}):{x:x,y:y};x=_ref3.x;y=_ref3.y;var hasX=offsets.hasOwnProperty("x");var hasY=offsets.hasOwnProperty("y");var sideX=left;var sideY=top;var win=window;if(adaptive){var offsetParent=getOffsetParent(popper2);var heightProp="clientHeight";var widthProp="clientWidth";if(offsetParent===getWindow(popper2)){offsetParent=getDocumentElement(popper2);if(getComputedStyle$1(offsetParent).position!=="static"&&position2==="absolute"){heightProp="scrollHeight";widthProp="scrollWidth";}}offsetParent=offsetParent;if(placement===top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:// $FlowFixMe[prop-missing]
|
|
7129
7133
|
offsetParent[heightProp];y-=offsetY-popperRect.height;y*=gpuAcceleration?1:-1;}if(placement===left||(placement===top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:// $FlowFixMe[prop-missing]
|
|
7130
|
-
offsetParent[widthProp];x-=offsetX-popperRect.width;x*=gpuAcceleration?1:-1;}}var commonStyles=Object.assign({position:position2},adaptive&&unsetSides);var _ref4=roundOffsets===true?roundOffsetsByDPR({x:x,y:y}):{x:x,y:y};x=_ref4.x;y=_ref4.y;if(gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign));}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2));}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options;var _options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?true:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?true:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?true:_options$roundOffsets;if(process.env.NODE_ENV!=="production"){var transitionProperty=getComputedStyle$1(state.elements.popper).transitionProperty||"";if(adaptive&&["transform","top","right","bottom","left"].some(function(
|
|
7134
|
+
offsetParent[widthProp];x-=offsetX-popperRect.width;x*=gpuAcceleration?1:-1;}}var commonStyles=Object.assign({position:position2},adaptive&&unsetSides);var _ref4=roundOffsets===true?roundOffsetsByDPR({x:x,y:y}):{x:x,y:y};x=_ref4.x;y=_ref4.y;if(gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign));}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2));}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options;var _options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?true:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?true:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?true:_options$roundOffsets;if(process.env.NODE_ENV!=="production"){var transitionProperty=getComputedStyle$1(state.elements.popper).transitionProperty||"";if(adaptive&&["transform","top","right","bottom","left"].some(function(property2){return transitionProperty.indexOf(property2)>=0;})){console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));}}var commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration:gpuAcceleration,isFixed:state.options.strategy==="fixed"};if(state.modifiersData.popperOffsets!=null){state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive:adaptive,roundOffsets:roundOffsets})));}if(state.modifiersData.arrow!=null){state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:roundOffsets})));}state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement});}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(_ref3){var state=_ref3.state,instance2=_ref3.instance,options=_ref3.options;var _options$scroll=options.scroll,scroll=_options$scroll===void 0?true:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?true:_options$resize;var window2=getWindow(state.elements.popper);var scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance2.update,passive);});}if(resize){window2.addEventListener("resize",instance2.update,passive);}return function(){if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance2.update,passive);});}if(resize){window2.removeEventListener("resize",instance2.update,passive);}};}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function fn2(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash$1[matched];});}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash[matched];});}function getWindowScroll(node2){var win=getWindow(node2);var scrollLeft=win.pageXOffset;var scrollTop=win.pageYOffset;return{scrollLeft:scrollLeft,scrollTop:scrollTop};}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft;}function getViewportRect(element,strategy){var win=getWindow(element);var html=getDocumentElement(element);var visualViewport=win.visualViewport;var width2=html.clientWidth;var height2=html.clientHeight;var x=0;var y=0;if(visualViewport){width2=visualViewport.width;height2=visualViewport.height;var layoutViewport=isLayoutViewport();if(layoutViewport||!layoutViewport&&strategy==="fixed"){x=visualViewport.offsetLeft;y=visualViewport.offsetTop;}}return{width:width2,height:height2,x:x+getWindowScrollBarX(element),y:y};}function getDocumentRect(element){var _element$ownerDocumen;var html=getDocumentElement(element);var winScroll=getWindowScroll(element);var body2=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body;var width2=max(html.scrollWidth,html.clientWidth,body2?body2.scrollWidth:0,body2?body2.clientWidth:0);var height2=max(html.scrollHeight,html.clientHeight,body2?body2.scrollHeight:0,body2?body2.clientHeight:0);var x=-winScroll.scrollLeft+getWindowScrollBarX(element);var y=-winScroll.scrollTop;if(getComputedStyle$1(body2||html).direction==="rtl"){x+=max(html.clientWidth,body2?body2.clientWidth:0)-width2;}return{width:width2,height:height2,x:x,y:y};}function isScrollParent(element){var _getComputedStyle=getComputedStyle$1(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return /auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX);}function getScrollParent(node2){if(["html","body","#document"].indexOf(getNodeName(node2))>=0){return node2.ownerDocument.body;}if(isHTMLElement(node2)&&isScrollParent(node2)){return node2;}return getScrollParent(getParentNode(node2));}function listScrollParents(element,list2){var _element$ownerDocumen;if(list2===void 0){list2=[];}var scrollParent=getScrollParent(element);var isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body);var win=getWindow(scrollParent);var target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent;var updatedList=list2.concat(target);return isBody?updatedList:// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
7131
7135
|
updatedList.concat(listScrollParents(getParentNode(target)));}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height});}function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,false,strategy==="fixed");rect.top=rect.top+element.clientTop;rect.left=rect.left+element.clientLeft;rect.bottom=rect.top+element.clientHeight;rect.right=rect.left+element.clientWidth;rect.width=element.clientWidth;rect.height=element.clientHeight;rect.x=rect.left;rect.y=rect.top;return rect;}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)));}function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element));var canEscapeClipping=["absolute","fixed"].indexOf(getComputedStyle$1(element).position)>=0;var clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;if(!isElement(clipperElement)){return[];}return clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=="body";});}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==="clippingParents"?getClippingParents(element):[].concat(boundary);var clippingParents2=[].concat(mainClippingParents,[rootBoundary]);var firstClippingParent=clippingParents2[0];var clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);accRect.top=max(rect.top,accRect.top);accRect.right=min(rect.right,accRect.right);accRect.bottom=min(rect.bottom,accRect.bottom);accRect.left=max(rect.left,accRect.left);return accRect;},getClientRectFromMixedType(element,firstClippingParent,strategy));clippingRect.width=clippingRect.right-clippingRect.left;clippingRect.height=clippingRect.bottom-clippingRect.top;clippingRect.x=clippingRect.left;clippingRect.y=clippingRect.top;return clippingRect;}function computeOffsets(_ref3){var reference2=_ref3.reference,element=_ref3.element,placement=_ref3.placement;var basePlacement=placement?getBasePlacement(placement):null;var variation=placement?getVariation(placement):null;var commonX=reference2.x+reference2.width/2-element.width/2;var commonY=reference2.y+reference2.height/2-element.height/2;var offsets;switch(basePlacement){case top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y};}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==="y"?"height":"width";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;}}return offsets;}function detectOverflow(state,options){if(options===void 0){options={};}var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?false:_options$altBoundary,_options$padding=_options.padding,padding2=_options$padding===void 0?0:_options$padding;var paddingObject=mergePaddingObject(typeof padding2!=="number"?padding2:expandToHashMap(padding2,basePlacements));var altContext=elementContext===popper?reference:popper;var popperRect=state.rects.popper;var element=state.elements[altBoundary?altContext:elementContext];var clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy);var referenceClientRect=getBoundingClientRect(state.elements.reference);var popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,placement:placement});var popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2));var elementClientRect=elementContext===popper?popperClientRect:referenceClientRect;var overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right};var offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1;var axis=[top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply;});}return overflowOffsets;}function computeAutoPlacement(state,options){if(options===void 0){options={};}var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding2=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements:_options$allowedAutoP;var variation=getVariation(placement);var placements$12=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation;}):basePlacements;var allowedPlacements=placements$12.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0;});if(allowedPlacements.length===0){allowedPlacements=placements$12;if(process.env.NODE_ENV!=="production"){console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" "));}}var overflows=allowedPlacements.reduce(function(acc,placement2){acc[placement2]=detectOverflow(state,{placement:placement2,boundary:boundary,rootBoundary:rootBoundary,padding:padding2})[getBasePlacement(placement2)];return acc;},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b];});}function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto){return[];}var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)];}function flip(_ref3){var state=_ref3.state,options=_ref3.options,name=_ref3.name;if(state.modifiersData[name]._skip){return;}var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?true:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding2=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?true:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements;var preferredPlacement=state.options.placement;var basePlacement=getBasePlacement(preferredPlacement);var isBasePlacement=basePlacement===preferredPlacement;var fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement));var placements2=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?computeAutoPlacement(state,{placement:placement2,boundary:boundary,rootBoundary:rootBoundary,padding:padding2,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement2);},[]);var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var checksMap=/* @__PURE__ */new Map();var makeFallbackChecks=true;var firstFittingPlacement=placements2[0];for(var i=0;i<placements2.length;i++){var placement=placements2[i];var _basePlacement=getBasePlacement(placement);var isStartVariation=getVariation(placement)===start;var isVertical=[top,bottom].indexOf(_basePlacement)>=0;var len=isVertical?"width":"height";var overflow=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding2});var mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;if(referenceRect[len]>popperRect[len]){mainVariationSide=getOppositePlacement(mainVariationSide);}var altVariationSide=getOppositePlacement(mainVariationSide);var checks=[];if(checkMainAxis){checks.push(overflow[_basePlacement]<=0);}if(checkAltAxis){checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0);}if(checks.every(function(check){return check;})){firstFittingPlacement=placement;makeFallbackChecks=false;break;}checksMap.set(placement,checks);}if(makeFallbackChecks){var numberOfChecks=flipVariations?3:1;var _loop=function _loop2(_i2){var fittingPlacement=placements2.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2){return checks2.slice(0,_i2).every(function(check){return check;});}});if(fittingPlacement){firstFittingPlacement=fittingPlacement;return"break";}};for(var _i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break;}}if(state.placement!==firstFittingPlacement){state.modifiersData[name]._skip=true;state.placement=firstFittingPlacement;state.reset=true;}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(overflow,rect,preventedOffsets){if(preventedOffsets===void 0){preventedOffsets={x:0,y:0};}return{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x};}function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some(function(side){return overflow[side]>=0;});}function hide(_ref3){var state=_ref3.state,name=_ref3.name;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var preventedOffsets=state.modifiersData.preventOverflow;var referenceOverflow=detectOverflow(state,{elementContext:"reference"});var popperAltOverflow=detectOverflow(state,{altBoundary:true});var referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect);var popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets);var isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets);var hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped};state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped});}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement);var invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1;var _ref3=typeof offset2==="function"?offset2(Object.assign({},rects,{placement:placement})):offset2,skidding=_ref3[0],distance=_ref3[1];skidding=skidding||0;distance=(distance||0)*invertDistance;return[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance};}function offset(_ref22){var state=_ref22.state,options=_ref22.options,name=_ref22.name;var _options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset;var data=placements.reduce(function(acc,placement){acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset2);return acc;},{});var _data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;if(state.modifiersData.popperOffsets!=null){state.modifiersData.popperOffsets.x+=x;state.modifiersData.popperOffsets.y+=y;}state.modifiersData[name]=data;}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(_ref3){var state=_ref3.state,name=_ref3.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,placement:state.placement});}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(axis){return axis==="x"?"y":"x";}function preventOverflow(_ref3){var state=_ref3.state,options=_ref3.options,name=_ref3.name;var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?false:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding2=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?true:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset;var overflow=detectOverflow(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding2,altBoundary:altBoundary});var basePlacement=getBasePlacement(state.placement);var variation=getVariation(state.placement);var isBasePlacement=!variation;var mainAxis=getMainAxisFromPlacement(basePlacement);var altAxis=getAltAxis(mainAxis);var popperOffsets2=state.modifiersData.popperOffsets;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var tetherOffsetValue=typeof tetherOffset==="function"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset;var normalizedTetherOffsetValue=typeof tetherOffsetValue==="number"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue);var offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null;var data={x:0,y:0};if(!popperOffsets2){return;}if(checkMainAxis){var _offsetModifierState$;var mainSide=mainAxis==="y"?top:left;var altSide=mainAxis==="y"?bottom:right;var len=mainAxis==="y"?"height":"width";var offset2=popperOffsets2[mainAxis];var min$12=offset2+overflow[mainSide];var max$12=offset2-overflow[altSide];var additive=tether?-popperRect[len]/2:0;var minLen=variation===start?referenceRect[len]:popperRect[len];var maxLen=variation===start?-popperRect[len]:-referenceRect[len];var arrowElement=state.elements.arrow;var arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0};var arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:getFreshSideObject();var arrowPaddingMin=arrowPaddingObject[mainSide];var arrowPaddingMax=arrowPaddingObject[altSide];var arrowLen=within(0,referenceRect[len],arrowRect[len]);var minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis;var maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis;var arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow);var clientOffset=arrowOffsetParent?mainAxis==="y"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0;var offsetModifierValue=(_offsetModifierState$=offsetModifierState==null?void 0:offsetModifierState[mainAxis])!=null?_offsetModifierState$:0;var tetherMin=offset2+minOffset-offsetModifierValue-clientOffset;var tetherMax=offset2+maxOffset-offsetModifierValue;var preventedOffset=within(tether?min(min$12,tetherMin):min$12,offset2,tether?max(max$12,tetherMax):max$12);popperOffsets2[mainAxis]=preventedOffset;data[mainAxis]=preventedOffset-offset2;}if(checkAltAxis){var _offsetModifierState$2;var _mainSide=mainAxis==="x"?top:left;var _altSide=mainAxis==="x"?bottom:right;var _offset=popperOffsets2[altAxis];var _len=altAxis==="y"?"height":"width";var _min=_offset+overflow[_mainSide];var _max=_offset-overflow[_altSide];var isOriginSide=[top,left].indexOf(basePlacement)!==-1;var _offsetModifierValue=(_offsetModifierState$2=offsetModifierState==null?void 0:offsetModifierState[altAxis])!=null?_offsetModifierState$2:0;var _tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis;var _tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max;var _preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset;data[altAxis]=_preventedOffset-_offset;}state.modifiersData[name]=data;}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop};}function getNodeScroll(node2){if(node2===getWindow(node2)||!isHTMLElement(node2)){return getWindowScroll(node2);}else{return getHTMLElementScroll(node2);}}function isElementScaled(element){var rect=element.getBoundingClientRect();var scaleX=round(rect.width)/element.offsetWidth||1;var scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1;}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){if(isFixed===void 0){isFixed=false;}var isOffsetParentAnElement=isHTMLElement(offsetParent);var offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent);var documentElement=getDocumentElement(offsetParent);var rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed);var scroll={scrollLeft:0,scrollTop:0};var offsets={x:0,y:0};if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName(offsetParent)!=="body"||// https://github.com/popperjs/popper-core/issues/1078
|
|
7132
|
-
isScrollParent(documentElement)){scroll=getNodeScroll(offsetParent);}if(isHTMLElement(offsetParent)){offsets=getBoundingClientRect(offsetParent,true);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop;}else if(documentElement){offsets.x=getWindowScrollBarX(documentElement);}}return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height};}function order(modifiers){var
|
|
7136
|
+
isScrollParent(documentElement)){scroll=getNodeScroll(offsetParent);}if(isHTMLElement(offsetParent)){offsets=getBoundingClientRect(offsetParent,true);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop;}else if(documentElement){offsets.x=getWindowScrollBarX(documentElement);}}return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height};}function order(modifiers){var map2=/* @__PURE__ */new Map();var visited=/* @__PURE__ */new Set();var result=[];modifiers.forEach(function(modifier){map2.set(modifier.name,modifier);});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map2.get(dep);if(depModifier){sort(depModifier);}}});result.push(modifier);}modifiers.forEach(function(modifier){if(!visited.has(modifier.name)){sort(modifier);}});return result;}function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase;}));},[]);}function debounce(fn3){var pending;return function(){if(!pending){pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0;resolve(fn3());});});}return pending;};}function format(str){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}return[].concat(args).reduce(function(p,c){return p.replace(/%s/,c);},str);}var INVALID_MODIFIER_ERROR='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';var MISSING_DEPENDENCY_ERROR='Popper: modifier "%s" requires "%s", but "%s" modifier is not available';var VALID_PROPERTIES=["name","enabled","phase","fn","effect","requires","options"];function validateModifiers(modifiers){modifiers.forEach(function(modifier){[].concat(Object.keys(modifier),VALID_PROPERTIES).filter(function(value,index2,self2){return self2.indexOf(value)===index2;}).forEach(function(key){switch(key){case"name":if(typeof modifier.name!=="string"){console.error(format(INVALID_MODIFIER_ERROR,String(modifier.name),'"name"','"string"','"'+String(modifier.name)+'"'));}break;case"enabled":if(typeof modifier.enabled!=="boolean"){console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"enabled"','"boolean"','"'+String(modifier.enabled)+'"'));}break;case"phase":if(modifierPhases.indexOf(modifier.phase)<0){console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"phase"',"either "+modifierPhases.join(", "),'"'+String(modifier.phase)+'"'));}break;case"fn":if(typeof modifier.fn!=="function"){console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"fn"','"function"','"'+String(modifier.fn)+'"'));}break;case"effect":if(modifier.effect!=null&&typeof modifier.effect!=="function"){console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"effect"','"function"','"'+String(modifier.fn)+'"'));}break;case"requires":if(modifier.requires!=null&&!Array.isArray(modifier.requires)){console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"requires"','"array"','"'+String(modifier.requires)+'"'));}break;case"requiresIfExists":if(!Array.isArray(modifier.requiresIfExists)){console.error(format(INVALID_MODIFIER_ERROR,modifier.name,'"requiresIfExists"','"array"','"'+String(modifier.requiresIfExists)+'"'));}break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+modifier.name+'" modifier, valid properties are '+VALID_PROPERTIES.map(function(s){return'"'+s+'"';}).join(", ")+'; but "'+key+'" was provided.');}modifier.requires&&modifier.requires.forEach(function(requirement){if(modifiers.find(function(mod){return mod.name===requirement;})==null){console.error(format(MISSING_DEPENDENCY_ERROR,String(modifier.name),requirement,requirement));}});});});}function uniqueBy(arr,fn3){var identifiers=/* @__PURE__ */new Set();return arr.filter(function(item2){var identifier2=fn3(item2);if(!identifiers.has(identifier2)){identifiers.add(identifier2);return true;}});}function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current;return merged2;},{});return Object.keys(merged).map(function(key){return merged[key];});}var INVALID_ELEMENT_ERROR="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";var INFINITE_LOOP_ERROR="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.";var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect==="function");});}function popperGenerator(generatorOptions){if(generatorOptions===void 0){generatorOptions={};}var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions2=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper2(reference2,popper2,options){if(options===void 0){options=defaultOptions2;}var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions2),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}};var effectCleanupFns=[];var isDestroyed=false;var instance2={state:state,setOptions:function setOptions(setOptionsAction){var options2=typeof setOptionsAction==="function"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects();state.options=Object.assign({},defaultOptions2,state.options,options2);state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers2,state.options.modifiers)));state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled;});if(process.env.NODE_ENV!=="production"){var modifiers=uniqueBy([].concat(orderedModifiers,state.options.modifiers),function(_ref3){var name=_ref3.name;return name;});validateModifiers(modifiers);if(getBasePlacement(state.options.placement)===auto){var flipModifier=state.orderedModifiers.find(function(_ref22){var name=_ref22.name;return name==="flip";});if(!flipModifier){console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));}}var _getComputedStyle=getComputedStyle$1(popper2),marginTop=_getComputedStyle.marginTop,marginRight=_getComputedStyle.marginRight,marginBottom=_getComputedStyle.marginBottom,marginLeft=_getComputedStyle.marginLeft;if([marginTop,marginRight,marginBottom,marginLeft].some(function(margin2){return parseFloat(margin2);})){console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "));}}runModifierEffects();return instance2.update();},// Sync update – it will always be executed, even if not necessary. This
|
|
7133
7137
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
7134
7138
|
// logic.
|
|
7135
7139
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|