@univerjs/core 0.2.15 → 0.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +7 -7
- package/lib/es/index.js +996 -740
- package/lib/types/common/interceptor.d.ts +7 -0
- package/lib/types/docs/data-model/index.d.ts +1 -1
- package/lib/types/docs/data-model/text-x/build-utils/selection.d.ts +1 -1
- package/lib/types/index.d.ts +4 -3
- package/lib/types/services/locale/locale.service.d.ts +1 -1
- package/lib/types/services/resource-loader/resource-loader.service.d.ts +1 -1
- package/lib/types/services/resource-manager/type.d.ts +1 -1
- package/lib/types/shared/array-search.d.ts +7 -0
- package/lib/types/shared/index.d.ts +1 -2
- package/lib/types/shared/object-matrix-query.d.ts +3 -0
- package/lib/types/shared/object-matrix.d.ts +1 -1
- package/lib/types/shared/rectangle.d.ts +14 -0
- package/lib/types/shared/tools.d.ts +0 -17
- package/lib/types/sheets/range.d.ts +2 -2
- package/lib/types/sheets/span-model.d.ts +8 -1
- package/lib/types/sheets/view-model.d.ts +4 -1
- package/lib/types/sheets/worksheet.d.ts +14 -0
- package/lib/types/types/enum/index.d.ts +2 -2
- package/lib/types/types/enum/text-style.d.ts +1 -1
- package/lib/types/types/interfaces/index.d.ts +1 -1
- package/lib/types/univer.d.ts +4 -4
- package/lib/umd/index.js +7 -7
- package/package.json +7 -7
- package/lib/types/shared/debounce.d.ts +0 -27
package/lib/es/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import React__default, { useState, useEffect, useRef, useMemo, createContext, useCallback, useContext } from "react";
|
|
7
|
-
import { BehaviorSubject, Subject, Observable, filter, merge, timer, map, distinctUntilChanged, skip, of, combineLatest } from "rxjs";
|
|
7
|
+
import { BehaviorSubject, Subject, Observable, filter, merge as merge$1, timer, map, distinctUntilChanged, skip, of, combineLatest } from "rxjs";
|
|
8
8
|
import { filter as filter$1, debounceTime, first, map as map$1 } from "rxjs/operators";
|
|
9
9
|
import { Tools as Tools$1, normalizeTextRuns as normalizeTextRuns$1, generateRandomId as generateRandomId$1, DataStreamTreeTokenType as DataStreamTreeTokenType$1 } from "@univerjs/core";
|
|
10
10
|
function _mergeNamespaces(n, m) {
|
|
@@ -46,6 +46,789 @@ function installRequestIdleCallback() {
|
|
|
46
46
|
}, "shimCancelRIC"));
|
|
47
47
|
}
|
|
48
48
|
__name(installRequestIdleCallback, "installRequestIdleCallback");
|
|
49
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global, freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(), Symbol$1 = root.Symbol, objectProto$9 = Object.prototype, hasOwnProperty$7 = objectProto$9.hasOwnProperty, nativeObjectToString$1 = objectProto$9.toString, symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
50
|
+
function getRawTag(value) {
|
|
51
|
+
var isOwn = hasOwnProperty$7.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
52
|
+
try {
|
|
53
|
+
value[symToStringTag$1] = void 0;
|
|
54
|
+
var unmasked = !0;
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
var result = nativeObjectToString$1.call(value);
|
|
58
|
+
return unmasked && (isOwn ? value[symToStringTag$1] = tag : delete value[symToStringTag$1]), result;
|
|
59
|
+
}
|
|
60
|
+
__name(getRawTag, "getRawTag");
|
|
61
|
+
var objectProto$8 = Object.prototype, nativeObjectToString = objectProto$8.toString;
|
|
62
|
+
function objectToString(value) {
|
|
63
|
+
return nativeObjectToString.call(value);
|
|
64
|
+
}
|
|
65
|
+
__name(objectToString, "objectToString");
|
|
66
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
67
|
+
function baseGetTag(value) {
|
|
68
|
+
return value == null ? value === void 0 ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
69
|
+
}
|
|
70
|
+
__name(baseGetTag, "baseGetTag");
|
|
71
|
+
function isObjectLike(value) {
|
|
72
|
+
return value != null && typeof value == "object";
|
|
73
|
+
}
|
|
74
|
+
__name(isObjectLike, "isObjectLike");
|
|
75
|
+
var symbolTag = "[object Symbol]";
|
|
76
|
+
function isSymbol(value) {
|
|
77
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
78
|
+
}
|
|
79
|
+
__name(isSymbol, "isSymbol");
|
|
80
|
+
function arrayMap(array, iteratee) {
|
|
81
|
+
for (var index2 = -1, length = array == null ? 0 : array.length, result = Array(length); ++index2 < length; )
|
|
82
|
+
result[index2] = iteratee(array[index2], index2, array);
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
__name(arrayMap, "arrayMap");
|
|
86
|
+
var isArray = Array.isArray, INFINITY$1 = 1 / 0, symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
87
|
+
function baseToString(value) {
|
|
88
|
+
if (typeof value == "string")
|
|
89
|
+
return value;
|
|
90
|
+
if (isArray(value))
|
|
91
|
+
return arrayMap(value, baseToString) + "";
|
|
92
|
+
if (isSymbol(value))
|
|
93
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
94
|
+
var result = value + "";
|
|
95
|
+
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
96
|
+
}
|
|
97
|
+
__name(baseToString, "baseToString");
|
|
98
|
+
var reWhitespace = /\s/;
|
|
99
|
+
function trimmedEndIndex(string) {
|
|
100
|
+
for (var index2 = string.length; index2-- && reWhitespace.test(string.charAt(index2)); )
|
|
101
|
+
;
|
|
102
|
+
return index2;
|
|
103
|
+
}
|
|
104
|
+
__name(trimmedEndIndex, "trimmedEndIndex");
|
|
105
|
+
var reTrimStart = /^\s+/;
|
|
106
|
+
function baseTrim(string) {
|
|
107
|
+
return string && string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "");
|
|
108
|
+
}
|
|
109
|
+
__name(baseTrim, "baseTrim");
|
|
110
|
+
function isObject$1(value) {
|
|
111
|
+
var type2 = typeof value;
|
|
112
|
+
return value != null && (type2 == "object" || type2 == "function");
|
|
113
|
+
}
|
|
114
|
+
__name(isObject$1, "isObject$1");
|
|
115
|
+
var NAN = NaN, reIsBadHex = /^[-+]0x[0-9a-f]+$/i, reIsBinary = /^0b[01]+$/i, reIsOctal = /^0o[0-7]+$/i, freeParseInt = parseInt;
|
|
116
|
+
function toNumber(value) {
|
|
117
|
+
if (typeof value == "number")
|
|
118
|
+
return value;
|
|
119
|
+
if (isSymbol(value))
|
|
120
|
+
return NAN;
|
|
121
|
+
if (isObject$1(value)) {
|
|
122
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
123
|
+
value = isObject$1(other) ? other + "" : other;
|
|
124
|
+
}
|
|
125
|
+
if (typeof value != "string")
|
|
126
|
+
return value === 0 ? value : +value;
|
|
127
|
+
value = baseTrim(value);
|
|
128
|
+
var isBinary = reIsBinary.test(value);
|
|
129
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
130
|
+
}
|
|
131
|
+
__name(toNumber, "toNumber");
|
|
132
|
+
function identity(value) {
|
|
133
|
+
return value;
|
|
134
|
+
}
|
|
135
|
+
__name(identity, "identity");
|
|
136
|
+
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
137
|
+
function isFunction$1(value) {
|
|
138
|
+
if (!isObject$1(value))
|
|
139
|
+
return !1;
|
|
140
|
+
var tag = baseGetTag(value);
|
|
141
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
142
|
+
}
|
|
143
|
+
__name(isFunction$1, "isFunction$1");
|
|
144
|
+
var coreJsData = root["__core-js_shared__"], maskSrcKey = function() {
|
|
145
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
146
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
147
|
+
}();
|
|
148
|
+
function isMasked(func) {
|
|
149
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
150
|
+
}
|
|
151
|
+
__name(isMasked, "isMasked");
|
|
152
|
+
var funcProto$2 = Function.prototype, funcToString$2 = funcProto$2.toString;
|
|
153
|
+
function toSource(func) {
|
|
154
|
+
if (func != null) {
|
|
155
|
+
try {
|
|
156
|
+
return funcToString$2.call(func);
|
|
157
|
+
} catch {
|
|
158
|
+
}
|
|
159
|
+
try {
|
|
160
|
+
return func + "";
|
|
161
|
+
} catch {
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return "";
|
|
165
|
+
}
|
|
166
|
+
__name(toSource, "toSource");
|
|
167
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto$1 = Function.prototype, objectProto$7 = Object.prototype, funcToString$1 = funcProto$1.toString, hasOwnProperty$6 = objectProto$7.hasOwnProperty, reIsNative = RegExp(
|
|
168
|
+
"^" + funcToString$1.call(hasOwnProperty$6).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
169
|
+
);
|
|
170
|
+
function baseIsNative(value) {
|
|
171
|
+
if (!isObject$1(value) || isMasked(value))
|
|
172
|
+
return !1;
|
|
173
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
174
|
+
return pattern.test(toSource(value));
|
|
175
|
+
}
|
|
176
|
+
__name(baseIsNative, "baseIsNative");
|
|
177
|
+
function getValue(object, key) {
|
|
178
|
+
return object == null ? void 0 : object[key];
|
|
179
|
+
}
|
|
180
|
+
__name(getValue, "getValue");
|
|
181
|
+
function getNative(object, key) {
|
|
182
|
+
var value = getValue(object, key);
|
|
183
|
+
return baseIsNative(value) ? value : void 0;
|
|
184
|
+
}
|
|
185
|
+
__name(getNative, "getNative");
|
|
186
|
+
var objectCreate = Object.create, baseCreate = function() {
|
|
187
|
+
function object() {
|
|
188
|
+
}
|
|
189
|
+
return __name(object, "object"), function(proto) {
|
|
190
|
+
if (!isObject$1(proto))
|
|
191
|
+
return {};
|
|
192
|
+
if (objectCreate)
|
|
193
|
+
return objectCreate(proto);
|
|
194
|
+
object.prototype = proto;
|
|
195
|
+
var result = new object();
|
|
196
|
+
return object.prototype = void 0, result;
|
|
197
|
+
};
|
|
198
|
+
}();
|
|
199
|
+
function apply(func, thisArg, args) {
|
|
200
|
+
switch (args.length) {
|
|
201
|
+
case 0:
|
|
202
|
+
return func.call(thisArg);
|
|
203
|
+
case 1:
|
|
204
|
+
return func.call(thisArg, args[0]);
|
|
205
|
+
case 2:
|
|
206
|
+
return func.call(thisArg, args[0], args[1]);
|
|
207
|
+
case 3:
|
|
208
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
209
|
+
}
|
|
210
|
+
return func.apply(thisArg, args);
|
|
211
|
+
}
|
|
212
|
+
__name(apply, "apply");
|
|
213
|
+
function copyArray(source, array) {
|
|
214
|
+
var index2 = -1, length = source.length;
|
|
215
|
+
for (array || (array = Array(length)); ++index2 < length; )
|
|
216
|
+
array[index2] = source[index2];
|
|
217
|
+
return array;
|
|
218
|
+
}
|
|
219
|
+
__name(copyArray, "copyArray");
|
|
220
|
+
var HOT_COUNT = 800, HOT_SPAN = 16, nativeNow = Date.now;
|
|
221
|
+
function shortOut(func) {
|
|
222
|
+
var count = 0, lastCalled = 0;
|
|
223
|
+
return function() {
|
|
224
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
225
|
+
if (lastCalled = stamp, remaining > 0) {
|
|
226
|
+
if (++count >= HOT_COUNT)
|
|
227
|
+
return arguments[0];
|
|
228
|
+
} else
|
|
229
|
+
count = 0;
|
|
230
|
+
return func.apply(void 0, arguments);
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
__name(shortOut, "shortOut");
|
|
234
|
+
function constant(value) {
|
|
235
|
+
return function() {
|
|
236
|
+
return value;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
__name(constant, "constant");
|
|
240
|
+
var defineProperty = function() {
|
|
241
|
+
try {
|
|
242
|
+
var func = getNative(Object, "defineProperty");
|
|
243
|
+
return func({}, "", {}), func;
|
|
244
|
+
} catch {
|
|
245
|
+
}
|
|
246
|
+
}(), baseSetToString = defineProperty ? function(func, string) {
|
|
247
|
+
return defineProperty(func, "toString", {
|
|
248
|
+
configurable: !0,
|
|
249
|
+
enumerable: !1,
|
|
250
|
+
value: constant(string),
|
|
251
|
+
writable: !0
|
|
252
|
+
});
|
|
253
|
+
} : identity, setToString = shortOut(baseSetToString), MAX_SAFE_INTEGER$1 = 9007199254740991, reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
254
|
+
function isIndex(value, length) {
|
|
255
|
+
var type2 = typeof value;
|
|
256
|
+
return length = length == null ? MAX_SAFE_INTEGER$1 : length, !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
257
|
+
}
|
|
258
|
+
__name(isIndex, "isIndex");
|
|
259
|
+
function baseAssignValue(object, key, value) {
|
|
260
|
+
key == "__proto__" && defineProperty ? defineProperty(object, key, {
|
|
261
|
+
configurable: !0,
|
|
262
|
+
enumerable: !0,
|
|
263
|
+
value,
|
|
264
|
+
writable: !0
|
|
265
|
+
}) : object[key] = value;
|
|
266
|
+
}
|
|
267
|
+
__name(baseAssignValue, "baseAssignValue");
|
|
268
|
+
function eq(value, other) {
|
|
269
|
+
return value === other || value !== value && other !== other;
|
|
270
|
+
}
|
|
271
|
+
__name(eq, "eq");
|
|
272
|
+
var objectProto$6 = Object.prototype, hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
273
|
+
function assignValue(object, key, value) {
|
|
274
|
+
var objValue = object[key];
|
|
275
|
+
(!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) && baseAssignValue(object, key, value);
|
|
276
|
+
}
|
|
277
|
+
__name(assignValue, "assignValue");
|
|
278
|
+
function copyObject(source, props, object, customizer) {
|
|
279
|
+
var isNew = !object;
|
|
280
|
+
object || (object = {});
|
|
281
|
+
for (var index2 = -1, length = props.length; ++index2 < length; ) {
|
|
282
|
+
var key = props[index2], newValue = void 0;
|
|
283
|
+
newValue === void 0 && (newValue = source[key]), isNew ? baseAssignValue(object, key, newValue) : assignValue(object, key, newValue);
|
|
284
|
+
}
|
|
285
|
+
return object;
|
|
286
|
+
}
|
|
287
|
+
__name(copyObject, "copyObject");
|
|
288
|
+
var nativeMax$1 = Math.max;
|
|
289
|
+
function overRest(func, start, transform) {
|
|
290
|
+
return start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0), function() {
|
|
291
|
+
for (var args = arguments, index2 = -1, length = nativeMax$1(args.length - start, 0), array = Array(length); ++index2 < length; )
|
|
292
|
+
array[index2] = args[start + index2];
|
|
293
|
+
index2 = -1;
|
|
294
|
+
for (var otherArgs = Array(start + 1); ++index2 < start; )
|
|
295
|
+
otherArgs[index2] = args[index2];
|
|
296
|
+
return otherArgs[start] = transform(array), apply(func, this, otherArgs);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
__name(overRest, "overRest");
|
|
300
|
+
function baseRest(func, start) {
|
|
301
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
302
|
+
}
|
|
303
|
+
__name(baseRest, "baseRest");
|
|
304
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
305
|
+
function isLength(value) {
|
|
306
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
307
|
+
}
|
|
308
|
+
__name(isLength, "isLength");
|
|
309
|
+
function isArrayLike(value) {
|
|
310
|
+
return value != null && isLength(value.length) && !isFunction$1(value);
|
|
311
|
+
}
|
|
312
|
+
__name(isArrayLike, "isArrayLike");
|
|
313
|
+
function isIterateeCall(value, index2, object) {
|
|
314
|
+
if (!isObject$1(object))
|
|
315
|
+
return !1;
|
|
316
|
+
var type2 = typeof index2;
|
|
317
|
+
return (type2 == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type2 == "string" && index2 in object) ? eq(object[index2], value) : !1;
|
|
318
|
+
}
|
|
319
|
+
__name(isIterateeCall, "isIterateeCall");
|
|
320
|
+
function createAssigner(assigner) {
|
|
321
|
+
return baseRest(function(object, sources) {
|
|
322
|
+
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
323
|
+
for (customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0, guard && isIterateeCall(sources[0], sources[1], guard) && (customizer = length < 3 ? void 0 : customizer, length = 1), object = Object(object); ++index2 < length; ) {
|
|
324
|
+
var source = sources[index2];
|
|
325
|
+
source && assigner(object, source, index2, customizer);
|
|
326
|
+
}
|
|
327
|
+
return object;
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
__name(createAssigner, "createAssigner");
|
|
331
|
+
var objectProto$5 = Object.prototype;
|
|
332
|
+
function isPrototype(value) {
|
|
333
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$5;
|
|
334
|
+
return value === proto;
|
|
335
|
+
}
|
|
336
|
+
__name(isPrototype, "isPrototype");
|
|
337
|
+
function baseTimes(n, iteratee) {
|
|
338
|
+
for (var index2 = -1, result = Array(n); ++index2 < n; )
|
|
339
|
+
result[index2] = iteratee(index2);
|
|
340
|
+
return result;
|
|
341
|
+
}
|
|
342
|
+
__name(baseTimes, "baseTimes");
|
|
343
|
+
var argsTag$1 = "[object Arguments]";
|
|
344
|
+
function baseIsArguments(value) {
|
|
345
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$1;
|
|
346
|
+
}
|
|
347
|
+
__name(baseIsArguments, "baseIsArguments");
|
|
348
|
+
var objectProto$4 = Object.prototype, hasOwnProperty$4 = objectProto$4.hasOwnProperty, propertyIsEnumerable = objectProto$4.propertyIsEnumerable, isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
349
|
+
return arguments;
|
|
350
|
+
}()) ? baseIsArguments : function(value) {
|
|
351
|
+
return isObjectLike(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
352
|
+
};
|
|
353
|
+
function stubFalse() {
|
|
354
|
+
return !1;
|
|
355
|
+
}
|
|
356
|
+
__name(stubFalse, "stubFalse");
|
|
357
|
+
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports, freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module, moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2, Buffer$1 = moduleExports$2 ? root.Buffer : void 0, nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0, isBuffer = nativeIsBuffer || stubFalse, argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", typedArrayTags = {};
|
|
358
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = !0;
|
|
359
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = !1;
|
|
360
|
+
function baseIsTypedArray(value) {
|
|
361
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
362
|
+
}
|
|
363
|
+
__name(baseIsTypedArray, "baseIsTypedArray");
|
|
364
|
+
function baseUnary(func) {
|
|
365
|
+
return function(value) {
|
|
366
|
+
return func(value);
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
__name(baseUnary, "baseUnary");
|
|
370
|
+
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports, freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module, moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1, freeProcess = moduleExports$1 && freeGlobal.process, nodeUtil = function() {
|
|
371
|
+
try {
|
|
372
|
+
var types2 = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
373
|
+
return types2 || freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
374
|
+
} catch {
|
|
375
|
+
}
|
|
376
|
+
}(), nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
377
|
+
function arrayLikeKeys(value, inherited) {
|
|
378
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
379
|
+
for (var key in value)
|
|
380
|
+
skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
381
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
382
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
383
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
384
|
+
isIndex(key, length)) || result.push(key);
|
|
385
|
+
return result;
|
|
386
|
+
}
|
|
387
|
+
__name(arrayLikeKeys, "arrayLikeKeys");
|
|
388
|
+
function overArg(func, transform) {
|
|
389
|
+
return function(arg) {
|
|
390
|
+
return func(transform(arg));
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
__name(overArg, "overArg");
|
|
394
|
+
function nativeKeysIn(object) {
|
|
395
|
+
var result = [];
|
|
396
|
+
if (object != null)
|
|
397
|
+
for (var key in Object(object))
|
|
398
|
+
result.push(key);
|
|
399
|
+
return result;
|
|
400
|
+
}
|
|
401
|
+
__name(nativeKeysIn, "nativeKeysIn");
|
|
402
|
+
var objectProto$3 = Object.prototype, hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
403
|
+
function baseKeysIn(object) {
|
|
404
|
+
if (!isObject$1(object))
|
|
405
|
+
return nativeKeysIn(object);
|
|
406
|
+
var isProto = isPrototype(object), result = [];
|
|
407
|
+
for (var key in object)
|
|
408
|
+
key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)) || result.push(key);
|
|
409
|
+
return result;
|
|
410
|
+
}
|
|
411
|
+
__name(baseKeysIn, "baseKeysIn");
|
|
412
|
+
function keysIn(object) {
|
|
413
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeysIn(object);
|
|
414
|
+
}
|
|
415
|
+
__name(keysIn, "keysIn");
|
|
416
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
417
|
+
function isKey(value, object) {
|
|
418
|
+
if (isArray(value))
|
|
419
|
+
return !1;
|
|
420
|
+
var type2 = typeof value;
|
|
421
|
+
return type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol(value) ? !0 : reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
422
|
+
}
|
|
423
|
+
__name(isKey, "isKey");
|
|
424
|
+
var nativeCreate = getNative(Object, "create");
|
|
425
|
+
function hashClear() {
|
|
426
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {}, this.size = 0;
|
|
427
|
+
}
|
|
428
|
+
__name(hashClear, "hashClear");
|
|
429
|
+
function hashDelete(key) {
|
|
430
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
431
|
+
return this.size -= result ? 1 : 0, result;
|
|
432
|
+
}
|
|
433
|
+
__name(hashDelete, "hashDelete");
|
|
434
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__", objectProto$2 = Object.prototype, hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
435
|
+
function hashGet(key) {
|
|
436
|
+
var data = this.__data__;
|
|
437
|
+
if (nativeCreate) {
|
|
438
|
+
var result = data[key];
|
|
439
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
440
|
+
}
|
|
441
|
+
return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
|
|
442
|
+
}
|
|
443
|
+
__name(hashGet, "hashGet");
|
|
444
|
+
var objectProto$1 = Object.prototype, hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
445
|
+
function hashHas(key) {
|
|
446
|
+
var data = this.__data__;
|
|
447
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
448
|
+
}
|
|
449
|
+
__name(hashHas, "hashHas");
|
|
450
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
451
|
+
function hashSet(key, value) {
|
|
452
|
+
var data = this.__data__;
|
|
453
|
+
return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value, this;
|
|
454
|
+
}
|
|
455
|
+
__name(hashSet, "hashSet");
|
|
456
|
+
function Hash(entries) {
|
|
457
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
458
|
+
for (this.clear(); ++index2 < length; ) {
|
|
459
|
+
var entry = entries[index2];
|
|
460
|
+
this.set(entry[0], entry[1]);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
__name(Hash, "Hash");
|
|
464
|
+
Hash.prototype.clear = hashClear;
|
|
465
|
+
Hash.prototype.delete = hashDelete;
|
|
466
|
+
Hash.prototype.get = hashGet;
|
|
467
|
+
Hash.prototype.has = hashHas;
|
|
468
|
+
Hash.prototype.set = hashSet;
|
|
469
|
+
function listCacheClear() {
|
|
470
|
+
this.__data__ = [], this.size = 0;
|
|
471
|
+
}
|
|
472
|
+
__name(listCacheClear, "listCacheClear");
|
|
473
|
+
function assocIndexOf(array, key) {
|
|
474
|
+
for (var length = array.length; length--; )
|
|
475
|
+
if (eq(array[length][0], key))
|
|
476
|
+
return length;
|
|
477
|
+
return -1;
|
|
478
|
+
}
|
|
479
|
+
__name(assocIndexOf, "assocIndexOf");
|
|
480
|
+
var arrayProto = Array.prototype, splice = arrayProto.splice;
|
|
481
|
+
function listCacheDelete(key) {
|
|
482
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
483
|
+
if (index2 < 0)
|
|
484
|
+
return !1;
|
|
485
|
+
var lastIndex = data.length - 1;
|
|
486
|
+
return index2 == lastIndex ? data.pop() : splice.call(data, index2, 1), --this.size, !0;
|
|
487
|
+
}
|
|
488
|
+
__name(listCacheDelete, "listCacheDelete");
|
|
489
|
+
function listCacheGet(key) {
|
|
490
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
491
|
+
return index2 < 0 ? void 0 : data[index2][1];
|
|
492
|
+
}
|
|
493
|
+
__name(listCacheGet, "listCacheGet");
|
|
494
|
+
function listCacheHas(key) {
|
|
495
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
496
|
+
}
|
|
497
|
+
__name(listCacheHas, "listCacheHas");
|
|
498
|
+
function listCacheSet(key, value) {
|
|
499
|
+
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
500
|
+
return index2 < 0 ? (++this.size, data.push([key, value])) : data[index2][1] = value, this;
|
|
501
|
+
}
|
|
502
|
+
__name(listCacheSet, "listCacheSet");
|
|
503
|
+
function ListCache(entries) {
|
|
504
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
505
|
+
for (this.clear(); ++index2 < length; ) {
|
|
506
|
+
var entry = entries[index2];
|
|
507
|
+
this.set(entry[0], entry[1]);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
__name(ListCache, "ListCache");
|
|
511
|
+
ListCache.prototype.clear = listCacheClear;
|
|
512
|
+
ListCache.prototype.delete = listCacheDelete;
|
|
513
|
+
ListCache.prototype.get = listCacheGet;
|
|
514
|
+
ListCache.prototype.has = listCacheHas;
|
|
515
|
+
ListCache.prototype.set = listCacheSet;
|
|
516
|
+
var Map$1 = getNative(root, "Map");
|
|
517
|
+
function mapCacheClear() {
|
|
518
|
+
this.size = 0, this.__data__ = {
|
|
519
|
+
hash: new Hash(),
|
|
520
|
+
map: new (Map$1 || ListCache)(),
|
|
521
|
+
string: new Hash()
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
__name(mapCacheClear, "mapCacheClear");
|
|
525
|
+
function isKeyable(value) {
|
|
526
|
+
var type2 = typeof value;
|
|
527
|
+
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
|
|
528
|
+
}
|
|
529
|
+
__name(isKeyable, "isKeyable");
|
|
530
|
+
function getMapData(map2, key) {
|
|
531
|
+
var data = map2.__data__;
|
|
532
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
533
|
+
}
|
|
534
|
+
__name(getMapData, "getMapData");
|
|
535
|
+
function mapCacheDelete(key) {
|
|
536
|
+
var result = getMapData(this, key).delete(key);
|
|
537
|
+
return this.size -= result ? 1 : 0, result;
|
|
538
|
+
}
|
|
539
|
+
__name(mapCacheDelete, "mapCacheDelete");
|
|
540
|
+
function mapCacheGet(key) {
|
|
541
|
+
return getMapData(this, key).get(key);
|
|
542
|
+
}
|
|
543
|
+
__name(mapCacheGet, "mapCacheGet");
|
|
544
|
+
function mapCacheHas(key) {
|
|
545
|
+
return getMapData(this, key).has(key);
|
|
546
|
+
}
|
|
547
|
+
__name(mapCacheHas, "mapCacheHas");
|
|
548
|
+
function mapCacheSet(key, value) {
|
|
549
|
+
var data = getMapData(this, key), size = data.size;
|
|
550
|
+
return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
|
|
551
|
+
}
|
|
552
|
+
__name(mapCacheSet, "mapCacheSet");
|
|
553
|
+
function MapCache(entries) {
|
|
554
|
+
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
555
|
+
for (this.clear(); ++index2 < length; ) {
|
|
556
|
+
var entry = entries[index2];
|
|
557
|
+
this.set(entry[0], entry[1]);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
__name(MapCache, "MapCache");
|
|
561
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
562
|
+
MapCache.prototype.delete = mapCacheDelete;
|
|
563
|
+
MapCache.prototype.get = mapCacheGet;
|
|
564
|
+
MapCache.prototype.has = mapCacheHas;
|
|
565
|
+
MapCache.prototype.set = mapCacheSet;
|
|
566
|
+
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
567
|
+
function memoize(func, resolver) {
|
|
568
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function")
|
|
569
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
570
|
+
var memoized = /* @__PURE__ */ __name(function() {
|
|
571
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
572
|
+
if (cache.has(key))
|
|
573
|
+
return cache.get(key);
|
|
574
|
+
var result = func.apply(this, args);
|
|
575
|
+
return memoized.cache = cache.set(key, result) || cache, result;
|
|
576
|
+
}, "memoized");
|
|
577
|
+
return memoized.cache = new (memoize.Cache || MapCache)(), memoized;
|
|
578
|
+
}
|
|
579
|
+
__name(memoize, "memoize");
|
|
580
|
+
memoize.Cache = MapCache;
|
|
581
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
582
|
+
function memoizeCapped(func) {
|
|
583
|
+
var result = memoize(func, function(key) {
|
|
584
|
+
return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key;
|
|
585
|
+
}), cache = result.cache;
|
|
586
|
+
return result;
|
|
587
|
+
}
|
|
588
|
+
__name(memoizeCapped, "memoizeCapped");
|
|
589
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped(function(string) {
|
|
590
|
+
var result = [];
|
|
591
|
+
return string.charCodeAt(0) === 46 && result.push(""), string.replace(rePropName, function(match, number, quote, subString) {
|
|
592
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
593
|
+
}), result;
|
|
594
|
+
});
|
|
595
|
+
function toString(value) {
|
|
596
|
+
return value == null ? "" : baseToString(value);
|
|
597
|
+
}
|
|
598
|
+
__name(toString, "toString");
|
|
599
|
+
function castPath(value, object) {
|
|
600
|
+
return isArray(value) ? value : isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
601
|
+
}
|
|
602
|
+
__name(castPath, "castPath");
|
|
603
|
+
var INFINITY = 1 / 0;
|
|
604
|
+
function toKey(value) {
|
|
605
|
+
if (typeof value == "string" || isSymbol(value))
|
|
606
|
+
return value;
|
|
607
|
+
var result = value + "";
|
|
608
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
609
|
+
}
|
|
610
|
+
__name(toKey, "toKey");
|
|
611
|
+
function baseGet(object, path) {
|
|
612
|
+
path = castPath(path, object);
|
|
613
|
+
for (var index2 = 0, length = path.length; object != null && index2 < length; )
|
|
614
|
+
object = object[toKey(path[index2++])];
|
|
615
|
+
return index2 && index2 == length ? object : void 0;
|
|
616
|
+
}
|
|
617
|
+
__name(baseGet, "baseGet");
|
|
618
|
+
function get(object, path, defaultValue) {
|
|
619
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
620
|
+
return result === void 0 ? defaultValue : result;
|
|
621
|
+
}
|
|
622
|
+
__name(get, "get");
|
|
623
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object), objectTag = "[object Object]", funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, objectCtorString = funcToString.call(Object);
|
|
624
|
+
function isPlainObject(value) {
|
|
625
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag)
|
|
626
|
+
return !1;
|
|
627
|
+
var proto = getPrototype(value);
|
|
628
|
+
if (proto === null)
|
|
629
|
+
return !0;
|
|
630
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
631
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
632
|
+
}
|
|
633
|
+
__name(isPlainObject, "isPlainObject");
|
|
634
|
+
function stackClear() {
|
|
635
|
+
this.__data__ = new ListCache(), this.size = 0;
|
|
636
|
+
}
|
|
637
|
+
__name(stackClear, "stackClear");
|
|
638
|
+
function stackDelete(key) {
|
|
639
|
+
var data = this.__data__, result = data.delete(key);
|
|
640
|
+
return this.size = data.size, result;
|
|
641
|
+
}
|
|
642
|
+
__name(stackDelete, "stackDelete");
|
|
643
|
+
function stackGet(key) {
|
|
644
|
+
return this.__data__.get(key);
|
|
645
|
+
}
|
|
646
|
+
__name(stackGet, "stackGet");
|
|
647
|
+
function stackHas(key) {
|
|
648
|
+
return this.__data__.has(key);
|
|
649
|
+
}
|
|
650
|
+
__name(stackHas, "stackHas");
|
|
651
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
652
|
+
function stackSet(key, value) {
|
|
653
|
+
var data = this.__data__;
|
|
654
|
+
if (data instanceof ListCache) {
|
|
655
|
+
var pairs = data.__data__;
|
|
656
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1)
|
|
657
|
+
return pairs.push([key, value]), this.size = ++data.size, this;
|
|
658
|
+
data = this.__data__ = new MapCache(pairs);
|
|
659
|
+
}
|
|
660
|
+
return data.set(key, value), this.size = data.size, this;
|
|
661
|
+
}
|
|
662
|
+
__name(stackSet, "stackSet");
|
|
663
|
+
function Stack(entries) {
|
|
664
|
+
var data = this.__data__ = new ListCache(entries);
|
|
665
|
+
this.size = data.size;
|
|
666
|
+
}
|
|
667
|
+
__name(Stack, "Stack");
|
|
668
|
+
Stack.prototype.clear = stackClear;
|
|
669
|
+
Stack.prototype.delete = stackDelete;
|
|
670
|
+
Stack.prototype.get = stackGet;
|
|
671
|
+
Stack.prototype.has = stackHas;
|
|
672
|
+
Stack.prototype.set = stackSet;
|
|
673
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports, freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports, Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
674
|
+
Buffer2 && Buffer2.allocUnsafe;
|
|
675
|
+
function cloneBuffer(buffer, isDeep) {
|
|
676
|
+
return buffer.slice();
|
|
677
|
+
}
|
|
678
|
+
__name(cloneBuffer, "cloneBuffer");
|
|
679
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
680
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
681
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
682
|
+
return new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer)), result;
|
|
683
|
+
}
|
|
684
|
+
__name(cloneArrayBuffer, "cloneArrayBuffer");
|
|
685
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
686
|
+
var buffer = cloneArrayBuffer(typedArray.buffer);
|
|
687
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
688
|
+
}
|
|
689
|
+
__name(cloneTypedArray, "cloneTypedArray");
|
|
690
|
+
function initCloneObject(object) {
|
|
691
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
692
|
+
}
|
|
693
|
+
__name(initCloneObject, "initCloneObject");
|
|
694
|
+
function createBaseFor(fromRight) {
|
|
695
|
+
return function(object, iteratee, keysFunc) {
|
|
696
|
+
for (var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) {
|
|
697
|
+
var key = props[++index2];
|
|
698
|
+
if (iteratee(iterable[key], key, iterable) === !1)
|
|
699
|
+
break;
|
|
700
|
+
}
|
|
701
|
+
return object;
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
__name(createBaseFor, "createBaseFor");
|
|
705
|
+
var baseFor = createBaseFor(), now = /* @__PURE__ */ __name(function() {
|
|
706
|
+
return root.Date.now();
|
|
707
|
+
}, "now"), FUNC_ERROR_TEXT = "Expected a function", nativeMax = Math.max, nativeMin = Math.min;
|
|
708
|
+
function debounce(func, wait, options) {
|
|
709
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = !1, maxing = !1, trailing = !0;
|
|
710
|
+
if (typeof func != "function")
|
|
711
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
712
|
+
wait = toNumber(wait) || 0, isObject$1(options) && (leading = !!options.leading, maxing = "maxWait" in options, maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait, trailing = "trailing" in options ? !!options.trailing : trailing);
|
|
713
|
+
function invokeFunc(time) {
|
|
714
|
+
var args = lastArgs, thisArg = lastThis;
|
|
715
|
+
return lastArgs = lastThis = void 0, lastInvokeTime = time, result = func.apply(thisArg, args), result;
|
|
716
|
+
}
|
|
717
|
+
__name(invokeFunc, "invokeFunc");
|
|
718
|
+
function leadingEdge(time) {
|
|
719
|
+
return lastInvokeTime = time, timerId = setTimeout(timerExpired, wait), leading ? invokeFunc(time) : result;
|
|
720
|
+
}
|
|
721
|
+
__name(leadingEdge, "leadingEdge");
|
|
722
|
+
function remainingWait(time) {
|
|
723
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
724
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
725
|
+
}
|
|
726
|
+
__name(remainingWait, "remainingWait");
|
|
727
|
+
function shouldInvoke(time) {
|
|
728
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
729
|
+
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
730
|
+
}
|
|
731
|
+
__name(shouldInvoke, "shouldInvoke");
|
|
732
|
+
function timerExpired() {
|
|
733
|
+
var time = now();
|
|
734
|
+
if (shouldInvoke(time))
|
|
735
|
+
return trailingEdge(time);
|
|
736
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
737
|
+
}
|
|
738
|
+
__name(timerExpired, "timerExpired");
|
|
739
|
+
function trailingEdge(time) {
|
|
740
|
+
return timerId = void 0, trailing && lastArgs ? invokeFunc(time) : (lastArgs = lastThis = void 0, result);
|
|
741
|
+
}
|
|
742
|
+
__name(trailingEdge, "trailingEdge");
|
|
743
|
+
function cancel() {
|
|
744
|
+
timerId !== void 0 && clearTimeout(timerId), lastInvokeTime = 0, lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
745
|
+
}
|
|
746
|
+
__name(cancel, "cancel");
|
|
747
|
+
function flush() {
|
|
748
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
749
|
+
}
|
|
750
|
+
__name(flush, "flush");
|
|
751
|
+
function debounced() {
|
|
752
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
753
|
+
if (lastArgs = arguments, lastThis = this, lastCallTime = time, isInvoking) {
|
|
754
|
+
if (timerId === void 0)
|
|
755
|
+
return leadingEdge(lastCallTime);
|
|
756
|
+
if (maxing)
|
|
757
|
+
return clearTimeout(timerId), timerId = setTimeout(timerExpired, wait), invokeFunc(lastCallTime);
|
|
758
|
+
}
|
|
759
|
+
return timerId === void 0 && (timerId = setTimeout(timerExpired, wait)), result;
|
|
760
|
+
}
|
|
761
|
+
return __name(debounced, "debounced"), debounced.cancel = cancel, debounced.flush = flush, debounced;
|
|
762
|
+
}
|
|
763
|
+
__name(debounce, "debounce");
|
|
764
|
+
function assignMergeValue(object, key, value) {
|
|
765
|
+
(value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) && baseAssignValue(object, key, value);
|
|
766
|
+
}
|
|
767
|
+
__name(assignMergeValue, "assignMergeValue");
|
|
768
|
+
function isArrayLikeObject(value) {
|
|
769
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
770
|
+
}
|
|
771
|
+
__name(isArrayLikeObject, "isArrayLikeObject");
|
|
772
|
+
function safeGet(object, key) {
|
|
773
|
+
if (!(key === "constructor" && typeof object[key] == "function") && key != "__proto__")
|
|
774
|
+
return object[key];
|
|
775
|
+
}
|
|
776
|
+
__name(safeGet, "safeGet");
|
|
777
|
+
function toPlainObject(value) {
|
|
778
|
+
return copyObject(value, keysIn(value));
|
|
779
|
+
}
|
|
780
|
+
__name(toPlainObject, "toPlainObject");
|
|
781
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
782
|
+
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
783
|
+
if (stacked) {
|
|
784
|
+
assignMergeValue(object, key, stacked);
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
787
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0, isCommon = newValue === void 0;
|
|
788
|
+
if (isCommon) {
|
|
789
|
+
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
790
|
+
newValue = srcValue, isArr || isBuff || isTyped ? isArray(objValue) ? newValue = objValue : isArrayLikeObject(objValue) ? newValue = copyArray(objValue) : isBuff ? (isCommon = !1, newValue = cloneBuffer(srcValue)) : isTyped ? (isCommon = !1, newValue = cloneTypedArray(srcValue)) : newValue = [] : isPlainObject(srcValue) || isArguments(srcValue) ? (newValue = objValue, isArguments(objValue) ? newValue = toPlainObject(objValue) : (!isObject$1(objValue) || isFunction$1(objValue)) && (newValue = initCloneObject(srcValue))) : isCommon = !1;
|
|
791
|
+
}
|
|
792
|
+
isCommon && (stack.set(srcValue, newValue), mergeFunc(newValue, srcValue, srcIndex, customizer, stack), stack.delete(srcValue)), assignMergeValue(object, key, newValue);
|
|
793
|
+
}
|
|
794
|
+
__name(baseMergeDeep, "baseMergeDeep");
|
|
795
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
796
|
+
object !== source && baseFor(source, function(srcValue, key) {
|
|
797
|
+
if (stack || (stack = new Stack()), isObject$1(srcValue))
|
|
798
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
799
|
+
else {
|
|
800
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
801
|
+
newValue === void 0 && (newValue = srcValue), assignMergeValue(object, key, newValue);
|
|
802
|
+
}
|
|
803
|
+
}, keysIn);
|
|
804
|
+
}
|
|
805
|
+
__name(baseMerge, "baseMerge");
|
|
806
|
+
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
|
|
807
|
+
baseMerge(object, source, srcIndex, customizer);
|
|
808
|
+
}), merge = createAssigner(function(object, source, srcIndex) {
|
|
809
|
+
baseMerge(object, source, srcIndex);
|
|
810
|
+
});
|
|
811
|
+
function baseSet(object, path, value, customizer) {
|
|
812
|
+
if (!isObject$1(object))
|
|
813
|
+
return object;
|
|
814
|
+
path = castPath(path, object);
|
|
815
|
+
for (var index2 = -1, length = path.length, lastIndex = length - 1, nested = object; nested != null && ++index2 < length; ) {
|
|
816
|
+
var key = toKey(path[index2]), newValue = value;
|
|
817
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype")
|
|
818
|
+
return object;
|
|
819
|
+
if (index2 != lastIndex) {
|
|
820
|
+
var objValue = nested[key];
|
|
821
|
+
newValue = void 0, newValue === void 0 && (newValue = isObject$1(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {});
|
|
822
|
+
}
|
|
823
|
+
assignValue(nested, key, newValue), nested = nested[key];
|
|
824
|
+
}
|
|
825
|
+
return object;
|
|
826
|
+
}
|
|
827
|
+
__name(baseSet, "baseSet");
|
|
828
|
+
function set(object, path, value) {
|
|
829
|
+
return object == null ? object : baseSet(object, path, value);
|
|
830
|
+
}
|
|
831
|
+
__name(set, "set");
|
|
49
832
|
function remove(arr, item) {
|
|
50
833
|
const index2 = arr.indexOf(item);
|
|
51
834
|
return index2 > -1 ? (arr.splice(index2, 1), !0) : !1;
|
|
@@ -1131,25 +1914,31 @@ let CustomCommandExecutionError = _CustomCommandExecutionError;
|
|
|
1131
1914
|
function throttle(fn, wait = 16) {
|
|
1132
1915
|
let lastTime = 0, timer2 = null;
|
|
1133
1916
|
return /* @__PURE__ */ __name(function(...args) {
|
|
1134
|
-
const
|
|
1135
|
-
|
|
1136
|
-
lastTime =
|
|
1137
|
-
}, wait)) : (lastTime =
|
|
1917
|
+
const now2 = Date.now();
|
|
1918
|
+
now2 - lastTime < wait ? (timer2 && clearTimeout(timer2), timer2 = setTimeout(() => {
|
|
1919
|
+
lastTime = now2, fn.apply(this, args);
|
|
1920
|
+
}, wait)) : (lastTime = now2, fn.apply(this, args));
|
|
1138
1921
|
}, "throttled");
|
|
1139
1922
|
}
|
|
1140
1923
|
__name(throttle, "throttle");
|
|
1924
|
+
var InterceptorEffectEnum = /* @__PURE__ */ ((InterceptorEffectEnum2) => (InterceptorEffectEnum2[InterceptorEffectEnum2.Style = 1] = "Style", InterceptorEffectEnum2[InterceptorEffectEnum2.Value = 2] = "Value", InterceptorEffectEnum2))(InterceptorEffectEnum || {});
|
|
1141
1925
|
function createInterceptorKey(key) {
|
|
1142
1926
|
return `sheet_interceptor_${key}`;
|
|
1143
1927
|
}
|
|
1144
1928
|
__name(createInterceptorKey, "createInterceptorKey");
|
|
1145
1929
|
const composeInterceptors = /* @__PURE__ */ __name((interceptors) => function(initialValue, context) {
|
|
1146
|
-
let index2 = -1;
|
|
1147
|
-
|
|
1930
|
+
let index2 = -1, value = initialValue;
|
|
1931
|
+
for (let i = 0; i <= interceptors.length; i++) {
|
|
1148
1932
|
if (i <= index2)
|
|
1149
1933
|
throw new Error("[SheetInterceptorService]: next() called multiple times!");
|
|
1150
|
-
|
|
1934
|
+
if (index2 = i, i === interceptors.length)
|
|
1935
|
+
return value;
|
|
1936
|
+
const interceptor = interceptors[i];
|
|
1937
|
+
let nextCalled = !1;
|
|
1938
|
+
if (value = interceptor.handler(value, context, (nextValue) => (nextCalled = !0, nextValue)), !nextCalled)
|
|
1939
|
+
break;
|
|
1151
1940
|
}
|
|
1152
|
-
return
|
|
1941
|
+
return value;
|
|
1153
1942
|
}, "composeInterceptors"), _InterceptorManager = class _InterceptorManager {
|
|
1154
1943
|
constructor(interceptorPoints) {
|
|
1155
1944
|
__publicField(this, "_interceptorsByName", /* @__PURE__ */ new Map());
|
|
@@ -1850,7 +2639,7 @@ function takeAfter(callback) {
|
|
|
1850
2639
|
}
|
|
1851
2640
|
__name(takeAfter, "takeAfter");
|
|
1852
2641
|
const afterInitApply = /* @__PURE__ */ __name((commandService) => new Promise((res) => {
|
|
1853
|
-
merge(
|
|
2642
|
+
merge$1(
|
|
1854
2643
|
fromCallback(commandService.onCommandExecuted.bind(commandService)).pipe(filter$1(([info]) => info.type === CommandType.MUTATION)),
|
|
1855
2644
|
timer(300)
|
|
1856
2645
|
).pipe(debounceTime(16), first()).subscribe(() => {
|
|
@@ -1907,7 +2696,7 @@ function checkIfMove(transform, previousTransform) {
|
|
|
1907
2696
|
return Math.abs(left - leftPrev) > MOVE_BUFFER_VALUE || Math.abs(top - topPrev) > MOVE_BUFFER_VALUE || Math.abs(allWidth - allWidthPrev) > MOVE_BUFFER_VALUE || Math.abs(allHeight - allHeightPrev) > MOVE_BUFFER_VALUE || Math.abs(angle - anglePrev) > ROTATE_BUFFER_VALUE;
|
|
1908
2697
|
}
|
|
1909
2698
|
__name(checkIfMove, "checkIfMove");
|
|
1910
|
-
var AutoFillSeries = /* @__PURE__ */ ((AutoFillSeries2) => (AutoFillSeries2[AutoFillSeries2.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", AutoFillSeries2[AutoFillSeries2.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", AutoFillSeries2))(AutoFillSeries || {}), BorderStyleTypes = /* @__PURE__ */ ((BorderStyleTypes2) => (BorderStyleTypes2[BorderStyleTypes2.NONE = 0] = "NONE", BorderStyleTypes2[BorderStyleTypes2.THIN = 1] = "THIN", BorderStyleTypes2[BorderStyleTypes2.HAIR = 2] = "HAIR", BorderStyleTypes2[BorderStyleTypes2.DOTTED = 3] = "DOTTED", BorderStyleTypes2[BorderStyleTypes2.DASHED = 4] = "DASHED", BorderStyleTypes2[BorderStyleTypes2.DASH_DOT = 5] = "DASH_DOT", BorderStyleTypes2[BorderStyleTypes2.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", BorderStyleTypes2[BorderStyleTypes2.DOUBLE = 7] = "DOUBLE", BorderStyleTypes2[BorderStyleTypes2.MEDIUM = 8] = "MEDIUM", BorderStyleTypes2[BorderStyleTypes2.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", BorderStyleTypes2[BorderStyleTypes2.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", BorderStyleTypes2[BorderStyleTypes2.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", BorderStyleTypes2[BorderStyleTypes2.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", BorderStyleTypes2[BorderStyleTypes2.THICK = 13] = "THICK", BorderStyleTypes2))(BorderStyleTypes || {}), BorderType = /* @__PURE__ */ ((BorderType2) => (BorderType2.TOP = "top", BorderType2.BOTTOM = "bottom", BorderType2.LEFT = "left", BorderType2.RIGHT = "right", BorderType2.NONE = "none", BorderType2.ALL = "all", BorderType2.OUTSIDE = "outside", BorderType2.INSIDE = "inside", BorderType2.HORIZONTAL = "horizontal", BorderType2.VERTICAL = "vertical", BorderType2.TLBR = "tlbr", BorderType2.TLBC_TLMR = "tlbc_tlmr", BorderType2.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", BorderType2.BLTR = "bl_tr", BorderType2.MLTR_BCTR = "mltr_bctr", BorderType2))(BorderType || {}), ColorType = /* @__PURE__ */ ((ColorType2) => (ColorType2[ColorType2.UNSUPPORTED = 0] = "UNSUPPORTED", ColorType2[ColorType2.RGB = 1] = "RGB", ColorType2[ColorType2.HEX = 2] = "HEX", ColorType2[ColorType2.THEME = 3] = "THEME", ColorType2))(ColorType || {}), CommonHideTypes = /* @__PURE__ */ ((CommonHideTypes2) => (CommonHideTypes2[CommonHideTypes2.ON = 0] = "ON", CommonHideTypes2[CommonHideTypes2.OFF = 1] = "OFF", CommonHideTypes2))(CommonHideTypes || {}), CopyPasteType = /* @__PURE__ */ ((CopyPasteType2) => (CopyPasteType2[CopyPasteType2.PASTE_NORMAL = 0] = "PASTE_NORMAL", CopyPasteType2[CopyPasteType2.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", CopyPasteType2[CopyPasteType2.PASTE_FORMAT = 2] = "PASTE_FORMAT", CopyPasteType2[CopyPasteType2.PASTE_FORMULA = 3] = "PASTE_FORMULA", CopyPasteType2[CopyPasteType2.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", CopyPasteType2[CopyPasteType2.PASTE_VALUES = 5] = "PASTE_VALUES", CopyPasteType2[CopyPasteType2.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", CopyPasteType2[CopyPasteType2.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", CopyPasteType2))(CopyPasteType || {}), DeveloperMetadataVisibility = /* @__PURE__ */ ((DeveloperMetadataVisibility2) => (DeveloperMetadataVisibility2[DeveloperMetadataVisibility2.DOCUMENT = 0] = "DOCUMENT", DeveloperMetadataVisibility2[DeveloperMetadataVisibility2.PROJECT = 1] = "PROJECT", DeveloperMetadataVisibility2))(DeveloperMetadataVisibility || {}), Dimension = /* @__PURE__ */ ((Dimension2) => (Dimension2[Dimension2.COLUMNS = 0] = "COLUMNS", Dimension2[Dimension2.ROWS = 1] = "ROWS", Dimension2))(Dimension || {}), Direction = /* @__PURE__ */ ((Direction2) => (Direction2[Direction2.UP = 0] = "UP", Direction2[Direction2.RIGHT = 1] = "RIGHT", Direction2[Direction2.DOWN = 2] = "DOWN", Direction2[Direction2.LEFT = 3] = "LEFT", Direction2))(Direction || {});
|
|
2699
|
+
var AutoFillSeries = /* @__PURE__ */ ((AutoFillSeries2) => (AutoFillSeries2[AutoFillSeries2.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", AutoFillSeries2[AutoFillSeries2.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", AutoFillSeries2))(AutoFillSeries || {}), BorderStyleTypes = /* @__PURE__ */ ((BorderStyleTypes2) => (BorderStyleTypes2[BorderStyleTypes2.NONE = 0] = "NONE", BorderStyleTypes2[BorderStyleTypes2.THIN = 1] = "THIN", BorderStyleTypes2[BorderStyleTypes2.HAIR = 2] = "HAIR", BorderStyleTypes2[BorderStyleTypes2.DOTTED = 3] = "DOTTED", BorderStyleTypes2[BorderStyleTypes2.DASHED = 4] = "DASHED", BorderStyleTypes2[BorderStyleTypes2.DASH_DOT = 5] = "DASH_DOT", BorderStyleTypes2[BorderStyleTypes2.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", BorderStyleTypes2[BorderStyleTypes2.DOUBLE = 7] = "DOUBLE", BorderStyleTypes2[BorderStyleTypes2.MEDIUM = 8] = "MEDIUM", BorderStyleTypes2[BorderStyleTypes2.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", BorderStyleTypes2[BorderStyleTypes2.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", BorderStyleTypes2[BorderStyleTypes2.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", BorderStyleTypes2[BorderStyleTypes2.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", BorderStyleTypes2[BorderStyleTypes2.THICK = 13] = "THICK", BorderStyleTypes2))(BorderStyleTypes || {}), BorderType = /* @__PURE__ */ ((BorderType2) => (BorderType2.TOP = "top", BorderType2.BOTTOM = "bottom", BorderType2.LEFT = "left", BorderType2.RIGHT = "right", BorderType2.NONE = "none", BorderType2.ALL = "all", BorderType2.OUTSIDE = "outside", BorderType2.INSIDE = "inside", BorderType2.HORIZONTAL = "horizontal", BorderType2.VERTICAL = "vertical", BorderType2.TLBR = "tlbr", BorderType2.TLBC_TLMR = "tlbc_tlmr", BorderType2.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", BorderType2.BLTR = "bl_tr", BorderType2.MLTR_BCTR = "mltr_bctr", BorderType2))(BorderType || {}), ColorType = /* @__PURE__ */ ((ColorType2) => (ColorType2[ColorType2.UNSUPPORTED = 0] = "UNSUPPORTED", ColorType2[ColorType2.RGB = 1] = "RGB", ColorType2[ColorType2.HEX = 2] = "HEX", ColorType2[ColorType2.THEME = 3] = "THEME", ColorType2))(ColorType || {}), CommonHideTypes = /* @__PURE__ */ ((CommonHideTypes2) => (CommonHideTypes2[CommonHideTypes2.ON = 0] = "ON", CommonHideTypes2[CommonHideTypes2.OFF = 1] = "OFF", CommonHideTypes2))(CommonHideTypes || {}), CopyPasteType = /* @__PURE__ */ ((CopyPasteType2) => (CopyPasteType2[CopyPasteType2.PASTE_NORMAL = 0] = "PASTE_NORMAL", CopyPasteType2[CopyPasteType2.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", CopyPasteType2[CopyPasteType2.PASTE_FORMAT = 2] = "PASTE_FORMAT", CopyPasteType2[CopyPasteType2.PASTE_FORMULA = 3] = "PASTE_FORMULA", CopyPasteType2[CopyPasteType2.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", CopyPasteType2[CopyPasteType2.PASTE_VALUES = 5] = "PASTE_VALUES", CopyPasteType2[CopyPasteType2.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", CopyPasteType2[CopyPasteType2.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", CopyPasteType2))(CopyPasteType || {}), DeleteDirection = /* @__PURE__ */ ((DeleteDirection2) => (DeleteDirection2[DeleteDirection2.LEFT = 0] = "LEFT", DeleteDirection2[DeleteDirection2.RIGHT = 1] = "RIGHT", DeleteDirection2))(DeleteDirection || {}), DeveloperMetadataVisibility = /* @__PURE__ */ ((DeveloperMetadataVisibility2) => (DeveloperMetadataVisibility2[DeveloperMetadataVisibility2.DOCUMENT = 0] = "DOCUMENT", DeveloperMetadataVisibility2[DeveloperMetadataVisibility2.PROJECT = 1] = "PROJECT", DeveloperMetadataVisibility2))(DeveloperMetadataVisibility || {}), Dimension = /* @__PURE__ */ ((Dimension2) => (Dimension2[Dimension2.COLUMNS = 0] = "COLUMNS", Dimension2[Dimension2.ROWS = 1] = "ROWS", Dimension2))(Dimension || {}), Direction = /* @__PURE__ */ ((Direction2) => (Direction2[Direction2.UP = 0] = "UP", Direction2[Direction2.RIGHT = 1] = "RIGHT", Direction2[Direction2.DOWN = 2] = "DOWN", Direction2[Direction2.LEFT = 3] = "LEFT", Direction2))(Direction || {});
|
|
1911
2700
|
function getReverseDirection(direction) {
|
|
1912
2701
|
switch (direction) {
|
|
1913
2702
|
case 3:
|
|
@@ -1921,7 +2710,7 @@ function getReverseDirection(direction) {
|
|
|
1921
2710
|
}
|
|
1922
2711
|
}
|
|
1923
2712
|
__name(getReverseDirection, "getReverseDirection");
|
|
1924
|
-
var FormatType = /* @__PURE__ */ ((FormatType2) => (FormatType2[FormatType2.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", FormatType2[FormatType2.TEXT = 1] = "TEXT", FormatType2[FormatType2.NUMBER = 2] = "NUMBER", FormatType2[FormatType2.PERCENT = 3] = "PERCENT", FormatType2[FormatType2.CURRENCY = 4] = "CURRENCY", FormatType2[FormatType2.DATE = 5] = "DATE", FormatType2[FormatType2.TIME = 6] = "TIME", FormatType2[FormatType2.DATE_TIME = 7] = "DATE_TIME", FormatType2[FormatType2.SCIENTIFIC = 8] = "SCIENTIFIC", FormatType2))(FormatType || {}), InterpolationPointType = /* @__PURE__ */ ((InterpolationPointType2) => (InterpolationPointType2[InterpolationPointType2.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", InterpolationPointType2[InterpolationPointType2.MIN = 1] = "MIN", InterpolationPointType2[InterpolationPointType2.MAX = 2] = "MAX", InterpolationPointType2[InterpolationPointType2.NUMBER = 3] = "NUMBER", InterpolationPointType2[InterpolationPointType2.PERCENT = 4] = "PERCENT", InterpolationPointType2[InterpolationPointType2.PERCENTILE = 5] = "PERCENTILE", InterpolationPointType2))(InterpolationPointType || {}), LocaleType = /* @__PURE__ */ ((LocaleType2) => (LocaleType2.EN_US = "enUS", LocaleType2.ZH_CN = "zhCN", LocaleType2.RU_RU = "ruRU", LocaleType2.ZH_TW = "zhTW", LocaleType2.VI_VN = "viVN", LocaleType2))(LocaleType || {}), ProtectionType = /* @__PURE__ */ ((ProtectionType2) => (ProtectionType2[ProtectionType2.RANGE = 0] = "RANGE", ProtectionType2[ProtectionType2.SHEET = 1] = "SHEET", ProtectionType2))(ProtectionType || {}), RelativeDate = /* @__PURE__ */ ((RelativeDate2) => (RelativeDate2[RelativeDate2.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", RelativeDate2[RelativeDate2.PAST_YEAR = 1] = "PAST_YEAR", RelativeDate2[RelativeDate2.PAST_MONTH = 2] = "PAST_MONTH", RelativeDate2[RelativeDate2.PAST_WEEK = 3] = "PAST_WEEK", RelativeDate2[RelativeDate2.YESTERDAY = 4] = "YESTERDAY", RelativeDate2[RelativeDate2.TODAY = 5] = "TODAY", RelativeDate2[RelativeDate2.TOMORROW = 6] = "TOMORROW", RelativeDate2))(RelativeDate || {}), SheetTypes = /* @__PURE__ */ ((SheetTypes2) => (SheetTypes2[SheetTypes2.GRID = 0] = "GRID", SheetTypes2[SheetTypes2.KANBAN = 1] = "KANBAN", SheetTypes2[SheetTypes2.GANTT = 2] = "GANTT", SheetTypes2))(SheetTypes || {}), TextDirection = /* @__PURE__ */ ((TextDirection2) => (TextDirection2[TextDirection2.UNSPECIFIED = 0] = "UNSPECIFIED", TextDirection2[TextDirection2.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", TextDirection2[TextDirection2.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", TextDirection2))(TextDirection || {}), TextDecoration = /* @__PURE__ */ ((TextDecoration2) => (TextDecoration2[TextDecoration2.DASH = 0] = "DASH", TextDecoration2[TextDecoration2.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", TextDecoration2[TextDecoration2.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", TextDecoration2[TextDecoration2.DASHED_HEAVY = 3] = "DASHED_HEAVY", TextDecoration2[TextDecoration2.DASH_LONG = 4] = "DASH_LONG", TextDecoration2[TextDecoration2.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", TextDecoration2[TextDecoration2.DOT_DASH = 6] = "DOT_DASH", TextDecoration2[TextDecoration2.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", TextDecoration2[TextDecoration2.DOTTED = 8] = "DOTTED", TextDecoration2[TextDecoration2.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", TextDecoration2[TextDecoration2.DOUBLE = 10] = "DOUBLE", TextDecoration2[TextDecoration2.NONE = 11] = "NONE", TextDecoration2[TextDecoration2.SINGLE = 12] = "SINGLE", TextDecoration2[TextDecoration2.THICK = 13] = "THICK", TextDecoration2[TextDecoration2.WAVE = 14] = "WAVE", TextDecoration2[TextDecoration2.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", TextDecoration2[TextDecoration2.WAVY_HEAVY = 16] = "WAVY_HEAVY", TextDecoration2[TextDecoration2.WORDS = 17] = "WORDS", TextDecoration2))(TextDecoration || {}), HorizontalAlign = /* @__PURE__ */ ((HorizontalAlign2) => (HorizontalAlign2[HorizontalAlign2.UNSPECIFIED = 0] = "UNSPECIFIED", HorizontalAlign2[HorizontalAlign2.LEFT = 1] = "LEFT", HorizontalAlign2[HorizontalAlign2.CENTER = 2] = "CENTER", HorizontalAlign2[HorizontalAlign2.RIGHT = 3] = "RIGHT", HorizontalAlign2[HorizontalAlign2.JUSTIFIED = 4] = "JUSTIFIED", HorizontalAlign2[HorizontalAlign2.BOTH = 5] = "BOTH", HorizontalAlign2[HorizontalAlign2.DISTRIBUTED = 6] = "DISTRIBUTED", HorizontalAlign2))(HorizontalAlign || {}), VerticalAlign = /* @__PURE__ */ ((VerticalAlign2) => (VerticalAlign2[VerticalAlign2.UNSPECIFIED = 0] = "UNSPECIFIED", VerticalAlign2[VerticalAlign2.TOP = 1] = "TOP", VerticalAlign2[VerticalAlign2.MIDDLE = 2] = "MIDDLE", VerticalAlign2[VerticalAlign2.BOTTOM = 3] = "BOTTOM", VerticalAlign2))(VerticalAlign || {}), WrapStrategy = /* @__PURE__ */ ((WrapStrategy2) => (WrapStrategy2[WrapStrategy2.UNSPECIFIED = 0] = "UNSPECIFIED", WrapStrategy2[WrapStrategy2.OVERFLOW = 1] = "OVERFLOW", WrapStrategy2[WrapStrategy2.CLIP = 2] = "CLIP", WrapStrategy2[WrapStrategy2.WRAP = 3] = "WRAP", WrapStrategy2))(WrapStrategy || {}), FontItalic = /* @__PURE__ */ ((FontItalic2) => (FontItalic2[FontItalic2.NORMAL = 0] = "NORMAL", FontItalic2[FontItalic2.ITALIC = 1] = "ITALIC", FontItalic2))(FontItalic || {}), FontWeight = /* @__PURE__ */ ((FontWeight2) => (FontWeight2[FontWeight2.NORMAL = 0] = "NORMAL", FontWeight2[FontWeight2.BOLD = 1] = "BOLD", FontWeight2))(FontWeight || {}), BaselineOffset = /* @__PURE__ */ ((BaselineOffset2) => (BaselineOffset2[BaselineOffset2.NORMAL = 1] = "NORMAL", BaselineOffset2[BaselineOffset2.SUBSCRIPT = 2] = "SUBSCRIPT", BaselineOffset2[BaselineOffset2.SUPERSCRIPT = 3] = "SUPERSCRIPT", BaselineOffset2))(BaselineOffset || {}), BooleanNumber = /* @__PURE__ */ ((BooleanNumber2) => (BooleanNumber2[BooleanNumber2.FALSE = 0] = "FALSE", BooleanNumber2[BooleanNumber2.TRUE = 1] = "TRUE", BooleanNumber2))(BooleanNumber || {}), CellValueType = /* @__PURE__ */ ((CellValueType2) => (CellValueType2[CellValueType2.STRING = 1] = "STRING", CellValueType2[CellValueType2.NUMBER = 2] = "NUMBER", CellValueType2[CellValueType2.BOOLEAN = 3] = "BOOLEAN", CellValueType2[CellValueType2.FORCE_STRING = 4] = "FORCE_STRING", CellValueType2))(CellValueType || {}), ThemeColorType = /* @__PURE__ */ ((ThemeColorType2) => (ThemeColorType2[ThemeColorType2.DARK1 = 0] = "DARK1", ThemeColorType2[ThemeColorType2.LIGHT1 = 1] = "LIGHT1", ThemeColorType2[ThemeColorType2.DARK2 = 2] = "DARK2", ThemeColorType2[ThemeColorType2.LIGHT2 = 3] = "LIGHT2", ThemeColorType2[ThemeColorType2.ACCENT1 = 4] = "ACCENT1", ThemeColorType2[ThemeColorType2.ACCENT2 = 5] = "ACCENT2", ThemeColorType2[ThemeColorType2.ACCENT3 = 6] = "ACCENT3", ThemeColorType2[ThemeColorType2.ACCENT4 = 7] = "ACCENT4", ThemeColorType2[ThemeColorType2.ACCENT5 = 8] = "ACCENT5", ThemeColorType2[ThemeColorType2.ACCENT6 = 9] = "ACCENT6", ThemeColorType2[ThemeColorType2.HYPERLINK = 10] = "HYPERLINK", ThemeColorType2[ThemeColorType2.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", ThemeColorType2))(ThemeColorType || {}), ThemeColors = /* @__PURE__ */ ((ThemeColors2) => (ThemeColors2.OFFICE = "Office", ThemeColors2.OFFICE_2007_2010 = "Office 2007-2010", ThemeColors2.GRAYSCALE = "Grayscale", ThemeColors2.BLUE_WARM = "Blue Warm", ThemeColors2.BLUE = "Blue", ThemeColors2.BLUE_II = "Blue II", ThemeColors2.BLUE_GREEN = "Blue Green", ThemeColors2.GREEN = "Green", ThemeColors2.GREEN_YELLOW = "Green Yellow", ThemeColors2.YELLOW = "Yellow", ThemeColors2.YELLOW_ORANGE = "Yellow Orange", ThemeColors2.ORANGE = "Orange", ThemeColors2.ORANGE_RED = "Orange Red", ThemeColors2.RED_ORANGE = "Red Orange", ThemeColors2.RED = "Red", ThemeColors2.RED_VIOLET = "Red Violet", ThemeColors2.VIOLET = "Violet", ThemeColors2.VIOLET_II = "Violet II", ThemeColors2.MEDIAN = "Median", ThemeColors2.PAPER = "Paper", ThemeColors2.MARQUEE = "Marquee", ThemeColors2.SLIPSTREAM = "Slipstream", ThemeColors2.Aspect = "Aspect", ThemeColors2))(ThemeColors || {}), BasicShapes = /* @__PURE__ */ ((BasicShapes2) => (BasicShapes2.Line = "line", BasicShapes2.LineInv = "lineInv", BasicShapes2.Triangle = "triangle", BasicShapes2.RtTriangle = "rtTriangle", BasicShapes2.Rect = "rect", BasicShapes2.Diamond = "diamond", BasicShapes2.Parallelogram = "parallelogram", BasicShapes2.Trapezoid = "trapezoid", BasicShapes2.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", BasicShapes2.Pentagon = "pentagon", BasicShapes2.Hexagon = "hexagon", BasicShapes2.Heptagon = "heptagon", BasicShapes2.Octagon = "octagon", BasicShapes2.Decagon = "decagon", BasicShapes2.Dodecagon = "dodecagon", BasicShapes2.Star4 = "star4", BasicShapes2.Star5 = "star5", BasicShapes2.Star6 = "star6", BasicShapes2.Star7 = "star7", BasicShapes2.Star8 = "star8", BasicShapes2.Star10 = "star10", BasicShapes2.Star12 = "star12", BasicShapes2.Star16 = "star16", BasicShapes2.Star24 = "star24", BasicShapes2.Star32 = "star32", BasicShapes2.RoundRect = "roundRect", BasicShapes2.Round1Rect = "round1Rect", BasicShapes2.Round2SameRect = "round2SameRect", BasicShapes2.Round2DiagRect = "round2DiagRect", BasicShapes2.Ellipse = "ellipse", BasicShapes2))(BasicShapes || {}), ArrowsAndMarkersShapes = /* @__PURE__ */ ((ArrowsAndMarkersShapes2) => (ArrowsAndMarkersShapes2.RightArrow = "rightArrow", ArrowsAndMarkersShapes2.LeftArrow = "leftArrow", ArrowsAndMarkersShapes2.UpArrow = "upArrow", ArrowsAndMarkersShapes2.DownArrow = "downArrow", ArrowsAndMarkersShapes2.LeftRightArrow = "leftRightArrow", ArrowsAndMarkersShapes2.UpDownArrow = "upDownArrow", ArrowsAndMarkersShapes2.QuadArrow = "quadArrow", ArrowsAndMarkersShapes2.LeftRightUpArrow = "leftRightUpArrow", ArrowsAndMarkersShapes2.BentArrow = "bentArrow", ArrowsAndMarkersShapes2.UturnArrow = "uturnArrow", ArrowsAndMarkersShapes2.CircularArrow = "circularArrow", ArrowsAndMarkersShapes2.NotchedRightArrow = "notchedRightArrow", ArrowsAndMarkersShapes2.HomePlate = "homePlate", ArrowsAndMarkersShapes2.Chevron = "chevron", ArrowsAndMarkersShapes2.LeftCircularArrow = "leftCircularArrow", ArrowsAndMarkersShapes2.LeftRightCircularArrow = "leftRightCircularArrow", ArrowsAndMarkersShapes2))(ArrowsAndMarkersShapes || {}), OtherShapes = /* @__PURE__ */ ((OtherShapes2) => (OtherShapes2.Plaque = "plaque", OtherShapes2.Can = "can", OtherShapes2.Cube = "cube", OtherShapes2.Bevel = "bevel", OtherShapes2.Donut = "donut", OtherShapes2.NoSmoking = "noSmoking", OtherShapes2.BlockArc = "blockArc", OtherShapes2.FoldedCorner = "foldedCorner", OtherShapes2))(OtherShapes || {}), SpecialShapes = /* @__PURE__ */ ((SpecialShapes2) => (SpecialShapes2.SmileyFace = "smileyFace", SpecialShapes2.Heart = "heart", SpecialShapes2.LightningBolt = "lightningBolt", SpecialShapes2.Sun = "sun", SpecialShapes2.Moon = "moon", SpecialShapes2.Cloud = "cloud", SpecialShapes2.Arc = "arc", SpecialShapes2.Backpack = "backpack", SpecialShapes2.Frame = "frame", SpecialShapes2.HalfFrame = "halfFrame", SpecialShapes2.Corner = "corner", SpecialShapes2.Chord = "chord", SpecialShapes2.Pie = "pie", SpecialShapes2.Teardrop = "teardrop", SpecialShapes2.WedgeRectCallout = "wedgeRectCallout", SpecialShapes2.WedgeRRectCallout = "wedgeRRectCallout", SpecialShapes2.WedgeEllipseCallout = "wedgeEllipseCallout", SpecialShapes2.CloudCallout = "cloudCallout", SpecialShapes2.BorderCallout1 = "borderCallout1", SpecialShapes2.BorderCallout2 = "borderCallout2", SpecialShapes2.BorderCallout3 = "borderCallout3", SpecialShapes2.AccentCallout1 = "accentCallout1", SpecialShapes2.AccentCallout2 = "accentCallout2", SpecialShapes2.AccentCallout3 = "accentCallout3", SpecialShapes2.Callout1 = "callout1", SpecialShapes2.Callout2 = "callout2", SpecialShapes2.Callout3 = "callout3", SpecialShapes2.ActionButtonBackPrevious = "actionButtonBackPrevious", SpecialShapes2.ActionButtonEnd = "actionButtonEnd", SpecialShapes2.ActionButtonForwardNext = "actionButtonForwardNext", SpecialShapes2.ActionButtonHelp = "actionButtonHelp", SpecialShapes2.ActionButtonHome = "actionButtonHome", SpecialShapes2.ActionButtonInformation = "actionButtonInformation", SpecialShapes2.ActionButtonMovie = "actionButtonMovie", SpecialShapes2.ActionButtonReturn = "actionButtonReturn", SpecialShapes2.ActionButtonSound = "actionButtonSound", SpecialShapes2))(SpecialShapes || {}), DeleteDirection = /* @__PURE__ */ ((DeleteDirection2) => (DeleteDirection2[DeleteDirection2.LEFT = 0] = "LEFT", DeleteDirection2[DeleteDirection2.RIGHT = 1] = "RIGHT", DeleteDirection2))(DeleteDirection || {});
|
|
2713
|
+
var FormatType = /* @__PURE__ */ ((FormatType2) => (FormatType2[FormatType2.NUMBER_FORMAT_TYPE_UNSPECIFIED = 0] = "NUMBER_FORMAT_TYPE_UNSPECIFIED", FormatType2[FormatType2.TEXT = 1] = "TEXT", FormatType2[FormatType2.NUMBER = 2] = "NUMBER", FormatType2[FormatType2.PERCENT = 3] = "PERCENT", FormatType2[FormatType2.CURRENCY = 4] = "CURRENCY", FormatType2[FormatType2.DATE = 5] = "DATE", FormatType2[FormatType2.TIME = 6] = "TIME", FormatType2[FormatType2.DATE_TIME = 7] = "DATE_TIME", FormatType2[FormatType2.SCIENTIFIC = 8] = "SCIENTIFIC", FormatType2))(FormatType || {}), InterpolationPointType = /* @__PURE__ */ ((InterpolationPointType2) => (InterpolationPointType2[InterpolationPointType2.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", InterpolationPointType2[InterpolationPointType2.MIN = 1] = "MIN", InterpolationPointType2[InterpolationPointType2.MAX = 2] = "MAX", InterpolationPointType2[InterpolationPointType2.NUMBER = 3] = "NUMBER", InterpolationPointType2[InterpolationPointType2.PERCENT = 4] = "PERCENT", InterpolationPointType2[InterpolationPointType2.PERCENTILE = 5] = "PERCENTILE", InterpolationPointType2))(InterpolationPointType || {}), LocaleType = /* @__PURE__ */ ((LocaleType2) => (LocaleType2.EN_US = "enUS", LocaleType2.ZH_CN = "zhCN", LocaleType2.RU_RU = "ruRU", LocaleType2.ZH_TW = "zhTW", LocaleType2.VI_VN = "viVN", LocaleType2))(LocaleType || {}), ProtectionType = /* @__PURE__ */ ((ProtectionType2) => (ProtectionType2[ProtectionType2.RANGE = 0] = "RANGE", ProtectionType2[ProtectionType2.SHEET = 1] = "SHEET", ProtectionType2))(ProtectionType || {}), BasicShapes = /* @__PURE__ */ ((BasicShapes2) => (BasicShapes2.Line = "line", BasicShapes2.LineInv = "lineInv", BasicShapes2.Triangle = "triangle", BasicShapes2.RtTriangle = "rtTriangle", BasicShapes2.Rect = "rect", BasicShapes2.Diamond = "diamond", BasicShapes2.Parallelogram = "parallelogram", BasicShapes2.Trapezoid = "trapezoid", BasicShapes2.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", BasicShapes2.Pentagon = "pentagon", BasicShapes2.Hexagon = "hexagon", BasicShapes2.Heptagon = "heptagon", BasicShapes2.Octagon = "octagon", BasicShapes2.Decagon = "decagon", BasicShapes2.Dodecagon = "dodecagon", BasicShapes2.Star4 = "star4", BasicShapes2.Star5 = "star5", BasicShapes2.Star6 = "star6", BasicShapes2.Star7 = "star7", BasicShapes2.Star8 = "star8", BasicShapes2.Star10 = "star10", BasicShapes2.Star12 = "star12", BasicShapes2.Star16 = "star16", BasicShapes2.Star24 = "star24", BasicShapes2.Star32 = "star32", BasicShapes2.RoundRect = "roundRect", BasicShapes2.Round1Rect = "round1Rect", BasicShapes2.Round2SameRect = "round2SameRect", BasicShapes2.Round2DiagRect = "round2DiagRect", BasicShapes2.Ellipse = "ellipse", BasicShapes2))(BasicShapes || {}), ArrowsAndMarkersShapes = /* @__PURE__ */ ((ArrowsAndMarkersShapes2) => (ArrowsAndMarkersShapes2.RightArrow = "rightArrow", ArrowsAndMarkersShapes2.LeftArrow = "leftArrow", ArrowsAndMarkersShapes2.UpArrow = "upArrow", ArrowsAndMarkersShapes2.DownArrow = "downArrow", ArrowsAndMarkersShapes2.LeftRightArrow = "leftRightArrow", ArrowsAndMarkersShapes2.UpDownArrow = "upDownArrow", ArrowsAndMarkersShapes2.QuadArrow = "quadArrow", ArrowsAndMarkersShapes2.LeftRightUpArrow = "leftRightUpArrow", ArrowsAndMarkersShapes2.BentArrow = "bentArrow", ArrowsAndMarkersShapes2.UturnArrow = "uturnArrow", ArrowsAndMarkersShapes2.CircularArrow = "circularArrow", ArrowsAndMarkersShapes2.NotchedRightArrow = "notchedRightArrow", ArrowsAndMarkersShapes2.HomePlate = "homePlate", ArrowsAndMarkersShapes2.Chevron = "chevron", ArrowsAndMarkersShapes2.LeftCircularArrow = "leftCircularArrow", ArrowsAndMarkersShapes2.LeftRightCircularArrow = "leftRightCircularArrow", ArrowsAndMarkersShapes2))(ArrowsAndMarkersShapes || {}), OtherShapes = /* @__PURE__ */ ((OtherShapes2) => (OtherShapes2.Plaque = "plaque", OtherShapes2.Can = "can", OtherShapes2.Cube = "cube", OtherShapes2.Bevel = "bevel", OtherShapes2.Donut = "donut", OtherShapes2.NoSmoking = "noSmoking", OtherShapes2.BlockArc = "blockArc", OtherShapes2.FoldedCorner = "foldedCorner", OtherShapes2))(OtherShapes || {}), SpecialShapes = /* @__PURE__ */ ((SpecialShapes2) => (SpecialShapes2.SmileyFace = "smileyFace", SpecialShapes2.Heart = "heart", SpecialShapes2.LightningBolt = "lightningBolt", SpecialShapes2.Sun = "sun", SpecialShapes2.Moon = "moon", SpecialShapes2.Cloud = "cloud", SpecialShapes2.Arc = "arc", SpecialShapes2.Backpack = "backpack", SpecialShapes2.Frame = "frame", SpecialShapes2.HalfFrame = "halfFrame", SpecialShapes2.Corner = "corner", SpecialShapes2.Chord = "chord", SpecialShapes2.Pie = "pie", SpecialShapes2.Teardrop = "teardrop", SpecialShapes2.WedgeRectCallout = "wedgeRectCallout", SpecialShapes2.WedgeRRectCallout = "wedgeRRectCallout", SpecialShapes2.WedgeEllipseCallout = "wedgeEllipseCallout", SpecialShapes2.CloudCallout = "cloudCallout", SpecialShapes2.BorderCallout1 = "borderCallout1", SpecialShapes2.BorderCallout2 = "borderCallout2", SpecialShapes2.BorderCallout3 = "borderCallout3", SpecialShapes2.AccentCallout1 = "accentCallout1", SpecialShapes2.AccentCallout2 = "accentCallout2", SpecialShapes2.AccentCallout3 = "accentCallout3", SpecialShapes2.Callout1 = "callout1", SpecialShapes2.Callout2 = "callout2", SpecialShapes2.Callout3 = "callout3", SpecialShapes2.ActionButtonBackPrevious = "actionButtonBackPrevious", SpecialShapes2.ActionButtonEnd = "actionButtonEnd", SpecialShapes2.ActionButtonForwardNext = "actionButtonForwardNext", SpecialShapes2.ActionButtonHelp = "actionButtonHelp", SpecialShapes2.ActionButtonHome = "actionButtonHome", SpecialShapes2.ActionButtonInformation = "actionButtonInformation", SpecialShapes2.ActionButtonMovie = "actionButtonMovie", SpecialShapes2.ActionButtonReturn = "actionButtonReturn", SpecialShapes2.ActionButtonSound = "actionButtonSound", SpecialShapes2))(SpecialShapes || {}), RelativeDate = /* @__PURE__ */ ((RelativeDate2) => (RelativeDate2[RelativeDate2.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", RelativeDate2[RelativeDate2.PAST_YEAR = 1] = "PAST_YEAR", RelativeDate2[RelativeDate2.PAST_MONTH = 2] = "PAST_MONTH", RelativeDate2[RelativeDate2.PAST_WEEK = 3] = "PAST_WEEK", RelativeDate2[RelativeDate2.YESTERDAY = 4] = "YESTERDAY", RelativeDate2[RelativeDate2.TODAY = 5] = "TODAY", RelativeDate2[RelativeDate2.TOMORROW = 6] = "TOMORROW", RelativeDate2))(RelativeDate || {}), SheetTypes = /* @__PURE__ */ ((SheetTypes2) => (SheetTypes2[SheetTypes2.GRID = 0] = "GRID", SheetTypes2[SheetTypes2.KANBAN = 1] = "KANBAN", SheetTypes2[SheetTypes2.GANTT = 2] = "GANTT", SheetTypes2))(SheetTypes || {}), TextDirection = /* @__PURE__ */ ((TextDirection2) => (TextDirection2[TextDirection2.UNSPECIFIED = 0] = "UNSPECIFIED", TextDirection2[TextDirection2.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", TextDirection2[TextDirection2.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", TextDirection2))(TextDirection || {}), TextDecoration = /* @__PURE__ */ ((TextDecoration2) => (TextDecoration2[TextDecoration2.DASH = 0] = "DASH", TextDecoration2[TextDecoration2.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", TextDecoration2[TextDecoration2.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", TextDecoration2[TextDecoration2.DASHED_HEAVY = 3] = "DASHED_HEAVY", TextDecoration2[TextDecoration2.DASH_LONG = 4] = "DASH_LONG", TextDecoration2[TextDecoration2.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", TextDecoration2[TextDecoration2.DOT_DASH = 6] = "DOT_DASH", TextDecoration2[TextDecoration2.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", TextDecoration2[TextDecoration2.DOTTED = 8] = "DOTTED", TextDecoration2[TextDecoration2.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", TextDecoration2[TextDecoration2.DOUBLE = 10] = "DOUBLE", TextDecoration2[TextDecoration2.NONE = 11] = "NONE", TextDecoration2[TextDecoration2.SINGLE = 12] = "SINGLE", TextDecoration2[TextDecoration2.THICK = 13] = "THICK", TextDecoration2[TextDecoration2.WAVE = 14] = "WAVE", TextDecoration2[TextDecoration2.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", TextDecoration2[TextDecoration2.WAVY_HEAVY = 16] = "WAVY_HEAVY", TextDecoration2[TextDecoration2.WORDS = 17] = "WORDS", TextDecoration2))(TextDecoration || {}), HorizontalAlign = /* @__PURE__ */ ((HorizontalAlign2) => (HorizontalAlign2[HorizontalAlign2.UNSPECIFIED = 0] = "UNSPECIFIED", HorizontalAlign2[HorizontalAlign2.LEFT = 1] = "LEFT", HorizontalAlign2[HorizontalAlign2.CENTER = 2] = "CENTER", HorizontalAlign2[HorizontalAlign2.RIGHT = 3] = "RIGHT", HorizontalAlign2[HorizontalAlign2.JUSTIFIED = 4] = "JUSTIFIED", HorizontalAlign2[HorizontalAlign2.BOTH = 5] = "BOTH", HorizontalAlign2[HorizontalAlign2.DISTRIBUTED = 6] = "DISTRIBUTED", HorizontalAlign2))(HorizontalAlign || {}), VerticalAlign = /* @__PURE__ */ ((VerticalAlign2) => (VerticalAlign2[VerticalAlign2.UNSPECIFIED = 0] = "UNSPECIFIED", VerticalAlign2[VerticalAlign2.TOP = 1] = "TOP", VerticalAlign2[VerticalAlign2.MIDDLE = 2] = "MIDDLE", VerticalAlign2[VerticalAlign2.BOTTOM = 3] = "BOTTOM", VerticalAlign2))(VerticalAlign || {}), WrapStrategy = /* @__PURE__ */ ((WrapStrategy2) => (WrapStrategy2[WrapStrategy2.UNSPECIFIED = 0] = "UNSPECIFIED", WrapStrategy2[WrapStrategy2.OVERFLOW = 1] = "OVERFLOW", WrapStrategy2[WrapStrategy2.CLIP = 2] = "CLIP", WrapStrategy2[WrapStrategy2.WRAP = 3] = "WRAP", WrapStrategy2))(WrapStrategy || {}), FontItalic = /* @__PURE__ */ ((FontItalic2) => (FontItalic2[FontItalic2.NORMAL = 0] = "NORMAL", FontItalic2[FontItalic2.ITALIC = 1] = "ITALIC", FontItalic2))(FontItalic || {}), FontWeight = /* @__PURE__ */ ((FontWeight2) => (FontWeight2[FontWeight2.NORMAL = 0] = "NORMAL", FontWeight2[FontWeight2.BOLD = 1] = "BOLD", FontWeight2))(FontWeight || {}), BaselineOffset = /* @__PURE__ */ ((BaselineOffset2) => (BaselineOffset2[BaselineOffset2.NORMAL = 1] = "NORMAL", BaselineOffset2[BaselineOffset2.SUBSCRIPT = 2] = "SUBSCRIPT", BaselineOffset2[BaselineOffset2.SUPERSCRIPT = 3] = "SUPERSCRIPT", BaselineOffset2))(BaselineOffset || {}), BooleanNumber = /* @__PURE__ */ ((BooleanNumber2) => (BooleanNumber2[BooleanNumber2.FALSE = 0] = "FALSE", BooleanNumber2[BooleanNumber2.TRUE = 1] = "TRUE", BooleanNumber2))(BooleanNumber || {}), CellValueType = /* @__PURE__ */ ((CellValueType2) => (CellValueType2[CellValueType2.STRING = 1] = "STRING", CellValueType2[CellValueType2.NUMBER = 2] = "NUMBER", CellValueType2[CellValueType2.BOOLEAN = 3] = "BOOLEAN", CellValueType2[CellValueType2.FORCE_STRING = 4] = "FORCE_STRING", CellValueType2))(CellValueType || {}), ThemeColorType = /* @__PURE__ */ ((ThemeColorType2) => (ThemeColorType2[ThemeColorType2.DARK1 = 0] = "DARK1", ThemeColorType2[ThemeColorType2.LIGHT1 = 1] = "LIGHT1", ThemeColorType2[ThemeColorType2.DARK2 = 2] = "DARK2", ThemeColorType2[ThemeColorType2.LIGHT2 = 3] = "LIGHT2", ThemeColorType2[ThemeColorType2.ACCENT1 = 4] = "ACCENT1", ThemeColorType2[ThemeColorType2.ACCENT2 = 5] = "ACCENT2", ThemeColorType2[ThemeColorType2.ACCENT3 = 6] = "ACCENT3", ThemeColorType2[ThemeColorType2.ACCENT4 = 7] = "ACCENT4", ThemeColorType2[ThemeColorType2.ACCENT5 = 8] = "ACCENT5", ThemeColorType2[ThemeColorType2.ACCENT6 = 9] = "ACCENT6", ThemeColorType2[ThemeColorType2.HYPERLINK = 10] = "HYPERLINK", ThemeColorType2[ThemeColorType2.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", ThemeColorType2))(ThemeColorType || {}), ThemeColors = /* @__PURE__ */ ((ThemeColors2) => (ThemeColors2.OFFICE = "Office", ThemeColors2.OFFICE_2007_2010 = "Office 2007-2010", ThemeColors2.GRAYSCALE = "Grayscale", ThemeColors2.BLUE_WARM = "Blue Warm", ThemeColors2.BLUE = "Blue", ThemeColors2.BLUE_II = "Blue II", ThemeColors2.BLUE_GREEN = "Blue Green", ThemeColors2.GREEN = "Green", ThemeColors2.GREEN_YELLOW = "Green Yellow", ThemeColors2.YELLOW = "Yellow", ThemeColors2.YELLOW_ORANGE = "Yellow Orange", ThemeColors2.ORANGE = "Orange", ThemeColors2.ORANGE_RED = "Orange Red", ThemeColors2.RED_ORANGE = "Red Orange", ThemeColors2.RED = "Red", ThemeColors2.RED_VIOLET = "Red Violet", ThemeColors2.VIOLET = "Violet", ThemeColors2.VIOLET_II = "Violet II", ThemeColors2.MEDIAN = "Median", ThemeColors2.PAPER = "Paper", ThemeColors2.MARQUEE = "Marquee", ThemeColors2.SLIPSTREAM = "Slipstream", ThemeColors2.Aspect = "Aspect", ThemeColors2))(ThemeColors || {});
|
|
1925
2714
|
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1926
2715
|
let random = /* @__PURE__ */ __name((bytes) => crypto.getRandomValues(new Uint8Array(bytes)), "random"), customRandom = /* @__PURE__ */ __name((alphabet, defaultSize, getRandom) => {
|
|
1927
2716
|
let mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1, step = -~(1.6 * mask * defaultSize / alphabet.length);
|
|
@@ -1939,561 +2728,7 @@ let random = /* @__PURE__ */ __name((bytes) => crypto.getRandomValues(new Uint8A
|
|
|
1939
2728
|
id += urlAlphabet[bytes[size] & 63];
|
|
1940
2729
|
return id;
|
|
1941
2730
|
}, "nanoid");
|
|
1942
|
-
|
|
1943
|
-
function getDefaultExportFromCjs(x) {
|
|
1944
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
|
|
1945
|
-
}
|
|
1946
|
-
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
|
1947
|
-
var lodash_mergewith = { exports: {} };
|
|
1948
|
-
lodash_mergewith.exports;
|
|
1949
|
-
(function(module, exports) {
|
|
1950
|
-
var LARGE_ARRAY_SIZE = 200, HASH_UNDEFINED = "__lodash_hash_undefined__", HOT_COUNT = 800, HOT_SPAN = 16, MAX_SAFE_INTEGER = 9007199254740991, argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, reIsUint = /^(?:0|[1-9]\d*)$/, typedArrayTags = {};
|
|
1951
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = !0, typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = !1;
|
|
1952
|
-
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal, freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(), freeExports = exports && !exports.nodeType && exports, freeModule = freeExports && !0 && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports, freeProcess = moduleExports && freeGlobal.process, nodeUtil = function() {
|
|
1953
|
-
try {
|
|
1954
|
-
var types2 = freeModule && freeModule.require && freeModule.require("util").types;
|
|
1955
|
-
return types2 || freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
1956
|
-
} catch {
|
|
1957
|
-
}
|
|
1958
|
-
}(), nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1959
|
-
function apply(func, thisArg, args) {
|
|
1960
|
-
switch (args.length) {
|
|
1961
|
-
case 0:
|
|
1962
|
-
return func.call(thisArg);
|
|
1963
|
-
case 1:
|
|
1964
|
-
return func.call(thisArg, args[0]);
|
|
1965
|
-
case 2:
|
|
1966
|
-
return func.call(thisArg, args[0], args[1]);
|
|
1967
|
-
case 3:
|
|
1968
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
1969
|
-
}
|
|
1970
|
-
return func.apply(thisArg, args);
|
|
1971
|
-
}
|
|
1972
|
-
__name(apply, "apply");
|
|
1973
|
-
function baseTimes(n, iteratee) {
|
|
1974
|
-
for (var index2 = -1, result = Array(n); ++index2 < n; )
|
|
1975
|
-
result[index2] = iteratee(index2);
|
|
1976
|
-
return result;
|
|
1977
|
-
}
|
|
1978
|
-
__name(baseTimes, "baseTimes");
|
|
1979
|
-
function baseUnary(func) {
|
|
1980
|
-
return function(value) {
|
|
1981
|
-
return func(value);
|
|
1982
|
-
};
|
|
1983
|
-
}
|
|
1984
|
-
__name(baseUnary, "baseUnary");
|
|
1985
|
-
function getValue(object, key) {
|
|
1986
|
-
return object == null ? void 0 : object[key];
|
|
1987
|
-
}
|
|
1988
|
-
__name(getValue, "getValue");
|
|
1989
|
-
function overArg(func, transform) {
|
|
1990
|
-
return function(arg) {
|
|
1991
|
-
return func(transform(arg));
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
__name(overArg, "overArg");
|
|
1995
|
-
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype, coreJsData = root["__core-js_shared__"], funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, maskSrcKey = function() {
|
|
1996
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
1997
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
1998
|
-
}(), nativeObjectToString = objectProto.toString, objectCtorString = funcToString.call(Object), reIsNative = RegExp(
|
|
1999
|
-
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2000
|
-
), Buffer2 = moduleExports ? root.Buffer : void 0, Symbol2 = root.Symbol, Uint8Array2 = root.Uint8Array;
|
|
2001
|
-
Buffer2 && Buffer2.allocUnsafe;
|
|
2002
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0, defineProperty = function() {
|
|
2003
|
-
try {
|
|
2004
|
-
var func = getNative(Object, "defineProperty");
|
|
2005
|
-
return func({}, "", {}), func;
|
|
2006
|
-
} catch {
|
|
2007
|
-
}
|
|
2008
|
-
}(), nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeMax = Math.max, nativeNow = Date.now, Map2 = getNative(root, "Map"), nativeCreate = getNative(Object, "create"), baseCreate = function() {
|
|
2009
|
-
function object() {
|
|
2010
|
-
}
|
|
2011
|
-
return __name(object, "object"), function(proto) {
|
|
2012
|
-
if (!isObject2(proto))
|
|
2013
|
-
return {};
|
|
2014
|
-
if (objectCreate)
|
|
2015
|
-
return objectCreate(proto);
|
|
2016
|
-
object.prototype = proto;
|
|
2017
|
-
var result = new object();
|
|
2018
|
-
return object.prototype = void 0, result;
|
|
2019
|
-
};
|
|
2020
|
-
}();
|
|
2021
|
-
function Hash(entries) {
|
|
2022
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
2023
|
-
for (this.clear(); ++index2 < length; ) {
|
|
2024
|
-
var entry = entries[index2];
|
|
2025
|
-
this.set(entry[0], entry[1]);
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
__name(Hash, "Hash");
|
|
2029
|
-
function hashClear() {
|
|
2030
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {}, this.size = 0;
|
|
2031
|
-
}
|
|
2032
|
-
__name(hashClear, "hashClear");
|
|
2033
|
-
function hashDelete(key) {
|
|
2034
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
2035
|
-
return this.size -= result ? 1 : 0, result;
|
|
2036
|
-
}
|
|
2037
|
-
__name(hashDelete, "hashDelete");
|
|
2038
|
-
function hashGet(key) {
|
|
2039
|
-
var data = this.__data__;
|
|
2040
|
-
if (nativeCreate) {
|
|
2041
|
-
var result = data[key];
|
|
2042
|
-
return result === HASH_UNDEFINED ? void 0 : result;
|
|
2043
|
-
}
|
|
2044
|
-
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
2045
|
-
}
|
|
2046
|
-
__name(hashGet, "hashGet");
|
|
2047
|
-
function hashHas(key) {
|
|
2048
|
-
var data = this.__data__;
|
|
2049
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
2050
|
-
}
|
|
2051
|
-
__name(hashHas, "hashHas");
|
|
2052
|
-
function hashSet(key, value) {
|
|
2053
|
-
var data = this.__data__;
|
|
2054
|
-
return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value, this;
|
|
2055
|
-
}
|
|
2056
|
-
__name(hashSet, "hashSet"), Hash.prototype.clear = hashClear, Hash.prototype.delete = hashDelete, Hash.prototype.get = hashGet, Hash.prototype.has = hashHas, Hash.prototype.set = hashSet;
|
|
2057
|
-
function ListCache(entries) {
|
|
2058
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
2059
|
-
for (this.clear(); ++index2 < length; ) {
|
|
2060
|
-
var entry = entries[index2];
|
|
2061
|
-
this.set(entry[0], entry[1]);
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
__name(ListCache, "ListCache");
|
|
2065
|
-
function listCacheClear() {
|
|
2066
|
-
this.__data__ = [], this.size = 0;
|
|
2067
|
-
}
|
|
2068
|
-
__name(listCacheClear, "listCacheClear");
|
|
2069
|
-
function listCacheDelete(key) {
|
|
2070
|
-
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
2071
|
-
if (index2 < 0)
|
|
2072
|
-
return !1;
|
|
2073
|
-
var lastIndex = data.length - 1;
|
|
2074
|
-
return index2 == lastIndex ? data.pop() : splice.call(data, index2, 1), --this.size, !0;
|
|
2075
|
-
}
|
|
2076
|
-
__name(listCacheDelete, "listCacheDelete");
|
|
2077
|
-
function listCacheGet(key) {
|
|
2078
|
-
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
2079
|
-
return index2 < 0 ? void 0 : data[index2][1];
|
|
2080
|
-
}
|
|
2081
|
-
__name(listCacheGet, "listCacheGet");
|
|
2082
|
-
function listCacheHas(key) {
|
|
2083
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
2084
|
-
}
|
|
2085
|
-
__name(listCacheHas, "listCacheHas");
|
|
2086
|
-
function listCacheSet(key, value) {
|
|
2087
|
-
var data = this.__data__, index2 = assocIndexOf(data, key);
|
|
2088
|
-
return index2 < 0 ? (++this.size, data.push([key, value])) : data[index2][1] = value, this;
|
|
2089
|
-
}
|
|
2090
|
-
__name(listCacheSet, "listCacheSet"), ListCache.prototype.clear = listCacheClear, ListCache.prototype.delete = listCacheDelete, ListCache.prototype.get = listCacheGet, ListCache.prototype.has = listCacheHas, ListCache.prototype.set = listCacheSet;
|
|
2091
|
-
function MapCache(entries) {
|
|
2092
|
-
var index2 = -1, length = entries == null ? 0 : entries.length;
|
|
2093
|
-
for (this.clear(); ++index2 < length; ) {
|
|
2094
|
-
var entry = entries[index2];
|
|
2095
|
-
this.set(entry[0], entry[1]);
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
__name(MapCache, "MapCache");
|
|
2099
|
-
function mapCacheClear() {
|
|
2100
|
-
this.size = 0, this.__data__ = {
|
|
2101
|
-
hash: new Hash(),
|
|
2102
|
-
map: new (Map2 || ListCache)(),
|
|
2103
|
-
string: new Hash()
|
|
2104
|
-
};
|
|
2105
|
-
}
|
|
2106
|
-
__name(mapCacheClear, "mapCacheClear");
|
|
2107
|
-
function mapCacheDelete(key) {
|
|
2108
|
-
var result = getMapData(this, key).delete(key);
|
|
2109
|
-
return this.size -= result ? 1 : 0, result;
|
|
2110
|
-
}
|
|
2111
|
-
__name(mapCacheDelete, "mapCacheDelete");
|
|
2112
|
-
function mapCacheGet(key) {
|
|
2113
|
-
return getMapData(this, key).get(key);
|
|
2114
|
-
}
|
|
2115
|
-
__name(mapCacheGet, "mapCacheGet");
|
|
2116
|
-
function mapCacheHas(key) {
|
|
2117
|
-
return getMapData(this, key).has(key);
|
|
2118
|
-
}
|
|
2119
|
-
__name(mapCacheHas, "mapCacheHas");
|
|
2120
|
-
function mapCacheSet(key, value) {
|
|
2121
|
-
var data = getMapData(this, key), size = data.size;
|
|
2122
|
-
return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
|
|
2123
|
-
}
|
|
2124
|
-
__name(mapCacheSet, "mapCacheSet"), MapCache.prototype.clear = mapCacheClear, MapCache.prototype.delete = mapCacheDelete, MapCache.prototype.get = mapCacheGet, MapCache.prototype.has = mapCacheHas, MapCache.prototype.set = mapCacheSet;
|
|
2125
|
-
function Stack(entries) {
|
|
2126
|
-
var data = this.__data__ = new ListCache(entries);
|
|
2127
|
-
this.size = data.size;
|
|
2128
|
-
}
|
|
2129
|
-
__name(Stack, "Stack");
|
|
2130
|
-
function stackClear() {
|
|
2131
|
-
this.__data__ = new ListCache(), this.size = 0;
|
|
2132
|
-
}
|
|
2133
|
-
__name(stackClear, "stackClear");
|
|
2134
|
-
function stackDelete(key) {
|
|
2135
|
-
var data = this.__data__, result = data.delete(key);
|
|
2136
|
-
return this.size = data.size, result;
|
|
2137
|
-
}
|
|
2138
|
-
__name(stackDelete, "stackDelete");
|
|
2139
|
-
function stackGet(key) {
|
|
2140
|
-
return this.__data__.get(key);
|
|
2141
|
-
}
|
|
2142
|
-
__name(stackGet, "stackGet");
|
|
2143
|
-
function stackHas(key) {
|
|
2144
|
-
return this.__data__.has(key);
|
|
2145
|
-
}
|
|
2146
|
-
__name(stackHas, "stackHas");
|
|
2147
|
-
function stackSet(key, value) {
|
|
2148
|
-
var data = this.__data__;
|
|
2149
|
-
if (data instanceof ListCache) {
|
|
2150
|
-
var pairs = data.__data__;
|
|
2151
|
-
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1)
|
|
2152
|
-
return pairs.push([key, value]), this.size = ++data.size, this;
|
|
2153
|
-
data = this.__data__ = new MapCache(pairs);
|
|
2154
|
-
}
|
|
2155
|
-
return data.set(key, value), this.size = data.size, this;
|
|
2156
|
-
}
|
|
2157
|
-
__name(stackSet, "stackSet"), Stack.prototype.clear = stackClear, Stack.prototype.delete = stackDelete, Stack.prototype.get = stackGet, Stack.prototype.has = stackHas, Stack.prototype.set = stackSet;
|
|
2158
|
-
function arrayLikeKeys(value, inherited) {
|
|
2159
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
2160
|
-
for (var key in value)
|
|
2161
|
-
skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2162
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2163
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2164
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
2165
|
-
isIndex(key, length)) || result.push(key);
|
|
2166
|
-
return result;
|
|
2167
|
-
}
|
|
2168
|
-
__name(arrayLikeKeys, "arrayLikeKeys");
|
|
2169
|
-
function assignMergeValue(object, key, value) {
|
|
2170
|
-
(value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) && baseAssignValue(object, key, value);
|
|
2171
|
-
}
|
|
2172
|
-
__name(assignMergeValue, "assignMergeValue");
|
|
2173
|
-
function assignValue(object, key, value) {
|
|
2174
|
-
var objValue = object[key];
|
|
2175
|
-
(!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) && baseAssignValue(object, key, value);
|
|
2176
|
-
}
|
|
2177
|
-
__name(assignValue, "assignValue");
|
|
2178
|
-
function assocIndexOf(array, key) {
|
|
2179
|
-
for (var length = array.length; length--; )
|
|
2180
|
-
if (eq(array[length][0], key))
|
|
2181
|
-
return length;
|
|
2182
|
-
return -1;
|
|
2183
|
-
}
|
|
2184
|
-
__name(assocIndexOf, "assocIndexOf");
|
|
2185
|
-
function baseAssignValue(object, key, value) {
|
|
2186
|
-
key == "__proto__" && defineProperty ? defineProperty(object, key, {
|
|
2187
|
-
configurable: !0,
|
|
2188
|
-
enumerable: !0,
|
|
2189
|
-
value,
|
|
2190
|
-
writable: !0
|
|
2191
|
-
}) : object[key] = value;
|
|
2192
|
-
}
|
|
2193
|
-
__name(baseAssignValue, "baseAssignValue");
|
|
2194
|
-
var baseFor = createBaseFor();
|
|
2195
|
-
function baseGetTag(value) {
|
|
2196
|
-
return value == null ? value === void 0 ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
2197
|
-
}
|
|
2198
|
-
__name(baseGetTag, "baseGetTag");
|
|
2199
|
-
function baseIsArguments(value) {
|
|
2200
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
2201
|
-
}
|
|
2202
|
-
__name(baseIsArguments, "baseIsArguments");
|
|
2203
|
-
function baseIsNative(value) {
|
|
2204
|
-
if (!isObject2(value) || isMasked(value))
|
|
2205
|
-
return !1;
|
|
2206
|
-
var pattern = isFunction2(value) ? reIsNative : reIsHostCtor;
|
|
2207
|
-
return pattern.test(toSource(value));
|
|
2208
|
-
}
|
|
2209
|
-
__name(baseIsNative, "baseIsNative");
|
|
2210
|
-
function baseIsTypedArray(value) {
|
|
2211
|
-
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
2212
|
-
}
|
|
2213
|
-
__name(baseIsTypedArray, "baseIsTypedArray");
|
|
2214
|
-
function baseKeysIn(object) {
|
|
2215
|
-
if (!isObject2(object))
|
|
2216
|
-
return nativeKeysIn(object);
|
|
2217
|
-
var isProto = isPrototype(object), result = [];
|
|
2218
|
-
for (var key in object)
|
|
2219
|
-
key == "constructor" && (isProto || !hasOwnProperty.call(object, key)) || result.push(key);
|
|
2220
|
-
return result;
|
|
2221
|
-
}
|
|
2222
|
-
__name(baseKeysIn, "baseKeysIn");
|
|
2223
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
2224
|
-
object !== source && baseFor(source, function(srcValue, key) {
|
|
2225
|
-
if (stack || (stack = new Stack()), isObject2(srcValue))
|
|
2226
|
-
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
2227
|
-
else {
|
|
2228
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
2229
|
-
newValue === void 0 && (newValue = srcValue), assignMergeValue(object, key, newValue);
|
|
2230
|
-
}
|
|
2231
|
-
}, keysIn);
|
|
2232
|
-
}
|
|
2233
|
-
__name(baseMerge, "baseMerge");
|
|
2234
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2235
|
-
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
2236
|
-
if (stacked) {
|
|
2237
|
-
assignMergeValue(object, key, stacked);
|
|
2238
|
-
return;
|
|
2239
|
-
}
|
|
2240
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0, isCommon = newValue === void 0;
|
|
2241
|
-
if (isCommon) {
|
|
2242
|
-
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
2243
|
-
newValue = srcValue, isArr || isBuff || isTyped ? isArray(objValue) ? newValue = objValue : isArrayLikeObject(objValue) ? newValue = copyArray(objValue) : isBuff ? (isCommon = !1, newValue = cloneBuffer(srcValue)) : isTyped ? (isCommon = !1, newValue = cloneTypedArray(srcValue)) : newValue = [] : isPlainObject(srcValue) || isArguments(srcValue) ? (newValue = objValue, isArguments(objValue) ? newValue = toPlainObject(objValue) : (!isObject2(objValue) || isFunction2(objValue)) && (newValue = initCloneObject(srcValue))) : isCommon = !1;
|
|
2244
|
-
}
|
|
2245
|
-
isCommon && (stack.set(srcValue, newValue), mergeFunc(newValue, srcValue, srcIndex, customizer, stack), stack.delete(srcValue)), assignMergeValue(object, key, newValue);
|
|
2246
|
-
}
|
|
2247
|
-
__name(baseMergeDeep, "baseMergeDeep");
|
|
2248
|
-
function baseRest(func, start) {
|
|
2249
|
-
return setToString(overRest(func, start, identity), func + "");
|
|
2250
|
-
}
|
|
2251
|
-
__name(baseRest, "baseRest");
|
|
2252
|
-
var baseSetToString = defineProperty ? function(func, string) {
|
|
2253
|
-
return defineProperty(func, "toString", {
|
|
2254
|
-
configurable: !0,
|
|
2255
|
-
enumerable: !1,
|
|
2256
|
-
value: constant(string),
|
|
2257
|
-
writable: !0
|
|
2258
|
-
});
|
|
2259
|
-
} : identity;
|
|
2260
|
-
function cloneBuffer(buffer, isDeep) {
|
|
2261
|
-
return buffer.slice();
|
|
2262
|
-
}
|
|
2263
|
-
__name(cloneBuffer, "cloneBuffer");
|
|
2264
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
2265
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2266
|
-
return new Uint8Array2(result).set(new Uint8Array2(arrayBuffer)), result;
|
|
2267
|
-
}
|
|
2268
|
-
__name(cloneArrayBuffer, "cloneArrayBuffer");
|
|
2269
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
2270
|
-
var buffer = cloneArrayBuffer(typedArray.buffer);
|
|
2271
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
2272
|
-
}
|
|
2273
|
-
__name(cloneTypedArray, "cloneTypedArray");
|
|
2274
|
-
function copyArray(source, array) {
|
|
2275
|
-
var index2 = -1, length = source.length;
|
|
2276
|
-
for (array || (array = Array(length)); ++index2 < length; )
|
|
2277
|
-
array[index2] = source[index2];
|
|
2278
|
-
return array;
|
|
2279
|
-
}
|
|
2280
|
-
__name(copyArray, "copyArray");
|
|
2281
|
-
function copyObject(source, props, object, customizer) {
|
|
2282
|
-
var isNew = !object;
|
|
2283
|
-
object || (object = {});
|
|
2284
|
-
for (var index2 = -1, length = props.length; ++index2 < length; ) {
|
|
2285
|
-
var key = props[index2], newValue = void 0;
|
|
2286
|
-
newValue === void 0 && (newValue = source[key]), isNew ? baseAssignValue(object, key, newValue) : assignValue(object, key, newValue);
|
|
2287
|
-
}
|
|
2288
|
-
return object;
|
|
2289
|
-
}
|
|
2290
|
-
__name(copyObject, "copyObject");
|
|
2291
|
-
function createAssigner(assigner) {
|
|
2292
|
-
return baseRest(function(object, sources) {
|
|
2293
|
-
var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
2294
|
-
for (customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0, guard && isIterateeCall(sources[0], sources[1], guard) && (customizer = length < 3 ? void 0 : customizer, length = 1), object = Object(object); ++index2 < length; ) {
|
|
2295
|
-
var source = sources[index2];
|
|
2296
|
-
source && assigner(object, source, index2, customizer);
|
|
2297
|
-
}
|
|
2298
|
-
return object;
|
|
2299
|
-
});
|
|
2300
|
-
}
|
|
2301
|
-
__name(createAssigner, "createAssigner");
|
|
2302
|
-
function createBaseFor(fromRight) {
|
|
2303
|
-
return function(object, iteratee, keysFunc) {
|
|
2304
|
-
for (var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) {
|
|
2305
|
-
var key = props[++index2];
|
|
2306
|
-
if (iteratee(iterable[key], key, iterable) === !1)
|
|
2307
|
-
break;
|
|
2308
|
-
}
|
|
2309
|
-
return object;
|
|
2310
|
-
};
|
|
2311
|
-
}
|
|
2312
|
-
__name(createBaseFor, "createBaseFor");
|
|
2313
|
-
function getMapData(map2, key) {
|
|
2314
|
-
var data = map2.__data__;
|
|
2315
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
2316
|
-
}
|
|
2317
|
-
__name(getMapData, "getMapData");
|
|
2318
|
-
function getNative(object, key) {
|
|
2319
|
-
var value = getValue(object, key);
|
|
2320
|
-
return baseIsNative(value) ? value : void 0;
|
|
2321
|
-
}
|
|
2322
|
-
__name(getNative, "getNative");
|
|
2323
|
-
function getRawTag(value) {
|
|
2324
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
2325
|
-
try {
|
|
2326
|
-
value[symToStringTag] = void 0;
|
|
2327
|
-
var unmasked = !0;
|
|
2328
|
-
} catch {
|
|
2329
|
-
}
|
|
2330
|
-
var result = nativeObjectToString.call(value);
|
|
2331
|
-
return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), result;
|
|
2332
|
-
}
|
|
2333
|
-
__name(getRawTag, "getRawTag");
|
|
2334
|
-
function initCloneObject(object) {
|
|
2335
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
2336
|
-
}
|
|
2337
|
-
__name(initCloneObject, "initCloneObject");
|
|
2338
|
-
function isIndex(value, length) {
|
|
2339
|
-
var type2 = typeof value;
|
|
2340
|
-
return length = length == null ? MAX_SAFE_INTEGER : length, !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
2341
|
-
}
|
|
2342
|
-
__name(isIndex, "isIndex");
|
|
2343
|
-
function isIterateeCall(value, index2, object) {
|
|
2344
|
-
if (!isObject2(object))
|
|
2345
|
-
return !1;
|
|
2346
|
-
var type2 = typeof index2;
|
|
2347
|
-
return (type2 == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type2 == "string" && index2 in object) ? eq(object[index2], value) : !1;
|
|
2348
|
-
}
|
|
2349
|
-
__name(isIterateeCall, "isIterateeCall");
|
|
2350
|
-
function isKeyable(value) {
|
|
2351
|
-
var type2 = typeof value;
|
|
2352
|
-
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
|
|
2353
|
-
}
|
|
2354
|
-
__name(isKeyable, "isKeyable");
|
|
2355
|
-
function isMasked(func) {
|
|
2356
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
2357
|
-
}
|
|
2358
|
-
__name(isMasked, "isMasked");
|
|
2359
|
-
function isPrototype(value) {
|
|
2360
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
2361
|
-
return value === proto;
|
|
2362
|
-
}
|
|
2363
|
-
__name(isPrototype, "isPrototype");
|
|
2364
|
-
function nativeKeysIn(object) {
|
|
2365
|
-
var result = [];
|
|
2366
|
-
if (object != null)
|
|
2367
|
-
for (var key in Object(object))
|
|
2368
|
-
result.push(key);
|
|
2369
|
-
return result;
|
|
2370
|
-
}
|
|
2371
|
-
__name(nativeKeysIn, "nativeKeysIn");
|
|
2372
|
-
function objectToString(value) {
|
|
2373
|
-
return nativeObjectToString.call(value);
|
|
2374
|
-
}
|
|
2375
|
-
__name(objectToString, "objectToString");
|
|
2376
|
-
function overRest(func, start, transform) {
|
|
2377
|
-
return start = nativeMax(start === void 0 ? func.length - 1 : start, 0), function() {
|
|
2378
|
-
for (var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array(length); ++index2 < length; )
|
|
2379
|
-
array[index2] = args[start + index2];
|
|
2380
|
-
index2 = -1;
|
|
2381
|
-
for (var otherArgs = Array(start + 1); ++index2 < start; )
|
|
2382
|
-
otherArgs[index2] = args[index2];
|
|
2383
|
-
return otherArgs[start] = transform(array), apply(func, this, otherArgs);
|
|
2384
|
-
};
|
|
2385
|
-
}
|
|
2386
|
-
__name(overRest, "overRest");
|
|
2387
|
-
function safeGet(object, key) {
|
|
2388
|
-
if (!(key === "constructor" && typeof object[key] == "function") && key != "__proto__")
|
|
2389
|
-
return object[key];
|
|
2390
|
-
}
|
|
2391
|
-
__name(safeGet, "safeGet");
|
|
2392
|
-
var setToString = shortOut(baseSetToString);
|
|
2393
|
-
function shortOut(func) {
|
|
2394
|
-
var count = 0, lastCalled = 0;
|
|
2395
|
-
return function() {
|
|
2396
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
2397
|
-
if (lastCalled = stamp, remaining > 0) {
|
|
2398
|
-
if (++count >= HOT_COUNT)
|
|
2399
|
-
return arguments[0];
|
|
2400
|
-
} else
|
|
2401
|
-
count = 0;
|
|
2402
|
-
return func.apply(void 0, arguments);
|
|
2403
|
-
};
|
|
2404
|
-
}
|
|
2405
|
-
__name(shortOut, "shortOut");
|
|
2406
|
-
function toSource(func) {
|
|
2407
|
-
if (func != null) {
|
|
2408
|
-
try {
|
|
2409
|
-
return funcToString.call(func);
|
|
2410
|
-
} catch {
|
|
2411
|
-
}
|
|
2412
|
-
try {
|
|
2413
|
-
return func + "";
|
|
2414
|
-
} catch {
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2417
|
-
return "";
|
|
2418
|
-
}
|
|
2419
|
-
__name(toSource, "toSource");
|
|
2420
|
-
function eq(value, other) {
|
|
2421
|
-
return value === other || value !== value && other !== other;
|
|
2422
|
-
}
|
|
2423
|
-
__name(eq, "eq");
|
|
2424
|
-
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
2425
|
-
return arguments;
|
|
2426
|
-
}()) ? baseIsArguments : function(value) {
|
|
2427
|
-
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
2428
|
-
}, isArray = Array.isArray;
|
|
2429
|
-
function isArrayLike(value) {
|
|
2430
|
-
return value != null && isLength(value.length) && !isFunction2(value);
|
|
2431
|
-
}
|
|
2432
|
-
__name(isArrayLike, "isArrayLike");
|
|
2433
|
-
function isArrayLikeObject(value) {
|
|
2434
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
2435
|
-
}
|
|
2436
|
-
__name(isArrayLikeObject, "isArrayLikeObject");
|
|
2437
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
2438
|
-
function isFunction2(value) {
|
|
2439
|
-
if (!isObject2(value))
|
|
2440
|
-
return !1;
|
|
2441
|
-
var tag = baseGetTag(value);
|
|
2442
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
2443
|
-
}
|
|
2444
|
-
__name(isFunction2, "isFunction");
|
|
2445
|
-
function isLength(value) {
|
|
2446
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
2447
|
-
}
|
|
2448
|
-
__name(isLength, "isLength");
|
|
2449
|
-
function isObject2(value) {
|
|
2450
|
-
var type2 = typeof value;
|
|
2451
|
-
return value != null && (type2 == "object" || type2 == "function");
|
|
2452
|
-
}
|
|
2453
|
-
__name(isObject2, "isObject");
|
|
2454
|
-
function isObjectLike(value) {
|
|
2455
|
-
return value != null && typeof value == "object";
|
|
2456
|
-
}
|
|
2457
|
-
__name(isObjectLike, "isObjectLike");
|
|
2458
|
-
function isPlainObject(value) {
|
|
2459
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag)
|
|
2460
|
-
return !1;
|
|
2461
|
-
var proto = getPrototype(value);
|
|
2462
|
-
if (proto === null)
|
|
2463
|
-
return !0;
|
|
2464
|
-
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
2465
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
2466
|
-
}
|
|
2467
|
-
__name(isPlainObject, "isPlainObject");
|
|
2468
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
2469
|
-
function toPlainObject(value) {
|
|
2470
|
-
return copyObject(value, keysIn(value));
|
|
2471
|
-
}
|
|
2472
|
-
__name(toPlainObject, "toPlainObject");
|
|
2473
|
-
function keysIn(object) {
|
|
2474
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeysIn(object);
|
|
2475
|
-
}
|
|
2476
|
-
__name(keysIn, "keysIn");
|
|
2477
|
-
var mergeWith2 = createAssigner(function(object, source, srcIndex, customizer) {
|
|
2478
|
-
baseMerge(object, source, srcIndex, customizer);
|
|
2479
|
-
});
|
|
2480
|
-
function constant(value) {
|
|
2481
|
-
return function() {
|
|
2482
|
-
return value;
|
|
2483
|
-
};
|
|
2484
|
-
}
|
|
2485
|
-
__name(constant, "constant");
|
|
2486
|
-
function identity(value) {
|
|
2487
|
-
return value;
|
|
2488
|
-
}
|
|
2489
|
-
__name(identity, "identity");
|
|
2490
|
-
function stubFalse() {
|
|
2491
|
-
return !1;
|
|
2492
|
-
}
|
|
2493
|
-
__name(stubFalse, "stubFalse"), module.exports = mergeWith2;
|
|
2494
|
-
})(lodash_mergewith, lodash_mergewith.exports);
|
|
2495
|
-
var lodash_mergewithExports = lodash_mergewith.exports;
|
|
2496
|
-
const mergeWith = /* @__PURE__ */ getDefaultExportFromCjs(lodash_mergewithExports), topLevelDomainSet = /* @__PURE__ */ new Set([
|
|
2731
|
+
const topLevelDomainSet = /* @__PURE__ */ new Set([
|
|
2497
2732
|
"ac",
|
|
2498
2733
|
"ad",
|
|
2499
2734
|
"ae",
|
|
@@ -3211,36 +3446,12 @@ const rmsPrefix = /^-ms-/, rDashAlpha = /-([a-z])/g, alphabets = [
|
|
|
3211
3446
|
const containsInvalidChars = /[~!@#$%^&*()+=\-{}\[\]\|:;"'<>,?\/ ]+/.test(name), isValidLength = name.length <= 255;
|
|
3212
3447
|
return !containsInvalidChars && isValidLength;
|
|
3213
3448
|
}
|
|
3214
|
-
/**
|
|
3215
|
-
* As lodash set, via a path string to set value to deep property
|
|
3216
|
-
* set(obj, 'xx.yy', val)
|
|
3217
|
-
* @param data
|
|
3218
|
-
* @param propertyPath
|
|
3219
|
-
* @param value
|
|
3220
|
-
*/
|
|
3221
|
-
static set(data, propertyPath, value) {
|
|
3222
|
-
const paths = propertyPath.split("."), key = paths.pop();
|
|
3223
|
-
paths.forEach((prop) => {
|
|
3224
|
-
data[prop] || (data[prop] = {}), data = data[prop];
|
|
3225
|
-
}), key && (data[key] = value);
|
|
3226
|
-
}
|
|
3227
3449
|
static clamp(value, min, max) {
|
|
3228
3450
|
return Math.max(min, Math.min(max, value));
|
|
3229
3451
|
}
|
|
3230
3452
|
static now() {
|
|
3231
3453
|
return performance && performance.now ? performance.now() : Date.now();
|
|
3232
3454
|
}
|
|
3233
|
-
/**
|
|
3234
|
-
* @static
|
|
3235
|
-
* @param {unknown} object Modify the property while leaving the reference unchanged.
|
|
3236
|
-
* @param {unknown} source The source being merged in object.
|
|
3237
|
-
* @param {(value: unknown, originValue: unknown, key: string, object: unknown, source: unknown, stack: string[]) => {}} [customizer]
|
|
3238
|
-
* @return {*}
|
|
3239
|
-
* @memberof Tools
|
|
3240
|
-
*/
|
|
3241
|
-
static mergeWith(object, source, customizer) {
|
|
3242
|
-
return mergeWith(object, source, customizer);
|
|
3243
|
-
}
|
|
3244
3455
|
};
|
|
3245
3456
|
__name(_Tools, "Tools");
|
|
3246
3457
|
let Tools = _Tools;
|
|
@@ -4338,23 +4549,6 @@ function checkForSubstrings(searchString, substrings) {
|
|
|
4338
4549
|
return substrings.some((substring) => searchString.indexOf(substring) > -1);
|
|
4339
4550
|
}
|
|
4340
4551
|
__name(checkForSubstrings, "checkForSubstrings");
|
|
4341
|
-
function debounce(func, wait) {
|
|
4342
|
-
let timeout;
|
|
4343
|
-
function run(...args) {
|
|
4344
|
-
const context = this, later = /* @__PURE__ */ __name(function() {
|
|
4345
|
-
timeout = null, func.apply(context, args);
|
|
4346
|
-
}, "later");
|
|
4347
|
-
clearTimeout(timeout), timeout = setTimeout(later, wait);
|
|
4348
|
-
}
|
|
4349
|
-
return __name(run, "run"), Object.defineProperty(run, "cancel", {
|
|
4350
|
-
value: /* @__PURE__ */ __name(() => {
|
|
4351
|
-
clearTimeout(timeout);
|
|
4352
|
-
}, "value"),
|
|
4353
|
-
enumerable: !1,
|
|
4354
|
-
writable: !1
|
|
4355
|
-
}), run;
|
|
4356
|
-
}
|
|
4357
|
-
__name(debounce, "debounce");
|
|
4358
4552
|
function horizontalLineSegmentsSubtraction(A1, A2, B1, B2) {
|
|
4359
4553
|
if (A1 > A2 && ([A1, A2] = [A2, A1]), B1 > B2 && ([B1, B2] = [B2, B1]), A2 < B1 || B2 < A1)
|
|
4360
4554
|
return [A1, A2];
|
|
@@ -4596,10 +4790,15 @@ const _LRUHelper = class _LRUHelper {
|
|
|
4596
4790
|
};
|
|
4597
4791
|
__name(_LRUHelper, "LRUHelper");
|
|
4598
4792
|
let LRUHelper = _LRUHelper;
|
|
4793
|
+
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4794
|
+
function getDefaultExportFromCjs(x) {
|
|
4795
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
|
|
4796
|
+
}
|
|
4797
|
+
__name(getDefaultExportFromCjs, "getDefaultExportFromCjs");
|
|
4599
4798
|
var numfmt$2 = { exports: {} };
|
|
4600
|
-
(function(
|
|
4799
|
+
(function(module2, exports2) {
|
|
4601
4800
|
(function(e, t) {
|
|
4602
|
-
|
|
4801
|
+
module2.exports = t();
|
|
4603
4802
|
})(typeof self < "u" ? self : commonjsGlobal, function() {
|
|
4604
4803
|
return function() {
|
|
4605
4804
|
var e = { d: /* @__PURE__ */ __name(function(t2, n2) {
|
|
@@ -6375,22 +6574,30 @@ const _Range = class _Range {
|
|
|
6375
6574
|
);
|
|
6376
6575
|
}
|
|
6377
6576
|
};
|
|
6378
|
-
__name(_Range, "Range"), __publicField(_Range, "transformRange", /* @__PURE__ */ __name((range, worksheet) =>
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6577
|
+
__name(_Range, "Range"), __publicField(_Range, "transformRange", /* @__PURE__ */ __name((range, worksheet) => {
|
|
6578
|
+
const maxColumns = worksheet.getMaxColumns() - 1, maxRows = worksheet.getMaxRows() - 1;
|
|
6579
|
+
return range.rangeType === RANGE_TYPE.ALL ? {
|
|
6580
|
+
startColumn: 0,
|
|
6581
|
+
startRow: 0,
|
|
6582
|
+
endColumn: maxColumns,
|
|
6583
|
+
endRow: maxRows
|
|
6584
|
+
} : range.rangeType === RANGE_TYPE.COLUMN ? {
|
|
6585
|
+
startRow: 0,
|
|
6586
|
+
endRow: maxRows,
|
|
6587
|
+
startColumn: range.startColumn,
|
|
6588
|
+
endColumn: range.endColumn
|
|
6589
|
+
} : range.rangeType === RANGE_TYPE.ROW ? {
|
|
6590
|
+
startColumn: 0,
|
|
6591
|
+
endColumn: maxColumns,
|
|
6592
|
+
startRow: range.startRow,
|
|
6593
|
+
endRow: range.endRow
|
|
6594
|
+
} : {
|
|
6595
|
+
startColumn: range.startColumn,
|
|
6596
|
+
endColumn: Math.min(range.endColumn, maxColumns),
|
|
6597
|
+
startRow: range.startRow,
|
|
6598
|
+
endRow: Math.min(range.endRow, maxRows)
|
|
6599
|
+
};
|
|
6600
|
+
}, "transformRange"));
|
|
6394
6601
|
let Range = _Range;
|
|
6395
6602
|
function moveRangeByOffset(range, refOffsetX, refOffsetY, ignoreAbsolute = !1) {
|
|
6396
6603
|
let newRange = { ...range };
|
|
@@ -6402,27 +6609,26 @@ function splitIntoGrid(ranges) {
|
|
|
6402
6609
|
const columns = /* @__PURE__ */ new Set(), rows = /* @__PURE__ */ new Set();
|
|
6403
6610
|
for (const range of ranges)
|
|
6404
6611
|
columns.add(range.startColumn), columns.add(range.endColumn + 1), rows.add(range.startRow), rows.add(range.endRow + 1);
|
|
6405
|
-
const sortedColumns = Array.from(columns).sort((a, b) => a - b), sortedRows = Array.from(rows).sort((a, b) => a - b)
|
|
6406
|
-
|
|
6407
|
-
for (let j = 0; j < sortedColumns.length - 1; j++)
|
|
6408
|
-
gridCells.push({
|
|
6409
|
-
startColumn: sortedColumns[j],
|
|
6410
|
-
endColumn: sortedColumns[j + 1] - 1,
|
|
6411
|
-
startRow: sortedRows[i],
|
|
6412
|
-
endRow: sortedRows[i + 1] - 1
|
|
6413
|
-
});
|
|
6612
|
+
const sortedColumns = Array.from(columns).sort((a, b) => a - b), sortedRows = Array.from(rows).sort((a, b) => a - b);
|
|
6613
|
+
ranges.sort((a, b) => a.startRow - b.startRow || a.startColumn - b.startColumn);
|
|
6414
6614
|
const result = [];
|
|
6415
|
-
for (
|
|
6416
|
-
for (
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6615
|
+
for (let i = 0; i < sortedRows.length - 1; i++)
|
|
6616
|
+
for (let j = 0; j < sortedColumns.length - 1; j++) {
|
|
6617
|
+
const startColumn = sortedColumns[j], endColumn = sortedColumns[j + 1] - 1, startRow = sortedRows[i], endRow = sortedRows[i + 1] - 1;
|
|
6618
|
+
for (const range of ranges) {
|
|
6619
|
+
if (range.startRow > endRow)
|
|
6620
|
+
break;
|
|
6621
|
+
if (range.startRow <= startRow && range.endRow >= endRow && range.startColumn <= startColumn && range.endColumn >= endColumn) {
|
|
6622
|
+
result.push({
|
|
6623
|
+
startColumn,
|
|
6624
|
+
endColumn,
|
|
6625
|
+
startRow,
|
|
6626
|
+
endRow
|
|
6627
|
+
});
|
|
6628
|
+
break;
|
|
6629
|
+
}
|
|
6425
6630
|
}
|
|
6631
|
+
}
|
|
6426
6632
|
return result;
|
|
6427
6633
|
}
|
|
6428
6634
|
__name(splitIntoGrid, "splitIntoGrid");
|
|
@@ -6494,6 +6700,17 @@ const _Rectangle = class _Rectangle {
|
|
|
6494
6700
|
static equals(src, target) {
|
|
6495
6701
|
return src == null || target == null ? !1 : src.endRow === target.endRow && src.endColumn === target.endColumn && src.startRow === target.startRow && src.startColumn === target.startColumn && (src.rangeType === target.rangeType || src.rangeType === void 0 && target.rangeType === RANGE_TYPE.NORMAL || target.rangeType === void 0 && src.rangeType === RANGE_TYPE.NORMAL);
|
|
6496
6702
|
}
|
|
6703
|
+
/**
|
|
6704
|
+
* Check intersects of normal range(RANGE_TYPE.NORMAL)
|
|
6705
|
+
* For other types of ranges, please consider using the intersects method.
|
|
6706
|
+
* @param rangeA
|
|
6707
|
+
* @param rangeB
|
|
6708
|
+
* @returns boolean
|
|
6709
|
+
*/
|
|
6710
|
+
static simpleRangesIntersect(rangeA, rangeB) {
|
|
6711
|
+
const { startRow: startRowA, endRow: endRowA, startColumn: startColumnA, endColumn: endColumnA } = rangeA, { startRow: startRowB, endRow: endRowB, startColumn: startColumnB, endColumn: endColumnB } = rangeB, rowsOverlap = startRowA <= endRowB && endRowA >= startRowB, columnsOverlap = startColumnA <= endColumnB && endColumnA >= startColumnB;
|
|
6712
|
+
return rowsOverlap && columnsOverlap;
|
|
6713
|
+
}
|
|
6497
6714
|
static intersects(src, target) {
|
|
6498
6715
|
if (src.rangeType === RANGE_TYPE.ROW && target.rangeType === RANGE_TYPE.COLUMN || src.rangeType === RANGE_TYPE.COLUMN && target.rangeType === RANGE_TYPE.ROW)
|
|
6499
6716
|
return !0;
|
|
@@ -6570,6 +6787,12 @@ const _Rectangle = class _Rectangle {
|
|
|
6570
6787
|
rangeType: hasRowRange ? RANGE_TYPE.ROW : hasColRange ? RANGE_TYPE.COLUMN : RANGE_TYPE.NORMAL
|
|
6571
6788
|
};
|
|
6572
6789
|
}
|
|
6790
|
+
/**
|
|
6791
|
+
* Subtract range2 from range1, the result is is horizontal first then vertical
|
|
6792
|
+
* @param {IRange} range1 The source range
|
|
6793
|
+
* @param {IRange} range2 The range to be subtracted
|
|
6794
|
+
* @returns {IRange[]} Returns the array of ranges, which are the result not intersected with range1
|
|
6795
|
+
*/
|
|
6573
6796
|
static subtract(range1, range2) {
|
|
6574
6797
|
if (range2.startRow > range1.endRow || range2.endRow < range1.startRow || range2.startColumn > range1.endColumn || range2.endColumn < range1.startColumn)
|
|
6575
6798
|
return [range1];
|
|
@@ -6612,7 +6835,7 @@ const _Rectangle = class _Rectangle {
|
|
|
6612
6835
|
let res = ranges1;
|
|
6613
6836
|
return ranges2.forEach((range) => {
|
|
6614
6837
|
res = multiSubtractSingleRange(res, range);
|
|
6615
|
-
}),
|
|
6838
|
+
}), res;
|
|
6616
6839
|
}
|
|
6617
6840
|
static hasIntersectionBetweenTwoRect(rect1, rect2) {
|
|
6618
6841
|
return !(rect1.left > rect2.right || // rect1 在 rect2 右侧
|
|
@@ -6932,8 +7155,8 @@ function deepClone(old) {
|
|
|
6932
7155
|
__name(deepClone, "deepClone");
|
|
6933
7156
|
deepClone$1.default = deepClone;
|
|
6934
7157
|
var cursor = {};
|
|
6935
|
-
(function(
|
|
6936
|
-
Object.defineProperty(
|
|
7158
|
+
(function(exports2) {
|
|
7159
|
+
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.eachChildOf = exports2.advancer = exports2.readCursor = exports2.writeCursor = exports2.WriteCursor = exports2.ReadCursor = exports2.isValidPathItem = void 0;
|
|
6937
7160
|
function assert(pred, msg) {
|
|
6938
7161
|
if (!pred)
|
|
6939
7162
|
throw new Error(msg);
|
|
@@ -6949,7 +7172,7 @@ var cursor = {};
|
|
|
6949
7172
|
w.write(k, c[k]);
|
|
6950
7173
|
}
|
|
6951
7174
|
}
|
|
6952
|
-
__name(copyAll, "copyAll"),
|
|
7175
|
+
__name(copyAll, "copyAll"), exports2.isValidPathItem = (k) => typeof k == "number" || typeof k == "string" && k !== "__proto__";
|
|
6953
7176
|
const _Cursor = class _Cursor {
|
|
6954
7177
|
constructor(op = null) {
|
|
6955
7178
|
this.parents = [], this.indexes = [], this.lcIdx = -1, this.idx = -1, this.container = op;
|
|
@@ -7030,7 +7253,7 @@ var cursor = {};
|
|
|
7030
7253
|
};
|
|
7031
7254
|
__name(_ReadCursor, "ReadCursor");
|
|
7032
7255
|
let ReadCursor = _ReadCursor;
|
|
7033
|
-
|
|
7256
|
+
exports2.ReadCursor = ReadCursor;
|
|
7034
7257
|
const _WriteCursor = class _WriteCursor extends Cursor {
|
|
7035
7258
|
constructor(op = null) {
|
|
7036
7259
|
super(op), this.pendingDescent = [], this._op = op;
|
|
@@ -7085,7 +7308,7 @@ var cursor = {};
|
|
|
7085
7308
|
return this._op;
|
|
7086
7309
|
}
|
|
7087
7310
|
descend(key) {
|
|
7088
|
-
if (!
|
|
7311
|
+
if (!exports2.isValidPathItem(key))
|
|
7089
7312
|
throw Error("Invalid JSON key");
|
|
7090
7313
|
this.pendingDescent.push(key);
|
|
7091
7314
|
}
|
|
@@ -7131,7 +7354,7 @@ var cursor = {};
|
|
|
7131
7354
|
};
|
|
7132
7355
|
__name(_WriteCursor, "WriteCursor");
|
|
7133
7356
|
let WriteCursor = _WriteCursor;
|
|
7134
|
-
|
|
7357
|
+
exports2.WriteCursor = WriteCursor, exports2.writeCursor = () => new WriteCursor(), exports2.readCursor = (op) => new ReadCursor(op);
|
|
7135
7358
|
function advancer(r, listMap, listAdv) {
|
|
7136
7359
|
let didDescend, valid;
|
|
7137
7360
|
valid = didDescend = r ? r.descendFirst() : !1;
|
|
@@ -7154,7 +7377,7 @@ var cursor = {};
|
|
|
7154
7377
|
didDescend && r.ascend();
|
|
7155
7378
|
}, adv;
|
|
7156
7379
|
}
|
|
7157
|
-
__name(advancer, "advancer"),
|
|
7380
|
+
__name(advancer, "advancer"), exports2.advancer = advancer;
|
|
7158
7381
|
function eachChildOf(r1, r2, fn) {
|
|
7159
7382
|
let hasChild1, descended1, hasChild2, descended2;
|
|
7160
7383
|
for (hasChild1 = descended1 = r1 && r1.descendFirst(), hasChild2 = descended2 = r2 && r2.descendFirst(); hasChild1 || hasChild2; ) {
|
|
@@ -7163,13 +7386,13 @@ var cursor = {};
|
|
|
7163
7386
|
}
|
|
7164
7387
|
descended1 && r1.ascend(), descended2 && r2.ascend();
|
|
7165
7388
|
}
|
|
7166
|
-
__name(eachChildOf, "eachChildOf"),
|
|
7389
|
+
__name(eachChildOf, "eachChildOf"), exports2.eachChildOf = eachChildOf;
|
|
7167
7390
|
})(cursor);
|
|
7168
7391
|
var types = {};
|
|
7169
|
-
(function(
|
|
7170
|
-
Object.defineProperty(
|
|
7392
|
+
(function(exports2) {
|
|
7393
|
+
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.ConflictType = void 0, function(ConflictType) {
|
|
7171
7394
|
ConflictType[ConflictType.RM_UNEXPECTED_CONTENT = 1] = "RM_UNEXPECTED_CONTENT", ConflictType[ConflictType.DROP_COLLISION = 2] = "DROP_COLLISION", ConflictType[ConflictType.BLACKHOLE = 3] = "BLACKHOLE";
|
|
7172
|
-
}(
|
|
7395
|
+
}(exports2.ConflictType || (exports2.ConflictType = {}));
|
|
7173
7396
|
})(types);
|
|
7174
7397
|
var dist = {}, unicount = {}, hasRequiredUnicount;
|
|
7175
7398
|
function requireUnicount() {
|
|
@@ -7194,8 +7417,8 @@ function requireUnicount() {
|
|
|
7194
7417
|
__name(requireUnicount, "requireUnicount");
|
|
7195
7418
|
var type = {}, hasRequiredType;
|
|
7196
7419
|
function requireType() {
|
|
7197
|
-
return hasRequiredType || (hasRequiredType = 1, function(
|
|
7198
|
-
Object.defineProperty(
|
|
7420
|
+
return hasRequiredType || (hasRequiredType = 1, function(exports2) {
|
|
7421
|
+
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.uniSlice = exports2.dlen = exports2.eachOp = void 0;
|
|
7199
7422
|
const unicount_1 = requireUnicount(), checkOp = /* @__PURE__ */ __name((op) => {
|
|
7200
7423
|
if (!Array.isArray(op))
|
|
7201
7424
|
throw Error("Op must be an array of components");
|
|
@@ -7206,7 +7429,7 @@ function requireType() {
|
|
|
7206
7429
|
case "object":
|
|
7207
7430
|
if (typeof c.d != "number" && typeof c.d != "string")
|
|
7208
7431
|
throw Error("Delete must be number or string");
|
|
7209
|
-
if (
|
|
7432
|
+
if (exports2.dlen(c.d) <= 0)
|
|
7210
7433
|
throw Error("Deletes must not be empty");
|
|
7211
7434
|
break;
|
|
7212
7435
|
case "string":
|
|
@@ -7231,7 +7454,7 @@ function requireType() {
|
|
|
7231
7454
|
const c = op[i];
|
|
7232
7455
|
switch (fn(c, prePos, postPos), typeof c) {
|
|
7233
7456
|
case "object":
|
|
7234
|
-
prePos +=
|
|
7457
|
+
prePos += exports2.dlen(c.d);
|
|
7235
7458
|
break;
|
|
7236
7459
|
case "string":
|
|
7237
7460
|
postPos += unicount_1.strPosToUni(c);
|
|
@@ -7242,7 +7465,7 @@ function requireType() {
|
|
|
7242
7465
|
}
|
|
7243
7466
|
}
|
|
7244
7467
|
}
|
|
7245
|
-
__name(eachOp, "eachOp"),
|
|
7468
|
+
__name(eachOp, "eachOp"), exports2.eachOp = eachOp;
|
|
7246
7469
|
function mapOp(op, fn) {
|
|
7247
7470
|
const newOp = [], append = makeAppend(newOp);
|
|
7248
7471
|
return eachOp(op, (c, prePos, postPos) => {
|
|
@@ -7251,24 +7474,24 @@ function requireType() {
|
|
|
7251
7474
|
}
|
|
7252
7475
|
__name(mapOp, "mapOp");
|
|
7253
7476
|
const id = /* @__PURE__ */ __name((x) => x, "id"), normalize = /* @__PURE__ */ __name((op) => mapOp(op, id), "normalize");
|
|
7254
|
-
|
|
7477
|
+
exports2.dlen = (d) => typeof d == "number" ? d : unicount_1.strPosToUni(d);
|
|
7255
7478
|
const makeAppend = /* @__PURE__ */ __name((op) => (component) => {
|
|
7256
7479
|
if (!(!component || component.d === 0 || component.d === "")) if (op.length === 0)
|
|
7257
7480
|
op.push(component);
|
|
7258
7481
|
else if (typeof component == typeof op[op.length - 1])
|
|
7259
7482
|
if (typeof component == "object") {
|
|
7260
7483
|
const last = op[op.length - 1];
|
|
7261
|
-
last.d = typeof last.d == "string" && typeof component.d == "string" ? last.d + component.d :
|
|
7484
|
+
last.d = typeof last.d == "string" && typeof component.d == "string" ? last.d + component.d : exports2.dlen(last.d) + exports2.dlen(component.d);
|
|
7262
7485
|
} else
|
|
7263
7486
|
op[op.length - 1] += component;
|
|
7264
7487
|
else
|
|
7265
7488
|
op.push(component);
|
|
7266
7489
|
}, "makeAppend"), componentLength = /* @__PURE__ */ __name((c) => typeof c == "number" ? c : typeof c == "string" ? unicount_1.strPosToUni(c) : typeof c.d == "number" ? c.d : unicount_1.strPosToUni(c.d), "componentLength");
|
|
7267
|
-
|
|
7490
|
+
exports2.uniSlice = (s, startUni, endUni) => {
|
|
7268
7491
|
const start = unicount_1.uniToStrPos(s, startUni), end = endUni == null ? 1 / 0 : unicount_1.uniToStrPos(s, endUni);
|
|
7269
7492
|
return s.slice(start, end);
|
|
7270
7493
|
};
|
|
7271
|
-
const dslice = /* @__PURE__ */ __name((d, start, end) => typeof d == "number" ? end == null ? d - start : Math.min(d, end) - start :
|
|
7494
|
+
const dslice = /* @__PURE__ */ __name((d, start, end) => typeof d == "number" ? end == null ? d - start : Math.min(d, end) - start : exports2.uniSlice(d, start, end), "dslice"), makeTake = /* @__PURE__ */ __name((op) => {
|
|
7272
7495
|
let idx = 0, offset = 0;
|
|
7273
7496
|
return { take: /* @__PURE__ */ __name((n, indivisableField) => {
|
|
7274
7497
|
if (idx === op.length)
|
|
@@ -7285,7 +7508,7 @@ function requireType() {
|
|
|
7285
7508
|
return part = c.slice(offset, offset2), offset = offset2, part;
|
|
7286
7509
|
}
|
|
7287
7510
|
} else {
|
|
7288
|
-
if (n === -1 || indivisableField === "d" ||
|
|
7511
|
+
if (n === -1 || indivisableField === "d" || exports2.dlen(c.d) - offset <= n)
|
|
7289
7512
|
return part = { d: dslice(c.d, offset) }, ++idx, offset = 0, part;
|
|
7290
7513
|
{
|
|
7291
7514
|
let result = dslice(c.d, offset, offset + n);
|
|
@@ -7311,7 +7534,7 @@ function requireType() {
|
|
|
7311
7534
|
side === "left" && typeof peek() == "string" && append(take(-1)), append(unicount_1.strPosToUni(c2));
|
|
7312
7535
|
break;
|
|
7313
7536
|
case "object":
|
|
7314
|
-
for (length =
|
|
7537
|
+
for (length = exports2.dlen(c2.d); length > 0; )
|
|
7315
7538
|
switch (c1 = take(length, "i"), typeof c1) {
|
|
7316
7539
|
case "number":
|
|
7317
7540
|
length -= c1;
|
|
@@ -7320,7 +7543,7 @@ function requireType() {
|
|
|
7320
7543
|
append(c1);
|
|
7321
7544
|
break;
|
|
7322
7545
|
case "object":
|
|
7323
|
-
length -=
|
|
7546
|
+
length -= exports2.dlen(c1.d);
|
|
7324
7547
|
}
|
|
7325
7548
|
break;
|
|
7326
7549
|
}
|
|
@@ -7346,7 +7569,7 @@ function requireType() {
|
|
|
7346
7569
|
append(component);
|
|
7347
7570
|
break;
|
|
7348
7571
|
case "object":
|
|
7349
|
-
length =
|
|
7572
|
+
length = exports2.dlen(component.d);
|
|
7350
7573
|
let offset = 0;
|
|
7351
7574
|
for (; offset < length; )
|
|
7352
7575
|
switch (chunk = take(length - offset, "d"), typeof chunk) {
|
|
@@ -7382,7 +7605,7 @@ function requireType() {
|
|
|
7382
7605
|
pos += offset, cursor2 += offset;
|
|
7383
7606
|
break;
|
|
7384
7607
|
case "object":
|
|
7385
|
-
cursor2 -= Math.min(
|
|
7608
|
+
cursor2 -= Math.min(exports2.dlen(c.d), cursor2 - pos);
|
|
7386
7609
|
break;
|
|
7387
7610
|
}
|
|
7388
7611
|
}
|
|
@@ -7450,7 +7673,7 @@ function requireType() {
|
|
|
7450
7673
|
builder.append(component);
|
|
7451
7674
|
break;
|
|
7452
7675
|
case "object":
|
|
7453
|
-
builder.del(
|
|
7676
|
+
builder.del(exports2.dlen(component.d));
|
|
7454
7677
|
break;
|
|
7455
7678
|
}
|
|
7456
7679
|
}
|
|
@@ -7472,7 +7695,7 @@ function requireType() {
|
|
|
7472
7695
|
isNoop: /* @__PURE__ */ __name((op) => op.length === 0, "isNoop")
|
|
7473
7696
|
};
|
|
7474
7697
|
}
|
|
7475
|
-
__name(makeType, "makeType"),
|
|
7698
|
+
__name(makeType, "makeType"), exports2.default = makeType;
|
|
7476
7699
|
}(type)), type;
|
|
7477
7700
|
}
|
|
7478
7701
|
__name(requireType, "requireType");
|
|
@@ -7523,7 +7746,7 @@ function requireApi() {
|
|
|
7523
7746
|
__name(requireApi, "requireApi");
|
|
7524
7747
|
var hasRequiredDist;
|
|
7525
7748
|
function requireDist() {
|
|
7526
|
-
return hasRequiredDist || (hasRequiredDist = 1, function(
|
|
7749
|
+
return hasRequiredDist || (hasRequiredDist = 1, function(exports2) {
|
|
7527
7750
|
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
7528
7751
|
k2 === void 0 && (k2 = k), Object.defineProperty(o, k2, { enumerable: !0, get: /* @__PURE__ */ __name(function() {
|
|
7529
7752
|
return m[k];
|
|
@@ -7542,7 +7765,7 @@ function requireDist() {
|
|
|
7542
7765
|
}, __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
7543
7766
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
7544
7767
|
};
|
|
7545
|
-
Object.defineProperty(
|
|
7768
|
+
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.type = exports2.remove = exports2.insert = void 0;
|
|
7546
7769
|
const unicount_1 = requireUnicount(), type_1 = __importStar(requireType()), api_1 = __importDefault(requireApi()), ropeImplUnicodeString = {
|
|
7547
7770
|
create(s) {
|
|
7548
7771
|
return s;
|
|
@@ -7574,28 +7797,28 @@ function requireDist() {
|
|
|
7574
7797
|
},
|
|
7575
7798
|
slice: type_1.uniSlice
|
|
7576
7799
|
}, textString = type_1.default(ropeImplUnicodeString), type2 = Object.assign(Object.assign({}, textString), { api: api_1.default });
|
|
7577
|
-
|
|
7800
|
+
exports2.type = type2, exports2.insert = (pos, text) => text.length === 0 ? [] : pos === 0 ? [text] : [pos, text], exports2.remove = (pos, textOrLen) => type_1.dlen(textOrLen) === 0 ? [] : pos === 0 ? [{ d: textOrLen }] : [pos, { d: textOrLen }];
|
|
7578
7801
|
var type_2 = requireType();
|
|
7579
|
-
Object.defineProperty(
|
|
7802
|
+
Object.defineProperty(exports2, "makeType", { enumerable: !0, get: /* @__PURE__ */ __name(function() {
|
|
7580
7803
|
return type_2.default;
|
|
7581
7804
|
}, "get") });
|
|
7582
7805
|
}(dist)), dist;
|
|
7583
7806
|
}
|
|
7584
7807
|
__name(requireDist, "requireDist");
|
|
7585
|
-
(function(
|
|
7808
|
+
(function(exports2) {
|
|
7586
7809
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
7587
7810
|
return mod && mod.__esModule ? mod : {
|
|
7588
7811
|
default: mod
|
|
7589
7812
|
};
|
|
7590
7813
|
};
|
|
7591
|
-
Object.defineProperty(
|
|
7814
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
7592
7815
|
value: !0
|
|
7593
|
-
}),
|
|
7816
|
+
}), exports2.editOp = exports2.replaceOp = exports2.insertOp = exports2.moveOp = exports2.removeOp = exports2.type = void 0;
|
|
7594
7817
|
const deepEqual_js_1 = __importDefault(deepEqual$1), deepClone_js_1 = __importDefault(deepClone$1), cursor_js_1 = cursor, types_js_1 = types;
|
|
7595
7818
|
function assert(pred, msg) {
|
|
7596
7819
|
if (!pred) throw new Error(msg);
|
|
7597
7820
|
}
|
|
7598
|
-
__name(assert, "assert"),
|
|
7821
|
+
__name(assert, "assert"), exports2.type = {
|
|
7599
7822
|
name: "json1",
|
|
7600
7823
|
uri: "http://sharejs.org/types/JSONv1",
|
|
7601
7824
|
readCursor: cursor_js_1.readCursor,
|
|
@@ -7607,7 +7830,7 @@ __name(requireDist, "requireDist");
|
|
|
7607
7830
|
registerSubtype,
|
|
7608
7831
|
checkValidOp,
|
|
7609
7832
|
normalize,
|
|
7610
|
-
apply,
|
|
7833
|
+
apply: apply2,
|
|
7611
7834
|
transformPosition,
|
|
7612
7835
|
compose,
|
|
7613
7836
|
tryTransform,
|
|
@@ -7619,7 +7842,7 @@ __name(requireDist, "requireDist");
|
|
|
7619
7842
|
DROP_COLLISION: types_js_1.ConflictType.DROP_COLLISION,
|
|
7620
7843
|
BLACKHOLE: types_js_1.ConflictType.BLACKHOLE,
|
|
7621
7844
|
transformNoConflict: /* @__PURE__ */ __name((op1, op2, side) => transformWithConflictsPred(() => !0, op1, op2, side), "transformNoConflict"),
|
|
7622
|
-
typeAllowingConflictsPred: /* @__PURE__ */ __name((allowConflict) => Object.assign(Object.assign({},
|
|
7845
|
+
typeAllowingConflictsPred: /* @__PURE__ */ __name((allowConflict) => Object.assign(Object.assign({}, exports2.type), {
|
|
7623
7846
|
transform: /* @__PURE__ */ __name((op1, op2, side) => transformWithConflictsPred(allowConflict, op1, op2, side), "transform")
|
|
7624
7847
|
}), "typeAllowingConflictsPred")
|
|
7625
7848
|
};
|
|
@@ -7636,9 +7859,9 @@ __name(requireDist, "requireDist");
|
|
|
7636
7859
|
function insertChildMut(container, key, value) {
|
|
7637
7860
|
return typeof key == "number" ? (assert(container != null, "Container is missing for key"), assert(Array.isArray(container), "Cannot use numerical key for object container"), assert(container.length >= key, "Cannot insert into out of bounds index"), container.splice(key, 0, value)) : (assert(isObject2(container), "Cannot insert into missing item"), assert(container[key] === void 0, "Trying to overwrite value at key. Your op needs to remove it first"), container[key] = value), value;
|
|
7638
7861
|
}
|
|
7639
|
-
__name(insertChildMut, "insertChildMut"),
|
|
7862
|
+
__name(insertChildMut, "insertChildMut"), exports2.removeOp = (path, value = !0) => cursor_js_1.writeCursor().writeAtPath(path, "r", value).get(), exports2.moveOp = (from, to) => cursor_js_1.writeCursor().writeMove(from, to).get(), exports2.insertOp = (path, value) => cursor_js_1.writeCursor().writeAtPath(path, "i", value).get(), exports2.replaceOp = (path, oldVal, newVal) => cursor_js_1.writeCursor().at(path, (w) => {
|
|
7640
7863
|
w.write("r", oldVal), w.write("i", newVal);
|
|
7641
|
-
}).get(),
|
|
7864
|
+
}).get(), exports2.editOp = (path, type2, subOp, preserveNoop = !1) => cursor_js_1.writeCursor().at(path, (w) => writeEdit(w, type2, subOp, preserveNoop)).get();
|
|
7642
7865
|
const isValidKey = /* @__PURE__ */ __name((container, key) => container != null && (typeof key == "number" ? Array.isArray(container) : typeof container == "object"), "isValidKey"), maybeGetChild = /* @__PURE__ */ __name((container, key) => isValidKey(container, key) ? container[key] : void 0, "maybeGetChild"), subtypes = {};
|
|
7643
7866
|
function registerSubtype(subtype) {
|
|
7644
7867
|
let _subtype = subtype.type ? subtype.type : subtype;
|
|
@@ -7725,12 +7948,12 @@ __name(requireDist, "requireDist");
|
|
|
7725
7948
|
}), w.get();
|
|
7726
7949
|
}
|
|
7727
7950
|
__name(normalize, "normalize");
|
|
7728
|
-
function
|
|
7951
|
+
function apply2(snapshot, op) {
|
|
7729
7952
|
if (checkValidOp(op), op === null) return snapshot;
|
|
7730
7953
|
const held = [];
|
|
7731
|
-
return (/* @__PURE__ */ __name(function drop(
|
|
7732
|
-
let subDoc =
|
|
7733
|
-
root
|
|
7954
|
+
return (/* @__PURE__ */ __name(function drop(root2, descent) {
|
|
7955
|
+
let subDoc = root2, i = 0, rootContainer = {
|
|
7956
|
+
root: root2
|
|
7734
7957
|
}, m = 0, container = rootContainer, key = "root";
|
|
7735
7958
|
function mut() {
|
|
7736
7959
|
for (; m < i; m++) {
|
|
@@ -7771,7 +7994,7 @@ __name(requireDist, "requireDist");
|
|
|
7771
7994
|
return subDoc;
|
|
7772
7995
|
}, "pick"))(snapshot, op), op);
|
|
7773
7996
|
}
|
|
7774
|
-
__name(
|
|
7997
|
+
__name(apply2, "apply");
|
|
7775
7998
|
function transformPosition(path, op) {
|
|
7776
7999
|
path = path.slice(), checkValidOp(op);
|
|
7777
8000
|
const r = cursor_js_1.readCursor(op);
|
|
@@ -8049,20 +8272,20 @@ __name(requireDist, "requireDist");
|
|
|
8049
8272
|
let slot2, droppedHere = !1;
|
|
8050
8273
|
c2d && ((slot2 = c2d.d) != null ? (heldOp2DropByOp2[slot2] = r2Drop.clone(), pickSlot1 != null && (op1PicksOp2DropSlots[pickSlot1] == null && (op1PicksOp2DropSlots[pickSlot1] = []), op1PicksOp2DropSlots[pickSlot1].push(slot2)), r1Pick = heldOp1PickByOp2[slot2] || null, r2Pick = heldOp2PickByOp2[slot2] || null, cancelledOp2[slot2] ? (removed1 && (discardedOp2Drop[slot2] = !0), removed1 = heldOp1RmForOp2[slot2] || null) : !removed1 || side !== 1 && op1PickAtOp2Pick[slot2] != null || conflict == null && (conflict = {
|
|
8051
8274
|
type: types_js_1.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
8052
|
-
op1:
|
|
8053
|
-
op2:
|
|
8275
|
+
op1: exports2.removeOp(removed1.getPath()),
|
|
8276
|
+
op2: exports2.moveOp(r2Pick.getPath(), r2Drop.getPath())
|
|
8054
8277
|
}), droppedHere = !0) : c2d.i !== void 0 && (r1Pick = r2Pick = null, droppedHere = !0, removed1 && conflict == null && (conflict = {
|
|
8055
8278
|
type: types_js_1.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
8056
|
-
op1:
|
|
8057
|
-
op2:
|
|
8279
|
+
op1: exports2.removeOp(removed1.getPath()),
|
|
8280
|
+
op2: exports2.insertOp(r2Drop.getPath(), c2d.i)
|
|
8058
8281
|
})));
|
|
8059
8282
|
const c1p = getComponent(r1Pick);
|
|
8060
8283
|
c1p && (c1p.r !== void 0 ? removed1 = r1Pick.clone() : c1p.p != null && (c1p.p, pickSlot1 = c1p.p, removed1 = null));
|
|
8061
8284
|
const t2 = getEditType(c2d);
|
|
8062
8285
|
t2 && removed1 && conflict == null && (conflict = {
|
|
8063
8286
|
type: types_js_1.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
8064
|
-
op1:
|
|
8065
|
-
op2:
|
|
8287
|
+
op1: exports2.removeOp(removed1.getPath()),
|
|
8288
|
+
op2: exports2.editOp(r2Drop.getPath(), t2, getEdit(c2d), !0)
|
|
8066
8289
|
});
|
|
8067
8290
|
let p2PickOff = 0, p2DropOff = 0;
|
|
8068
8291
|
const ap2 = cursor_js_1.advancer(r2Pick, (k, c) => hasPick(c) ? p2PickOff - k - 1 : k - p2PickOff, (k, c) => {
|
|
@@ -8115,7 +8338,7 @@ __name(requireDist, "requireDist");
|
|
|
8115
8338
|
assert(p1Drop);
|
|
8116
8339
|
const c1d = p1Drop.getComponent();
|
|
8117
8340
|
let c2d = getComponent(p2Drop), droppedHere = !1;
|
|
8118
|
-
const insOrMv = /* @__PURE__ */ __name((r12, r22, c) => r12 ?
|
|
8341
|
+
const insOrMv = /* @__PURE__ */ __name((r12, r22, c) => r12 ? exports2.moveOp(r12.getPath(), r22.getPath()) : exports2.insertOp(r22.getPath(), c.i), "insOrMv");
|
|
8119
8342
|
if (hasDrop(c1d)) {
|
|
8120
8343
|
const slot1 = c1d.d;
|
|
8121
8344
|
slot1 != null && (heldOp1DropByOp1[slot1] = p1Drop.clone());
|
|
@@ -8130,7 +8353,7 @@ __name(requireDist, "requireDist");
|
|
|
8130
8353
|
})), identical || (removed2 ? conflict == null && (conflict = {
|
|
8131
8354
|
type: types_js_1.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
8132
8355
|
op1: insOrMv(slot1 != null ? heldOp1PickByOp1[slot1] : null, p1Drop, c1d),
|
|
8133
|
-
op2:
|
|
8356
|
+
op2: exports2.removeOp(removed2.getPath())
|
|
8134
8357
|
}) : (slot1 != null ? (outputSlotMap[nextSlot] = slot1, w2.write("d", pc.p = nextSlot++)) : w2.write("i", deepClone_js_1.default(c1d.i)), droppedHere = !0));
|
|
8135
8358
|
} else if (slot1 != null && !pc) {
|
|
8136
8359
|
const h = heldOp2RmForOp1[slot1];
|
|
@@ -8149,8 +8372,8 @@ __name(requireDist, "requireDist");
|
|
|
8149
8372
|
const e1 = getEdit(c1d);
|
|
8150
8373
|
if (removed2) conflict == null && (conflict = {
|
|
8151
8374
|
type: types_js_1.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
8152
|
-
op1:
|
|
8153
|
-
op2:
|
|
8375
|
+
op1: exports2.editOp(p1Drop.getPath(), t1, e1, !0),
|
|
8376
|
+
op2: exports2.removeOp(removed2.getPath())
|
|
8154
8377
|
});
|
|
8155
8378
|
else {
|
|
8156
8379
|
const t2 = getEditType(c2d);
|
|
@@ -8359,25 +8582,25 @@ __name(requireDist, "requireDist");
|
|
|
8359
8582
|
}
|
|
8360
8583
|
__name(transformWithConflictsPred, "transformWithConflictsPred");
|
|
8361
8584
|
})(json1_release);
|
|
8362
|
-
(function(
|
|
8585
|
+
(function(exports2) {
|
|
8363
8586
|
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8364
8587
|
k2 === void 0 && (k2 = k), Object.defineProperty(o, k2, { enumerable: !0, get: /* @__PURE__ */ __name(function() {
|
|
8365
8588
|
return m[k];
|
|
8366
8589
|
}, "get") });
|
|
8367
8590
|
} : function(o, m, k, k2) {
|
|
8368
8591
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
8369
|
-
}), __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m,
|
|
8370
|
-
for (var p in m) p !== "default" && !
|
|
8592
|
+
}), __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports3) {
|
|
8593
|
+
for (var p in m) p !== "default" && !exports3.hasOwnProperty(p) && __createBinding(exports3, m, p);
|
|
8371
8594
|
};
|
|
8372
|
-
Object.defineProperty(
|
|
8595
|
+
Object.defineProperty(exports2, "__esModule", { value: !0 }), __exportStar(json1_release, exports2);
|
|
8373
8596
|
var cursor_js_1 = cursor;
|
|
8374
|
-
Object.defineProperty(
|
|
8597
|
+
Object.defineProperty(exports2, "ReadCursor", { enumerable: !0, get: /* @__PURE__ */ __name(function() {
|
|
8375
8598
|
return cursor_js_1.ReadCursor;
|
|
8376
|
-
}, "get") }), Object.defineProperty(
|
|
8599
|
+
}, "get") }), Object.defineProperty(exports2, "WriteCursor", { enumerable: !0, get: /* @__PURE__ */ __name(function() {
|
|
8377
8600
|
return cursor_js_1.WriteCursor;
|
|
8378
8601
|
}, "get") });
|
|
8379
8602
|
var types_1 = types;
|
|
8380
|
-
Object.defineProperty(
|
|
8603
|
+
Object.defineProperty(exports2, "ConflictType", { enumerable: !0, get: /* @__PURE__ */ __name(function() {
|
|
8381
8604
|
return types_1.ConflictType;
|
|
8382
8605
|
}, "get") });
|
|
8383
8606
|
})(dist$1);
|
|
@@ -8665,11 +8888,10 @@ function insertParagraphs(body, insertBody, textLength, currentIndex) {
|
|
|
8665
8888
|
const { paragraphs } = body;
|
|
8666
8889
|
if (paragraphs == null)
|
|
8667
8890
|
return;
|
|
8668
|
-
const { paragraphs: insertParagraphs2
|
|
8669
|
-
let firstInsertParagraphNextIndex = -1;
|
|
8891
|
+
const { paragraphs: insertParagraphs2 } = insertBody, paragraphIndexList = [];
|
|
8670
8892
|
for (let i = 0, len = paragraphs.length; i < len; i++) {
|
|
8671
8893
|
const paragraph = paragraphs[i], { startIndex } = paragraph;
|
|
8672
|
-
startIndex >= currentIndex && (paragraph.startIndex += textLength),
|
|
8894
|
+
startIndex >= currentIndex && (paragraph.startIndex += textLength), paragraphIndexList.push(paragraph.startIndex);
|
|
8673
8895
|
}
|
|
8674
8896
|
let deleteReptIndex = -1;
|
|
8675
8897
|
if (insertParagraphs2) {
|
|
@@ -8679,10 +8901,6 @@ function insertParagraphs(body, insertBody, textLength, currentIndex) {
|
|
|
8679
8901
|
const insertIndex = insertParagraph.startIndex;
|
|
8680
8902
|
deleteReptIndex = paragraphIndexList.indexOf(insertIndex);
|
|
8681
8903
|
}
|
|
8682
|
-
if (insertDataStream === DataStreamTreeTokenType.PARAGRAPH && insertParagraphs2.length === 1) {
|
|
8683
|
-
const nextParagraph = paragraphs[firstInsertParagraphNextIndex], insertParagraph = insertParagraphs2[0], nextParagraphStyle = nextParagraph.paragraphStyle, nextBullet = nextParagraph.bullet;
|
|
8684
|
-
nextParagraph.paragraphStyle = insertParagraph.paragraphStyle, nextParagraph.bullet = insertParagraph.bullet, insertParagraph.paragraphStyle = nextParagraphStyle, insertParagraph.bullet = nextBullet;
|
|
8685
|
-
}
|
|
8686
8904
|
deleteReptIndex !== -1 && paragraphs.splice(deleteReptIndex, 1), paragraphs.push(...insertParagraphs2), paragraphs.sort(sortRulesFactory("startIndex"));
|
|
8687
8905
|
}
|
|
8688
8906
|
}
|
|
@@ -10305,7 +10523,7 @@ function getRetainAndDeleteFromReplace(range, segmentId = "", memoryCursor, body
|
|
|
10305
10523
|
var _a13;
|
|
10306
10524
|
const { startOffset, endOffset } = range, dos = [], textStart = startOffset - memoryCursor, textEnd = endOffset - memoryCursor, dataStream = body.dataStream, relativeCustomRanges = (_a13 = body.customRanges) == null ? void 0 : _a13.filter((customRange) => isIntersecting(customRange.startIndex, customRange.endIndex, startOffset, endOffset)), toDeleteRanges = new Set(relativeCustomRanges == null ? void 0 : relativeCustomRanges.filter((customRange) => shouldDeleteCustomRange(startOffset, endOffset - startOffset, customRange, dataStream))), retainPoints = /* @__PURE__ */ new Set();
|
|
10307
10525
|
relativeCustomRanges == null || relativeCustomRanges.forEach((range2) => {
|
|
10308
|
-
toDeleteRanges.has(range2) || (range2.startIndex - memoryCursor >= textStart && range2.startIndex - memoryCursor
|
|
10526
|
+
toDeleteRanges.has(range2) || (range2.startIndex - memoryCursor >= textStart && range2.startIndex - memoryCursor < textEnd && range2.endIndex - memoryCursor >= textEnd && retainPoints.add(range2.startIndex), range2.endIndex - memoryCursor >= textStart && range2.endIndex - memoryCursor < textEnd && range2.startIndex - memoryCursor < textStart && retainPoints.add(range2.endIndex));
|
|
10309
10527
|
}), textStart > 0 && dos.push({
|
|
10310
10528
|
t: TextXActionType.RETAIN,
|
|
10311
10529
|
len: textStart,
|
|
@@ -10899,7 +11117,7 @@ const FOCUSING_UNIT = "FOCUSING_UNIT", FOCUSING_SHEET = "FOCUSING_SHEET", FOCUSI
|
|
|
10899
11117
|
};
|
|
10900
11118
|
__name(_ErrorService, "ErrorService");
|
|
10901
11119
|
let ErrorService = _ErrorService;
|
|
10902
|
-
const version = "0.
|
|
11120
|
+
const version = "0.3.0-alpha.1";
|
|
10903
11121
|
function getEmptySnapshot(unitID = "", locale = LocaleType.ZH_CN, name = "") {
|
|
10904
11122
|
return {
|
|
10905
11123
|
id: unitID,
|
|
@@ -11253,15 +11471,15 @@ const _SpanModel = class _SpanModel extends Disposable {
|
|
|
11253
11471
|
/**
|
|
11254
11472
|
* @property Cache for RANGE_TYPE.NORMAL
|
|
11255
11473
|
*/
|
|
11256
|
-
__publicField(this, "_cellCache",
|
|
11474
|
+
__publicField(this, "_cellCache", /* @__PURE__ */ new Map());
|
|
11257
11475
|
/**
|
|
11258
11476
|
* @property Cache for RANGE_TYPE.ROW
|
|
11259
11477
|
*/
|
|
11260
|
-
__publicField(this, "_rowCache",
|
|
11478
|
+
__publicField(this, "_rowCache", /* @__PURE__ */ new Map());
|
|
11261
11479
|
/**
|
|
11262
11480
|
* @property Cache for RANGE_TYPE.COLUMN
|
|
11263
11481
|
*/
|
|
11264
|
-
__publicField(this, "_columnCache",
|
|
11482
|
+
__publicField(this, "_columnCache", /* @__PURE__ */ new Map());
|
|
11265
11483
|
/**
|
|
11266
11484
|
* @property Whether has RANGE_TYPE.ALL
|
|
11267
11485
|
*/
|
|
@@ -11282,7 +11500,7 @@ const _SpanModel = class _SpanModel extends Disposable {
|
|
|
11282
11500
|
this._mergeData = mergeData, this._createCache(mergeData);
|
|
11283
11501
|
}
|
|
11284
11502
|
_clearCache() {
|
|
11285
|
-
this._cellCache
|
|
11503
|
+
this._cellCache.clear(), this._rowCache.clear(), this._columnCache.clear(), this._hasAll = !1, this._allIndex = -1, this._rangeMap.clear(), this._skeletonCache.clear();
|
|
11286
11504
|
}
|
|
11287
11505
|
_createCache(mergeData) {
|
|
11288
11506
|
let index2 = 0;
|
|
@@ -11300,25 +11518,24 @@ const _SpanModel = class _SpanModel extends Disposable {
|
|
|
11300
11518
|
}
|
|
11301
11519
|
_createRowCache(range, index2) {
|
|
11302
11520
|
const { startRow, endRow } = range;
|
|
11303
|
-
for (let i = startRow; i <= endRow; i++)
|
|
11304
|
-
|
|
11305
|
-
this._rowCache[key] = index2;
|
|
11306
|
-
}
|
|
11521
|
+
for (let i = startRow; i <= endRow; i++)
|
|
11522
|
+
this._rowCache.set(i, index2);
|
|
11307
11523
|
}
|
|
11308
11524
|
_createColumnCache(range, index2) {
|
|
11309
11525
|
const { startColumn, endColumn } = range;
|
|
11310
|
-
for (let i = startColumn; i <= endColumn; i++)
|
|
11311
|
-
|
|
11312
|
-
this._columnCache[key] = index2;
|
|
11313
|
-
}
|
|
11526
|
+
for (let i = startColumn; i <= endColumn; i++)
|
|
11527
|
+
this._columnCache.set(i, index2);
|
|
11314
11528
|
}
|
|
11315
11529
|
_createCellAllCache(index2) {
|
|
11316
11530
|
this._hasAll = !0, this._allIndex = index2;
|
|
11317
11531
|
}
|
|
11318
11532
|
_createCellCache(range, index2) {
|
|
11319
|
-
for (let i = range.startRow; i <= range.endRow; i++)
|
|
11533
|
+
for (let i = range.startRow; i <= range.endRow; i++) {
|
|
11534
|
+
let columnCache = this._cellCache.get(i);
|
|
11535
|
+
columnCache == null && (columnCache = /* @__PURE__ */ new Map(), this._cellCache.set(i, columnCache));
|
|
11320
11536
|
for (let j = range.startColumn; j <= range.endColumn; j++)
|
|
11321
|
-
|
|
11537
|
+
columnCache.set(j, index2);
|
|
11538
|
+
}
|
|
11322
11539
|
}
|
|
11323
11540
|
add(range) {
|
|
11324
11541
|
this._mergeData.push(range), this._clearCache(), this._createCache(this._mergeData);
|
|
@@ -11351,9 +11568,16 @@ const _SpanModel = class _SpanModel extends Disposable {
|
|
|
11351
11568
|
endColumn
|
|
11352
11569
|
}) && (ranges.push({
|
|
11353
11570
|
...range
|
|
11354
|
-
}), indexes.push(index2), index2
|
|
11571
|
+
}), indexes.push(index2)), index2++;
|
|
11355
11572
|
return this._rangeMap.set(key, indexes), ranges;
|
|
11356
11573
|
}
|
|
11574
|
+
/**
|
|
11575
|
+
* @deprecated sigificant performance impact, use _getCellMergeInfo instead.
|
|
11576
|
+
* @param startRow
|
|
11577
|
+
* @param startColumn
|
|
11578
|
+
* @param endRow
|
|
11579
|
+
* @param endColumn
|
|
11580
|
+
*/
|
|
11357
11581
|
getMergedCellRangeForSkeleton(startRow, startColumn, endRow, endColumn) {
|
|
11358
11582
|
const cacheDataMerge = [], mergeData = this._mergeData, key = `${startRow}-${startColumn}-${endRow}-${endColumn}`;
|
|
11359
11583
|
if (this._skeletonCache.has(key))
|
|
@@ -11401,15 +11625,17 @@ const _SpanModel = class _SpanModel extends Disposable {
|
|
|
11401
11625
|
return ranges;
|
|
11402
11626
|
}
|
|
11403
11627
|
_getMergeDataIndex(row, column) {
|
|
11628
|
+
var _a13;
|
|
11404
11629
|
if (this._hasAll)
|
|
11405
11630
|
return this._allIndex;
|
|
11406
|
-
const
|
|
11407
|
-
if (
|
|
11408
|
-
return
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11631
|
+
const rowValue = this._rowCache.get(row);
|
|
11632
|
+
if (rowValue !== void 0)
|
|
11633
|
+
return rowValue;
|
|
11634
|
+
const columnValue = this._columnCache.get(column);
|
|
11635
|
+
if (columnValue !== void 0)
|
|
11636
|
+
return columnValue;
|
|
11637
|
+
const cellValue = (_a13 = this._cellCache.get(row)) == null ? void 0 : _a13.get(column);
|
|
11638
|
+
return cellValue !== void 0 ? cellValue : -1;
|
|
11413
11639
|
}
|
|
11414
11640
|
getMergeDataSnapshot() {
|
|
11415
11641
|
return this._mergeData;
|
|
@@ -11431,7 +11657,13 @@ const _SheetViewModel = class _SheetViewModel extends Disposable {
|
|
|
11431
11657
|
super.dispose(), this._cellContentInterceptor = null, this._rowFilteredInterceptor = null;
|
|
11432
11658
|
}
|
|
11433
11659
|
getCell(row, col) {
|
|
11434
|
-
return this._cellContentInterceptor ? this._cellContentInterceptor.getCell(row, col) : this.getRawCell(row, col);
|
|
11660
|
+
return this._cellContentInterceptor ? this._cellContentInterceptor.getCell(row, col, InterceptorEffectEnum.Value | InterceptorEffectEnum.Style) : this.getRawCell(row, col);
|
|
11661
|
+
}
|
|
11662
|
+
getCellValueOnly(row, col) {
|
|
11663
|
+
return this._cellContentInterceptor ? this._cellContentInterceptor.getCell(row, col, InterceptorEffectEnum.Value) : this.getRawCell(row, col);
|
|
11664
|
+
}
|
|
11665
|
+
getCellStyleOnly(row, col) {
|
|
11666
|
+
return this._cellContentInterceptor ? this._cellContentInterceptor.getCell(row, col, InterceptorEffectEnum.Style) : this.getRawCell(row, col);
|
|
11435
11667
|
}
|
|
11436
11668
|
getRowFiltered(row) {
|
|
11437
11669
|
var _a13, _b2;
|
|
@@ -11649,6 +11881,24 @@ const _Worksheet = class _Worksheet {
|
|
|
11649
11881
|
getCell(row, col) {
|
|
11650
11882
|
return row < 0 || col < 0 ? null : this._viewModel.getCell(row, col);
|
|
11651
11883
|
}
|
|
11884
|
+
/**
|
|
11885
|
+
* Get cellData only use effect on value interceptor
|
|
11886
|
+
* @param {number} number row The row index of the cell.
|
|
11887
|
+
* @param {number} number col The column index of the cell.
|
|
11888
|
+
* @returns {Nullable<ICellDataForSheetInterceptor>} The cell data only use effect on value interceptor
|
|
11889
|
+
*/
|
|
11890
|
+
getCellValueOnly(row, col) {
|
|
11891
|
+
return row < 0 || col < 0 ? null : this._viewModel.getCellValueOnly(row, col);
|
|
11892
|
+
}
|
|
11893
|
+
/**
|
|
11894
|
+
* Get cellData only use effect on style interceptor
|
|
11895
|
+
* @param {number} row The row index of the cell.
|
|
11896
|
+
* @param {number} col The column index of the cell.
|
|
11897
|
+
* @returns {Nullable<ICellDataForSheetInterceptor>} The cell data only use effect on style interceptor
|
|
11898
|
+
*/
|
|
11899
|
+
getCellStyleOnly(row, col) {
|
|
11900
|
+
return row < 0 || col < 0 ? null : this._viewModel.getCellStyleOnly(row, col);
|
|
11901
|
+
}
|
|
11652
11902
|
getCellRaw(row, col) {
|
|
11653
11903
|
return this.getCellMatrix().getValue(row, col);
|
|
11654
11904
|
}
|
|
@@ -12505,7 +12755,7 @@ let LifecycleService = (_a7 = class extends Disposable {
|
|
|
12505
12755
|
* @returns
|
|
12506
12756
|
*/
|
|
12507
12757
|
subscribeWithPrevious() {
|
|
12508
|
-
return merge(getLifecycleStagesAndBefore(this.stage), this._lifecycle$.pipe(skip(1))).pipe(takeAfter((s) => s === LifecycleStages.Steady));
|
|
12758
|
+
return merge$1(getLifecycleStagesAndBefore(this.stage), this._lifecycle$.pipe(skip(1))).pipe(takeAfter((s) => s === LifecycleStages.Steady));
|
|
12509
12759
|
}
|
|
12510
12760
|
_reportProgress(stage) {
|
|
12511
12761
|
this._logService.debug("[LifecycleService]", `lifecycle progressed to "${LifecycleNameMap[stage]}".`);
|
|
@@ -13479,6 +13729,7 @@ export {
|
|
|
13479
13729
|
IUniverInstanceService,
|
|
13480
13730
|
Inject,
|
|
13481
13731
|
Injector,
|
|
13732
|
+
InterceptorEffectEnum,
|
|
13482
13733
|
InterceptorManager,
|
|
13483
13734
|
InterpolationPointType,
|
|
13484
13735
|
index$1 as JSON1,
|
|
@@ -13618,6 +13869,7 @@ export {
|
|
|
13618
13869
|
fromEventSubject,
|
|
13619
13870
|
fromObservable,
|
|
13620
13871
|
generateRandomId,
|
|
13872
|
+
get,
|
|
13621
13873
|
getArrayLength,
|
|
13622
13874
|
getBodySlice,
|
|
13623
13875
|
getBodySliceHtml,
|
|
@@ -13666,8 +13918,10 @@ export {
|
|
|
13666
13918
|
makeCellRangeToRangeData,
|
|
13667
13919
|
makeCellToSelection,
|
|
13668
13920
|
makeCustomRangeStream,
|
|
13921
|
+
merge,
|
|
13669
13922
|
mergeOverrideWithDependencies,
|
|
13670
13923
|
mergeSets,
|
|
13924
|
+
mergeWith,
|
|
13671
13925
|
mergeWorksheetSnapshotWithDefault,
|
|
13672
13926
|
mixinClass,
|
|
13673
13927
|
moveMatrixArray,
|
|
@@ -13692,6 +13946,7 @@ export {
|
|
|
13692
13946
|
sequenceAsync,
|
|
13693
13947
|
sequenceExecute,
|
|
13694
13948
|
sequenceExecuteAsync,
|
|
13949
|
+
set,
|
|
13695
13950
|
setDependencies,
|
|
13696
13951
|
shallowEqual,
|
|
13697
13952
|
skipParseTagNames,
|
|
@@ -13700,6 +13955,7 @@ export {
|
|
|
13700
13955
|
sortRulesByDesc,
|
|
13701
13956
|
sortRulesFactory,
|
|
13702
13957
|
spliceArray,
|
|
13958
|
+
splitIntoGrid,
|
|
13703
13959
|
takeAfter,
|
|
13704
13960
|
throttle,
|
|
13705
13961
|
toDisposable,
|