@phoenix-cg/v-filters 0.2.3 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v-filters.common.js +1686 -17
- package/dist/v-filters.common.js.map +1 -1
- package/dist/v-filters.umd.js +1686 -17
- package/dist/v-filters.umd.js.map +1 -1
- package/dist/v-filters.umd.min.js +1 -1
- package/dist/v-filters.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VFilters.vue +17 -3
package/dist/v-filters.common.js
CHANGED
|
@@ -314,6 +314,18 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
314
314
|
} : [].forEach;
|
|
315
315
|
|
|
316
316
|
|
|
317
|
+
/***/ }),
|
|
318
|
+
|
|
319
|
+
/***/ "19aa":
|
|
320
|
+
/***/ (function(module, exports) {
|
|
321
|
+
|
|
322
|
+
module.exports = function (it, Constructor, name) {
|
|
323
|
+
if (!(it instanceof Constructor)) {
|
|
324
|
+
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
|
325
|
+
} return it;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
|
|
317
329
|
/***/ }),
|
|
318
330
|
|
|
319
331
|
/***/ "1be4":
|
|
@@ -381,6 +393,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
381
393
|
};
|
|
382
394
|
|
|
383
395
|
|
|
396
|
+
/***/ }),
|
|
397
|
+
|
|
398
|
+
/***/ "1cdc":
|
|
399
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
400
|
+
|
|
401
|
+
var userAgent = __webpack_require__("342f");
|
|
402
|
+
|
|
403
|
+
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
404
|
+
|
|
405
|
+
|
|
384
406
|
/***/ }),
|
|
385
407
|
|
|
386
408
|
/***/ "1d80":
|
|
@@ -420,6 +442,71 @@ module.exports = function (METHOD_NAME) {
|
|
|
420
442
|
};
|
|
421
443
|
|
|
422
444
|
|
|
445
|
+
/***/ }),
|
|
446
|
+
|
|
447
|
+
/***/ "2266":
|
|
448
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
449
|
+
|
|
450
|
+
var anObject = __webpack_require__("825a");
|
|
451
|
+
var isArrayIteratorMethod = __webpack_require__("e95a");
|
|
452
|
+
var toLength = __webpack_require__("50c4");
|
|
453
|
+
var bind = __webpack_require__("0366");
|
|
454
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
455
|
+
var iteratorClose = __webpack_require__("2a62");
|
|
456
|
+
|
|
457
|
+
var Result = function (stopped, result) {
|
|
458
|
+
this.stopped = stopped;
|
|
459
|
+
this.result = result;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
463
|
+
var that = options && options.that;
|
|
464
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
465
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
466
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
467
|
+
var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
|
|
468
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
469
|
+
|
|
470
|
+
var stop = function (condition) {
|
|
471
|
+
if (iterator) iteratorClose(iterator);
|
|
472
|
+
return new Result(true, condition);
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
var callFn = function (value) {
|
|
476
|
+
if (AS_ENTRIES) {
|
|
477
|
+
anObject(value);
|
|
478
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
479
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
if (IS_ITERATOR) {
|
|
483
|
+
iterator = iterable;
|
|
484
|
+
} else {
|
|
485
|
+
iterFn = getIteratorMethod(iterable);
|
|
486
|
+
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
|
487
|
+
// optimisation for array iterators
|
|
488
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
489
|
+
for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
|
490
|
+
result = callFn(iterable[index]);
|
|
491
|
+
if (result && result instanceof Result) return result;
|
|
492
|
+
} return new Result(false);
|
|
493
|
+
}
|
|
494
|
+
iterator = iterFn.call(iterable);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
next = iterator.next;
|
|
498
|
+
while (!(step = next.call(iterator)).done) {
|
|
499
|
+
try {
|
|
500
|
+
result = callFn(step.value);
|
|
501
|
+
} catch (error) {
|
|
502
|
+
iteratorClose(iterator);
|
|
503
|
+
throw error;
|
|
504
|
+
}
|
|
505
|
+
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
506
|
+
} return new Result(false);
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
|
|
423
510
|
/***/ }),
|
|
424
511
|
|
|
425
512
|
/***/ "23cb":
|
|
@@ -572,6 +659,33 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
572
659
|
}
|
|
573
660
|
|
|
574
661
|
|
|
662
|
+
/***/ }),
|
|
663
|
+
|
|
664
|
+
/***/ "2626":
|
|
665
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
666
|
+
|
|
667
|
+
"use strict";
|
|
668
|
+
|
|
669
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
670
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
671
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
672
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
673
|
+
|
|
674
|
+
var SPECIES = wellKnownSymbol('species');
|
|
675
|
+
|
|
676
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
677
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
678
|
+
var defineProperty = definePropertyModule.f;
|
|
679
|
+
|
|
680
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
681
|
+
defineProperty(Constructor, SPECIES, {
|
|
682
|
+
configurable: true,
|
|
683
|
+
get: function () { return this; }
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
|
|
575
689
|
/***/ }),
|
|
576
690
|
|
|
577
691
|
/***/ "2a62":
|
|
@@ -587,6 +701,120 @@ module.exports = function (iterator) {
|
|
|
587
701
|
};
|
|
588
702
|
|
|
589
703
|
|
|
704
|
+
/***/ }),
|
|
705
|
+
|
|
706
|
+
/***/ "2cf4":
|
|
707
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
708
|
+
|
|
709
|
+
var global = __webpack_require__("da84");
|
|
710
|
+
var fails = __webpack_require__("d039");
|
|
711
|
+
var bind = __webpack_require__("0366");
|
|
712
|
+
var html = __webpack_require__("1be4");
|
|
713
|
+
var createElement = __webpack_require__("cc12");
|
|
714
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
715
|
+
var IS_NODE = __webpack_require__("605d");
|
|
716
|
+
|
|
717
|
+
var location = global.location;
|
|
718
|
+
var set = global.setImmediate;
|
|
719
|
+
var clear = global.clearImmediate;
|
|
720
|
+
var process = global.process;
|
|
721
|
+
var MessageChannel = global.MessageChannel;
|
|
722
|
+
var Dispatch = global.Dispatch;
|
|
723
|
+
var counter = 0;
|
|
724
|
+
var queue = {};
|
|
725
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
726
|
+
var defer, channel, port;
|
|
727
|
+
|
|
728
|
+
var run = function (id) {
|
|
729
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
730
|
+
if (queue.hasOwnProperty(id)) {
|
|
731
|
+
var fn = queue[id];
|
|
732
|
+
delete queue[id];
|
|
733
|
+
fn();
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
var runner = function (id) {
|
|
738
|
+
return function () {
|
|
739
|
+
run(id);
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
var listener = function (event) {
|
|
744
|
+
run(event.data);
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
var post = function (id) {
|
|
748
|
+
// old engines have not location.origin
|
|
749
|
+
global.postMessage(id + '', location.protocol + '//' + location.host);
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
753
|
+
if (!set || !clear) {
|
|
754
|
+
set = function setImmediate(fn) {
|
|
755
|
+
var args = [];
|
|
756
|
+
var i = 1;
|
|
757
|
+
while (arguments.length > i) args.push(arguments[i++]);
|
|
758
|
+
queue[++counter] = function () {
|
|
759
|
+
// eslint-disable-next-line no-new-func -- spec requirement
|
|
760
|
+
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
|
761
|
+
};
|
|
762
|
+
defer(counter);
|
|
763
|
+
return counter;
|
|
764
|
+
};
|
|
765
|
+
clear = function clearImmediate(id) {
|
|
766
|
+
delete queue[id];
|
|
767
|
+
};
|
|
768
|
+
// Node.js 0.8-
|
|
769
|
+
if (IS_NODE) {
|
|
770
|
+
defer = function (id) {
|
|
771
|
+
process.nextTick(runner(id));
|
|
772
|
+
};
|
|
773
|
+
// Sphere (JS game engine) Dispatch API
|
|
774
|
+
} else if (Dispatch && Dispatch.now) {
|
|
775
|
+
defer = function (id) {
|
|
776
|
+
Dispatch.now(runner(id));
|
|
777
|
+
};
|
|
778
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
779
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
780
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
781
|
+
channel = new MessageChannel();
|
|
782
|
+
port = channel.port2;
|
|
783
|
+
channel.port1.onmessage = listener;
|
|
784
|
+
defer = bind(port.postMessage, port, 1);
|
|
785
|
+
// Browsers with postMessage, skip WebWorkers
|
|
786
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
787
|
+
} else if (
|
|
788
|
+
global.addEventListener &&
|
|
789
|
+
typeof postMessage == 'function' &&
|
|
790
|
+
!global.importScripts &&
|
|
791
|
+
location && location.protocol !== 'file:' &&
|
|
792
|
+
!fails(post)
|
|
793
|
+
) {
|
|
794
|
+
defer = post;
|
|
795
|
+
global.addEventListener('message', listener, false);
|
|
796
|
+
// IE8-
|
|
797
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
798
|
+
defer = function (id) {
|
|
799
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
800
|
+
html.removeChild(this);
|
|
801
|
+
run(id);
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
// Rest old browsers
|
|
805
|
+
} else {
|
|
806
|
+
defer = function (id) {
|
|
807
|
+
setTimeout(runner(id), 0);
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
module.exports = {
|
|
813
|
+
set: set,
|
|
814
|
+
clear: clear
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
|
|
590
818
|
/***/ }),
|
|
591
819
|
|
|
592
820
|
/***/ "2d00":
|
|
@@ -781,6 +1009,21 @@ module.exports = function (key) {
|
|
|
781
1009
|
};
|
|
782
1010
|
|
|
783
1011
|
|
|
1012
|
+
/***/ }),
|
|
1013
|
+
|
|
1014
|
+
/***/ "44de":
|
|
1015
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1016
|
+
|
|
1017
|
+
var global = __webpack_require__("da84");
|
|
1018
|
+
|
|
1019
|
+
module.exports = function (a, b) {
|
|
1020
|
+
var console = global.console;
|
|
1021
|
+
if (console && console.error) {
|
|
1022
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
|
|
784
1027
|
/***/ }),
|
|
785
1028
|
|
|
786
1029
|
/***/ "44e7":
|
|
@@ -800,6 +1043,26 @@ module.exports = function (it) {
|
|
|
800
1043
|
};
|
|
801
1044
|
|
|
802
1045
|
|
|
1046
|
+
/***/ }),
|
|
1047
|
+
|
|
1048
|
+
/***/ "4840":
|
|
1049
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1050
|
+
|
|
1051
|
+
var anObject = __webpack_require__("825a");
|
|
1052
|
+
var aFunction = __webpack_require__("1c0b");
|
|
1053
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
1054
|
+
|
|
1055
|
+
var SPECIES = wellKnownSymbol('species');
|
|
1056
|
+
|
|
1057
|
+
// `SpeciesConstructor` abstract operation
|
|
1058
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1059
|
+
module.exports = function (O, defaultConstructor) {
|
|
1060
|
+
var C = anObject(O).constructor;
|
|
1061
|
+
var S;
|
|
1062
|
+
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
|
|
803
1066
|
/***/ }),
|
|
804
1067
|
|
|
805
1068
|
/***/ "4930":
|
|
@@ -2396,19 +2659,774 @@ var normalize = isForced.normalize = function (string) {
|
|
|
2396
2659
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
2397
2660
|
};
|
|
2398
2661
|
|
|
2399
|
-
var data = isForced.data = {};
|
|
2400
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
2401
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
2662
|
+
var data = isForced.data = {};
|
|
2663
|
+
var NATIVE = isForced.NATIVE = 'N';
|
|
2664
|
+
var POLYFILL = isForced.POLYFILL = 'P';
|
|
2665
|
+
|
|
2666
|
+
module.exports = isForced;
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
/***/ }),
|
|
2670
|
+
|
|
2671
|
+
/***/ "96a7":
|
|
2672
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2673
|
+
|
|
2674
|
+
// extracted by mini-css-extract-plugin
|
|
2675
|
+
|
|
2676
|
+
/***/ }),
|
|
2677
|
+
|
|
2678
|
+
/***/ "96cf":
|
|
2679
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2680
|
+
|
|
2681
|
+
/**
|
|
2682
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
2683
|
+
*
|
|
2684
|
+
* This source code is licensed under the MIT license found in the
|
|
2685
|
+
* LICENSE file in the root directory of this source tree.
|
|
2686
|
+
*/
|
|
2687
|
+
|
|
2688
|
+
var runtime = (function (exports) {
|
|
2689
|
+
"use strict";
|
|
2690
|
+
|
|
2691
|
+
var Op = Object.prototype;
|
|
2692
|
+
var hasOwn = Op.hasOwnProperty;
|
|
2693
|
+
var undefined; // More compressible than void 0.
|
|
2694
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
2695
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
2696
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
2697
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
2698
|
+
|
|
2699
|
+
function define(obj, key, value) {
|
|
2700
|
+
Object.defineProperty(obj, key, {
|
|
2701
|
+
value: value,
|
|
2702
|
+
enumerable: true,
|
|
2703
|
+
configurable: true,
|
|
2704
|
+
writable: true
|
|
2705
|
+
});
|
|
2706
|
+
return obj[key];
|
|
2707
|
+
}
|
|
2708
|
+
try {
|
|
2709
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
2710
|
+
define({}, "");
|
|
2711
|
+
} catch (err) {
|
|
2712
|
+
define = function(obj, key, value) {
|
|
2713
|
+
return obj[key] = value;
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
2718
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
2719
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
2720
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
2721
|
+
var context = new Context(tryLocsList || []);
|
|
2722
|
+
|
|
2723
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
2724
|
+
// .throw, and .return methods.
|
|
2725
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
2726
|
+
|
|
2727
|
+
return generator;
|
|
2728
|
+
}
|
|
2729
|
+
exports.wrap = wrap;
|
|
2730
|
+
|
|
2731
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
2732
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
2733
|
+
// have been (and was previously) designed to take a closure to be
|
|
2734
|
+
// invoked without arguments, but in all the cases we care about we
|
|
2735
|
+
// already have an existing method we want to call, so there's no need
|
|
2736
|
+
// to create a new function object. We can even get away with assuming
|
|
2737
|
+
// the method takes exactly one argument, since that happens to be true
|
|
2738
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
2739
|
+
// only additional allocation required is the completion record, which
|
|
2740
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
2741
|
+
function tryCatch(fn, obj, arg) {
|
|
2742
|
+
try {
|
|
2743
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
2744
|
+
} catch (err) {
|
|
2745
|
+
return { type: "throw", arg: err };
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
2750
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
2751
|
+
var GenStateExecuting = "executing";
|
|
2752
|
+
var GenStateCompleted = "completed";
|
|
2753
|
+
|
|
2754
|
+
// Returning this object from the innerFn has the same effect as
|
|
2755
|
+
// breaking out of the dispatch switch statement.
|
|
2756
|
+
var ContinueSentinel = {};
|
|
2757
|
+
|
|
2758
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
2759
|
+
// .constructor.prototype properties for functions that return Generator
|
|
2760
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
2761
|
+
// minifier not to mangle the names of these two functions.
|
|
2762
|
+
function Generator() {}
|
|
2763
|
+
function GeneratorFunction() {}
|
|
2764
|
+
function GeneratorFunctionPrototype() {}
|
|
2765
|
+
|
|
2766
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
2767
|
+
// don't natively support it.
|
|
2768
|
+
var IteratorPrototype = {};
|
|
2769
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
2770
|
+
return this;
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
var getProto = Object.getPrototypeOf;
|
|
2774
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
2775
|
+
if (NativeIteratorPrototype &&
|
|
2776
|
+
NativeIteratorPrototype !== Op &&
|
|
2777
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
2778
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
2779
|
+
// of the polyfill.
|
|
2780
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
2784
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
2785
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
2786
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
2787
|
+
GeneratorFunction.displayName = define(
|
|
2788
|
+
GeneratorFunctionPrototype,
|
|
2789
|
+
toStringTagSymbol,
|
|
2790
|
+
"GeneratorFunction"
|
|
2791
|
+
);
|
|
2792
|
+
|
|
2793
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
2794
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
2795
|
+
function defineIteratorMethods(prototype) {
|
|
2796
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
2797
|
+
define(prototype, method, function(arg) {
|
|
2798
|
+
return this._invoke(method, arg);
|
|
2799
|
+
});
|
|
2800
|
+
});
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
2804
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
2805
|
+
return ctor
|
|
2806
|
+
? ctor === GeneratorFunction ||
|
|
2807
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
2808
|
+
// do is to check its .name property.
|
|
2809
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
2810
|
+
: false;
|
|
2811
|
+
};
|
|
2812
|
+
|
|
2813
|
+
exports.mark = function(genFun) {
|
|
2814
|
+
if (Object.setPrototypeOf) {
|
|
2815
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
2816
|
+
} else {
|
|
2817
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
2818
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
2819
|
+
}
|
|
2820
|
+
genFun.prototype = Object.create(Gp);
|
|
2821
|
+
return genFun;
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2824
|
+
// Within the body of any async function, `await x` is transformed to
|
|
2825
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2826
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2827
|
+
// meant to be awaited.
|
|
2828
|
+
exports.awrap = function(arg) {
|
|
2829
|
+
return { __await: arg };
|
|
2830
|
+
};
|
|
2831
|
+
|
|
2832
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
2833
|
+
function invoke(method, arg, resolve, reject) {
|
|
2834
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
2835
|
+
if (record.type === "throw") {
|
|
2836
|
+
reject(record.arg);
|
|
2837
|
+
} else {
|
|
2838
|
+
var result = record.arg;
|
|
2839
|
+
var value = result.value;
|
|
2840
|
+
if (value &&
|
|
2841
|
+
typeof value === "object" &&
|
|
2842
|
+
hasOwn.call(value, "__await")) {
|
|
2843
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
2844
|
+
invoke("next", value, resolve, reject);
|
|
2845
|
+
}, function(err) {
|
|
2846
|
+
invoke("throw", err, resolve, reject);
|
|
2847
|
+
});
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
2851
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
2852
|
+
// the .value of the Promise<{value,done}> result for the
|
|
2853
|
+
// current iteration.
|
|
2854
|
+
result.value = unwrapped;
|
|
2855
|
+
resolve(result);
|
|
2856
|
+
}, function(error) {
|
|
2857
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
2858
|
+
// into the async generator function so it can be handled there.
|
|
2859
|
+
return invoke("throw", error, resolve, reject);
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
var previousPromise;
|
|
2865
|
+
|
|
2866
|
+
function enqueue(method, arg) {
|
|
2867
|
+
function callInvokeWithMethodAndArg() {
|
|
2868
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
2869
|
+
invoke(method, arg, resolve, reject);
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
return previousPromise =
|
|
2874
|
+
// If enqueue has been called before, then we want to wait until
|
|
2875
|
+
// all previous Promises have been resolved before calling invoke,
|
|
2876
|
+
// so that results are always delivered in the correct order. If
|
|
2877
|
+
// enqueue has not been called before, then it is important to
|
|
2878
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
2879
|
+
// so that the async generator function has the opportunity to do
|
|
2880
|
+
// any necessary setup in a predictable way. This predictability
|
|
2881
|
+
// is why the Promise constructor synchronously invokes its
|
|
2882
|
+
// executor callback, and why async functions synchronously
|
|
2883
|
+
// execute code before the first await. Since we implement simple
|
|
2884
|
+
// async functions in terms of async generators, it is especially
|
|
2885
|
+
// important to get this right, even though it requires care.
|
|
2886
|
+
previousPromise ? previousPromise.then(
|
|
2887
|
+
callInvokeWithMethodAndArg,
|
|
2888
|
+
// Avoid propagating failures to Promises returned by later
|
|
2889
|
+
// invocations of the iterator.
|
|
2890
|
+
callInvokeWithMethodAndArg
|
|
2891
|
+
) : callInvokeWithMethodAndArg();
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
// Define the unified helper method that is used to implement .next,
|
|
2895
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
2896
|
+
this._invoke = enqueue;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
2900
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
2901
|
+
return this;
|
|
2902
|
+
};
|
|
2903
|
+
exports.AsyncIterator = AsyncIterator;
|
|
2904
|
+
|
|
2905
|
+
// Note that simple async functions are implemented on top of
|
|
2906
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
2907
|
+
// the final result produced by the iterator.
|
|
2908
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
2909
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
2910
|
+
|
|
2911
|
+
var iter = new AsyncIterator(
|
|
2912
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
2913
|
+
PromiseImpl
|
|
2914
|
+
);
|
|
2915
|
+
|
|
2916
|
+
return exports.isGeneratorFunction(outerFn)
|
|
2917
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
2918
|
+
: iter.next().then(function(result) {
|
|
2919
|
+
return result.done ? result.value : iter.next();
|
|
2920
|
+
});
|
|
2921
|
+
};
|
|
2922
|
+
|
|
2923
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
2924
|
+
var state = GenStateSuspendedStart;
|
|
2925
|
+
|
|
2926
|
+
return function invoke(method, arg) {
|
|
2927
|
+
if (state === GenStateExecuting) {
|
|
2928
|
+
throw new Error("Generator is already running");
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
if (state === GenStateCompleted) {
|
|
2932
|
+
if (method === "throw") {
|
|
2933
|
+
throw arg;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
2937
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
2938
|
+
return doneResult();
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
context.method = method;
|
|
2942
|
+
context.arg = arg;
|
|
2943
|
+
|
|
2944
|
+
while (true) {
|
|
2945
|
+
var delegate = context.delegate;
|
|
2946
|
+
if (delegate) {
|
|
2947
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
2948
|
+
if (delegateResult) {
|
|
2949
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
2950
|
+
return delegateResult;
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
if (context.method === "next") {
|
|
2955
|
+
// Setting context._sent for legacy support of Babel's
|
|
2956
|
+
// function.sent implementation.
|
|
2957
|
+
context.sent = context._sent = context.arg;
|
|
2958
|
+
|
|
2959
|
+
} else if (context.method === "throw") {
|
|
2960
|
+
if (state === GenStateSuspendedStart) {
|
|
2961
|
+
state = GenStateCompleted;
|
|
2962
|
+
throw context.arg;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
context.dispatchException(context.arg);
|
|
2966
|
+
|
|
2967
|
+
} else if (context.method === "return") {
|
|
2968
|
+
context.abrupt("return", context.arg);
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
state = GenStateExecuting;
|
|
2972
|
+
|
|
2973
|
+
var record = tryCatch(innerFn, self, context);
|
|
2974
|
+
if (record.type === "normal") {
|
|
2975
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
2976
|
+
// GenStateExecuting and loop back for another invocation.
|
|
2977
|
+
state = context.done
|
|
2978
|
+
? GenStateCompleted
|
|
2979
|
+
: GenStateSuspendedYield;
|
|
2980
|
+
|
|
2981
|
+
if (record.arg === ContinueSentinel) {
|
|
2982
|
+
continue;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
return {
|
|
2986
|
+
value: record.arg,
|
|
2987
|
+
done: context.done
|
|
2988
|
+
};
|
|
2989
|
+
|
|
2990
|
+
} else if (record.type === "throw") {
|
|
2991
|
+
state = GenStateCompleted;
|
|
2992
|
+
// Dispatch the exception by looping back around to the
|
|
2993
|
+
// context.dispatchException(context.arg) call above.
|
|
2994
|
+
context.method = "throw";
|
|
2995
|
+
context.arg = record.arg;
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
};
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
3002
|
+
// result, either by returning a { value, done } result from the
|
|
3003
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
3004
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
3005
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
3006
|
+
var method = delegate.iterator[context.method];
|
|
3007
|
+
if (method === undefined) {
|
|
3008
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
3009
|
+
// method always terminates the yield* loop.
|
|
3010
|
+
context.delegate = null;
|
|
3011
|
+
|
|
3012
|
+
if (context.method === "throw") {
|
|
3013
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
3014
|
+
if (delegate.iterator["return"]) {
|
|
3015
|
+
// If the delegate iterator has a return method, give it a
|
|
3016
|
+
// chance to clean up.
|
|
3017
|
+
context.method = "return";
|
|
3018
|
+
context.arg = undefined;
|
|
3019
|
+
maybeInvokeDelegate(delegate, context);
|
|
3020
|
+
|
|
3021
|
+
if (context.method === "throw") {
|
|
3022
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
3023
|
+
// "return" to "throw", let that override the TypeError below.
|
|
3024
|
+
return ContinueSentinel;
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
context.method = "throw";
|
|
3029
|
+
context.arg = new TypeError(
|
|
3030
|
+
"The iterator does not provide a 'throw' method");
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
return ContinueSentinel;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
3037
|
+
|
|
3038
|
+
if (record.type === "throw") {
|
|
3039
|
+
context.method = "throw";
|
|
3040
|
+
context.arg = record.arg;
|
|
3041
|
+
context.delegate = null;
|
|
3042
|
+
return ContinueSentinel;
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
var info = record.arg;
|
|
3046
|
+
|
|
3047
|
+
if (! info) {
|
|
3048
|
+
context.method = "throw";
|
|
3049
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
3050
|
+
context.delegate = null;
|
|
3051
|
+
return ContinueSentinel;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
if (info.done) {
|
|
3055
|
+
// Assign the result of the finished delegate to the temporary
|
|
3056
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
3057
|
+
context[delegate.resultName] = info.value;
|
|
3058
|
+
|
|
3059
|
+
// Resume execution at the desired location (see delegateYield).
|
|
3060
|
+
context.next = delegate.nextLoc;
|
|
3061
|
+
|
|
3062
|
+
// If context.method was "throw" but the delegate handled the
|
|
3063
|
+
// exception, let the outer generator proceed normally. If
|
|
3064
|
+
// context.method was "next", forget context.arg since it has been
|
|
3065
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
3066
|
+
// "return", allow the original .return call to continue in the
|
|
3067
|
+
// outer generator.
|
|
3068
|
+
if (context.method !== "return") {
|
|
3069
|
+
context.method = "next";
|
|
3070
|
+
context.arg = undefined;
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
} else {
|
|
3074
|
+
// Re-yield the result returned by the delegate method.
|
|
3075
|
+
return info;
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
3079
|
+
// the outer generator.
|
|
3080
|
+
context.delegate = null;
|
|
3081
|
+
return ContinueSentinel;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
3085
|
+
// unified ._invoke helper method.
|
|
3086
|
+
defineIteratorMethods(Gp);
|
|
3087
|
+
|
|
3088
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
3089
|
+
|
|
3090
|
+
// A Generator should always return itself as the iterator object when the
|
|
3091
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
3092
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
3093
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
3094
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
3095
|
+
Gp[iteratorSymbol] = function() {
|
|
3096
|
+
return this;
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
Gp.toString = function() {
|
|
3100
|
+
return "[object Generator]";
|
|
3101
|
+
};
|
|
3102
|
+
|
|
3103
|
+
function pushTryEntry(locs) {
|
|
3104
|
+
var entry = { tryLoc: locs[0] };
|
|
3105
|
+
|
|
3106
|
+
if (1 in locs) {
|
|
3107
|
+
entry.catchLoc = locs[1];
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
if (2 in locs) {
|
|
3111
|
+
entry.finallyLoc = locs[2];
|
|
3112
|
+
entry.afterLoc = locs[3];
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
this.tryEntries.push(entry);
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
function resetTryEntry(entry) {
|
|
3119
|
+
var record = entry.completion || {};
|
|
3120
|
+
record.type = "normal";
|
|
3121
|
+
delete record.arg;
|
|
3122
|
+
entry.completion = record;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
function Context(tryLocsList) {
|
|
3126
|
+
// The root entry object (effectively a try statement without a catch
|
|
3127
|
+
// or a finally block) gives us a place to store values thrown from
|
|
3128
|
+
// locations where there is no enclosing try statement.
|
|
3129
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
3130
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
3131
|
+
this.reset(true);
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
exports.keys = function(object) {
|
|
3135
|
+
var keys = [];
|
|
3136
|
+
for (var key in object) {
|
|
3137
|
+
keys.push(key);
|
|
3138
|
+
}
|
|
3139
|
+
keys.reverse();
|
|
3140
|
+
|
|
3141
|
+
// Rather than returning an object with a next method, we keep
|
|
3142
|
+
// things simple and return the next function itself.
|
|
3143
|
+
return function next() {
|
|
3144
|
+
while (keys.length) {
|
|
3145
|
+
var key = keys.pop();
|
|
3146
|
+
if (key in object) {
|
|
3147
|
+
next.value = key;
|
|
3148
|
+
next.done = false;
|
|
3149
|
+
return next;
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
// To avoid creating an additional object, we just hang the .value
|
|
3154
|
+
// and .done properties off the next function object itself. This
|
|
3155
|
+
// also ensures that the minifier will not anonymize the function.
|
|
3156
|
+
next.done = true;
|
|
3157
|
+
return next;
|
|
3158
|
+
};
|
|
3159
|
+
};
|
|
3160
|
+
|
|
3161
|
+
function values(iterable) {
|
|
3162
|
+
if (iterable) {
|
|
3163
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
3164
|
+
if (iteratorMethod) {
|
|
3165
|
+
return iteratorMethod.call(iterable);
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
if (typeof iterable.next === "function") {
|
|
3169
|
+
return iterable;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
if (!isNaN(iterable.length)) {
|
|
3173
|
+
var i = -1, next = function next() {
|
|
3174
|
+
while (++i < iterable.length) {
|
|
3175
|
+
if (hasOwn.call(iterable, i)) {
|
|
3176
|
+
next.value = iterable[i];
|
|
3177
|
+
next.done = false;
|
|
3178
|
+
return next;
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
next.value = undefined;
|
|
3183
|
+
next.done = true;
|
|
3184
|
+
|
|
3185
|
+
return next;
|
|
3186
|
+
};
|
|
3187
|
+
|
|
3188
|
+
return next.next = next;
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
// Return an iterator with no values.
|
|
3193
|
+
return { next: doneResult };
|
|
3194
|
+
}
|
|
3195
|
+
exports.values = values;
|
|
3196
|
+
|
|
3197
|
+
function doneResult() {
|
|
3198
|
+
return { value: undefined, done: true };
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
Context.prototype = {
|
|
3202
|
+
constructor: Context,
|
|
3203
|
+
|
|
3204
|
+
reset: function(skipTempReset) {
|
|
3205
|
+
this.prev = 0;
|
|
3206
|
+
this.next = 0;
|
|
3207
|
+
// Resetting context._sent for legacy support of Babel's
|
|
3208
|
+
// function.sent implementation.
|
|
3209
|
+
this.sent = this._sent = undefined;
|
|
3210
|
+
this.done = false;
|
|
3211
|
+
this.delegate = null;
|
|
3212
|
+
|
|
3213
|
+
this.method = "next";
|
|
3214
|
+
this.arg = undefined;
|
|
3215
|
+
|
|
3216
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
3217
|
+
|
|
3218
|
+
if (!skipTempReset) {
|
|
3219
|
+
for (var name in this) {
|
|
3220
|
+
// Not sure about the optimal order of these conditions:
|
|
3221
|
+
if (name.charAt(0) === "t" &&
|
|
3222
|
+
hasOwn.call(this, name) &&
|
|
3223
|
+
!isNaN(+name.slice(1))) {
|
|
3224
|
+
this[name] = undefined;
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
},
|
|
3229
|
+
|
|
3230
|
+
stop: function() {
|
|
3231
|
+
this.done = true;
|
|
3232
|
+
|
|
3233
|
+
var rootEntry = this.tryEntries[0];
|
|
3234
|
+
var rootRecord = rootEntry.completion;
|
|
3235
|
+
if (rootRecord.type === "throw") {
|
|
3236
|
+
throw rootRecord.arg;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
return this.rval;
|
|
3240
|
+
},
|
|
3241
|
+
|
|
3242
|
+
dispatchException: function(exception) {
|
|
3243
|
+
if (this.done) {
|
|
3244
|
+
throw exception;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
var context = this;
|
|
3248
|
+
function handle(loc, caught) {
|
|
3249
|
+
record.type = "throw";
|
|
3250
|
+
record.arg = exception;
|
|
3251
|
+
context.next = loc;
|
|
3252
|
+
|
|
3253
|
+
if (caught) {
|
|
3254
|
+
// If the dispatched exception was caught by a catch block,
|
|
3255
|
+
// then let that catch block handle the exception normally.
|
|
3256
|
+
context.method = "next";
|
|
3257
|
+
context.arg = undefined;
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
return !! caught;
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3264
|
+
var entry = this.tryEntries[i];
|
|
3265
|
+
var record = entry.completion;
|
|
3266
|
+
|
|
3267
|
+
if (entry.tryLoc === "root") {
|
|
3268
|
+
// Exception thrown outside of any try block that could handle
|
|
3269
|
+
// it, so set the completion value of the entire function to
|
|
3270
|
+
// throw the exception.
|
|
3271
|
+
return handle("end");
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
if (entry.tryLoc <= this.prev) {
|
|
3275
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
3276
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
3277
|
+
|
|
3278
|
+
if (hasCatch && hasFinally) {
|
|
3279
|
+
if (this.prev < entry.catchLoc) {
|
|
3280
|
+
return handle(entry.catchLoc, true);
|
|
3281
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
3282
|
+
return handle(entry.finallyLoc);
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
} else if (hasCatch) {
|
|
3286
|
+
if (this.prev < entry.catchLoc) {
|
|
3287
|
+
return handle(entry.catchLoc, true);
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
} else if (hasFinally) {
|
|
3291
|
+
if (this.prev < entry.finallyLoc) {
|
|
3292
|
+
return handle(entry.finallyLoc);
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
} else {
|
|
3296
|
+
throw new Error("try statement without catch or finally");
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
},
|
|
3301
|
+
|
|
3302
|
+
abrupt: function(type, arg) {
|
|
3303
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3304
|
+
var entry = this.tryEntries[i];
|
|
3305
|
+
if (entry.tryLoc <= this.prev &&
|
|
3306
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
3307
|
+
this.prev < entry.finallyLoc) {
|
|
3308
|
+
var finallyEntry = entry;
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
if (finallyEntry &&
|
|
3314
|
+
(type === "break" ||
|
|
3315
|
+
type === "continue") &&
|
|
3316
|
+
finallyEntry.tryLoc <= arg &&
|
|
3317
|
+
arg <= finallyEntry.finallyLoc) {
|
|
3318
|
+
// Ignore the finally entry if control is not jumping to a
|
|
3319
|
+
// location outside the try/catch block.
|
|
3320
|
+
finallyEntry = null;
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
3324
|
+
record.type = type;
|
|
3325
|
+
record.arg = arg;
|
|
3326
|
+
|
|
3327
|
+
if (finallyEntry) {
|
|
3328
|
+
this.method = "next";
|
|
3329
|
+
this.next = finallyEntry.finallyLoc;
|
|
3330
|
+
return ContinueSentinel;
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
return this.complete(record);
|
|
3334
|
+
},
|
|
3335
|
+
|
|
3336
|
+
complete: function(record, afterLoc) {
|
|
3337
|
+
if (record.type === "throw") {
|
|
3338
|
+
throw record.arg;
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
if (record.type === "break" ||
|
|
3342
|
+
record.type === "continue") {
|
|
3343
|
+
this.next = record.arg;
|
|
3344
|
+
} else if (record.type === "return") {
|
|
3345
|
+
this.rval = this.arg = record.arg;
|
|
3346
|
+
this.method = "return";
|
|
3347
|
+
this.next = "end";
|
|
3348
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
3349
|
+
this.next = afterLoc;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
return ContinueSentinel;
|
|
3353
|
+
},
|
|
3354
|
+
|
|
3355
|
+
finish: function(finallyLoc) {
|
|
3356
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3357
|
+
var entry = this.tryEntries[i];
|
|
3358
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
3359
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
3360
|
+
resetTryEntry(entry);
|
|
3361
|
+
return ContinueSentinel;
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
|
|
3366
|
+
"catch": function(tryLoc) {
|
|
3367
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3368
|
+
var entry = this.tryEntries[i];
|
|
3369
|
+
if (entry.tryLoc === tryLoc) {
|
|
3370
|
+
var record = entry.completion;
|
|
3371
|
+
if (record.type === "throw") {
|
|
3372
|
+
var thrown = record.arg;
|
|
3373
|
+
resetTryEntry(entry);
|
|
3374
|
+
}
|
|
3375
|
+
return thrown;
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
// The context.catch method must only be called with a location
|
|
3380
|
+
// argument that corresponds to a known catch block.
|
|
3381
|
+
throw new Error("illegal catch attempt");
|
|
3382
|
+
},
|
|
3383
|
+
|
|
3384
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
3385
|
+
this.delegate = {
|
|
3386
|
+
iterator: values(iterable),
|
|
3387
|
+
resultName: resultName,
|
|
3388
|
+
nextLoc: nextLoc
|
|
3389
|
+
};
|
|
2402
3390
|
|
|
2403
|
-
|
|
3391
|
+
if (this.method === "next") {
|
|
3392
|
+
// Deliberately forget the last sent value so that we don't
|
|
3393
|
+
// accidentally pass it on to the delegate.
|
|
3394
|
+
this.arg = undefined;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
return ContinueSentinel;
|
|
3398
|
+
}
|
|
3399
|
+
};
|
|
2404
3400
|
|
|
3401
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
3402
|
+
// or not, return the runtime object so that we can declare the variable
|
|
3403
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
3404
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
3405
|
+
return exports;
|
|
2405
3406
|
|
|
2406
|
-
|
|
3407
|
+
}(
|
|
3408
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
3409
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
3410
|
+
// object. Either way, the resulting object will be used to initialize
|
|
3411
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
3412
|
+
true ? module.exports : undefined
|
|
3413
|
+
));
|
|
2407
3414
|
|
|
2408
|
-
|
|
2409
|
-
|
|
3415
|
+
try {
|
|
3416
|
+
regeneratorRuntime = runtime;
|
|
3417
|
+
} catch (accidentalStrictMode) {
|
|
3418
|
+
// This module should not be running in strict mode, so the above
|
|
3419
|
+
// assignment should always work unless something is misconfigured. Just
|
|
3420
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
3421
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
3422
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
3423
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
3424
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
3425
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
3426
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
3427
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
3428
|
+
}
|
|
2410
3429
|
|
|
2411
|
-
// extracted by mini-css-extract-plugin
|
|
2412
3430
|
|
|
2413
3431
|
/***/ }),
|
|
2414
3432
|
|
|
@@ -2581,6 +3599,16 @@ exports.BROKEN_CARET = fails(function () {
|
|
|
2581
3599
|
});
|
|
2582
3600
|
|
|
2583
3601
|
|
|
3602
|
+
/***/ }),
|
|
3603
|
+
|
|
3604
|
+
/***/ "a4b4":
|
|
3605
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3606
|
+
|
|
3607
|
+
var userAgent = __webpack_require__("342f");
|
|
3608
|
+
|
|
3609
|
+
module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
|
3610
|
+
|
|
3611
|
+
|
|
2584
3612
|
/***/ }),
|
|
2585
3613
|
|
|
2586
3614
|
/***/ "a4d3":
|
|
@@ -3213,6 +4241,93 @@ if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
|
|
|
3213
4241
|
/* unused harmony reexport * */
|
|
3214
4242
|
|
|
3215
4243
|
|
|
4244
|
+
/***/ }),
|
|
4245
|
+
|
|
4246
|
+
/***/ "b575":
|
|
4247
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4248
|
+
|
|
4249
|
+
var global = __webpack_require__("da84");
|
|
4250
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
4251
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
4252
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
4253
|
+
var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
|
|
4254
|
+
var IS_NODE = __webpack_require__("605d");
|
|
4255
|
+
|
|
4256
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
4257
|
+
var document = global.document;
|
|
4258
|
+
var process = global.process;
|
|
4259
|
+
var Promise = global.Promise;
|
|
4260
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
4261
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
4262
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
4263
|
+
|
|
4264
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
4265
|
+
|
|
4266
|
+
// modern engines have queueMicrotask method
|
|
4267
|
+
if (!queueMicrotask) {
|
|
4268
|
+
flush = function () {
|
|
4269
|
+
var parent, fn;
|
|
4270
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
4271
|
+
while (head) {
|
|
4272
|
+
fn = head.fn;
|
|
4273
|
+
head = head.next;
|
|
4274
|
+
try {
|
|
4275
|
+
fn();
|
|
4276
|
+
} catch (error) {
|
|
4277
|
+
if (head) notify();
|
|
4278
|
+
else last = undefined;
|
|
4279
|
+
throw error;
|
|
4280
|
+
}
|
|
4281
|
+
} last = undefined;
|
|
4282
|
+
if (parent) parent.enter();
|
|
4283
|
+
};
|
|
4284
|
+
|
|
4285
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
4286
|
+
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
4287
|
+
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
|
|
4288
|
+
toggle = true;
|
|
4289
|
+
node = document.createTextNode('');
|
|
4290
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
4291
|
+
notify = function () {
|
|
4292
|
+
node.data = toggle = !toggle;
|
|
4293
|
+
};
|
|
4294
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
4295
|
+
} else if (Promise && Promise.resolve) {
|
|
4296
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
4297
|
+
promise = Promise.resolve(undefined);
|
|
4298
|
+
then = promise.then;
|
|
4299
|
+
notify = function () {
|
|
4300
|
+
then.call(promise, flush);
|
|
4301
|
+
};
|
|
4302
|
+
// Node.js without promises
|
|
4303
|
+
} else if (IS_NODE) {
|
|
4304
|
+
notify = function () {
|
|
4305
|
+
process.nextTick(flush);
|
|
4306
|
+
};
|
|
4307
|
+
// for other environments - macrotask based on:
|
|
4308
|
+
// - setImmediate
|
|
4309
|
+
// - MessageChannel
|
|
4310
|
+
// - window.postMessag
|
|
4311
|
+
// - onreadystatechange
|
|
4312
|
+
// - setTimeout
|
|
4313
|
+
} else {
|
|
4314
|
+
notify = function () {
|
|
4315
|
+
// strange IE + webpack dev server bug - use .call(global)
|
|
4316
|
+
macrotask.call(global, flush);
|
|
4317
|
+
};
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
module.exports = queueMicrotask || function (fn) {
|
|
4322
|
+
var task = { fn: fn, next: undefined };
|
|
4323
|
+
if (last) last.next = task;
|
|
4324
|
+
if (!head) {
|
|
4325
|
+
head = task;
|
|
4326
|
+
notify();
|
|
4327
|
+
} last = task;
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
|
|
3216
4331
|
/***/ }),
|
|
3217
4332
|
|
|
3218
4333
|
/***/ "b622":
|
|
@@ -3486,6 +4601,25 @@ module.exports = function (it) {
|
|
|
3486
4601
|
};
|
|
3487
4602
|
|
|
3488
4603
|
|
|
4604
|
+
/***/ }),
|
|
4605
|
+
|
|
4606
|
+
/***/ "cdf9":
|
|
4607
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4608
|
+
|
|
4609
|
+
var anObject = __webpack_require__("825a");
|
|
4610
|
+
var isObject = __webpack_require__("861d");
|
|
4611
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
4612
|
+
|
|
4613
|
+
module.exports = function (C, x) {
|
|
4614
|
+
anObject(C);
|
|
4615
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
4616
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
4617
|
+
var resolve = promiseCapability.resolve;
|
|
4618
|
+
resolve(x);
|
|
4619
|
+
return promiseCapability.promise;
|
|
4620
|
+
};
|
|
4621
|
+
|
|
4622
|
+
|
|
3489
4623
|
/***/ }),
|
|
3490
4624
|
|
|
3491
4625
|
/***/ "ce4e":
|
|
@@ -4109,6 +5243,19 @@ addToUnscopables('values');
|
|
|
4109
5243
|
addToUnscopables('entries');
|
|
4110
5244
|
|
|
4111
5245
|
|
|
5246
|
+
/***/ }),
|
|
5247
|
+
|
|
5248
|
+
/***/ "e2cc":
|
|
5249
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5250
|
+
|
|
5251
|
+
var redefine = __webpack_require__("6eeb");
|
|
5252
|
+
|
|
5253
|
+
module.exports = function (target, src, options) {
|
|
5254
|
+
for (var key in src) redefine(target, key, src[key], options);
|
|
5255
|
+
return target;
|
|
5256
|
+
};
|
|
5257
|
+
|
|
5258
|
+
|
|
4112
5259
|
/***/ }),
|
|
4113
5260
|
|
|
4114
5261
|
/***/ "e439":
|
|
@@ -4142,6 +5289,409 @@ var wellKnownSymbol = __webpack_require__("b622");
|
|
|
4142
5289
|
exports.f = wellKnownSymbol;
|
|
4143
5290
|
|
|
4144
5291
|
|
|
5292
|
+
/***/ }),
|
|
5293
|
+
|
|
5294
|
+
/***/ "e667":
|
|
5295
|
+
/***/ (function(module, exports) {
|
|
5296
|
+
|
|
5297
|
+
module.exports = function (exec) {
|
|
5298
|
+
try {
|
|
5299
|
+
return { error: false, value: exec() };
|
|
5300
|
+
} catch (error) {
|
|
5301
|
+
return { error: true, value: error };
|
|
5302
|
+
}
|
|
5303
|
+
};
|
|
5304
|
+
|
|
5305
|
+
|
|
5306
|
+
/***/ }),
|
|
5307
|
+
|
|
5308
|
+
/***/ "e6cf":
|
|
5309
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5310
|
+
|
|
5311
|
+
"use strict";
|
|
5312
|
+
|
|
5313
|
+
var $ = __webpack_require__("23e7");
|
|
5314
|
+
var IS_PURE = __webpack_require__("c430");
|
|
5315
|
+
var global = __webpack_require__("da84");
|
|
5316
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
5317
|
+
var NativePromise = __webpack_require__("fea9");
|
|
5318
|
+
var redefine = __webpack_require__("6eeb");
|
|
5319
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
5320
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
5321
|
+
var setSpecies = __webpack_require__("2626");
|
|
5322
|
+
var isObject = __webpack_require__("861d");
|
|
5323
|
+
var aFunction = __webpack_require__("1c0b");
|
|
5324
|
+
var anInstance = __webpack_require__("19aa");
|
|
5325
|
+
var inspectSource = __webpack_require__("8925");
|
|
5326
|
+
var iterate = __webpack_require__("2266");
|
|
5327
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
5328
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
5329
|
+
var task = __webpack_require__("2cf4").set;
|
|
5330
|
+
var microtask = __webpack_require__("b575");
|
|
5331
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
5332
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
5333
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
5334
|
+
var perform = __webpack_require__("e667");
|
|
5335
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
5336
|
+
var isForced = __webpack_require__("94ca");
|
|
5337
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
5338
|
+
var IS_NODE = __webpack_require__("605d");
|
|
5339
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
5340
|
+
|
|
5341
|
+
var SPECIES = wellKnownSymbol('species');
|
|
5342
|
+
var PROMISE = 'Promise';
|
|
5343
|
+
var getInternalState = InternalStateModule.get;
|
|
5344
|
+
var setInternalState = InternalStateModule.set;
|
|
5345
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
5346
|
+
var PromiseConstructor = NativePromise;
|
|
5347
|
+
var TypeError = global.TypeError;
|
|
5348
|
+
var document = global.document;
|
|
5349
|
+
var process = global.process;
|
|
5350
|
+
var $fetch = getBuiltIn('fetch');
|
|
5351
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
5352
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
5353
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
5354
|
+
var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
|
|
5355
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
5356
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
5357
|
+
var PENDING = 0;
|
|
5358
|
+
var FULFILLED = 1;
|
|
5359
|
+
var REJECTED = 2;
|
|
5360
|
+
var HANDLED = 1;
|
|
5361
|
+
var UNHANDLED = 2;
|
|
5362
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
5363
|
+
|
|
5364
|
+
var FORCED = isForced(PROMISE, function () {
|
|
5365
|
+
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
|
5366
|
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
|
5367
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
5368
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
5369
|
+
// We can't detect it synchronously, so just check versions
|
|
5370
|
+
if (V8_VERSION === 66) return true;
|
|
5371
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
5372
|
+
if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
|
|
5373
|
+
}
|
|
5374
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
5375
|
+
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
|
5376
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
5377
|
+
// deoptimization and performance degradation
|
|
5378
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
5379
|
+
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
|
5380
|
+
// Detect correctness of subclassing with @@species support
|
|
5381
|
+
var promise = PromiseConstructor.resolve(1);
|
|
5382
|
+
var FakePromise = function (exec) {
|
|
5383
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
5384
|
+
};
|
|
5385
|
+
var constructor = promise.constructor = {};
|
|
5386
|
+
constructor[SPECIES] = FakePromise;
|
|
5387
|
+
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
|
|
5388
|
+
});
|
|
5389
|
+
|
|
5390
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
5391
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
5392
|
+
});
|
|
5393
|
+
|
|
5394
|
+
// helpers
|
|
5395
|
+
var isThenable = function (it) {
|
|
5396
|
+
var then;
|
|
5397
|
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
5398
|
+
};
|
|
5399
|
+
|
|
5400
|
+
var notify = function (state, isReject) {
|
|
5401
|
+
if (state.notified) return;
|
|
5402
|
+
state.notified = true;
|
|
5403
|
+
var chain = state.reactions;
|
|
5404
|
+
microtask(function () {
|
|
5405
|
+
var value = state.value;
|
|
5406
|
+
var ok = state.state == FULFILLED;
|
|
5407
|
+
var index = 0;
|
|
5408
|
+
// variable length - can't use forEach
|
|
5409
|
+
while (chain.length > index) {
|
|
5410
|
+
var reaction = chain[index++];
|
|
5411
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
5412
|
+
var resolve = reaction.resolve;
|
|
5413
|
+
var reject = reaction.reject;
|
|
5414
|
+
var domain = reaction.domain;
|
|
5415
|
+
var result, then, exited;
|
|
5416
|
+
try {
|
|
5417
|
+
if (handler) {
|
|
5418
|
+
if (!ok) {
|
|
5419
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
|
5420
|
+
state.rejection = HANDLED;
|
|
5421
|
+
}
|
|
5422
|
+
if (handler === true) result = value;
|
|
5423
|
+
else {
|
|
5424
|
+
if (domain) domain.enter();
|
|
5425
|
+
result = handler(value); // can throw
|
|
5426
|
+
if (domain) {
|
|
5427
|
+
domain.exit();
|
|
5428
|
+
exited = true;
|
|
5429
|
+
}
|
|
5430
|
+
}
|
|
5431
|
+
if (result === reaction.promise) {
|
|
5432
|
+
reject(TypeError('Promise-chain cycle'));
|
|
5433
|
+
} else if (then = isThenable(result)) {
|
|
5434
|
+
then.call(result, resolve, reject);
|
|
5435
|
+
} else resolve(result);
|
|
5436
|
+
} else reject(value);
|
|
5437
|
+
} catch (error) {
|
|
5438
|
+
if (domain && !exited) domain.exit();
|
|
5439
|
+
reject(error);
|
|
5440
|
+
}
|
|
5441
|
+
}
|
|
5442
|
+
state.reactions = [];
|
|
5443
|
+
state.notified = false;
|
|
5444
|
+
if (isReject && !state.rejection) onUnhandled(state);
|
|
5445
|
+
});
|
|
5446
|
+
};
|
|
5447
|
+
|
|
5448
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
5449
|
+
var event, handler;
|
|
5450
|
+
if (DISPATCH_EVENT) {
|
|
5451
|
+
event = document.createEvent('Event');
|
|
5452
|
+
event.promise = promise;
|
|
5453
|
+
event.reason = reason;
|
|
5454
|
+
event.initEvent(name, false, true);
|
|
5455
|
+
global.dispatchEvent(event);
|
|
5456
|
+
} else event = { promise: promise, reason: reason };
|
|
5457
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
|
5458
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
5459
|
+
};
|
|
5460
|
+
|
|
5461
|
+
var onUnhandled = function (state) {
|
|
5462
|
+
task.call(global, function () {
|
|
5463
|
+
var promise = state.facade;
|
|
5464
|
+
var value = state.value;
|
|
5465
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
5466
|
+
var result;
|
|
5467
|
+
if (IS_UNHANDLED) {
|
|
5468
|
+
result = perform(function () {
|
|
5469
|
+
if (IS_NODE) {
|
|
5470
|
+
process.emit('unhandledRejection', value, promise);
|
|
5471
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
5472
|
+
});
|
|
5473
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
5474
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
5475
|
+
if (result.error) throw result.value;
|
|
5476
|
+
}
|
|
5477
|
+
});
|
|
5478
|
+
};
|
|
5479
|
+
|
|
5480
|
+
var isUnhandled = function (state) {
|
|
5481
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
5482
|
+
};
|
|
5483
|
+
|
|
5484
|
+
var onHandleUnhandled = function (state) {
|
|
5485
|
+
task.call(global, function () {
|
|
5486
|
+
var promise = state.facade;
|
|
5487
|
+
if (IS_NODE) {
|
|
5488
|
+
process.emit('rejectionHandled', promise);
|
|
5489
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
5490
|
+
});
|
|
5491
|
+
};
|
|
5492
|
+
|
|
5493
|
+
var bind = function (fn, state, unwrap) {
|
|
5494
|
+
return function (value) {
|
|
5495
|
+
fn(state, value, unwrap);
|
|
5496
|
+
};
|
|
5497
|
+
};
|
|
5498
|
+
|
|
5499
|
+
var internalReject = function (state, value, unwrap) {
|
|
5500
|
+
if (state.done) return;
|
|
5501
|
+
state.done = true;
|
|
5502
|
+
if (unwrap) state = unwrap;
|
|
5503
|
+
state.value = value;
|
|
5504
|
+
state.state = REJECTED;
|
|
5505
|
+
notify(state, true);
|
|
5506
|
+
};
|
|
5507
|
+
|
|
5508
|
+
var internalResolve = function (state, value, unwrap) {
|
|
5509
|
+
if (state.done) return;
|
|
5510
|
+
state.done = true;
|
|
5511
|
+
if (unwrap) state = unwrap;
|
|
5512
|
+
try {
|
|
5513
|
+
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
|
5514
|
+
var then = isThenable(value);
|
|
5515
|
+
if (then) {
|
|
5516
|
+
microtask(function () {
|
|
5517
|
+
var wrapper = { done: false };
|
|
5518
|
+
try {
|
|
5519
|
+
then.call(value,
|
|
5520
|
+
bind(internalResolve, wrapper, state),
|
|
5521
|
+
bind(internalReject, wrapper, state)
|
|
5522
|
+
);
|
|
5523
|
+
} catch (error) {
|
|
5524
|
+
internalReject(wrapper, error, state);
|
|
5525
|
+
}
|
|
5526
|
+
});
|
|
5527
|
+
} else {
|
|
5528
|
+
state.value = value;
|
|
5529
|
+
state.state = FULFILLED;
|
|
5530
|
+
notify(state, false);
|
|
5531
|
+
}
|
|
5532
|
+
} catch (error) {
|
|
5533
|
+
internalReject({ done: false }, error, state);
|
|
5534
|
+
}
|
|
5535
|
+
};
|
|
5536
|
+
|
|
5537
|
+
// constructor polyfill
|
|
5538
|
+
if (FORCED) {
|
|
5539
|
+
// 25.4.3.1 Promise(executor)
|
|
5540
|
+
PromiseConstructor = function Promise(executor) {
|
|
5541
|
+
anInstance(this, PromiseConstructor, PROMISE);
|
|
5542
|
+
aFunction(executor);
|
|
5543
|
+
Internal.call(this);
|
|
5544
|
+
var state = getInternalState(this);
|
|
5545
|
+
try {
|
|
5546
|
+
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
5547
|
+
} catch (error) {
|
|
5548
|
+
internalReject(state, error);
|
|
5549
|
+
}
|
|
5550
|
+
};
|
|
5551
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5552
|
+
Internal = function Promise(executor) {
|
|
5553
|
+
setInternalState(this, {
|
|
5554
|
+
type: PROMISE,
|
|
5555
|
+
done: false,
|
|
5556
|
+
notified: false,
|
|
5557
|
+
parent: false,
|
|
5558
|
+
reactions: [],
|
|
5559
|
+
rejection: false,
|
|
5560
|
+
state: PENDING,
|
|
5561
|
+
value: undefined
|
|
5562
|
+
});
|
|
5563
|
+
};
|
|
5564
|
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
|
5565
|
+
// `Promise.prototype.then` method
|
|
5566
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
5567
|
+
then: function then(onFulfilled, onRejected) {
|
|
5568
|
+
var state = getInternalPromiseState(this);
|
|
5569
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
5570
|
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
5571
|
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
5572
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
5573
|
+
state.parent = true;
|
|
5574
|
+
state.reactions.push(reaction);
|
|
5575
|
+
if (state.state != PENDING) notify(state, false);
|
|
5576
|
+
return reaction.promise;
|
|
5577
|
+
},
|
|
5578
|
+
// `Promise.prototype.catch` method
|
|
5579
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
5580
|
+
'catch': function (onRejected) {
|
|
5581
|
+
return this.then(undefined, onRejected);
|
|
5582
|
+
}
|
|
5583
|
+
});
|
|
5584
|
+
OwnPromiseCapability = function () {
|
|
5585
|
+
var promise = new Internal();
|
|
5586
|
+
var state = getInternalState(promise);
|
|
5587
|
+
this.promise = promise;
|
|
5588
|
+
this.resolve = bind(internalResolve, state);
|
|
5589
|
+
this.reject = bind(internalReject, state);
|
|
5590
|
+
};
|
|
5591
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
5592
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
5593
|
+
? new OwnPromiseCapability(C)
|
|
5594
|
+
: newGenericPromiseCapability(C);
|
|
5595
|
+
};
|
|
5596
|
+
|
|
5597
|
+
if (!IS_PURE && typeof NativePromise == 'function') {
|
|
5598
|
+
nativeThen = NativePromise.prototype.then;
|
|
5599
|
+
|
|
5600
|
+
// wrap native Promise#then for native async functions
|
|
5601
|
+
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
|
5602
|
+
var that = this;
|
|
5603
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
5604
|
+
nativeThen.call(that, resolve, reject);
|
|
5605
|
+
}).then(onFulfilled, onRejected);
|
|
5606
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
5607
|
+
}, { unsafe: true });
|
|
5608
|
+
|
|
5609
|
+
// wrap fetch result
|
|
5610
|
+
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
|
5611
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5612
|
+
fetch: function fetch(input /* , init */) {
|
|
5613
|
+
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
|
5614
|
+
}
|
|
5615
|
+
});
|
|
5616
|
+
}
|
|
5617
|
+
}
|
|
5618
|
+
|
|
5619
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
5620
|
+
Promise: PromiseConstructor
|
|
5621
|
+
});
|
|
5622
|
+
|
|
5623
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
5624
|
+
setSpecies(PROMISE);
|
|
5625
|
+
|
|
5626
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
5627
|
+
|
|
5628
|
+
// statics
|
|
5629
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
5630
|
+
// `Promise.reject` method
|
|
5631
|
+
// https://tc39.es/ecma262/#sec-promise.reject
|
|
5632
|
+
reject: function reject(r) {
|
|
5633
|
+
var capability = newPromiseCapability(this);
|
|
5634
|
+
capability.reject.call(undefined, r);
|
|
5635
|
+
return capability.promise;
|
|
5636
|
+
}
|
|
5637
|
+
});
|
|
5638
|
+
|
|
5639
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
5640
|
+
// `Promise.resolve` method
|
|
5641
|
+
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
5642
|
+
resolve: function resolve(x) {
|
|
5643
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
5644
|
+
}
|
|
5645
|
+
});
|
|
5646
|
+
|
|
5647
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
5648
|
+
// `Promise.all` method
|
|
5649
|
+
// https://tc39.es/ecma262/#sec-promise.all
|
|
5650
|
+
all: function all(iterable) {
|
|
5651
|
+
var C = this;
|
|
5652
|
+
var capability = newPromiseCapability(C);
|
|
5653
|
+
var resolve = capability.resolve;
|
|
5654
|
+
var reject = capability.reject;
|
|
5655
|
+
var result = perform(function () {
|
|
5656
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
5657
|
+
var values = [];
|
|
5658
|
+
var counter = 0;
|
|
5659
|
+
var remaining = 1;
|
|
5660
|
+
iterate(iterable, function (promise) {
|
|
5661
|
+
var index = counter++;
|
|
5662
|
+
var alreadyCalled = false;
|
|
5663
|
+
values.push(undefined);
|
|
5664
|
+
remaining++;
|
|
5665
|
+
$promiseResolve.call(C, promise).then(function (value) {
|
|
5666
|
+
if (alreadyCalled) return;
|
|
5667
|
+
alreadyCalled = true;
|
|
5668
|
+
values[index] = value;
|
|
5669
|
+
--remaining || resolve(values);
|
|
5670
|
+
}, reject);
|
|
5671
|
+
});
|
|
5672
|
+
--remaining || resolve(values);
|
|
5673
|
+
});
|
|
5674
|
+
if (result.error) reject(result.value);
|
|
5675
|
+
return capability.promise;
|
|
5676
|
+
},
|
|
5677
|
+
// `Promise.race` method
|
|
5678
|
+
// https://tc39.es/ecma262/#sec-promise.race
|
|
5679
|
+
race: function race(iterable) {
|
|
5680
|
+
var C = this;
|
|
5681
|
+
var capability = newPromiseCapability(C);
|
|
5682
|
+
var reject = capability.reject;
|
|
5683
|
+
var result = perform(function () {
|
|
5684
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
5685
|
+
iterate(iterable, function (promise) {
|
|
5686
|
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
|
5687
|
+
});
|
|
5688
|
+
});
|
|
5689
|
+
if (result.error) reject(result.value);
|
|
5690
|
+
return capability.promise;
|
|
5691
|
+
}
|
|
5692
|
+
});
|
|
5693
|
+
|
|
5694
|
+
|
|
4145
5695
|
/***/ }),
|
|
4146
5696
|
|
|
4147
5697
|
/***/ "e893":
|
|
@@ -4194,6 +5744,32 @@ module.exports = function (it) {
|
|
|
4194
5744
|
};
|
|
4195
5745
|
|
|
4196
5746
|
|
|
5747
|
+
/***/ }),
|
|
5748
|
+
|
|
5749
|
+
/***/ "f069":
|
|
5750
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5751
|
+
|
|
5752
|
+
"use strict";
|
|
5753
|
+
|
|
5754
|
+
var aFunction = __webpack_require__("1c0b");
|
|
5755
|
+
|
|
5756
|
+
var PromiseCapability = function (C) {
|
|
5757
|
+
var resolve, reject;
|
|
5758
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
5759
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
5760
|
+
resolve = $$resolve;
|
|
5761
|
+
reject = $$reject;
|
|
5762
|
+
});
|
|
5763
|
+
this.resolve = aFunction(resolve);
|
|
5764
|
+
this.reject = aFunction(reject);
|
|
5765
|
+
};
|
|
5766
|
+
|
|
5767
|
+
// 25.4.1.5 NewPromiseCapability(C)
|
|
5768
|
+
module.exports.f = function (C) {
|
|
5769
|
+
return new PromiseCapability(C);
|
|
5770
|
+
};
|
|
5771
|
+
|
|
5772
|
+
|
|
4197
5773
|
/***/ }),
|
|
4198
5774
|
|
|
4199
5775
|
/***/ "f234":
|
|
@@ -4407,8 +5983,8 @@ if (typeof window !== 'undefined') {
|
|
|
4407
5983
|
// Indicate to webpack that this file can be concatenated
|
|
4408
5984
|
/* harmony default export */ var setPublicPath = (null);
|
|
4409
5985
|
|
|
4410
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4411
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-filters"},[_c('div',{staticClass:"v-filters_fields"},[_vm._t("before-fields"),_vm._l((_vm.fields),function(field){return _c(_vm.fieldComponentName,{key:field._name,tag:"component",class:[("__" + (field._name))],attrs:{"title":field.title}},[_c(_vm.componentsMap[field._type],_vm._b({key:_vm.fieldKey,tag:"component",on:{"input":function($event){return _vm.handleFieldChange(field._name, $event)}},model:{value:(_vm.filters[field._name]),callback:function ($$v) {_vm.$set(_vm.filters, field._name, $$v)},expression:"filters[field._name]"}},'component',field
|
|
5986
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b3e01726-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VFilters.vue?vue&type=template&id=f2db823e&
|
|
5987
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-filters"},[_c('div',{staticClass:"v-filters_fields"},[_vm._t("before-fields"),_vm._l((_vm.fields),function(field){return _c(_vm.fieldComponentName,{key:field._name,tag:"component",class:[("__" + (field._name))],attrs:{"title":field.title}},[_c(_vm.componentsMap[field._type],_vm._b({key:_vm.fieldKey,tag:"component",on:{"input":function($event){return _vm.handleFieldChange(field._name, $event)}},model:{value:(_vm.filters[field._name]),callback:function ($$v) {_vm.$set(_vm.filters, field._name, $$v)},expression:"filters[field._name]"}},'component',_vm.getFieldProps(field),false))],1)}),_vm._t("after-fields"),_vm._t("actions",[_c(_vm.fieldComponentName,{tag:"component"},[(!_vm.immediate)?_c('button',{staticClass:"v-button v-filters_button",on:{"click":_vm.showResult}},[_vm._v(" "+_vm._s(_vm.actionTitle)+" ")]):_vm._e(),(_vm.edited)?_c('button',{staticClass:"v-button v-filters_button __reset",on:{"click":_vm.resetFilters}},[_vm._v(" Сбросить параметры ")]):_vm._e()])],null,{
|
|
4412
5988
|
showResult: _vm.showResult,
|
|
4413
5989
|
resetFilters: _vm.resetFilters,
|
|
4414
5990
|
count: _vm.count,
|
|
@@ -4424,8 +6000,53 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
4424
6000
|
var staticRenderFns = []
|
|
4425
6001
|
|
|
4426
6002
|
|
|
4427
|
-
// CONCATENATED MODULE: ./src/components/VFilters.vue?vue&type=template&id=
|
|
6003
|
+
// CONCATENATED MODULE: ./src/components/VFilters.vue?vue&type=template&id=f2db823e&
|
|
6004
|
+
|
|
6005
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
6006
|
+
var es_promise = __webpack_require__("e6cf");
|
|
6007
|
+
|
|
6008
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
6009
|
+
var es_object_to_string = __webpack_require__("d3b7");
|
|
6010
|
+
|
|
6011
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
6012
|
+
|
|
4428
6013
|
|
|
6014
|
+
|
|
6015
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
6016
|
+
try {
|
|
6017
|
+
var info = gen[key](arg);
|
|
6018
|
+
var value = info.value;
|
|
6019
|
+
} catch (error) {
|
|
6020
|
+
reject(error);
|
|
6021
|
+
return;
|
|
6022
|
+
}
|
|
6023
|
+
|
|
6024
|
+
if (info.done) {
|
|
6025
|
+
resolve(value);
|
|
6026
|
+
} else {
|
|
6027
|
+
Promise.resolve(value).then(_next, _throw);
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6030
|
+
|
|
6031
|
+
function _asyncToGenerator(fn) {
|
|
6032
|
+
return function () {
|
|
6033
|
+
var self = this,
|
|
6034
|
+
args = arguments;
|
|
6035
|
+
return new Promise(function (resolve, reject) {
|
|
6036
|
+
var gen = fn.apply(self, args);
|
|
6037
|
+
|
|
6038
|
+
function _next(value) {
|
|
6039
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
6040
|
+
}
|
|
6041
|
+
|
|
6042
|
+
function _throw(err) {
|
|
6043
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
6044
|
+
}
|
|
6045
|
+
|
|
6046
|
+
_next(undefined);
|
|
6047
|
+
});
|
|
6048
|
+
};
|
|
6049
|
+
}
|
|
4429
6050
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
4430
6051
|
function _arrayWithHoles(arr) {
|
|
4431
6052
|
if (Array.isArray(arr)) return arr;
|
|
@@ -4436,9 +6057,6 @@ var es_symbol = __webpack_require__("a4d3");
|
|
|
4436
6057
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
4437
6058
|
var es_symbol_description = __webpack_require__("e01a");
|
|
4438
6059
|
|
|
4439
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
4440
|
-
var es_object_to_string = __webpack_require__("d3b7");
|
|
4441
|
-
|
|
4442
6060
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
|
4443
6061
|
var es_symbol_iterator = __webpack_require__("d28b");
|
|
4444
6062
|
|
|
@@ -4632,6 +6250,9 @@ function _objectSpread2(target) {
|
|
|
4632
6250
|
|
|
4633
6251
|
return target;
|
|
4634
6252
|
}
|
|
6253
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
6254
|
+
var runtime = __webpack_require__("96cf");
|
|
6255
|
+
|
|
4635
6256
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
4636
6257
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
4637
6258
|
|
|
@@ -5163,6 +6784,8 @@ _curry2(function equals(a, b) {
|
|
|
5163
6784
|
|
|
5164
6785
|
|
|
5165
6786
|
|
|
6787
|
+
|
|
6788
|
+
|
|
5166
6789
|
//
|
|
5167
6790
|
//
|
|
5168
6791
|
//
|
|
@@ -5325,6 +6948,12 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
5325
6948
|
sendAllFields: {
|
|
5326
6949
|
type: Boolean,
|
|
5327
6950
|
default: false
|
|
6951
|
+
},
|
|
6952
|
+
fieldProps: {
|
|
6953
|
+
type: Object,
|
|
6954
|
+
default: function _default() {
|
|
6955
|
+
return {};
|
|
6956
|
+
}
|
|
5328
6957
|
}
|
|
5329
6958
|
},
|
|
5330
6959
|
data: function data() {
|
|
@@ -5488,9 +7117,30 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
5488
7117
|
!isUpdate && this.doAction(true);
|
|
5489
7118
|
},
|
|
5490
7119
|
resetFilters: function resetFilters() {
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
7120
|
+
var _this3 = this;
|
|
7121
|
+
|
|
7122
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
7123
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7124
|
+
while (1) {
|
|
7125
|
+
switch (_context.prev = _context.next) {
|
|
7126
|
+
case 0:
|
|
7127
|
+
_this3.$set('editedFields', []);
|
|
7128
|
+
|
|
7129
|
+
_this3.setUrlParams(true, {});
|
|
7130
|
+
|
|
7131
|
+
_context.next = 4;
|
|
7132
|
+
return _this3.$nextTick();
|
|
7133
|
+
|
|
7134
|
+
case 4:
|
|
7135
|
+
_this3.$emit('reset-filters', _this3.flatFilters);
|
|
7136
|
+
|
|
7137
|
+
case 5:
|
|
7138
|
+
case "end":
|
|
7139
|
+
return _context.stop();
|
|
7140
|
+
}
|
|
7141
|
+
}
|
|
7142
|
+
}, _callee);
|
|
7143
|
+
}))();
|
|
5494
7144
|
},
|
|
5495
7145
|
addEditedField: function addEditedField(name) {
|
|
5496
7146
|
if (!this.editedFields.includes(name)) {
|
|
@@ -5562,6 +7212,15 @@ var VFiltersvue_type_script_lang_js_unserialize = function unserialize(input) {
|
|
|
5562
7212
|
}
|
|
5563
7213
|
|
|
5564
7214
|
this.doAction();
|
|
7215
|
+
},
|
|
7216
|
+
getFieldProps: function getFieldProps(field) {
|
|
7217
|
+
var props = _objectSpread2({}, this.fieldProps);
|
|
7218
|
+
|
|
7219
|
+
if (field._fieldProps) {
|
|
7220
|
+
props = _objectSpread2(_objectSpread2({}, props), field._fieldProps);
|
|
7221
|
+
}
|
|
7222
|
+
|
|
7223
|
+
return props;
|
|
5565
7224
|
}
|
|
5566
7225
|
}
|
|
5567
7226
|
});
|
|
@@ -5825,6 +7484,16 @@ module.exports = NATIVE_SYMBOL
|
|
|
5825
7484
|
&& typeof Symbol.iterator == 'symbol';
|
|
5826
7485
|
|
|
5827
7486
|
|
|
7487
|
+
/***/ }),
|
|
7488
|
+
|
|
7489
|
+
/***/ "fea9":
|
|
7490
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7491
|
+
|
|
7492
|
+
var global = __webpack_require__("da84");
|
|
7493
|
+
|
|
7494
|
+
module.exports = global.Promise;
|
|
7495
|
+
|
|
7496
|
+
|
|
5828
7497
|
/***/ })
|
|
5829
7498
|
|
|
5830
7499
|
/******/ });
|