@sedoo/unidoo 0.0.52 → 0.0.53
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/unidoo.common.js +1631 -23
- package/dist/unidoo.common.js.map +1 -1
- package/dist/unidoo.umd.js +1631 -23
- package/dist/unidoo.umd.js.map +1 -1
- package/dist/unidoo.umd.min.js +2 -2
- package/dist/unidoo.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UnidooConfirmDialog.vue +7 -4
package/dist/unidoo.common.js
CHANGED
|
@@ -940,7 +940,7 @@ module.exports = baseRest;
|
|
|
940
940
|
// ESM COMPAT FLAG
|
|
941
941
|
__webpack_require__.r(__webpack_exports__);
|
|
942
942
|
|
|
943
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
943
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/image-viewer/image-viewer.vue?vue&type=template&id=ad825130&scoped=true&
|
|
944
944
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-col',{staticStyle:{"display":"flex","height":"100%"},attrs:{"justify":"center"}},[_c('v-row',{staticStyle:{"height":"100%"},attrs:{"justify":"center"}},[(_vm.url)?_c('img',{attrs:{"viewer-img":"","src":_vm.url,"aspect-ratio":"1","alt":_vm.title}}):_vm._e()])],1)}
|
|
945
945
|
var staticRenderFns = []
|
|
946
946
|
|
|
@@ -1520,7 +1520,7 @@ module.exports = isMasked;
|
|
|
1520
1520
|
// ESM COMPAT FLAG
|
|
1521
1521
|
__webpack_require__.r(__webpack_exports__);
|
|
1522
1522
|
|
|
1523
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1523
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/unidoo-simple-player/UnidooSimplePlayer.vue?vue&type=template&id=3dbfabf0&scoped=true&
|
|
1524
1524
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('unidoo-player-layout',{ref:"player",attrs:{"initialValue":0,"min":0,"max":_vm.max,"autoPlay":_vm.autoPlay,"graduation":_vm.graduation,"frequency":300,"loadedFrames":_vm.loadedFrames,"progressBarTitle":"Loading image"},on:{"reload-frames":function($event){return _vm.preloadFrames(_vm.loadIndex)}},scopedSlots:_vm._u([{key:"displayer",fn:function(){return [_c('image-viewer',{style:({ opacity : ((_vm.isLoadingFirstFrame) ? '0.5' : '1')}),attrs:{"url":_vm.currentUrl,"title":_vm.frameTitle}})]},proxy:true},{key:"frameTitle",fn:function(){return [_c('v-col',[(_vm.max > 0 && _vm.loadedFrames < (_vm.max + 1))?_c('div',{attrs:{"player-title":"","justify":"center"}},[_c('div',{attrs:{"spinner":""}},[_c('loading-component')],1)]):_c('div',{attrs:{"frame-title":""}},[_vm._v(_vm._s(_vm.frameTitle))])])]},proxy:true}]),model:{value:(_vm.playerCounter),callback:function ($$v) {_vm.playerCounter=$$v},expression:"playerCounter"}})],1)}
|
|
1525
1525
|
var staticRenderFns = []
|
|
1526
1526
|
|
|
@@ -1893,7 +1893,7 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1893
1893
|
// ESM COMPAT FLAG
|
|
1894
1894
|
__webpack_require__.r(__webpack_exports__);
|
|
1895
1895
|
|
|
1896
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1896
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/unidoo-progress-bar/UnidooProgressBar.vue?vue&type=template&id=780ca0b2&scoped=true&
|
|
1897
1897
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{style:({ background: _vm.barColor }),attrs:{"progress-bar":""}},[_c('div',{style:({ width: _vm.barWidth, background: _vm.barColor }),attrs:{"progress":""}}),_c('span',{attrs:{"detail":""}},[_vm._v(_vm._s(_vm.title)+" "+_vm._s(_vm.current)+"/"+_vm._s(_vm.max))])])])}
|
|
1898
1898
|
var staticRenderFns = []
|
|
1899
1899
|
|
|
@@ -2653,17 +2653,67 @@ const baseMixins = Object(mixins["a" /* default */])(activatable["a" /* default
|
|
|
2653
2653
|
// ESM COMPAT FLAG
|
|
2654
2654
|
__webpack_require__.r(__webpack_exports__);
|
|
2655
2655
|
|
|
2656
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2657
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{"persistent":"","width":_vm.width},model:{value:(_vm.confirmDialog),callback:function ($$v) {_vm.confirmDialog=$$v},expression:"confirmDialog"}},[_c('v-card',[_c('v-card-title',{class:_vm.titleClasses},[_vm._v(_vm._s(_vm.title))]),_c('v-card-text',[_vm._v(_vm._s(_vm.message))]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{on:{"click":function($event){_vm.confirmDialog=false}}},[_vm._v(_vm._s(_vm.cancelButtonLabel))]),_c('v-btn',{attrs:{"color":"info"},on:{"click":_vm.confirm}},[_vm._v(_vm._s(_vm.confirmButtonLabel))])],1)],1)],1)}
|
|
2656
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooConfirmDialog.vue?vue&type=template&id=73c9da81&scoped=true&
|
|
2657
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{"persistent":"","width":_vm.width},model:{value:(_vm.confirmDialog),callback:function ($$v) {_vm.confirmDialog=$$v},expression:"confirmDialog"}},[_c('v-card',[_c('v-card-title',{class:_vm.titleClasses},[_vm._v(_vm._s(_vm.title))]),_c('v-card-text',[_vm._v(_vm._s(_vm.message))]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{on:{"click":function($event){_vm.confirmDialog=false}}},[_vm._v(_vm._s(_vm.cancelButtonLabel))]),_c('v-btn',{attrs:{"color":"info","loading":_vm.loading},on:{"click":_vm.confirm}},[_vm._v(_vm._s(_vm.confirmButtonLabel))])],1)],1)],1)}
|
|
2658
2658
|
var staticRenderFns = []
|
|
2659
2659
|
|
|
2660
2660
|
|
|
2661
|
-
// CONCATENATED MODULE: ./src/components/UnidooConfirmDialog.vue?vue&type=template&id=
|
|
2661
|
+
// CONCATENATED MODULE: ./src/components/UnidooConfirmDialog.vue?vue&type=template&id=73c9da81&scoped=true&
|
|
2662
|
+
|
|
2663
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
2664
|
+
var es_object_to_string = __webpack_require__("d3b7");
|
|
2665
|
+
|
|
2666
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
2667
|
+
var es_promise = __webpack_require__("e6cf");
|
|
2668
|
+
|
|
2669
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2674
|
+
try {
|
|
2675
|
+
var info = gen[key](arg);
|
|
2676
|
+
var value = info.value;
|
|
2677
|
+
} catch (error) {
|
|
2678
|
+
reject(error);
|
|
2679
|
+
return;
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
if (info.done) {
|
|
2683
|
+
resolve(value);
|
|
2684
|
+
} else {
|
|
2685
|
+
Promise.resolve(value).then(_next, _throw);
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
function _asyncToGenerator(fn) {
|
|
2690
|
+
return function () {
|
|
2691
|
+
var self = this,
|
|
2692
|
+
args = arguments;
|
|
2693
|
+
return new Promise(function (resolve, reject) {
|
|
2694
|
+
var gen = fn.apply(self, args);
|
|
2695
|
+
|
|
2696
|
+
function _next(value) {
|
|
2697
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
function _throw(err) {
|
|
2701
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
_next(undefined);
|
|
2705
|
+
});
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
2709
|
+
var runtime = __webpack_require__("96cf");
|
|
2662
2710
|
|
|
2663
2711
|
// EXTERNAL MODULE: ./src/plugin.js
|
|
2664
2712
|
var src_plugin = __webpack_require__("fe83");
|
|
2665
2713
|
|
|
2666
2714
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UnidooConfirmDialog.vue?vue&type=script&lang=js&
|
|
2715
|
+
|
|
2716
|
+
|
|
2667
2717
|
//
|
|
2668
2718
|
//
|
|
2669
2719
|
//
|
|
@@ -2690,13 +2740,34 @@ var src_plugin = __webpack_require__("fe83");
|
|
|
2690
2740
|
width: '500px',
|
|
2691
2741
|
cancelButtonLabel: "Cancel",
|
|
2692
2742
|
confirmButtonLabel: "Confirm",
|
|
2693
|
-
callback: {}
|
|
2743
|
+
callback: {},
|
|
2744
|
+
loading: false
|
|
2694
2745
|
};
|
|
2695
2746
|
},
|
|
2696
2747
|
methods: {
|
|
2697
2748
|
confirm: function confirm() {
|
|
2698
|
-
|
|
2699
|
-
|
|
2749
|
+
var _this = this;
|
|
2750
|
+
|
|
2751
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
2752
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2753
|
+
while (1) {
|
|
2754
|
+
switch (_context.prev = _context.next) {
|
|
2755
|
+
case 0:
|
|
2756
|
+
_this.loading = true;
|
|
2757
|
+
_context.next = 3;
|
|
2758
|
+
return _this.callback();
|
|
2759
|
+
|
|
2760
|
+
case 3:
|
|
2761
|
+
_this.confirmDialog = false;
|
|
2762
|
+
_this.loading = false;
|
|
2763
|
+
|
|
2764
|
+
case 5:
|
|
2765
|
+
case "end":
|
|
2766
|
+
return _context.stop();
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
}, _callee);
|
|
2770
|
+
}))();
|
|
2700
2771
|
},
|
|
2701
2772
|
show: function show(params) {
|
|
2702
2773
|
if (params.message) {
|
|
@@ -2732,13 +2803,13 @@ var src_plugin = __webpack_require__("fe83");
|
|
|
2732
2803
|
params: function params(_params) {}
|
|
2733
2804
|
},
|
|
2734
2805
|
beforeMount: function beforeMount() {
|
|
2735
|
-
var
|
|
2806
|
+
var _this2 = this;
|
|
2736
2807
|
|
|
2737
2808
|
src_plugin["a" /* default */].EventBus.$on('unidoo-confirm-dialog-show', function (params) {
|
|
2738
|
-
|
|
2809
|
+
_this2.show(params);
|
|
2739
2810
|
});
|
|
2740
2811
|
src_plugin["a" /* default */].EventBus.$on('unidoo-confirm-dialog-params', function (params) {
|
|
2741
|
-
|
|
2812
|
+
_this2.params(params);
|
|
2742
2813
|
});
|
|
2743
2814
|
}
|
|
2744
2815
|
});
|
|
@@ -2780,7 +2851,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
2780
2851
|
staticRenderFns,
|
|
2781
2852
|
false,
|
|
2782
2853
|
null,
|
|
2783
|
-
"
|
|
2854
|
+
"73c9da81",
|
|
2784
2855
|
null
|
|
2785
2856
|
|
|
2786
2857
|
)
|
|
@@ -2911,6 +2982,18 @@ module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callback
|
|
|
2911
2982
|
}));
|
|
2912
2983
|
//# sourceMappingURL=VListItemAction.js.map
|
|
2913
2984
|
|
|
2985
|
+
/***/ }),
|
|
2986
|
+
|
|
2987
|
+
/***/ "19aa":
|
|
2988
|
+
/***/ (function(module, exports) {
|
|
2989
|
+
|
|
2990
|
+
module.exports = function (it, Constructor, name) {
|
|
2991
|
+
if (!(it instanceof Constructor)) {
|
|
2992
|
+
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
|
2993
|
+
} return it;
|
|
2994
|
+
};
|
|
2995
|
+
|
|
2996
|
+
|
|
2914
2997
|
/***/ }),
|
|
2915
2998
|
|
|
2916
2999
|
/***/ "1a8c":
|
|
@@ -3314,6 +3397,16 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
3314
3397
|
}));
|
|
3315
3398
|
//# sourceMappingURL=index.js.map
|
|
3316
3399
|
|
|
3400
|
+
/***/ }),
|
|
3401
|
+
|
|
3402
|
+
/***/ "1cdc":
|
|
3403
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3404
|
+
|
|
3405
|
+
var userAgent = __webpack_require__("342f");
|
|
3406
|
+
|
|
3407
|
+
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
|
3408
|
+
|
|
3409
|
+
|
|
3317
3410
|
/***/ }),
|
|
3318
3411
|
|
|
3319
3412
|
/***/ "1cec":
|
|
@@ -3505,7 +3598,7 @@ var update = add("36265086", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
3505
3598
|
// ESM COMPAT FLAG
|
|
3506
3599
|
__webpack_require__.r(__webpack_exports__);
|
|
3507
3600
|
|
|
3508
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3601
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/UnidooPlayer.vue?vue&type=template&id=bf817e56&scoped=true&
|
|
3509
3602
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-col',{staticStyle:{"position":"relative"}},[_c('div',{attrs:{"level-selector":""}},[_c('level-selector',{attrs:{"data":_vm.data},model:{value:(_vm.entries),callback:function ($$v) {_vm.entries=$$v},expression:"entries"}})],1),_c('unidoo-simple-player',{attrs:{"constrained":"","label":_vm.label,"entries":_vm.entries}})],1)}
|
|
3510
3603
|
var staticRenderFns = []
|
|
3511
3604
|
|
|
@@ -3674,6 +3767,56 @@ installComponents_default()(component, {VCol: VCol["a" /* default */]})
|
|
|
3674
3767
|
}));
|
|
3675
3768
|
//# sourceMappingURL=index.js.map
|
|
3676
3769
|
|
|
3770
|
+
/***/ }),
|
|
3771
|
+
|
|
3772
|
+
/***/ "2266":
|
|
3773
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3774
|
+
|
|
3775
|
+
var anObject = __webpack_require__("825a");
|
|
3776
|
+
var isArrayIteratorMethod = __webpack_require__("e95a");
|
|
3777
|
+
var toLength = __webpack_require__("50c4");
|
|
3778
|
+
var bind = __webpack_require__("0366");
|
|
3779
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
3780
|
+
var callWithSafeIterationClosing = __webpack_require__("9bdd");
|
|
3781
|
+
|
|
3782
|
+
var Result = function (stopped, result) {
|
|
3783
|
+
this.stopped = stopped;
|
|
3784
|
+
this.result = result;
|
|
3785
|
+
};
|
|
3786
|
+
|
|
3787
|
+
var iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {
|
|
3788
|
+
var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);
|
|
3789
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
3790
|
+
|
|
3791
|
+
if (IS_ITERATOR) {
|
|
3792
|
+
iterator = iterable;
|
|
3793
|
+
} else {
|
|
3794
|
+
iterFn = getIteratorMethod(iterable);
|
|
3795
|
+
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
|
3796
|
+
// optimisation for array iterators
|
|
3797
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
3798
|
+
for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
|
3799
|
+
result = AS_ENTRIES
|
|
3800
|
+
? boundFunction(anObject(step = iterable[index])[0], step[1])
|
|
3801
|
+
: boundFunction(iterable[index]);
|
|
3802
|
+
if (result && result instanceof Result) return result;
|
|
3803
|
+
} return new Result(false);
|
|
3804
|
+
}
|
|
3805
|
+
iterator = iterFn.call(iterable);
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3808
|
+
next = iterator.next;
|
|
3809
|
+
while (!(step = next.call(iterator)).done) {
|
|
3810
|
+
result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);
|
|
3811
|
+
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
3812
|
+
} return new Result(false);
|
|
3813
|
+
};
|
|
3814
|
+
|
|
3815
|
+
iterate.stop = function (result) {
|
|
3816
|
+
return new Result(true, result);
|
|
3817
|
+
};
|
|
3818
|
+
|
|
3819
|
+
|
|
3677
3820
|
/***/ }),
|
|
3678
3821
|
|
|
3679
3822
|
/***/ "2286":
|
|
@@ -4443,6 +4586,33 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
4443
4586
|
}
|
|
4444
4587
|
|
|
4445
4588
|
|
|
4589
|
+
/***/ }),
|
|
4590
|
+
|
|
4591
|
+
/***/ "2626":
|
|
4592
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4593
|
+
|
|
4594
|
+
"use strict";
|
|
4595
|
+
|
|
4596
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
4597
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
4598
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
4599
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
4600
|
+
|
|
4601
|
+
var SPECIES = wellKnownSymbol('species');
|
|
4602
|
+
|
|
4603
|
+
module.exports = function (CONSTRUCTOR_NAME) {
|
|
4604
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
4605
|
+
var defineProperty = definePropertyModule.f;
|
|
4606
|
+
|
|
4607
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
|
4608
|
+
defineProperty(Constructor, SPECIES, {
|
|
4609
|
+
configurable: true,
|
|
4610
|
+
get: function () { return this; }
|
|
4611
|
+
});
|
|
4612
|
+
}
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4615
|
+
|
|
4446
4616
|
/***/ }),
|
|
4447
4617
|
|
|
4448
4618
|
/***/ "27fb":
|
|
@@ -5125,6 +5295,120 @@ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGE
|
|
|
5125
5295
|
});
|
|
5126
5296
|
|
|
5127
5297
|
|
|
5298
|
+
/***/ }),
|
|
5299
|
+
|
|
5300
|
+
/***/ "2cf4":
|
|
5301
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5302
|
+
|
|
5303
|
+
var global = __webpack_require__("da84");
|
|
5304
|
+
var fails = __webpack_require__("d039");
|
|
5305
|
+
var classof = __webpack_require__("c6b6");
|
|
5306
|
+
var bind = __webpack_require__("0366");
|
|
5307
|
+
var html = __webpack_require__("1be4");
|
|
5308
|
+
var createElement = __webpack_require__("cc12");
|
|
5309
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
5310
|
+
|
|
5311
|
+
var location = global.location;
|
|
5312
|
+
var set = global.setImmediate;
|
|
5313
|
+
var clear = global.clearImmediate;
|
|
5314
|
+
var process = global.process;
|
|
5315
|
+
var MessageChannel = global.MessageChannel;
|
|
5316
|
+
var Dispatch = global.Dispatch;
|
|
5317
|
+
var counter = 0;
|
|
5318
|
+
var queue = {};
|
|
5319
|
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
5320
|
+
var defer, channel, port;
|
|
5321
|
+
|
|
5322
|
+
var run = function (id) {
|
|
5323
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
5324
|
+
if (queue.hasOwnProperty(id)) {
|
|
5325
|
+
var fn = queue[id];
|
|
5326
|
+
delete queue[id];
|
|
5327
|
+
fn();
|
|
5328
|
+
}
|
|
5329
|
+
};
|
|
5330
|
+
|
|
5331
|
+
var runner = function (id) {
|
|
5332
|
+
return function () {
|
|
5333
|
+
run(id);
|
|
5334
|
+
};
|
|
5335
|
+
};
|
|
5336
|
+
|
|
5337
|
+
var listener = function (event) {
|
|
5338
|
+
run(event.data);
|
|
5339
|
+
};
|
|
5340
|
+
|
|
5341
|
+
var post = function (id) {
|
|
5342
|
+
// old engines have not location.origin
|
|
5343
|
+
global.postMessage(id + '', location.protocol + '//' + location.host);
|
|
5344
|
+
};
|
|
5345
|
+
|
|
5346
|
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
5347
|
+
if (!set || !clear) {
|
|
5348
|
+
set = function setImmediate(fn) {
|
|
5349
|
+
var args = [];
|
|
5350
|
+
var i = 1;
|
|
5351
|
+
while (arguments.length > i) args.push(arguments[i++]);
|
|
5352
|
+
queue[++counter] = function () {
|
|
5353
|
+
// eslint-disable-next-line no-new-func
|
|
5354
|
+
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
|
5355
|
+
};
|
|
5356
|
+
defer(counter);
|
|
5357
|
+
return counter;
|
|
5358
|
+
};
|
|
5359
|
+
clear = function clearImmediate(id) {
|
|
5360
|
+
delete queue[id];
|
|
5361
|
+
};
|
|
5362
|
+
// Node.js 0.8-
|
|
5363
|
+
if (classof(process) == 'process') {
|
|
5364
|
+
defer = function (id) {
|
|
5365
|
+
process.nextTick(runner(id));
|
|
5366
|
+
};
|
|
5367
|
+
// Sphere (JS game engine) Dispatch API
|
|
5368
|
+
} else if (Dispatch && Dispatch.now) {
|
|
5369
|
+
defer = function (id) {
|
|
5370
|
+
Dispatch.now(runner(id));
|
|
5371
|
+
};
|
|
5372
|
+
// Browsers with MessageChannel, includes WebWorkers
|
|
5373
|
+
// except iOS - https://github.com/zloirock/core-js/issues/624
|
|
5374
|
+
} else if (MessageChannel && !IS_IOS) {
|
|
5375
|
+
channel = new MessageChannel();
|
|
5376
|
+
port = channel.port2;
|
|
5377
|
+
channel.port1.onmessage = listener;
|
|
5378
|
+
defer = bind(port.postMessage, port, 1);
|
|
5379
|
+
// Browsers with postMessage, skip WebWorkers
|
|
5380
|
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
5381
|
+
} else if (
|
|
5382
|
+
global.addEventListener &&
|
|
5383
|
+
typeof postMessage == 'function' &&
|
|
5384
|
+
!global.importScripts &&
|
|
5385
|
+
!fails(post) &&
|
|
5386
|
+
location.protocol !== 'file:'
|
|
5387
|
+
) {
|
|
5388
|
+
defer = post;
|
|
5389
|
+
global.addEventListener('message', listener, false);
|
|
5390
|
+
// IE8-
|
|
5391
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
5392
|
+
defer = function (id) {
|
|
5393
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
|
5394
|
+
html.removeChild(this);
|
|
5395
|
+
run(id);
|
|
5396
|
+
};
|
|
5397
|
+
};
|
|
5398
|
+
// Rest old browsers
|
|
5399
|
+
} else {
|
|
5400
|
+
defer = function (id) {
|
|
5401
|
+
setTimeout(runner(id), 0);
|
|
5402
|
+
};
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
|
|
5406
|
+
module.exports = {
|
|
5407
|
+
set: set,
|
|
5408
|
+
clear: clear
|
|
5409
|
+
};
|
|
5410
|
+
|
|
5411
|
+
|
|
5128
5412
|
/***/ }),
|
|
5129
5413
|
|
|
5130
5414
|
/***/ "2d00":
|
|
@@ -5974,7 +6258,7 @@ const baseMixins = Object(_util_mixins__WEBPACK_IMPORTED_MODULE_5__[/* default *
|
|
|
5974
6258
|
// ESM COMPAT FLAG
|
|
5975
6259
|
__webpack_require__.r(__webpack_exports__);
|
|
5976
6260
|
|
|
5977
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6261
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/unidoo-player-layout/UnidooPlayerLayout.vue?vue&type=template&id=d5466258&scoped=true&
|
|
5978
6262
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"root":""}},[_c('div',{class:{ zoomed: _vm.isZoomed },attrs:{"player-layout":"","elevation":"0"}},[_c('div',{attrs:{"mask":""},on:{"click":_vm.zoomPlayer}}),_c('div',{staticStyle:{"height":"100%, margin: auto"},attrs:{"body":""}},[_c('div',{style:(_vm.subBodyStyle),attrs:{"sub-body":""}},[_c('v-divider',{staticStyle:{"order":"1"}}),_c('v-row',{style:({ order: ((_vm.playerBarTop) ? 2 : 4) }),attrs:{"viewer-part":""}},[_c('v-list-item',{attrs:{"player-layout-slider-part":""}},[_c('v-col',[_c('div',{staticStyle:{"display":"flex","justify-content":"center"}},[_vm._t("frameTitle"),(_vm.canPlay)?_c('v-btn',{attrs:{"reload-button":"","icon":"","x-small":"","color":"grey","title":"reload frames"},on:{"click":function($event){return _vm.emitReloadFrames()}}},[_c('v-icon',[_vm._v("mdi-cached")])],1):_vm._e()],2),(_vm.showProgressBar)?_c('unidoo-progress-bar',{attrs:{"title":_vm.progressBarTitle,"current":_vm.loadedFrames,"max":_vm.max + 1}}):(_vm.canPlay)?_c('v-slider',{ref:"slider",staticStyle:{"margin-top":"-10px","padding":"0 5px"},attrs:{"id":_vm.id,"max":_vm.max,"min":_vm.min,"tick-labels":_vm.filteredGraduation,"hide-details":"","ticks":"always","tick-size":"4"},on:{"click":_vm.playOrStopSlider},scopedSlots:_vm._u([{key:"prepend",fn:function(){return [_c('div',{attrs:{"buttons":""}},[_c('v-btn',{staticStyle:{"margin-right":"5px"},attrs:{"color":"primary","fab":"","x-small":"","dark":""},on:{"click":_vm.previous}},[_c('v-icon',[_vm._v("mdi-skip-previous")])],1),(!_vm.isPlaying)?_c('v-btn',{attrs:{"color":"primary","fab":"","small":"","dark":""},on:{"click":_vm.clicPlay}},[_c('v-icon',[_vm._v("mdi-play")])],1):_vm._e(),(_vm.isPlaying)?_c('v-btn',{attrs:{"color":"primary","fab":"","small":"","dark":""},on:{"click":_vm.clickStop}},[_c('v-icon',[_vm._v("mdi-stop")])],1):_vm._e(),_c('v-btn',{staticStyle:{"margin-left":"5px"},attrs:{"color":"primary","fab":"","x-small":"","dark":""},on:{"click":_vm.next}},[_c('v-icon',[_vm._v("mdi-skip-next")])],1)],1)]},proxy:true}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}):_vm._e(),_c('iframe',{ref:"sizeHandlerIframe",staticStyle:{"width":"100%","height":"0","border":"0"},attrs:{"src":"about:blank"}})],1)],1)],1),_c('v-divider',{staticStyle:{"order":"3"}}),_c('v-row',{style:({ order: ((_vm.playerBarTop) ? 4 : 2) }),attrs:{"player-part":""}},[(_vm.clickableFrame)?_c('v-list-item',{attrs:{"player-layout-displayer":"","ripple":false},on:{"click":_vm.playOrStopFrame}},[_vm._t("displayer")],2):_vm._t("displayer",null,{"playerLayoutDisplayer":""})],2),_c('v-divider',{staticStyle:{"order":"5"}})],1)])])])}
|
|
5979
6263
|
var staticRenderFns = []
|
|
5980
6264
|
|
|
@@ -7632,6 +7916,21 @@ module.exports = function (key) {
|
|
|
7632
7916
|
};
|
|
7633
7917
|
|
|
7634
7918
|
|
|
7919
|
+
/***/ }),
|
|
7920
|
+
|
|
7921
|
+
/***/ "44de":
|
|
7922
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7923
|
+
|
|
7924
|
+
var global = __webpack_require__("da84");
|
|
7925
|
+
|
|
7926
|
+
module.exports = function (a, b) {
|
|
7927
|
+
var console = global.console;
|
|
7928
|
+
if (console && console.error) {
|
|
7929
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
7930
|
+
}
|
|
7931
|
+
};
|
|
7932
|
+
|
|
7933
|
+
|
|
7635
7934
|
/***/ }),
|
|
7636
7935
|
|
|
7637
7936
|
/***/ "44e7":
|
|
@@ -11099,7 +11398,7 @@ var update = add("601a32f1", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
11099
11398
|
// ESM COMPAT FLAG
|
|
11100
11399
|
__webpack_require__.r(__webpack_exports__);
|
|
11101
11400
|
|
|
11102
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
11401
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/loading-component/loading-component.vue?vue&type=template&id=cf5a287e&scoped=true&
|
|
11103
11402
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{attrs:{"loading":""}})}
|
|
11104
11403
|
var staticRenderFns = []
|
|
11105
11404
|
|
|
@@ -12614,7 +12913,7 @@ function makeWatcher(property) {
|
|
|
12614
12913
|
// ESM COMPAT FLAG
|
|
12615
12914
|
__webpack_require__.r(__webpack_exports__);
|
|
12616
12915
|
|
|
12617
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
12916
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooAlert.vue?vue&type=template&id=7d9e73c4&scoped=true&
|
|
12618
12917
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('v-snackbar',{attrs:{"color":_vm.type,"timeout":_vm.timeout,"centered":_vm.position == 'centered',"top":_vm.position == 'top',"bottom":_vm.position == 'bottom'},model:{value:(_vm.snackbar),callback:function ($$v) {_vm.snackbar=$$v},expression:"snackbar"}},[_vm._v(" "+_vm._s(_vm.message)+" "),_c('v-btn',{attrs:{"dark":"","text":""},on:{"click":function($event){_vm.snackbar = false}}},[_vm._v(_vm._s(_vm.closeButtonLabel))])],1)],1)}
|
|
12619
12918
|
var staticRenderFns = []
|
|
12620
12919
|
|
|
@@ -15178,7 +15477,7 @@ var update = add("5cce6597", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
15178
15477
|
// ESM COMPAT FLAG
|
|
15179
15478
|
__webpack_require__.r(__webpack_exports__);
|
|
15180
15479
|
|
|
15181
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15480
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/level-selector/level-selector-row.vue?vue&type=template&id=b8789e80&scoped=true&
|
|
15182
15481
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"selector-row":""}},[_c('v-row',{attrs:{"container":""}},[_c('span',{attrs:{"label":""}},[_vm._v(_vm._s(_vm.label)+" : ")]),(_vm.options && _vm.options.length > 0)?_c('span',{attrs:{"line":""}},_vm._l((_vm.options),function(key){return _c('span',{key:key,class:'level ' + ((_vm.availableOptions.includes(key)) ? 'clickable-level ' : 'disabled-level ') + _vm.focus(key),attrs:{"value":""},on:{"click":function($event){_vm.emitInput(key, (_vm.availableOptions.includes(key)))}}},[_vm._v(_vm._s(key))])}),0):_c('span',{attrs:{"line":""}},_vm._l((_vm.availableOptions),function(key){return _c('span',{key:key,class:'level ' + 'clickable-level ' + _vm.focus(key),attrs:{"value":""},on:{"click":function($event){return _vm.$emit('input', key)}}},[_vm._v(_vm._s(key))])}),0)])],1)}
|
|
15183
15482
|
var staticRenderFns = []
|
|
15184
15483
|
|
|
@@ -15737,6 +16036,761 @@ function eq(value, other) {
|
|
|
15737
16036
|
module.exports = eq;
|
|
15738
16037
|
|
|
15739
16038
|
|
|
16039
|
+
/***/ }),
|
|
16040
|
+
|
|
16041
|
+
/***/ "96cf":
|
|
16042
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16043
|
+
|
|
16044
|
+
/**
|
|
16045
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
16046
|
+
*
|
|
16047
|
+
* This source code is licensed under the MIT license found in the
|
|
16048
|
+
* LICENSE file in the root directory of this source tree.
|
|
16049
|
+
*/
|
|
16050
|
+
|
|
16051
|
+
var runtime = (function (exports) {
|
|
16052
|
+
"use strict";
|
|
16053
|
+
|
|
16054
|
+
var Op = Object.prototype;
|
|
16055
|
+
var hasOwn = Op.hasOwnProperty;
|
|
16056
|
+
var undefined; // More compressible than void 0.
|
|
16057
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
16058
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
16059
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
16060
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
16061
|
+
|
|
16062
|
+
function define(obj, key, value) {
|
|
16063
|
+
Object.defineProperty(obj, key, {
|
|
16064
|
+
value: value,
|
|
16065
|
+
enumerable: true,
|
|
16066
|
+
configurable: true,
|
|
16067
|
+
writable: true
|
|
16068
|
+
});
|
|
16069
|
+
return obj[key];
|
|
16070
|
+
}
|
|
16071
|
+
try {
|
|
16072
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
16073
|
+
define({}, "");
|
|
16074
|
+
} catch (err) {
|
|
16075
|
+
define = function(obj, key, value) {
|
|
16076
|
+
return obj[key] = value;
|
|
16077
|
+
};
|
|
16078
|
+
}
|
|
16079
|
+
|
|
16080
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
16081
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
16082
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
16083
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
16084
|
+
var context = new Context(tryLocsList || []);
|
|
16085
|
+
|
|
16086
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
16087
|
+
// .throw, and .return methods.
|
|
16088
|
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
16089
|
+
|
|
16090
|
+
return generator;
|
|
16091
|
+
}
|
|
16092
|
+
exports.wrap = wrap;
|
|
16093
|
+
|
|
16094
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
16095
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
16096
|
+
// have been (and was previously) designed to take a closure to be
|
|
16097
|
+
// invoked without arguments, but in all the cases we care about we
|
|
16098
|
+
// already have an existing method we want to call, so there's no need
|
|
16099
|
+
// to create a new function object. We can even get away with assuming
|
|
16100
|
+
// the method takes exactly one argument, since that happens to be true
|
|
16101
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
16102
|
+
// only additional allocation required is the completion record, which
|
|
16103
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
16104
|
+
function tryCatch(fn, obj, arg) {
|
|
16105
|
+
try {
|
|
16106
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
16107
|
+
} catch (err) {
|
|
16108
|
+
return { type: "throw", arg: err };
|
|
16109
|
+
}
|
|
16110
|
+
}
|
|
16111
|
+
|
|
16112
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
16113
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
16114
|
+
var GenStateExecuting = "executing";
|
|
16115
|
+
var GenStateCompleted = "completed";
|
|
16116
|
+
|
|
16117
|
+
// Returning this object from the innerFn has the same effect as
|
|
16118
|
+
// breaking out of the dispatch switch statement.
|
|
16119
|
+
var ContinueSentinel = {};
|
|
16120
|
+
|
|
16121
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
16122
|
+
// .constructor.prototype properties for functions that return Generator
|
|
16123
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
16124
|
+
// minifier not to mangle the names of these two functions.
|
|
16125
|
+
function Generator() {}
|
|
16126
|
+
function GeneratorFunction() {}
|
|
16127
|
+
function GeneratorFunctionPrototype() {}
|
|
16128
|
+
|
|
16129
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
16130
|
+
// don't natively support it.
|
|
16131
|
+
var IteratorPrototype = {};
|
|
16132
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
16133
|
+
return this;
|
|
16134
|
+
};
|
|
16135
|
+
|
|
16136
|
+
var getProto = Object.getPrototypeOf;
|
|
16137
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
16138
|
+
if (NativeIteratorPrototype &&
|
|
16139
|
+
NativeIteratorPrototype !== Op &&
|
|
16140
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
16141
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
16142
|
+
// of the polyfill.
|
|
16143
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
16144
|
+
}
|
|
16145
|
+
|
|
16146
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
16147
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
16148
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
16149
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
16150
|
+
GeneratorFunction.displayName = define(
|
|
16151
|
+
GeneratorFunctionPrototype,
|
|
16152
|
+
toStringTagSymbol,
|
|
16153
|
+
"GeneratorFunction"
|
|
16154
|
+
);
|
|
16155
|
+
|
|
16156
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
16157
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
16158
|
+
function defineIteratorMethods(prototype) {
|
|
16159
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
16160
|
+
define(prototype, method, function(arg) {
|
|
16161
|
+
return this._invoke(method, arg);
|
|
16162
|
+
});
|
|
16163
|
+
});
|
|
16164
|
+
}
|
|
16165
|
+
|
|
16166
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
16167
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
16168
|
+
return ctor
|
|
16169
|
+
? ctor === GeneratorFunction ||
|
|
16170
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
16171
|
+
// do is to check its .name property.
|
|
16172
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
16173
|
+
: false;
|
|
16174
|
+
};
|
|
16175
|
+
|
|
16176
|
+
exports.mark = function(genFun) {
|
|
16177
|
+
if (Object.setPrototypeOf) {
|
|
16178
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
16179
|
+
} else {
|
|
16180
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
16181
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
16182
|
+
}
|
|
16183
|
+
genFun.prototype = Object.create(Gp);
|
|
16184
|
+
return genFun;
|
|
16185
|
+
};
|
|
16186
|
+
|
|
16187
|
+
// Within the body of any async function, `await x` is transformed to
|
|
16188
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
16189
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
16190
|
+
// meant to be awaited.
|
|
16191
|
+
exports.awrap = function(arg) {
|
|
16192
|
+
return { __await: arg };
|
|
16193
|
+
};
|
|
16194
|
+
|
|
16195
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
16196
|
+
function invoke(method, arg, resolve, reject) {
|
|
16197
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
16198
|
+
if (record.type === "throw") {
|
|
16199
|
+
reject(record.arg);
|
|
16200
|
+
} else {
|
|
16201
|
+
var result = record.arg;
|
|
16202
|
+
var value = result.value;
|
|
16203
|
+
if (value &&
|
|
16204
|
+
typeof value === "object" &&
|
|
16205
|
+
hasOwn.call(value, "__await")) {
|
|
16206
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
16207
|
+
invoke("next", value, resolve, reject);
|
|
16208
|
+
}, function(err) {
|
|
16209
|
+
invoke("throw", err, resolve, reject);
|
|
16210
|
+
});
|
|
16211
|
+
}
|
|
16212
|
+
|
|
16213
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
16214
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
16215
|
+
// the .value of the Promise<{value,done}> result for the
|
|
16216
|
+
// current iteration.
|
|
16217
|
+
result.value = unwrapped;
|
|
16218
|
+
resolve(result);
|
|
16219
|
+
}, function(error) {
|
|
16220
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
16221
|
+
// into the async generator function so it can be handled there.
|
|
16222
|
+
return invoke("throw", error, resolve, reject);
|
|
16223
|
+
});
|
|
16224
|
+
}
|
|
16225
|
+
}
|
|
16226
|
+
|
|
16227
|
+
var previousPromise;
|
|
16228
|
+
|
|
16229
|
+
function enqueue(method, arg) {
|
|
16230
|
+
function callInvokeWithMethodAndArg() {
|
|
16231
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
16232
|
+
invoke(method, arg, resolve, reject);
|
|
16233
|
+
});
|
|
16234
|
+
}
|
|
16235
|
+
|
|
16236
|
+
return previousPromise =
|
|
16237
|
+
// If enqueue has been called before, then we want to wait until
|
|
16238
|
+
// all previous Promises have been resolved before calling invoke,
|
|
16239
|
+
// so that results are always delivered in the correct order. If
|
|
16240
|
+
// enqueue has not been called before, then it is important to
|
|
16241
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
16242
|
+
// so that the async generator function has the opportunity to do
|
|
16243
|
+
// any necessary setup in a predictable way. This predictability
|
|
16244
|
+
// is why the Promise constructor synchronously invokes its
|
|
16245
|
+
// executor callback, and why async functions synchronously
|
|
16246
|
+
// execute code before the first await. Since we implement simple
|
|
16247
|
+
// async functions in terms of async generators, it is especially
|
|
16248
|
+
// important to get this right, even though it requires care.
|
|
16249
|
+
previousPromise ? previousPromise.then(
|
|
16250
|
+
callInvokeWithMethodAndArg,
|
|
16251
|
+
// Avoid propagating failures to Promises returned by later
|
|
16252
|
+
// invocations of the iterator.
|
|
16253
|
+
callInvokeWithMethodAndArg
|
|
16254
|
+
) : callInvokeWithMethodAndArg();
|
|
16255
|
+
}
|
|
16256
|
+
|
|
16257
|
+
// Define the unified helper method that is used to implement .next,
|
|
16258
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
16259
|
+
this._invoke = enqueue;
|
|
16260
|
+
}
|
|
16261
|
+
|
|
16262
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
16263
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
16264
|
+
return this;
|
|
16265
|
+
};
|
|
16266
|
+
exports.AsyncIterator = AsyncIterator;
|
|
16267
|
+
|
|
16268
|
+
// Note that simple async functions are implemented on top of
|
|
16269
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
16270
|
+
// the final result produced by the iterator.
|
|
16271
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
16272
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
16273
|
+
|
|
16274
|
+
var iter = new AsyncIterator(
|
|
16275
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
16276
|
+
PromiseImpl
|
|
16277
|
+
);
|
|
16278
|
+
|
|
16279
|
+
return exports.isGeneratorFunction(outerFn)
|
|
16280
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
16281
|
+
: iter.next().then(function(result) {
|
|
16282
|
+
return result.done ? result.value : iter.next();
|
|
16283
|
+
});
|
|
16284
|
+
};
|
|
16285
|
+
|
|
16286
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
16287
|
+
var state = GenStateSuspendedStart;
|
|
16288
|
+
|
|
16289
|
+
return function invoke(method, arg) {
|
|
16290
|
+
if (state === GenStateExecuting) {
|
|
16291
|
+
throw new Error("Generator is already running");
|
|
16292
|
+
}
|
|
16293
|
+
|
|
16294
|
+
if (state === GenStateCompleted) {
|
|
16295
|
+
if (method === "throw") {
|
|
16296
|
+
throw arg;
|
|
16297
|
+
}
|
|
16298
|
+
|
|
16299
|
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
16300
|
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
16301
|
+
return doneResult();
|
|
16302
|
+
}
|
|
16303
|
+
|
|
16304
|
+
context.method = method;
|
|
16305
|
+
context.arg = arg;
|
|
16306
|
+
|
|
16307
|
+
while (true) {
|
|
16308
|
+
var delegate = context.delegate;
|
|
16309
|
+
if (delegate) {
|
|
16310
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
16311
|
+
if (delegateResult) {
|
|
16312
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
16313
|
+
return delegateResult;
|
|
16314
|
+
}
|
|
16315
|
+
}
|
|
16316
|
+
|
|
16317
|
+
if (context.method === "next") {
|
|
16318
|
+
// Setting context._sent for legacy support of Babel's
|
|
16319
|
+
// function.sent implementation.
|
|
16320
|
+
context.sent = context._sent = context.arg;
|
|
16321
|
+
|
|
16322
|
+
} else if (context.method === "throw") {
|
|
16323
|
+
if (state === GenStateSuspendedStart) {
|
|
16324
|
+
state = GenStateCompleted;
|
|
16325
|
+
throw context.arg;
|
|
16326
|
+
}
|
|
16327
|
+
|
|
16328
|
+
context.dispatchException(context.arg);
|
|
16329
|
+
|
|
16330
|
+
} else if (context.method === "return") {
|
|
16331
|
+
context.abrupt("return", context.arg);
|
|
16332
|
+
}
|
|
16333
|
+
|
|
16334
|
+
state = GenStateExecuting;
|
|
16335
|
+
|
|
16336
|
+
var record = tryCatch(innerFn, self, context);
|
|
16337
|
+
if (record.type === "normal") {
|
|
16338
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
16339
|
+
// GenStateExecuting and loop back for another invocation.
|
|
16340
|
+
state = context.done
|
|
16341
|
+
? GenStateCompleted
|
|
16342
|
+
: GenStateSuspendedYield;
|
|
16343
|
+
|
|
16344
|
+
if (record.arg === ContinueSentinel) {
|
|
16345
|
+
continue;
|
|
16346
|
+
}
|
|
16347
|
+
|
|
16348
|
+
return {
|
|
16349
|
+
value: record.arg,
|
|
16350
|
+
done: context.done
|
|
16351
|
+
};
|
|
16352
|
+
|
|
16353
|
+
} else if (record.type === "throw") {
|
|
16354
|
+
state = GenStateCompleted;
|
|
16355
|
+
// Dispatch the exception by looping back around to the
|
|
16356
|
+
// context.dispatchException(context.arg) call above.
|
|
16357
|
+
context.method = "throw";
|
|
16358
|
+
context.arg = record.arg;
|
|
16359
|
+
}
|
|
16360
|
+
}
|
|
16361
|
+
};
|
|
16362
|
+
}
|
|
16363
|
+
|
|
16364
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
16365
|
+
// result, either by returning a { value, done } result from the
|
|
16366
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
16367
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
16368
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
16369
|
+
var method = delegate.iterator[context.method];
|
|
16370
|
+
if (method === undefined) {
|
|
16371
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
16372
|
+
// method always terminates the yield* loop.
|
|
16373
|
+
context.delegate = null;
|
|
16374
|
+
|
|
16375
|
+
if (context.method === "throw") {
|
|
16376
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
16377
|
+
if (delegate.iterator["return"]) {
|
|
16378
|
+
// If the delegate iterator has a return method, give it a
|
|
16379
|
+
// chance to clean up.
|
|
16380
|
+
context.method = "return";
|
|
16381
|
+
context.arg = undefined;
|
|
16382
|
+
maybeInvokeDelegate(delegate, context);
|
|
16383
|
+
|
|
16384
|
+
if (context.method === "throw") {
|
|
16385
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
16386
|
+
// "return" to "throw", let that override the TypeError below.
|
|
16387
|
+
return ContinueSentinel;
|
|
16388
|
+
}
|
|
16389
|
+
}
|
|
16390
|
+
|
|
16391
|
+
context.method = "throw";
|
|
16392
|
+
context.arg = new TypeError(
|
|
16393
|
+
"The iterator does not provide a 'throw' method");
|
|
16394
|
+
}
|
|
16395
|
+
|
|
16396
|
+
return ContinueSentinel;
|
|
16397
|
+
}
|
|
16398
|
+
|
|
16399
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
16400
|
+
|
|
16401
|
+
if (record.type === "throw") {
|
|
16402
|
+
context.method = "throw";
|
|
16403
|
+
context.arg = record.arg;
|
|
16404
|
+
context.delegate = null;
|
|
16405
|
+
return ContinueSentinel;
|
|
16406
|
+
}
|
|
16407
|
+
|
|
16408
|
+
var info = record.arg;
|
|
16409
|
+
|
|
16410
|
+
if (! info) {
|
|
16411
|
+
context.method = "throw";
|
|
16412
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
16413
|
+
context.delegate = null;
|
|
16414
|
+
return ContinueSentinel;
|
|
16415
|
+
}
|
|
16416
|
+
|
|
16417
|
+
if (info.done) {
|
|
16418
|
+
// Assign the result of the finished delegate to the temporary
|
|
16419
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
16420
|
+
context[delegate.resultName] = info.value;
|
|
16421
|
+
|
|
16422
|
+
// Resume execution at the desired location (see delegateYield).
|
|
16423
|
+
context.next = delegate.nextLoc;
|
|
16424
|
+
|
|
16425
|
+
// If context.method was "throw" but the delegate handled the
|
|
16426
|
+
// exception, let the outer generator proceed normally. If
|
|
16427
|
+
// context.method was "next", forget context.arg since it has been
|
|
16428
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
16429
|
+
// "return", allow the original .return call to continue in the
|
|
16430
|
+
// outer generator.
|
|
16431
|
+
if (context.method !== "return") {
|
|
16432
|
+
context.method = "next";
|
|
16433
|
+
context.arg = undefined;
|
|
16434
|
+
}
|
|
16435
|
+
|
|
16436
|
+
} else {
|
|
16437
|
+
// Re-yield the result returned by the delegate method.
|
|
16438
|
+
return info;
|
|
16439
|
+
}
|
|
16440
|
+
|
|
16441
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
16442
|
+
// the outer generator.
|
|
16443
|
+
context.delegate = null;
|
|
16444
|
+
return ContinueSentinel;
|
|
16445
|
+
}
|
|
16446
|
+
|
|
16447
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
16448
|
+
// unified ._invoke helper method.
|
|
16449
|
+
defineIteratorMethods(Gp);
|
|
16450
|
+
|
|
16451
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
16452
|
+
|
|
16453
|
+
// A Generator should always return itself as the iterator object when the
|
|
16454
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
16455
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
16456
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
16457
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
16458
|
+
Gp[iteratorSymbol] = function() {
|
|
16459
|
+
return this;
|
|
16460
|
+
};
|
|
16461
|
+
|
|
16462
|
+
Gp.toString = function() {
|
|
16463
|
+
return "[object Generator]";
|
|
16464
|
+
};
|
|
16465
|
+
|
|
16466
|
+
function pushTryEntry(locs) {
|
|
16467
|
+
var entry = { tryLoc: locs[0] };
|
|
16468
|
+
|
|
16469
|
+
if (1 in locs) {
|
|
16470
|
+
entry.catchLoc = locs[1];
|
|
16471
|
+
}
|
|
16472
|
+
|
|
16473
|
+
if (2 in locs) {
|
|
16474
|
+
entry.finallyLoc = locs[2];
|
|
16475
|
+
entry.afterLoc = locs[3];
|
|
16476
|
+
}
|
|
16477
|
+
|
|
16478
|
+
this.tryEntries.push(entry);
|
|
16479
|
+
}
|
|
16480
|
+
|
|
16481
|
+
function resetTryEntry(entry) {
|
|
16482
|
+
var record = entry.completion || {};
|
|
16483
|
+
record.type = "normal";
|
|
16484
|
+
delete record.arg;
|
|
16485
|
+
entry.completion = record;
|
|
16486
|
+
}
|
|
16487
|
+
|
|
16488
|
+
function Context(tryLocsList) {
|
|
16489
|
+
// The root entry object (effectively a try statement without a catch
|
|
16490
|
+
// or a finally block) gives us a place to store values thrown from
|
|
16491
|
+
// locations where there is no enclosing try statement.
|
|
16492
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
16493
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
16494
|
+
this.reset(true);
|
|
16495
|
+
}
|
|
16496
|
+
|
|
16497
|
+
exports.keys = function(object) {
|
|
16498
|
+
var keys = [];
|
|
16499
|
+
for (var key in object) {
|
|
16500
|
+
keys.push(key);
|
|
16501
|
+
}
|
|
16502
|
+
keys.reverse();
|
|
16503
|
+
|
|
16504
|
+
// Rather than returning an object with a next method, we keep
|
|
16505
|
+
// things simple and return the next function itself.
|
|
16506
|
+
return function next() {
|
|
16507
|
+
while (keys.length) {
|
|
16508
|
+
var key = keys.pop();
|
|
16509
|
+
if (key in object) {
|
|
16510
|
+
next.value = key;
|
|
16511
|
+
next.done = false;
|
|
16512
|
+
return next;
|
|
16513
|
+
}
|
|
16514
|
+
}
|
|
16515
|
+
|
|
16516
|
+
// To avoid creating an additional object, we just hang the .value
|
|
16517
|
+
// and .done properties off the next function object itself. This
|
|
16518
|
+
// also ensures that the minifier will not anonymize the function.
|
|
16519
|
+
next.done = true;
|
|
16520
|
+
return next;
|
|
16521
|
+
};
|
|
16522
|
+
};
|
|
16523
|
+
|
|
16524
|
+
function values(iterable) {
|
|
16525
|
+
if (iterable) {
|
|
16526
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
16527
|
+
if (iteratorMethod) {
|
|
16528
|
+
return iteratorMethod.call(iterable);
|
|
16529
|
+
}
|
|
16530
|
+
|
|
16531
|
+
if (typeof iterable.next === "function") {
|
|
16532
|
+
return iterable;
|
|
16533
|
+
}
|
|
16534
|
+
|
|
16535
|
+
if (!isNaN(iterable.length)) {
|
|
16536
|
+
var i = -1, next = function next() {
|
|
16537
|
+
while (++i < iterable.length) {
|
|
16538
|
+
if (hasOwn.call(iterable, i)) {
|
|
16539
|
+
next.value = iterable[i];
|
|
16540
|
+
next.done = false;
|
|
16541
|
+
return next;
|
|
16542
|
+
}
|
|
16543
|
+
}
|
|
16544
|
+
|
|
16545
|
+
next.value = undefined;
|
|
16546
|
+
next.done = true;
|
|
16547
|
+
|
|
16548
|
+
return next;
|
|
16549
|
+
};
|
|
16550
|
+
|
|
16551
|
+
return next.next = next;
|
|
16552
|
+
}
|
|
16553
|
+
}
|
|
16554
|
+
|
|
16555
|
+
// Return an iterator with no values.
|
|
16556
|
+
return { next: doneResult };
|
|
16557
|
+
}
|
|
16558
|
+
exports.values = values;
|
|
16559
|
+
|
|
16560
|
+
function doneResult() {
|
|
16561
|
+
return { value: undefined, done: true };
|
|
16562
|
+
}
|
|
16563
|
+
|
|
16564
|
+
Context.prototype = {
|
|
16565
|
+
constructor: Context,
|
|
16566
|
+
|
|
16567
|
+
reset: function(skipTempReset) {
|
|
16568
|
+
this.prev = 0;
|
|
16569
|
+
this.next = 0;
|
|
16570
|
+
// Resetting context._sent for legacy support of Babel's
|
|
16571
|
+
// function.sent implementation.
|
|
16572
|
+
this.sent = this._sent = undefined;
|
|
16573
|
+
this.done = false;
|
|
16574
|
+
this.delegate = null;
|
|
16575
|
+
|
|
16576
|
+
this.method = "next";
|
|
16577
|
+
this.arg = undefined;
|
|
16578
|
+
|
|
16579
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
16580
|
+
|
|
16581
|
+
if (!skipTempReset) {
|
|
16582
|
+
for (var name in this) {
|
|
16583
|
+
// Not sure about the optimal order of these conditions:
|
|
16584
|
+
if (name.charAt(0) === "t" &&
|
|
16585
|
+
hasOwn.call(this, name) &&
|
|
16586
|
+
!isNaN(+name.slice(1))) {
|
|
16587
|
+
this[name] = undefined;
|
|
16588
|
+
}
|
|
16589
|
+
}
|
|
16590
|
+
}
|
|
16591
|
+
},
|
|
16592
|
+
|
|
16593
|
+
stop: function() {
|
|
16594
|
+
this.done = true;
|
|
16595
|
+
|
|
16596
|
+
var rootEntry = this.tryEntries[0];
|
|
16597
|
+
var rootRecord = rootEntry.completion;
|
|
16598
|
+
if (rootRecord.type === "throw") {
|
|
16599
|
+
throw rootRecord.arg;
|
|
16600
|
+
}
|
|
16601
|
+
|
|
16602
|
+
return this.rval;
|
|
16603
|
+
},
|
|
16604
|
+
|
|
16605
|
+
dispatchException: function(exception) {
|
|
16606
|
+
if (this.done) {
|
|
16607
|
+
throw exception;
|
|
16608
|
+
}
|
|
16609
|
+
|
|
16610
|
+
var context = this;
|
|
16611
|
+
function handle(loc, caught) {
|
|
16612
|
+
record.type = "throw";
|
|
16613
|
+
record.arg = exception;
|
|
16614
|
+
context.next = loc;
|
|
16615
|
+
|
|
16616
|
+
if (caught) {
|
|
16617
|
+
// If the dispatched exception was caught by a catch block,
|
|
16618
|
+
// then let that catch block handle the exception normally.
|
|
16619
|
+
context.method = "next";
|
|
16620
|
+
context.arg = undefined;
|
|
16621
|
+
}
|
|
16622
|
+
|
|
16623
|
+
return !! caught;
|
|
16624
|
+
}
|
|
16625
|
+
|
|
16626
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16627
|
+
var entry = this.tryEntries[i];
|
|
16628
|
+
var record = entry.completion;
|
|
16629
|
+
|
|
16630
|
+
if (entry.tryLoc === "root") {
|
|
16631
|
+
// Exception thrown outside of any try block that could handle
|
|
16632
|
+
// it, so set the completion value of the entire function to
|
|
16633
|
+
// throw the exception.
|
|
16634
|
+
return handle("end");
|
|
16635
|
+
}
|
|
16636
|
+
|
|
16637
|
+
if (entry.tryLoc <= this.prev) {
|
|
16638
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
16639
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
16640
|
+
|
|
16641
|
+
if (hasCatch && hasFinally) {
|
|
16642
|
+
if (this.prev < entry.catchLoc) {
|
|
16643
|
+
return handle(entry.catchLoc, true);
|
|
16644
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
16645
|
+
return handle(entry.finallyLoc);
|
|
16646
|
+
}
|
|
16647
|
+
|
|
16648
|
+
} else if (hasCatch) {
|
|
16649
|
+
if (this.prev < entry.catchLoc) {
|
|
16650
|
+
return handle(entry.catchLoc, true);
|
|
16651
|
+
}
|
|
16652
|
+
|
|
16653
|
+
} else if (hasFinally) {
|
|
16654
|
+
if (this.prev < entry.finallyLoc) {
|
|
16655
|
+
return handle(entry.finallyLoc);
|
|
16656
|
+
}
|
|
16657
|
+
|
|
16658
|
+
} else {
|
|
16659
|
+
throw new Error("try statement without catch or finally");
|
|
16660
|
+
}
|
|
16661
|
+
}
|
|
16662
|
+
}
|
|
16663
|
+
},
|
|
16664
|
+
|
|
16665
|
+
abrupt: function(type, arg) {
|
|
16666
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16667
|
+
var entry = this.tryEntries[i];
|
|
16668
|
+
if (entry.tryLoc <= this.prev &&
|
|
16669
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
16670
|
+
this.prev < entry.finallyLoc) {
|
|
16671
|
+
var finallyEntry = entry;
|
|
16672
|
+
break;
|
|
16673
|
+
}
|
|
16674
|
+
}
|
|
16675
|
+
|
|
16676
|
+
if (finallyEntry &&
|
|
16677
|
+
(type === "break" ||
|
|
16678
|
+
type === "continue") &&
|
|
16679
|
+
finallyEntry.tryLoc <= arg &&
|
|
16680
|
+
arg <= finallyEntry.finallyLoc) {
|
|
16681
|
+
// Ignore the finally entry if control is not jumping to a
|
|
16682
|
+
// location outside the try/catch block.
|
|
16683
|
+
finallyEntry = null;
|
|
16684
|
+
}
|
|
16685
|
+
|
|
16686
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
16687
|
+
record.type = type;
|
|
16688
|
+
record.arg = arg;
|
|
16689
|
+
|
|
16690
|
+
if (finallyEntry) {
|
|
16691
|
+
this.method = "next";
|
|
16692
|
+
this.next = finallyEntry.finallyLoc;
|
|
16693
|
+
return ContinueSentinel;
|
|
16694
|
+
}
|
|
16695
|
+
|
|
16696
|
+
return this.complete(record);
|
|
16697
|
+
},
|
|
16698
|
+
|
|
16699
|
+
complete: function(record, afterLoc) {
|
|
16700
|
+
if (record.type === "throw") {
|
|
16701
|
+
throw record.arg;
|
|
16702
|
+
}
|
|
16703
|
+
|
|
16704
|
+
if (record.type === "break" ||
|
|
16705
|
+
record.type === "continue") {
|
|
16706
|
+
this.next = record.arg;
|
|
16707
|
+
} else if (record.type === "return") {
|
|
16708
|
+
this.rval = this.arg = record.arg;
|
|
16709
|
+
this.method = "return";
|
|
16710
|
+
this.next = "end";
|
|
16711
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
16712
|
+
this.next = afterLoc;
|
|
16713
|
+
}
|
|
16714
|
+
|
|
16715
|
+
return ContinueSentinel;
|
|
16716
|
+
},
|
|
16717
|
+
|
|
16718
|
+
finish: function(finallyLoc) {
|
|
16719
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16720
|
+
var entry = this.tryEntries[i];
|
|
16721
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
16722
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
16723
|
+
resetTryEntry(entry);
|
|
16724
|
+
return ContinueSentinel;
|
|
16725
|
+
}
|
|
16726
|
+
}
|
|
16727
|
+
},
|
|
16728
|
+
|
|
16729
|
+
"catch": function(tryLoc) {
|
|
16730
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
16731
|
+
var entry = this.tryEntries[i];
|
|
16732
|
+
if (entry.tryLoc === tryLoc) {
|
|
16733
|
+
var record = entry.completion;
|
|
16734
|
+
if (record.type === "throw") {
|
|
16735
|
+
var thrown = record.arg;
|
|
16736
|
+
resetTryEntry(entry);
|
|
16737
|
+
}
|
|
16738
|
+
return thrown;
|
|
16739
|
+
}
|
|
16740
|
+
}
|
|
16741
|
+
|
|
16742
|
+
// The context.catch method must only be called with a location
|
|
16743
|
+
// argument that corresponds to a known catch block.
|
|
16744
|
+
throw new Error("illegal catch attempt");
|
|
16745
|
+
},
|
|
16746
|
+
|
|
16747
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
16748
|
+
this.delegate = {
|
|
16749
|
+
iterator: values(iterable),
|
|
16750
|
+
resultName: resultName,
|
|
16751
|
+
nextLoc: nextLoc
|
|
16752
|
+
};
|
|
16753
|
+
|
|
16754
|
+
if (this.method === "next") {
|
|
16755
|
+
// Deliberately forget the last sent value so that we don't
|
|
16756
|
+
// accidentally pass it on to the delegate.
|
|
16757
|
+
this.arg = undefined;
|
|
16758
|
+
}
|
|
16759
|
+
|
|
16760
|
+
return ContinueSentinel;
|
|
16761
|
+
}
|
|
16762
|
+
};
|
|
16763
|
+
|
|
16764
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
16765
|
+
// or not, return the runtime object so that we can declare the variable
|
|
16766
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
16767
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
16768
|
+
return exports;
|
|
16769
|
+
|
|
16770
|
+
}(
|
|
16771
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
16772
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
16773
|
+
// object. Either way, the resulting object will be used to initialize
|
|
16774
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
16775
|
+
true ? module.exports : undefined
|
|
16776
|
+
));
|
|
16777
|
+
|
|
16778
|
+
try {
|
|
16779
|
+
regeneratorRuntime = runtime;
|
|
16780
|
+
} catch (accidentalStrictMode) {
|
|
16781
|
+
// This module should not be running in strict mode, so the above
|
|
16782
|
+
// assignment should always work unless something is misconfigured. Just
|
|
16783
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
16784
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
16785
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
16786
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
16787
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
16788
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
16789
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
16790
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
16791
|
+
}
|
|
16792
|
+
|
|
16793
|
+
|
|
15740
16794
|
/***/ }),
|
|
15741
16795
|
|
|
15742
16796
|
/***/ "970b":
|
|
@@ -17878,7 +18932,7 @@ module.exports = isLength;
|
|
|
17878
18932
|
// ESM COMPAT FLAG
|
|
17879
18933
|
__webpack_require__.r(__webpack_exports__);
|
|
17880
18934
|
|
|
17881
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
18935
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooCrudTable.vue?vue&type=template&id=deb3d152&scoped=true&
|
|
17882
18936
|
var UnidooCrudTablevue_type_template_id_deb3d152_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.error == true)?_c('v-alert',{attrs:{"dense":"","outlined":"","type":"error"}},[_vm._v("Please enter a valid REST url root")]):_vm._e(),(_vm.url && _vm.error == false)?_c('v-data-table',{staticClass:"elevation-1",attrs:{"headers":_vm.columns,"items":_vm.alldata,"search":_vm.search},scopedSlots:_vm._u([{key:"top",fn:function(){return [_c('v-toolbar',{attrs:{"flat":""}},[_c('v-toolbar-title',[_vm._v(_vm._s(_vm.title))]),_c('v-divider',{staticClass:"mx-4",attrs:{"inset":"","vertical":""}}),_c('v-spacer'),(!_vm.onlyUpdate)?_c('v-btn',{attrs:{"color":"blue","dark":"","min-width":"150px"},on:{"click":_vm.addItem}},[_vm._v("Create Item")]):_vm._e(),_c('v-spacer'),_c('v-text-field',{attrs:{"append-icon":"mdi-magnify","label":"Search","single-line":"","hide-details":""},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:"search"}}),_c('v-dialog',{staticStyle:{"z-index":"1000"},attrs:{"max-width":"1000px"},model:{value:(_vm.itemDialog),callback:function ($$v) {_vm.itemDialog=$$v},expression:"itemDialog"}},[_c('v-card',[_c('v-card-title',[_c('span',{staticClass:"headline"},[_vm._v(_vm._s(_vm.titleEdit))])]),_c('v-card-text',[_c('v-container',[_c('v-row',_vm._l((Object.keys(_vm.defaultItem)),function(field,index){return _c('v-col',{key:index,attrs:{"cols":"12","sm":"6","md":"4"}},[(typeof _vm.editedItem[field] == 'number')?_c('v-text-field',{attrs:{"label":field,"type":"number"},model:{value:(_vm.editedItem[field]),callback:function ($$v) {_vm.$set(_vm.editedItem, field, $$v)},expression:"editedItem[field]"}}):_vm._e(),(typeof _vm.editedItem[field] == 'boolean')?_c('v-switch',{attrs:{"flat":"","label":("" + (_vm.editedItem[field].toString()))},model:{value:(_vm.editedItem[field]),callback:function ($$v) {_vm.$set(_vm.editedItem, field, $$v)},expression:"editedItem[field]"}}):_c('v-text-field',{attrs:{"label":field},model:{value:(_vm.editedItem[field]),callback:function ($$v) {_vm.$set(_vm.editedItem, field, $$v)},expression:"editedItem[field]"}})],1)}),1)],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{"dark":"","color":"blue"},on:{"click":function($event){return _vm.close()}}},[_vm._v("Cancel")]),_c('v-btn',{attrs:{"dark":"","color":"success"},on:{"click":function($event){return _vm.saveItem()}}},[_vm._v("Save")])],1)],1)],1),_c('v-dialog',{staticStyle:{"z-index":"1000"},attrs:{"max-width":"1000px"},model:{value:(_vm.itemDeleteDialog),callback:function ($$v) {_vm.itemDeleteDialog=$$v},expression:"itemDeleteDialog"}},[_c('v-card',{attrs:{"flat":""}},[_c('v-card-title',[_c('span',{staticClass:"headline"},[_vm._v("Are you sure you want to delete this item ?")])]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{"dark":"","color":"blue"},on:{"click":_vm.close}},[_vm._v("Cancel")]),_c('v-btn',{attrs:{"dark":"","color":"red darken-1"},on:{"click":function($event){return _vm.deleteThisItem()}}},[_vm._v("Yes")])],1)],1)],1)],1)]},proxy:true},{key:"item.actions",fn:function(ref){
|
|
17883
18937
|
var item = ref.item;
|
|
17884
18938
|
return [_c('v-icon',{staticClass:"ma-2",attrs:{"color":"blue"},on:{"click":function($event){return _vm.editItem(item)}}},[_vm._v("edit")]),(!_vm.onlyUpdate)?_c('v-icon',{staticClass:"ma-2",attrs:{"color":"red"},on:{"click":function($event){return _vm.deleteItem(item)}}},[_vm._v("delete")]):_vm._e()]}}],null,true)}):_vm._e()],1)}
|
|
@@ -23828,7 +24882,7 @@ installComponents_default()(component, {VAlert: VAlert_VAlert,VBtn: VBtn_VBtn["a
|
|
|
23828
24882
|
// ESM COMPAT FLAG
|
|
23829
24883
|
__webpack_require__.r(__webpack_exports__);
|
|
23830
24884
|
|
|
23831
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
24885
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-player/level-selector/level-selector.vue?vue&type=template&id=599621b4&scoped=true&
|
|
23832
24886
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"selector":""}},[(_vm.levels && _vm.data)?_c('v-col',{attrs:{"level-selector":""}},_vm._l((_vm.levelKeys),function(key){return _c('v-row',{key:key,staticStyle:{"margin":"0 -12px"}},[_c('level-selector-row',{attrs:{"label":_vm.levels[key].label,"availableOptions":_vm.availableOptions[key],"options":_vm.getAllOptions(key)},model:{value:(_vm.selector[key]),callback:function ($$v) {_vm.$set(_vm.selector, key, $$v)},expression:"selector[key]"}})],1)}),1):_vm._e()],1)}
|
|
23833
24887
|
var staticRenderFns = []
|
|
23834
24888
|
|
|
@@ -24249,6 +25303,91 @@ exports.push([module.i, ".theme--light.v-messages{color:rgba(0,0,0,.6)}.theme--d
|
|
|
24249
25303
|
module.exports = exports;
|
|
24250
25304
|
|
|
24251
25305
|
|
|
25306
|
+
/***/ }),
|
|
25307
|
+
|
|
25308
|
+
/***/ "b575":
|
|
25309
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25310
|
+
|
|
25311
|
+
var global = __webpack_require__("da84");
|
|
25312
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
25313
|
+
var classof = __webpack_require__("c6b6");
|
|
25314
|
+
var macrotask = __webpack_require__("2cf4").set;
|
|
25315
|
+
var IS_IOS = __webpack_require__("1cdc");
|
|
25316
|
+
|
|
25317
|
+
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
|
25318
|
+
var process = global.process;
|
|
25319
|
+
var Promise = global.Promise;
|
|
25320
|
+
var IS_NODE = classof(process) == 'process';
|
|
25321
|
+
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
25322
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
25323
|
+
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
25324
|
+
|
|
25325
|
+
var flush, head, last, notify, toggle, node, promise, then;
|
|
25326
|
+
|
|
25327
|
+
// modern engines have queueMicrotask method
|
|
25328
|
+
if (!queueMicrotask) {
|
|
25329
|
+
flush = function () {
|
|
25330
|
+
var parent, fn;
|
|
25331
|
+
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
25332
|
+
while (head) {
|
|
25333
|
+
fn = head.fn;
|
|
25334
|
+
head = head.next;
|
|
25335
|
+
try {
|
|
25336
|
+
fn();
|
|
25337
|
+
} catch (error) {
|
|
25338
|
+
if (head) notify();
|
|
25339
|
+
else last = undefined;
|
|
25340
|
+
throw error;
|
|
25341
|
+
}
|
|
25342
|
+
} last = undefined;
|
|
25343
|
+
if (parent) parent.enter();
|
|
25344
|
+
};
|
|
25345
|
+
|
|
25346
|
+
// Node.js
|
|
25347
|
+
if (IS_NODE) {
|
|
25348
|
+
notify = function () {
|
|
25349
|
+
process.nextTick(flush);
|
|
25350
|
+
};
|
|
25351
|
+
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
25352
|
+
} else if (MutationObserver && !IS_IOS) {
|
|
25353
|
+
toggle = true;
|
|
25354
|
+
node = document.createTextNode('');
|
|
25355
|
+
new MutationObserver(flush).observe(node, { characterData: true });
|
|
25356
|
+
notify = function () {
|
|
25357
|
+
node.data = toggle = !toggle;
|
|
25358
|
+
};
|
|
25359
|
+
// environments with maybe non-completely correct, but existent Promise
|
|
25360
|
+
} else if (Promise && Promise.resolve) {
|
|
25361
|
+
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
25362
|
+
promise = Promise.resolve(undefined);
|
|
25363
|
+
then = promise.then;
|
|
25364
|
+
notify = function () {
|
|
25365
|
+
then.call(promise, flush);
|
|
25366
|
+
};
|
|
25367
|
+
// for other environments - macrotask based on:
|
|
25368
|
+
// - setImmediate
|
|
25369
|
+
// - MessageChannel
|
|
25370
|
+
// - window.postMessag
|
|
25371
|
+
// - onreadystatechange
|
|
25372
|
+
// - setTimeout
|
|
25373
|
+
} else {
|
|
25374
|
+
notify = function () {
|
|
25375
|
+
// strange IE + webpack dev server bug - use .call(global)
|
|
25376
|
+
macrotask.call(global, flush);
|
|
25377
|
+
};
|
|
25378
|
+
}
|
|
25379
|
+
}
|
|
25380
|
+
|
|
25381
|
+
module.exports = queueMicrotask || function (fn) {
|
|
25382
|
+
var task = { fn: fn, next: undefined };
|
|
25383
|
+
if (last) last.next = task;
|
|
25384
|
+
if (!head) {
|
|
25385
|
+
head = task;
|
|
25386
|
+
notify();
|
|
25387
|
+
} last = task;
|
|
25388
|
+
};
|
|
25389
|
+
|
|
25390
|
+
|
|
24252
25391
|
/***/ }),
|
|
24253
25392
|
|
|
24254
25393
|
/***/ "b5a7":
|
|
@@ -24317,7 +25456,7 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
|
24317
25456
|
// ESM COMPAT FLAG
|
|
24318
25457
|
__webpack_require__.r(__webpack_exports__);
|
|
24319
25458
|
|
|
24320
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
25459
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooCaptcha.vue?vue&type=template&id=c1e33a78&scoped=true&
|
|
24321
25460
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('div',{ref:"captcha"}),_c('div',[_c('v-text-field',{attrs:{"label":_vm.textFieldLabel},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:"text"}}),_c('v-btn',{attrs:{"color":_vm.color},on:{"click":_vm.refresh}},[_vm._v(_vm._s(_vm.refreshButtonLabel))])],1)])}
|
|
24322
25461
|
var staticRenderFns = []
|
|
24323
25462
|
|
|
@@ -25642,7 +26781,7 @@ module.exports = function (it) {
|
|
|
25642
26781
|
// ESM COMPAT FLAG
|
|
25643
26782
|
__webpack_require__.r(__webpack_exports__);
|
|
25644
26783
|
|
|
25645
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
26784
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/unidoo-heatmap/UnidooHeatmap.vue?vue&type=template&id=1418a964&scoped=true&
|
|
25646
26785
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('section',{attrs:{"heatmap-calendar":""}},_vm._l((_vm.heatmap.monthCalendar),function(month,monthIndex){return _c('div',{key:monthIndex,attrs:{"month":""}},[_c('header',[_vm._v(_vm._s(_vm.lo.months[monthIndex]))]),_c('div',{attrs:{"days":""}},_vm._l((month),function(day,dayIndex){return _c('div',{directives:[{name:"tooltip",rawName:"v-tooltip",value:(_vm.tooltipOptions(day)),expression:"tooltipOptions(day)"}],key:dayIndex,class:_vm.computeClass(day),style:({ opacity : ((day.date <= _vm.now) ? 1 : 0.3), backgroundColor: _vm.getColor(day.colorIndex) }),attrs:{"data-day":_vm.formatDate(day.date),"data-count":day.count,"data-color":day.colorIndex},on:{"click":function($event){return _vm.handleClick($event,day)}}},[(day.date < _vm.now)?_c('div',{style:({ color: _vm.getTextColor(day) })},[_vm._v(_vm._s(dayIndex + 1))]):_vm._e()])}),0)])}),0)])}
|
|
25647
26786
|
var staticRenderFns = []
|
|
25648
26787
|
|
|
@@ -26246,6 +27385,25 @@ function identity(value) {
|
|
|
26246
27385
|
module.exports = identity;
|
|
26247
27386
|
|
|
26248
27387
|
|
|
27388
|
+
/***/ }),
|
|
27389
|
+
|
|
27390
|
+
/***/ "cdf9":
|
|
27391
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27392
|
+
|
|
27393
|
+
var anObject = __webpack_require__("825a");
|
|
27394
|
+
var isObject = __webpack_require__("861d");
|
|
27395
|
+
var newPromiseCapability = __webpack_require__("f069");
|
|
27396
|
+
|
|
27397
|
+
module.exports = function (C, x) {
|
|
27398
|
+
anObject(C);
|
|
27399
|
+
if (isObject(x) && x.constructor === C) return x;
|
|
27400
|
+
var promiseCapability = newPromiseCapability.f(C);
|
|
27401
|
+
var resolve = promiseCapability.resolve;
|
|
27402
|
+
resolve(x);
|
|
27403
|
+
return promiseCapability.promise;
|
|
27404
|
+
};
|
|
27405
|
+
|
|
27406
|
+
|
|
26249
27407
|
/***/ }),
|
|
26250
27408
|
|
|
26251
27409
|
/***/ "ce4e":
|
|
@@ -29085,7 +30243,7 @@ module.exports = !fails(function () {
|
|
|
29085
30243
|
// ESM COMPAT FLAG
|
|
29086
30244
|
__webpack_require__.r(__webpack_exports__);
|
|
29087
30245
|
|
|
29088
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
30246
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6dbbdad4-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/UnidooTrajectoryMap.vue?vue&type=template&id=3b14a195&
|
|
29089
30247
|
var UnidooTrajectoryMapvue_type_template_id_3b14a195_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"map-root",staticStyle:{"width":"100%","height":"100%"}})}
|
|
29090
30248
|
var staticRenderFns = []
|
|
29091
30249
|
|
|
@@ -66275,6 +67433,19 @@ addToUnscopables('values');
|
|
|
66275
67433
|
addToUnscopables('entries');
|
|
66276
67434
|
|
|
66277
67435
|
|
|
67436
|
+
/***/ }),
|
|
67437
|
+
|
|
67438
|
+
/***/ "e2cc":
|
|
67439
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
67440
|
+
|
|
67441
|
+
var redefine = __webpack_require__("6eeb");
|
|
67442
|
+
|
|
67443
|
+
module.exports = function (target, src, options) {
|
|
67444
|
+
for (var key in src) redefine(target, key, src[key], options);
|
|
67445
|
+
return target;
|
|
67446
|
+
};
|
|
67447
|
+
|
|
67448
|
+
|
|
66278
67449
|
/***/ }),
|
|
66279
67450
|
|
|
66280
67451
|
/***/ "e37d":
|
|
@@ -68442,6 +69613,407 @@ module.exports = cloneBuffer;
|
|
|
68442
69613
|
|
|
68443
69614
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module)))
|
|
68444
69615
|
|
|
69616
|
+
/***/ }),
|
|
69617
|
+
|
|
69618
|
+
/***/ "e667":
|
|
69619
|
+
/***/ (function(module, exports) {
|
|
69620
|
+
|
|
69621
|
+
module.exports = function (exec) {
|
|
69622
|
+
try {
|
|
69623
|
+
return { error: false, value: exec() };
|
|
69624
|
+
} catch (error) {
|
|
69625
|
+
return { error: true, value: error };
|
|
69626
|
+
}
|
|
69627
|
+
};
|
|
69628
|
+
|
|
69629
|
+
|
|
69630
|
+
/***/ }),
|
|
69631
|
+
|
|
69632
|
+
/***/ "e6cf":
|
|
69633
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
69634
|
+
|
|
69635
|
+
"use strict";
|
|
69636
|
+
|
|
69637
|
+
var $ = __webpack_require__("23e7");
|
|
69638
|
+
var IS_PURE = __webpack_require__("c430");
|
|
69639
|
+
var global = __webpack_require__("da84");
|
|
69640
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
69641
|
+
var NativePromise = __webpack_require__("fea9");
|
|
69642
|
+
var redefine = __webpack_require__("6eeb");
|
|
69643
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
69644
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
69645
|
+
var setSpecies = __webpack_require__("2626");
|
|
69646
|
+
var isObject = __webpack_require__("861d");
|
|
69647
|
+
var aFunction = __webpack_require__("1c0b");
|
|
69648
|
+
var anInstance = __webpack_require__("19aa");
|
|
69649
|
+
var classof = __webpack_require__("c6b6");
|
|
69650
|
+
var inspectSource = __webpack_require__("8925");
|
|
69651
|
+
var iterate = __webpack_require__("2266");
|
|
69652
|
+
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
|
69653
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
69654
|
+
var task = __webpack_require__("2cf4").set;
|
|
69655
|
+
var microtask = __webpack_require__("b575");
|
|
69656
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
69657
|
+
var hostReportErrors = __webpack_require__("44de");
|
|
69658
|
+
var newPromiseCapabilityModule = __webpack_require__("f069");
|
|
69659
|
+
var perform = __webpack_require__("e667");
|
|
69660
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
69661
|
+
var isForced = __webpack_require__("94ca");
|
|
69662
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
69663
|
+
var V8_VERSION = __webpack_require__("2d00");
|
|
69664
|
+
|
|
69665
|
+
var SPECIES = wellKnownSymbol('species');
|
|
69666
|
+
var PROMISE = 'Promise';
|
|
69667
|
+
var getInternalState = InternalStateModule.get;
|
|
69668
|
+
var setInternalState = InternalStateModule.set;
|
|
69669
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
69670
|
+
var PromiseConstructor = NativePromise;
|
|
69671
|
+
var TypeError = global.TypeError;
|
|
69672
|
+
var document = global.document;
|
|
69673
|
+
var process = global.process;
|
|
69674
|
+
var $fetch = getBuiltIn('fetch');
|
|
69675
|
+
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
69676
|
+
var newGenericPromiseCapability = newPromiseCapability;
|
|
69677
|
+
var IS_NODE = classof(process) == 'process';
|
|
69678
|
+
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
|
69679
|
+
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
69680
|
+
var REJECTION_HANDLED = 'rejectionhandled';
|
|
69681
|
+
var PENDING = 0;
|
|
69682
|
+
var FULFILLED = 1;
|
|
69683
|
+
var REJECTED = 2;
|
|
69684
|
+
var HANDLED = 1;
|
|
69685
|
+
var UNHANDLED = 2;
|
|
69686
|
+
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
69687
|
+
|
|
69688
|
+
var FORCED = isForced(PROMISE, function () {
|
|
69689
|
+
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
|
69690
|
+
if (!GLOBAL_CORE_JS_PROMISE) {
|
|
69691
|
+
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
69692
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
69693
|
+
// We can't detect it synchronously, so just check versions
|
|
69694
|
+
if (V8_VERSION === 66) return true;
|
|
69695
|
+
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
69696
|
+
if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
|
|
69697
|
+
}
|
|
69698
|
+
// We need Promise#finally in the pure version for preventing prototype pollution
|
|
69699
|
+
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
|
69700
|
+
// We can't use @@species feature detection in V8 since it causes
|
|
69701
|
+
// deoptimization and performance degradation
|
|
69702
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
69703
|
+
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
|
69704
|
+
// Detect correctness of subclassing with @@species support
|
|
69705
|
+
var promise = PromiseConstructor.resolve(1);
|
|
69706
|
+
var FakePromise = function (exec) {
|
|
69707
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
69708
|
+
};
|
|
69709
|
+
var constructor = promise.constructor = {};
|
|
69710
|
+
constructor[SPECIES] = FakePromise;
|
|
69711
|
+
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
|
|
69712
|
+
});
|
|
69713
|
+
|
|
69714
|
+
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
|
69715
|
+
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
69716
|
+
});
|
|
69717
|
+
|
|
69718
|
+
// helpers
|
|
69719
|
+
var isThenable = function (it) {
|
|
69720
|
+
var then;
|
|
69721
|
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
69722
|
+
};
|
|
69723
|
+
|
|
69724
|
+
var notify = function (promise, state, isReject) {
|
|
69725
|
+
if (state.notified) return;
|
|
69726
|
+
state.notified = true;
|
|
69727
|
+
var chain = state.reactions;
|
|
69728
|
+
microtask(function () {
|
|
69729
|
+
var value = state.value;
|
|
69730
|
+
var ok = state.state == FULFILLED;
|
|
69731
|
+
var index = 0;
|
|
69732
|
+
// variable length - can't use forEach
|
|
69733
|
+
while (chain.length > index) {
|
|
69734
|
+
var reaction = chain[index++];
|
|
69735
|
+
var handler = ok ? reaction.ok : reaction.fail;
|
|
69736
|
+
var resolve = reaction.resolve;
|
|
69737
|
+
var reject = reaction.reject;
|
|
69738
|
+
var domain = reaction.domain;
|
|
69739
|
+
var result, then, exited;
|
|
69740
|
+
try {
|
|
69741
|
+
if (handler) {
|
|
69742
|
+
if (!ok) {
|
|
69743
|
+
if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);
|
|
69744
|
+
state.rejection = HANDLED;
|
|
69745
|
+
}
|
|
69746
|
+
if (handler === true) result = value;
|
|
69747
|
+
else {
|
|
69748
|
+
if (domain) domain.enter();
|
|
69749
|
+
result = handler(value); // can throw
|
|
69750
|
+
if (domain) {
|
|
69751
|
+
domain.exit();
|
|
69752
|
+
exited = true;
|
|
69753
|
+
}
|
|
69754
|
+
}
|
|
69755
|
+
if (result === reaction.promise) {
|
|
69756
|
+
reject(TypeError('Promise-chain cycle'));
|
|
69757
|
+
} else if (then = isThenable(result)) {
|
|
69758
|
+
then.call(result, resolve, reject);
|
|
69759
|
+
} else resolve(result);
|
|
69760
|
+
} else reject(value);
|
|
69761
|
+
} catch (error) {
|
|
69762
|
+
if (domain && !exited) domain.exit();
|
|
69763
|
+
reject(error);
|
|
69764
|
+
}
|
|
69765
|
+
}
|
|
69766
|
+
state.reactions = [];
|
|
69767
|
+
state.notified = false;
|
|
69768
|
+
if (isReject && !state.rejection) onUnhandled(promise, state);
|
|
69769
|
+
});
|
|
69770
|
+
};
|
|
69771
|
+
|
|
69772
|
+
var dispatchEvent = function (name, promise, reason) {
|
|
69773
|
+
var event, handler;
|
|
69774
|
+
if (DISPATCH_EVENT) {
|
|
69775
|
+
event = document.createEvent('Event');
|
|
69776
|
+
event.promise = promise;
|
|
69777
|
+
event.reason = reason;
|
|
69778
|
+
event.initEvent(name, false, true);
|
|
69779
|
+
global.dispatchEvent(event);
|
|
69780
|
+
} else event = { promise: promise, reason: reason };
|
|
69781
|
+
if (handler = global['on' + name]) handler(event);
|
|
69782
|
+
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
69783
|
+
};
|
|
69784
|
+
|
|
69785
|
+
var onUnhandled = function (promise, state) {
|
|
69786
|
+
task.call(global, function () {
|
|
69787
|
+
var value = state.value;
|
|
69788
|
+
var IS_UNHANDLED = isUnhandled(state);
|
|
69789
|
+
var result;
|
|
69790
|
+
if (IS_UNHANDLED) {
|
|
69791
|
+
result = perform(function () {
|
|
69792
|
+
if (IS_NODE) {
|
|
69793
|
+
process.emit('unhandledRejection', value, promise);
|
|
69794
|
+
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
69795
|
+
});
|
|
69796
|
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
69797
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
69798
|
+
if (result.error) throw result.value;
|
|
69799
|
+
}
|
|
69800
|
+
});
|
|
69801
|
+
};
|
|
69802
|
+
|
|
69803
|
+
var isUnhandled = function (state) {
|
|
69804
|
+
return state.rejection !== HANDLED && !state.parent;
|
|
69805
|
+
};
|
|
69806
|
+
|
|
69807
|
+
var onHandleUnhandled = function (promise, state) {
|
|
69808
|
+
task.call(global, function () {
|
|
69809
|
+
if (IS_NODE) {
|
|
69810
|
+
process.emit('rejectionHandled', promise);
|
|
69811
|
+
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
69812
|
+
});
|
|
69813
|
+
};
|
|
69814
|
+
|
|
69815
|
+
var bind = function (fn, promise, state, unwrap) {
|
|
69816
|
+
return function (value) {
|
|
69817
|
+
fn(promise, state, value, unwrap);
|
|
69818
|
+
};
|
|
69819
|
+
};
|
|
69820
|
+
|
|
69821
|
+
var internalReject = function (promise, state, value, unwrap) {
|
|
69822
|
+
if (state.done) return;
|
|
69823
|
+
state.done = true;
|
|
69824
|
+
if (unwrap) state = unwrap;
|
|
69825
|
+
state.value = value;
|
|
69826
|
+
state.state = REJECTED;
|
|
69827
|
+
notify(promise, state, true);
|
|
69828
|
+
};
|
|
69829
|
+
|
|
69830
|
+
var internalResolve = function (promise, state, value, unwrap) {
|
|
69831
|
+
if (state.done) return;
|
|
69832
|
+
state.done = true;
|
|
69833
|
+
if (unwrap) state = unwrap;
|
|
69834
|
+
try {
|
|
69835
|
+
if (promise === value) throw TypeError("Promise can't be resolved itself");
|
|
69836
|
+
var then = isThenable(value);
|
|
69837
|
+
if (then) {
|
|
69838
|
+
microtask(function () {
|
|
69839
|
+
var wrapper = { done: false };
|
|
69840
|
+
try {
|
|
69841
|
+
then.call(value,
|
|
69842
|
+
bind(internalResolve, promise, wrapper, state),
|
|
69843
|
+
bind(internalReject, promise, wrapper, state)
|
|
69844
|
+
);
|
|
69845
|
+
} catch (error) {
|
|
69846
|
+
internalReject(promise, wrapper, error, state);
|
|
69847
|
+
}
|
|
69848
|
+
});
|
|
69849
|
+
} else {
|
|
69850
|
+
state.value = value;
|
|
69851
|
+
state.state = FULFILLED;
|
|
69852
|
+
notify(promise, state, false);
|
|
69853
|
+
}
|
|
69854
|
+
} catch (error) {
|
|
69855
|
+
internalReject(promise, { done: false }, error, state);
|
|
69856
|
+
}
|
|
69857
|
+
};
|
|
69858
|
+
|
|
69859
|
+
// constructor polyfill
|
|
69860
|
+
if (FORCED) {
|
|
69861
|
+
// 25.4.3.1 Promise(executor)
|
|
69862
|
+
PromiseConstructor = function Promise(executor) {
|
|
69863
|
+
anInstance(this, PromiseConstructor, PROMISE);
|
|
69864
|
+
aFunction(executor);
|
|
69865
|
+
Internal.call(this);
|
|
69866
|
+
var state = getInternalState(this);
|
|
69867
|
+
try {
|
|
69868
|
+
executor(bind(internalResolve, this, state), bind(internalReject, this, state));
|
|
69869
|
+
} catch (error) {
|
|
69870
|
+
internalReject(this, state, error);
|
|
69871
|
+
}
|
|
69872
|
+
};
|
|
69873
|
+
// eslint-disable-next-line no-unused-vars
|
|
69874
|
+
Internal = function Promise(executor) {
|
|
69875
|
+
setInternalState(this, {
|
|
69876
|
+
type: PROMISE,
|
|
69877
|
+
done: false,
|
|
69878
|
+
notified: false,
|
|
69879
|
+
parent: false,
|
|
69880
|
+
reactions: [],
|
|
69881
|
+
rejection: false,
|
|
69882
|
+
state: PENDING,
|
|
69883
|
+
value: undefined
|
|
69884
|
+
});
|
|
69885
|
+
};
|
|
69886
|
+
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
|
69887
|
+
// `Promise.prototype.then` method
|
|
69888
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
69889
|
+
then: function then(onFulfilled, onRejected) {
|
|
69890
|
+
var state = getInternalPromiseState(this);
|
|
69891
|
+
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
69892
|
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
69893
|
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
69894
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
69895
|
+
state.parent = true;
|
|
69896
|
+
state.reactions.push(reaction);
|
|
69897
|
+
if (state.state != PENDING) notify(this, state, false);
|
|
69898
|
+
return reaction.promise;
|
|
69899
|
+
},
|
|
69900
|
+
// `Promise.prototype.catch` method
|
|
69901
|
+
// https://tc39.github.io/ecma262/#sec-promise.prototype.catch
|
|
69902
|
+
'catch': function (onRejected) {
|
|
69903
|
+
return this.then(undefined, onRejected);
|
|
69904
|
+
}
|
|
69905
|
+
});
|
|
69906
|
+
OwnPromiseCapability = function () {
|
|
69907
|
+
var promise = new Internal();
|
|
69908
|
+
var state = getInternalState(promise);
|
|
69909
|
+
this.promise = promise;
|
|
69910
|
+
this.resolve = bind(internalResolve, promise, state);
|
|
69911
|
+
this.reject = bind(internalReject, promise, state);
|
|
69912
|
+
};
|
|
69913
|
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
69914
|
+
return C === PromiseConstructor || C === PromiseWrapper
|
|
69915
|
+
? new OwnPromiseCapability(C)
|
|
69916
|
+
: newGenericPromiseCapability(C);
|
|
69917
|
+
};
|
|
69918
|
+
|
|
69919
|
+
if (!IS_PURE && typeof NativePromise == 'function') {
|
|
69920
|
+
nativeThen = NativePromise.prototype.then;
|
|
69921
|
+
|
|
69922
|
+
// wrap native Promise#then for native async functions
|
|
69923
|
+
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
|
69924
|
+
var that = this;
|
|
69925
|
+
return new PromiseConstructor(function (resolve, reject) {
|
|
69926
|
+
nativeThen.call(that, resolve, reject);
|
|
69927
|
+
}).then(onFulfilled, onRejected);
|
|
69928
|
+
// https://github.com/zloirock/core-js/issues/640
|
|
69929
|
+
}, { unsafe: true });
|
|
69930
|
+
|
|
69931
|
+
// wrap fetch result
|
|
69932
|
+
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
|
69933
|
+
// eslint-disable-next-line no-unused-vars
|
|
69934
|
+
fetch: function fetch(input /* , init */) {
|
|
69935
|
+
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
|
69936
|
+
}
|
|
69937
|
+
});
|
|
69938
|
+
}
|
|
69939
|
+
}
|
|
69940
|
+
|
|
69941
|
+
$({ global: true, wrap: true, forced: FORCED }, {
|
|
69942
|
+
Promise: PromiseConstructor
|
|
69943
|
+
});
|
|
69944
|
+
|
|
69945
|
+
setToStringTag(PromiseConstructor, PROMISE, false, true);
|
|
69946
|
+
setSpecies(PROMISE);
|
|
69947
|
+
|
|
69948
|
+
PromiseWrapper = getBuiltIn(PROMISE);
|
|
69949
|
+
|
|
69950
|
+
// statics
|
|
69951
|
+
$({ target: PROMISE, stat: true, forced: FORCED }, {
|
|
69952
|
+
// `Promise.reject` method
|
|
69953
|
+
// https://tc39.github.io/ecma262/#sec-promise.reject
|
|
69954
|
+
reject: function reject(r) {
|
|
69955
|
+
var capability = newPromiseCapability(this);
|
|
69956
|
+
capability.reject.call(undefined, r);
|
|
69957
|
+
return capability.promise;
|
|
69958
|
+
}
|
|
69959
|
+
});
|
|
69960
|
+
|
|
69961
|
+
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
|
69962
|
+
// `Promise.resolve` method
|
|
69963
|
+
// https://tc39.github.io/ecma262/#sec-promise.resolve
|
|
69964
|
+
resolve: function resolve(x) {
|
|
69965
|
+
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
|
69966
|
+
}
|
|
69967
|
+
});
|
|
69968
|
+
|
|
69969
|
+
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
69970
|
+
// `Promise.all` method
|
|
69971
|
+
// https://tc39.github.io/ecma262/#sec-promise.all
|
|
69972
|
+
all: function all(iterable) {
|
|
69973
|
+
var C = this;
|
|
69974
|
+
var capability = newPromiseCapability(C);
|
|
69975
|
+
var resolve = capability.resolve;
|
|
69976
|
+
var reject = capability.reject;
|
|
69977
|
+
var result = perform(function () {
|
|
69978
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
69979
|
+
var values = [];
|
|
69980
|
+
var counter = 0;
|
|
69981
|
+
var remaining = 1;
|
|
69982
|
+
iterate(iterable, function (promise) {
|
|
69983
|
+
var index = counter++;
|
|
69984
|
+
var alreadyCalled = false;
|
|
69985
|
+
values.push(undefined);
|
|
69986
|
+
remaining++;
|
|
69987
|
+
$promiseResolve.call(C, promise).then(function (value) {
|
|
69988
|
+
if (alreadyCalled) return;
|
|
69989
|
+
alreadyCalled = true;
|
|
69990
|
+
values[index] = value;
|
|
69991
|
+
--remaining || resolve(values);
|
|
69992
|
+
}, reject);
|
|
69993
|
+
});
|
|
69994
|
+
--remaining || resolve(values);
|
|
69995
|
+
});
|
|
69996
|
+
if (result.error) reject(result.value);
|
|
69997
|
+
return capability.promise;
|
|
69998
|
+
},
|
|
69999
|
+
// `Promise.race` method
|
|
70000
|
+
// https://tc39.github.io/ecma262/#sec-promise.race
|
|
70001
|
+
race: function race(iterable) {
|
|
70002
|
+
var C = this;
|
|
70003
|
+
var capability = newPromiseCapability(C);
|
|
70004
|
+
var reject = capability.reject;
|
|
70005
|
+
var result = perform(function () {
|
|
70006
|
+
var $promiseResolve = aFunction(C.resolve);
|
|
70007
|
+
iterate(iterable, function (promise) {
|
|
70008
|
+
$promiseResolve.call(C, promise).then(capability.resolve, reject);
|
|
70009
|
+
});
|
|
70010
|
+
});
|
|
70011
|
+
if (result.error) reject(result.value);
|
|
70012
|
+
return capability.promise;
|
|
70013
|
+
}
|
|
70014
|
+
});
|
|
70015
|
+
|
|
70016
|
+
|
|
68445
70017
|
/***/ }),
|
|
68446
70018
|
|
|
68447
70019
|
/***/ "e893":
|
|
@@ -68724,6 +70296,32 @@ function stackClear() {
|
|
|
68724
70296
|
module.exports = stackClear;
|
|
68725
70297
|
|
|
68726
70298
|
|
|
70299
|
+
/***/ }),
|
|
70300
|
+
|
|
70301
|
+
/***/ "f069":
|
|
70302
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
70303
|
+
|
|
70304
|
+
"use strict";
|
|
70305
|
+
|
|
70306
|
+
var aFunction = __webpack_require__("1c0b");
|
|
70307
|
+
|
|
70308
|
+
var PromiseCapability = function (C) {
|
|
70309
|
+
var resolve, reject;
|
|
70310
|
+
this.promise = new C(function ($$resolve, $$reject) {
|
|
70311
|
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
70312
|
+
resolve = $$resolve;
|
|
70313
|
+
reject = $$reject;
|
|
70314
|
+
});
|
|
70315
|
+
this.resolve = aFunction(resolve);
|
|
70316
|
+
this.reject = aFunction(reject);
|
|
70317
|
+
};
|
|
70318
|
+
|
|
70319
|
+
// 25.4.1.5 NewPromiseCapability(C)
|
|
70320
|
+
module.exports.f = function (C) {
|
|
70321
|
+
return new PromiseCapability(C);
|
|
70322
|
+
};
|
|
70323
|
+
|
|
70324
|
+
|
|
68727
70325
|
/***/ }),
|
|
68728
70326
|
|
|
68729
70327
|
/***/ "f0bd":
|
|
@@ -72116,6 +73714,16 @@ var requireComponent = __webpack_require__("4daf"); // Default export is library
|
|
|
72116
73714
|
// export {components}
|
|
72117
73715
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
72118
73716
|
|
|
73717
|
+
/***/ }),
|
|
73718
|
+
|
|
73719
|
+
/***/ "fea9":
|
|
73720
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
73721
|
+
|
|
73722
|
+
var global = __webpack_require__("da84");
|
|
73723
|
+
|
|
73724
|
+
module.exports = global.Promise;
|
|
73725
|
+
|
|
73726
|
+
|
|
72119
73727
|
/***/ }),
|
|
72120
73728
|
|
|
72121
73729
|
/***/ "ffc4":
|