prettier 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -704,7 +704,724 @@ var css$1 = createCommonjsModule(function (module, exports) {
704
704
  }
705
705
  });
706
706
 
707
- /*istanbul ignore start*/
707
+ var check = function (it) {
708
+ return it && it.Math == Math && it;
709
+ };
710
+
711
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
712
+ var global$2 =
713
+ // eslint-disable-next-line es/no-global-this -- safe
714
+ check(typeof globalThis == 'object' && globalThis) ||
715
+ check(typeof window == 'object' && window) ||
716
+ // eslint-disable-next-line no-restricted-globals -- safe
717
+ check(typeof self == 'object' && self) ||
718
+ check(typeof global$2 == 'object' && global$2) ||
719
+ // eslint-disable-next-line no-new-func -- fallback
720
+ (function () { return this; })() || Function('return this')();
721
+
722
+ var fails = function (exec) {
723
+ try {
724
+ return !!exec();
725
+ } catch (error) {
726
+ return true;
727
+ }
728
+ };
729
+
730
+ // Detect IE8's incomplete defineProperty implementation
731
+ var descriptors$1 = !fails(function () {
732
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
733
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
734
+ });
735
+
736
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
737
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
738
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
739
+
740
+ // Nashorn ~ JDK8 bug
741
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
742
+
743
+ // `Object.prototype.propertyIsEnumerable` method implementation
744
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
745
+ var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
746
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
747
+ return !!descriptor && descriptor.enumerable;
748
+ } : $propertyIsEnumerable;
749
+
750
+ var objectPropertyIsEnumerable = {
751
+ f: f$4
752
+ };
753
+
754
+ var createPropertyDescriptor = function (bitmap, value) {
755
+ return {
756
+ enumerable: !(bitmap & 1),
757
+ configurable: !(bitmap & 2),
758
+ writable: !(bitmap & 4),
759
+ value: value
760
+ };
761
+ };
762
+
763
+ var toString$1 = {}.toString;
764
+
765
+ var classofRaw = function (it) {
766
+ return toString$1.call(it).slice(8, -1);
767
+ };
768
+
769
+ var split = ''.split;
770
+
771
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
772
+ var indexedObject = fails(function () {
773
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
774
+ // eslint-disable-next-line no-prototype-builtins -- safe
775
+ return !Object('z').propertyIsEnumerable(0);
776
+ }) ? function (it) {
777
+ return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
778
+ } : Object;
779
+
780
+ // `RequireObjectCoercible` abstract operation
781
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
782
+ var requireObjectCoercible = function (it) {
783
+ if (it == undefined) throw TypeError("Can't call method on " + it);
784
+ return it;
785
+ };
786
+
787
+ // toObject with fallback for non-array-like ES3 strings
788
+
789
+
790
+
791
+ var toIndexedObject = function (it) {
792
+ return indexedObject(requireObjectCoercible(it));
793
+ };
794
+
795
+ var isObject$3 = function (it) {
796
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
797
+ };
798
+
799
+ // `ToPrimitive` abstract operation
800
+ // https://tc39.es/ecma262/#sec-toprimitive
801
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
802
+ // and the second argument - flag - preferred type is a string
803
+ var toPrimitive = function (input, PREFERRED_STRING) {
804
+ if (!isObject$3(input)) return input;
805
+ var fn, val;
806
+ if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$3(val = fn.call(input))) return val;
807
+ if (typeof (fn = input.valueOf) == 'function' && !isObject$3(val = fn.call(input))) return val;
808
+ if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$3(val = fn.call(input))) return val;
809
+ throw TypeError("Can't convert object to primitive value");
810
+ };
811
+
812
+ // `ToObject` abstract operation
813
+ // https://tc39.es/ecma262/#sec-toobject
814
+ var toObject = function (argument) {
815
+ return Object(requireObjectCoercible(argument));
816
+ };
817
+
818
+ var hasOwnProperty$b = {}.hasOwnProperty;
819
+
820
+ var has$1 = Object.hasOwn || function hasOwn(it, key) {
821
+ return hasOwnProperty$b.call(toObject(it), key);
822
+ };
823
+
824
+ var document = global$2.document;
825
+ // typeof document.createElement is 'object' in old IE
826
+ var EXISTS = isObject$3(document) && isObject$3(document.createElement);
827
+
828
+ var documentCreateElement = function (it) {
829
+ return EXISTS ? document.createElement(it) : {};
830
+ };
831
+
832
+ // Thank's IE8 for his funny defineProperty
833
+ var ie8DomDefine = !descriptors$1 && !fails(function () {
834
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
835
+ return Object.defineProperty(documentCreateElement('div'), 'a', {
836
+ get: function () { return 7; }
837
+ }).a != 7;
838
+ });
839
+
840
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
841
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
842
+
843
+ // `Object.getOwnPropertyDescriptor` method
844
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
845
+ var f$3 = descriptors$1 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
846
+ O = toIndexedObject(O);
847
+ P = toPrimitive(P, true);
848
+ if (ie8DomDefine) try {
849
+ return $getOwnPropertyDescriptor(O, P);
850
+ } catch (error) { /* empty */ }
851
+ if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
852
+ };
853
+
854
+ var objectGetOwnPropertyDescriptor = {
855
+ f: f$3
856
+ };
857
+
858
+ var anObject = function (it) {
859
+ if (!isObject$3(it)) {
860
+ throw TypeError(String(it) + ' is not an object');
861
+ } return it;
862
+ };
863
+
864
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
865
+ var $defineProperty = Object.defineProperty;
866
+
867
+ // `Object.defineProperty` method
868
+ // https://tc39.es/ecma262/#sec-object.defineproperty
869
+ var f$2 = descriptors$1 ? $defineProperty : function defineProperty(O, P, Attributes) {
870
+ anObject(O);
871
+ P = toPrimitive(P, true);
872
+ anObject(Attributes);
873
+ if (ie8DomDefine) try {
874
+ return $defineProperty(O, P, Attributes);
875
+ } catch (error) { /* empty */ }
876
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
877
+ if ('value' in Attributes) O[P] = Attributes.value;
878
+ return O;
879
+ };
880
+
881
+ var objectDefineProperty = {
882
+ f: f$2
883
+ };
884
+
885
+ var createNonEnumerableProperty = descriptors$1 ? function (object, key, value) {
886
+ return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
887
+ } : function (object, key, value) {
888
+ object[key] = value;
889
+ return object;
890
+ };
891
+
892
+ var setGlobal = function (key, value) {
893
+ try {
894
+ createNonEnumerableProperty(global$2, key, value);
895
+ } catch (error) {
896
+ global$2[key] = value;
897
+ } return value;
898
+ };
899
+
900
+ var SHARED = '__core-js_shared__';
901
+ var store$1 = global$2[SHARED] || setGlobal(SHARED, {});
902
+
903
+ var sharedStore = store$1;
904
+
905
+ var functionToString = Function.toString;
906
+
907
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
908
+ if (typeof sharedStore.inspectSource != 'function') {
909
+ sharedStore.inspectSource = function (it) {
910
+ return functionToString.call(it);
911
+ };
912
+ }
913
+
914
+ var inspectSource = sharedStore.inspectSource;
915
+
916
+ var WeakMap$3 = global$2.WeakMap;
917
+
918
+ var nativeWeakMap = typeof WeakMap$3 === 'function' && /native code/.test(inspectSource(WeakMap$3));
919
+
920
+ var shared = createCommonjsModule(function (module) {
921
+ (module.exports = function (key, value) {
922
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
923
+ })('versions', []).push({
924
+ version: '3.14.0',
925
+ mode: 'global',
926
+ copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
927
+ });
928
+ });
929
+
930
+ var id = 0;
931
+ var postfix = Math.random();
932
+
933
+ var uid$1 = function (key) {
934
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
935
+ };
936
+
937
+ var keys$1 = shared('keys');
938
+
939
+ var sharedKey = function (key) {
940
+ return keys$1[key] || (keys$1[key] = uid$1(key));
941
+ };
942
+
943
+ var hiddenKeys$1 = {};
944
+
945
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
946
+ var WeakMap$2 = global$2.WeakMap;
947
+ var set$1, get$2, has;
948
+
949
+ var enforce = function (it) {
950
+ return has(it) ? get$2(it) : set$1(it, {});
951
+ };
952
+
953
+ var getterFor = function (TYPE) {
954
+ return function (it) {
955
+ var state;
956
+ if (!isObject$3(it) || (state = get$2(it)).type !== TYPE) {
957
+ throw TypeError('Incompatible receiver, ' + TYPE + ' required');
958
+ } return state;
959
+ };
960
+ };
961
+
962
+ if (nativeWeakMap || sharedStore.state) {
963
+ var store = sharedStore.state || (sharedStore.state = new WeakMap$2());
964
+ var wmget = store.get;
965
+ var wmhas = store.has;
966
+ var wmset = store.set;
967
+ set$1 = function (it, metadata) {
968
+ if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
969
+ metadata.facade = it;
970
+ wmset.call(store, it, metadata);
971
+ return metadata;
972
+ };
973
+ get$2 = function (it) {
974
+ return wmget.call(store, it) || {};
975
+ };
976
+ has = function (it) {
977
+ return wmhas.call(store, it);
978
+ };
979
+ } else {
980
+ var STATE = sharedKey('state');
981
+ hiddenKeys$1[STATE] = true;
982
+ set$1 = function (it, metadata) {
983
+ if (has$1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
984
+ metadata.facade = it;
985
+ createNonEnumerableProperty(it, STATE, metadata);
986
+ return metadata;
987
+ };
988
+ get$2 = function (it) {
989
+ return has$1(it, STATE) ? it[STATE] : {};
990
+ };
991
+ has = function (it) {
992
+ return has$1(it, STATE);
993
+ };
994
+ }
995
+
996
+ var internalState = {
997
+ set: set$1,
998
+ get: get$2,
999
+ has: has,
1000
+ enforce: enforce,
1001
+ getterFor: getterFor
1002
+ };
1003
+
1004
+ var redefine = createCommonjsModule(function (module) {
1005
+ var getInternalState = internalState.get;
1006
+ var enforceInternalState = internalState.enforce;
1007
+ var TEMPLATE = String(String).split('String');
1008
+
1009
+ (module.exports = function (O, key, value, options) {
1010
+ var unsafe = options ? !!options.unsafe : false;
1011
+ var simple = options ? !!options.enumerable : false;
1012
+ var noTargetGet = options ? !!options.noTargetGet : false;
1013
+ var state;
1014
+ if (typeof value == 'function') {
1015
+ if (typeof key == 'string' && !has$1(value, 'name')) {
1016
+ createNonEnumerableProperty(value, 'name', key);
1017
+ }
1018
+ state = enforceInternalState(value);
1019
+ if (!state.source) {
1020
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
1021
+ }
1022
+ }
1023
+ if (O === global$2) {
1024
+ if (simple) O[key] = value;
1025
+ else setGlobal(key, value);
1026
+ return;
1027
+ } else if (!unsafe) {
1028
+ delete O[key];
1029
+ } else if (!noTargetGet && O[key]) {
1030
+ simple = true;
1031
+ }
1032
+ if (simple) O[key] = value;
1033
+ else createNonEnumerableProperty(O, key, value);
1034
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1035
+ })(Function.prototype, 'toString', function toString() {
1036
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
1037
+ });
1038
+ });
1039
+
1040
+ var path$4 = global$2;
1041
+
1042
+ var aFunction$1 = function (variable) {
1043
+ return typeof variable == 'function' ? variable : undefined;
1044
+ };
1045
+
1046
+ var getBuiltIn = function (namespace, method) {
1047
+ return arguments.length < 2 ? aFunction$1(path$4[namespace]) || aFunction$1(global$2[namespace])
1048
+ : path$4[namespace] && path$4[namespace][method] || global$2[namespace] && global$2[namespace][method];
1049
+ };
1050
+
1051
+ var ceil = Math.ceil;
1052
+ var floor$1 = Math.floor;
1053
+
1054
+ // `ToInteger` abstract operation
1055
+ // https://tc39.es/ecma262/#sec-tointeger
1056
+ var toInteger = function (argument) {
1057
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
1058
+ };
1059
+
1060
+ var min$1 = Math.min;
1061
+
1062
+ // `ToLength` abstract operation
1063
+ // https://tc39.es/ecma262/#sec-tolength
1064
+ var toLength = function (argument) {
1065
+ return argument > 0 ? min$1(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1066
+ };
1067
+
1068
+ var max = Math.max;
1069
+ var min = Math.min;
1070
+
1071
+ // Helper for a popular repeating case of the spec:
1072
+ // Let integer be ? ToInteger(index).
1073
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1074
+ var toAbsoluteIndex = function (index, length) {
1075
+ var integer = toInteger(index);
1076
+ return integer < 0 ? max(integer + length, 0) : min(integer, length);
1077
+ };
1078
+
1079
+ // `Array.prototype.{ indexOf, includes }` methods implementation
1080
+ var createMethod = function (IS_INCLUDES) {
1081
+ return function ($this, el, fromIndex) {
1082
+ var O = toIndexedObject($this);
1083
+ var length = toLength(O.length);
1084
+ var index = toAbsoluteIndex(fromIndex, length);
1085
+ var value;
1086
+ // Array#includes uses SameValueZero equality algorithm
1087
+ // eslint-disable-next-line no-self-compare -- NaN check
1088
+ if (IS_INCLUDES && el != el) while (length > index) {
1089
+ value = O[index++];
1090
+ // eslint-disable-next-line no-self-compare -- NaN check
1091
+ if (value != value) return true;
1092
+ // Array#indexOf ignores holes, Array#includes - not
1093
+ } else for (;length > index; index++) {
1094
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1095
+ } return !IS_INCLUDES && -1;
1096
+ };
1097
+ };
1098
+
1099
+ var arrayIncludes$1 = {
1100
+ // `Array.prototype.includes` method
1101
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
1102
+ includes: createMethod(true),
1103
+ // `Array.prototype.indexOf` method
1104
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
1105
+ indexOf: createMethod(false)
1106
+ };
1107
+
1108
+ var indexOf = arrayIncludes$1.indexOf;
1109
+
1110
+
1111
+ var objectKeysInternal = function (object, names) {
1112
+ var O = toIndexedObject(object);
1113
+ var i = 0;
1114
+ var result = [];
1115
+ var key;
1116
+ for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
1117
+ // Don't enum bug & hidden keys
1118
+ while (names.length > i) if (has$1(O, key = names[i++])) {
1119
+ ~indexOf(result, key) || result.push(key);
1120
+ }
1121
+ return result;
1122
+ };
1123
+
1124
+ // IE8- don't enum bug keys
1125
+ var enumBugKeys = [
1126
+ 'constructor',
1127
+ 'hasOwnProperty',
1128
+ 'isPrototypeOf',
1129
+ 'propertyIsEnumerable',
1130
+ 'toLocaleString',
1131
+ 'toString',
1132
+ 'valueOf'
1133
+ ];
1134
+
1135
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1136
+
1137
+ // `Object.getOwnPropertyNames` method
1138
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1139
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1140
+ var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1141
+ return objectKeysInternal(O, hiddenKeys);
1142
+ };
1143
+
1144
+ var objectGetOwnPropertyNames = {
1145
+ f: f$1
1146
+ };
1147
+
1148
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1149
+ var f = Object.getOwnPropertySymbols;
1150
+
1151
+ var objectGetOwnPropertySymbols = {
1152
+ f: f
1153
+ };
1154
+
1155
+ // all object keys, includes non-enumerable and symbols
1156
+ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1157
+ var keys = objectGetOwnPropertyNames.f(anObject(it));
1158
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
1159
+ return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
1160
+ };
1161
+
1162
+ var copyConstructorProperties = function (target, source) {
1163
+ var keys = ownKeys(source);
1164
+ var defineProperty = objectDefineProperty.f;
1165
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1166
+ for (var i = 0; i < keys.length; i++) {
1167
+ var key = keys[i];
1168
+ if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1169
+ }
1170
+ };
1171
+
1172
+ var replacement = /#|\.prototype\./;
1173
+
1174
+ var isForced = function (feature, detection) {
1175
+ var value = data$3[normalize$3(feature)];
1176
+ return value == POLYFILL ? true
1177
+ : value == NATIVE ? false
1178
+ : typeof detection == 'function' ? fails(detection)
1179
+ : !!detection;
1180
+ };
1181
+
1182
+ var normalize$3 = isForced.normalize = function (string) {
1183
+ return String(string).replace(replacement, '.').toLowerCase();
1184
+ };
1185
+
1186
+ var data$3 = isForced.data = {};
1187
+ var NATIVE = isForced.NATIVE = 'N';
1188
+ var POLYFILL = isForced.POLYFILL = 'P';
1189
+
1190
+ var isForced_1 = isForced;
1191
+
1192
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+ /*
1200
+ options.target - name of the target object
1201
+ options.global - target is the global object
1202
+ options.stat - export as static methods of target
1203
+ options.proto - export as prototype methods of target
1204
+ options.real - real prototype method for the `pure` version
1205
+ options.forced - export even if the native feature is available
1206
+ options.bind - bind methods to the target, required for the `pure` version
1207
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1208
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1209
+ options.sham - add a flag to not completely full polyfills
1210
+ options.enumerable - export as enumerable property
1211
+ options.noTargetGet - prevent calling a getter on target
1212
+ */
1213
+ var _export = function (options, source) {
1214
+ var TARGET = options.target;
1215
+ var GLOBAL = options.global;
1216
+ var STATIC = options.stat;
1217
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1218
+ if (GLOBAL) {
1219
+ target = global$2;
1220
+ } else if (STATIC) {
1221
+ target = global$2[TARGET] || setGlobal(TARGET, {});
1222
+ } else {
1223
+ target = (global$2[TARGET] || {}).prototype;
1224
+ }
1225
+ if (target) for (key in source) {
1226
+ sourceProperty = source[key];
1227
+ if (options.noTargetGet) {
1228
+ descriptor = getOwnPropertyDescriptor(target, key);
1229
+ targetProperty = descriptor && descriptor.value;
1230
+ } else targetProperty = target[key];
1231
+ FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1232
+ // contained in target
1233
+ if (!FORCED && targetProperty !== undefined) {
1234
+ if (typeof sourceProperty === typeof targetProperty) continue;
1235
+ copyConstructorProperties(sourceProperty, targetProperty);
1236
+ }
1237
+ // add a flag to not completely full polyfills
1238
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1239
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
1240
+ }
1241
+ // extend global
1242
+ redefine(target, key, sourceProperty, options);
1243
+ }
1244
+ };
1245
+
1246
+ var aFunction = function (it) {
1247
+ if (typeof it != 'function') {
1248
+ throw TypeError(String(it) + ' is not a function');
1249
+ } return it;
1250
+ };
1251
+
1252
+ // TODO: use something more complex like timsort?
1253
+ var floor = Math.floor;
1254
+
1255
+ var mergeSort = function (array, comparefn) {
1256
+ var length = array.length;
1257
+ var middle = floor(length / 2);
1258
+ return length < 8 ? insertionSort(array, comparefn) : merge$1(
1259
+ mergeSort(array.slice(0, middle), comparefn),
1260
+ mergeSort(array.slice(middle), comparefn),
1261
+ comparefn
1262
+ );
1263
+ };
1264
+
1265
+ var insertionSort = function (array, comparefn) {
1266
+ var length = array.length;
1267
+ var i = 1;
1268
+ var element, j;
1269
+
1270
+ while (i < length) {
1271
+ j = i;
1272
+ element = array[i];
1273
+ while (j && comparefn(array[j - 1], element) > 0) {
1274
+ array[j] = array[--j];
1275
+ }
1276
+ if (j !== i++) array[j] = element;
1277
+ } return array;
1278
+ };
1279
+
1280
+ var merge$1 = function (left, right, comparefn) {
1281
+ var llength = left.length;
1282
+ var rlength = right.length;
1283
+ var lindex = 0;
1284
+ var rindex = 0;
1285
+ var result = [];
1286
+
1287
+ while (lindex < llength || rindex < rlength) {
1288
+ if (lindex < llength && rindex < rlength) {
1289
+ result.push(comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]);
1290
+ } else {
1291
+ result.push(lindex < llength ? left[lindex++] : right[rindex++]);
1292
+ }
1293
+ } return result;
1294
+ };
1295
+
1296
+ var arraySort = mergeSort;
1297
+
1298
+ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
1299
+ var method = [][METHOD_NAME];
1300
+ return !!method && fails(function () {
1301
+ // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
1302
+ method.call(null, argument || function () { throw 1; }, 1);
1303
+ });
1304
+ };
1305
+
1306
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
1307
+
1308
+ var firefox = engineUserAgent.match(/firefox\/(\d+)/i);
1309
+
1310
+ var engineFfVersion = !!firefox && +firefox[1];
1311
+
1312
+ var engineIsIeOrEdge = /MSIE|Trident/.test(engineUserAgent);
1313
+
1314
+ var process$3 = global$2.process;
1315
+ var versions = process$3 && process$3.versions;
1316
+ var v8$2 = versions && versions.v8;
1317
+ var match$1, version$2;
1318
+
1319
+ if (v8$2) {
1320
+ match$1 = v8$2.split('.');
1321
+ version$2 = match$1[0] < 4 ? 1 : match$1[0] + match$1[1];
1322
+ } else if (engineUserAgent) {
1323
+ match$1 = engineUserAgent.match(/Edge\/(\d+)/);
1324
+ if (!match$1 || match$1[1] >= 74) {
1325
+ match$1 = engineUserAgent.match(/Chrome\/(\d+)/);
1326
+ if (match$1) version$2 = match$1[1];
1327
+ }
1328
+ }
1329
+
1330
+ var engineV8Version = version$2 && +version$2;
1331
+
1332
+ var webkit = engineUserAgent.match(/AppleWebKit\/(\d+)\./);
1333
+
1334
+ var engineWebkitVersion = !!webkit && +webkit[1];
1335
+
1336
+ var test$1 = [];
1337
+ var nativeSort = test$1.sort;
1338
+
1339
+ // IE8-
1340
+ var FAILS_ON_UNDEFINED = fails(function () {
1341
+ test$1.sort(undefined);
1342
+ });
1343
+ // V8 bug
1344
+ var FAILS_ON_NULL = fails(function () {
1345
+ test$1.sort(null);
1346
+ });
1347
+ // Old WebKit
1348
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
1349
+
1350
+ var STABLE_SORT = !fails(function () {
1351
+ // feature detection can be too slow, so check engines versions
1352
+ if (engineV8Version) return engineV8Version < 70;
1353
+ if (engineFfVersion && engineFfVersion > 3) return;
1354
+ if (engineIsIeOrEdge) return true;
1355
+ if (engineWebkitVersion) return engineWebkitVersion < 603;
1356
+
1357
+ var result = '';
1358
+ var code, chr, value, index;
1359
+
1360
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
1361
+ for (code = 65; code < 76; code++) {
1362
+ chr = String.fromCharCode(code);
1363
+
1364
+ switch (code) {
1365
+ case 66: case 69: case 70: case 72: value = 3; break;
1366
+ case 68: case 71: value = 4; break;
1367
+ default: value = 2;
1368
+ }
1369
+
1370
+ for (index = 0; index < 47; index++) {
1371
+ test$1.push({ k: chr + index, v: value });
1372
+ }
1373
+ }
1374
+
1375
+ test$1.sort(function (a, b) { return b.v - a.v; });
1376
+
1377
+ for (index = 0; index < test$1.length; index++) {
1378
+ chr = test$1[index].k.charAt(0);
1379
+ if (result.charAt(result.length - 1) !== chr) result += chr;
1380
+ }
1381
+
1382
+ return result !== 'DGBEFHACIJK';
1383
+ });
1384
+
1385
+ var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
1386
+
1387
+ var getSortCompare = function (comparefn) {
1388
+ return function (x, y) {
1389
+ if (y === undefined) return -1;
1390
+ if (x === undefined) return 1;
1391
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
1392
+ return String(x) > String(y) ? 1 : -1;
1393
+ };
1394
+ };
1395
+
1396
+ // `Array.prototype.sort` method
1397
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
1398
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
1399
+ sort: function sort(comparefn) {
1400
+ if (comparefn !== undefined) aFunction(comparefn);
1401
+
1402
+ var array = toObject(this);
1403
+
1404
+ if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);
1405
+
1406
+ var items = [];
1407
+ var arrayLength = toLength(array.length);
1408
+ var itemsLength, index;
1409
+
1410
+ for (index = 0; index < arrayLength; index++) {
1411
+ if (index in array) items.push(array[index]);
1412
+ }
1413
+
1414
+ items = arraySort(items, getSortCompare(comparefn));
1415
+ itemsLength = items.length;
1416
+ index = 0;
1417
+
1418
+ while (index < itemsLength) array[index] = items[index++];
1419
+ while (index < arrayLength) delete array[index++];
1420
+
1421
+ return array;
1422
+ }
1423
+ });
1424
+
708
1425
  var json = createCommonjsModule(function (module, exports) {
709
1426
 
710
1427
  Object.defineProperty(exports, "__esModule", {
@@ -1172,13 +1889,13 @@ var applyPatches_1 = applyPatches;
1172
1889
 
1173
1890
  var
1174
1891
  /*istanbul ignore start*/
1175
- _distanceIterator = _interopRequireDefault$2(distanceIterator)
1892
+ _distanceIterator = _interopRequireDefault$1(distanceIterator)
1176
1893
  /*istanbul ignore end*/
1177
1894
  ;
1178
1895
  /*istanbul ignore start*/
1179
1896
 
1180
1897
 
1181
- function _interopRequireDefault$2(obj) {
1898
+ function _interopRequireDefault$1(obj) {
1182
1899
  return obj && obj.__esModule ? obj : {
1183
1900
  "default": obj
1184
1901
  };
@@ -2569,699 +3286,160 @@ var lib$6 = createCommonjsModule(function (module, exports) {
2569
3286
  _base = _interopRequireDefault(base$1)
2570
3287
  /*istanbul ignore end*/
2571
3288
  ;
2572
- /*istanbul ignore start*/
2573
-
2574
-
2575
- function _interopRequireDefault(obj) {
2576
- return obj && obj.__esModule ? obj : {
2577
- "default": obj
2578
- };
2579
- }
2580
- /*istanbul ignore end*/
2581
-
2582
- });
2583
-
2584
- var doc = require("./doc.js");
2585
-
2586
- var ansiRegex = ({
2587
- onlyFirst = false
2588
- } = {}) => {
2589
- const pattern = ['[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'].join('|');
2590
- return new RegExp(pattern, onlyFirst ? undefined : 'g');
2591
- };
2592
-
2593
- var stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
2594
-
2595
- /* eslint-disable yoda */
2596
-
2597
- const isFullwidthCodePoint = codePoint => {
2598
- if (Number.isNaN(codePoint)) {
2599
- return false;
2600
- } // Code points are derived from:
2601
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
2602
-
2603
-
2604
- if (codePoint >= 0x1100 && (codePoint <= 0x115F || // Hangul Jamo
2605
- codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
2606
- codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
2607
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
2608
- 0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
2609
- 0x3250 <= codePoint && codePoint <= 0x4DBF || // CJK Unified Ideographs .. Yi Radicals
2610
- 0x4E00 <= codePoint && codePoint <= 0xA4C6 || // Hangul Jamo Extended-A
2611
- 0xA960 <= codePoint && codePoint <= 0xA97C || // Hangul Syllables
2612
- 0xAC00 <= codePoint && codePoint <= 0xD7A3 || // CJK Compatibility Ideographs
2613
- 0xF900 <= codePoint && codePoint <= 0xFAFF || // Vertical Forms
2614
- 0xFE10 <= codePoint && codePoint <= 0xFE19 || // CJK Compatibility Forms .. Small Form Variants
2615
- 0xFE30 <= codePoint && codePoint <= 0xFE6B || // Halfwidth and Fullwidth Forms
2616
- 0xFF01 <= codePoint && codePoint <= 0xFF60 || 0xFFE0 <= codePoint && codePoint <= 0xFFE6 || // Kana Supplement
2617
- 0x1B000 <= codePoint && codePoint <= 0x1B001 || // Enclosed Ideographic Supplement
2618
- 0x1F200 <= codePoint && codePoint <= 0x1F251 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
2619
- 0x20000 <= codePoint && codePoint <= 0x3FFFD)) {
2620
- return true;
2621
- }
2622
-
2623
- return false;
2624
- };
2625
-
2626
- var isFullwidthCodePoint_1 = isFullwidthCodePoint;
2627
- var _default$r = isFullwidthCodePoint;
2628
- isFullwidthCodePoint_1.default = _default$r;
2629
-
2630
- var emojiRegex = function () {
2631
- // https://mths.be/emoji
2632
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
2633
- };
2634
-
2635
- const stringWidth = string => {
2636
- if (typeof string !== 'string' || string.length === 0) {
2637
- return 0;
2638
- }
2639
-
2640
- string = stripAnsi(string);
2641
-
2642
- if (string.length === 0) {
2643
- return 0;
2644
- }
2645
-
2646
- string = string.replace(emojiRegex(), ' ');
2647
- let width = 0;
2648
-
2649
- for (let i = 0; i < string.length; i++) {
2650
- const code = string.codePointAt(i); // Ignore control characters
2651
-
2652
- if (code <= 0x1F || code >= 0x7F && code <= 0x9F) {
2653
- continue;
2654
- } // Ignore combining characters
2655
-
2656
-
2657
- if (code >= 0x300 && code <= 0x36F) {
2658
- continue;
2659
- } // Surrogates
2660
-
2661
-
2662
- if (code > 0xFFFF) {
2663
- i++;
2664
- }
2665
-
2666
- width += isFullwidthCodePoint_1(code) ? 2 : 1;
2667
- }
2668
-
2669
- return width;
2670
- };
2671
-
2672
- var stringWidth_1 = stringWidth; // TODO: remove this in the next major version
2673
-
2674
- var _default$q = stringWidth;
2675
- stringWidth_1.default = _default$q;
2676
-
2677
- var escapeStringRegexp$2 = string => {
2678
- if (typeof string !== 'string') {
2679
- throw new TypeError('Expected a string');
2680
- } // Escape characters with special meaning either inside or outside character sets.
2681
- // Use a simple backslash escape when it’s always valid, and a \unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.
2682
-
2683
-
2684
- return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');
2685
- };
2686
-
2687
- const getLast$e = arr => arr[arr.length - 1];
2688
-
2689
- var getLast_1 = getLast$e;
2690
-
2691
- function _objectWithoutPropertiesLoose(source, excluded) {
2692
- if (source == null) return {};
2693
- var target = {};
2694
- var sourceKeys = Object.keys(source);
2695
- var key, i;
2696
-
2697
- for (i = 0; i < sourceKeys.length; i++) {
2698
- key = sourceKeys[i];
2699
- if (excluded.indexOf(key) >= 0) continue;
2700
- target[key] = source[key];
2701
- }
2702
-
2703
- return target;
2704
- }
2705
-
2706
- function _objectWithoutProperties(source, excluded) {
2707
- if (source == null) return {};
2708
-
2709
- var target = _objectWithoutPropertiesLoose(source, excluded);
2710
-
2711
- var key, i;
2712
-
2713
- if (Object.getOwnPropertySymbols) {
2714
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2715
-
2716
- for (i = 0; i < sourceSymbolKeys.length; i++) {
2717
- key = sourceSymbolKeys[i];
2718
- if (excluded.indexOf(key) >= 0) continue;
2719
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2720
- target[key] = source[key];
2721
- }
2722
- }
2723
-
2724
- return target;
2725
- }
2726
-
2727
- var check = function (it) {
2728
- return it && it.Math == Math && it;
2729
- };
2730
-
2731
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2732
- var global$2 =
2733
- // eslint-disable-next-line es/no-global-this -- safe
2734
- check(typeof globalThis == 'object' && globalThis) ||
2735
- check(typeof window == 'object' && window) ||
2736
- // eslint-disable-next-line no-restricted-globals -- safe
2737
- check(typeof self == 'object' && self) ||
2738
- check(typeof global$2 == 'object' && global$2) ||
2739
- // eslint-disable-next-line no-new-func -- fallback
2740
- (function () { return this; })() || Function('return this')();
2741
-
2742
- var fails = function (exec) {
2743
- try {
2744
- return !!exec();
2745
- } catch (error) {
2746
- return true;
2747
- }
2748
- };
2749
-
2750
- // Detect IE8's incomplete defineProperty implementation
2751
- var descriptors$1 = !fails(function () {
2752
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2753
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
2754
- });
2755
-
2756
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
2757
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2758
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
2759
-
2760
- // Nashorn ~ JDK8 bug
2761
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
2762
-
2763
- // `Object.prototype.propertyIsEnumerable` method implementation
2764
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
2765
- var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
2766
- var descriptor = getOwnPropertyDescriptor$1(this, V);
2767
- return !!descriptor && descriptor.enumerable;
2768
- } : $propertyIsEnumerable;
2769
-
2770
- var objectPropertyIsEnumerable = {
2771
- f: f$4
2772
- };
2773
-
2774
- var createPropertyDescriptor = function (bitmap, value) {
2775
- return {
2776
- enumerable: !(bitmap & 1),
2777
- configurable: !(bitmap & 2),
2778
- writable: !(bitmap & 4),
2779
- value: value
2780
- };
2781
- };
2782
-
2783
- var toString$1 = {}.toString;
2784
-
2785
- var classofRaw = function (it) {
2786
- return toString$1.call(it).slice(8, -1);
2787
- };
2788
-
2789
- var split = ''.split;
2790
-
2791
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
2792
- var indexedObject = fails(function () {
2793
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
2794
- // eslint-disable-next-line no-prototype-builtins -- safe
2795
- return !Object('z').propertyIsEnumerable(0);
2796
- }) ? function (it) {
2797
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
2798
- } : Object;
2799
-
2800
- // `RequireObjectCoercible` abstract operation
2801
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
2802
- var requireObjectCoercible = function (it) {
2803
- if (it == undefined) throw TypeError("Can't call method on " + it);
2804
- return it;
2805
- };
2806
-
2807
- // toObject with fallback for non-array-like ES3 strings
2808
-
2809
-
2810
-
2811
- var toIndexedObject = function (it) {
2812
- return indexedObject(requireObjectCoercible(it));
2813
- };
2814
-
2815
- var isObject$3 = function (it) {
2816
- return typeof it === 'object' ? it !== null : typeof it === 'function';
2817
- };
2818
-
2819
- // `ToPrimitive` abstract operation
2820
- // https://tc39.es/ecma262/#sec-toprimitive
2821
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
2822
- // and the second argument - flag - preferred type is a string
2823
- var toPrimitive = function (input, PREFERRED_STRING) {
2824
- if (!isObject$3(input)) return input;
2825
- var fn, val;
2826
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$3(val = fn.call(input))) return val;
2827
- if (typeof (fn = input.valueOf) == 'function' && !isObject$3(val = fn.call(input))) return val;
2828
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$3(val = fn.call(input))) return val;
2829
- throw TypeError("Can't convert object to primitive value");
2830
- };
2831
-
2832
- // `ToObject` abstract operation
2833
- // https://tc39.es/ecma262/#sec-toobject
2834
- var toObject = function (argument) {
2835
- return Object(requireObjectCoercible(argument));
2836
- };
2837
-
2838
- var hasOwnProperty$b = {}.hasOwnProperty;
2839
-
2840
- var has$1 = Object.hasOwn || function hasOwn(it, key) {
2841
- return hasOwnProperty$b.call(toObject(it), key);
2842
- };
2843
-
2844
- var document = global$2.document;
2845
- // typeof document.createElement is 'object' in old IE
2846
- var EXISTS = isObject$3(document) && isObject$3(document.createElement);
2847
-
2848
- var documentCreateElement = function (it) {
2849
- return EXISTS ? document.createElement(it) : {};
2850
- };
2851
-
2852
- // Thank's IE8 for his funny defineProperty
2853
- var ie8DomDefine = !descriptors$1 && !fails(function () {
2854
- // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
2855
- return Object.defineProperty(documentCreateElement('div'), 'a', {
2856
- get: function () { return 7; }
2857
- }).a != 7;
2858
- });
2859
-
2860
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2861
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2862
-
2863
- // `Object.getOwnPropertyDescriptor` method
2864
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
2865
- var f$3 = descriptors$1 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
2866
- O = toIndexedObject(O);
2867
- P = toPrimitive(P, true);
2868
- if (ie8DomDefine) try {
2869
- return $getOwnPropertyDescriptor(O, P);
2870
- } catch (error) { /* empty */ }
2871
- if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
2872
- };
2873
-
2874
- var objectGetOwnPropertyDescriptor = {
2875
- f: f$3
2876
- };
2877
-
2878
- var anObject = function (it) {
2879
- if (!isObject$3(it)) {
2880
- throw TypeError(String(it) + ' is not an object');
2881
- } return it;
2882
- };
2883
-
2884
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2885
- var $defineProperty = Object.defineProperty;
2886
-
2887
- // `Object.defineProperty` method
2888
- // https://tc39.es/ecma262/#sec-object.defineproperty
2889
- var f$2 = descriptors$1 ? $defineProperty : function defineProperty(O, P, Attributes) {
2890
- anObject(O);
2891
- P = toPrimitive(P, true);
2892
- anObject(Attributes);
2893
- if (ie8DomDefine) try {
2894
- return $defineProperty(O, P, Attributes);
2895
- } catch (error) { /* empty */ }
2896
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
2897
- if ('value' in Attributes) O[P] = Attributes.value;
2898
- return O;
2899
- };
2900
-
2901
- var objectDefineProperty = {
2902
- f: f$2
2903
- };
2904
-
2905
- var createNonEnumerableProperty = descriptors$1 ? function (object, key, value) {
2906
- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
2907
- } : function (object, key, value) {
2908
- object[key] = value;
2909
- return object;
2910
- };
2911
-
2912
- var setGlobal = function (key, value) {
2913
- try {
2914
- createNonEnumerableProperty(global$2, key, value);
2915
- } catch (error) {
2916
- global$2[key] = value;
2917
- } return value;
2918
- };
2919
-
2920
- var SHARED = '__core-js_shared__';
2921
- var store$1 = global$2[SHARED] || setGlobal(SHARED, {});
2922
-
2923
- var sharedStore = store$1;
2924
-
2925
- var functionToString = Function.toString;
2926
-
2927
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
2928
- if (typeof sharedStore.inspectSource != 'function') {
2929
- sharedStore.inspectSource = function (it) {
2930
- return functionToString.call(it);
2931
- };
2932
- }
2933
-
2934
- var inspectSource = sharedStore.inspectSource;
2935
-
2936
- var WeakMap$3 = global$2.WeakMap;
2937
-
2938
- var nativeWeakMap = typeof WeakMap$3 === 'function' && /native code/.test(inspectSource(WeakMap$3));
2939
-
2940
- var shared = createCommonjsModule(function (module) {
2941
- (module.exports = function (key, value) {
2942
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
2943
- })('versions', []).push({
2944
- version: '3.13.1',
2945
- mode: 'global',
2946
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
2947
- });
2948
- });
2949
-
2950
- var id = 0;
2951
- var postfix = Math.random();
2952
-
2953
- var uid$1 = function (key) {
2954
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
2955
- };
2956
-
2957
- var keys$1 = shared('keys');
2958
-
2959
- var sharedKey = function (key) {
2960
- return keys$1[key] || (keys$1[key] = uid$1(key));
2961
- };
2962
-
2963
- var hiddenKeys$1 = {};
2964
-
2965
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
2966
- var WeakMap$2 = global$2.WeakMap;
2967
- var set$1, get$2, has;
2968
-
2969
- var enforce = function (it) {
2970
- return has(it) ? get$2(it) : set$1(it, {});
2971
- };
2972
-
2973
- var getterFor = function (TYPE) {
2974
- return function (it) {
2975
- var state;
2976
- if (!isObject$3(it) || (state = get$2(it)).type !== TYPE) {
2977
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
2978
- } return state;
2979
- };
2980
- };
2981
-
2982
- if (nativeWeakMap || sharedStore.state) {
2983
- var store = sharedStore.state || (sharedStore.state = new WeakMap$2());
2984
- var wmget = store.get;
2985
- var wmhas = store.has;
2986
- var wmset = store.set;
2987
- set$1 = function (it, metadata) {
2988
- if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
2989
- metadata.facade = it;
2990
- wmset.call(store, it, metadata);
2991
- return metadata;
2992
- };
2993
- get$2 = function (it) {
2994
- return wmget.call(store, it) || {};
2995
- };
2996
- has = function (it) {
2997
- return wmhas.call(store, it);
2998
- };
2999
- } else {
3000
- var STATE = sharedKey('state');
3001
- hiddenKeys$1[STATE] = true;
3002
- set$1 = function (it, metadata) {
3003
- if (has$1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
3004
- metadata.facade = it;
3005
- createNonEnumerableProperty(it, STATE, metadata);
3006
- return metadata;
3007
- };
3008
- get$2 = function (it) {
3009
- return has$1(it, STATE) ? it[STATE] : {};
3010
- };
3011
- has = function (it) {
3012
- return has$1(it, STATE);
3013
- };
3014
- }
3015
-
3016
- var internalState = {
3017
- set: set$1,
3018
- get: get$2,
3019
- has: has,
3020
- enforce: enforce,
3021
- getterFor: getterFor
3022
- };
3289
+ /*istanbul ignore start*/
3023
3290
 
3024
- var redefine = createCommonjsModule(function (module) {
3025
- var getInternalState = internalState.get;
3026
- var enforceInternalState = internalState.enforce;
3027
- var TEMPLATE = String(String).split('String');
3028
3291
 
3029
- (module.exports = function (O, key, value, options) {
3030
- var unsafe = options ? !!options.unsafe : false;
3031
- var simple = options ? !!options.enumerable : false;
3032
- var noTargetGet = options ? !!options.noTargetGet : false;
3033
- var state;
3034
- if (typeof value == 'function') {
3035
- if (typeof key == 'string' && !has$1(value, 'name')) {
3036
- createNonEnumerableProperty(value, 'name', key);
3037
- }
3038
- state = enforceInternalState(value);
3039
- if (!state.source) {
3040
- state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
3041
- }
3042
- }
3043
- if (O === global$2) {
3044
- if (simple) O[key] = value;
3045
- else setGlobal(key, value);
3046
- return;
3047
- } else if (!unsafe) {
3048
- delete O[key];
3049
- } else if (!noTargetGet && O[key]) {
3050
- simple = true;
3292
+ function _interopRequireDefault(obj) {
3293
+ return obj && obj.__esModule ? obj : {
3294
+ "default": obj
3295
+ };
3051
3296
  }
3052
- if (simple) O[key] = value;
3053
- else createNonEnumerableProperty(O, key, value);
3054
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
3055
- })(Function.prototype, 'toString', function toString() {
3056
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
3057
- });
3058
- });
3297
+ /*istanbul ignore end*/
3059
3298
 
3060
- var path$4 = global$2;
3299
+ });
3061
3300
 
3062
- var aFunction$1 = function (variable) {
3063
- return typeof variable == 'function' ? variable : undefined;
3064
- };
3301
+ var doc = require("./doc.js");
3065
3302
 
3066
- var getBuiltIn = function (namespace, method) {
3067
- return arguments.length < 2 ? aFunction$1(path$4[namespace]) || aFunction$1(global$2[namespace])
3068
- : path$4[namespace] && path$4[namespace][method] || global$2[namespace] && global$2[namespace][method];
3303
+ var ansiRegex = ({
3304
+ onlyFirst = false
3305
+ } = {}) => {
3306
+ const pattern = ['[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'].join('|');
3307
+ return new RegExp(pattern, onlyFirst ? undefined : 'g');
3069
3308
  };
3070
3309
 
3071
- var ceil = Math.ceil;
3072
- var floor = Math.floor;
3310
+ var stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
3073
3311
 
3074
- // `ToInteger` abstract operation
3075
- // https://tc39.es/ecma262/#sec-tointeger
3076
- var toInteger = function (argument) {
3077
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
3078
- };
3312
+ /* eslint-disable yoda */
3079
3313
 
3080
- var min$1 = Math.min;
3314
+ const isFullwidthCodePoint = codePoint => {
3315
+ if (Number.isNaN(codePoint)) {
3316
+ return false;
3317
+ } // Code points are derived from:
3318
+ // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
3081
3319
 
3082
- // `ToLength` abstract operation
3083
- // https://tc39.es/ecma262/#sec-tolength
3084
- var toLength = function (argument) {
3085
- return argument > 0 ? min$1(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
3086
- };
3087
3320
 
3088
- var max = Math.max;
3089
- var min = Math.min;
3321
+ if (codePoint >= 0x1100 && (codePoint <= 0x115F || // Hangul Jamo
3322
+ codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
3323
+ codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
3324
+ // CJK Radicals Supplement .. Enclosed CJK Letters and Months
3325
+ 0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
3326
+ 0x3250 <= codePoint && codePoint <= 0x4DBF || // CJK Unified Ideographs .. Yi Radicals
3327
+ 0x4E00 <= codePoint && codePoint <= 0xA4C6 || // Hangul Jamo Extended-A
3328
+ 0xA960 <= codePoint && codePoint <= 0xA97C || // Hangul Syllables
3329
+ 0xAC00 <= codePoint && codePoint <= 0xD7A3 || // CJK Compatibility Ideographs
3330
+ 0xF900 <= codePoint && codePoint <= 0xFAFF || // Vertical Forms
3331
+ 0xFE10 <= codePoint && codePoint <= 0xFE19 || // CJK Compatibility Forms .. Small Form Variants
3332
+ 0xFE30 <= codePoint && codePoint <= 0xFE6B || // Halfwidth and Fullwidth Forms
3333
+ 0xFF01 <= codePoint && codePoint <= 0xFF60 || 0xFFE0 <= codePoint && codePoint <= 0xFFE6 || // Kana Supplement
3334
+ 0x1B000 <= codePoint && codePoint <= 0x1B001 || // Enclosed Ideographic Supplement
3335
+ 0x1F200 <= codePoint && codePoint <= 0x1F251 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
3336
+ 0x20000 <= codePoint && codePoint <= 0x3FFFD)) {
3337
+ return true;
3338
+ }
3090
3339
 
3091
- // Helper for a popular repeating case of the spec:
3092
- // Let integer be ? ToInteger(index).
3093
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
3094
- var toAbsoluteIndex = function (index, length) {
3095
- var integer = toInteger(index);
3096
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
3340
+ return false;
3097
3341
  };
3098
3342
 
3099
- // `Array.prototype.{ indexOf, includes }` methods implementation
3100
- var createMethod = function (IS_INCLUDES) {
3101
- return function ($this, el, fromIndex) {
3102
- var O = toIndexedObject($this);
3103
- var length = toLength(O.length);
3104
- var index = toAbsoluteIndex(fromIndex, length);
3105
- var value;
3106
- // Array#includes uses SameValueZero equality algorithm
3107
- // eslint-disable-next-line no-self-compare -- NaN check
3108
- if (IS_INCLUDES && el != el) while (length > index) {
3109
- value = O[index++];
3110
- // eslint-disable-next-line no-self-compare -- NaN check
3111
- if (value != value) return true;
3112
- // Array#indexOf ignores holes, Array#includes - not
3113
- } else for (;length > index; index++) {
3114
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
3115
- } return !IS_INCLUDES && -1;
3116
- };
3117
- };
3343
+ var isFullwidthCodePoint_1 = isFullwidthCodePoint;
3344
+ var _default$r = isFullwidthCodePoint;
3345
+ isFullwidthCodePoint_1.default = _default$r;
3118
3346
 
3119
- var arrayIncludes$1 = {
3120
- // `Array.prototype.includes` method
3121
- // https://tc39.es/ecma262/#sec-array.prototype.includes
3122
- includes: createMethod(true),
3123
- // `Array.prototype.indexOf` method
3124
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
3125
- indexOf: createMethod(false)
3347
+ var emojiRegex = function () {
3348
+ // https://mths.be/emoji
3349
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
3126
3350
  };
3127
3351
 
3128
- var indexOf = arrayIncludes$1.indexOf;
3352
+ const stringWidth = string => {
3353
+ if (typeof string !== 'string' || string.length === 0) {
3354
+ return 0;
3355
+ }
3129
3356
 
3357
+ string = stripAnsi(string);
3130
3358
 
3131
- var objectKeysInternal = function (object, names) {
3132
- var O = toIndexedObject(object);
3133
- var i = 0;
3134
- var result = [];
3135
- var key;
3136
- for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
3137
- // Don't enum bug & hidden keys
3138
- while (names.length > i) if (has$1(O, key = names[i++])) {
3139
- ~indexOf(result, key) || result.push(key);
3359
+ if (string.length === 0) {
3360
+ return 0;
3140
3361
  }
3141
- return result;
3142
- };
3143
3362
 
3144
- // IE8- don't enum bug keys
3145
- var enumBugKeys = [
3146
- 'constructor',
3147
- 'hasOwnProperty',
3148
- 'isPrototypeOf',
3149
- 'propertyIsEnumerable',
3150
- 'toLocaleString',
3151
- 'toString',
3152
- 'valueOf'
3153
- ];
3363
+ string = string.replace(emojiRegex(), ' ');
3364
+ let width = 0;
3154
3365
 
3155
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
3366
+ for (let i = 0; i < string.length; i++) {
3367
+ const code = string.codePointAt(i); // Ignore control characters
3156
3368
 
3157
- // `Object.getOwnPropertyNames` method
3158
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
3159
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
3160
- var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
3161
- return objectKeysInternal(O, hiddenKeys);
3162
- };
3369
+ if (code <= 0x1F || code >= 0x7F && code <= 0x9F) {
3370
+ continue;
3371
+ } // Ignore combining characters
3163
3372
 
3164
- var objectGetOwnPropertyNames = {
3165
- f: f$1
3166
- };
3167
3373
 
3168
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
3169
- var f = Object.getOwnPropertySymbols;
3374
+ if (code >= 0x300 && code <= 0x36F) {
3375
+ continue;
3376
+ } // Surrogates
3170
3377
 
3171
- var objectGetOwnPropertySymbols = {
3172
- f: f
3173
- };
3174
3378
 
3175
- // all object keys, includes non-enumerable and symbols
3176
- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
3177
- var keys = objectGetOwnPropertyNames.f(anObject(it));
3178
- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
3179
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
3180
- };
3379
+ if (code > 0xFFFF) {
3380
+ i++;
3381
+ }
3181
3382
 
3182
- var copyConstructorProperties = function (target, source) {
3183
- var keys = ownKeys(source);
3184
- var defineProperty = objectDefineProperty.f;
3185
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3186
- for (var i = 0; i < keys.length; i++) {
3187
- var key = keys[i];
3188
- if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
3383
+ width += isFullwidthCodePoint_1(code) ? 2 : 1;
3189
3384
  }
3385
+
3386
+ return width;
3190
3387
  };
3191
3388
 
3192
- var replacement = /#|\.prototype\./;
3389
+ var stringWidth_1 = stringWidth; // TODO: remove this in the next major version
3193
3390
 
3194
- var isForced = function (feature, detection) {
3195
- var value = data$3[normalize$3(feature)];
3196
- return value == POLYFILL ? true
3197
- : value == NATIVE ? false
3198
- : typeof detection == 'function' ? fails(detection)
3199
- : !!detection;
3200
- };
3391
+ var _default$q = stringWidth;
3392
+ stringWidth_1.default = _default$q;
3201
3393
 
3202
- var normalize$3 = isForced.normalize = function (string) {
3203
- return String(string).replace(replacement, '.').toLowerCase();
3394
+ var escapeStringRegexp$2 = string => {
3395
+ if (typeof string !== 'string') {
3396
+ throw new TypeError('Expected a string');
3397
+ } // Escape characters with special meaning either inside or outside character sets.
3398
+ // Use a simple backslash escape when it’s always valid, and a \unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.
3399
+
3400
+
3401
+ return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');
3204
3402
  };
3205
3403
 
3206
- var data$3 = isForced.data = {};
3207
- var NATIVE = isForced.NATIVE = 'N';
3208
- var POLYFILL = isForced.POLYFILL = 'P';
3404
+ const getLast$e = arr => arr[arr.length - 1];
3209
3405
 
3210
- var isForced_1 = isForced;
3406
+ var getLast_1 = getLast$e;
3211
3407
 
3212
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3408
+ function _objectWithoutPropertiesLoose(source, excluded) {
3409
+ if (source == null) return {};
3410
+ var target = {};
3411
+ var sourceKeys = Object.keys(source);
3412
+ var key, i;
3213
3413
 
3414
+ for (i = 0; i < sourceKeys.length; i++) {
3415
+ key = sourceKeys[i];
3416
+ if (excluded.indexOf(key) >= 0) continue;
3417
+ target[key] = source[key];
3418
+ }
3214
3419
 
3420
+ return target;
3421
+ }
3215
3422
 
3423
+ function _objectWithoutProperties(source, excluded) {
3424
+ if (source == null) return {};
3216
3425
 
3426
+ var target = _objectWithoutPropertiesLoose(source, excluded);
3217
3427
 
3428
+ var key, i;
3218
3429
 
3219
- /*
3220
- options.target - name of the target object
3221
- options.global - target is the global object
3222
- options.stat - export as static methods of target
3223
- options.proto - export as prototype methods of target
3224
- options.real - real prototype method for the `pure` version
3225
- options.forced - export even if the native feature is available
3226
- options.bind - bind methods to the target, required for the `pure` version
3227
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
3228
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
3229
- options.sham - add a flag to not completely full polyfills
3230
- options.enumerable - export as enumerable property
3231
- options.noTargetGet - prevent calling a getter on target
3232
- */
3233
- var _export = function (options, source) {
3234
- var TARGET = options.target;
3235
- var GLOBAL = options.global;
3236
- var STATIC = options.stat;
3237
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
3238
- if (GLOBAL) {
3239
- target = global$2;
3240
- } else if (STATIC) {
3241
- target = global$2[TARGET] || setGlobal(TARGET, {});
3242
- } else {
3243
- target = (global$2[TARGET] || {}).prototype;
3244
- }
3245
- if (target) for (key in source) {
3246
- sourceProperty = source[key];
3247
- if (options.noTargetGet) {
3248
- descriptor = getOwnPropertyDescriptor(target, key);
3249
- targetProperty = descriptor && descriptor.value;
3250
- } else targetProperty = target[key];
3251
- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
3252
- // contained in target
3253
- if (!FORCED && targetProperty !== undefined) {
3254
- if (typeof sourceProperty === typeof targetProperty) continue;
3255
- copyConstructorProperties(sourceProperty, targetProperty);
3256
- }
3257
- // add a flag to not completely full polyfills
3258
- if (options.sham || (targetProperty && targetProperty.sham)) {
3259
- createNonEnumerableProperty(sourceProperty, 'sham', true);
3430
+ if (Object.getOwnPropertySymbols) {
3431
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3432
+
3433
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
3434
+ key = sourceSymbolKeys[i];
3435
+ if (excluded.indexOf(key) >= 0) continue;
3436
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3437
+ target[key] = source[key];
3260
3438
  }
3261
- // extend global
3262
- redefine(target, key, sourceProperty, options);
3263
3439
  }
3264
- };
3440
+
3441
+ return target;
3442
+ }
3265
3443
 
3266
3444
  // `IsArray` abstract operation
3267
3445
  // https://tc39.es/ecma262/#sec-isarray
@@ -3270,12 +3448,6 @@ var isArray$3 = Array.isArray || function isArray(arg) {
3270
3448
  return classofRaw(arg) == 'Array';
3271
3449
  };
3272
3450
 
3273
- var aFunction = function (it) {
3274
- if (typeof it != 'function') {
3275
- throw TypeError(String(it) + ' is not a function');
3276
- } return it;
3277
- };
3278
-
3279
3451
  // optional / simple context binding
3280
3452
  var functionBindContext = function (fn, that, length) {
3281
3453
  aFunction(fn);
@@ -3327,26 +3499,6 @@ var flattenIntoArray = function (target, original, source, sourceLen, start, dep
3327
3499
 
3328
3500
  var flattenIntoArray_1 = flattenIntoArray;
3329
3501
 
3330
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
3331
-
3332
- var process$3 = global$2.process;
3333
- var versions = process$3 && process$3.versions;
3334
- var v8$2 = versions && versions.v8;
3335
- var match$1, version$2;
3336
-
3337
- if (v8$2) {
3338
- match$1 = v8$2.split('.');
3339
- version$2 = match$1[0] < 4 ? 1 : match$1[0] + match$1[1];
3340
- } else if (engineUserAgent) {
3341
- match$1 = engineUserAgent.match(/Edge\/(\d+)/);
3342
- if (!match$1 || match$1[1] >= 74) {
3343
- match$1 = engineUserAgent.match(/Chrome\/(\d+)/);
3344
- if (match$1) version$2 = match$1[1];
3345
- }
3346
- }
3347
-
3348
- var engineV8Version = version$2 && +version$2;
3349
-
3350
3502
  /* eslint-disable es/no-symbol -- required for testing */
3351
3503
 
3352
3504
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
@@ -13174,69 +13326,6 @@ var chalk = createCommonjsModule(function (module) {
13174
13326
  var shouldHighlight_1 = shouldHighlight;
13175
13327
  var getChalk_1 = getChalk;
13176
13328
  var _default$n = highlight;
13177
-
13178
- var jsTokensNs = _interopRequireWildcard$1(jsTokens);
13179
-
13180
- var _chalk = _interopRequireDefault$1(chalk);
13181
-
13182
- function _interopRequireDefault$1(obj) {
13183
- return obj && obj.__esModule ? obj : {
13184
- default: obj
13185
- };
13186
- }
13187
-
13188
- function _getRequireWildcardCache$1() {
13189
- if (typeof WeakMap !== "function") return null;
13190
- var cache = new WeakMap();
13191
-
13192
- _getRequireWildcardCache$1 = function () {
13193
- return cache;
13194
- };
13195
-
13196
- return cache;
13197
- }
13198
-
13199
- function _interopRequireWildcard$1(obj) {
13200
- if (obj && obj.__esModule) {
13201
- return obj;
13202
- }
13203
-
13204
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
13205
- return {
13206
- default: obj
13207
- };
13208
- }
13209
-
13210
- var cache = _getRequireWildcardCache$1();
13211
-
13212
- if (cache && cache.has(obj)) {
13213
- return cache.get(obj);
13214
- }
13215
-
13216
- var newObj = {};
13217
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
13218
-
13219
- for (var key in obj) {
13220
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
13221
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
13222
-
13223
- if (desc && (desc.get || desc.set)) {
13224
- Object.defineProperty(newObj, key, desc);
13225
- } else {
13226
- newObj[key] = obj[key];
13227
- }
13228
- }
13229
- }
13230
-
13231
- newObj.default = obj;
13232
-
13233
- if (cache) {
13234
- cache.set(obj, newObj);
13235
- }
13236
-
13237
- return newObj;
13238
- }
13239
-
13240
13329
  const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
13241
13330
 
13242
13331
  function getDefs$1(chalk) {
@@ -13257,9 +13346,6 @@ const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
13257
13346
  const BRACKET = /^[()[\]{}]$/;
13258
13347
  let tokenize;
13259
13348
  {
13260
- const {
13261
- matchToToken
13262
- } = jsTokensNs;
13263
13349
  const JSX_TAG = /^[a-z][\w-]*$/i;
13264
13350
 
13265
13351
  const getTokenType = function (token, offset, text) {
@@ -13291,8 +13377,9 @@ let tokenize;
13291
13377
  tokenize = function* (text) {
13292
13378
  let match;
13293
13379
 
13294
- while (match = jsTokensNs.default.exec(text)) {
13295
- const token = matchToToken(match);
13380
+ while (match = jsTokens.default.exec(text)) {
13381
+ const token = jsTokens.matchToToken(match);
13382
+
13296
13383
  yield {
13297
13384
  type: getTokenType(token, match.index, text),
13298
13385
  value: token.value
@@ -13321,14 +13408,14 @@ function highlightTokens(defs, text) {
13321
13408
  }
13322
13409
 
13323
13410
  function shouldHighlight(options) {
13324
- return !!_chalk.default.supportsColor || options.forceColor;
13411
+ return !!chalk.supportsColor || options.forceColor;
13325
13412
  }
13326
13413
 
13327
13414
  function getChalk(options) {
13328
- return options.forceColor ? new _chalk.default.constructor({
13415
+ return options.forceColor ? new chalk.constructor({
13329
13416
  enabled: true,
13330
13417
  level: 1
13331
- }) : _chalk.default;
13418
+ }) : chalk;
13332
13419
  }
13333
13420
 
13334
13421
  function highlight(code, options = {}) {
@@ -13351,61 +13438,6 @@ var lib$2 = /*#__PURE__*/Object.defineProperty({
13351
13438
 
13352
13439
  var codeFrameColumns_1 = codeFrameColumns;
13353
13440
  var default_1 = _default$m;
13354
-
13355
- var _highlight = _interopRequireWildcard(lib$2);
13356
-
13357
- function _getRequireWildcardCache() {
13358
- if (typeof WeakMap !== "function") return null;
13359
- var cache = new WeakMap();
13360
-
13361
- _getRequireWildcardCache = function () {
13362
- return cache;
13363
- };
13364
-
13365
- return cache;
13366
- }
13367
-
13368
- function _interopRequireWildcard(obj) {
13369
- if (obj && obj.__esModule) {
13370
- return obj;
13371
- }
13372
-
13373
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
13374
- return {
13375
- default: obj
13376
- };
13377
- }
13378
-
13379
- var cache = _getRequireWildcardCache();
13380
-
13381
- if (cache && cache.has(obj)) {
13382
- return cache.get(obj);
13383
- }
13384
-
13385
- var newObj = {};
13386
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
13387
-
13388
- for (var key in obj) {
13389
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
13390
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
13391
-
13392
- if (desc && (desc.get || desc.set)) {
13393
- Object.defineProperty(newObj, key, desc);
13394
- } else {
13395
- newObj[key] = obj[key];
13396
- }
13397
- }
13398
- }
13399
-
13400
- newObj.default = obj;
13401
-
13402
- if (cache) {
13403
- cache.set(obj, newObj);
13404
- }
13405
-
13406
- return newObj;
13407
- }
13408
-
13409
13441
  let deprecationWarningShown = false;
13410
13442
 
13411
13443
  function getDefs(chalk) {
@@ -13482,8 +13514,8 @@ function getMarkerLines(loc, source, opts) {
13482
13514
  }
13483
13515
 
13484
13516
  function codeFrameColumns(rawLines, loc, opts = {}) {
13485
- const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
13486
- const chalk = (0, _highlight.getChalk)(opts);
13517
+ const highlighted = (opts.highlightCode || opts.forceColor) && (0, lib$2.shouldHighlight)(opts);
13518
+ const chalk = (0, lib$2.getChalk)(opts);
13487
13519
  const defs = getDefs(chalk);
13488
13520
 
13489
13521
  const maybeHighlight = (chalkFn, string) => {
@@ -13498,7 +13530,7 @@ function codeFrameColumns(rawLines, loc, opts = {}) {
13498
13530
  } = getMarkerLines(loc, lines, opts);
13499
13531
  const hasColumns = loc.start && typeof loc.start.column === "number";
13500
13532
  const numberMaxWidth = String(end).length;
13501
- const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines;
13533
+ const highlightedLines = highlighted ? (0, lib$2.default)(rawLines, opts) : rawLines;
13502
13534
  let frame = highlightedLines.split(NEWLINE).slice(start, end).map((line, index) => {
13503
13535
  const number = start + 1 + index;
13504
13536
  const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
@@ -15524,6 +15556,10 @@ function range(a, b, str) {
15524
15556
  var i = ai;
15525
15557
 
15526
15558
  if (ai >= 0 && bi > 0) {
15559
+ if (a === b) {
15560
+ return [ai, bi];
15561
+ }
15562
+
15527
15563
  begs = [];
15528
15564
  left = str.length;
15529
15565
 
@@ -20298,25 +20334,13 @@ var caller = function () {
20298
20334
 
20299
20335
  var pathParse = createCommonjsModule(function (module) {
20300
20336
 
20301
- var isWindows = process.platform === 'win32'; // Regex to split a windows path into three parts: [*, device, slash,
20302
- // tail] windows-only
20337
+ var isWindows = process.platform === 'win32'; // Regex to split a windows path into into [dir, root, basename, name, ext]
20303
20338
 
20304
- var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; // Regex to split the tail part of the above into [*, dir, basename, ext]
20305
-
20306
- var splitTailRe = /^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;
20307
- var win32 = {}; // Function to split a filename into [root, dir, basename, ext]
20339
+ var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
20340
+ var win32 = {};
20308
20341
 
20309
20342
  function win32SplitPath(filename) {
20310
- // Separate device+slash from tail
20311
- var result = splitDeviceRe.exec(filename),
20312
- device = (result[1] || '') + (result[2] || ''),
20313
- tail = result[3] || ''; // Split the tail into dir, basename and extension
20314
-
20315
- var result2 = splitTailRe.exec(tail),
20316
- dir = result2[1],
20317
- basename = result2[2],
20318
- ext = result2[3];
20319
- return [device, dir, basename, ext];
20343
+ return splitWindowsRe.exec(filename).slice(1);
20320
20344
  }
20321
20345
 
20322
20346
  win32.parse = function (pathString) {
@@ -20326,22 +20350,22 @@ var pathParse = createCommonjsModule(function (module) {
20326
20350
 
20327
20351
  var allParts = win32SplitPath(pathString);
20328
20352
 
20329
- if (!allParts || allParts.length !== 4) {
20353
+ if (!allParts || allParts.length !== 5) {
20330
20354
  throw new TypeError("Invalid path '" + pathString + "'");
20331
20355
  }
20332
20356
 
20333
20357
  return {
20334
- root: allParts[0],
20335
- dir: allParts[0] + allParts[1].slice(0, -1),
20358
+ root: allParts[1],
20359
+ dir: allParts[0] === allParts[1] ? allParts[0] : allParts[0].slice(0, -1),
20336
20360
  base: allParts[2],
20337
- ext: allParts[3],
20338
- name: allParts[2].slice(0, allParts[2].length - allParts[3].length)
20361
+ ext: allParts[4],
20362
+ name: allParts[3]
20339
20363
  };
20340
- }; // Split a filename into [root, dir, basename, ext], unix version
20364
+ }; // Split a filename into [dir, root, basename, name, ext], unix version
20341
20365
  // 'root' is just a slash, or nothing.
20342
20366
 
20343
20367
 
20344
- var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
20368
+ var splitPathRe = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/;
20345
20369
  var posix = {};
20346
20370
 
20347
20371
  function posixSplitPath(filename) {
@@ -20355,19 +20379,16 @@ var pathParse = createCommonjsModule(function (module) {
20355
20379
 
20356
20380
  var allParts = posixSplitPath(pathString);
20357
20381
 
20358
- if (!allParts || allParts.length !== 4) {
20382
+ if (!allParts || allParts.length !== 5) {
20359
20383
  throw new TypeError("Invalid path '" + pathString + "'");
20360
20384
  }
20361
20385
 
20362
- allParts[1] = allParts[1] || '';
20363
- allParts[2] = allParts[2] || '';
20364
- allParts[3] = allParts[3] || '';
20365
20386
  return {
20366
- root: allParts[0],
20367
- dir: allParts[0] + allParts[1].slice(0, -1),
20387
+ root: allParts[1],
20388
+ dir: allParts[0].slice(0, -1),
20368
20389
  base: allParts[2],
20369
- ext: allParts[3],
20370
- name: allParts[2].slice(0, allParts[2].length - allParts[3].length)
20390
+ ext: allParts[4],
20391
+ name: allParts[3]
20371
20392
  };
20372
20393
  };
20373
20394
 
@@ -30442,13 +30463,14 @@ var pathPosixDirname = path__default['default'].posix.dirname;
30442
30463
  var isWin32 = os__default['default'].platform() === 'win32';
30443
30464
  var slash$1 = '/';
30444
30465
  var backslash = /\\/g;
30445
- var enclosure = /[\{\[].*[\/]*.*[\}\]]$/;
30466
+ var enclosure = /[\{\[].*[\}\]]$/;
30446
30467
  var globby$1 = /(^|[^\\])([\{\[]|\([^\)]+$)/;
30447
30468
  var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
30448
30469
  /**
30449
30470
  * @param {string} str
30450
30471
  * @param {Object} opts
30451
30472
  * @param {boolean} [opts.flipBackslashes=true]
30473
+ * @returns {string}
30452
30474
  */
30453
30475
 
30454
30476
  var globParent = function globParent(str, opts) {
@@ -30650,13 +30672,6 @@ var isNumber$1 = function (num) {
30650
30672
  return false;
30651
30673
  };
30652
30674
 
30653
- /*!
30654
- * to-regex-range <https://github.com/micromatch/to-regex-range>
30655
- *
30656
- * Copyright (c) 2015-present, Jon Schlinkert.
30657
- * Released under the MIT License.
30658
- */
30659
-
30660
30675
  const toRegexRange = (min, max, options) => {
30661
30676
  if (isNumber$1(min) === false) {
30662
30677
  throw new TypeError('toRegexRange: expected the first argument to be a number');
@@ -30962,13 +30977,6 @@ toRegexRange.clearCache = () => toRegexRange.cache = {};
30962
30977
 
30963
30978
  var toRegexRange_1 = toRegexRange;
30964
30979
 
30965
- /*!
30966
- * fill-range <https://github.com/jonschlinkert/fill-range>
30967
- *
30968
- * Copyright (c) 2014-present, Jon Schlinkert.
30969
- * Licensed under the MIT License.
30970
- */
30971
-
30972
30980
  const isObject$1 = val => val !== null && typeof val === 'object' && !Array.isArray(val);
30973
30981
 
30974
30982
  const transform = toNumber => {
@@ -32500,7 +32508,8 @@ const depth = token => {
32500
32508
  /**
32501
32509
  * Quickly scans a glob pattern and returns an object with a handful of
32502
32510
  * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
32503
- * `glob` (the actual pattern), and `negated` (true if the path starts with `!`).
32511
+ * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
32512
+ * with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
32504
32513
  *
32505
32514
  * ```js
32506
32515
  * const pm = require('picomatch');
@@ -32533,6 +32542,7 @@ const scan = (input, options) => {
32533
32542
  let braceEscaped = false;
32534
32543
  let backslashes = false;
32535
32544
  let negated = false;
32545
+ let negatedExtglob = false;
32536
32546
  let finished = false;
32537
32547
  let braces = 0;
32538
32548
  let prev;
@@ -32652,6 +32662,10 @@ const scan = (input, options) => {
32652
32662
  isExtglob = token.isExtglob = true;
32653
32663
  finished = true;
32654
32664
 
32665
+ if (code === CHAR_EXCLAMATION_MARK && index === start) {
32666
+ negatedExtglob = true;
32667
+ }
32668
+
32655
32669
  if (scanToEnd === true) {
32656
32670
  while (eos() !== true && (code = advance())) {
32657
32671
  if (code === CHAR_BACKWARD_SLASH) {
@@ -32709,14 +32723,15 @@ const scan = (input, options) => {
32709
32723
  isBracket = token.isBracket = true;
32710
32724
  isGlob = token.isGlob = true;
32711
32725
  finished = true;
32712
-
32713
- if (scanToEnd === true) {
32714
- continue;
32715
- }
32716
-
32717
32726
  break;
32718
32727
  }
32719
32728
  }
32729
+
32730
+ if (scanToEnd === true) {
32731
+ continue;
32732
+ }
32733
+
32734
+ break;
32720
32735
  }
32721
32736
 
32722
32737
  if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
@@ -32809,7 +32824,8 @@ const scan = (input, options) => {
32809
32824
  isGlob,
32810
32825
  isExtglob,
32811
32826
  isGlobstar,
32812
- negated
32827
+ negated,
32828
+ negatedExtglob
32813
32829
  };
32814
32830
 
32815
32831
  if (opts.tokens === true) {
@@ -33007,7 +33023,7 @@ const parse$2 = (input, options) => {
33007
33023
 
33008
33024
  const peek = state.peek = (n = 1) => input[state.index + n];
33009
33025
 
33010
- const advance = state.advance = () => input[++state.index];
33026
+ const advance = state.advance = () => input[++state.index] || '';
33011
33027
 
33012
33028
  const remaining = () => input.slice(state.index + 1);
33013
33029
 
@@ -33071,7 +33087,7 @@ const parse$2 = (input, options) => {
33071
33087
  }
33072
33088
  }
33073
33089
 
33074
- if (extglobs.length && tok.type !== 'paren' && !EXTGLOB_CHARS[tok.value]) {
33090
+ if (extglobs.length && tok.type !== 'paren') {
33075
33091
  extglobs[extglobs.length - 1].inner += tok.value;
33076
33092
  }
33077
33093
 
@@ -33114,6 +33130,7 @@ const parse$2 = (input, options) => {
33114
33130
 
33115
33131
  const extglobClose = token => {
33116
33132
  let output = token.close + (opts.capture ? ')' : '');
33133
+ let rest;
33117
33134
 
33118
33135
  if (token.type === 'negate') {
33119
33136
  let extglobStar = star;
@@ -33126,7 +33143,11 @@ const parse$2 = (input, options) => {
33126
33143
  output = token.close = `)$))${extglobStar}`;
33127
33144
  }
33128
33145
 
33129
- if (token.prev.type === 'bos' && eos()) {
33146
+ if (token.inner.includes('*') && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
33147
+ output = token.close = `)${rest})${extglobStar})`;
33148
+ }
33149
+
33150
+ if (token.prev.type === 'bos') {
33130
33151
  state.negatedExtglob = true;
33131
33152
  }
33132
33153
  }
@@ -33247,9 +33268,9 @@ const parse$2 = (input, options) => {
33247
33268
  }
33248
33269
 
33249
33270
  if (opts.unescape === true) {
33250
- value = advance() || '';
33271
+ value = advance();
33251
33272
  } else {
33252
- value += advance() || '';
33273
+ value += advance();
33253
33274
  }
33254
33275
 
33255
33276
  if (state.brackets === 0) {
@@ -34348,73 +34369,76 @@ picomatch$1.parse = (pattern, options) => {
34348
34369
 
34349
34370
  picomatch$1.scan = (input, options) => scan_1(input, options);
34350
34371
  /**
34351
- * Create a regular expression from a parsed glob pattern.
34352
- *
34353
- * ```js
34354
- * const picomatch = require('picomatch');
34355
- * const state = picomatch.parse('*.js');
34356
- * // picomatch.compileRe(state[, options]);
34372
+ * Compile a regular expression from the `state` object returned by the
34373
+ * [parse()](#parse) method.
34357
34374
  *
34358
- * console.log(picomatch.compileRe(state));
34359
- * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
34360
- * ```
34361
- * @param {String} `state` The object returned from the `.parse` method.
34375
+ * @param {Object} `state`
34362
34376
  * @param {Object} `options`
34363
- * @return {RegExp} Returns a regex created from the given pattern.
34377
+ * @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
34378
+ * @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
34379
+ * @return {RegExp}
34364
34380
  * @api public
34365
34381
  */
34366
34382
 
34367
34383
 
34368
- picomatch$1.compileRe = (parsed, options, returnOutput = false, returnState = false) => {
34384
+ picomatch$1.compileRe = (state, options, returnOutput = false, returnState = false) => {
34369
34385
  if (returnOutput === true) {
34370
- return parsed.output;
34386
+ return state.output;
34371
34387
  }
34372
34388
 
34373
34389
  const opts = options || {};
34374
34390
  const prepend = opts.contains ? '' : '^';
34375
34391
  const append = opts.contains ? '' : '$';
34376
- let source = `${prepend}(?:${parsed.output})${append}`;
34392
+ let source = `${prepend}(?:${state.output})${append}`;
34377
34393
 
34378
- if (parsed && parsed.negated === true) {
34394
+ if (state && state.negated === true) {
34379
34395
  source = `^(?!${source}).*$`;
34380
34396
  }
34381
34397
 
34382
34398
  const regex = picomatch$1.toRegex(source, options);
34383
34399
 
34384
34400
  if (returnState === true) {
34385
- regex.state = parsed;
34401
+ regex.state = state;
34386
34402
  }
34387
34403
 
34388
34404
  return regex;
34389
34405
  };
34406
+ /**
34407
+ * Create a regular expression from a parsed glob pattern.
34408
+ *
34409
+ * ```js
34410
+ * const picomatch = require('picomatch');
34411
+ * const state = picomatch.parse('*.js');
34412
+ * // picomatch.compileRe(state[, options]);
34413
+ *
34414
+ * console.log(picomatch.compileRe(state));
34415
+ * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
34416
+ * ```
34417
+ * @param {String} `state` The object returned from the `.parse` method.
34418
+ * @param {Object} `options`
34419
+ * @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
34420
+ * @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
34421
+ * @return {RegExp} Returns a regex created from the given pattern.
34422
+ * @api public
34423
+ */
34424
+
34390
34425
 
34391
- picomatch$1.makeRe = (input, options, returnOutput = false, returnState = false) => {
34426
+ picomatch$1.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
34392
34427
  if (!input || typeof input !== 'string') {
34393
34428
  throw new TypeError('Expected a non-empty string');
34394
34429
  }
34395
34430
 
34396
- const opts = options || {};
34397
34431
  let parsed = {
34398
34432
  negated: false,
34399
34433
  fastpaths: true
34400
34434
  };
34401
- let prefix = '';
34402
- let output;
34403
34435
 
34404
- if (input.startsWith('./')) {
34405
- input = input.slice(2);
34406
- prefix = parsed.prefix = './';
34436
+ if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
34437
+ parsed.output = parse_1$2.fastpaths(input, options);
34407
34438
  }
34408
34439
 
34409
- if (opts.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
34410
- output = parse_1$2.fastpaths(input, options);
34411
- }
34412
-
34413
- if (output === undefined) {
34440
+ if (!parsed.output) {
34414
34441
  parsed = parse_1$2(input, options);
34415
- parsed.prefix = prefix + (parsed.prefix || '');
34416
- } else {
34417
- parsed.output = output;
34418
34442
  }
34419
34443
 
34420
34444
  return picomatch$1.compileRe(parsed, options, returnOutput, returnState);
@@ -34461,7 +34485,7 @@ var picomatch_1 = picomatch$1;
34461
34485
 
34462
34486
  var picomatch = picomatch_1;
34463
34487
 
34464
- const isEmptyString = val => typeof val === 'string' && (val === '' || val === './');
34488
+ const isEmptyString = val => val === '' || val === './';
34465
34489
  /**
34466
34490
  * Returns an array of strings that match one or more glob patterns.
34467
34491
  *
@@ -34472,9 +34496,9 @@ const isEmptyString = val => typeof val === 'string' && (val === '' || val === '
34472
34496
  * console.log(mm(['a.js', 'a.txt'], ['*.js']));
34473
34497
  * //=> [ 'a.js' ]
34474
34498
  * ```
34475
- * @param {String|Array<string>} list List of strings to match.
34476
- * @param {String|Array<string>} patterns One or more glob patterns to use for matching.
34477
- * @param {Object} options See available [options](#options)
34499
+ * @param {String|Array<string>} `list` List of strings to match.
34500
+ * @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
34501
+ * @param {Object} `options` See available [options](#options)
34478
34502
  * @return {Array} Returns an array of matches
34479
34503
  * @summary false
34480
34504
  * @api public
@@ -34569,9 +34593,9 @@ micromatch.matcher = (pattern, options) => picomatch(pattern, options);
34569
34593
  * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
34570
34594
  * console.log(mm.isMatch('a.a', 'b.*')); //=> false
34571
34595
  * ```
34572
- * @param {String} str The string to test.
34573
- * @param {String|Array} patterns One or more glob patterns to use for matching.
34574
- * @param {Object} [options] See available [options](#options).
34596
+ * @param {String} `str` The string to test.
34597
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
34598
+ * @param {Object} `[options]` See available [options](#options).
34575
34599
  * @return {Boolean} Returns true if any patterns match `str`
34576
34600
  * @api public
34577
34601
  */
@@ -34639,7 +34663,7 @@ micromatch.not = (list, patterns, options = {}) => {
34639
34663
  * @param {String} `str` The string to match.
34640
34664
  * @param {String|Array} `patterns` Glob pattern to use for matching.
34641
34665
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
34642
- * @return {Boolean} Returns true if the patter matches any part of `str`.
34666
+ * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
34643
34667
  * @api public
34644
34668
  */
34645
34669
 
@@ -34715,7 +34739,7 @@ micromatch.matchKeys = (obj, patterns, options) => {
34715
34739
  * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
34716
34740
  * @param {String|Array} `patterns` One or more glob patterns to use for matching.
34717
34741
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
34718
- * @return {Boolean} Returns true if any patterns match `str`
34742
+ * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
34719
34743
  * @api public
34720
34744
  */
34721
34745
 
@@ -34753,7 +34777,7 @@ micromatch.some = (list, patterns, options) => {
34753
34777
  * @param {String|Array} `list` The string or array of strings to test.
34754
34778
  * @param {String|Array} `patterns` One or more glob patterns to use for matching.
34755
34779
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
34756
- * @return {Boolean} Returns true if any patterns match `str`
34780
+ * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
34757
34781
  * @api public
34758
34782
  */
34759
34783
 
@@ -34821,7 +34845,7 @@ micromatch.all = (str, patterns, options) => {
34821
34845
  * @param {String} `glob` Glob pattern to use for matching.
34822
34846
  * @param {String} `input` String to match
34823
34847
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
34824
- * @return {Boolean} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
34848
+ * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
34825
34849
  * @api public
34826
34850
  */
34827
34851
 
@@ -35285,20 +35309,24 @@ var async$4 = createCommonjsModule(function (module, exports) {
35285
35309
  function read(path, settings, callback) {
35286
35310
  settings.fs.lstat(path, (lstatError, lstat) => {
35287
35311
  if (lstatError !== null) {
35288
- return callFailureCallback(callback, lstatError);
35312
+ callFailureCallback(callback, lstatError);
35313
+ return;
35289
35314
  }
35290
35315
 
35291
35316
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
35292
- return callSuccessCallback(callback, lstat);
35317
+ callSuccessCallback(callback, lstat);
35318
+ return;
35293
35319
  }
35294
35320
 
35295
35321
  settings.fs.stat(path, (statError, stat) => {
35296
35322
  if (statError !== null) {
35297
35323
  if (settings.throwErrorOnBrokenSymbolicLink) {
35298
- return callFailureCallback(callback, statError);
35324
+ callFailureCallback(callback, statError);
35325
+ return;
35299
35326
  }
35300
35327
 
35301
- return callSuccessCallback(callback, lstat);
35328
+ callSuccessCallback(callback, lstat);
35329
+ return;
35302
35330
  }
35303
35331
 
35304
35332
  if (settings.markSymbolicLink) {
@@ -35411,7 +35439,8 @@ var out$3 = createCommonjsModule(function (module, exports) {
35411
35439
 
35412
35440
  function stat(path, optionsOrSettingsOrCallback, callback) {
35413
35441
  if (typeof optionsOrSettingsOrCallback === 'function') {
35414
- return async$4.read(path, getSettings(), optionsOrSettingsOrCallback);
35442
+ async$4.read(path, getSettings(), optionsOrSettingsOrCallback);
35443
+ return;
35415
35444
  }
35416
35445
 
35417
35446
  async$4.read(path, getSettings(optionsOrSettingsOrCallback), callback);
@@ -35437,7 +35466,7 @@ var out$3 = createCommonjsModule(function (module, exports) {
35437
35466
 
35438
35467
  /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
35439
35468
  let promise$1;
35440
- var queueMicrotask_1 = typeof queueMicrotask === 'function' ? queueMicrotask.bind(globalThis) // reuse resolved promise, and allocate it lazily
35469
+ var queueMicrotask_1 = typeof queueMicrotask === 'function' ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global) // reuse resolved promise, and allocate it lazily
35441
35470
  : cb => (promise$1 || (promise$1 = Promise.resolve())).then(cb).catch(err => setTimeout(() => {
35442
35471
  throw err;
35443
35472
  }, 0));
@@ -35504,14 +35533,19 @@ var constants = createCommonjsModule(function (module, exports) {
35504
35533
  });
35505
35534
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
35506
35535
  const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.');
35507
- const MAJOR_VERSION = parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
35508
- const MINOR_VERSION = parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
35536
+
35537
+ if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) {
35538
+ throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
35539
+ }
35540
+
35541
+ const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
35542
+ const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
35509
35543
  const SUPPORTED_MAJOR_VERSION = 10;
35510
35544
  const SUPPORTED_MINOR_VERSION = 10;
35511
35545
  const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
35512
35546
  const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
35513
- /**
35514
- * IS `true` for Node.js 10.10 and greater.
35547
+ /**
35548
+ * IS `true` for Node.js 10.10 and greater.
35515
35549
  */
35516
35550
 
35517
35551
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
@@ -35562,8 +35596,8 @@ var common$1 = createCommonjsModule(function (module, exports) {
35562
35596
  exports.joinPathSegments = void 0;
35563
35597
 
35564
35598
  function joinPathSegments(a, b, separator) {
35565
- /**
35566
- * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
35599
+ /**
35600
+ * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
35567
35601
  */
35568
35602
  if (a.endsWith(separator)) {
35569
35603
  return a + b;
@@ -35584,10 +35618,11 @@ var async$3 = createCommonjsModule(function (module, exports) {
35584
35618
 
35585
35619
  function read(directory, settings, callback) {
35586
35620
  if (!settings.stats && constants.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
35587
- return readdirWithFileTypes(directory, settings, callback);
35621
+ readdirWithFileTypes(directory, settings, callback);
35622
+ return;
35588
35623
  }
35589
35624
 
35590
- return readdir(directory, settings, callback);
35625
+ readdir(directory, settings, callback);
35591
35626
  }
35592
35627
 
35593
35628
  exports.read = read;
@@ -35597,7 +35632,8 @@ var async$3 = createCommonjsModule(function (module, exports) {
35597
35632
  withFileTypes: true
35598
35633
  }, (readdirError, dirents) => {
35599
35634
  if (readdirError !== null) {
35600
- return callFailureCallback(callback, readdirError);
35635
+ callFailureCallback(callback, readdirError);
35636
+ return;
35601
35637
  }
35602
35638
 
35603
35639
  const entries = dirents.map(dirent => ({
@@ -35607,13 +35643,15 @@ var async$3 = createCommonjsModule(function (module, exports) {
35607
35643
  }));
35608
35644
 
35609
35645
  if (!settings.followSymbolicLinks) {
35610
- return callSuccessCallback(callback, entries);
35646
+ callSuccessCallback(callback, entries);
35647
+ return;
35611
35648
  }
35612
35649
 
35613
35650
  const tasks = entries.map(entry => makeRplTaskEntry(entry, settings));
35614
35651
  runParallel_1(tasks, (rplError, rplEntries) => {
35615
35652
  if (rplError !== null) {
35616
- return callFailureCallback(callback, rplError);
35653
+ callFailureCallback(callback, rplError);
35654
+ return;
35617
35655
  }
35618
35656
 
35619
35657
  callSuccessCallback(callback, rplEntries);
@@ -35626,20 +35664,23 @@ var async$3 = createCommonjsModule(function (module, exports) {
35626
35664
  function makeRplTaskEntry(entry, settings) {
35627
35665
  return done => {
35628
35666
  if (!entry.dirent.isSymbolicLink()) {
35629
- return done(null, entry);
35667
+ done(null, entry);
35668
+ return;
35630
35669
  }
35631
35670
 
35632
35671
  settings.fs.stat(entry.path, (statError, stats) => {
35633
35672
  if (statError !== null) {
35634
35673
  if (settings.throwErrorOnBrokenSymbolicLink) {
35635
- return done(statError);
35674
+ done(statError);
35675
+ return;
35636
35676
  }
35637
35677
 
35638
- return done(null, entry);
35678
+ done(null, entry);
35679
+ return;
35639
35680
  }
35640
35681
 
35641
35682
  entry.dirent = utils$7.fs.createDirentFromStats(entry.name, stats);
35642
- return done(null, entry);
35683
+ done(null, entry);
35643
35684
  });
35644
35685
  };
35645
35686
  }
@@ -35647,33 +35688,39 @@ var async$3 = createCommonjsModule(function (module, exports) {
35647
35688
  function readdir(directory, settings, callback) {
35648
35689
  settings.fs.readdir(directory, (readdirError, names) => {
35649
35690
  if (readdirError !== null) {
35650
- return callFailureCallback(callback, readdirError);
35691
+ callFailureCallback(callback, readdirError);
35692
+ return;
35651
35693
  }
35652
35694
 
35653
- const filepaths = names.map(name => common$1.joinPathSegments(directory, name, settings.pathSegmentSeparator));
35654
- const tasks = filepaths.map(filepath => {
35655
- return done => out$3.stat(filepath, settings.fsStatSettings, done);
35695
+ const tasks = names.map(name => {
35696
+ const path = common$1.joinPathSegments(directory, name, settings.pathSegmentSeparator);
35697
+ return done => {
35698
+ out$3.stat(path, settings.fsStatSettings, (error, stats) => {
35699
+ if (error !== null) {
35700
+ done(error);
35701
+ return;
35702
+ }
35703
+
35704
+ const entry = {
35705
+ name,
35706
+ path,
35707
+ dirent: utils$7.fs.createDirentFromStats(name, stats)
35708
+ };
35709
+
35710
+ if (settings.stats) {
35711
+ entry.stats = stats;
35712
+ }
35713
+
35714
+ done(null, entry);
35715
+ });
35716
+ };
35656
35717
  });
35657
- runParallel_1(tasks, (rplError, results) => {
35718
+ runParallel_1(tasks, (rplError, entries) => {
35658
35719
  if (rplError !== null) {
35659
- return callFailureCallback(callback, rplError);
35720
+ callFailureCallback(callback, rplError);
35721
+ return;
35660
35722
  }
35661
35723
 
35662
- const entries = [];
35663
- names.forEach((name, index) => {
35664
- const stats = results[index];
35665
- const entry = {
35666
- name,
35667
- path: filepaths[index],
35668
- dirent: utils$7.fs.createDirentFromStats(name, stats)
35669
- };
35670
-
35671
- if (settings.stats) {
35672
- entry.stats = stats;
35673
- }
35674
-
35675
- entries.push(entry);
35676
- });
35677
35724
  callSuccessCallback(callback, entries);
35678
35725
  });
35679
35726
  });
@@ -35821,7 +35868,8 @@ var out$2 = createCommonjsModule(function (module, exports) {
35821
35868
 
35822
35869
  function scandir(path, optionsOrSettingsOrCallback, callback) {
35823
35870
  if (typeof optionsOrSettingsOrCallback === 'function') {
35824
- return async$3.read(path, getSettings(), optionsOrSettingsOrCallback);
35871
+ async$3.read(path, getSettings(), optionsOrSettingsOrCallback);
35872
+ return;
35825
35873
  }
35826
35874
 
35827
35875
  async$3.read(path, getSettings(optionsOrSettingsOrCallback), callback);
@@ -36160,8 +36208,8 @@ var common = createCommonjsModule(function (module, exports) {
36160
36208
  if (a === '') {
36161
36209
  return b;
36162
36210
  }
36163
- /**
36164
- * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
36211
+ /**
36212
+ * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
36165
36213
  */
36166
36214
 
36167
36215
 
@@ -36259,7 +36307,8 @@ class AsyncReader extends reader$1.default {
36259
36307
  _worker(item, done) {
36260
36308
  this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => {
36261
36309
  if (error !== null) {
36262
- return done(error, undefined);
36310
+ done(error, undefined);
36311
+ return;
36263
36312
  }
36264
36313
 
36265
36314
  for (const entry of entries) {
@@ -36501,7 +36550,7 @@ class Settings {
36501
36550
  constructor(_options = {}) {
36502
36551
  this._options = _options;
36503
36552
  this.basePath = this._getValue(this._options.basePath, undefined);
36504
- this.concurrency = this._getValue(this._options.concurrency, Infinity);
36553
+ this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
36505
36554
  this.deepFilter = this._getValue(this._options.deepFilter, null);
36506
36555
  this.entryFilter = this._getValue(this._options.entryFilter, null);
36507
36556
  this.errorFilter = this._getValue(this._options.errorFilter, null);
@@ -36538,7 +36587,8 @@ var out$1 = createCommonjsModule(function (module, exports) {
36538
36587
 
36539
36588
  function walk(directory, optionsOrSettingsOrCallback, callback) {
36540
36589
  if (typeof optionsOrSettingsOrCallback === 'function') {
36541
- return new async$1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
36590
+ new async$1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
36591
+ return;
36542
36592
  }
36543
36593
 
36544
36594
  new async$1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
@@ -42191,15 +42241,15 @@ function needsParens(path, options) {
42191
42241
 
42192
42242
  case "IntersectionTypeAnnotation":
42193
42243
  case "UnionTypeAnnotation":
42194
- return parent.type === "ArrayTypeAnnotation" || parent.type === "NullableTypeAnnotation" || parent.type === "IntersectionTypeAnnotation" || parent.type === "UnionTypeAnnotation";
42244
+ return parent.type === "ArrayTypeAnnotation" || parent.type === "NullableTypeAnnotation" || parent.type === "IntersectionTypeAnnotation" || parent.type === "UnionTypeAnnotation" || name === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType");
42195
42245
 
42196
42246
  case "NullableTypeAnnotation":
42197
- return parent.type === "ArrayTypeAnnotation";
42247
+ return parent.type === "ArrayTypeAnnotation" || name === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType");
42198
42248
 
42199
42249
  case "FunctionTypeAnnotation":
42200
42250
  {
42201
42251
  const ancestor = parent.type === "NullableTypeAnnotation" ? path.getParentNode(1) : parent;
42202
- return ancestor.type === "UnionTypeAnnotation" || ancestor.type === "IntersectionTypeAnnotation" || ancestor.type === "ArrayTypeAnnotation" || // We should check ancestor's parent to know whether the parentheses
42252
+ return ancestor.type === "UnionTypeAnnotation" || ancestor.type === "IntersectionTypeAnnotation" || ancestor.type === "ArrayTypeAnnotation" || name === "objectType" && (ancestor.type === "IndexedAccessType" || ancestor.type === "OptionalIndexedAccessType") || // We should check ancestor's parent to know whether the parentheses
42203
42253
  // are really needed, but since ??T doesn't make sense this check
42204
42254
  // will almost never be true.
42205
42255
  ancestor.type === "NullableTypeAnnotation" || // See #5283
@@ -42209,6 +42259,9 @@ function needsParens(path, options) {
42209
42259
  case "OptionalIndexedAccessType":
42210
42260
  return name === "objectType" && parent.type === "IndexedAccessType";
42211
42261
 
42262
+ case "TypeofTypeAnnotation":
42263
+ return name === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType");
42264
+
42212
42265
  case "StringLiteral":
42213
42266
  case "NumericLiteral":
42214
42267
  case "Literal":
@@ -47954,6 +48007,10 @@ function printTypescript$1(path, options, print) {
47954
48007
  parts.push("static ");
47955
48008
  }
47956
48009
 
48010
+ if (node.override) {
48011
+ parts.push("override ");
48012
+ }
48013
+
47957
48014
  if (node.readonly) {
47958
48015
  parts.push("readonly ");
47959
48016
  }