@local-logic/sdks-app 1.2.3 → 1.3.1
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/assets/index-legacy.008d8ab5.js +40 -0
- package/dist/assets/index-legacy.74694904.js +1 -0
- package/dist/assets/index-legacy.ad6dd738.js +8 -0
- package/dist/assets/{index-legacy.07116093.js → index-legacy.f7e0f85f.js} +1 -1
- package/dist/assets/{index.c1827e8f.js → index.1e974327.js} +9 -9
- package/dist/assets/{index.1b45b39b.js → index.3a10cc5f.js} +80 -75
- package/dist/assets/index.465d1ec4.js +242 -0
- package/dist/assets/index.c6852ed8.js +1109 -0
- package/dist/assets/{polyfills-legacy.d3683099.js → polyfills-legacy.9624f473.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/types/components/Search/index.d.ts +3 -3
- package/dist/types/components/Search/index.d.ts.map +1 -1
- package/dist/types/components/Search/index.js +26 -20
- package/dist/types/components/Search/index.js.map +1 -1
- package/dist/types/components/Search/styles.d.ts +2 -2
- package/dist/types/components/Search/styles.js +3 -3
- package/dist/types/sdks/DataExplorer/components/Map/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Map/index.js +1 -1
- package/dist/types/sdks/DataExplorer/components/Map/index.js.map +1 -1
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.js +1 -1
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.js +1 -2
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.js.map +1 -1
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/styles.d.ts +1 -0
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/styles.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/styles.js +4 -1
- package/dist/types/sdks/LocalContent/Map/CommuteContainer/styles.js.map +1 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/index.d.ts +14 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/index.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/index.js +44 -3
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/index.js.map +1 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/styles.d.ts +3 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/styles.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/styles.js +23 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Cluster/styles.js.map +1 -1
- package/dist/types/sdks/LocalContent/Map/Markers/Marker/index.d.ts +16 -0
- package/dist/types/sdks/LocalContent/Map/Markers/Marker/index.d.ts.map +1 -0
- package/dist/types/sdks/LocalContent/Map/Markers/Marker/index.js +53 -0
- package/dist/types/sdks/LocalContent/Map/Markers/Marker/index.js.map +1 -0
- package/dist/types/sdks/LocalContent/Map/Markers/index.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/Map/Markers/index.js +6 -52
- package/dist/types/sdks/LocalContent/Map/Markers/index.js.map +1 -1
- package/dist/types/sdks/LocalContent/Map/index.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/Map/index.js +6 -0
- package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
- package/dist/types/sdks/LocalContent/index.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/index.js +5 -2
- package/dist/types/sdks/LocalContent/index.js.map +1 -1
- package/dist/types/services/storage/browserStorage.d.ts +46 -0
- package/dist/types/services/storage/browserStorage.d.ts.map +1 -0
- package/dist/types/services/storage/browserStorage.js +56 -0
- package/dist/types/services/storage/browserStorage.js.map +1 -0
- package/dist/types/services/storage/commuteHistory.d.ts +46 -0
- package/dist/types/services/storage/commuteHistory.d.ts.map +1 -0
- package/dist/types/services/storage/commuteHistory.js +54 -0
- package/dist/types/services/storage/commuteHistory.js.map +1 -0
- package/package.json +4 -3
- package/dist/assets/auto-track-legacy.541af3f5.js +0 -1
- package/dist/assets/auto-track.10e7c441.js +0 -1
- package/dist/assets/index-legacy.4d95875e.js +0 -40
- package/dist/assets/index-legacy.60d9e590.js +0 -1
- package/dist/assets/index-legacy.690811dc.js +0 -1
- package/dist/assets/index-legacy.89760bd0.js +0 -1
- package/dist/assets/index-legacy.a4b02181.js +0 -1
- package/dist/assets/index-legacy.be4ae81b.js +0 -672
- package/dist/assets/index-legacy.d24a67f5.js +0 -1
- package/dist/assets/index-legacy.d281a40b.js +0 -1
- package/dist/assets/index-legacy.d7f5a5d6.js +0 -1
- package/dist/assets/index.0c5b062b.js +0 -1345
- package/dist/assets/index.1787c8e5.js +0 -1
- package/dist/assets/index.24a102e7.js +0 -1
- package/dist/assets/index.27821d72.js +0 -1155
- package/dist/assets/index.7dae5d4e.js +0 -1
- package/dist/assets/index.99863166.js +0 -221
- package/dist/assets/index.ca339fe1.js +0 -1
- package/dist/assets/index.e50321f4.js +0 -1
- package/dist/assets/index.umd-legacy.84ee2b87.js +0 -1
- package/dist/assets/index.umd.703b7a5f.js +0 -1
- package/dist/assets/is-plan-event-enabled-legacy.0a339854.js +0 -1
- package/dist/assets/is-plan-event-enabled.681b46ca.js +0 -1
|
@@ -1,672 +0,0 @@
|
|
|
1
|
-
!function(){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},r(e)}System.register(["./index-legacy.4d95875e.js","./index-legacy.89760bd0.js","./index-legacy.d7f5a5d6.js"],(function(e,t){"use strict";var n,o,a;return{setters:[function(r){n=r.ab,o=r.d},function(r){a=r.d},function(){}],execute:function(){for(var t={},i={},u=[],f=0;f<64;)u[f]=0|4294967296*Math.sin(++f%Math.PI);var c=Object.freeze(Object.defineProperty({__proto__:null,default:function(r){var e,t,n,o=[e=1732584193,t=4023233417,~e,~t],a=[],i=unescape(encodeURI(r))+"",c=i.length;for(r=--c/4+2|15,a[--r]=8*c;~c;)a[c>>2]|=i.charCodeAt(c)<<8*c--;for(f=i=0;f<r;f+=16){for(c=o;i<64;c=[n=c[3],e+((n=c[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][c=i>>4]+u[i]+~~a[f|15&[i,5*i+1,3*i+5,7*i][c]])<<(c=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*c+i++%4])|n>>>-c),e,t])e=0|c[1],t=c[2];for(i=4;i;)o[--i]+=c[i]}for(r="";i<32;)r+=(o[i>>3]>>4*(1^i++)&15).toString(16);return r}},Symbol.toStringTag,{value:"Module"})),l=n(c),s={exports:{}};!function(r,e){r.exports=function(r,e,t,n,o){for(e=e.split?e.split("."):e,n=0;n<e.length;n++)r=r?r[e[n]]:o;return r===o?t:r}}(s);
|
|
2
|
-
/**
|
|
3
|
-
* @license Apache-2.0
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*/
|
|
19
|
-
var p=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY;var v=
|
|
20
|
-
/**
|
|
21
|
-
* @license Apache-2.0
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
24
|
-
*
|
|
25
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
26
|
-
* you may not use this file except in compliance with the License.
|
|
27
|
-
* You may obtain a copy of the License at
|
|
28
|
-
*
|
|
29
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
30
|
-
*
|
|
31
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
32
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
33
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
34
|
-
* See the License for the specific language governing permissions and
|
|
35
|
-
* limitations under the License.
|
|
36
|
-
*/
|
|
37
|
-
function(r){return r!=r},d=p,h=y;
|
|
38
|
-
/**
|
|
39
|
-
* @license Apache-2.0
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
42
|
-
*
|
|
43
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
44
|
-
* you may not use this file except in compliance with the License.
|
|
45
|
-
* You may obtain a copy of the License at
|
|
46
|
-
*
|
|
47
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
48
|
-
*
|
|
49
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
50
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
51
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
52
|
-
* See the License for the specific language governing permissions and
|
|
53
|
-
* limitations under the License.
|
|
54
|
-
*/var g=function(r){return r===d||r===h};
|
|
55
|
-
/**
|
|
56
|
-
* @license Apache-2.0
|
|
57
|
-
*
|
|
58
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
59
|
-
*
|
|
60
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
61
|
-
* you may not use this file except in compliance with the License.
|
|
62
|
-
* You may obtain a copy of the License at
|
|
63
|
-
*
|
|
64
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
65
|
-
*
|
|
66
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
67
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
68
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
69
|
-
* See the License for the specific language governing permissions and
|
|
70
|
-
* limitations under the License.
|
|
71
|
-
*/var b=
|
|
72
|
-
/**
|
|
73
|
-
* @license Apache-2.0
|
|
74
|
-
*
|
|
75
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
76
|
-
*
|
|
77
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
78
|
-
* you may not use this file except in compliance with the License.
|
|
79
|
-
* You may obtain a copy of the License at
|
|
80
|
-
*
|
|
81
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
82
|
-
*
|
|
83
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
84
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
85
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
86
|
-
* See the License for the specific language governing permissions and
|
|
87
|
-
* limitations under the License.
|
|
88
|
-
*/
|
|
89
|
-
function(){return"function"==typeof Symbol&&"symbol"===r(Symbol("foo"))}();
|
|
90
|
-
/**
|
|
91
|
-
* @license Apache-2.0
|
|
92
|
-
*
|
|
93
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
94
|
-
*
|
|
95
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
96
|
-
* you may not use this file except in compliance with the License.
|
|
97
|
-
* You may obtain a copy of the License at
|
|
98
|
-
*
|
|
99
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
100
|
-
*
|
|
101
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
102
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
103
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
104
|
-
* See the License for the specific language governing permissions and
|
|
105
|
-
* limitations under the License.
|
|
106
|
-
*/var m=function(){return b&&"symbol"===r(Symbol.toStringTag)},w=Object.prototype.toString,A=w;
|
|
107
|
-
/**
|
|
108
|
-
* @license Apache-2.0
|
|
109
|
-
*
|
|
110
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
111
|
-
*
|
|
112
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
113
|
-
* you may not use this file except in compliance with the License.
|
|
114
|
-
* You may obtain a copy of the License at
|
|
115
|
-
*
|
|
116
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
117
|
-
*
|
|
118
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
119
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
120
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
121
|
-
* See the License for the specific language governing permissions and
|
|
122
|
-
* limitations under the License.
|
|
123
|
-
*/var _=function(r){return A.call(r)},O=Object.prototype.hasOwnProperty;
|
|
124
|
-
/**
|
|
125
|
-
* @license Apache-2.0
|
|
126
|
-
*
|
|
127
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
128
|
-
*
|
|
129
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
130
|
-
* you may not use this file except in compliance with the License.
|
|
131
|
-
* You may obtain a copy of the License at
|
|
132
|
-
*
|
|
133
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
134
|
-
*
|
|
135
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
136
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
137
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
138
|
-
* See the License for the specific language governing permissions and
|
|
139
|
-
* limitations under the License.
|
|
140
|
-
*/var j=function(r,e){return null!=r&&O.call(r,e)},S="function"==typeof Symbol?Symbol.toStringTag:"",k=j,N=S,U=w;
|
|
141
|
-
/**
|
|
142
|
-
* @license Apache-2.0
|
|
143
|
-
*
|
|
144
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
145
|
-
*
|
|
146
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
147
|
-
* you may not use this file except in compliance with the License.
|
|
148
|
-
* You may obtain a copy of the License at
|
|
149
|
-
*
|
|
150
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
151
|
-
*
|
|
152
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
153
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
154
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
155
|
-
* See the License for the specific language governing permissions and
|
|
156
|
-
* limitations under the License.
|
|
157
|
-
*/var I=_,P=function(r){var e,t,n;if(null==r)return U.call(r);t=r[N],e=k(r,N);try{r[N]=void 0}catch(o){return U.call(r)}return n=U.call(r),e?r[N]=t:delete r[N],n},M=m()?P:I,E=M,x="function"==typeof Uint32Array;
|
|
158
|
-
/**
|
|
159
|
-
* @license Apache-2.0
|
|
160
|
-
*
|
|
161
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
162
|
-
*
|
|
163
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
164
|
-
* you may not use this file except in compliance with the License.
|
|
165
|
-
* You may obtain a copy of the License at
|
|
166
|
-
*
|
|
167
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
168
|
-
*
|
|
169
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
170
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
171
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
172
|
-
* See the License for the specific language governing permissions and
|
|
173
|
-
* limitations under the License.
|
|
174
|
-
*/var F="function"==typeof Uint32Array?Uint32Array:null,H=function(r){return x&&r instanceof Uint32Array||"[object Uint32Array]"===E(r)},J=F;
|
|
175
|
-
/**
|
|
176
|
-
* @license Apache-2.0
|
|
177
|
-
*
|
|
178
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
179
|
-
*
|
|
180
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
-
* you may not use this file except in compliance with the License.
|
|
182
|
-
* You may obtain a copy of the License at
|
|
183
|
-
*
|
|
184
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
-
*
|
|
186
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
187
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
-
* See the License for the specific language governing permissions and
|
|
190
|
-
* limitations under the License.
|
|
191
|
-
*/var T=function(){var r,e;if("function"!=typeof J)return!1;try{e=new J(e=[1,3.14,-3.14,4294967296,4294967297]),r=H(e)&&1===e[0]&&3===e[1]&&4294967293===e[2]&&0===e[3]&&1===e[4]}catch(t){r=!1}return r};
|
|
192
|
-
/**
|
|
193
|
-
* @license Apache-2.0
|
|
194
|
-
*
|
|
195
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
196
|
-
*
|
|
197
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
198
|
-
* you may not use this file except in compliance with the License.
|
|
199
|
-
* You may obtain a copy of the License at
|
|
200
|
-
*
|
|
201
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
202
|
-
*
|
|
203
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
204
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
205
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
206
|
-
* See the License for the specific language governing permissions and
|
|
207
|
-
* limitations under the License.
|
|
208
|
-
*/var C="function"==typeof Uint32Array?Uint32Array:void 0,L=
|
|
209
|
-
/**
|
|
210
|
-
* @license Apache-2.0
|
|
211
|
-
*
|
|
212
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
213
|
-
*
|
|
214
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
215
|
-
* you may not use this file except in compliance with the License.
|
|
216
|
-
* You may obtain a copy of the License at
|
|
217
|
-
*
|
|
218
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
219
|
-
*
|
|
220
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
221
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
222
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
223
|
-
* See the License for the specific language governing permissions and
|
|
224
|
-
* limitations under the License.
|
|
225
|
-
*/
|
|
226
|
-
function(){throw new Error("not implemented")},D=T()?C:L,G=M,R="function"==typeof Float64Array;
|
|
227
|
-
/**
|
|
228
|
-
* @license Apache-2.0
|
|
229
|
-
*
|
|
230
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
231
|
-
*
|
|
232
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
233
|
-
* you may not use this file except in compliance with the License.
|
|
234
|
-
* You may obtain a copy of the License at
|
|
235
|
-
*
|
|
236
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
237
|
-
*
|
|
238
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
239
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
240
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
241
|
-
* See the License for the specific language governing permissions and
|
|
242
|
-
* limitations under the License.
|
|
243
|
-
*/var W="function"==typeof Float64Array?Float64Array:null,B=function(r){return R&&r instanceof Float64Array||"[object Float64Array]"===G(r)},Q=W;
|
|
244
|
-
/**
|
|
245
|
-
* @license Apache-2.0
|
|
246
|
-
*
|
|
247
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
248
|
-
*
|
|
249
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
250
|
-
* you may not use this file except in compliance with the License.
|
|
251
|
-
* You may obtain a copy of the License at
|
|
252
|
-
*
|
|
253
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
254
|
-
*
|
|
255
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
256
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
257
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
258
|
-
* See the License for the specific language governing permissions and
|
|
259
|
-
* limitations under the License.
|
|
260
|
-
*/var V=function(){var r,e;if("function"!=typeof Q)return!1;try{e=new Q([1,3.14,-3.14,NaN]),r=B(e)&&1===e[0]&&3.14===e[1]&&-3.14===e[2]&&e[3]!=e[3]}catch(t){r=!1}return r};
|
|
261
|
-
/**
|
|
262
|
-
* @license Apache-2.0
|
|
263
|
-
*
|
|
264
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
265
|
-
*
|
|
266
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
267
|
-
* you may not use this file except in compliance with the License.
|
|
268
|
-
* You may obtain a copy of the License at
|
|
269
|
-
*
|
|
270
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
271
|
-
*
|
|
272
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
273
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
274
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
275
|
-
* See the License for the specific language governing permissions and
|
|
276
|
-
* limitations under the License.
|
|
277
|
-
*/var Y="function"==typeof Float64Array?Float64Array:void 0,q=
|
|
278
|
-
/**
|
|
279
|
-
* @license Apache-2.0
|
|
280
|
-
*
|
|
281
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
282
|
-
*
|
|
283
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
284
|
-
* you may not use this file except in compliance with the License.
|
|
285
|
-
* You may obtain a copy of the License at
|
|
286
|
-
*
|
|
287
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
288
|
-
*
|
|
289
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
290
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
291
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
292
|
-
* See the License for the specific language governing permissions and
|
|
293
|
-
* limitations under the License.
|
|
294
|
-
*/
|
|
295
|
-
function(){throw new Error("not implemented")},z=V()?Y:q,K=M,X="function"==typeof Uint8Array;
|
|
296
|
-
/**
|
|
297
|
-
* @license Apache-2.0
|
|
298
|
-
*
|
|
299
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
300
|
-
*
|
|
301
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
302
|
-
* you may not use this file except in compliance with the License.
|
|
303
|
-
* You may obtain a copy of the License at
|
|
304
|
-
*
|
|
305
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
306
|
-
*
|
|
307
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
308
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
309
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
310
|
-
* See the License for the specific language governing permissions and
|
|
311
|
-
* limitations under the License.
|
|
312
|
-
*/var Z="function"==typeof Uint8Array?Uint8Array:null,$=function(r){return X&&r instanceof Uint8Array||"[object Uint8Array]"===K(r)},rr=Z;
|
|
313
|
-
/**
|
|
314
|
-
* @license Apache-2.0
|
|
315
|
-
*
|
|
316
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
317
|
-
*
|
|
318
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
319
|
-
* you may not use this file except in compliance with the License.
|
|
320
|
-
* You may obtain a copy of the License at
|
|
321
|
-
*
|
|
322
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
323
|
-
*
|
|
324
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
325
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
326
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
327
|
-
* See the License for the specific language governing permissions and
|
|
328
|
-
* limitations under the License.
|
|
329
|
-
*/var er=function(){var r,e;if("function"!=typeof rr)return!1;try{e=new rr(e=[1,3.14,-3.14,256,257]),r=$(e)&&1===e[0]&&3===e[1]&&253===e[2]&&0===e[3]&&1===e[4]}catch(t){r=!1}return r};
|
|
330
|
-
/**
|
|
331
|
-
* @license Apache-2.0
|
|
332
|
-
*
|
|
333
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
334
|
-
*
|
|
335
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
336
|
-
* you may not use this file except in compliance with the License.
|
|
337
|
-
* You may obtain a copy of the License at
|
|
338
|
-
*
|
|
339
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
340
|
-
*
|
|
341
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
342
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
343
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
344
|
-
* See the License for the specific language governing permissions and
|
|
345
|
-
* limitations under the License.
|
|
346
|
-
*/var tr="function"==typeof Uint8Array?Uint8Array:void 0,nr=
|
|
347
|
-
/**
|
|
348
|
-
* @license Apache-2.0
|
|
349
|
-
*
|
|
350
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
351
|
-
*
|
|
352
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
353
|
-
* you may not use this file except in compliance with the License.
|
|
354
|
-
* You may obtain a copy of the License at
|
|
355
|
-
*
|
|
356
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
357
|
-
*
|
|
358
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
359
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
360
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
361
|
-
* See the License for the specific language governing permissions and
|
|
362
|
-
* limitations under the License.
|
|
363
|
-
*/
|
|
364
|
-
function(){throw new Error("not implemented")},or=er()?tr:nr,ar=M,ir="function"==typeof Uint16Array;
|
|
365
|
-
/**
|
|
366
|
-
* @license Apache-2.0
|
|
367
|
-
*
|
|
368
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
369
|
-
*
|
|
370
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
371
|
-
* you may not use this file except in compliance with the License.
|
|
372
|
-
* You may obtain a copy of the License at
|
|
373
|
-
*
|
|
374
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
375
|
-
*
|
|
376
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
377
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
378
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
379
|
-
* See the License for the specific language governing permissions and
|
|
380
|
-
* limitations under the License.
|
|
381
|
-
*/var ur="function"==typeof Uint16Array?Uint16Array:null,fr=function(r){return ir&&r instanceof Uint16Array||"[object Uint16Array]"===ar(r)},cr=ur;
|
|
382
|
-
/**
|
|
383
|
-
* @license Apache-2.0
|
|
384
|
-
*
|
|
385
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
386
|
-
*
|
|
387
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
388
|
-
* you may not use this file except in compliance with the License.
|
|
389
|
-
* You may obtain a copy of the License at
|
|
390
|
-
*
|
|
391
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
392
|
-
*
|
|
393
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
394
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
395
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
396
|
-
* See the License for the specific language governing permissions and
|
|
397
|
-
* limitations under the License.
|
|
398
|
-
*/var lr=function(){var r,e;if("function"!=typeof cr)return!1;try{e=new cr(e=[1,3.14,-3.14,65536,65537]),r=fr(e)&&1===e[0]&&3===e[1]&&65533===e[2]&&0===e[3]&&1===e[4]}catch(t){r=!1}return r};
|
|
399
|
-
/**
|
|
400
|
-
* @license Apache-2.0
|
|
401
|
-
*
|
|
402
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
403
|
-
*
|
|
404
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
405
|
-
* you may not use this file except in compliance with the License.
|
|
406
|
-
* You may obtain a copy of the License at
|
|
407
|
-
*
|
|
408
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
409
|
-
*
|
|
410
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
411
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
412
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
413
|
-
* See the License for the specific language governing permissions and
|
|
414
|
-
* limitations under the License.
|
|
415
|
-
*/var sr,pr="function"==typeof Uint16Array?Uint16Array:void 0,yr=
|
|
416
|
-
/**
|
|
417
|
-
* @license Apache-2.0
|
|
418
|
-
*
|
|
419
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
420
|
-
*
|
|
421
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
422
|
-
* you may not use this file except in compliance with the License.
|
|
423
|
-
* You may obtain a copy of the License at
|
|
424
|
-
*
|
|
425
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
426
|
-
*
|
|
427
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
428
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
429
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
430
|
-
* See the License for the specific language governing permissions and
|
|
431
|
-
* limitations under the License.
|
|
432
|
-
*/
|
|
433
|
-
function(){throw new Error("not implemented")},vr={uint16:lr()?pr:yr,uint8:or};
|
|
434
|
-
/**
|
|
435
|
-
* @license Apache-2.0
|
|
436
|
-
*
|
|
437
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
438
|
-
*
|
|
439
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
440
|
-
* you may not use this file except in compliance with the License.
|
|
441
|
-
* You may obtain a copy of the License at
|
|
442
|
-
*
|
|
443
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
444
|
-
*
|
|
445
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
446
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
447
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
448
|
-
* See the License for the specific language governing permissions and
|
|
449
|
-
* limitations under the License.
|
|
450
|
-
*/(sr=new vr.uint16(1))[0]=4660;var dr,hr,gr=52===new vr.uint8(sr.buffer)[0];
|
|
451
|
-
/**
|
|
452
|
-
* @license Apache-2.0
|
|
453
|
-
*
|
|
454
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
455
|
-
*
|
|
456
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
457
|
-
* you may not use this file except in compliance with the License.
|
|
458
|
-
* You may obtain a copy of the License at
|
|
459
|
-
*
|
|
460
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
461
|
-
*
|
|
462
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
463
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
464
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
465
|
-
* See the License for the specific language governing permissions and
|
|
466
|
-
* limitations under the License.
|
|
467
|
-
*/!0===gr?(dr=1,hr=0):(dr=0,hr=1);var br=D,mr={HIGH:dr,LOW:hr},wr=new z(1),Ar=new br(wr.buffer),_r=mr.HIGH,Or=mr.LOW;
|
|
468
|
-
/**
|
|
469
|
-
* @license Apache-2.0
|
|
470
|
-
*
|
|
471
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
472
|
-
*
|
|
473
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
474
|
-
* you may not use this file except in compliance with the License.
|
|
475
|
-
* You may obtain a copy of the License at
|
|
476
|
-
*
|
|
477
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
478
|
-
*
|
|
479
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
480
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
481
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
482
|
-
* See the License for the specific language governing permissions and
|
|
483
|
-
* limitations under the License.
|
|
484
|
-
*/var jr=function(r,e){return wr[0]=e,r[0]=Ar[_r],r[1]=Ar[Or],r};
|
|
485
|
-
/**
|
|
486
|
-
* @license Apache-2.0
|
|
487
|
-
*
|
|
488
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
489
|
-
*
|
|
490
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
491
|
-
* you may not use this file except in compliance with the License.
|
|
492
|
-
* You may obtain a copy of the License at
|
|
493
|
-
*
|
|
494
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
495
|
-
*
|
|
496
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
497
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
498
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
499
|
-
* See the License for the specific language governing permissions and
|
|
500
|
-
* limitations under the License.
|
|
501
|
-
*/var Sr=function(r,e){return 1===arguments.length?jr([0,0],r):jr(r,e)},kr=Sr,Nr=D,Ur=!0===gr?1:0,Ir=new z(1),Pr=new Nr(Ir.buffer);
|
|
502
|
-
/**
|
|
503
|
-
* @license Apache-2.0
|
|
504
|
-
*
|
|
505
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
506
|
-
*
|
|
507
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
508
|
-
* you may not use this file except in compliance with the License.
|
|
509
|
-
* You may obtain a copy of the License at
|
|
510
|
-
*
|
|
511
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
512
|
-
*
|
|
513
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
514
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
515
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
516
|
-
* See the License for the specific language governing permissions and
|
|
517
|
-
* limitations under the License.
|
|
518
|
-
*/var Mr,Er,xr=function(r){return Ir[0]=r,Pr[Ur]};
|
|
519
|
-
/**
|
|
520
|
-
* @license Apache-2.0
|
|
521
|
-
*
|
|
522
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
523
|
-
*
|
|
524
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
525
|
-
* you may not use this file except in compliance with the License.
|
|
526
|
-
* You may obtain a copy of the License at
|
|
527
|
-
*
|
|
528
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
529
|
-
*
|
|
530
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
531
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
532
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
533
|
-
* See the License for the specific language governing permissions and
|
|
534
|
-
* limitations under the License.
|
|
535
|
-
*/!0===gr?(Mr=1,Er=0):(Mr=0,Er=1);var Fr=D,Hr={HIGH:Mr,LOW:Er},Jr=new z(1),Tr=new Fr(Jr.buffer),Cr=Hr.HIGH,Lr=Hr.LOW;
|
|
536
|
-
/**
|
|
537
|
-
* @license Apache-2.0
|
|
538
|
-
*
|
|
539
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
540
|
-
*
|
|
541
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
542
|
-
* you may not use this file except in compliance with the License.
|
|
543
|
-
* You may obtain a copy of the License at
|
|
544
|
-
*
|
|
545
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
546
|
-
*
|
|
547
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
548
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
549
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
550
|
-
* See the License for the specific language governing permissions and
|
|
551
|
-
* limitations under the License.
|
|
552
|
-
*/var Dr=function(r,e){return Tr[Cr]=r,Tr[Lr]=e,Jr[0]},Gr=kr,Rr=xr,Wr=Dr,Br=[0,0];
|
|
553
|
-
/**
|
|
554
|
-
* @license Apache-2.0
|
|
555
|
-
*
|
|
556
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
557
|
-
*
|
|
558
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
559
|
-
* you may not use this file except in compliance with the License.
|
|
560
|
-
* You may obtain a copy of the License at
|
|
561
|
-
*
|
|
562
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
563
|
-
*
|
|
564
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
565
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
566
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
567
|
-
* See the License for the specific language governing permissions and
|
|
568
|
-
* limitations under the License.
|
|
569
|
-
*/var Qr=g,Vr=v,Yr=
|
|
570
|
-
/**
|
|
571
|
-
* @license Apache-2.0
|
|
572
|
-
*
|
|
573
|
-
* Copyright (c) 2021 The Stdlib Authors.
|
|
574
|
-
*
|
|
575
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
576
|
-
* you may not use this file except in compliance with the License.
|
|
577
|
-
* You may obtain a copy of the License at
|
|
578
|
-
*
|
|
579
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
580
|
-
*
|
|
581
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
582
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
583
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
584
|
-
* See the License for the specific language governing permissions and
|
|
585
|
-
* limitations under the License.
|
|
586
|
-
*/
|
|
587
|
-
function(r){return Math.abs(r)};
|
|
588
|
-
/**
|
|
589
|
-
* @license Apache-2.0
|
|
590
|
-
*
|
|
591
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
592
|
-
*
|
|
593
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
594
|
-
* you may not use this file except in compliance with the License.
|
|
595
|
-
* You may obtain a copy of the License at
|
|
596
|
-
*
|
|
597
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
598
|
-
*
|
|
599
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
600
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
601
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
602
|
-
* See the License for the specific language governing permissions and
|
|
603
|
-
* limitations under the License.
|
|
604
|
-
*/var qr=function(r,e){return Vr(e)||Qr(e)?(r[0]=e,r[1]=0,r):0!==e&&Yr(e)<22250738585072014e-324?(r[0]=4503599627370496*e,r[1]=-52,r):(r[0]=e,r[1]=0,r)};
|
|
605
|
-
/**
|
|
606
|
-
* @license Apache-2.0
|
|
607
|
-
*
|
|
608
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
609
|
-
*
|
|
610
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
611
|
-
* you may not use this file except in compliance with the License.
|
|
612
|
-
* You may obtain a copy of the License at
|
|
613
|
-
*
|
|
614
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
615
|
-
*
|
|
616
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
617
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
618
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
619
|
-
* See the License for the specific language governing permissions and
|
|
620
|
-
* limitations under the License.
|
|
621
|
-
*/var zr=function(r,e){return 1===arguments.length?qr([0,0],r):qr(r,e)},Kr=xr;
|
|
622
|
-
/**
|
|
623
|
-
* @license Apache-2.0
|
|
624
|
-
*
|
|
625
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
626
|
-
*
|
|
627
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
628
|
-
* you may not use this file except in compliance with the License.
|
|
629
|
-
* You may obtain a copy of the License at
|
|
630
|
-
*
|
|
631
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
632
|
-
*
|
|
633
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
634
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
635
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
636
|
-
* See the License for the specific language governing permissions and
|
|
637
|
-
* limitations under the License.
|
|
638
|
-
*/var Xr=function(r){var e=Kr(r);return(e=(2146435072&e)>>>20)-1023|0},Zr=p,$r=y,re=v,ee=g,te=function(r,e){var t,n;return Gr(Br,r),t=Br[0],t&=2147483647,n=Rr(e),Wr(t|=n&=2147483648,Br[1])},ne=zr,oe=Xr,ae=kr,ie=Dr,ue=[0,0],fe=[0,0];
|
|
639
|
-
/**
|
|
640
|
-
* @license Apache-2.0
|
|
641
|
-
*
|
|
642
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
643
|
-
*
|
|
644
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
645
|
-
* you may not use this file except in compliance with the License.
|
|
646
|
-
* You may obtain a copy of the License at
|
|
647
|
-
*
|
|
648
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
649
|
-
*
|
|
650
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
651
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
652
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
653
|
-
* See the License for the specific language governing permissions and
|
|
654
|
-
* limitations under the License.
|
|
655
|
-
*/var ce=function(r,e){var t,n;return 0===r||re(r)||ee(r)?r:(ne(ue,r),e+=ue[1],(e+=oe(r=ue[0]))<-1074?te(0,r):e>1023?r<0?$r:Zr:(e<=-1023?(e+=52,n=2220446049250313e-31):n=1,ae(fe,r),t=fe[0],t&=2148532223,n*ie(t|=e+1023<<20,fe[1])))},le=ce,se=n(a),pe={},ye=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};
|
|
656
|
-
/**
|
|
657
|
-
* @license Apache-2.0
|
|
658
|
-
*
|
|
659
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
660
|
-
*
|
|
661
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
662
|
-
* you may not use this file except in compliance with the License.
|
|
663
|
-
* You may obtain a copy of the License at
|
|
664
|
-
*
|
|
665
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
666
|
-
*
|
|
667
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
668
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
669
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
670
|
-
* See the License for the specific language governing permissions and
|
|
671
|
-
* limitations under the License.
|
|
672
|
-
*/Object.defineProperty(pe,"__esModule",{value:!0}),pe.unset=void 0;var ve=ye(s.exports);pe.unset=function(r,e){if((0,ve.default)(r,e)){for(var t=e.split("."),n=t.pop();t.length&&"\\"===t[t.length-1].slice(-1);)n=t.pop().slice(0,-1)+"."+n;for(;t.length;)r=r[e=t.shift()];return delete r[n]}return!0};var de=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:!0});var he=de(l),ge=de(s.exports),be=de(le),me=se,we=pe;function Ae(e,t){for(var n in t.drop)if(t.drop.hasOwnProperty(n)){var o=""===n?e:(0,ge.default)(e,n);if("object"===r(o)&&null!==o)for(var a=0,i=t.drop[n];a<i.length;a++){delete o[i[a]]}}}function _e(e,t){for(var n in t.allow)if(t.allow.hasOwnProperty(n)){var o=""===n?e:(0,ge.default)(e,n);if("object"===r(o)&&null!==o)for(var a in o)o.hasOwnProperty(a)&&-1===t.allow[n].indexOf(a)&&delete o[a]}}function Oe(e,t){var n=JSON.parse(JSON.stringify(e));for(var o in t.map)if(t.map.hasOwnProperty(o)){var a=t.map[o],i=o.split("."),u=void 0;if(i.length>1?(i.pop(),u=(0,ge.default)(n,i.join("."))):u=e,"object"===r(u)){if(a.copy){var f=(0,ge.default)(n,a.copy);void 0!==f&&(0,me.dset)(e,o,f)}else if(a.move){var c=(0,ge.default)(n,a.move);void 0!==c&&(0,me.dset)(e,o,c),(0,we.unset)(e,a.move)}else a.hasOwnProperty("set")&&(0,me.dset)(e,o,a.set);if(a.to_string){var l=(0,ge.default)(e,o);if("string"==typeof l||"object"===r(l)&&null!==l)continue;void 0!==l?(0,me.dset)(e,o,JSON.stringify(l)):(0,me.dset)(e,o,"undefined")}}}}function je(r,e){return!(e.sample.percent<=0)&&(e.sample.percent>=1||(e.sample.path?function(r,e){var t=(0,ge.default)(r,e.sample.path),n=(0,he.default)(JSON.stringify(t)),o=-64,a=[];Se(n.slice(0,8),a);for(var i=0,u=0;u<64&&1!==a[u];u++)i++;if(0!==i){var f=[];Se(n.slice(9,16),f),o-=i,a.splice(0,i),f.splice(64-i),a=a.concat(f)}return a[63]=0===a[63]?1:0,(0,be.default)(parseInt(a.join(""),2),o)<e.sample.percent}(r,e):(t=e.sample.percent,Math.random()<=t)));var t}function Se(r,e){for(var t=0;t<8;t++)for(var n=r[t],o=128;o>=1;o/=2)n-o>=0?(n-=o,e.push(1)):e.push(0)}i.default=function(r,e){for(var t=r,n=0,o=e;n<o.length;n++){var a=o[n];switch(a.type){case"drop":return null;case"drop_properties":Ae(t,a.config);break;case"allow_properties":_e(t,a.config);break;case"sample_event":if(je(t,a.config))break;return null;case"map_properties":Oe(t,a.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(a.type,'" is unsupported.'))}}return t};var ke={},Ne=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ke,"__esModule",{value:!0});var Ue=Ne(s.exports);function Ie(e,t){if(!Array.isArray(e))return!0===Pe(e,t);var n=e[0];switch(n){case"!":return!Ie(e[1],t);case"or":for(var o=1;o<e.length;o++)if(Ie(e[o],t))return!0;return!1;case"and":for(o=1;o<e.length;o++)if(!Ie(e[o],t))return!1;return!0;case"=":case"!=":return function(e,t,n,o){Me(e)&&(e=Ie(e,o));Me(t)&&(t=Ie(t,o));"object"===r(e)&&"object"===r(t)&&(e=JSON.stringify(e),t=JSON.stringify(t));switch(n){case"=":return e===t;case"!=":return e!==t;default:throw new Error("Invalid operator in compareItems: ".concat(n))}}(Pe(e[1],t),Pe(e[2],t),n,t);case"<=":case"<":case">":case">=":return function(r,e,t,n){Me(r)&&(r=Ie(r,n));Me(e)&&(e=Ie(e,n));if("number"!=typeof r||"number"!=typeof e)return!1;switch(t){case"<=":return r<=e;case">=":return r>=e;case"<":return r<e;case">":return r>e;default:throw new Error("Invalid operator in compareNumbers: ".concat(t))}}(Pe(e[1],t),Pe(e[2],t),n,t);case"contains":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return-1!==r.indexOf(e)}(Pe(e[1],t),Pe(e[2],t));case"match":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return function(r,e){var t,n;r:for(;r.length>0;){var o=void 0,a=void 0;if(o=(t=Ee(r)).star,a=t.chunk,r=t.pattern,o&&""===a)return!0;var i=xe(a,e),u=i.t,f=i.ok,c=i.err;if(c)return!1;if(!f||!(0===u.length||r.length>0)){if(o)for(var l=0;l<e.length;l++){if(u=(n=xe(a,e.slice(l+1))).t,f=n.ok,c=n.err,f){if(0===r.length&&u.length>0)continue;e=u;continue r}if(c)return!1}return!1}e=u}return 0===e.length}(e,r)}(Pe(e[1],t),Pe(e[2],t));case"lowercase":var a=Pe(e[1],t);return"string"!=typeof a?null:a.toLowerCase();case"typeof":return r(Pe(e[1],t));case"length":return function(r){if(null===r)return 0;if(!Array.isArray(r)&&"string"!=typeof r)return NaN;return r.length}(Pe(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(n))}}function Pe(e,t){return Array.isArray(e)?e:"object"===r(e)?e.value:(0,Ue.default)(t,e)}function Me(r){return!!Array.isArray(r)&&(("lowercase"===r[0]||"length"===r[0]||"typeof"===r[0])&&2===r.length||("contains"===r[0]||"match"===r[0])&&3===r.length)}function Ee(r){for(var e={star:!1,chunk:"",pattern:""};r.length>0&&"*"===r[0];)r=r.slice(1),e.star=!0;var t,n=!1;r:for(t=0;t<r.length;t++)switch(r[t]){case"\\":t+1<r.length&&t++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break r}return e.chunk=r.slice(0,t),e.pattern=r.slice(t),e}function xe(r,e){for(var t,n,o={t:"",ok:!1,err:!1};r.length>0;){if(0===e.length)return o;switch(r[0]){case"[":var a=e[0];e=e.slice(1);var i=!0;(r=r.slice(1)).length>0&&"^"===r[0]&&(i=!1,r=r.slice(1));for(var u=!1,f=0;;){if(r.length>0&&"]"===r[0]&&f>0){r=r.slice(1);break}var c,l="";if(c=(t=Fe(r)).char,r=t.newChunk,t.err)return o;if(l=c,"-"===r[0]&&(l=(n=Fe(r.slice(1))).char,r=n.newChunk,n.err))return o;c<=a&&a<=l&&(u=!0),f++}if(u!==i)return o;break;case"?":e=e.slice(1),r=r.slice(1);break;case"\\":if(0===(r=r.slice(1)).length)return o.err=!0,o;default:if(r[0]!==e[0])return o;e=e.slice(1),r=r.slice(1)}}return o.t=e,o.ok=!0,o.err=!1,o}function Fe(r){var e={char:"",newChunk:"",err:!1};return 0===r.length||"-"===r[0]||"]"===r[0]||"\\"===r[0]&&0===(r=r.slice(1)).length?(e.err=!0,e):(e.char=r[0],e.newChunk=r.slice(1),0===e.newChunk.length&&(e.err=!0),e)}ke.default=function(r,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return!0;case"fql":return function(r,e){if(!r)return!1;try{r=JSON.parse(r)}catch(n){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(n))}var t=Ie(r,e);if("boolean"!=typeof t)return!1;return t}(e.ir,r);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}};var He={};Object.defineProperty(He,"__esModule",{value:!0});var Je=function(){function r(r){this.rules=[],this.rules=r||[]}return r.prototype.getRulesByDestinationName=function(r){for(var e=[],t=0,n=this.rules;t<n.length;t++){var o=n[t];o.destinationName!==r&&void 0!==o.destinationName||e.push(o)}return e},r}();He.default=Je,function(r){var e=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var t=i;Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return e(t).default}});var n=ke;Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return e(n).default}});var a=He;Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return e(a).default}})}(t);e("tsubMiddleware",(function(r){return function(e){var n=e.payload,o=e.integration,a=e.next;new t.Store(r).getRulesByDestinationName(o).forEach((function(r){for(var e=r.matchers,o=r.transformers,i=0;i<e.length;i++)if(t.matches(n.obj,e[i])&&(n.obj=t.transform(n.obj,o[i]),null===n.obj))return a(null)})),a(n)}}))}}}))}();
|