@ericblade/quagga2 1.7.4 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/quagga.js +6493 -6591
- package/dist/quagga.min.js +3 -3
- package/lib/quagga.js +542 -2703
- package/package.json +2 -4
- package/type-definitions/quagga.d.ts +6 -4
package/lib/quagga.js
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
/******/
|
|
82
82
|
/******/
|
|
83
83
|
/******/ // Load entry module and return exports
|
|
84
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
84
|
+
/******/ return __webpack_require__(__webpack_require__.s = 68);
|
|
85
85
|
/******/ })
|
|
86
86
|
/************************************************************************/
|
|
87
87
|
/******/ ([
|
|
@@ -171,6 +171,12 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
|
|
|
171
171
|
|
|
172
172
|
/***/ }),
|
|
173
173
|
/* 5 */
|
|
174
|
+
/***/ (function(module, exports) {
|
|
175
|
+
|
|
176
|
+
module.exports = require("gl-matrix");
|
|
177
|
+
|
|
178
|
+
/***/ }),
|
|
179
|
+
/* 6 */
|
|
174
180
|
/***/ (function(module, exports, __webpack_require__) {
|
|
175
181
|
|
|
176
182
|
var _typeof = __webpack_require__(17)["default"];
|
|
@@ -190,10 +196,10 @@ function _possibleConstructorReturn(self, call) {
|
|
|
190
196
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
191
197
|
|
|
192
198
|
/***/ }),
|
|
193
|
-
/*
|
|
199
|
+
/* 7 */
|
|
194
200
|
/***/ (function(module, exports, __webpack_require__) {
|
|
195
201
|
|
|
196
|
-
var setPrototypeOf = __webpack_require__(
|
|
202
|
+
var setPrototypeOf = __webpack_require__(41);
|
|
197
203
|
|
|
198
204
|
function _inherits(subClass, superClass) {
|
|
199
205
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -215,63 +221,12 @@ function _inherits(subClass, superClass) {
|
|
|
215
221
|
|
|
216
222
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
217
223
|
|
|
218
|
-
/***/ }),
|
|
219
|
-
/* 7 */
|
|
220
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
221
|
-
|
|
222
|
-
module.exports = {
|
|
223
|
-
EPSILON: __webpack_require__(63),
|
|
224
|
-
create: __webpack_require__(64),
|
|
225
|
-
clone: __webpack_require__(158),
|
|
226
|
-
fromValues: __webpack_require__(159),
|
|
227
|
-
copy: __webpack_require__(160),
|
|
228
|
-
set: __webpack_require__(161),
|
|
229
|
-
equals: __webpack_require__(162),
|
|
230
|
-
exactEquals: __webpack_require__(163),
|
|
231
|
-
add: __webpack_require__(164),
|
|
232
|
-
subtract: __webpack_require__(65),
|
|
233
|
-
sub: __webpack_require__(165),
|
|
234
|
-
multiply: __webpack_require__(66),
|
|
235
|
-
mul: __webpack_require__(166),
|
|
236
|
-
divide: __webpack_require__(67),
|
|
237
|
-
div: __webpack_require__(167),
|
|
238
|
-
inverse: __webpack_require__(168),
|
|
239
|
-
min: __webpack_require__(169),
|
|
240
|
-
max: __webpack_require__(170),
|
|
241
|
-
rotate: __webpack_require__(171),
|
|
242
|
-
floor: __webpack_require__(172),
|
|
243
|
-
ceil: __webpack_require__(173),
|
|
244
|
-
round: __webpack_require__(174),
|
|
245
|
-
scale: __webpack_require__(175),
|
|
246
|
-
scaleAndAdd: __webpack_require__(176),
|
|
247
|
-
distance: __webpack_require__(68),
|
|
248
|
-
dist: __webpack_require__(177),
|
|
249
|
-
squaredDistance: __webpack_require__(69),
|
|
250
|
-
sqrDist: __webpack_require__(178),
|
|
251
|
-
length: __webpack_require__(70),
|
|
252
|
-
len: __webpack_require__(179),
|
|
253
|
-
squaredLength: __webpack_require__(71),
|
|
254
|
-
sqrLen: __webpack_require__(180),
|
|
255
|
-
negate: __webpack_require__(181),
|
|
256
|
-
normalize: __webpack_require__(182),
|
|
257
|
-
dot: __webpack_require__(183),
|
|
258
|
-
cross: __webpack_require__(184),
|
|
259
|
-
lerp: __webpack_require__(185),
|
|
260
|
-
random: __webpack_require__(186),
|
|
261
|
-
transformMat2: __webpack_require__(187),
|
|
262
|
-
transformMat2d: __webpack_require__(188),
|
|
263
|
-
transformMat3: __webpack_require__(189),
|
|
264
|
-
transformMat4: __webpack_require__(190),
|
|
265
|
-
forEach: __webpack_require__(191),
|
|
266
|
-
limit: __webpack_require__(192)
|
|
267
|
-
};
|
|
268
|
-
|
|
269
224
|
/***/ }),
|
|
270
225
|
/* 8 */
|
|
271
226
|
/***/ (function(module, exports, __webpack_require__) {
|
|
272
227
|
|
|
273
228
|
// TODO(Babel 8): Remove this file.
|
|
274
|
-
var runtime = __webpack_require__(
|
|
229
|
+
var runtime = __webpack_require__(135)();
|
|
275
230
|
|
|
276
231
|
module.exports = runtime; // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
277
232
|
|
|
@@ -381,8 +336,8 @@ try {
|
|
|
381
336
|
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
|
|
382
337
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
|
|
383
338
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__);
|
|
384
|
-
/* harmony import */ var
|
|
385
|
-
/* harmony import */ var
|
|
339
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
|
|
340
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(gl_matrix__WEBPACK_IMPORTED_MODULE_4__);
|
|
386
341
|
/* harmony import */ var _array_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
|
|
387
342
|
/* harmony import */ var _cv_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
|
|
388
343
|
|
|
@@ -392,9 +347,7 @@ try {
|
|
|
392
347
|
|
|
393
348
|
|
|
394
349
|
|
|
395
|
-
|
|
396
|
-
clone: gl_vec2__WEBPACK_IMPORTED_MODULE_4__["clone"]
|
|
397
|
-
};
|
|
350
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_4__["glMatrix"].setMatrixArrayType(Array);
|
|
398
351
|
|
|
399
352
|
function assertNumberPositive(val) {
|
|
400
353
|
if (val < 0) {
|
|
@@ -603,7 +556,7 @@ var ImageWrapper = /*#__PURE__*/function () {
|
|
|
603
556
|
}
|
|
604
557
|
|
|
605
558
|
label.rad = tmp > PI ? tmp - PI : tmp;
|
|
606
|
-
label.vec = vec2.clone([Math.cos(tmp), Math.sin(tmp)]);
|
|
559
|
+
label.vec = gl_matrix__WEBPACK_IMPORTED_MODULE_4__["vec2"].clone([Math.cos(tmp), Math.sin(tmp)]);
|
|
607
560
|
result.push(label);
|
|
608
561
|
}
|
|
609
562
|
}
|
|
@@ -781,20 +734,17 @@ __webpack_require__.d(__webpack_exports__, "_parseCSSDimensionValues", function(
|
|
|
781
734
|
__webpack_require__.d(__webpack_exports__, "_dimensionsConverters", function() { return /* binding */ _dimensionsConverters; });
|
|
782
735
|
__webpack_require__.d(__webpack_exports__, "computeImageArea", function() { return /* binding */ computeImageArea; });
|
|
783
736
|
|
|
784
|
-
// EXTERNAL MODULE:
|
|
785
|
-
var
|
|
737
|
+
// EXTERNAL MODULE: external "gl-matrix"
|
|
738
|
+
var external_gl_matrix_ = __webpack_require__(5);
|
|
786
739
|
|
|
787
|
-
// EXTERNAL MODULE: ./
|
|
788
|
-
var
|
|
740
|
+
// EXTERNAL MODULE: ./src/common/array_helper.ts
|
|
741
|
+
var array_helper = __webpack_require__(9);
|
|
789
742
|
|
|
790
743
|
// CONCATENATED MODULE: ./src/common/cluster.js
|
|
791
744
|
// TODO: cluster.js and cv_utils.js are pretty tightly intertwined, making for a complex conversion
|
|
792
745
|
// into typescript. be warned. :-)
|
|
793
746
|
|
|
794
|
-
|
|
795
|
-
clone: gl_vec2["clone"],
|
|
796
|
-
dot: gl_vec2["dot"]
|
|
797
|
-
};
|
|
747
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array);
|
|
798
748
|
/**
|
|
799
749
|
* Creates a cluster for grouping similar orientations of datapoints
|
|
800
750
|
*/
|
|
@@ -804,7 +754,7 @@ var vec2 = {
|
|
|
804
754
|
var points = [];
|
|
805
755
|
var center = {
|
|
806
756
|
rad: 0,
|
|
807
|
-
vec: vec2.clone([0, 0])
|
|
757
|
+
vec: external_gl_matrix_["vec2"].clone([0, 0])
|
|
808
758
|
};
|
|
809
759
|
var pointMap = {};
|
|
810
760
|
|
|
@@ -822,7 +772,7 @@ var vec2 = {
|
|
|
822
772
|
}
|
|
823
773
|
|
|
824
774
|
center.rad = sum / points.length;
|
|
825
|
-
center.vec = vec2.clone([Math.cos(center.rad), Math.sin(center.rad)]);
|
|
775
|
+
center.vec = external_gl_matrix_["vec2"].clone([Math.cos(center.rad), Math.sin(center.rad)]);
|
|
826
776
|
}
|
|
827
777
|
|
|
828
778
|
function init() {
|
|
@@ -842,7 +792,7 @@ var vec2 = {
|
|
|
842
792
|
},
|
|
843
793
|
fits: function fits(otherPoint) {
|
|
844
794
|
// check cosine similarity to center-angle
|
|
845
|
-
var similarity = Math.abs(vec2.dot(otherPoint.point.vec, center.vec));
|
|
795
|
+
var similarity = Math.abs(external_gl_matrix_["vec2"].dot(otherPoint.point.vec, center.vec));
|
|
846
796
|
|
|
847
797
|
if (similarity > threshold) {
|
|
848
798
|
return true;
|
|
@@ -866,9 +816,6 @@ var vec2 = {
|
|
|
866
816
|
};
|
|
867
817
|
}
|
|
868
818
|
});
|
|
869
|
-
// EXTERNAL MODULE: ./src/common/array_helper.ts
|
|
870
|
-
var array_helper = __webpack_require__(9);
|
|
871
|
-
|
|
872
819
|
// CONCATENATED MODULE: ./src/common/cv_utils.js
|
|
873
820
|
/* eslint-disable no-mixed-operators */
|
|
874
821
|
|
|
@@ -876,13 +823,7 @@ var array_helper = __webpack_require__(9);
|
|
|
876
823
|
|
|
877
824
|
|
|
878
825
|
|
|
879
|
-
|
|
880
|
-
var cv_utils_vec2 = {
|
|
881
|
-
clone: gl_vec2["clone"]
|
|
882
|
-
};
|
|
883
|
-
var vec3 = {
|
|
884
|
-
clone: gl_vec3["clone"]
|
|
885
|
-
};
|
|
826
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array);
|
|
886
827
|
/**
|
|
887
828
|
* @param x x-coordinate
|
|
888
829
|
* @param y y-coordinate
|
|
@@ -894,10 +835,10 @@ function imageRef(x, y) {
|
|
|
894
835
|
x: x,
|
|
895
836
|
y: y,
|
|
896
837
|
toVec2: function toVec2() {
|
|
897
|
-
return
|
|
838
|
+
return external_gl_matrix_["vec2"].clone([this.x, this.y]);
|
|
898
839
|
},
|
|
899
840
|
toVec3: function toVec3() {
|
|
900
|
-
return vec3.clone([this.x, this.y, 1]);
|
|
841
|
+
return external_gl_matrix_["vec3"].clone([this.x, this.y, 1]);
|
|
901
842
|
},
|
|
902
843
|
round: function round() {
|
|
903
844
|
this.x = this.x > 0.0 ? Math.floor(this.x + 0.5) : Math.floor(this.x - 0.5);
|
|
@@ -1678,7 +1619,7 @@ function computeImageArea(inputWidth, inputHeight, area) {
|
|
|
1678
1619
|
/* 13 */
|
|
1679
1620
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1680
1621
|
|
|
1681
|
-
var superPropBase = __webpack_require__(
|
|
1622
|
+
var superPropBase = __webpack_require__(136);
|
|
1682
1623
|
|
|
1683
1624
|
function _get() {
|
|
1684
1625
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
@@ -1841,8 +1782,8 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
1841
1782
|
/* 18 */
|
|
1842
1783
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1843
1784
|
|
|
1844
|
-
var baseMerge = __webpack_require__(
|
|
1845
|
-
createAssigner = __webpack_require__(
|
|
1785
|
+
var baseMerge = __webpack_require__(69),
|
|
1786
|
+
createAssigner = __webpack_require__(124);
|
|
1846
1787
|
/**
|
|
1847
1788
|
* This method is like `_.assign` except that it recursively merges own and
|
|
1848
1789
|
* inherited enumerable string keyed properties of source objects into the
|
|
@@ -1885,7 +1826,7 @@ module.exports = merge;
|
|
|
1885
1826
|
/* 19 */
|
|
1886
1827
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1887
1828
|
|
|
1888
|
-
var freeGlobal = __webpack_require__(
|
|
1829
|
+
var freeGlobal = __webpack_require__(45);
|
|
1889
1830
|
/** Detect free variable `self`. */
|
|
1890
1831
|
|
|
1891
1832
|
|
|
@@ -2051,8 +1992,8 @@ var Tracer = {
|
|
|
2051
1992
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2052
1993
|
|
|
2053
1994
|
var Symbol = __webpack_require__(27),
|
|
2054
|
-
getRawTag = __webpack_require__(
|
|
2055
|
-
objectToString = __webpack_require__(
|
|
1995
|
+
getRawTag = __webpack_require__(82),
|
|
1996
|
+
objectToString = __webpack_require__(83);
|
|
2056
1997
|
/** `Object#toString` result references. */
|
|
2057
1998
|
|
|
2058
1999
|
|
|
@@ -2084,18 +2025,15 @@ module.exports = baseGetTag;
|
|
|
2084
2025
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2085
2026
|
|
|
2086
2027
|
"use strict";
|
|
2087
|
-
/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var
|
|
2088
|
-
/* harmony import */ var
|
|
2089
|
-
/* harmony import */ var
|
|
2090
|
-
/* harmony import */ var
|
|
2091
|
-
/* harmony import */ var
|
|
2092
|
-
/* harmony import */ var
|
|
2093
|
-
/* harmony import */ var
|
|
2094
|
-
/* harmony import */ var
|
|
2095
|
-
/* harmony import */ var
|
|
2096
|
-
/* harmony import */ var _tracer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21);
|
|
2097
|
-
/* harmony import */ var _skeletonizer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(90);
|
|
2098
|
-
|
|
2028
|
+
/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
2029
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(gl_matrix__WEBPACK_IMPORTED_MODULE_0__);
|
|
2030
|
+
/* harmony import */ var _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
2031
|
+
/* harmony import */ var _common_cv_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12);
|
|
2032
|
+
/* harmony import */ var _common_array_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
|
|
2033
|
+
/* harmony import */ var _common_image_debug__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16);
|
|
2034
|
+
/* harmony import */ var _rasterizer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66);
|
|
2035
|
+
/* harmony import */ var _tracer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21);
|
|
2036
|
+
/* harmony import */ var _skeletonizer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67);
|
|
2099
2037
|
|
|
2100
2038
|
|
|
2101
2039
|
|
|
@@ -2104,6 +2042,7 @@ module.exports = baseGetTag;
|
|
|
2104
2042
|
|
|
2105
2043
|
|
|
2106
2044
|
|
|
2045
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["glMatrix"].setMatrixArrayType(Array);
|
|
2107
2046
|
|
|
2108
2047
|
var _config;
|
|
2109
2048
|
|
|
@@ -2144,7 +2083,7 @@ var _skeletonizer;
|
|
|
2144
2083
|
|
|
2145
2084
|
function initBuffers() {
|
|
2146
2085
|
if (_config.halfSample) {
|
|
2147
|
-
_currentImageWrapper = new
|
|
2086
|
+
_currentImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"]({
|
|
2148
2087
|
// eslint-disable-next-line no-bitwise
|
|
2149
2088
|
x: _inputImageWrapper.size.x / 2 | 0,
|
|
2150
2089
|
// eslint-disable-next-line no-bitwise
|
|
@@ -2154,27 +2093,27 @@ function initBuffers() {
|
|
|
2154
2093
|
_currentImageWrapper = _inputImageWrapper;
|
|
2155
2094
|
}
|
|
2156
2095
|
|
|
2157
|
-
_patchSize = Object(
|
|
2096
|
+
_patchSize = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["calculatePatchSize"])(_config.patchSize, _currentImageWrapper.size); // eslint-disable-next-line no-bitwise
|
|
2158
2097
|
|
|
2159
2098
|
_numPatches.x = _currentImageWrapper.size.x / _patchSize.x | 0; // eslint-disable-next-line no-bitwise
|
|
2160
2099
|
|
|
2161
2100
|
_numPatches.y = _currentImageWrapper.size.y / _patchSize.y | 0;
|
|
2162
|
-
_binaryImageWrapper = new
|
|
2163
|
-
_labelImageWrapper = new
|
|
2101
|
+
_binaryImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_currentImageWrapper.size, undefined, Uint8Array, false);
|
|
2102
|
+
_labelImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_patchSize, undefined, Array, true);
|
|
2164
2103
|
var skeletonImageData = new ArrayBuffer(64 * 1024);
|
|
2165
|
-
_subImageWrapper = new
|
|
2166
|
-
_skelImageWrapper = new
|
|
2167
|
-
_skeletonizer = Object(
|
|
2104
|
+
_subImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_patchSize, new Uint8Array(skeletonImageData, 0, _patchSize.x * _patchSize.y));
|
|
2105
|
+
_skelImageWrapper = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_patchSize, new Uint8Array(skeletonImageData, _patchSize.x * _patchSize.y * 3, _patchSize.x * _patchSize.y), undefined, true);
|
|
2106
|
+
_skeletonizer = Object(_skeletonizer__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : global, {
|
|
2168
2107
|
size: _patchSize.x
|
|
2169
2108
|
}, skeletonImageData);
|
|
2170
|
-
_imageToPatchGrid = new
|
|
2109
|
+
_imageToPatchGrid = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"]({
|
|
2171
2110
|
// eslint-disable-next-line no-bitwise
|
|
2172
2111
|
x: _currentImageWrapper.size.x / _subImageWrapper.size.x | 0,
|
|
2173
2112
|
// eslint-disable-next-line no-bitwise
|
|
2174
2113
|
y: _currentImageWrapper.size.y / _subImageWrapper.size.y | 0
|
|
2175
2114
|
}, undefined, Array, true);
|
|
2176
|
-
_patchGrid = new
|
|
2177
|
-
_patchLabelGrid = new
|
|
2115
|
+
_patchGrid = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_imageToPatchGrid.size, undefined, undefined, true);
|
|
2116
|
+
_patchLabelGrid = new _common_image_wrapper__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"](_imageToPatchGrid.size, undefined, Int32Array, true);
|
|
2178
2117
|
}
|
|
2179
2118
|
|
|
2180
2119
|
function initCanvas() {
|
|
@@ -2227,13 +2166,13 @@ function boxFromPatches(patches) {
|
|
|
2227
2166
|
}
|
|
2228
2167
|
|
|
2229
2168
|
overAvg = (180 - overAvg) * Math.PI / 180;
|
|
2230
|
-
transMat =
|
|
2169
|
+
transMat = gl_matrix__WEBPACK_IMPORTED_MODULE_0__["mat2"].copy(gl_matrix__WEBPACK_IMPORTED_MODULE_0__["mat2"].create(), [Math.cos(overAvg), Math.sin(overAvg), -Math.sin(overAvg), Math.cos(overAvg)]); // iterate over patches and rotate by angle
|
|
2231
2170
|
|
|
2232
2171
|
for (i = 0; i < patches.length; i++) {
|
|
2233
2172
|
patch = patches[i];
|
|
2234
2173
|
|
|
2235
2174
|
for (j = 0; j < 4; j++) {
|
|
2236
|
-
|
|
2175
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].transformMat2(patch.box[j], patch.box[j], transMat);
|
|
2237
2176
|
}
|
|
2238
2177
|
|
|
2239
2178
|
if (false) {}
|
|
@@ -2268,16 +2207,16 @@ function boxFromPatches(patches) {
|
|
|
2268
2207
|
|
|
2269
2208
|
scale = _config.halfSample ? 2 : 1; // reverse rotation;
|
|
2270
2209
|
|
|
2271
|
-
transMat =
|
|
2210
|
+
transMat = gl_matrix__WEBPACK_IMPORTED_MODULE_0__["mat2"].invert(transMat, transMat);
|
|
2272
2211
|
|
|
2273
2212
|
for (j = 0; j < 4; j++) {
|
|
2274
|
-
|
|
2213
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].transformMat2(box[j], box[j], transMat);
|
|
2275
2214
|
}
|
|
2276
2215
|
|
|
2277
2216
|
if (false) {}
|
|
2278
2217
|
|
|
2279
2218
|
for (j = 0; j < 4; j++) {
|
|
2280
|
-
|
|
2219
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].scale(box[j], box[j], scale);
|
|
2281
2220
|
}
|
|
2282
2221
|
|
|
2283
2222
|
return box;
|
|
@@ -2288,7 +2227,7 @@ function boxFromPatches(patches) {
|
|
|
2288
2227
|
|
|
2289
2228
|
|
|
2290
2229
|
function binarizeImage() {
|
|
2291
|
-
Object(
|
|
2230
|
+
Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["otsuThreshold"])(_currentImageWrapper, _binaryImageWrapper);
|
|
2292
2231
|
|
|
2293
2232
|
_binaryImageWrapper.zeroBorder();
|
|
2294
2233
|
|
|
@@ -2320,8 +2259,8 @@ function findPatches() {
|
|
|
2320
2259
|
|
|
2321
2260
|
_skelImageWrapper.zeroBorder();
|
|
2322
2261
|
|
|
2323
|
-
|
|
2324
|
-
rasterizer =
|
|
2262
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_labelImageWrapper.data, 0);
|
|
2263
|
+
rasterizer = _rasterizer__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"].create(_skelImageWrapper, _labelImageWrapper);
|
|
2325
2264
|
rasterResult = rasterizer.rasterize(0);
|
|
2326
2265
|
|
|
2327
2266
|
if (false) {} // calculate moments from the skeletonized patch
|
|
@@ -2422,8 +2361,8 @@ function findBoxes(topLabels, maxLabel) {
|
|
|
2422
2361
|
|
|
2423
2362
|
|
|
2424
2363
|
function similarMoments(moments) {
|
|
2425
|
-
var clusters = Object(
|
|
2426
|
-
var topCluster = Object(
|
|
2364
|
+
var clusters = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["cluster"])(moments, 0.90);
|
|
2365
|
+
var topCluster = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["topGeneric"])(clusters, 1, function (e) {
|
|
2427
2366
|
return e.getPoints().length;
|
|
2428
2367
|
});
|
|
2429
2368
|
var points = [];
|
|
@@ -2441,7 +2380,7 @@ function similarMoments(moments) {
|
|
|
2441
2380
|
}
|
|
2442
2381
|
|
|
2443
2382
|
function skeletonize(x, y) {
|
|
2444
|
-
_binaryImageWrapper.subImageAsCopy(_subImageWrapper, Object(
|
|
2383
|
+
_binaryImageWrapper.subImageAsCopy(_subImageWrapper, Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["imageRef"])(x, y));
|
|
2445
2384
|
|
|
2446
2385
|
_skeletonizer.skeletonize(); // Show skeleton if requested
|
|
2447
2386
|
|
|
@@ -2481,7 +2420,9 @@ function describePatch(moments, patchPos, x, y) {
|
|
|
2481
2420
|
avg = 0; // determine the similarity of the moments
|
|
2482
2421
|
|
|
2483
2422
|
for (k = 0; k < matchingMoments.length; k++) {
|
|
2484
|
-
|
|
2423
|
+
var _matchingMoments$k$ra, _matchingMoments$k;
|
|
2424
|
+
|
|
2425
|
+
avg += (_matchingMoments$k$ra = (_matchingMoments$k = matchingMoments[k]) === null || _matchingMoments$k === void 0 ? void 0 : _matchingMoments$k.rad) !== null && _matchingMoments$k$ra !== void 0 ? _matchingMoments$k$ra : 0;
|
|
2485
2426
|
} // Only two of the moments are allowed not to fit into the equation
|
|
2486
2427
|
// add the patch to the set
|
|
2487
2428
|
|
|
@@ -2494,10 +2435,10 @@ function describePatch(moments, patchPos, x, y) {
|
|
|
2494
2435
|
x: x,
|
|
2495
2436
|
y: y
|
|
2496
2437
|
},
|
|
2497
|
-
box: [
|
|
2438
|
+
box: [gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x, y]), gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x + _subImageWrapper.size.x, y]), gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x + _subImageWrapper.size.x, y + _subImageWrapper.size.y]), gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([x, y + _subImageWrapper.size.y])],
|
|
2498
2439
|
moments: matchingMoments,
|
|
2499
2440
|
rad: avg,
|
|
2500
|
-
vec:
|
|
2441
|
+
vec: gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].clone([Math.cos(avg), Math.sin(avg)])
|
|
2501
2442
|
};
|
|
2502
2443
|
patchesFound.push(patch);
|
|
2503
2444
|
}
|
|
@@ -2530,7 +2471,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2530
2471
|
}
|
|
2531
2472
|
}
|
|
2532
2473
|
|
|
2533
|
-
return _patchLabelGrid.length;
|
|
2474
|
+
return _patchLabelGrid.data.length;
|
|
2534
2475
|
}
|
|
2535
2476
|
|
|
2536
2477
|
function trace(currentIdx) {
|
|
@@ -2550,9 +2491,9 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2550
2491
|
|
|
2551
2492
|
_patchLabelGrid.data[currentIdx] = label;
|
|
2552
2493
|
|
|
2553
|
-
for (dir = 0; dir <
|
|
2554
|
-
y = current.y +
|
|
2555
|
-
x = current.x +
|
|
2494
|
+
for (dir = 0; dir < _tracer__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].searchDirections.length; dir++) {
|
|
2495
|
+
y = current.y + _tracer__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].searchDirections[dir][0];
|
|
2496
|
+
x = current.x + _tracer__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].searchDirections[dir][1];
|
|
2556
2497
|
idx = y * _patchLabelGrid.size.x + x; // continue if patch empty
|
|
2557
2498
|
|
|
2558
2499
|
if (_patchGrid.data[idx] === 0) {
|
|
@@ -2562,7 +2503,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2562
2503
|
}
|
|
2563
2504
|
|
|
2564
2505
|
if (_patchLabelGrid.data[idx] === 0) {
|
|
2565
|
-
similarity = Math.abs(
|
|
2506
|
+
similarity = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_0__["vec2"].dot(_imageToPatchGrid.data[idx].vec, currentPatch.vec));
|
|
2566
2507
|
|
|
2567
2508
|
if (similarity > threshold) {
|
|
2568
2509
|
trace(idx);
|
|
@@ -2573,9 +2514,9 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2573
2514
|
} // prepare for finding the right patches
|
|
2574
2515
|
|
|
2575
2516
|
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2517
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_patchGrid.data, 0);
|
|
2518
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_patchLabelGrid.data, 0);
|
|
2519
|
+
_common_array_helper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].init(_imageToPatchGrid.data, null);
|
|
2579
2520
|
|
|
2580
2521
|
for (j = 0; j < patchesFound.length; j++) {
|
|
2581
2522
|
patch = patchesFound[j];
|
|
@@ -2607,7 +2548,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2607
2548
|
},
|
|
2608
2549
|
locate: function locate() {
|
|
2609
2550
|
if (_config.halfSample) {
|
|
2610
|
-
Object(
|
|
2551
|
+
Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["halfSample"])(_inputImageWrapper, _currentImageWrapper);
|
|
2611
2552
|
}
|
|
2612
2553
|
|
|
2613
2554
|
binarizeImage();
|
|
@@ -2642,7 +2583,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2642
2583
|
var area; // calculate width and height based on area
|
|
2643
2584
|
|
|
2644
2585
|
if (inputStream.getConfig().area) {
|
|
2645
|
-
area = Object(
|
|
2586
|
+
area = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["computeImageArea"])(width, height, inputStream.getConfig().area);
|
|
2646
2587
|
inputStream.setTopRight({
|
|
2647
2588
|
x: area.sx,
|
|
2648
2589
|
y: area.sy
|
|
@@ -2659,7 +2600,7 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2659
2600
|
x: Math.floor(width * thisHalfSample),
|
|
2660
2601
|
y: Math.floor(height * thisHalfSample)
|
|
2661
2602
|
};
|
|
2662
|
-
patchSize = Object(
|
|
2603
|
+
patchSize = Object(_common_cv_utils__WEBPACK_IMPORTED_MODULE_2__["calculatePatchSize"])(config.patchSize, size);
|
|
2663
2604
|
|
|
2664
2605
|
if (false) {}
|
|
2665
2606
|
|
|
@@ -2673,17 +2614,17 @@ function rasterizeAngularSimilarity(patchesFound) {
|
|
|
2673
2614
|
throw new Error("Image dimensions do not comply with the current settings: Width (".concat(width, " )and height (").concat(height, ") must a multiple of ").concat(patchSize.x));
|
|
2674
2615
|
}
|
|
2675
2616
|
});
|
|
2676
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
2617
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(46)))
|
|
2677
2618
|
|
|
2678
2619
|
/***/ }),
|
|
2679
2620
|
/* 24 */
|
|
2680
2621
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2681
2622
|
|
|
2682
|
-
var listCacheClear = __webpack_require__(
|
|
2683
|
-
listCacheDelete = __webpack_require__(
|
|
2684
|
-
listCacheGet = __webpack_require__(
|
|
2685
|
-
listCacheHas = __webpack_require__(
|
|
2686
|
-
listCacheSet = __webpack_require__(
|
|
2623
|
+
var listCacheClear = __webpack_require__(71),
|
|
2624
|
+
listCacheDelete = __webpack_require__(72),
|
|
2625
|
+
listCacheGet = __webpack_require__(73),
|
|
2626
|
+
listCacheHas = __webpack_require__(74),
|
|
2627
|
+
listCacheSet = __webpack_require__(75);
|
|
2687
2628
|
/**
|
|
2688
2629
|
* Creates an list cache object.
|
|
2689
2630
|
*
|
|
@@ -2798,7 +2739,7 @@ module.exports = Symbol;
|
|
|
2798
2739
|
/* 28 */
|
|
2799
2740
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2800
2741
|
|
|
2801
|
-
var getNative = __webpack_require__(
|
|
2742
|
+
var getNative = __webpack_require__(35);
|
|
2802
2743
|
/* Built-in method references that are verified to be native. */
|
|
2803
2744
|
|
|
2804
2745
|
|
|
@@ -2809,7 +2750,7 @@ module.exports = nativeCreate;
|
|
|
2809
2750
|
/* 29 */
|
|
2810
2751
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2811
2752
|
|
|
2812
|
-
var isKeyable = __webpack_require__(
|
|
2753
|
+
var isKeyable = __webpack_require__(96);
|
|
2813
2754
|
/**
|
|
2814
2755
|
* Gets the data for `map`.
|
|
2815
2756
|
*
|
|
@@ -2831,7 +2772,7 @@ module.exports = getMapData;
|
|
|
2831
2772
|
/* 30 */
|
|
2832
2773
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2833
2774
|
|
|
2834
|
-
var baseIsArguments = __webpack_require__(
|
|
2775
|
+
var baseIsArguments = __webpack_require__(111),
|
|
2835
2776
|
isObjectLike = __webpack_require__(20);
|
|
2836
2777
|
/** Used for built-in method references. */
|
|
2837
2778
|
|
|
@@ -2900,9 +2841,9 @@ module.exports = isIndex;
|
|
|
2900
2841
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2901
2842
|
|
|
2902
2843
|
var isArray = __webpack_require__(15),
|
|
2903
|
-
isKey = __webpack_require__(
|
|
2904
|
-
stringToPath = __webpack_require__(
|
|
2905
|
-
toString = __webpack_require__(
|
|
2844
|
+
isKey = __webpack_require__(143),
|
|
2845
|
+
stringToPath = __webpack_require__(144),
|
|
2846
|
+
toString = __webpack_require__(147);
|
|
2906
2847
|
/**
|
|
2907
2848
|
* Casts `value` to a path array if it's not one.
|
|
2908
2849
|
*
|
|
@@ -2927,13 +2868,13 @@ module.exports = castPath;
|
|
|
2927
2868
|
/* 33 */
|
|
2928
2869
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2929
2870
|
|
|
2930
|
-
var arrayWithHoles = __webpack_require__(
|
|
2871
|
+
var arrayWithHoles = __webpack_require__(132);
|
|
2931
2872
|
|
|
2932
|
-
var iterableToArrayLimit = __webpack_require__(
|
|
2873
|
+
var iterableToArrayLimit = __webpack_require__(133);
|
|
2933
2874
|
|
|
2934
|
-
var unsupportedIterableToArray = __webpack_require__(
|
|
2875
|
+
var unsupportedIterableToArray = __webpack_require__(60);
|
|
2935
2876
|
|
|
2936
|
-
var nonIterableRest = __webpack_require__(
|
|
2877
|
+
var nonIterableRest = __webpack_require__(134);
|
|
2937
2878
|
|
|
2938
2879
|
function _slicedToArray(arr, i) {
|
|
2939
2880
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
|
@@ -2945,13 +2886,13 @@ module.exports = _slicedToArray, module.exports.__esModule = true, module.export
|
|
|
2945
2886
|
/* 34 */
|
|
2946
2887
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2947
2888
|
|
|
2948
|
-
var arrayWithoutHoles = __webpack_require__(
|
|
2889
|
+
var arrayWithoutHoles = __webpack_require__(137);
|
|
2949
2890
|
|
|
2950
|
-
var iterableToArray = __webpack_require__(
|
|
2891
|
+
var iterableToArray = __webpack_require__(138);
|
|
2951
2892
|
|
|
2952
|
-
var unsupportedIterableToArray = __webpack_require__(
|
|
2893
|
+
var unsupportedIterableToArray = __webpack_require__(60);
|
|
2953
2894
|
|
|
2954
|
-
var nonIterableSpread = __webpack_require__(
|
|
2895
|
+
var nonIterableSpread = __webpack_require__(139);
|
|
2955
2896
|
|
|
2956
2897
|
function _toConsumableArray(arr) {
|
|
2957
2898
|
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
@@ -2963,27 +2904,8 @@ module.exports = _toConsumableArray, module.exports.__esModule = true, module.ex
|
|
|
2963
2904
|
/* 35 */
|
|
2964
2905
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2965
2906
|
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
transpose: __webpack_require__(256),
|
|
2969
|
-
multiply: __webpack_require__(257),
|
|
2970
|
-
identity: __webpack_require__(258),
|
|
2971
|
-
adjoint: __webpack_require__(259),
|
|
2972
|
-
rotate: __webpack_require__(260),
|
|
2973
|
-
invert: __webpack_require__(261),
|
|
2974
|
-
create: __webpack_require__(262),
|
|
2975
|
-
scale: __webpack_require__(263),
|
|
2976
|
-
copy: __webpack_require__(264),
|
|
2977
|
-
frob: __webpack_require__(265),
|
|
2978
|
-
ldu: __webpack_require__(266)
|
|
2979
|
-
};
|
|
2980
|
-
|
|
2981
|
-
/***/ }),
|
|
2982
|
-
/* 36 */
|
|
2983
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2984
|
-
|
|
2985
|
-
var baseIsNative = __webpack_require__(104),
|
|
2986
|
-
getValue = __webpack_require__(110);
|
|
2907
|
+
var baseIsNative = __webpack_require__(81),
|
|
2908
|
+
getValue = __webpack_require__(87);
|
|
2987
2909
|
/**
|
|
2988
2910
|
* Gets the native function at `key` of `object`.
|
|
2989
2911
|
*
|
|
@@ -3002,7 +2924,7 @@ function getNative(object, key) {
|
|
|
3002
2924
|
module.exports = getNative;
|
|
3003
2925
|
|
|
3004
2926
|
/***/ }),
|
|
3005
|
-
/*
|
|
2927
|
+
/* 36 */
|
|
3006
2928
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3007
2929
|
|
|
3008
2930
|
var baseGetTag = __webpack_require__(22),
|
|
@@ -3046,10 +2968,10 @@ function isFunction(value) {
|
|
|
3046
2968
|
module.exports = isFunction;
|
|
3047
2969
|
|
|
3048
2970
|
/***/ }),
|
|
3049
|
-
/*
|
|
2971
|
+
/* 37 */
|
|
3050
2972
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3051
2973
|
|
|
3052
|
-
var defineProperty = __webpack_require__(
|
|
2974
|
+
var defineProperty = __webpack_require__(49);
|
|
3053
2975
|
/**
|
|
3054
2976
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
3055
2977
|
* value checks.
|
|
@@ -3077,7 +2999,7 @@ function baseAssignValue(object, key, value) {
|
|
|
3077
2999
|
module.exports = baseAssignValue;
|
|
3078
3000
|
|
|
3079
3001
|
/***/ }),
|
|
3080
|
-
/*
|
|
3002
|
+
/* 38 */
|
|
3081
3003
|
/***/ (function(module, exports) {
|
|
3082
3004
|
|
|
3083
3005
|
module.exports = function (module) {
|
|
@@ -3106,11 +3028,11 @@ module.exports = function (module) {
|
|
|
3106
3028
|
};
|
|
3107
3029
|
|
|
3108
3030
|
/***/ }),
|
|
3109
|
-
/*
|
|
3031
|
+
/* 39 */
|
|
3110
3032
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3111
3033
|
|
|
3112
|
-
var isFunction = __webpack_require__(
|
|
3113
|
-
isLength = __webpack_require__(
|
|
3034
|
+
var isFunction = __webpack_require__(36),
|
|
3035
|
+
isLength = __webpack_require__(40);
|
|
3114
3036
|
/**
|
|
3115
3037
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
3116
3038
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -3145,7 +3067,7 @@ function isArrayLike(value) {
|
|
|
3145
3067
|
module.exports = isArrayLike;
|
|
3146
3068
|
|
|
3147
3069
|
/***/ }),
|
|
3148
|
-
/*
|
|
3070
|
+
/* 40 */
|
|
3149
3071
|
/***/ (function(module, exports) {
|
|
3150
3072
|
|
|
3151
3073
|
/** Used as references for various `Number` constants. */
|
|
@@ -3184,7 +3106,7 @@ function isLength(value) {
|
|
|
3184
3106
|
module.exports = isLength;
|
|
3185
3107
|
|
|
3186
3108
|
/***/ }),
|
|
3187
|
-
/*
|
|
3109
|
+
/* 41 */
|
|
3188
3110
|
/***/ (function(module, exports) {
|
|
3189
3111
|
|
|
3190
3112
|
function _setPrototypeOf(o, p) {
|
|
@@ -3198,7 +3120,7 @@ function _setPrototypeOf(o, p) {
|
|
|
3198
3120
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3199
3121
|
|
|
3200
3122
|
/***/ }),
|
|
3201
|
-
/*
|
|
3123
|
+
/* 42 */
|
|
3202
3124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3203
3125
|
|
|
3204
3126
|
var baseGetTag = __webpack_require__(22),
|
|
@@ -3232,10 +3154,10 @@ function isSymbol(value) {
|
|
|
3232
3154
|
module.exports = isSymbol;
|
|
3233
3155
|
|
|
3234
3156
|
/***/ }),
|
|
3235
|
-
/*
|
|
3157
|
+
/* 43 */
|
|
3236
3158
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3237
3159
|
|
|
3238
|
-
var isSymbol = __webpack_require__(
|
|
3160
|
+
var isSymbol = __webpack_require__(42);
|
|
3239
3161
|
/** Used as references for various `Number` constants. */
|
|
3240
3162
|
|
|
3241
3163
|
|
|
@@ -3260,10 +3182,10 @@ function toKey(value) {
|
|
|
3260
3182
|
module.exports = toKey;
|
|
3261
3183
|
|
|
3262
3184
|
/***/ }),
|
|
3263
|
-
/*
|
|
3185
|
+
/* 44 */
|
|
3264
3186
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3265
3187
|
|
|
3266
|
-
var getNative = __webpack_require__(
|
|
3188
|
+
var getNative = __webpack_require__(35),
|
|
3267
3189
|
root = __webpack_require__(19);
|
|
3268
3190
|
/* Built-in method references that are verified to be native. */
|
|
3269
3191
|
|
|
@@ -3272,16 +3194,16 @@ var Map = getNative(root, 'Map');
|
|
|
3272
3194
|
module.exports = Map;
|
|
3273
3195
|
|
|
3274
3196
|
/***/ }),
|
|
3275
|
-
/*
|
|
3197
|
+
/* 45 */
|
|
3276
3198
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3277
3199
|
|
|
3278
3200
|
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
|
|
3279
3201
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
3280
3202
|
module.exports = freeGlobal;
|
|
3281
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
3203
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(46)))
|
|
3282
3204
|
|
|
3283
3205
|
/***/ }),
|
|
3284
|
-
/*
|
|
3206
|
+
/* 46 */
|
|
3285
3207
|
/***/ (function(module, exports) {
|
|
3286
3208
|
|
|
3287
3209
|
var g; // This works in non-strict mode
|
|
@@ -3304,14 +3226,14 @@ try {
|
|
|
3304
3226
|
module.exports = g;
|
|
3305
3227
|
|
|
3306
3228
|
/***/ }),
|
|
3307
|
-
/*
|
|
3229
|
+
/* 47 */
|
|
3308
3230
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3309
3231
|
|
|
3310
|
-
var mapCacheClear = __webpack_require__(
|
|
3311
|
-
mapCacheDelete = __webpack_require__(
|
|
3312
|
-
mapCacheGet = __webpack_require__(
|
|
3313
|
-
mapCacheHas = __webpack_require__(
|
|
3314
|
-
mapCacheSet = __webpack_require__(
|
|
3232
|
+
var mapCacheClear = __webpack_require__(88),
|
|
3233
|
+
mapCacheDelete = __webpack_require__(95),
|
|
3234
|
+
mapCacheGet = __webpack_require__(97),
|
|
3235
|
+
mapCacheHas = __webpack_require__(98),
|
|
3236
|
+
mapCacheSet = __webpack_require__(99);
|
|
3315
3237
|
/**
|
|
3316
3238
|
* Creates a map cache object to store key-value pairs.
|
|
3317
3239
|
*
|
|
@@ -3341,10 +3263,10 @@ MapCache.prototype.set = mapCacheSet;
|
|
|
3341
3263
|
module.exports = MapCache;
|
|
3342
3264
|
|
|
3343
3265
|
/***/ }),
|
|
3344
|
-
/*
|
|
3266
|
+
/* 48 */
|
|
3345
3267
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3346
3268
|
|
|
3347
|
-
var baseAssignValue = __webpack_require__(
|
|
3269
|
+
var baseAssignValue = __webpack_require__(37),
|
|
3348
3270
|
eq = __webpack_require__(26);
|
|
3349
3271
|
/**
|
|
3350
3272
|
* This function is like `assignValue` except that it doesn't assign
|
|
@@ -3366,10 +3288,10 @@ function assignMergeValue(object, key, value) {
|
|
|
3366
3288
|
module.exports = assignMergeValue;
|
|
3367
3289
|
|
|
3368
3290
|
/***/ }),
|
|
3369
|
-
/*
|
|
3291
|
+
/* 49 */
|
|
3370
3292
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3371
3293
|
|
|
3372
|
-
var getNative = __webpack_require__(
|
|
3294
|
+
var getNative = __webpack_require__(35);
|
|
3373
3295
|
|
|
3374
3296
|
var defineProperty = function () {
|
|
3375
3297
|
try {
|
|
@@ -3382,10 +3304,10 @@ var defineProperty = function () {
|
|
|
3382
3304
|
module.exports = defineProperty;
|
|
3383
3305
|
|
|
3384
3306
|
/***/ }),
|
|
3385
|
-
/*
|
|
3307
|
+
/* 50 */
|
|
3386
3308
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3387
3309
|
|
|
3388
|
-
var overArg = __webpack_require__(
|
|
3310
|
+
var overArg = __webpack_require__(110);
|
|
3389
3311
|
/** Built-in value references. */
|
|
3390
3312
|
|
|
3391
3313
|
|
|
@@ -3393,7 +3315,7 @@ var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
|
3393
3315
|
module.exports = getPrototype;
|
|
3394
3316
|
|
|
3395
3317
|
/***/ }),
|
|
3396
|
-
/*
|
|
3318
|
+
/* 51 */
|
|
3397
3319
|
/***/ (function(module, exports) {
|
|
3398
3320
|
|
|
3399
3321
|
/** Used for built-in method references. */
|
|
@@ -3415,11 +3337,11 @@ function isPrototype(value) {
|
|
|
3415
3337
|
module.exports = isPrototype;
|
|
3416
3338
|
|
|
3417
3339
|
/***/ }),
|
|
3418
|
-
/*
|
|
3340
|
+
/* 52 */
|
|
3419
3341
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3420
3342
|
|
|
3421
3343
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(19),
|
|
3422
|
-
stubFalse = __webpack_require__(
|
|
3344
|
+
stubFalse = __webpack_require__(113);
|
|
3423
3345
|
/** Detect free variable `exports`. */
|
|
3424
3346
|
|
|
3425
3347
|
|
|
@@ -3456,15 +3378,15 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
3456
3378
|
|
|
3457
3379
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
3458
3380
|
module.exports = isBuffer;
|
|
3459
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
3381
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(38)(module)))
|
|
3460
3382
|
|
|
3461
3383
|
/***/ }),
|
|
3462
|
-
/*
|
|
3384
|
+
/* 53 */
|
|
3463
3385
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3464
3386
|
|
|
3465
|
-
var baseIsTypedArray = __webpack_require__(
|
|
3466
|
-
baseUnary = __webpack_require__(
|
|
3467
|
-
nodeUtil = __webpack_require__(
|
|
3387
|
+
var baseIsTypedArray = __webpack_require__(115),
|
|
3388
|
+
baseUnary = __webpack_require__(116),
|
|
3389
|
+
nodeUtil = __webpack_require__(117);
|
|
3468
3390
|
/* Node.js helper references. */
|
|
3469
3391
|
|
|
3470
3392
|
|
|
@@ -3491,7 +3413,7 @@ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedA
|
|
|
3491
3413
|
module.exports = isTypedArray;
|
|
3492
3414
|
|
|
3493
3415
|
/***/ }),
|
|
3494
|
-
/*
|
|
3416
|
+
/* 54 */
|
|
3495
3417
|
/***/ (function(module, exports) {
|
|
3496
3418
|
|
|
3497
3419
|
/**
|
|
@@ -3517,10 +3439,10 @@ function safeGet(object, key) {
|
|
|
3517
3439
|
module.exports = safeGet;
|
|
3518
3440
|
|
|
3519
3441
|
/***/ }),
|
|
3520
|
-
/*
|
|
3442
|
+
/* 55 */
|
|
3521
3443
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3522
3444
|
|
|
3523
|
-
var baseAssignValue = __webpack_require__(
|
|
3445
|
+
var baseAssignValue = __webpack_require__(37),
|
|
3524
3446
|
eq = __webpack_require__(26);
|
|
3525
3447
|
/** Used for built-in method references. */
|
|
3526
3448
|
|
|
@@ -3551,12 +3473,12 @@ function assignValue(object, key, value) {
|
|
|
3551
3473
|
module.exports = assignValue;
|
|
3552
3474
|
|
|
3553
3475
|
/***/ }),
|
|
3554
|
-
/*
|
|
3476
|
+
/* 56 */
|
|
3555
3477
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3556
3478
|
|
|
3557
|
-
var arrayLikeKeys = __webpack_require__(
|
|
3558
|
-
baseKeysIn = __webpack_require__(
|
|
3559
|
-
isArrayLike = __webpack_require__(
|
|
3479
|
+
var arrayLikeKeys = __webpack_require__(120),
|
|
3480
|
+
baseKeysIn = __webpack_require__(122),
|
|
3481
|
+
isArrayLike = __webpack_require__(39);
|
|
3560
3482
|
/**
|
|
3561
3483
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
3562
3484
|
*
|
|
@@ -3589,7 +3511,7 @@ function keysIn(object) {
|
|
|
3589
3511
|
module.exports = keysIn;
|
|
3590
3512
|
|
|
3591
3513
|
/***/ }),
|
|
3592
|
-
/*
|
|
3514
|
+
/* 57 */
|
|
3593
3515
|
/***/ (function(module, exports) {
|
|
3594
3516
|
|
|
3595
3517
|
/**
|
|
@@ -3615,10 +3537,10 @@ function identity(value) {
|
|
|
3615
3537
|
module.exports = identity;
|
|
3616
3538
|
|
|
3617
3539
|
/***/ }),
|
|
3618
|
-
/*
|
|
3540
|
+
/* 58 */
|
|
3619
3541
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3620
3542
|
|
|
3621
|
-
var apply = __webpack_require__(
|
|
3543
|
+
var apply = __webpack_require__(126);
|
|
3622
3544
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
3623
3545
|
|
|
3624
3546
|
|
|
@@ -3660,11 +3582,11 @@ function overRest(func, start, transform) {
|
|
|
3660
3582
|
module.exports = overRest;
|
|
3661
3583
|
|
|
3662
3584
|
/***/ }),
|
|
3663
|
-
/*
|
|
3585
|
+
/* 59 */
|
|
3664
3586
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3665
3587
|
|
|
3666
|
-
var baseSetToString = __webpack_require__(
|
|
3667
|
-
shortOut = __webpack_require__(
|
|
3588
|
+
var baseSetToString = __webpack_require__(127),
|
|
3589
|
+
shortOut = __webpack_require__(129);
|
|
3668
3590
|
/**
|
|
3669
3591
|
* Sets the `toString` method of `func` to return `string`.
|
|
3670
3592
|
*
|
|
@@ -3679,10 +3601,10 @@ var setToString = shortOut(baseSetToString);
|
|
|
3679
3601
|
module.exports = setToString;
|
|
3680
3602
|
|
|
3681
3603
|
/***/ }),
|
|
3682
|
-
/*
|
|
3604
|
+
/* 60 */
|
|
3683
3605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3684
3606
|
|
|
3685
|
-
var arrayLikeToArray = __webpack_require__(
|
|
3607
|
+
var arrayLikeToArray = __webpack_require__(61);
|
|
3686
3608
|
|
|
3687
3609
|
function _unsupportedIterableToArray(o, minLen) {
|
|
3688
3610
|
if (!o) return;
|
|
@@ -3696,7 +3618,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
3696
3618
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3697
3619
|
|
|
3698
3620
|
/***/ }),
|
|
3699
|
-
/*
|
|
3621
|
+
/* 61 */
|
|
3700
3622
|
/***/ (function(module, exports) {
|
|
3701
3623
|
|
|
3702
3624
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -3712,583 +3634,138 @@ function _arrayLikeToArray(arr, len) {
|
|
|
3712
3634
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3713
3635
|
|
|
3714
3636
|
/***/ }),
|
|
3715
|
-
/*
|
|
3716
|
-
/***/ (function(module, exports) {
|
|
3717
|
-
|
|
3718
|
-
module.exports = 0.000001;
|
|
3719
|
-
|
|
3720
|
-
/***/ }),
|
|
3721
|
-
/* 64 */
|
|
3722
|
-
/***/ (function(module, exports) {
|
|
3637
|
+
/* 62 */
|
|
3638
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3723
3639
|
|
|
3724
|
-
|
|
3640
|
+
var basePick = __webpack_require__(140),
|
|
3641
|
+
flatRest = __webpack_require__(154);
|
|
3725
3642
|
/**
|
|
3726
|
-
* Creates
|
|
3643
|
+
* Creates an object composed of the picked `object` properties.
|
|
3727
3644
|
*
|
|
3728
|
-
* @
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
/***/ }),
|
|
3739
|
-
/* 65 */
|
|
3740
|
-
/***/ (function(module, exports) {
|
|
3741
|
-
|
|
3742
|
-
module.exports = subtract;
|
|
3743
|
-
/**
|
|
3744
|
-
* Subtracts vector b from vector a
|
|
3645
|
+
* @static
|
|
3646
|
+
* @since 0.1.0
|
|
3647
|
+
* @memberOf _
|
|
3648
|
+
* @category Object
|
|
3649
|
+
* @param {Object} object The source object.
|
|
3650
|
+
* @param {...(string|string[])} [paths] The property paths to pick.
|
|
3651
|
+
* @returns {Object} Returns the new object.
|
|
3652
|
+
* @example
|
|
3653
|
+
*
|
|
3654
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
3745
3655
|
*
|
|
3746
|
-
*
|
|
3747
|
-
*
|
|
3748
|
-
* @param {vec2} b the second operand
|
|
3749
|
-
* @returns {vec2} out
|
|
3656
|
+
* _.pick(object, ['a', 'c']);
|
|
3657
|
+
* // => { 'a': 1, 'c': 3 }
|
|
3750
3658
|
*/
|
|
3751
3659
|
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3660
|
+
|
|
3661
|
+
var pick = flatRest(function (object, paths) {
|
|
3662
|
+
return object == null ? {} : basePick(object, paths);
|
|
3663
|
+
});
|
|
3664
|
+
module.exports = pick;
|
|
3757
3665
|
|
|
3758
3666
|
/***/ }),
|
|
3759
|
-
/*
|
|
3760
|
-
/***/ (function(module, exports) {
|
|
3667
|
+
/* 63 */
|
|
3668
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3761
3669
|
|
|
3762
|
-
|
|
3763
|
-
/**
|
|
3764
|
-
* Multiplies two vec2's
|
|
3765
|
-
*
|
|
3766
|
-
* @param {vec2} out the receiving vector
|
|
3767
|
-
* @param {vec2} a the first operand
|
|
3768
|
-
* @param {vec2} b the second operand
|
|
3769
|
-
* @returns {vec2} out
|
|
3770
|
-
*/
|
|
3670
|
+
var getPrototypeOf = __webpack_require__(2);
|
|
3771
3671
|
|
|
3772
|
-
|
|
3773
|
-
out[0] = a[0] * b[0];
|
|
3774
|
-
out[1] = a[1] * b[1];
|
|
3775
|
-
return out;
|
|
3776
|
-
}
|
|
3672
|
+
var setPrototypeOf = __webpack_require__(41);
|
|
3777
3673
|
|
|
3778
|
-
|
|
3779
|
-
/* 67 */
|
|
3780
|
-
/***/ (function(module, exports) {
|
|
3674
|
+
var isNativeFunction = __webpack_require__(159);
|
|
3781
3675
|
|
|
3782
|
-
|
|
3783
|
-
/**
|
|
3784
|
-
* Divides two vec2's
|
|
3785
|
-
*
|
|
3786
|
-
* @param {vec2} out the receiving vector
|
|
3787
|
-
* @param {vec2} a the first operand
|
|
3788
|
-
* @param {vec2} b the second operand
|
|
3789
|
-
* @returns {vec2} out
|
|
3790
|
-
*/
|
|
3676
|
+
var construct = __webpack_require__(160);
|
|
3791
3677
|
|
|
3792
|
-
function
|
|
3793
|
-
|
|
3794
|
-
out[1] = a[1] / b[1];
|
|
3795
|
-
return out;
|
|
3796
|
-
}
|
|
3678
|
+
function _wrapNativeSuper(Class) {
|
|
3679
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
3797
3680
|
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
/***/ (function(module, exports) {
|
|
3681
|
+
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
3682
|
+
if (Class === null || !isNativeFunction(Class)) return Class;
|
|
3801
3683
|
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
*
|
|
3806
|
-
* @param {vec2} a the first operand
|
|
3807
|
-
* @param {vec2} b the second operand
|
|
3808
|
-
* @returns {Number} distance between a and b
|
|
3809
|
-
*/
|
|
3684
|
+
if (typeof Class !== "function") {
|
|
3685
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
3686
|
+
}
|
|
3810
3687
|
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
y = b[1] - a[1];
|
|
3814
|
-
return Math.sqrt(x * x + y * y);
|
|
3815
|
-
}
|
|
3688
|
+
if (typeof _cache !== "undefined") {
|
|
3689
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
3816
3690
|
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
/***/ (function(module, exports) {
|
|
3691
|
+
_cache.set(Class, Wrapper);
|
|
3692
|
+
}
|
|
3820
3693
|
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
*
|
|
3825
|
-
* @param {vec2} a the first operand
|
|
3826
|
-
* @param {vec2} b the second operand
|
|
3827
|
-
* @returns {Number} squared distance between a and b
|
|
3828
|
-
*/
|
|
3694
|
+
function Wrapper() {
|
|
3695
|
+
return construct(Class, arguments, getPrototypeOf(this).constructor);
|
|
3696
|
+
}
|
|
3829
3697
|
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3698
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
3699
|
+
constructor: {
|
|
3700
|
+
value: Wrapper,
|
|
3701
|
+
enumerable: false,
|
|
3702
|
+
writable: true,
|
|
3703
|
+
configurable: true
|
|
3704
|
+
}
|
|
3705
|
+
});
|
|
3706
|
+
return setPrototypeOf(Wrapper, Class);
|
|
3707
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3708
|
+
return _wrapNativeSuper(Class);
|
|
3834
3709
|
}
|
|
3835
3710
|
|
|
3711
|
+
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3712
|
+
|
|
3836
3713
|
/***/ }),
|
|
3837
|
-
/*
|
|
3838
|
-
/***/ (function(module, exports) {
|
|
3714
|
+
/* 64 */
|
|
3715
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3839
3716
|
|
|
3840
|
-
module
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
*
|
|
3844
|
-
* @param {vec2} a vector to calculate length of
|
|
3845
|
-
* @returns {Number} length of a
|
|
3846
|
-
*/
|
|
3717
|
+
// NOTE FOR ANYONE IN HERE IN THE FUTURE: This module is used when the module is built for use in Node.
|
|
3718
|
+
// Webpack.config.js explicitly REPLACES this module with the file called frame_grabber_browser when it is packing the Browser distribution.
|
|
3719
|
+
var CVUtils = __webpack_require__(12);
|
|
3847
3720
|
|
|
3848
|
-
|
|
3849
|
-
var x = a[0],
|
|
3850
|
-
y = a[1];
|
|
3851
|
-
return Math.sqrt(x * x + y * y);
|
|
3852
|
-
}
|
|
3721
|
+
var Ndarray = __webpack_require__(162);
|
|
3853
3722
|
|
|
3854
|
-
|
|
3855
|
-
/* 71 */
|
|
3856
|
-
/***/ (function(module, exports) {
|
|
3723
|
+
var Interp2D = __webpack_require__(163).d2;
|
|
3857
3724
|
|
|
3858
|
-
|
|
3859
|
-
/**
|
|
3860
|
-
* Calculates the squared length of a vec2
|
|
3861
|
-
*
|
|
3862
|
-
* @param {vec2} a vector to calculate squared length of
|
|
3863
|
-
* @returns {Number} squared length of a
|
|
3864
|
-
*/
|
|
3725
|
+
var FrameGrabber = {};
|
|
3865
3726
|
|
|
3866
|
-
function
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
return x * x + y * y;
|
|
3870
|
-
}
|
|
3727
|
+
FrameGrabber.create = function (inputStream, canvas) {
|
|
3728
|
+
// console.warn('*** FrameGrabberNode create()');
|
|
3729
|
+
var _that = {};
|
|
3871
3730
|
|
|
3872
|
-
|
|
3873
|
-
/* 72 */
|
|
3874
|
-
/***/ (function(module, exports) {
|
|
3731
|
+
var _videoSize = CVUtils.imageRef(inputStream.getRealWidth(), inputStream.getRealHeight());
|
|
3875
3732
|
|
|
3876
|
-
|
|
3733
|
+
var _canvasSize = inputStream.getCanvasSize();
|
|
3877
3734
|
|
|
3878
|
-
|
|
3879
|
-
/* 73 */
|
|
3880
|
-
/***/ (function(module, exports) {
|
|
3735
|
+
var _size = CVUtils.imageRef(inputStream.getWidth(), inputStream.getHeight());
|
|
3881
3736
|
|
|
3882
|
-
|
|
3883
|
-
/**
|
|
3884
|
-
* Creates a new, empty vec3
|
|
3885
|
-
*
|
|
3886
|
-
* @returns {vec3} a new 3D vector
|
|
3887
|
-
*/
|
|
3737
|
+
var _topRight = inputStream.getTopRight();
|
|
3888
3738
|
|
|
3889
|
-
|
|
3890
|
-
var out = new Float32Array(3);
|
|
3891
|
-
out[0] = 0;
|
|
3892
|
-
out[1] = 0;
|
|
3893
|
-
out[2] = 0;
|
|
3894
|
-
return out;
|
|
3895
|
-
}
|
|
3739
|
+
var _data = new Uint8Array(_size.x * _size.y);
|
|
3896
3740
|
|
|
3897
|
-
|
|
3898
|
-
/* 74 */
|
|
3899
|
-
/***/ (function(module, exports) {
|
|
3741
|
+
var _grayData = new Uint8Array(_videoSize.x * _videoSize.y);
|
|
3900
3742
|
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
* Creates a new vec3 initialized with the given values
|
|
3904
|
-
*
|
|
3905
|
-
* @param {Number} x X component
|
|
3906
|
-
* @param {Number} y Y component
|
|
3907
|
-
* @param {Number} z Z component
|
|
3908
|
-
* @returns {vec3} a new 3D vector
|
|
3909
|
-
*/
|
|
3743
|
+
var _canvasData = new Uint8Array(_canvasSize.x * _canvasSize.y);
|
|
3744
|
+
/* eslint-disable new-cap */
|
|
3910
3745
|
|
|
3911
|
-
function fromValues(x, y, z) {
|
|
3912
|
-
var out = new Float32Array(3);
|
|
3913
|
-
out[0] = x;
|
|
3914
|
-
out[1] = y;
|
|
3915
|
-
out[2] = z;
|
|
3916
|
-
return out;
|
|
3917
|
-
}
|
|
3918
3746
|
|
|
3919
|
-
|
|
3920
|
-
/* 75 */
|
|
3921
|
-
/***/ (function(module, exports) {
|
|
3747
|
+
var _grayImageArray = Ndarray(_grayData, [_videoSize.y, _videoSize.x]).transpose(1, 0);
|
|
3922
3748
|
|
|
3923
|
-
|
|
3924
|
-
/**
|
|
3925
|
-
* Normalize a vec3
|
|
3926
|
-
*
|
|
3927
|
-
* @param {vec3} out the receiving vector
|
|
3928
|
-
* @param {vec3} a vector to normalize
|
|
3929
|
-
* @returns {vec3} out
|
|
3930
|
-
*/
|
|
3749
|
+
var _canvasImageArray = Ndarray(_canvasData, [_canvasSize.y, _canvasSize.x]).transpose(1, 0);
|
|
3931
3750
|
|
|
3932
|
-
|
|
3933
|
-
var x = a[0],
|
|
3934
|
-
y = a[1],
|
|
3935
|
-
z = a[2];
|
|
3936
|
-
var len = x * x + y * y + z * z;
|
|
3751
|
+
var _targetImageArray = _canvasImageArray.hi(_topRight.x + _size.x, _topRight.y + _size.y).lo(_topRight.x, _topRight.y);
|
|
3937
3752
|
|
|
3938
|
-
|
|
3939
|
-
//TODO: evaluate use of glm_invsqrt here?
|
|
3940
|
-
len = 1 / Math.sqrt(len);
|
|
3941
|
-
out[0] = a[0] * len;
|
|
3942
|
-
out[1] = a[1] * len;
|
|
3943
|
-
out[2] = a[2] * len;
|
|
3944
|
-
}
|
|
3753
|
+
var _stepSizeX = _videoSize.x / _canvasSize.x;
|
|
3945
3754
|
|
|
3946
|
-
|
|
3947
|
-
}
|
|
3755
|
+
var _stepSizeY = _videoSize.y / _canvasSize.y;
|
|
3948
3756
|
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3757
|
+
if (false) {}
|
|
3758
|
+
/**
|
|
3759
|
+
* Uses the given array as frame-buffer
|
|
3760
|
+
*/
|
|
3952
3761
|
|
|
3953
|
-
module.exports = dot;
|
|
3954
|
-
/**
|
|
3955
|
-
* Calculates the dot product of two vec3's
|
|
3956
|
-
*
|
|
3957
|
-
* @param {vec3} a the first operand
|
|
3958
|
-
* @param {vec3} b the second operand
|
|
3959
|
-
* @returns {Number} dot product of a and b
|
|
3960
|
-
*/
|
|
3961
3762
|
|
|
3962
|
-
function
|
|
3963
|
-
|
|
3964
|
-
}
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
/***/ (function(module, exports) {
|
|
3969
|
-
|
|
3970
|
-
module.exports = subtract;
|
|
3971
|
-
/**
|
|
3972
|
-
* Subtracts vector b from vector a
|
|
3973
|
-
*
|
|
3974
|
-
* @param {vec3} out the receiving vector
|
|
3975
|
-
* @param {vec3} a the first operand
|
|
3976
|
-
* @param {vec3} b the second operand
|
|
3977
|
-
* @returns {vec3} out
|
|
3978
|
-
*/
|
|
3979
|
-
|
|
3980
|
-
function subtract(out, a, b) {
|
|
3981
|
-
out[0] = a[0] - b[0];
|
|
3982
|
-
out[1] = a[1] - b[1];
|
|
3983
|
-
out[2] = a[2] - b[2];
|
|
3984
|
-
return out;
|
|
3985
|
-
}
|
|
3986
|
-
|
|
3987
|
-
/***/ }),
|
|
3988
|
-
/* 78 */
|
|
3989
|
-
/***/ (function(module, exports) {
|
|
3990
|
-
|
|
3991
|
-
module.exports = multiply;
|
|
3992
|
-
/**
|
|
3993
|
-
* Multiplies two vec3's
|
|
3994
|
-
*
|
|
3995
|
-
* @param {vec3} out the receiving vector
|
|
3996
|
-
* @param {vec3} a the first operand
|
|
3997
|
-
* @param {vec3} b the second operand
|
|
3998
|
-
* @returns {vec3} out
|
|
3999
|
-
*/
|
|
4000
|
-
|
|
4001
|
-
function multiply(out, a, b) {
|
|
4002
|
-
out[0] = a[0] * b[0];
|
|
4003
|
-
out[1] = a[1] * b[1];
|
|
4004
|
-
out[2] = a[2] * b[2];
|
|
4005
|
-
return out;
|
|
4006
|
-
}
|
|
4007
|
-
|
|
4008
|
-
/***/ }),
|
|
4009
|
-
/* 79 */
|
|
4010
|
-
/***/ (function(module, exports) {
|
|
4011
|
-
|
|
4012
|
-
module.exports = divide;
|
|
4013
|
-
/**
|
|
4014
|
-
* Divides two vec3's
|
|
4015
|
-
*
|
|
4016
|
-
* @param {vec3} out the receiving vector
|
|
4017
|
-
* @param {vec3} a the first operand
|
|
4018
|
-
* @param {vec3} b the second operand
|
|
4019
|
-
* @returns {vec3} out
|
|
4020
|
-
*/
|
|
4021
|
-
|
|
4022
|
-
function divide(out, a, b) {
|
|
4023
|
-
out[0] = a[0] / b[0];
|
|
4024
|
-
out[1] = a[1] / b[1];
|
|
4025
|
-
out[2] = a[2] / b[2];
|
|
4026
|
-
return out;
|
|
4027
|
-
}
|
|
4028
|
-
|
|
4029
|
-
/***/ }),
|
|
4030
|
-
/* 80 */
|
|
4031
|
-
/***/ (function(module, exports) {
|
|
4032
|
-
|
|
4033
|
-
module.exports = distance;
|
|
4034
|
-
/**
|
|
4035
|
-
* Calculates the euclidian distance between two vec3's
|
|
4036
|
-
*
|
|
4037
|
-
* @param {vec3} a the first operand
|
|
4038
|
-
* @param {vec3} b the second operand
|
|
4039
|
-
* @returns {Number} distance between a and b
|
|
4040
|
-
*/
|
|
4041
|
-
|
|
4042
|
-
function distance(a, b) {
|
|
4043
|
-
var x = b[0] - a[0],
|
|
4044
|
-
y = b[1] - a[1],
|
|
4045
|
-
z = b[2] - a[2];
|
|
4046
|
-
return Math.sqrt(x * x + y * y + z * z);
|
|
4047
|
-
}
|
|
4048
|
-
|
|
4049
|
-
/***/ }),
|
|
4050
|
-
/* 81 */
|
|
4051
|
-
/***/ (function(module, exports) {
|
|
4052
|
-
|
|
4053
|
-
module.exports = squaredDistance;
|
|
4054
|
-
/**
|
|
4055
|
-
* Calculates the squared euclidian distance between two vec3's
|
|
4056
|
-
*
|
|
4057
|
-
* @param {vec3} a the first operand
|
|
4058
|
-
* @param {vec3} b the second operand
|
|
4059
|
-
* @returns {Number} squared distance between a and b
|
|
4060
|
-
*/
|
|
4061
|
-
|
|
4062
|
-
function squaredDistance(a, b) {
|
|
4063
|
-
var x = b[0] - a[0],
|
|
4064
|
-
y = b[1] - a[1],
|
|
4065
|
-
z = b[2] - a[2];
|
|
4066
|
-
return x * x + y * y + z * z;
|
|
4067
|
-
}
|
|
4068
|
-
|
|
4069
|
-
/***/ }),
|
|
4070
|
-
/* 82 */
|
|
4071
|
-
/***/ (function(module, exports) {
|
|
4072
|
-
|
|
4073
|
-
module.exports = length;
|
|
4074
|
-
/**
|
|
4075
|
-
* Calculates the length of a vec3
|
|
4076
|
-
*
|
|
4077
|
-
* @param {vec3} a vector to calculate length of
|
|
4078
|
-
* @returns {Number} length of a
|
|
4079
|
-
*/
|
|
4080
|
-
|
|
4081
|
-
function length(a) {
|
|
4082
|
-
var x = a[0],
|
|
4083
|
-
y = a[1],
|
|
4084
|
-
z = a[2];
|
|
4085
|
-
return Math.sqrt(x * x + y * y + z * z);
|
|
4086
|
-
}
|
|
4087
|
-
|
|
4088
|
-
/***/ }),
|
|
4089
|
-
/* 83 */
|
|
4090
|
-
/***/ (function(module, exports) {
|
|
4091
|
-
|
|
4092
|
-
module.exports = squaredLength;
|
|
4093
|
-
/**
|
|
4094
|
-
* Calculates the squared length of a vec3
|
|
4095
|
-
*
|
|
4096
|
-
* @param {vec3} a vector to calculate squared length of
|
|
4097
|
-
* @returns {Number} squared length of a
|
|
4098
|
-
*/
|
|
4099
|
-
|
|
4100
|
-
function squaredLength(a) {
|
|
4101
|
-
var x = a[0],
|
|
4102
|
-
y = a[1],
|
|
4103
|
-
z = a[2];
|
|
4104
|
-
return x * x + y * y + z * z;
|
|
4105
|
-
}
|
|
4106
|
-
|
|
4107
|
-
/***/ }),
|
|
4108
|
-
/* 84 */
|
|
4109
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4110
|
-
|
|
4111
|
-
module.exports = {
|
|
4112
|
-
EPSILON: __webpack_require__(72),
|
|
4113
|
-
create: __webpack_require__(73),
|
|
4114
|
-
clone: __webpack_require__(193),
|
|
4115
|
-
angle: __webpack_require__(194),
|
|
4116
|
-
fromValues: __webpack_require__(74),
|
|
4117
|
-
copy: __webpack_require__(195),
|
|
4118
|
-
set: __webpack_require__(196),
|
|
4119
|
-
equals: __webpack_require__(197),
|
|
4120
|
-
exactEquals: __webpack_require__(198),
|
|
4121
|
-
add: __webpack_require__(199),
|
|
4122
|
-
subtract: __webpack_require__(77),
|
|
4123
|
-
sub: __webpack_require__(200),
|
|
4124
|
-
multiply: __webpack_require__(78),
|
|
4125
|
-
mul: __webpack_require__(201),
|
|
4126
|
-
divide: __webpack_require__(79),
|
|
4127
|
-
div: __webpack_require__(202),
|
|
4128
|
-
min: __webpack_require__(203),
|
|
4129
|
-
max: __webpack_require__(204),
|
|
4130
|
-
floor: __webpack_require__(205),
|
|
4131
|
-
ceil: __webpack_require__(206),
|
|
4132
|
-
round: __webpack_require__(207),
|
|
4133
|
-
scale: __webpack_require__(208),
|
|
4134
|
-
scaleAndAdd: __webpack_require__(209),
|
|
4135
|
-
distance: __webpack_require__(80),
|
|
4136
|
-
dist: __webpack_require__(210),
|
|
4137
|
-
squaredDistance: __webpack_require__(81),
|
|
4138
|
-
sqrDist: __webpack_require__(211),
|
|
4139
|
-
length: __webpack_require__(82),
|
|
4140
|
-
len: __webpack_require__(212),
|
|
4141
|
-
squaredLength: __webpack_require__(83),
|
|
4142
|
-
sqrLen: __webpack_require__(213),
|
|
4143
|
-
negate: __webpack_require__(214),
|
|
4144
|
-
inverse: __webpack_require__(215),
|
|
4145
|
-
normalize: __webpack_require__(75),
|
|
4146
|
-
dot: __webpack_require__(76),
|
|
4147
|
-
cross: __webpack_require__(216),
|
|
4148
|
-
lerp: __webpack_require__(217),
|
|
4149
|
-
random: __webpack_require__(218),
|
|
4150
|
-
transformMat4: __webpack_require__(219),
|
|
4151
|
-
transformMat3: __webpack_require__(220),
|
|
4152
|
-
transformQuat: __webpack_require__(221),
|
|
4153
|
-
rotateX: __webpack_require__(222),
|
|
4154
|
-
rotateY: __webpack_require__(223),
|
|
4155
|
-
rotateZ: __webpack_require__(224),
|
|
4156
|
-
forEach: __webpack_require__(225)
|
|
4157
|
-
};
|
|
4158
|
-
|
|
4159
|
-
/***/ }),
|
|
4160
|
-
/* 85 */
|
|
4161
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4162
|
-
|
|
4163
|
-
var basePick = __webpack_require__(231),
|
|
4164
|
-
flatRest = __webpack_require__(245);
|
|
4165
|
-
/**
|
|
4166
|
-
* Creates an object composed of the picked `object` properties.
|
|
4167
|
-
*
|
|
4168
|
-
* @static
|
|
4169
|
-
* @since 0.1.0
|
|
4170
|
-
* @memberOf _
|
|
4171
|
-
* @category Object
|
|
4172
|
-
* @param {Object} object The source object.
|
|
4173
|
-
* @param {...(string|string[])} [paths] The property paths to pick.
|
|
4174
|
-
* @returns {Object} Returns the new object.
|
|
4175
|
-
* @example
|
|
4176
|
-
*
|
|
4177
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
4178
|
-
*
|
|
4179
|
-
* _.pick(object, ['a', 'c']);
|
|
4180
|
-
* // => { 'a': 1, 'c': 3 }
|
|
4181
|
-
*/
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
var pick = flatRest(function (object, paths) {
|
|
4185
|
-
return object == null ? {} : basePick(object, paths);
|
|
4186
|
-
});
|
|
4187
|
-
module.exports = pick;
|
|
4188
|
-
|
|
4189
|
-
/***/ }),
|
|
4190
|
-
/* 86 */
|
|
4191
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4192
|
-
|
|
4193
|
-
var getPrototypeOf = __webpack_require__(2);
|
|
4194
|
-
|
|
4195
|
-
var setPrototypeOf = __webpack_require__(42);
|
|
4196
|
-
|
|
4197
|
-
var isNativeFunction = __webpack_require__(250);
|
|
4198
|
-
|
|
4199
|
-
var construct = __webpack_require__(251);
|
|
4200
|
-
|
|
4201
|
-
function _wrapNativeSuper(Class) {
|
|
4202
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
4203
|
-
|
|
4204
|
-
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
4205
|
-
if (Class === null || !isNativeFunction(Class)) return Class;
|
|
4206
|
-
|
|
4207
|
-
if (typeof Class !== "function") {
|
|
4208
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
4209
|
-
}
|
|
4210
|
-
|
|
4211
|
-
if (typeof _cache !== "undefined") {
|
|
4212
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
4213
|
-
|
|
4214
|
-
_cache.set(Class, Wrapper);
|
|
4215
|
-
}
|
|
4216
|
-
|
|
4217
|
-
function Wrapper() {
|
|
4218
|
-
return construct(Class, arguments, getPrototypeOf(this).constructor);
|
|
4219
|
-
}
|
|
4220
|
-
|
|
4221
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
4222
|
-
constructor: {
|
|
4223
|
-
value: Wrapper,
|
|
4224
|
-
enumerable: false,
|
|
4225
|
-
writable: true,
|
|
4226
|
-
configurable: true
|
|
4227
|
-
}
|
|
4228
|
-
});
|
|
4229
|
-
return setPrototypeOf(Wrapper, Class);
|
|
4230
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4231
|
-
return _wrapNativeSuper(Class);
|
|
4232
|
-
}
|
|
4233
|
-
|
|
4234
|
-
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4235
|
-
|
|
4236
|
-
/***/ }),
|
|
4237
|
-
/* 87 */
|
|
4238
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4239
|
-
|
|
4240
|
-
// NOTE FOR ANYONE IN HERE IN THE FUTURE: This module is used when the module is built for use in Node.
|
|
4241
|
-
// Webpack.config.js explicitly REPLACES this module with the file called frame_grabber_browser when it is packing the Browser distribution.
|
|
4242
|
-
var CVUtils = __webpack_require__(12);
|
|
4243
|
-
|
|
4244
|
-
var Ndarray = __webpack_require__(253);
|
|
4245
|
-
|
|
4246
|
-
var Interp2D = __webpack_require__(254).d2;
|
|
4247
|
-
|
|
4248
|
-
var FrameGrabber = {};
|
|
4249
|
-
|
|
4250
|
-
FrameGrabber.create = function (inputStream, canvas) {
|
|
4251
|
-
// console.warn('*** FrameGrabberNode create()');
|
|
4252
|
-
var _that = {};
|
|
4253
|
-
|
|
4254
|
-
var _videoSize = CVUtils.imageRef(inputStream.getRealWidth(), inputStream.getRealHeight());
|
|
4255
|
-
|
|
4256
|
-
var _canvasSize = inputStream.getCanvasSize();
|
|
4257
|
-
|
|
4258
|
-
var _size = CVUtils.imageRef(inputStream.getWidth(), inputStream.getHeight());
|
|
4259
|
-
|
|
4260
|
-
var _topRight = inputStream.getTopRight();
|
|
4261
|
-
|
|
4262
|
-
var _data = new Uint8Array(_size.x * _size.y);
|
|
4263
|
-
|
|
4264
|
-
var _grayData = new Uint8Array(_videoSize.x * _videoSize.y);
|
|
4265
|
-
|
|
4266
|
-
var _canvasData = new Uint8Array(_canvasSize.x * _canvasSize.y);
|
|
4267
|
-
/* eslint-disable new-cap */
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
var _grayImageArray = Ndarray(_grayData, [_videoSize.y, _videoSize.x]).transpose(1, 0);
|
|
4271
|
-
|
|
4272
|
-
var _canvasImageArray = Ndarray(_canvasData, [_canvasSize.y, _canvasSize.x]).transpose(1, 0);
|
|
4273
|
-
|
|
4274
|
-
var _targetImageArray = _canvasImageArray.hi(_topRight.x + _size.x, _topRight.y + _size.y).lo(_topRight.x, _topRight.y);
|
|
4275
|
-
|
|
4276
|
-
var _stepSizeX = _videoSize.x / _canvasSize.x;
|
|
4277
|
-
|
|
4278
|
-
var _stepSizeY = _videoSize.y / _canvasSize.y;
|
|
4279
|
-
|
|
4280
|
-
if (false) {}
|
|
4281
|
-
/**
|
|
4282
|
-
* Uses the given array as frame-buffer
|
|
4283
|
-
*/
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
_that.attachData = function (data) {
|
|
4287
|
-
_data = data;
|
|
4288
|
-
};
|
|
4289
|
-
/**
|
|
4290
|
-
* Returns the used frame-buffer
|
|
4291
|
-
*/
|
|
3763
|
+
_that.attachData = function (data) {
|
|
3764
|
+
_data = data;
|
|
3765
|
+
};
|
|
3766
|
+
/**
|
|
3767
|
+
* Returns the used frame-buffer
|
|
3768
|
+
*/
|
|
4292
3769
|
|
|
4293
3770
|
|
|
4294
3771
|
_that.getData = function () {
|
|
@@ -4346,13 +3823,13 @@ FrameGrabber.create = function (inputStream, canvas) {
|
|
|
4346
3823
|
module.exports = FrameGrabber;
|
|
4347
3824
|
|
|
4348
3825
|
/***/ }),
|
|
4349
|
-
/*
|
|
3826
|
+
/* 65 */
|
|
4350
3827
|
/***/ (function(module, exports) {
|
|
4351
3828
|
|
|
4352
3829
|
module.exports = require("get-pixels");
|
|
4353
3830
|
|
|
4354
3831
|
/***/ }),
|
|
4355
|
-
/*
|
|
3832
|
+
/* 66 */
|
|
4356
3833
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4357
3834
|
|
|
4358
3835
|
"use strict";
|
|
@@ -4572,7 +4049,7 @@ var Rasterizer = {
|
|
|
4572
4049
|
/* harmony default export */ __webpack_exports__["a"] = (Rasterizer);
|
|
4573
4050
|
|
|
4574
4051
|
/***/ }),
|
|
4575
|
-
/*
|
|
4052
|
+
/* 67 */
|
|
4576
4053
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4577
4054
|
|
|
4578
4055
|
"use strict";
|
|
@@ -4771,23 +4248,23 @@ function Skeletonizer(stdlib, foreign, buffer) {
|
|
|
4771
4248
|
/* eslint-enable eqeqeq */
|
|
4772
4249
|
|
|
4773
4250
|
/***/ }),
|
|
4774
|
-
/*
|
|
4251
|
+
/* 68 */
|
|
4775
4252
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4776
4253
|
|
|
4777
|
-
module.exports = __webpack_require__(
|
|
4254
|
+
module.exports = __webpack_require__(164);
|
|
4778
4255
|
|
|
4779
4256
|
|
|
4780
4257
|
/***/ }),
|
|
4781
|
-
/*
|
|
4258
|
+
/* 69 */
|
|
4782
4259
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4783
4260
|
|
|
4784
|
-
var Stack = __webpack_require__(
|
|
4785
|
-
assignMergeValue = __webpack_require__(
|
|
4786
|
-
baseFor = __webpack_require__(
|
|
4787
|
-
baseMergeDeep = __webpack_require__(
|
|
4261
|
+
var Stack = __webpack_require__(70),
|
|
4262
|
+
assignMergeValue = __webpack_require__(48),
|
|
4263
|
+
baseFor = __webpack_require__(100),
|
|
4264
|
+
baseMergeDeep = __webpack_require__(102),
|
|
4788
4265
|
isObject = __webpack_require__(14),
|
|
4789
|
-
keysIn = __webpack_require__(
|
|
4790
|
-
safeGet = __webpack_require__(
|
|
4266
|
+
keysIn = __webpack_require__(56),
|
|
4267
|
+
safeGet = __webpack_require__(54);
|
|
4791
4268
|
/**
|
|
4792
4269
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
4793
4270
|
*
|
|
@@ -4826,15 +4303,15 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
|
4826
4303
|
module.exports = baseMerge;
|
|
4827
4304
|
|
|
4828
4305
|
/***/ }),
|
|
4829
|
-
/*
|
|
4306
|
+
/* 70 */
|
|
4830
4307
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4831
4308
|
|
|
4832
4309
|
var ListCache = __webpack_require__(24),
|
|
4833
|
-
stackClear = __webpack_require__(
|
|
4834
|
-
stackDelete = __webpack_require__(
|
|
4835
|
-
stackGet = __webpack_require__(
|
|
4836
|
-
stackHas = __webpack_require__(
|
|
4837
|
-
stackSet = __webpack_require__(
|
|
4310
|
+
stackClear = __webpack_require__(76),
|
|
4311
|
+
stackDelete = __webpack_require__(77),
|
|
4312
|
+
stackGet = __webpack_require__(78),
|
|
4313
|
+
stackHas = __webpack_require__(79),
|
|
4314
|
+
stackSet = __webpack_require__(80);
|
|
4838
4315
|
/**
|
|
4839
4316
|
* Creates a stack cache object to store key-value pairs.
|
|
4840
4317
|
*
|
|
@@ -4858,7 +4335,7 @@ Stack.prototype.set = stackSet;
|
|
|
4858
4335
|
module.exports = Stack;
|
|
4859
4336
|
|
|
4860
4337
|
/***/ }),
|
|
4861
|
-
/*
|
|
4338
|
+
/* 71 */
|
|
4862
4339
|
/***/ (function(module, exports) {
|
|
4863
4340
|
|
|
4864
4341
|
/**
|
|
@@ -4876,7 +4353,7 @@ function listCacheClear() {
|
|
|
4876
4353
|
module.exports = listCacheClear;
|
|
4877
4354
|
|
|
4878
4355
|
/***/ }),
|
|
4879
|
-
/*
|
|
4356
|
+
/* 72 */
|
|
4880
4357
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4881
4358
|
|
|
4882
4359
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -4920,7 +4397,7 @@ function listCacheDelete(key) {
|
|
|
4920
4397
|
module.exports = listCacheDelete;
|
|
4921
4398
|
|
|
4922
4399
|
/***/ }),
|
|
4923
|
-
/*
|
|
4400
|
+
/* 73 */
|
|
4924
4401
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4925
4402
|
|
|
4926
4403
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -4944,7 +4421,7 @@ function listCacheGet(key) {
|
|
|
4944
4421
|
module.exports = listCacheGet;
|
|
4945
4422
|
|
|
4946
4423
|
/***/ }),
|
|
4947
|
-
/*
|
|
4424
|
+
/* 74 */
|
|
4948
4425
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4949
4426
|
|
|
4950
4427
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -4966,7 +4443,7 @@ function listCacheHas(key) {
|
|
|
4966
4443
|
module.exports = listCacheHas;
|
|
4967
4444
|
|
|
4968
4445
|
/***/ }),
|
|
4969
|
-
/*
|
|
4446
|
+
/* 75 */
|
|
4970
4447
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4971
4448
|
|
|
4972
4449
|
var assocIndexOf = __webpack_require__(25);
|
|
@@ -4999,7 +4476,7 @@ function listCacheSet(key, value) {
|
|
|
4999
4476
|
module.exports = listCacheSet;
|
|
5000
4477
|
|
|
5001
4478
|
/***/ }),
|
|
5002
|
-
/*
|
|
4479
|
+
/* 76 */
|
|
5003
4480
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5004
4481
|
|
|
5005
4482
|
var ListCache = __webpack_require__(24);
|
|
@@ -5020,7 +4497,7 @@ function stackClear() {
|
|
|
5020
4497
|
module.exports = stackClear;
|
|
5021
4498
|
|
|
5022
4499
|
/***/ }),
|
|
5023
|
-
/*
|
|
4500
|
+
/* 77 */
|
|
5024
4501
|
/***/ (function(module, exports) {
|
|
5025
4502
|
|
|
5026
4503
|
/**
|
|
@@ -5042,7 +4519,7 @@ function stackDelete(key) {
|
|
|
5042
4519
|
module.exports = stackDelete;
|
|
5043
4520
|
|
|
5044
4521
|
/***/ }),
|
|
5045
|
-
/*
|
|
4522
|
+
/* 78 */
|
|
5046
4523
|
/***/ (function(module, exports) {
|
|
5047
4524
|
|
|
5048
4525
|
/**
|
|
@@ -5061,7 +4538,7 @@ function stackGet(key) {
|
|
|
5061
4538
|
module.exports = stackGet;
|
|
5062
4539
|
|
|
5063
4540
|
/***/ }),
|
|
5064
|
-
/*
|
|
4541
|
+
/* 79 */
|
|
5065
4542
|
/***/ (function(module, exports) {
|
|
5066
4543
|
|
|
5067
4544
|
/**
|
|
@@ -5080,12 +4557,12 @@ function stackHas(key) {
|
|
|
5080
4557
|
module.exports = stackHas;
|
|
5081
4558
|
|
|
5082
4559
|
/***/ }),
|
|
5083
|
-
/*
|
|
4560
|
+
/* 80 */
|
|
5084
4561
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5085
4562
|
|
|
5086
4563
|
var ListCache = __webpack_require__(24),
|
|
5087
|
-
Map = __webpack_require__(
|
|
5088
|
-
MapCache = __webpack_require__(
|
|
4564
|
+
Map = __webpack_require__(44),
|
|
4565
|
+
MapCache = __webpack_require__(47);
|
|
5089
4566
|
/** Used as the size to enable large array optimizations. */
|
|
5090
4567
|
|
|
5091
4568
|
|
|
@@ -5124,13 +4601,13 @@ function stackSet(key, value) {
|
|
|
5124
4601
|
module.exports = stackSet;
|
|
5125
4602
|
|
|
5126
4603
|
/***/ }),
|
|
5127
|
-
/*
|
|
4604
|
+
/* 81 */
|
|
5128
4605
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5129
4606
|
|
|
5130
|
-
var isFunction = __webpack_require__(
|
|
5131
|
-
isMasked = __webpack_require__(
|
|
4607
|
+
var isFunction = __webpack_require__(36),
|
|
4608
|
+
isMasked = __webpack_require__(84),
|
|
5132
4609
|
isObject = __webpack_require__(14),
|
|
5133
|
-
toSource = __webpack_require__(
|
|
4610
|
+
toSource = __webpack_require__(86);
|
|
5134
4611
|
/**
|
|
5135
4612
|
* Used to match `RegExp`
|
|
5136
4613
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -5175,7 +4652,7 @@ function baseIsNative(value) {
|
|
|
5175
4652
|
module.exports = baseIsNative;
|
|
5176
4653
|
|
|
5177
4654
|
/***/ }),
|
|
5178
|
-
/*
|
|
4655
|
+
/* 82 */
|
|
5179
4656
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5180
4657
|
|
|
5181
4658
|
var Symbol = __webpack_require__(27);
|
|
@@ -5229,7 +4706,7 @@ function getRawTag(value) {
|
|
|
5229
4706
|
module.exports = getRawTag;
|
|
5230
4707
|
|
|
5231
4708
|
/***/ }),
|
|
5232
|
-
/*
|
|
4709
|
+
/* 83 */
|
|
5233
4710
|
/***/ (function(module, exports) {
|
|
5234
4711
|
|
|
5235
4712
|
/** Used for built-in method references. */
|
|
@@ -5256,10 +4733,10 @@ function objectToString(value) {
|
|
|
5256
4733
|
module.exports = objectToString;
|
|
5257
4734
|
|
|
5258
4735
|
/***/ }),
|
|
5259
|
-
/*
|
|
4736
|
+
/* 84 */
|
|
5260
4737
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5261
4738
|
|
|
5262
|
-
var coreJsData = __webpack_require__(
|
|
4739
|
+
var coreJsData = __webpack_require__(85);
|
|
5263
4740
|
/** Used to detect methods masquerading as native. */
|
|
5264
4741
|
|
|
5265
4742
|
|
|
@@ -5283,7 +4760,7 @@ function isMasked(func) {
|
|
|
5283
4760
|
module.exports = isMasked;
|
|
5284
4761
|
|
|
5285
4762
|
/***/ }),
|
|
5286
|
-
/*
|
|
4763
|
+
/* 85 */
|
|
5287
4764
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5288
4765
|
|
|
5289
4766
|
var root = __webpack_require__(19);
|
|
@@ -5294,7 +4771,7 @@ var coreJsData = root['__core-js_shared__'];
|
|
|
5294
4771
|
module.exports = coreJsData;
|
|
5295
4772
|
|
|
5296
4773
|
/***/ }),
|
|
5297
|
-
/*
|
|
4774
|
+
/* 86 */
|
|
5298
4775
|
/***/ (function(module, exports) {
|
|
5299
4776
|
|
|
5300
4777
|
/** Used for built-in method references. */
|
|
@@ -5327,7 +4804,7 @@ function toSource(func) {
|
|
|
5327
4804
|
module.exports = toSource;
|
|
5328
4805
|
|
|
5329
4806
|
/***/ }),
|
|
5330
|
-
/*
|
|
4807
|
+
/* 87 */
|
|
5331
4808
|
/***/ (function(module, exports) {
|
|
5332
4809
|
|
|
5333
4810
|
/**
|
|
@@ -5345,12 +4822,12 @@ function getValue(object, key) {
|
|
|
5345
4822
|
module.exports = getValue;
|
|
5346
4823
|
|
|
5347
4824
|
/***/ }),
|
|
5348
|
-
/*
|
|
4825
|
+
/* 88 */
|
|
5349
4826
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5350
4827
|
|
|
5351
|
-
var Hash = __webpack_require__(
|
|
4828
|
+
var Hash = __webpack_require__(89),
|
|
5352
4829
|
ListCache = __webpack_require__(24),
|
|
5353
|
-
Map = __webpack_require__(
|
|
4830
|
+
Map = __webpack_require__(44);
|
|
5354
4831
|
/**
|
|
5355
4832
|
* Removes all key-value entries from the map.
|
|
5356
4833
|
*
|
|
@@ -5372,14 +4849,14 @@ function mapCacheClear() {
|
|
|
5372
4849
|
module.exports = mapCacheClear;
|
|
5373
4850
|
|
|
5374
4851
|
/***/ }),
|
|
5375
|
-
/*
|
|
4852
|
+
/* 89 */
|
|
5376
4853
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5377
4854
|
|
|
5378
|
-
var hashClear = __webpack_require__(
|
|
5379
|
-
hashDelete = __webpack_require__(
|
|
5380
|
-
hashGet = __webpack_require__(
|
|
5381
|
-
hashHas = __webpack_require__(
|
|
5382
|
-
hashSet = __webpack_require__(
|
|
4855
|
+
var hashClear = __webpack_require__(90),
|
|
4856
|
+
hashDelete = __webpack_require__(91),
|
|
4857
|
+
hashGet = __webpack_require__(92),
|
|
4858
|
+
hashHas = __webpack_require__(93),
|
|
4859
|
+
hashSet = __webpack_require__(94);
|
|
5383
4860
|
/**
|
|
5384
4861
|
* Creates a hash object.
|
|
5385
4862
|
*
|
|
@@ -5409,7 +4886,7 @@ Hash.prototype.set = hashSet;
|
|
|
5409
4886
|
module.exports = Hash;
|
|
5410
4887
|
|
|
5411
4888
|
/***/ }),
|
|
5412
|
-
/*
|
|
4889
|
+
/* 90 */
|
|
5413
4890
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5414
4891
|
|
|
5415
4892
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5430,7 +4907,7 @@ function hashClear() {
|
|
|
5430
4907
|
module.exports = hashClear;
|
|
5431
4908
|
|
|
5432
4909
|
/***/ }),
|
|
5433
|
-
/*
|
|
4910
|
+
/* 91 */
|
|
5434
4911
|
/***/ (function(module, exports) {
|
|
5435
4912
|
|
|
5436
4913
|
/**
|
|
@@ -5452,7 +4929,7 @@ function hashDelete(key) {
|
|
|
5452
4929
|
module.exports = hashDelete;
|
|
5453
4930
|
|
|
5454
4931
|
/***/ }),
|
|
5455
|
-
/*
|
|
4932
|
+
/* 92 */
|
|
5456
4933
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5457
4934
|
|
|
5458
4935
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5490,7 +4967,7 @@ function hashGet(key) {
|
|
|
5490
4967
|
module.exports = hashGet;
|
|
5491
4968
|
|
|
5492
4969
|
/***/ }),
|
|
5493
|
-
/*
|
|
4970
|
+
/* 93 */
|
|
5494
4971
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5495
4972
|
|
|
5496
4973
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5519,7 +4996,7 @@ function hashHas(key) {
|
|
|
5519
4996
|
module.exports = hashHas;
|
|
5520
4997
|
|
|
5521
4998
|
/***/ }),
|
|
5522
|
-
/*
|
|
4999
|
+
/* 94 */
|
|
5523
5000
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5524
5001
|
|
|
5525
5002
|
var nativeCreate = __webpack_require__(28);
|
|
@@ -5548,7 +5025,7 @@ function hashSet(key, value) {
|
|
|
5548
5025
|
module.exports = hashSet;
|
|
5549
5026
|
|
|
5550
5027
|
/***/ }),
|
|
5551
|
-
/*
|
|
5028
|
+
/* 95 */
|
|
5552
5029
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5553
5030
|
|
|
5554
5031
|
var getMapData = __webpack_require__(29);
|
|
@@ -5572,7 +5049,7 @@ function mapCacheDelete(key) {
|
|
|
5572
5049
|
module.exports = mapCacheDelete;
|
|
5573
5050
|
|
|
5574
5051
|
/***/ }),
|
|
5575
|
-
/*
|
|
5052
|
+
/* 96 */
|
|
5576
5053
|
/***/ (function(module, exports) {
|
|
5577
5054
|
|
|
5578
5055
|
/**
|
|
@@ -5590,7 +5067,7 @@ function isKeyable(value) {
|
|
|
5590
5067
|
module.exports = isKeyable;
|
|
5591
5068
|
|
|
5592
5069
|
/***/ }),
|
|
5593
|
-
/*
|
|
5070
|
+
/* 97 */
|
|
5594
5071
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5595
5072
|
|
|
5596
5073
|
var getMapData = __webpack_require__(29);
|
|
@@ -5612,7 +5089,7 @@ function mapCacheGet(key) {
|
|
|
5612
5089
|
module.exports = mapCacheGet;
|
|
5613
5090
|
|
|
5614
5091
|
/***/ }),
|
|
5615
|
-
/*
|
|
5092
|
+
/* 98 */
|
|
5616
5093
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5617
5094
|
|
|
5618
5095
|
var getMapData = __webpack_require__(29);
|
|
@@ -5634,7 +5111,7 @@ function mapCacheHas(key) {
|
|
|
5634
5111
|
module.exports = mapCacheHas;
|
|
5635
5112
|
|
|
5636
5113
|
/***/ }),
|
|
5637
|
-
/*
|
|
5114
|
+
/* 99 */
|
|
5638
5115
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5639
5116
|
|
|
5640
5117
|
var getMapData = __webpack_require__(29);
|
|
@@ -5661,10 +5138,10 @@ function mapCacheSet(key, value) {
|
|
|
5661
5138
|
module.exports = mapCacheSet;
|
|
5662
5139
|
|
|
5663
5140
|
/***/ }),
|
|
5664
|
-
/*
|
|
5141
|
+
/* 100 */
|
|
5665
5142
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5666
5143
|
|
|
5667
|
-
var createBaseFor = __webpack_require__(
|
|
5144
|
+
var createBaseFor = __webpack_require__(101);
|
|
5668
5145
|
/**
|
|
5669
5146
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
5670
5147
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -5682,7 +5159,7 @@ var baseFor = createBaseFor();
|
|
|
5682
5159
|
module.exports = baseFor;
|
|
5683
5160
|
|
|
5684
5161
|
/***/ }),
|
|
5685
|
-
/*
|
|
5162
|
+
/* 101 */
|
|
5686
5163
|
/***/ (function(module, exports) {
|
|
5687
5164
|
|
|
5688
5165
|
/**
|
|
@@ -5714,24 +5191,24 @@ function createBaseFor(fromRight) {
|
|
|
5714
5191
|
module.exports = createBaseFor;
|
|
5715
5192
|
|
|
5716
5193
|
/***/ }),
|
|
5717
|
-
/*
|
|
5194
|
+
/* 102 */
|
|
5718
5195
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5719
5196
|
|
|
5720
|
-
var assignMergeValue = __webpack_require__(
|
|
5721
|
-
cloneBuffer = __webpack_require__(
|
|
5722
|
-
cloneTypedArray = __webpack_require__(
|
|
5723
|
-
copyArray = __webpack_require__(
|
|
5724
|
-
initCloneObject = __webpack_require__(
|
|
5197
|
+
var assignMergeValue = __webpack_require__(48),
|
|
5198
|
+
cloneBuffer = __webpack_require__(103),
|
|
5199
|
+
cloneTypedArray = __webpack_require__(104),
|
|
5200
|
+
copyArray = __webpack_require__(107),
|
|
5201
|
+
initCloneObject = __webpack_require__(108),
|
|
5725
5202
|
isArguments = __webpack_require__(30),
|
|
5726
5203
|
isArray = __webpack_require__(15),
|
|
5727
|
-
isArrayLikeObject = __webpack_require__(
|
|
5728
|
-
isBuffer = __webpack_require__(
|
|
5729
|
-
isFunction = __webpack_require__(
|
|
5204
|
+
isArrayLikeObject = __webpack_require__(112),
|
|
5205
|
+
isBuffer = __webpack_require__(52),
|
|
5206
|
+
isFunction = __webpack_require__(36),
|
|
5730
5207
|
isObject = __webpack_require__(14),
|
|
5731
|
-
isPlainObject = __webpack_require__(
|
|
5732
|
-
isTypedArray = __webpack_require__(
|
|
5733
|
-
safeGet = __webpack_require__(
|
|
5734
|
-
toPlainObject = __webpack_require__(
|
|
5208
|
+
isPlainObject = __webpack_require__(114),
|
|
5209
|
+
isTypedArray = __webpack_require__(53),
|
|
5210
|
+
safeGet = __webpack_require__(54),
|
|
5211
|
+
toPlainObject = __webpack_require__(118);
|
|
5735
5212
|
/**
|
|
5736
5213
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
5737
5214
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
@@ -5808,7 +5285,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
5808
5285
|
module.exports = baseMergeDeep;
|
|
5809
5286
|
|
|
5810
5287
|
/***/ }),
|
|
5811
|
-
/*
|
|
5288
|
+
/* 103 */
|
|
5812
5289
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5813
5290
|
|
|
5814
5291
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(19);
|
|
@@ -5847,13 +5324,13 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
5847
5324
|
}
|
|
5848
5325
|
|
|
5849
5326
|
module.exports = cloneBuffer;
|
|
5850
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
5327
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(38)(module)))
|
|
5851
5328
|
|
|
5852
5329
|
/***/ }),
|
|
5853
|
-
/*
|
|
5330
|
+
/* 104 */
|
|
5854
5331
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5855
5332
|
|
|
5856
|
-
var cloneArrayBuffer = __webpack_require__(
|
|
5333
|
+
var cloneArrayBuffer = __webpack_require__(105);
|
|
5857
5334
|
/**
|
|
5858
5335
|
* Creates a clone of `typedArray`.
|
|
5859
5336
|
*
|
|
@@ -5872,10 +5349,10 @@ function cloneTypedArray(typedArray, isDeep) {
|
|
|
5872
5349
|
module.exports = cloneTypedArray;
|
|
5873
5350
|
|
|
5874
5351
|
/***/ }),
|
|
5875
|
-
/*
|
|
5352
|
+
/* 105 */
|
|
5876
5353
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5877
5354
|
|
|
5878
|
-
var Uint8Array = __webpack_require__(
|
|
5355
|
+
var Uint8Array = __webpack_require__(106);
|
|
5879
5356
|
/**
|
|
5880
5357
|
* Creates a clone of `arrayBuffer`.
|
|
5881
5358
|
*
|
|
@@ -5894,7 +5371,7 @@ function cloneArrayBuffer(arrayBuffer) {
|
|
|
5894
5371
|
module.exports = cloneArrayBuffer;
|
|
5895
5372
|
|
|
5896
5373
|
/***/ }),
|
|
5897
|
-
/*
|
|
5374
|
+
/* 106 */
|
|
5898
5375
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5899
5376
|
|
|
5900
5377
|
var root = __webpack_require__(19);
|
|
@@ -5905,7 +5382,7 @@ var Uint8Array = root.Uint8Array;
|
|
|
5905
5382
|
module.exports = Uint8Array;
|
|
5906
5383
|
|
|
5907
5384
|
/***/ }),
|
|
5908
|
-
/*
|
|
5385
|
+
/* 107 */
|
|
5909
5386
|
/***/ (function(module, exports) {
|
|
5910
5387
|
|
|
5911
5388
|
/**
|
|
@@ -5931,12 +5408,12 @@ function copyArray(source, array) {
|
|
|
5931
5408
|
module.exports = copyArray;
|
|
5932
5409
|
|
|
5933
5410
|
/***/ }),
|
|
5934
|
-
/*
|
|
5411
|
+
/* 108 */
|
|
5935
5412
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5936
5413
|
|
|
5937
|
-
var baseCreate = __webpack_require__(
|
|
5938
|
-
getPrototype = __webpack_require__(
|
|
5939
|
-
isPrototype = __webpack_require__(
|
|
5414
|
+
var baseCreate = __webpack_require__(109),
|
|
5415
|
+
getPrototype = __webpack_require__(50),
|
|
5416
|
+
isPrototype = __webpack_require__(51);
|
|
5940
5417
|
/**
|
|
5941
5418
|
* Initializes an object clone.
|
|
5942
5419
|
*
|
|
@@ -5953,7 +5430,7 @@ function initCloneObject(object) {
|
|
|
5953
5430
|
module.exports = initCloneObject;
|
|
5954
5431
|
|
|
5955
5432
|
/***/ }),
|
|
5956
|
-
/*
|
|
5433
|
+
/* 109 */
|
|
5957
5434
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5958
5435
|
|
|
5959
5436
|
var isObject = __webpack_require__(14);
|
|
@@ -5992,7 +5469,7 @@ var baseCreate = function () {
|
|
|
5992
5469
|
module.exports = baseCreate;
|
|
5993
5470
|
|
|
5994
5471
|
/***/ }),
|
|
5995
|
-
/*
|
|
5472
|
+
/* 110 */
|
|
5996
5473
|
/***/ (function(module, exports) {
|
|
5997
5474
|
|
|
5998
5475
|
/**
|
|
@@ -6012,7 +5489,7 @@ function overArg(func, transform) {
|
|
|
6012
5489
|
module.exports = overArg;
|
|
6013
5490
|
|
|
6014
5491
|
/***/ }),
|
|
6015
|
-
/*
|
|
5492
|
+
/* 111 */
|
|
6016
5493
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6017
5494
|
|
|
6018
5495
|
var baseGetTag = __webpack_require__(22),
|
|
@@ -6036,10 +5513,10 @@ function baseIsArguments(value) {
|
|
|
6036
5513
|
module.exports = baseIsArguments;
|
|
6037
5514
|
|
|
6038
5515
|
/***/ }),
|
|
6039
|
-
/*
|
|
5516
|
+
/* 112 */
|
|
6040
5517
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6041
5518
|
|
|
6042
|
-
var isArrayLike = __webpack_require__(
|
|
5519
|
+
var isArrayLike = __webpack_require__(39),
|
|
6043
5520
|
isObjectLike = __webpack_require__(20);
|
|
6044
5521
|
/**
|
|
6045
5522
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
@@ -6075,7 +5552,7 @@ function isArrayLikeObject(value) {
|
|
|
6075
5552
|
module.exports = isArrayLikeObject;
|
|
6076
5553
|
|
|
6077
5554
|
/***/ }),
|
|
6078
|
-
/*
|
|
5555
|
+
/* 113 */
|
|
6079
5556
|
/***/ (function(module, exports) {
|
|
6080
5557
|
|
|
6081
5558
|
/**
|
|
@@ -6098,11 +5575,11 @@ function stubFalse() {
|
|
|
6098
5575
|
module.exports = stubFalse;
|
|
6099
5576
|
|
|
6100
5577
|
/***/ }),
|
|
6101
|
-
/*
|
|
5578
|
+
/* 114 */
|
|
6102
5579
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6103
5580
|
|
|
6104
5581
|
var baseGetTag = __webpack_require__(22),
|
|
6105
|
-
getPrototype = __webpack_require__(
|
|
5582
|
+
getPrototype = __webpack_require__(50),
|
|
6106
5583
|
isObjectLike = __webpack_require__(20);
|
|
6107
5584
|
/** `Object#toString` result references. */
|
|
6108
5585
|
|
|
@@ -6168,11 +5645,11 @@ function isPlainObject(value) {
|
|
|
6168
5645
|
module.exports = isPlainObject;
|
|
6169
5646
|
|
|
6170
5647
|
/***/ }),
|
|
6171
|
-
/*
|
|
5648
|
+
/* 115 */
|
|
6172
5649
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6173
5650
|
|
|
6174
5651
|
var baseGetTag = __webpack_require__(22),
|
|
6175
|
-
isLength = __webpack_require__(
|
|
5652
|
+
isLength = __webpack_require__(40),
|
|
6176
5653
|
isObjectLike = __webpack_require__(20);
|
|
6177
5654
|
/** `Object#toString` result references. */
|
|
6178
5655
|
|
|
@@ -6221,7 +5698,7 @@ function baseIsTypedArray(value) {
|
|
|
6221
5698
|
module.exports = baseIsTypedArray;
|
|
6222
5699
|
|
|
6223
5700
|
/***/ }),
|
|
6224
|
-
/*
|
|
5701
|
+
/* 116 */
|
|
6225
5702
|
/***/ (function(module, exports) {
|
|
6226
5703
|
|
|
6227
5704
|
/**
|
|
@@ -6240,10 +5717,10 @@ function baseUnary(func) {
|
|
|
6240
5717
|
module.exports = baseUnary;
|
|
6241
5718
|
|
|
6242
5719
|
/***/ }),
|
|
6243
|
-
/*
|
|
5720
|
+
/* 117 */
|
|
6244
5721
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6245
5722
|
|
|
6246
|
-
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(
|
|
5723
|
+
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(45);
|
|
6247
5724
|
/** Detect free variable `exports`. */
|
|
6248
5725
|
|
|
6249
5726
|
|
|
@@ -6274,14 +5751,14 @@ var nodeUtil = function () {
|
|
|
6274
5751
|
}();
|
|
6275
5752
|
|
|
6276
5753
|
module.exports = nodeUtil;
|
|
6277
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
5754
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(38)(module)))
|
|
6278
5755
|
|
|
6279
5756
|
/***/ }),
|
|
6280
|
-
/*
|
|
5757
|
+
/* 118 */
|
|
6281
5758
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6282
5759
|
|
|
6283
|
-
var copyObject = __webpack_require__(
|
|
6284
|
-
keysIn = __webpack_require__(
|
|
5760
|
+
var copyObject = __webpack_require__(119),
|
|
5761
|
+
keysIn = __webpack_require__(56);
|
|
6285
5762
|
/**
|
|
6286
5763
|
* Converts `value` to a plain object flattening inherited enumerable string
|
|
6287
5764
|
* keyed properties of `value` to own properties of the plain object.
|
|
@@ -6315,11 +5792,11 @@ function toPlainObject(value) {
|
|
|
6315
5792
|
module.exports = toPlainObject;
|
|
6316
5793
|
|
|
6317
5794
|
/***/ }),
|
|
6318
|
-
/*
|
|
5795
|
+
/* 119 */
|
|
6319
5796
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6320
5797
|
|
|
6321
|
-
var assignValue = __webpack_require__(
|
|
6322
|
-
baseAssignValue = __webpack_require__(
|
|
5798
|
+
var assignValue = __webpack_require__(55),
|
|
5799
|
+
baseAssignValue = __webpack_require__(37);
|
|
6323
5800
|
/**
|
|
6324
5801
|
* Copies properties of `source` to `object`.
|
|
6325
5802
|
*
|
|
@@ -6359,15 +5836,15 @@ function copyObject(source, props, object, customizer) {
|
|
|
6359
5836
|
module.exports = copyObject;
|
|
6360
5837
|
|
|
6361
5838
|
/***/ }),
|
|
6362
|
-
/*
|
|
5839
|
+
/* 120 */
|
|
6363
5840
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6364
5841
|
|
|
6365
|
-
var baseTimes = __webpack_require__(
|
|
5842
|
+
var baseTimes = __webpack_require__(121),
|
|
6366
5843
|
isArguments = __webpack_require__(30),
|
|
6367
5844
|
isArray = __webpack_require__(15),
|
|
6368
|
-
isBuffer = __webpack_require__(
|
|
5845
|
+
isBuffer = __webpack_require__(52),
|
|
6369
5846
|
isIndex = __webpack_require__(31),
|
|
6370
|
-
isTypedArray = __webpack_require__(
|
|
5847
|
+
isTypedArray = __webpack_require__(53);
|
|
6371
5848
|
/** Used for built-in method references. */
|
|
6372
5849
|
|
|
6373
5850
|
|
|
@@ -6409,7 +5886,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
6409
5886
|
module.exports = arrayLikeKeys;
|
|
6410
5887
|
|
|
6411
5888
|
/***/ }),
|
|
6412
|
-
/*
|
|
5889
|
+
/* 121 */
|
|
6413
5890
|
/***/ (function(module, exports) {
|
|
6414
5891
|
|
|
6415
5892
|
/**
|
|
@@ -6435,12 +5912,12 @@ function baseTimes(n, iteratee) {
|
|
|
6435
5912
|
module.exports = baseTimes;
|
|
6436
5913
|
|
|
6437
5914
|
/***/ }),
|
|
6438
|
-
/*
|
|
5915
|
+
/* 122 */
|
|
6439
5916
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6440
5917
|
|
|
6441
5918
|
var isObject = __webpack_require__(14),
|
|
6442
|
-
isPrototype = __webpack_require__(
|
|
6443
|
-
nativeKeysIn = __webpack_require__(
|
|
5919
|
+
isPrototype = __webpack_require__(51),
|
|
5920
|
+
nativeKeysIn = __webpack_require__(123);
|
|
6444
5921
|
/** Used for built-in method references. */
|
|
6445
5922
|
|
|
6446
5923
|
|
|
@@ -6476,7 +5953,7 @@ function baseKeysIn(object) {
|
|
|
6476
5953
|
module.exports = baseKeysIn;
|
|
6477
5954
|
|
|
6478
5955
|
/***/ }),
|
|
6479
|
-
/*
|
|
5956
|
+
/* 123 */
|
|
6480
5957
|
/***/ (function(module, exports) {
|
|
6481
5958
|
|
|
6482
5959
|
/**
|
|
@@ -6503,11 +5980,11 @@ function nativeKeysIn(object) {
|
|
|
6503
5980
|
module.exports = nativeKeysIn;
|
|
6504
5981
|
|
|
6505
5982
|
/***/ }),
|
|
6506
|
-
/*
|
|
5983
|
+
/* 124 */
|
|
6507
5984
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6508
5985
|
|
|
6509
|
-
var baseRest = __webpack_require__(
|
|
6510
|
-
isIterateeCall = __webpack_require__(
|
|
5986
|
+
var baseRest = __webpack_require__(125),
|
|
5987
|
+
isIterateeCall = __webpack_require__(130);
|
|
6511
5988
|
/**
|
|
6512
5989
|
* Creates a function like `_.assign`.
|
|
6513
5990
|
*
|
|
@@ -6547,12 +6024,12 @@ function createAssigner(assigner) {
|
|
|
6547
6024
|
module.exports = createAssigner;
|
|
6548
6025
|
|
|
6549
6026
|
/***/ }),
|
|
6550
|
-
/*
|
|
6027
|
+
/* 125 */
|
|
6551
6028
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6552
6029
|
|
|
6553
|
-
var identity = __webpack_require__(
|
|
6554
|
-
overRest = __webpack_require__(
|
|
6555
|
-
setToString = __webpack_require__(
|
|
6030
|
+
var identity = __webpack_require__(57),
|
|
6031
|
+
overRest = __webpack_require__(58),
|
|
6032
|
+
setToString = __webpack_require__(59);
|
|
6556
6033
|
/**
|
|
6557
6034
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
6558
6035
|
*
|
|
@@ -6570,7 +6047,7 @@ function baseRest(func, start) {
|
|
|
6570
6047
|
module.exports = baseRest;
|
|
6571
6048
|
|
|
6572
6049
|
/***/ }),
|
|
6573
|
-
/*
|
|
6050
|
+
/* 126 */
|
|
6574
6051
|
/***/ (function(module, exports) {
|
|
6575
6052
|
|
|
6576
6053
|
/**
|
|
@@ -6604,12 +6081,12 @@ function apply(func, thisArg, args) {
|
|
|
6604
6081
|
module.exports = apply;
|
|
6605
6082
|
|
|
6606
6083
|
/***/ }),
|
|
6607
|
-
/*
|
|
6084
|
+
/* 127 */
|
|
6608
6085
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6609
6086
|
|
|
6610
|
-
var constant = __webpack_require__(
|
|
6611
|
-
defineProperty = __webpack_require__(
|
|
6612
|
-
identity = __webpack_require__(
|
|
6087
|
+
var constant = __webpack_require__(128),
|
|
6088
|
+
defineProperty = __webpack_require__(49),
|
|
6089
|
+
identity = __webpack_require__(57);
|
|
6613
6090
|
/**
|
|
6614
6091
|
* The base implementation of `setToString` without support for hot loop shorting.
|
|
6615
6092
|
*
|
|
@@ -6631,7 +6108,7 @@ var baseSetToString = !defineProperty ? identity : function (func, string) {
|
|
|
6631
6108
|
module.exports = baseSetToString;
|
|
6632
6109
|
|
|
6633
6110
|
/***/ }),
|
|
6634
|
-
/*
|
|
6111
|
+
/* 128 */
|
|
6635
6112
|
/***/ (function(module, exports) {
|
|
6636
6113
|
|
|
6637
6114
|
/**
|
|
@@ -6662,7 +6139,7 @@ function constant(value) {
|
|
|
6662
6139
|
module.exports = constant;
|
|
6663
6140
|
|
|
6664
6141
|
/***/ }),
|
|
6665
|
-
/*
|
|
6142
|
+
/* 129 */
|
|
6666
6143
|
/***/ (function(module, exports) {
|
|
6667
6144
|
|
|
6668
6145
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
@@ -6704,11 +6181,11 @@ function shortOut(func) {
|
|
|
6704
6181
|
module.exports = shortOut;
|
|
6705
6182
|
|
|
6706
6183
|
/***/ }),
|
|
6707
|
-
/*
|
|
6184
|
+
/* 130 */
|
|
6708
6185
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6709
6186
|
|
|
6710
6187
|
var eq = __webpack_require__(26),
|
|
6711
|
-
isArrayLike = __webpack_require__(
|
|
6188
|
+
isArrayLike = __webpack_require__(39),
|
|
6712
6189
|
isIndex = __webpack_require__(31),
|
|
6713
6190
|
isObject = __webpack_require__(14);
|
|
6714
6191
|
/**
|
|
@@ -6730,1487 +6207,140 @@ function isIterateeCall(value, index, object) {
|
|
|
6730
6207
|
|
|
6731
6208
|
var type = typeof index;
|
|
6732
6209
|
|
|
6733
|
-
if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
|
|
6734
|
-
return eq(object[index], value);
|
|
6735
|
-
}
|
|
6736
|
-
|
|
6737
|
-
return false;
|
|
6738
|
-
}
|
|
6739
|
-
|
|
6740
|
-
module.exports = isIterateeCall;
|
|
6741
|
-
|
|
6742
|
-
/***/ }),
|
|
6743
|
-
/* 154 */
|
|
6744
|
-
/***/ (function(module, exports) {
|
|
6745
|
-
|
|
6746
|
-
/*
|
|
6747
|
-
* typedefs.js
|
|
6748
|
-
* Normalizes browser-specific prefixes and provide some basic polyfills
|
|
6749
|
-
*/
|
|
6750
|
-
if (typeof window !== 'undefined') {
|
|
6751
|
-
if (!window.requestAnimationFrame) {
|
|
6752
|
-
window.requestAnimationFrame = function () {
|
|
6753
|
-
return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (
|
|
6754
|
-
/* function FrameRequestCallback */
|
|
6755
|
-
callback) {
|
|
6756
|
-
window.setTimeout(callback, 1000 / 60);
|
|
6757
|
-
};
|
|
6758
|
-
}();
|
|
6759
|
-
}
|
|
6760
|
-
}
|
|
6761
|
-
|
|
6762
|
-
if (typeof Math.imul !== 'function') {
|
|
6763
|
-
/* eslint-disable no-bitwise */
|
|
6764
|
-
Math.imul = function (a, b) {
|
|
6765
|
-
var ah = a >>> 16 & 0xffff;
|
|
6766
|
-
var al = a & 0xffff;
|
|
6767
|
-
var bh = b >>> 16 & 0xffff;
|
|
6768
|
-
var bl = b & 0xffff; // the shift by 0 fixes the sign on the high part
|
|
6769
|
-
// the final |0 converts the unsigned value into a signed value
|
|
6770
|
-
|
|
6771
|
-
return al * bl + (ah * bl + al * bh << 16 >>> 0) | 0;
|
|
6772
|
-
};
|
|
6773
|
-
/* eslint-enable no-bitwise */
|
|
6774
|
-
|
|
6775
|
-
}
|
|
6776
|
-
|
|
6777
|
-
if (typeof Object.assign !== 'function') {
|
|
6778
|
-
Object.assign = function (target) {
|
|
6779
|
-
// .length of function is 2
|
|
6780
|
-
'use strict';
|
|
6781
|
-
|
|
6782
|
-
if (target === null) {
|
|
6783
|
-
// TypeError if undefined or null
|
|
6784
|
-
throw new TypeError('Cannot convert undefined or null to object');
|
|
6785
|
-
}
|
|
6786
|
-
|
|
6787
|
-
var to = Object(target);
|
|
6788
|
-
|
|
6789
|
-
for (var index = 1; index < arguments.length; index++) {
|
|
6790
|
-
// eslint-disable-next-line prefer-rest-params
|
|
6791
|
-
var nextSource = arguments[index];
|
|
6792
|
-
|
|
6793
|
-
if (nextSource !== null) {
|
|
6794
|
-
// Skip over if undefined or null
|
|
6795
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
6796
|
-
for (var nextKey in nextSource) {
|
|
6797
|
-
// Avoid bugs when hasOwnProperty is shadowed
|
|
6798
|
-
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
6799
|
-
to[nextKey] = nextSource[nextKey];
|
|
6800
|
-
}
|
|
6801
|
-
}
|
|
6802
|
-
}
|
|
6803
|
-
}
|
|
6804
|
-
|
|
6805
|
-
return to;
|
|
6806
|
-
};
|
|
6807
|
-
}
|
|
6808
|
-
|
|
6809
|
-
/***/ }),
|
|
6810
|
-
/* 155 */
|
|
6811
|
-
/***/ (function(module, exports) {
|
|
6812
|
-
|
|
6813
|
-
function _arrayWithHoles(arr) {
|
|
6814
|
-
if (Array.isArray(arr)) return arr;
|
|
6815
|
-
}
|
|
6816
|
-
|
|
6817
|
-
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6818
|
-
|
|
6819
|
-
/***/ }),
|
|
6820
|
-
/* 156 */
|
|
6821
|
-
/***/ (function(module, exports) {
|
|
6822
|
-
|
|
6823
|
-
function _iterableToArrayLimit(arr, i) {
|
|
6824
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6825
|
-
|
|
6826
|
-
if (_i == null) return;
|
|
6827
|
-
var _arr = [];
|
|
6828
|
-
var _n = true;
|
|
6829
|
-
var _d = false;
|
|
6830
|
-
|
|
6831
|
-
var _s, _e;
|
|
6832
|
-
|
|
6833
|
-
try {
|
|
6834
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
6835
|
-
_arr.push(_s.value);
|
|
6836
|
-
|
|
6837
|
-
if (i && _arr.length === i) break;
|
|
6838
|
-
}
|
|
6839
|
-
} catch (err) {
|
|
6840
|
-
_d = true;
|
|
6841
|
-
_e = err;
|
|
6842
|
-
} finally {
|
|
6843
|
-
try {
|
|
6844
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
6845
|
-
} finally {
|
|
6846
|
-
if (_d) throw _e;
|
|
6847
|
-
}
|
|
6848
|
-
}
|
|
6849
|
-
|
|
6850
|
-
return _arr;
|
|
6851
|
-
}
|
|
6852
|
-
|
|
6853
|
-
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6854
|
-
|
|
6855
|
-
/***/ }),
|
|
6856
|
-
/* 157 */
|
|
6857
|
-
/***/ (function(module, exports) {
|
|
6858
|
-
|
|
6859
|
-
function _nonIterableRest() {
|
|
6860
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6861
|
-
}
|
|
6862
|
-
|
|
6863
|
-
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6864
|
-
|
|
6865
|
-
/***/ }),
|
|
6866
|
-
/* 158 */
|
|
6867
|
-
/***/ (function(module, exports) {
|
|
6868
|
-
|
|
6869
|
-
module.exports = clone;
|
|
6870
|
-
/**
|
|
6871
|
-
* Creates a new vec2 initialized with values from an existing vector
|
|
6872
|
-
*
|
|
6873
|
-
* @param {vec2} a vector to clone
|
|
6874
|
-
* @returns {vec2} a new 2D vector
|
|
6875
|
-
*/
|
|
6876
|
-
|
|
6877
|
-
function clone(a) {
|
|
6878
|
-
var out = new Float32Array(2);
|
|
6879
|
-
out[0] = a[0];
|
|
6880
|
-
out[1] = a[1];
|
|
6881
|
-
return out;
|
|
6882
|
-
}
|
|
6883
|
-
|
|
6884
|
-
/***/ }),
|
|
6885
|
-
/* 159 */
|
|
6886
|
-
/***/ (function(module, exports) {
|
|
6887
|
-
|
|
6888
|
-
module.exports = fromValues;
|
|
6889
|
-
/**
|
|
6890
|
-
* Creates a new vec2 initialized with the given values
|
|
6891
|
-
*
|
|
6892
|
-
* @param {Number} x X component
|
|
6893
|
-
* @param {Number} y Y component
|
|
6894
|
-
* @returns {vec2} a new 2D vector
|
|
6895
|
-
*/
|
|
6896
|
-
|
|
6897
|
-
function fromValues(x, y) {
|
|
6898
|
-
var out = new Float32Array(2);
|
|
6899
|
-
out[0] = x;
|
|
6900
|
-
out[1] = y;
|
|
6901
|
-
return out;
|
|
6902
|
-
}
|
|
6903
|
-
|
|
6904
|
-
/***/ }),
|
|
6905
|
-
/* 160 */
|
|
6906
|
-
/***/ (function(module, exports) {
|
|
6907
|
-
|
|
6908
|
-
module.exports = copy;
|
|
6909
|
-
/**
|
|
6910
|
-
* Copy the values from one vec2 to another
|
|
6911
|
-
*
|
|
6912
|
-
* @param {vec2} out the receiving vector
|
|
6913
|
-
* @param {vec2} a the source vector
|
|
6914
|
-
* @returns {vec2} out
|
|
6915
|
-
*/
|
|
6916
|
-
|
|
6917
|
-
function copy(out, a) {
|
|
6918
|
-
out[0] = a[0];
|
|
6919
|
-
out[1] = a[1];
|
|
6920
|
-
return out;
|
|
6921
|
-
}
|
|
6922
|
-
|
|
6923
|
-
/***/ }),
|
|
6924
|
-
/* 161 */
|
|
6925
|
-
/***/ (function(module, exports) {
|
|
6926
|
-
|
|
6927
|
-
module.exports = set;
|
|
6928
|
-
/**
|
|
6929
|
-
* Set the components of a vec2 to the given values
|
|
6930
|
-
*
|
|
6931
|
-
* @param {vec2} out the receiving vector
|
|
6932
|
-
* @param {Number} x X component
|
|
6933
|
-
* @param {Number} y Y component
|
|
6934
|
-
* @returns {vec2} out
|
|
6935
|
-
*/
|
|
6936
|
-
|
|
6937
|
-
function set(out, x, y) {
|
|
6938
|
-
out[0] = x;
|
|
6939
|
-
out[1] = y;
|
|
6940
|
-
return out;
|
|
6941
|
-
}
|
|
6942
|
-
|
|
6943
|
-
/***/ }),
|
|
6944
|
-
/* 162 */
|
|
6945
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6946
|
-
|
|
6947
|
-
module.exports = equals;
|
|
6948
|
-
|
|
6949
|
-
var EPSILON = __webpack_require__(63);
|
|
6950
|
-
/**
|
|
6951
|
-
* Returns whether or not the vectors have approximately the same elements in the same position.
|
|
6952
|
-
*
|
|
6953
|
-
* @param {vec2} a The first vector.
|
|
6954
|
-
* @param {vec2} b The second vector.
|
|
6955
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
6956
|
-
*/
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
function equals(a, b) {
|
|
6960
|
-
var a0 = a[0];
|
|
6961
|
-
var a1 = a[1];
|
|
6962
|
-
var b0 = b[0];
|
|
6963
|
-
var b1 = b[1];
|
|
6964
|
-
return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1));
|
|
6965
|
-
}
|
|
6966
|
-
|
|
6967
|
-
/***/ }),
|
|
6968
|
-
/* 163 */
|
|
6969
|
-
/***/ (function(module, exports) {
|
|
6970
|
-
|
|
6971
|
-
module.exports = exactEquals;
|
|
6972
|
-
/**
|
|
6973
|
-
* Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
|
|
6974
|
-
*
|
|
6975
|
-
* @param {vec2} a The first vector.
|
|
6976
|
-
* @param {vec2} b The second vector.
|
|
6977
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
6978
|
-
*/
|
|
6979
|
-
|
|
6980
|
-
function exactEquals(a, b) {
|
|
6981
|
-
return a[0] === b[0] && a[1] === b[1];
|
|
6982
|
-
}
|
|
6983
|
-
|
|
6984
|
-
/***/ }),
|
|
6985
|
-
/* 164 */
|
|
6986
|
-
/***/ (function(module, exports) {
|
|
6987
|
-
|
|
6988
|
-
module.exports = add;
|
|
6989
|
-
/**
|
|
6990
|
-
* Adds two vec2's
|
|
6991
|
-
*
|
|
6992
|
-
* @param {vec2} out the receiving vector
|
|
6993
|
-
* @param {vec2} a the first operand
|
|
6994
|
-
* @param {vec2} b the second operand
|
|
6995
|
-
* @returns {vec2} out
|
|
6996
|
-
*/
|
|
6997
|
-
|
|
6998
|
-
function add(out, a, b) {
|
|
6999
|
-
out[0] = a[0] + b[0];
|
|
7000
|
-
out[1] = a[1] + b[1];
|
|
7001
|
-
return out;
|
|
7002
|
-
}
|
|
7003
|
-
|
|
7004
|
-
/***/ }),
|
|
7005
|
-
/* 165 */
|
|
7006
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7007
|
-
|
|
7008
|
-
module.exports = __webpack_require__(65);
|
|
7009
|
-
|
|
7010
|
-
/***/ }),
|
|
7011
|
-
/* 166 */
|
|
7012
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7013
|
-
|
|
7014
|
-
module.exports = __webpack_require__(66);
|
|
7015
|
-
|
|
7016
|
-
/***/ }),
|
|
7017
|
-
/* 167 */
|
|
7018
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7019
|
-
|
|
7020
|
-
module.exports = __webpack_require__(67);
|
|
7021
|
-
|
|
7022
|
-
/***/ }),
|
|
7023
|
-
/* 168 */
|
|
7024
|
-
/***/ (function(module, exports) {
|
|
7025
|
-
|
|
7026
|
-
module.exports = inverse;
|
|
7027
|
-
/**
|
|
7028
|
-
* Returns the inverse of the components of a vec2
|
|
7029
|
-
*
|
|
7030
|
-
* @param {vec2} out the receiving vector
|
|
7031
|
-
* @param {vec2} a vector to invert
|
|
7032
|
-
* @returns {vec2} out
|
|
7033
|
-
*/
|
|
7034
|
-
|
|
7035
|
-
function inverse(out, a) {
|
|
7036
|
-
out[0] = 1.0 / a[0];
|
|
7037
|
-
out[1] = 1.0 / a[1];
|
|
7038
|
-
return out;
|
|
7039
|
-
}
|
|
7040
|
-
|
|
7041
|
-
/***/ }),
|
|
7042
|
-
/* 169 */
|
|
7043
|
-
/***/ (function(module, exports) {
|
|
7044
|
-
|
|
7045
|
-
module.exports = min;
|
|
7046
|
-
/**
|
|
7047
|
-
* Returns the minimum of two vec2's
|
|
7048
|
-
*
|
|
7049
|
-
* @param {vec2} out the receiving vector
|
|
7050
|
-
* @param {vec2} a the first operand
|
|
7051
|
-
* @param {vec2} b the second operand
|
|
7052
|
-
* @returns {vec2} out
|
|
7053
|
-
*/
|
|
7054
|
-
|
|
7055
|
-
function min(out, a, b) {
|
|
7056
|
-
out[0] = Math.min(a[0], b[0]);
|
|
7057
|
-
out[1] = Math.min(a[1], b[1]);
|
|
7058
|
-
return out;
|
|
7059
|
-
}
|
|
7060
|
-
|
|
7061
|
-
/***/ }),
|
|
7062
|
-
/* 170 */
|
|
7063
|
-
/***/ (function(module, exports) {
|
|
7064
|
-
|
|
7065
|
-
module.exports = max;
|
|
7066
|
-
/**
|
|
7067
|
-
* Returns the maximum of two vec2's
|
|
7068
|
-
*
|
|
7069
|
-
* @param {vec2} out the receiving vector
|
|
7070
|
-
* @param {vec2} a the first operand
|
|
7071
|
-
* @param {vec2} b the second operand
|
|
7072
|
-
* @returns {vec2} out
|
|
7073
|
-
*/
|
|
7074
|
-
|
|
7075
|
-
function max(out, a, b) {
|
|
7076
|
-
out[0] = Math.max(a[0], b[0]);
|
|
7077
|
-
out[1] = Math.max(a[1], b[1]);
|
|
7078
|
-
return out;
|
|
7079
|
-
}
|
|
7080
|
-
|
|
7081
|
-
/***/ }),
|
|
7082
|
-
/* 171 */
|
|
7083
|
-
/***/ (function(module, exports) {
|
|
7084
|
-
|
|
7085
|
-
module.exports = rotate;
|
|
7086
|
-
/**
|
|
7087
|
-
* Rotates a vec2 by an angle
|
|
7088
|
-
*
|
|
7089
|
-
* @param {vec2} out the receiving vector
|
|
7090
|
-
* @param {vec2} a the vector to rotate
|
|
7091
|
-
* @param {Number} angle the angle of rotation (in radians)
|
|
7092
|
-
* @returns {vec2} out
|
|
7093
|
-
*/
|
|
7094
|
-
|
|
7095
|
-
function rotate(out, a, angle) {
|
|
7096
|
-
var c = Math.cos(angle),
|
|
7097
|
-
s = Math.sin(angle);
|
|
7098
|
-
var x = a[0],
|
|
7099
|
-
y = a[1];
|
|
7100
|
-
out[0] = x * c - y * s;
|
|
7101
|
-
out[1] = x * s + y * c;
|
|
7102
|
-
return out;
|
|
7103
|
-
}
|
|
7104
|
-
|
|
7105
|
-
/***/ }),
|
|
7106
|
-
/* 172 */
|
|
7107
|
-
/***/ (function(module, exports) {
|
|
7108
|
-
|
|
7109
|
-
module.exports = floor;
|
|
7110
|
-
/**
|
|
7111
|
-
* Math.floor the components of a vec2
|
|
7112
|
-
*
|
|
7113
|
-
* @param {vec2} out the receiving vector
|
|
7114
|
-
* @param {vec2} a vector to floor
|
|
7115
|
-
* @returns {vec2} out
|
|
7116
|
-
*/
|
|
7117
|
-
|
|
7118
|
-
function floor(out, a) {
|
|
7119
|
-
out[0] = Math.floor(a[0]);
|
|
7120
|
-
out[1] = Math.floor(a[1]);
|
|
7121
|
-
return out;
|
|
7122
|
-
}
|
|
7123
|
-
|
|
7124
|
-
/***/ }),
|
|
7125
|
-
/* 173 */
|
|
7126
|
-
/***/ (function(module, exports) {
|
|
7127
|
-
|
|
7128
|
-
module.exports = ceil;
|
|
7129
|
-
/**
|
|
7130
|
-
* Math.ceil the components of a vec2
|
|
7131
|
-
*
|
|
7132
|
-
* @param {vec2} out the receiving vector
|
|
7133
|
-
* @param {vec2} a vector to ceil
|
|
7134
|
-
* @returns {vec2} out
|
|
7135
|
-
*/
|
|
7136
|
-
|
|
7137
|
-
function ceil(out, a) {
|
|
7138
|
-
out[0] = Math.ceil(a[0]);
|
|
7139
|
-
out[1] = Math.ceil(a[1]);
|
|
7140
|
-
return out;
|
|
7141
|
-
}
|
|
7142
|
-
|
|
7143
|
-
/***/ }),
|
|
7144
|
-
/* 174 */
|
|
7145
|
-
/***/ (function(module, exports) {
|
|
7146
|
-
|
|
7147
|
-
module.exports = round;
|
|
7148
|
-
/**
|
|
7149
|
-
* Math.round the components of a vec2
|
|
7150
|
-
*
|
|
7151
|
-
* @param {vec2} out the receiving vector
|
|
7152
|
-
* @param {vec2} a vector to round
|
|
7153
|
-
* @returns {vec2} out
|
|
7154
|
-
*/
|
|
7155
|
-
|
|
7156
|
-
function round(out, a) {
|
|
7157
|
-
out[0] = Math.round(a[0]);
|
|
7158
|
-
out[1] = Math.round(a[1]);
|
|
7159
|
-
return out;
|
|
7160
|
-
}
|
|
7161
|
-
|
|
7162
|
-
/***/ }),
|
|
7163
|
-
/* 175 */
|
|
7164
|
-
/***/ (function(module, exports) {
|
|
7165
|
-
|
|
7166
|
-
module.exports = scale;
|
|
7167
|
-
/**
|
|
7168
|
-
* Scales a vec2 by a scalar number
|
|
7169
|
-
*
|
|
7170
|
-
* @param {vec2} out the receiving vector
|
|
7171
|
-
* @param {vec2} a the vector to scale
|
|
7172
|
-
* @param {Number} b amount to scale the vector by
|
|
7173
|
-
* @returns {vec2} out
|
|
7174
|
-
*/
|
|
7175
|
-
|
|
7176
|
-
function scale(out, a, b) {
|
|
7177
|
-
out[0] = a[0] * b;
|
|
7178
|
-
out[1] = a[1] * b;
|
|
7179
|
-
return out;
|
|
7180
|
-
}
|
|
7181
|
-
|
|
7182
|
-
/***/ }),
|
|
7183
|
-
/* 176 */
|
|
7184
|
-
/***/ (function(module, exports) {
|
|
7185
|
-
|
|
7186
|
-
module.exports = scaleAndAdd;
|
|
7187
|
-
/**
|
|
7188
|
-
* Adds two vec2's after scaling the second operand by a scalar value
|
|
7189
|
-
*
|
|
7190
|
-
* @param {vec2} out the receiving vector
|
|
7191
|
-
* @param {vec2} a the first operand
|
|
7192
|
-
* @param {vec2} b the second operand
|
|
7193
|
-
* @param {Number} scale the amount to scale b by before adding
|
|
7194
|
-
* @returns {vec2} out
|
|
7195
|
-
*/
|
|
7196
|
-
|
|
7197
|
-
function scaleAndAdd(out, a, b, scale) {
|
|
7198
|
-
out[0] = a[0] + b[0] * scale;
|
|
7199
|
-
out[1] = a[1] + b[1] * scale;
|
|
7200
|
-
return out;
|
|
7201
|
-
}
|
|
7202
|
-
|
|
7203
|
-
/***/ }),
|
|
7204
|
-
/* 177 */
|
|
7205
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7206
|
-
|
|
7207
|
-
module.exports = __webpack_require__(68);
|
|
7208
|
-
|
|
7209
|
-
/***/ }),
|
|
7210
|
-
/* 178 */
|
|
7211
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7212
|
-
|
|
7213
|
-
module.exports = __webpack_require__(69);
|
|
7214
|
-
|
|
7215
|
-
/***/ }),
|
|
7216
|
-
/* 179 */
|
|
7217
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7218
|
-
|
|
7219
|
-
module.exports = __webpack_require__(70);
|
|
7220
|
-
|
|
7221
|
-
/***/ }),
|
|
7222
|
-
/* 180 */
|
|
7223
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7224
|
-
|
|
7225
|
-
module.exports = __webpack_require__(71);
|
|
7226
|
-
|
|
7227
|
-
/***/ }),
|
|
7228
|
-
/* 181 */
|
|
7229
|
-
/***/ (function(module, exports) {
|
|
7230
|
-
|
|
7231
|
-
module.exports = negate;
|
|
7232
|
-
/**
|
|
7233
|
-
* Negates the components of a vec2
|
|
7234
|
-
*
|
|
7235
|
-
* @param {vec2} out the receiving vector
|
|
7236
|
-
* @param {vec2} a vector to negate
|
|
7237
|
-
* @returns {vec2} out
|
|
7238
|
-
*/
|
|
7239
|
-
|
|
7240
|
-
function negate(out, a) {
|
|
7241
|
-
out[0] = -a[0];
|
|
7242
|
-
out[1] = -a[1];
|
|
7243
|
-
return out;
|
|
7244
|
-
}
|
|
7245
|
-
|
|
7246
|
-
/***/ }),
|
|
7247
|
-
/* 182 */
|
|
7248
|
-
/***/ (function(module, exports) {
|
|
7249
|
-
|
|
7250
|
-
module.exports = normalize;
|
|
7251
|
-
/**
|
|
7252
|
-
* Normalize a vec2
|
|
7253
|
-
*
|
|
7254
|
-
* @param {vec2} out the receiving vector
|
|
7255
|
-
* @param {vec2} a vector to normalize
|
|
7256
|
-
* @returns {vec2} out
|
|
7257
|
-
*/
|
|
7258
|
-
|
|
7259
|
-
function normalize(out, a) {
|
|
7260
|
-
var x = a[0],
|
|
7261
|
-
y = a[1];
|
|
7262
|
-
var len = x * x + y * y;
|
|
7263
|
-
|
|
7264
|
-
if (len > 0) {
|
|
7265
|
-
//TODO: evaluate use of glm_invsqrt here?
|
|
7266
|
-
len = 1 / Math.sqrt(len);
|
|
7267
|
-
out[0] = a[0] * len;
|
|
7268
|
-
out[1] = a[1] * len;
|
|
7269
|
-
}
|
|
7270
|
-
|
|
7271
|
-
return out;
|
|
7272
|
-
}
|
|
7273
|
-
|
|
7274
|
-
/***/ }),
|
|
7275
|
-
/* 183 */
|
|
7276
|
-
/***/ (function(module, exports) {
|
|
7277
|
-
|
|
7278
|
-
module.exports = dot;
|
|
7279
|
-
/**
|
|
7280
|
-
* Calculates the dot product of two vec2's
|
|
7281
|
-
*
|
|
7282
|
-
* @param {vec2} a the first operand
|
|
7283
|
-
* @param {vec2} b the second operand
|
|
7284
|
-
* @returns {Number} dot product of a and b
|
|
7285
|
-
*/
|
|
7286
|
-
|
|
7287
|
-
function dot(a, b) {
|
|
7288
|
-
return a[0] * b[0] + a[1] * b[1];
|
|
7289
|
-
}
|
|
7290
|
-
|
|
7291
|
-
/***/ }),
|
|
7292
|
-
/* 184 */
|
|
7293
|
-
/***/ (function(module, exports) {
|
|
7294
|
-
|
|
7295
|
-
module.exports = cross;
|
|
7296
|
-
/**
|
|
7297
|
-
* Computes the cross product of two vec2's
|
|
7298
|
-
* Note that the cross product must by definition produce a 3D vector
|
|
7299
|
-
*
|
|
7300
|
-
* @param {vec3} out the receiving vector
|
|
7301
|
-
* @param {vec2} a the first operand
|
|
7302
|
-
* @param {vec2} b the second operand
|
|
7303
|
-
* @returns {vec3} out
|
|
7304
|
-
*/
|
|
7305
|
-
|
|
7306
|
-
function cross(out, a, b) {
|
|
7307
|
-
var z = a[0] * b[1] - a[1] * b[0];
|
|
7308
|
-
out[0] = out[1] = 0;
|
|
7309
|
-
out[2] = z;
|
|
7310
|
-
return out;
|
|
7311
|
-
}
|
|
7312
|
-
|
|
7313
|
-
/***/ }),
|
|
7314
|
-
/* 185 */
|
|
7315
|
-
/***/ (function(module, exports) {
|
|
7316
|
-
|
|
7317
|
-
module.exports = lerp;
|
|
7318
|
-
/**
|
|
7319
|
-
* Performs a linear interpolation between two vec2's
|
|
7320
|
-
*
|
|
7321
|
-
* @param {vec2} out the receiving vector
|
|
7322
|
-
* @param {vec2} a the first operand
|
|
7323
|
-
* @param {vec2} b the second operand
|
|
7324
|
-
* @param {Number} t interpolation amount between the two inputs
|
|
7325
|
-
* @returns {vec2} out
|
|
7326
|
-
*/
|
|
7327
|
-
|
|
7328
|
-
function lerp(out, a, b, t) {
|
|
7329
|
-
var ax = a[0],
|
|
7330
|
-
ay = a[1];
|
|
7331
|
-
out[0] = ax + t * (b[0] - ax);
|
|
7332
|
-
out[1] = ay + t * (b[1] - ay);
|
|
7333
|
-
return out;
|
|
7334
|
-
}
|
|
7335
|
-
|
|
7336
|
-
/***/ }),
|
|
7337
|
-
/* 186 */
|
|
7338
|
-
/***/ (function(module, exports) {
|
|
7339
|
-
|
|
7340
|
-
module.exports = random;
|
|
7341
|
-
/**
|
|
7342
|
-
* Generates a random vector with the given scale
|
|
7343
|
-
*
|
|
7344
|
-
* @param {vec2} out the receiving vector
|
|
7345
|
-
* @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
|
|
7346
|
-
* @returns {vec2} out
|
|
7347
|
-
*/
|
|
7348
|
-
|
|
7349
|
-
function random(out, scale) {
|
|
7350
|
-
scale = scale || 1.0;
|
|
7351
|
-
var r = Math.random() * 2.0 * Math.PI;
|
|
7352
|
-
out[0] = Math.cos(r) * scale;
|
|
7353
|
-
out[1] = Math.sin(r) * scale;
|
|
7354
|
-
return out;
|
|
7355
|
-
}
|
|
7356
|
-
|
|
7357
|
-
/***/ }),
|
|
7358
|
-
/* 187 */
|
|
7359
|
-
/***/ (function(module, exports) {
|
|
7360
|
-
|
|
7361
|
-
module.exports = transformMat2;
|
|
7362
|
-
/**
|
|
7363
|
-
* Transforms the vec2 with a mat2
|
|
7364
|
-
*
|
|
7365
|
-
* @param {vec2} out the receiving vector
|
|
7366
|
-
* @param {vec2} a the vector to transform
|
|
7367
|
-
* @param {mat2} m matrix to transform with
|
|
7368
|
-
* @returns {vec2} out
|
|
7369
|
-
*/
|
|
7370
|
-
|
|
7371
|
-
function transformMat2(out, a, m) {
|
|
7372
|
-
var x = a[0],
|
|
7373
|
-
y = a[1];
|
|
7374
|
-
out[0] = m[0] * x + m[2] * y;
|
|
7375
|
-
out[1] = m[1] * x + m[3] * y;
|
|
7376
|
-
return out;
|
|
7377
|
-
}
|
|
7378
|
-
|
|
7379
|
-
/***/ }),
|
|
7380
|
-
/* 188 */
|
|
7381
|
-
/***/ (function(module, exports) {
|
|
7382
|
-
|
|
7383
|
-
module.exports = transformMat2d;
|
|
7384
|
-
/**
|
|
7385
|
-
* Transforms the vec2 with a mat2d
|
|
7386
|
-
*
|
|
7387
|
-
* @param {vec2} out the receiving vector
|
|
7388
|
-
* @param {vec2} a the vector to transform
|
|
7389
|
-
* @param {mat2d} m matrix to transform with
|
|
7390
|
-
* @returns {vec2} out
|
|
7391
|
-
*/
|
|
7392
|
-
|
|
7393
|
-
function transformMat2d(out, a, m) {
|
|
7394
|
-
var x = a[0],
|
|
7395
|
-
y = a[1];
|
|
7396
|
-
out[0] = m[0] * x + m[2] * y + m[4];
|
|
7397
|
-
out[1] = m[1] * x + m[3] * y + m[5];
|
|
7398
|
-
return out;
|
|
7399
|
-
}
|
|
7400
|
-
|
|
7401
|
-
/***/ }),
|
|
7402
|
-
/* 189 */
|
|
7403
|
-
/***/ (function(module, exports) {
|
|
7404
|
-
|
|
7405
|
-
module.exports = transformMat3;
|
|
7406
|
-
/**
|
|
7407
|
-
* Transforms the vec2 with a mat3
|
|
7408
|
-
* 3rd vector component is implicitly '1'
|
|
7409
|
-
*
|
|
7410
|
-
* @param {vec2} out the receiving vector
|
|
7411
|
-
* @param {vec2} a the vector to transform
|
|
7412
|
-
* @param {mat3} m matrix to transform with
|
|
7413
|
-
* @returns {vec2} out
|
|
7414
|
-
*/
|
|
7415
|
-
|
|
7416
|
-
function transformMat3(out, a, m) {
|
|
7417
|
-
var x = a[0],
|
|
7418
|
-
y = a[1];
|
|
7419
|
-
out[0] = m[0] * x + m[3] * y + m[6];
|
|
7420
|
-
out[1] = m[1] * x + m[4] * y + m[7];
|
|
7421
|
-
return out;
|
|
7422
|
-
}
|
|
7423
|
-
|
|
7424
|
-
/***/ }),
|
|
7425
|
-
/* 190 */
|
|
7426
|
-
/***/ (function(module, exports) {
|
|
7427
|
-
|
|
7428
|
-
module.exports = transformMat4;
|
|
7429
|
-
/**
|
|
7430
|
-
* Transforms the vec2 with a mat4
|
|
7431
|
-
* 3rd vector component is implicitly '0'
|
|
7432
|
-
* 4th vector component is implicitly '1'
|
|
7433
|
-
*
|
|
7434
|
-
* @param {vec2} out the receiving vector
|
|
7435
|
-
* @param {vec2} a the vector to transform
|
|
7436
|
-
* @param {mat4} m matrix to transform with
|
|
7437
|
-
* @returns {vec2} out
|
|
7438
|
-
*/
|
|
7439
|
-
|
|
7440
|
-
function transformMat4(out, a, m) {
|
|
7441
|
-
var x = a[0],
|
|
7442
|
-
y = a[1];
|
|
7443
|
-
out[0] = m[0] * x + m[4] * y + m[12];
|
|
7444
|
-
out[1] = m[1] * x + m[5] * y + m[13];
|
|
7445
|
-
return out;
|
|
7446
|
-
}
|
|
7447
|
-
|
|
7448
|
-
/***/ }),
|
|
7449
|
-
/* 191 */
|
|
7450
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7451
|
-
|
|
7452
|
-
module.exports = forEach;
|
|
7453
|
-
|
|
7454
|
-
var vec = __webpack_require__(64)();
|
|
7455
|
-
/**
|
|
7456
|
-
* Perform some operation over an array of vec2s.
|
|
7457
|
-
*
|
|
7458
|
-
* @param {Array} a the array of vectors to iterate over
|
|
7459
|
-
* @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed
|
|
7460
|
-
* @param {Number} offset Number of elements to skip at the beginning of the array
|
|
7461
|
-
* @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array
|
|
7462
|
-
* @param {Function} fn Function to call for each vector in the array
|
|
7463
|
-
* @param {Object} [arg] additional argument to pass to fn
|
|
7464
|
-
* @returns {Array} a
|
|
7465
|
-
* @function
|
|
7466
|
-
*/
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
function forEach(a, stride, offset, count, fn, arg) {
|
|
7470
|
-
var i, l;
|
|
7471
|
-
|
|
7472
|
-
if (!stride) {
|
|
7473
|
-
stride = 2;
|
|
7474
|
-
}
|
|
7475
|
-
|
|
7476
|
-
if (!offset) {
|
|
7477
|
-
offset = 0;
|
|
7478
|
-
}
|
|
7479
|
-
|
|
7480
|
-
if (count) {
|
|
7481
|
-
l = Math.min(count * stride + offset, a.length);
|
|
7482
|
-
} else {
|
|
7483
|
-
l = a.length;
|
|
7484
|
-
}
|
|
7485
|
-
|
|
7486
|
-
for (i = offset; i < l; i += stride) {
|
|
7487
|
-
vec[0] = a[i];
|
|
7488
|
-
vec[1] = a[i + 1];
|
|
7489
|
-
fn(vec, vec, arg);
|
|
7490
|
-
a[i] = vec[0];
|
|
7491
|
-
a[i + 1] = vec[1];
|
|
7492
|
-
}
|
|
7493
|
-
|
|
7494
|
-
return a;
|
|
7495
|
-
}
|
|
7496
|
-
|
|
7497
|
-
/***/ }),
|
|
7498
|
-
/* 192 */
|
|
7499
|
-
/***/ (function(module, exports) {
|
|
7500
|
-
|
|
7501
|
-
module.exports = limit;
|
|
7502
|
-
/**
|
|
7503
|
-
* Limit the magnitude of this vector to the value used for the `max`
|
|
7504
|
-
* parameter.
|
|
7505
|
-
*
|
|
7506
|
-
* @param {vec2} the vector to limit
|
|
7507
|
-
* @param {Number} max the maximum magnitude for the vector
|
|
7508
|
-
* @returns {vec2} out
|
|
7509
|
-
*/
|
|
7510
|
-
|
|
7511
|
-
function limit(out, a, max) {
|
|
7512
|
-
var mSq = a[0] * a[0] + a[1] * a[1];
|
|
7513
|
-
|
|
7514
|
-
if (mSq > max * max) {
|
|
7515
|
-
var n = Math.sqrt(mSq);
|
|
7516
|
-
out[0] = a[0] / n * max;
|
|
7517
|
-
out[1] = a[1] / n * max;
|
|
7518
|
-
} else {
|
|
7519
|
-
out[0] = a[0];
|
|
7520
|
-
out[1] = a[1];
|
|
7521
|
-
}
|
|
7522
|
-
|
|
7523
|
-
return out;
|
|
7524
|
-
}
|
|
7525
|
-
|
|
7526
|
-
/***/ }),
|
|
7527
|
-
/* 193 */
|
|
7528
|
-
/***/ (function(module, exports) {
|
|
7529
|
-
|
|
7530
|
-
module.exports = clone;
|
|
7531
|
-
/**
|
|
7532
|
-
* Creates a new vec3 initialized with values from an existing vector
|
|
7533
|
-
*
|
|
7534
|
-
* @param {vec3} a vector to clone
|
|
7535
|
-
* @returns {vec3} a new 3D vector
|
|
7536
|
-
*/
|
|
7537
|
-
|
|
7538
|
-
function clone(a) {
|
|
7539
|
-
var out = new Float32Array(3);
|
|
7540
|
-
out[0] = a[0];
|
|
7541
|
-
out[1] = a[1];
|
|
7542
|
-
out[2] = a[2];
|
|
7543
|
-
return out;
|
|
7544
|
-
}
|
|
7545
|
-
|
|
7546
|
-
/***/ }),
|
|
7547
|
-
/* 194 */
|
|
7548
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7549
|
-
|
|
7550
|
-
module.exports = angle;
|
|
7551
|
-
|
|
7552
|
-
var fromValues = __webpack_require__(74);
|
|
7553
|
-
|
|
7554
|
-
var normalize = __webpack_require__(75);
|
|
7555
|
-
|
|
7556
|
-
var dot = __webpack_require__(76);
|
|
7557
|
-
/**
|
|
7558
|
-
* Get the angle between two 3D vectors
|
|
7559
|
-
* @param {vec3} a The first operand
|
|
7560
|
-
* @param {vec3} b The second operand
|
|
7561
|
-
* @returns {Number} The angle in radians
|
|
7562
|
-
*/
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
function angle(a, b) {
|
|
7566
|
-
var tempA = fromValues(a[0], a[1], a[2]);
|
|
7567
|
-
var tempB = fromValues(b[0], b[1], b[2]);
|
|
7568
|
-
normalize(tempA, tempA);
|
|
7569
|
-
normalize(tempB, tempB);
|
|
7570
|
-
var cosine = dot(tempA, tempB);
|
|
7571
|
-
|
|
7572
|
-
if (cosine > 1.0) {
|
|
7573
|
-
return 0;
|
|
7574
|
-
} else {
|
|
7575
|
-
return Math.acos(cosine);
|
|
7576
|
-
}
|
|
7577
|
-
}
|
|
7578
|
-
|
|
7579
|
-
/***/ }),
|
|
7580
|
-
/* 195 */
|
|
7581
|
-
/***/ (function(module, exports) {
|
|
7582
|
-
|
|
7583
|
-
module.exports = copy;
|
|
7584
|
-
/**
|
|
7585
|
-
* Copy the values from one vec3 to another
|
|
7586
|
-
*
|
|
7587
|
-
* @param {vec3} out the receiving vector
|
|
7588
|
-
* @param {vec3} a the source vector
|
|
7589
|
-
* @returns {vec3} out
|
|
7590
|
-
*/
|
|
7591
|
-
|
|
7592
|
-
function copy(out, a) {
|
|
7593
|
-
out[0] = a[0];
|
|
7594
|
-
out[1] = a[1];
|
|
7595
|
-
out[2] = a[2];
|
|
7596
|
-
return out;
|
|
7597
|
-
}
|
|
7598
|
-
|
|
7599
|
-
/***/ }),
|
|
7600
|
-
/* 196 */
|
|
7601
|
-
/***/ (function(module, exports) {
|
|
7602
|
-
|
|
7603
|
-
module.exports = set;
|
|
7604
|
-
/**
|
|
7605
|
-
* Set the components of a vec3 to the given values
|
|
7606
|
-
*
|
|
7607
|
-
* @param {vec3} out the receiving vector
|
|
7608
|
-
* @param {Number} x X component
|
|
7609
|
-
* @param {Number} y Y component
|
|
7610
|
-
* @param {Number} z Z component
|
|
7611
|
-
* @returns {vec3} out
|
|
7612
|
-
*/
|
|
7613
|
-
|
|
7614
|
-
function set(out, x, y, z) {
|
|
7615
|
-
out[0] = x;
|
|
7616
|
-
out[1] = y;
|
|
7617
|
-
out[2] = z;
|
|
7618
|
-
return out;
|
|
7619
|
-
}
|
|
7620
|
-
|
|
7621
|
-
/***/ }),
|
|
7622
|
-
/* 197 */
|
|
7623
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7624
|
-
|
|
7625
|
-
module.exports = equals;
|
|
7626
|
-
|
|
7627
|
-
var EPSILON = __webpack_require__(72);
|
|
7628
|
-
/**
|
|
7629
|
-
* Returns whether or not the vectors have approximately the same elements in the same position.
|
|
7630
|
-
*
|
|
7631
|
-
* @param {vec3} a The first vector.
|
|
7632
|
-
* @param {vec3} b The second vector.
|
|
7633
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
7634
|
-
*/
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
function equals(a, b) {
|
|
7638
|
-
var a0 = a[0];
|
|
7639
|
-
var a1 = a[1];
|
|
7640
|
-
var a2 = a[2];
|
|
7641
|
-
var b0 = b[0];
|
|
7642
|
-
var b1 = b[1];
|
|
7643
|
-
var b2 = b[2];
|
|
7644
|
-
return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2));
|
|
7645
|
-
}
|
|
7646
|
-
|
|
7647
|
-
/***/ }),
|
|
7648
|
-
/* 198 */
|
|
7649
|
-
/***/ (function(module, exports) {
|
|
7650
|
-
|
|
7651
|
-
module.exports = exactEquals;
|
|
7652
|
-
/**
|
|
7653
|
-
* Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
|
|
7654
|
-
*
|
|
7655
|
-
* @param {vec3} a The first vector.
|
|
7656
|
-
* @param {vec3} b The second vector.
|
|
7657
|
-
* @returns {Boolean} True if the vectors are equal, false otherwise.
|
|
7658
|
-
*/
|
|
7659
|
-
|
|
7660
|
-
function exactEquals(a, b) {
|
|
7661
|
-
return a[0] === b[0] && a[1] === b[1] && a[2] === b[2];
|
|
7662
|
-
}
|
|
7663
|
-
|
|
7664
|
-
/***/ }),
|
|
7665
|
-
/* 199 */
|
|
7666
|
-
/***/ (function(module, exports) {
|
|
7667
|
-
|
|
7668
|
-
module.exports = add;
|
|
7669
|
-
/**
|
|
7670
|
-
* Adds two vec3's
|
|
7671
|
-
*
|
|
7672
|
-
* @param {vec3} out the receiving vector
|
|
7673
|
-
* @param {vec3} a the first operand
|
|
7674
|
-
* @param {vec3} b the second operand
|
|
7675
|
-
* @returns {vec3} out
|
|
7676
|
-
*/
|
|
7677
|
-
|
|
7678
|
-
function add(out, a, b) {
|
|
7679
|
-
out[0] = a[0] + b[0];
|
|
7680
|
-
out[1] = a[1] + b[1];
|
|
7681
|
-
out[2] = a[2] + b[2];
|
|
7682
|
-
return out;
|
|
7683
|
-
}
|
|
7684
|
-
|
|
7685
|
-
/***/ }),
|
|
7686
|
-
/* 200 */
|
|
7687
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7688
|
-
|
|
7689
|
-
module.exports = __webpack_require__(77);
|
|
7690
|
-
|
|
7691
|
-
/***/ }),
|
|
7692
|
-
/* 201 */
|
|
7693
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7694
|
-
|
|
7695
|
-
module.exports = __webpack_require__(78);
|
|
7696
|
-
|
|
7697
|
-
/***/ }),
|
|
7698
|
-
/* 202 */
|
|
7699
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7700
|
-
|
|
7701
|
-
module.exports = __webpack_require__(79);
|
|
7702
|
-
|
|
7703
|
-
/***/ }),
|
|
7704
|
-
/* 203 */
|
|
7705
|
-
/***/ (function(module, exports) {
|
|
7706
|
-
|
|
7707
|
-
module.exports = min;
|
|
7708
|
-
/**
|
|
7709
|
-
* Returns the minimum of two vec3's
|
|
7710
|
-
*
|
|
7711
|
-
* @param {vec3} out the receiving vector
|
|
7712
|
-
* @param {vec3} a the first operand
|
|
7713
|
-
* @param {vec3} b the second operand
|
|
7714
|
-
* @returns {vec3} out
|
|
7715
|
-
*/
|
|
7716
|
-
|
|
7717
|
-
function min(out, a, b) {
|
|
7718
|
-
out[0] = Math.min(a[0], b[0]);
|
|
7719
|
-
out[1] = Math.min(a[1], b[1]);
|
|
7720
|
-
out[2] = Math.min(a[2], b[2]);
|
|
7721
|
-
return out;
|
|
7722
|
-
}
|
|
7723
|
-
|
|
7724
|
-
/***/ }),
|
|
7725
|
-
/* 204 */
|
|
7726
|
-
/***/ (function(module, exports) {
|
|
7727
|
-
|
|
7728
|
-
module.exports = max;
|
|
7729
|
-
/**
|
|
7730
|
-
* Returns the maximum of two vec3's
|
|
7731
|
-
*
|
|
7732
|
-
* @param {vec3} out the receiving vector
|
|
7733
|
-
* @param {vec3} a the first operand
|
|
7734
|
-
* @param {vec3} b the second operand
|
|
7735
|
-
* @returns {vec3} out
|
|
7736
|
-
*/
|
|
7737
|
-
|
|
7738
|
-
function max(out, a, b) {
|
|
7739
|
-
out[0] = Math.max(a[0], b[0]);
|
|
7740
|
-
out[1] = Math.max(a[1], b[1]);
|
|
7741
|
-
out[2] = Math.max(a[2], b[2]);
|
|
7742
|
-
return out;
|
|
7743
|
-
}
|
|
7744
|
-
|
|
7745
|
-
/***/ }),
|
|
7746
|
-
/* 205 */
|
|
7747
|
-
/***/ (function(module, exports) {
|
|
7748
|
-
|
|
7749
|
-
module.exports = floor;
|
|
7750
|
-
/**
|
|
7751
|
-
* Math.floor the components of a vec3
|
|
7752
|
-
*
|
|
7753
|
-
* @param {vec3} out the receiving vector
|
|
7754
|
-
* @param {vec3} a vector to floor
|
|
7755
|
-
* @returns {vec3} out
|
|
7756
|
-
*/
|
|
7757
|
-
|
|
7758
|
-
function floor(out, a) {
|
|
7759
|
-
out[0] = Math.floor(a[0]);
|
|
7760
|
-
out[1] = Math.floor(a[1]);
|
|
7761
|
-
out[2] = Math.floor(a[2]);
|
|
7762
|
-
return out;
|
|
7763
|
-
}
|
|
7764
|
-
|
|
7765
|
-
/***/ }),
|
|
7766
|
-
/* 206 */
|
|
7767
|
-
/***/ (function(module, exports) {
|
|
7768
|
-
|
|
7769
|
-
module.exports = ceil;
|
|
7770
|
-
/**
|
|
7771
|
-
* Math.ceil the components of a vec3
|
|
7772
|
-
*
|
|
7773
|
-
* @param {vec3} out the receiving vector
|
|
7774
|
-
* @param {vec3} a vector to ceil
|
|
7775
|
-
* @returns {vec3} out
|
|
7776
|
-
*/
|
|
7777
|
-
|
|
7778
|
-
function ceil(out, a) {
|
|
7779
|
-
out[0] = Math.ceil(a[0]);
|
|
7780
|
-
out[1] = Math.ceil(a[1]);
|
|
7781
|
-
out[2] = Math.ceil(a[2]);
|
|
7782
|
-
return out;
|
|
7783
|
-
}
|
|
7784
|
-
|
|
7785
|
-
/***/ }),
|
|
7786
|
-
/* 207 */
|
|
7787
|
-
/***/ (function(module, exports) {
|
|
7788
|
-
|
|
7789
|
-
module.exports = round;
|
|
7790
|
-
/**
|
|
7791
|
-
* Math.round the components of a vec3
|
|
7792
|
-
*
|
|
7793
|
-
* @param {vec3} out the receiving vector
|
|
7794
|
-
* @param {vec3} a vector to round
|
|
7795
|
-
* @returns {vec3} out
|
|
7796
|
-
*/
|
|
7797
|
-
|
|
7798
|
-
function round(out, a) {
|
|
7799
|
-
out[0] = Math.round(a[0]);
|
|
7800
|
-
out[1] = Math.round(a[1]);
|
|
7801
|
-
out[2] = Math.round(a[2]);
|
|
7802
|
-
return out;
|
|
7803
|
-
}
|
|
7804
|
-
|
|
7805
|
-
/***/ }),
|
|
7806
|
-
/* 208 */
|
|
7807
|
-
/***/ (function(module, exports) {
|
|
7808
|
-
|
|
7809
|
-
module.exports = scale;
|
|
7810
|
-
/**
|
|
7811
|
-
* Scales a vec3 by a scalar number
|
|
7812
|
-
*
|
|
7813
|
-
* @param {vec3} out the receiving vector
|
|
7814
|
-
* @param {vec3} a the vector to scale
|
|
7815
|
-
* @param {Number} b amount to scale the vector by
|
|
7816
|
-
* @returns {vec3} out
|
|
7817
|
-
*/
|
|
7818
|
-
|
|
7819
|
-
function scale(out, a, b) {
|
|
7820
|
-
out[0] = a[0] * b;
|
|
7821
|
-
out[1] = a[1] * b;
|
|
7822
|
-
out[2] = a[2] * b;
|
|
7823
|
-
return out;
|
|
7824
|
-
}
|
|
7825
|
-
|
|
7826
|
-
/***/ }),
|
|
7827
|
-
/* 209 */
|
|
7828
|
-
/***/ (function(module, exports) {
|
|
7829
|
-
|
|
7830
|
-
module.exports = scaleAndAdd;
|
|
7831
|
-
/**
|
|
7832
|
-
* Adds two vec3's after scaling the second operand by a scalar value
|
|
7833
|
-
*
|
|
7834
|
-
* @param {vec3} out the receiving vector
|
|
7835
|
-
* @param {vec3} a the first operand
|
|
7836
|
-
* @param {vec3} b the second operand
|
|
7837
|
-
* @param {Number} scale the amount to scale b by before adding
|
|
7838
|
-
* @returns {vec3} out
|
|
7839
|
-
*/
|
|
7840
|
-
|
|
7841
|
-
function scaleAndAdd(out, a, b, scale) {
|
|
7842
|
-
out[0] = a[0] + b[0] * scale;
|
|
7843
|
-
out[1] = a[1] + b[1] * scale;
|
|
7844
|
-
out[2] = a[2] + b[2] * scale;
|
|
7845
|
-
return out;
|
|
7846
|
-
}
|
|
7847
|
-
|
|
7848
|
-
/***/ }),
|
|
7849
|
-
/* 210 */
|
|
7850
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7851
|
-
|
|
7852
|
-
module.exports = __webpack_require__(80);
|
|
7853
|
-
|
|
7854
|
-
/***/ }),
|
|
7855
|
-
/* 211 */
|
|
7856
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7857
|
-
|
|
7858
|
-
module.exports = __webpack_require__(81);
|
|
7859
|
-
|
|
7860
|
-
/***/ }),
|
|
7861
|
-
/* 212 */
|
|
7862
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7863
|
-
|
|
7864
|
-
module.exports = __webpack_require__(82);
|
|
7865
|
-
|
|
7866
|
-
/***/ }),
|
|
7867
|
-
/* 213 */
|
|
7868
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7869
|
-
|
|
7870
|
-
module.exports = __webpack_require__(83);
|
|
7871
|
-
|
|
7872
|
-
/***/ }),
|
|
7873
|
-
/* 214 */
|
|
7874
|
-
/***/ (function(module, exports) {
|
|
7875
|
-
|
|
7876
|
-
module.exports = negate;
|
|
7877
|
-
/**
|
|
7878
|
-
* Negates the components of a vec3
|
|
7879
|
-
*
|
|
7880
|
-
* @param {vec3} out the receiving vector
|
|
7881
|
-
* @param {vec3} a vector to negate
|
|
7882
|
-
* @returns {vec3} out
|
|
7883
|
-
*/
|
|
7884
|
-
|
|
7885
|
-
function negate(out, a) {
|
|
7886
|
-
out[0] = -a[0];
|
|
7887
|
-
out[1] = -a[1];
|
|
7888
|
-
out[2] = -a[2];
|
|
7889
|
-
return out;
|
|
7890
|
-
}
|
|
7891
|
-
|
|
7892
|
-
/***/ }),
|
|
7893
|
-
/* 215 */
|
|
7894
|
-
/***/ (function(module, exports) {
|
|
7895
|
-
|
|
7896
|
-
module.exports = inverse;
|
|
7897
|
-
/**
|
|
7898
|
-
* Returns the inverse of the components of a vec3
|
|
7899
|
-
*
|
|
7900
|
-
* @param {vec3} out the receiving vector
|
|
7901
|
-
* @param {vec3} a vector to invert
|
|
7902
|
-
* @returns {vec3} out
|
|
7903
|
-
*/
|
|
7904
|
-
|
|
7905
|
-
function inverse(out, a) {
|
|
7906
|
-
out[0] = 1.0 / a[0];
|
|
7907
|
-
out[1] = 1.0 / a[1];
|
|
7908
|
-
out[2] = 1.0 / a[2];
|
|
7909
|
-
return out;
|
|
7910
|
-
}
|
|
7911
|
-
|
|
7912
|
-
/***/ }),
|
|
7913
|
-
/* 216 */
|
|
7914
|
-
/***/ (function(module, exports) {
|
|
7915
|
-
|
|
7916
|
-
module.exports = cross;
|
|
7917
|
-
/**
|
|
7918
|
-
* Computes the cross product of two vec3's
|
|
7919
|
-
*
|
|
7920
|
-
* @param {vec3} out the receiving vector
|
|
7921
|
-
* @param {vec3} a the first operand
|
|
7922
|
-
* @param {vec3} b the second operand
|
|
7923
|
-
* @returns {vec3} out
|
|
7924
|
-
*/
|
|
7925
|
-
|
|
7926
|
-
function cross(out, a, b) {
|
|
7927
|
-
var ax = a[0],
|
|
7928
|
-
ay = a[1],
|
|
7929
|
-
az = a[2],
|
|
7930
|
-
bx = b[0],
|
|
7931
|
-
by = b[1],
|
|
7932
|
-
bz = b[2];
|
|
7933
|
-
out[0] = ay * bz - az * by;
|
|
7934
|
-
out[1] = az * bx - ax * bz;
|
|
7935
|
-
out[2] = ax * by - ay * bx;
|
|
7936
|
-
return out;
|
|
7937
|
-
}
|
|
7938
|
-
|
|
7939
|
-
/***/ }),
|
|
7940
|
-
/* 217 */
|
|
7941
|
-
/***/ (function(module, exports) {
|
|
7942
|
-
|
|
7943
|
-
module.exports = lerp;
|
|
7944
|
-
/**
|
|
7945
|
-
* Performs a linear interpolation between two vec3's
|
|
7946
|
-
*
|
|
7947
|
-
* @param {vec3} out the receiving vector
|
|
7948
|
-
* @param {vec3} a the first operand
|
|
7949
|
-
* @param {vec3} b the second operand
|
|
7950
|
-
* @param {Number} t interpolation amount between the two inputs
|
|
7951
|
-
* @returns {vec3} out
|
|
7952
|
-
*/
|
|
7953
|
-
|
|
7954
|
-
function lerp(out, a, b, t) {
|
|
7955
|
-
var ax = a[0],
|
|
7956
|
-
ay = a[1],
|
|
7957
|
-
az = a[2];
|
|
7958
|
-
out[0] = ax + t * (b[0] - ax);
|
|
7959
|
-
out[1] = ay + t * (b[1] - ay);
|
|
7960
|
-
out[2] = az + t * (b[2] - az);
|
|
7961
|
-
return out;
|
|
7962
|
-
}
|
|
7963
|
-
|
|
7964
|
-
/***/ }),
|
|
7965
|
-
/* 218 */
|
|
7966
|
-
/***/ (function(module, exports) {
|
|
7967
|
-
|
|
7968
|
-
module.exports = random;
|
|
7969
|
-
/**
|
|
7970
|
-
* Generates a random vector with the given scale
|
|
7971
|
-
*
|
|
7972
|
-
* @param {vec3} out the receiving vector
|
|
7973
|
-
* @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
|
|
7974
|
-
* @returns {vec3} out
|
|
7975
|
-
*/
|
|
7976
|
-
|
|
7977
|
-
function random(out, scale) {
|
|
7978
|
-
scale = scale || 1.0;
|
|
7979
|
-
var r = Math.random() * 2.0 * Math.PI;
|
|
7980
|
-
var z = Math.random() * 2.0 - 1.0;
|
|
7981
|
-
var zScale = Math.sqrt(1.0 - z * z) * scale;
|
|
7982
|
-
out[0] = Math.cos(r) * zScale;
|
|
7983
|
-
out[1] = Math.sin(r) * zScale;
|
|
7984
|
-
out[2] = z * scale;
|
|
7985
|
-
return out;
|
|
7986
|
-
}
|
|
7987
|
-
|
|
7988
|
-
/***/ }),
|
|
7989
|
-
/* 219 */
|
|
7990
|
-
/***/ (function(module, exports) {
|
|
7991
|
-
|
|
7992
|
-
module.exports = transformMat4;
|
|
7993
|
-
/**
|
|
7994
|
-
* Transforms the vec3 with a mat4.
|
|
7995
|
-
* 4th vector component is implicitly '1'
|
|
7996
|
-
*
|
|
7997
|
-
* @param {vec3} out the receiving vector
|
|
7998
|
-
* @param {vec3} a the vector to transform
|
|
7999
|
-
* @param {mat4} m matrix to transform with
|
|
8000
|
-
* @returns {vec3} out
|
|
8001
|
-
*/
|
|
8002
|
-
|
|
8003
|
-
function transformMat4(out, a, m) {
|
|
8004
|
-
var x = a[0],
|
|
8005
|
-
y = a[1],
|
|
8006
|
-
z = a[2],
|
|
8007
|
-
w = m[3] * x + m[7] * y + m[11] * z + m[15];
|
|
8008
|
-
w = w || 1.0;
|
|
8009
|
-
out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w;
|
|
8010
|
-
out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w;
|
|
8011
|
-
out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w;
|
|
8012
|
-
return out;
|
|
8013
|
-
}
|
|
8014
|
-
|
|
8015
|
-
/***/ }),
|
|
8016
|
-
/* 220 */
|
|
8017
|
-
/***/ (function(module, exports) {
|
|
8018
|
-
|
|
8019
|
-
module.exports = transformMat3;
|
|
8020
|
-
/**
|
|
8021
|
-
* Transforms the vec3 with a mat3.
|
|
8022
|
-
*
|
|
8023
|
-
* @param {vec3} out the receiving vector
|
|
8024
|
-
* @param {vec3} a the vector to transform
|
|
8025
|
-
* @param {mat4} m the 3x3 matrix to transform with
|
|
8026
|
-
* @returns {vec3} out
|
|
8027
|
-
*/
|
|
8028
|
-
|
|
8029
|
-
function transformMat3(out, a, m) {
|
|
8030
|
-
var x = a[0],
|
|
8031
|
-
y = a[1],
|
|
8032
|
-
z = a[2];
|
|
8033
|
-
out[0] = x * m[0] + y * m[3] + z * m[6];
|
|
8034
|
-
out[1] = x * m[1] + y * m[4] + z * m[7];
|
|
8035
|
-
out[2] = x * m[2] + y * m[5] + z * m[8];
|
|
8036
|
-
return out;
|
|
8037
|
-
}
|
|
8038
|
-
|
|
8039
|
-
/***/ }),
|
|
8040
|
-
/* 221 */
|
|
8041
|
-
/***/ (function(module, exports) {
|
|
8042
|
-
|
|
8043
|
-
module.exports = transformQuat;
|
|
8044
|
-
/**
|
|
8045
|
-
* Transforms the vec3 with a quat
|
|
8046
|
-
*
|
|
8047
|
-
* @param {vec3} out the receiving vector
|
|
8048
|
-
* @param {vec3} a the vector to transform
|
|
8049
|
-
* @param {quat} q quaternion to transform with
|
|
8050
|
-
* @returns {vec3} out
|
|
8051
|
-
*/
|
|
8052
|
-
|
|
8053
|
-
function transformQuat(out, a, q) {
|
|
8054
|
-
// benchmarks: http://jsperf.com/quaternion-transform-vec3-implementations
|
|
8055
|
-
var x = a[0],
|
|
8056
|
-
y = a[1],
|
|
8057
|
-
z = a[2],
|
|
8058
|
-
qx = q[0],
|
|
8059
|
-
qy = q[1],
|
|
8060
|
-
qz = q[2],
|
|
8061
|
-
qw = q[3],
|
|
8062
|
-
// calculate quat * vec
|
|
8063
|
-
ix = qw * x + qy * z - qz * y,
|
|
8064
|
-
iy = qw * y + qz * x - qx * z,
|
|
8065
|
-
iz = qw * z + qx * y - qy * x,
|
|
8066
|
-
iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat
|
|
6210
|
+
if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
|
|
6211
|
+
return eq(object[index], value);
|
|
6212
|
+
}
|
|
8067
6213
|
|
|
8068
|
-
|
|
8069
|
-
out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz;
|
|
8070
|
-
out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx;
|
|
8071
|
-
return out;
|
|
6214
|
+
return false;
|
|
8072
6215
|
}
|
|
8073
6216
|
|
|
6217
|
+
module.exports = isIterateeCall;
|
|
6218
|
+
|
|
8074
6219
|
/***/ }),
|
|
8075
|
-
/*
|
|
6220
|
+
/* 131 */
|
|
8076
6221
|
/***/ (function(module, exports) {
|
|
8077
6222
|
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
*
|
|
8081
|
-
* @param {vec3} out The receiving vec3
|
|
8082
|
-
* @param {vec3} a The vec3 point to rotate
|
|
8083
|
-
* @param {vec3} b The origin of the rotation
|
|
8084
|
-
* @param {Number} c The angle of rotation
|
|
8085
|
-
* @returns {vec3} out
|
|
6223
|
+
/*
|
|
6224
|
+
* typedefs.js
|
|
6225
|
+
* Normalizes browser-specific prefixes and provide some basic polyfills
|
|
8086
6226
|
*/
|
|
6227
|
+
if (typeof window !== 'undefined') {
|
|
6228
|
+
if (!window.requestAnimationFrame) {
|
|
6229
|
+
window.requestAnimationFrame = function () {
|
|
6230
|
+
return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (
|
|
6231
|
+
/* function FrameRequestCallback */
|
|
6232
|
+
callback) {
|
|
6233
|
+
window.setTimeout(callback, 1000 / 60);
|
|
6234
|
+
};
|
|
6235
|
+
}();
|
|
6236
|
+
}
|
|
6237
|
+
}
|
|
8087
6238
|
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
6239
|
+
if (typeof Math.imul !== 'function') {
|
|
6240
|
+
/* eslint-disable no-bitwise */
|
|
6241
|
+
Math.imul = function (a, b) {
|
|
6242
|
+
var ah = a >>> 16 & 0xffff;
|
|
6243
|
+
var al = a & 0xffff;
|
|
6244
|
+
var bh = b >>> 16 & 0xffff;
|
|
6245
|
+
var bl = b & 0xffff; // the shift by 0 fixes the sign on the high part
|
|
6246
|
+
// the final |0 converts the unsigned value into a signed value
|
|
8091
6247
|
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
var cc = Math.cos(c); // perform rotation and translate to correct position
|
|
6248
|
+
return al * bl + (ah * bl + al * bh << 16 >>> 0) | 0;
|
|
6249
|
+
};
|
|
6250
|
+
/* eslint-enable no-bitwise */
|
|
8096
6251
|
|
|
8097
|
-
out[0] = a[0];
|
|
8098
|
-
out[1] = by + py * cc - pz * sc;
|
|
8099
|
-
out[2] = bz + py * sc + pz * cc;
|
|
8100
|
-
return out;
|
|
8101
6252
|
}
|
|
8102
6253
|
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
6254
|
+
if (typeof Object.assign !== 'function') {
|
|
6255
|
+
Object.assign = function (target) {
|
|
6256
|
+
// .length of function is 2
|
|
6257
|
+
'use strict';
|
|
8106
6258
|
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
* @param {Number} c The angle of rotation
|
|
8114
|
-
* @returns {vec3} out
|
|
8115
|
-
*/
|
|
6259
|
+
if (target === null) {
|
|
6260
|
+
// TypeError if undefined or null
|
|
6261
|
+
throw new TypeError('Cannot convert undefined or null to object');
|
|
6262
|
+
}
|
|
6263
|
+
|
|
6264
|
+
var to = Object(target);
|
|
8116
6265
|
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
6266
|
+
for (var index = 1; index < arguments.length; index++) {
|
|
6267
|
+
// eslint-disable-next-line prefer-rest-params
|
|
6268
|
+
var nextSource = arguments[index];
|
|
8120
6269
|
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
6270
|
+
if (nextSource !== null) {
|
|
6271
|
+
// Skip over if undefined or null
|
|
6272
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
6273
|
+
for (var nextKey in nextSource) {
|
|
6274
|
+
// Avoid bugs when hasOwnProperty is shadowed
|
|
6275
|
+
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
6276
|
+
to[nextKey] = nextSource[nextKey];
|
|
6277
|
+
}
|
|
6278
|
+
}
|
|
6279
|
+
}
|
|
6280
|
+
}
|
|
8125
6281
|
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
out[2] = bz + pz * cc - px * sc;
|
|
8129
|
-
return out;
|
|
6282
|
+
return to;
|
|
6283
|
+
};
|
|
8130
6284
|
}
|
|
8131
6285
|
|
|
8132
6286
|
/***/ }),
|
|
8133
|
-
/*
|
|
6287
|
+
/* 132 */
|
|
8134
6288
|
/***/ (function(module, exports) {
|
|
8135
6289
|
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
* Rotate a 3D vector around the z-axis
|
|
8139
|
-
* @param {vec3} out The receiving vec3
|
|
8140
|
-
* @param {vec3} a The vec3 point to rotate
|
|
8141
|
-
* @param {vec3} b The origin of the rotation
|
|
8142
|
-
* @param {Number} c The angle of rotation
|
|
8143
|
-
* @returns {vec3} out
|
|
8144
|
-
*/
|
|
8145
|
-
|
|
8146
|
-
function rotateZ(out, a, b, c) {
|
|
8147
|
-
var bx = b[0];
|
|
8148
|
-
var by = b[1]; //Translate point to the origin
|
|
8149
|
-
|
|
8150
|
-
var px = a[0] - bx;
|
|
8151
|
-
var py = a[1] - by;
|
|
8152
|
-
var sc = Math.sin(c);
|
|
8153
|
-
var cc = Math.cos(c); // perform rotation and translate to correct position
|
|
8154
|
-
|
|
8155
|
-
out[0] = bx + px * cc - py * sc;
|
|
8156
|
-
out[1] = by + px * sc + py * cc;
|
|
8157
|
-
out[2] = a[2];
|
|
8158
|
-
return out;
|
|
6290
|
+
function _arrayWithHoles(arr) {
|
|
6291
|
+
if (Array.isArray(arr)) return arr;
|
|
8159
6292
|
}
|
|
8160
6293
|
|
|
6294
|
+
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6295
|
+
|
|
8161
6296
|
/***/ }),
|
|
8162
|
-
/*
|
|
8163
|
-
/***/ (function(module, exports
|
|
6297
|
+
/* 133 */
|
|
6298
|
+
/***/ (function(module, exports) {
|
|
8164
6299
|
|
|
8165
|
-
|
|
6300
|
+
function _iterableToArrayLimit(arr, i) {
|
|
6301
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8166
6302
|
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
* @param {Array} a the array of vectors to iterate over
|
|
8172
|
-
* @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
|
|
8173
|
-
* @param {Number} offset Number of elements to skip at the beginning of the array
|
|
8174
|
-
* @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
|
|
8175
|
-
* @param {Function} fn Function to call for each vector in the array
|
|
8176
|
-
* @param {Object} [arg] additional argument to pass to fn
|
|
8177
|
-
* @returns {Array} a
|
|
8178
|
-
* @function
|
|
8179
|
-
*/
|
|
6303
|
+
if (_i == null) return;
|
|
6304
|
+
var _arr = [];
|
|
6305
|
+
var _n = true;
|
|
6306
|
+
var _d = false;
|
|
8180
6307
|
|
|
6308
|
+
var _s, _e;
|
|
8181
6309
|
|
|
8182
|
-
|
|
8183
|
-
|
|
6310
|
+
try {
|
|
6311
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
6312
|
+
_arr.push(_s.value);
|
|
8184
6313
|
|
|
8185
|
-
|
|
8186
|
-
|
|
6314
|
+
if (i && _arr.length === i) break;
|
|
6315
|
+
}
|
|
6316
|
+
} catch (err) {
|
|
6317
|
+
_d = true;
|
|
6318
|
+
_e = err;
|
|
6319
|
+
} finally {
|
|
6320
|
+
try {
|
|
6321
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
6322
|
+
} finally {
|
|
6323
|
+
if (_d) throw _e;
|
|
6324
|
+
}
|
|
8187
6325
|
}
|
|
8188
6326
|
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
}
|
|
6327
|
+
return _arr;
|
|
6328
|
+
}
|
|
8192
6329
|
|
|
8193
|
-
|
|
8194
|
-
l = Math.min(count * stride + offset, a.length);
|
|
8195
|
-
} else {
|
|
8196
|
-
l = a.length;
|
|
8197
|
-
}
|
|
6330
|
+
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8198
6331
|
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
vec[2] = a[i + 2];
|
|
8203
|
-
fn(vec, vec, arg);
|
|
8204
|
-
a[i] = vec[0];
|
|
8205
|
-
a[i + 1] = vec[1];
|
|
8206
|
-
a[i + 2] = vec[2];
|
|
8207
|
-
}
|
|
6332
|
+
/***/ }),
|
|
6333
|
+
/* 134 */
|
|
6334
|
+
/***/ (function(module, exports) {
|
|
8208
6335
|
|
|
8209
|
-
|
|
6336
|
+
function _nonIterableRest() {
|
|
6337
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8210
6338
|
}
|
|
8211
6339
|
|
|
6340
|
+
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6341
|
+
|
|
8212
6342
|
/***/ }),
|
|
8213
|
-
/*
|
|
6343
|
+
/* 135 */
|
|
8214
6344
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8215
6345
|
|
|
8216
6346
|
var _typeof = __webpack_require__(17)["default"];
|
|
@@ -8569,7 +6699,7 @@ function _regeneratorRuntime() {
|
|
|
8569
6699
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8570
6700
|
|
|
8571
6701
|
/***/ }),
|
|
8572
|
-
/*
|
|
6702
|
+
/* 136 */
|
|
8573
6703
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8574
6704
|
|
|
8575
6705
|
var getPrototypeOf = __webpack_require__(2);
|
|
@@ -8586,10 +6716,10 @@ function _superPropBase(object, property) {
|
|
|
8586
6716
|
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8587
6717
|
|
|
8588
6718
|
/***/ }),
|
|
8589
|
-
/*
|
|
6719
|
+
/* 137 */
|
|
8590
6720
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8591
6721
|
|
|
8592
|
-
var arrayLikeToArray = __webpack_require__(
|
|
6722
|
+
var arrayLikeToArray = __webpack_require__(61);
|
|
8593
6723
|
|
|
8594
6724
|
function _arrayWithoutHoles(arr) {
|
|
8595
6725
|
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
@@ -8598,7 +6728,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
8598
6728
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8599
6729
|
|
|
8600
6730
|
/***/ }),
|
|
8601
|
-
/*
|
|
6731
|
+
/* 138 */
|
|
8602
6732
|
/***/ (function(module, exports) {
|
|
8603
6733
|
|
|
8604
6734
|
function _iterableToArray(iter) {
|
|
@@ -8608,7 +6738,7 @@ function _iterableToArray(iter) {
|
|
|
8608
6738
|
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8609
6739
|
|
|
8610
6740
|
/***/ }),
|
|
8611
|
-
/*
|
|
6741
|
+
/* 139 */
|
|
8612
6742
|
/***/ (function(module, exports) {
|
|
8613
6743
|
|
|
8614
6744
|
function _nonIterableSpread() {
|
|
@@ -8618,11 +6748,11 @@ function _nonIterableSpread() {
|
|
|
8618
6748
|
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8619
6749
|
|
|
8620
6750
|
/***/ }),
|
|
8621
|
-
/*
|
|
6751
|
+
/* 140 */
|
|
8622
6752
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8623
6753
|
|
|
8624
|
-
var basePickBy = __webpack_require__(
|
|
8625
|
-
hasIn = __webpack_require__(
|
|
6754
|
+
var basePickBy = __webpack_require__(141),
|
|
6755
|
+
hasIn = __webpack_require__(151);
|
|
8626
6756
|
/**
|
|
8627
6757
|
* The base implementation of `_.pick` without support for individual
|
|
8628
6758
|
* property identifiers.
|
|
@@ -8643,11 +6773,11 @@ function basePick(object, paths) {
|
|
|
8643
6773
|
module.exports = basePick;
|
|
8644
6774
|
|
|
8645
6775
|
/***/ }),
|
|
8646
|
-
/*
|
|
6776
|
+
/* 141 */
|
|
8647
6777
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8648
6778
|
|
|
8649
|
-
var baseGet = __webpack_require__(
|
|
8650
|
-
baseSet = __webpack_require__(
|
|
6779
|
+
var baseGet = __webpack_require__(142),
|
|
6780
|
+
baseSet = __webpack_require__(150),
|
|
8651
6781
|
castPath = __webpack_require__(32);
|
|
8652
6782
|
/**
|
|
8653
6783
|
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
@@ -8680,11 +6810,11 @@ function basePickBy(object, paths, predicate) {
|
|
|
8680
6810
|
module.exports = basePickBy;
|
|
8681
6811
|
|
|
8682
6812
|
/***/ }),
|
|
8683
|
-
/*
|
|
6813
|
+
/* 142 */
|
|
8684
6814
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8685
6815
|
|
|
8686
6816
|
var castPath = __webpack_require__(32),
|
|
8687
|
-
toKey = __webpack_require__(
|
|
6817
|
+
toKey = __webpack_require__(43);
|
|
8688
6818
|
/**
|
|
8689
6819
|
* The base implementation of `_.get` without support for default values.
|
|
8690
6820
|
*
|
|
@@ -8710,11 +6840,11 @@ function baseGet(object, path) {
|
|
|
8710
6840
|
module.exports = baseGet;
|
|
8711
6841
|
|
|
8712
6842
|
/***/ }),
|
|
8713
|
-
/*
|
|
6843
|
+
/* 143 */
|
|
8714
6844
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8715
6845
|
|
|
8716
6846
|
var isArray = __webpack_require__(15),
|
|
8717
|
-
isSymbol = __webpack_require__(
|
|
6847
|
+
isSymbol = __webpack_require__(42);
|
|
8718
6848
|
/** Used to match property names within property paths. */
|
|
8719
6849
|
|
|
8720
6850
|
|
|
@@ -8746,10 +6876,10 @@ function isKey(value, object) {
|
|
|
8746
6876
|
module.exports = isKey;
|
|
8747
6877
|
|
|
8748
6878
|
/***/ }),
|
|
8749
|
-
/*
|
|
6879
|
+
/* 144 */
|
|
8750
6880
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8751
6881
|
|
|
8752
|
-
var memoizeCapped = __webpack_require__(
|
|
6882
|
+
var memoizeCapped = __webpack_require__(145);
|
|
8753
6883
|
/** Used to match property names within property paths. */
|
|
8754
6884
|
|
|
8755
6885
|
|
|
@@ -8782,10 +6912,10 @@ var stringToPath = memoizeCapped(function (string) {
|
|
|
8782
6912
|
module.exports = stringToPath;
|
|
8783
6913
|
|
|
8784
6914
|
/***/ }),
|
|
8785
|
-
/*
|
|
6915
|
+
/* 145 */
|
|
8786
6916
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8787
6917
|
|
|
8788
|
-
var memoize = __webpack_require__(
|
|
6918
|
+
var memoize = __webpack_require__(146);
|
|
8789
6919
|
/** Used as the maximum memoize cache size. */
|
|
8790
6920
|
|
|
8791
6921
|
|
|
@@ -8814,10 +6944,10 @@ function memoizeCapped(func) {
|
|
|
8814
6944
|
module.exports = memoizeCapped;
|
|
8815
6945
|
|
|
8816
6946
|
/***/ }),
|
|
8817
|
-
/*
|
|
6947
|
+
/* 146 */
|
|
8818
6948
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8819
6949
|
|
|
8820
|
-
var MapCache = __webpack_require__(
|
|
6950
|
+
var MapCache = __webpack_require__(47);
|
|
8821
6951
|
/** Error message constants. */
|
|
8822
6952
|
|
|
8823
6953
|
|
|
@@ -8895,10 +7025,10 @@ memoize.Cache = MapCache;
|
|
|
8895
7025
|
module.exports = memoize;
|
|
8896
7026
|
|
|
8897
7027
|
/***/ }),
|
|
8898
|
-
/*
|
|
7028
|
+
/* 147 */
|
|
8899
7029
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8900
7030
|
|
|
8901
|
-
var baseToString = __webpack_require__(
|
|
7031
|
+
var baseToString = __webpack_require__(148);
|
|
8902
7032
|
/**
|
|
8903
7033
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
8904
7034
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -8929,13 +7059,13 @@ function toString(value) {
|
|
|
8929
7059
|
module.exports = toString;
|
|
8930
7060
|
|
|
8931
7061
|
/***/ }),
|
|
8932
|
-
/*
|
|
7062
|
+
/* 148 */
|
|
8933
7063
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8934
7064
|
|
|
8935
7065
|
var Symbol = __webpack_require__(27),
|
|
8936
|
-
arrayMap = __webpack_require__(
|
|
7066
|
+
arrayMap = __webpack_require__(149),
|
|
8937
7067
|
isArray = __webpack_require__(15),
|
|
8938
|
-
isSymbol = __webpack_require__(
|
|
7068
|
+
isSymbol = __webpack_require__(42);
|
|
8939
7069
|
/** Used as references for various `Number` constants. */
|
|
8940
7070
|
|
|
8941
7071
|
|
|
@@ -8975,7 +7105,7 @@ function baseToString(value) {
|
|
|
8975
7105
|
module.exports = baseToString;
|
|
8976
7106
|
|
|
8977
7107
|
/***/ }),
|
|
8978
|
-
/*
|
|
7108
|
+
/* 149 */
|
|
8979
7109
|
/***/ (function(module, exports) {
|
|
8980
7110
|
|
|
8981
7111
|
/**
|
|
@@ -9002,14 +7132,14 @@ function arrayMap(array, iteratee) {
|
|
|
9002
7132
|
module.exports = arrayMap;
|
|
9003
7133
|
|
|
9004
7134
|
/***/ }),
|
|
9005
|
-
/*
|
|
7135
|
+
/* 150 */
|
|
9006
7136
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9007
7137
|
|
|
9008
|
-
var assignValue = __webpack_require__(
|
|
7138
|
+
var assignValue = __webpack_require__(55),
|
|
9009
7139
|
castPath = __webpack_require__(32),
|
|
9010
7140
|
isIndex = __webpack_require__(31),
|
|
9011
7141
|
isObject = __webpack_require__(14),
|
|
9012
|
-
toKey = __webpack_require__(
|
|
7142
|
+
toKey = __webpack_require__(43);
|
|
9013
7143
|
/**
|
|
9014
7144
|
* The base implementation of `_.set`.
|
|
9015
7145
|
*
|
|
@@ -9060,11 +7190,11 @@ function baseSet(object, path, value, customizer) {
|
|
|
9060
7190
|
module.exports = baseSet;
|
|
9061
7191
|
|
|
9062
7192
|
/***/ }),
|
|
9063
|
-
/*
|
|
7193
|
+
/* 151 */
|
|
9064
7194
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9065
7195
|
|
|
9066
|
-
var baseHasIn = __webpack_require__(
|
|
9067
|
-
hasPath = __webpack_require__(
|
|
7196
|
+
var baseHasIn = __webpack_require__(152),
|
|
7197
|
+
hasPath = __webpack_require__(153);
|
|
9068
7198
|
/**
|
|
9069
7199
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
9070
7200
|
*
|
|
@@ -9100,7 +7230,7 @@ function hasIn(object, path) {
|
|
|
9100
7230
|
module.exports = hasIn;
|
|
9101
7231
|
|
|
9102
7232
|
/***/ }),
|
|
9103
|
-
/*
|
|
7233
|
+
/* 152 */
|
|
9104
7234
|
/***/ (function(module, exports) {
|
|
9105
7235
|
|
|
9106
7236
|
/**
|
|
@@ -9118,15 +7248,15 @@ function baseHasIn(object, key) {
|
|
|
9118
7248
|
module.exports = baseHasIn;
|
|
9119
7249
|
|
|
9120
7250
|
/***/ }),
|
|
9121
|
-
/*
|
|
7251
|
+
/* 153 */
|
|
9122
7252
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9123
7253
|
|
|
9124
7254
|
var castPath = __webpack_require__(32),
|
|
9125
7255
|
isArguments = __webpack_require__(30),
|
|
9126
7256
|
isArray = __webpack_require__(15),
|
|
9127
7257
|
isIndex = __webpack_require__(31),
|
|
9128
|
-
isLength = __webpack_require__(
|
|
9129
|
-
toKey = __webpack_require__(
|
|
7258
|
+
isLength = __webpack_require__(40),
|
|
7259
|
+
toKey = __webpack_require__(43);
|
|
9130
7260
|
/**
|
|
9131
7261
|
* Checks if `path` exists on `object`.
|
|
9132
7262
|
*
|
|
@@ -9165,12 +7295,12 @@ function hasPath(object, path, hasFunc) {
|
|
|
9165
7295
|
module.exports = hasPath;
|
|
9166
7296
|
|
|
9167
7297
|
/***/ }),
|
|
9168
|
-
/*
|
|
7298
|
+
/* 154 */
|
|
9169
7299
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9170
7300
|
|
|
9171
|
-
var flatten = __webpack_require__(
|
|
9172
|
-
overRest = __webpack_require__(
|
|
9173
|
-
setToString = __webpack_require__(
|
|
7301
|
+
var flatten = __webpack_require__(155),
|
|
7302
|
+
overRest = __webpack_require__(58),
|
|
7303
|
+
setToString = __webpack_require__(59);
|
|
9174
7304
|
/**
|
|
9175
7305
|
* A specialized version of `baseRest` which flattens the rest array.
|
|
9176
7306
|
*
|
|
@@ -9187,10 +7317,10 @@ function flatRest(func) {
|
|
|
9187
7317
|
module.exports = flatRest;
|
|
9188
7318
|
|
|
9189
7319
|
/***/ }),
|
|
9190
|
-
/*
|
|
7320
|
+
/* 155 */
|
|
9191
7321
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9192
7322
|
|
|
9193
|
-
var baseFlatten = __webpack_require__(
|
|
7323
|
+
var baseFlatten = __webpack_require__(156);
|
|
9194
7324
|
/**
|
|
9195
7325
|
* Flattens `array` a single level deep.
|
|
9196
7326
|
*
|
|
@@ -9215,11 +7345,11 @@ function flatten(array) {
|
|
|
9215
7345
|
module.exports = flatten;
|
|
9216
7346
|
|
|
9217
7347
|
/***/ }),
|
|
9218
|
-
/*
|
|
7348
|
+
/* 156 */
|
|
9219
7349
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9220
7350
|
|
|
9221
|
-
var arrayPush = __webpack_require__(
|
|
9222
|
-
isFlattenable = __webpack_require__(
|
|
7351
|
+
var arrayPush = __webpack_require__(157),
|
|
7352
|
+
isFlattenable = __webpack_require__(158);
|
|
9223
7353
|
/**
|
|
9224
7354
|
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
9225
7355
|
*
|
|
@@ -9260,7 +7390,7 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
|
9260
7390
|
module.exports = baseFlatten;
|
|
9261
7391
|
|
|
9262
7392
|
/***/ }),
|
|
9263
|
-
/*
|
|
7393
|
+
/* 157 */
|
|
9264
7394
|
/***/ (function(module, exports) {
|
|
9265
7395
|
|
|
9266
7396
|
/**
|
|
@@ -9286,7 +7416,7 @@ function arrayPush(array, values) {
|
|
|
9286
7416
|
module.exports = arrayPush;
|
|
9287
7417
|
|
|
9288
7418
|
/***/ }),
|
|
9289
|
-
/*
|
|
7419
|
+
/* 158 */
|
|
9290
7420
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9291
7421
|
|
|
9292
7422
|
var Symbol = __webpack_require__(27),
|
|
@@ -9311,7 +7441,7 @@ function isFlattenable(value) {
|
|
|
9311
7441
|
module.exports = isFlattenable;
|
|
9312
7442
|
|
|
9313
7443
|
/***/ }),
|
|
9314
|
-
/*
|
|
7444
|
+
/* 159 */
|
|
9315
7445
|
/***/ (function(module, exports) {
|
|
9316
7446
|
|
|
9317
7447
|
function _isNativeFunction(fn) {
|
|
@@ -9321,12 +7451,12 @@ function _isNativeFunction(fn) {
|
|
|
9321
7451
|
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9322
7452
|
|
|
9323
7453
|
/***/ }),
|
|
9324
|
-
/*
|
|
7454
|
+
/* 160 */
|
|
9325
7455
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9326
7456
|
|
|
9327
|
-
var setPrototypeOf = __webpack_require__(
|
|
7457
|
+
var setPrototypeOf = __webpack_require__(41);
|
|
9328
7458
|
|
|
9329
|
-
var isNativeReflectConstruct = __webpack_require__(
|
|
7459
|
+
var isNativeReflectConstruct = __webpack_require__(161);
|
|
9330
7460
|
|
|
9331
7461
|
function _construct(Parent, args, Class) {
|
|
9332
7462
|
if (isNativeReflectConstruct()) {
|
|
@@ -9348,7 +7478,7 @@ function _construct(Parent, args, Class) {
|
|
|
9348
7478
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9349
7479
|
|
|
9350
7480
|
/***/ }),
|
|
9351
|
-
/*
|
|
7481
|
+
/* 161 */
|
|
9352
7482
|
/***/ (function(module, exports) {
|
|
9353
7483
|
|
|
9354
7484
|
function _isNativeReflectConstruct() {
|
|
@@ -9367,312 +7497,19 @@ function _isNativeReflectConstruct() {
|
|
|
9367
7497
|
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9368
7498
|
|
|
9369
7499
|
/***/ }),
|
|
9370
|
-
/*
|
|
7500
|
+
/* 162 */
|
|
9371
7501
|
/***/ (function(module, exports) {
|
|
9372
7502
|
|
|
9373
7503
|
module.exports = require("ndarray");
|
|
9374
7504
|
|
|
9375
7505
|
/***/ }),
|
|
9376
|
-
/*
|
|
7506
|
+
/* 163 */
|
|
9377
7507
|
/***/ (function(module, exports) {
|
|
9378
7508
|
|
|
9379
7509
|
module.exports = require("ndarray-linear-interpolate");
|
|
9380
7510
|
|
|
9381
7511
|
/***/ }),
|
|
9382
|
-
/*
|
|
9383
|
-
/***/ (function(module, exports) {
|
|
9384
|
-
|
|
9385
|
-
module.exports = determinant;
|
|
9386
|
-
/**
|
|
9387
|
-
* Calculates the determinant of a mat2
|
|
9388
|
-
*
|
|
9389
|
-
* @alias mat2.determinant
|
|
9390
|
-
* @param {mat2} a the source matrix
|
|
9391
|
-
* @returns {Number} determinant of a
|
|
9392
|
-
*/
|
|
9393
|
-
|
|
9394
|
-
function determinant(a) {
|
|
9395
|
-
return a[0] * a[3] - a[2] * a[1];
|
|
9396
|
-
}
|
|
9397
|
-
|
|
9398
|
-
/***/ }),
|
|
9399
|
-
/* 256 */
|
|
9400
|
-
/***/ (function(module, exports) {
|
|
9401
|
-
|
|
9402
|
-
module.exports = transpose;
|
|
9403
|
-
/**
|
|
9404
|
-
* Transpose the values of a mat2
|
|
9405
|
-
*
|
|
9406
|
-
* @alias mat2.transpose
|
|
9407
|
-
* @param {mat2} out the receiving matrix
|
|
9408
|
-
* @param {mat2} a the source matrix
|
|
9409
|
-
* @returns {mat2} out
|
|
9410
|
-
*/
|
|
9411
|
-
|
|
9412
|
-
function transpose(out, a) {
|
|
9413
|
-
// If we are transposing ourselves we can skip a few steps but have to cache some values
|
|
9414
|
-
if (out === a) {
|
|
9415
|
-
var a1 = a[1];
|
|
9416
|
-
out[1] = a[2];
|
|
9417
|
-
out[2] = a1;
|
|
9418
|
-
} else {
|
|
9419
|
-
out[0] = a[0];
|
|
9420
|
-
out[1] = a[2];
|
|
9421
|
-
out[2] = a[1];
|
|
9422
|
-
out[3] = a[3];
|
|
9423
|
-
}
|
|
9424
|
-
|
|
9425
|
-
return out;
|
|
9426
|
-
}
|
|
9427
|
-
|
|
9428
|
-
/***/ }),
|
|
9429
|
-
/* 257 */
|
|
9430
|
-
/***/ (function(module, exports) {
|
|
9431
|
-
|
|
9432
|
-
module.exports = multiply;
|
|
9433
|
-
/**
|
|
9434
|
-
* Multiplies two mat2's
|
|
9435
|
-
*
|
|
9436
|
-
* @alias mat2.multiply
|
|
9437
|
-
* @param {mat2} out the receiving matrix
|
|
9438
|
-
* @param {mat2} a the first operand
|
|
9439
|
-
* @param {mat2} b the second operand
|
|
9440
|
-
* @returns {mat2} out
|
|
9441
|
-
*/
|
|
9442
|
-
|
|
9443
|
-
function multiply(out, a, b) {
|
|
9444
|
-
var a0 = a[0],
|
|
9445
|
-
a1 = a[1],
|
|
9446
|
-
a2 = a[2],
|
|
9447
|
-
a3 = a[3];
|
|
9448
|
-
var b0 = b[0],
|
|
9449
|
-
b1 = b[1],
|
|
9450
|
-
b2 = b[2],
|
|
9451
|
-
b3 = b[3];
|
|
9452
|
-
out[0] = a0 * b0 + a2 * b1;
|
|
9453
|
-
out[1] = a1 * b0 + a3 * b1;
|
|
9454
|
-
out[2] = a0 * b2 + a2 * b3;
|
|
9455
|
-
out[3] = a1 * b2 + a3 * b3;
|
|
9456
|
-
return out;
|
|
9457
|
-
}
|
|
9458
|
-
|
|
9459
|
-
/***/ }),
|
|
9460
|
-
/* 258 */
|
|
9461
|
-
/***/ (function(module, exports) {
|
|
9462
|
-
|
|
9463
|
-
module.exports = identity;
|
|
9464
|
-
/**
|
|
9465
|
-
* Set a mat2 to the identity matrix
|
|
9466
|
-
*
|
|
9467
|
-
* @alias mat2.identity
|
|
9468
|
-
* @param {mat2} out the receiving matrix
|
|
9469
|
-
* @returns {mat2} out
|
|
9470
|
-
*/
|
|
9471
|
-
|
|
9472
|
-
function identity(out) {
|
|
9473
|
-
out[0] = 1;
|
|
9474
|
-
out[1] = 0;
|
|
9475
|
-
out[2] = 0;
|
|
9476
|
-
out[3] = 1;
|
|
9477
|
-
return out;
|
|
9478
|
-
}
|
|
9479
|
-
|
|
9480
|
-
/***/ }),
|
|
9481
|
-
/* 259 */
|
|
9482
|
-
/***/ (function(module, exports) {
|
|
9483
|
-
|
|
9484
|
-
module.exports = adjoint;
|
|
9485
|
-
/**
|
|
9486
|
-
* Calculates the adjugate of a mat2
|
|
9487
|
-
*
|
|
9488
|
-
* @alias mat2.adjoint
|
|
9489
|
-
* @param {mat2} out the receiving matrix
|
|
9490
|
-
* @param {mat2} a the source matrix
|
|
9491
|
-
* @returns {mat2} out
|
|
9492
|
-
*/
|
|
9493
|
-
|
|
9494
|
-
function adjoint(out, a) {
|
|
9495
|
-
// Caching this value is nessecary if out == a
|
|
9496
|
-
var a0 = a[0];
|
|
9497
|
-
out[0] = a[3];
|
|
9498
|
-
out[1] = -a[1];
|
|
9499
|
-
out[2] = -a[2];
|
|
9500
|
-
out[3] = a0;
|
|
9501
|
-
return out;
|
|
9502
|
-
}
|
|
9503
|
-
|
|
9504
|
-
/***/ }),
|
|
9505
|
-
/* 260 */
|
|
9506
|
-
/***/ (function(module, exports) {
|
|
9507
|
-
|
|
9508
|
-
module.exports = rotate;
|
|
9509
|
-
/**
|
|
9510
|
-
* Rotates a mat2 by the given angle
|
|
9511
|
-
*
|
|
9512
|
-
* @alias mat2.rotate
|
|
9513
|
-
* @param {mat2} out the receiving matrix
|
|
9514
|
-
* @param {mat2} a the matrix to rotate
|
|
9515
|
-
* @param {Number} rad the angle to rotate the matrix by
|
|
9516
|
-
* @returns {mat2} out
|
|
9517
|
-
*/
|
|
9518
|
-
|
|
9519
|
-
function rotate(out, a, rad) {
|
|
9520
|
-
var a0 = a[0],
|
|
9521
|
-
a1 = a[1],
|
|
9522
|
-
a2 = a[2],
|
|
9523
|
-
a3 = a[3];
|
|
9524
|
-
var s = Math.sin(rad);
|
|
9525
|
-
var c = Math.cos(rad);
|
|
9526
|
-
out[0] = a0 * c + a2 * s;
|
|
9527
|
-
out[1] = a1 * c + a3 * s;
|
|
9528
|
-
out[2] = a0 * -s + a2 * c;
|
|
9529
|
-
out[3] = a1 * -s + a3 * c;
|
|
9530
|
-
return out;
|
|
9531
|
-
}
|
|
9532
|
-
|
|
9533
|
-
/***/ }),
|
|
9534
|
-
/* 261 */
|
|
9535
|
-
/***/ (function(module, exports) {
|
|
9536
|
-
|
|
9537
|
-
module.exports = invert;
|
|
9538
|
-
/**
|
|
9539
|
-
* Inverts a mat2
|
|
9540
|
-
*
|
|
9541
|
-
* @alias mat2.invert
|
|
9542
|
-
* @param {mat2} out the receiving matrix
|
|
9543
|
-
* @param {mat2} a the source matrix
|
|
9544
|
-
* @returns {mat2} out
|
|
9545
|
-
*/
|
|
9546
|
-
|
|
9547
|
-
function invert(out, a) {
|
|
9548
|
-
var a0 = a[0];
|
|
9549
|
-
var a1 = a[1];
|
|
9550
|
-
var a2 = a[2];
|
|
9551
|
-
var a3 = a[3];
|
|
9552
|
-
var det = a0 * a3 - a2 * a1;
|
|
9553
|
-
if (!det) return null;
|
|
9554
|
-
det = 1.0 / det;
|
|
9555
|
-
out[0] = a3 * det;
|
|
9556
|
-
out[1] = -a1 * det;
|
|
9557
|
-
out[2] = -a2 * det;
|
|
9558
|
-
out[3] = a0 * det;
|
|
9559
|
-
return out;
|
|
9560
|
-
}
|
|
9561
|
-
|
|
9562
|
-
/***/ }),
|
|
9563
|
-
/* 262 */
|
|
9564
|
-
/***/ (function(module, exports) {
|
|
9565
|
-
|
|
9566
|
-
module.exports = create;
|
|
9567
|
-
/**
|
|
9568
|
-
* Creates a new identity mat2
|
|
9569
|
-
*
|
|
9570
|
-
* @alias mat2.create
|
|
9571
|
-
* @returns {mat2} a new 2x2 matrix
|
|
9572
|
-
*/
|
|
9573
|
-
|
|
9574
|
-
function create() {
|
|
9575
|
-
var out = new Float32Array(4);
|
|
9576
|
-
out[0] = 1;
|
|
9577
|
-
out[1] = 0;
|
|
9578
|
-
out[2] = 0;
|
|
9579
|
-
out[3] = 1;
|
|
9580
|
-
return out;
|
|
9581
|
-
}
|
|
9582
|
-
|
|
9583
|
-
/***/ }),
|
|
9584
|
-
/* 263 */
|
|
9585
|
-
/***/ (function(module, exports) {
|
|
9586
|
-
|
|
9587
|
-
module.exports = scale;
|
|
9588
|
-
/**
|
|
9589
|
-
* Scales the mat2 by the dimensions in the given vec2
|
|
9590
|
-
*
|
|
9591
|
-
* @alias mat2.scale
|
|
9592
|
-
* @param {mat2} out the receiving matrix
|
|
9593
|
-
* @param {mat2} a the matrix to rotate
|
|
9594
|
-
* @param {vec2} v the vec2 to scale the matrix by
|
|
9595
|
-
* @returns {mat2} out
|
|
9596
|
-
**/
|
|
9597
|
-
|
|
9598
|
-
function scale(out, a, v) {
|
|
9599
|
-
var a0 = a[0],
|
|
9600
|
-
a1 = a[1],
|
|
9601
|
-
a2 = a[2],
|
|
9602
|
-
a3 = a[3];
|
|
9603
|
-
var v0 = v[0],
|
|
9604
|
-
v1 = v[1];
|
|
9605
|
-
out[0] = a0 * v0;
|
|
9606
|
-
out[1] = a1 * v0;
|
|
9607
|
-
out[2] = a2 * v1;
|
|
9608
|
-
out[3] = a3 * v1;
|
|
9609
|
-
return out;
|
|
9610
|
-
}
|
|
9611
|
-
|
|
9612
|
-
/***/ }),
|
|
9613
|
-
/* 264 */
|
|
9614
|
-
/***/ (function(module, exports) {
|
|
9615
|
-
|
|
9616
|
-
module.exports = copy;
|
|
9617
|
-
/**
|
|
9618
|
-
* Copy the values from one mat2 to another
|
|
9619
|
-
*
|
|
9620
|
-
* @alias mat2.copy
|
|
9621
|
-
* @param {mat2} out the receiving matrix
|
|
9622
|
-
* @param {mat2} a the source matrix
|
|
9623
|
-
* @returns {mat2} out
|
|
9624
|
-
*/
|
|
9625
|
-
|
|
9626
|
-
function copy(out, a) {
|
|
9627
|
-
out[0] = a[0];
|
|
9628
|
-
out[1] = a[1];
|
|
9629
|
-
out[2] = a[2];
|
|
9630
|
-
out[3] = a[3];
|
|
9631
|
-
return out;
|
|
9632
|
-
}
|
|
9633
|
-
|
|
9634
|
-
/***/ }),
|
|
9635
|
-
/* 265 */
|
|
9636
|
-
/***/ (function(module, exports) {
|
|
9637
|
-
|
|
9638
|
-
module.exports = frob;
|
|
9639
|
-
/**
|
|
9640
|
-
* Returns Frobenius norm of a mat2
|
|
9641
|
-
*
|
|
9642
|
-
* @alias mat2.frob
|
|
9643
|
-
* @param {mat2} a the matrix to calculate Frobenius norm of
|
|
9644
|
-
* @returns {Number} Frobenius norm
|
|
9645
|
-
*/
|
|
9646
|
-
|
|
9647
|
-
function frob(a) {
|
|
9648
|
-
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2) + Math.pow(a[2], 2) + Math.pow(a[3], 2));
|
|
9649
|
-
}
|
|
9650
|
-
|
|
9651
|
-
/***/ }),
|
|
9652
|
-
/* 266 */
|
|
9653
|
-
/***/ (function(module, exports) {
|
|
9654
|
-
|
|
9655
|
-
module.exports = ldu;
|
|
9656
|
-
/**
|
|
9657
|
-
* Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
|
|
9658
|
-
*
|
|
9659
|
-
* @alias mat2.ldu
|
|
9660
|
-
* @param {mat2} L the lower triangular matrix
|
|
9661
|
-
* @param {mat2} D the diagonal matrix
|
|
9662
|
-
* @param {mat2} U the upper triangular matrix
|
|
9663
|
-
* @param {mat2} a the input matrix to factorize
|
|
9664
|
-
*/
|
|
9665
|
-
|
|
9666
|
-
function ldu(L, D, U, a) {
|
|
9667
|
-
L[2] = a[2] / a[0];
|
|
9668
|
-
U[0] = a[0];
|
|
9669
|
-
U[1] = a[1];
|
|
9670
|
-
U[3] = a[3] - L[2] * U[1];
|
|
9671
|
-
return [L, D, U];
|
|
9672
|
-
}
|
|
9673
|
-
|
|
9674
|
-
/***/ }),
|
|
9675
|
-
/* 267 */
|
|
7512
|
+
/* 164 */
|
|
9676
7513
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9677
7514
|
|
|
9678
7515
|
"use strict";
|
|
@@ -9715,7 +7552,7 @@ var merge = __webpack_require__(18);
|
|
|
9715
7552
|
var merge_default = /*#__PURE__*/__webpack_require__.n(merge);
|
|
9716
7553
|
|
|
9717
7554
|
// EXTERNAL MODULE: ./src/common/typedefs.js
|
|
9718
|
-
var typedefs = __webpack_require__(
|
|
7555
|
+
var typedefs = __webpack_require__(131);
|
|
9719
7556
|
|
|
9720
7557
|
// EXTERNAL MODULE: ./src/common/image_wrapper.ts
|
|
9721
7558
|
var image_wrapper = __webpack_require__(10);
|
|
@@ -9744,11 +7581,11 @@ var assertThisInitialized = __webpack_require__(1);
|
|
|
9744
7581
|
var assertThisInitialized_default = /*#__PURE__*/__webpack_require__.n(assertThisInitialized);
|
|
9745
7582
|
|
|
9746
7583
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
|
|
9747
|
-
var inherits = __webpack_require__(
|
|
7584
|
+
var inherits = __webpack_require__(7);
|
|
9748
7585
|
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
|
9749
7586
|
|
|
9750
7587
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
9751
|
-
var possibleConstructorReturn = __webpack_require__(
|
|
7588
|
+
var possibleConstructorReturn = __webpack_require__(6);
|
|
9752
7589
|
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
|
9753
7590
|
|
|
9754
7591
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
@@ -13821,11 +11658,11 @@ var READERS = {
|
|
|
13821
11658
|
};
|
|
13822
11659
|
})());
|
|
13823
11660
|
// EXTERNAL MODULE: ./node_modules/lodash/pick.js
|
|
13824
|
-
var pick = __webpack_require__(
|
|
11661
|
+
var pick = __webpack_require__(62);
|
|
13825
11662
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick);
|
|
13826
11663
|
|
|
13827
11664
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js
|
|
13828
|
-
var wrapNativeSuper = __webpack_require__(
|
|
11665
|
+
var wrapNativeSuper = __webpack_require__(63);
|
|
13829
11666
|
var wrapNativeSuper_default = /*#__PURE__*/__webpack_require__.n(wrapNativeSuper);
|
|
13830
11667
|
|
|
13831
11668
|
// CONCATENATED MODULE: ./src/quagga/Exception.ts
|
|
@@ -14346,11 +12183,11 @@ var ExportConfig = function () {
|
|
|
14346
12183
|
}();
|
|
14347
12184
|
|
|
14348
12185
|
/* harmony default export */ var config_config = (ExportConfig);
|
|
14349
|
-
// EXTERNAL MODULE:
|
|
14350
|
-
var
|
|
12186
|
+
// EXTERNAL MODULE: external "gl-matrix"
|
|
12187
|
+
var external_gl_matrix_ = __webpack_require__(5);
|
|
14351
12188
|
|
|
14352
12189
|
// EXTERNAL MODULE: ./src/input/frame_grabber.js
|
|
14353
|
-
var frame_grabber = __webpack_require__(
|
|
12190
|
+
var frame_grabber = __webpack_require__(64);
|
|
14354
12191
|
var frame_grabber_default = /*#__PURE__*/__webpack_require__.n(frame_grabber);
|
|
14355
12192
|
|
|
14356
12193
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
@@ -14358,7 +12195,7 @@ var slicedToArray = __webpack_require__(33);
|
|
|
14358
12195
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
14359
12196
|
|
|
14360
12197
|
// EXTERNAL MODULE: external "get-pixels"
|
|
14361
|
-
var external_get_pixels_ = __webpack_require__(
|
|
12198
|
+
var external_get_pixels_ = __webpack_require__(65);
|
|
14362
12199
|
var external_get_pixels_default = /*#__PURE__*/__webpack_require__.n(external_get_pixels_);
|
|
14363
12200
|
|
|
14364
12201
|
// CONCATENATED MODULE: ./src/input/input_stream/input_stream.ts
|
|
@@ -14615,7 +12452,8 @@ function getViewPort_getViewPort(target) {
|
|
|
14615
12452
|
|
|
14616
12453
|
|
|
14617
12454
|
|
|
14618
|
-
// TODO: need typescript def for BarcodeLocator
|
|
12455
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array); // TODO: need typescript def for BarcodeLocator
|
|
12456
|
+
|
|
14619
12457
|
function initBuffers_initBuffers(inputStream, imageWrapper, locator) {
|
|
14620
12458
|
var inputImageWrapper = imageWrapper || new image_wrapper["a" /* default */]({
|
|
14621
12459
|
x: inputStream.getWidth(),
|
|
@@ -14625,7 +12463,7 @@ function initBuffers_initBuffers(inputStream, imageWrapper, locator) {
|
|
|
14625
12463
|
|
|
14626
12464
|
if (false) {}
|
|
14627
12465
|
|
|
14628
|
-
var boxSize = [
|
|
12466
|
+
var boxSize = [external_gl_matrix_["vec2"].clone([0, 0]), external_gl_matrix_["vec2"].clone([0, inputImageWrapper.size.y]), external_gl_matrix_["vec2"].clone([inputImageWrapper.size.x, inputImageWrapper.size.y]), external_gl_matrix_["vec2"].clone([inputImageWrapper.size.x, 0])];
|
|
14629
12467
|
barcode_locator["a" /* default */].init(inputImageWrapper, locator);
|
|
14630
12468
|
return {
|
|
14631
12469
|
inputImageWrapper: inputImageWrapper,
|
|
@@ -15010,6 +12848,7 @@ function moveLine(line, xOffset, yOffset) {
|
|
|
15010
12848
|
|
|
15011
12849
|
|
|
15012
12850
|
|
|
12851
|
+
external_gl_matrix_["glMatrix"].setMatrixArrayType(Array);
|
|
15013
12852
|
|
|
15014
12853
|
var quagga_Quagga = /*#__PURE__*/function () {
|
|
15015
12854
|
function Quagga() {
|
|
@@ -15166,7 +13005,7 @@ var quagga_Quagga = /*#__PURE__*/function () {
|
|
|
15166
13005
|
value: function getBoundingBoxes() {
|
|
15167
13006
|
var _this$context$config3;
|
|
15168
13007
|
|
|
15169
|
-
return (_this$context$config3 = this.context.config) !== null && _this$context$config3 !== void 0 && _this$context$config3.locate ? barcode_locator["a" /* default */].locate() : [[
|
|
13008
|
+
return (_this$context$config3 = this.context.config) !== null && _this$context$config3 !== void 0 && _this$context$config3.locate ? barcode_locator["a" /* default */].locate() : [[external_gl_matrix_["vec2"].clone(this.context.boxSize[0]), external_gl_matrix_["vec2"].clone(this.context.boxSize[1]), external_gl_matrix_["vec2"].clone(this.context.boxSize[2]), external_gl_matrix_["vec2"].clone(this.context.boxSize[3])]];
|
|
15170
13009
|
} // TODO: need a typescript type for result here.
|
|
15171
13010
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
15172
13011
|
|