UNPKG

3.46 kBJavaScriptView Raw
1'use strict';
2
3var _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
4
5function _classCallCheck(instance, Constructor) {
6 if (!(instance instanceof Constructor)) {
7 throw new TypeError("Cannot call a class as a function");
8 }
9}
10
11var classCallCheck = _classCallCheck;
12
13function _defineProperties(target, props) {
14 for (var i = 0; i < props.length; i++) {
15 var descriptor = props[i];
16 descriptor.enumerable = descriptor.enumerable || false;
17 descriptor.configurable = true;
18 if ("value" in descriptor) descriptor.writable = true;
19 Object.defineProperty(target, descriptor.key, descriptor);
20 }
21}
22
23function _createClass(Constructor, protoProps, staticProps) {
24 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
25 if (staticProps) _defineProperties(Constructor, staticProps);
26 return Constructor;
27}
28
29var createClass = _createClass;
30
31var setPrototypeOf = _commonjsHelpers.createCommonjsModule(function (module) {
32function _setPrototypeOf(o, p) {
33 module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
34 o.__proto__ = p;
35 return o;
36 };
37
38 return _setPrototypeOf(o, p);
39}
40
41module.exports = _setPrototypeOf;
42});
43
44function _inherits(subClass, superClass) {
45 if (typeof superClass !== "function" && superClass !== null) {
46 throw new TypeError("Super expression must either be null or a function");
47 }
48
49 subClass.prototype = Object.create(superClass && superClass.prototype, {
50 constructor: {
51 value: subClass,
52 writable: true,
53 configurable: true
54 }
55 });
56 if (superClass) setPrototypeOf(subClass, superClass);
57}
58
59var inherits = _inherits;
60
61var _typeof_1 = _commonjsHelpers.createCommonjsModule(function (module) {
62function _typeof(obj) {
63 "@babel/helpers - typeof";
64
65 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
66 module.exports = _typeof = function _typeof(obj) {
67 return typeof obj;
68 };
69 } else {
70 module.exports = _typeof = function _typeof(obj) {
71 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
72 };
73 }
74
75 return _typeof(obj);
76}
77
78module.exports = _typeof;
79});
80
81function _assertThisInitialized(self) {
82 if (self === void 0) {
83 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
84 }
85
86 return self;
87}
88
89var assertThisInitialized = _assertThisInitialized;
90
91function _possibleConstructorReturn(self, call) {
92 if (call && (_typeof_1(call) === "object" || typeof call === "function")) {
93 return call;
94 }
95
96 return assertThisInitialized(self);
97}
98
99var possibleConstructorReturn = _possibleConstructorReturn;
100
101var getPrototypeOf = _commonjsHelpers.createCommonjsModule(function (module) {
102function _getPrototypeOf(o) {
103 module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
104 return o.__proto__ || Object.getPrototypeOf(o);
105 };
106 return _getPrototypeOf(o);
107}
108
109module.exports = _getPrototypeOf;
110});
111
112exports._assertThisInitialized = assertThisInitialized;
113exports._classCallCheck = classCallCheck;
114exports._createClass = createClass;
115exports._getPrototypeOf = getPrototypeOf;
116exports._inherits = inherits;
117exports._possibleConstructorReturn = possibleConstructorReturn;
118exports.getPrototypeOf = getPrototypeOf;
119exports.setPrototypeOf = setPrototypeOf;
120//# sourceMappingURL=getPrototypeOf-e2d1e599.js.map