@valbuild/shared 0.150.10 → 0.150.12
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/CHANGELOG.md +33 -0
- package/client/dist/valbuild-shared-client.cjs.dev.js +16 -2
- package/client/dist/valbuild-shared-client.cjs.prod.js +16 -2
- package/client/dist/valbuild-shared-client.esm.js +2 -2
- package/dist/{acquireTypes-dd976839.cjs.prod.js → acquireTypes-6250a305.cjs.prod.js} +46 -46
- package/dist/{acquireTypes-6e2f7961.esm.js → acquireTypes-c2227b23.esm.js} +2 -2
- package/dist/{acquireTypes-84a4077a.cjs.dev.js → acquireTypes-c9e757a1.cjs.dev.js} +46 -46
- package/dist/{slicedToArray-22567815.esm.js → createForOfIteratorHelper-9b80f1a2.esm.js} +136 -106
- package/dist/{slicedToArray-d99b4e2e.cjs.prod.js → createForOfIteratorHelper-9ca2078d.cjs.prod.js} +142 -111
- package/dist/{slicedToArray-c8a29f6b.cjs.dev.js → createForOfIteratorHelper-f2d7ac6d.cjs.dev.js} +142 -111
- package/dist/declarations/src/client/index.d.ts +2 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +35 -0
- package/dist/declarations/src/internal/index.d.ts +2 -0
- package/dist/declarations/src/internal/pageInspection.d.ts +117 -0
- package/dist/declarations/src/internal/quickPreview.d.ts +91 -0
- package/dist/declarations/src/internal/valCanvasProtocol.d.ts +53 -0
- package/dist/declarations/src/publish/buildProposal.d.ts +16 -1
- package/dist/declarations/src/publish/buildQuickPreview.d.ts +46 -0
- package/dist/declarations/src/publish/index.d.ts +3 -2
- package/dist/declarations/src/publish/runStudioDeploy.d.ts +10 -0
- package/dist/getSitemapTree-5354ce90.cjs.prod.js +1421 -0
- package/dist/getSitemapTree-97b3166f.esm.js +1381 -0
- package/dist/getSitemapTree-d934ff9c.cjs.dev.js +1421 -0
- package/dist/{proposalProject-689c24cc.esm.js → proposalProject-5da177d5.esm.js} +1 -2
- package/dist/{proposalProject-926f2c68.cjs.dev.js → proposalProject-76caa377.cjs.prod.js} +2 -3
- package/dist/{proposalProject-fab0c026.cjs.prod.js → proposalProject-81fee08f.cjs.dev.js} +2 -3
- package/dist/{protocol-7ddc1a71.esm.js → protocol-55cfa3cf.esm.js} +1 -1
- package/dist/{protocol-4e2a455b.cjs.prod.js → protocol-b1055ef0.cjs.prod.js} +6 -6
- package/dist/{protocol-ac1c3ec7.cjs.dev.js → protocol-d0efb8cd.cjs.dev.js} +6 -6
- package/dist/wrapNativeSuper-639b12b7.esm.js +107 -0
- package/dist/wrapNativeSuper-8673414f.cjs.prod.js +113 -0
- package/dist/wrapNativeSuper-933f991e.cjs.dev.js +113 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +94 -34
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +94 -34
- package/internal/dist/valbuild-shared-internal.esm.js +52 -6
- package/package.json +2 -2
- package/publish/dist/valbuild-shared-publish.cjs.dev.js +589 -237
- package/publish/dist/valbuild-shared-publish.cjs.prod.js +589 -237
- package/publish/dist/valbuild-shared-publish.esm.js +504 -155
- package/typecheck/dist/valbuild-shared-typecheck.cjs.dev.js +34 -34
- package/typecheck/dist/valbuild-shared-typecheck.cjs.prod.js +34 -34
- package/typecheck/dist/valbuild-shared-typecheck.esm.js +5 -5
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.dev.js +7 -7
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.prod.js +7 -7
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.esm.js +3 -3
- package/dist/createForOfIteratorHelper-666a6d17.esm.js +0 -137
- package/dist/createForOfIteratorHelper-87a33eff.cjs.dev.js +0 -145
- package/dist/createForOfIteratorHelper-fef4fa7d.cjs.prod.js +0 -145
- package/dist/getSitemapTree-873f7266.cjs.prod.js +0 -743
- package/dist/getSitemapTree-b6161fd8.esm.js +0 -717
- package/dist/getSitemapTree-be70d9fc.cjs.dev.js +0 -743
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as _objectSpread2 } from './createForOfIteratorHelper-666a6d17.esm.js';
|
|
1
|
+
import { d as _objectSpread2, a as _slicedToArray } from './createForOfIteratorHelper-9b80f1a2.esm.js';
|
|
3
2
|
|
|
4
3
|
/** The proposal's project: the site's source, with what the proposal changed laid over it. */
|
|
5
4
|
function proposalProject(site, own) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var createForOfIteratorHelper = require('./createForOfIteratorHelper-87a33eff.cjs.dev.js');
|
|
3
|
+
var createForOfIteratorHelper = require('./createForOfIteratorHelper-9ca2078d.cjs.prod.js');
|
|
5
4
|
|
|
6
5
|
/** The proposal's project: the site's source, with what the proposal changed laid over it. */
|
|
7
6
|
function proposalProject(site, own) {
|
|
8
7
|
var out = createForOfIteratorHelper._objectSpread2({}, site);
|
|
9
8
|
for (var _i = 0, _Object$entries = Object.entries(own); _i < _Object$entries.length; _i++) {
|
|
10
|
-
var _Object$entries$_i =
|
|
9
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
11
10
|
path = _Object$entries$_i[0],
|
|
12
11
|
text = _Object$entries$_i[1];
|
|
13
12
|
if (text === null) delete out[path];else out[path] = text;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var createForOfIteratorHelper = require('./createForOfIteratorHelper-fef4fa7d.cjs.prod.js');
|
|
3
|
+
var createForOfIteratorHelper = require('./createForOfIteratorHelper-f2d7ac6d.cjs.dev.js');
|
|
5
4
|
|
|
6
5
|
/** The proposal's project: the site's source, with what the proposal changed laid over it. */
|
|
7
6
|
function proposalProject(site, own) {
|
|
8
7
|
var out = createForOfIteratorHelper._objectSpread2({}, site);
|
|
9
8
|
for (var _i = 0, _Object$entries = Object.entries(own); _i < _Object$entries.length; _i++) {
|
|
10
|
-
var _Object$entries$_i =
|
|
9
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
11
10
|
path = _Object$entries$_i[0],
|
|
12
11
|
text = _Object$entries$_i[1];
|
|
13
12
|
if (text === null) delete out[path];else out[path] = text;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _inherits, a as _createClass,
|
|
1
|
+
import { _ as _inherits, a as _createClass, b as _wrapNativeSuper, c as _classCallCheck, d as _callSuper } from './wrapNativeSuper-639b12b7.esm.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { fromError } from 'zod-validation-error';
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var wrapNativeSuper = require('./wrapNativeSuper-8673414f.cjs.prod.js');
|
|
4
4
|
var zod = require('zod');
|
|
5
5
|
var zodValidationError = require('zod-validation-error');
|
|
6
6
|
|
|
@@ -116,14 +116,14 @@ var publishTokenResponse = zod.z.object({
|
|
|
116
116
|
var PublishProtocolError = /*#__PURE__*/function (_Error) {
|
|
117
117
|
function PublishProtocolError(message) {
|
|
118
118
|
var _this;
|
|
119
|
-
|
|
120
|
-
_this =
|
|
119
|
+
wrapNativeSuper._classCallCheck(this, PublishProtocolError);
|
|
120
|
+
_this = wrapNativeSuper._callSuper(this, PublishProtocolError, [message]);
|
|
121
121
|
_this.name = "PublishProtocolError";
|
|
122
122
|
return _this;
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
return
|
|
126
|
-
}(/*#__PURE__*/
|
|
124
|
+
wrapNativeSuper._inherits(PublishProtocolError, _Error);
|
|
125
|
+
return wrapNativeSuper._createClass(PublishProtocolError);
|
|
126
|
+
}(/*#__PURE__*/wrapNativeSuper._wrapNativeSuper(Error));
|
|
127
127
|
var parseDeclare = function parseDeclare(body) {
|
|
128
128
|
return parse(declareResponse, body, "POST /v1/publish");
|
|
129
129
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var wrapNativeSuper = require('./wrapNativeSuper-933f991e.cjs.dev.js');
|
|
4
4
|
var zod = require('zod');
|
|
5
5
|
var zodValidationError = require('zod-validation-error');
|
|
6
6
|
|
|
@@ -116,14 +116,14 @@ var publishTokenResponse = zod.z.object({
|
|
|
116
116
|
var PublishProtocolError = /*#__PURE__*/function (_Error) {
|
|
117
117
|
function PublishProtocolError(message) {
|
|
118
118
|
var _this;
|
|
119
|
-
|
|
120
|
-
_this =
|
|
119
|
+
wrapNativeSuper._classCallCheck(this, PublishProtocolError);
|
|
120
|
+
_this = wrapNativeSuper._callSuper(this, PublishProtocolError, [message]);
|
|
121
121
|
_this.name = "PublishProtocolError";
|
|
122
122
|
return _this;
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
return
|
|
126
|
-
}(/*#__PURE__*/
|
|
124
|
+
wrapNativeSuper._inherits(PublishProtocolError, _Error);
|
|
125
|
+
return wrapNativeSuper._createClass(PublishProtocolError);
|
|
126
|
+
}(/*#__PURE__*/wrapNativeSuper._wrapNativeSuper(Error));
|
|
127
127
|
var parseDeclare = function parseDeclare(body) {
|
|
128
128
|
return parse(declareResponse, body, "POST /v1/publish");
|
|
129
129
|
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { h as _toPropertyKey } from './createForOfIteratorHelper-9b80f1a2.esm.js';
|
|
2
|
+
|
|
3
|
+
function _defineProperties(e, r) {
|
|
4
|
+
for (var t = 0; t < r.length; t++) {
|
|
5
|
+
var o = r[t];
|
|
6
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
function _createClass(e, r, t) {
|
|
10
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
11
|
+
writable: !1
|
|
12
|
+
}), e;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function _classCallCheck(a, n) {
|
|
16
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function _getPrototypeOf(t) {
|
|
20
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
21
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
22
|
+
}, _getPrototypeOf(t);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function _isNativeReflectConstruct() {
|
|
26
|
+
try {
|
|
27
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
28
|
+
} catch (t) {}
|
|
29
|
+
return (_isNativeReflectConstruct = function () {
|
|
30
|
+
return !!t;
|
|
31
|
+
})();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function _assertThisInitialized(e) {
|
|
35
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
36
|
+
return e;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function _possibleConstructorReturn(t, e) {
|
|
40
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
41
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
42
|
+
return _assertThisInitialized(t);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function _callSuper(t, o, e) {
|
|
46
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _setPrototypeOf(t, e) {
|
|
50
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
51
|
+
return t.__proto__ = e, t;
|
|
52
|
+
}, _setPrototypeOf(t, e);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function _inherits(t, e) {
|
|
56
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
57
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
58
|
+
constructor: {
|
|
59
|
+
value: t,
|
|
60
|
+
writable: !0,
|
|
61
|
+
configurable: !0
|
|
62
|
+
}
|
|
63
|
+
}), Object.defineProperty(t, "prototype", {
|
|
64
|
+
writable: !1
|
|
65
|
+
}), e && _setPrototypeOf(t, e);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function _isNativeFunction(t) {
|
|
69
|
+
try {
|
|
70
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
71
|
+
} catch (n) {
|
|
72
|
+
return "function" == typeof t;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function _construct(t, e, r) {
|
|
77
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
78
|
+
var o = [null];
|
|
79
|
+
o.push.apply(o, e);
|
|
80
|
+
var p = new (t.bind.apply(t, o))();
|
|
81
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function _wrapNativeSuper(t) {
|
|
85
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
86
|
+
return _wrapNativeSuper = function (t) {
|
|
87
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
88
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
89
|
+
if (void 0 !== r) {
|
|
90
|
+
if (r.has(t)) return r.get(t);
|
|
91
|
+
r.set(t, Wrapper);
|
|
92
|
+
}
|
|
93
|
+
function Wrapper() {
|
|
94
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
95
|
+
}
|
|
96
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
97
|
+
constructor: {
|
|
98
|
+
value: Wrapper,
|
|
99
|
+
enumerable: !1,
|
|
100
|
+
writable: !0,
|
|
101
|
+
configurable: !0
|
|
102
|
+
}
|
|
103
|
+
}), _setPrototypeOf(Wrapper, t);
|
|
104
|
+
}, _wrapNativeSuper(t);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export { _inherits as _, _createClass as a, _wrapNativeSuper as b, _classCallCheck as c, _callSuper as d };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var createForOfIteratorHelper = require('./createForOfIteratorHelper-9ca2078d.cjs.prod.js');
|
|
4
|
+
|
|
5
|
+
function _defineProperties(e, r) {
|
|
6
|
+
for (var t = 0; t < r.length; t++) {
|
|
7
|
+
var o = r[t];
|
|
8
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, createForOfIteratorHelper._toPropertyKey(o.key), o);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function _createClass(e, r, t) {
|
|
12
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
13
|
+
writable: !1
|
|
14
|
+
}), e;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _classCallCheck(a, n) {
|
|
18
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function _getPrototypeOf(t) {
|
|
22
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
23
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
24
|
+
}, _getPrototypeOf(t);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function _isNativeReflectConstruct() {
|
|
28
|
+
try {
|
|
29
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
30
|
+
} catch (t) {}
|
|
31
|
+
return (_isNativeReflectConstruct = function () {
|
|
32
|
+
return !!t;
|
|
33
|
+
})();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function _assertThisInitialized(e) {
|
|
37
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function _possibleConstructorReturn(t, e) {
|
|
42
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
43
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
44
|
+
return _assertThisInitialized(t);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _callSuper(t, o, e) {
|
|
48
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function _setPrototypeOf(t, e) {
|
|
52
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
53
|
+
return t.__proto__ = e, t;
|
|
54
|
+
}, _setPrototypeOf(t, e);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function _inherits(t, e) {
|
|
58
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
59
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
60
|
+
constructor: {
|
|
61
|
+
value: t,
|
|
62
|
+
writable: !0,
|
|
63
|
+
configurable: !0
|
|
64
|
+
}
|
|
65
|
+
}), Object.defineProperty(t, "prototype", {
|
|
66
|
+
writable: !1
|
|
67
|
+
}), e && _setPrototypeOf(t, e);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function _isNativeFunction(t) {
|
|
71
|
+
try {
|
|
72
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
73
|
+
} catch (n) {
|
|
74
|
+
return "function" == typeof t;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function _construct(t, e, r) {
|
|
79
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
80
|
+
var o = [null];
|
|
81
|
+
o.push.apply(o, e);
|
|
82
|
+
var p = new (t.bind.apply(t, o))();
|
|
83
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _wrapNativeSuper(t) {
|
|
87
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
88
|
+
return _wrapNativeSuper = function (t) {
|
|
89
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
90
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
91
|
+
if (void 0 !== r) {
|
|
92
|
+
if (r.has(t)) return r.get(t);
|
|
93
|
+
r.set(t, Wrapper);
|
|
94
|
+
}
|
|
95
|
+
function Wrapper() {
|
|
96
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
97
|
+
}
|
|
98
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
99
|
+
constructor: {
|
|
100
|
+
value: Wrapper,
|
|
101
|
+
enumerable: !1,
|
|
102
|
+
writable: !0,
|
|
103
|
+
configurable: !0
|
|
104
|
+
}
|
|
105
|
+
}), _setPrototypeOf(Wrapper, t);
|
|
106
|
+
}, _wrapNativeSuper(t);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
exports._callSuper = _callSuper;
|
|
110
|
+
exports._classCallCheck = _classCallCheck;
|
|
111
|
+
exports._createClass = _createClass;
|
|
112
|
+
exports._inherits = _inherits;
|
|
113
|
+
exports._wrapNativeSuper = _wrapNativeSuper;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var createForOfIteratorHelper = require('./createForOfIteratorHelper-f2d7ac6d.cjs.dev.js');
|
|
4
|
+
|
|
5
|
+
function _defineProperties(e, r) {
|
|
6
|
+
for (var t = 0; t < r.length; t++) {
|
|
7
|
+
var o = r[t];
|
|
8
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, createForOfIteratorHelper._toPropertyKey(o.key), o);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function _createClass(e, r, t) {
|
|
12
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
13
|
+
writable: !1
|
|
14
|
+
}), e;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _classCallCheck(a, n) {
|
|
18
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function _getPrototypeOf(t) {
|
|
22
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
23
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
24
|
+
}, _getPrototypeOf(t);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function _isNativeReflectConstruct() {
|
|
28
|
+
try {
|
|
29
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
30
|
+
} catch (t) {}
|
|
31
|
+
return (_isNativeReflectConstruct = function () {
|
|
32
|
+
return !!t;
|
|
33
|
+
})();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function _assertThisInitialized(e) {
|
|
37
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function _possibleConstructorReturn(t, e) {
|
|
42
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
43
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
44
|
+
return _assertThisInitialized(t);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _callSuper(t, o, e) {
|
|
48
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function _setPrototypeOf(t, e) {
|
|
52
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
53
|
+
return t.__proto__ = e, t;
|
|
54
|
+
}, _setPrototypeOf(t, e);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function _inherits(t, e) {
|
|
58
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
59
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
60
|
+
constructor: {
|
|
61
|
+
value: t,
|
|
62
|
+
writable: !0,
|
|
63
|
+
configurable: !0
|
|
64
|
+
}
|
|
65
|
+
}), Object.defineProperty(t, "prototype", {
|
|
66
|
+
writable: !1
|
|
67
|
+
}), e && _setPrototypeOf(t, e);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function _isNativeFunction(t) {
|
|
71
|
+
try {
|
|
72
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
73
|
+
} catch (n) {
|
|
74
|
+
return "function" == typeof t;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function _construct(t, e, r) {
|
|
79
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
80
|
+
var o = [null];
|
|
81
|
+
o.push.apply(o, e);
|
|
82
|
+
var p = new (t.bind.apply(t, o))();
|
|
83
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _wrapNativeSuper(t) {
|
|
87
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
88
|
+
return _wrapNativeSuper = function (t) {
|
|
89
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
90
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
91
|
+
if (void 0 !== r) {
|
|
92
|
+
if (r.has(t)) return r.get(t);
|
|
93
|
+
r.set(t, Wrapper);
|
|
94
|
+
}
|
|
95
|
+
function Wrapper() {
|
|
96
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
97
|
+
}
|
|
98
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
99
|
+
constructor: {
|
|
100
|
+
value: Wrapper,
|
|
101
|
+
enumerable: !1,
|
|
102
|
+
writable: !0,
|
|
103
|
+
configurable: !0
|
|
104
|
+
}
|
|
105
|
+
}), _setPrototypeOf(Wrapper, t);
|
|
106
|
+
}, _wrapNativeSuper(t);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
exports._callSuper = _callSuper;
|
|
110
|
+
exports._classCallCheck = _classCallCheck;
|
|
111
|
+
exports._createClass = _createClass;
|
|
112
|
+
exports._inherits = _inherits;
|
|
113
|
+
exports._wrapNativeSuper = _wrapNativeSuper;
|