@bigbinary/neetoui 6.0.0 → 6.0.2

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.
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$3 from 'react';
2
2
  import React__default, { createContext, useLayoutEffect, useEffect, useContext, useRef, useInsertionEffect as useInsertionEffect$1, useCallback, useMemo, forwardRef as forwardRef$1, createElement, useId as useId$1, useState, cloneElement as cloneElement$1, Children, isValidElement, useSyncExternalStore, Fragment, Component, memo as memo$1 } from 'react';
3
- import { isEmpty, equals, complement, toPairs, pipe as pipe$1, omit, isNil, replace as replace$2, assoc, pluck, mergeLeft, prop, flatten, move } from 'ramda';
3
+ import { isEmpty, equals, complement, toPairs, pipe as pipe$1, omit, isNil, mergeLeft, replace as replace$2, assoc, pluck, prop, flatten, move } from 'ramda';
4
4
  import { Right, Down, Close, Info, Focus, Left, Calendar, Check, MenuHorizontal, Clock as Clock$1, CheckCircle, Warning, CloseCircle } from '@bigbinary/neeto-icons';
5
5
  import { preprocessForSerialization, isPresent, _existsBy, camelToSnakeCase, modifyBy, snakeToCamelCase, dynamicArray } from '@bigbinary/neeto-cist';
6
6
  import require$$0 from 'util';
@@ -15,22 +15,22 @@ import { Slide, toast } from 'react-toastify';
15
15
  import _Tree from 'antd/lib/tree';
16
16
  import _TreeSelect from 'antd/lib/tree-select';
17
17
 
18
- function _typeof$6(obj) {
18
+ function _typeof$7(obj) {
19
19
  "@babel/helpers - typeof";
20
20
 
21
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
21
+ return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
22
22
  return typeof obj;
23
23
  } : function (obj) {
24
24
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
25
- }, _typeof$6(obj);
25
+ }, _typeof$7(obj);
26
26
  }
27
27
 
28
28
  function _toPrimitive$1(input, hint) {
29
- if (_typeof$6(input) !== "object" || input === null) return input;
29
+ if (_typeof$7(input) !== "object" || input === null) return input;
30
30
  var prim = input[Symbol.toPrimitive];
31
31
  if (prim !== undefined) {
32
32
  var res = prim.call(input, hint || "default");
33
- if (_typeof$6(res) !== "object") return res;
33
+ if (_typeof$7(res) !== "object") return res;
34
34
  throw new TypeError("@@toPrimitive must return a primitive value.");
35
35
  }
36
36
  return (hint === "string" ? String : Number)(input);
@@ -38,7 +38,7 @@ function _toPrimitive$1(input, hint) {
38
38
 
39
39
  function _toPropertyKey(arg) {
40
40
  var key = _toPrimitive$1(arg, "string");
41
- return _typeof$6(key) === "symbol" ? key : String(key);
41
+ return _typeof$7(key) === "symbol" ? key : String(key);
42
42
  }
43
43
 
44
44
  function _defineProperty$7(obj, key, value) {
@@ -56,11 +56,11 @@ function _defineProperty$7(obj, key, value) {
56
56
  return obj;
57
57
  }
58
58
 
59
- function _arrayWithHoles$2(arr) {
59
+ function _arrayWithHoles$3(arr) {
60
60
  if (Array.isArray(arr)) return arr;
61
61
  }
62
62
 
63
- function _iterableToArrayLimit$2(arr, i) {
63
+ function _iterableToArrayLimit$3(arr, i) {
64
64
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
65
65
  if (null != _i) {
66
66
  var _s,
@@ -88,32 +88,32 @@ function _iterableToArrayLimit$2(arr, i) {
88
88
  }
89
89
  }
90
90
 
91
- function _arrayLikeToArray$2(arr, len) {
91
+ function _arrayLikeToArray$3(arr, len) {
92
92
  if (len == null || len > arr.length) len = arr.length;
93
93
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
94
94
  return arr2;
95
95
  }
96
96
 
97
- function _unsupportedIterableToArray$2(o, minLen) {
97
+ function _unsupportedIterableToArray$3(o, minLen) {
98
98
  if (!o) return;
99
- if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
99
+ if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
100
100
  var n = Object.prototype.toString.call(o).slice(8, -1);
101
101
  if (n === "Object" && o.constructor) n = o.constructor.name;
102
102
  if (n === "Map" || n === "Set") return Array.from(o);
103
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
103
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
104
104
  }
105
105
 
106
- function _nonIterableRest$2() {
106
+ function _nonIterableRest$3() {
107
107
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
108
108
  }
109
109
 
110
- function _slicedToArray$2(arr, i) {
111
- return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2();
110
+ function _slicedToArray$3(arr, i) {
111
+ return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$3();
112
112
  }
113
113
 
114
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
114
+ var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
115
115
 
116
- function getDefaultExportFromCjs (x) {
116
+ function getDefaultExportFromCjs$1 (x) {
117
117
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
118
118
  }
119
119
 
@@ -3702,7 +3702,7 @@ function applyDefaultFilter(v) {
3702
3702
  return name + "(" + defaultValue + unit + ")";
3703
3703
  }
3704
3704
  const functionRegex = /([a-z-]*)\(.*?\)/g;
3705
- const filter$1 = {
3705
+ const filter = {
3706
3706
  ...complex,
3707
3707
  getAnimatableNone: (v) => {
3708
3708
  const functions = v.match(functionRegex);
@@ -3727,8 +3727,8 @@ const defaultValueTypes = {
3727
3727
  borderRightColor: color,
3728
3728
  borderBottomColor: color,
3729
3729
  borderLeftColor: color,
3730
- filter: filter$1,
3731
- WebkitFilter: filter$1,
3730
+ filter,
3731
+ WebkitFilter: filter,
3732
3732
  };
3733
3733
  /**
3734
3734
  * Gets the default ValueType for the provided value key
@@ -3737,7 +3737,7 @@ const getDefaultValueType = (key) => defaultValueTypes[key];
3737
3737
 
3738
3738
  function getAnimatableNone(key, value) {
3739
3739
  let defaultValueType = getDefaultValueType(key);
3740
- if (defaultValueType !== filter$1)
3740
+ if (defaultValueType !== filter)
3741
3741
  defaultValueType = complex;
3742
3742
  // If value is not recognised as animatable, ie "none", create an animatable version origin based on the target
3743
3743
  return defaultValueType.getAnimatableNone
@@ -9492,7 +9492,7 @@ var Accordion = function Accordion(_ref) {
9492
9492
  _ref$className = _ref.className,
9493
9493
  className = _ref$className === void 0 ? "" : _ref$className;
9494
9494
  var _useState = useState(defaultActiveKey),
9495
- _useState2 = _slicedToArray$2(_useState, 2),
9495
+ _useState2 = _slicedToArray$3(_useState, 2),
9496
9496
  openTab = _useState2[0],
9497
9497
  setOpenTab = _useState2[1];
9498
9498
  useEffect(function () {
@@ -9548,7 +9548,7 @@ function _createClass$2(Constructor, protoProps, staticProps) {
9548
9548
  var dayjs_min = {exports: {}};
9549
9549
 
9550
9550
  (function (module, exports) {
9551
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
9551
+ !function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
9552
9552
  } (dayjs_min));
9553
9553
 
9554
9554
  var dayjs = dayjs_min.exports;
@@ -9556,7 +9556,7 @@ var dayjs = dayjs_min.exports;
9556
9556
  var localeData$1 = {exports: {}};
9557
9557
 
9558
9558
  (function (module, exports) {
9559
- !function(n,e){module.exports=e();}(commonjsGlobal,(function(){return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return {months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return {firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)};}}));
9559
+ !function(n,e){module.exports=e();}(commonjsGlobal$1,(function(){return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return {months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return {firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)};}}));
9560
9560
  } (localeData$1));
9561
9561
 
9562
9562
  var localeData = localeData$1.exports;
@@ -9564,7 +9564,7 @@ var localeData = localeData$1.exports;
9564
9564
  var utc$1 = {exports: {}};
9565
9565
 
9566
9566
  (function (module, exports) {
9567
- !function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
9567
+ !function(t,i){module.exports=i();}(commonjsGlobal$1,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
9568
9568
  } (utc$1));
9569
9569
 
9570
9570
  var utc = utc$1.exports;
@@ -9572,7 +9572,7 @@ var utc = utc$1.exports;
9572
9572
  var weekday$1 = {exports: {}};
9573
9573
 
9574
9574
  (function (module, exports) {
9575
- !function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,i=this.$W,n=(i<t?i+7:i)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")};}}));
9575
+ !function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,i=this.$W,n=(i<t?i+7:i)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")};}}));
9576
9576
  } (weekday$1));
9577
9577
 
9578
9578
  var weekday = weekday$1.exports;
@@ -9580,7 +9580,7 @@ var weekday = weekday$1.exports;
9580
9580
  var weekOfYear$1 = {exports: {}};
9581
9581
 
9582
9582
  (function (module, exports) {
9583
- !function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e="week",t="year";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)};}}));
9583
+ !function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){var e="week",t="year";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),o=this.diff(a,e,!0);return o<0?r(this).startOf("week").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)};}}));
9584
9584
  } (weekOfYear$1));
9585
9585
 
9586
9586
  var weekOfYear = weekOfYear$1.exports;
@@ -11717,7 +11717,7 @@ var ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES = {
11717
11717
  var buildUrl = function buildUrl(route, params) {
11718
11718
  var placeHolders = [];
11719
11719
  toPairs(params).forEach(function (_ref) {
11720
- var _ref2 = _slicedToArray$2(_ref, 2),
11720
+ var _ref2 = _slicedToArray$3(_ref, 2),
11721
11721
  key = _ref2[0],
11722
11722
  value = _ref2[1];
11723
11723
  if (!route.includes(":".concat(key))) return;
@@ -15703,7 +15703,7 @@ var Tooltip = function Tooltip(_ref) {
15703
15703
  hideOnTargetExit = _ref$hideOnTargetExit === void 0 ? false : _ref$hideOnTargetExit,
15704
15704
  otherProps = _objectWithoutProperties$1(_ref, _excluded$H);
15705
15705
  var _useState = useState(null),
15706
- _useState2 = _slicedToArray$2(_useState, 2),
15706
+ _useState2 = _slicedToArray$3(_useState, 2),
15707
15707
  instance = _useState2[0],
15708
15708
  setInstance = _useState2[1];
15709
15709
  var localProps = {};
@@ -16085,11 +16085,11 @@ var Dropdown = function Dropdown(_ref2) {
16085
16085
  onClick = _ref2.onClick,
16086
16086
  otherProps = _objectWithoutProperties$1(_ref2, _excluded2$5);
16087
16087
  var _useState = useState(null),
16088
- _useState2 = _slicedToArray$2(_useState, 2),
16088
+ _useState2 = _slicedToArray$3(_useState, 2),
16089
16089
  instance = _useState2[0],
16090
16090
  setInstance = _useState2[1];
16091
16091
  var _useState3 = useState(false),
16092
- _useState4 = _slicedToArray$2(_useState3, 2),
16092
+ _useState4 = _slicedToArray$3(_useState3, 2),
16093
16093
  mounted = _useState4[0],
16094
16094
  setMounted = _useState4[1];
16095
16095
  var isControlled = !isNil(isOpen);
@@ -17756,647 +17756,2381 @@ var useOnClickOutside = function useOnClickOutside(insideRef, outsideRef, handle
17756
17756
  }, [insideRef, outsideRef, handler]);
17757
17757
  };
17758
17758
 
17759
- /*!
17760
- * hotkeys-js v3.8.7
17761
- * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
17762
- *
17763
- * Copyright (c) 2021 kenny wong <wowohoo@qq.com>
17764
- * http://jaywcjlove.github.io/hotkeys
17765
- *
17766
- * Licensed under the MIT license.
17767
- */
17759
+ var MODES = {
17760
+ "default": "default",
17761
+ global: "global",
17762
+ scoped: "scoped"
17763
+ };
17764
+ var DEFAULT_CONFIG = {
17765
+ mode: MODES["default"],
17766
+ unbindOnUnmount: true,
17767
+ enabled: true
17768
+ };
17769
+ var MAC_TO_WINDOWS_KEYS_MAP = {
17770
+ option: "alt",
17771
+ command: "ctrl",
17772
+ "return": "enter",
17773
+ "delete": "backspace"
17774
+ };
17775
+ var OS = {
17776
+ mac: "OS X",
17777
+ windows: "Windows"
17778
+ };
17779
+ var KEY_NAMES = {
17780
+ "delete": "delete",
17781
+ backspace: "backspace"
17782
+ };
17768
17783
 
17769
- var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件
17784
+ function _arrayWithHoles$2(arr) {
17785
+ if (Array.isArray(arr)) return arr;
17786
+ }
17770
17787
 
17771
- function addEvent$1(object, event, method) {
17772
- if (object.addEventListener) {
17773
- object.addEventListener(event, method, false);
17774
- } else if (object.attachEvent) {
17775
- object.attachEvent("on".concat(event), function () {
17776
- method(window.event);
17777
- });
17788
+ function _iterableToArrayLimit$2(r, l) {
17789
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
17790
+ if (null != t) {
17791
+ var e,
17792
+ n,
17793
+ i,
17794
+ u,
17795
+ a = [],
17796
+ f = !0,
17797
+ o = !1;
17798
+ try {
17799
+ if (i = (t = t.call(r)).next, 0 === l) {
17800
+ if (Object(t) !== t) return;
17801
+ f = !1;
17802
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
17803
+ } catch (r) {
17804
+ o = !0, n = r;
17805
+ } finally {
17806
+ try {
17807
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
17808
+ } finally {
17809
+ if (o) throw n;
17810
+ }
17811
+ }
17812
+ return a;
17778
17813
  }
17779
- } // 修饰键转换成对应的键码
17814
+ }
17780
17815
 
17816
+ function _arrayLikeToArray$2(arr, len) {
17817
+ if (len == null || len > arr.length) len = arr.length;
17818
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
17819
+ return arr2;
17820
+ }
17781
17821
 
17782
- function getMods(modifier, key) {
17783
- var mods = key.slice(0, key.length - 1);
17822
+ function _unsupportedIterableToArray$2(o, minLen) {
17823
+ if (!o) return;
17824
+ if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
17825
+ var n = Object.prototype.toString.call(o).slice(8, -1);
17826
+ if (n === "Object" && o.constructor) n = o.constructor.name;
17827
+ if (n === "Map" || n === "Set") return Array.from(o);
17828
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
17829
+ }
17784
17830
 
17785
- for (var i = 0; i < mods.length; i++) {
17786
- mods[i] = modifier[mods[i].toLowerCase()];
17787
- }
17831
+ function _nonIterableRest$2() {
17832
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17833
+ }
17788
17834
 
17789
- return mods;
17790
- } // 处理传的key字符串转换成数组
17835
+ function _slicedToArray$2(arr, i) {
17836
+ return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2();
17837
+ }
17791
17838
 
17839
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17792
17840
 
17793
- function getKeys$1(key) {
17794
- if (typeof key !== 'string') key = '';
17795
- key = key.replace(/\s/g, ''); // 匹配任何空白字符,包括空格、制表符、换页符等等
17841
+ function getDefaultExportFromCjs (x) {
17842
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
17843
+ }
17796
17844
 
17797
- var keys = key.split(','); // 同时设置多个快捷键,以','分割
17845
+ var mousetrap = {exports: {}};
17798
17846
 
17799
- var index = keys.lastIndexOf(''); // 快捷键可能包含',',需特殊处理
17847
+ /*global define:false */
17848
+ mousetrap.exports;
17849
+ (function (module) {
17850
+ /**
17851
+ * Copyright 2012-2017 Craig Campbell
17852
+ *
17853
+ * Licensed under the Apache License, Version 2.0 (the "License");
17854
+ * you may not use this file except in compliance with the License.
17855
+ * You may obtain a copy of the License at
17856
+ *
17857
+ * http://www.apache.org/licenses/LICENSE-2.0
17858
+ *
17859
+ * Unless required by applicable law or agreed to in writing, software
17860
+ * distributed under the License is distributed on an "AS IS" BASIS,
17861
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17862
+ * See the License for the specific language governing permissions and
17863
+ * limitations under the License.
17864
+ *
17865
+ * Mousetrap is a simple keyboard shortcut library for Javascript with
17866
+ * no external dependencies
17867
+ *
17868
+ * @version 1.6.5
17869
+ * @url craig.is/killing/mice
17870
+ */
17871
+ (function (window, document, undefined$1) {
17872
+ // Check if mousetrap is used inside browser, if not, return
17873
+ if (!window) {
17874
+ return;
17875
+ }
17800
17876
 
17801
- for (; index >= 0;) {
17802
- keys[index - 1] += ',';
17803
- keys.splice(index, 1);
17804
- index = keys.lastIndexOf('');
17805
- }
17877
+ /**
17878
+ * mapping of special keycodes to their corresponding keys
17879
+ *
17880
+ * everything in this dictionary cannot use keypress events
17881
+ * so it has to be here to map to the correct keycodes for
17882
+ * keyup/keydown events
17883
+ *
17884
+ * @type {Object}
17885
+ */
17886
+ var _MAP = {
17887
+ 8: 'backspace',
17888
+ 9: 'tab',
17889
+ 13: 'enter',
17890
+ 16: 'shift',
17891
+ 17: 'ctrl',
17892
+ 18: 'alt',
17893
+ 20: 'capslock',
17894
+ 27: 'esc',
17895
+ 32: 'space',
17896
+ 33: 'pageup',
17897
+ 34: 'pagedown',
17898
+ 35: 'end',
17899
+ 36: 'home',
17900
+ 37: 'left',
17901
+ 38: 'up',
17902
+ 39: 'right',
17903
+ 40: 'down',
17904
+ 45: 'ins',
17905
+ 46: 'del',
17906
+ 91: 'meta',
17907
+ 93: 'meta',
17908
+ 224: 'meta'
17909
+ };
17806
17910
 
17807
- return keys;
17808
- } // 比较修饰键的数组
17809
-
17810
-
17811
- function compareArray(a1, a2) {
17812
- var arr1 = a1.length >= a2.length ? a1 : a2;
17813
- var arr2 = a1.length >= a2.length ? a2 : a1;
17814
- var isIndex = true;
17815
-
17816
- for (var i = 0; i < arr1.length; i++) {
17817
- if (arr2.indexOf(arr1[i]) === -1) isIndex = false;
17818
- }
17819
-
17820
- return isIndex;
17821
- }
17822
-
17823
- var _keyMap = {
17824
- backspace: 8,
17825
- tab: 9,
17826
- clear: 12,
17827
- enter: 13,
17828
- return: 13,
17829
- esc: 27,
17830
- escape: 27,
17831
- space: 32,
17832
- left: 37,
17833
- up: 38,
17834
- right: 39,
17835
- down: 40,
17836
- del: 46,
17837
- delete: 46,
17838
- ins: 45,
17839
- insert: 45,
17840
- home: 36,
17841
- end: 35,
17842
- pageup: 33,
17843
- pagedown: 34,
17844
- capslock: 20,
17845
- num_0: 96,
17846
- num_1: 97,
17847
- num_2: 98,
17848
- num_3: 99,
17849
- num_4: 100,
17850
- num_5: 101,
17851
- num_6: 102,
17852
- num_7: 103,
17853
- num_8: 104,
17854
- num_9: 105,
17855
- num_multiply: 106,
17856
- num_add: 107,
17857
- num_enter: 108,
17858
- num_subtract: 109,
17859
- num_decimal: 110,
17860
- num_divide: 111,
17861
- '⇪': 20,
17862
- ',': 188,
17863
- '.': 190,
17864
- '/': 191,
17865
- '`': 192,
17866
- '-': isff ? 173 : 189,
17867
- '=': isff ? 61 : 187,
17868
- ';': isff ? 59 : 186,
17869
- '\'': 222,
17870
- '[': 219,
17871
- ']': 221,
17872
- '\\': 220
17873
- }; // Modifier Keys
17874
-
17875
- var _modifier = {
17876
- // shiftKey
17877
- '⇧': 16,
17878
- shift: 16,
17879
- // altKey
17880
- '⌥': 18,
17881
- alt: 18,
17882
- option: 18,
17883
- // ctrlKey
17884
- '⌃': 17,
17885
- ctrl: 17,
17886
- control: 17,
17887
- // metaKey
17888
- '⌘': 91,
17889
- cmd: 91,
17890
- command: 91
17891
- };
17892
- var modifierMap = {
17893
- 16: 'shiftKey',
17894
- 18: 'altKey',
17895
- 17: 'ctrlKey',
17896
- 91: 'metaKey',
17897
- shiftKey: 16,
17898
- ctrlKey: 17,
17899
- altKey: 18,
17900
- metaKey: 91
17901
- };
17902
- var _mods = {
17903
- 16: false,
17904
- 18: false,
17905
- 17: false,
17906
- 91: false
17907
- };
17908
- var _handlers = {}; // F1~F12 special key
17911
+ /**
17912
+ * mapping for special characters so they can support
17913
+ *
17914
+ * this dictionary is only used incase you want to bind a
17915
+ * keyup or keydown event to one of these keys
17916
+ *
17917
+ * @type {Object}
17918
+ */
17919
+ var _KEYCODE_MAP = {
17920
+ 106: '*',
17921
+ 107: '+',
17922
+ 109: '-',
17923
+ 110: '.',
17924
+ 111: '/',
17925
+ 186: ';',
17926
+ 187: '=',
17927
+ 188: ',',
17928
+ 189: '-',
17929
+ 190: '.',
17930
+ 191: '/',
17931
+ 192: '`',
17932
+ 219: '[',
17933
+ 220: '\\',
17934
+ 221: ']',
17935
+ 222: '\''
17936
+ };
17909
17937
 
17910
- for (var k$3 = 1; k$3 < 20; k$3++) {
17911
- _keyMap["f".concat(k$3)] = 111 + k$3;
17912
- }
17938
+ /**
17939
+ * this is a mapping of keys that require shift on a US keypad
17940
+ * back to the non shift equivelents
17941
+ *
17942
+ * this is so you can use keyup events with these keys
17943
+ *
17944
+ * note that this will only work reliably on US keyboards
17945
+ *
17946
+ * @type {Object}
17947
+ */
17948
+ var _SHIFT_MAP = {
17949
+ '~': '`',
17950
+ '!': '1',
17951
+ '@': '2',
17952
+ '#': '3',
17953
+ '$': '4',
17954
+ '%': '5',
17955
+ '^': '6',
17956
+ '&': '7',
17957
+ '*': '8',
17958
+ '(': '9',
17959
+ ')': '0',
17960
+ '_': '-',
17961
+ '+': '=',
17962
+ ':': ';',
17963
+ '\"': '\'',
17964
+ '<': ',',
17965
+ '>': '.',
17966
+ '?': '/',
17967
+ '|': '\\'
17968
+ };
17913
17969
 
17914
- var _downKeys = []; // 记录摁下的绑定键
17970
+ /**
17971
+ * this is a list of special strings you can use to map
17972
+ * to modifier keys when you specify your keyboard shortcuts
17973
+ *
17974
+ * @type {Object}
17975
+ */
17976
+ var _SPECIAL_ALIASES = {
17977
+ 'option': 'alt',
17978
+ 'command': 'meta',
17979
+ 'return': 'enter',
17980
+ 'escape': 'esc',
17981
+ 'plus': '+',
17982
+ 'mod': /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'meta' : 'ctrl'
17983
+ };
17915
17984
 
17916
- var _scope = 'all'; // 默认热键范围
17985
+ /**
17986
+ * variable to store the flipped version of _MAP from above
17987
+ * needed to check if we should use keypress or not when no action
17988
+ * is specified
17989
+ *
17990
+ * @type {Object|undefined}
17991
+ */
17992
+ var _REVERSE_MAP;
17917
17993
 
17918
- var elementHasBindEvent = []; // 已绑定事件的节点记录
17919
- // 返回键码
17994
+ /**
17995
+ * loop through the f keys, f1 to f19 and add them to the map
17996
+ * programatically
17997
+ */
17998
+ for (var i = 1; i < 20; ++i) {
17999
+ _MAP[111 + i] = 'f' + i;
18000
+ }
17920
18001
 
17921
- var code = function code(x) {
17922
- return _keyMap[x.toLowerCase()] || _modifier[x.toLowerCase()] || x.toUpperCase().charCodeAt(0);
17923
- }; // 设置获取当前范围(默认为'所有')
18002
+ /**
18003
+ * loop through to map numbers on the numeric keypad
18004
+ */
18005
+ for (i = 0; i <= 9; ++i) {
18006
+ // This needs to use a string cause otherwise since 0 is falsey
18007
+ // mousetrap will never fire for numpad 0 pressed as part of a keydown
18008
+ // event.
18009
+ //
18010
+ // @see https://github.com/ccampbell/mousetrap/pull/258
18011
+ _MAP[i + 96] = i.toString();
18012
+ }
17924
18013
 
18014
+ /**
18015
+ * cross browser add event method
18016
+ *
18017
+ * @param {Element|HTMLDocument} object
18018
+ * @param {string} type
18019
+ * @param {Function} callback
18020
+ * @returns void
18021
+ */
18022
+ function _addEvent(object, type, callback) {
18023
+ if (object.addEventListener) {
18024
+ object.addEventListener(type, callback, false);
18025
+ return;
18026
+ }
18027
+ object.attachEvent('on' + type, callback);
18028
+ }
17925
18029
 
17926
- function setScope(scope) {
17927
- _scope = scope || 'all';
17928
- } // 获取当前范围
18030
+ /**
18031
+ * takes the event and returns the key character
18032
+ *
18033
+ * @param {Event} e
18034
+ * @return {string}
18035
+ */
18036
+ function _characterFromEvent(e) {
18037
+ // for keypress events we should return the character as is
18038
+ if (e.type == 'keypress') {
18039
+ var character = String.fromCharCode(e.which);
18040
+
18041
+ // if the shift key is not pressed then it is safe to assume
18042
+ // that we want the character to be lowercase. this means if
18043
+ // you accidentally have caps lock on then your key bindings
18044
+ // will continue to work
18045
+ //
18046
+ // the only side effect that might not be desired is if you
18047
+ // bind something like 'A' cause you want to trigger an
18048
+ // event when capital A is pressed caps lock will no longer
18049
+ // trigger the event. shift+a will though.
18050
+ if (!e.shiftKey) {
18051
+ character = character.toLowerCase();
18052
+ }
18053
+ return character;
18054
+ }
17929
18055
 
18056
+ // for non keypress events the special maps are needed
18057
+ if (_MAP[e.which]) {
18058
+ return _MAP[e.which];
18059
+ }
18060
+ if (_KEYCODE_MAP[e.which]) {
18061
+ return _KEYCODE_MAP[e.which];
18062
+ }
17930
18063
 
17931
- function getScope() {
17932
- return _scope || 'all';
17933
- } // 获取摁下绑定键的键值
18064
+ // if it is not in the special map
17934
18065
 
18066
+ // with keydown and keyup events the character seems to always
18067
+ // come in as an uppercase character whether you are pressing shift
18068
+ // or not. we should make sure it is always lowercase for comparisons
18069
+ return String.fromCharCode(e.which).toLowerCase();
18070
+ }
17935
18071
 
17936
- function getPressedKeyCodes() {
17937
- return _downKeys.slice(0);
17938
- } // 表单控件控件判断 返回 Boolean
17939
- // hotkey is effective only when filter return true
18072
+ /**
18073
+ * checks if two arrays are equal
18074
+ *
18075
+ * @param {Array} modifiers1
18076
+ * @param {Array} modifiers2
18077
+ * @returns {boolean}
18078
+ */
18079
+ function _modifiersMatch(modifiers1, modifiers2) {
18080
+ return modifiers1.sort().join(',') === modifiers2.sort().join(',');
18081
+ }
17940
18082
 
18083
+ /**
18084
+ * takes a key event and figures out what the modifiers are
18085
+ *
18086
+ * @param {Event} e
18087
+ * @returns {Array}
18088
+ */
18089
+ function _eventModifiers(e) {
18090
+ var modifiers = [];
18091
+ if (e.shiftKey) {
18092
+ modifiers.push('shift');
18093
+ }
18094
+ if (e.altKey) {
18095
+ modifiers.push('alt');
18096
+ }
18097
+ if (e.ctrlKey) {
18098
+ modifiers.push('ctrl');
18099
+ }
18100
+ if (e.metaKey) {
18101
+ modifiers.push('meta');
18102
+ }
18103
+ return modifiers;
18104
+ }
18105
+
18106
+ /**
18107
+ * prevents default for this event
18108
+ *
18109
+ * @param {Event} e
18110
+ * @returns void
18111
+ */
18112
+ function _preventDefault(e) {
18113
+ if (e.preventDefault) {
18114
+ e.preventDefault();
18115
+ return;
18116
+ }
18117
+ e.returnValue = false;
18118
+ }
17941
18119
 
17942
- function filter(event) {
17943
- var target = event.target || event.srcElement;
17944
- var tagName = target.tagName;
17945
- var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
18120
+ /**
18121
+ * stops propogation for this event
18122
+ *
18123
+ * @param {Event} e
18124
+ * @returns void
18125
+ */
18126
+ function _stopPropagation(e) {
18127
+ if (e.stopPropagation) {
18128
+ e.stopPropagation();
18129
+ return;
18130
+ }
18131
+ e.cancelBubble = true;
18132
+ }
17946
18133
 
17947
- if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly) {
17948
- flag = false;
17949
- }
18134
+ /**
18135
+ * determines if the keycode specified is a modifier key or not
18136
+ *
18137
+ * @param {string} key
18138
+ * @returns {boolean}
18139
+ */
18140
+ function _isModifier(key) {
18141
+ return key == 'shift' || key == 'ctrl' || key == 'alt' || key == 'meta';
18142
+ }
17950
18143
 
17951
- return flag;
17952
- } // 判断摁下的键是否为某个键,返回true或者false
18144
+ /**
18145
+ * reverses the map lookup so that we can look for specific keys
18146
+ * to see what can and can't use keypress
18147
+ *
18148
+ * @return {Object}
18149
+ */
18150
+ function _getReverseMap() {
18151
+ if (!_REVERSE_MAP) {
18152
+ _REVERSE_MAP = {};
18153
+ for (var key in _MAP) {
18154
+ // pull out the numeric keypad from here cause keypress should
18155
+ // be able to detect the keys from the character
18156
+ if (key > 95 && key < 112) {
18157
+ continue;
18158
+ }
18159
+ if (_MAP.hasOwnProperty(key)) {
18160
+ _REVERSE_MAP[_MAP[key]] = key;
18161
+ }
18162
+ }
18163
+ }
18164
+ return _REVERSE_MAP;
18165
+ }
17953
18166
 
18167
+ /**
18168
+ * picks the best action based on the key combination
18169
+ *
18170
+ * @param {string} key - character for key
18171
+ * @param {Array} modifiers
18172
+ * @param {string=} action passed in
18173
+ */
18174
+ function _pickBestAction(key, modifiers, action) {
18175
+ // if no action was picked in we should try to pick the one
18176
+ // that we think would work best for this key
18177
+ if (!action) {
18178
+ action = _getReverseMap()[key] ? 'keydown' : 'keypress';
18179
+ }
17954
18180
 
17955
- function isPressed(keyCode) {
17956
- if (typeof keyCode === 'string') {
17957
- keyCode = code(keyCode); // 转换成键码
17958
- }
18181
+ // modifier keys don't work as expected with keypress,
18182
+ // switch to keydown
18183
+ if (action == 'keypress' && modifiers.length) {
18184
+ action = 'keydown';
18185
+ }
18186
+ return action;
18187
+ }
17959
18188
 
17960
- return _downKeys.indexOf(keyCode) !== -1;
17961
- } // 循环删除handlers中的所有 scope(范围)
18189
+ /**
18190
+ * Converts from a string key combination to an array
18191
+ *
18192
+ * @param {string} combination like "command+shift+l"
18193
+ * @return {Array}
18194
+ */
18195
+ function _keysFromString(combination) {
18196
+ if (combination === '+') {
18197
+ return ['+'];
18198
+ }
18199
+ combination = combination.replace(/\+{2}/g, '+plus');
18200
+ return combination.split('+');
18201
+ }
17962
18202
 
18203
+ /**
18204
+ * Gets info for a specific key combination
18205
+ *
18206
+ * @param {string} combination key combination ("command+s" or "a" or "*")
18207
+ * @param {string=} action
18208
+ * @returns {Object}
18209
+ */
18210
+ function _getKeyInfo(combination, action) {
18211
+ var keys;
18212
+ var key;
18213
+ var i;
18214
+ var modifiers = [];
17963
18215
 
17964
- function deleteScope(scope, newScope) {
17965
- var handlers;
17966
- var i; // 没有指定scope,获取scope
18216
+ // take the keys from this pattern and figure out what the actual
18217
+ // pattern is all about
18218
+ keys = _keysFromString(combination);
18219
+ for (i = 0; i < keys.length; ++i) {
18220
+ key = keys[i];
17967
18221
 
17968
- if (!scope) scope = getScope();
18222
+ // normalize key names
18223
+ if (_SPECIAL_ALIASES[key]) {
18224
+ key = _SPECIAL_ALIASES[key];
18225
+ }
17969
18226
 
17970
- for (var key in _handlers) {
17971
- if (Object.prototype.hasOwnProperty.call(_handlers, key)) {
17972
- handlers = _handlers[key];
18227
+ // if this is not a keypress event then we should
18228
+ // be smart about using shift keys
18229
+ // this will only work for US keyboards however
18230
+ if (action && action != 'keypress' && _SHIFT_MAP[key]) {
18231
+ key = _SHIFT_MAP[key];
18232
+ modifiers.push('shift');
18233
+ }
17973
18234
 
17974
- for (i = 0; i < handlers.length;) {
17975
- if (handlers[i].scope === scope) handlers.splice(i, 1);else i++;
18235
+ // if this key is a modifier then add it to the list of modifiers
18236
+ if (_isModifier(key)) {
18237
+ modifiers.push(key);
18238
+ }
17976
18239
  }
18240
+
18241
+ // depending on what the key combination is
18242
+ // we will try to pick the best event for it
18243
+ action = _pickBestAction(key, modifiers, action);
18244
+ return {
18245
+ key: key,
18246
+ modifiers: modifiers,
18247
+ action: action
18248
+ };
17977
18249
  }
17978
- } // 如果scope被删除,将scope重置为all
18250
+ function _belongsTo(element, ancestor) {
18251
+ if (element === null || element === document) {
18252
+ return false;
18253
+ }
18254
+ if (element === ancestor) {
18255
+ return true;
18256
+ }
18257
+ return _belongsTo(element.parentNode, ancestor);
18258
+ }
18259
+ function Mousetrap(targetElement) {
18260
+ var self = this;
18261
+ targetElement = targetElement || document;
18262
+ if (!(self instanceof Mousetrap)) {
18263
+ return new Mousetrap(targetElement);
18264
+ }
17979
18265
 
18266
+ /**
18267
+ * element to attach key events to
18268
+ *
18269
+ * @type {Element}
18270
+ */
18271
+ self.target = targetElement;
17980
18272
 
17981
- if (getScope() === scope) setScope(newScope || 'all');
17982
- } // 清除修饰键
18273
+ /**
18274
+ * a list of all the callbacks setup via Mousetrap.bind()
18275
+ *
18276
+ * @type {Object}
18277
+ */
18278
+ self._callbacks = {};
17983
18279
 
18280
+ /**
18281
+ * direct map of string combinations to callbacks used for trigger()
18282
+ *
18283
+ * @type {Object}
18284
+ */
18285
+ self._directMap = {};
17984
18286
 
17985
- function clearModifier(event) {
17986
- var key = event.keyCode || event.which || event.charCode;
18287
+ /**
18288
+ * keeps track of what level each sequence is at since multiple
18289
+ * sequences can start out with the same sequence
18290
+ *
18291
+ * @type {Object}
18292
+ */
18293
+ var _sequenceLevels = {};
17987
18294
 
17988
- var i = _downKeys.indexOf(key); // 从列表中清除按压过的键
18295
+ /**
18296
+ * variable to store the setTimeout call
18297
+ *
18298
+ * @type {null|number}
18299
+ */
18300
+ var _resetTimer;
17989
18301
 
18302
+ /**
18303
+ * temporary state where we will ignore the next keyup
18304
+ *
18305
+ * @type {boolean|string}
18306
+ */
18307
+ var _ignoreNextKeyup = false;
17990
18308
 
17991
- if (i >= 0) {
17992
- _downKeys.splice(i, 1);
17993
- } // 特殊处理 cmmand 键,在 cmmand 组合快捷键 keyup 只执行一次的问题
18309
+ /**
18310
+ * temporary state where we will ignore the next keypress
18311
+ *
18312
+ * @type {boolean}
18313
+ */
18314
+ var _ignoreNextKeypress = false;
17994
18315
 
18316
+ /**
18317
+ * are we currently inside of a sequence?
18318
+ * type of action ("keyup" or "keydown" or "keypress") or false
18319
+ *
18320
+ * @type {boolean|string}
18321
+ */
18322
+ var _nextExpectedAction = false;
17995
18323
 
17996
- if (event.key && event.key.toLowerCase() === 'meta') {
17997
- _downKeys.splice(0, _downKeys.length);
17998
- } // 修饰键 shiftKey altKey ctrlKey (command||metaKey) 清除
18324
+ /**
18325
+ * resets all sequence counters except for the ones passed in
18326
+ *
18327
+ * @param {Object} doNotReset
18328
+ * @returns void
18329
+ */
18330
+ function _resetSequences(doNotReset) {
18331
+ doNotReset = doNotReset || {};
18332
+ var activeSequences = false,
18333
+ key;
18334
+ for (key in _sequenceLevels) {
18335
+ if (doNotReset[key]) {
18336
+ activeSequences = true;
18337
+ continue;
18338
+ }
18339
+ _sequenceLevels[key] = 0;
18340
+ }
18341
+ if (!activeSequences) {
18342
+ _nextExpectedAction = false;
18343
+ }
18344
+ }
17999
18345
 
18346
+ /**
18347
+ * finds all callbacks that match based on the keycode, modifiers,
18348
+ * and action
18349
+ *
18350
+ * @param {string} character
18351
+ * @param {Array} modifiers
18352
+ * @param {Event|Object} e
18353
+ * @param {string=} sequenceName - name of the sequence we are looking for
18354
+ * @param {string=} combination
18355
+ * @param {number=} level
18356
+ * @returns {Array}
18357
+ */
18358
+ function _getMatches(character, modifiers, e, sequenceName, combination, level) {
18359
+ var i;
18360
+ var callback;
18361
+ var matches = [];
18362
+ var action = e.type;
18000
18363
 
18001
- if (key === 93 || key === 224) key = 91;
18364
+ // if there are no events related to this keycode
18365
+ if (!self._callbacks[character]) {
18366
+ return [];
18367
+ }
18002
18368
 
18003
- if (key in _mods) {
18004
- _mods[key] = false; // 将修饰键重置为false
18369
+ // if a modifier key is coming up on its own we should allow it
18370
+ if (action == 'keyup' && _isModifier(character)) {
18371
+ modifiers = [character];
18372
+ }
18005
18373
 
18006
- for (var k in _modifier) {
18007
- if (_modifier[k] === key) hotkeys[k] = false;
18008
- }
18009
- }
18010
- }
18374
+ // loop through all callbacks for the key that was pressed
18375
+ // and see if any of them match
18376
+ for (i = 0; i < self._callbacks[character].length; ++i) {
18377
+ callback = self._callbacks[character][i];
18011
18378
 
18012
- function unbind(keysInfo) {
18013
- // unbind(), unbind all keys
18014
- if (!keysInfo) {
18015
- Object.keys(_handlers).forEach(function (key) {
18016
- return delete _handlers[key];
18017
- });
18018
- } else if (Array.isArray(keysInfo)) {
18019
- // support like : unbind([{key: 'ctrl+a', scope: 's1'}, {key: 'ctrl-a', scope: 's2', splitKey: '-'}])
18020
- keysInfo.forEach(function (info) {
18021
- if (info.key) eachUnbind(info);
18022
- });
18023
- } else if (typeof keysInfo === 'object') {
18024
- // support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
18025
- if (keysInfo.key) eachUnbind(keysInfo);
18026
- } else if (typeof keysInfo === 'string') {
18027
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
18028
- args[_key - 1] = arguments[_key];
18029
- }
18379
+ // if a sequence name is not specified, but this is a sequence at
18380
+ // the wrong level then move onto the next match
18381
+ if (!sequenceName && callback.seq && _sequenceLevels[callback.seq] != callback.level) {
18382
+ continue;
18383
+ }
18030
18384
 
18031
- // support old method
18032
- // eslint-disable-line
18033
- var scope = args[0],
18034
- method = args[1];
18385
+ // if the action we are looking for doesn't match the action we got
18386
+ // then we should keep going
18387
+ if (action != callback.action) {
18388
+ continue;
18389
+ }
18035
18390
 
18036
- if (typeof scope === 'function') {
18037
- method = scope;
18038
- scope = '';
18039
- }
18391
+ // if this is a keypress event and the meta key and control key
18392
+ // are not pressed that means that we need to only look at the
18393
+ // character, otherwise check the modifiers as well
18394
+ //
18395
+ // chrome will not fire a keypress if meta or control is down
18396
+ // safari will fire a keypress if meta or meta+shift is down
18397
+ // firefox will fire a keypress if meta or control is down
18398
+ if (action == 'keypress' && !e.metaKey && !e.ctrlKey || _modifiersMatch(modifiers, callback.modifiers)) {
18399
+ // when you bind a combination or sequence a second time it
18400
+ // should overwrite the first one. if a sequenceName or
18401
+ // combination is specified in this call it does just that
18402
+ //
18403
+ // @todo make deleting its own method?
18404
+ var deleteCombo = !sequenceName && callback.combo == combination;
18405
+ var deleteSequence = sequenceName && callback.seq == sequenceName && callback.level == level;
18406
+ if (deleteCombo || deleteSequence) {
18407
+ self._callbacks[character].splice(i, 1);
18408
+ }
18409
+ matches.push(callback);
18410
+ }
18411
+ }
18412
+ return matches;
18413
+ }
18040
18414
 
18041
- eachUnbind({
18042
- key: keysInfo,
18043
- scope: scope,
18044
- method: method,
18045
- splitKey: '+'
18046
- });
18047
- }
18048
- } // 解除绑定某个范围的快捷键
18049
-
18050
-
18051
- var eachUnbind = function eachUnbind(_ref) {
18052
- var key = _ref.key,
18053
- scope = _ref.scope,
18054
- method = _ref.method,
18055
- _ref$splitKey = _ref.splitKey,
18056
- splitKey = _ref$splitKey === void 0 ? '+' : _ref$splitKey;
18057
- var multipleKeys = getKeys$1(key);
18058
- multipleKeys.forEach(function (originKey) {
18059
- var unbindKeys = originKey.split(splitKey);
18060
- var len = unbindKeys.length;
18061
- var lastKey = unbindKeys[len - 1];
18062
- var keyCode = lastKey === '*' ? '*' : code(lastKey);
18063
- if (!_handlers[keyCode]) return; // 判断是否传入范围,没有就获取范围
18064
-
18065
- if (!scope) scope = getScope();
18066
- var mods = len > 1 ? getMods(_modifier, unbindKeys) : [];
18067
- _handlers[keyCode] = _handlers[keyCode].map(function (record) {
18068
- // 通过函数判断,是否解除绑定,函数相等直接返回
18069
- var isMatchingMethod = method ? record.method === method : true;
18070
-
18071
- if (isMatchingMethod && record.scope === scope && compareArray(record.mods, mods)) {
18072
- return {};
18415
+ /**
18416
+ * actually calls the callback function
18417
+ *
18418
+ * if your callback function returns false this will use the jquery
18419
+ * convention - prevent default and stop propogation on the event
18420
+ *
18421
+ * @param {Function} callback
18422
+ * @param {Event} e
18423
+ * @returns void
18424
+ */
18425
+ function _fireCallback(callback, e, combo, sequence) {
18426
+ // if this event should not happen stop here
18427
+ if (self.stopCallback(e, e.target || e.srcElement, combo, sequence)) {
18428
+ return;
18429
+ }
18430
+ if (callback(e, combo) === false) {
18431
+ _preventDefault(e);
18432
+ _stopPropagation(e);
18433
+ }
18073
18434
  }
18074
18435
 
18075
- return record;
18076
- });
18077
- });
18078
- }; // 对监听对应快捷键的回调函数进行处理
18436
+ /**
18437
+ * handles a character key event
18438
+ *
18439
+ * @param {string} character
18440
+ * @param {Array} modifiers
18441
+ * @param {Event} e
18442
+ * @returns void
18443
+ */
18444
+ self._handleKey = function (character, modifiers, e) {
18445
+ var callbacks = _getMatches(character, modifiers, e);
18446
+ var i;
18447
+ var doNotReset = {};
18448
+ var maxLevel = 0;
18449
+ var processedSequenceCallback = false;
18450
+
18451
+ // Calculate the maxLevel for sequences so we can only execute the longest callback sequence
18452
+ for (i = 0; i < callbacks.length; ++i) {
18453
+ if (callbacks[i].seq) {
18454
+ maxLevel = Math.max(maxLevel, callbacks[i].level);
18455
+ }
18456
+ }
18079
18457
 
18458
+ // loop through matching callbacks for this key event
18459
+ for (i = 0; i < callbacks.length; ++i) {
18460
+ // fire for all sequence callbacks
18461
+ // this is because if for example you have multiple sequences
18462
+ // bound such as "g i" and "g t" they both need to fire the
18463
+ // callback for matching g cause otherwise you can only ever
18464
+ // match the first one
18465
+ if (callbacks[i].seq) {
18466
+ // only fire callbacks for the maxLevel to prevent
18467
+ // subsequences from also firing
18468
+ //
18469
+ // for example 'a option b' should not cause 'option b' to fire
18470
+ // even though 'option b' is part of the other sequence
18471
+ //
18472
+ // any sequences that do not match here will be discarded
18473
+ // below by the _resetSequences call
18474
+ if (callbacks[i].level != maxLevel) {
18475
+ continue;
18476
+ }
18477
+ processedSequenceCallback = true;
18080
18478
 
18081
- function eventHandler(event, handler, scope) {
18082
- var modifiersMatch; // 看它是否在当前范围
18479
+ // keep a list of which sequences were matches for later
18480
+ doNotReset[callbacks[i].seq] = 1;
18481
+ _fireCallback(callbacks[i].callback, e, callbacks[i].combo, callbacks[i].seq);
18482
+ continue;
18483
+ }
18083
18484
 
18084
- if (handler.scope === scope || handler.scope === 'all') {
18085
- // 检查是否匹配修饰符(如果有返回true)
18086
- modifiersMatch = handler.mods.length > 0;
18485
+ // if there were no sequence matches but we are still here
18486
+ // that means this is a regular match so we should fire that
18487
+ if (!processedSequenceCallback) {
18488
+ _fireCallback(callbacks[i].callback, e, callbacks[i].combo);
18489
+ }
18490
+ }
18087
18491
 
18088
- for (var y in _mods) {
18089
- if (Object.prototype.hasOwnProperty.call(_mods, y)) {
18090
- if (!_mods[y] && handler.mods.indexOf(+y) > -1 || _mods[y] && handler.mods.indexOf(+y) === -1) {
18091
- modifiersMatch = false;
18492
+ // if the key you pressed matches the type of sequence without
18493
+ // being a modifier (ie "keyup" or "keypress") then we should
18494
+ // reset all sequences that were not matched by this event
18495
+ //
18496
+ // this is so, for example, if you have the sequence "h a t" and you
18497
+ // type "h e a r t" it does not match. in this case the "e" will
18498
+ // cause the sequence to reset
18499
+ //
18500
+ // modifier keys are ignored because you can have a sequence
18501
+ // that contains modifiers such as "enter ctrl+space" and in most
18502
+ // cases the modifier key will be pressed before the next key
18503
+ //
18504
+ // also if you have a sequence such as "ctrl+b a" then pressing the
18505
+ // "b" key will trigger a "keypress" and a "keydown"
18506
+ //
18507
+ // the "keydown" is expected when there is a modifier, but the
18508
+ // "keypress" ends up matching the _nextExpectedAction since it occurs
18509
+ // after and that causes the sequence to reset
18510
+ //
18511
+ // we ignore keypresses in a sequence that directly follow a keydown
18512
+ // for the same character
18513
+ var ignoreThisKeypress = e.type == 'keypress' && _ignoreNextKeypress;
18514
+ if (e.type == _nextExpectedAction && !_isModifier(character) && !ignoreThisKeypress) {
18515
+ _resetSequences(doNotReset);
18516
+ }
18517
+ _ignoreNextKeypress = processedSequenceCallback && e.type == 'keydown';
18518
+ };
18519
+
18520
+ /**
18521
+ * handles a keydown event
18522
+ *
18523
+ * @param {Event} e
18524
+ * @returns void
18525
+ */
18526
+ function _handleKeyEvent(e) {
18527
+ // normalize e.which for key events
18528
+ // @see http://stackoverflow.com/questions/4285627/javascript-keycode-vs-charcode-utter-confusion
18529
+ if (typeof e.which !== 'number') {
18530
+ e.which = e.keyCode;
18092
18531
  }
18093
- }
18094
- } // 调用处理程序,如果是修饰键不做处理
18532
+ var character = _characterFromEvent(e);
18095
18533
 
18534
+ // no character found then stop
18535
+ if (!character) {
18536
+ return;
18537
+ }
18096
18538
 
18097
- if (handler.mods.length === 0 && !_mods[16] && !_mods[18] && !_mods[17] && !_mods[91] || modifiersMatch || handler.shortcut === '*') {
18098
- if (handler.method(event, handler) === false) {
18099
- if (event.preventDefault) event.preventDefault();else event.returnValue = false;
18100
- if (event.stopPropagation) event.stopPropagation();
18101
- if (event.cancelBubble) event.cancelBubble = true;
18539
+ // need to use === for the character check because the character can be 0
18540
+ if (e.type == 'keyup' && _ignoreNextKeyup === character) {
18541
+ _ignoreNextKeyup = false;
18542
+ return;
18543
+ }
18544
+ self.handleKey(character, _eventModifiers(e), e);
18102
18545
  }
18103
- }
18104
- }
18105
- } // 处理keydown事件
18106
18546
 
18547
+ /**
18548
+ * called to set a 1 second timeout on the specified sequence
18549
+ *
18550
+ * this is so after each key press in the sequence you have 1 second
18551
+ * to press the next key before you have to start over
18552
+ *
18553
+ * @returns void
18554
+ */
18555
+ function _resetSequenceTimer() {
18556
+ clearTimeout(_resetTimer);
18557
+ _resetTimer = setTimeout(_resetSequences, 1000);
18558
+ }
18107
18559
 
18108
- function dispatch(event) {
18109
- var asterisk = _handlers['*'];
18110
- var key = event.keyCode || event.which || event.charCode; // 表单控件过滤 默认表单控件不触发快捷键
18111
-
18112
- if (!hotkeys.filter.call(this, event)) return; // Gecko(Firefox)的command键值224,在Webkit(Chrome)中保持一致
18113
- // Webkit左右 command 键值不一样
18560
+ /**
18561
+ * binds a key sequence to an event
18562
+ *
18563
+ * @param {string} combo - combo specified in bind call
18564
+ * @param {Array} keys
18565
+ * @param {Function} callback
18566
+ * @param {string=} action
18567
+ * @returns void
18568
+ */
18569
+ function _bindSequence(combo, keys, callback, action) {
18570
+ // start off by adding a sequence level record for this combination
18571
+ // and setting the level to 0
18572
+ _sequenceLevels[combo] = 0;
18114
18573
 
18115
- if (key === 93 || key === 224) key = 91;
18116
- /**
18117
- * Collect bound keys
18118
- * If an Input Method Editor is processing key input and the event is keydown, return 229.
18119
- * https://stackoverflow.com/questions/25043934/is-it-ok-to-ignore-keydown-events-with-keycode-229
18120
- * http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
18121
- */
18574
+ /**
18575
+ * callback to increase the sequence level for this sequence and reset
18576
+ * all other sequences that were active
18577
+ *
18578
+ * @param {string} nextAction
18579
+ * @returns {Function}
18580
+ */
18581
+ function _increaseSequence(nextAction) {
18582
+ return function () {
18583
+ _nextExpectedAction = nextAction;
18584
+ ++_sequenceLevels[combo];
18585
+ _resetSequenceTimer();
18586
+ };
18587
+ }
18122
18588
 
18123
- if (_downKeys.indexOf(key) === -1 && key !== 229) _downKeys.push(key);
18124
- /**
18125
- * Jest test cases are required.
18126
- * ===============================
18127
- */
18589
+ /**
18590
+ * wraps the specified callback inside of another function in order
18591
+ * to reset all sequence counters as soon as this sequence is done
18592
+ *
18593
+ * @param {Event} e
18594
+ * @returns void
18595
+ */
18596
+ function _callbackAndReset(e) {
18597
+ _fireCallback(callback, e, combo);
18598
+
18599
+ // we should ignore the next key up if the action is key down
18600
+ // or keypress. this is so if you finish a sequence and
18601
+ // release the key the final key will not trigger a keyup
18602
+ if (action !== 'keyup') {
18603
+ _ignoreNextKeyup = _characterFromEvent(e);
18604
+ }
18128
18605
 
18129
- ['ctrlKey', 'altKey', 'shiftKey', 'metaKey'].forEach(function (keyName) {
18130
- var keyNum = modifierMap[keyName];
18606
+ // weird race condition if a sequence ends with the key
18607
+ // another sequence begins with
18608
+ setTimeout(_resetSequences, 10);
18609
+ }
18610
+
18611
+ // loop through keys one at a time and bind the appropriate callback
18612
+ // function. for any key leading up to the final one it should
18613
+ // increase the sequence. after the final, it should reset all sequences
18614
+ //
18615
+ // if an action is specified in the original bind call then that will
18616
+ // be used throughout. otherwise we will pass the action that the
18617
+ // next key in the sequence should match. this allows a sequence
18618
+ // to mix and match keypress and keydown events depending on which
18619
+ // ones are better suited to the key provided
18620
+ for (var i = 0; i < keys.length; ++i) {
18621
+ var isFinal = i + 1 === keys.length;
18622
+ var wrappedCallback = isFinal ? _callbackAndReset : _increaseSequence(action || _getKeyInfo(keys[i + 1]).action);
18623
+ _bindSingle(keys[i], wrappedCallback, action, combo, i);
18624
+ }
18625
+ }
18131
18626
 
18132
- if (event[keyName] && _downKeys.indexOf(keyNum) === -1) {
18133
- _downKeys.push(keyNum);
18134
- } else if (!event[keyName] && _downKeys.indexOf(keyNum) > -1) {
18135
- _downKeys.splice(_downKeys.indexOf(keyNum), 1);
18136
- } else if (keyName === 'metaKey' && event[keyName] && _downKeys.length === 3) {
18137
18627
  /**
18138
- * Fix if Command is pressed:
18139
- * ===============================
18628
+ * binds a single keyboard combination
18629
+ *
18630
+ * @param {string} combination
18631
+ * @param {Function} callback
18632
+ * @param {string=} action
18633
+ * @param {string=} sequenceName - name of sequence if part of sequence
18634
+ * @param {number=} level - what part of the sequence the command is
18635
+ * @returns void
18140
18636
  */
18141
- if (!(event.ctrlKey || event.shiftKey || event.altKey)) {
18142
- _downKeys = _downKeys.slice(_downKeys.indexOf(keyNum));
18637
+ function _bindSingle(combination, callback, action, sequenceName, level) {
18638
+ // store a direct mapped reference for use with Mousetrap.trigger
18639
+ self._directMap[combination + ':' + action] = callback;
18640
+
18641
+ // make sure multiple spaces in a row become a single space
18642
+ combination = combination.replace(/\s+/g, ' ');
18643
+ var sequence = combination.split(' ');
18644
+ var info;
18645
+
18646
+ // if this pattern is a sequence of keys then run through this method
18647
+ // to reprocess each pattern one key at a time
18648
+ if (sequence.length > 1) {
18649
+ _bindSequence(combination, sequence, callback, action);
18650
+ return;
18651
+ }
18652
+ info = _getKeyInfo(combination, action);
18653
+
18654
+ // make sure to initialize array if this is the first time
18655
+ // a callback is added for this key
18656
+ self._callbacks[info.key] = self._callbacks[info.key] || [];
18657
+
18658
+ // remove an existing match if there is one
18659
+ _getMatches(info.key, info.modifiers, {
18660
+ type: info.action
18661
+ }, sequenceName, combination, level);
18662
+
18663
+ // add this call back to the array
18664
+ // if it is a sequence put it at the beginning
18665
+ // if not put it at the end
18666
+ //
18667
+ // this is important because the way these are processed expects
18668
+ // the sequence ones to come first
18669
+ self._callbacks[info.key][sequenceName ? 'unshift' : 'push']({
18670
+ callback: callback,
18671
+ modifiers: info.modifiers,
18672
+ action: info.action,
18673
+ seq: sequenceName,
18674
+ level: level,
18675
+ combo: combination
18676
+ });
18143
18677
  }
18144
- }
18145
- });
18146
- /**
18147
- * -------------------------------
18148
- */
18149
18678
 
18150
- if (key in _mods) {
18151
- _mods[key] = true; // 将特殊字符的key注册到 hotkeys
18679
+ /**
18680
+ * binds multiple combinations to the same callback
18681
+ *
18682
+ * @param {Array} combinations
18683
+ * @param {Function} callback
18684
+ * @param {string|undefined} action
18685
+ * @returns void
18686
+ */
18687
+ self._bindMultiple = function (combinations, callback, action) {
18688
+ for (var i = 0; i < combinations.length; ++i) {
18689
+ _bindSingle(combinations[i], callback, action);
18690
+ }
18691
+ };
18152
18692
 
18153
- for (var k in _modifier) {
18154
- if (_modifier[k] === key) hotkeys[k] = true;
18693
+ // start!
18694
+ _addEvent(targetElement, 'keypress', _handleKeyEvent);
18695
+ _addEvent(targetElement, 'keydown', _handleKeyEvent);
18696
+ _addEvent(targetElement, 'keyup', _handleKeyEvent);
18155
18697
  }
18156
18698
 
18157
- if (!asterisk) return;
18158
- } // modifierMap 里面的修饰键绑定到 event 中
18699
+ /**
18700
+ * binds an event to mousetrap
18701
+ *
18702
+ * can be a single key, a combination of keys separated with +,
18703
+ * an array of keys, or a sequence of keys separated by spaces
18704
+ *
18705
+ * be sure to list the modifier keys first to make sure that the
18706
+ * correct key ends up getting bound (the last key in the pattern)
18707
+ *
18708
+ * @param {string|Array} keys
18709
+ * @param {Function} callback
18710
+ * @param {string=} action - 'keypress', 'keydown', or 'keyup'
18711
+ * @returns void
18712
+ */
18713
+ Mousetrap.prototype.bind = function (keys, callback, action) {
18714
+ var self = this;
18715
+ keys = keys instanceof Array ? keys : [keys];
18716
+ self._bindMultiple.call(self, keys, callback, action);
18717
+ return self;
18718
+ };
18159
18719
 
18720
+ /**
18721
+ * unbinds an event to mousetrap
18722
+ *
18723
+ * the unbinding sets the callback function of the specified key combo
18724
+ * to an empty function and deletes the corresponding key in the
18725
+ * _directMap dict.
18726
+ *
18727
+ * TODO: actually remove this from the _callbacks dictionary instead
18728
+ * of binding an empty function
18729
+ *
18730
+ * the keycombo+action has to be exactly the same as
18731
+ * it was defined in the bind method
18732
+ *
18733
+ * @param {string|Array} keys
18734
+ * @param {string} action
18735
+ * @returns void
18736
+ */
18737
+ Mousetrap.prototype.unbind = function (keys, action) {
18738
+ var self = this;
18739
+ return self.bind.call(self, keys, function () {}, action);
18740
+ };
18160
18741
 
18161
- for (var e in _mods) {
18162
- if (Object.prototype.hasOwnProperty.call(_mods, e)) {
18163
- _mods[e] = event[modifierMap[e]];
18164
- }
18165
- }
18166
- /**
18167
- * https://github.com/jaywcjlove/hotkeys/pull/129
18168
- * This solves the issue in Firefox on Windows where hotkeys corresponding to special characters would not trigger.
18169
- * An example of this is ctrl+alt+m on a Swedish keyboard which is used to type μ.
18170
- * Browser support: https://caniuse.com/#feat=keyboardevent-getmodifierstate
18171
- */
18742
+ /**
18743
+ * triggers an event that has already been bound
18744
+ *
18745
+ * @param {string} keys
18746
+ * @param {string=} action
18747
+ * @returns void
18748
+ */
18749
+ Mousetrap.prototype.trigger = function (keys, action) {
18750
+ var self = this;
18751
+ if (self._directMap[keys + ':' + action]) {
18752
+ self._directMap[keys + ':' + action]({}, keys);
18753
+ }
18754
+ return self;
18755
+ };
18756
+
18757
+ /**
18758
+ * resets the library back to its initial state. this is useful
18759
+ * if you want to clear out the current keyboard shortcuts and bind
18760
+ * new ones - for example if you switch to another page
18761
+ *
18762
+ * @returns void
18763
+ */
18764
+ Mousetrap.prototype.reset = function () {
18765
+ var self = this;
18766
+ self._callbacks = {};
18767
+ self._directMap = {};
18768
+ return self;
18769
+ };
18770
+
18771
+ /**
18772
+ * should we stop this event before firing off callbacks
18773
+ *
18774
+ * @param {Event} e
18775
+ * @param {Element} element
18776
+ * @return {boolean}
18777
+ */
18778
+ Mousetrap.prototype.stopCallback = function (e, element) {
18779
+ var self = this;
18780
+
18781
+ // if the element has the class "mousetrap" then no need to stop
18782
+ if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) {
18783
+ return false;
18784
+ }
18785
+ if (_belongsTo(element, self.target)) {
18786
+ return false;
18787
+ }
18788
+
18789
+ // Events originating from a shadow DOM are re-targetted and `e.target` is the shadow host,
18790
+ // not the initial event target in the shadow tree. Note that not all events cross the
18791
+ // shadow boundary.
18792
+ // For shadow trees with `mode: 'open'`, the initial event target is the first element in
18793
+ // the event’s composed path. For shadow trees with `mode: 'closed'`, the initial event
18794
+ // target cannot be obtained.
18795
+ if ('composedPath' in e && typeof e.composedPath === 'function') {
18796
+ // For open shadow trees, update `element` so that the following check works.
18797
+ var initialEventTarget = e.composedPath()[0];
18798
+ if (initialEventTarget !== e.target) {
18799
+ element = initialEventTarget;
18800
+ }
18801
+ }
18802
+
18803
+ // stop for input, select, and textarea
18804
+ return element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable;
18805
+ };
18806
+
18807
+ /**
18808
+ * exposes _handleKey publicly so it can be overwritten by extensions
18809
+ */
18810
+ Mousetrap.prototype.handleKey = function () {
18811
+ var self = this;
18812
+ return self._handleKey.apply(self, arguments);
18813
+ };
18814
+
18815
+ /**
18816
+ * allow custom key mappings
18817
+ */
18818
+ Mousetrap.addKeycodes = function (object) {
18819
+ for (var key in object) {
18820
+ if (object.hasOwnProperty(key)) {
18821
+ _MAP[key] = object[key];
18822
+ }
18823
+ }
18824
+ _REVERSE_MAP = null;
18825
+ };
18826
+
18827
+ /**
18828
+ * Init the global mousetrap functions
18829
+ *
18830
+ * This method is needed to allow the global mousetrap functions to work
18831
+ * now that mousetrap is a constructor function.
18832
+ */
18833
+ Mousetrap.init = function () {
18834
+ var documentMousetrap = Mousetrap(document);
18835
+ for (var method in documentMousetrap) {
18836
+ if (method.charAt(0) !== '_') {
18837
+ Mousetrap[method] = function (method) {
18838
+ return function () {
18839
+ return documentMousetrap[method].apply(documentMousetrap, arguments);
18840
+ };
18841
+ }(method);
18842
+ }
18843
+ }
18844
+ };
18845
+ Mousetrap.init();
18172
18846
 
18847
+ // expose mousetrap to the global object
18848
+ window.Mousetrap = Mousetrap;
18173
18849
 
18174
- if (event.getModifierState && !(event.altKey && !event.ctrlKey) && event.getModifierState('AltGraph')) {
18175
- if (_downKeys.indexOf(17) === -1) {
18176
- _downKeys.push(17);
18850
+ // expose as a common js module
18851
+ if (module.exports) {
18852
+ module.exports = Mousetrap;
18177
18853
  }
18178
18854
 
18179
- if (_downKeys.indexOf(18) === -1) {
18180
- _downKeys.push(18);
18855
+ // expose mousetrap as an AMD module
18856
+ if (typeof undefined$1 === 'function' && undefined$1.amd) {
18857
+ undefined$1(function () {
18858
+ return Mousetrap;
18859
+ });
18860
+ }
18861
+ })(typeof window !== 'undefined' ? window : null, typeof window !== 'undefined' ? document : null);
18862
+ })(mousetrap);
18863
+ var mousetrapExports = mousetrap.exports;
18864
+ var Mousetrap$1 = /*@__PURE__*/getDefaultExportFromCjs(mousetrapExports);
18865
+
18866
+ /**
18867
+ * adds a bindGlobal method to Mousetrap that allows you to
18868
+ * bind specific keyboard shortcuts that will still work
18869
+ * inside a text input field
18870
+ *
18871
+ * usage:
18872
+ * Mousetrap.bindGlobal('ctrl+s', _saveChanges);
18873
+ */
18874
+ /* global Mousetrap:true */
18875
+ (function (Mousetrap) {
18876
+ var _globalCallbacks = {};
18877
+ var _originalStopCallback = Mousetrap.prototype.stopCallback;
18878
+ Mousetrap.prototype.stopCallback = function (e, element, combo, sequence) {
18879
+ var self = this;
18880
+ if (self.paused) {
18881
+ return true;
18882
+ }
18883
+ if (_globalCallbacks[combo] || _globalCallbacks[sequence]) {
18884
+ return false;
18885
+ }
18886
+ return _originalStopCallback.call(self, e, element, combo);
18887
+ };
18888
+ Mousetrap.prototype.bindGlobal = function (keys, callback, action) {
18889
+ var self = this;
18890
+ self.bind(keys, callback, action);
18891
+ if (keys instanceof Array) {
18892
+ for (var i = 0; i < keys.length; i++) {
18893
+ _globalCallbacks[keys[i]] = true;
18894
+ }
18895
+ return;
18896
+ }
18897
+ _globalCallbacks[keys] = true;
18898
+ };
18899
+ Mousetrap.prototype.unbindGlobal = function (keys, action) {
18900
+ var self = this;
18901
+ self.unbind(keys, action);
18902
+ if (keys instanceof Array) {
18903
+ for (var i = 0; i < keys.length; i++) {
18904
+ _globalCallbacks[keys[i]] = false;
18905
+ }
18906
+ return;
18181
18907
  }
18908
+ _globalCallbacks[keys] = false;
18909
+ };
18910
+ Mousetrap.init();
18911
+ })(Mousetrap);
18182
18912
 
18183
- _mods[17] = true;
18184
- _mods[18] = true;
18185
- } // 获取范围 默认为 `all`
18913
+ function _typeof$6(o) {
18914
+ "@babel/helpers - typeof";
18186
18915
 
18916
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
18917
+ return typeof o;
18918
+ } : function (o) {
18919
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
18920
+ }, _typeof$6(o);
18921
+ }
18187
18922
 
18188
- var scope = getScope(); // 对任何快捷键都需要做的处理
18923
+ var platform$1 = {exports: {}};
18189
18924
 
18190
- if (asterisk) {
18191
- for (var i = 0; i < asterisk.length; i++) {
18192
- if (asterisk[i].scope === scope && (event.type === 'keydown' && asterisk[i].keydown || event.type === 'keyup' && asterisk[i].keyup)) {
18193
- eventHandler(event, asterisk[i], scope);
18194
- }
18925
+ platform$1.exports;
18926
+ (function (module, exports) {
18927
+ (function () {
18928
+
18929
+ /** Used to determine if values are of the language type `Object`. */
18930
+ var objectTypes = {
18931
+ 'function': true,
18932
+ 'object': true
18933
+ };
18934
+
18935
+ /** Used as a reference to the global object. */
18936
+ var root = objectTypes[typeof window === "undefined" ? "undefined" : _typeof$6(window)] && window || this;
18937
+
18938
+ /** Detect free variable `exports`. */
18939
+ var freeExports = exports;
18940
+
18941
+ /** Detect free variable `module`. */
18942
+ var freeModule = module && !module.nodeType && module;
18943
+
18944
+ /** Detect free variable `global` from Node.js or Browserified code and use it as `root`. */
18945
+ var freeGlobal = freeExports && freeModule && _typeof$6(commonjsGlobal) == 'object' && commonjsGlobal;
18946
+ if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal)) {
18947
+ root = freeGlobal;
18195
18948
  }
18196
- } // key 不在 _handlers 中返回
18197
18949
 
18950
+ /**
18951
+ * Used as the maximum length of an array-like object.
18952
+ * See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
18953
+ * for more details.
18954
+ */
18955
+ var maxSafeInteger = Math.pow(2, 53) - 1;
18956
+
18957
+ /** Regular expression to detect Opera. */
18958
+ var reOpera = /\bOpera/;
18198
18959
 
18199
- if (!(key in _handlers)) return;
18960
+ /** Used for native method references. */
18961
+ var objectProto = Object.prototype;
18200
18962
 
18201
- for (var _i = 0; _i < _handlers[key].length; _i++) {
18202
- if (event.type === 'keydown' && _handlers[key][_i].keydown || event.type === 'keyup' && _handlers[key][_i].keyup) {
18203
- if (_handlers[key][_i].key) {
18204
- var record = _handlers[key][_i];
18205
- var splitKey = record.splitKey;
18206
- var keyShortcut = record.key.split(splitKey);
18207
- var _downKeysCurrent = []; // 记录当前按键键值
18963
+ /** Used to check for own properties of an object. */
18964
+ var hasOwnProperty = objectProto.hasOwnProperty;
18965
+
18966
+ /** Used to resolve the internal `[[Class]]` of values. */
18967
+ var toString = objectProto.toString;
18968
+
18969
+ /*--------------------------------------------------------------------------*/
18970
+
18971
+ /**
18972
+ * Capitalizes a string value.
18973
+ *
18974
+ * @private
18975
+ * @param {string} string The string to capitalize.
18976
+ * @returns {string} The capitalized string.
18977
+ */
18978
+ function capitalize(string) {
18979
+ string = String(string);
18980
+ return string.charAt(0).toUpperCase() + string.slice(1);
18981
+ }
18982
+
18983
+ /**
18984
+ * A utility function to clean up the OS name.
18985
+ *
18986
+ * @private
18987
+ * @param {string} os The OS name to clean up.
18988
+ * @param {string} [pattern] A `RegExp` pattern matching the OS name.
18989
+ * @param {string} [label] A label for the OS.
18990
+ */
18991
+ function cleanupOS(os, pattern, label) {
18992
+ // Platform tokens are defined at:
18993
+ // http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
18994
+ // http://web.archive.org/web/20081122053950/http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
18995
+ var data = {
18996
+ '10.0': '10',
18997
+ '6.4': '10 Technical Preview',
18998
+ '6.3': '8.1',
18999
+ '6.2': '8',
19000
+ '6.1': 'Server 2008 R2 / 7',
19001
+ '6.0': 'Server 2008 / Vista',
19002
+ '5.2': 'Server 2003 / XP 64-bit',
19003
+ '5.1': 'XP',
19004
+ '5.01': '2000 SP1',
19005
+ '5.0': '2000',
19006
+ '4.0': 'NT',
19007
+ '4.90': 'ME'
19008
+ };
19009
+ // Detect Windows version from platform tokens.
19010
+ if (pattern && label && /^Win/i.test(os) && !/^Windows Phone /i.test(os) && (data = data[/[\d.]+$/.exec(os)])) {
19011
+ os = 'Windows ' + data;
19012
+ }
19013
+ // Correct character case and cleanup string.
19014
+ os = String(os);
19015
+ if (pattern && label) {
19016
+ os = os.replace(RegExp(pattern, 'i'), label);
19017
+ }
19018
+ os = format(os.replace(/ ce$/i, ' CE').replace(/\bhpw/i, 'web').replace(/\bMacintosh\b/, 'Mac OS').replace(/_PowerPC\b/i, ' OS').replace(/\b(OS X) [^ \d]+/i, '$1').replace(/\bMac (OS X)\b/, '$1').replace(/\/(\d)/, ' $1').replace(/_/g, '.').replace(/(?: BePC|[ .]*fc[ \d.]+)$/i, '').replace(/\bx86\.64\b/gi, 'x86_64').replace(/\b(Windows Phone) OS\b/, '$1').replace(/\b(Chrome OS \w+) [\d.]+\b/, '$1').split(' on ')[0]);
19019
+ return os;
19020
+ }
18208
19021
 
18209
- for (var a = 0; a < keyShortcut.length; a++) {
18210
- _downKeysCurrent.push(code(keyShortcut[a]));
19022
+ /**
19023
+ * An iteration utility for arrays and objects.
19024
+ *
19025
+ * @private
19026
+ * @param {Array|Object} object The object to iterate over.
19027
+ * @param {Function} callback The function called per iteration.
19028
+ */
19029
+ function each(object, callback) {
19030
+ var index = -1,
19031
+ length = object ? object.length : 0;
19032
+ if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
19033
+ while (++index < length) {
19034
+ callback(object[index], index, object);
18211
19035
  }
19036
+ } else {
19037
+ forOwn(object, callback);
19038
+ }
19039
+ }
19040
+
19041
+ /**
19042
+ * Trim and conditionally capitalize string values.
19043
+ *
19044
+ * @private
19045
+ * @param {string} string The string to format.
19046
+ * @returns {string} The formatted string.
19047
+ */
19048
+ function format(string) {
19049
+ string = trim(string);
19050
+ return /^(?:webOS|i(?:OS|P))/.test(string) ? string : capitalize(string);
19051
+ }
18212
19052
 
18213
- if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
18214
- // 找到处理内容
18215
- eventHandler(event, record, scope);
19053
+ /**
19054
+ * Iterates over an object's own properties, executing the `callback` for each.
19055
+ *
19056
+ * @private
19057
+ * @param {Object} object The object to iterate over.
19058
+ * @param {Function} callback The function executed per own property.
19059
+ */
19060
+ function forOwn(object, callback) {
19061
+ for (var key in object) {
19062
+ if (hasOwnProperty.call(object, key)) {
19063
+ callback(object[key], key, object);
18216
19064
  }
18217
19065
  }
18218
19066
  }
18219
- }
18220
- } // 判断 element 是否已经绑定事件
18221
19067
 
19068
+ /**
19069
+ * Gets the internal `[[Class]]` of a value.
19070
+ *
19071
+ * @private
19072
+ * @param {*} value The value.
19073
+ * @returns {string} The `[[Class]]`.
19074
+ */
19075
+ function getClassOf(value) {
19076
+ return value == null ? capitalize(value) : toString.call(value).slice(8, -1);
19077
+ }
18222
19078
 
18223
- function isElementBind(element) {
18224
- return elementHasBindEvent.indexOf(element) > -1;
18225
- }
19079
+ /**
19080
+ * Host objects can return type values that are different from their actual
19081
+ * data type. The objects we are concerned with usually return non-primitive
19082
+ * types of "object", "function", or "unknown".
19083
+ *
19084
+ * @private
19085
+ * @param {*} object The owner of the property.
19086
+ * @param {string} property The property to check.
19087
+ * @returns {boolean} Returns `true` if the property value is a non-primitive, else `false`.
19088
+ */
19089
+ function isHostType(object, property) {
19090
+ var type = object != null ? _typeof$6(object[property]) : 'number';
19091
+ return !/^(?:boolean|number|string|undefined)$/.test(type) && (type == 'object' ? !!object[property] : true);
19092
+ }
18226
19093
 
18227
- function hotkeys(key, option, method) {
18228
- _downKeys = [];
18229
- var keys = getKeys$1(key); // 需要处理的快捷键列表
19094
+ /**
19095
+ * Prepares a string for use in a `RegExp` by making hyphens and spaces optional.
19096
+ *
19097
+ * @private
19098
+ * @param {string} string The string to qualify.
19099
+ * @returns {string} The qualified string.
19100
+ */
19101
+ function qualify(string) {
19102
+ return String(string).replace(/([ -])(?!$)/g, '$1?');
19103
+ }
18230
19104
 
18231
- var mods = [];
18232
- var scope = 'all'; // scope默认为all,所有范围都有效
19105
+ /**
19106
+ * A bare-bones `Array#reduce` like utility function.
19107
+ *
19108
+ * @private
19109
+ * @param {Array} array The array to iterate over.
19110
+ * @param {Function} callback The function called per iteration.
19111
+ * @returns {*} The accumulated result.
19112
+ */
19113
+ function reduce(array, callback) {
19114
+ var accumulator = null;
19115
+ each(array, function (value, index) {
19116
+ accumulator = callback(accumulator, value, index, array);
19117
+ });
19118
+ return accumulator;
19119
+ }
18233
19120
 
18234
- var element = document; // 快捷键事件绑定节点
19121
+ /**
19122
+ * Removes leading and trailing whitespace from a string.
19123
+ *
19124
+ * @private
19125
+ * @param {string} string The string to trim.
19126
+ * @returns {string} The trimmed string.
19127
+ */
19128
+ function trim(string) {
19129
+ return String(string).replace(/^ +| +$/g, '');
19130
+ }
18235
19131
 
18236
- var i = 0;
18237
- var keyup = false;
18238
- var keydown = true;
18239
- var splitKey = '+'; // 对为设定范围的判断
19132
+ /*--------------------------------------------------------------------------*/
18240
19133
 
18241
- if (method === undefined && typeof option === 'function') {
18242
- method = option;
18243
- }
19134
+ /**
19135
+ * Creates a new platform object.
19136
+ *
19137
+ * @memberOf platform
19138
+ * @param {Object|string} [ua=navigator.userAgent] The user agent string or
19139
+ * context object.
19140
+ * @returns {Object} A platform object.
19141
+ */
19142
+ function parse(ua) {
19143
+ /** The environment context object. */
19144
+ var context = root;
18244
19145
 
18245
- if (Object.prototype.toString.call(option) === '[object Object]') {
18246
- if (option.scope) scope = option.scope; // eslint-disable-line
19146
+ /** Used to flag when a custom context is provided. */
19147
+ var isCustomContext = ua && _typeof$6(ua) == 'object' && getClassOf(ua) != 'String';
18247
19148
 
18248
- if (option.element) element = option.element; // eslint-disable-line
19149
+ // Juggle arguments.
19150
+ if (isCustomContext) {
19151
+ context = ua;
19152
+ ua = null;
19153
+ }
18249
19154
 
18250
- if (option.keyup) keyup = option.keyup; // eslint-disable-line
19155
+ /** Browser navigator object. */
19156
+ var nav = context.navigator || {};
18251
19157
 
18252
- if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line
19158
+ /** Browser user agent string. */
19159
+ var userAgent = nav.userAgent || '';
19160
+ ua || (ua = userAgent);
18253
19161
 
18254
- if (typeof option.splitKey === 'string') splitKey = option.splitKey; // eslint-disable-line
18255
- }
19162
+ /** Used to detect if browser is like Chrome. */
19163
+ var likeChrome = isCustomContext ? !!nav.likeChrome : /\bChrome\b/.test(ua) && !/internal|\n/i.test(toString.toString());
18256
19164
 
18257
- if (typeof option === 'string') scope = option; // 对于每个快捷键进行处理
19165
+ /** Internal `[[Class]]` value shortcuts. */
19166
+ var objectClass = 'Object',
19167
+ airRuntimeClass = isCustomContext ? objectClass : 'ScriptBridgingProxyObject',
19168
+ enviroClass = isCustomContext ? objectClass : 'Environment',
19169
+ javaClass = isCustomContext && context.java ? 'JavaPackage' : getClassOf(context.java),
19170
+ phantomClass = isCustomContext ? objectClass : 'RuntimeObject';
18258
19171
 
18259
- for (; i < keys.length; i++) {
18260
- key = keys[i].split(splitKey); // 按键列表
19172
+ /** Detect Java environments. */
19173
+ var java = /\bJava/.test(javaClass) && context.java;
18261
19174
 
18262
- mods = []; // 如果是组合快捷键取得组合快捷键
19175
+ /** Detect Rhino. */
19176
+ var rhino = java && getClassOf(context.environment) == enviroClass;
18263
19177
 
18264
- if (key.length > 1) mods = getMods(_modifier, key); // 将非修饰键转化为键码
19178
+ /** A character to represent alpha. */
19179
+ var alpha = java ? 'a' : "\u03B1";
18265
19180
 
18266
- key = key[key.length - 1];
18267
- key = key === '*' ? '*' : code(key); // *表示匹配所有快捷键
18268
- // 判断key是否在_handlers中,不在就赋一个空数组
19181
+ /** A character to represent beta. */
19182
+ var beta = java ? 'b' : "\u03B2";
18269
19183
 
18270
- if (!(key in _handlers)) _handlers[key] = [];
19184
+ /** Browser document object. */
19185
+ var doc = context.document || {};
18271
19186
 
18272
- _handlers[key].push({
18273
- keyup: keyup,
18274
- keydown: keydown,
18275
- scope: scope,
18276
- mods: mods,
18277
- shortcut: keys[i],
18278
- method: method,
18279
- key: keys[i],
18280
- splitKey: splitKey
18281
- });
18282
- } // 在全局document上设置快捷键
19187
+ /**
19188
+ * Detect Opera browser (Presto-based).
19189
+ * http://www.howtocreate.co.uk/operaStuff/operaObject.html
19190
+ * http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/#operamini
19191
+ */
19192
+ var opera = context.operamini || context.opera;
19193
+
19194
+ /** Opera `[[Class]]`. */
19195
+ var operaClass = reOpera.test(operaClass = isCustomContext && opera ? opera['[[Class]]'] : getClassOf(opera)) ? operaClass : opera = null;
19196
+
19197
+ /*------------------------------------------------------------------------*/
19198
+
19199
+ /** Temporary variable used over the script's lifetime. */
19200
+ var data;
19201
+
19202
+ /** The CPU architecture. */
19203
+ var arch = ua;
19204
+
19205
+ /** Platform description array. */
19206
+ var description = [];
19207
+
19208
+ /** Platform alpha/beta indicator. */
19209
+ var prerelease = null;
19210
+
19211
+ /** A flag to indicate that environment features should be used to resolve the platform. */
19212
+ var useFeatures = ua == userAgent;
19213
+
19214
+ /** The browser/environment version. */
19215
+ var version = useFeatures && opera && typeof opera.version == 'function' && opera.version();
19216
+
19217
+ /** A flag to indicate if the OS ends with "/ Version" */
19218
+ var isSpecialCasedOS;
19219
+
19220
+ /* Detectable layout engines (order is important). */
19221
+ var layout = getLayout([{
19222
+ 'label': 'EdgeHTML',
19223
+ 'pattern': 'Edge'
19224
+ }, 'Trident', {
19225
+ 'label': 'WebKit',
19226
+ 'pattern': 'AppleWebKit'
19227
+ }, 'iCab', 'Presto', 'NetFront', 'Tasman', 'KHTML', 'Gecko']);
19228
+
19229
+ /* Detectable browser names (order is important). */
19230
+ var name = getName(['Adobe AIR', 'Arora', 'Avant Browser', 'Breach', 'Camino', 'Electron', 'Epiphany', 'Fennec', 'Flock', 'Galeon', 'GreenBrowser', 'iCab', 'Iceweasel', 'K-Meleon', 'Konqueror', 'Lunascape', 'Maxthon', {
19231
+ 'label': 'Microsoft Edge',
19232
+ 'pattern': '(?:Edge|Edg|EdgA|EdgiOS)'
19233
+ }, 'Midori', 'Nook Browser', 'PaleMoon', 'PhantomJS', 'Raven', 'Rekonq', 'RockMelt', {
19234
+ 'label': 'Samsung Internet',
19235
+ 'pattern': 'SamsungBrowser'
19236
+ }, 'SeaMonkey', {
19237
+ 'label': 'Silk',
19238
+ 'pattern': '(?:Cloud9|Silk-Accelerated)'
19239
+ }, 'Sleipnir', 'SlimBrowser', {
19240
+ 'label': 'SRWare Iron',
19241
+ 'pattern': 'Iron'
19242
+ }, 'Sunrise', 'Swiftfox', 'Vivaldi', 'Waterfox', 'WebPositive', {
19243
+ 'label': 'Yandex Browser',
19244
+ 'pattern': 'YaBrowser'
19245
+ }, {
19246
+ 'label': 'UC Browser',
19247
+ 'pattern': 'UCBrowser'
19248
+ }, 'Opera Mini', {
19249
+ 'label': 'Opera Mini',
19250
+ 'pattern': 'OPiOS'
19251
+ }, 'Opera', {
19252
+ 'label': 'Opera',
19253
+ 'pattern': 'OPR'
19254
+ }, 'Chromium', 'Chrome', {
19255
+ 'label': 'Chrome',
19256
+ 'pattern': '(?:HeadlessChrome)'
19257
+ }, {
19258
+ 'label': 'Chrome Mobile',
19259
+ 'pattern': '(?:CriOS|CrMo)'
19260
+ }, {
19261
+ 'label': 'Firefox',
19262
+ 'pattern': '(?:Firefox|Minefield)'
19263
+ }, {
19264
+ 'label': 'Firefox for iOS',
19265
+ 'pattern': 'FxiOS'
19266
+ }, {
19267
+ 'label': 'IE',
19268
+ 'pattern': 'IEMobile'
19269
+ }, {
19270
+ 'label': 'IE',
19271
+ 'pattern': 'MSIE'
19272
+ }, 'Safari']);
19273
+
19274
+ /* Detectable products (order is important). */
19275
+ var product = getProduct([{
19276
+ 'label': 'BlackBerry',
19277
+ 'pattern': 'BB10'
19278
+ }, 'BlackBerry', {
19279
+ 'label': 'Galaxy S',
19280
+ 'pattern': 'GT-I9000'
19281
+ }, {
19282
+ 'label': 'Galaxy S2',
19283
+ 'pattern': 'GT-I9100'
19284
+ }, {
19285
+ 'label': 'Galaxy S3',
19286
+ 'pattern': 'GT-I9300'
19287
+ }, {
19288
+ 'label': 'Galaxy S4',
19289
+ 'pattern': 'GT-I9500'
19290
+ }, {
19291
+ 'label': 'Galaxy S5',
19292
+ 'pattern': 'SM-G900'
19293
+ }, {
19294
+ 'label': 'Galaxy S6',
19295
+ 'pattern': 'SM-G920'
19296
+ }, {
19297
+ 'label': 'Galaxy S6 Edge',
19298
+ 'pattern': 'SM-G925'
19299
+ }, {
19300
+ 'label': 'Galaxy S7',
19301
+ 'pattern': 'SM-G930'
19302
+ }, {
19303
+ 'label': 'Galaxy S7 Edge',
19304
+ 'pattern': 'SM-G935'
19305
+ }, 'Google TV', 'Lumia', 'iPad', 'iPod', 'iPhone', 'Kindle', {
19306
+ 'label': 'Kindle Fire',
19307
+ 'pattern': '(?:Cloud9|Silk-Accelerated)'
19308
+ }, 'Nexus', 'Nook', 'PlayBook', 'PlayStation Vita', 'PlayStation', 'TouchPad', 'Transformer', {
19309
+ 'label': 'Wii U',
19310
+ 'pattern': 'WiiU'
19311
+ }, 'Wii', 'Xbox One', {
19312
+ 'label': 'Xbox 360',
19313
+ 'pattern': 'Xbox'
19314
+ }, 'Xoom']);
19315
+
19316
+ /* Detectable manufacturers. */
19317
+ var manufacturer = getManufacturer({
19318
+ 'Apple': {
19319
+ 'iPad': 1,
19320
+ 'iPhone': 1,
19321
+ 'iPod': 1
19322
+ },
19323
+ 'Alcatel': {},
19324
+ 'Archos': {},
19325
+ 'Amazon': {
19326
+ 'Kindle': 1,
19327
+ 'Kindle Fire': 1
19328
+ },
19329
+ 'Asus': {
19330
+ 'Transformer': 1
19331
+ },
19332
+ 'Barnes & Noble': {
19333
+ 'Nook': 1
19334
+ },
19335
+ 'BlackBerry': {
19336
+ 'PlayBook': 1
19337
+ },
19338
+ 'Google': {
19339
+ 'Google TV': 1,
19340
+ 'Nexus': 1
19341
+ },
19342
+ 'HP': {
19343
+ 'TouchPad': 1
19344
+ },
19345
+ 'HTC': {},
19346
+ 'Huawei': {},
19347
+ 'Lenovo': {},
19348
+ 'LG': {},
19349
+ 'Microsoft': {
19350
+ 'Xbox': 1,
19351
+ 'Xbox One': 1
19352
+ },
19353
+ 'Motorola': {
19354
+ 'Xoom': 1
19355
+ },
19356
+ 'Nintendo': {
19357
+ 'Wii U': 1,
19358
+ 'Wii': 1
19359
+ },
19360
+ 'Nokia': {
19361
+ 'Lumia': 1
19362
+ },
19363
+ 'Oppo': {},
19364
+ 'Samsung': {
19365
+ 'Galaxy S': 1,
19366
+ 'Galaxy S2': 1,
19367
+ 'Galaxy S3': 1,
19368
+ 'Galaxy S4': 1
19369
+ },
19370
+ 'Sony': {
19371
+ 'PlayStation': 1,
19372
+ 'PlayStation Vita': 1
19373
+ },
19374
+ 'Xiaomi': {
19375
+ 'Mi': 1,
19376
+ 'Redmi': 1
19377
+ }
19378
+ });
18283
19379
 
19380
+ /* Detectable operating systems (order is important). */
19381
+ var os = getOS(['Windows Phone', 'KaiOS', 'Android', 'CentOS', {
19382
+ 'label': 'Chrome OS',
19383
+ 'pattern': 'CrOS'
19384
+ }, 'Debian', {
19385
+ 'label': 'DragonFly BSD',
19386
+ 'pattern': 'DragonFly'
19387
+ }, 'Fedora', 'FreeBSD', 'Gentoo', 'Haiku', 'Kubuntu', 'Linux Mint', 'OpenBSD', 'Red Hat', 'SuSE', 'Ubuntu', 'Xubuntu', 'Cygwin', 'Symbian OS', 'hpwOS', 'webOS ', 'webOS', 'Tablet OS', 'Tizen', 'Linux', 'Mac OS X', 'Macintosh', 'Mac', 'Windows 98;', 'Windows ']);
18284
19388
 
18285
- if (typeof element !== 'undefined' && !isElementBind(element) && window) {
18286
- elementHasBindEvent.push(element);
18287
- addEvent$1(element, 'keydown', function (e) {
18288
- dispatch(e);
18289
- });
18290
- addEvent$1(window, 'focus', function () {
18291
- _downKeys = [];
18292
- });
18293
- addEvent$1(element, 'keyup', function (e) {
18294
- dispatch(e);
18295
- clearModifier(e);
18296
- });
18297
- }
18298
- }
19389
+ /*------------------------------------------------------------------------*/
18299
19390
 
18300
- var _api = {
18301
- setScope: setScope,
18302
- getScope: getScope,
18303
- deleteScope: deleteScope,
18304
- getPressedKeyCodes: getPressedKeyCodes,
18305
- isPressed: isPressed,
18306
- filter: filter,
18307
- unbind: unbind
18308
- };
19391
+ /**
19392
+ * Picks the layout engine from an array of guesses.
19393
+ *
19394
+ * @private
19395
+ * @param {Array} guesses An array of guesses.
19396
+ * @returns {null|string} The detected layout engine.
19397
+ */
19398
+ function getLayout(guesses) {
19399
+ return reduce(guesses, function (result, guess) {
19400
+ return result || RegExp('\\b' + (guess.pattern || qualify(guess)) + '\\b', 'i').exec(ua) && (guess.label || guess);
19401
+ });
19402
+ }
18309
19403
 
18310
- for (var a in _api) {
18311
- if (Object.prototype.hasOwnProperty.call(_api, a)) {
18312
- hotkeys[a] = _api[a];
18313
- }
18314
- }
19404
+ /**
19405
+ * Picks the manufacturer from an array of guesses.
19406
+ *
19407
+ * @private
19408
+ * @param {Array} guesses An object of guesses.
19409
+ * @returns {null|string} The detected manufacturer.
19410
+ */
19411
+ function getManufacturer(guesses) {
19412
+ return reduce(guesses, function (result, value, key) {
19413
+ // Lookup the manufacturer by product or scan the UA for the manufacturer.
19414
+ return result || (value[product] || value[/^[a-z]+(?: +[a-z]+\b)*/i.exec(product)] || RegExp('\\b' + qualify(key) + '(?:\\b|\\w*\\d)', 'i').exec(ua)) && key;
19415
+ });
19416
+ }
18315
19417
 
18316
- if (typeof window !== 'undefined') {
18317
- var _hotkeys = window.hotkeys;
19418
+ /**
19419
+ * Picks the browser name from an array of guesses.
19420
+ *
19421
+ * @private
19422
+ * @param {Array} guesses An array of guesses.
19423
+ * @returns {null|string} The detected browser name.
19424
+ */
19425
+ function getName(guesses) {
19426
+ return reduce(guesses, function (result, guess) {
19427
+ return result || RegExp('\\b' + (guess.pattern || qualify(guess)) + '\\b', 'i').exec(ua) && (guess.label || guess);
19428
+ });
19429
+ }
18318
19430
 
18319
- hotkeys.noConflict = function (deep) {
18320
- if (deep && window.hotkeys === hotkeys) {
18321
- window.hotkeys = _hotkeys;
18322
- }
19431
+ /**
19432
+ * Picks the OS name from an array of guesses.
19433
+ *
19434
+ * @private
19435
+ * @param {Array} guesses An array of guesses.
19436
+ * @returns {null|string} The detected OS name.
19437
+ */
19438
+ function getOS(guesses) {
19439
+ return reduce(guesses, function (result, guess) {
19440
+ var pattern = guess.pattern || qualify(guess);
19441
+ if (!result && (result = RegExp('\\b' + pattern + '(?:/[\\d.]+|[ \\w.]*)', 'i').exec(ua))) {
19442
+ result = cleanupOS(result, pattern, guess.label || guess);
19443
+ }
19444
+ return result;
19445
+ });
19446
+ }
18323
19447
 
18324
- return hotkeys;
18325
- };
19448
+ /**
19449
+ * Picks the product name from an array of guesses.
19450
+ *
19451
+ * @private
19452
+ * @param {Array} guesses An array of guesses.
19453
+ * @returns {null|string} The detected product name.
19454
+ */
19455
+ function getProduct(guesses) {
19456
+ return reduce(guesses, function (result, guess) {
19457
+ var pattern = guess.pattern || qualify(guess);
19458
+ if (!result && (result = RegExp('\\b' + pattern + ' *\\d+[.\\w_]*', 'i').exec(ua) || RegExp('\\b' + pattern + ' *\\w+-[\\w]*', 'i').exec(ua) || RegExp('\\b' + pattern + '(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)', 'i').exec(ua))) {
19459
+ // Split by forward slash and append product version if needed.
19460
+ if ((result = String(guess.label && !RegExp(pattern, 'i').test(guess.label) ? guess.label : result).split('/'))[1] && !/[\d.]+/.test(result[0])) {
19461
+ result[0] += ' ' + result[1];
19462
+ }
19463
+ // Correct character case and cleanup string.
19464
+ guess = guess.label || guess;
19465
+ result = format(result[0].replace(RegExp(pattern, 'i'), guess).replace(RegExp('; *(?:' + guess + '[_-])?', 'i'), ' ').replace(RegExp('(' + guess + ')[-_.]?(\\w)', 'i'), '$1 $2'));
19466
+ }
19467
+ return result;
19468
+ });
19469
+ }
18326
19470
 
18327
- window.hotkeys = hotkeys;
18328
- }
19471
+ /**
19472
+ * Resolves the version using an array of UA patterns.
19473
+ *
19474
+ * @private
19475
+ * @param {Array} patterns An array of UA patterns.
19476
+ * @returns {null|string} The detected version.
19477
+ */
19478
+ function getVersion(patterns) {
19479
+ return reduce(patterns, function (result, pattern) {
19480
+ return result || (RegExp(pattern + '(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)', 'i').exec(ua) || 0)[1] || null;
19481
+ });
19482
+ }
18329
19483
 
18330
- hotkeys.filter = function () {
18331
- return true;
18332
- };
19484
+ /**
19485
+ * Returns `platform.description` when the platform object is coerced to a string.
19486
+ *
19487
+ * @name toString
19488
+ * @memberOf platform
19489
+ * @returns {string} Returns `platform.description` if available, else an empty string.
19490
+ */
19491
+ function toStringPlatform() {
19492
+ return this.description || '';
19493
+ }
18333
19494
 
18334
- var tagFilter = function tagFilter(_ref, enableOnTags) {
18335
- var target = _ref.target;
18336
- var targetTagName = target && target.tagName;
18337
- return Boolean(targetTagName && enableOnTags && enableOnTags.includes(targetTagName));
18338
- };
19495
+ /*------------------------------------------------------------------------*/
19496
+
19497
+ // Convert layout to an array so we can add extra details.
19498
+ layout && (layout = [layout]);
19499
+
19500
+ // Detect Android products.
19501
+ // Browsers on Android devices typically provide their product IDS after "Android;"
19502
+ // up to "Build" or ") AppleWebKit".
19503
+ // Example:
19504
+ // "Mozilla/5.0 (Linux; Android 8.1.0; Moto G (5) Plus) AppleWebKit/537.36
19505
+ // (KHTML, like Gecko) Chrome/70.0.3538.80 Mobile Safari/537.36"
19506
+ if (/\bAndroid\b/.test(os) && !product && (data = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ua))) {
19507
+ product = trim(data[1])
19508
+ // Replace any language codes (eg. "en-US").
19509
+ .replace(/^[a-z]{2}-[a-z]{2};\s*/i, '') || null;
19510
+ }
19511
+ // Detect product names that contain their manufacturer's name.
19512
+ if (manufacturer && !product) {
19513
+ product = getProduct([manufacturer]);
19514
+ } else if (manufacturer && product) {
19515
+ product = product.replace(RegExp('^(' + qualify(manufacturer) + ')[-_.\\s]', 'i'), manufacturer + ' ').replace(RegExp('^(' + qualify(manufacturer) + ')[-_.]?(\\w)', 'i'), manufacturer + ' $2');
19516
+ }
19517
+ // Clean up Google TV.
19518
+ if (data = /\bGoogle TV\b/.exec(product)) {
19519
+ product = data[0];
19520
+ }
19521
+ // Detect simulators.
19522
+ if (/\bSimulator\b/i.test(ua)) {
19523
+ product = (product ? product + ' ' : '') + 'Simulator';
19524
+ }
19525
+ // Detect Opera Mini 8+ running in Turbo/Uncompressed mode on iOS.
19526
+ if (name == 'Opera Mini' && /\bOPiOS\b/.test(ua)) {
19527
+ description.push('running in Turbo/Uncompressed mode');
19528
+ }
19529
+ // Detect IE Mobile 11.
19530
+ if (name == 'IE' && /\blike iPhone OS\b/.test(ua)) {
19531
+ data = parse(ua.replace(/like iPhone OS/, ''));
19532
+ manufacturer = data.manufacturer;
19533
+ product = data.product;
19534
+ }
19535
+ // Detect iOS.
19536
+ else if (/^iP/.test(product)) {
19537
+ name || (name = 'Safari');
19538
+ os = 'iOS' + ((data = / OS ([\d_]+)/i.exec(ua)) ? ' ' + data[1].replace(/_/g, '.') : '');
19539
+ }
19540
+ // Detect Kubuntu.
19541
+ else if (name == 'Konqueror' && /^Linux\b/i.test(os)) {
19542
+ os = 'Kubuntu';
19543
+ }
19544
+ // Detect Android browsers.
19545
+ else if (manufacturer && manufacturer != 'Google' && (/Chrome/.test(name) && !/\bMobile Safari\b/i.test(ua) || /\bVita\b/.test(product)) || /\bAndroid\b/.test(os) && /^Chrome/.test(name) && /\bVersion\//i.test(ua)) {
19546
+ name = 'Android Browser';
19547
+ os = /\bAndroid\b/.test(os) ? os : 'Android';
19548
+ }
19549
+ // Detect Silk desktop/accelerated modes.
19550
+ else if (name == 'Silk') {
19551
+ if (!/\bMobi/i.test(ua)) {
19552
+ os = 'Android';
19553
+ description.unshift('desktop mode');
19554
+ }
19555
+ if (/Accelerated *= *true/i.test(ua)) {
19556
+ description.unshift('accelerated');
19557
+ }
19558
+ }
19559
+ // Detect UC Browser speed mode.
19560
+ else if (name == 'UC Browser' && /\bUCWEB\b/.test(ua)) {
19561
+ description.push('speed mode');
19562
+ }
19563
+ // Detect PaleMoon identifying as Firefox.
19564
+ else if (name == 'PaleMoon' && (data = /\bFirefox\/([\d.]+)\b/.exec(ua))) {
19565
+ description.push('identifying as Firefox ' + data[1]);
19566
+ }
19567
+ // Detect Firefox OS and products running Firefox.
19568
+ else if (name == 'Firefox' && (data = /\b(Mobile|Tablet|TV)\b/i.exec(ua))) {
19569
+ os || (os = 'Firefox OS');
19570
+ product || (product = data[1]);
19571
+ }
19572
+ // Detect false positives for Firefox/Safari.
19573
+ else if (!name || (data = !/\bMinefield\b/i.test(ua) && /\b(?:Firefox|Safari)\b/.exec(name))) {
19574
+ // Escape the `/` for Firefox 1.
19575
+ if (name && !product && /[\/,]|^[^(]+?\)/.test(ua.slice(ua.indexOf(data + '/') + 8))) {
19576
+ // Clear name of false positives.
19577
+ name = null;
19578
+ }
19579
+ // Reassign a generic name.
19580
+ if ((data = product || manufacturer || os) && (product || manufacturer || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(os))) {
19581
+ name = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(os) ? os : data) + ' Browser';
19582
+ }
19583
+ }
19584
+ // Add Chrome version to description for Electron.
19585
+ else if (name == 'Electron' && (data = (/\bChrome\/([\d.]+)\b/.exec(ua) || 0)[1])) {
19586
+ description.push('Chromium ' + data);
19587
+ }
19588
+ // Detect non-Opera (Presto-based) versions (order is important).
19589
+ if (!version) {
19590
+ version = getVersion(['(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)', 'Version', qualify(name), '(?:Firefox|Minefield|NetFront)']);
19591
+ }
19592
+ // Detect stubborn layout engines.
19593
+ if (data = layout == 'iCab' && parseFloat(version) > 3 && 'WebKit' || /\bOpera\b/.test(name) && (/\bOPR\b/.test(ua) ? 'Blink' : 'Presto') || /\b(?:Midori|Nook|Safari)\b/i.test(ua) && !/^(?:Trident|EdgeHTML)$/.test(layout) && 'WebKit' || !layout && /\bMSIE\b/i.test(ua) && (os == 'Mac OS' ? 'Tasman' : 'Trident') || layout == 'WebKit' && /\bPlayStation\b(?! Vita\b)/i.test(name) && 'NetFront') {
19594
+ layout = [data];
19595
+ }
19596
+ // Detect Windows Phone 7 desktop mode.
19597
+ if (name == 'IE' && (data = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ua) || 0)[1])) {
19598
+ name += ' Mobile';
19599
+ os = 'Windows Phone ' + (/\+$/.test(data) ? data : data + '.x');
19600
+ description.unshift('desktop mode');
19601
+ }
19602
+ // Detect Windows Phone 8.x desktop mode.
19603
+ else if (/\bWPDesktop\b/i.test(ua)) {
19604
+ name = 'IE Mobile';
19605
+ os = 'Windows Phone 8.x';
19606
+ description.unshift('desktop mode');
19607
+ version || (version = (/\brv:([\d.]+)/.exec(ua) || 0)[1]);
19608
+ }
19609
+ // Detect IE 11 identifying as other browsers.
19610
+ else if (name != 'IE' && layout == 'Trident' && (data = /\brv:([\d.]+)/.exec(ua))) {
19611
+ if (name) {
19612
+ description.push('identifying as ' + name + (version ? ' ' + version : ''));
19613
+ }
19614
+ name = 'IE';
19615
+ version = data[1];
19616
+ }
19617
+ // Leverage environment features.
19618
+ if (useFeatures) {
19619
+ // Detect server-side environments.
19620
+ // Rhino has a global function while others have a global object.
19621
+ if (isHostType(context, 'global')) {
19622
+ if (java) {
19623
+ data = java.lang.System;
19624
+ arch = data.getProperty('os.arch');
19625
+ os = os || data.getProperty('os.name') + ' ' + data.getProperty('os.version');
19626
+ }
19627
+ if (rhino) {
19628
+ try {
19629
+ version = context.require('ringo/engine').version.join('.');
19630
+ name = 'RingoJS';
19631
+ } catch (e) {
19632
+ if ((data = context.system) && data.global.system == context.system) {
19633
+ name = 'Narwhal';
19634
+ os || (os = data[0].os || null);
19635
+ }
19636
+ }
19637
+ if (!name) {
19638
+ name = 'Rhino';
19639
+ }
19640
+ } else if (_typeof$6(context.process) == 'object' && !context.process.browser && (data = context.process)) {
19641
+ if (_typeof$6(data.versions) == 'object') {
19642
+ if (typeof data.versions.electron == 'string') {
19643
+ description.push('Node ' + data.versions.node);
19644
+ name = 'Electron';
19645
+ version = data.versions.electron;
19646
+ } else if (typeof data.versions.nw == 'string') {
19647
+ description.push('Chromium ' + version, 'Node ' + data.versions.node);
19648
+ name = 'NW.js';
19649
+ version = data.versions.nw;
19650
+ }
19651
+ }
19652
+ if (!name) {
19653
+ name = 'Node.js';
19654
+ arch = data.arch;
19655
+ os = data.platform;
19656
+ version = /[\d.]+/.exec(data.version);
19657
+ version = version ? version[0] : null;
19658
+ }
19659
+ }
19660
+ }
19661
+ // Detect Adobe AIR.
19662
+ else if (getClassOf(data = context.runtime) == airRuntimeClass) {
19663
+ name = 'Adobe AIR';
19664
+ os = data.flash.system.Capabilities.os;
19665
+ }
19666
+ // Detect PhantomJS.
19667
+ else if (getClassOf(data = context.phantom) == phantomClass) {
19668
+ name = 'PhantomJS';
19669
+ version = (data = data.version || null) && data.major + '.' + data.minor + '.' + data.patch;
19670
+ }
19671
+ // Detect IE compatibility modes.
19672
+ else if (typeof doc.documentMode == 'number' && (data = /\bTrident\/(\d+)/i.exec(ua))) {
19673
+ // We're in compatibility mode when the Trident version + 4 doesn't
19674
+ // equal the document mode.
19675
+ version = [version, doc.documentMode];
19676
+ if ((data = +data[1] + 4) != version[1]) {
19677
+ description.push('IE ' + version[1] + ' mode');
19678
+ layout && (layout[1] = '');
19679
+ version[1] = data;
19680
+ }
19681
+ version = name == 'IE' ? String(version[1].toFixed(1)) : version[0];
19682
+ }
19683
+ // Detect IE 11 masking as other browsers.
19684
+ else if (typeof doc.documentMode == 'number' && /^(?:Chrome|Firefox)\b/.test(name)) {
19685
+ description.push('masking as ' + name + ' ' + version);
19686
+ name = 'IE';
19687
+ version = '11.0';
19688
+ layout = ['Trident'];
19689
+ os = 'Windows';
19690
+ }
19691
+ os = os && format(os);
19692
+ }
19693
+ // Detect prerelease phases.
19694
+ if (version && (data = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(version) || /(?:alpha|beta)(?: ?\d)?/i.exec(ua + ';' + (useFeatures && nav.appMinorVersion)) || /\bMinefield\b/i.test(ua) && 'a')) {
19695
+ prerelease = /b/i.test(data) ? 'beta' : 'alpha';
19696
+ version = version.replace(RegExp(data + '\\+?$'), '') + (prerelease == 'beta' ? beta : alpha) + (/\d+\+?/.exec(data) || '');
19697
+ }
19698
+ // Detect Firefox Mobile.
19699
+ if (name == 'Fennec' || name == 'Firefox' && /\b(?:Android|Firefox OS|KaiOS)\b/.test(os)) {
19700
+ name = 'Firefox Mobile';
19701
+ }
19702
+ // Obscure Maxthon's unreliable version.
19703
+ else if (name == 'Maxthon' && version) {
19704
+ version = version.replace(/\.[\d.]+/, '.x');
19705
+ }
19706
+ // Detect Xbox 360 and Xbox One.
19707
+ else if (/\bXbox\b/i.test(product)) {
19708
+ if (product == 'Xbox 360') {
19709
+ os = null;
19710
+ }
19711
+ if (product == 'Xbox 360' && /\bIEMobile\b/.test(ua)) {
19712
+ description.unshift('mobile mode');
19713
+ }
19714
+ }
19715
+ // Add mobile postfix.
19716
+ else if ((/^(?:Chrome|IE|Opera)$/.test(name) || name && !product && !/Browser|Mobi/.test(name)) && (os == 'Windows CE' || /Mobi/i.test(ua))) {
19717
+ name += ' Mobile';
19718
+ }
19719
+ // Detect IE platform preview.
19720
+ else if (name == 'IE' && useFeatures) {
19721
+ try {
19722
+ if (context.external === null) {
19723
+ description.unshift('platform preview');
19724
+ }
19725
+ } catch (e) {
19726
+ description.unshift('embedded');
19727
+ }
19728
+ }
19729
+ // Detect BlackBerry OS version.
19730
+ // http://docs.blackberry.com/en/developers/deliverables/18169/HTTP_headers_sent_by_BB_Browser_1234911_11.jsp
19731
+ else if ((/\bBlackBerry\b/.test(product) || /\bBB10\b/.test(ua)) && (data = (RegExp(product.replace(/ +/g, ' *') + '/([.\\d]+)', 'i').exec(ua) || 0)[1] || version)) {
19732
+ data = [data, /BB10/.test(ua)];
19733
+ os = (data[1] ? (product = null, manufacturer = 'BlackBerry') : 'Device Software') + ' ' + data[0];
19734
+ version = null;
19735
+ }
19736
+ // Detect Opera identifying/masking itself as another browser.
19737
+ // http://www.opera.com/support/kb/view/843/
19738
+ else if (this != forOwn && product != 'Wii' && (useFeatures && opera || /Opera/.test(name) && /\b(?:MSIE|Firefox)\b/i.test(ua) || name == 'Firefox' && /\bOS X (?:\d+\.){2,}/.test(os) || name == 'IE' && (os && !/^Win/.test(os) && version > 5.5 || /\bWindows XP\b/.test(os) && version > 8 || version == 8 && !/\bTrident\b/.test(ua))) && !reOpera.test(data = parse.call(forOwn, ua.replace(reOpera, '') + ';')) && data.name) {
19739
+ // When "identifying", the UA contains both Opera and the other browser's name.
19740
+ data = 'ing as ' + data.name + ((data = data.version) ? ' ' + data : '');
19741
+ if (reOpera.test(name)) {
19742
+ if (/\bIE\b/.test(data) && os == 'Mac OS') {
19743
+ os = null;
19744
+ }
19745
+ data = 'identify' + data;
19746
+ }
19747
+ // When "masking", the UA contains only the other browser's name.
19748
+ else {
19749
+ data = 'mask' + data;
19750
+ if (operaClass) {
19751
+ name = format(operaClass.replace(/([a-z])([A-Z])/g, '$1 $2'));
19752
+ } else {
19753
+ name = 'Opera';
19754
+ }
19755
+ if (/\bIE\b/.test(data)) {
19756
+ os = null;
19757
+ }
19758
+ if (!useFeatures) {
19759
+ version = null;
19760
+ }
19761
+ }
19762
+ layout = ['Presto'];
19763
+ description.push(data);
19764
+ }
19765
+ // Detect WebKit Nightly and approximate Chrome/Safari versions.
19766
+ if (data = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(ua) || 0)[1]) {
19767
+ // Correct build number for numeric comparison.
19768
+ // (e.g. "532.5" becomes "532.05")
19769
+ data = [parseFloat(data.replace(/\.(\d)$/, '.0$1')), data];
19770
+ // Nightly builds are postfixed with a "+".
19771
+ if (name == 'Safari' && data[1].slice(-1) == '+') {
19772
+ name = 'WebKit Nightly';
19773
+ prerelease = 'alpha';
19774
+ version = data[1].slice(0, -1);
19775
+ }
19776
+ // Clear incorrect browser versions.
19777
+ else if (version == data[1] || version == (data[2] = (/\bSafari\/([\d.]+\+?)/i.exec(ua) || 0)[1])) {
19778
+ version = null;
19779
+ }
19780
+ // Use the full Chrome version when available.
19781
+ data[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ua) || 0)[1];
19782
+ // Detect Blink layout engine.
19783
+ if (data[0] == 537.36 && data[2] == 537.36 && parseFloat(data[1]) >= 28 && layout == 'WebKit') {
19784
+ layout = ['Blink'];
19785
+ }
19786
+ // Detect JavaScriptCore.
19787
+ // http://stackoverflow.com/questions/6768474/how-can-i-detect-which-javascript-engine-v8-or-jsc-is-used-at-runtime-in-androi
19788
+ if (!useFeatures || !likeChrome && !data[1]) {
19789
+ layout && (layout[1] = 'like Safari');
19790
+ data = (data = data[0], data < 400 ? 1 : data < 500 ? 2 : data < 526 ? 3 : data < 533 ? 4 : data < 534 ? '4+' : data < 535 ? 5 : data < 537 ? 6 : data < 538 ? 7 : data < 601 ? 8 : data < 602 ? 9 : data < 604 ? 10 : data < 606 ? 11 : data < 608 ? 12 : '12');
19791
+ } else {
19792
+ layout && (layout[1] = 'like Chrome');
19793
+ data = data[1] || (data = data[0], data < 530 ? 1 : data < 532 ? 2 : data < 532.05 ? 3 : data < 533 ? 4 : data < 534.03 ? 5 : data < 534.07 ? 6 : data < 534.10 ? 7 : data < 534.13 ? 8 : data < 534.16 ? 9 : data < 534.24 ? 10 : data < 534.30 ? 11 : data < 535.01 ? 12 : data < 535.02 ? '13+' : data < 535.07 ? 15 : data < 535.11 ? 16 : data < 535.19 ? 17 : data < 536.05 ? 18 : data < 536.10 ? 19 : data < 537.01 ? 20 : data < 537.11 ? '21+' : data < 537.13 ? 23 : data < 537.18 ? 24 : data < 537.24 ? 25 : data < 537.36 ? 26 : layout != 'Blink' ? '27' : '28');
19794
+ }
19795
+ // Add the postfix of ".x" or "+" for approximate versions.
19796
+ layout && (layout[1] += ' ' + (data += typeof data == 'number' ? '.x' : /[.+]/.test(data) ? '' : '+'));
19797
+ // Obscure version for some Safari 1-2 releases.
19798
+ if (name == 'Safari' && (!version || parseInt(version) > 45)) {
19799
+ version = data;
19800
+ } else if (name == 'Chrome' && /\bHeadlessChrome/i.test(ua)) {
19801
+ description.unshift('headless');
19802
+ }
19803
+ }
19804
+ // Detect Opera desktop modes.
19805
+ if (name == 'Opera' && (data = /\bzbov|zvav$/.exec(os))) {
19806
+ name += ' ';
19807
+ description.unshift('desktop mode');
19808
+ if (data == 'zvav') {
19809
+ name += 'Mini';
19810
+ version = null;
19811
+ } else {
19812
+ name += 'Mobile';
19813
+ }
19814
+ os = os.replace(RegExp(' *' + data + '$'), '');
19815
+ }
19816
+ // Detect Chrome desktop mode.
19817
+ else if (name == 'Safari' && /\bChrome\b/.exec(layout && layout[1])) {
19818
+ description.unshift('desktop mode');
19819
+ name = 'Chrome Mobile';
19820
+ version = null;
19821
+ if (/\bOS X\b/.test(os)) {
19822
+ manufacturer = 'Apple';
19823
+ os = 'iOS 4.3+';
19824
+ } else {
19825
+ os = null;
19826
+ }
19827
+ }
19828
+ // Newer versions of SRWare Iron uses the Chrome tag to indicate its version number.
19829
+ else if (/\bSRWare Iron\b/.test(name) && !version) {
19830
+ version = getVersion('Chrome');
19831
+ }
19832
+ // Strip incorrect OS versions.
19833
+ if (version && version.indexOf(data = /[\d.]+$/.exec(os)) == 0 && ua.indexOf('/' + data + '-') > -1) {
19834
+ os = trim(os.replace(data, ''));
19835
+ }
19836
+ // Ensure OS does not include the browser name.
19837
+ if (os && os.indexOf(name) != -1 && !RegExp(name + ' OS').test(os)) {
19838
+ os = os.replace(RegExp(' *' + qualify(name) + ' *'), '');
19839
+ }
19840
+ // Add layout engine.
19841
+ if (layout && !/\b(?:Avant|Nook)\b/.test(name) && (/Browser|Lunascape|Maxthon/.test(name) || name != 'Safari' && /^iOS/.test(os) && /\bSafari\b/.test(layout[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(name) && layout[1])) {
19842
+ // Don't add layout details to description if they are falsey.
19843
+ (data = layout[layout.length - 1]) && description.push(data);
19844
+ }
19845
+ // Combine contextual information.
19846
+ if (description.length) {
19847
+ description = ['(' + description.join('; ') + ')'];
19848
+ }
19849
+ // Append manufacturer to description.
19850
+ if (manufacturer && product && product.indexOf(manufacturer) < 0) {
19851
+ description.push('on ' + manufacturer);
19852
+ }
19853
+ // Append product to description.
19854
+ if (product) {
19855
+ description.push((/^on /.test(description[description.length - 1]) ? '' : 'on ') + product);
19856
+ }
19857
+ // Parse the OS into an object.
19858
+ if (os) {
19859
+ data = / ([\d.+]+)$/.exec(os);
19860
+ isSpecialCasedOS = data && os.charAt(os.length - data[0].length - 1) == '/';
19861
+ os = {
19862
+ 'architecture': 32,
19863
+ 'family': data && !isSpecialCasedOS ? os.replace(data[0], '') : os,
19864
+ 'version': data ? data[1] : null,
19865
+ 'toString': function toString() {
19866
+ var version = this.version;
19867
+ return this.family + (version && !isSpecialCasedOS ? ' ' + version : '') + (this.architecture == 64 ? ' 64-bit' : '');
19868
+ }
19869
+ };
19870
+ }
19871
+ // Add browser/OS architecture.
19872
+ if ((data = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(arch)) && !/\bi686\b/i.test(arch)) {
19873
+ if (os) {
19874
+ os.architecture = 64;
19875
+ os.family = os.family.replace(RegExp(' *' + data), '');
19876
+ }
19877
+ if (name && (/\bWOW64\b/i.test(ua) || useFeatures && /\w(?:86|32)$/.test(nav.cpuClass || nav.platform) && !/\bWin64; x64\b/i.test(ua))) {
19878
+ description.unshift('32-bit');
19879
+ }
19880
+ }
19881
+ // Chrome 39 and above on OS X is always 64-bit.
19882
+ else if (os && /^OS X/.test(os.family) && name == 'Chrome' && parseFloat(version) >= 39) {
19883
+ os.architecture = 64;
19884
+ }
19885
+ ua || (ua = null);
18339
19886
 
18340
- var isKeyboardEventTriggeredByInput = function isKeyboardEventTriggeredByInput(ev) {
18341
- return tagFilter(ev, ['INPUT', 'TEXTAREA', 'SELECT']);
18342
- };
19887
+ /*------------------------------------------------------------------------*/
18343
19888
 
18344
- function useHotkeys(keys, callback, options, deps) {
18345
- if (options instanceof Array) {
18346
- deps = options;
18347
- options = undefined;
18348
- }
19889
+ /**
19890
+ * The platform object.
19891
+ *
19892
+ * @name platform
19893
+ * @type Object
19894
+ */
19895
+ var platform = {};
19896
+
19897
+ /**
19898
+ * The platform description.
19899
+ *
19900
+ * @memberOf platform
19901
+ * @type string|null
19902
+ */
19903
+ platform.description = ua;
18349
19904
 
18350
- var _ref2 = options || {},
18351
- enableOnTags = _ref2.enableOnTags,
18352
- filter = _ref2.filter,
18353
- keyup = _ref2.keyup,
18354
- keydown = _ref2.keydown,
18355
- _ref2$filterPreventDe = _ref2.filterPreventDefault,
18356
- filterPreventDefault = _ref2$filterPreventDe === void 0 ? true : _ref2$filterPreventDe,
18357
- _ref2$enabled = _ref2.enabled,
18358
- enabled = _ref2$enabled === void 0 ? true : _ref2$enabled,
18359
- _ref2$enableOnContent = _ref2.enableOnContentEditable,
18360
- enableOnContentEditable = _ref2$enableOnContent === void 0 ? false : _ref2$enableOnContent;
19905
+ /**
19906
+ * The name of the browser's layout engine.
19907
+ *
19908
+ * The list of common layout engines include:
19909
+ * "Blink", "EdgeHTML", "Gecko", "Trident" and "WebKit"
19910
+ *
19911
+ * @memberOf platform
19912
+ * @type string|null
19913
+ */
19914
+ platform.layout = layout && layout[0];
19915
+
19916
+ /**
19917
+ * The name of the product's manufacturer.
19918
+ *
19919
+ * The list of manufacturers include:
19920
+ * "Apple", "Archos", "Amazon", "Asus", "Barnes & Noble", "BlackBerry",
19921
+ * "Google", "HP", "HTC", "LG", "Microsoft", "Motorola", "Nintendo",
19922
+ * "Nokia", "Samsung" and "Sony"
19923
+ *
19924
+ * @memberOf platform
19925
+ * @type string|null
19926
+ */
19927
+ platform.manufacturer = manufacturer;
18361
19928
 
18362
- var ref = useRef(null); // The return value of this callback determines if the browsers default behavior is prevented.
19929
+ /**
19930
+ * The name of the browser/environment.
19931
+ *
19932
+ * The list of common browser names include:
19933
+ * "Chrome", "Electron", "Firefox", "Firefox for iOS", "IE",
19934
+ * "Microsoft Edge", "PhantomJS", "Safari", "SeaMonkey", "Silk",
19935
+ * "Opera Mini" and "Opera"
19936
+ *
19937
+ * Mobile versions of some browsers have "Mobile" appended to their name:
19938
+ * eg. "Chrome Mobile", "Firefox Mobile", "IE Mobile" and "Opera Mobile"
19939
+ *
19940
+ * @memberOf platform
19941
+ * @type string|null
19942
+ */
19943
+ platform.name = name;
18363
19944
 
18364
- var memoisedCallback = useCallback(function (keyboardEvent, hotkeysEvent) {
18365
- var _keyboardEvent$target;
19945
+ /**
19946
+ * The alpha/beta release indicator.
19947
+ *
19948
+ * @memberOf platform
19949
+ * @type string|null
19950
+ */
19951
+ platform.prerelease = prerelease;
18366
19952
 
18367
- if (filter && !filter(keyboardEvent)) {
18368
- return !filterPreventDefault;
18369
- } // Check whether the hotkeys was triggered inside an input and that input is enabled or if it was triggered by a content editable tag and it is enabled.
19953
+ /**
19954
+ * The name of the product hosting the browser.
19955
+ *
19956
+ * The list of common products include:
19957
+ *
19958
+ * "BlackBerry", "Galaxy S4", "Lumia", "iPad", "iPod", "iPhone", "Kindle",
19959
+ * "Kindle Fire", "Nexus", "Nook", "PlayBook", "TouchPad" and "Transformer"
19960
+ *
19961
+ * @memberOf platform
19962
+ * @type string|null
19963
+ */
19964
+ platform.product = product;
18370
19965
 
19966
+ /**
19967
+ * The browser's user agent string.
19968
+ *
19969
+ * @memberOf platform
19970
+ * @type string|null
19971
+ */
19972
+ platform.ua = ua;
18371
19973
 
18372
- if (isKeyboardEventTriggeredByInput(keyboardEvent) && !tagFilter(keyboardEvent, enableOnTags) || (_keyboardEvent$target = keyboardEvent.target) != null && _keyboardEvent$target.isContentEditable && !enableOnContentEditable) {
18373
- return true;
18374
- }
19974
+ /**
19975
+ * The browser/environment version.
19976
+ *
19977
+ * @memberOf platform
19978
+ * @type string|null
19979
+ */
19980
+ platform.version = name && version;
18375
19981
 
18376
- if (ref.current === null || document.activeElement === ref.current) {
18377
- callback(keyboardEvent, hotkeysEvent);
18378
- return true;
19982
+ /**
19983
+ * The name of the operating system.
19984
+ *
19985
+ * @memberOf platform
19986
+ * @type Object
19987
+ */
19988
+ platform.os = os || {
19989
+ /**
19990
+ * The CPU architecture the OS is built for.
19991
+ *
19992
+ * @memberOf platform.os
19993
+ * @type number|null
19994
+ */
19995
+ 'architecture': null,
19996
+ /**
19997
+ * The family of the OS.
19998
+ *
19999
+ * Common values include:
20000
+ * "Windows", "Windows Server 2008 R2 / 7", "Windows Server 2008 / Vista",
20001
+ * "Windows XP", "OS X", "Linux", "Ubuntu", "Debian", "Fedora", "Red Hat",
20002
+ * "SuSE", "Android", "iOS" and "Windows Phone"
20003
+ *
20004
+ * @memberOf platform.os
20005
+ * @type string|null
20006
+ */
20007
+ 'family': null,
20008
+ /**
20009
+ * The version of the OS.
20010
+ *
20011
+ * @memberOf platform.os
20012
+ * @type string|null
20013
+ */
20014
+ 'version': null,
20015
+ /**
20016
+ * Returns the OS string.
20017
+ *
20018
+ * @memberOf platform.os
20019
+ * @returns {string} The OS string.
20020
+ */
20021
+ 'toString': function toString() {
20022
+ return 'null';
20023
+ }
20024
+ };
20025
+ platform.parse = parse;
20026
+ platform.toString = toStringPlatform;
20027
+ if (platform.version) {
20028
+ description.unshift(version);
20029
+ }
20030
+ if (platform.name) {
20031
+ description.unshift(name);
20032
+ }
20033
+ if (os && name && !(os == String(os).split(' ')[0] && (os == name.split(' ')[0] || product))) {
20034
+ description.push(product ? '(' + os + ')' : 'on ' + os);
20035
+ }
20036
+ if (description.length) {
20037
+ platform.description = description.join(' ');
20038
+ }
20039
+ return platform;
18379
20040
  }
18380
20041
 
18381
- return false;
18382
- }, deps ? [ref, enableOnTags, filter].concat(deps) : [ref, enableOnTags, filter]);
18383
- useEffect(function () {
18384
- if (!enabled) {
18385
- return;
18386
- } // In this case keydown is likely undefined, so we set it to false, since hotkeys needs the `keydown` key to have a value.
20042
+ /*--------------------------------------------------------------------------*/
18387
20043
 
20044
+ // Export platform.
20045
+ var platform = parse();
18388
20046
 
18389
- if (keyup && keydown !== true) {
18390
- options.keydown = false;
18391
- }
20047
+ // Some AMD build optimizers, like r.js, check for condition patterns like the following:
20048
+ if (freeExports && freeModule) {
20049
+ // Export for CommonJS support.
20050
+ forOwn(platform, function (value, key) {
20051
+ freeExports[key] = value;
20052
+ });
20053
+ } else {
20054
+ // Export to the global object.
20055
+ root.platform = platform;
20056
+ }
20057
+ }).call(commonjsGlobal);
20058
+ })(platform$1, platform$1.exports);
20059
+ var platformExports = platform$1.exports;
20060
+ var platform = /*@__PURE__*/getDefaultExportFromCjs(platformExports);
20061
+
20062
+ var isMultipleHotkey = Array.isArray;
20063
+ var replaceKeys = function replaceKeys(hotkey, keyName, replaceWith) {
20064
+ return isMultipleHotkey(hotkey) ? hotkey.map(function (item) {
20065
+ return item.replaceAll(keyName, replaceWith);
20066
+ }) : hotkey.replaceAll(keyName, replaceWith);
20067
+ };
20068
+ var convertHotKeyToWindows = function convertHotKeyToWindows(hotkey) {
20069
+ toPairs(MAC_TO_WINDOWS_KEYS_MAP).forEach(function (_ref) {
20070
+ var _ref2 = _slicedToArray$2(_ref, 2),
20071
+ macKey = _ref2[0],
20072
+ windowsKey = _ref2[1];
20073
+ hotkey = replaceKeys(hotkey, macKey, windowsKey);
20074
+ });
20075
+ return hotkey;
20076
+ };
20077
+ var convertHotkeyToUsersPlatform = function convertHotkeyToUsersPlatform(hotkey) {
20078
+ var _platformInfo$os;
20079
+ var platformInfo = platform.parse(navigator.userAgent);
20080
+ var isOSX = (_platformInfo$os = platformInfo.os) === null || _platformInfo$os === void 0 || (_platformInfo$os = _platformInfo$os.family) === null || _platformInfo$os === void 0 ? void 0 : _platformInfo$os.includes(OS.mac);
20081
+ if (isOSX) return replaceKeys(hotkey, KEY_NAMES["delete"], KEY_NAMES.backspace);
20082
+ return convertHotKeyToWindows(hotkey);
20083
+ };
20084
+ var bindHotKey = function bindHotKey(_ref3) {
20085
+ var mode = _ref3.mode,
20086
+ hotkey = _ref3.hotkey,
20087
+ handler = _ref3.handler,
20088
+ ref = _ref3.ref;
20089
+ var mousetrapInstance;
20090
+ switch (mode) {
20091
+ case MODES.global:
20092
+ Mousetrap$1.bindGlobal(hotkey, handler);
20093
+ break;
20094
+ case MODES.scoped:
20095
+ mousetrapInstance = Mousetrap$1(ref.current).bind(hotkey, handler);
20096
+ break;
20097
+ default:
20098
+ mousetrapInstance = Mousetrap$1.bind(hotkey, handler);
20099
+ }
20100
+ return mousetrapInstance;
20101
+ };
20102
+ var unBindHotKey = function unBindHotKey(_ref4) {
20103
+ var mousetrapInstance = _ref4.mousetrapInstance,
20104
+ mode = _ref4.mode,
20105
+ hotkey = _ref4.hotkey;
20106
+ return mode === MODES.global ? Mousetrap$1.unbindGlobal(hotkey) : mousetrapInstance === null || mousetrapInstance === void 0 ? void 0 : mousetrapInstance.unbind(hotkey);
20107
+ };
18392
20108
 
18393
- hotkeys(keys, options || {}, memoisedCallback);
20109
+ var useHotKeys = function useHotKeys(hotkey, handler, userConfig) {
20110
+ var ref = useRef(null);
20111
+ var convertedHotkey = convertHotkeyToUsersPlatform(hotkey);
20112
+ var config = mergeLeft(userConfig, DEFAULT_CONFIG);
20113
+ if (!handler) {
20114
+ throw new Error("You must provide a handler function to useHotKeys");
20115
+ }
20116
+ useEffect(function () {
20117
+ if (!config.enabled) return undefined;
20118
+ var mousetrapInstance = bindHotKey({
20119
+ mode: config.mode,
20120
+ hotkey: convertedHotkey,
20121
+ handler: handler,
20122
+ ref: ref
20123
+ });
18394
20124
  return function () {
18395
- hotkeys.unbind(keys, memoisedCallback);
20125
+ unBindHotKey({
20126
+ mousetrapInstance: mousetrapInstance,
20127
+ mode: config.mode,
20128
+ hotkey: convertedHotkey
20129
+ });
18396
20130
  };
18397
- }, [memoisedCallback, keys, enabled]);
18398
- return ref;
18399
- }
20131
+ }, [handler, config.mode, convertedHotkey, config]);
20132
+ return config.mode === MODES.scoped ? ref : null;
20133
+ };
18400
20134
 
18401
20135
  var OverlayManager = /*#__PURE__*/function () {
18402
20136
  function OverlayManager() {
@@ -18499,14 +20233,13 @@ var useOverlay = function useOverlay(_ref) {
18499
20233
  }
18500
20234
  };
18501
20235
  var focusRequiredElementInOverlay = function focusRequiredElementInOverlay() {
18502
- if (hasTransitionCompleted) {
18503
- var _initialFocusRef;
18504
- if ((_initialFocusRef = initialFocusRef) !== null && _initialFocusRef !== void 0 && _initialFocusRef.current) {
18505
- var _initialFocusRef2;
18506
- (_initialFocusRef2 = initialFocusRef) === null || _initialFocusRef2 === void 0 || (_initialFocusRef2 = _initialFocusRef2.current) === null || _initialFocusRef2 === void 0 || _initialFocusRef2.focus();
18507
- } else {
18508
- focusFirstFocusableElement(overlayWrapper);
18509
- }
20236
+ var _initialFocusRef;
20237
+ if (!hasTransitionCompleted) return;
20238
+ if ((_initialFocusRef = initialFocusRef) !== null && _initialFocusRef !== void 0 && _initialFocusRef.current) {
20239
+ var _initialFocusRef2;
20240
+ (_initialFocusRef2 = initialFocusRef) === null || _initialFocusRef2 === void 0 || (_initialFocusRef2 = _initialFocusRef2.current) === null || _initialFocusRef2 === void 0 || _initialFocusRef2.focus();
20241
+ } else {
20242
+ focusFirstFocusableElement(overlayWrapper);
18510
20243
  }
18511
20244
  };
18512
20245
  var handleOverlayClose = useCallback(function () {
@@ -18518,9 +20251,9 @@ var useOverlay = function useOverlay(_ref) {
18518
20251
  var isTopOverlay = useSyncExternalStore(manager.subscribe, function () {
18519
20252
  return manager.isTopOverlay(overlayWrapper);
18520
20253
  });
18521
- useHotkeys("esc", function () {
18522
- closeOnEsc && handleOverlayClose();
18523
- }, [handleOverlayClose, closeOnEsc]);
20254
+ useHotKeys("escape", handleOverlayClose, {
20255
+ enabled: closeOnEsc
20256
+ });
18524
20257
  useEffect(function () {
18525
20258
  var cleanUp = noop$3;
18526
20259
  if (isOpen) {
@@ -18804,7 +20537,7 @@ var Modal = function Modal(_ref) {
18804
20537
  closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
18805
20538
  otherProps = _objectWithoutProperties$1(_ref, _excluded$z);
18806
20539
  var _useState = useState(false),
18807
- _useState2 = _slicedToArray$2(_useState, 2),
20540
+ _useState2 = _slicedToArray$3(_useState, 2),
18808
20541
  hasTransitionCompleted = _useState2[0],
18809
20542
  setHasTransitionCompleted = _useState2[1];
18810
20543
  var modalWrapper = useRef(null);
@@ -18960,10 +20693,10 @@ var Alert = function Alert(_ref) {
18960
20693
  var build = {exports: {}};
18961
20694
 
18962
20695
  (function (module, exports) {
18963
- !function(e,t){module.exports=t(React__default);}(commonjsGlobal,(function(e){return function(e){var t={};function r(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,l){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l});},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(l,i,function(t){return e[t]}.bind(null,i));return l},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1)}([function(t,r){t.exports=e;},function(e,t,r){e.exports=r(2);},function(e,t,r){function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l);}return r}function a(e,t){if(null==e)return {};var r,l,i=function(e,t){if(null==e)return {};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);}return i}r.r(t);var n=r(0),c=r.n(n),h=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t;}return Math.abs(t)},o=function(e,t){return Math.floor(e/Math.pow(10,t)%10)},s=function(e,t){return !(o(e,t)%2)},m=function(e,t,r){var l=e%t;return r&&o(e,r)%2===0?-l:l},f=function(e,t,r){return t[e%r]};var u=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return {color:f(r+i,t,l),translateX:m(r*(i+1),40-(i+17),1),translateY:m(r*(i+1),40-(i+17),2),rotate:m(r*(i+1),360),isSquare:s(r,2)}}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__bauhaus",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__bauhaus)"},n.createElement("rect",{width:80,height:80,fill:t[0].color}),n.createElement("rect",{x:10,y:30,width:80,height:t[1].isSquare?80:10,fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40)"}),n.createElement("circle",{cx:40,cy:40,fill:t[2].color,r:16,transform:"translate("+t[2].translateX+" "+t[2].translateY+")"}),n.createElement("line",{x1:0,y1:40,x2:80,y2:40,strokeWidth:2,stroke:t[3].color,transform:"translate("+t[3].translateX+" "+t[3].translateY+") rotate("+t[3].rotate+" 40 40)"})))};var d=function(e){var t=function(e,t){var r=h(t),l=e&&e.length,i=Array.from({length:5},(function(t,i){return f(r+i,e,l)})),a=[];return a[0]=i[0],a[1]=i[1],a[2]=i[1],a[3]=i[2],a[4]=i[2],a[5]=i[3],a[6]=i[3],a[7]=i[0],a[8]=i[4],a}(e.colors,e.name);return c.a.createElement("svg",{viewBox:"0 0 90 90",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&c.a.createElement("title",null,e.name),c.a.createElement("mask",{id:"mask__ring",maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},c.a.createElement("rect",{width:90,height:90,rx:e.square?void 0:180,fill:"#FFFFFF"})),c.a.createElement("g",{mask:"url(#mask__ring)"},c.a.createElement("path",{d:"M0 0h90v45H0z",fill:t[0]}),c.a.createElement("path",{d:"M0 45h90v45H0z",fill:t[1]}),c.a.createElement("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:t[2]}),c.a.createElement("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:t[3]}),c.a.createElement("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:t[4]}),c.a.createElement("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:t[5]}),c.a.createElement("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:t[6]}),c.a.createElement("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:t[7]}),c.a.createElement("circle",{cx:45,cy:45,r:23,fill:t[8]})))};var g=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:64},(function(e,i){return f(r%i,t,l)}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__pixel","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__pixel)"},n.createElement("rect",{width:10,height:10,fill:t[0]}),n.createElement("rect",{x:20,width:10,height:10,fill:t[1]}),n.createElement("rect",{x:40,width:10,height:10,fill:t[2]}),n.createElement("rect",{x:60,width:10,height:10,fill:t[3]}),n.createElement("rect",{x:10,width:10,height:10,fill:t[4]}),n.createElement("rect",{x:30,width:10,height:10,fill:t[5]}),n.createElement("rect",{x:50,width:10,height:10,fill:t[6]}),n.createElement("rect",{x:70,width:10,height:10,fill:t[7]}),n.createElement("rect",{y:10,width:10,height:10,fill:t[8]}),n.createElement("rect",{y:20,width:10,height:10,fill:t[9]}),n.createElement("rect",{y:30,width:10,height:10,fill:t[10]}),n.createElement("rect",{y:40,width:10,height:10,fill:t[11]}),n.createElement("rect",{y:50,width:10,height:10,fill:t[12]}),n.createElement("rect",{y:60,width:10,height:10,fill:t[13]}),n.createElement("rect",{y:70,width:10,height:10,fill:t[14]}),n.createElement("rect",{x:20,y:10,width:10,height:10,fill:t[15]}),n.createElement("rect",{x:20,y:20,width:10,height:10,fill:t[16]}),n.createElement("rect",{x:20,y:30,width:10,height:10,fill:t[17]}),n.createElement("rect",{x:20,y:40,width:10,height:10,fill:t[18]}),n.createElement("rect",{x:20,y:50,width:10,height:10,fill:t[19]}),n.createElement("rect",{x:20,y:60,width:10,height:10,fill:t[20]}),n.createElement("rect",{x:20,y:70,width:10,height:10,fill:t[21]}),n.createElement("rect",{x:40,y:10,width:10,height:10,fill:t[22]}),n.createElement("rect",{x:40,y:20,width:10,height:10,fill:t[23]}),n.createElement("rect",{x:40,y:30,width:10,height:10,fill:t[24]}),n.createElement("rect",{x:40,y:40,width:10,height:10,fill:t[25]}),n.createElement("rect",{x:40,y:50,width:10,height:10,fill:t[26]}),n.createElement("rect",{x:40,y:60,width:10,height:10,fill:t[27]}),n.createElement("rect",{x:40,y:70,width:10,height:10,fill:t[28]}),n.createElement("rect",{x:60,y:10,width:10,height:10,fill:t[29]}),n.createElement("rect",{x:60,y:20,width:10,height:10,fill:t[30]}),n.createElement("rect",{x:60,y:30,width:10,height:10,fill:t[31]}),n.createElement("rect",{x:60,y:40,width:10,height:10,fill:t[32]}),n.createElement("rect",{x:60,y:50,width:10,height:10,fill:t[33]}),n.createElement("rect",{x:60,y:60,width:10,height:10,fill:t[34]}),n.createElement("rect",{x:60,y:70,width:10,height:10,fill:t[35]}),n.createElement("rect",{x:10,y:10,width:10,height:10,fill:t[36]}),n.createElement("rect",{x:10,y:20,width:10,height:10,fill:t[37]}),n.createElement("rect",{x:10,y:30,width:10,height:10,fill:t[38]}),n.createElement("rect",{x:10,y:40,width:10,height:10,fill:t[39]}),n.createElement("rect",{x:10,y:50,width:10,height:10,fill:t[40]}),n.createElement("rect",{x:10,y:60,width:10,height:10,fill:t[41]}),n.createElement("rect",{x:10,y:70,width:10,height:10,fill:t[42]}),n.createElement("rect",{x:30,y:10,width:10,height:10,fill:t[43]}),n.createElement("rect",{x:30,y:20,width:10,height:10,fill:t[44]}),n.createElement("rect",{x:30,y:30,width:10,height:10,fill:t[45]}),n.createElement("rect",{x:30,y:40,width:10,height:10,fill:t[46]}),n.createElement("rect",{x:30,y:50,width:10,height:10,fill:t[47]}),n.createElement("rect",{x:30,y:60,width:10,height:10,fill:t[48]}),n.createElement("rect",{x:30,y:70,width:10,height:10,fill:t[49]}),n.createElement("rect",{x:50,y:10,width:10,height:10,fill:t[50]}),n.createElement("rect",{x:50,y:20,width:10,height:10,fill:t[51]}),n.createElement("rect",{x:50,y:30,width:10,height:10,fill:t[52]}),n.createElement("rect",{x:50,y:40,width:10,height:10,fill:t[53]}),n.createElement("rect",{x:50,y:50,width:10,height:10,fill:t[54]}),n.createElement("rect",{x:50,y:60,width:10,height:10,fill:t[55]}),n.createElement("rect",{x:50,y:70,width:10,height:10,fill:t[56]}),n.createElement("rect",{x:70,y:10,width:10,height:10,fill:t[57]}),n.createElement("rect",{x:70,y:20,width:10,height:10,fill:t[58]}),n.createElement("rect",{x:70,y:30,width:10,height:10,fill:t[59]}),n.createElement("rect",{x:70,y:40,width:10,height:10,fill:t[60]}),n.createElement("rect",{x:70,y:50,width:10,height:10,fill:t[61]}),n.createElement("rect",{x:70,y:60,width:10,height:10,fill:t[62]}),n.createElement("rect",{x:70,y:70,width:10,height:10,fill:t[63]})))};var w=function(e){var t=function(e,t){var r,l=h(e),i=t&&t.length,a=f(l,t,i),n=m(l,10,1),c=n<5?n+4:n,o=m(l,10,2),u=o<5?o+4:o;return {wrapperColor:a,faceColor:(r=a,"#"===r.slice(0,1)&&(r=r.slice(1)),(299*parseInt(r.substr(0,2),16)+587*parseInt(r.substr(2,2),16)+114*parseInt(r.substr(4,2),16))/1e3>=128?"#000000":"#FFFFFF"),backgroundColor:f(l+13,t,i),wrapperTranslateX:c,wrapperTranslateY:u,wrapperRotate:m(l,360),wrapperScale:1+m(l,3)/10,isMouthOpen:s(l,2),isCircle:s(l,1),eyeSpread:m(l,5),mouthSpread:m(l,3),faceRotate:m(l,10,3),faceTranslateX:c>6?c/2:m(l,8,1),faceTranslateY:u>6?u/2:m(l,7,2)}}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 36 36",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__beam",maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36},n.createElement("rect",{width:36,height:36,rx:e.square?void 0:72,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__beam)"},n.createElement("rect",{width:36,height:36,fill:t.backgroundColor}),n.createElement("rect",{x:"0",y:"0",width:36,height:36,transform:"translate("+t.wrapperTranslateX+" "+t.wrapperTranslateY+") rotate("+t.wrapperRotate+" 18 18) scale("+t.wrapperScale+")",fill:t.wrapperColor,rx:t.isCircle?36:6}),n.createElement("g",{transform:"translate("+t.faceTranslateX+" "+t.faceTranslateY+") rotate("+t.faceRotate+" 18 18)"},t.isMouthOpen?n.createElement("path",{d:"M15 "+(19+t.mouthSpread)+"c2 1 4 1 6 0",stroke:t.faceColor,fill:"none",strokeLinecap:"round"}):n.createElement("path",{d:"M13,"+(19+t.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:t.faceColor}),n.createElement("rect",{x:14-t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}),n.createElement("rect",{x:20+t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}))))};var E=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return f(r+i,t,l)}))}(e.name,e.colors),r=e.name.replace(/\s/g,"");return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__sunset",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__sunset)"},n.createElement("path",{fill:"url(#gradient_paint0_linear_"+r+")",d:"M0 0h80v40H0z"}),n.createElement("path",{fill:"url(#gradient_paint1_linear_"+r+")",d:"M0 40h80v40H0z"})),n.createElement("defs",null,n.createElement("linearGradient",{id:"gradient_paint0_linear_"+r,x1:40,y1:0,x2:40,y2:40,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:t[0]}),n.createElement("stop",{offset:1,stopColor:t[1]})),n.createElement("linearGradient",{id:"gradient_paint1_linear_"+r,x1:40,y1:40,x2:40,y2:80,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:t[2]}),n.createElement("stop",{offset:1,stopColor:t[3]}))))};var p=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:3},(function(e,i){return {color:f(r+i,t,l),translateX:m(r*(i+1),8,1),translateY:m(r*(i+1),8,2),scale:1.2+m(r*(i+1),4)/10,rotate:m(r*(i+1),360,1)}}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__marble",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__marble)"},n.createElement("rect",{width:80,height:80,fill:t[0].color}),n.createElement("path",{filter:"url(#prefix__filter0_f)",d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40) scale("+t[2].scale+")"}),n.createElement("path",{filter:"url(#prefix__filter0_f)",style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:t[2].color,transform:"translate("+t[2].translateX+" "+t[2].translateY+") rotate("+t[2].rotate+" 40 40) scale("+t[2].scale+")"})),n.createElement("defs",null,n.createElement("filter",{id:"prefix__filter0_f",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n.createElement("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"}))))},y=["pixel","bauhaus","ring","beam","sunset","marble"],x={geometric:"beam",abstract:"bauhaus"},v=function(e){var t=e.variant,r=void 0===t?"marble":t,n=e.colors,h=void 0===n?["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]:n,o=e.name,s=void 0===o?"Clara Barton":o,m=e.square,f=void 0!==m&&m,v=e.title,b=void 0!==v&&v,_=e.size,F=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));}));}return e}({colors:h,name:s,title:b,size:void 0===_?40:_,square:f},a(e,["variant","colors","name","square","title","size"]));return {pixel:c.a.createElement(g,F),bauhaus:c.a.createElement(u,F),ring:c.a.createElement(d,F),beam:c.a.createElement(w,F),sunset:c.a.createElement(E,F),marble:c.a.createElement(p,F)}[Object.keys(x).includes(r)?x[r]:y.includes(r)?r:"marble"]};t.default=v;}])}));
20696
+ !function(e,t){module.exports=t(React__default);}(commonjsGlobal$1,(function(e){return function(e){var t={};function r(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,l){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l});},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(l,i,function(t){return e[t]}.bind(null,i));return l},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1)}([function(t,r){t.exports=e;},function(e,t,r){e.exports=r(2);},function(e,t,r){function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l);}return r}function a(e,t){if(null==e)return {};var r,l,i=function(e,t){if(null==e)return {};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);}return i}r.r(t);var n=r(0),c=r.n(n),h=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t;}return Math.abs(t)},o=function(e,t){return Math.floor(e/Math.pow(10,t)%10)},s=function(e,t){return !(o(e,t)%2)},m=function(e,t,r){var l=e%t;return r&&o(e,r)%2===0?-l:l},f=function(e,t,r){return t[e%r]};var u=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return {color:f(r+i,t,l),translateX:m(r*(i+1),40-(i+17),1),translateY:m(r*(i+1),40-(i+17),2),rotate:m(r*(i+1),360),isSquare:s(r,2)}}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__bauhaus",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__bauhaus)"},n.createElement("rect",{width:80,height:80,fill:t[0].color}),n.createElement("rect",{x:10,y:30,width:80,height:t[1].isSquare?80:10,fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40)"}),n.createElement("circle",{cx:40,cy:40,fill:t[2].color,r:16,transform:"translate("+t[2].translateX+" "+t[2].translateY+")"}),n.createElement("line",{x1:0,y1:40,x2:80,y2:40,strokeWidth:2,stroke:t[3].color,transform:"translate("+t[3].translateX+" "+t[3].translateY+") rotate("+t[3].rotate+" 40 40)"})))};var d=function(e){var t=function(e,t){var r=h(t),l=e&&e.length,i=Array.from({length:5},(function(t,i){return f(r+i,e,l)})),a=[];return a[0]=i[0],a[1]=i[1],a[2]=i[1],a[3]=i[2],a[4]=i[2],a[5]=i[3],a[6]=i[3],a[7]=i[0],a[8]=i[4],a}(e.colors,e.name);return c.a.createElement("svg",{viewBox:"0 0 90 90",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&c.a.createElement("title",null,e.name),c.a.createElement("mask",{id:"mask__ring",maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},c.a.createElement("rect",{width:90,height:90,rx:e.square?void 0:180,fill:"#FFFFFF"})),c.a.createElement("g",{mask:"url(#mask__ring)"},c.a.createElement("path",{d:"M0 0h90v45H0z",fill:t[0]}),c.a.createElement("path",{d:"M0 45h90v45H0z",fill:t[1]}),c.a.createElement("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:t[2]}),c.a.createElement("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:t[3]}),c.a.createElement("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:t[4]}),c.a.createElement("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:t[5]}),c.a.createElement("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:t[6]}),c.a.createElement("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:t[7]}),c.a.createElement("circle",{cx:45,cy:45,r:23,fill:t[8]})))};var g=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:64},(function(e,i){return f(r%i,t,l)}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__pixel","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__pixel)"},n.createElement("rect",{width:10,height:10,fill:t[0]}),n.createElement("rect",{x:20,width:10,height:10,fill:t[1]}),n.createElement("rect",{x:40,width:10,height:10,fill:t[2]}),n.createElement("rect",{x:60,width:10,height:10,fill:t[3]}),n.createElement("rect",{x:10,width:10,height:10,fill:t[4]}),n.createElement("rect",{x:30,width:10,height:10,fill:t[5]}),n.createElement("rect",{x:50,width:10,height:10,fill:t[6]}),n.createElement("rect",{x:70,width:10,height:10,fill:t[7]}),n.createElement("rect",{y:10,width:10,height:10,fill:t[8]}),n.createElement("rect",{y:20,width:10,height:10,fill:t[9]}),n.createElement("rect",{y:30,width:10,height:10,fill:t[10]}),n.createElement("rect",{y:40,width:10,height:10,fill:t[11]}),n.createElement("rect",{y:50,width:10,height:10,fill:t[12]}),n.createElement("rect",{y:60,width:10,height:10,fill:t[13]}),n.createElement("rect",{y:70,width:10,height:10,fill:t[14]}),n.createElement("rect",{x:20,y:10,width:10,height:10,fill:t[15]}),n.createElement("rect",{x:20,y:20,width:10,height:10,fill:t[16]}),n.createElement("rect",{x:20,y:30,width:10,height:10,fill:t[17]}),n.createElement("rect",{x:20,y:40,width:10,height:10,fill:t[18]}),n.createElement("rect",{x:20,y:50,width:10,height:10,fill:t[19]}),n.createElement("rect",{x:20,y:60,width:10,height:10,fill:t[20]}),n.createElement("rect",{x:20,y:70,width:10,height:10,fill:t[21]}),n.createElement("rect",{x:40,y:10,width:10,height:10,fill:t[22]}),n.createElement("rect",{x:40,y:20,width:10,height:10,fill:t[23]}),n.createElement("rect",{x:40,y:30,width:10,height:10,fill:t[24]}),n.createElement("rect",{x:40,y:40,width:10,height:10,fill:t[25]}),n.createElement("rect",{x:40,y:50,width:10,height:10,fill:t[26]}),n.createElement("rect",{x:40,y:60,width:10,height:10,fill:t[27]}),n.createElement("rect",{x:40,y:70,width:10,height:10,fill:t[28]}),n.createElement("rect",{x:60,y:10,width:10,height:10,fill:t[29]}),n.createElement("rect",{x:60,y:20,width:10,height:10,fill:t[30]}),n.createElement("rect",{x:60,y:30,width:10,height:10,fill:t[31]}),n.createElement("rect",{x:60,y:40,width:10,height:10,fill:t[32]}),n.createElement("rect",{x:60,y:50,width:10,height:10,fill:t[33]}),n.createElement("rect",{x:60,y:60,width:10,height:10,fill:t[34]}),n.createElement("rect",{x:60,y:70,width:10,height:10,fill:t[35]}),n.createElement("rect",{x:10,y:10,width:10,height:10,fill:t[36]}),n.createElement("rect",{x:10,y:20,width:10,height:10,fill:t[37]}),n.createElement("rect",{x:10,y:30,width:10,height:10,fill:t[38]}),n.createElement("rect",{x:10,y:40,width:10,height:10,fill:t[39]}),n.createElement("rect",{x:10,y:50,width:10,height:10,fill:t[40]}),n.createElement("rect",{x:10,y:60,width:10,height:10,fill:t[41]}),n.createElement("rect",{x:10,y:70,width:10,height:10,fill:t[42]}),n.createElement("rect",{x:30,y:10,width:10,height:10,fill:t[43]}),n.createElement("rect",{x:30,y:20,width:10,height:10,fill:t[44]}),n.createElement("rect",{x:30,y:30,width:10,height:10,fill:t[45]}),n.createElement("rect",{x:30,y:40,width:10,height:10,fill:t[46]}),n.createElement("rect",{x:30,y:50,width:10,height:10,fill:t[47]}),n.createElement("rect",{x:30,y:60,width:10,height:10,fill:t[48]}),n.createElement("rect",{x:30,y:70,width:10,height:10,fill:t[49]}),n.createElement("rect",{x:50,y:10,width:10,height:10,fill:t[50]}),n.createElement("rect",{x:50,y:20,width:10,height:10,fill:t[51]}),n.createElement("rect",{x:50,y:30,width:10,height:10,fill:t[52]}),n.createElement("rect",{x:50,y:40,width:10,height:10,fill:t[53]}),n.createElement("rect",{x:50,y:50,width:10,height:10,fill:t[54]}),n.createElement("rect",{x:50,y:60,width:10,height:10,fill:t[55]}),n.createElement("rect",{x:50,y:70,width:10,height:10,fill:t[56]}),n.createElement("rect",{x:70,y:10,width:10,height:10,fill:t[57]}),n.createElement("rect",{x:70,y:20,width:10,height:10,fill:t[58]}),n.createElement("rect",{x:70,y:30,width:10,height:10,fill:t[59]}),n.createElement("rect",{x:70,y:40,width:10,height:10,fill:t[60]}),n.createElement("rect",{x:70,y:50,width:10,height:10,fill:t[61]}),n.createElement("rect",{x:70,y:60,width:10,height:10,fill:t[62]}),n.createElement("rect",{x:70,y:70,width:10,height:10,fill:t[63]})))};var w=function(e){var t=function(e,t){var r,l=h(e),i=t&&t.length,a=f(l,t,i),n=m(l,10,1),c=n<5?n+4:n,o=m(l,10,2),u=o<5?o+4:o;return {wrapperColor:a,faceColor:(r=a,"#"===r.slice(0,1)&&(r=r.slice(1)),(299*parseInt(r.substr(0,2),16)+587*parseInt(r.substr(2,2),16)+114*parseInt(r.substr(4,2),16))/1e3>=128?"#000000":"#FFFFFF"),backgroundColor:f(l+13,t,i),wrapperTranslateX:c,wrapperTranslateY:u,wrapperRotate:m(l,360),wrapperScale:1+m(l,3)/10,isMouthOpen:s(l,2),isCircle:s(l,1),eyeSpread:m(l,5),mouthSpread:m(l,3),faceRotate:m(l,10,3),faceTranslateX:c>6?c/2:m(l,8,1),faceTranslateY:u>6?u/2:m(l,7,2)}}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 36 36",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__beam",maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36},n.createElement("rect",{width:36,height:36,rx:e.square?void 0:72,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__beam)"},n.createElement("rect",{width:36,height:36,fill:t.backgroundColor}),n.createElement("rect",{x:"0",y:"0",width:36,height:36,transform:"translate("+t.wrapperTranslateX+" "+t.wrapperTranslateY+") rotate("+t.wrapperRotate+" 18 18) scale("+t.wrapperScale+")",fill:t.wrapperColor,rx:t.isCircle?36:6}),n.createElement("g",{transform:"translate("+t.faceTranslateX+" "+t.faceTranslateY+") rotate("+t.faceRotate+" 18 18)"},t.isMouthOpen?n.createElement("path",{d:"M15 "+(19+t.mouthSpread)+"c2 1 4 1 6 0",stroke:t.faceColor,fill:"none",strokeLinecap:"round"}):n.createElement("path",{d:"M13,"+(19+t.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:t.faceColor}),n.createElement("rect",{x:14-t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}),n.createElement("rect",{x:20+t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}))))};var E=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return f(r+i,t,l)}))}(e.name,e.colors),r=e.name.replace(/\s/g,"");return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__sunset",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__sunset)"},n.createElement("path",{fill:"url(#gradient_paint0_linear_"+r+")",d:"M0 0h80v40H0z"}),n.createElement("path",{fill:"url(#gradient_paint1_linear_"+r+")",d:"M0 40h80v40H0z"})),n.createElement("defs",null,n.createElement("linearGradient",{id:"gradient_paint0_linear_"+r,x1:40,y1:0,x2:40,y2:40,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:t[0]}),n.createElement("stop",{offset:1,stopColor:t[1]})),n.createElement("linearGradient",{id:"gradient_paint1_linear_"+r,x1:40,y1:40,x2:40,y2:80,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:t[2]}),n.createElement("stop",{offset:1,stopColor:t[3]}))))};var p=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:3},(function(e,i){return {color:f(r+i,t,l),translateX:m(r*(i+1),8,1),translateY:m(r*(i+1),8,2),scale:1.2+m(r*(i+1),4)/10,rotate:m(r*(i+1),360,1)}}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__marble",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__marble)"},n.createElement("rect",{width:80,height:80,fill:t[0].color}),n.createElement("path",{filter:"url(#prefix__filter0_f)",d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40) scale("+t[2].scale+")"}),n.createElement("path",{filter:"url(#prefix__filter0_f)",style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:t[2].color,transform:"translate("+t[2].translateX+" "+t[2].translateY+") rotate("+t[2].rotate+" 40 40) scale("+t[2].scale+")"})),n.createElement("defs",null,n.createElement("filter",{id:"prefix__filter0_f",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n.createElement("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"}))))},y=["pixel","bauhaus","ring","beam","sunset","marble"],x={geometric:"beam",abstract:"bauhaus"},v=function(e){var t=e.variant,r=void 0===t?"marble":t,n=e.colors,h=void 0===n?["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]:n,o=e.name,s=void 0===o?"Clara Barton":o,m=e.square,f=void 0!==m&&m,v=e.title,b=void 0!==v&&v,_=e.size,F=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));}));}return e}({colors:h,name:s,title:b,size:void 0===_?40:_,square:f},a(e,["variant","colors","name","square","title","size"]));return {pixel:c.a.createElement(g,F),bauhaus:c.a.createElement(u,F),ring:c.a.createElement(d,F),beam:c.a.createElement(w,F),sunset:c.a.createElement(E,F),marble:c.a.createElement(p,F)}[Object.keys(x).includes(r)?x[r]:y.includes(r)?r:"marble"]};t.default=v;}])}));
18964
20697
  } (build));
18965
20698
 
18966
- var FallbackAvatar = /*@__PURE__*/getDefaultExportFromCjs(build.exports);
20699
+ var FallbackAvatar = /*@__PURE__*/getDefaultExportFromCjs$1(build.exports);
18967
20700
 
18968
20701
  var COLOR_PALLETE = ["#ffb5a7", "#fcd5ce", "#f8edeb", "#f9dcc4", "#fec89a"];
18969
20702
  var AVATAR_VARIANT = "beam";
@@ -18992,7 +20725,7 @@ var Avatar = function Avatar(_ref) {
18992
20725
  tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
18993
20726
  otherProps = _objectWithoutProperties$1(_ref, _excluded$y);
18994
20727
  var _useState = useState(false),
18995
- _useState2 = _slicedToArray$2(_useState, 2),
20728
+ _useState2 = _slicedToArray$3(_useState, 2),
18996
20729
  isLoadingFailed = _useState2[0],
18997
20730
  setIsLoadingFailed = _useState2[1];
18998
20731
  var _user$name = user.name,
@@ -20772,7 +22505,7 @@ var ColorPicker = function ColorPicker(_ref) {
20772
22505
  _ref$showPicker = _ref.showPicker,
20773
22506
  showPicker = _ref$showPicker === void 0 ? true : _ref$showPicker;
20774
22507
  var _useState = useState(color),
20775
- _useState2 = _slicedToArray$2(_useState, 2),
22508
+ _useState2 = _slicedToArray$3(_useState, 2),
20776
22509
  colorInternal = _useState2[0],
20777
22510
  setColorInternal = _useState2[1];
20778
22511
  var isInputChanged = useRef(false);
@@ -21087,7 +22820,7 @@ DatePicker.displayName = "DatePicker";
21087
22820
  var customParseFormat$1 = {exports: {}};
21088
22821
 
21089
22822
  (function (module, exports) {
21090
- !function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
22823
+ !function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
21091
22824
  } (customParseFormat$1));
21092
22825
 
21093
22826
  var customParseFormat = customParseFormat$1.exports;
@@ -21118,15 +22851,15 @@ var DateTimePicker = function DateTimePicker(_ref) {
21118
22851
  required = _ref$required === void 0 ? false : _ref$required,
21119
22852
  otherProps = _objectWithoutProperties$1(_ref, _excluded$t);
21120
22853
  var _React$useState = React__default.useState(false),
21121
- _React$useState2 = _slicedToArray$2(_React$useState, 2),
22854
+ _React$useState2 = _slicedToArray$3(_React$useState, 2),
21122
22855
  open = _React$useState2[0],
21123
22856
  setOpen = _React$useState2[1];
21124
22857
  var _useState = useState(),
21125
- _useState2 = _slicedToArray$2(_useState, 2),
22858
+ _useState2 = _slicedToArray$3(_useState, 2),
21126
22859
  date = _useState2[0],
21127
22860
  setDate = _useState2[1];
21128
22861
  var _useState3 = useState(),
21129
- _useState4 = _slicedToArray$2(_useState3, 2),
22862
+ _useState4 = _slicedToArray$3(_useState3, 2),
21130
22863
  time = _useState4[0],
21131
22864
  setTime = _useState4[1];
21132
22865
  var timeRef = React__default.useRef(null);
@@ -21228,7 +22961,7 @@ var Input$3 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
21228
22961
  disableTrimOnBlur = _ref$disableTrimOnBlu === void 0 ? false : _ref$disableTrimOnBlu,
21229
22962
  otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
21230
22963
  var _useState = useState(otherProps.value),
21231
- _useState2 = _slicedToArray$2(_useState, 2),
22964
+ _useState2 = _slicedToArray$3(_useState, 2),
21232
22965
  valueInternal = _useState2[0],
21233
22966
  setValueInternal = _useState2[1];
21234
22967
  var id = useId(otherProps.id);
@@ -21332,7 +23065,7 @@ var Kbd = function Kbd(_ref) {
21332
23065
  };
21333
23066
 
21334
23067
  function _arrayWithoutHoles$1(arr) {
21335
- if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
23068
+ if (Array.isArray(arr)) return _arrayLikeToArray$3(arr);
21336
23069
  }
21337
23070
 
21338
23071
  function _iterableToArray$1(iter) {
@@ -21344,7 +23077,7 @@ function _nonIterableSpread$1() {
21344
23077
  }
21345
23078
 
21346
23079
  function _toConsumableArray$1(arr) {
21347
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$1();
23080
+ return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$1();
21348
23081
  }
21349
23082
 
21350
23083
  function _extends$2() {
@@ -27986,7 +29719,7 @@ var CreatableSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
27986
29719
  });
27987
29720
 
27988
29721
  function _toArray(arr) {
27989
- return _arrayWithHoles$2(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableRest$2();
29722
+ return _arrayWithHoles$3(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableRest$3();
27990
29723
  }
27991
29724
 
27992
29725
  var StateManagedSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
@@ -28228,11 +29961,11 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
28228
29961
  visibleEmailsCount = _ref$visibleEmailsCou === void 0 ? 3 : _ref$visibleEmailsCou,
28229
29962
  otherProps = _objectWithoutProperties$1(_ref, _excluded$k);
28230
29963
  var _useState = useState(""),
28231
- _useState2 = _slicedToArray$2(_useState, 2),
29964
+ _useState2 = _slicedToArray$3(_useState, 2),
28232
29965
  inputValue = _useState2[0],
28233
29966
  setInputValue = _useState2[1];
28234
29967
  var _useState3 = useState(false),
28235
- _useState4 = _slicedToArray$2(_useState3, 2),
29968
+ _useState4 = _slicedToArray$3(_useState3, 2),
28236
29969
  isFocused = _useState4[0],
28237
29970
  setIsFocused = _useState4[1];
28238
29971
  var isCounterVisible = !!counter && (!counter.startsFrom || getValidEmailsCount(value) >= counter.startsFrom);
@@ -28303,10 +30036,9 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
28303
30036
  required: required,
28304
30037
  className: "neeto-ui-email-input__label",
28305
30038
  "data-cy": "".concat(hyphenize(label), "-input-label")
28306
- }, labelProps), label), isCounterVisible && /*#__PURE__*/React__default.createElement(Typography, {
30039
+ }, labelProps), label), isCounterVisible && /*#__PURE__*/React__default.createElement("p", {
28307
30040
  className: "neeto-ui-email-input__counter",
28308
- "data-cy": "".concat(hyphenize(label), "-email-counter"),
28309
- style: "body2"
30041
+ "data-cy": "".concat(hyphenize(label), "-email-counter")
28310
30042
  }, getValidEmailsCount(value), " ", counter.label ? counter.label : renderDefaultText(getValidEmailsCount(value)))), /*#__PURE__*/React__default.createElement(CreatableSelect, _extends$4({
28311
30043
  isMulti: true,
28312
30044
  required: true,
@@ -28340,20 +30072,15 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
28340
30072
  visibleEmailsCount: visibleEmailsCount
28341
30073
  }, !isOptionsPresent && {
28342
30074
  menuIsOpen: false
28343
- }), otherProps), overrideProps))), !!error && /*#__PURE__*/React__default.createElement(Typography, {
30075
+ }), otherProps), overrideProps))), !!error && /*#__PURE__*/React__default.createElement("p", {
28344
30076
  className: "neeto-ui-input__error",
28345
- "data-cy": "".concat(hyphenize(label), "-input-error"),
28346
- style: "body3"
28347
- }, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default.createElement(Typography, {
28348
- className: "cursor-pointer",
28349
- component: "span",
28350
- style: "body3",
28351
- weight: "semibold",
30077
+ "data-cy": "".concat(hyphenize(label), "-input-error")
30078
+ }, error, isFilterEmailsLinkVisible && /*#__PURE__*/React__default.createElement("span", {
30079
+ className: "neeto-ui-font-semibold cursor-pointer",
28352
30080
  onClick: handleFilterEmails
28353
- }, "\xA0", filterInvalidEmails.label ? filterInvalidEmails.label : "Click here to remove invalid emails.")), !!helpText && /*#__PURE__*/React__default.createElement(Typography, {
30081
+ }, "\xA0", filterInvalidEmails.label ? filterInvalidEmails.label : "Click here to remove invalid emails.")), !!helpText && /*#__PURE__*/React__default.createElement("p", {
28354
30082
  className: "neeto-ui-input__help-text",
28355
- "data-cy": "".concat(hyphenize(label), "-input-help"),
28356
- style: "body3"
30083
+ "data-cy": "".concat(hyphenize(label), "-input-help")
28357
30084
  }, helpText));
28358
30085
  });
28359
30086
  MultiEmailInput.displayName = "MultiEmailInput";
@@ -28409,7 +30136,7 @@ var NoData = function NoData(_ref) {
28409
30136
  lineHeight: "normal",
28410
30137
  style: "body2"
28411
30138
  }, helpText), (hasPrimaryButtonProps || hasSecondaryButtonProps) && /*#__PURE__*/React__default.createElement("div", {
28412
- className: "neeto-ui-no-data__action-block neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
30139
+ className: "neeto-ui-no-data__action-block"
28413
30140
  }, hasPrimaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$4({
28414
30141
  "data-cy": "no-data-primary-button"
28415
30142
  }, primaryButtonProps)), showButtonSeparator && /*#__PURE__*/React__default.createElement(Typography, {
@@ -28644,7 +30371,7 @@ var Pane = function Pane(_ref) {
28644
30371
  finalFocusRef = _ref.finalFocusRef,
28645
30372
  otherProps = _objectWithoutProperties$1(_ref, _excluded$i);
28646
30373
  var _useState = useState(false),
28647
- _useState2 = _slicedToArray$2(_useState, 2),
30374
+ _useState2 = _slicedToArray$3(_useState, 2),
28648
30375
  hasTransitionCompleted = _useState2[0],
28649
30376
  setHasTransitionCompleted = _useState2[1];
28650
30377
  var paneWrapper = useRef(null);
@@ -28787,7 +30514,7 @@ var Radio = function Radio(_ref) {
28787
30514
  labelProps = _ref.labelProps,
28788
30515
  props = _objectWithoutProperties$1(_ref, _excluded$f);
28789
30516
  var _useState = useState(""),
28790
- _useState2 = _slicedToArray$2(_useState, 2),
30517
+ _useState2 = _slicedToArray$3(_useState, 2),
28791
30518
  internalValue = _useState2[0],
28792
30519
  setInternalValue = _useState2[1];
28793
30520
  var id = useId(props.id);
@@ -29317,16 +31044,14 @@ var Slider = function Slider(_ref) {
29317
31044
  value: value
29318
31045
  }, otherProps), {}, {
29319
31046
  id: id
29320
- }))), !!error && /*#__PURE__*/React__default.createElement(Typography, {
31047
+ }))), !!error && /*#__PURE__*/React__default.createElement("p", {
29321
31048
  className: "neeto-ui-input__error",
29322
31049
  "data-cy": "".concat(hyphenize(label), "-input-error"),
29323
- id: errorId,
29324
- style: "body3"
29325
- }, error), helpText && /*#__PURE__*/React__default.createElement(Typography, {
31050
+ id: errorId
31051
+ }, error), helpText && /*#__PURE__*/React__default.createElement("p", {
29326
31052
  className: "neeto-ui-input__help-text",
29327
31053
  "data-cy": "".concat(hyphenize(label), "-input-help"),
29328
- id: helpTextId,
29329
- style: "body3"
31054
+ id: helpTextId
29330
31055
  }, helpText)));
29331
31056
  };
29332
31057
 
@@ -33842,22 +35567,22 @@ var Table = function Table(_ref) {
33842
35567
  components = _ref$components === void 0 ? {} : _ref$components,
33843
35568
  otherProps = _objectWithoutProperties$1(_ref, _excluded$5);
33844
35569
  var _useState = useState(null),
33845
- _useState2 = _slicedToArray$2(_useState, 2),
35570
+ _useState2 = _slicedToArray$3(_useState, 2),
33846
35571
  containerHeight = _useState2[0],
33847
35572
  setContainerHeight = _useState2[1];
33848
35573
  var _useState3 = useState(TABLE_DEFAULT_HEADER_HEIGHT),
33849
- _useState4 = _slicedToArray$2(_useState3, 2),
35574
+ _useState4 = _slicedToArray$3(_useState3, 2),
33850
35575
  headerHeight = _useState4[0],
33851
35576
  setHeaderHeight = _useState4[1];
33852
35577
  var _useState5 = useState(columnData),
33853
- _useState6 = _slicedToArray$2(_useState5, 2),
35578
+ _useState6 = _slicedToArray$3(_useState5, 2),
33854
35579
  columns = _useState6[0],
33855
35580
  setColumns = _useState6[1];
33856
35581
  var isDefaultPageChangeHandler = handlePageChange === noop$3;
33857
35582
  var history = useHistory();
33858
35583
  var headerRef = useRef();
33859
35584
  var resizeObserver = useRef(new ResizeObserver(function (_ref2) {
33860
- var _ref3 = _slicedToArray$2(_ref2, 1),
35585
+ var _ref3 = _slicedToArray$3(_ref2, 1),
33861
35586
  entry = _ref3[0];
33862
35587
  return setContainerHeight(entry.contentRect.height);
33863
35588
  }));
@@ -34111,7 +35836,7 @@ var Textarea = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
34111
35836
  labelProps = _ref.labelProps,
34112
35837
  otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
34113
35838
  var _useState = useState(""),
34114
- _useState2 = _slicedToArray$2(_useState, 2),
35839
+ _useState2 = _slicedToArray$3(_useState, 2),
34115
35840
  valueInternal = _useState2[0],
34116
35841
  setValueInternal = _useState2[1];
34117
35842
  var value = (_ref2 = (_otherProps$value = otherProps.value) !== null && _otherProps$value !== void 0 ? _otherProps$value : valueInternal) !== null && _ref2 !== void 0 ? _ref2 : "";
@@ -34642,7 +36367,7 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
34642
36367
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
34643
36368
 
34644
36369
  /** Detect free variable `global` from Node.js. */
34645
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
36370
+ var freeGlobal = typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
34646
36371
 
34647
36372
  /** Detect free variable `self`. */
34648
36373
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
@@ -36893,7 +38618,7 @@ var HoverIcon = function HoverIcon(_ref) {
36893
38618
  var _ref$time = _ref.time,
36894
38619
  time = _ref$time === void 0 ? false : _ref$time;
36895
38620
  var _useState = useState(false),
36896
- _useState2 = _slicedToArray$2(_useState, 2),
38621
+ _useState2 = _slicedToArray$3(_useState, 2),
36897
38622
  hovered = _useState2[0],
36898
38623
  setHovered = _useState2[1];
36899
38624
  return /*#__PURE__*/React__default.createElement("div", {
@@ -36937,7 +38662,7 @@ var TimePickerInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
36937
38662
  error = _ref$error === void 0 ? "" : _ref$error,
36938
38663
  otherProps = _objectWithoutProperties$1(_ref, _excluded$2);
36939
38664
  var _useState = useState(value),
36940
- _useState2 = _slicedToArray$2(_useState, 2),
38665
+ _useState2 = _slicedToArray$3(_useState, 2),
36941
38666
  time = _useState2[0],
36942
38667
  setTime = _useState2[1];
36943
38668
  var id = useId(otherProps.id);
@@ -38820,7 +40545,7 @@ var TOAST_ICON = {
38820
40545
  };
38821
40546
  var toastrList = new UniqueArray();
38822
40547
  var parseToastrConfig = function parseToastrConfig(config) {
38823
- if (_typeof$6(config[0]) === "object") {
40548
+ if (_typeof$7(config[0]) === "object") {
38824
40549
  var _config$ = config[0],
38825
40550
  _buttonLabel = _config$.buttonLabel,
38826
40551
  _onClick = _config$.onClick,
@@ -38831,7 +40556,7 @@ var parseToastrConfig = function parseToastrConfig(config) {
38831
40556
  customConfig: _customConfig
38832
40557
  };
38833
40558
  }
38834
- var _config = _slicedToArray$2(config, 3),
40559
+ var _config = _slicedToArray$3(config, 3),
38835
40560
  buttonLabel = _config[0],
38836
40561
  onClick = _config[1],
38837
40562
  customConfig = _config[2];
@@ -38844,9 +40569,9 @@ var parseToastrConfig = function parseToastrConfig(config) {
38844
40569
  var getToastrMessage = function getToastrMessage(message) {
38845
40570
  if ((message === null || message === void 0 ? void 0 : message.noticeCode) === "custom_message" && "customMessage" in message) {
38846
40571
  return message.customMessage;
38847
- } else if (_typeof$6(message) === "object" && message.noticeCode) {
40572
+ } else if (_typeof$7(message) === "object" && message.noticeCode) {
38848
40573
  return t$1(message.noticeCode, message);
38849
- } else if (_typeof$6(message) === "object" && message.notice) {
40574
+ } else if (_typeof$7(message) === "object" && message.notice) {
38850
40575
  return message.notice;
38851
40576
  }
38852
40577
  return message;
@@ -38926,13 +40651,13 @@ var isError = function isError(e) {
38926
40651
  return e && e.stack && e.message;
38927
40652
  };
38928
40653
  var isAxiosError = function isAxiosError(e) {
38929
- return _typeof$6(e) === "object" && e.isAxiosError === true;
40654
+ return _typeof$7(e) === "object" && e.isAxiosError === true;
38930
40655
  };
38931
40656
  var isString = function isString(s) {
38932
40657
  return typeof s === "string" || s instanceof String;
38933
40658
  };
38934
40659
  var isErrorCodeObject = function isErrorCodeObject(e) {
38935
- return _typeof$6(e) === "object" && "key" in e && "context" in e;
40660
+ return _typeof$7(e) === "object" && "key" in e && "context" in e;
38936
40661
  };
38937
40662
  var errorCodeTranslation = function errorCodeTranslation(errorCode) {
38938
40663
  if (typeof errorCode === "string") {
@@ -39084,24 +40809,25 @@ var TreeSelect = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
39084
40809
  }, /*#__PURE__*/React__default.createElement("div", {
39085
40810
  className: "neeto-ui-input__wrapper"
39086
40811
  }, label && /*#__PURE__*/React__default.createElement(Label, {
39087
- "data-testid": "treeselect-label",
39088
- required: required
40812
+ required: required,
40813
+ "data-testid": "treeselect-label"
39089
40814
  }, label), /*#__PURE__*/React__default.createElement(_TreeSelect, _extends$4({
39090
40815
  allowClear: allowClear,
39091
- "data-cy": "neeto-ui-tree-select-wrapper",
39092
40816
  disabled: disabled,
39093
- dropdownStyle: {
39094
- zIndex: 100000
39095
- },
39096
40817
  fieldNames: fieldNames,
40818
+ onChange: onChange,
39097
40819
  placeholder: placeholder,
39098
- popupClassName: "neeto-ui-tree-select-dropdown",
39099
40820
  ref: ref,
39100
40821
  showSearch: showSearch,
39101
40822
  size: size,
39102
- suffixIcon: /*#__PURE__*/React__default.createElement(SuffixIcon, null),
39103
40823
  treeData: treeData,
39104
40824
  treeDataSimpleMode: treeDataSimpleMode,
40825
+ "data-cy": "neeto-ui-tree-select-wrapper",
40826
+ dropdownStyle: {
40827
+ zIndex: 100000
40828
+ },
40829
+ popupClassName: "neeto-ui-tree-select-dropdown",
40830
+ suffixIcon: /*#__PURE__*/React__default.createElement(SuffixIcon, null),
39105
40831
  treeNodeFilterProp: (_fieldNames$label = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) !== null && _fieldNames$label !== void 0 ? _fieldNames$label : "label",
39106
40832
  value: value || undefined,
39107
40833
  className: classnames$1("neeto-ui-tree-select__wrapper", className, {
@@ -39115,12 +40841,10 @@ var TreeSelect = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
39115
40841
  }, "No options"),
39116
40842
  switcherIcon: function switcherIcon(props) {
39117
40843
  return /*#__PURE__*/React__default.createElement("div", props, /*#__PURE__*/React__default.createElement(SwitcherIcon, null));
39118
- },
39119
- onChange: onChange
39120
- }, otherProps)), error && /*#__PURE__*/React__default.createElement(Typography, {
40844
+ }
40845
+ }, otherProps)), error && /*#__PURE__*/React__default.createElement("p", {
39121
40846
  className: "neeto-ui-input__error",
39122
- "data-testid": "treeselect-error",
39123
- style: "body3"
40847
+ "data-testid": "treeselect-error"
39124
40848
  }, error)));
39125
40849
  });
39126
40850
  TreeSelect.displayName = "TreeSelect";