@kmkf-fe-packages/basic-components 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/dist/index.esm.js +259 -259
- package/dist/index.js +259 -259
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -9,377 +9,363 @@ import { cloneDeep, difference, differenceWith } from 'lodash';
|
|
|
9
9
|
import { useDebounceEffect } from 'ahooks';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
11
11
|
|
|
12
|
-
function _iterableToArrayLimit(
|
|
13
|
-
var
|
|
14
|
-
if (null !=
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
function _iterableToArrayLimit(arr, i) {
|
|
13
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14
|
+
if (null != _i) {
|
|
15
|
+
var _s,
|
|
16
|
+
_e,
|
|
17
|
+
_x,
|
|
18
|
+
_r,
|
|
19
|
+
_arr = [],
|
|
20
|
+
_n = !0,
|
|
21
|
+
_d = !1;
|
|
22
22
|
try {
|
|
23
|
-
if (
|
|
24
|
-
if (Object(
|
|
25
|
-
|
|
26
|
-
} else for (; !(
|
|
27
|
-
} catch (
|
|
28
|
-
|
|
23
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
24
|
+
if (Object(_i) !== _i) return;
|
|
25
|
+
_n = !1;
|
|
26
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
27
|
+
} catch (err) {
|
|
28
|
+
_d = !0, _e = err;
|
|
29
29
|
} finally {
|
|
30
30
|
try {
|
|
31
|
-
if (!
|
|
31
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
32
32
|
} finally {
|
|
33
|
-
if (
|
|
33
|
+
if (_d) throw _e;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return _arr;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function ownKeys(
|
|
40
|
-
var
|
|
39
|
+
function ownKeys(object, enumerableOnly) {
|
|
40
|
+
var keys = Object.keys(object);
|
|
41
41
|
if (Object.getOwnPropertySymbols) {
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
return Object.getOwnPropertyDescriptor(
|
|
45
|
-
})),
|
|
42
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
43
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
45
|
+
})), keys.push.apply(keys, symbols);
|
|
46
46
|
}
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
function _objectSpread2(
|
|
50
|
-
for (var
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
_defineProperty(
|
|
54
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
55
|
-
Object.defineProperty(
|
|
47
|
+
return keys;
|
|
48
|
+
}
|
|
49
|
+
function _objectSpread2(target) {
|
|
50
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
51
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
52
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
53
|
+
_defineProperty(target, key, source[key]);
|
|
54
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
55
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
return
|
|
58
|
+
return target;
|
|
59
59
|
}
|
|
60
60
|
function _regeneratorRuntime() {
|
|
61
61
|
_regeneratorRuntime = function () {
|
|
62
|
-
return
|
|
63
|
-
};
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
t[e] = r.value;
|
|
62
|
+
return exports;
|
|
63
|
+
};
|
|
64
|
+
var exports = {},
|
|
65
|
+
Op = Object.prototype,
|
|
66
|
+
hasOwn = Op.hasOwnProperty,
|
|
67
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
68
|
+
obj[key] = desc.value;
|
|
70
69
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
function define(
|
|
76
|
-
return Object.defineProperty(
|
|
77
|
-
value:
|
|
70
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
71
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
72
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
73
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
74
|
+
function define(obj, key, value) {
|
|
75
|
+
return Object.defineProperty(obj, key, {
|
|
76
|
+
value: value,
|
|
78
77
|
enumerable: !0,
|
|
79
78
|
configurable: !0,
|
|
80
79
|
writable: !0
|
|
81
|
-
}),
|
|
80
|
+
}), obj[key];
|
|
82
81
|
}
|
|
83
82
|
try {
|
|
84
83
|
define({}, "");
|
|
85
|
-
} catch (
|
|
86
|
-
define = function (
|
|
87
|
-
return
|
|
84
|
+
} catch (err) {
|
|
85
|
+
define = function (obj, key, value) {
|
|
86
|
+
return obj[key] = value;
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
|
-
function wrap(
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
value: makeInvokeMethod(
|
|
96
|
-
}),
|
|
89
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
90
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
91
|
+
generator = Object.create(protoGenerator.prototype),
|
|
92
|
+
context = new Context(tryLocsList || []);
|
|
93
|
+
return defineProperty(generator, "_invoke", {
|
|
94
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
95
|
+
}), generator;
|
|
97
96
|
}
|
|
98
|
-
function tryCatch(
|
|
97
|
+
function tryCatch(fn, obj, arg) {
|
|
99
98
|
try {
|
|
100
99
|
return {
|
|
101
100
|
type: "normal",
|
|
102
|
-
arg:
|
|
101
|
+
arg: fn.call(obj, arg)
|
|
103
102
|
};
|
|
104
|
-
} catch (
|
|
103
|
+
} catch (err) {
|
|
105
104
|
return {
|
|
106
105
|
type: "throw",
|
|
107
|
-
arg:
|
|
106
|
+
arg: err
|
|
108
107
|
};
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
|
-
|
|
112
|
-
var
|
|
113
|
-
l = "suspendedYield",
|
|
114
|
-
f = "executing",
|
|
115
|
-
s = "completed",
|
|
116
|
-
y = {};
|
|
110
|
+
exports.wrap = wrap;
|
|
111
|
+
var ContinueSentinel = {};
|
|
117
112
|
function Generator() {}
|
|
118
113
|
function GeneratorFunction() {}
|
|
119
114
|
function GeneratorFunctionPrototype() {}
|
|
120
|
-
var
|
|
121
|
-
define(
|
|
115
|
+
var IteratorPrototype = {};
|
|
116
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
122
117
|
return this;
|
|
123
118
|
});
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var
|
|
128
|
-
function defineIteratorMethods(
|
|
129
|
-
["next", "throw", "return"].forEach(function (
|
|
130
|
-
define(
|
|
131
|
-
return this._invoke(
|
|
119
|
+
var getProto = Object.getPrototypeOf,
|
|
120
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
121
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
122
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
123
|
+
function defineIteratorMethods(prototype) {
|
|
124
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
125
|
+
define(prototype, method, function (arg) {
|
|
126
|
+
return this._invoke(method, arg);
|
|
132
127
|
});
|
|
133
128
|
});
|
|
134
129
|
}
|
|
135
|
-
function AsyncIterator(
|
|
136
|
-
function invoke(
|
|
137
|
-
var
|
|
138
|
-
if ("throw" !==
|
|
139
|
-
var
|
|
140
|
-
|
|
141
|
-
return
|
|
142
|
-
invoke("next",
|
|
143
|
-
}, function (
|
|
144
|
-
invoke("throw",
|
|
145
|
-
}) :
|
|
146
|
-
|
|
147
|
-
}, function (
|
|
148
|
-
return invoke("throw",
|
|
130
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
131
|
+
function invoke(method, arg, resolve, reject) {
|
|
132
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
133
|
+
if ("throw" !== record.type) {
|
|
134
|
+
var result = record.arg,
|
|
135
|
+
value = result.value;
|
|
136
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
137
|
+
invoke("next", value, resolve, reject);
|
|
138
|
+
}, function (err) {
|
|
139
|
+
invoke("throw", err, resolve, reject);
|
|
140
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
141
|
+
result.value = unwrapped, resolve(result);
|
|
142
|
+
}, function (error) {
|
|
143
|
+
return invoke("throw", error, resolve, reject);
|
|
149
144
|
});
|
|
150
145
|
}
|
|
151
|
-
|
|
146
|
+
reject(record.arg);
|
|
152
147
|
}
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
value: function (
|
|
148
|
+
var previousPromise;
|
|
149
|
+
defineProperty(this, "_invoke", {
|
|
150
|
+
value: function (method, arg) {
|
|
156
151
|
function callInvokeWithMethodAndArg() {
|
|
157
|
-
return new
|
|
158
|
-
invoke(
|
|
152
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
153
|
+
invoke(method, arg, resolve, reject);
|
|
159
154
|
});
|
|
160
155
|
}
|
|
161
|
-
return
|
|
156
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
162
157
|
}
|
|
163
158
|
});
|
|
164
159
|
}
|
|
165
|
-
function makeInvokeMethod(
|
|
166
|
-
var
|
|
167
|
-
return function (
|
|
168
|
-
if (
|
|
169
|
-
if (
|
|
170
|
-
if ("throw" ===
|
|
171
|
-
return
|
|
172
|
-
value: t,
|
|
173
|
-
done: !0
|
|
174
|
-
};
|
|
160
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
161
|
+
var state = "suspendedStart";
|
|
162
|
+
return function (method, arg) {
|
|
163
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
164
|
+
if ("completed" === state) {
|
|
165
|
+
if ("throw" === method) throw arg;
|
|
166
|
+
return doneResult();
|
|
175
167
|
}
|
|
176
|
-
for (
|
|
177
|
-
var
|
|
178
|
-
if (
|
|
179
|
-
var
|
|
180
|
-
if (
|
|
181
|
-
if (
|
|
182
|
-
return
|
|
168
|
+
for (context.method = method, context.arg = arg;;) {
|
|
169
|
+
var delegate = context.delegate;
|
|
170
|
+
if (delegate) {
|
|
171
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
172
|
+
if (delegateResult) {
|
|
173
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
174
|
+
return delegateResult;
|
|
183
175
|
}
|
|
184
176
|
}
|
|
185
|
-
if ("next" ===
|
|
186
|
-
if (
|
|
187
|
-
|
|
188
|
-
} else "return" ===
|
|
189
|
-
|
|
190
|
-
var
|
|
191
|
-
if ("normal" ===
|
|
192
|
-
if (
|
|
177
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
178
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
179
|
+
context.dispatchException(context.arg);
|
|
180
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
181
|
+
state = "executing";
|
|
182
|
+
var record = tryCatch(innerFn, self, context);
|
|
183
|
+
if ("normal" === record.type) {
|
|
184
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
193
185
|
return {
|
|
194
|
-
value:
|
|
195
|
-
done:
|
|
186
|
+
value: record.arg,
|
|
187
|
+
done: context.done
|
|
196
188
|
};
|
|
197
189
|
}
|
|
198
|
-
"throw" ===
|
|
190
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
199
191
|
}
|
|
200
192
|
};
|
|
201
193
|
}
|
|
202
|
-
function maybeInvokeDelegate(
|
|
203
|
-
var
|
|
204
|
-
|
|
205
|
-
if (
|
|
206
|
-
var
|
|
207
|
-
if ("throw" ===
|
|
208
|
-
var
|
|
209
|
-
return
|
|
194
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
195
|
+
var methodName = context.method,
|
|
196
|
+
method = delegate.iterator[methodName];
|
|
197
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
198
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
199
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
200
|
+
var info = record.arg;
|
|
201
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
210
202
|
}
|
|
211
|
-
function pushTryEntry(
|
|
212
|
-
var
|
|
213
|
-
tryLoc:
|
|
203
|
+
function pushTryEntry(locs) {
|
|
204
|
+
var entry = {
|
|
205
|
+
tryLoc: locs[0]
|
|
214
206
|
};
|
|
215
|
-
1 in
|
|
207
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
216
208
|
}
|
|
217
|
-
function resetTryEntry(
|
|
218
|
-
var
|
|
219
|
-
|
|
209
|
+
function resetTryEntry(entry) {
|
|
210
|
+
var record = entry.completion || {};
|
|
211
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
220
212
|
}
|
|
221
|
-
function Context(
|
|
213
|
+
function Context(tryLocsList) {
|
|
222
214
|
this.tryEntries = [{
|
|
223
215
|
tryLoc: "root"
|
|
224
|
-
}],
|
|
216
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
225
217
|
}
|
|
226
|
-
function values(
|
|
227
|
-
if (
|
|
228
|
-
var
|
|
229
|
-
if (
|
|
230
|
-
if ("function" == typeof
|
|
231
|
-
if (!isNaN(
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
for (; ++
|
|
235
|
-
return next.value =
|
|
218
|
+
function values(iterable) {
|
|
219
|
+
if (iterable) {
|
|
220
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
221
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
222
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
223
|
+
if (!isNaN(iterable.length)) {
|
|
224
|
+
var i = -1,
|
|
225
|
+
next = function next() {
|
|
226
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
227
|
+
return next.value = undefined, next.done = !0, next;
|
|
236
228
|
};
|
|
237
|
-
return
|
|
229
|
+
return next.next = next;
|
|
238
230
|
}
|
|
239
231
|
}
|
|
240
|
-
|
|
232
|
+
return {
|
|
233
|
+
next: doneResult
|
|
234
|
+
};
|
|
241
235
|
}
|
|
242
|
-
|
|
236
|
+
function doneResult() {
|
|
237
|
+
return {
|
|
238
|
+
value: undefined,
|
|
239
|
+
done: !0
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
243
243
|
value: GeneratorFunctionPrototype,
|
|
244
244
|
configurable: !0
|
|
245
|
-
}),
|
|
245
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
246
246
|
value: GeneratorFunction,
|
|
247
247
|
configurable: !0
|
|
248
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
249
|
-
var
|
|
250
|
-
return !!
|
|
251
|
-
},
|
|
252
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
253
|
-
},
|
|
248
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
249
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
250
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
251
|
+
}, exports.mark = function (genFun) {
|
|
252
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
253
|
+
}, exports.awrap = function (arg) {
|
|
254
254
|
return {
|
|
255
|
-
__await:
|
|
255
|
+
__await: arg
|
|
256
256
|
};
|
|
257
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
257
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
258
258
|
return this;
|
|
259
|
-
}),
|
|
260
|
-
void 0 ===
|
|
261
|
-
var
|
|
262
|
-
return
|
|
263
|
-
return
|
|
259
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
260
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
261
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
262
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
263
|
+
return result.done ? result.value : iter.next();
|
|
264
264
|
});
|
|
265
|
-
}, defineIteratorMethods(
|
|
265
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
266
266
|
return this;
|
|
267
|
-
}), define(
|
|
267
|
+
}), define(Gp, "toString", function () {
|
|
268
268
|
return "[object Generator]";
|
|
269
|
-
}),
|
|
270
|
-
var
|
|
271
|
-
|
|
272
|
-
for (var
|
|
273
|
-
return
|
|
274
|
-
for (;
|
|
275
|
-
var
|
|
276
|
-
if (
|
|
269
|
+
}), exports.keys = function (val) {
|
|
270
|
+
var object = Object(val),
|
|
271
|
+
keys = [];
|
|
272
|
+
for (var key in object) keys.push(key);
|
|
273
|
+
return keys.reverse(), function next() {
|
|
274
|
+
for (; keys.length;) {
|
|
275
|
+
var key = keys.pop();
|
|
276
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
277
277
|
}
|
|
278
278
|
return next.done = !0, next;
|
|
279
279
|
};
|
|
280
|
-
},
|
|
280
|
+
}, exports.values = values, Context.prototype = {
|
|
281
281
|
constructor: Context,
|
|
282
|
-
reset: function (
|
|
283
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
282
|
+
reset: function (skipTempReset) {
|
|
283
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
284
284
|
},
|
|
285
285
|
stop: function () {
|
|
286
286
|
this.done = !0;
|
|
287
|
-
var
|
|
288
|
-
if ("throw" ===
|
|
287
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
288
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
289
289
|
return this.rval;
|
|
290
290
|
},
|
|
291
|
-
dispatchException: function (
|
|
292
|
-
if (this.done) throw
|
|
293
|
-
var
|
|
294
|
-
function handle(
|
|
295
|
-
return
|
|
291
|
+
dispatchException: function (exception) {
|
|
292
|
+
if (this.done) throw exception;
|
|
293
|
+
var context = this;
|
|
294
|
+
function handle(loc, caught) {
|
|
295
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
296
296
|
}
|
|
297
|
-
for (var
|
|
298
|
-
var
|
|
299
|
-
|
|
300
|
-
if ("root" ===
|
|
301
|
-
if (
|
|
302
|
-
var
|
|
303
|
-
|
|
304
|
-
if (
|
|
305
|
-
if (this.prev <
|
|
306
|
-
if (this.prev <
|
|
307
|
-
} else if (
|
|
308
|
-
if (this.prev <
|
|
297
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
298
|
+
var entry = this.tryEntries[i],
|
|
299
|
+
record = entry.completion;
|
|
300
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
301
|
+
if (entry.tryLoc <= this.prev) {
|
|
302
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
303
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
304
|
+
if (hasCatch && hasFinally) {
|
|
305
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
306
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
307
|
+
} else if (hasCatch) {
|
|
308
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
309
309
|
} else {
|
|
310
|
-
if (!
|
|
311
|
-
if (this.prev <
|
|
310
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
311
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
|
-
abrupt: function (
|
|
317
|
-
for (var
|
|
318
|
-
var
|
|
319
|
-
if (
|
|
320
|
-
var
|
|
316
|
+
abrupt: function (type, arg) {
|
|
317
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
318
|
+
var entry = this.tryEntries[i];
|
|
319
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
320
|
+
var finallyEntry = entry;
|
|
321
321
|
break;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
|
|
325
|
-
var
|
|
326
|
-
return
|
|
324
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
325
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
326
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
327
327
|
},
|
|
328
|
-
complete: function (
|
|
329
|
-
if ("throw" ===
|
|
330
|
-
return "break" ===
|
|
328
|
+
complete: function (record, afterLoc) {
|
|
329
|
+
if ("throw" === record.type) throw record.arg;
|
|
330
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
331
331
|
},
|
|
332
|
-
finish: function (
|
|
333
|
-
for (var
|
|
334
|
-
var
|
|
335
|
-
if (
|
|
332
|
+
finish: function (finallyLoc) {
|
|
333
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
334
|
+
var entry = this.tryEntries[i];
|
|
335
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
336
336
|
}
|
|
337
337
|
},
|
|
338
|
-
catch: function (
|
|
339
|
-
for (var
|
|
340
|
-
var
|
|
341
|
-
if (
|
|
342
|
-
var
|
|
343
|
-
if ("throw" ===
|
|
344
|
-
var
|
|
345
|
-
resetTryEntry(
|
|
338
|
+
catch: function (tryLoc) {
|
|
339
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
340
|
+
var entry = this.tryEntries[i];
|
|
341
|
+
if (entry.tryLoc === tryLoc) {
|
|
342
|
+
var record = entry.completion;
|
|
343
|
+
if ("throw" === record.type) {
|
|
344
|
+
var thrown = record.arg;
|
|
345
|
+
resetTryEntry(entry);
|
|
346
346
|
}
|
|
347
|
-
return
|
|
347
|
+
return thrown;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
throw new Error("illegal catch attempt");
|
|
351
351
|
},
|
|
352
|
-
delegateYield: function (
|
|
352
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
353
353
|
return this.delegate = {
|
|
354
|
-
iterator: values(
|
|
355
|
-
resultName:
|
|
356
|
-
nextLoc:
|
|
357
|
-
}, "next" === this.method && (this.arg =
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
}
|
|
361
|
-
function _toPrimitive(t, r) {
|
|
362
|
-
if ("object" != typeof t || !t) return t;
|
|
363
|
-
var e = t[Symbol.toPrimitive];
|
|
364
|
-
if (void 0 !== e) {
|
|
365
|
-
var i = e.call(t, r || "default");
|
|
366
|
-
if ("object" != typeof i) return i;
|
|
367
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
368
|
-
}
|
|
369
|
-
return ("string" === r ? String : Number)(t);
|
|
370
|
-
}
|
|
371
|
-
function _toPropertyKey(t) {
|
|
372
|
-
var i = _toPrimitive(t, "string");
|
|
373
|
-
return "symbol" == typeof i ? i : String(i);
|
|
354
|
+
iterator: values(iterable),
|
|
355
|
+
resultName: resultName,
|
|
356
|
+
nextLoc: nextLoc
|
|
357
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
358
|
+
}
|
|
359
|
+
}, exports;
|
|
374
360
|
}
|
|
375
|
-
function _typeof(
|
|
361
|
+
function _typeof(obj) {
|
|
376
362
|
"@babel/helpers - typeof";
|
|
377
363
|
|
|
378
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
379
|
-
return typeof
|
|
380
|
-
} : function (
|
|
381
|
-
return
|
|
382
|
-
}, _typeof(
|
|
364
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
365
|
+
return typeof obj;
|
|
366
|
+
} : function (obj) {
|
|
367
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
368
|
+
}, _typeof(obj);
|
|
383
369
|
}
|
|
384
370
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
385
371
|
try {
|
|
@@ -486,6 +472,20 @@ function _nonIterableSpread() {
|
|
|
486
472
|
function _nonIterableRest() {
|
|
487
473
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
488
474
|
}
|
|
475
|
+
function _toPrimitive(input, hint) {
|
|
476
|
+
if (typeof input !== "object" || input === null) return input;
|
|
477
|
+
var prim = input[Symbol.toPrimitive];
|
|
478
|
+
if (prim !== undefined) {
|
|
479
|
+
var res = prim.call(input, hint || "default");
|
|
480
|
+
if (typeof res !== "object") return res;
|
|
481
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
482
|
+
}
|
|
483
|
+
return (hint === "string" ? String : Number)(input);
|
|
484
|
+
}
|
|
485
|
+
function _toPropertyKey(arg) {
|
|
486
|
+
var key = _toPrimitive(arg, "string");
|
|
487
|
+
return typeof key === "symbol" ? key : String(key);
|
|
488
|
+
}
|
|
489
489
|
|
|
490
490
|
function ApaasCascader(props) {
|
|
491
491
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|