bk-magic-vue 2.5.6 → 2.5.7

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.
Files changed (48) hide show
  1. package/dist/bk-magic-vue.css +240 -2
  2. package/dist/bk-magic-vue.js +1137 -182
  3. package/dist/bk-magic-vue.min.css +1 -1
  4. package/dist/bk-magic-vue.min.css.gz +0 -0
  5. package/dist/bk-magic-vue.min.css.map +1 -1
  6. package/dist/bk-magic-vue.min.js +1 -1
  7. package/dist/bk-magic-vue.min.js.gz +0 -0
  8. package/dist/bk-magic-vue.min.js.map +1 -1
  9. package/dist/fonts/iconcool.eot +0 -0
  10. package/dist/fonts/iconcool.svg +27 -0
  11. package/dist/fonts/iconcool.ttf +0 -0
  12. package/dist/fonts/iconcool.woff +0 -0
  13. package/lib/cascade.js +35 -32
  14. package/lib/locale/lang/en-US.js +5 -1
  15. package/lib/locale/lang/zh-CN.js +5 -1
  16. package/lib/message.js +1182 -623
  17. package/lib/option.js +692 -63
  18. package/lib/pagination.js +383 -105
  19. package/lib/search-select.js +1604 -1288
  20. package/lib/select.js +321 -43
  21. package/lib/table.js +17 -2
  22. package/lib/ui/bk-magic-vue.css +240 -2
  23. package/lib/ui/bk-magic-vue.min.css +1 -1
  24. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  25. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  26. package/lib/ui/common.css +36 -0
  27. package/lib/ui/common.min.css +1 -1
  28. package/lib/ui/common.min.css.map +1 -1
  29. package/lib/ui/fonts/iconcool.eot +0 -0
  30. package/lib/ui/fonts/iconcool.svg +27 -0
  31. package/lib/ui/fonts/iconcool.ttf +0 -0
  32. package/lib/ui/fonts/iconcool.woff +0 -0
  33. package/lib/ui/iconfont.css +36 -0
  34. package/lib/ui/iconfont.min.css +1 -1
  35. package/lib/ui/iconfont.min.css.map +1 -1
  36. package/lib/ui/message.css +233 -1
  37. package/lib/ui/message.min.css +1 -1
  38. package/lib/ui/message.min.css.map +1 -1
  39. package/lib/ui/search-select-menu.css +7 -1
  40. package/lib/ui/search-select-menu.min.css +1 -1
  41. package/lib/ui/search-select-menu.min.css.map +1 -1
  42. package/lib/ui/search-select.css +5 -0
  43. package/lib/ui/search-select.min.css +1 -1
  44. package/lib/ui/search-select.min.css.map +1 -1
  45. package/lib/ui/select.css +4 -0
  46. package/lib/ui/select.min.css +1 -1
  47. package/lib/ui/select.min.css.map +1 -1
  48. package/package.json +4 -2
@@ -306,432 +306,6 @@
306
306
 
307
307
  var values$1 = values;
308
308
 
309
- function _regeneratorRuntime() {
310
- _regeneratorRuntime = function () {
311
- return exports;
312
- };
313
- var exports = {},
314
- Op = Object.prototype,
315
- hasOwn = Op.hasOwnProperty,
316
- defineProperty = Object.defineProperty || function (obj, key, desc) {
317
- obj[key] = desc.value;
318
- },
319
- $Symbol = "function" == typeof Symbol ? Symbol : {},
320
- iteratorSymbol = $Symbol.iterator || "@@iterator",
321
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
322
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
323
- function define(obj, key, value) {
324
- return Object.defineProperty(obj, key, {
325
- value: value,
326
- enumerable: !0,
327
- configurable: !0,
328
- writable: !0
329
- }), obj[key];
330
- }
331
- try {
332
- define({}, "");
333
- } catch (err) {
334
- define = function (obj, key, value) {
335
- return obj[key] = value;
336
- };
337
- }
338
- function wrap(innerFn, outerFn, self, tryLocsList) {
339
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
340
- generator = Object.create(protoGenerator.prototype),
341
- context = new Context(tryLocsList || []);
342
- return defineProperty(generator, "_invoke", {
343
- value: makeInvokeMethod(innerFn, self, context)
344
- }), generator;
345
- }
346
- function tryCatch(fn, obj, arg) {
347
- try {
348
- return {
349
- type: "normal",
350
- arg: fn.call(obj, arg)
351
- };
352
- } catch (err) {
353
- return {
354
- type: "throw",
355
- arg: err
356
- };
357
- }
358
- }
359
- exports.wrap = wrap;
360
- var ContinueSentinel = {};
361
- function Generator() {}
362
- function GeneratorFunction() {}
363
- function GeneratorFunctionPrototype() {}
364
- var IteratorPrototype = {};
365
- define(IteratorPrototype, iteratorSymbol, function () {
366
- return this;
367
- });
368
- var getProto = Object.getPrototypeOf,
369
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
370
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
371
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
372
- function defineIteratorMethods(prototype) {
373
- ["next", "throw", "return"].forEach(function (method) {
374
- define(prototype, method, function (arg) {
375
- return this._invoke(method, arg);
376
- });
377
- });
378
- }
379
- function AsyncIterator(generator, PromiseImpl) {
380
- function invoke(method, arg, resolve, reject) {
381
- var record = tryCatch(generator[method], generator, arg);
382
- if ("throw" !== record.type) {
383
- var result = record.arg,
384
- value = result.value;
385
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
386
- invoke("next", value, resolve, reject);
387
- }, function (err) {
388
- invoke("throw", err, resolve, reject);
389
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
390
- result.value = unwrapped, resolve(result);
391
- }, function (error) {
392
- return invoke("throw", error, resolve, reject);
393
- });
394
- }
395
- reject(record.arg);
396
- }
397
- var previousPromise;
398
- defineProperty(this, "_invoke", {
399
- value: function (method, arg) {
400
- function callInvokeWithMethodAndArg() {
401
- return new PromiseImpl(function (resolve, reject) {
402
- invoke(method, arg, resolve, reject);
403
- });
404
- }
405
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
406
- }
407
- });
408
- }
409
- function makeInvokeMethod(innerFn, self, context) {
410
- var state = "suspendedStart";
411
- return function (method, arg) {
412
- if ("executing" === state) throw new Error("Generator is already running");
413
- if ("completed" === state) {
414
- if ("throw" === method) throw arg;
415
- return doneResult();
416
- }
417
- for (context.method = method, context.arg = arg;;) {
418
- var delegate = context.delegate;
419
- if (delegate) {
420
- var delegateResult = maybeInvokeDelegate(delegate, context);
421
- if (delegateResult) {
422
- if (delegateResult === ContinueSentinel) continue;
423
- return delegateResult;
424
- }
425
- }
426
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
427
- if ("suspendedStart" === state) throw state = "completed", context.arg;
428
- context.dispatchException(context.arg);
429
- } else "return" === context.method && context.abrupt("return", context.arg);
430
- state = "executing";
431
- var record = tryCatch(innerFn, self, context);
432
- if ("normal" === record.type) {
433
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
434
- return {
435
- value: record.arg,
436
- done: context.done
437
- };
438
- }
439
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
440
- }
441
- };
442
- }
443
- function maybeInvokeDelegate(delegate, context) {
444
- var method = delegate.iterator[context.method];
445
- if (undefined === method) {
446
- if (context.delegate = null, "throw" === context.method) {
447
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
448
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
449
- }
450
- return ContinueSentinel;
451
- }
452
- var record = tryCatch(method, delegate.iterator, context.arg);
453
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
454
- var info = record.arg;
455
- 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);
456
- }
457
- function pushTryEntry(locs) {
458
- var entry = {
459
- tryLoc: locs[0]
460
- };
461
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
462
- }
463
- function resetTryEntry(entry) {
464
- var record = entry.completion || {};
465
- record.type = "normal", delete record.arg, entry.completion = record;
466
- }
467
- function Context(tryLocsList) {
468
- this.tryEntries = [{
469
- tryLoc: "root"
470
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
471
- }
472
- function values(iterable) {
473
- if (iterable) {
474
- var iteratorMethod = iterable[iteratorSymbol];
475
- if (iteratorMethod) return iteratorMethod.call(iterable);
476
- if ("function" == typeof iterable.next) return iterable;
477
- if (!isNaN(iterable.length)) {
478
- var i = -1,
479
- next = function next() {
480
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
481
- return next.value = undefined, next.done = !0, next;
482
- };
483
- return next.next = next;
484
- }
485
- }
486
- return {
487
- next: doneResult
488
- };
489
- }
490
- function doneResult() {
491
- return {
492
- value: undefined,
493
- done: !0
494
- };
495
- }
496
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
497
- value: GeneratorFunctionPrototype,
498
- configurable: !0
499
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
500
- value: GeneratorFunction,
501
- configurable: !0
502
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
503
- var ctor = "function" == typeof genFun && genFun.constructor;
504
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
505
- }, exports.mark = function (genFun) {
506
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
507
- }, exports.awrap = function (arg) {
508
- return {
509
- __await: arg
510
- };
511
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
512
- return this;
513
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
514
- void 0 === PromiseImpl && (PromiseImpl = Promise);
515
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
516
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
517
- return result.done ? result.value : iter.next();
518
- });
519
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
520
- return this;
521
- }), define(Gp, "toString", function () {
522
- return "[object Generator]";
523
- }), exports.keys = function (val) {
524
- var object = Object(val),
525
- keys = [];
526
- for (var key in object) keys.push(key);
527
- return keys.reverse(), function next() {
528
- for (; keys.length;) {
529
- var key = keys.pop();
530
- if (key in object) return next.value = key, next.done = !1, next;
531
- }
532
- return next.done = !0, next;
533
- };
534
- }, exports.values = values, Context.prototype = {
535
- constructor: Context,
536
- reset: function (skipTempReset) {
537
- 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);
538
- },
539
- stop: function () {
540
- this.done = !0;
541
- var rootRecord = this.tryEntries[0].completion;
542
- if ("throw" === rootRecord.type) throw rootRecord.arg;
543
- return this.rval;
544
- },
545
- dispatchException: function (exception) {
546
- if (this.done) throw exception;
547
- var context = this;
548
- function handle(loc, caught) {
549
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
550
- }
551
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
552
- var entry = this.tryEntries[i],
553
- record = entry.completion;
554
- if ("root" === entry.tryLoc) return handle("end");
555
- if (entry.tryLoc <= this.prev) {
556
- var hasCatch = hasOwn.call(entry, "catchLoc"),
557
- hasFinally = hasOwn.call(entry, "finallyLoc");
558
- if (hasCatch && hasFinally) {
559
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
560
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
561
- } else if (hasCatch) {
562
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
563
- } else {
564
- if (!hasFinally) throw new Error("try statement without catch or finally");
565
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
566
- }
567
- }
568
- }
569
- },
570
- abrupt: function (type, arg) {
571
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
572
- var entry = this.tryEntries[i];
573
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
574
- var finallyEntry = entry;
575
- break;
576
- }
577
- }
578
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
579
- var record = finallyEntry ? finallyEntry.completion : {};
580
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
581
- },
582
- complete: function (record, afterLoc) {
583
- if ("throw" === record.type) throw record.arg;
584
- 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;
585
- },
586
- finish: function (finallyLoc) {
587
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
588
- var entry = this.tryEntries[i];
589
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
590
- }
591
- },
592
- catch: function (tryLoc) {
593
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
594
- var entry = this.tryEntries[i];
595
- if (entry.tryLoc === tryLoc) {
596
- var record = entry.completion;
597
- if ("throw" === record.type) {
598
- var thrown = record.arg;
599
- resetTryEntry(entry);
600
- }
601
- return thrown;
602
- }
603
- }
604
- throw new Error("illegal catch attempt");
605
- },
606
- delegateYield: function (iterable, resultName, nextLoc) {
607
- return this.delegate = {
608
- iterator: values(iterable),
609
- resultName: resultName,
610
- nextLoc: nextLoc
611
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
612
- }
613
- }, exports;
614
- }
615
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
616
- try {
617
- var info = gen[key](arg);
618
- var value = info.value;
619
- } catch (error) {
620
- reject(error);
621
- return;
622
- }
623
- if (info.done) {
624
- resolve(value);
625
- } else {
626
- Promise.resolve(value).then(_next, _throw);
627
- }
628
- }
629
- function _asyncToGenerator(fn) {
630
- return function () {
631
- var self = this,
632
- args = arguments;
633
- return new Promise(function (resolve, reject) {
634
- var gen = fn.apply(self, args);
635
- function _next(value) {
636
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
637
- }
638
- function _throw(err) {
639
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
640
- }
641
- _next(undefined);
642
- });
643
- };
644
- }
645
- function _classCallCheck(instance, Constructor) {
646
- if (!(instance instanceof Constructor)) {
647
- throw new TypeError("Cannot call a class as a function");
648
- }
649
- }
650
- function _defineProperties(target, props) {
651
- for (var i = 0; i < props.length; i++) {
652
- var descriptor = props[i];
653
- descriptor.enumerable = descriptor.enumerable || false;
654
- descriptor.configurable = true;
655
- if ("value" in descriptor) descriptor.writable = true;
656
- Object.defineProperty(target, descriptor.key, descriptor);
657
- }
658
- }
659
- function _createClass(Constructor, protoProps, staticProps) {
660
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
661
- if (staticProps) _defineProperties(Constructor, staticProps);
662
- Object.defineProperty(Constructor, "prototype", {
663
- writable: false
664
- });
665
- return Constructor;
666
- }
667
- function _defineProperty(obj, key, value) {
668
- if (key in obj) {
669
- Object.defineProperty(obj, key, {
670
- value: value,
671
- enumerable: true,
672
- configurable: true,
673
- writable: true
674
- });
675
- } else {
676
- obj[key] = value;
677
- }
678
- return obj;
679
- }
680
- function _extends() {
681
- _extends = Object.assign ? Object.assign.bind() : function (target) {
682
- for (var i = 1; i < arguments.length; i++) {
683
- var source = arguments[i];
684
- for (var key in source) {
685
- if (Object.prototype.hasOwnProperty.call(source, key)) {
686
- target[key] = source[key];
687
- }
688
- }
689
- }
690
- return target;
691
- };
692
- return _extends.apply(this, arguments);
693
- }
694
- function _objectSpread(target) {
695
- for (var i = 1; i < arguments.length; i++) {
696
- var source = arguments[i] != null ? Object(arguments[i]) : {};
697
- var ownKeys = Object.keys(source);
698
- if (typeof Object.getOwnPropertySymbols === 'function') {
699
- ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
700
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
701
- }));
702
- }
703
- ownKeys.forEach(function (key) {
704
- _defineProperty(target, key, source[key]);
705
- });
706
- }
707
- return target;
708
- }
709
- function _toConsumableArray(arr) {
710
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
711
- }
712
- function _arrayWithoutHoles(arr) {
713
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
714
- }
715
- function _iterableToArray(iter) {
716
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
717
- }
718
- function _unsupportedIterableToArray(o, minLen) {
719
- if (!o) return;
720
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
721
- var n = Object.prototype.toString.call(o).slice(8, -1);
722
- if (n === "Object" && o.constructor) n = o.constructor.name;
723
- if (n === "Map" || n === "Set") return Array.from(o);
724
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
725
- }
726
- function _arrayLikeToArray(arr, len) {
727
- if (len == null || len > arr.length) len = arr.length;
728
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
729
- return arr2;
730
- }
731
- function _nonIterableSpread() {
732
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
733
- }
734
-
735
309
  var _stringAt = function (TO_STRING) {
736
310
  return function (that, pos) {
737
311
  var s = String(_defined(that));
@@ -877,656 +451,1082 @@
877
451
  keys: IS_SET ? $default : getMethod(KEYS),
878
452
  entries: $entries
879
453
  };
880
- if (FORCED) for (key in methods) {
881
- if (!(key in proto)) _redefine(proto, key, methods[key]);
882
- } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);
454
+ if (FORCED) for (key in methods) {
455
+ if (!(key in proto)) _redefine(proto, key, methods[key]);
456
+ } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);
457
+ }
458
+ return methods;
459
+ };
460
+
461
+ var $at = _stringAt(true);
462
+ _iterDefine(String, 'String', function (iterated) {
463
+ this._t = String(iterated);
464
+ this._i = 0;
465
+ }, function () {
466
+ var O = this._t;
467
+ var index = this._i;
468
+ var point;
469
+ if (index >= O.length) return { value: undefined, done: true };
470
+ point = $at(O, index);
471
+ this._i += point.length;
472
+ return { value: point, done: false };
473
+ });
474
+
475
+ var _iterStep = function (done, value) {
476
+ return { value: value, done: !!done };
477
+ };
478
+
479
+ var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
480
+ this._t = _toIobject(iterated);
481
+ this._i = 0;
482
+ this._k = kind;
483
+ }, function () {
484
+ var O = this._t;
485
+ var kind = this._k;
486
+ var index = this._i++;
487
+ if (!O || index >= O.length) {
488
+ this._t = undefined;
489
+ return _iterStep(1);
490
+ }
491
+ if (kind == 'keys') return _iterStep(0, index);
492
+ if (kind == 'values') return _iterStep(0, O[index]);
493
+ return _iterStep(0, [index, O[index]]);
494
+ }, 'values');
495
+ _iterators.Arguments = _iterators.Array;
496
+
497
+ var TO_STRING_TAG = _wks('toStringTag');
498
+ var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
499
+ 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
500
+ 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
501
+ 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
502
+ 'TextTrackList,TouchList').split(',');
503
+ for (var i = 0; i < DOMIterables.length; i++) {
504
+ var NAME = DOMIterables[i];
505
+ var Collection = _global[NAME];
506
+ var proto = Collection && Collection.prototype;
507
+ if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
508
+ _iterators[NAME] = _iterators.Array;
509
+ }
510
+
511
+ var TAG$1 = _wks('toStringTag');
512
+ var ARG = _cof(function () { return arguments; }()) == 'Arguments';
513
+ var tryGet = function (it, key) {
514
+ try {
515
+ return it[key];
516
+ } catch (e) { }
517
+ };
518
+ var _classof = function (it) {
519
+ var O, T, B;
520
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
521
+ : typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T
522
+ : ARG ? _cof(O)
523
+ : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
524
+ };
525
+
526
+ var _anInstance = function (it, Constructor, name, forbiddenField) {
527
+ if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
528
+ throw TypeError(name + ': incorrect invocation!');
529
+ } return it;
530
+ };
531
+
532
+ var _iterCall = function (iterator, fn, value, entries) {
533
+ try {
534
+ return entries ? fn(_anObject(value)[0], value[1]) : fn(value);
535
+ } catch (e) {
536
+ var ret = iterator['return'];
537
+ if (ret !== undefined) _anObject(ret.call(iterator));
538
+ throw e;
539
+ }
540
+ };
541
+
542
+ var ITERATOR$1 = _wks('iterator');
543
+ var ArrayProto = Array.prototype;
544
+ var _isArrayIter = function (it) {
545
+ return it !== undefined && (_iterators.Array === it || ArrayProto[ITERATOR$1] === it);
546
+ };
547
+
548
+ var ITERATOR$2 = _wks('iterator');
549
+ var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
550
+ if (it != undefined) return it[ITERATOR$2]
551
+ || it['@@iterator']
552
+ || _iterators[_classof(it)];
553
+ };
554
+
555
+ var _forOf = createCommonjsModule(function (module) {
556
+ var BREAK = {};
557
+ var RETURN = {};
558
+ var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
559
+ var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
560
+ var f = _ctx(fn, that, entries ? 2 : 1);
561
+ var index = 0;
562
+ var length, step, iterator, result;
563
+ if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
564
+ if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
565
+ result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
566
+ if (result === BREAK || result === RETURN) return result;
567
+ } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
568
+ result = _iterCall(iterator, f, step.value, entries);
569
+ if (result === BREAK || result === RETURN) return result;
570
+ }
571
+ };
572
+ exports.BREAK = BREAK;
573
+ exports.RETURN = RETURN;
574
+ });
575
+
576
+ var SPECIES = _wks('species');
577
+ var _speciesConstructor = function (O, D) {
578
+ var C = _anObject(O).constructor;
579
+ var S;
580
+ return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
581
+ };
582
+
583
+ var _invoke = function (fn, args, that) {
584
+ var un = that === undefined;
585
+ switch (args.length) {
586
+ case 0: return un ? fn()
587
+ : fn.call(that);
588
+ case 1: return un ? fn(args[0])
589
+ : fn.call(that, args[0]);
590
+ case 2: return un ? fn(args[0], args[1])
591
+ : fn.call(that, args[0], args[1]);
592
+ case 3: return un ? fn(args[0], args[1], args[2])
593
+ : fn.call(that, args[0], args[1], args[2]);
594
+ case 4: return un ? fn(args[0], args[1], args[2], args[3])
595
+ : fn.call(that, args[0], args[1], args[2], args[3]);
596
+ } return fn.apply(that, args);
597
+ };
598
+
599
+ var process = _global.process;
600
+ var setTask = _global.setImmediate;
601
+ var clearTask = _global.clearImmediate;
602
+ var MessageChannel = _global.MessageChannel;
603
+ var Dispatch = _global.Dispatch;
604
+ var counter = 0;
605
+ var queue = {};
606
+ var ONREADYSTATECHANGE = 'onreadystatechange';
607
+ var defer, channel, port;
608
+ var run = function () {
609
+ var id = +this;
610
+ if (queue.hasOwnProperty(id)) {
611
+ var fn = queue[id];
612
+ delete queue[id];
613
+ fn();
614
+ }
615
+ };
616
+ var listener = function (event) {
617
+ run.call(event.data);
618
+ };
619
+ if (!setTask || !clearTask) {
620
+ setTask = function setImmediate(fn) {
621
+ var args = [];
622
+ var i = 1;
623
+ while (arguments.length > i) args.push(arguments[i++]);
624
+ queue[++counter] = function () {
625
+ _invoke(typeof fn == 'function' ? fn : Function(fn), args);
626
+ };
627
+ defer(counter);
628
+ return counter;
629
+ };
630
+ clearTask = function clearImmediate(id) {
631
+ delete queue[id];
632
+ };
633
+ if (_cof(process) == 'process') {
634
+ defer = function (id) {
635
+ process.nextTick(_ctx(run, id, 1));
636
+ };
637
+ } else if (Dispatch && Dispatch.now) {
638
+ defer = function (id) {
639
+ Dispatch.now(_ctx(run, id, 1));
640
+ };
641
+ } else if (MessageChannel) {
642
+ channel = new MessageChannel();
643
+ port = channel.port2;
644
+ channel.port1.onmessage = listener;
645
+ defer = _ctx(port.postMessage, port, 1);
646
+ } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) {
647
+ defer = function (id) {
648
+ _global.postMessage(id + '', '*');
649
+ };
650
+ _global.addEventListener('message', listener, false);
651
+ } else if (ONREADYSTATECHANGE in _domCreate('script')) {
652
+ defer = function (id) {
653
+ _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () {
654
+ _html.removeChild(this);
655
+ run.call(id);
656
+ };
657
+ };
658
+ } else {
659
+ defer = function (id) {
660
+ setTimeout(_ctx(run, id, 1), 0);
661
+ };
662
+ }
663
+ }
664
+ var _task = {
665
+ set: setTask,
666
+ clear: clearTask
667
+ };
668
+
669
+ var macrotask = _task.set;
670
+ var Observer = _global.MutationObserver || _global.WebKitMutationObserver;
671
+ var process$1 = _global.process;
672
+ var Promise$1 = _global.Promise;
673
+ var isNode = _cof(process$1) == 'process';
674
+ var _microtask = function () {
675
+ var head, last, notify;
676
+ var flush = function () {
677
+ var parent, fn;
678
+ if (isNode && (parent = process$1.domain)) parent.exit();
679
+ while (head) {
680
+ fn = head.fn;
681
+ head = head.next;
682
+ try {
683
+ fn();
684
+ } catch (e) {
685
+ if (head) notify();
686
+ else last = undefined;
687
+ throw e;
688
+ }
689
+ } last = undefined;
690
+ if (parent) parent.enter();
691
+ };
692
+ if (isNode) {
693
+ notify = function () {
694
+ process$1.nextTick(flush);
695
+ };
696
+ } else if (Observer && !(_global.navigator && _global.navigator.standalone)) {
697
+ var toggle = true;
698
+ var node = document.createTextNode('');
699
+ new Observer(flush).observe(node, { characterData: true });
700
+ notify = function () {
701
+ node.data = toggle = !toggle;
702
+ };
703
+ } else if (Promise$1 && Promise$1.resolve) {
704
+ var promise = Promise$1.resolve(undefined);
705
+ notify = function () {
706
+ promise.then(flush);
707
+ };
708
+ } else {
709
+ notify = function () {
710
+ macrotask.call(_global, flush);
711
+ };
883
712
  }
884
- return methods;
713
+ return function (fn) {
714
+ var task = { fn: fn, next: undefined };
715
+ if (last) last.next = task;
716
+ if (!head) {
717
+ head = task;
718
+ notify();
719
+ } last = task;
720
+ };
885
721
  };
886
722
 
887
- var $at = _stringAt(true);
888
- _iterDefine(String, 'String', function (iterated) {
889
- this._t = String(iterated);
890
- this._i = 0;
891
- }, function () {
892
- var O = this._t;
893
- var index = this._i;
894
- var point;
895
- if (index >= O.length) return { value: undefined, done: true };
896
- point = $at(O, index);
897
- this._i += point.length;
898
- return { value: point, done: false };
899
- });
900
-
901
- var _iterStep = function (done, value) {
902
- return { value: value, done: !!done };
723
+ function PromiseCapability(C) {
724
+ var resolve, reject;
725
+ this.promise = new C(function ($$resolve, $$reject) {
726
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
727
+ resolve = $$resolve;
728
+ reject = $$reject;
729
+ });
730
+ this.resolve = _aFunction(resolve);
731
+ this.reject = _aFunction(reject);
732
+ }
733
+ var f$2 = function (C) {
734
+ return new PromiseCapability(C);
735
+ };
736
+ var _newPromiseCapability = {
737
+ f: f$2
903
738
  };
904
739
 
905
- var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
906
- this._t = _toIobject(iterated);
907
- this._i = 0;
908
- this._k = kind;
909
- }, function () {
910
- var O = this._t;
911
- var kind = this._k;
912
- var index = this._i++;
913
- if (!O || index >= O.length) {
914
- this._t = undefined;
915
- return _iterStep(1);
740
+ var _perform = function (exec) {
741
+ try {
742
+ return { e: false, v: exec() };
743
+ } catch (e) {
744
+ return { e: true, v: e };
916
745
  }
917
- if (kind == 'keys') return _iterStep(0, index);
918
- if (kind == 'values') return _iterStep(0, O[index]);
919
- return _iterStep(0, [index, O[index]]);
920
- }, 'values');
921
- _iterators.Arguments = _iterators.Array;
746
+ };
922
747
 
923
- var TO_STRING_TAG = _wks('toStringTag');
924
- var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
925
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
926
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
927
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
928
- 'TextTrackList,TouchList').split(',');
929
- for (var i = 0; i < DOMIterables.length; i++) {
930
- var NAME = DOMIterables[i];
931
- var Collection = _global[NAME];
932
- var proto = Collection && Collection.prototype;
933
- if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
934
- _iterators[NAME] = _iterators.Array;
935
- }
748
+ var navigator$1 = _global.navigator;
749
+ var _userAgent = navigator$1 && navigator$1.userAgent || '';
936
750
 
937
- var TAG$1 = _wks('toStringTag');
938
- var ARG = _cof(function () { return arguments; }()) == 'Arguments';
939
- var tryGet = function (it, key) {
751
+ var _promiseResolve = function (C, x) {
752
+ _anObject(C);
753
+ if (_isObject(x) && x.constructor === C) return x;
754
+ var promiseCapability = _newPromiseCapability.f(C);
755
+ var resolve = promiseCapability.resolve;
756
+ resolve(x);
757
+ return promiseCapability.promise;
758
+ };
759
+
760
+ var _redefineAll = function (target, src, safe) {
761
+ for (var key in src) {
762
+ if (safe && target[key]) target[key] = src[key];
763
+ else _hide(target, key, src[key]);
764
+ } return target;
765
+ };
766
+
767
+ var SPECIES$1 = _wks('species');
768
+ var _setSpecies = function (KEY) {
769
+ var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
770
+ if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, {
771
+ configurable: true,
772
+ get: function () { return this; }
773
+ });
774
+ };
775
+
776
+ var ITERATOR$3 = _wks('iterator');
777
+ var SAFE_CLOSING = false;
778
+ try {
779
+ var riter = [7][ITERATOR$3]();
780
+ riter['return'] = function () { SAFE_CLOSING = true; };
781
+ Array.from(riter, function () { throw 2; });
782
+ } catch (e) { }
783
+ var _iterDetect = function (exec, skipClosing) {
784
+ if (!skipClosing && !SAFE_CLOSING) return false;
785
+ var safe = false;
940
786
  try {
941
- return it[key];
787
+ var arr = [7];
788
+ var iter = arr[ITERATOR$3]();
789
+ iter.next = function () { return { done: safe = true }; };
790
+ arr[ITERATOR$3] = function () { return iter; };
791
+ exec(arr);
942
792
  } catch (e) { }
943
- };
944
- var _classof = function (it) {
945
- var O, T, B;
946
- return it === undefined ? 'Undefined' : it === null ? 'Null'
947
- : typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T
948
- : ARG ? _cof(O)
949
- : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
793
+ return safe;
950
794
  };
951
795
 
952
- var _anInstance = function (it, Constructor, name, forbiddenField) {
953
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
954
- throw TypeError(name + ': incorrect invocation!');
955
- } return it;
796
+ var task = _task.set;
797
+ var microtask = _microtask();
798
+ var PROMISE = 'Promise';
799
+ var TypeError$1 = _global.TypeError;
800
+ var process$2 = _global.process;
801
+ var versions = process$2 && process$2.versions;
802
+ var v8 = versions && versions.v8 || '';
803
+ var $Promise = _global[PROMISE];
804
+ var isNode$1 = _classof(process$2) == 'process';
805
+ var empty = function () { };
806
+ var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
807
+ var newPromiseCapability = newGenericPromiseCapability = _newPromiseCapability.f;
808
+ var USE_NATIVE = !!function () {
809
+ try {
810
+ var promise = $Promise.resolve(1);
811
+ var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) {
812
+ exec(empty, empty);
813
+ };
814
+ return (isNode$1 || typeof PromiseRejectionEvent == 'function')
815
+ && promise.then(empty) instanceof FakePromise
816
+ && v8.indexOf('6.6') !== 0
817
+ && _userAgent.indexOf('Chrome/66') === -1;
818
+ } catch (e) { }
819
+ }();
820
+ var isThenable = function (it) {
821
+ var then;
822
+ return _isObject(it) && typeof (then = it.then) == 'function' ? then : false;
823
+ };
824
+ var notify = function (promise, isReject) {
825
+ if (promise._n) return;
826
+ promise._n = true;
827
+ var chain = promise._c;
828
+ microtask(function () {
829
+ var value = promise._v;
830
+ var ok = promise._s == 1;
831
+ var i = 0;
832
+ var run = function (reaction) {
833
+ var handler = ok ? reaction.ok : reaction.fail;
834
+ var resolve = reaction.resolve;
835
+ var reject = reaction.reject;
836
+ var domain = reaction.domain;
837
+ var result, then, exited;
838
+ try {
839
+ if (handler) {
840
+ if (!ok) {
841
+ if (promise._h == 2) onHandleUnhandled(promise);
842
+ promise._h = 1;
843
+ }
844
+ if (handler === true) result = value;
845
+ else {
846
+ if (domain) domain.enter();
847
+ result = handler(value);
848
+ if (domain) {
849
+ domain.exit();
850
+ exited = true;
851
+ }
852
+ }
853
+ if (result === reaction.promise) {
854
+ reject(TypeError$1('Promise-chain cycle'));
855
+ } else if (then = isThenable(result)) {
856
+ then.call(result, resolve, reject);
857
+ } else resolve(result);
858
+ } else reject(value);
859
+ } catch (e) {
860
+ if (domain && !exited) domain.exit();
861
+ reject(e);
862
+ }
863
+ };
864
+ while (chain.length > i) run(chain[i++]);
865
+ promise._c = [];
866
+ promise._n = false;
867
+ if (isReject && !promise._h) onUnhandled(promise);
868
+ });
869
+ };
870
+ var onUnhandled = function (promise) {
871
+ task.call(_global, function () {
872
+ var value = promise._v;
873
+ var unhandled = isUnhandled(promise);
874
+ var result, handler, console;
875
+ if (unhandled) {
876
+ result = _perform(function () {
877
+ if (isNode$1) {
878
+ process$2.emit('unhandledRejection', value, promise);
879
+ } else if (handler = _global.onunhandledrejection) {
880
+ handler({ promise: promise, reason: value });
881
+ } else if ((console = _global.console) && console.error) {
882
+ console.error('Unhandled promise rejection', value);
883
+ }
884
+ });
885
+ promise._h = isNode$1 || isUnhandled(promise) ? 2 : 1;
886
+ } promise._a = undefined;
887
+ if (unhandled && result.e) throw result.v;
888
+ });
889
+ };
890
+ var isUnhandled = function (promise) {
891
+ return promise._h !== 1 && (promise._a || promise._c).length === 0;
892
+ };
893
+ var onHandleUnhandled = function (promise) {
894
+ task.call(_global, function () {
895
+ var handler;
896
+ if (isNode$1) {
897
+ process$2.emit('rejectionHandled', promise);
898
+ } else if (handler = _global.onrejectionhandled) {
899
+ handler({ promise: promise, reason: promise._v });
900
+ }
901
+ });
956
902
  };
957
-
958
- var _iterCall = function (iterator, fn, value, entries) {
903
+ var $reject = function (value) {
904
+ var promise = this;
905
+ if (promise._d) return;
906
+ promise._d = true;
907
+ promise = promise._w || promise;
908
+ promise._v = value;
909
+ promise._s = 2;
910
+ if (!promise._a) promise._a = promise._c.slice();
911
+ notify(promise, true);
912
+ };
913
+ var $resolve = function (value) {
914
+ var promise = this;
915
+ var then;
916
+ if (promise._d) return;
917
+ promise._d = true;
918
+ promise = promise._w || promise;
959
919
  try {
960
- return entries ? fn(_anObject(value)[0], value[1]) : fn(value);
920
+ if (promise === value) throw TypeError$1("Promise can't be resolved itself");
921
+ if (then = isThenable(value)) {
922
+ microtask(function () {
923
+ var wrapper = { _w: promise, _d: false };
924
+ try {
925
+ then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1));
926
+ } catch (e) {
927
+ $reject.call(wrapper, e);
928
+ }
929
+ });
930
+ } else {
931
+ promise._v = value;
932
+ promise._s = 1;
933
+ notify(promise, false);
934
+ }
961
935
  } catch (e) {
962
- var ret = iterator['return'];
963
- if (ret !== undefined) _anObject(ret.call(iterator));
964
- throw e;
936
+ $reject.call({ _w: promise, _d: false }, e);
965
937
  }
966
938
  };
939
+ if (!USE_NATIVE) {
940
+ $Promise = function Promise(executor) {
941
+ _anInstance(this, $Promise, PROMISE, '_h');
942
+ _aFunction(executor);
943
+ Internal.call(this);
944
+ try {
945
+ executor(_ctx($resolve, this, 1), _ctx($reject, this, 1));
946
+ } catch (err) {
947
+ $reject.call(this, err);
948
+ }
949
+ };
950
+ Internal = function Promise(executor) {
951
+ this._c = [];
952
+ this._a = undefined;
953
+ this._s = 0;
954
+ this._d = false;
955
+ this._v = undefined;
956
+ this._h = 0;
957
+ this._n = false;
958
+ };
959
+ Internal.prototype = _redefineAll($Promise.prototype, {
960
+ then: function then(onFulfilled, onRejected) {
961
+ var reaction = newPromiseCapability(_speciesConstructor(this, $Promise));
962
+ reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
963
+ reaction.fail = typeof onRejected == 'function' && onRejected;
964
+ reaction.domain = isNode$1 ? process$2.domain : undefined;
965
+ this._c.push(reaction);
966
+ if (this._a) this._a.push(reaction);
967
+ if (this._s) notify(this, false);
968
+ return reaction.promise;
969
+ },
970
+ 'catch': function (onRejected) {
971
+ return this.then(undefined, onRejected);
972
+ }
973
+ });
974
+ OwnPromiseCapability = function () {
975
+ var promise = new Internal();
976
+ this.promise = promise;
977
+ this.resolve = _ctx($resolve, promise, 1);
978
+ this.reject = _ctx($reject, promise, 1);
979
+ };
980
+ _newPromiseCapability.f = newPromiseCapability = function (C) {
981
+ return C === $Promise || C === Wrapper
982
+ ? new OwnPromiseCapability(C)
983
+ : newGenericPromiseCapability(C);
984
+ };
985
+ }
986
+ _export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise });
987
+ _setToStringTag($Promise, PROMISE);
988
+ _setSpecies(PROMISE);
989
+ Wrapper = _core[PROMISE];
990
+ _export(_export.S + _export.F * !USE_NATIVE, PROMISE, {
991
+ reject: function reject(r) {
992
+ var capability = newPromiseCapability(this);
993
+ var $$reject = capability.reject;
994
+ $$reject(r);
995
+ return capability.promise;
996
+ }
997
+ });
998
+ _export(_export.S + _export.F * (_library ), PROMISE, {
999
+ resolve: function resolve(x) {
1000
+ return _promiseResolve( this === Wrapper ? $Promise : this, x);
1001
+ }
1002
+ });
1003
+ _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) {
1004
+ $Promise.all(iter)['catch'](empty);
1005
+ })), PROMISE, {
1006
+ all: function all(iterable) {
1007
+ var C = this;
1008
+ var capability = newPromiseCapability(C);
1009
+ var resolve = capability.resolve;
1010
+ var reject = capability.reject;
1011
+ var result = _perform(function () {
1012
+ var values = [];
1013
+ var index = 0;
1014
+ var remaining = 1;
1015
+ _forOf(iterable, false, function (promise) {
1016
+ var $index = index++;
1017
+ var alreadyCalled = false;
1018
+ values.push(undefined);
1019
+ remaining++;
1020
+ C.resolve(promise).then(function (value) {
1021
+ if (alreadyCalled) return;
1022
+ alreadyCalled = true;
1023
+ values[$index] = value;
1024
+ --remaining || resolve(values);
1025
+ }, reject);
1026
+ });
1027
+ --remaining || resolve(values);
1028
+ });
1029
+ if (result.e) reject(result.v);
1030
+ return capability.promise;
1031
+ },
1032
+ race: function race(iterable) {
1033
+ var C = this;
1034
+ var capability = newPromiseCapability(C);
1035
+ var reject = capability.reject;
1036
+ var result = _perform(function () {
1037
+ _forOf(iterable, false, function (promise) {
1038
+ C.resolve(promise).then(capability.resolve, reject);
1039
+ });
1040
+ });
1041
+ if (result.e) reject(result.v);
1042
+ return capability.promise;
1043
+ }
1044
+ });
967
1045
 
968
- var ITERATOR$1 = _wks('iterator');
969
- var ArrayProto = Array.prototype;
970
- var _isArrayIter = function (it) {
971
- return it !== undefined && (_iterators.Array === it || ArrayProto[ITERATOR$1] === it);
972
- };
1046
+ _export(_export.P + _export.R, 'Promise', { 'finally': function (onFinally) {
1047
+ var C = _speciesConstructor(this, _core.Promise || _global.Promise);
1048
+ var isFunction = typeof onFinally == 'function';
1049
+ return this.then(
1050
+ isFunction ? function (x) {
1051
+ return _promiseResolve(C, onFinally()).then(function () { return x; });
1052
+ } : onFinally,
1053
+ isFunction ? function (e) {
1054
+ return _promiseResolve(C, onFinally()).then(function () { throw e; });
1055
+ } : onFinally
1056
+ );
1057
+ } });
973
1058
 
974
- var ITERATOR$2 = _wks('iterator');
975
- var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
976
- if (it != undefined) return it[ITERATOR$2]
977
- || it['@@iterator']
978
- || _iterators[_classof(it)];
979
- };
1059
+ _export(_export.S, 'Promise', { 'try': function (callbackfn) {
1060
+ var promiseCapability = _newPromiseCapability.f(this);
1061
+ var result = _perform(callbackfn);
1062
+ (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
1063
+ return promiseCapability.promise;
1064
+ } });
980
1065
 
981
- var _forOf = createCommonjsModule(function (module) {
982
- var BREAK = {};
983
- var RETURN = {};
984
- var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
985
- var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
986
- var f = _ctx(fn, that, entries ? 2 : 1);
987
- var index = 0;
988
- var length, step, iterator, result;
989
- if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
990
- if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
991
- result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
992
- if (result === BREAK || result === RETURN) return result;
993
- } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
994
- result = _iterCall(iterator, f, step.value, entries);
995
- if (result === BREAK || result === RETURN) return result;
996
- }
997
- };
998
- exports.BREAK = BREAK;
999
- exports.RETURN = RETURN;
1000
- });
1066
+ var promise = _core.Promise;
1001
1067
 
1002
- var SPECIES = _wks('species');
1003
- var _speciesConstructor = function (O, D) {
1004
- var C = _anObject(O).constructor;
1005
- var S;
1006
- return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
1007
- };
1068
+ var promise$1 = promise;
1008
1069
 
1009
- var _invoke = function (fn, args, that) {
1010
- var un = that === undefined;
1011
- switch (args.length) {
1012
- case 0: return un ? fn()
1013
- : fn.call(that);
1014
- case 1: return un ? fn(args[0])
1015
- : fn.call(that, args[0]);
1016
- case 2: return un ? fn(args[0], args[1])
1017
- : fn.call(that, args[0], args[1]);
1018
- case 3: return un ? fn(args[0], args[1], args[2])
1019
- : fn.call(that, args[0], args[1], args[2]);
1020
- case 4: return un ? fn(args[0], args[1], args[2], args[3])
1021
- : fn.call(that, args[0], args[1], args[2], args[3]);
1022
- } return fn.apply(that, args);
1070
+ var _createProperty = function (object, index, value) {
1071
+ if (index in object) _objectDp.f(object, index, _propertyDesc(0, value));
1072
+ else object[index] = value;
1023
1073
  };
1024
1074
 
1025
- var process = _global.process;
1026
- var setTask = _global.setImmediate;
1027
- var clearTask = _global.clearImmediate;
1028
- var MessageChannel = _global.MessageChannel;
1029
- var Dispatch = _global.Dispatch;
1030
- var counter = 0;
1031
- var queue = {};
1032
- var ONREADYSTATECHANGE = 'onreadystatechange';
1033
- var defer, channel, port;
1034
- var run = function () {
1035
- var id = +this;
1036
- if (queue.hasOwnProperty(id)) {
1037
- var fn = queue[id];
1038
- delete queue[id];
1039
- fn();
1075
+ _export(_export.S + _export.F * !_iterDetect(function (iter) { Array.from(iter); }), 'Array', {
1076
+ from: function from(arrayLike ) {
1077
+ var O = _toObject(arrayLike);
1078
+ var C = typeof this == 'function' ? this : Array;
1079
+ var aLen = arguments.length;
1080
+ var mapfn = aLen > 1 ? arguments[1] : undefined;
1081
+ var mapping = mapfn !== undefined;
1082
+ var index = 0;
1083
+ var iterFn = core_getIteratorMethod(O);
1084
+ var length, result, step, iterator;
1085
+ if (mapping) mapfn = _ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
1086
+ if (iterFn != undefined && !(C == Array && _isArrayIter(iterFn))) {
1087
+ for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
1088
+ _createProperty(result, index, mapping ? _iterCall(iterator, mapfn, [step.value, index], true) : step.value);
1089
+ }
1090
+ } else {
1091
+ length = _toLength(O.length);
1092
+ for (result = new C(length); length > index; index++) {
1093
+ _createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
1094
+ }
1095
+ }
1096
+ result.length = index;
1097
+ return result;
1040
1098
  }
1041
- };
1042
- var listener = function (event) {
1043
- run.call(event.data);
1044
- };
1045
- if (!setTask || !clearTask) {
1046
- setTask = function setImmediate(fn) {
1047
- var args = [];
1048
- var i = 1;
1049
- while (arguments.length > i) args.push(arguments[i++]);
1050
- queue[++counter] = function () {
1051
- _invoke(typeof fn == 'function' ? fn : Function(fn), args);
1052
- };
1053
- defer(counter);
1054
- return counter;
1055
- };
1056
- clearTask = function clearImmediate(id) {
1057
- delete queue[id];
1099
+ });
1100
+
1101
+ var from_1 = _core.Array.from;
1102
+
1103
+ var from_1$1 = from_1;
1104
+
1105
+ function _regeneratorRuntime() {
1106
+ _regeneratorRuntime = function () {
1107
+ return exports;
1058
1108
  };
1059
- if (_cof(process) == 'process') {
1060
- defer = function (id) {
1061
- process.nextTick(_ctx(run, id, 1));
1062
- };
1063
- } else if (Dispatch && Dispatch.now) {
1064
- defer = function (id) {
1065
- Dispatch.now(_ctx(run, id, 1));
1066
- };
1067
- } else if (MessageChannel) {
1068
- channel = new MessageChannel();
1069
- port = channel.port2;
1070
- channel.port1.onmessage = listener;
1071
- defer = _ctx(port.postMessage, port, 1);
1072
- } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) {
1073
- defer = function (id) {
1074
- _global.postMessage(id + '', '*');
1109
+ var exports = {},
1110
+ Op = Object.prototype,
1111
+ hasOwn = Op.hasOwnProperty,
1112
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
1113
+ obj[key] = desc.value;
1114
+ },
1115
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
1116
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
1117
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
1118
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1119
+ function define(obj, key, value) {
1120
+ return Object.defineProperty(obj, key, {
1121
+ value: value,
1122
+ enumerable: !0,
1123
+ configurable: !0,
1124
+ writable: !0
1125
+ }), obj[key];
1126
+ }
1127
+ try {
1128
+ define({}, "");
1129
+ } catch (err) {
1130
+ define = function (obj, key, value) {
1131
+ return obj[key] = value;
1075
1132
  };
1076
- _global.addEventListener('message', listener, false);
1077
- } else if (ONREADYSTATECHANGE in _domCreate('script')) {
1078
- defer = function (id) {
1079
- _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () {
1080
- _html.removeChild(this);
1081
- run.call(id);
1133
+ }
1134
+ function wrap(innerFn, outerFn, self, tryLocsList) {
1135
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
1136
+ generator = Object.create(protoGenerator.prototype),
1137
+ context = new Context(tryLocsList || []);
1138
+ return defineProperty(generator, "_invoke", {
1139
+ value: makeInvokeMethod(innerFn, self, context)
1140
+ }), generator;
1141
+ }
1142
+ function tryCatch(fn, obj, arg) {
1143
+ try {
1144
+ return {
1145
+ type: "normal",
1146
+ arg: fn.call(obj, arg)
1082
1147
  };
1083
- };
1084
- } else {
1085
- defer = function (id) {
1086
- setTimeout(_ctx(run, id, 1), 0);
1087
- };
1148
+ } catch (err) {
1149
+ return {
1150
+ type: "throw",
1151
+ arg: err
1152
+ };
1153
+ }
1088
1154
  }
1089
- }
1090
- var _task = {
1091
- set: setTask,
1092
- clear: clearTask
1093
- };
1094
-
1095
- var macrotask = _task.set;
1096
- var Observer = _global.MutationObserver || _global.WebKitMutationObserver;
1097
- var process$1 = _global.process;
1098
- var Promise$1 = _global.Promise;
1099
- var isNode = _cof(process$1) == 'process';
1100
- var _microtask = function () {
1101
- var head, last, notify;
1102
- var flush = function () {
1103
- var parent, fn;
1104
- if (isNode && (parent = process$1.domain)) parent.exit();
1105
- while (head) {
1106
- fn = head.fn;
1107
- head = head.next;
1108
- try {
1109
- fn();
1110
- } catch (e) {
1111
- if (head) notify();
1112
- else last = undefined;
1113
- throw e;
1155
+ exports.wrap = wrap;
1156
+ var ContinueSentinel = {};
1157
+ function Generator() {}
1158
+ function GeneratorFunction() {}
1159
+ function GeneratorFunctionPrototype() {}
1160
+ var IteratorPrototype = {};
1161
+ define(IteratorPrototype, iteratorSymbol, function () {
1162
+ return this;
1163
+ });
1164
+ var getProto = Object.getPrototypeOf,
1165
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1166
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
1167
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
1168
+ function defineIteratorMethods(prototype) {
1169
+ ["next", "throw", "return"].forEach(function (method) {
1170
+ define(prototype, method, function (arg) {
1171
+ return this._invoke(method, arg);
1172
+ });
1173
+ });
1174
+ }
1175
+ function AsyncIterator(generator, PromiseImpl) {
1176
+ function invoke(method, arg, resolve, reject) {
1177
+ var record = tryCatch(generator[method], generator, arg);
1178
+ if ("throw" !== record.type) {
1179
+ var result = record.arg,
1180
+ value = result.value;
1181
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
1182
+ invoke("next", value, resolve, reject);
1183
+ }, function (err) {
1184
+ invoke("throw", err, resolve, reject);
1185
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
1186
+ result.value = unwrapped, resolve(result);
1187
+ }, function (error) {
1188
+ return invoke("throw", error, resolve, reject);
1189
+ });
1190
+ }
1191
+ reject(record.arg);
1192
+ }
1193
+ var previousPromise;
1194
+ defineProperty(this, "_invoke", {
1195
+ value: function (method, arg) {
1196
+ function callInvokeWithMethodAndArg() {
1197
+ return new PromiseImpl(function (resolve, reject) {
1198
+ invoke(method, arg, resolve, reject);
1199
+ });
1200
+ }
1201
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
1202
+ }
1203
+ });
1204
+ }
1205
+ function makeInvokeMethod(innerFn, self, context) {
1206
+ var state = "suspendedStart";
1207
+ return function (method, arg) {
1208
+ if ("executing" === state) throw new Error("Generator is already running");
1209
+ if ("completed" === state) {
1210
+ if ("throw" === method) throw arg;
1211
+ return doneResult();
1212
+ }
1213
+ for (context.method = method, context.arg = arg;;) {
1214
+ var delegate = context.delegate;
1215
+ if (delegate) {
1216
+ var delegateResult = maybeInvokeDelegate(delegate, context);
1217
+ if (delegateResult) {
1218
+ if (delegateResult === ContinueSentinel) continue;
1219
+ return delegateResult;
1220
+ }
1221
+ }
1222
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
1223
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
1224
+ context.dispatchException(context.arg);
1225
+ } else "return" === context.method && context.abrupt("return", context.arg);
1226
+ state = "executing";
1227
+ var record = tryCatch(innerFn, self, context);
1228
+ if ("normal" === record.type) {
1229
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
1230
+ return {
1231
+ value: record.arg,
1232
+ done: context.done
1233
+ };
1234
+ }
1235
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
1114
1236
  }
1115
- } last = undefined;
1116
- if (parent) parent.enter();
1117
- };
1118
- if (isNode) {
1119
- notify = function () {
1120
- process$1.nextTick(flush);
1121
- };
1122
- } else if (Observer && !(_global.navigator && _global.navigator.standalone)) {
1123
- var toggle = true;
1124
- var node = document.createTextNode('');
1125
- new Observer(flush).observe(node, { characterData: true });
1126
- notify = function () {
1127
- node.data = toggle = !toggle;
1128
1237
  };
1129
- } else if (Promise$1 && Promise$1.resolve) {
1130
- var promise = Promise$1.resolve(undefined);
1131
- notify = function () {
1132
- promise.then(flush);
1238
+ }
1239
+ function maybeInvokeDelegate(delegate, context) {
1240
+ var method = delegate.iterator[context.method];
1241
+ if (undefined === method) {
1242
+ if (context.delegate = null, "throw" === context.method) {
1243
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
1244
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
1245
+ }
1246
+ return ContinueSentinel;
1247
+ }
1248
+ var record = tryCatch(method, delegate.iterator, context.arg);
1249
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
1250
+ var info = record.arg;
1251
+ 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);
1252
+ }
1253
+ function pushTryEntry(locs) {
1254
+ var entry = {
1255
+ tryLoc: locs[0]
1133
1256
  };
1134
- } else {
1135
- notify = function () {
1136
- macrotask.call(_global, flush);
1257
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
1258
+ }
1259
+ function resetTryEntry(entry) {
1260
+ var record = entry.completion || {};
1261
+ record.type = "normal", delete record.arg, entry.completion = record;
1262
+ }
1263
+ function Context(tryLocsList) {
1264
+ this.tryEntries = [{
1265
+ tryLoc: "root"
1266
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
1267
+ }
1268
+ function values(iterable) {
1269
+ if (iterable) {
1270
+ var iteratorMethod = iterable[iteratorSymbol];
1271
+ if (iteratorMethod) return iteratorMethod.call(iterable);
1272
+ if ("function" == typeof iterable.next) return iterable;
1273
+ if (!isNaN(iterable.length)) {
1274
+ var i = -1,
1275
+ next = function next() {
1276
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
1277
+ return next.value = undefined, next.done = !0, next;
1278
+ };
1279
+ return next.next = next;
1280
+ }
1281
+ }
1282
+ return {
1283
+ next: doneResult
1137
1284
  };
1138
1285
  }
1139
- return function (fn) {
1140
- var task = { fn: fn, next: undefined };
1141
- if (last) last.next = task;
1142
- if (!head) {
1143
- head = task;
1144
- notify();
1145
- } last = task;
1146
- };
1147
- };
1148
-
1149
- function PromiseCapability(C) {
1150
- var resolve, reject;
1151
- this.promise = new C(function ($$resolve, $$reject) {
1152
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
1153
- resolve = $$resolve;
1154
- reject = $$reject;
1155
- });
1156
- this.resolve = _aFunction(resolve);
1157
- this.reject = _aFunction(reject);
1158
- }
1159
- var f$2 = function (C) {
1160
- return new PromiseCapability(C);
1161
- };
1162
- var _newPromiseCapability = {
1163
- f: f$2
1164
- };
1165
-
1166
- var _perform = function (exec) {
1167
- try {
1168
- return { e: false, v: exec() };
1169
- } catch (e) {
1170
- return { e: true, v: e };
1286
+ function doneResult() {
1287
+ return {
1288
+ value: undefined,
1289
+ done: !0
1290
+ };
1171
1291
  }
1172
- };
1173
-
1174
- var navigator$1 = _global.navigator;
1175
- var _userAgent = navigator$1 && navigator$1.userAgent || '';
1176
-
1177
- var _promiseResolve = function (C, x) {
1178
- _anObject(C);
1179
- if (_isObject(x) && x.constructor === C) return x;
1180
- var promiseCapability = _newPromiseCapability.f(C);
1181
- var resolve = promiseCapability.resolve;
1182
- resolve(x);
1183
- return promiseCapability.promise;
1184
- };
1185
-
1186
- var _redefineAll = function (target, src, safe) {
1187
- for (var key in src) {
1188
- if (safe && target[key]) target[key] = src[key];
1189
- else _hide(target, key, src[key]);
1190
- } return target;
1191
- };
1192
-
1193
- var SPECIES$1 = _wks('species');
1194
- var _setSpecies = function (KEY) {
1195
- var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
1196
- if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, {
1197
- configurable: true,
1198
- get: function () { return this; }
1199
- });
1200
- };
1201
-
1202
- var ITERATOR$3 = _wks('iterator');
1203
- var SAFE_CLOSING = false;
1204
- try {
1205
- var riter = [7][ITERATOR$3]();
1206
- riter['return'] = function () { SAFE_CLOSING = true; };
1207
- Array.from(riter, function () { throw 2; });
1208
- } catch (e) { }
1209
- var _iterDetect = function (exec, skipClosing) {
1210
- if (!skipClosing && !SAFE_CLOSING) return false;
1211
- var safe = false;
1212
- try {
1213
- var arr = [7];
1214
- var iter = arr[ITERATOR$3]();
1215
- iter.next = function () { return { done: safe = true }; };
1216
- arr[ITERATOR$3] = function () { return iter; };
1217
- exec(arr);
1218
- } catch (e) { }
1219
- return safe;
1220
- };
1221
-
1222
- var task = _task.set;
1223
- var microtask = _microtask();
1224
- var PROMISE = 'Promise';
1225
- var TypeError$1 = _global.TypeError;
1226
- var process$2 = _global.process;
1227
- var versions = process$2 && process$2.versions;
1228
- var v8 = versions && versions.v8 || '';
1229
- var $Promise = _global[PROMISE];
1230
- var isNode$1 = _classof(process$2) == 'process';
1231
- var empty = function () { };
1232
- var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
1233
- var newPromiseCapability = newGenericPromiseCapability = _newPromiseCapability.f;
1234
- var USE_NATIVE = !!function () {
1235
- try {
1236
- var promise = $Promise.resolve(1);
1237
- var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) {
1238
- exec(empty, empty);
1292
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
1293
+ value: GeneratorFunctionPrototype,
1294
+ configurable: !0
1295
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
1296
+ value: GeneratorFunction,
1297
+ configurable: !0
1298
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
1299
+ var ctor = "function" == typeof genFun && genFun.constructor;
1300
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
1301
+ }, exports.mark = function (genFun) {
1302
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
1303
+ }, exports.awrap = function (arg) {
1304
+ return {
1305
+ __await: arg
1239
1306
  };
1240
- return (isNode$1 || typeof PromiseRejectionEvent == 'function')
1241
- && promise.then(empty) instanceof FakePromise
1242
- && v8.indexOf('6.6') !== 0
1243
- && _userAgent.indexOf('Chrome/66') === -1;
1244
- } catch (e) { }
1245
- }();
1246
- var isThenable = function (it) {
1247
- var then;
1248
- return _isObject(it) && typeof (then = it.then) == 'function' ? then : false;
1249
- };
1250
- var notify = function (promise, isReject) {
1251
- if (promise._n) return;
1252
- promise._n = true;
1253
- var chain = promise._c;
1254
- microtask(function () {
1255
- var value = promise._v;
1256
- var ok = promise._s == 1;
1257
- var i = 0;
1258
- var run = function (reaction) {
1259
- var handler = ok ? reaction.ok : reaction.fail;
1260
- var resolve = reaction.resolve;
1261
- var reject = reaction.reject;
1262
- var domain = reaction.domain;
1263
- var result, then, exited;
1264
- try {
1265
- if (handler) {
1266
- if (!ok) {
1267
- if (promise._h == 2) onHandleUnhandled(promise);
1268
- promise._h = 1;
1269
- }
1270
- if (handler === true) result = value;
1271
- else {
1272
- if (domain) domain.enter();
1273
- result = handler(value);
1274
- if (domain) {
1275
- domain.exit();
1276
- exited = true;
1277
- }
1278
- }
1279
- if (result === reaction.promise) {
1280
- reject(TypeError$1('Promise-chain cycle'));
1281
- } else if (then = isThenable(result)) {
1282
- then.call(result, resolve, reject);
1283
- } else resolve(result);
1284
- } else reject(value);
1285
- } catch (e) {
1286
- if (domain && !exited) domain.exit();
1287
- reject(e);
1307
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1308
+ return this;
1309
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1310
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
1311
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
1312
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
1313
+ return result.done ? result.value : iter.next();
1314
+ });
1315
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
1316
+ return this;
1317
+ }), define(Gp, "toString", function () {
1318
+ return "[object Generator]";
1319
+ }), exports.keys = function (val) {
1320
+ var object = Object(val),
1321
+ keys = [];
1322
+ for (var key in object) keys.push(key);
1323
+ return keys.reverse(), function next() {
1324
+ for (; keys.length;) {
1325
+ var key = keys.pop();
1326
+ if (key in object) return next.value = key, next.done = !1, next;
1288
1327
  }
1328
+ return next.done = !0, next;
1289
1329
  };
1290
- while (chain.length > i) run(chain[i++]);
1291
- promise._c = [];
1292
- promise._n = false;
1293
- if (isReject && !promise._h) onUnhandled(promise);
1294
- });
1295
- };
1296
- var onUnhandled = function (promise) {
1297
- task.call(_global, function () {
1298
- var value = promise._v;
1299
- var unhandled = isUnhandled(promise);
1300
- var result, handler, console;
1301
- if (unhandled) {
1302
- result = _perform(function () {
1303
- if (isNode$1) {
1304
- process$2.emit('unhandledRejection', value, promise);
1305
- } else if (handler = _global.onunhandledrejection) {
1306
- handler({ promise: promise, reason: value });
1307
- } else if ((console = _global.console) && console.error) {
1308
- console.error('Unhandled promise rejection', value);
1330
+ }, exports.values = values, Context.prototype = {
1331
+ constructor: Context,
1332
+ reset: function (skipTempReset) {
1333
+ 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);
1334
+ },
1335
+ stop: function () {
1336
+ this.done = !0;
1337
+ var rootRecord = this.tryEntries[0].completion;
1338
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
1339
+ return this.rval;
1340
+ },
1341
+ dispatchException: function (exception) {
1342
+ if (this.done) throw exception;
1343
+ var context = this;
1344
+ function handle(loc, caught) {
1345
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
1346
+ }
1347
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1348
+ var entry = this.tryEntries[i],
1349
+ record = entry.completion;
1350
+ if ("root" === entry.tryLoc) return handle("end");
1351
+ if (entry.tryLoc <= this.prev) {
1352
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
1353
+ hasFinally = hasOwn.call(entry, "finallyLoc");
1354
+ if (hasCatch && hasFinally) {
1355
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1356
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1357
+ } else if (hasCatch) {
1358
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1359
+ } else {
1360
+ if (!hasFinally) throw new Error("try statement without catch or finally");
1361
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1362
+ }
1363
+ }
1364
+ }
1365
+ },
1366
+ abrupt: function (type, arg) {
1367
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1368
+ var entry = this.tryEntries[i];
1369
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
1370
+ var finallyEntry = entry;
1371
+ break;
1309
1372
  }
1310
- });
1311
- promise._h = isNode$1 || isUnhandled(promise) ? 2 : 1;
1312
- } promise._a = undefined;
1313
- if (unhandled && result.e) throw result.v;
1314
- });
1315
- };
1316
- var isUnhandled = function (promise) {
1317
- return promise._h !== 1 && (promise._a || promise._c).length === 0;
1318
- };
1319
- var onHandleUnhandled = function (promise) {
1320
- task.call(_global, function () {
1321
- var handler;
1322
- if (isNode$1) {
1323
- process$2.emit('rejectionHandled', promise);
1324
- } else if (handler = _global.onrejectionhandled) {
1325
- handler({ promise: promise, reason: promise._v });
1326
- }
1327
- });
1328
- };
1329
- var $reject = function (value) {
1330
- var promise = this;
1331
- if (promise._d) return;
1332
- promise._d = true;
1333
- promise = promise._w || promise;
1334
- promise._v = value;
1335
- promise._s = 2;
1336
- if (!promise._a) promise._a = promise._c.slice();
1337
- notify(promise, true);
1338
- };
1339
- var $resolve = function (value) {
1340
- var promise = this;
1341
- var then;
1342
- if (promise._d) return;
1343
- promise._d = true;
1344
- promise = promise._w || promise;
1345
- try {
1346
- if (promise === value) throw TypeError$1("Promise can't be resolved itself");
1347
- if (then = isThenable(value)) {
1348
- microtask(function () {
1349
- var wrapper = { _w: promise, _d: false };
1350
- try {
1351
- then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1));
1352
- } catch (e) {
1353
- $reject.call(wrapper, e);
1373
+ }
1374
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
1375
+ var record = finallyEntry ? finallyEntry.completion : {};
1376
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
1377
+ },
1378
+ complete: function (record, afterLoc) {
1379
+ if ("throw" === record.type) throw record.arg;
1380
+ 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;
1381
+ },
1382
+ finish: function (finallyLoc) {
1383
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1384
+ var entry = this.tryEntries[i];
1385
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
1386
+ }
1387
+ },
1388
+ catch: function (tryLoc) {
1389
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1390
+ var entry = this.tryEntries[i];
1391
+ if (entry.tryLoc === tryLoc) {
1392
+ var record = entry.completion;
1393
+ if ("throw" === record.type) {
1394
+ var thrown = record.arg;
1395
+ resetTryEntry(entry);
1396
+ }
1397
+ return thrown;
1354
1398
  }
1355
- });
1356
- } else {
1357
- promise._v = value;
1358
- promise._s = 1;
1359
- notify(promise, false);
1360
- }
1361
- } catch (e) {
1362
- $reject.call({ _w: promise, _d: false }, e);
1363
- }
1364
- };
1365
- if (!USE_NATIVE) {
1366
- $Promise = function Promise(executor) {
1367
- _anInstance(this, $Promise, PROMISE, '_h');
1368
- _aFunction(executor);
1369
- Internal.call(this);
1370
- try {
1371
- executor(_ctx($resolve, this, 1), _ctx($reject, this, 1));
1372
- } catch (err) {
1373
- $reject.call(this, err);
1374
- }
1375
- };
1376
- Internal = function Promise(executor) {
1377
- this._c = [];
1378
- this._a = undefined;
1379
- this._s = 0;
1380
- this._d = false;
1381
- this._v = undefined;
1382
- this._h = 0;
1383
- this._n = false;
1384
- };
1385
- Internal.prototype = _redefineAll($Promise.prototype, {
1386
- then: function then(onFulfilled, onRejected) {
1387
- var reaction = newPromiseCapability(_speciesConstructor(this, $Promise));
1388
- reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
1389
- reaction.fail = typeof onRejected == 'function' && onRejected;
1390
- reaction.domain = isNode$1 ? process$2.domain : undefined;
1391
- this._c.push(reaction);
1392
- if (this._a) this._a.push(reaction);
1393
- if (this._s) notify(this, false);
1394
- return reaction.promise;
1399
+ }
1400
+ throw new Error("illegal catch attempt");
1395
1401
  },
1396
- 'catch': function (onRejected) {
1397
- return this.then(undefined, onRejected);
1402
+ delegateYield: function (iterable, resultName, nextLoc) {
1403
+ return this.delegate = {
1404
+ iterator: values(iterable),
1405
+ resultName: resultName,
1406
+ nextLoc: nextLoc
1407
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
1398
1408
  }
1399
- });
1400
- OwnPromiseCapability = function () {
1401
- var promise = new Internal();
1402
- this.promise = promise;
1403
- this.resolve = _ctx($resolve, promise, 1);
1404
- this.reject = _ctx($reject, promise, 1);
1405
- };
1406
- _newPromiseCapability.f = newPromiseCapability = function (C) {
1407
- return C === $Promise || C === Wrapper
1408
- ? new OwnPromiseCapability(C)
1409
- : newGenericPromiseCapability(C);
1410
- };
1409
+ }, exports;
1411
1410
  }
1412
- _export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise });
1413
- _setToStringTag($Promise, PROMISE);
1414
- _setSpecies(PROMISE);
1415
- Wrapper = _core[PROMISE];
1416
- _export(_export.S + _export.F * !USE_NATIVE, PROMISE, {
1417
- reject: function reject(r) {
1418
- var capability = newPromiseCapability(this);
1419
- var $$reject = capability.reject;
1420
- $$reject(r);
1421
- return capability.promise;
1422
- }
1423
- });
1424
- _export(_export.S + _export.F * (_library ), PROMISE, {
1425
- resolve: function resolve(x) {
1426
- return _promiseResolve( this === Wrapper ? $Promise : this, x);
1411
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1412
+ try {
1413
+ var info = gen[key](arg);
1414
+ var value = info.value;
1415
+ } catch (error) {
1416
+ reject(error);
1417
+ return;
1427
1418
  }
1428
- });
1429
- _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) {
1430
- $Promise.all(iter)['catch'](empty);
1431
- })), PROMISE, {
1432
- all: function all(iterable) {
1433
- var C = this;
1434
- var capability = newPromiseCapability(C);
1435
- var resolve = capability.resolve;
1436
- var reject = capability.reject;
1437
- var result = _perform(function () {
1438
- var values = [];
1439
- var index = 0;
1440
- var remaining = 1;
1441
- _forOf(iterable, false, function (promise) {
1442
- var $index = index++;
1443
- var alreadyCalled = false;
1444
- values.push(undefined);
1445
- remaining++;
1446
- C.resolve(promise).then(function (value) {
1447
- if (alreadyCalled) return;
1448
- alreadyCalled = true;
1449
- values[$index] = value;
1450
- --remaining || resolve(values);
1451
- }, reject);
1452
- });
1453
- --remaining || resolve(values);
1454
- });
1455
- if (result.e) reject(result.v);
1456
- return capability.promise;
1457
- },
1458
- race: function race(iterable) {
1459
- var C = this;
1460
- var capability = newPromiseCapability(C);
1461
- var reject = capability.reject;
1462
- var result = _perform(function () {
1463
- _forOf(iterable, false, function (promise) {
1464
- C.resolve(promise).then(capability.resolve, reject);
1465
- });
1466
- });
1467
- if (result.e) reject(result.v);
1468
- return capability.promise;
1419
+ if (info.done) {
1420
+ resolve(value);
1421
+ } else {
1422
+ Promise.resolve(value).then(_next, _throw);
1469
1423
  }
1470
- });
1471
-
1472
- _export(_export.P + _export.R, 'Promise', { 'finally': function (onFinally) {
1473
- var C = _speciesConstructor(this, _core.Promise || _global.Promise);
1474
- var isFunction = typeof onFinally == 'function';
1475
- return this.then(
1476
- isFunction ? function (x) {
1477
- return _promiseResolve(C, onFinally()).then(function () { return x; });
1478
- } : onFinally,
1479
- isFunction ? function (e) {
1480
- return _promiseResolve(C, onFinally()).then(function () { throw e; });
1481
- } : onFinally
1482
- );
1483
- } });
1484
-
1485
- _export(_export.S, 'Promise', { 'try': function (callbackfn) {
1486
- var promiseCapability = _newPromiseCapability.f(this);
1487
- var result = _perform(callbackfn);
1488
- (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
1489
- return promiseCapability.promise;
1490
- } });
1491
-
1492
- var promise = _core.Promise;
1493
-
1494
- var promise$1 = promise;
1495
-
1496
- var _createProperty = function (object, index, value) {
1497
- if (index in object) _objectDp.f(object, index, _propertyDesc(0, value));
1498
- else object[index] = value;
1499
- };
1500
-
1501
- _export(_export.S + _export.F * !_iterDetect(function (iter) { Array.from(iter); }), 'Array', {
1502
- from: function from(arrayLike ) {
1503
- var O = _toObject(arrayLike);
1504
- var C = typeof this == 'function' ? this : Array;
1505
- var aLen = arguments.length;
1506
- var mapfn = aLen > 1 ? arguments[1] : undefined;
1507
- var mapping = mapfn !== undefined;
1508
- var index = 0;
1509
- var iterFn = core_getIteratorMethod(O);
1510
- var length, result, step, iterator;
1511
- if (mapping) mapfn = _ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
1512
- if (iterFn != undefined && !(C == Array && _isArrayIter(iterFn))) {
1513
- for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
1514
- _createProperty(result, index, mapping ? _iterCall(iterator, mapfn, [step.value, index], true) : step.value);
1424
+ }
1425
+ function _asyncToGenerator(fn) {
1426
+ return function () {
1427
+ var self = this,
1428
+ args = arguments;
1429
+ return new Promise(function (resolve, reject) {
1430
+ var gen = fn.apply(self, args);
1431
+ function _next(value) {
1432
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
1515
1433
  }
1516
- } else {
1517
- length = _toLength(O.length);
1518
- for (result = new C(length); length > index; index++) {
1519
- _createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
1434
+ function _throw(err) {
1435
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
1436
+ }
1437
+ _next(undefined);
1438
+ });
1439
+ };
1440
+ }
1441
+ function _classCallCheck(instance, Constructor) {
1442
+ if (!(instance instanceof Constructor)) {
1443
+ throw new TypeError("Cannot call a class as a function");
1444
+ }
1445
+ }
1446
+ function _defineProperties(target, props) {
1447
+ for (var i = 0; i < props.length; i++) {
1448
+ var descriptor = props[i];
1449
+ descriptor.enumerable = descriptor.enumerable || false;
1450
+ descriptor.configurable = true;
1451
+ if ("value" in descriptor) descriptor.writable = true;
1452
+ Object.defineProperty(target, descriptor.key, descriptor);
1453
+ }
1454
+ }
1455
+ function _createClass(Constructor, protoProps, staticProps) {
1456
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1457
+ if (staticProps) _defineProperties(Constructor, staticProps);
1458
+ Object.defineProperty(Constructor, "prototype", {
1459
+ writable: false
1460
+ });
1461
+ return Constructor;
1462
+ }
1463
+ function _defineProperty(obj, key, value) {
1464
+ if (key in obj) {
1465
+ Object.defineProperty(obj, key, {
1466
+ value: value,
1467
+ enumerable: true,
1468
+ configurable: true,
1469
+ writable: true
1470
+ });
1471
+ } else {
1472
+ obj[key] = value;
1473
+ }
1474
+ return obj;
1475
+ }
1476
+ function _extends() {
1477
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
1478
+ for (var i = 1; i < arguments.length; i++) {
1479
+ var source = arguments[i];
1480
+ for (var key in source) {
1481
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1482
+ target[key] = source[key];
1483
+ }
1520
1484
  }
1521
1485
  }
1522
- result.length = index;
1523
- return result;
1486
+ return target;
1487
+ };
1488
+ return _extends.apply(this, arguments);
1489
+ }
1490
+ function _objectSpread(target) {
1491
+ for (var i = 1; i < arguments.length; i++) {
1492
+ var source = arguments[i] != null ? Object(arguments[i]) : {};
1493
+ var ownKeys = Object.keys(source);
1494
+ if (typeof Object.getOwnPropertySymbols === 'function') {
1495
+ ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
1496
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1497
+ }));
1498
+ }
1499
+ ownKeys.forEach(function (key) {
1500
+ _defineProperty(target, key, source[key]);
1501
+ });
1524
1502
  }
1525
- });
1526
-
1527
- var from_1 = _core.Array.from;
1528
-
1529
- var from_1$1 = from_1;
1503
+ return target;
1504
+ }
1505
+ function _toConsumableArray(arr) {
1506
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1507
+ }
1508
+ function _arrayWithoutHoles(arr) {
1509
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1510
+ }
1511
+ function _iterableToArray(iter) {
1512
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1513
+ }
1514
+ function _unsupportedIterableToArray(o, minLen) {
1515
+ if (!o) return;
1516
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1517
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1518
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1519
+ if (n === "Map" || n === "Set") return Array.from(o);
1520
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1521
+ }
1522
+ function _arrayLikeToArray(arr, len) {
1523
+ if (len == null || len > arr.length) len = arr.length;
1524
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1525
+ return arr2;
1526
+ }
1527
+ function _nonIterableSpread() {
1528
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1529
+ }
1530
1530
 
1531
1531
  var _stringWs = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
1532
1532
  '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
@@ -4225,34 +4225,381 @@
4225
4225
  el[clickctx].bindingFn && el[clickctx].bindingFn(mouseup, mousedown, el);
4226
4226
  }
4227
4227
  };
4228
- el[clickctx] = {
4229
- id: id,
4230
- clickoutsideHandler: clickoutsideHandler,
4231
- callbackName: binding.expression,
4232
- callbackFn: binding.value
4228
+ el[clickctx] = {
4229
+ id: id,
4230
+ clickoutsideHandler: clickoutsideHandler,
4231
+ callbackName: binding.expression,
4232
+ callbackFn: binding.value
4233
+ };
4234
+ },
4235
+ update: function update(el, binding) {
4236
+ el[clickctx].callbackName = binding.expression;
4237
+ el[clickctx].callbackFn = binding.value;
4238
+ },
4239
+ unbind: function unbind(el) {
4240
+ for (var i = 0, len = nodeList.length; i < len; i++) {
4241
+ if (nodeList[i][clickctx].id === el[clickctx].id) {
4242
+ nodeList.splice(i, 1);
4243
+ break;
4244
+ }
4245
+ }
4246
+ }
4247
+ };
4248
+ bkClickoutside.install = function (Vue) {
4249
+ Vue.directive('bkClickoutside', bkClickoutside);
4250
+ };
4251
+
4252
+ function _extends$3(){return _extends$3=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends$3.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends$3({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=d.concat(e);}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=g.concat(h);}else c[b][f]=a[b][f];}else if("hook"==b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments);}};var helper=mergeJsxProps;
4253
+
4254
+ var checkboxSeed = 0;
4255
+ function getCheckboxName() {
4256
+ return "bk-checkbox_".concat(checkboxSeed++);
4257
+ }
4258
+
4259
+ var script = {
4260
+ name: 'bk-checkbox',
4261
+ mixins: [emitter],
4262
+ inject: {
4263
+ handleRemoveItem: {
4264
+ default: null
4265
+ },
4266
+ handleAddItem: {
4267
+ default: null
4268
+ }
4269
+ },
4270
+ props: {
4271
+ value: {
4272
+ type: [String, Number, Boolean],
4273
+ default: undefined
4274
+ },
4275
+ checked: {
4276
+ type: Boolean,
4277
+ default: undefined
4278
+ },
4279
+ trueValue: {
4280
+ type: [String, Number, Boolean],
4281
+ default: true
4282
+ },
4283
+ falseValue: {
4284
+ type: [String, Number, Boolean],
4285
+ default: false
4286
+ },
4287
+ label: {
4288
+ type: [String, Number]
4289
+ },
4290
+ name: {
4291
+ type: String,
4292
+ default: function _default() {
4293
+ return getCheckboxName();
4294
+ }
4295
+ },
4296
+ disabled: Boolean,
4297
+ indeterminate: Boolean,
4298
+ extCls: {
4299
+ type: String,
4300
+ default: ''
4301
+ },
4302
+ beforeChange: Function
4303
+ },
4304
+ data: function data() {
4305
+ return {
4306
+ parent: null,
4307
+ localValue: undefined
4308
+ };
4309
+ },
4310
+ computed: {
4311
+ selected: function selected() {
4312
+ return this.localValue === this.localTrueValue;
4313
+ },
4314
+ parentValue: function parentValue() {
4315
+ return this.parent ? this.parent.localValue : null;
4316
+ },
4317
+ localTrueValue: function localTrueValue() {
4318
+ var localValue;
4319
+ if (this.parent) {
4320
+ if (this.label === undefined && this.value === undefined) {
4321
+ localValue = this.trueValue;
4322
+ } else if (this.value !== undefined) {
4323
+ localValue = this.value;
4324
+ } else {
4325
+ localValue = this.label;
4326
+ }
4327
+ } else {
4328
+ if (this.label === undefined) {
4329
+ localValue = this.trueValue;
4330
+ } else {
4331
+ localValue = this.label;
4332
+ }
4333
+ }
4334
+ return localValue;
4335
+ }
4336
+ },
4337
+ watch: {
4338
+ value: function value(val) {
4339
+ this.setLocalValue(val);
4340
+ },
4341
+ checked: function checked() {
4342
+ this.setLocalValue();
4343
+ },
4344
+ parentValue: function parentValue() {
4345
+ this.setLocalValue();
4346
+ }
4347
+ },
4348
+ created: function created() {
4349
+ if (this.handleAddItem && typeof this.handleAddItem === 'function') {
4350
+ this.handleAddItem(this);
4351
+ }
4352
+ this.init();
4353
+ },
4354
+ destroyed: function destroyed() {
4355
+ if (this.handleRemoveItem && typeof this.handleRemoveItem === 'function') {
4356
+ this.handleRemoveItem(this);
4357
+ }
4358
+ },
4359
+ methods: {
4360
+ getValue: function getValue() {
4361
+ if (this.selected) {
4362
+ return {
4363
+ isChecked: true,
4364
+ value: this.localTrueValue
4365
+ };
4366
+ } else {
4367
+ return {
4368
+ isChecked: false,
4369
+ value: this.falseValue
4370
+ };
4371
+ }
4372
+ },
4373
+ init: function init() {
4374
+ var parent = this.$parent;
4375
+ while (parent && !parent.isCheckboxGroup && !parent.$options.name !== 'bk-checkbox-group') {
4376
+ parent = parent.$parent;
4377
+ }
4378
+ this.parent = parent;
4379
+ this.setLocalValue();
4380
+ },
4381
+ setLocalValue: function setLocalValue(val) {
4382
+ if (val !== undefined) {
4383
+ this.localValue = val;
4384
+ return;
4385
+ }
4386
+ if (this.parent) {
4387
+ var trueValue = this.localTrueValue;
4388
+ var isSelected = this.parent.localValue.includes(trueValue);
4389
+ this.localValue = isSelected ? trueValue : this.falseValue;
4390
+ } else {
4391
+ if (this.checked !== undefined) {
4392
+ this.localValue = this.checked ? this.localTrueValue : this.falseValue;
4393
+ } else if (this.value === undefined) {
4394
+ this.localValue = this.falseValue;
4395
+ } else {
4396
+ this.localValue = this.value;
4397
+ }
4398
+ }
4399
+ },
4400
+ handleClick: function handleClick() {
4401
+ var _this = this;
4402
+ return _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
4403
+ var shouldChange, oldValue, newValue, groupValue;
4404
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
4405
+ while (1) {
4406
+ switch (_context.prev = _context.next) {
4407
+ case 0:
4408
+ if (!_this.disabled) {
4409
+ _context.next = 2;
4410
+ break;
4411
+ }
4412
+ return _context.abrupt("return", false);
4413
+ case 2:
4414
+ if (!(typeof _this.beforeChange === 'function')) {
4415
+ _context.next = 8;
4416
+ break;
4417
+ }
4418
+ _context.next = 5;
4419
+ return _this.beforeChange();
4420
+ case 5:
4421
+ shouldChange = _context.sent;
4422
+ if (!(shouldChange === false)) {
4423
+ _context.next = 8;
4424
+ break;
4425
+ }
4426
+ return _context.abrupt("return");
4427
+ case 8:
4428
+ oldValue = _this.localValue;
4429
+ if (_this.indeterminate) {
4430
+ newValue = _this.localTrueValue;
4431
+ } else {
4432
+ newValue = oldValue === _this.localTrueValue ? _this.falseValue : _this.localTrueValue;
4433
+ }
4434
+ _this.localValue = newValue;
4435
+ _this.$emit('input', newValue, _this.localTrueValue);
4436
+ _this.$emit('change', newValue, oldValue, _this.localTrueValue);
4437
+ _this.dispatch('bk-form-item', 'form-change');
4438
+ if (_this.parent) {
4439
+ groupValue = _this.localTrueValue === undefined ? newValue : _this.localTrueValue;
4440
+ _this.parent.handleChange(_this.selected, groupValue);
4441
+ }
4442
+ case 15:
4443
+ case "end":
4444
+ return _context.stop();
4445
+ }
4446
+ }
4447
+ }, _callee);
4448
+ }))();
4449
+ }
4450
+ }
4451
+ };
4452
+
4453
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
4454
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
4455
+ if (typeof shadowMode !== 'boolean') {
4456
+ createInjectorSSR = createInjector;
4457
+ createInjector = shadowMode;
4458
+ shadowMode = false;
4459
+ }
4460
+ var options = typeof script === 'function' ? script.options : script;
4461
+ if (template && template.render) {
4462
+ options.render = template.render;
4463
+ options.staticRenderFns = template.staticRenderFns;
4464
+ options._compiled = true;
4465
+ if (isFunctionalTemplate) {
4466
+ options.functional = true;
4467
+ }
4468
+ }
4469
+ if (scopeId) {
4470
+ options._scopeId = scopeId;
4471
+ }
4472
+ var hook;
4473
+ if (moduleIdentifier) {
4474
+ hook = function hook(context) {
4475
+ context = context ||
4476
+ this.$vnode && this.$vnode.ssrContext ||
4477
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
4478
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4479
+ context = __VUE_SSR_CONTEXT__;
4480
+ }
4481
+ if (style) {
4482
+ style.call(this, createInjectorSSR(context));
4483
+ }
4484
+ if (context && context._registeredComponents) {
4485
+ context._registeredComponents.add(moduleIdentifier);
4486
+ }
4487
+ };
4488
+ options._ssrRegister = hook;
4489
+ } else if (style) {
4490
+ hook = shadowMode ? function () {
4491
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
4492
+ } : function (context) {
4493
+ style.call(this, createInjector(context));
4233
4494
  };
4234
- },
4235
- update: function update(el, binding) {
4236
- el[clickctx].callbackName = binding.expression;
4237
- el[clickctx].callbackFn = binding.value;
4238
- },
4239
- unbind: function unbind(el) {
4240
- for (var i = 0, len = nodeList.length; i < len; i++) {
4241
- if (nodeList[i][clickctx].id === el[clickctx].id) {
4242
- nodeList.splice(i, 1);
4243
- break;
4244
- }
4495
+ }
4496
+ if (hook) {
4497
+ if (options.functional) {
4498
+ var originalRender = options.render;
4499
+ options.render = function renderWithStyleInjection(h, context) {
4500
+ hook.call(context);
4501
+ return originalRender(h, context);
4502
+ };
4503
+ } else {
4504
+ var existing = options.beforeCreate;
4505
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
4245
4506
  }
4246
4507
  }
4508
+ return script;
4509
+ }
4510
+ var normalizeComponent_1 = normalizeComponent;
4511
+
4512
+ /* script */
4513
+ var __vue_script__ = script;
4514
+ /* template */
4515
+ var __vue_render__ = function __vue_render__() {
4516
+ var _vm = this;
4517
+ var _h = _vm.$createElement;
4518
+ var _c = _vm._self._c || _h;
4519
+ return _c('label', {
4520
+ staticClass: "bk-form-checkbox",
4521
+ class: [{
4522
+ 'is-disabled': _vm.disabled,
4523
+ 'is-indeterminate': _vm.indeterminate,
4524
+ 'is-checked': _vm.selected
4525
+ }, _vm.extCls],
4526
+ on: {
4527
+ "click": _vm.handleClick,
4528
+ "keydown": function keydown($event) {
4529
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
4530
+ return null;
4531
+ }
4532
+ $event.preventDefault();
4533
+ return _vm.handleClick.apply(null, arguments);
4534
+ }
4535
+ }
4536
+ }, [_c('span', {
4537
+ staticClass: "bk-checkbox",
4538
+ attrs: {
4539
+ "tabindex": _vm.disabled ? false : 0
4540
+ }
4541
+ }), _c('input', {
4542
+ attrs: {
4543
+ "type": "hidden",
4544
+ "name": _vm.name
4545
+ },
4546
+ domProps: {
4547
+ "value": _vm.label === undefined ? _vm.localValue : _vm.label
4548
+ }
4549
+ }), _vm.$slots.default ? _c('span', {
4550
+ staticClass: "bk-checkbox-text"
4551
+ }, [_vm._t("default")], 2) : _vm._e()]);
4247
4552
  };
4248
- bkClickoutside.install = function (Vue) {
4249
- Vue.directive('bkClickoutside', bkClickoutside);
4250
- };
4553
+ var __vue_staticRenderFns__ = [];
4251
4554
 
4252
- function _extends$3(){return _extends$3=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends$3.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends$3({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=d.concat(e);}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=g.concat(h);}else c[b][f]=a[b][f];}else if("hook"==b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments);}};var helper=mergeJsxProps;
4555
+ /* style */
4556
+ var __vue_inject_styles__ = undefined;
4557
+ /* scoped */
4558
+ var __vue_scope_id__ = undefined;
4559
+ /* module identifier */
4560
+ var __vue_module_identifier__ = undefined;
4561
+ /* functional template */
4562
+ var __vue_is_functional_template__ = false;
4563
+ /* style inject */
4253
4564
 
4254
- var script = {
4565
+ /* style inject SSR */
4566
+
4567
+ /* style inject shadow dom */
4568
+
4569
+ var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
4570
+ render: __vue_render__,
4571
+ staticRenderFns: __vue_staticRenderFns__
4572
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
4573
+
4574
+ function setInstaller (component, afterInstall) {
4575
+ component.install = function (Vue) {
4576
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4577
+ var props = component.props || {};
4578
+ keys$1(options).forEach(function (key) {
4579
+ if (props.hasOwnProperty(key)) {
4580
+ if (typeof props[key] === 'function' || props[key] instanceof Array) {
4581
+ props[key] = {
4582
+ type: props[key],
4583
+ default: options[key]
4584
+ };
4585
+ } else {
4586
+ props[key].default = options[key];
4587
+ }
4588
+ }
4589
+ });
4590
+ component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
4591
+ Vue.component(component.name, component);
4592
+ typeof afterInstall === 'function' && afterInstall(Vue, options);
4593
+ };
4594
+ }
4595
+
4596
+ setInstaller(__vue_component__);
4597
+
4598
+ var script$1 = {
4255
4599
  name: 'bk-search-select-menu',
4600
+ components: {
4601
+ BkCheckbox: __vue_component__
4602
+ },
4256
4603
  mixins: [locale.mixin],
4257
4604
  props: {
4258
4605
  list: {
@@ -4290,7 +4637,11 @@
4290
4637
  type: String,
4291
4638
  require: true
4292
4639
  },
4293
- isChildCondition: Boolean
4640
+ isChildCondition: Boolean,
4641
+ selectedStyle: {
4642
+ type: String,
4643
+ default: 'check'
4644
+ }
4294
4645
  },
4295
4646
  data: function data() {
4296
4647
  return {
@@ -4324,7 +4675,11 @@
4324
4675
  this.hasFocus = false;
4325
4676
  this.handleDestroy();
4326
4677
  } else {
4327
- this.$refs[item[this.primaryKey]].style.display = this.checked[item[this.primaryKey]] ? 'none' : 'block';
4678
+ if (this.selectedStyle === 'check') {
4679
+ this.$refs[item[this.primaryKey]].style.display = this.checked[item[this.primaryKey]] ? 'none' : 'block';
4680
+ } else {
4681
+ this.$refs[item[this.primaryKey]].setLocalValue(!this.checked[item[this.primaryKey]]);
4682
+ }
4328
4683
  this.$emit('select-check', item, index);
4329
4684
  }
4330
4685
  },
@@ -4333,8 +4688,11 @@
4333
4688
  },
4334
4689
  setCheckValue: function setCheckValue(item, val) {
4335
4690
  var ref = this.$refs[item[this.primaryKey]];
4336
- if (ref) {
4691
+ if (!ref) return;
4692
+ if (this.selectedStyle === 'check') {
4337
4693
  ref.style.display = this.checked[item[this.primaryKey]] ? 'none' : 'block';
4694
+ } else {
4695
+ ref.etLocalValue(!this.checked[item[this.primaryKey]]);
4338
4696
  }
4339
4697
  },
4340
4698
  handleSelectEnter: function handleSelectEnter(e) {
@@ -4380,9 +4738,15 @@
4380
4738
  },
4381
4739
  handleSelectCancel: function handleSelectCancel(e) {
4382
4740
  var _this2 = this;
4383
- keys$1(this.checked).forEach(function (key) {
4384
- _this2.$refs[key] && (_this2.$refs[key].style.display = 'none');
4385
- });
4741
+ if (this.selectedStyle === 'check') {
4742
+ keys$1(this.checked).forEach(function (key) {
4743
+ _this2.$refs[key] && (_this2.$refs[key].style.display = 'none');
4744
+ });
4745
+ } else if (this.selectedStyle === 'checkbox') {
4746
+ keys$1(this.checked).forEach(function (key) {
4747
+ _this2.$refs[key] && _this2.$refs[key].setLocalValue(false);
4748
+ });
4749
+ }
4386
4750
  this.$emit('select-cancel', e);
4387
4751
  }
4388
4752
  },
@@ -4406,7 +4770,8 @@
4406
4770
  isChildCondition = _this$isChildConditio === void 0 ? false : _this$isChildConditio,
4407
4771
  _this$error = this.error,
4408
4772
  error = _this$error === void 0 ? '' : _this$error,
4409
- hoverId = this.hoverId;
4773
+ hoverId = this.hoverId,
4774
+ selectedStyle = this.selectedStyle;
4410
4775
  if (error) {
4411
4776
  return h("div", {
4412
4777
  "class": {
@@ -4464,7 +4829,14 @@
4464
4829
  'is-disabled': item.disabled,
4465
4830
  'is-hover': !item.disabled && hoverId === id
4466
4831
  }
4467
- }, [h("div", helper([{}, events, {
4832
+ }, [selectedStyle === 'checkbox' ? h("bk-checkbox", {
4833
+ "class": "search-list-checkbox",
4834
+ "directives": [{
4835
+ name: "show",
4836
+ value: multiable && child && !isChildCondition
4837
+ }],
4838
+ "ref": id
4839
+ }) : null, h("div", helper([{}, events, {
4468
4840
  "class": {
4469
4841
  'item-name': true
4470
4842
  }
@@ -4472,7 +4844,7 @@
4472
4844
  "class": {
4473
4845
  'item-name-filter': true
4474
4846
  }
4475
- }, [filter]), next]) : text]), h("span", {
4847
+ }, [filter]), next]) : text]), selectedStyle === 'check' ? h("span", {
4476
4848
  "directives": [{
4477
4849
  name: "show",
4478
4850
  value: multiable && child && checked[text] && !isChildCondition
@@ -4481,7 +4853,7 @@
4481
4853
  "class": {
4482
4854
  'bk-icon icon-check-1 item-icon': true
4483
4855
  }
4484
- })]);
4856
+ }) : null]);
4485
4857
  });
4486
4858
  if (multiable && child) {
4487
4859
  footerEnterEvent['on']['click'] = function (e) {
@@ -4546,84 +4918,25 @@
4546
4918
  }
4547
4919
  };
4548
4920
 
4549
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
4550
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
4551
- if (typeof shadowMode !== 'boolean') {
4552
- createInjectorSSR = createInjector;
4553
- createInjector = shadowMode;
4554
- shadowMode = false;
4555
- }
4556
- var options = typeof script === 'function' ? script.options : script;
4557
- if (template && template.render) {
4558
- options.render = template.render;
4559
- options.staticRenderFns = template.staticRenderFns;
4560
- options._compiled = true;
4561
- if (isFunctionalTemplate) {
4562
- options.functional = true;
4563
- }
4564
- }
4565
- if (scopeId) {
4566
- options._scopeId = scopeId;
4567
- }
4568
- var hook;
4569
- if (moduleIdentifier) {
4570
- hook = function hook(context) {
4571
- context = context ||
4572
- this.$vnode && this.$vnode.ssrContext ||
4573
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
4574
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4575
- context = __VUE_SSR_CONTEXT__;
4576
- }
4577
- if (style) {
4578
- style.call(this, createInjectorSSR(context));
4579
- }
4580
- if (context && context._registeredComponents) {
4581
- context._registeredComponents.add(moduleIdentifier);
4582
- }
4583
- };
4584
- options._ssrRegister = hook;
4585
- } else if (style) {
4586
- hook = shadowMode ? function () {
4587
- style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
4588
- } : function (context) {
4589
- style.call(this, createInjector(context));
4590
- };
4591
- }
4592
- if (hook) {
4593
- if (options.functional) {
4594
- var originalRender = options.render;
4595
- options.render = function renderWithStyleInjection(h, context) {
4596
- hook.call(context);
4597
- return originalRender(h, context);
4598
- };
4599
- } else {
4600
- var existing = options.beforeCreate;
4601
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
4602
- }
4603
- }
4604
- return script;
4605
- }
4606
- var normalizeComponent_1 = normalizeComponent;
4607
-
4608
4921
  /* script */
4609
- var __vue_script__ = script;
4922
+ var __vue_script__$1 = script$1;
4610
4923
  /* template */
4611
4924
 
4612
4925
  /* style */
4613
- var __vue_inject_styles__ = undefined;
4926
+ var __vue_inject_styles__$1 = undefined;
4614
4927
  /* scoped */
4615
- var __vue_scope_id__ = undefined;
4928
+ var __vue_scope_id__$1 = undefined;
4616
4929
  /* module identifier */
4617
- var __vue_module_identifier__ = undefined;
4930
+ var __vue_module_identifier__$1 = undefined;
4618
4931
  /* functional template */
4619
- var __vue_is_functional_template__ = undefined;
4932
+ var __vue_is_functional_template__$1 = undefined;
4620
4933
  /* style inject */
4621
4934
 
4622
4935
  /* style inject SSR */
4623
4936
 
4624
4937
  /* style inject shadow dom */
4625
4938
 
4626
- var __vue_component__ = /*#__PURE__*/normalizeComponent_1({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
4939
+ var __vue_component__$1 = /*#__PURE__*/normalizeComponent_1({}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
4627
4940
 
4628
4941
  var variable = {
4629
4942
  dropdownMarginBottom: '4px'
@@ -4758,7 +5071,7 @@
4758
5071
  }
4759
5072
  };
4760
5073
 
4761
- var script$1 = {
5074
+ var script$2 = {
4762
5075
  name: 'bk-search-select',
4763
5076
  directives: {
4764
5077
  clickoutside: bkClickoutside
@@ -4893,6 +5206,10 @@
4893
5206
  extCls: {
4894
5207
  type: String,
4895
5208
  default: ''
5209
+ },
5210
+ selectedStyle: {
5211
+ type: String,
5212
+ default: 'check'
4896
5213
  }
4897
5214
  },
4898
5215
  data: function data() {
@@ -4935,18 +5252,6 @@
4935
5252
  return item[_this.primaryKey] === _this.menu.id;
4936
5253
  }) || {};
4937
5254
  },
4938
- childList: function childList() {
4939
- var ret = [];
4940
- var i = 0;
4941
- while (i < this.data.length) {
4942
- var item = this.data[i];
4943
- if (item.children && item.children.length) {
4944
- ret.push.apply(ret, _toConsumableArray(item.children));
4945
- }
4946
- i++;
4947
- }
4948
- return ret;
4949
- },
4950
5255
  showItemPlaceholder: function showItemPlaceholder() {
4951
5256
  return this.menu.active >= 0 && String(this.curItem.placeholder).length && this.input.value === this.curItem[this.displayKey] + this.explainCode;
4952
5257
  }
@@ -5038,23 +5343,27 @@
5038
5343
  },
5039
5344
  initMenu: function initMenu() {
5040
5345
  if (!this.menuInstance) {
5041
- this.menuInstance = new Vue(__vue_component__).$mount();
5346
+ this.menuInstance = new Vue(__vue_component__$1);
5042
5347
  this.menuInstance.condition = this.defaultCondition;
5043
5348
  this.menuInstance.displayKey = this.displayKey;
5044
5349
  this.menuInstance.primaryKey = this.primaryKey;
5350
+ this.menuInstance.selectedStyle = this.selectedStyle;
5045
5351
  this.menuInstance.multiable = false;
5352
+ this.menuInstance.$mount();
5046
5353
  this.menuInstance.$on('select', this.handleMenuSelect);
5047
5354
  this.menuInstance.$on('select-conditon', this.handleSelectConditon);
5048
5355
  }
5049
5356
  },
5050
5357
  initChildMenu: function initChildMenu() {
5051
- this.menuChildInstance = new Vue(__vue_component__).$mount();
5358
+ this.menuChildInstance = new Vue(__vue_component__$1);
5052
5359
  this.menuChildInstance.displayKey = this.displayKey;
5053
5360
  this.menuChildInstance.primaryKey = this.primaryKey;
5361
+ this.menuChildInstance.selectedStyle = this.selectedStyle;
5054
5362
  this.menuChildInstance.multiable = this.curItem.conditions && this.curItem.conditions.length ? false : this.curItem.multiable || false;
5055
5363
  this.menuChildInstance.child = true;
5056
5364
  this.menuChildInstance.remoteEmptyText = this.defaultRemoteEmptyText;
5057
5365
  this.menuChildInstance.remoteLoadingText = this.defaultRemoteLoadingText;
5366
+ this.menuChildInstance.$mount();
5058
5367
  this.menuChildInstance.$on('select', this.handleMenuChildSelect);
5059
5368
  this.menuChildInstance.$on('select-check', this.handleSelectCheck);
5060
5369
  this.menuChildInstance.$on('select-enter', this.handleKeyEnter);
@@ -5209,28 +5518,50 @@
5209
5518
  }, _callee);
5210
5519
  }))();
5211
5520
  },
5212
- handleFilter: function handleFilter(v) {
5521
+ getRecommendList: function getRecommendList(v) {
5213
5522
  var _this6 = this;
5523
+ if (!this.data.length) return [];
5524
+ var list = [];
5525
+ var i = 0;
5526
+ var setItem = function setItem(parent, child) {
5527
+ var _ref, _recommendValue, _objectSpread2;
5528
+ var childKey = child ? child[_this6.primaryKey] : v;
5529
+ var childName = child ? child[_this6.displayKey] : v;
5530
+ return _objectSpread({}, parent, (_objectSpread2 = {}, _defineProperty(_objectSpread2, _this6.displayKey, parent[_this6.displayKey] + _this6.explainCode + childName), _defineProperty(_objectSpread2, _this6.primaryKey, parent[_this6.primaryKey] + _this6.explainCode + childKey), _defineProperty(_objectSpread2, "recommendValue", (_recommendValue = {}, _defineProperty(_recommendValue, _this6.displayKey, parent[_this6.displayKey]), _defineProperty(_recommendValue, _this6.primaryKey, parent[_this6.primaryKey]), _defineProperty(_recommendValue, "values", [(_ref = {}, _defineProperty(_ref, _this6.displayKey, child ? child[_this6.displayKey] : v), _defineProperty(_ref, _this6.primaryKey, childKey), _ref)]), _recommendValue)), _objectSpread2));
5531
+ };
5532
+ var _loop = function _loop() {
5533
+ var item = _this6.data[i];
5534
+ i += 1;
5535
+ if (!item.children || !item.children.length) {
5536
+ list.push(setItem(item));
5537
+ return "continue";
5538
+ }
5539
+ var childList = item.children.filter(function (child) {
5540
+ return child[_this6.displayKey].includes(v);
5541
+ });
5542
+ if (!childList.length) {
5543
+ list.push(setItem(item));
5544
+ return "continue";
5545
+ }
5546
+ list.push.apply(list, _toConsumableArray(childList.map(function (child) {
5547
+ return setItem(item, child);
5548
+ })));
5549
+ };
5550
+ while (i < this.data.length) {
5551
+ var _ret = _loop();
5552
+ if (_ret === "continue") continue;
5553
+ }
5554
+ return list;
5555
+ },
5556
+ handleFilter: function handleFilter(v) {
5557
+ var _this7 = this;
5214
5558
  var filterList = [];
5215
5559
  if (!this.input.value.length || !~this.input.value.indexOf(this.explainCode)) {
5216
5560
  if (this.filter && typeof this.filterMenuMethod === 'function') {
5217
5561
  filterList = this.filterMenuMethod(this.data, v);
5218
5562
  } else {
5219
5563
  if (v.length) {
5220
- var _filterList;
5221
- filterList = this.childList.filter(function (item) {
5222
- return item[_this6.displayKey] && ~item[_this6.displayKey].indexOf(v);
5223
- });
5224
- if (filterList.length) {
5225
- var item = filterList[filterList.length - 1];
5226
- item = _objectSpread({}, item, {
5227
- isGroup: true
5228
- });
5229
- filterList[filterList.length - 1] = item;
5230
- }
5231
- (_filterList = filterList).push.apply(_filterList, _toConsumableArray(this.data.filter(function (item) {
5232
- return item[_this6.displayKey] && ~item[_this6.displayKey].indexOf(v);
5233
- })));
5564
+ filterList = this.getRecommendList(v);
5234
5565
  } else {
5235
5566
  filterList = this.data;
5236
5567
  }
@@ -5240,7 +5571,7 @@
5240
5571
  filterList = this.filterChildrenMethod(this.curItem.children, v);
5241
5572
  } else {
5242
5573
  filterList = this.curItem.children.filter(function (item) {
5243
- return item[_this6.displayKey] && ~item[_this6.displayKey].indexOf(v);
5574
+ return item[_this7.displayKey] && ~item[_this7.displayKey].indexOf(v);
5244
5575
  });
5245
5576
  }
5246
5577
  }
@@ -5283,7 +5614,7 @@
5283
5614
  this.$refs.input.focus();
5284
5615
  },
5285
5616
  handleInputClick: function handleInputClick(e) {
5286
- var _this7 = this;
5617
+ var _this8 = this;
5287
5618
  this.input.focus = true;
5288
5619
  if (!this.input.value) {
5289
5620
  if (!this.menuInstance) {
@@ -5293,8 +5624,8 @@
5293
5624
  this.menuInstance.list = this.data;
5294
5625
  this.menu.child = false;
5295
5626
  this.$nextTick(function (_) {
5296
- _this7.handelePopperEventListener();
5297
- _this7.showPopper(_this7.menuInstance.$el);
5627
+ _this8.handelePopperEventListener();
5628
+ _this8.showPopper(_this8.menuInstance.$el);
5298
5629
  });
5299
5630
  } else {
5300
5631
  var cur = this.curItem;
@@ -5328,7 +5659,7 @@
5328
5659
  this.$emit('input-focus', e);
5329
5660
  },
5330
5661
  updateChildMenu: function updateChildMenu(item, index, isCondition) {
5331
- var _this8 = this;
5662
+ var _this9 = this;
5332
5663
  return _asyncToGenerator( _regeneratorRuntime().mark(function _callee2() {
5333
5664
  var isChild, isRemote, list;
5334
5665
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -5340,63 +5671,63 @@
5340
5671
  _context2.next = 14;
5341
5672
  break;
5342
5673
  }
5343
- _this8.$refs.input.blur();
5344
- if (!_this8.menuChildInstance || _this8.menuChildInstance.multiable || _this8.menuChildInstance.multiable !== _this8.curItem.multiable) {
5345
- _this8.initChildMenu();
5674
+ _this9.$refs.input.blur();
5675
+ if (!_this9.menuChildInstance || _this9.menuChildInstance.multiable || _this9.menuChildInstance.multiable !== _this9.curItem.multiable) {
5676
+ _this9.initChildMenu();
5346
5677
  }
5347
- _this8.menuChildInstance.isChildCondition = isCondition;
5348
- _this8.menuChildInstance.error = '';
5349
- _this8.menuChildInstance.loading = false;
5350
- _this8.menuChildInstance.checked = _this8.menu.checked;
5351
- _this8.showPopper(_this8.menuChildInstance.$el);
5352
- _this8.menu.child = false;
5353
- _this8.menuChildInstance.list = item.conditions;
5678
+ _this9.menuChildInstance.isChildCondition = isCondition;
5679
+ _this9.menuChildInstance.error = '';
5680
+ _this9.menuChildInstance.loading = false;
5681
+ _this9.menuChildInstance.checked = _this9.menu.checked;
5682
+ _this9.showPopper(_this9.menuChildInstance.$el);
5683
+ _this9.menu.child = false;
5684
+ _this9.menuChildInstance.list = item.conditions;
5354
5685
  setTimeout(function () {
5355
- _this8.$refs.input.focus();
5686
+ _this9.$refs.input.focus();
5356
5687
  }, 20);
5357
5688
  _context2.next = 37;
5358
5689
  break;
5359
5690
  case 14:
5360
- isRemote = _this8.curItem.remote && typeof _this8.remoteMethod === 'function';
5691
+ isRemote = _this9.curItem.remote && typeof _this9.remoteMethod === 'function';
5361
5692
  if (!(isChild || isRemote)) {
5362
5693
  _context2.next = 35;
5363
5694
  break;
5364
5695
  }
5365
- _this8.$refs.input.blur();
5366
- if (!_this8.menuChildInstance || _this8.menuChildInstance.multiable || _this8.menuChildInstance.multiable !== _this8.curItem.multiable) {
5367
- _this8.initChildMenu();
5696
+ _this9.$refs.input.blur();
5697
+ if (!_this9.menuChildInstance || _this9.menuChildInstance.multiable || _this9.menuChildInstance.multiable !== _this9.curItem.multiable) {
5698
+ _this9.initChildMenu();
5368
5699
  }
5369
- _this8.menuChildInstance.isChildCondition = isCondition;
5370
- _this8.menuChildInstance.error = '';
5371
- _this8.menuChildInstance.loading = isRemote;
5372
- _this8.menuChildInstance.checked = _this8.menu.checked;
5373
- _this8.showPopper(_this8.menuChildInstance.$el);
5374
- _this8.menu.child = true;
5700
+ _this9.menuChildInstance.isChildCondition = isCondition;
5701
+ _this9.menuChildInstance.error = '';
5702
+ _this9.menuChildInstance.loading = isRemote;
5703
+ _this9.menuChildInstance.checked = _this9.menu.checked;
5704
+ _this9.showPopper(_this9.menuChildInstance.$el);
5705
+ _this9.menu.child = true;
5375
5706
  if (!isRemote) {
5376
5707
  _context2.next = 31;
5377
5708
  break;
5378
5709
  }
5379
5710
  _context2.next = 27;
5380
- return _this8.remoteMethod(_this8.input.value, item, index).finally(function () {
5381
- _this8.menuChildInstance.loading = false;
5711
+ return _this9.remoteMethod(_this9.input.value, item, index).finally(function () {
5712
+ _this9.menuChildInstance.loading = false;
5382
5713
  });
5383
5714
  case 27:
5384
5715
  list = _context2.sent;
5385
- _this8.menuChildInstance.list = list;
5716
+ _this9.menuChildInstance.list = list;
5386
5717
  _context2.next = 32;
5387
5718
  break;
5388
5719
  case 31:
5389
- _this8.menuChildInstance.list = item.children;
5720
+ _this9.menuChildInstance.list = item.children;
5390
5721
  case 32:
5391
5722
  setTimeout(function () {
5392
- _this8.$refs.input.focus();
5723
+ _this9.$refs.input.focus();
5393
5724
  }, 20);
5394
5725
  _context2.next = 37;
5395
5726
  break;
5396
5727
  case 35:
5397
- _this8.hidePopper();
5728
+ _this9.hidePopper();
5398
5729
  setTimeout(function () {
5399
- _this8.handleInputFocus();
5730
+ _this9.handleInputFocus();
5400
5731
  }, 20);
5401
5732
  case 37:
5402
5733
  case "end":
@@ -5407,15 +5738,21 @@
5407
5738
  }))();
5408
5739
  },
5409
5740
  handleMenuSelect: function handleMenuSelect(item, index) {
5410
- var _this9 = this;
5741
+ var _this10 = this;
5742
+ if (item.recommendValue) {
5743
+ this.input.value = item[this.displayKey];
5744
+ this.updateInput(this.input.value);
5745
+ this.handleEnter(this.input.value, item.recommendValue, false);
5746
+ return;
5747
+ }
5411
5748
  var isChildClick = ~this.data.findIndex(function (set) {
5412
- return set[_this9.primaryKey] === item[_this9.primaryKey];
5749
+ return set[_this10.primaryKey] === item[_this10.primaryKey];
5413
5750
  });
5414
5751
  if (!isChildClick) {
5415
5752
  this.input.value = item[this.displayKey];
5416
5753
  this.$nextTick().then(function () {
5417
- _this9.updateInput(_this9.input.value);
5418
- _this9.handleKeyEnter();
5754
+ _this10.updateInput(_this10.input.value);
5755
+ _this10.handleKeyEnter();
5419
5756
  });
5420
5757
  } else {
5421
5758
  this.menu.active = ~isChildClick;
@@ -5423,9 +5760,9 @@
5423
5760
  var isChildCondition = !!(this.curItem.conditions && this.curItem.conditions.length);
5424
5761
  this.input.value = item[this.displayKey] + this.explainCode;
5425
5762
  this.$nextTick().then(function () {
5426
- _this9.updateInput(_this9.input.value);
5427
- _this9.updateChildMenu(item, index, isChildCondition);
5428
- _this9.$emit('menu-select', item, index);
5763
+ _this10.updateInput(_this10.input.value);
5764
+ _this10.updateChildMenu(item, index, isChildCondition);
5765
+ _this10.$emit('menu-select', item, index);
5429
5766
  });
5430
5767
  }
5431
5768
  },
@@ -5478,7 +5815,7 @@
5478
5815
  }
5479
5816
  },
5480
5817
  handleKeyBackspace: function handleKeyBackspace(e) {
5481
- var _this10 = this;
5818
+ var _this11 = this;
5482
5819
  var keys = keys$1(this.menu.checked);
5483
5820
  if (this.curItem.multiable && keys.length) {
5484
5821
  var key = keys[keys.length - 1];
@@ -5502,7 +5839,7 @@
5502
5839
  if (!this.input.value && !(!this.chip.list.length && !this.$refs.input.textContent.length)) {
5503
5840
  var item = this.chip.list.pop();
5504
5841
  this.$nextTick().then(function () {
5505
- _this10.showMenu(_this10.showPopoverTagChange);
5842
+ _this11.showMenu(_this11.showPopoverTagChange);
5506
5843
  });
5507
5844
  this.$emit('change', this.chip.list);
5508
5845
  this.$emit('key-delete', item);
@@ -5525,7 +5862,7 @@
5525
5862
  }
5526
5863
  },
5527
5864
  handleKeyEnter: function handleKeyEnter(e) {
5528
- var _this11 = this;
5865
+ var _this12 = this;
5529
5866
  var needShowPopover = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
5530
5867
  var needEmitKeyEnter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
5531
5868
  return _asyncToGenerator( _regeneratorRuntime().mark(function _callee3() {
@@ -5535,38 +5872,39 @@
5535
5872
  case 0:
5536
5873
  _context3.next = 2;
5537
5874
  return new promise$1(function (resolve) {
5538
- if (!_this11.input.value) {
5875
+ if (!_this12.input.value) {
5539
5876
  resolve();
5540
- } else if (_this11.input.value === _this11.curItem[_this11.displayKey] + _this11.explainCode) {
5877
+ } else if (_this12.input.value === _this12.curItem[_this12.displayKey] + _this12.explainCode) {
5541
5878
  e.preventDefault();
5542
- if (!_this11.menuChildInstance) {
5543
- _this11.initChildMenu();
5879
+ if (!_this12.menuChildInstance) {
5880
+ _this12.initChildMenu();
5544
5881
  }
5545
- _this11.menuChildInstance.error = _this11.defaultEmptyText;
5546
- _this11.$nextTick(function (_) {
5547
- _this11.showPopper(_this11.menuChildInstance.$el);
5882
+ _this12.menuChildInstance.error = _this12.defaultEmptyText;
5883
+ _this12.$nextTick(function (_) {
5884
+ _this12.showPopper(_this12.menuChildInstance.$el);
5548
5885
  });
5549
- _this11.handleInputFocus();
5886
+ _this12.handleInputFocus();
5550
5887
  resolve();
5551
5888
  } else {
5889
+ e.preventDefault();
5552
5890
  setTimeout(function () {
5553
- if (_this11.menu.id !== null) {
5554
- var _this11$handleEnter;
5555
- var val = _this11.input.value.replace(_this11.curItem[_this11.displayKey] + _this11.explainCode, '');
5556
- if (keys$1(_this11.menu.childCondition).length) {
5557
- val = val.replace(_this11.menu.childCondition[_this11.displayKey], '');
5891
+ if (_this12.menu.id !== null) {
5892
+ var _this12$handleEnter;
5893
+ var val = _this12.input.value.replace(_this12.curItem[_this12.displayKey] + _this12.explainCode, '');
5894
+ if (keys$1(_this12.menu.childCondition).length) {
5895
+ val = val.replace(_this12.menu.childCondition[_this12.displayKey], '');
5558
5896
  }
5559
- _this11.handleEnter(_this11.input.value, (_this11$handleEnter = {}, _defineProperty(_this11$handleEnter, _this11.primaryKey, val), _defineProperty(_this11$handleEnter, _this11.displayKey, val), _this11$handleEnter), true, needShowPopover);
5897
+ _this12.handleEnter(_this12.input.value, (_this12$handleEnter = {}, _defineProperty(_this12$handleEnter, _this12.primaryKey, val), _defineProperty(_this12$handleEnter, _this12.displayKey, val), _this12$handleEnter), true, needShowPopover);
5560
5898
  } else {
5561
- var _this11$handleEnter2;
5562
- _this11.handleEnter(_this11.input.value, (_this11$handleEnter2 = {}, _defineProperty(_this11$handleEnter2, _this11.primaryKey, _this11.input.value), _defineProperty(_this11$handleEnter2, _this11.displayKey, _this11.input.value), _this11$handleEnter2), false, needShowPopover);
5899
+ var _this12$handleEnter2;
5900
+ _this12.handleEnter(_this12.input.value, (_this12$handleEnter2 = {}, _defineProperty(_this12$handleEnter2, _this12.primaryKey, _this12.input.value), _defineProperty(_this12$handleEnter2, _this12.displayKey, _this12.input.value), _this12$handleEnter2), false, needShowPopover);
5563
5901
  }
5564
5902
  resolve();
5565
5903
  }, 10);
5566
5904
  }
5567
5905
  });
5568
5906
  case 2:
5569
- needEmitKeyEnter && _this11.$emit('key-enter', e);
5907
+ needEmitKeyEnter && _this12.$emit('key-enter', e);
5570
5908
  case 3:
5571
5909
  case "end":
5572
5910
  return _context3.stop();
@@ -5576,7 +5914,7 @@
5576
5914
  }))();
5577
5915
  },
5578
5916
  handleValidate: function handleValidate(valList) {
5579
- var _this12 = this;
5917
+ var _this13 = this;
5580
5918
  return _asyncToGenerator( _regeneratorRuntime().mark(function _callee4() {
5581
5919
  var validate, selection;
5582
5920
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
@@ -5584,29 +5922,29 @@
5584
5922
  switch (_context4.prev = _context4.next) {
5585
5923
  case 0:
5586
5924
  validate = true;
5587
- if (!(_this12.curItem && _this12.curItem.validate && typeof _this12.curItem.validate === 'function')) {
5925
+ if (!(_this13.curItem && _this13.curItem.validate && typeof _this13.curItem.validate === 'function')) {
5588
5926
  _context4.next = 8;
5589
5927
  break;
5590
5928
  }
5591
5929
  _context4.next = 4;
5592
- return _this12.curItem.validate(_toConsumableArray(valList), _this12.curItem);
5930
+ return _this13.curItem.validate(_toConsumableArray(valList), _this13.curItem);
5593
5931
  case 4:
5594
5932
  validate = _context4.sent;
5595
5933
  if (typeof validate === 'string') {
5596
- _this12.validateStr = validate;
5934
+ _this13.validateStr = validate;
5597
5935
  validate = false;
5598
5936
  } else {
5599
- validate && (_this12.validateStr = '');
5937
+ validate && (_this13.validateStr = '');
5600
5938
  }
5601
5939
  _context4.next = 9;
5602
5940
  break;
5603
5941
  case 8:
5604
- _this12.validateStr = '';
5942
+ _this13.validateStr = '';
5605
5943
  case 9:
5606
5944
  if (!validate) {
5607
5945
  selection = window.getSelection();
5608
5946
  if (selection.focusOffset === 0) {
5609
- selection.selectAllChildren(_this12.$refs.input);
5947
+ selection.selectAllChildren(_this13.$refs.input);
5610
5948
  selection.collapseToEnd();
5611
5949
  }
5612
5950
  }
@@ -5620,7 +5958,7 @@
5620
5958
  }))();
5621
5959
  },
5622
5960
  handleEnter: function handleEnter(val, item) {
5623
- var _this13 = this;
5961
+ var _this14 = this;
5624
5962
  var child = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
5625
5963
  var needShowPopover = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
5626
5964
  return _asyncToGenerator( _regeneratorRuntime().mark(function _callee5() {
@@ -5633,25 +5971,25 @@
5633
5971
  _context5.next = 19;
5634
5972
  break;
5635
5973
  }
5636
- if (!(_this13.input.value === _this13.defaultCondition[_this13.displayKey])) {
5974
+ if (!(_this14.input.value === _this14.defaultCondition[_this14.displayKey])) {
5637
5975
  _context5.next = 5;
5638
5976
  break;
5639
5977
  }
5640
- _this13.chip.list.push(_this13.defaultCondition);
5978
+ _this14.chip.list.push(_this14.defaultCondition);
5641
5979
  _context5.next = 17;
5642
5980
  break;
5643
5981
  case 5:
5644
5982
  values = [];
5645
- if (keys$1(_this13.menu.checked).length) {
5646
- values = values$1(_this13.menu.checked);
5983
+ if (keys$1(_this14.menu.checked).length) {
5984
+ values = values$1(_this14.menu.checked);
5647
5985
  } else {
5648
5986
  values.push(item);
5649
5987
  }
5650
- data = _extends({}, _this13.curItem, {
5988
+ data = _extends({}, _this14.curItem, {
5651
5989
  values: values
5652
5990
  });
5653
- if (keys$1(_this13.menu.childCondition).length) {
5654
- data['condition'] = _this13.menu.childCondition;
5991
+ if (keys$1(_this14.menu.childCondition).length) {
5992
+ data['condition'] = _this14.menu.childCondition;
5655
5993
  }
5656
5994
  if (data.children) {
5657
5995
  delete data.children;
@@ -5660,7 +5998,7 @@
5660
5998
  delete data.conditions;
5661
5999
  }
5662
6000
  _context5.next = 13;
5663
- return _this13.handleValidate(values);
6001
+ return _this14.handleValidate(values);
5664
6002
  case 13:
5665
6003
  validate = _context5.sent;
5666
6004
  if (validate) {
@@ -5669,13 +6007,13 @@
5669
6007
  }
5670
6008
  return _context5.abrupt("return");
5671
6009
  case 16:
5672
- _this13.chip.list.push(data);
6010
+ _this14.chip.list.push(data);
5673
6011
  case 17:
5674
6012
  _context5.next = 25;
5675
6013
  break;
5676
6014
  case 19:
5677
6015
  _context5.next = 21;
5678
- return _this13.handleValidate([item]);
6016
+ return _this14.handleValidate([item]);
5679
6017
  case 21:
5680
6018
  _validate = _context5.sent;
5681
6019
  if (_validate) {
@@ -5684,25 +6022,25 @@
5684
6022
  }
5685
6023
  return _context5.abrupt("return");
5686
6024
  case 24:
5687
- _this13.chip.list.push(item);
6025
+ _this14.chip.list.push(item);
5688
6026
  case 25:
5689
- _this13.menu.checked = {};
5690
- _this13.menu.active = -1;
5691
- _this13.menu.id = null;
5692
- _this13.input.value = '';
5693
- _this13.menu.childCondition = {};
5694
- _this13.updateInput();
5695
- if (_this13.menuInstance) {
5696
- _this13.menuInstance.filter = '';
6027
+ _this14.menu.checked = {};
6028
+ _this14.menu.active = -1;
6029
+ _this14.menu.id = null;
6030
+ _this14.input.value = '';
6031
+ _this14.menu.childCondition = {};
6032
+ _this14.updateInput();
6033
+ if (_this14.menuInstance) {
6034
+ _this14.menuInstance.filter = '';
5697
6035
  }
5698
6036
  if (needShowPopover) {
5699
- _this13.$nextTick(function (_) {
5700
- return _this13.showMenu(_this13.showPopoverTagChange);
6037
+ _this14.$nextTick(function (_) {
6038
+ return _this14.showMenu(_this14.showPopoverTagChange);
5701
6039
  });
5702
- _this13.$refs.input.focus();
6040
+ _this14.$refs.input.focus();
5703
6041
  }
5704
- _this13.$emit('change', _this13.chip.list);
5705
- _this13.dispatch('bk-form-item', 'form-change');
6042
+ _this14.$emit('change', _this14.chip.list);
6043
+ _this14.dispatch('bk-form-item', 'form-change');
5706
6044
  case 35:
5707
6045
  case "end":
5708
6046
  return _context5.stop();
@@ -5712,14 +6050,14 @@
5712
6050
  }))();
5713
6051
  },
5714
6052
  handleClear: function handleClear(index, item) {
5715
- var _this14 = this;
6053
+ var _this15 = this;
5716
6054
  var name = this.chip.list.splice(index, 1);
5717
6055
  setTimeout(function () {
5718
- _this14.popperMenuInstance && _this14.popperMenuInstance.popperInstance && _this14.popperMenuInstance.popperInstance.update();
5719
- !_this14.input.value.length && _this14.showMenu();
5720
- _this14.$emit('change', _this14.chip.list);
5721
- _this14.$emit('chip-del', name);
5722
- _this14.dispatch('bk-form-item', 'form-change');
6056
+ _this15.popperMenuInstance && _this15.popperMenuInstance.popperInstance && _this15.popperMenuInstance.popperInstance.update();
6057
+ !_this15.input.value.length && _this15.showMenu();
6058
+ _this15.$emit('change', _this15.chip.list);
6059
+ _this15.$emit('chip-del', name);
6060
+ _this15.dispatch('bk-form-item', 'form-change');
5723
6061
  }, 0);
5724
6062
  },
5725
6063
  handleSelectConditon: function handleSelectConditon(item) {
@@ -5754,10 +6092,10 @@
5754
6092
  }
5755
6093
  },
5756
6094
  updateCheckedInputVal: function updateCheckedInputVal() {
5757
- var _this15 = this;
6095
+ var _this16 = this;
5758
6096
  if (this.menu.id !== null) {
5759
6097
  var val = values$1(this.menu.checked).map(function (set) {
5760
- return set[_this15.displayKey];
6098
+ return set[_this16.displayKey];
5761
6099
  }).join(this.splitCode);
5762
6100
  this.input.value = this.curItem[this.displayKey] + this.explainCode + val;
5763
6101
  this.updateInput(this.input.value);
@@ -5811,9 +6149,9 @@
5811
6149
  };
5812
6150
 
5813
6151
  /* script */
5814
- var __vue_script__$1 = script$1;
6152
+ var __vue_script__$2 = script$2;
5815
6153
  /* template */
5816
- var __vue_render__ = function __vue_render__() {
6154
+ var __vue_render__$1 = function __vue_render__() {
5817
6155
  var _vm = this;
5818
6156
  var _h = _vm.$createElement;
5819
6157
  var _c = _vm._self._c || _h;
@@ -5939,52 +6277,30 @@
5939
6277
  }), _vm._v(_vm._s(_vm.validateStr || '') + "\n ")];
5940
6278
  })], 2) : _vm._e()]);
5941
6279
  };
5942
- var __vue_staticRenderFns__ = [];
6280
+ var __vue_staticRenderFns__$1 = [];
5943
6281
 
5944
6282
  /* style */
5945
- var __vue_inject_styles__$1 = undefined;
6283
+ var __vue_inject_styles__$2 = undefined;
5946
6284
  /* scoped */
5947
- var __vue_scope_id__$1 = undefined;
6285
+ var __vue_scope_id__$2 = undefined;
5948
6286
  /* module identifier */
5949
- var __vue_module_identifier__$1 = undefined;
6287
+ var __vue_module_identifier__$2 = undefined;
5950
6288
  /* functional template */
5951
- var __vue_is_functional_template__$1 = false;
6289
+ var __vue_is_functional_template__$2 = false;
5952
6290
  /* style inject */
5953
6291
 
5954
6292
  /* style inject SSR */
5955
6293
 
5956
6294
  /* style inject shadow dom */
5957
6295
 
5958
- var __vue_component__$1 = /*#__PURE__*/normalizeComponent_1({
5959
- render: __vue_render__,
5960
- staticRenderFns: __vue_staticRenderFns__
5961
- }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
5962
-
5963
- function setInstaller (component, afterInstall) {
5964
- component.install = function (Vue) {
5965
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5966
- var props = component.props || {};
5967
- keys$1(options).forEach(function (key) {
5968
- if (props.hasOwnProperty(key)) {
5969
- if (typeof props[key] === 'function' || props[key] instanceof Array) {
5970
- props[key] = {
5971
- type: props[key],
5972
- default: options[key]
5973
- };
5974
- } else {
5975
- props[key].default = options[key];
5976
- }
5977
- }
5978
- });
5979
- component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
5980
- Vue.component(component.name, component);
5981
- typeof afterInstall === 'function' && afterInstall(Vue, options);
5982
- };
5983
- }
6296
+ var __vue_component__$2 = /*#__PURE__*/normalizeComponent_1({
6297
+ render: __vue_render__$1,
6298
+ staticRenderFns: __vue_staticRenderFns__$1
6299
+ }, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
5984
6300
 
5985
- setInstaller(__vue_component__$1);
6301
+ setInstaller(__vue_component__$2);
5986
6302
 
5987
- exports.default = __vue_component__$1;
6303
+ exports.default = __vue_component__$2;
5988
6304
 
5989
6305
  Object.defineProperty(exports, '__esModule', { value: true });
5990
6306